From 4791bf8e0b1e11d09d33101d6d9afae433fd89b2 Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Wed, 11 Dec 2019 15:21:58 -0800 Subject: [PATCH] remove pseudo/k8s module --- pseudo/README.md | 63 - pseudo/init-pseudo-module.sh | 90 - .../k8s/api/.github/PULL_REQUEST_TEMPLATE.md | 2 - pseudo/k8s/api/CONTRIBUTING.md | 7 - pseudo/k8s/api/Godeps/Godeps.json | 238 - pseudo/k8s/api/Godeps/Readme | 5 - pseudo/k8s/api/LICENSE | 202 - pseudo/k8s/api/README.md | 19 - pseudo/k8s/api/SECURITY_CONTACTS | 17 - pseudo/k8s/api/admission/v1/doc.go | 23 - pseudo/k8s/api/admission/v1/generated.pb.go | 1769 - pseudo/k8s/api/admission/v1/generated.proto | 160 - pseudo/k8s/api/admission/v1/register.go | 51 - pseudo/k8s/api/admission/v1/types.go | 162 - .../v1/types_swagger_doc_generated.go | 77 - .../api/admission/v1/zz_generated.deepcopy.go | 136 - pseudo/k8s/api/admission/v1beta1/doc.go | 23 - .../k8s/api/admission/v1beta1/generated.pb.go | 1769 - .../k8s/api/admission/v1beta1/generated.proto | 160 - pseudo/k8s/api/admission/v1beta1/register.go | 51 - pseudo/k8s/api/admission/v1beta1/types.go | 162 - .../v1beta1/types_swagger_doc_generated.go | 77 - .../v1beta1/zz_generated.deepcopy.go | 136 - .../k8s/api/admissionregistration/v1/doc.go | 26 - .../admissionregistration/v1/generated.pb.go | 3469 - .../admissionregistration/v1/generated.proto | 479 - .../api/admissionregistration/v1/register.go | 53 - .../k8s/api/admissionregistration/v1/types.go | 551 - .../v1/types_swagger_doc_generated.go | 151 - .../v1/zz_generated.deepcopy.go | 396 - .../api/admissionregistration/v1beta1/doc.go | 26 - .../v1beta1/generated.pb.go | 3470 - .../v1beta1/generated.proto | 487 - .../admissionregistration/v1beta1/register.go | 53 - .../admissionregistration/v1beta1/types.go | 559 - .../v1beta1/types_swagger_doc_generated.go | 151 - .../v1beta1/zz_generated.deepcopy.go | 396 - pseudo/k8s/api/apps/v1/doc.go | 21 - pseudo/k8s/api/apps/v1/generated.pb.go | 8264 -- pseudo/k8s/api/apps/v1/generated.proto | 701 - pseudo/k8s/api/apps/v1/register.go | 60 - pseudo/k8s/api/apps/v1/types.go | 826 - .../apps/v1/types_swagger_doc_generated.go | 365 - .../k8s/api/apps/v1/zz_generated.deepcopy.go | 772 - pseudo/k8s/api/apps/v1beta1/doc.go | 21 - pseudo/k8s/api/apps/v1beta1/generated.pb.go | 6272 -- pseudo/k8s/api/apps/v1beta1/generated.proto | 484 - pseudo/k8s/api/apps/v1beta1/register.go | 58 - pseudo/k8s/api/apps/v1beta1/types.go | 567 - .../v1beta1/types_swagger_doc_generated.go | 273 - .../api/apps/v1beta1/zz_generated.deepcopy.go | 594 - pseudo/k8s/api/apps/v1beta2/doc.go | 21 - pseudo/k8s/api/apps/v1beta2/generated.pb.go | 9040 --- pseudo/k8s/api/apps/v1beta2/generated.proto | 752 - pseudo/k8s/api/apps/v1beta2/register.go | 61 - pseudo/k8s/api/apps/v1beta2/types.go | 876 - .../v1beta2/types_swagger_doc_generated.go | 396 - .../api/apps/v1beta2/zz_generated.deepcopy.go | 839 - .../k8s/api/auditregistration/v1alpha1/doc.go | 23 - .../v1alpha1/generated.pb.go | 2056 - .../v1alpha1/generated.proto | 162 - .../auditregistration/v1alpha1/register.go | 56 - .../api/auditregistration/v1alpha1/types.go | 198 - .../v1alpha1/types_swagger_doc_generated.go | 111 - .../v1alpha1/zz_generated.deepcopy.go | 229 - pseudo/k8s/api/authentication/v1/doc.go | 22 - .../k8s/api/authentication/v1/generated.pb.go | 2607 - .../k8s/api/authentication/v1/generated.proto | 182 - pseudo/k8s/api/authentication/v1/register.go | 52 - pseudo/k8s/api/authentication/v1/types.go | 189 - .../v1/types_swagger_doc_generated.go | 115 - .../v1/zz_generated.deepcopy.go | 244 - pseudo/k8s/api/authentication/v1beta1/doc.go | 22 - .../authentication/v1beta1/generated.pb.go | 1584 - .../authentication/v1beta1/generated.proto | 118 - .../api/authentication/v1beta1/register.go | 51 - .../k8s/api/authentication/v1beta1/types.go | 110 - .../v1beta1/types_swagger_doc_generated.go | 74 - .../v1beta1/zz_generated.deepcopy.go | 152 - pseudo/k8s/api/authorization/v1/doc.go | 23 - .../k8s/api/authorization/v1/generated.pb.go | 4113 - .../k8s/api/authorization/v1/generated.proto | 272 - pseudo/k8s/api/authorization/v1/register.go | 55 - pseudo/k8s/api/authorization/v1/types.go | 268 - .../v1/types_swagger_doc_generated.go | 173 - .../authorization/v1/zz_generated.deepcopy.go | 385 - pseudo/k8s/api/authorization/v1beta1/doc.go | 23 - .../api/authorization/v1beta1/generated.pb.go | 4113 - .../api/authorization/v1beta1/generated.proto | 272 - .../k8s/api/authorization/v1beta1/register.go | 55 - pseudo/k8s/api/authorization/v1beta1/types.go | 268 - .../v1beta1/types_swagger_doc_generated.go | 173 - .../v1beta1/zz_generated.deepcopy.go | 385 - pseudo/k8s/api/autoscaling/v1/doc.go | 21 - pseudo/k8s/api/autoscaling/v1/generated.pb.go | 5596 -- pseudo/k8s/api/autoscaling/v1/generated.proto | 419 - pseudo/k8s/api/autoscaling/v1/register.go | 53 - pseudo/k8s/api/autoscaling/v1/types.go | 432 - .../v1/types_swagger_doc_generated.go | 250 - .../autoscaling/v1/zz_generated.deepcopy.go | 515 - pseudo/k8s/api/autoscaling/v2beta1/doc.go | 21 - .../api/autoscaling/v2beta1/generated.pb.go | 5121 -- .../api/autoscaling/v2beta1/generated.proto | 400 - .../k8s/api/autoscaling/v2beta1/register.go | 52 - pseudo/k8s/api/autoscaling/v2beta1/types.go | 408 - .../v2beta1/types_swagger_doc_generated.go | 221 - .../v2beta1/zz_generated.deepcopy.go | 466 - pseudo/k8s/api/autoscaling/v2beta2/doc.go | 21 - .../api/autoscaling/v2beta2/generated.pb.go | 5324 -- .../api/autoscaling/v2beta2/generated.proto | 372 - .../k8s/api/autoscaling/v2beta2/register.go | 50 - pseudo/k8s/api/autoscaling/v2beta2/types.go | 396 - .../v2beta2/types_swagger_doc_generated.go | 240 - .../v2beta2/zz_generated.deepcopy.go | 487 - pseudo/k8s/api/batch/v1/doc.go | 21 - pseudo/k8s/api/batch/v1/generated.pb.go | 1880 - pseudo/k8s/api/batch/v1/generated.proto | 184 - pseudo/k8s/api/batch/v1/register.go | 52 - pseudo/k8s/api/batch/v1/types.go | 193 - .../batch/v1/types_swagger_doc_generated.go | 95 - .../k8s/api/batch/v1/zz_generated.deepcopy.go | 188 - pseudo/k8s/api/batch/v1beta1/doc.go | 21 - pseudo/k8s/api/batch/v1beta1/generated.pb.go | 1769 - pseudo/k8s/api/batch/v1beta1/generated.proto | 137 - pseudo/k8s/api/batch/v1beta1/register.go | 53 - pseudo/k8s/api/batch/v1beta1/types.go | 158 - .../v1beta1/types_swagger_doc_generated.go | 96 - .../batch/v1beta1/zz_generated.deepcopy.go | 194 - pseudo/k8s/api/batch/v2alpha1/doc.go | 21 - pseudo/k8s/api/batch/v2alpha1/generated.pb.go | 1769 - pseudo/k8s/api/batch/v2alpha1/generated.proto | 135 - pseudo/k8s/api/batch/v2alpha1/register.go | 53 - pseudo/k8s/api/batch/v2alpha1/types.go | 156 - .../v2alpha1/types_swagger_doc_generated.go | 96 - .../batch/v2alpha1/zz_generated.deepcopy.go | 194 - pseudo/k8s/api/certificates/v1beta1/doc.go | 23 - .../api/certificates/v1beta1/generated.pb.go | 1936 - .../api/certificates/v1beta1/generated.proto | 121 - .../k8s/api/certificates/v1beta1/register.go | 59 - pseudo/k8s/api/certificates/v1beta1/types.go | 155 - .../v1beta1/types_swagger_doc_generated.go | 74 - .../v1beta1/zz_generated.deepcopy.go | 197 - pseudo/k8s/api/code-of-conduct.md | 3 - pseudo/k8s/api/coordination/v1/doc.go | 23 - .../k8s/api/coordination/v1/generated.pb.go | 1002 - .../k8s/api/coordination/v1/generated.proto | 80 - pseudo/k8s/api/coordination/v1/register.go | 53 - pseudo/k8s/api/coordination/v1/types.go | 74 - .../v1/types_swagger_doc_generated.go | 63 - .../coordination/v1/zz_generated.deepcopy.go | 124 - pseudo/k8s/api/coordination/v1beta1/doc.go | 23 - .../api/coordination/v1beta1/generated.pb.go | 1002 - .../api/coordination/v1beta1/generated.proto | 80 - .../k8s/api/coordination/v1beta1/register.go | 53 - pseudo/k8s/api/coordination/v1beta1/types.go | 74 - .../v1beta1/types_swagger_doc_generated.go | 63 - .../v1beta1/zz_generated.deepcopy.go | 124 - .../api/core/v1/annotation_key_constants.go | 106 - pseudo/k8s/api/core/v1/doc.go | 22 - pseudo/k8s/api/core/v1/generated.pb.go | 66336 ---------------- pseudo/k8s/api/core/v1/generated.proto | 5256 -- pseudo/k8s/api/core/v1/objectreference.go | 33 - pseudo/k8s/api/core/v1/register.go | 100 - pseudo/k8s/api/core/v1/resource.go | 56 - pseudo/k8s/api/core/v1/taint.go | 39 - pseudo/k8s/api/core/v1/taint_test.go | 135 - pseudo/k8s/api/core/v1/toleration.go | 56 - pseudo/k8s/api/core/v1/toleration_test.go | 123 - pseudo/k8s/api/core/v1/types.go | 5846 -- .../core/v1/types_swagger_doc_generated.go | 2466 - pseudo/k8s/api/core/v1/well_known_labels.go | 42 - .../k8s/api/core/v1/zz_generated.deepcopy.go | 5771 -- pseudo/k8s/api/discovery/v1alpha1/doc.go | 22 - .../api/discovery/v1alpha1/generated.pb.go | 1689 - .../api/discovery/v1alpha1/generated.proto | 148 - pseudo/k8s/api/discovery/v1alpha1/register.go | 56 - pseudo/k8s/api/discovery/v1alpha1/types.go | 144 - .../v1alpha1/types_swagger_doc_generated.go | 85 - .../discovery/v1alpha1/well_known_labels.go | 22 - .../v1alpha1/zz_generated.deepcopy.go | 195 - pseudo/k8s/api/events/v1beta1/doc.go | 23 - pseudo/k8s/api/events/v1beta1/generated.pb.go | 1474 - pseudo/k8s/api/events/v1beta1/generated.proto | 122 - pseudo/k8s/api/events/v1beta1/register.go | 53 - pseudo/k8s/api/events/v1beta1/types.go | 123 - .../v1beta1/types_swagger_doc_generated.go | 73 - .../events/v1beta1/zz_generated.deepcopy.go | 117 - pseudo/k8s/api/extensions/v1beta1/doc.go | 21 - .../api/extensions/v1beta1/generated.pb.go | 15318 ---- .../api/extensions/v1beta1/generated.proto | 1193 - pseudo/k8s/api/extensions/v1beta1/register.go | 66 - pseudo/k8s/api/extensions/v1beta1/types.go | 1397 - .../v1beta1/types_swagger_doc_generated.go | 661 - .../v1beta1/zz_generated.deepcopy.go | 1497 - pseudo/k8s/api/imagepolicy/v1alpha1/doc.go | 23 - .../api/imagepolicy/v1alpha1/generated.pb.go | 1412 - .../api/imagepolicy/v1alpha1/generated.proto | 86 - .../k8s/api/imagepolicy/v1alpha1/register.go | 51 - pseudo/k8s/api/imagepolicy/v1alpha1/types.go | 80 - .../v1alpha1/types_swagger_doc_generated.go | 71 - .../v1alpha1/zz_generated.deepcopy.go | 120 - pseudo/k8s/api/networking/v1/doc.go | 22 - pseudo/k8s/api/networking/v1/generated.pb.go | 2228 - pseudo/k8s/api/networking/v1/generated.proto | 195 - pseudo/k8s/api/networking/v1/register.go | 53 - pseudo/k8s/api/networking/v1/types.go | 203 - .../v1/types_swagger_doc_generated.go | 113 - .../networking/v1/zz_generated.deepcopy.go | 262 - pseudo/k8s/api/networking/v1beta1/doc.go | 22 - .../api/networking/v1beta1/generated.pb.go | 2394 - .../api/networking/v1beta1/generated.proto | 186 - pseudo/k8s/api/networking/v1beta1/register.go | 56 - pseudo/k8s/api/networking/v1beta1/types.go | 192 - .../v1beta1/types_swagger_doc_generated.go | 127 - .../v1beta1/zz_generated.deepcopy.go | 252 - pseudo/k8s/api/node/v1alpha1/doc.go | 23 - pseudo/k8s/api/node/v1alpha1/generated.pb.go | 1609 - pseudo/k8s/api/node/v1alpha1/generated.proto | 118 - pseudo/k8s/api/node/v1alpha1/register.go | 52 - pseudo/k8s/api/node/v1alpha1/types.go | 116 - .../v1alpha1/types_swagger_doc_generated.go | 80 - .../node/v1alpha1/zz_generated.deepcopy.go | 165 - pseudo/k8s/api/node/v1beta1/doc.go | 23 - pseudo/k8s/api/node/v1beta1/generated.pb.go | 1438 - pseudo/k8s/api/node/v1beta1/generated.proto | 108 - pseudo/k8s/api/node/v1beta1/register.go | 52 - pseudo/k8s/api/node/v1beta1/types.go | 106 - .../v1beta1/types_swagger_doc_generated.go | 71 - .../api/node/v1beta1/zz_generated.deepcopy.go | 148 - pseudo/k8s/api/policy/v1beta1/doc.go | 24 - pseudo/k8s/api/policy/v1beta1/generated.pb.go | 5587 -- pseudo/k8s/api/policy/v1beta1/generated.proto | 400 - pseudo/k8s/api/policy/v1beta1/register.go | 56 - pseudo/k8s/api/policy/v1beta1/types.go | 489 - .../v1beta1/types_swagger_doc_generated.go | 243 - .../policy/v1beta1/zz_generated.deepcopy.go | 540 - pseudo/k8s/api/rbac/v1/doc.go | 23 - pseudo/k8s/api/rbac/v1/generated.pb.go | 3292 - pseudo/k8s/api/rbac/v1/generated.proto | 199 - pseudo/k8s/api/rbac/v1/register.go | 58 - pseudo/k8s/api/rbac/v1/types.go | 237 - .../rbac/v1/types_swagger_doc_generated.go | 158 - .../k8s/api/rbac/v1/zz_generated.deepcopy.go | 389 - pseudo/k8s/api/rbac/v1alpha1/doc.go | 23 - pseudo/k8s/api/rbac/v1alpha1/generated.pb.go | 3293 - pseudo/k8s/api/rbac/v1alpha1/generated.proto | 201 - pseudo/k8s/api/rbac/v1alpha1/register.go | 58 - pseudo/k8s/api/rbac/v1alpha1/types.go | 239 - .../v1alpha1/types_swagger_doc_generated.go | 158 - .../rbac/v1alpha1/zz_generated.deepcopy.go | 389 - pseudo/k8s/api/rbac/v1beta1/doc.go | 23 - pseudo/k8s/api/rbac/v1beta1/generated.pb.go | 3292 - pseudo/k8s/api/rbac/v1beta1/generated.proto | 200 - pseudo/k8s/api/rbac/v1beta1/register.go | 58 - pseudo/k8s/api/rbac/v1beta1/types.go | 237 - .../v1beta1/types_swagger_doc_generated.go | 158 - .../api/rbac/v1beta1/zz_generated.deepcopy.go | 389 - pseudo/k8s/api/roundtrip_test.go | 133 - pseudo/k8s/api/scheduling/v1/doc.go | 23 - pseudo/k8s/api/scheduling/v1/generated.pb.go | 761 - pseudo/k8s/api/scheduling/v1/generated.proto | 75 - pseudo/k8s/api/scheduling/v1/register.go | 55 - pseudo/k8s/api/scheduling/v1/types.go | 74 - .../v1/types_swagger_doc_generated.go | 53 - .../scheduling/v1/zz_generated.deepcopy.go | 90 - pseudo/k8s/api/scheduling/v1alpha1/doc.go | 23 - .../api/scheduling/v1alpha1/generated.pb.go | 761 - .../api/scheduling/v1alpha1/generated.proto | 76 - .../k8s/api/scheduling/v1alpha1/register.go | 52 - pseudo/k8s/api/scheduling/v1alpha1/types.go | 75 - .../v1alpha1/types_swagger_doc_generated.go | 53 - .../v1alpha1/zz_generated.deepcopy.go | 90 - pseudo/k8s/api/scheduling/v1beta1/doc.go | 23 - .../api/scheduling/v1beta1/generated.pb.go | 761 - .../api/scheduling/v1beta1/generated.proto | 76 - pseudo/k8s/api/scheduling/v1beta1/register.go | 52 - pseudo/k8s/api/scheduling/v1beta1/types.go | 75 - .../v1beta1/types_swagger_doc_generated.go | 53 - .../v1beta1/zz_generated.deepcopy.go | 90 - pseudo/k8s/api/settings/v1alpha1/doc.go | 23 - .../k8s/api/settings/v1alpha1/generated.pb.go | 1079 - .../k8s/api/settings/v1alpha1/generated.proto | 75 - pseudo/k8s/api/settings/v1alpha1/register.go | 52 - pseudo/k8s/api/settings/v1alpha1/types.go | 70 - .../v1alpha1/types_swagger_doc_generated.go | 61 - .../v1alpha1/zz_generated.deepcopy.go | 131 - pseudo/k8s/api/storage/v1/doc.go | 22 - pseudo/k8s/api/storage/v1/generated.pb.go | 2699 - pseudo/k8s/api/storage/v1/generated.proto | 195 - pseudo/k8s/api/storage/v1/register.go | 56 - pseudo/k8s/api/storage/v1/types.go | 218 - .../storage/v1/types_swagger_doc_generated.go | 119 - .../api/storage/v1/zz_generated.deepcopy.go | 273 - pseudo/k8s/api/storage/v1alpha1/doc.go | 22 - .../k8s/api/storage/v1alpha1/generated.pb.go | 1839 - .../k8s/api/storage/v1alpha1/generated.proto | 136 - pseudo/k8s/api/storage/v1alpha1/register.go | 50 - pseudo/k8s/api/storage/v1alpha1/types.go | 136 - .../v1alpha1/types_swagger_doc_generated.go | 93 - .../storage/v1alpha1/zz_generated.deepcopy.go | 180 - pseudo/k8s/api/storage/v1beta1/doc.go | 22 - .../k8s/api/storage/v1beta1/generated.pb.go | 4487 -- .../k8s/api/storage/v1beta1/generated.proto | 370 - pseudo/k8s/api/storage/v1beta1/register.go | 62 - pseudo/k8s/api/storage/v1beta1/types.go | 438 - .../v1beta1/types_swagger_doc_generated.go | 200 - .../storage/v1beta1/zz_generated.deepcopy.go | 494 - .../admission.k8s.io.v1.AdmissionReview.json | 81 - .../admission.k8s.io.v1.AdmissionReview.pb | Bin 727 -> 0 bytes .../admission.k8s.io.v1.AdmissionReview.yaml | 80 - ...ission.k8s.io.v1beta1.AdmissionReview.json | 81 - ...dmission.k8s.io.v1beta1.AdmissionReview.pb | Bin 732 -> 0 bytes ...ission.k8s.io.v1beta1.AdmissionReview.yaml | 80 - ...8s.io.v1.MutatingWebhookConfiguration.json | 108 - ....k8s.io.v1.MutatingWebhookConfiguration.pb | Bin 722 -> 0 bytes ...8s.io.v1.MutatingWebhookConfiguration.yaml | 72 - ....io.v1.ValidatingWebhookConfiguration.json | 107 - ...8s.io.v1.ValidatingWebhookConfiguration.pb | Bin 717 -> 0 bytes ....io.v1.ValidatingWebhookConfiguration.yaml | 71 - ....v1beta1.MutatingWebhookConfiguration.json | 108 - ...io.v1beta1.MutatingWebhookConfiguration.pb | Bin 727 -> 0 bytes ....v1beta1.MutatingWebhookConfiguration.yaml | 72 - ...1beta1.ValidatingWebhookConfiguration.json | 107 - ....v1beta1.ValidatingWebhookConfiguration.pb | Bin 722 -> 0 bytes ...1beta1.ValidatingWebhookConfiguration.yaml | 71 - .../HEAD/apps.v1.ControllerRevision.json | 45 - .../HEAD/apps.v1.ControllerRevision.pb | Bin 327 -> 0 bytes .../HEAD/apps.v1.ControllerRevision.yaml | 39 - .../api/testdata/HEAD/apps.v1.DaemonSet.json | 1409 - .../api/testdata/HEAD/apps.v1.DaemonSet.pb | Bin 6305 -> 0 bytes .../api/testdata/HEAD/apps.v1.DaemonSet.yaml | 961 - .../api/testdata/HEAD/apps.v1.Deployment.json | 1405 - .../api/testdata/HEAD/apps.v1.Deployment.pb | Bin 6321 -> 0 bytes .../api/testdata/HEAD/apps.v1.Deployment.yaml | 958 - .../api/testdata/HEAD/apps.v1.ReplicaSet.json | 1397 - .../api/testdata/HEAD/apps.v1.ReplicaSet.pb | Bin 6360 -> 0 bytes .../api/testdata/HEAD/apps.v1.ReplicaSet.yaml | 951 - .../testdata/HEAD/apps.v1.StatefulSet.json | 1499 - .../api/testdata/HEAD/apps.v1.StatefulSet.pb | Bin 6995 -> 0 bytes .../testdata/HEAD/apps.v1.StatefulSet.yaml | 1023 - .../HEAD/apps.v1beta1.ControllerRevision.json | 45 - .../HEAD/apps.v1beta1.ControllerRevision.pb | Bin 332 -> 0 bytes .../HEAD/apps.v1beta1.ControllerRevision.yaml | 39 - .../HEAD/apps.v1beta1.Deployment.json | 1408 - .../testdata/HEAD/apps.v1beta1.Deployment.pb | Bin 6337 -> 0 bytes .../HEAD/apps.v1beta1.Deployment.yaml | 960 - .../HEAD/apps.v1beta1.DeploymentRollback.json | 11 - .../HEAD/apps.v1beta1.DeploymentRollback.pb | Bin 69 -> 0 bytes .../HEAD/apps.v1beta1.DeploymentRollback.yaml | 7 - .../api/testdata/HEAD/apps.v1beta1.Scale.json | 53 - .../api/testdata/HEAD/apps.v1beta1.Scale.pb | Bin 240 -> 0 bytes .../api/testdata/HEAD/apps.v1beta1.Scale.yaml | 38 - .../HEAD/apps.v1beta1.StatefulSet.json | 1499 - .../testdata/HEAD/apps.v1beta1.StatefulSet.pb | Bin 6971 -> 0 bytes .../HEAD/apps.v1beta1.StatefulSet.yaml | 1023 - .../HEAD/apps.v1beta2.ControllerRevision.json | 45 - .../HEAD/apps.v1beta2.ControllerRevision.pb | Bin 332 -> 0 bytes .../HEAD/apps.v1beta2.ControllerRevision.yaml | 39 - .../testdata/HEAD/apps.v1beta2.DaemonSet.json | 1409 - .../testdata/HEAD/apps.v1beta2.DaemonSet.pb | Bin 6310 -> 0 bytes .../testdata/HEAD/apps.v1beta2.DaemonSet.yaml | 961 - .../HEAD/apps.v1beta2.Deployment.json | 1405 - .../testdata/HEAD/apps.v1beta2.Deployment.pb | Bin 6326 -> 0 bytes .../HEAD/apps.v1beta2.Deployment.yaml | 958 - .../HEAD/apps.v1beta2.ReplicaSet.json | 1397 - .../testdata/HEAD/apps.v1beta2.ReplicaSet.pb | Bin 6365 -> 0 bytes .../HEAD/apps.v1beta2.ReplicaSet.yaml | 951 - .../api/testdata/HEAD/apps.v1beta2.Scale.json | 53 - .../api/testdata/HEAD/apps.v1beta2.Scale.pb | Bin 240 -> 0 bytes .../api/testdata/HEAD/apps.v1beta2.Scale.yaml | 38 - .../HEAD/apps.v1beta2.StatefulSet.json | 1499 - .../testdata/HEAD/apps.v1beta2.StatefulSet.pb | Bin 7000 -> 0 bytes .../HEAD/apps.v1beta2.StatefulSet.yaml | 1023 - ...authentication.k8s.io.v1.TokenRequest.json | 59 - .../authentication.k8s.io.v1.TokenRequest.pb | Bin 306 -> 0 bytes ...authentication.k8s.io.v1.TokenRequest.yaml | 43 - .../authentication.k8s.io.v1.TokenReview.json | 67 - .../authentication.k8s.io.v1.TokenReview.pb | Bin 272 -> 0 bytes .../authentication.k8s.io.v1.TokenReview.yaml | 47 - ...entication.k8s.io.v1beta1.TokenReview.json | 67 - ...thentication.k8s.io.v1beta1.TokenReview.pb | Bin 277 -> 0 bytes ...entication.k8s.io.v1beta1.TokenReview.yaml | 47 - ...on.k8s.io.v1.LocalSubjectAccessReview.json | 73 - ...tion.k8s.io.v1.LocalSubjectAccessReview.pb | Bin 316 -> 0 bytes ...on.k8s.io.v1.LocalSubjectAccessReview.yaml | 54 - ...ion.k8s.io.v1.SelfSubjectAccessReview.json | 63 - ...ation.k8s.io.v1.SelfSubjectAccessReview.pb | Bin 291 -> 0 bytes ...ion.k8s.io.v1.SelfSubjectAccessReview.yaml | 47 - ...tion.k8s.io.v1.SelfSubjectRulesReview.json | 76 - ...zation.k8s.io.v1.SelfSubjectRulesReview.pb | Bin 276 -> 0 bytes ...tion.k8s.io.v1.SelfSubjectRulesReview.yaml | 50 - ...ization.k8s.io.v1.SubjectAccessReview.json | 73 - ...orization.k8s.io.v1.SubjectAccessReview.pb | Bin 311 -> 0 bytes ...ization.k8s.io.v1.SubjectAccessReview.yaml | 54 - ...s.io.v1beta1.LocalSubjectAccessReview.json | 73 - ...k8s.io.v1beta1.LocalSubjectAccessReview.pb | Bin 321 -> 0 bytes ...s.io.v1beta1.LocalSubjectAccessReview.yaml | 54 - ...8s.io.v1beta1.SelfSubjectAccessReview.json | 63 - ....k8s.io.v1beta1.SelfSubjectAccessReview.pb | Bin 296 -> 0 bytes ...8s.io.v1beta1.SelfSubjectAccessReview.yaml | 47 - ...k8s.io.v1beta1.SelfSubjectRulesReview.json | 76 - ...n.k8s.io.v1beta1.SelfSubjectRulesReview.pb | Bin 281 -> 0 bytes ...k8s.io.v1beta1.SelfSubjectRulesReview.yaml | 50 - ...on.k8s.io.v1beta1.SubjectAccessReview.json | 73 - ...tion.k8s.io.v1beta1.SubjectAccessReview.pb | Bin 316 -> 0 bytes ...on.k8s.io.v1beta1.SubjectAccessReview.yaml | 54 - ...utoscaling.v1.HorizontalPodAutoscaler.json | 59 - .../autoscaling.v1.HorizontalPodAutoscaler.pb | Bin 311 -> 0 bytes ...utoscaling.v1.HorizontalPodAutoscaler.yaml | 44 - .../testdata/HEAD/autoscaling.v1.Scale.json | 50 - .../api/testdata/HEAD/autoscaling.v1.Scale.pb | Bin 232 -> 0 bytes .../testdata/HEAD/autoscaling.v1.Scale.yaml | 36 - ...aling.v2beta1.HorizontalPodAutoscaler.json | 196 - ...scaling.v2beta1.HorizontalPodAutoscaler.pb | Bin 1708 -> 0 bytes ...aling.v2beta1.HorizontalPodAutoscaler.yaml | 131 - ...aling.v2beta2.HorizontalPodAutoscaler.json | 241 - ...scaling.v2beta2.HorizontalPodAutoscaler.pb | Bin 1957 -> 0 bytes ...aling.v2beta2.HorizontalPodAutoscaler.yaml | 160 - .../k8s/api/testdata/HEAD/batch.v1.Job.json | 1398 - pseudo/k8s/api/testdata/HEAD/batch.v1.Job.pb | Bin 6267 -> 0 bytes .../k8s/api/testdata/HEAD/batch.v1.Job.yaml | 953 - .../testdata/HEAD/batch.v1beta1.CronJob.json | 1446 - .../testdata/HEAD/batch.v1beta1.CronJob.pb | Bin 6568 -> 0 bytes .../testdata/HEAD/batch.v1beta1.CronJob.yaml | 989 - .../HEAD/batch.v1beta1.JobTemplate.json | 1428 - .../HEAD/batch.v1beta1.JobTemplate.pb | Bin 6506 -> 0 bytes .../HEAD/batch.v1beta1.JobTemplate.yaml | 976 - .../testdata/HEAD/batch.v2alpha1.CronJob.json | 1446 - .../testdata/HEAD/batch.v2alpha1.CronJob.pb | Bin 6569 -> 0 bytes .../testdata/HEAD/batch.v2alpha1.CronJob.yaml | 989 - .../HEAD/batch.v2alpha1.JobTemplate.json | 1428 - .../HEAD/batch.v2alpha1.JobTemplate.pb | Bin 6507 -> 0 bytes .../HEAD/batch.v2alpha1.JobTemplate.yaml | 976 - ....io.v1beta1.CertificateSigningRequest.json | 70 - ...8s.io.v1beta1.CertificateSigningRequest.pb | Bin 326 -> 0 bytes ....io.v1beta1.CertificateSigningRequest.yaml | 49 - .../HEAD/coordination.k8s.io.v1.Lease.json | 48 - .../HEAD/coordination.k8s.io.v1.Lease.pb | Bin 234 -> 0 bytes .../HEAD/coordination.k8s.io.v1.Lease.yaml | 35 - .../coordination.k8s.io.v1beta1.Lease.json | 48 - .../HEAD/coordination.k8s.io.v1beta1.Lease.pb | Bin 239 -> 0 bytes .../coordination.k8s.io.v1beta1.Lease.yaml | 35 - .../api/testdata/HEAD/core.v1.APIGroup.json | 21 - .../k8s/api/testdata/HEAD/core.v1.APIGroup.pb | Bin 53 -> 0 bytes .../api/testdata/HEAD/core.v1.APIGroup.yaml | 12 - .../testdata/HEAD/core.v1.APIVersions.json | 13 - .../api/testdata/HEAD/core.v1.APIVersions.pb | Bin 40 -> 0 bytes .../testdata/HEAD/core.v1.APIVersions.yaml | 7 - .../api/testdata/HEAD/core.v1.Binding.json | 52 - .../k8s/api/testdata/HEAD/core.v1.Binding.pb | Bin 247 -> 0 bytes .../api/testdata/HEAD/core.v1.Binding.yaml | 39 - .../HEAD/core.v1.ComponentStatus.json | 51 - .../testdata/HEAD/core.v1.ComponentStatus.pb | Bin 242 -> 0 bytes .../HEAD/core.v1.ComponentStatus.yaml | 36 - .../api/testdata/HEAD/core.v1.ConfigMap.json | 49 - .../api/testdata/HEAD/core.v1.ConfigMap.pb | Bin 219 -> 0 bytes .../api/testdata/HEAD/core.v1.ConfigMap.yaml | 35 - .../testdata/HEAD/core.v1.CreateOptions.json | 8 - .../testdata/HEAD/core.v1.CreateOptions.pb | Bin 37 -> 0 bytes .../testdata/HEAD/core.v1.CreateOptions.yaml | 5 - .../testdata/HEAD/core.v1.DeleteOptions.json | 14 - .../testdata/HEAD/core.v1.DeleteOptions.pb | Bin 96 -> 0 bytes .../testdata/HEAD/core.v1.DeleteOptions.yaml | 10 - .../api/testdata/HEAD/core.v1.Endpoints.json | 86 - .../api/testdata/HEAD/core.v1.Endpoints.pb | Bin 374 -> 0 bytes .../api/testdata/HEAD/core.v1.Endpoints.yaml | 60 - .../HEAD/core.v1.EphemeralContainers.json | 292 - .../HEAD/core.v1.EphemeralContainers.pb | Bin 1140 -> 0 bytes .../HEAD/core.v1.EphemeralContainers.yaml | 203 - .../k8s/api/testdata/HEAD/core.v1.Event.json | 79 - pseudo/k8s/api/testdata/HEAD/core.v1.Event.pb | Bin 407 -> 0 bytes .../k8s/api/testdata/HEAD/core.v1.Event.yaml | 63 - .../testdata/HEAD/core.v1.ExportOptions.json | 6 - .../testdata/HEAD/core.v1.ExportOptions.pb | Bin 35 -> 0 bytes .../testdata/HEAD/core.v1.ExportOptions.yaml | 4 - .../api/testdata/HEAD/core.v1.GetOptions.json | 5 - .../api/testdata/HEAD/core.v1.GetOptions.pb | Bin 31 -> 0 bytes .../api/testdata/HEAD/core.v1.GetOptions.yaml | 3 - .../api/testdata/HEAD/core.v1.LimitRange.json | 65 - .../api/testdata/HEAD/core.v1.LimitRange.pb | Bin 376 -> 0 bytes .../api/testdata/HEAD/core.v1.LimitRange.yaml | 44 - .../testdata/HEAD/core.v1.ListOptions.json | 11 - .../api/testdata/HEAD/core.v1.ListOptions.pb | Bin 65 -> 0 bytes .../testdata/HEAD/core.v1.ListOptions.yaml | 9 - .../api/testdata/HEAD/core.v1.Namespace.json | 60 - .../api/testdata/HEAD/core.v1.Namespace.pb | Bin 317 -> 0 bytes .../api/testdata/HEAD/core.v1.Namespace.yaml | 42 - .../k8s/api/testdata/HEAD/core.v1.Node.json | 156 - pseudo/k8s/api/testdata/HEAD/core.v1.Node.pb | Bin 746 -> 0 bytes .../k8s/api/testdata/HEAD/core.v1.Node.yaml | 110 - .../HEAD/core.v1.NodeProxyOptions.json | 5 - .../testdata/HEAD/core.v1.NodeProxyOptions.pb | Bin 37 -> 0 bytes .../HEAD/core.v1.NodeProxyOptions.yaml | 3 - .../testdata/HEAD/core.v1.PatchOptions.json | 9 - .../api/testdata/HEAD/core.v1.PatchOptions.pb | Bin 38 -> 0 bytes .../testdata/HEAD/core.v1.PatchOptions.yaml | 6 - .../HEAD/core.v1.PersistentVolume.json | 292 - .../testdata/HEAD/core.v1.PersistentVolume.pb | Bin 1177 -> 0 bytes .../HEAD/core.v1.PersistentVolume.yaml | 221 - .../HEAD/core.v1.PersistentVolumeClaim.json | 94 - .../HEAD/core.v1.PersistentVolumeClaim.pb | Bin 595 -> 0 bytes .../HEAD/core.v1.PersistentVolumeClaim.yaml | 65 - pseudo/k8s/api/testdata/HEAD/core.v1.Pod.json | 1491 - pseudo/k8s/api/testdata/HEAD/core.v1.Pod.pb | Bin 6764 -> 0 bytes pseudo/k8s/api/testdata/HEAD/core.v1.Pod.yaml | 1026 - .../HEAD/core.v1.PodAttachOptions.json | 7 - .../testdata/HEAD/core.v1.PodAttachOptions.pb | Bin 45 -> 0 bytes .../HEAD/core.v1.PodAttachOptions.yaml | 5 - .../testdata/HEAD/core.v1.PodExecOptions.json | 10 - .../testdata/HEAD/core.v1.PodExecOptions.pb | Bin 46 -> 0 bytes .../testdata/HEAD/core.v1.PodExecOptions.yaml | 7 - .../testdata/HEAD/core.v1.PodLogOptions.json | 10 - .../testdata/HEAD/core.v1.PodLogOptions.pb | Bin 71 -> 0 bytes .../testdata/HEAD/core.v1.PodLogOptions.yaml | 8 - .../HEAD/core.v1.PodPortForwardOptions.json | 7 - .../HEAD/core.v1.PodPortForwardOptions.pb | Bin 50 -> 0 bytes .../HEAD/core.v1.PodPortForwardOptions.yaml | 4 - .../HEAD/core.v1.PodProxyOptions.json | 5 - .../testdata/HEAD/core.v1.PodProxyOptions.pb | Bin 36 -> 0 bytes .../HEAD/core.v1.PodProxyOptions.yaml | 3 - .../HEAD/core.v1.PodStatusResult.json | 208 - .../testdata/HEAD/core.v1.PodStatusResult.pb | Bin 910 -> 0 bytes .../HEAD/core.v1.PodStatusResult.yaml | 156 - .../testdata/HEAD/core.v1.PodTemplate.json | 1372 - .../api/testdata/HEAD/core.v1.PodTemplate.pb | Bin 6156 -> 0 bytes .../testdata/HEAD/core.v1.PodTemplate.yaml | 936 - .../HEAD/core.v1.RangeAllocation.json | 45 - .../testdata/HEAD/core.v1.RangeAllocation.pb | Bin 213 -> 0 bytes .../HEAD/core.v1.RangeAllocation.yaml | 33 - .../HEAD/core.v1.ReplicationController.json | 1384 - .../HEAD/core.v1.ReplicationController.pb | Bin 6361 -> 0 bytes .../HEAD/core.v1.ReplicationController.yaml | 944 - .../testdata/HEAD/core.v1.ResourceQuota.json | 70 - .../testdata/HEAD/core.v1.ResourceQuota.pb | Bin 395 -> 0 bytes .../testdata/HEAD/core.v1.ResourceQuota.yaml | 47 - .../k8s/api/testdata/HEAD/core.v1.Secret.json | 50 - .../k8s/api/testdata/HEAD/core.v1.Secret.pb | Bin 251 -> 0 bytes .../k8s/api/testdata/HEAD/core.v1.Secret.yaml | 36 - .../HEAD/core.v1.SerializedReference.json | 13 - .../HEAD/core.v1.SerializedReference.pb | Bin 81 -> 0 bytes .../HEAD/core.v1.SerializedReference.yaml | 10 - .../api/testdata/HEAD/core.v1.Service.json | 87 - .../k8s/api/testdata/HEAD/core.v1.Service.pb | Bin 401 -> 0 bytes .../api/testdata/HEAD/core.v1.Service.yaml | 61 - .../testdata/HEAD/core.v1.ServiceAccount.json | 60 - .../testdata/HEAD/core.v1.ServiceAccount.pb | Bin 251 -> 0 bytes .../testdata/HEAD/core.v1.ServiceAccount.yaml | 42 - .../HEAD/core.v1.ServiceProxyOptions.json | 5 - .../HEAD/core.v1.ServiceProxyOptions.pb | Bin 40 -> 0 bytes .../HEAD/core.v1.ServiceProxyOptions.yaml | 3 - .../k8s/api/testdata/HEAD/core.v1.Status.json | 25 - .../k8s/api/testdata/HEAD/core.v1.Status.pb | Bin 178 -> 0 bytes .../k8s/api/testdata/HEAD/core.v1.Status.yaml | 18 - .../testdata/HEAD/core.v1.UpdateOptions.json | 8 - .../testdata/HEAD/core.v1.UpdateOptions.pb | Bin 37 -> 0 bytes .../testdata/HEAD/core.v1.UpdateOptions.yaml | 5 - .../api/testdata/HEAD/core.v1.WatchEvent.json | 4 - .../api/testdata/HEAD/core.v1.WatchEvent.pb | Bin 121 -> 0 bytes .../api/testdata/HEAD/core.v1.WatchEvent.yaml | 8 - .../HEAD/events.k8s.io.v1beta1.Event.json | 80 - .../HEAD/events.k8s.io.v1beta1.Event.pb | Bin 415 -> 0 bytes .../HEAD/events.k8s.io.v1beta1.Event.yaml | 64 - .../HEAD/extensions.v1beta1.DaemonSet.json | 1410 - .../HEAD/extensions.v1beta1.DaemonSet.pb | Bin 6361 -> 0 bytes .../HEAD/extensions.v1beta1.DaemonSet.yaml | 962 - .../HEAD/extensions.v1beta1.Deployment.json | 1408 - .../HEAD/extensions.v1beta1.Deployment.pb | Bin 6343 -> 0 bytes .../HEAD/extensions.v1beta1.Deployment.yaml | 960 - ...extensions.v1beta1.DeploymentRollback.json | 11 - .../extensions.v1beta1.DeploymentRollback.pb | Bin 75 -> 0 bytes ...extensions.v1beta1.DeploymentRollback.yaml | 7 - .../HEAD/extensions.v1beta1.Ingress.json | 83 - .../HEAD/extensions.v1beta1.Ingress.pb | Bin 288 -> 0 bytes .../HEAD/extensions.v1beta1.Ingress.yaml | 52 - .../extensions.v1beta1.NetworkPolicy.json | 150 - .../HEAD/extensions.v1beta1.NetworkPolicy.pb | Bin 1381 -> 0 bytes .../extensions.v1beta1.NetworkPolicy.yaml | 87 - .../extensions.v1beta1.PodSecurityPolicy.json | 144 - .../extensions.v1beta1.PodSecurityPolicy.pb | Bin 582 -> 0 bytes .../extensions.v1beta1.PodSecurityPolicy.yaml | 92 - .../HEAD/extensions.v1beta1.ReplicaSet.json | 1397 - .../HEAD/extensions.v1beta1.ReplicaSet.pb | Bin 6371 -> 0 bytes .../HEAD/extensions.v1beta1.ReplicaSet.yaml | 951 - ...ns.v1beta1.ReplicationControllerDummy.json | 4 - ...ions.v1beta1.ReplicationControllerDummy.pb | Bin 60 -> 0 bytes ...ns.v1beta1.ReplicationControllerDummy.yaml | 2 - .../HEAD/extensions.v1beta1.Scale.json | 53 - .../testdata/HEAD/extensions.v1beta1.Scale.pb | Bin 246 -> 0 bytes .../HEAD/extensions.v1beta1.Scale.yaml | 38 - ...agepolicy.k8s.io.v1alpha1.ImageReview.json | 61 - ...imagepolicy.k8s.io.v1alpha1.ImageReview.pb | Bin 267 -> 0 bytes ...agepolicy.k8s.io.v1alpha1.ImageReview.yaml | 42 - .../networking.k8s.io.v1.NetworkPolicy.json | 150 - .../networking.k8s.io.v1.NetworkPolicy.pb | Bin 1383 -> 0 bytes .../networking.k8s.io.v1.NetworkPolicy.yaml | 87 - .../networking.k8s.io.v1beta1.Ingress.json | 83 - .../HEAD/networking.k8s.io.v1beta1.Ingress.pb | Bin 295 -> 0 bytes .../networking.k8s.io.v1beta1.Ingress.yaml | 52 - .../node.k8s.io.v1alpha1.RuntimeClass.json | 64 - .../HEAD/node.k8s.io.v1alpha1.RuntimeClass.pb | Bin 293 -> 0 bytes .../node.k8s.io.v1alpha1.RuntimeClass.yaml | 44 - .../node.k8s.io.v1beta1.RuntimeClass.json | 62 - .../HEAD/node.k8s.io.v1beta1.RuntimeClass.pb | Bin 290 -> 0 bytes .../node.k8s.io.v1beta1.RuntimeClass.yaml | 43 - .../HEAD/policy.v1beta1.Eviction.json | 55 - .../testdata/HEAD/policy.v1beta1.Eviction.pb | Bin 279 -> 0 bytes .../HEAD/policy.v1beta1.Eviction.yaml | 40 - .../policy.v1beta1.PodDisruptionBudget.json | 69 - .../policy.v1beta1.PodDisruptionBudget.pb | Bin 587 -> 0 bytes .../policy.v1beta1.PodDisruptionBudget.yaml | 48 - .../policy.v1beta1.PodSecurityPolicy.json | 144 - .../HEAD/policy.v1beta1.PodSecurityPolicy.pb | Bin 578 -> 0 bytes .../policy.v1beta1.PodSecurityPolicy.yaml | 92 - ...c.authorization.k8s.io.v1.ClusterRole.json | 80 - ...bac.authorization.k8s.io.v1.ClusterRole.pb | Bin 344 -> 0 bytes ...c.authorization.k8s.io.v1.ClusterRole.yaml | 51 - ...rization.k8s.io.v1.ClusterRoleBinding.json | 56 - ...horization.k8s.io.v1.ClusterRoleBinding.pb | Bin 267 -> 0 bytes ...rization.k8s.io.v1.ClusterRoleBinding.yaml | 40 - .../rbac.authorization.k8s.io.v1.Role.json | 62 - .../HEAD/rbac.authorization.k8s.io.v1.Role.pb | Bin 243 -> 0 bytes .../rbac.authorization.k8s.io.v1.Role.yaml | 42 - ...c.authorization.k8s.io.v1.RoleBinding.json | 56 - ...bac.authorization.k8s.io.v1.RoleBinding.pb | Bin 260 -> 0 bytes ...c.authorization.k8s.io.v1.RoleBinding.yaml | 40 - ...orization.k8s.io.v1alpha1.ClusterRole.json | 80 - ...thorization.k8s.io.v1alpha1.ClusterRole.pb | Bin 350 -> 0 bytes ...orization.k8s.io.v1alpha1.ClusterRole.yaml | 51 - ...on.k8s.io.v1alpha1.ClusterRoleBinding.json | 56 - ...tion.k8s.io.v1alpha1.ClusterRoleBinding.pb | Bin 273 -> 0 bytes ...on.k8s.io.v1alpha1.ClusterRoleBinding.yaml | 40 - ...ac.authorization.k8s.io.v1alpha1.Role.json | 62 - ...rbac.authorization.k8s.io.v1alpha1.Role.pb | Bin 249 -> 0 bytes ...ac.authorization.k8s.io.v1alpha1.Role.yaml | 42 - ...orization.k8s.io.v1alpha1.RoleBinding.json | 56 - ...thorization.k8s.io.v1alpha1.RoleBinding.pb | Bin 266 -> 0 bytes ...orization.k8s.io.v1alpha1.RoleBinding.yaml | 40 - ...horization.k8s.io.v1beta1.ClusterRole.json | 80 - ...uthorization.k8s.io.v1beta1.ClusterRole.pb | Bin 349 -> 0 bytes ...horization.k8s.io.v1beta1.ClusterRole.yaml | 51 - ...ion.k8s.io.v1beta1.ClusterRoleBinding.json | 56 - ...ation.k8s.io.v1beta1.ClusterRoleBinding.pb | Bin 272 -> 0 bytes ...ion.k8s.io.v1beta1.ClusterRoleBinding.yaml | 40 - ...bac.authorization.k8s.io.v1beta1.Role.json | 62 - .../rbac.authorization.k8s.io.v1beta1.Role.pb | Bin 248 -> 0 bytes ...bac.authorization.k8s.io.v1beta1.Role.yaml | 42 - ...horization.k8s.io.v1beta1.RoleBinding.json | 56 - ...uthorization.k8s.io.v1beta1.RoleBinding.pb | Bin 265 -> 0 bytes ...horization.k8s.io.v1beta1.RoleBinding.yaml | 40 - .../scheduling.k8s.io.v1.PriorityClass.json | 47 - .../scheduling.k8s.io.v1.PriorityClass.pb | Bin 246 -> 0 bytes .../scheduling.k8s.io.v1.PriorityClass.yaml | 35 - ...eduling.k8s.io.v1alpha1.PriorityClass.json | 47 - ...cheduling.k8s.io.v1alpha1.PriorityClass.pb | Bin 252 -> 0 bytes ...eduling.k8s.io.v1alpha1.PriorityClass.yaml | 35 - ...heduling.k8s.io.v1beta1.PriorityClass.json | 47 - ...scheduling.k8s.io.v1beta1.PriorityClass.pb | Bin 251 -> 0 bytes ...heduling.k8s.io.v1beta1.PriorityClass.yaml | 35 - .../settings.k8s.io.v1alpha1.PodPreset.json | 382 - .../settings.k8s.io.v1alpha1.PodPreset.pb | Bin 1535 -> 0 bytes .../settings.k8s.io.v1alpha1.PodPreset.yaml | 272 - .../HEAD/storage.k8s.io.v1.StorageClass.json | 65 - .../HEAD/storage.k8s.io.v1.StorageClass.pb | Bin 267 -> 0 bytes .../HEAD/storage.k8s.io.v1.StorageClass.yaml | 44 - .../storage.k8s.io.v1.VolumeAttachment.json | 305 - .../storage.k8s.io.v1.VolumeAttachment.pb | Bin 1155 -> 0 bytes .../storage.k8s.io.v1.VolumeAttachment.yaml | 229 - ...rage.k8s.io.v1alpha1.VolumeAttachment.json | 305 - ...torage.k8s.io.v1alpha1.VolumeAttachment.pb | Bin 1161 -> 0 bytes ...rage.k8s.io.v1alpha1.VolumeAttachment.yaml | 229 - .../storage.k8s.io.v1beta1.CSIDriver.json | 50 - .../HEAD/storage.k8s.io.v1beta1.CSIDriver.pb | Bin 261 -> 0 bytes .../storage.k8s.io.v1beta1.CSIDriver.yaml | 36 - .../HEAD/storage.k8s.io.v1beta1.CSINode.json | 57 - .../HEAD/storage.k8s.io.v1beta1.CSINode.pb | Bin 242 -> 0 bytes .../HEAD/storage.k8s.io.v1beta1.CSINode.yaml | 39 - .../storage.k8s.io.v1beta1.StorageClass.json | 65 - .../storage.k8s.io.v1beta1.StorageClass.pb | Bin 272 -> 0 bytes .../storage.k8s.io.v1beta1.StorageClass.yaml | 44 - ...orage.k8s.io.v1beta1.VolumeAttachment.json | 305 - ...storage.k8s.io.v1beta1.VolumeAttachment.pb | Bin 1160 -> 0 bytes ...orage.k8s.io.v1beta1.VolumeAttachment.yaml | 229 - pseudo/k8s/api/testdata/README.md | 126 - ...beta1.AdmissionReview.after_roundtrip.json | 70 - ...v1beta1.AdmissionReview.after_roundtrip.pb | Bin 609 -> 0 bytes ...beta1.AdmissionReview.after_roundtrip.yaml | 65 - ...ission.k8s.io.v1beta1.AdmissionReview.json | 69 - ...dmission.k8s.io.v1beta1.AdmissionReview.pb | Bin 605 -> 0 bytes ...ission.k8s.io.v1beta1.AdmissionReview.yaml | 64 - ...gWebhookConfiguration.after_roundtrip.json | 93 - ...ingWebhookConfiguration.after_roundtrip.pb | Bin 640 -> 0 bytes ...gWebhookConfiguration.after_roundtrip.yaml | 62 - ....v1beta1.MutatingWebhookConfiguration.json | 94 - ...io.v1beta1.MutatingWebhookConfiguration.pb | Bin 656 -> 0 bytes ....v1beta1.MutatingWebhookConfiguration.yaml | 65 - ...gWebhookConfiguration.after_roundtrip.json | 93 - ...ingWebhookConfiguration.after_roundtrip.pb | Bin 642 -> 0 bytes ...gWebhookConfiguration.after_roundtrip.yaml | 62 - ...1beta1.ValidatingWebhookConfiguration.json | 94 - ....v1beta1.ValidatingWebhookConfiguration.pb | Bin 658 -> 0 bytes ...1beta1.ValidatingWebhookConfiguration.yaml | 65 - ...v1.ControllerRevision.after_roundtrip.json | 44 - ...s.v1.ControllerRevision.after_roundtrip.pb | Bin 357 -> 0 bytes ...v1.ControllerRevision.after_roundtrip.yaml | 38 - .../v1.14.0/apps.v1.ControllerRevision.json | 45 - .../v1.14.0/apps.v1.ControllerRevision.pb | Bin 373 -> 0 bytes .../v1.14.0/apps.v1.ControllerRevision.yaml | 41 - .../apps.v1.DaemonSet.after_roundtrip.json | 1062 - .../apps.v1.DaemonSet.after_roundtrip.pb | Bin 4632 -> 0 bytes .../apps.v1.DaemonSet.after_roundtrip.yaml | 719 - .../testdata/v1.14.0/apps.v1.DaemonSet.json | 1064 - .../api/testdata/v1.14.0/apps.v1.DaemonSet.pb | Bin 4664 -> 0 bytes .../testdata/v1.14.0/apps.v1.DaemonSet.yaml | 725 - .../apps.v1.Deployment.after_roundtrip.json | 1069 - .../apps.v1.Deployment.after_roundtrip.pb | Bin 5131 -> 0 bytes .../apps.v1.Deployment.after_roundtrip.yaml | 726 - .../testdata/v1.14.0/apps.v1.Deployment.json | 1071 - .../testdata/v1.14.0/apps.v1.Deployment.pb | Bin 5163 -> 0 bytes .../testdata/v1.14.0/apps.v1.Deployment.yaml | 732 - .../apps.v1.ReplicaSet.after_roundtrip.json | 1050 - .../apps.v1.ReplicaSet.after_roundtrip.pb | Bin 4725 -> 0 bytes .../apps.v1.ReplicaSet.after_roundtrip.yaml | 710 - .../testdata/v1.14.0/apps.v1.ReplicaSet.json | 1052 - .../testdata/v1.14.0/apps.v1.ReplicaSet.pb | Bin 4757 -> 0 bytes .../testdata/v1.14.0/apps.v1.ReplicaSet.yaml | 716 - .../apps.v1.StatefulSet.after_roundtrip.json | 1163 - .../apps.v1.StatefulSet.after_roundtrip.pb | Bin 5693 -> 0 bytes .../apps.v1.StatefulSet.after_roundtrip.yaml | 790 - .../testdata/v1.14.0/apps.v1.StatefulSet.json | 1166 - .../testdata/v1.14.0/apps.v1.StatefulSet.pb | Bin 5743 -> 0 bytes .../testdata/v1.14.0/apps.v1.StatefulSet.yaml | 799 - ...a1.ControllerRevision.after_roundtrip.json | 44 - ...eta1.ControllerRevision.after_roundtrip.pb | Bin 362 -> 0 bytes ...a1.ControllerRevision.after_roundtrip.yaml | 38 - .../apps.v1beta1.ControllerRevision.json | 45 - .../apps.v1beta1.ControllerRevision.pb | Bin 378 -> 0 bytes .../apps.v1beta1.ControllerRevision.yaml | 41 - ...ps.v1beta1.Deployment.after_roundtrip.json | 1072 - ...apps.v1beta1.Deployment.after_roundtrip.pb | Bin 5170 -> 0 bytes ...ps.v1beta1.Deployment.after_roundtrip.yaml | 728 - .../v1.14.0/apps.v1beta1.Deployment.json | 1074 - .../v1.14.0/apps.v1beta1.Deployment.pb | Bin 5202 -> 0 bytes .../v1.14.0/apps.v1beta1.Deployment.yaml | 734 - .../apps.v1beta1.DeploymentRollback.json | 11 - .../apps.v1beta1.DeploymentRollback.pb | Bin 69 -> 0 bytes .../apps.v1beta1.DeploymentRollback.yaml | 7 - .../apps.v1beta1.Scale.after_roundtrip.json | 52 - .../apps.v1beta1.Scale.after_roundtrip.pb | Bin 277 -> 0 bytes .../apps.v1beta1.Scale.after_roundtrip.yaml | 37 - .../testdata/v1.14.0/apps.v1beta1.Scale.json | 53 - .../testdata/v1.14.0/apps.v1beta1.Scale.pb | Bin 293 -> 0 bytes .../testdata/v1.14.0/apps.v1beta1.Scale.yaml | 40 - ...s.v1beta1.StatefulSet.after_roundtrip.json | 1163 - ...pps.v1beta1.StatefulSet.after_roundtrip.pb | Bin 5741 -> 0 bytes ...s.v1beta1.StatefulSet.after_roundtrip.yaml | 790 - .../v1.14.0/apps.v1beta1.StatefulSet.json | 1166 - .../v1.14.0/apps.v1beta1.StatefulSet.pb | Bin 5791 -> 0 bytes .../v1.14.0/apps.v1beta1.StatefulSet.yaml | 799 - ...a2.ControllerRevision.after_roundtrip.json | 44 - ...eta2.ControllerRevision.after_roundtrip.pb | Bin 362 -> 0 bytes ...a2.ControllerRevision.after_roundtrip.yaml | 38 - .../apps.v1beta2.ControllerRevision.json | 45 - .../apps.v1beta2.ControllerRevision.pb | Bin 378 -> 0 bytes .../apps.v1beta2.ControllerRevision.yaml | 41 - ...pps.v1beta2.DaemonSet.after_roundtrip.json | 1062 - .../apps.v1beta2.DaemonSet.after_roundtrip.pb | Bin 4637 -> 0 bytes ...pps.v1beta2.DaemonSet.after_roundtrip.yaml | 719 - .../v1.14.0/apps.v1beta2.DaemonSet.json | 1064 - .../v1.14.0/apps.v1beta2.DaemonSet.pb | Bin 4669 -> 0 bytes .../v1.14.0/apps.v1beta2.DaemonSet.yaml | 725 - ...ps.v1beta2.Deployment.after_roundtrip.json | 1069 - ...apps.v1beta2.Deployment.after_roundtrip.pb | Bin 5136 -> 0 bytes ...ps.v1beta2.Deployment.after_roundtrip.yaml | 726 - .../v1.14.0/apps.v1beta2.Deployment.json | 1071 - .../v1.14.0/apps.v1beta2.Deployment.pb | Bin 5168 -> 0 bytes .../v1.14.0/apps.v1beta2.Deployment.yaml | 732 - ...ps.v1beta2.ReplicaSet.after_roundtrip.json | 1050 - ...apps.v1beta2.ReplicaSet.after_roundtrip.pb | Bin 4730 -> 0 bytes ...ps.v1beta2.ReplicaSet.after_roundtrip.yaml | 710 - .../v1.14.0/apps.v1beta2.ReplicaSet.json | 1052 - .../v1.14.0/apps.v1beta2.ReplicaSet.pb | Bin 4762 -> 0 bytes .../v1.14.0/apps.v1beta2.ReplicaSet.yaml | 716 - .../apps.v1beta2.Scale.after_roundtrip.json | 52 - .../apps.v1beta2.Scale.after_roundtrip.pb | Bin 277 -> 0 bytes .../apps.v1beta2.Scale.after_roundtrip.yaml | 37 - .../testdata/v1.14.0/apps.v1beta2.Scale.json | 53 - .../testdata/v1.14.0/apps.v1beta2.Scale.pb | Bin 293 -> 0 bytes .../testdata/v1.14.0/apps.v1beta2.Scale.yaml | 40 - ...s.v1beta2.StatefulSet.after_roundtrip.json | 1163 - ...pps.v1beta2.StatefulSet.after_roundtrip.pb | Bin 5698 -> 0 bytes ...s.v1beta2.StatefulSet.after_roundtrip.yaml | 790 - .../v1.14.0/apps.v1beta2.StatefulSet.json | 1166 - .../v1.14.0/apps.v1beta2.StatefulSet.pb | Bin 5748 -> 0 bytes .../v1.14.0/apps.v1beta2.StatefulSet.yaml | 799 - ...8s.io.v1.TokenRequest.after_roundtrip.json | 58 - ....k8s.io.v1.TokenRequest.after_roundtrip.pb | Bin 321 -> 0 bytes ...8s.io.v1.TokenRequest.after_roundtrip.yaml | 42 - ...authentication.k8s.io.v1.TokenRequest.json | 59 - .../authentication.k8s.io.v1.TokenRequest.pb | Bin 337 -> 0 bytes ...authentication.k8s.io.v1.TokenRequest.yaml | 45 - ...k8s.io.v1.TokenReview.after_roundtrip.json | 66 - ...n.k8s.io.v1.TokenReview.after_roundtrip.pb | Bin 303 -> 0 bytes ...k8s.io.v1.TokenReview.after_roundtrip.yaml | 46 - .../authentication.k8s.io.v1.TokenReview.json | 67 - .../authentication.k8s.io.v1.TokenReview.pb | Bin 319 -> 0 bytes .../authentication.k8s.io.v1.TokenReview.yaml | 49 - ...o.v1beta1.TokenReview.after_roundtrip.json | 66 - ....io.v1beta1.TokenReview.after_roundtrip.pb | Bin 308 -> 0 bytes ...o.v1beta1.TokenReview.after_roundtrip.yaml | 46 - ...entication.k8s.io.v1beta1.TokenReview.json | 67 - ...thentication.k8s.io.v1beta1.TokenReview.pb | Bin 324 -> 0 bytes ...entication.k8s.io.v1beta1.TokenReview.yaml | 49 - ...alSubjectAccessReview.after_roundtrip.json | 73 - ...ocalSubjectAccessReview.after_roundtrip.pb | Bin 347 -> 0 bytes ...alSubjectAccessReview.after_roundtrip.yaml | 54 - ...on.k8s.io.v1.LocalSubjectAccessReview.json | 74 - ...tion.k8s.io.v1.LocalSubjectAccessReview.pb | Bin 363 -> 0 bytes ...on.k8s.io.v1.LocalSubjectAccessReview.yaml | 57 - ...lfSubjectAccessReview.after_roundtrip.json | 63 - ...SelfSubjectAccessReview.after_roundtrip.pb | Bin 322 -> 0 bytes ...lfSubjectAccessReview.after_roundtrip.yaml | 47 - ...ion.k8s.io.v1.SelfSubjectAccessReview.json | 64 - ...ation.k8s.io.v1.SelfSubjectAccessReview.pb | Bin 338 -> 0 bytes ...ion.k8s.io.v1.SelfSubjectAccessReview.yaml | 50 - ...elfSubjectRulesReview.after_roundtrip.json | 75 - ....SelfSubjectRulesReview.after_roundtrip.pb | Bin 307 -> 0 bytes ...elfSubjectRulesReview.after_roundtrip.yaml | 49 - ...tion.k8s.io.v1.SelfSubjectRulesReview.json | 76 - ...zation.k8s.io.v1.SelfSubjectRulesReview.pb | Bin 323 -> 0 bytes ...tion.k8s.io.v1.SelfSubjectRulesReview.yaml | 52 - ...1.SubjectAccessReview.after_roundtrip.json | 73 - ....v1.SubjectAccessReview.after_roundtrip.pb | Bin 342 -> 0 bytes ...1.SubjectAccessReview.after_roundtrip.yaml | 54 - ...ization.k8s.io.v1.SubjectAccessReview.json | 74 - ...orization.k8s.io.v1.SubjectAccessReview.pb | Bin 358 -> 0 bytes ...ization.k8s.io.v1.SubjectAccessReview.yaml | 57 - ...alSubjectAccessReview.after_roundtrip.json | 73 - ...ocalSubjectAccessReview.after_roundtrip.pb | Bin 352 -> 0 bytes ...alSubjectAccessReview.after_roundtrip.yaml | 54 - ...s.io.v1beta1.LocalSubjectAccessReview.json | 74 - ...k8s.io.v1beta1.LocalSubjectAccessReview.pb | Bin 368 -> 0 bytes ...s.io.v1beta1.LocalSubjectAccessReview.yaml | 57 - ...lfSubjectAccessReview.after_roundtrip.json | 63 - ...SelfSubjectAccessReview.after_roundtrip.pb | Bin 327 -> 0 bytes ...lfSubjectAccessReview.after_roundtrip.yaml | 47 - ...8s.io.v1beta1.SelfSubjectAccessReview.json | 64 - ....k8s.io.v1beta1.SelfSubjectAccessReview.pb | Bin 343 -> 0 bytes ...8s.io.v1beta1.SelfSubjectAccessReview.yaml | 50 - ...elfSubjectRulesReview.after_roundtrip.json | 75 - ....SelfSubjectRulesReview.after_roundtrip.pb | Bin 312 -> 0 bytes ...elfSubjectRulesReview.after_roundtrip.yaml | 49 - ...k8s.io.v1beta1.SelfSubjectRulesReview.json | 76 - ...n.k8s.io.v1beta1.SelfSubjectRulesReview.pb | Bin 328 -> 0 bytes ...k8s.io.v1beta1.SelfSubjectRulesReview.yaml | 52 - ...1.SubjectAccessReview.after_roundtrip.json | 73 - ...ta1.SubjectAccessReview.after_roundtrip.pb | Bin 347 -> 0 bytes ...1.SubjectAccessReview.after_roundtrip.yaml | 54 - ...on.k8s.io.v1beta1.SubjectAccessReview.json | 74 - ...tion.k8s.io.v1beta1.SubjectAccessReview.pb | Bin 363 -> 0 bytes ...on.k8s.io.v1beta1.SubjectAccessReview.yaml | 57 - ...rizontalPodAutoscaler.after_roundtrip.json | 58 - ...HorizontalPodAutoscaler.after_roundtrip.pb | Bin 336 -> 0 bytes ...rizontalPodAutoscaler.after_roundtrip.yaml | 43 - ...utoscaling.v1.HorizontalPodAutoscaler.json | 59 - .../autoscaling.v1.HorizontalPodAutoscaler.pb | Bin 352 -> 0 bytes ...utoscaling.v1.HorizontalPodAutoscaler.yaml | 46 - .../autoscaling.v1.Scale.after_roundtrip.json | 49 - .../autoscaling.v1.Scale.after_roundtrip.pb | Bin 269 -> 0 bytes .../autoscaling.v1.Scale.after_roundtrip.yaml | 35 - .../v1.14.0/autoscaling.v1.Scale.json | 50 - .../testdata/v1.14.0/autoscaling.v1.Scale.pb | Bin 285 -> 0 bytes .../v1.14.0/autoscaling.v1.Scale.yaml | 38 - ...rizontalPodAutoscaler.after_roundtrip.json | 195 - ...HorizontalPodAutoscaler.after_roundtrip.pb | Bin 1587 -> 0 bytes ...rizontalPodAutoscaler.after_roundtrip.yaml | 129 - ...aling.v2beta1.HorizontalPodAutoscaler.json | 196 - ...scaling.v2beta1.HorizontalPodAutoscaler.pb | Bin 1603 -> 0 bytes ...aling.v2beta1.HorizontalPodAutoscaler.yaml | 132 - ...rizontalPodAutoscaler.after_roundtrip.json | 240 - ...HorizontalPodAutoscaler.after_roundtrip.pb | Bin 2070 -> 0 bytes ...rizontalPodAutoscaler.after_roundtrip.yaml | 159 - ...aling.v2beta2.HorizontalPodAutoscaler.json | 241 - ...scaling.v2beta2.HorizontalPodAutoscaler.pb | Bin 2086 -> 0 bytes ...aling.v2beta2.HorizontalPodAutoscaler.yaml | 162 - .../v1.14.0/batch.v1.Job.after_roundtrip.json | 1061 - .../v1.14.0/batch.v1.Job.after_roundtrip.pb | Bin 4793 -> 0 bytes .../v1.14.0/batch.v1.Job.after_roundtrip.yaml | 721 - .../api/testdata/v1.14.0/batch.v1.Job.json | 1063 - .../k8s/api/testdata/v1.14.0/batch.v1.Job.pb | Bin 4825 -> 0 bytes .../api/testdata/v1.14.0/batch.v1.Job.yaml | 727 - ...batch.v1beta1.CronJob.after_roundtrip.json | 1107 - .../batch.v1beta1.CronJob.after_roundtrip.pb | Bin 5218 -> 0 bytes ...batch.v1beta1.CronJob.after_roundtrip.yaml | 753 - .../v1.14.0/batch.v1beta1.CronJob.json | 1110 - .../testdata/v1.14.0/batch.v1beta1.CronJob.pb | Bin 5266 -> 0 bytes .../v1.14.0/batch.v1beta1.CronJob.yaml | 762 - ...h.v1beta1.JobTemplate.after_roundtrip.json | 1074 - ...tch.v1beta1.JobTemplate.after_roundtrip.pb | Bin 4700 -> 0 bytes ...h.v1beta1.JobTemplate.after_roundtrip.yaml | 729 - .../v1.14.0/batch.v1beta1.JobTemplate.json | 1077 - .../v1.14.0/batch.v1beta1.JobTemplate.pb | Bin 4748 -> 0 bytes .../v1.14.0/batch.v1beta1.JobTemplate.yaml | 738 - ...atch.v2alpha1.CronJob.after_roundtrip.json | 1107 - .../batch.v2alpha1.CronJob.after_roundtrip.pb | Bin 5219 -> 0 bytes ...atch.v2alpha1.CronJob.after_roundtrip.yaml | 753 - .../v1.14.0/batch.v2alpha1.CronJob.json | 1110 - .../v1.14.0/batch.v2alpha1.CronJob.pb | Bin 5267 -> 0 bytes .../v1.14.0/batch.v2alpha1.CronJob.yaml | 762 - ....v2alpha1.JobTemplate.after_roundtrip.json | 1074 - ...ch.v2alpha1.JobTemplate.after_roundtrip.pb | Bin 4701 -> 0 bytes ....v2alpha1.JobTemplate.after_roundtrip.yaml | 729 - .../v1.14.0/batch.v2alpha1.JobTemplate.json | 1077 - .../v1.14.0/batch.v2alpha1.JobTemplate.pb | Bin 4749 -> 0 bytes .../v1.14.0/batch.v2alpha1.JobTemplate.yaml | 738 - ...ificateSigningRequest.after_roundtrip.json | 69 - ...rtificateSigningRequest.after_roundtrip.pb | Bin 366 -> 0 bytes ...ificateSigningRequest.after_roundtrip.yaml | 48 - ....io.v1beta1.CertificateSigningRequest.json | 70 - ...8s.io.v1beta1.CertificateSigningRequest.pb | Bin 382 -> 0 bytes ....io.v1beta1.CertificateSigningRequest.yaml | 51 - ...ation.k8s.io.v1.Lease.after_roundtrip.json | 47 - ...ination.k8s.io.v1.Lease.after_roundtrip.pb | Bin 275 -> 0 bytes ...ation.k8s.io.v1.Lease.after_roundtrip.yaml | 34 - .../v1.14.0/coordination.k8s.io.v1.Lease.json | 48 - .../v1.14.0/coordination.k8s.io.v1.Lease.pb | Bin 291 -> 0 bytes .../v1.14.0/coordination.k8s.io.v1.Lease.yaml | 37 - ....k8s.io.v1beta1.Lease.after_roundtrip.json | 47 - ...on.k8s.io.v1beta1.Lease.after_roundtrip.pb | Bin 280 -> 0 bytes ....k8s.io.v1beta1.Lease.after_roundtrip.yaml | 34 - .../coordination.k8s.io.v1beta1.Lease.json | 48 - .../coordination.k8s.io.v1beta1.Lease.pb | Bin 296 -> 0 bytes .../coordination.k8s.io.v1beta1.Lease.yaml | 37 - .../testdata/v1.14.0/core.v1.APIGroup.json | 21 - .../api/testdata/v1.14.0/core.v1.APIGroup.pb | Bin 53 -> 0 bytes .../testdata/v1.14.0/core.v1.APIGroup.yaml | 12 - .../testdata/v1.14.0/core.v1.APIVersions.json | 13 - .../testdata/v1.14.0/core.v1.APIVersions.pb | Bin 40 -> 0 bytes .../testdata/v1.14.0/core.v1.APIVersions.yaml | 7 - .../core.v1.Binding.after_roundtrip.json | 51 - .../core.v1.Binding.after_roundtrip.pb | Bin 268 -> 0 bytes .../core.v1.Binding.after_roundtrip.yaml | 38 - .../api/testdata/v1.14.0/core.v1.Binding.json | 52 - .../api/testdata/v1.14.0/core.v1.Binding.pb | Bin 284 -> 0 bytes .../api/testdata/v1.14.0/core.v1.Binding.yaml | 41 - ...re.v1.ComponentStatus.after_roundtrip.json | 50 - ...core.v1.ComponentStatus.after_roundtrip.pb | Bin 306 -> 0 bytes ...re.v1.ComponentStatus.after_roundtrip.yaml | 35 - .../v1.14.0/core.v1.ComponentStatus.json | 51 - .../v1.14.0/core.v1.ComponentStatus.pb | Bin 322 -> 0 bytes .../v1.14.0/core.v1.ComponentStatus.yaml | 38 - .../core.v1.ConfigMap.after_roundtrip.json | 48 - .../core.v1.ConfigMap.after_roundtrip.pb | Bin 250 -> 0 bytes .../core.v1.ConfigMap.after_roundtrip.yaml | 34 - .../testdata/v1.14.0/core.v1.ConfigMap.json | 49 - .../api/testdata/v1.14.0/core.v1.ConfigMap.pb | Bin 266 -> 0 bytes .../testdata/v1.14.0/core.v1.ConfigMap.yaml | 37 - .../v1.14.0/core.v1.CreateOptions.json | 8 - .../testdata/v1.14.0/core.v1.CreateOptions.pb | Bin 37 -> 0 bytes .../v1.14.0/core.v1.CreateOptions.yaml | 5 - .../v1.14.0/core.v1.DeleteOptions.json | 14 - .../testdata/v1.14.0/core.v1.DeleteOptions.pb | Bin 96 -> 0 bytes .../v1.14.0/core.v1.DeleteOptions.yaml | 10 - .../core.v1.Endpoints.after_roundtrip.json | 85 - .../core.v1.Endpoints.after_roundtrip.pb | Bin 378 -> 0 bytes .../core.v1.Endpoints.after_roundtrip.yaml | 59 - .../testdata/v1.14.0/core.v1.Endpoints.json | 86 - .../api/testdata/v1.14.0/core.v1.Endpoints.pb | Bin 394 -> 0 bytes .../testdata/v1.14.0/core.v1.Endpoints.yaml | 62 - .../core.v1.Event.after_roundtrip.json | 79 - .../v1.14.0/core.v1.Event.after_roundtrip.pb | Bin 407 -> 0 bytes .../core.v1.Event.after_roundtrip.yaml | 63 - .../api/testdata/v1.14.0/core.v1.Event.json | 80 - .../k8s/api/testdata/v1.14.0/core.v1.Event.pb | Bin 423 -> 0 bytes .../api/testdata/v1.14.0/core.v1.Event.yaml | 66 - .../v1.14.0/core.v1.ExportOptions.json | 6 - .../testdata/v1.14.0/core.v1.ExportOptions.pb | Bin 35 -> 0 bytes .../v1.14.0/core.v1.ExportOptions.yaml | 4 - .../testdata/v1.14.0/core.v1.GetOptions.json | 5 - .../testdata/v1.14.0/core.v1.GetOptions.pb | Bin 31 -> 0 bytes .../testdata/v1.14.0/core.v1.GetOptions.yaml | 3 - .../core.v1.LimitRange.after_roundtrip.json | 64 - .../core.v1.LimitRange.after_roundtrip.pb | Bin 403 -> 0 bytes .../core.v1.LimitRange.after_roundtrip.yaml | 43 - .../testdata/v1.14.0/core.v1.LimitRange.json | 65 - .../testdata/v1.14.0/core.v1.LimitRange.pb | Bin 419 -> 0 bytes .../testdata/v1.14.0/core.v1.LimitRange.yaml | 46 - .../core.v1.ListOptions.after_roundtrip.pb | Bin 66 -> 0 bytes .../testdata/v1.14.0/core.v1.ListOptions.json | 11 - .../testdata/v1.14.0/core.v1.ListOptions.pb | Bin 64 -> 0 bytes .../testdata/v1.14.0/core.v1.ListOptions.yaml | 9 - .../core.v1.Namespace.after_roundtrip.json | 50 - .../core.v1.Namespace.after_roundtrip.pb | Bin 294 -> 0 bytes .../core.v1.Namespace.after_roundtrip.yaml | 35 - .../testdata/v1.14.0/core.v1.Namespace.json | 51 - .../api/testdata/v1.14.0/core.v1.Namespace.pb | Bin 310 -> 0 bytes .../testdata/v1.14.0/core.v1.Namespace.yaml | 38 - .../v1.14.0/core.v1.Node.after_roundtrip.json | 153 - .../v1.14.0/core.v1.Node.after_roundtrip.pb | Bin 736 -> 0 bytes .../v1.14.0/core.v1.Node.after_roundtrip.yaml | 108 - .../api/testdata/v1.14.0/core.v1.Node.json | 154 - .../k8s/api/testdata/v1.14.0/core.v1.Node.pb | Bin 752 -> 0 bytes .../api/testdata/v1.14.0/core.v1.Node.yaml | 111 - .../v1.14.0/core.v1.NodeProxyOptions.json | 5 - .../v1.14.0/core.v1.NodeProxyOptions.pb | Bin 37 -> 0 bytes .../v1.14.0/core.v1.NodeProxyOptions.yaml | 3 - .../v1.14.0/core.v1.PatchOptions.json | 9 - .../testdata/v1.14.0/core.v1.PatchOptions.pb | Bin 38 -> 0 bytes .../v1.14.0/core.v1.PatchOptions.yaml | 6 - ...e.v1.PersistentVolume.after_roundtrip.json | 288 - ...ore.v1.PersistentVolume.after_roundtrip.pb | Bin 1198 -> 0 bytes ...e.v1.PersistentVolume.after_roundtrip.yaml | 218 - .../v1.14.0/core.v1.PersistentVolume.json | 289 - .../v1.14.0/core.v1.PersistentVolume.pb | Bin 1214 -> 0 bytes .../v1.14.0/core.v1.PersistentVolume.yaml | 221 - ...PersistentVolumeClaim.after_roundtrip.json | 96 - ...1.PersistentVolumeClaim.after_roundtrip.pb | Bin 721 -> 0 bytes ...PersistentVolumeClaim.after_roundtrip.yaml | 66 - .../core.v1.PersistentVolumeClaim.json | 97 - .../v1.14.0/core.v1.PersistentVolumeClaim.pb | Bin 737 -> 0 bytes .../core.v1.PersistentVolumeClaim.yaml | 69 - .../v1.14.0/core.v1.Pod.after_roundtrip.json | 1088 - .../v1.14.0/core.v1.Pod.after_roundtrip.pb | Bin 4829 -> 0 bytes .../v1.14.0/core.v1.Pod.after_roundtrip.yaml | 744 - .../k8s/api/testdata/v1.14.0/core.v1.Pod.json | 1089 - .../k8s/api/testdata/v1.14.0/core.v1.Pod.pb | Bin 4845 -> 0 bytes .../k8s/api/testdata/v1.14.0/core.v1.Pod.yaml | 747 - .../v1.14.0/core.v1.PodAttachOptions.json | 7 - .../v1.14.0/core.v1.PodAttachOptions.pb | Bin 45 -> 0 bytes .../v1.14.0/core.v1.PodAttachOptions.yaml | 5 - .../v1.14.0/core.v1.PodExecOptions.json | 10 - .../v1.14.0/core.v1.PodExecOptions.pb | Bin 46 -> 0 bytes .../v1.14.0/core.v1.PodExecOptions.yaml | 7 - .../v1.14.0/core.v1.PodLogOptions.json | 10 - .../testdata/v1.14.0/core.v1.PodLogOptions.pb | Bin 71 -> 0 bytes .../v1.14.0/core.v1.PodLogOptions.yaml | 8 - .../core.v1.PodPortForwardOptions.json | 7 - .../v1.14.0/core.v1.PodPortForwardOptions.pb | Bin 50 -> 0 bytes .../core.v1.PodPortForwardOptions.yaml | 4 - .../v1.14.0/core.v1.PodProxyOptions.json | 5 - .../v1.14.0/core.v1.PodProxyOptions.pb | Bin 36 -> 0 bytes .../v1.14.0/core.v1.PodProxyOptions.yaml | 3 - ...re.v1.PodStatusResult.after_roundtrip.json | 153 - ...core.v1.PodStatusResult.after_roundtrip.pb | Bin 718 -> 0 bytes ...re.v1.PodStatusResult.after_roundtrip.yaml | 115 - .../v1.14.0/core.v1.PodStatusResult.json | 154 - .../v1.14.0/core.v1.PodStatusResult.pb | Bin 734 -> 0 bytes .../v1.14.0/core.v1.PodStatusResult.yaml | 118 - .../core.v1.PodTemplate.after_roundtrip.json | 1022 - .../core.v1.PodTemplate.after_roundtrip.pb | Bin 4467 -> 0 bytes .../core.v1.PodTemplate.after_roundtrip.yaml | 692 - .../testdata/v1.14.0/core.v1.PodTemplate.json | 1024 - .../testdata/v1.14.0/core.v1.PodTemplate.pb | Bin 4499 -> 0 bytes .../testdata/v1.14.0/core.v1.PodTemplate.yaml | 698 - ...re.v1.RangeAllocation.after_roundtrip.json | 44 - ...core.v1.RangeAllocation.after_roundtrip.pb | Bin 244 -> 0 bytes ...re.v1.RangeAllocation.after_roundtrip.yaml | 32 - .../v1.14.0/core.v1.RangeAllocation.json | 45 - .../v1.14.0/core.v1.RangeAllocation.pb | Bin 260 -> 0 bytes .../v1.14.0/core.v1.RangeAllocation.yaml | 35 - ...ReplicationController.after_roundtrip.json | 1044 - ...1.ReplicationController.after_roundtrip.pb | Bin 4612 -> 0 bytes ...ReplicationController.after_roundtrip.yaml | 708 - .../core.v1.ReplicationController.json | 1046 - .../v1.14.0/core.v1.ReplicationController.pb | Bin 4644 -> 0 bytes .../core.v1.ReplicationController.yaml | 714 - ...core.v1.ResourceQuota.after_roundtrip.json | 69 - .../core.v1.ResourceQuota.after_roundtrip.pb | Bin 386 -> 0 bytes ...core.v1.ResourceQuota.after_roundtrip.yaml | 46 - .../v1.14.0/core.v1.ResourceQuota.json | 70 - .../testdata/v1.14.0/core.v1.ResourceQuota.pb | Bin 402 -> 0 bytes .../v1.14.0/core.v1.ResourceQuota.yaml | 49 - .../core.v1.Secret.after_roundtrip.json | 49 - .../v1.14.0/core.v1.Secret.after_roundtrip.pb | Bin 265 -> 0 bytes .../core.v1.Secret.after_roundtrip.yaml | 35 - .../api/testdata/v1.14.0/core.v1.Secret.json | 50 - .../api/testdata/v1.14.0/core.v1.Secret.pb | Bin 281 -> 0 bytes .../api/testdata/v1.14.0/core.v1.Secret.yaml | 38 - .../v1.14.0/core.v1.SerializedReference.json | 13 - .../v1.14.0/core.v1.SerializedReference.pb | Bin 81 -> 0 bytes .../v1.14.0/core.v1.SerializedReference.yaml | 10 - .../core.v1.Service.after_roundtrip.json | 85 - .../core.v1.Service.after_roundtrip.pb | Bin 402 -> 0 bytes .../core.v1.Service.after_roundtrip.yaml | 59 - .../api/testdata/v1.14.0/core.v1.Service.json | 86 - .../api/testdata/v1.14.0/core.v1.Service.pb | Bin 418 -> 0 bytes .../api/testdata/v1.14.0/core.v1.Service.yaml | 62 - ...ore.v1.ServiceAccount.after_roundtrip.json | 59 - .../core.v1.ServiceAccount.after_roundtrip.pb | Bin 299 -> 0 bytes ...ore.v1.ServiceAccount.after_roundtrip.yaml | 41 - .../v1.14.0/core.v1.ServiceAccount.json | 60 - .../v1.14.0/core.v1.ServiceAccount.pb | Bin 315 -> 0 bytes .../v1.14.0/core.v1.ServiceAccount.yaml | 44 - .../v1.14.0/core.v1.ServiceProxyOptions.json | 5 - .../v1.14.0/core.v1.ServiceProxyOptions.pb | Bin 40 -> 0 bytes .../v1.14.0/core.v1.ServiceProxyOptions.yaml | 3 - .../api/testdata/v1.14.0/core.v1.Status.json | 25 - .../api/testdata/v1.14.0/core.v1.Status.pb | Bin 178 -> 0 bytes .../api/testdata/v1.14.0/core.v1.Status.yaml | 18 - .../v1.14.0/core.v1.UpdateOptions.json | 8 - .../testdata/v1.14.0/core.v1.UpdateOptions.pb | Bin 37 -> 0 bytes .../v1.14.0/core.v1.UpdateOptions.yaml | 5 - .../testdata/v1.14.0/core.v1.WatchEvent.json | 4 - .../testdata/v1.14.0/core.v1.WatchEvent.pb | Bin 121 -> 0 bytes .../testdata/v1.14.0/core.v1.WatchEvent.yaml | 8 - ....k8s.io.v1beta1.Event.after_roundtrip.json | 79 - ...ts.k8s.io.v1beta1.Event.after_roundtrip.pb | Bin 464 -> 0 bytes ....k8s.io.v1beta1.Event.after_roundtrip.yaml | 63 - .../v1.14.0/events.k8s.io.v1beta1.Event.json | 80 - .../v1.14.0/events.k8s.io.v1beta1.Event.pb | Bin 480 -> 0 bytes .../v1.14.0/events.k8s.io.v1beta1.Event.yaml | 66 - ...ons.v1beta1.DaemonSet.after_roundtrip.json | 1063 - ...sions.v1beta1.DaemonSet.after_roundtrip.pb | Bin 4618 -> 0 bytes ...ons.v1beta1.DaemonSet.after_roundtrip.yaml | 720 - .../v1.14.0/extensions.v1beta1.DaemonSet.json | 1065 - .../v1.14.0/extensions.v1beta1.DaemonSet.pb | Bin 4650 -> 0 bytes .../v1.14.0/extensions.v1beta1.DaemonSet.yaml | 726 - ...ns.v1beta1.Deployment.after_roundtrip.json | 1072 - ...ions.v1beta1.Deployment.after_roundtrip.pb | Bin 5176 -> 0 bytes ...ns.v1beta1.Deployment.after_roundtrip.yaml | 728 - .../extensions.v1beta1.Deployment.json | 1074 - .../v1.14.0/extensions.v1beta1.Deployment.pb | Bin 5208 -> 0 bytes .../extensions.v1beta1.Deployment.yaml | 734 - ...extensions.v1beta1.DeploymentRollback.json | 11 - .../extensions.v1beta1.DeploymentRollback.pb | Bin 75 -> 0 bytes ...extensions.v1beta1.DeploymentRollback.yaml | 7 - ...sions.v1beta1.Ingress.after_roundtrip.json | 82 - ...ensions.v1beta1.Ingress.after_roundtrip.pb | Bin 326 -> 0 bytes ...sions.v1beta1.Ingress.after_roundtrip.yaml | 51 - .../v1.14.0/extensions.v1beta1.Ingress.json | 83 - .../v1.14.0/extensions.v1beta1.Ingress.pb | Bin 342 -> 0 bytes .../v1.14.0/extensions.v1beta1.Ingress.yaml | 54 - ...v1beta1.NetworkPolicy.after_roundtrip.json | 155 - ...s.v1beta1.NetworkPolicy.after_roundtrip.pb | Bin 1280 -> 0 bytes ...v1beta1.NetworkPolicy.after_roundtrip.yaml | 89 - .../extensions.v1beta1.NetworkPolicy.json | 156 - .../extensions.v1beta1.NetworkPolicy.pb | Bin 1296 -> 0 bytes .../extensions.v1beta1.NetworkPolicy.yaml | 92 - ...ta1.PodSecurityPolicy.after_roundtrip.json | 137 - ...beta1.PodSecurityPolicy.after_roundtrip.pb | Bin 628 -> 0 bytes ...ta1.PodSecurityPolicy.after_roundtrip.yaml | 87 - .../extensions.v1beta1.PodSecurityPolicy.json | 138 - .../extensions.v1beta1.PodSecurityPolicy.pb | Bin 644 -> 0 bytes .../extensions.v1beta1.PodSecurityPolicy.yaml | 90 - ...ns.v1beta1.ReplicaSet.after_roundtrip.json | 1050 - ...ions.v1beta1.ReplicaSet.after_roundtrip.pb | Bin 4736 -> 0 bytes ...ns.v1beta1.ReplicaSet.after_roundtrip.yaml | 710 - .../extensions.v1beta1.ReplicaSet.json | 1052 - .../v1.14.0/extensions.v1beta1.ReplicaSet.pb | Bin 4768 -> 0 bytes .../extensions.v1beta1.ReplicaSet.yaml | 716 - ...ns.v1beta1.ReplicationControllerDummy.json | 4 - ...ions.v1beta1.ReplicationControllerDummy.pb | Bin 60 -> 0 bytes ...ns.v1beta1.ReplicationControllerDummy.yaml | 2 - ...ensions.v1beta1.Scale.after_roundtrip.json | 52 - ...xtensions.v1beta1.Scale.after_roundtrip.pb | Bin 283 -> 0 bytes ...ensions.v1beta1.Scale.after_roundtrip.yaml | 37 - .../v1.14.0/extensions.v1beta1.Scale.json | 53 - .../v1.14.0/extensions.v1beta1.Scale.pb | Bin 299 -> 0 bytes .../v1.14.0/extensions.v1beta1.Scale.yaml | 40 - ....v1alpha1.ImageReview.after_roundtrip.json | 60 - ...io.v1alpha1.ImageReview.after_roundtrip.pb | Bin 298 -> 0 bytes ....v1alpha1.ImageReview.after_roundtrip.yaml | 41 - ...agepolicy.k8s.io.v1alpha1.ImageReview.json | 61 - ...imagepolicy.k8s.io.v1alpha1.ImageReview.pb | Bin 314 -> 0 bytes ...agepolicy.k8s.io.v1alpha1.ImageReview.yaml | 44 - ...s.io.v1.NetworkPolicy.after_roundtrip.json | 155 - ...k8s.io.v1.NetworkPolicy.after_roundtrip.pb | Bin 1282 -> 0 bytes ...s.io.v1.NetworkPolicy.after_roundtrip.yaml | 89 - .../networking.k8s.io.v1.NetworkPolicy.json | 156 - .../networking.k8s.io.v1.NetworkPolicy.pb | Bin 1298 -> 0 bytes .../networking.k8s.io.v1.NetworkPolicy.yaml | 92 - ...8s.io.v1beta1.Ingress.after_roundtrip.json | 82 - ....k8s.io.v1beta1.Ingress.after_roundtrip.pb | Bin 333 -> 0 bytes ...8s.io.v1beta1.Ingress.after_roundtrip.yaml | 51 - .../networking.k8s.io.v1beta1.Ingress.json | 83 - .../networking.k8s.io.v1beta1.Ingress.pb | Bin 349 -> 0 bytes .../networking.k8s.io.v1beta1.Ingress.yaml | 54 - ...v1alpha1.RuntimeClass.after_roundtrip.json | 45 - ...o.v1alpha1.RuntimeClass.after_roundtrip.pb | Bin 258 -> 0 bytes ...v1alpha1.RuntimeClass.after_roundtrip.yaml | 32 - .../node.k8s.io.v1alpha1.RuntimeClass.json | 46 - .../node.k8s.io.v1alpha1.RuntimeClass.pb | Bin 274 -> 0 bytes .../node.k8s.io.v1alpha1.RuntimeClass.yaml | 35 - ....v1beta1.RuntimeClass.after_roundtrip.json | 43 - ...io.v1beta1.RuntimeClass.after_roundtrip.pb | Bin 255 -> 0 bytes ....v1beta1.RuntimeClass.after_roundtrip.yaml | 31 - .../node.k8s.io.v1beta1.RuntimeClass.json | 44 - .../node.k8s.io.v1beta1.RuntimeClass.pb | Bin 271 -> 0 bytes .../node.k8s.io.v1beta1.RuntimeClass.yaml | 34 - ...licy.v1beta1.Eviction.after_roundtrip.json | 54 - ...policy.v1beta1.Eviction.after_roundtrip.pb | Bin 334 -> 0 bytes ...licy.v1beta1.Eviction.after_roundtrip.yaml | 39 - .../v1.14.0/policy.v1beta1.Eviction.json | 55 - .../v1.14.0/policy.v1beta1.Eviction.pb | Bin 350 -> 0 bytes .../v1.14.0/policy.v1beta1.Eviction.yaml | 42 - ...1.PodDisruptionBudget.after_roundtrip.json | 68 - ...ta1.PodDisruptionBudget.after_roundtrip.pb | Bin 481 -> 0 bytes ...1.PodDisruptionBudget.after_roundtrip.yaml | 47 - .../policy.v1beta1.PodDisruptionBudget.json | 69 - .../policy.v1beta1.PodDisruptionBudget.pb | Bin 497 -> 0 bytes .../policy.v1beta1.PodDisruptionBudget.yaml | 50 - ...ta1.PodSecurityPolicy.after_roundtrip.json | 137 - ...beta1.PodSecurityPolicy.after_roundtrip.pb | Bin 624 -> 0 bytes ...ta1.PodSecurityPolicy.after_roundtrip.yaml | 87 - .../policy.v1beta1.PodSecurityPolicy.json | 138 - .../policy.v1beta1.PodSecurityPolicy.pb | Bin 640 -> 0 bytes .../policy.v1beta1.PodSecurityPolicy.yaml | 90 - ...k8s.io.v1.ClusterRole.after_roundtrip.json | 79 - ...n.k8s.io.v1.ClusterRole.after_roundtrip.pb | Bin 483 -> 0 bytes ...k8s.io.v1.ClusterRole.after_roundtrip.yaml | 50 - ...c.authorization.k8s.io.v1.ClusterRole.json | 80 - ...bac.authorization.k8s.io.v1.ClusterRole.pb | Bin 499 -> 0 bytes ...c.authorization.k8s.io.v1.ClusterRole.yaml | 53 - ...v1.ClusterRoleBinding.after_roundtrip.json | 55 - ...o.v1.ClusterRoleBinding.after_roundtrip.pb | Bin 298 -> 0 bytes ...v1.ClusterRoleBinding.after_roundtrip.yaml | 39 - ...rization.k8s.io.v1.ClusterRoleBinding.json | 56 - ...horization.k8s.io.v1.ClusterRoleBinding.pb | Bin 314 -> 0 bytes ...rization.k8s.io.v1.ClusterRoleBinding.yaml | 42 - ...zation.k8s.io.v1.Role.after_roundtrip.json | 61 - ...rization.k8s.io.v1.Role.after_roundtrip.pb | Bin 274 -> 0 bytes ...zation.k8s.io.v1.Role.after_roundtrip.yaml | 41 - .../rbac.authorization.k8s.io.v1.Role.json | 62 - .../rbac.authorization.k8s.io.v1.Role.pb | Bin 290 -> 0 bytes .../rbac.authorization.k8s.io.v1.Role.yaml | 44 - ...k8s.io.v1.RoleBinding.after_roundtrip.json | 55 - ...n.k8s.io.v1.RoleBinding.after_roundtrip.pb | Bin 291 -> 0 bytes ...k8s.io.v1.RoleBinding.after_roundtrip.yaml | 39 - ...c.authorization.k8s.io.v1.RoleBinding.json | 56 - ...bac.authorization.k8s.io.v1.RoleBinding.pb | Bin 307 -> 0 bytes ...c.authorization.k8s.io.v1.RoleBinding.yaml | 42 - ....v1alpha1.ClusterRole.after_roundtrip.json | 79 - ...io.v1alpha1.ClusterRole.after_roundtrip.pb | Bin 489 -> 0 bytes ....v1alpha1.ClusterRole.after_roundtrip.yaml | 50 - ...orization.k8s.io.v1alpha1.ClusterRole.json | 80 - ...thorization.k8s.io.v1alpha1.ClusterRole.pb | Bin 505 -> 0 bytes ...orization.k8s.io.v1alpha1.ClusterRole.yaml | 53 - ...a1.ClusterRoleBinding.after_roundtrip.json | 55 - ...pha1.ClusterRoleBinding.after_roundtrip.pb | Bin 304 -> 0 bytes ...a1.ClusterRoleBinding.after_roundtrip.yaml | 39 - ...on.k8s.io.v1alpha1.ClusterRoleBinding.json | 56 - ...tion.k8s.io.v1alpha1.ClusterRoleBinding.pb | Bin 320 -> 0 bytes ...on.k8s.io.v1alpha1.ClusterRoleBinding.yaml | 42 - ....k8s.io.v1alpha1.Role.after_roundtrip.json | 61 - ...on.k8s.io.v1alpha1.Role.after_roundtrip.pb | Bin 280 -> 0 bytes ....k8s.io.v1alpha1.Role.after_roundtrip.yaml | 41 - ...ac.authorization.k8s.io.v1alpha1.Role.json | 62 - ...rbac.authorization.k8s.io.v1alpha1.Role.pb | Bin 296 -> 0 bytes ...ac.authorization.k8s.io.v1alpha1.Role.yaml | 44 - ....v1alpha1.RoleBinding.after_roundtrip.json | 55 - ...io.v1alpha1.RoleBinding.after_roundtrip.pb | Bin 297 -> 0 bytes ....v1alpha1.RoleBinding.after_roundtrip.yaml | 39 - ...orization.k8s.io.v1alpha1.RoleBinding.json | 56 - ...thorization.k8s.io.v1alpha1.RoleBinding.pb | Bin 313 -> 0 bytes ...orization.k8s.io.v1alpha1.RoleBinding.yaml | 42 - ...o.v1beta1.ClusterRole.after_roundtrip.json | 79 - ....io.v1beta1.ClusterRole.after_roundtrip.pb | Bin 488 -> 0 bytes ...o.v1beta1.ClusterRole.after_roundtrip.yaml | 50 - ...horization.k8s.io.v1beta1.ClusterRole.json | 80 - ...uthorization.k8s.io.v1beta1.ClusterRole.pb | Bin 504 -> 0 bytes ...horization.k8s.io.v1beta1.ClusterRole.yaml | 53 - ...a1.ClusterRoleBinding.after_roundtrip.json | 55 - ...eta1.ClusterRoleBinding.after_roundtrip.pb | Bin 303 -> 0 bytes ...a1.ClusterRoleBinding.after_roundtrip.yaml | 39 - ...ion.k8s.io.v1beta1.ClusterRoleBinding.json | 56 - ...ation.k8s.io.v1beta1.ClusterRoleBinding.pb | Bin 319 -> 0 bytes ...ion.k8s.io.v1beta1.ClusterRoleBinding.yaml | 42 - ...n.k8s.io.v1beta1.Role.after_roundtrip.json | 61 - ...ion.k8s.io.v1beta1.Role.after_roundtrip.pb | Bin 279 -> 0 bytes ...n.k8s.io.v1beta1.Role.after_roundtrip.yaml | 41 - ...bac.authorization.k8s.io.v1beta1.Role.json | 62 - .../rbac.authorization.k8s.io.v1beta1.Role.pb | Bin 295 -> 0 bytes ...bac.authorization.k8s.io.v1beta1.Role.yaml | 44 - ...o.v1beta1.RoleBinding.after_roundtrip.json | 55 - ....io.v1beta1.RoleBinding.after_roundtrip.pb | Bin 296 -> 0 bytes ...o.v1beta1.RoleBinding.after_roundtrip.yaml | 39 - ...horization.k8s.io.v1beta1.RoleBinding.json | 56 - ...uthorization.k8s.io.v1beta1.RoleBinding.pb | Bin 312 -> 0 bytes ...horization.k8s.io.v1beta1.RoleBinding.yaml | 42 - ...s.io.v1.PriorityClass.after_roundtrip.json | 44 - ...k8s.io.v1.PriorityClass.after_roundtrip.pb | Bin 270 -> 0 bytes ...s.io.v1.PriorityClass.after_roundtrip.yaml | 32 - .../scheduling.k8s.io.v1.PriorityClass.json | 45 - .../scheduling.k8s.io.v1.PriorityClass.pb | Bin 286 -> 0 bytes .../scheduling.k8s.io.v1.PriorityClass.yaml | 35 - ...1alpha1.PriorityClass.after_roundtrip.json | 44 - ....v1alpha1.PriorityClass.after_roundtrip.pb | Bin 276 -> 0 bytes ...1alpha1.PriorityClass.after_roundtrip.yaml | 32 - ...eduling.k8s.io.v1alpha1.PriorityClass.json | 45 - ...cheduling.k8s.io.v1alpha1.PriorityClass.pb | Bin 292 -> 0 bytes ...eduling.k8s.io.v1alpha1.PriorityClass.yaml | 35 - ...v1beta1.PriorityClass.after_roundtrip.json | 44 - ...o.v1beta1.PriorityClass.after_roundtrip.pb | Bin 275 -> 0 bytes ...v1beta1.PriorityClass.after_roundtrip.yaml | 32 - ...heduling.k8s.io.v1beta1.PriorityClass.json | 45 - ...scheduling.k8s.io.v1beta1.PriorityClass.pb | Bin 291 -> 0 bytes ...heduling.k8s.io.v1beta1.PriorityClass.yaml | 35 - ...io.v1alpha1.PodPreset.after_roundtrip.json | 379 - ...s.io.v1alpha1.PodPreset.after_roundtrip.pb | Bin 1444 -> 0 bytes ...io.v1alpha1.PodPreset.after_roundtrip.yaml | 269 - .../settings.k8s.io.v1alpha1.PodPreset.json | 380 - .../settings.k8s.io.v1alpha1.PodPreset.pb | Bin 1460 -> 0 bytes .../settings.k8s.io.v1alpha1.PodPreset.yaml | 272 - ...8s.io.v1.StorageClass.after_roundtrip.json | 64 - ....k8s.io.v1.StorageClass.after_roundtrip.pb | Bin 321 -> 0 bytes ...8s.io.v1.StorageClass.after_roundtrip.yaml | 43 - .../storage.k8s.io.v1.StorageClass.json | 65 - .../v1.14.0/storage.k8s.io.v1.StorageClass.pb | Bin 337 -> 0 bytes .../storage.k8s.io.v1.StorageClass.yaml | 46 - ...o.v1.VolumeAttachment.after_roundtrip.json | 63 - ....io.v1.VolumeAttachment.after_roundtrip.pb | Bin 315 -> 0 bytes ...o.v1.VolumeAttachment.after_roundtrip.yaml | 45 - .../storage.k8s.io.v1.VolumeAttachment.json | 64 - .../storage.k8s.io.v1.VolumeAttachment.pb | Bin 331 -> 0 bytes .../storage.k8s.io.v1.VolumeAttachment.yaml | 48 - ...pha1.VolumeAttachment.after_roundtrip.json | 63 - ...alpha1.VolumeAttachment.after_roundtrip.pb | Bin 321 -> 0 bytes ...pha1.VolumeAttachment.after_roundtrip.yaml | 45 - ...rage.k8s.io.v1alpha1.VolumeAttachment.json | 64 - ...torage.k8s.io.v1alpha1.VolumeAttachment.pb | Bin 337 -> 0 bytes ...rage.k8s.io.v1alpha1.VolumeAttachment.yaml | 48 - ....io.v1beta1.CSIDriver.after_roundtrip.json | 46 - ...8s.io.v1beta1.CSIDriver.after_roundtrip.pb | Bin 257 -> 0 bytes ....io.v1beta1.CSIDriver.after_roundtrip.yaml | 33 - .../storage.k8s.io.v1beta1.CSIDriver.json | 47 - .../storage.k8s.io.v1beta1.CSIDriver.pb | Bin 273 -> 0 bytes .../storage.k8s.io.v1beta1.CSIDriver.yaml | 36 - ...8s.io.v1beta1.CSINode.after_roundtrip.json | 53 - ....k8s.io.v1beta1.CSINode.after_roundtrip.pb | Bin 265 -> 0 bytes ...8s.io.v1beta1.CSINode.after_roundtrip.yaml | 36 - .../storage.k8s.io.v1beta1.CSINode.json | 54 - .../v1.14.0/storage.k8s.io.v1beta1.CSINode.pb | Bin 281 -> 0 bytes .../storage.k8s.io.v1beta1.CSINode.yaml | 39 - ....v1beta1.StorageClass.after_roundtrip.json | 64 - ...io.v1beta1.StorageClass.after_roundtrip.pb | Bin 326 -> 0 bytes ....v1beta1.StorageClass.after_roundtrip.yaml | 43 - .../storage.k8s.io.v1beta1.StorageClass.json | 65 - .../storage.k8s.io.v1beta1.StorageClass.pb | Bin 342 -> 0 bytes .../storage.k8s.io.v1beta1.StorageClass.yaml | 46 - ...eta1.VolumeAttachment.after_roundtrip.json | 63 - ...1beta1.VolumeAttachment.after_roundtrip.pb | Bin 320 -> 0 bytes ...eta1.VolumeAttachment.after_roundtrip.yaml | 45 - ...orage.k8s.io.v1beta1.VolumeAttachment.json | 64 - ...storage.k8s.io.v1beta1.VolumeAttachment.pb | Bin 336 -> 0 bytes ...orage.k8s.io.v1beta1.VolumeAttachment.yaml | 48 - ...ission.k8s.io.v1beta1.AdmissionReview.json | 81 - ...dmission.k8s.io.v1beta1.AdmissionReview.pb | Bin 732 -> 0 bytes ...ission.k8s.io.v1beta1.AdmissionReview.yaml | 80 - ...gWebhookConfiguration.after_roundtrip.json | 107 - ...ingWebhookConfiguration.after_roundtrip.pb | Bin 915 -> 0 bytes ...gWebhookConfiguration.after_roundtrip.yaml | 71 - ....v1beta1.MutatingWebhookConfiguration.json | 108 - ...io.v1beta1.MutatingWebhookConfiguration.pb | Bin 931 -> 0 bytes ....v1beta1.MutatingWebhookConfiguration.yaml | 74 - ...gWebhookConfiguration.after_roundtrip.json | 106 - ...ingWebhookConfiguration.after_roundtrip.pb | Bin 910 -> 0 bytes ...gWebhookConfiguration.after_roundtrip.yaml | 70 - ...1beta1.ValidatingWebhookConfiguration.json | 107 - ....v1beta1.ValidatingWebhookConfiguration.pb | Bin 926 -> 0 bytes ...1beta1.ValidatingWebhookConfiguration.yaml | 73 - ...v1.ControllerRevision.after_roundtrip.json | 44 - ...s.v1.ControllerRevision.after_roundtrip.pb | Bin 357 -> 0 bytes ...v1.ControllerRevision.after_roundtrip.yaml | 38 - .../v1.15.0/apps.v1.ControllerRevision.json | 45 - .../v1.15.0/apps.v1.ControllerRevision.pb | Bin 373 -> 0 bytes .../v1.15.0/apps.v1.ControllerRevision.yaml | 41 - .../apps.v1.DaemonSet.after_roundtrip.json | 1078 - .../apps.v1.DaemonSet.after_roundtrip.pb | Bin 4937 -> 0 bytes .../apps.v1.DaemonSet.after_roundtrip.yaml | 731 - .../testdata/v1.15.0/apps.v1.DaemonSet.json | 1080 - .../api/testdata/v1.15.0/apps.v1.DaemonSet.pb | Bin 4969 -> 0 bytes .../testdata/v1.15.0/apps.v1.DaemonSet.yaml | 737 - .../apps.v1.Deployment.after_roundtrip.json | 1086 - .../apps.v1.Deployment.after_roundtrip.pb | Bin 5155 -> 0 bytes .../apps.v1.Deployment.after_roundtrip.yaml | 738 - .../testdata/v1.15.0/apps.v1.Deployment.json | 1088 - .../testdata/v1.15.0/apps.v1.Deployment.pb | Bin 5187 -> 0 bytes .../testdata/v1.15.0/apps.v1.Deployment.yaml | 744 - .../apps.v1.ReplicaSet.after_roundtrip.json | 1060 - .../apps.v1.ReplicaSet.after_roundtrip.pb | Bin 4875 -> 0 bytes .../apps.v1.ReplicaSet.after_roundtrip.yaml | 718 - .../testdata/v1.15.0/apps.v1.ReplicaSet.json | 1062 - .../testdata/v1.15.0/apps.v1.ReplicaSet.pb | Bin 4907 -> 0 bytes .../testdata/v1.15.0/apps.v1.ReplicaSet.yaml | 724 - .../apps.v1.StatefulSet.after_roundtrip.json | 1179 - .../apps.v1.StatefulSet.after_roundtrip.pb | Bin 5664 -> 0 bytes .../apps.v1.StatefulSet.after_roundtrip.yaml | 801 - .../testdata/v1.15.0/apps.v1.StatefulSet.json | 1182 - .../testdata/v1.15.0/apps.v1.StatefulSet.pb | Bin 5714 -> 0 bytes .../testdata/v1.15.0/apps.v1.StatefulSet.yaml | 810 - ...a1.ControllerRevision.after_roundtrip.json | 44 - ...eta1.ControllerRevision.after_roundtrip.pb | Bin 362 -> 0 bytes ...a1.ControllerRevision.after_roundtrip.yaml | 38 - .../apps.v1beta1.ControllerRevision.json | 45 - .../apps.v1beta1.ControllerRevision.pb | Bin 378 -> 0 bytes .../apps.v1beta1.ControllerRevision.yaml | 41 - ...ps.v1beta1.Deployment.after_roundtrip.json | 1089 - ...apps.v1beta1.Deployment.after_roundtrip.pb | Bin 5156 -> 0 bytes ...ps.v1beta1.Deployment.after_roundtrip.yaml | 740 - .../v1.15.0/apps.v1beta1.Deployment.json | 1091 - .../v1.15.0/apps.v1beta1.Deployment.pb | Bin 5188 -> 0 bytes .../v1.15.0/apps.v1beta1.Deployment.yaml | 746 - .../apps.v1beta1.DeploymentRollback.json | 11 - .../apps.v1beta1.DeploymentRollback.pb | Bin 69 -> 0 bytes .../apps.v1beta1.DeploymentRollback.yaml | 7 - .../apps.v1beta1.Scale.after_roundtrip.json | 52 - .../apps.v1beta1.Scale.after_roundtrip.pb | Bin 277 -> 0 bytes .../apps.v1beta1.Scale.after_roundtrip.yaml | 37 - .../testdata/v1.15.0/apps.v1beta1.Scale.json | 53 - .../testdata/v1.15.0/apps.v1beta1.Scale.pb | Bin 293 -> 0 bytes .../testdata/v1.15.0/apps.v1beta1.Scale.yaml | 40 - ...s.v1beta1.StatefulSet.after_roundtrip.json | 1179 - ...pps.v1beta1.StatefulSet.after_roundtrip.pb | Bin 5712 -> 0 bytes ...s.v1beta1.StatefulSet.after_roundtrip.yaml | 801 - .../v1.15.0/apps.v1beta1.StatefulSet.json | 1182 - .../v1.15.0/apps.v1beta1.StatefulSet.pb | Bin 5762 -> 0 bytes .../v1.15.0/apps.v1beta1.StatefulSet.yaml | 810 - ...a2.ControllerRevision.after_roundtrip.json | 44 - ...eta2.ControllerRevision.after_roundtrip.pb | Bin 362 -> 0 bytes ...a2.ControllerRevision.after_roundtrip.yaml | 38 - .../apps.v1beta2.ControllerRevision.json | 45 - .../apps.v1beta2.ControllerRevision.pb | Bin 378 -> 0 bytes .../apps.v1beta2.ControllerRevision.yaml | 41 - ...pps.v1beta2.DaemonSet.after_roundtrip.json | 1078 - .../apps.v1beta2.DaemonSet.after_roundtrip.pb | Bin 4942 -> 0 bytes ...pps.v1beta2.DaemonSet.after_roundtrip.yaml | 731 - .../v1.15.0/apps.v1beta2.DaemonSet.json | 1080 - .../v1.15.0/apps.v1beta2.DaemonSet.pb | Bin 4974 -> 0 bytes .../v1.15.0/apps.v1beta2.DaemonSet.yaml | 737 - ...ps.v1beta2.Deployment.after_roundtrip.json | 1086 - ...apps.v1beta2.Deployment.after_roundtrip.pb | Bin 5160 -> 0 bytes ...ps.v1beta2.Deployment.after_roundtrip.yaml | 738 - .../v1.15.0/apps.v1beta2.Deployment.json | 1088 - .../v1.15.0/apps.v1beta2.Deployment.pb | Bin 5192 -> 0 bytes .../v1.15.0/apps.v1beta2.Deployment.yaml | 744 - ...ps.v1beta2.ReplicaSet.after_roundtrip.json | 1060 - ...apps.v1beta2.ReplicaSet.after_roundtrip.pb | Bin 4880 -> 0 bytes ...ps.v1beta2.ReplicaSet.after_roundtrip.yaml | 718 - .../v1.15.0/apps.v1beta2.ReplicaSet.json | 1062 - .../v1.15.0/apps.v1beta2.ReplicaSet.pb | Bin 4912 -> 0 bytes .../v1.15.0/apps.v1beta2.ReplicaSet.yaml | 724 - .../apps.v1beta2.Scale.after_roundtrip.json | 52 - .../apps.v1beta2.Scale.after_roundtrip.pb | Bin 277 -> 0 bytes .../apps.v1beta2.Scale.after_roundtrip.yaml | 37 - .../testdata/v1.15.0/apps.v1beta2.Scale.json | 53 - .../testdata/v1.15.0/apps.v1beta2.Scale.pb | Bin 293 -> 0 bytes .../testdata/v1.15.0/apps.v1beta2.Scale.yaml | 40 - ...s.v1beta2.StatefulSet.after_roundtrip.json | 1179 - ...pps.v1beta2.StatefulSet.after_roundtrip.pb | Bin 5669 -> 0 bytes ...s.v1beta2.StatefulSet.after_roundtrip.yaml | 801 - .../v1.15.0/apps.v1beta2.StatefulSet.json | 1182 - .../v1.15.0/apps.v1beta2.StatefulSet.pb | Bin 5719 -> 0 bytes .../v1.15.0/apps.v1beta2.StatefulSet.yaml | 810 - ...8s.io.v1.TokenRequest.after_roundtrip.json | 58 - ....k8s.io.v1.TokenRequest.after_roundtrip.pb | Bin 321 -> 0 bytes ...8s.io.v1.TokenRequest.after_roundtrip.yaml | 42 - ...authentication.k8s.io.v1.TokenRequest.json | 59 - .../authentication.k8s.io.v1.TokenRequest.pb | Bin 337 -> 0 bytes ...authentication.k8s.io.v1.TokenRequest.yaml | 45 - ...k8s.io.v1.TokenReview.after_roundtrip.json | 66 - ...n.k8s.io.v1.TokenReview.after_roundtrip.pb | Bin 303 -> 0 bytes ...k8s.io.v1.TokenReview.after_roundtrip.yaml | 46 - .../authentication.k8s.io.v1.TokenReview.json | 67 - .../authentication.k8s.io.v1.TokenReview.pb | Bin 319 -> 0 bytes .../authentication.k8s.io.v1.TokenReview.yaml | 49 - ...o.v1beta1.TokenReview.after_roundtrip.json | 66 - ....io.v1beta1.TokenReview.after_roundtrip.pb | Bin 308 -> 0 bytes ...o.v1beta1.TokenReview.after_roundtrip.yaml | 46 - ...entication.k8s.io.v1beta1.TokenReview.json | 67 - ...thentication.k8s.io.v1beta1.TokenReview.pb | Bin 324 -> 0 bytes ...entication.k8s.io.v1beta1.TokenReview.yaml | 49 - ...alSubjectAccessReview.after_roundtrip.json | 73 - ...ocalSubjectAccessReview.after_roundtrip.pb | Bin 347 -> 0 bytes ...alSubjectAccessReview.after_roundtrip.yaml | 54 - ...on.k8s.io.v1.LocalSubjectAccessReview.json | 74 - ...tion.k8s.io.v1.LocalSubjectAccessReview.pb | Bin 363 -> 0 bytes ...on.k8s.io.v1.LocalSubjectAccessReview.yaml | 57 - ...lfSubjectAccessReview.after_roundtrip.json | 63 - ...SelfSubjectAccessReview.after_roundtrip.pb | Bin 322 -> 0 bytes ...lfSubjectAccessReview.after_roundtrip.yaml | 47 - ...ion.k8s.io.v1.SelfSubjectAccessReview.json | 64 - ...ation.k8s.io.v1.SelfSubjectAccessReview.pb | Bin 338 -> 0 bytes ...ion.k8s.io.v1.SelfSubjectAccessReview.yaml | 50 - ...elfSubjectRulesReview.after_roundtrip.json | 75 - ....SelfSubjectRulesReview.after_roundtrip.pb | Bin 307 -> 0 bytes ...elfSubjectRulesReview.after_roundtrip.yaml | 49 - ...tion.k8s.io.v1.SelfSubjectRulesReview.json | 76 - ...zation.k8s.io.v1.SelfSubjectRulesReview.pb | Bin 323 -> 0 bytes ...tion.k8s.io.v1.SelfSubjectRulesReview.yaml | 52 - ...1.SubjectAccessReview.after_roundtrip.json | 73 - ....v1.SubjectAccessReview.after_roundtrip.pb | Bin 342 -> 0 bytes ...1.SubjectAccessReview.after_roundtrip.yaml | 54 - ...ization.k8s.io.v1.SubjectAccessReview.json | 74 - ...orization.k8s.io.v1.SubjectAccessReview.pb | Bin 358 -> 0 bytes ...ization.k8s.io.v1.SubjectAccessReview.yaml | 57 - ...alSubjectAccessReview.after_roundtrip.json | 73 - ...ocalSubjectAccessReview.after_roundtrip.pb | Bin 352 -> 0 bytes ...alSubjectAccessReview.after_roundtrip.yaml | 54 - ...s.io.v1beta1.LocalSubjectAccessReview.json | 74 - ...k8s.io.v1beta1.LocalSubjectAccessReview.pb | Bin 368 -> 0 bytes ...s.io.v1beta1.LocalSubjectAccessReview.yaml | 57 - ...lfSubjectAccessReview.after_roundtrip.json | 63 - ...SelfSubjectAccessReview.after_roundtrip.pb | Bin 327 -> 0 bytes ...lfSubjectAccessReview.after_roundtrip.yaml | 47 - ...8s.io.v1beta1.SelfSubjectAccessReview.json | 64 - ....k8s.io.v1beta1.SelfSubjectAccessReview.pb | Bin 343 -> 0 bytes ...8s.io.v1beta1.SelfSubjectAccessReview.yaml | 50 - ...elfSubjectRulesReview.after_roundtrip.json | 75 - ....SelfSubjectRulesReview.after_roundtrip.pb | Bin 312 -> 0 bytes ...elfSubjectRulesReview.after_roundtrip.yaml | 49 - ...k8s.io.v1beta1.SelfSubjectRulesReview.json | 76 - ...n.k8s.io.v1beta1.SelfSubjectRulesReview.pb | Bin 328 -> 0 bytes ...k8s.io.v1beta1.SelfSubjectRulesReview.yaml | 52 - ...1.SubjectAccessReview.after_roundtrip.json | 73 - ...ta1.SubjectAccessReview.after_roundtrip.pb | Bin 347 -> 0 bytes ...1.SubjectAccessReview.after_roundtrip.yaml | 54 - ...on.k8s.io.v1beta1.SubjectAccessReview.json | 74 - ...tion.k8s.io.v1beta1.SubjectAccessReview.pb | Bin 363 -> 0 bytes ...on.k8s.io.v1beta1.SubjectAccessReview.yaml | 57 - ...rizontalPodAutoscaler.after_roundtrip.json | 58 - ...HorizontalPodAutoscaler.after_roundtrip.pb | Bin 336 -> 0 bytes ...rizontalPodAutoscaler.after_roundtrip.yaml | 43 - ...utoscaling.v1.HorizontalPodAutoscaler.json | 59 - .../autoscaling.v1.HorizontalPodAutoscaler.pb | Bin 352 -> 0 bytes ...utoscaling.v1.HorizontalPodAutoscaler.yaml | 46 - .../autoscaling.v1.Scale.after_roundtrip.json | 49 - .../autoscaling.v1.Scale.after_roundtrip.pb | Bin 269 -> 0 bytes .../autoscaling.v1.Scale.after_roundtrip.yaml | 35 - .../v1.15.0/autoscaling.v1.Scale.json | 50 - .../testdata/v1.15.0/autoscaling.v1.Scale.pb | Bin 285 -> 0 bytes .../v1.15.0/autoscaling.v1.Scale.yaml | 38 - ...rizontalPodAutoscaler.after_roundtrip.json | 195 - ...HorizontalPodAutoscaler.after_roundtrip.pb | Bin 1587 -> 0 bytes ...rizontalPodAutoscaler.after_roundtrip.yaml | 129 - ...aling.v2beta1.HorizontalPodAutoscaler.json | 196 - ...scaling.v2beta1.HorizontalPodAutoscaler.pb | Bin 1603 -> 0 bytes ...aling.v2beta1.HorizontalPodAutoscaler.yaml | 132 - ...rizontalPodAutoscaler.after_roundtrip.json | 240 - ...HorizontalPodAutoscaler.after_roundtrip.pb | Bin 2070 -> 0 bytes ...rizontalPodAutoscaler.after_roundtrip.yaml | 159 - ...aling.v2beta2.HorizontalPodAutoscaler.json | 241 - ...scaling.v2beta2.HorizontalPodAutoscaler.pb | Bin 2086 -> 0 bytes ...aling.v2beta2.HorizontalPodAutoscaler.yaml | 162 - .../v1.15.0/batch.v1.Job.after_roundtrip.json | 1070 - .../v1.15.0/batch.v1.Job.after_roundtrip.pb | Bin 4754 -> 0 bytes .../v1.15.0/batch.v1.Job.after_roundtrip.yaml | 727 - .../api/testdata/v1.15.0/batch.v1.Job.json | 1072 - .../k8s/api/testdata/v1.15.0/batch.v1.Job.pb | Bin 4786 -> 0 bytes .../api/testdata/v1.15.0/batch.v1.Job.yaml | 733 - ...batch.v1beta1.CronJob.after_roundtrip.json | 1114 - .../batch.v1beta1.CronJob.after_roundtrip.pb | Bin 5206 -> 0 bytes ...batch.v1beta1.CronJob.after_roundtrip.yaml | 759 - .../v1.15.0/batch.v1beta1.CronJob.json | 1117 - .../testdata/v1.15.0/batch.v1beta1.CronJob.pb | Bin 5254 -> 0 bytes .../v1.15.0/batch.v1beta1.CronJob.yaml | 768 - ...h.v1beta1.JobTemplate.after_roundtrip.json | 1089 - ...tch.v1beta1.JobTemplate.after_roundtrip.pb | Bin 4949 -> 0 bytes ...h.v1beta1.JobTemplate.after_roundtrip.yaml | 740 - .../v1.15.0/batch.v1beta1.JobTemplate.json | 1092 - .../v1.15.0/batch.v1beta1.JobTemplate.pb | Bin 4997 -> 0 bytes .../v1.15.0/batch.v1beta1.JobTemplate.yaml | 749 - ...atch.v2alpha1.CronJob.after_roundtrip.json | 1114 - .../batch.v2alpha1.CronJob.after_roundtrip.pb | Bin 5207 -> 0 bytes ...atch.v2alpha1.CronJob.after_roundtrip.yaml | 759 - .../v1.15.0/batch.v2alpha1.CronJob.json | 1117 - .../v1.15.0/batch.v2alpha1.CronJob.pb | Bin 5255 -> 0 bytes .../v1.15.0/batch.v2alpha1.CronJob.yaml | 768 - ....v2alpha1.JobTemplate.after_roundtrip.json | 1089 - ...ch.v2alpha1.JobTemplate.after_roundtrip.pb | Bin 4950 -> 0 bytes ....v2alpha1.JobTemplate.after_roundtrip.yaml | 740 - .../v1.15.0/batch.v2alpha1.JobTemplate.json | 1092 - .../v1.15.0/batch.v2alpha1.JobTemplate.pb | Bin 4998 -> 0 bytes .../v1.15.0/batch.v2alpha1.JobTemplate.yaml | 749 - ...ificateSigningRequest.after_roundtrip.json | 69 - ...rtificateSigningRequest.after_roundtrip.pb | Bin 366 -> 0 bytes ...ificateSigningRequest.after_roundtrip.yaml | 48 - ....io.v1beta1.CertificateSigningRequest.json | 70 - ...8s.io.v1beta1.CertificateSigningRequest.pb | Bin 382 -> 0 bytes ....io.v1beta1.CertificateSigningRequest.yaml | 51 - ...ation.k8s.io.v1.Lease.after_roundtrip.json | 47 - ...ination.k8s.io.v1.Lease.after_roundtrip.pb | Bin 275 -> 0 bytes ...ation.k8s.io.v1.Lease.after_roundtrip.yaml | 34 - .../v1.15.0/coordination.k8s.io.v1.Lease.json | 48 - .../v1.15.0/coordination.k8s.io.v1.Lease.pb | Bin 291 -> 0 bytes .../v1.15.0/coordination.k8s.io.v1.Lease.yaml | 37 - ....k8s.io.v1beta1.Lease.after_roundtrip.json | 47 - ...on.k8s.io.v1beta1.Lease.after_roundtrip.pb | Bin 280 -> 0 bytes ....k8s.io.v1beta1.Lease.after_roundtrip.yaml | 34 - .../coordination.k8s.io.v1beta1.Lease.json | 48 - .../coordination.k8s.io.v1beta1.Lease.pb | Bin 296 -> 0 bytes .../coordination.k8s.io.v1beta1.Lease.yaml | 37 - .../testdata/v1.15.0/core.v1.APIGroup.json | 21 - .../api/testdata/v1.15.0/core.v1.APIGroup.pb | Bin 53 -> 0 bytes .../testdata/v1.15.0/core.v1.APIGroup.yaml | 12 - .../testdata/v1.15.0/core.v1.APIVersions.json | 13 - .../testdata/v1.15.0/core.v1.APIVersions.pb | Bin 40 -> 0 bytes .../testdata/v1.15.0/core.v1.APIVersions.yaml | 7 - .../core.v1.Binding.after_roundtrip.json | 51 - .../core.v1.Binding.after_roundtrip.pb | Bin 268 -> 0 bytes .../core.v1.Binding.after_roundtrip.yaml | 38 - .../api/testdata/v1.15.0/core.v1.Binding.json | 52 - .../api/testdata/v1.15.0/core.v1.Binding.pb | Bin 284 -> 0 bytes .../api/testdata/v1.15.0/core.v1.Binding.yaml | 41 - ...re.v1.ComponentStatus.after_roundtrip.json | 50 - ...core.v1.ComponentStatus.after_roundtrip.pb | Bin 306 -> 0 bytes ...re.v1.ComponentStatus.after_roundtrip.yaml | 35 - .../v1.15.0/core.v1.ComponentStatus.json | 51 - .../v1.15.0/core.v1.ComponentStatus.pb | Bin 322 -> 0 bytes .../v1.15.0/core.v1.ComponentStatus.yaml | 38 - .../core.v1.ConfigMap.after_roundtrip.json | 48 - .../core.v1.ConfigMap.after_roundtrip.pb | Bin 250 -> 0 bytes .../core.v1.ConfigMap.after_roundtrip.yaml | 34 - .../testdata/v1.15.0/core.v1.ConfigMap.json | 49 - .../api/testdata/v1.15.0/core.v1.ConfigMap.pb | Bin 266 -> 0 bytes .../testdata/v1.15.0/core.v1.ConfigMap.yaml | 37 - .../v1.15.0/core.v1.CreateOptions.json | 8 - .../testdata/v1.15.0/core.v1.CreateOptions.pb | Bin 37 -> 0 bytes .../v1.15.0/core.v1.CreateOptions.yaml | 5 - .../v1.15.0/core.v1.DeleteOptions.json | 14 - .../testdata/v1.15.0/core.v1.DeleteOptions.pb | Bin 96 -> 0 bytes .../v1.15.0/core.v1.DeleteOptions.yaml | 10 - .../core.v1.Endpoints.after_roundtrip.json | 85 - .../core.v1.Endpoints.after_roundtrip.pb | Bin 378 -> 0 bytes .../core.v1.Endpoints.after_roundtrip.yaml | 59 - .../testdata/v1.15.0/core.v1.Endpoints.json | 86 - .../api/testdata/v1.15.0/core.v1.Endpoints.pb | Bin 394 -> 0 bytes .../testdata/v1.15.0/core.v1.Endpoints.yaml | 62 - .../core.v1.Event.after_roundtrip.json | 79 - .../v1.15.0/core.v1.Event.after_roundtrip.pb | Bin 407 -> 0 bytes .../core.v1.Event.after_roundtrip.yaml | 63 - .../api/testdata/v1.15.0/core.v1.Event.json | 80 - .../k8s/api/testdata/v1.15.0/core.v1.Event.pb | Bin 423 -> 0 bytes .../api/testdata/v1.15.0/core.v1.Event.yaml | 66 - .../v1.15.0/core.v1.ExportOptions.json | 6 - .../testdata/v1.15.0/core.v1.ExportOptions.pb | Bin 35 -> 0 bytes .../v1.15.0/core.v1.ExportOptions.yaml | 4 - .../testdata/v1.15.0/core.v1.GetOptions.json | 5 - .../testdata/v1.15.0/core.v1.GetOptions.pb | Bin 31 -> 0 bytes .../testdata/v1.15.0/core.v1.GetOptions.yaml | 3 - .../core.v1.LimitRange.after_roundtrip.json | 64 - .../core.v1.LimitRange.after_roundtrip.pb | Bin 403 -> 0 bytes .../core.v1.LimitRange.after_roundtrip.yaml | 43 - .../testdata/v1.15.0/core.v1.LimitRange.json | 65 - .../testdata/v1.15.0/core.v1.LimitRange.pb | Bin 419 -> 0 bytes .../testdata/v1.15.0/core.v1.LimitRange.yaml | 46 - .../testdata/v1.15.0/core.v1.ListOptions.json | 11 - .../testdata/v1.15.0/core.v1.ListOptions.pb | Bin 65 -> 0 bytes .../testdata/v1.15.0/core.v1.ListOptions.yaml | 9 - .../core.v1.Namespace.after_roundtrip.json | 50 - .../core.v1.Namespace.after_roundtrip.pb | Bin 294 -> 0 bytes .../core.v1.Namespace.after_roundtrip.yaml | 35 - .../testdata/v1.15.0/core.v1.Namespace.json | 51 - .../api/testdata/v1.15.0/core.v1.Namespace.pb | Bin 310 -> 0 bytes .../testdata/v1.15.0/core.v1.Namespace.yaml | 38 - .../v1.15.0/core.v1.Node.after_roundtrip.json | 153 - .../v1.15.0/core.v1.Node.after_roundtrip.pb | Bin 736 -> 0 bytes .../v1.15.0/core.v1.Node.after_roundtrip.yaml | 108 - .../api/testdata/v1.15.0/core.v1.Node.json | 154 - .../k8s/api/testdata/v1.15.0/core.v1.Node.pb | Bin 752 -> 0 bytes .../api/testdata/v1.15.0/core.v1.Node.yaml | 111 - .../v1.15.0/core.v1.NodeProxyOptions.json | 5 - .../v1.15.0/core.v1.NodeProxyOptions.pb | Bin 37 -> 0 bytes .../v1.15.0/core.v1.NodeProxyOptions.yaml | 3 - .../v1.15.0/core.v1.PatchOptions.json | 9 - .../testdata/v1.15.0/core.v1.PatchOptions.pb | Bin 38 -> 0 bytes .../v1.15.0/core.v1.PatchOptions.yaml | 6 - ...e.v1.PersistentVolume.after_roundtrip.json | 292 - ...ore.v1.PersistentVolume.after_roundtrip.pb | Bin 1242 -> 0 bytes ...e.v1.PersistentVolume.after_roundtrip.yaml | 221 - .../v1.15.0/core.v1.PersistentVolume.json | 293 - .../v1.15.0/core.v1.PersistentVolume.pb | Bin 1258 -> 0 bytes .../v1.15.0/core.v1.PersistentVolume.yaml | 224 - ...PersistentVolumeClaim.after_roundtrip.json | 96 - ...1.PersistentVolumeClaim.after_roundtrip.pb | Bin 721 -> 0 bytes ...PersistentVolumeClaim.after_roundtrip.yaml | 66 - .../core.v1.PersistentVolumeClaim.json | 97 - .../v1.15.0/core.v1.PersistentVolumeClaim.pb | Bin 737 -> 0 bytes .../core.v1.PersistentVolumeClaim.yaml | 69 - .../v1.15.0/core.v1.Pod.after_roundtrip.json | 1104 - .../v1.15.0/core.v1.Pod.after_roundtrip.pb | Bin 4972 -> 0 bytes .../v1.15.0/core.v1.Pod.after_roundtrip.yaml | 756 - .../k8s/api/testdata/v1.15.0/core.v1.Pod.json | 1105 - .../k8s/api/testdata/v1.15.0/core.v1.Pod.pb | Bin 4988 -> 0 bytes .../k8s/api/testdata/v1.15.0/core.v1.Pod.yaml | 759 - .../v1.15.0/core.v1.PodAttachOptions.json | 7 - .../v1.15.0/core.v1.PodAttachOptions.pb | Bin 45 -> 0 bytes .../v1.15.0/core.v1.PodAttachOptions.yaml | 5 - .../v1.15.0/core.v1.PodExecOptions.json | 10 - .../v1.15.0/core.v1.PodExecOptions.pb | Bin 46 -> 0 bytes .../v1.15.0/core.v1.PodExecOptions.yaml | 7 - .../v1.15.0/core.v1.PodLogOptions.json | 10 - .../testdata/v1.15.0/core.v1.PodLogOptions.pb | Bin 71 -> 0 bytes .../v1.15.0/core.v1.PodLogOptions.yaml | 8 - .../core.v1.PodPortForwardOptions.json | 7 - .../v1.15.0/core.v1.PodPortForwardOptions.pb | Bin 50 -> 0 bytes .../core.v1.PodPortForwardOptions.yaml | 4 - .../v1.15.0/core.v1.PodProxyOptions.json | 5 - .../v1.15.0/core.v1.PodProxyOptions.pb | Bin 36 -> 0 bytes .../v1.15.0/core.v1.PodProxyOptions.yaml | 3 - ...re.v1.PodStatusResult.after_roundtrip.json | 153 - ...core.v1.PodStatusResult.after_roundtrip.pb | Bin 718 -> 0 bytes ...re.v1.PodStatusResult.after_roundtrip.yaml | 115 - .../v1.15.0/core.v1.PodStatusResult.json | 154 - .../v1.15.0/core.v1.PodStatusResult.pb | Bin 734 -> 0 bytes .../v1.15.0/core.v1.PodStatusResult.yaml | 118 - .../core.v1.PodTemplate.after_roundtrip.json | 1031 - .../core.v1.PodTemplate.after_roundtrip.pb | Bin 4577 -> 0 bytes .../core.v1.PodTemplate.after_roundtrip.yaml | 700 - .../testdata/v1.15.0/core.v1.PodTemplate.json | 1033 - .../testdata/v1.15.0/core.v1.PodTemplate.pb | Bin 4609 -> 0 bytes .../testdata/v1.15.0/core.v1.PodTemplate.yaml | 706 - ...re.v1.RangeAllocation.after_roundtrip.json | 44 - ...core.v1.RangeAllocation.after_roundtrip.pb | Bin 244 -> 0 bytes ...re.v1.RangeAllocation.after_roundtrip.yaml | 32 - .../v1.15.0/core.v1.RangeAllocation.json | 45 - .../v1.15.0/core.v1.RangeAllocation.pb | Bin 260 -> 0 bytes .../v1.15.0/core.v1.RangeAllocation.yaml | 35 - ...ReplicationController.after_roundtrip.json | 1053 - ...1.ReplicationController.after_roundtrip.pb | Bin 4726 -> 0 bytes ...ReplicationController.after_roundtrip.yaml | 716 - .../core.v1.ReplicationController.json | 1055 - .../v1.15.0/core.v1.ReplicationController.pb | Bin 4758 -> 0 bytes .../core.v1.ReplicationController.yaml | 722 - ...core.v1.ResourceQuota.after_roundtrip.json | 69 - .../core.v1.ResourceQuota.after_roundtrip.pb | Bin 386 -> 0 bytes ...core.v1.ResourceQuota.after_roundtrip.yaml | 46 - .../v1.15.0/core.v1.ResourceQuota.json | 70 - .../testdata/v1.15.0/core.v1.ResourceQuota.pb | Bin 402 -> 0 bytes .../v1.15.0/core.v1.ResourceQuota.yaml | 49 - .../core.v1.Secret.after_roundtrip.json | 49 - .../v1.15.0/core.v1.Secret.after_roundtrip.pb | Bin 265 -> 0 bytes .../core.v1.Secret.after_roundtrip.yaml | 35 - .../api/testdata/v1.15.0/core.v1.Secret.json | 50 - .../api/testdata/v1.15.0/core.v1.Secret.pb | Bin 281 -> 0 bytes .../api/testdata/v1.15.0/core.v1.Secret.yaml | 38 - .../v1.15.0/core.v1.SerializedReference.json | 13 - .../v1.15.0/core.v1.SerializedReference.pb | Bin 81 -> 0 bytes .../v1.15.0/core.v1.SerializedReference.yaml | 10 - .../core.v1.Service.after_roundtrip.json | 85 - .../core.v1.Service.after_roundtrip.pb | Bin 402 -> 0 bytes .../core.v1.Service.after_roundtrip.yaml | 59 - .../api/testdata/v1.15.0/core.v1.Service.json | 86 - .../api/testdata/v1.15.0/core.v1.Service.pb | Bin 418 -> 0 bytes .../api/testdata/v1.15.0/core.v1.Service.yaml | 62 - ...ore.v1.ServiceAccount.after_roundtrip.json | 59 - .../core.v1.ServiceAccount.after_roundtrip.pb | Bin 299 -> 0 bytes ...ore.v1.ServiceAccount.after_roundtrip.yaml | 41 - .../v1.15.0/core.v1.ServiceAccount.json | 60 - .../v1.15.0/core.v1.ServiceAccount.pb | Bin 315 -> 0 bytes .../v1.15.0/core.v1.ServiceAccount.yaml | 44 - .../v1.15.0/core.v1.ServiceProxyOptions.json | 5 - .../v1.15.0/core.v1.ServiceProxyOptions.pb | Bin 40 -> 0 bytes .../v1.15.0/core.v1.ServiceProxyOptions.yaml | 3 - .../api/testdata/v1.15.0/core.v1.Status.json | 25 - .../api/testdata/v1.15.0/core.v1.Status.pb | Bin 178 -> 0 bytes .../api/testdata/v1.15.0/core.v1.Status.yaml | 18 - .../v1.15.0/core.v1.UpdateOptions.json | 8 - .../testdata/v1.15.0/core.v1.UpdateOptions.pb | Bin 37 -> 0 bytes .../v1.15.0/core.v1.UpdateOptions.yaml | 5 - .../testdata/v1.15.0/core.v1.WatchEvent.json | 4 - .../testdata/v1.15.0/core.v1.WatchEvent.pb | Bin 121 -> 0 bytes .../testdata/v1.15.0/core.v1.WatchEvent.yaml | 8 - ....k8s.io.v1beta1.Event.after_roundtrip.json | 79 - ...ts.k8s.io.v1beta1.Event.after_roundtrip.pb | Bin 464 -> 0 bytes ....k8s.io.v1beta1.Event.after_roundtrip.yaml | 63 - .../v1.15.0/events.k8s.io.v1beta1.Event.json | 80 - .../v1.15.0/events.k8s.io.v1beta1.Event.pb | Bin 480 -> 0 bytes .../v1.15.0/events.k8s.io.v1beta1.Event.yaml | 66 - ...ons.v1beta1.DaemonSet.after_roundtrip.json | 1079 - ...sions.v1beta1.DaemonSet.after_roundtrip.pb | Bin 4986 -> 0 bytes ...ons.v1beta1.DaemonSet.after_roundtrip.yaml | 732 - .../v1.15.0/extensions.v1beta1.DaemonSet.json | 1081 - .../v1.15.0/extensions.v1beta1.DaemonSet.pb | Bin 5018 -> 0 bytes .../v1.15.0/extensions.v1beta1.DaemonSet.yaml | 738 - ...ns.v1beta1.Deployment.after_roundtrip.json | 1089 - ...ions.v1beta1.Deployment.after_roundtrip.pb | Bin 5162 -> 0 bytes ...ns.v1beta1.Deployment.after_roundtrip.yaml | 740 - .../extensions.v1beta1.Deployment.json | 1091 - .../v1.15.0/extensions.v1beta1.Deployment.pb | Bin 5194 -> 0 bytes .../extensions.v1beta1.Deployment.yaml | 746 - ...extensions.v1beta1.DeploymentRollback.json | 11 - .../extensions.v1beta1.DeploymentRollback.pb | Bin 75 -> 0 bytes ...extensions.v1beta1.DeploymentRollback.yaml | 7 - ...sions.v1beta1.Ingress.after_roundtrip.json | 82 - ...ensions.v1beta1.Ingress.after_roundtrip.pb | Bin 326 -> 0 bytes ...sions.v1beta1.Ingress.after_roundtrip.yaml | 51 - .../v1.15.0/extensions.v1beta1.Ingress.json | 83 - .../v1.15.0/extensions.v1beta1.Ingress.pb | Bin 342 -> 0 bytes .../v1.15.0/extensions.v1beta1.Ingress.yaml | 54 - ...v1beta1.NetworkPolicy.after_roundtrip.json | 155 - ...s.v1beta1.NetworkPolicy.after_roundtrip.pb | Bin 1280 -> 0 bytes ...v1beta1.NetworkPolicy.after_roundtrip.yaml | 89 - .../extensions.v1beta1.NetworkPolicy.json | 156 - .../extensions.v1beta1.NetworkPolicy.pb | Bin 1296 -> 0 bytes .../extensions.v1beta1.NetworkPolicy.yaml | 92 - ...ta1.PodSecurityPolicy.after_roundtrip.json | 143 - ...beta1.PodSecurityPolicy.after_roundtrip.pb | Bin 639 -> 0 bytes ...ta1.PodSecurityPolicy.after_roundtrip.yaml | 91 - .../extensions.v1beta1.PodSecurityPolicy.json | 144 - .../extensions.v1beta1.PodSecurityPolicy.pb | Bin 655 -> 0 bytes .../extensions.v1beta1.PodSecurityPolicy.yaml | 94 - ...ns.v1beta1.ReplicaSet.after_roundtrip.json | 1060 - ...ions.v1beta1.ReplicaSet.after_roundtrip.pb | Bin 4886 -> 0 bytes ...ns.v1beta1.ReplicaSet.after_roundtrip.yaml | 718 - .../extensions.v1beta1.ReplicaSet.json | 1062 - .../v1.15.0/extensions.v1beta1.ReplicaSet.pb | Bin 4918 -> 0 bytes .../extensions.v1beta1.ReplicaSet.yaml | 724 - ...ns.v1beta1.ReplicationControllerDummy.json | 4 - ...ions.v1beta1.ReplicationControllerDummy.pb | Bin 60 -> 0 bytes ...ns.v1beta1.ReplicationControllerDummy.yaml | 2 - ...ensions.v1beta1.Scale.after_roundtrip.json | 52 - ...xtensions.v1beta1.Scale.after_roundtrip.pb | Bin 283 -> 0 bytes ...ensions.v1beta1.Scale.after_roundtrip.yaml | 37 - .../v1.15.0/extensions.v1beta1.Scale.json | 53 - .../v1.15.0/extensions.v1beta1.Scale.pb | Bin 299 -> 0 bytes .../v1.15.0/extensions.v1beta1.Scale.yaml | 40 - ....v1alpha1.ImageReview.after_roundtrip.json | 60 - ...io.v1alpha1.ImageReview.after_roundtrip.pb | Bin 298 -> 0 bytes ....v1alpha1.ImageReview.after_roundtrip.yaml | 41 - ...agepolicy.k8s.io.v1alpha1.ImageReview.json | 61 - ...imagepolicy.k8s.io.v1alpha1.ImageReview.pb | Bin 314 -> 0 bytes ...agepolicy.k8s.io.v1alpha1.ImageReview.yaml | 44 - ...s.io.v1.NetworkPolicy.after_roundtrip.json | 155 - ...k8s.io.v1.NetworkPolicy.after_roundtrip.pb | Bin 1282 -> 0 bytes ...s.io.v1.NetworkPolicy.after_roundtrip.yaml | 89 - .../networking.k8s.io.v1.NetworkPolicy.json | 156 - .../networking.k8s.io.v1.NetworkPolicy.pb | Bin 1298 -> 0 bytes .../networking.k8s.io.v1.NetworkPolicy.yaml | 92 - ...8s.io.v1beta1.Ingress.after_roundtrip.json | 82 - ....k8s.io.v1beta1.Ingress.after_roundtrip.pb | Bin 333 -> 0 bytes ...8s.io.v1beta1.Ingress.after_roundtrip.yaml | 51 - .../networking.k8s.io.v1beta1.Ingress.json | 83 - .../networking.k8s.io.v1beta1.Ingress.pb | Bin 349 -> 0 bytes .../networking.k8s.io.v1beta1.Ingress.yaml | 54 - ...v1alpha1.RuntimeClass.after_roundtrip.json | 45 - ...o.v1alpha1.RuntimeClass.after_roundtrip.pb | Bin 258 -> 0 bytes ...v1alpha1.RuntimeClass.after_roundtrip.yaml | 32 - .../node.k8s.io.v1alpha1.RuntimeClass.json | 46 - .../node.k8s.io.v1alpha1.RuntimeClass.pb | Bin 274 -> 0 bytes .../node.k8s.io.v1alpha1.RuntimeClass.yaml | 35 - ....v1beta1.RuntimeClass.after_roundtrip.json | 43 - ...io.v1beta1.RuntimeClass.after_roundtrip.pb | Bin 255 -> 0 bytes ....v1beta1.RuntimeClass.after_roundtrip.yaml | 31 - .../node.k8s.io.v1beta1.RuntimeClass.json | 44 - .../node.k8s.io.v1beta1.RuntimeClass.pb | Bin 271 -> 0 bytes .../node.k8s.io.v1beta1.RuntimeClass.yaml | 34 - ...licy.v1beta1.Eviction.after_roundtrip.json | 54 - ...policy.v1beta1.Eviction.after_roundtrip.pb | Bin 334 -> 0 bytes ...licy.v1beta1.Eviction.after_roundtrip.yaml | 39 - .../v1.15.0/policy.v1beta1.Eviction.json | 55 - .../v1.15.0/policy.v1beta1.Eviction.pb | Bin 350 -> 0 bytes .../v1.15.0/policy.v1beta1.Eviction.yaml | 42 - ...1.PodDisruptionBudget.after_roundtrip.json | 68 - ...ta1.PodDisruptionBudget.after_roundtrip.pb | Bin 481 -> 0 bytes ...1.PodDisruptionBudget.after_roundtrip.yaml | 47 - .../policy.v1beta1.PodDisruptionBudget.json | 69 - .../policy.v1beta1.PodDisruptionBudget.pb | Bin 497 -> 0 bytes .../policy.v1beta1.PodDisruptionBudget.yaml | 50 - ...ta1.PodSecurityPolicy.after_roundtrip.json | 143 - ...beta1.PodSecurityPolicy.after_roundtrip.pb | Bin 635 -> 0 bytes ...ta1.PodSecurityPolicy.after_roundtrip.yaml | 91 - .../policy.v1beta1.PodSecurityPolicy.json | 144 - .../policy.v1beta1.PodSecurityPolicy.pb | Bin 651 -> 0 bytes .../policy.v1beta1.PodSecurityPolicy.yaml | 94 - ...k8s.io.v1.ClusterRole.after_roundtrip.json | 79 - ...n.k8s.io.v1.ClusterRole.after_roundtrip.pb | Bin 483 -> 0 bytes ...k8s.io.v1.ClusterRole.after_roundtrip.yaml | 50 - ...c.authorization.k8s.io.v1.ClusterRole.json | 80 - ...bac.authorization.k8s.io.v1.ClusterRole.pb | Bin 499 -> 0 bytes ...c.authorization.k8s.io.v1.ClusterRole.yaml | 53 - ...v1.ClusterRoleBinding.after_roundtrip.json | 55 - ...o.v1.ClusterRoleBinding.after_roundtrip.pb | Bin 298 -> 0 bytes ...v1.ClusterRoleBinding.after_roundtrip.yaml | 39 - ...rization.k8s.io.v1.ClusterRoleBinding.json | 56 - ...horization.k8s.io.v1.ClusterRoleBinding.pb | Bin 314 -> 0 bytes ...rization.k8s.io.v1.ClusterRoleBinding.yaml | 42 - ...zation.k8s.io.v1.Role.after_roundtrip.json | 61 - ...rization.k8s.io.v1.Role.after_roundtrip.pb | Bin 274 -> 0 bytes ...zation.k8s.io.v1.Role.after_roundtrip.yaml | 41 - .../rbac.authorization.k8s.io.v1.Role.json | 62 - .../rbac.authorization.k8s.io.v1.Role.pb | Bin 290 -> 0 bytes .../rbac.authorization.k8s.io.v1.Role.yaml | 44 - ...k8s.io.v1.RoleBinding.after_roundtrip.json | 55 - ...n.k8s.io.v1.RoleBinding.after_roundtrip.pb | Bin 291 -> 0 bytes ...k8s.io.v1.RoleBinding.after_roundtrip.yaml | 39 - ...c.authorization.k8s.io.v1.RoleBinding.json | 56 - ...bac.authorization.k8s.io.v1.RoleBinding.pb | Bin 307 -> 0 bytes ...c.authorization.k8s.io.v1.RoleBinding.yaml | 42 - ....v1alpha1.ClusterRole.after_roundtrip.json | 79 - ...io.v1alpha1.ClusterRole.after_roundtrip.pb | Bin 489 -> 0 bytes ....v1alpha1.ClusterRole.after_roundtrip.yaml | 50 - ...orization.k8s.io.v1alpha1.ClusterRole.json | 80 - ...thorization.k8s.io.v1alpha1.ClusterRole.pb | Bin 505 -> 0 bytes ...orization.k8s.io.v1alpha1.ClusterRole.yaml | 53 - ...a1.ClusterRoleBinding.after_roundtrip.json | 55 - ...pha1.ClusterRoleBinding.after_roundtrip.pb | Bin 304 -> 0 bytes ...a1.ClusterRoleBinding.after_roundtrip.yaml | 39 - ...on.k8s.io.v1alpha1.ClusterRoleBinding.json | 56 - ...tion.k8s.io.v1alpha1.ClusterRoleBinding.pb | Bin 320 -> 0 bytes ...on.k8s.io.v1alpha1.ClusterRoleBinding.yaml | 42 - ....k8s.io.v1alpha1.Role.after_roundtrip.json | 61 - ...on.k8s.io.v1alpha1.Role.after_roundtrip.pb | Bin 280 -> 0 bytes ....k8s.io.v1alpha1.Role.after_roundtrip.yaml | 41 - ...ac.authorization.k8s.io.v1alpha1.Role.json | 62 - ...rbac.authorization.k8s.io.v1alpha1.Role.pb | Bin 296 -> 0 bytes ...ac.authorization.k8s.io.v1alpha1.Role.yaml | 44 - ....v1alpha1.RoleBinding.after_roundtrip.json | 55 - ...io.v1alpha1.RoleBinding.after_roundtrip.pb | Bin 297 -> 0 bytes ....v1alpha1.RoleBinding.after_roundtrip.yaml | 39 - ...orization.k8s.io.v1alpha1.RoleBinding.json | 56 - ...thorization.k8s.io.v1alpha1.RoleBinding.pb | Bin 313 -> 0 bytes ...orization.k8s.io.v1alpha1.RoleBinding.yaml | 42 - ...o.v1beta1.ClusterRole.after_roundtrip.json | 79 - ....io.v1beta1.ClusterRole.after_roundtrip.pb | Bin 488 -> 0 bytes ...o.v1beta1.ClusterRole.after_roundtrip.yaml | 50 - ...horization.k8s.io.v1beta1.ClusterRole.json | 80 - ...uthorization.k8s.io.v1beta1.ClusterRole.pb | Bin 504 -> 0 bytes ...horization.k8s.io.v1beta1.ClusterRole.yaml | 53 - ...a1.ClusterRoleBinding.after_roundtrip.json | 55 - ...eta1.ClusterRoleBinding.after_roundtrip.pb | Bin 303 -> 0 bytes ...a1.ClusterRoleBinding.after_roundtrip.yaml | 39 - ...ion.k8s.io.v1beta1.ClusterRoleBinding.json | 56 - ...ation.k8s.io.v1beta1.ClusterRoleBinding.pb | Bin 319 -> 0 bytes ...ion.k8s.io.v1beta1.ClusterRoleBinding.yaml | 42 - ...n.k8s.io.v1beta1.Role.after_roundtrip.json | 61 - ...ion.k8s.io.v1beta1.Role.after_roundtrip.pb | Bin 279 -> 0 bytes ...n.k8s.io.v1beta1.Role.after_roundtrip.yaml | 41 - ...bac.authorization.k8s.io.v1beta1.Role.json | 62 - .../rbac.authorization.k8s.io.v1beta1.Role.pb | Bin 295 -> 0 bytes ...bac.authorization.k8s.io.v1beta1.Role.yaml | 44 - ...o.v1beta1.RoleBinding.after_roundtrip.json | 55 - ....io.v1beta1.RoleBinding.after_roundtrip.pb | Bin 296 -> 0 bytes ...o.v1beta1.RoleBinding.after_roundtrip.yaml | 39 - ...horization.k8s.io.v1beta1.RoleBinding.json | 56 - ...uthorization.k8s.io.v1beta1.RoleBinding.pb | Bin 312 -> 0 bytes ...horization.k8s.io.v1beta1.RoleBinding.yaml | 42 - ...s.io.v1.PriorityClass.after_roundtrip.json | 45 - ...k8s.io.v1.PriorityClass.after_roundtrip.pb | Bin 289 -> 0 bytes ...s.io.v1.PriorityClass.after_roundtrip.yaml | 33 - .../scheduling.k8s.io.v1.PriorityClass.json | 46 - .../scheduling.k8s.io.v1.PriorityClass.pb | Bin 305 -> 0 bytes .../scheduling.k8s.io.v1.PriorityClass.yaml | 36 - ...1alpha1.PriorityClass.after_roundtrip.json | 45 - ....v1alpha1.PriorityClass.after_roundtrip.pb | Bin 295 -> 0 bytes ...1alpha1.PriorityClass.after_roundtrip.yaml | 33 - ...eduling.k8s.io.v1alpha1.PriorityClass.json | 46 - ...cheduling.k8s.io.v1alpha1.PriorityClass.pb | Bin 311 -> 0 bytes ...eduling.k8s.io.v1alpha1.PriorityClass.yaml | 36 - ...v1beta1.PriorityClass.after_roundtrip.json | 45 - ...o.v1beta1.PriorityClass.after_roundtrip.pb | Bin 294 -> 0 bytes ...v1beta1.PriorityClass.after_roundtrip.yaml | 33 - ...heduling.k8s.io.v1beta1.PriorityClass.json | 46 - ...scheduling.k8s.io.v1beta1.PriorityClass.pb | Bin 310 -> 0 bytes ...heduling.k8s.io.v1beta1.PriorityClass.yaml | 36 - ...io.v1alpha1.PodPreset.after_roundtrip.json | 379 - ...s.io.v1alpha1.PodPreset.after_roundtrip.pb | Bin 1444 -> 0 bytes ...io.v1alpha1.PodPreset.after_roundtrip.yaml | 269 - .../settings.k8s.io.v1alpha1.PodPreset.json | 380 - .../settings.k8s.io.v1alpha1.PodPreset.pb | Bin 1460 -> 0 bytes .../settings.k8s.io.v1alpha1.PodPreset.yaml | 272 - ...8s.io.v1.StorageClass.after_roundtrip.json | 64 - ....k8s.io.v1.StorageClass.after_roundtrip.pb | Bin 321 -> 0 bytes ...8s.io.v1.StorageClass.after_roundtrip.yaml | 43 - .../storage.k8s.io.v1.StorageClass.json | 65 - .../v1.15.0/storage.k8s.io.v1.StorageClass.pb | Bin 337 -> 0 bytes .../storage.k8s.io.v1.StorageClass.yaml | 46 - ...o.v1.VolumeAttachment.after_roundtrip.json | 307 - ....io.v1.VolumeAttachment.after_roundtrip.pb | Bin 1230 -> 0 bytes ...o.v1.VolumeAttachment.after_roundtrip.yaml | 231 - .../storage.k8s.io.v1.VolumeAttachment.json | 308 - .../storage.k8s.io.v1.VolumeAttachment.pb | Bin 1246 -> 0 bytes .../storage.k8s.io.v1.VolumeAttachment.yaml | 234 - ...pha1.VolumeAttachment.after_roundtrip.json | 307 - ...alpha1.VolumeAttachment.after_roundtrip.pb | Bin 1236 -> 0 bytes ...pha1.VolumeAttachment.after_roundtrip.yaml | 231 - ...rage.k8s.io.v1alpha1.VolumeAttachment.json | 308 - ...torage.k8s.io.v1alpha1.VolumeAttachment.pb | Bin 1252 -> 0 bytes ...rage.k8s.io.v1alpha1.VolumeAttachment.yaml | 234 - ....io.v1beta1.CSIDriver.after_roundtrip.json | 46 - ...8s.io.v1beta1.CSIDriver.after_roundtrip.pb | Bin 257 -> 0 bytes ....io.v1beta1.CSIDriver.after_roundtrip.yaml | 33 - .../storage.k8s.io.v1beta1.CSIDriver.json | 47 - .../storage.k8s.io.v1beta1.CSIDriver.pb | Bin 273 -> 0 bytes .../storage.k8s.io.v1beta1.CSIDriver.yaml | 36 - ...8s.io.v1beta1.CSINode.after_roundtrip.json | 53 - ....k8s.io.v1beta1.CSINode.after_roundtrip.pb | Bin 265 -> 0 bytes ...8s.io.v1beta1.CSINode.after_roundtrip.yaml | 36 - .../storage.k8s.io.v1beta1.CSINode.json | 54 - .../v1.15.0/storage.k8s.io.v1beta1.CSINode.pb | Bin 281 -> 0 bytes .../storage.k8s.io.v1beta1.CSINode.yaml | 39 - ....v1beta1.StorageClass.after_roundtrip.json | 64 - ...io.v1beta1.StorageClass.after_roundtrip.pb | Bin 326 -> 0 bytes ....v1beta1.StorageClass.after_roundtrip.yaml | 43 - .../storage.k8s.io.v1beta1.StorageClass.json | 65 - .../storage.k8s.io.v1beta1.StorageClass.pb | Bin 342 -> 0 bytes .../storage.k8s.io.v1beta1.StorageClass.yaml | 46 - ...eta1.VolumeAttachment.after_roundtrip.json | 307 - ...1beta1.VolumeAttachment.after_roundtrip.pb | Bin 1235 -> 0 bytes ...eta1.VolumeAttachment.after_roundtrip.yaml | 231 - ...orage.k8s.io.v1beta1.VolumeAttachment.json | 308 - ...storage.k8s.io.v1beta1.VolumeAttachment.pb | Bin 1251 -> 0 bytes ...orage.k8s.io.v1beta1.VolumeAttachment.yaml | 234 - .../.github/PULL_REQUEST_TEMPLATE.md | 2 - pseudo/k8s/apimachinery/CONTRIBUTING.md | 7 - pseudo/k8s/apimachinery/Godeps/Godeps.json | 234 - pseudo/k8s/apimachinery/Godeps/Readme | 5 - pseudo/k8s/apimachinery/LICENSE | 202 - pseudo/k8s/apimachinery/README.md | 29 - pseudo/k8s/apimachinery/SECURITY_CONTACTS | 17 - pseudo/k8s/apimachinery/code-of-conduct.md | 3 - .../apimachinery/pkg/api/apitesting/codec.go | 116 - .../pkg/api/apitesting/fuzzer/fuzzer.go | 52 - .../pkg/api/apitesting/fuzzer/valuefuzz.go | 86 - .../api/apitesting/fuzzer/valuefuzz_test.go | 73 - .../pkg/api/apitesting/naming/naming.go | 164 - .../api/apitesting/roundtrip/compatibility.go | 517 - .../pkg/api/apitesting/roundtrip/roundtrip.go | 407 - .../apimachinery/pkg/api/equality/semantic.go | 49 - pseudo/k8s/apimachinery/pkg/api/errors/doc.go | 18 - .../k8s/apimachinery/pkg/api/errors/errors.go | 668 - .../pkg/api/errors/errors_test.go | 222 - pseudo/k8s/apimachinery/pkg/api/meta/doc.go | 19 - .../k8s/apimachinery/pkg/api/meta/errors.go | 121 - .../pkg/api/meta/firsthit_restmapper.go | 97 - pseudo/k8s/apimachinery/pkg/api/meta/help.go | 264 - .../apimachinery/pkg/api/meta/interfaces.go | 134 - pseudo/k8s/apimachinery/pkg/api/meta/lazy.go | 104 - pseudo/k8s/apimachinery/pkg/api/meta/meta.go | 648 - .../apimachinery/pkg/api/meta/meta_test.go | 51 - .../pkg/api/meta/multirestmapper.go | 210 - .../pkg/api/meta/multirestmapper_test.go | 391 - .../k8s/apimachinery/pkg/api/meta/priority.go | 222 - .../pkg/api/meta/priority_test.go | 409 - .../apimachinery/pkg/api/meta/restmapper.go | 518 - .../pkg/api/meta/restmapper_test.go | 724 - .../apimachinery/pkg/api/meta/table/table.go | 71 - .../meta/testrestmapper/test_restmapper.go | 170 - .../apimachinery/pkg/api/resource/amount.go | 299 - .../pkg/api/resource/amount_test.go | 162 - .../pkg/api/resource/generated.pb.go | 89 - .../pkg/api/resource/generated.proto | 88 - .../k8s/apimachinery/pkg/api/resource/math.go | 314 - .../pkg/api/resource/math_test.go | 211 - .../apimachinery/pkg/api/resource/quantity.go | 728 - .../pkg/api/resource/quantity_example_test.go | 59 - .../pkg/api/resource/quantity_proto.go | 288 - .../pkg/api/resource/quantity_proto_test.go | 103 - .../pkg/api/resource/quantity_test.go | 1353 - .../pkg/api/resource/scale_int.go | 95 - .../pkg/api/resource/scale_int_test.go | 85 - .../apimachinery/pkg/api/resource/suffix.go | 198 - .../pkg/api/resource/zz_generated.deepcopy.go | 27 - .../apimachinery/pkg/api/validation/doc.go | 18 - .../pkg/api/validation/generic.go | 85 - .../pkg/api/validation/objectmeta.go | 263 - .../pkg/api/validation/objectmeta_test.go | 500 - .../pkg/api/validation/path/name.go | 68 - .../pkg/api/validation/path/name_test.go | 168 - .../pkg/apis/meta/fuzzer/fuzzer.go | 331 - .../pkg/apis/meta/internalversion/doc.go | 20 - .../pkg/apis/meta/internalversion/register.go | 110 - .../meta/internalversion/register_test.go | 89 - .../meta/internalversion/roundtrip_test.go | 28 - .../pkg/apis/meta/internalversion/types.go | 76 - .../zz_generated.conversion.go | 143 - .../internalversion/zz_generated.deepcopy.go | 96 - .../pkg/apis/meta/v1/controller_ref.go | 54 - .../pkg/apis/meta/v1/controller_ref_test.go | 133 - .../pkg/apis/meta/v1/conversion.go | 329 - .../pkg/apis/meta/v1/conversion_test.go | 84 - .../apimachinery/pkg/apis/meta/v1/deepcopy.go | 46 - .../k8s/apimachinery/pkg/apis/meta/v1/doc.go | 23 - .../apimachinery/pkg/apis/meta/v1/duration.go | 60 - .../pkg/apis/meta/v1/duration_test.go | 153 - .../pkg/apis/meta/v1/generated.pb.go | 11113 --- .../pkg/apis/meta/v1/generated.proto | 1017 - .../pkg/apis/meta/v1/group_version.go | 148 - .../pkg/apis/meta/v1/group_version_test.go | 79 - .../apimachinery/pkg/apis/meta/v1/helpers.go | 280 - .../pkg/apis/meta/v1/helpers_test.go | 196 - .../apimachinery/pkg/apis/meta/v1/labels.go | 55 - .../pkg/apis/meta/v1/labels_test.go | 123 - .../k8s/apimachinery/pkg/apis/meta/v1/meta.go | 178 - .../pkg/apis/meta/v1/micro_time.go | 196 - .../pkg/apis/meta/v1/micro_time_proto.go | 80 - .../pkg/apis/meta/v1/micro_time_test.go | 255 - .../pkg/apis/meta/v1/options_test.go | 62 - .../apimachinery/pkg/apis/meta/v1/register.go | 116 - .../k8s/apimachinery/pkg/apis/meta/v1/time.go | 187 - .../pkg/apis/meta/v1/time_proto.go | 100 - .../pkg/apis/meta/v1/time_test.go | 241 - .../apimachinery/pkg/apis/meta/v1/types.go | 1298 - .../meta/v1/types_swagger_doc_generated.go | 442 - .../pkg/apis/meta/v1/types_test.go | 135 - .../pkg/apis/meta/v1/unstructured/helpers.go | 476 - .../apis/meta/v1/unstructured/helpers_test.go | 161 - .../apis/meta/v1/unstructured/unstructured.go | 496 - .../meta/v1/unstructured/unstructured_list.go | 210 - .../v1/unstructured/unstructured_list_test.go | 86 - .../meta/v1/unstructured/unstructured_test.go | 161 - .../unstructured/unstructuredscheme/scheme.go | 133 - .../v1/unstructured/zz_generated.deepcopy.go | 55 - .../pkg/apis/meta/v1/validation/validation.go | 186 - .../meta/v1/validation/validation_test.go | 295 - .../apimachinery/pkg/apis/meta/v1/watch.go | 89 - .../pkg/apis/meta/v1/zz_generated.deepcopy.go | 1173 - .../pkg/apis/meta/v1/zz_generated.defaults.go | 32 - .../pkg/apis/meta/v1beta1/conversion.go | 27 - .../pkg/apis/meta/v1beta1/deepcopy.go | 17 - .../apimachinery/pkg/apis/meta/v1beta1/doc.go | 23 - .../pkg/apis/meta/v1beta1/generated.pb.go | 442 - .../pkg/apis/meta/v1beta1/generated.proto | 42 - .../pkg/apis/meta/v1beta1/register.go | 61 - .../pkg/apis/meta/v1beta1/types.go | 84 - .../v1beta1/types_swagger_doc_generated.go | 40 - .../meta/v1beta1/validation/validation.go | 34 - .../meta/v1beta1/zz_generated.deepcopy.go | 59 - .../meta/v1beta1/zz_generated.defaults.go | 32 - .../apimachinery/pkg/apis/testapigroup/doc.go | 22 - .../pkg/apis/testapigroup/fuzzer/fuzzer.go | 99 - .../pkg/apis/testapigroup/install/install.go | 33 - .../testapigroup/install/roundtrip_test.go | 29 - .../pkg/apis/testapigroup/register.go | 51 - .../pkg/apis/testapigroup/types.go | 138 - .../pkg/apis/testapigroup/v1/conversion.go | 26 - .../pkg/apis/testapigroup/v1/defaults.go | 26 - .../pkg/apis/testapigroup/v1/doc.go | 24 - .../pkg/apis/testapigroup/v1/generated.pb.go | 2288 - .../pkg/apis/testapigroup/v1/generated.proto | 211 - .../pkg/apis/testapigroup/v1/register.go | 63 - .../pkg/apis/testapigroup/v1/types.go | 196 - .../v1/zz_generated.conversion.go | 266 - .../testapigroup/v1/zz_generated.deepcopy.go | 164 - .../testapigroup/v1/zz_generated.defaults.go | 32 - .../testapigroup/zz_generated.deepcopy.go | 164 - .../apimachinery/pkg/conversion/converter.go | 898 - .../pkg/conversion/converter_test.go | 734 - .../apimachinery/pkg/conversion/deep_equal.go | 36 - pseudo/k8s/apimachinery/pkg/conversion/doc.go | 24 - .../k8s/apimachinery/pkg/conversion/helper.go | 39 - .../pkg/conversion/helper_test.go | 38 - .../pkg/conversion/queryparams/convert.go | 194 - .../conversion/queryparams/convert_test.go | 219 - .../pkg/conversion/queryparams/doc.go | 19 - .../unstructured_conversion_test.go | 468 - pseudo/k8s/apimachinery/pkg/fields/doc.go | 19 - pseudo/k8s/apimachinery/pkg/fields/fields.go | 62 - .../apimachinery/pkg/fields/fields_test.go | 57 - .../apimachinery/pkg/fields/requirements.go | 30 - .../k8s/apimachinery/pkg/fields/selector.go | 476 - .../apimachinery/pkg/fields/selector_test.go | 397 - pseudo/k8s/apimachinery/pkg/labels/doc.go | 19 - pseudo/k8s/apimachinery/pkg/labels/labels.go | 181 - .../apimachinery/pkg/labels/labels_test.go | 231 - .../k8s/apimachinery/pkg/labels/selector.go | 891 - .../apimachinery/pkg/labels/selector_test.go | 619 - .../pkg/labels/zz_generated.deepcopy.go | 42 - pseudo/k8s/apimachinery/pkg/runtime/codec.go | 332 - .../apimachinery/pkg/runtime/codec_check.go | 48 - .../apimachinery/pkg/runtime/codec_test.go | 78 - .../apimachinery/pkg/runtime/conversion.go | 113 - .../pkg/runtime/conversion_test.go | 115 - .../k8s/apimachinery/pkg/runtime/converter.go | 805 - .../pkg/runtime/converter_test.go | 597 - pseudo/k8s/apimachinery/pkg/runtime/doc.go | 51 - .../k8s/apimachinery/pkg/runtime/embedded.go | 142 - .../apimachinery/pkg/runtime/embedded_test.go | 256 - pseudo/k8s/apimachinery/pkg/runtime/error.go | 151 - .../k8s/apimachinery/pkg/runtime/extension.go | 51 - .../pkg/runtime/extension_test.go | 113 - .../apimachinery/pkg/runtime/generated.pb.go | 881 - .../apimachinery/pkg/runtime/generated.proto | 127 - pseudo/k8s/apimachinery/pkg/runtime/helper.go | 259 - .../apimachinery/pkg/runtime/interfaces.go | 278 - .../pkg/runtime/local_scheme_test.go | 150 - pseudo/k8s/apimachinery/pkg/runtime/mapper.go | 98 - .../apimachinery/pkg/runtime/mapper_test.go | 132 - .../k8s/apimachinery/pkg/runtime/register.go | 61 - .../pkg/runtime/schema/generated.pb.go | 59 - .../pkg/runtime/schema/generated.proto | 26 - .../pkg/runtime/schema/group_version.go | 300 - .../pkg/runtime/schema/group_version_test.go | 180 - .../pkg/runtime/schema/interfaces.go | 40 - pseudo/k8s/apimachinery/pkg/runtime/scheme.go | 754 - .../pkg/runtime/scheme_builder.go | 48 - .../apimachinery/pkg/runtime/scheme_test.go | 1021 - .../pkg/runtime/serializer/codec_factory.go | 324 - .../pkg/runtime/serializer/codec_test.go | 358 - .../pkg/runtime/serializer/json/json.go | 388 - .../serializer/json/json_limit_test.go | 170 - .../pkg/runtime/serializer/json/json_test.go | 485 - .../pkg/runtime/serializer/json/meta.go | 63 - .../pkg/runtime/serializer/json/meta_test.go | 45 - .../runtime/serializer/negotiated_codec.go | 43 - .../pkg/runtime/serializer/protobuf/doc.go | 18 - .../runtime/serializer/protobuf/protobuf.go | 475 - .../serializer/recognizer/recognizer.go | 127 - .../recognizer/testing/recognizer_test.go | 61 - .../pkg/runtime/serializer/sparse_test.go | 91 - .../runtime/serializer/streaming/streaming.go | 137 - .../serializer/streaming/streaming_test.go | 84 - .../pkg/runtime/serializer/testing/doc.go | 19 - .../pkg/runtime/serializer/testing/types.go | 114 - .../testing/zz_generated.deepcopy.go | 197 - .../serializer/versioning/versioning.go | 232 - .../serializer/versioning/versioning_test.go | 426 - .../versioning_unstructured_test.go | 338 - .../pkg/runtime/serializer/yaml/yaml.go | 46 - .../pkg/runtime/serializer/yaml/yaml_test.go | 402 - .../pkg/runtime/swagger_doc_generator.go | 262 - .../pkg/runtime/swagger_doc_generator_test.go | 43 - .../apimachinery/pkg/runtime/testing/doc.go | 19 - .../apimachinery/pkg/runtime/testing/types.go | 331 - .../runtime/testing/zz_generated.deepcopy.go | 629 - pseudo/k8s/apimachinery/pkg/runtime/types.go | 139 - .../apimachinery/pkg/runtime/types_proto.go | 89 - .../pkg/runtime/zz_generated.deepcopy.go | 108 - .../apimachinery/pkg/selection/operator.go | 33 - .../pkg/test/api_meta_help_test.go | 335 - .../pkg/test/api_meta_meta_test.go | 435 - ...pis_meta_v1_unstructed_unstructure_test.go | 568 - .../pkg/test/runtime_helper_test.go | 49 - ...ntime_serializer_protobuf_protobuf_test.go | 364 - .../pkg/test/runtime_unversioned_test.go | 99 - pseudo/k8s/apimachinery/pkg/test/util.go | 70 - .../pkg/test/zz_generated.deepcopy.go | 93 - pseudo/k8s/apimachinery/pkg/types/doc.go | 18 - .../apimachinery/pkg/types/namespacedname.go | 43 - pseudo/k8s/apimachinery/pkg/types/nodename.go | 43 - pseudo/k8s/apimachinery/pkg/types/patch.go | 29 - pseudo/k8s/apimachinery/pkg/types/uid.go | 22 - .../k8s/apimachinery/pkg/util/cache/cache.go | 83 - .../apimachinery/pkg/util/cache/cache_test.go | 90 - .../pkg/util/cache/lruexpirecache.go | 102 - .../pkg/util/cache/lruexpirecache_test.go | 68 - .../k8s/apimachinery/pkg/util/clock/clock.go | 384 - .../apimachinery/pkg/util/clock/clock_test.go | 328 - pseudo/k8s/apimachinery/pkg/util/diff/diff.go | 118 - .../apimachinery/pkg/util/diff/diff_test.go | 29 - .../pkg/util/duration/duration.go | 89 - .../pkg/util/duration/duration_test.go | 47 - .../k8s/apimachinery/pkg/util/errors/doc.go | 18 - .../apimachinery/pkg/util/errors/errors.go | 229 - .../pkg/util/errors/errors_test.go | 432 - .../apimachinery/pkg/util/framer/framer.go | 167 - .../pkg/util/framer/framer_test.go | 176 - .../apimachinery/pkg/util/httpstream/doc.go | 19 - .../pkg/util/httpstream/httpstream.go | 149 - .../pkg/util/httpstream/httpstream_test.go | 125 - .../pkg/util/httpstream/spdy/connection.go | 145 - .../util/httpstream/spdy/connection_test.go | 164 - .../pkg/util/httpstream/spdy/roundtripper.go | 335 - .../util/httpstream/spdy/roundtripper_test.go | 549 - .../pkg/util/httpstream/spdy/upgrade.go | 107 - .../pkg/util/httpstream/spdy/upgrade_test.go | 93 - .../pkg/util/intstr/generated.pb.go | 398 - .../pkg/util/intstr/generated.proto | 43 - .../apimachinery/pkg/util/intstr/intstr.go | 184 - .../pkg/util/intstr/intstr_test.go | 183 - pseudo/k8s/apimachinery/pkg/util/json/json.go | 131 - .../apimachinery/pkg/util/json/json_test.go | 319 - .../pkg/util/jsonmergepatch/patch.go | 160 - .../pkg/util/jsonmergepatch/patch_test.go | 696 - .../pkg/util/mergepatch/errors.go | 102 - .../apimachinery/pkg/util/mergepatch/util.go | 133 - .../pkg/util/mergepatch/util_test.go | 136 - .../pkg/util/naming/from_stack.go | 93 - .../pkg/util/naming/from_stack_test.go | 59 - pseudo/k8s/apimachinery/pkg/util/net/http.go | 463 - .../apimachinery/pkg/util/net/http_test.go | 494 - .../apimachinery/pkg/util/net/interface.go | 416 - .../pkg/util/net/interface_test.go | 725 - .../apimachinery/pkg/util/net/port_range.go | 149 - .../pkg/util/net/port_range_test.go | 77 - .../apimachinery/pkg/util/net/port_split.go | 77 - .../pkg/util/net/port_split_test.go | 121 - pseudo/k8s/apimachinery/pkg/util/net/util.go | 73 - .../apimachinery/pkg/util/net/util_test.go | 96 - .../k8s/apimachinery/pkg/util/proxy/dial.go | 117 - .../apimachinery/pkg/util/proxy/dial_test.go | 188 - pseudo/k8s/apimachinery/pkg/util/proxy/doc.go | 18 - .../apimachinery/pkg/util/proxy/transport.go | 274 - .../pkg/util/proxy/transport_test.go | 359 - .../pkg/util/proxy/upgradeaware.go | 480 - .../pkg/util/proxy/upgradeaware_test.go | 939 - pseudo/k8s/apimachinery/pkg/util/rand/rand.go | 127 - .../apimachinery/pkg/util/rand/rand_test.go | 114 - .../pkg/util/remotecommand/constants.go | 53 - .../apimachinery/pkg/util/runtime/runtime.go | 173 - .../pkg/util/runtime/runtime_test.go | 158 - pseudo/k8s/apimachinery/pkg/util/sets/byte.go | 205 - pseudo/k8s/apimachinery/pkg/util/sets/doc.go | 20 - .../k8s/apimachinery/pkg/util/sets/empty.go | 23 - pseudo/k8s/apimachinery/pkg/util/sets/int.go | 205 - .../k8s/apimachinery/pkg/util/sets/int32.go | 205 - .../k8s/apimachinery/pkg/util/sets/int64.go | 205 - .../apimachinery/pkg/util/sets/set_test.go | 270 - .../k8s/apimachinery/pkg/util/sets/string.go | 205 - .../apimachinery/pkg/util/sets/types/types.go | 33 - .../pkg/util/strategicpatch/errors.go | 49 - .../pkg/util/strategicpatch/meta.go | 194 - .../pkg/util/strategicpatch/patch.go | 2174 - .../pkg/util/strategicpatch/patch_test.go | 6763 -- .../testdata/swagger-merge-item.json | 170 - .../testdata/swagger-precision-item.json | 47 - .../util/strategicpatch/testing/openapi.go | 84 - .../pkg/util/strategicpatch/types.go | 193 - pseudo/k8s/apimachinery/pkg/util/uuid/uuid.go | 27 - .../pkg/util/validation/field/errors.go | 272 - .../pkg/util/validation/field/errors_test.go | 175 - .../pkg/util/validation/field/path.go | 91 - .../pkg/util/validation/field/path_test.go | 123 - .../pkg/util/validation/validation.go | 416 - .../pkg/util/validation/validation_test.go | 541 - .../k8s/apimachinery/pkg/util/version/doc.go | 18 - .../apimachinery/pkg/util/version/version.go | 322 - .../pkg/util/version/version_test.go | 348 - pseudo/k8s/apimachinery/pkg/util/wait/doc.go | 19 - pseudo/k8s/apimachinery/pkg/util/wait/wait.go | 512 - .../apimachinery/pkg/util/wait/wait_test.go | 696 - .../apimachinery/pkg/util/waitgroup/doc.go | 19 - .../pkg/util/waitgroup/waitgroup.go | 57 - .../pkg/util/waitgroup/waitgroup_test.go | 60 - .../k8s/apimachinery/pkg/util/yaml/decoder.go | 344 - .../pkg/util/yaml/decoder_test.go | 405 - pseudo/k8s/apimachinery/pkg/version/doc.go | 20 - .../k8s/apimachinery/pkg/version/helpers.go | 88 - .../apimachinery/pkg/version/helpers_test.go | 52 - pseudo/k8s/apimachinery/pkg/version/types.go | 37 - pseudo/k8s/apimachinery/pkg/watch/doc.go | 19 - pseudo/k8s/apimachinery/pkg/watch/filter.go | 105 - .../k8s/apimachinery/pkg/watch/filter_test.go | 84 - pseudo/k8s/apimachinery/pkg/watch/mux.go | 260 - pseudo/k8s/apimachinery/pkg/watch/mux_test.go | 176 - .../apimachinery/pkg/watch/streamwatcher.go | 132 - .../pkg/watch/streamwatcher_test.go | 107 - pseudo/k8s/apimachinery/pkg/watch/watch.go | 322 - .../k8s/apimachinery/pkg/watch/watch_test.go | 175 - .../pkg/watch/zz_generated.deepcopy.go | 40 - .../third_party/forked/golang/json/fields.go | 513 - .../forked/golang/json/fields_test.go | 30 - .../third_party/forked/golang/netutil/addr.go | 27 - .../forked/golang/reflect/deep_equal.go | 388 - .../forked/golang/reflect/deep_equal_test.go | 137 - .../.github/PULL_REQUEST_TEMPLATE.md | 3 - pseudo/k8s/client-go/CHANGELOG.md | 879 - pseudo/k8s/client-go/CONTRIBUTING.md | 9 - pseudo/k8s/client-go/Godeps/Godeps.json | 378 - pseudo/k8s/client-go/Godeps/Readme | 5 - pseudo/k8s/client-go/INSTALL.md | 65 - pseudo/k8s/client-go/LICENSE | 202 - pseudo/k8s/client-go/README.md | 195 - pseudo/k8s/client-go/SECURITY_CONTACTS | 17 - pseudo/k8s/client-go/code-of-conduct.md | 3 - .../client-go/deprecated-dynamic/client.go | 131 - .../deprecated-dynamic/client_pool.go | 122 - .../deprecated-dynamic/client_test.go | 624 - .../discovery/cached/disk/cached_discovery.go | 300 - .../cached/disk/cached_discovery_test.go | 215 - .../discovery/cached/disk/round_tripper.go | 65 - .../cached/disk/round_tripper_test.go | 147 - .../k8s/client-go/discovery/cached/legacy.go | 30 - .../discovery/cached/memory/memcache.go | 230 - .../discovery/cached/memory/memcache_test.go | 377 - .../client-go/discovery/discovery_client.go | 508 - .../discovery/discovery_client_test.go | 882 - pseudo/k8s/client-go/discovery/doc.go | 19 - .../k8s/client-go/discovery/fake/discovery.go | 160 - .../discovery/fake/discovery_test.go | 46 - pseudo/k8s/client-go/discovery/helper.go | 125 - .../discovery/helper_blackbox_test.go | 184 - pseudo/k8s/client-go/dynamic/client_test.go | 651 - .../dynamic/dynamicinformer/informer.go | 157 - .../dynamic/dynamicinformer/informer_test.go | 160 - .../dynamic/dynamicinformer/interface.go | 34 - .../dynamic/dynamiclister/interface.go | 40 - .../client-go/dynamic/dynamiclister/lister.go | 91 - .../dynamic/dynamiclister/lister_test.go | 257 - .../client-go/dynamic/dynamiclister/shim.go | 87 - pseudo/k8s/client-go/dynamic/fake/simple.go | 370 - .../k8s/client-go/dynamic/fake/simple_test.go | 197 - pseudo/k8s/client-go/dynamic/interface.go | 59 - pseudo/k8s/client-go/dynamic/scheme.go | 102 - pseudo/k8s/client-go/dynamic/simple.go | 355 - pseudo/k8s/client-go/examples/README.md | 51 - .../create-update-delete-deployment/README.md | 83 - .../create-update-delete-deployment/main.go | 178 - .../README.md | 93 - .../main.go | 208 - .../client-go/examples/fake-client/README.md | 14 - .../k8s/client-go/examples/fake-client/doc.go | 20 - .../examples/fake-client/main_test.go | 73 - .../Dockerfile | 17 - .../in-cluster-client-configuration/README.md | 58 - .../in-cluster-client-configuration/main.go | 73 - .../examples/leader-election/README.md | 21 - .../examples/leader-election/main.go | 161 - .../README.md | 35 - .../main.go | 95 - .../client-go/examples/workqueue/README.md | 17 - .../k8s/client-go/examples/workqueue/main.go | 217 - .../admissionregistration/interface.go | 54 - .../admissionregistration/v1/interface.go | 52 - .../v1/mutatingwebhookconfiguration.go | 88 - .../v1/validatingwebhookconfiguration.go | 88 - .../v1beta1/interface.go | 52 - .../v1beta1/mutatingwebhookconfiguration.go | 88 - .../v1beta1/validatingwebhookconfiguration.go | 88 - .../k8s/client-go/informers/apps/interface.go | 62 - .../informers/apps/v1/controllerrevision.go | 89 - .../client-go/informers/apps/v1/daemonset.go | 89 - .../client-go/informers/apps/v1/deployment.go | 89 - .../client-go/informers/apps/v1/interface.go | 73 - .../client-go/informers/apps/v1/replicaset.go | 89 - .../informers/apps/v1/statefulset.go | 89 - .../apps/v1beta1/controllerrevision.go | 89 - .../informers/apps/v1beta1/deployment.go | 89 - .../informers/apps/v1beta1/interface.go | 59 - .../informers/apps/v1beta1/statefulset.go | 89 - .../apps/v1beta2/controllerrevision.go | 89 - .../informers/apps/v1beta2/daemonset.go | 89 - .../informers/apps/v1beta2/deployment.go | 89 - .../informers/apps/v1beta2/interface.go | 73 - .../informers/apps/v1beta2/replicaset.go | 89 - .../informers/apps/v1beta2/statefulset.go | 89 - .../informers/auditregistration/interface.go | 46 - .../auditregistration/v1alpha1/auditsink.go | 88 - .../auditregistration/v1alpha1/interface.go | 45 - .../informers/autoscaling/interface.go | 62 - .../autoscaling/v1/horizontalpodautoscaler.go | 89 - .../informers/autoscaling/v1/interface.go | 45 - .../v2beta1/horizontalpodautoscaler.go | 89 - .../autoscaling/v2beta1/interface.go | 45 - .../v2beta2/horizontalpodautoscaler.go | 89 - .../autoscaling/v2beta2/interface.go | 45 - .../client-go/informers/batch/interface.go | 62 - .../client-go/informers/batch/v1/interface.go | 45 - .../k8s/client-go/informers/batch/v1/job.go | 89 - .../informers/batch/v1beta1/cronjob.go | 89 - .../informers/batch/v1beta1/interface.go | 45 - .../informers/batch/v2alpha1/cronjob.go | 89 - .../informers/batch/v2alpha1/interface.go | 45 - .../informers/certificates/interface.go | 46 - .../v1beta1/certificatesigningrequest.go | 88 - .../certificates/v1beta1/interface.go | 45 - .../informers/coordination/interface.go | 54 - .../informers/coordination/v1/interface.go | 45 - .../informers/coordination/v1/lease.go | 89 - .../coordination/v1beta1/interface.go | 45 - .../informers/coordination/v1beta1/lease.go | 89 - .../k8s/client-go/informers/core/interface.go | 46 - .../informers/core/v1/componentstatus.go | 88 - .../client-go/informers/core/v1/configmap.go | 89 - .../client-go/informers/core/v1/endpoints.go | 89 - .../k8s/client-go/informers/core/v1/event.go | 89 - .../client-go/informers/core/v1/interface.go | 150 - .../client-go/informers/core/v1/limitrange.go | 89 - .../client-go/informers/core/v1/namespace.go | 88 - .../k8s/client-go/informers/core/v1/node.go | 88 - .../informers/core/v1/persistentvolume.go | 88 - .../core/v1/persistentvolumeclaim.go | 89 - pseudo/k8s/client-go/informers/core/v1/pod.go | 89 - .../informers/core/v1/podtemplate.go | 89 - .../core/v1/replicationcontroller.go | 89 - .../informers/core/v1/resourcequota.go | 89 - .../k8s/client-go/informers/core/v1/secret.go | 89 - .../client-go/informers/core/v1/service.go | 89 - .../informers/core/v1/serviceaccount.go | 89 - .../informers/discovery/interface.go | 46 - .../discovery/v1alpha1/endpointslice.go | 89 - .../informers/discovery/v1alpha1/interface.go | 45 - .../client-go/informers/events/interface.go | 46 - .../informers/events/v1beta1/event.go | 89 - .../informers/events/v1beta1/interface.go | 45 - .../informers/extensions/interface.go | 46 - .../informers/extensions/v1beta1/daemonset.go | 89 - .../extensions/v1beta1/deployment.go | 89 - .../informers/extensions/v1beta1/ingress.go | 89 - .../informers/extensions/v1beta1/interface.go | 80 - .../extensions/v1beta1/networkpolicy.go | 89 - .../extensions/v1beta1/podsecuritypolicy.go | 88 - .../extensions/v1beta1/replicaset.go | 89 - pseudo/k8s/client-go/informers/factory.go | 282 - pseudo/k8s/client-go/informers/generic.go | 319 - .../internalinterfaces/factory_interfaces.go | 40 - .../informers/networking/interface.go | 54 - .../informers/networking/v1/interface.go | 45 - .../informers/networking/v1/networkpolicy.go | 89 - .../informers/networking/v1beta1/ingress.go | 89 - .../informers/networking/v1beta1/interface.go | 45 - .../k8s/client-go/informers/node/interface.go | 54 - .../informers/node/v1alpha1/interface.go | 45 - .../informers/node/v1alpha1/runtimeclass.go | 88 - .../informers/node/v1beta1/interface.go | 45 - .../informers/node/v1beta1/runtimeclass.go | 88 - .../client-go/informers/policy/interface.go | 46 - .../informers/policy/v1beta1/interface.go | 52 - .../policy/v1beta1/poddisruptionbudget.go | 89 - .../policy/v1beta1/podsecuritypolicy.go | 88 - .../k8s/client-go/informers/rbac/interface.go | 62 - .../informers/rbac/v1/clusterrole.go | 88 - .../informers/rbac/v1/clusterrolebinding.go | 88 - .../client-go/informers/rbac/v1/interface.go | 66 - .../k8s/client-go/informers/rbac/v1/role.go | 89 - .../informers/rbac/v1/rolebinding.go | 89 - .../informers/rbac/v1alpha1/clusterrole.go | 88 - .../rbac/v1alpha1/clusterrolebinding.go | 88 - .../informers/rbac/v1alpha1/interface.go | 66 - .../client-go/informers/rbac/v1alpha1/role.go | 89 - .../informers/rbac/v1alpha1/rolebinding.go | 89 - .../informers/rbac/v1beta1/clusterrole.go | 88 - .../rbac/v1beta1/clusterrolebinding.go | 88 - .../informers/rbac/v1beta1/interface.go | 66 - .../client-go/informers/rbac/v1beta1/role.go | 89 - .../informers/rbac/v1beta1/rolebinding.go | 89 - .../informers/scheduling/interface.go | 62 - .../informers/scheduling/v1/interface.go | 45 - .../informers/scheduling/v1/priorityclass.go | 88 - .../scheduling/v1alpha1/interface.go | 45 - .../scheduling/v1alpha1/priorityclass.go | 88 - .../informers/scheduling/v1beta1/interface.go | 45 - .../scheduling/v1beta1/priorityclass.go | 88 - .../client-go/informers/settings/interface.go | 46 - .../informers/settings/v1alpha1/interface.go | 45 - .../informers/settings/v1alpha1/podpreset.go | 89 - .../client-go/informers/storage/interface.go | 62 - .../informers/storage/v1/interface.go | 52 - .../informers/storage/v1/storageclass.go | 88 - .../informers/storage/v1/volumeattachment.go | 88 - .../informers/storage/v1alpha1/interface.go | 45 - .../storage/v1alpha1/volumeattachment.go | 88 - .../informers/storage/v1beta1/csidriver.go | 88 - .../informers/storage/v1beta1/csinode.go | 88 - .../informers/storage/v1beta1/interface.go | 66 - .../informers/storage/v1beta1/storageclass.go | 88 - .../storage/v1beta1/volumeattachment.go | 88 - pseudo/k8s/client-go/kubernetes/clientset.go | 615 - pseudo/k8s/client-go/kubernetes/doc.go | 20 - .../kubernetes/fake/clientset_generated.go | 341 - pseudo/k8s/client-go/kubernetes/fake/doc.go | 20 - .../k8s/client-go/kubernetes/fake/register.go | 130 - pseudo/k8s/client-go/kubernetes/import.go | 19 - pseudo/k8s/client-go/kubernetes/scheme/doc.go | 20 - .../client-go/kubernetes/scheme/register.go | 130 - .../v1/admissionregistration_client.go | 94 - .../typed/admissionregistration/v1/doc.go | 20 - .../admissionregistration/v1/fake/doc.go | 20 - .../fake/fake_admissionregistration_client.go | 44 - .../fake/fake_mutatingwebhookconfiguration.go | 120 - .../fake_validatingwebhookconfiguration.go | 120 - .../v1/generated_expansion.go | 23 - .../v1/mutatingwebhookconfiguration.go | 164 - .../v1/validatingwebhookconfiguration.go | 164 - .../v1beta1/admissionregistration_client.go | 94 - .../admissionregistration/v1beta1/doc.go | 20 - .../admissionregistration/v1beta1/fake/doc.go | 20 - .../fake/fake_admissionregistration_client.go | 44 - .../fake/fake_mutatingwebhookconfiguration.go | 120 - .../fake_validatingwebhookconfiguration.go | 120 - .../v1beta1/generated_expansion.go | 23 - .../v1beta1/mutatingwebhookconfiguration.go | 164 - .../v1beta1/validatingwebhookconfiguration.go | 164 - .../kubernetes/typed/apps/v1/apps_client.go | 109 - .../typed/apps/v1/controllerrevision.go | 174 - .../kubernetes/typed/apps/v1/daemonset.go | 191 - .../kubernetes/typed/apps/v1/deployment.go | 223 - .../client-go/kubernetes/typed/apps/v1/doc.go | 20 - .../kubernetes/typed/apps/v1/fake/doc.go | 20 - .../typed/apps/v1/fake/fake_apps_client.go | 56 - .../apps/v1/fake/fake_controllerrevision.go | 128 - .../typed/apps/v1/fake/fake_daemonset.go | 140 - .../typed/apps/v1/fake/fake_deployment.go | 163 - .../typed/apps/v1/fake/fake_replicaset.go | 163 - .../typed/apps/v1/fake/fake_statefulset.go | 163 - .../typed/apps/v1/generated_expansion.go | 29 - .../kubernetes/typed/apps/v1/replicaset.go | 223 - .../kubernetes/typed/apps/v1/statefulset.go | 223 - .../typed/apps/v1beta1/apps_client.go | 99 - .../typed/apps/v1beta1/controllerrevision.go | 174 - .../typed/apps/v1beta1/deployment.go | 191 - .../kubernetes/typed/apps/v1beta1/doc.go | 20 - .../kubernetes/typed/apps/v1beta1/fake/doc.go | 20 - .../apps/v1beta1/fake/fake_apps_client.go | 48 - .../v1beta1/fake/fake_controllerrevision.go | 128 - .../apps/v1beta1/fake/fake_deployment.go | 140 - .../apps/v1beta1/fake/fake_statefulset.go | 140 - .../typed/apps/v1beta1/generated_expansion.go | 25 - .../typed/apps/v1beta1/statefulset.go | 191 - .../typed/apps/v1beta2/apps_client.go | 109 - .../typed/apps/v1beta2/controllerrevision.go | 174 - .../typed/apps/v1beta2/daemonset.go | 191 - .../typed/apps/v1beta2/deployment.go | 191 - .../kubernetes/typed/apps/v1beta2/doc.go | 20 - .../kubernetes/typed/apps/v1beta2/fake/doc.go | 20 - .../apps/v1beta2/fake/fake_apps_client.go | 56 - .../v1beta2/fake/fake_controllerrevision.go | 128 - .../typed/apps/v1beta2/fake/fake_daemonset.go | 140 - .../apps/v1beta2/fake/fake_deployment.go | 140 - .../apps/v1beta2/fake/fake_replicaset.go | 140 - .../apps/v1beta2/fake/fake_statefulset.go | 162 - .../typed/apps/v1beta2/generated_expansion.go | 29 - .../typed/apps/v1beta2/replicaset.go | 191 - .../typed/apps/v1beta2/statefulset.go | 222 - .../v1alpha1/auditregistration_client.go | 89 - .../auditregistration/v1alpha1/auditsink.go | 164 - .../typed/auditregistration/v1alpha1/doc.go | 20 - .../auditregistration/v1alpha1/fake/doc.go | 20 - .../fake/fake_auditregistration_client.go | 40 - .../v1alpha1/fake/fake_auditsink.go | 120 - .../v1alpha1/generated_expansion.go | 21 - .../v1/authentication_client.go | 89 - .../kubernetes/typed/authentication/v1/doc.go | 20 - .../typed/authentication/v1/fake/doc.go | 20 - .../v1/fake/fake_authentication_client.go | 40 - .../v1/fake/fake_tokenreview.go | 24 - .../v1/fake/fake_tokenreview_expansion.go | 27 - .../authentication/v1/generated_expansion.go | 19 - .../typed/authentication/v1/tokenreview.go | 46 - .../v1/tokenreview_expansion.go | 35 - .../v1beta1/authentication_client.go | 89 - .../typed/authentication/v1beta1/doc.go | 20 - .../typed/authentication/v1beta1/fake/doc.go | 20 - .../fake/fake_authentication_client.go | 40 - .../v1beta1/fake/fake_tokenreview.go | 24 - .../fake/fake_tokenreview_expansion.go | 27 - .../v1beta1/generated_expansion.go | 19 - .../authentication/v1beta1/tokenreview.go | 46 - .../v1beta1/tokenreview_expansion.go | 35 - .../authorization/v1/authorization_client.go | 104 - .../kubernetes/typed/authorization/v1/doc.go | 20 - .../typed/authorization/v1/fake/doc.go | 20 - .../v1/fake/fake_authorization_client.go | 52 - .../v1/fake/fake_localsubjectaccessreview.go | 25 - ...fake_localsubjectaccessreview_expansion.go | 27 - .../v1/fake/fake_selfsubjectaccessreview.go | 24 - .../fake_selfsubjectaccessreview_expansion.go | 27 - .../v1/fake/fake_selfsubjectrulesreview.go | 24 - .../fake_selfsubjectrulesreview_expansion.go | 27 - .../v1/fake/fake_subjectaccessreview.go | 24 - .../fake_subjectaccessreview_expansion.go | 30 - .../authorization/v1/generated_expansion.go | 19 - .../v1/localsubjectaccessreview.go | 48 - .../v1/localsubjectaccessreview_expansion.go | 36 - .../v1/selfsubjectaccessreview.go | 46 - .../v1/selfsubjectaccessreview_expansion.go | 35 - .../v1/selfsubjectrulesreview.go | 46 - .../v1/selfsubjectrulesreview_expansion.go | 35 - .../authorization/v1/subjectaccessreview.go | 46 - .../v1/subjectaccessreview_expansion.go | 36 - .../v1beta1/authorization_client.go | 104 - .../typed/authorization/v1beta1/doc.go | 20 - .../typed/authorization/v1beta1/fake/doc.go | 20 - .../v1beta1/fake/fake_authorization_client.go | 52 - .../v1beta1/fake/fake_generated_expansion.go | 17 - .../fake/fake_localsubjectaccessreview.go | 25 - ...fake_localsubjectaccessreview_expansion.go | 27 - .../fake/fake_selfsubjectaccessreview.go | 24 - .../fake_selfsubjectaccessreview_expansion.go | 27 - .../fake/fake_selfsubjectrulesreview.go | 24 - .../fake_selfsubjectrulesreview_expansion.go | 27 - .../v1beta1/fake/fake_subjectaccessreview.go | 24 - .../fake_subjectaccessreview_expansion.go | 27 - .../v1beta1/generated_expansion.go | 19 - .../v1beta1/localsubjectaccessreview.go | 48 - .../localsubjectaccessreview_expansion.go | 36 - .../v1beta1/selfsubjectaccessreview.go | 46 - .../selfsubjectaccessreview_expansion.go | 35 - .../v1beta1/selfsubjectrulesreview.go | 46 - .../selfsubjectrulesreview_expansion.go | 35 - .../v1beta1/subjectaccessreview.go | 46 - .../v1beta1/subjectaccessreview_expansion.go | 36 - .../autoscaling/v1/autoscaling_client.go | 89 - .../kubernetes/typed/autoscaling/v1/doc.go | 20 - .../typed/autoscaling/v1/fake/doc.go | 20 - .../v1/fake/fake_autoscaling_client.go | 40 - .../v1/fake/fake_horizontalpodautoscaler.go | 140 - .../autoscaling/v1/generated_expansion.go | 21 - .../autoscaling/v1/horizontalpodautoscaler.go | 191 - .../autoscaling/v2beta1/autoscaling_client.go | 89 - .../typed/autoscaling/v2beta1/doc.go | 20 - .../typed/autoscaling/v2beta1/fake/doc.go | 20 - .../v2beta1/fake/fake_autoscaling_client.go | 40 - .../fake/fake_horizontalpodautoscaler.go | 140 - .../v2beta1/generated_expansion.go | 21 - .../v2beta1/horizontalpodautoscaler.go | 191 - .../autoscaling/v2beta2/autoscaling_client.go | 89 - .../typed/autoscaling/v2beta2/doc.go | 20 - .../typed/autoscaling/v2beta2/fake/doc.go | 20 - .../v2beta2/fake/fake_autoscaling_client.go | 40 - .../fake/fake_horizontalpodautoscaler.go | 140 - .../v2beta2/generated_expansion.go | 21 - .../v2beta2/horizontalpodautoscaler.go | 191 - .../kubernetes/typed/batch/v1/batch_client.go | 89 - .../kubernetes/typed/batch/v1/doc.go | 20 - .../kubernetes/typed/batch/v1/fake/doc.go | 20 - .../typed/batch/v1/fake/fake_batch_client.go | 40 - .../typed/batch/v1/fake/fake_job.go | 140 - .../typed/batch/v1/generated_expansion.go | 21 - .../kubernetes/typed/batch/v1/job.go | 191 - .../typed/batch/v1beta1/batch_client.go | 89 - .../kubernetes/typed/batch/v1beta1/cronjob.go | 191 - .../kubernetes/typed/batch/v1beta1/doc.go | 20 - .../typed/batch/v1beta1/fake/doc.go | 20 - .../batch/v1beta1/fake/fake_batch_client.go | 40 - .../typed/batch/v1beta1/fake/fake_cronjob.go | 140 - .../batch/v1beta1/generated_expansion.go | 21 - .../typed/batch/v2alpha1/batch_client.go | 89 - .../typed/batch/v2alpha1/cronjob.go | 191 - .../kubernetes/typed/batch/v2alpha1/doc.go | 20 - .../typed/batch/v2alpha1/fake/doc.go | 20 - .../batch/v2alpha1/fake/fake_batch_client.go | 40 - .../typed/batch/v2alpha1/fake/fake_cronjob.go | 140 - .../batch/v2alpha1/generated_expansion.go | 21 - .../v1beta1/certificates_client.go | 89 - .../v1beta1/certificatesigningrequest.go | 180 - .../certificatesigningrequest_expansion.go | 37 - .../typed/certificates/v1beta1/doc.go | 20 - .../typed/certificates/v1beta1/fake/doc.go | 20 - .../v1beta1/fake/fake_certificates_client.go | 40 - .../fake/fake_certificatesigningrequest.go | 131 - ...ake_certificatesigningrequest_expansion.go | 31 - .../v1beta1/generated_expansion.go | 19 - .../coordination/v1/coordination_client.go | 89 - .../kubernetes/typed/coordination/v1/doc.go | 20 - .../typed/coordination/v1/fake/doc.go | 20 - .../v1/fake/fake_coordination_client.go | 40 - .../typed/coordination/v1/fake/fake_lease.go | 128 - .../coordination/v1/generated_expansion.go | 21 - .../kubernetes/typed/coordination/v1/lease.go | 174 - .../v1beta1/coordination_client.go | 89 - .../typed/coordination/v1beta1/doc.go | 20 - .../typed/coordination/v1beta1/fake/doc.go | 20 - .../v1beta1/fake/fake_coordination_client.go | 40 - .../coordination/v1beta1/fake/fake_lease.go | 128 - .../v1beta1/generated_expansion.go | 21 - .../typed/coordination/v1beta1/lease.go | 174 - .../typed/core/v1/componentstatus.go | 164 - .../kubernetes/typed/core/v1/configmap.go | 174 - .../kubernetes/typed/core/v1/core_client.go | 164 - .../client-go/kubernetes/typed/core/v1/doc.go | 20 - .../kubernetes/typed/core/v1/endpoints.go | 174 - .../kubernetes/typed/core/v1/event.go | 174 - .../typed/core/v1/event_expansion.go | 164 - .../kubernetes/typed/core/v1/fake/doc.go | 20 - .../core/v1/fake/fake_componentstatus.go | 120 - .../typed/core/v1/fake/fake_configmap.go | 128 - .../typed/core/v1/fake/fake_core_client.go | 100 - .../typed/core/v1/fake/fake_endpoints.go | 128 - .../typed/core/v1/fake/fake_event.go | 128 - .../core/v1/fake/fake_event_expansion.go | 93 - .../typed/core/v1/fake/fake_limitrange.go | 128 - .../typed/core/v1/fake/fake_namespace.go | 123 - .../core/v1/fake/fake_namespace_expansion.go | 37 - .../typed/core/v1/fake/fake_node.go | 131 - .../typed/core/v1/fake/fake_node_expansion.go | 36 - .../core/v1/fake/fake_persistentvolume.go | 131 - .../v1/fake/fake_persistentvolumeclaim.go | 140 - .../kubernetes/typed/core/v1/fake/fake_pod.go | 162 - .../typed/core/v1/fake/fake_pod_expansion.go | 70 - .../typed/core/v1/fake/fake_podtemplate.go | 128 - .../v1/fake/fake_replicationcontroller.go | 163 - .../typed/core/v1/fake/fake_resourcequota.go | 140 - .../typed/core/v1/fake/fake_secret.go | 128 - .../typed/core/v1/fake/fake_service.go | 132 - .../core/v1/fake/fake_service_expansion.go | 26 - .../typed/core/v1/fake/fake_serviceaccount.go | 128 - .../v1/fake/fake_serviceaccount_expansion.go | 31 - .../typed/core/v1/generated_expansion.go | 39 - .../kubernetes/typed/core/v1/limitrange.go | 174 - .../kubernetes/typed/core/v1/namespace.go | 164 - .../typed/core/v1/namespace_expansion.go | 31 - .../kubernetes/typed/core/v1/node.go | 180 - .../typed/core/v1/node_expansion.go | 43 - .../typed/core/v1/persistentvolume.go | 180 - .../typed/core/v1/persistentvolumeclaim.go | 191 - .../client-go/kubernetes/typed/core/v1/pod.go | 222 - .../kubernetes/typed/core/v1/pod_expansion.go | 45 - .../kubernetes/typed/core/v1/podtemplate.go | 174 - .../typed/core/v1/replicationcontroller.go | 223 - .../kubernetes/typed/core/v1/resourcequota.go | 191 - .../kubernetes/typed/core/v1/secret.go | 174 - .../kubernetes/typed/core/v1/service.go | 174 - .../typed/core/v1/service_expansion.go | 41 - .../typed/core/v1/serviceaccount.go | 174 - .../typed/core/v1/serviceaccount_expansion.go | 41 - .../discovery/v1alpha1/discovery_client.go | 89 - .../typed/discovery/v1alpha1/doc.go | 20 - .../typed/discovery/v1alpha1/endpointslice.go | 174 - .../typed/discovery/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_discovery_client.go | 40 - .../v1alpha1/fake/fake_endpointslice.go | 128 - .../discovery/v1alpha1/generated_expansion.go | 21 - .../kubernetes/typed/events/v1beta1/doc.go | 20 - .../kubernetes/typed/events/v1beta1/event.go | 174 - .../typed/events/v1beta1/event_expansion.go | 98 - .../typed/events/v1beta1/events_client.go | 89 - .../typed/events/v1beta1/fake/doc.go | 20 - .../typed/events/v1beta1/fake/fake_event.go | 128 - .../v1beta1/fake/fake_event_expansion.go | 66 - .../events/v1beta1/fake/fake_events_client.go | 40 - .../events/v1beta1/generated_expansion.go | 19 - .../typed/extensions/v1beta1/daemonset.go | 191 - .../typed/extensions/v1beta1/deployment.go | 222 - .../v1beta1/deployment_expansion.go | 29 - .../typed/extensions/v1beta1/doc.go | 20 - .../extensions/v1beta1/extensions_client.go | 114 - .../typed/extensions/v1beta1/fake/doc.go | 20 - .../extensions/v1beta1/fake/fake_daemonset.go | 140 - .../v1beta1/fake/fake_deployment.go | 162 - .../v1beta1/fake/fake_deployment_expansion.go | 33 - .../v1beta1/fake/fake_extensions_client.go | 60 - .../extensions/v1beta1/fake/fake_ingress.go | 140 - .../v1beta1/fake/fake_networkpolicy.go | 128 - .../v1beta1/fake/fake_podsecuritypolicy.go | 120 - .../v1beta1/fake/fake_replicaset.go | 162 - .../extensions/v1beta1/generated_expansion.go | 29 - .../typed/extensions/v1beta1/ingress.go | 191 - .../typed/extensions/v1beta1/networkpolicy.go | 174 - .../extensions/v1beta1/podsecuritypolicy.go | 164 - .../typed/extensions/v1beta1/replicaset.go | 222 - .../kubernetes/typed/networking/v1/doc.go | 20 - .../typed/networking/v1/fake/doc.go | 20 - .../v1/fake/fake_networking_client.go | 40 - .../networking/v1/fake/fake_networkpolicy.go | 128 - .../networking/v1/generated_expansion.go | 21 - .../typed/networking/v1/networking_client.go | 89 - .../typed/networking/v1/networkpolicy.go | 174 - .../typed/networking/v1beta1/doc.go | 20 - .../typed/networking/v1beta1/fake/doc.go | 20 - .../networking/v1beta1/fake/fake_ingress.go | 140 - .../v1beta1/fake/fake_networking_client.go | 40 - .../networking/v1beta1/generated_expansion.go | 21 - .../typed/networking/v1beta1/ingress.go | 191 - .../networking/v1beta1/networking_client.go | 89 - .../kubernetes/typed/node/v1alpha1/doc.go | 20 - .../typed/node/v1alpha1/fake/doc.go | 20 - .../node/v1alpha1/fake/fake_node_client.go | 40 - .../node/v1alpha1/fake/fake_runtimeclass.go | 120 - .../node/v1alpha1/generated_expansion.go | 21 - .../typed/node/v1alpha1/node_client.go | 89 - .../typed/node/v1alpha1/runtimeclass.go | 164 - .../kubernetes/typed/node/v1beta1/doc.go | 20 - .../kubernetes/typed/node/v1beta1/fake/doc.go | 20 - .../node/v1beta1/fake/fake_node_client.go | 40 - .../node/v1beta1/fake/fake_runtimeclass.go | 120 - .../typed/node/v1beta1/generated_expansion.go | 21 - .../typed/node/v1beta1/node_client.go | 89 - .../typed/node/v1beta1/runtimeclass.go | 164 - .../kubernetes/typed/policy/v1beta1/doc.go | 20 - .../typed/policy/v1beta1/eviction.go | 48 - .../policy/v1beta1/eviction_expansion.go | 38 - .../typed/policy/v1beta1/fake/doc.go | 20 - .../policy/v1beta1/fake/fake_eviction.go | 25 - .../v1beta1/fake/fake_eviction_expansion.go | 35 - .../v1beta1/fake/fake_poddisruptionbudget.go | 140 - .../v1beta1/fake/fake_podsecuritypolicy.go | 120 - .../policy/v1beta1/fake/fake_policy_client.go | 48 - .../policy/v1beta1/generated_expansion.go | 23 - .../policy/v1beta1/poddisruptionbudget.go | 191 - .../typed/policy/v1beta1/podsecuritypolicy.go | 164 - .../typed/policy/v1beta1/policy_client.go | 99 - .../kubernetes/typed/rbac/v1/clusterrole.go | 164 - .../typed/rbac/v1/clusterrolebinding.go | 164 - .../client-go/kubernetes/typed/rbac/v1/doc.go | 20 - .../kubernetes/typed/rbac/v1/fake/doc.go | 20 - .../typed/rbac/v1/fake/fake_clusterrole.go | 120 - .../rbac/v1/fake/fake_clusterrolebinding.go | 120 - .../typed/rbac/v1/fake/fake_rbac_client.go | 52 - .../typed/rbac/v1/fake/fake_role.go | 128 - .../typed/rbac/v1/fake/fake_rolebinding.go | 128 - .../typed/rbac/v1/generated_expansion.go | 27 - .../kubernetes/typed/rbac/v1/rbac_client.go | 104 - .../kubernetes/typed/rbac/v1/role.go | 174 - .../kubernetes/typed/rbac/v1/rolebinding.go | 174 - .../typed/rbac/v1alpha1/clusterrole.go | 164 - .../typed/rbac/v1alpha1/clusterrolebinding.go | 164 - .../kubernetes/typed/rbac/v1alpha1/doc.go | 20 - .../typed/rbac/v1alpha1/fake/doc.go | 20 - .../rbac/v1alpha1/fake/fake_clusterrole.go | 120 - .../v1alpha1/fake/fake_clusterrolebinding.go | 120 - .../rbac/v1alpha1/fake/fake_rbac_client.go | 52 - .../typed/rbac/v1alpha1/fake/fake_role.go | 128 - .../rbac/v1alpha1/fake/fake_rolebinding.go | 128 - .../rbac/v1alpha1/generated_expansion.go | 27 - .../typed/rbac/v1alpha1/rbac_client.go | 104 - .../kubernetes/typed/rbac/v1alpha1/role.go | 174 - .../typed/rbac/v1alpha1/rolebinding.go | 174 - .../typed/rbac/v1beta1/clusterrole.go | 164 - .../typed/rbac/v1beta1/clusterrolebinding.go | 164 - .../kubernetes/typed/rbac/v1beta1/doc.go | 20 - .../kubernetes/typed/rbac/v1beta1/fake/doc.go | 20 - .../rbac/v1beta1/fake/fake_clusterrole.go | 120 - .../v1beta1/fake/fake_clusterrolebinding.go | 120 - .../rbac/v1beta1/fake/fake_rbac_client.go | 52 - .../typed/rbac/v1beta1/fake/fake_role.go | 128 - .../rbac/v1beta1/fake/fake_rolebinding.go | 128 - .../typed/rbac/v1beta1/generated_expansion.go | 27 - .../typed/rbac/v1beta1/rbac_client.go | 104 - .../kubernetes/typed/rbac/v1beta1/role.go | 174 - .../typed/rbac/v1beta1/rolebinding.go | 174 - .../kubernetes/typed/scheduling/v1/doc.go | 20 - .../typed/scheduling/v1/fake/doc.go | 20 - .../scheduling/v1/fake/fake_priorityclass.go | 120 - .../v1/fake/fake_scheduling_client.go | 40 - .../scheduling/v1/generated_expansion.go | 21 - .../typed/scheduling/v1/priorityclass.go | 164 - .../typed/scheduling/v1/scheduling_client.go | 89 - .../typed/scheduling/v1alpha1/doc.go | 20 - .../typed/scheduling/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_priorityclass.go | 120 - .../v1alpha1/fake/fake_scheduling_client.go | 40 - .../v1alpha1/generated_expansion.go | 21 - .../scheduling/v1alpha1/priorityclass.go | 164 - .../scheduling/v1alpha1/scheduling_client.go | 89 - .../typed/scheduling/v1beta1/doc.go | 20 - .../typed/scheduling/v1beta1/fake/doc.go | 20 - .../v1beta1/fake/fake_priorityclass.go | 120 - .../v1beta1/fake/fake_scheduling_client.go | 40 - .../scheduling/v1beta1/generated_expansion.go | 21 - .../typed/scheduling/v1beta1/priorityclass.go | 164 - .../scheduling/v1beta1/scheduling_client.go | 89 - .../kubernetes/typed/settings/v1alpha1/doc.go | 20 - .../typed/settings/v1alpha1/fake/doc.go | 20 - .../settings/v1alpha1/fake/fake_podpreset.go | 128 - .../v1alpha1/fake/fake_settings_client.go | 40 - .../settings/v1alpha1/generated_expansion.go | 21 - .../typed/settings/v1alpha1/podpreset.go | 174 - .../settings/v1alpha1/settings_client.go | 89 - .../kubernetes/typed/storage/v1/doc.go | 20 - .../kubernetes/typed/storage/v1/fake/doc.go | 20 - .../storage/v1/fake/fake_storage_client.go | 44 - .../storage/v1/fake/fake_storageclass.go | 120 - .../storage/v1/fake/fake_volumeattachment.go | 131 - .../typed/storage/v1/generated_expansion.go | 23 - .../typed/storage/v1/storage_client.go | 94 - .../typed/storage/v1/storageclass.go | 164 - .../typed/storage/v1/volumeattachment.go | 180 - .../kubernetes/typed/storage/v1alpha1/doc.go | 20 - .../typed/storage/v1alpha1/fake/doc.go | 20 - .../v1alpha1/fake/fake_storage_client.go | 40 - .../v1alpha1/fake/fake_volumeattachment.go | 131 - .../storage/v1alpha1/generated_expansion.go | 21 - .../typed/storage/v1alpha1/storage_client.go | 89 - .../storage/v1alpha1/volumeattachment.go | 180 - .../typed/storage/v1beta1/csidriver.go | 164 - .../typed/storage/v1beta1/csinode.go | 164 - .../kubernetes/typed/storage/v1beta1/doc.go | 20 - .../typed/storage/v1beta1/fake/doc.go | 20 - .../storage/v1beta1/fake/fake_csidriver.go | 120 - .../storage/v1beta1/fake/fake_csinode.go | 120 - .../v1beta1/fake/fake_storage_client.go | 52 - .../storage/v1beta1/fake/fake_storageclass.go | 120 - .../v1beta1/fake/fake_volumeattachment.go | 131 - .../storage/v1beta1/generated_expansion.go | 27 - .../typed/storage/v1beta1/storage_client.go | 104 - .../typed/storage/v1beta1/storageclass.go | 164 - .../typed/storage/v1beta1/volumeattachment.go | 180 - .../client-go/kubernetes_test/timeout_test.go | 60 - .../v1/expansion_generated.go | 27 - .../v1/mutatingwebhookconfiguration.go | 65 - .../v1/validatingwebhookconfiguration.go | 65 - .../v1beta1/expansion_generated.go | 27 - .../v1beta1/mutatingwebhookconfiguration.go | 65 - .../v1beta1/validatingwebhookconfiguration.go | 65 - .../listers/apps/v1/controllerrevision.go | 94 - .../client-go/listers/apps/v1/daemonset.go | 94 - .../listers/apps/v1/daemonset_expansion.go | 113 - .../client-go/listers/apps/v1/deployment.go | 94 - .../listers/apps/v1/deployment_expansion.go | 70 - .../listers/apps/v1/expansion_generated.go | 27 - .../client-go/listers/apps/v1/replicaset.go | 94 - .../listers/apps/v1/replicaset_expansion.go | 73 - .../client-go/listers/apps/v1/statefulset.go | 94 - .../listers/apps/v1/statefulset_expansion.go | 77 - .../apps/v1beta1/controllerrevision.go | 94 - .../listers/apps/v1beta1/deployment.go | 94 - .../apps/v1beta1/expansion_generated.go | 35 - .../listers/apps/v1beta1/statefulset.go | 94 - .../apps/v1beta1/statefulset_expansion.go | 77 - .../apps/v1beta2/controllerrevision.go | 94 - .../listers/apps/v1beta2/daemonset.go | 94 - .../apps/v1beta2/daemonset_expansion.go | 113 - .../listers/apps/v1beta2/deployment.go | 94 - .../apps/v1beta2/deployment_expansion.go | 70 - .../apps/v1beta2/expansion_generated.go | 27 - .../listers/apps/v1beta2/replicaset.go | 94 - .../apps/v1beta2/replicaset_expansion.go | 73 - .../listers/apps/v1beta2/statefulset.go | 94 - .../apps/v1beta2/statefulset_expansion.go | 77 - .../auditregistration/v1alpha1/auditsink.go | 65 - .../v1alpha1/expansion_generated.go | 23 - .../authentication/v1/expansion_generated.go | 23 - .../listers/authentication/v1/tokenreview.go | 65 - .../v1beta1/expansion_generated.go | 23 - .../authentication/v1beta1/tokenreview.go | 65 - .../authorization/v1/expansion_generated.go | 39 - .../v1/localsubjectaccessreview.go | 94 - .../v1/selfsubjectaccessreview.go | 65 - .../v1/selfsubjectrulesreview.go | 65 - .../authorization/v1/subjectaccessreview.go | 65 - .../v1beta1/expansion_generated.go | 39 - .../v1beta1/localsubjectaccessreview.go | 94 - .../v1beta1/selfsubjectaccessreview.go | 65 - .../v1beta1/selfsubjectrulesreview.go | 65 - .../v1beta1/subjectaccessreview.go | 65 - .../autoscaling/v1/expansion_generated.go | 27 - .../autoscaling/v1/horizontalpodautoscaler.go | 94 - .../v2beta1/expansion_generated.go | 27 - .../v2beta1/horizontalpodautoscaler.go | 94 - .../v2beta2/expansion_generated.go | 27 - .../v2beta2/horizontalpodautoscaler.go | 94 - .../listers/batch/v1/expansion_generated.go | 19 - pseudo/k8s/client-go/listers/batch/v1/job.go | 94 - .../listers/batch/v1/job_expansion.go | 68 - .../listers/batch/v1beta1/cronjob.go | 94 - .../batch/v1beta1/expansion_generated.go | 27 - .../listers/batch/v2alpha1/cronjob.go | 94 - .../batch/v2alpha1/expansion_generated.go | 27 - .../v1beta1/certificatesigningrequest.go | 65 - .../v1beta1/expansion_generated.go | 23 - .../coordination/v1/expansion_generated.go | 27 - .../listers/coordination/v1/lease.go | 94 - .../v1beta1/expansion_generated.go | 27 - .../listers/coordination/v1beta1/lease.go | 94 - .../listers/core/v1/componentstatus.go | 65 - .../client-go/listers/core/v1/configmap.go | 94 - .../client-go/listers/core/v1/endpoints.go | 94 - pseudo/k8s/client-go/listers/core/v1/event.go | 94 - .../listers/core/v1/expansion_generated.go | 111 - .../client-go/listers/core/v1/limitrange.go | 94 - .../client-go/listers/core/v1/namespace.go | 65 - pseudo/k8s/client-go/listers/core/v1/node.go | 65 - .../listers/core/v1/node_expansion.go | 48 - .../listers/core/v1/persistentvolume.go | 65 - .../listers/core/v1/persistentvolumeclaim.go | 94 - pseudo/k8s/client-go/listers/core/v1/pod.go | 94 - .../client-go/listers/core/v1/podtemplate.go | 94 - .../listers/core/v1/replicationcontroller.go | 94 - .../v1/replicationcontroller_expansion.go | 66 - .../listers/core/v1/resourcequota.go | 94 - .../k8s/client-go/listers/core/v1/secret.go | 94 - .../k8s/client-go/listers/core/v1/service.go | 94 - .../listers/core/v1/service_expansion.go | 56 - .../listers/core/v1/serviceaccount.go | 94 - .../discovery/v1alpha1/endpointslice.go | 94 - .../discovery/v1alpha1/expansion_generated.go | 27 - .../client-go/listers/events/v1beta1/event.go | 94 - .../events/v1beta1/expansion_generated.go | 27 - .../listers/extensions/v1beta1/daemonset.go | 94 - .../extensions/v1beta1/daemonset_expansion.go | 114 - .../v1beta1/daemonset_expansion_test.go | 152 - .../listers/extensions/v1beta1/deployment.go | 94 - .../v1beta1/deployment_expansion.go | 70 - .../extensions/v1beta1/expansion_generated.go | 39 - .../listers/extensions/v1beta1/ingress.go | 94 - .../extensions/v1beta1/networkpolicy.go | 94 - .../extensions/v1beta1/podsecuritypolicy.go | 65 - .../listers/extensions/v1beta1/replicaset.go | 94 - .../v1beta1/replicaset_expansion.go | 73 - .../v1alpha1/expansion_generated.go | 23 - .../imagepolicy/v1alpha1/imagereview.go | 65 - .../networking/v1/expansion_generated.go | 27 - .../listers/networking/v1/networkpolicy.go | 94 - .../networking/v1beta1/expansion_generated.go | 27 - .../listers/networking/v1beta1/ingress.go | 94 - .../node/v1alpha1/expansion_generated.go | 23 - .../listers/node/v1alpha1/runtimeclass.go | 65 - .../node/v1beta1/expansion_generated.go | 23 - .../listers/node/v1beta1/runtimeclass.go | 65 - .../listers/policy/v1beta1/eviction.go | 94 - .../policy/v1beta1/expansion_generated.go | 31 - .../policy/v1beta1/poddisruptionbudget.go | 94 - .../v1beta1/poddisruptionbudget_expansion.go | 74 - .../policy/v1beta1/podsecuritypolicy.go | 65 - .../client-go/listers/rbac/v1/clusterrole.go | 65 - .../listers/rbac/v1/clusterrolebinding.go | 65 - .../listers/rbac/v1/expansion_generated.go | 43 - pseudo/k8s/client-go/listers/rbac/v1/role.go | 94 - .../client-go/listers/rbac/v1/rolebinding.go | 94 - .../listers/rbac/v1alpha1/clusterrole.go | 65 - .../rbac/v1alpha1/clusterrolebinding.go | 65 - .../rbac/v1alpha1/expansion_generated.go | 43 - .../client-go/listers/rbac/v1alpha1/role.go | 94 - .../listers/rbac/v1alpha1/rolebinding.go | 94 - .../listers/rbac/v1beta1/clusterrole.go | 65 - .../rbac/v1beta1/clusterrolebinding.go | 65 - .../rbac/v1beta1/expansion_generated.go | 43 - .../client-go/listers/rbac/v1beta1/role.go | 94 - .../listers/rbac/v1beta1/rolebinding.go | 94 - .../scheduling/v1/expansion_generated.go | 23 - .../listers/scheduling/v1/priorityclass.go | 65 - .../v1alpha1/expansion_generated.go | 23 - .../scheduling/v1alpha1/priorityclass.go | 65 - .../scheduling/v1beta1/expansion_generated.go | 23 - .../scheduling/v1beta1/priorityclass.go | 65 - .../settings/v1alpha1/expansion_generated.go | 27 - .../listers/settings/v1alpha1/podpreset.go | 94 - .../listers/storage/v1/expansion_generated.go | 27 - .../listers/storage/v1/storageclass.go | 65 - .../listers/storage/v1/volumeattachment.go | 65 - .../storage/v1alpha1/expansion_generated.go | 23 - .../storage/v1alpha1/volumeattachment.go | 65 - .../listers/storage/v1beta1/csidriver.go | 65 - .../listers/storage/v1beta1/csinode.go | 65 - .../storage/v1beta1/expansion_generated.go | 35 - .../listers/storage/v1beta1/storageclass.go | 65 - .../storage/v1beta1/volumeattachment.go | 65 - pseudo/k8s/client-go/metadata/fake/simple.go | 390 - .../client-go/metadata/fake/simple_test.go | 201 - pseudo/k8s/client-go/metadata/interface.go | 47 - pseudo/k8s/client-go/metadata/metadata.go | 312 - .../k8s/client-go/metadata/metadata_test.go | 243 - .../metadata/metadatainformer/informer.go | 156 - .../metadatainformer/informer_test.go | 170 - .../metadata/metadatainformer/interface.go | 34 - .../metadata/metadatalister/interface.go | 40 - .../metadata/metadatalister/lister.go | 91 - .../metadata/metadatalister/lister_test.go | 256 - .../client-go/metadata/metadatalister/shim.go | 87 - .../pkg/apis/clientauthentication/doc.go | 20 - .../clientauthentication/install/install.go | 33 - .../pkg/apis/clientauthentication/register.go | 50 - .../pkg/apis/clientauthentication/types.go | 77 - .../apis/clientauthentication/v1alpha1/doc.go | 24 - .../clientauthentication/v1alpha1/register.go | 55 - .../clientauthentication/v1alpha1/types.go | 78 - .../v1alpha1/zz_generated.conversion.go | 176 - .../v1alpha1/zz_generated.deepcopy.go | 128 - .../v1alpha1/zz_generated.defaults.go | 32 - .../v1beta1/conversion.go | 26 - .../apis/clientauthentication/v1beta1/doc.go | 24 - .../clientauthentication/v1beta1/register.go | 55 - .../clientauthentication/v1beta1/types.go | 59 - .../v1beta1/zz_generated.conversion.go | 142 - .../v1beta1/zz_generated.deepcopy.go | 92 - .../v1beta1/zz_generated.defaults.go | 32 - .../zz_generated.deepcopy.go | 128 - .../k8s/client-go/pkg/version/.gitattributes | 1 - pseudo/k8s/client-go/pkg/version/base.go | 63 - pseudo/k8s/client-go/pkg/version/def.bzl | 38 - pseudo/k8s/client-go/pkg/version/doc.go | 21 - pseudo/k8s/client-go/pkg/version/version.go | 42 - .../plugin/pkg/client/auth/azure/README.md | 50 - .../plugin/pkg/client/auth/azure/azure.go | 374 - .../pkg/client/auth/azure/azure_test.go | 143 - .../plugin/pkg/client/auth/exec/exec.go | 360 - .../plugin/pkg/client/auth/exec/exec_test.go | 748 - .../client/auth/exec/testdata/test-plugin.sh | 18 - .../plugin/pkg/client/auth/gcp/gcp.go | 383 - .../plugin/pkg/client/auth/gcp/gcp_test.go | 527 - .../plugin/pkg/client/auth/oidc/oidc.go | 379 - .../plugin/pkg/client/auth/oidc/oidc_test.go | 138 - .../pkg/client/auth/openstack/openstack.go | 193 - .../client/auth/openstack/openstack_test.go | 173 - .../plugin/pkg/client/auth/plugins.go | 25 - pseudo/k8s/client-go/rest/client.go | 258 - pseudo/k8s/client-go/rest/client_test.go | 342 - pseudo/k8s/client-go/rest/config.go | 564 - pseudo/k8s/client-go/rest/config_test.go | 521 - pseudo/k8s/client-go/rest/fake/fake.go | 118 - pseudo/k8s/client-go/rest/plugin.go | 73 - pseudo/k8s/client-go/rest/plugin_test.go | 311 - pseudo/k8s/client-go/rest/request.go | 1227 - pseudo/k8s/client-go/rest/request_test.go | 1996 - pseudo/k8s/client-go/rest/transport.go | 120 - pseudo/k8s/client-go/rest/url_utils.go | 97 - pseudo/k8s/client-go/rest/url_utils_test.go | 61 - pseudo/k8s/client-go/rest/urlbackoff.go | 107 - pseudo/k8s/client-go/rest/urlbackoff_test.go | 79 - pseudo/k8s/client-go/rest/watch/decoder.go | 72 - .../k8s/client-go/rest/watch/decoder_test.go | 122 - pseudo/k8s/client-go/rest/watch/encoder.go | 56 - .../k8s/client-go/rest/watch/encoder_test.go | 87 - .../client-go/rest/zz_generated.deepcopy.go | 57 - .../restmapper/category_expansion.go | 119 - .../restmapper/category_expansion_test.go | 145 - pseudo/k8s/client-go/restmapper/discovery.go | 338 - .../client-go/restmapper/discovery_test.go | 547 - pseudo/k8s/client-go/restmapper/shortcut.go | 172 - .../k8s/client-go/restmapper/shortcut_test.go | 304 - pseudo/k8s/client-go/scale/client.go | 225 - pseudo/k8s/client-go/scale/client_test.go | 364 - pseudo/k8s/client-go/scale/doc.go | 21 - pseudo/k8s/client-go/scale/fake/client.go | 78 - pseudo/k8s/client-go/scale/interfaces.go | 44 - pseudo/k8s/client-go/scale/roundtrip_test.go | 34 - .../k8s/client-go/scale/scheme/appsint/doc.go | 22 - .../scale/scheme/appsint/register.go | 55 - .../scale/scheme/appsv1beta1/conversion.go | 87 - .../client-go/scale/scheme/appsv1beta1/doc.go | 20 - .../scale/scheme/appsv1beta1/register.go | 45 - .../appsv1beta1/zz_generated.conversion.go | 143 - .../scale/scheme/appsv1beta2/conversion.go | 87 - .../client-go/scale/scheme/appsv1beta2/doc.go | 20 - .../scale/scheme/appsv1beta2/register.go | 45 - .../appsv1beta2/zz_generated.conversion.go | 143 - .../scale/scheme/autoscalingv1/conversion.go | 69 - .../scale/scheme/autoscalingv1/doc.go | 20 - .../scale/scheme/autoscalingv1/register.go | 45 - .../autoscalingv1/zz_generated.conversion.go | 142 - pseudo/k8s/client-go/scale/scheme/doc.go | 22 - .../scale/scheme/extensionsint/doc.go | 22 - .../scale/scheme/extensionsint/register.go | 55 - .../scheme/extensionsv1beta1/conversion.go | 87 - .../scale/scheme/extensionsv1beta1/doc.go | 20 - .../scheme/extensionsv1beta1/register.go | 45 - .../zz_generated.conversion.go | 143 - pseudo/k8s/client-go/scale/scheme/register.go | 54 - pseudo/k8s/client-go/scale/scheme/types.go | 60 - .../scale/scheme/zz_generated.deepcopy.go | 91 - pseudo/k8s/client-go/scale/util.go | 197 - pseudo/k8s/client-go/testing/actions.go | 671 - pseudo/k8s/client-go/testing/fake.go | 216 - pseudo/k8s/client-go/testing/fake_test.go | 166 - pseudo/k8s/client-go/testing/fixture.go | 570 - pseudo/k8s/client-go/testing/fixture_test.go | 276 - .../forked/golang/template/exec.go | 94 - .../forked/golang/template/funcs.go | 599 - pseudo/k8s/client-go/tools/auth/clientauth.go | 126 - .../client-go/tools/auth/clientauth_test.go | 69 - .../k8s/client-go/tools/cache/controller.go | 383 - .../client-go/tools/cache/controller_test.go | 404 - .../k8s/client-go/tools/cache/delta_fifo.go | 656 - .../client-go/tools/cache/delta_fifo_test.go | 493 - pseudo/k8s/client-go/tools/cache/doc.go | 24 - .../client-go/tools/cache/expiration_cache.go | 215 - .../tools/cache/expiration_cache_fakes.go | 57 - .../tools/cache/expiration_cache_test.go | 191 - .../tools/cache/fake_custom_store.go | 102 - pseudo/k8s/client-go/tools/cache/fifo.go | 359 - pseudo/k8s/client-go/tools/cache/fifo_test.go | 280 - pseudo/k8s/client-go/tools/cache/heap.go | 325 - pseudo/k8s/client-go/tools/cache/heap_test.go | 382 - pseudo/k8s/client-go/tools/cache/index.go | 98 - .../k8s/client-go/tools/cache/index_test.go | 134 - pseudo/k8s/client-go/tools/cache/listers.go | 183 - pseudo/k8s/client-go/tools/cache/listwatch.go | 114 - pseudo/k8s/client-go/tools/cache/main_test.go | 29 - .../client-go/tools/cache/mutation_cache.go | 262 - .../tools/cache/mutation_detector.go | 132 - .../tools/cache/mutation_detector_test.go | 81 - .../tools/cache/processor_listener_test.go | 58 - pseudo/k8s/client-go/tools/cache/reflector.go | 399 - .../tools/cache/reflector_metrics.go | 102 - .../client-go/tools/cache/reflector_test.go | 432 - .../client-go/tools/cache/shared_informer.go | 701 - .../tools/cache/shared_informer_test.go | 265 - pseudo/k8s/client-go/tools/cache/store.go | 244 - .../k8s/client-go/tools/cache/store_test.go | 156 - .../cache/testing/fake_controller_source.go | 255 - .../testing/fake_controller_source_test.go | 95 - .../tools/cache/thread_safe_store.go | 312 - .../client-go/tools/cache/undelta_store.go | 89 - .../tools/cache/undelta_store_test.go | 131 - .../k8s/client-go/tools/clientcmd/api/doc.go | 19 - .../client-go/tools/clientcmd/api/helpers.go | 188 - .../tools/clientcmd/api/helpers_test.go | 302 - .../tools/clientcmd/api/latest/latest.go | 61 - .../client-go/tools/clientcmd/api/register.go | 46 - .../client-go/tools/clientcmd/api/types.go | 262 - .../tools/clientcmd/api/types_test.go | 135 - .../tools/clientcmd/api/v1/conversion.go | 244 - .../client-go/tools/clientcmd/api/v1/doc.go | 19 - .../tools/clientcmd/api/v1/register.go | 56 - .../client-go/tools/clientcmd/api/v1/types.go | 203 - .../clientcmd/api/v1/zz_generated.deepcopy.go | 348 - .../clientcmd/api/zz_generated.deepcopy.go | 324 - .../client-go/tools/clientcmd/auth_loaders.go | 111 - .../tools/clientcmd/client_config.go | 561 - .../tools/clientcmd/client_config_test.go | 711 - .../k8s/client-go/tools/clientcmd/config.go | 490 - pseudo/k8s/client-go/tools/clientcmd/doc.go | 37 - pseudo/k8s/client-go/tools/clientcmd/flag.go | 49 - .../k8s/client-go/tools/clientcmd/helpers.go | 35 - .../k8s/client-go/tools/clientcmd/loader.go | 649 - .../client-go/tools/clientcmd/loader_test.go | 789 - .../tools/clientcmd/merged_client_builder.go | 173 - .../clientcmd/merged_client_builder_test.go | 341 - .../client-go/tools/clientcmd/overrides.go | 247 - .../tools/clientcmd/overrides_test.go | 50 - .../client-go/tools/clientcmd/validation.go | 299 - .../tools/clientcmd/validation_test.go | 571 - .../tools/events/event_broadcaster.go | 314 - .../client-go/tools/events/event_recorder.go | 92 - .../tools/events/eventseries_test.go | 371 - pseudo/k8s/client-go/tools/events/fake.go | 45 - .../k8s/client-go/tools/events/interfaces.go | 64 - .../tools/leaderelection/healthzadaptor.go | 69 - .../leaderelection/healthzadaptor_test.go | 175 - .../tools/leaderelection/leaderelection.go | 397 - .../leaderelection/leaderelection_test.go | 354 - .../client-go/tools/leaderelection/metrics.go | 109 - .../resourcelock/configmaplock.go | 112 - .../resourcelock/endpointslock.go | 107 - .../leaderelection/resourcelock/interface.go | 126 - .../leaderelection/resourcelock/leaselock.go | 124 - pseudo/k8s/client-go/tools/metrics/metrics.go | 61 - pseudo/k8s/client-go/tools/pager/pager.go | 231 - .../k8s/client-go/tools/pager/pager_test.go | 444 - pseudo/k8s/client-go/tools/portforward/doc.go | 19 - .../tools/portforward/portforward.go | 429 - .../tools/portforward/portforward_test.go | 391 - pseudo/k8s/client-go/tools/record/doc.go | 18 - pseudo/k8s/client-go/tools/record/event.go | 348 - .../k8s/client-go/tools/record/event_test.go | 921 - .../client-go/tools/record/events_cache.go | 508 - .../tools/record/events_cache_test.go | 279 - pseudo/k8s/client-go/tools/record/fake.go | 58 - .../k8s/client-go/tools/record/main_test.go | 29 - .../k8s/client-go/tools/record/util/util.go | 44 - pseudo/k8s/client-go/tools/reference/ref.go | 109 - .../k8s/client-go/tools/reference/ref_test.go | 74 - .../k8s/client-go/tools/remotecommand/doc.go | 20 - .../tools/remotecommand/errorstream.go | 55 - .../client-go/tools/remotecommand/reader.go | 41 - .../tools/remotecommand/remotecommand.go | 142 - .../client-go/tools/remotecommand/resize.go | 33 - .../k8s/client-go/tools/remotecommand/v1.go | 160 - .../k8s/client-go/tools/remotecommand/v2.go | 195 - .../client-go/tools/remotecommand/v2_test.go | 228 - .../k8s/client-go/tools/remotecommand/v3.go | 111 - .../k8s/client-go/tools/remotecommand/v4.go | 119 - .../client-go/tools/remotecommand/v4_test.go | 71 - .../client-go/tools/watch/informerwatcher.go | 150 - .../tools/watch/informerwatcher_test.go | 278 - .../k8s/client-go/tools/watch/retrywatcher.go | 287 - .../tools/watch/retrywatcher_test.go | 602 - pseudo/k8s/client-go/tools/watch/until.go | 236 - .../k8s/client-go/tools/watch/until_test.go | 309 - pseudo/k8s/client-go/transport/cache.go | 123 - pseudo/k8s/client-go/transport/cache_test.go | 159 - pseudo/k8s/client-go/transport/config.go | 136 - .../k8s/client-go/transport/round_trippers.go | 569 - .../transport/round_trippers_test.go | 414 - pseudo/k8s/client-go/transport/spdy/spdy.go | 94 - .../k8s/client-go/transport/token_source.go | 158 - .../client-go/transport/token_source_test.go | 239 - pseudo/k8s/client-go/transport/transport.go | 245 - .../k8s/client-go/transport/transport_test.go | 452 - pseudo/k8s/client-go/util/cert/cert.go | 206 - pseudo/k8s/client-go/util/cert/csr.go | 75 - pseudo/k8s/client-go/util/cert/csr_test.go | 77 - pseudo/k8s/client-go/util/cert/io.go | 98 - pseudo/k8s/client-go/util/cert/pem.go | 61 - .../util/cert/testdata/dontUseThisKey.pem | 6 - .../util/certificate/certificate_manager.go | 593 - .../certificate/certificate_manager_test.go | 1107 - .../util/certificate/certificate_store.go | 312 - .../certificate/certificate_store_test.go | 423 - .../k8s/client-go/util/certificate/csr/csr.go | 190 - .../util/connrotation/connrotation.go | 105 - .../util/connrotation/connrotation_test.go | 61 - pseudo/k8s/client-go/util/exec/exec.go | 52 - .../k8s/client-go/util/flowcontrol/backoff.go | 149 - .../util/flowcontrol/backoff_test.go | 195 - .../client-go/util/flowcontrol/throttle.go | 159 - .../util/flowcontrol/throttle_test.go | 173 - pseudo/k8s/client-go/util/homedir/homedir.go | 92 - pseudo/k8s/client-go/util/jsonpath/doc.go | 20 - .../k8s/client-go/util/jsonpath/jsonpath.go | 525 - .../client-go/util/jsonpath/jsonpath_test.go | 654 - pseudo/k8s/client-go/util/jsonpath/node.go | 256 - pseudo/k8s/client-go/util/jsonpath/parser.go | 524 - .../client-go/util/jsonpath/parser_test.go | 157 - pseudo/k8s/client-go/util/keyutil/key.go | 323 - pseudo/k8s/client-go/util/keyutil/key_test.go | 197 - pseudo/k8s/client-go/util/retry/util.go | 84 - pseudo/k8s/client-go/util/retry/util_test.go | 71 - .../client-go/util/testing/fake_handler.go | 139 - .../util/testing/fake_handler_test.go | 180 - pseudo/k8s/client-go/util/testing/tmpdir.go | 44 - .../util/workqueue/default_rate_limiters.go | 211 - .../workqueue/default_rate_limiters_test.go | 184 - .../util/workqueue/delaying_queue.go | 261 - .../util/workqueue/delaying_queue_test.go | 253 - pseudo/k8s/client-go/util/workqueue/doc.go | 26 - .../k8s/client-go/util/workqueue/main_test.go | 29 - .../k8s/client-go/util/workqueue/metrics.go | 268 - .../client-go/util/workqueue/metrics_test.go | 290 - .../client-go/util/workqueue/parallelizer.go | 63 - pseudo/k8s/client-go/util/workqueue/queue.go | 212 - .../client-go/util/workqueue/queue_test.go | 161 - .../util/workqueue/rate_limiting_queue.go | 69 - .../workqueue/rate_limiting_queue_test.go | 75 - pseudo/k8s/go.mod | 45 - pseudo/k8s/go.sum | 140 - pseudo/k8s/main.go | 17 - pseudo/update-fork-references.sh | 15 +- 3387 files changed, 12 insertions(+), 739094 deletions(-) delete mode 100644 pseudo/README.md delete mode 100755 pseudo/init-pseudo-module.sh delete mode 100644 pseudo/k8s/api/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 pseudo/k8s/api/CONTRIBUTING.md delete mode 100644 pseudo/k8s/api/Godeps/Godeps.json delete mode 100644 pseudo/k8s/api/Godeps/Readme delete mode 100644 pseudo/k8s/api/LICENSE delete mode 100644 pseudo/k8s/api/README.md delete mode 100644 pseudo/k8s/api/SECURITY_CONTACTS delete mode 100644 pseudo/k8s/api/admission/v1/doc.go delete mode 100644 pseudo/k8s/api/admission/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/admission/v1/generated.proto delete mode 100644 pseudo/k8s/api/admission/v1/register.go delete mode 100644 pseudo/k8s/api/admission/v1/types.go delete mode 100644 pseudo/k8s/api/admission/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/admission/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/admission/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/admission/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/admission/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/admission/v1beta1/register.go delete mode 100644 pseudo/k8s/api/admission/v1beta1/types.go delete mode 100644 pseudo/k8s/api/admission/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/admission/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1/doc.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1/generated.proto delete mode 100644 pseudo/k8s/api/admissionregistration/v1/register.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1/types.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/register.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/types.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/admissionregistration/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/apps/v1/doc.go delete mode 100644 pseudo/k8s/api/apps/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/apps/v1/generated.proto delete mode 100644 pseudo/k8s/api/apps/v1/register.go delete mode 100644 pseudo/k8s/api/apps/v1/types.go delete mode 100644 pseudo/k8s/api/apps/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/apps/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/apps/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/apps/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/apps/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/apps/v1beta1/register.go delete mode 100644 pseudo/k8s/api/apps/v1beta1/types.go delete mode 100644 pseudo/k8s/api/apps/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/apps/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/apps/v1beta2/doc.go delete mode 100644 pseudo/k8s/api/apps/v1beta2/generated.pb.go delete mode 100644 pseudo/k8s/api/apps/v1beta2/generated.proto delete mode 100644 pseudo/k8s/api/apps/v1beta2/register.go delete mode 100644 pseudo/k8s/api/apps/v1beta2/types.go delete mode 100644 pseudo/k8s/api/apps/v1beta2/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/apps/v1beta2/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/auditregistration/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/authentication/v1/doc.go delete mode 100644 pseudo/k8s/api/authentication/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/authentication/v1/generated.proto delete mode 100644 pseudo/k8s/api/authentication/v1/register.go delete mode 100644 pseudo/k8s/api/authentication/v1/types.go delete mode 100644 pseudo/k8s/api/authentication/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/authentication/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/authentication/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/authentication/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/authentication/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/authentication/v1beta1/register.go delete mode 100644 pseudo/k8s/api/authentication/v1beta1/types.go delete mode 100644 pseudo/k8s/api/authentication/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/authentication/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/authorization/v1/doc.go delete mode 100644 pseudo/k8s/api/authorization/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/authorization/v1/generated.proto delete mode 100644 pseudo/k8s/api/authorization/v1/register.go delete mode 100644 pseudo/k8s/api/authorization/v1/types.go delete mode 100644 pseudo/k8s/api/authorization/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/authorization/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/authorization/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/authorization/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/authorization/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/authorization/v1beta1/register.go delete mode 100644 pseudo/k8s/api/authorization/v1beta1/types.go delete mode 100644 pseudo/k8s/api/authorization/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/authorization/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/autoscaling/v1/doc.go delete mode 100644 pseudo/k8s/api/autoscaling/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/autoscaling/v1/generated.proto delete mode 100644 pseudo/k8s/api/autoscaling/v1/register.go delete mode 100644 pseudo/k8s/api/autoscaling/v1/types.go delete mode 100644 pseudo/k8s/api/autoscaling/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/autoscaling/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/doc.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/generated.proto delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/register.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/types.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/doc.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/generated.pb.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/generated.proto delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/register.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/types.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/autoscaling/v2beta2/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/batch/v1/doc.go delete mode 100644 pseudo/k8s/api/batch/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/batch/v1/generated.proto delete mode 100644 pseudo/k8s/api/batch/v1/register.go delete mode 100644 pseudo/k8s/api/batch/v1/types.go delete mode 100644 pseudo/k8s/api/batch/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/batch/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/batch/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/batch/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/batch/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/batch/v1beta1/register.go delete mode 100644 pseudo/k8s/api/batch/v1beta1/types.go delete mode 100644 pseudo/k8s/api/batch/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/batch/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/batch/v2alpha1/doc.go delete mode 100644 pseudo/k8s/api/batch/v2alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/batch/v2alpha1/generated.proto delete mode 100644 pseudo/k8s/api/batch/v2alpha1/register.go delete mode 100644 pseudo/k8s/api/batch/v2alpha1/types.go delete mode 100644 pseudo/k8s/api/batch/v2alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/batch/v2alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/certificates/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/certificates/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/certificates/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/certificates/v1beta1/register.go delete mode 100644 pseudo/k8s/api/certificates/v1beta1/types.go delete mode 100644 pseudo/k8s/api/certificates/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/certificates/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/code-of-conduct.md delete mode 100644 pseudo/k8s/api/coordination/v1/doc.go delete mode 100644 pseudo/k8s/api/coordination/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/coordination/v1/generated.proto delete mode 100644 pseudo/k8s/api/coordination/v1/register.go delete mode 100644 pseudo/k8s/api/coordination/v1/types.go delete mode 100644 pseudo/k8s/api/coordination/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/coordination/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/coordination/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/coordination/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/coordination/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/coordination/v1beta1/register.go delete mode 100644 pseudo/k8s/api/coordination/v1beta1/types.go delete mode 100644 pseudo/k8s/api/coordination/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/coordination/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/core/v1/annotation_key_constants.go delete mode 100644 pseudo/k8s/api/core/v1/doc.go delete mode 100644 pseudo/k8s/api/core/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/core/v1/generated.proto delete mode 100644 pseudo/k8s/api/core/v1/objectreference.go delete mode 100644 pseudo/k8s/api/core/v1/register.go delete mode 100644 pseudo/k8s/api/core/v1/resource.go delete mode 100644 pseudo/k8s/api/core/v1/taint.go delete mode 100644 pseudo/k8s/api/core/v1/taint_test.go delete mode 100644 pseudo/k8s/api/core/v1/toleration.go delete mode 100644 pseudo/k8s/api/core/v1/toleration_test.go delete mode 100644 pseudo/k8s/api/core/v1/types.go delete mode 100644 pseudo/k8s/api/core/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/core/v1/well_known_labels.go delete mode 100644 pseudo/k8s/api/core/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/well_known_labels.go delete mode 100644 pseudo/k8s/api/discovery/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/events/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/events/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/events/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/events/v1beta1/register.go delete mode 100644 pseudo/k8s/api/events/v1beta1/types.go delete mode 100644 pseudo/k8s/api/events/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/events/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/extensions/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/extensions/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/extensions/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/extensions/v1beta1/register.go delete mode 100644 pseudo/k8s/api/extensions/v1beta1/types.go delete mode 100644 pseudo/k8s/api/extensions/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/extensions/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/imagepolicy/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/networking/v1/doc.go delete mode 100644 pseudo/k8s/api/networking/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/networking/v1/generated.proto delete mode 100644 pseudo/k8s/api/networking/v1/register.go delete mode 100644 pseudo/k8s/api/networking/v1/types.go delete mode 100644 pseudo/k8s/api/networking/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/networking/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/networking/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/networking/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/networking/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/networking/v1beta1/register.go delete mode 100644 pseudo/k8s/api/networking/v1beta1/types.go delete mode 100644 pseudo/k8s/api/networking/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/networking/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/node/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/node/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/node/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/node/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/node/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/node/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/node/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/node/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/node/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/node/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/node/v1beta1/register.go delete mode 100644 pseudo/k8s/api/node/v1beta1/types.go delete mode 100644 pseudo/k8s/api/node/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/node/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/policy/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/policy/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/policy/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/policy/v1beta1/register.go delete mode 100644 pseudo/k8s/api/policy/v1beta1/types.go delete mode 100644 pseudo/k8s/api/policy/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/policy/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/rbac/v1/doc.go delete mode 100644 pseudo/k8s/api/rbac/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/rbac/v1/generated.proto delete mode 100644 pseudo/k8s/api/rbac/v1/register.go delete mode 100644 pseudo/k8s/api/rbac/v1/types.go delete mode 100644 pseudo/k8s/api/rbac/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/rbac/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/rbac/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/rbac/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/rbac/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/rbac/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/rbac/v1beta1/register.go delete mode 100644 pseudo/k8s/api/rbac/v1beta1/types.go delete mode 100644 pseudo/k8s/api/rbac/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/rbac/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/roundtrip_test.go delete mode 100644 pseudo/k8s/api/scheduling/v1/doc.go delete mode 100644 pseudo/k8s/api/scheduling/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/scheduling/v1/generated.proto delete mode 100644 pseudo/k8s/api/scheduling/v1/register.go delete mode 100644 pseudo/k8s/api/scheduling/v1/types.go delete mode 100644 pseudo/k8s/api/scheduling/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/scheduling/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/scheduling/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/register.go delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/types.go delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/scheduling/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/settings/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/settings/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/settings/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/settings/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/settings/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/settings/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/settings/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/storage/v1/doc.go delete mode 100644 pseudo/k8s/api/storage/v1/generated.pb.go delete mode 100644 pseudo/k8s/api/storage/v1/generated.proto delete mode 100644 pseudo/k8s/api/storage/v1/register.go delete mode 100644 pseudo/k8s/api/storage/v1/types.go delete mode 100644 pseudo/k8s/api/storage/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/storage/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/storage/v1alpha1/doc.go delete mode 100644 pseudo/k8s/api/storage/v1alpha1/generated.pb.go delete mode 100644 pseudo/k8s/api/storage/v1alpha1/generated.proto delete mode 100644 pseudo/k8s/api/storage/v1alpha1/register.go delete mode 100644 pseudo/k8s/api/storage/v1alpha1/types.go delete mode 100644 pseudo/k8s/api/storage/v1alpha1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/storage/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/storage/v1beta1/doc.go delete mode 100644 pseudo/k8s/api/storage/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/api/storage/v1beta1/generated.proto delete mode 100644 pseudo/k8s/api/storage/v1beta1/register.go delete mode 100644 pseudo/k8s/api/storage/v1beta1/types.go delete mode 100644 pseudo/k8s/api/storage/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/api/storage/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.DeploymentRollback.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.DeploymentRollback.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.DeploymentRollback.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta1.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/apps.v1beta2.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta1.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta1.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1.Job.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1.Job.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1.Job.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.APIVersions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.APIVersions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.APIVersions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Binding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Binding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Binding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.CreateOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.CreateOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.CreateOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Event.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Event.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Event.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.GetOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.GetOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.GetOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Node.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Node.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Node.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PatchOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PatchOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PatchOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolume.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolume.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolume.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolumeClaim.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolumeClaim.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolumeClaim.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Pod.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Pod.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Pod.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodAttachOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodAttachOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodAttachOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodExecOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodExecOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodExecOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodLogOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodLogOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodLogOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodStatusResult.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodStatusResult.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodStatusResult.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ReplicationController.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ReplicationController.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ReplicationController.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Secret.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Secret.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Secret.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.SerializedReference.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.SerializedReference.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.SerializedReference.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Service.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Service.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Service.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Status.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Status.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.Status.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Ingress.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Ingress.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Ingress.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.NetworkPolicy.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.NetworkPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.NetworkPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/imagepolicy.k8s.io.v1alpha1.ImageReview.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/imagepolicy.k8s.io.v1alpha1.ImageReview.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.Role.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSINode.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSINode.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSINode.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.StorageClass.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.StorageClass.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.StorageClass.yaml delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/README.md delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.DeploymentRollback.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.DeploymentRollback.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.DeploymentRollback.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.APIGroup.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.APIGroup.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.APIGroup.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.APIVersions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.APIVersions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.APIVersions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.GetOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.GetOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.GetOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PatchOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PatchOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PatchOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodExecOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodExecOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodExecOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodLogOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodLogOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodLogOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Status.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Status.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.Status.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodSecurityPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodSecurityPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodSecurityPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.Role.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.Role.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.Role.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.Role.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1alpha1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1alpha1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.DaemonSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.DaemonSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.DaemonSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.APIGroup.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.APIGroup.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.APIGroup.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.APIVersions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.APIVersions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.APIVersions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.GetOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.GetOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.GetOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ListOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ListOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ListOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PatchOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PatchOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PatchOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodExecOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodExecOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodExecOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodLogOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodLogOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodLogOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Status.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Status.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.Status.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.Role.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.Role.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.Role.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.Role.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.RoleBinding.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.json delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.pb delete mode 100644 pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml delete mode 100644 pseudo/k8s/apimachinery/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 pseudo/k8s/apimachinery/CONTRIBUTING.md delete mode 100644 pseudo/k8s/apimachinery/Godeps/Godeps.json delete mode 100644 pseudo/k8s/apimachinery/Godeps/Readme delete mode 100644 pseudo/k8s/apimachinery/LICENSE delete mode 100644 pseudo/k8s/apimachinery/README.md delete mode 100644 pseudo/k8s/apimachinery/SECURITY_CONTACTS delete mode 100644 pseudo/k8s/apimachinery/code-of-conduct.md delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/codec.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/fuzzer.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/naming/naming.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/equality/semantic.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/errors/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/errors/errors.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/errors/errors_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/errors.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/firsthit_restmapper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/help.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/interfaces.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/lazy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/meta.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/meta_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/priority.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/priority_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/restmapper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/restmapper_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/table/table.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/amount.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/amount_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/math.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/math_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/quantity.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/quantity_example_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/quantity_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/scale_int.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/scale_int_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/suffix.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/resource/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/validation/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/validation/generic.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/validation/objectmeta.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/validation/objectmeta_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/validation/path/name.go delete mode 100644 pseudo/k8s/apimachinery/pkg/api/validation/path/name_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/roundtrip_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.conversion.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/meta.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_proto.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/options_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/register.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/time.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_proto.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme/scheme.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/watch.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/conversion.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/register.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types_swagger_doc_generated.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/validation/validation.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.defaults.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/install.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/roundtrip_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/register.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/conversion.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/defaults.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/register.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.conversion.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.defaults.go delete mode 100644 pseudo/k8s/apimachinery/pkg/apis/testapigroup/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/converter.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/converter_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/deep_equal.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/helper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/helper_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/queryparams/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/conversion/unstructured/unstructured_conversion_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/fields/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/fields/fields.go delete mode 100644 pseudo/k8s/apimachinery/pkg/fields/fields_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/fields/requirements.go delete mode 100644 pseudo/k8s/apimachinery/pkg/fields/selector.go delete mode 100644 pseudo/k8s/apimachinery/pkg/fields/selector_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/labels/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/labels/labels.go delete mode 100644 pseudo/k8s/apimachinery/pkg/labels/labels_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/labels/selector.go delete mode 100644 pseudo/k8s/apimachinery/pkg/labels/selector_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/labels/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/codec.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/codec_check.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/codec_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/conversion.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/conversion_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/converter.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/converter_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/embedded.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/embedded_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/error.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/extension.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/extension_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/helper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/interfaces.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/local_scheme_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/mapper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/mapper_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/register.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/schema/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/schema/group_version.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/schema/group_version_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/schema/interfaces.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/scheme.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/scheme_builder.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/scheme_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_factory.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_limit_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/negotiated_codec.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/testing/recognizer_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/sparse_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/testing/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/testing/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/testing/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/types_proto.go delete mode 100644 pseudo/k8s/apimachinery/pkg/runtime/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/selection/operator.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/api_meta_help_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/api_meta_meta_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/runtime_helper_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/runtime_unversioned_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/util.go delete mode 100644 pseudo/k8s/apimachinery/pkg/test/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/pkg/types/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/types/namespacedname.go delete mode 100644 pseudo/k8s/apimachinery/pkg/types/nodename.go delete mode 100644 pseudo/k8s/apimachinery/pkg/types/patch.go delete mode 100644 pseudo/k8s/apimachinery/pkg/types/uid.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/cache/cache.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/cache/cache_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/clock/clock.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/clock/clock_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/diff/diff.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/diff/diff_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/duration/duration.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/duration/duration_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/errors/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/errors/errors.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/errors/errors_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/framer/framer.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/framer/framer_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/intstr/generated.pb.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto delete mode 100644 pseudo/k8s/apimachinery/pkg/util/intstr/intstr.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/intstr/intstr_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/json/json.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/json/json_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/mergepatch/errors.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/mergepatch/util.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/mergepatch/util_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/naming/from_stack.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/http.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/http_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/interface.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/interface_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/port_range.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/port_range_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/port_split.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/port_split_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/util.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/net/util_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/dial.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/dial_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/transport.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/transport_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/upgradeaware.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/proxy/upgradeaware_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/rand/rand.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/rand/rand_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/remotecommand/constants.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/runtime/runtime.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/runtime/runtime_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/byte.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/empty.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/int.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/int32.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/int64.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/set_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/string.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/sets/types/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/errors.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/meta.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/patch.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/patch_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/testdata/swagger-merge-item.json delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/testdata/swagger-precision-item.json delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/testing/openapi.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/strategicpatch/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/uuid/uuid.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/validation/field/errors.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/validation/field/errors_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/validation/field/path.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/validation/field/path_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/validation/validation.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/validation/validation_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/version/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/version/version.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/version/version_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/wait/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/wait/wait.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/wait/wait_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/waitgroup/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/waitgroup/waitgroup.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/waitgroup/waitgroup_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/yaml/decoder.go delete mode 100644 pseudo/k8s/apimachinery/pkg/util/yaml/decoder_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/version/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/version/helpers.go delete mode 100644 pseudo/k8s/apimachinery/pkg/version/helpers_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/version/types.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/doc.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/filter.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/filter_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/mux.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/mux_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/streamwatcher.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/streamwatcher_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/watch.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/watch_test.go delete mode 100644 pseudo/k8s/apimachinery/pkg/watch/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/apimachinery/third_party/forked/golang/json/fields.go delete mode 100644 pseudo/k8s/apimachinery/third_party/forked/golang/json/fields_test.go delete mode 100644 pseudo/k8s/apimachinery/third_party/forked/golang/netutil/addr.go delete mode 100644 pseudo/k8s/apimachinery/third_party/forked/golang/reflect/deep_equal.go delete mode 100644 pseudo/k8s/apimachinery/third_party/forked/golang/reflect/deep_equal_test.go delete mode 100644 pseudo/k8s/client-go/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 pseudo/k8s/client-go/CHANGELOG.md delete mode 100644 pseudo/k8s/client-go/CONTRIBUTING.md delete mode 100644 pseudo/k8s/client-go/Godeps/Godeps.json delete mode 100644 pseudo/k8s/client-go/Godeps/Readme delete mode 100644 pseudo/k8s/client-go/INSTALL.md delete mode 100644 pseudo/k8s/client-go/LICENSE delete mode 100644 pseudo/k8s/client-go/README.md delete mode 100644 pseudo/k8s/client-go/SECURITY_CONTACTS delete mode 100644 pseudo/k8s/client-go/code-of-conduct.md delete mode 100644 pseudo/k8s/client-go/deprecated-dynamic/client.go delete mode 100644 pseudo/k8s/client-go/deprecated-dynamic/client_pool.go delete mode 100644 pseudo/k8s/client-go/deprecated-dynamic/client_test.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/disk/cached_discovery.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/disk/cached_discovery_test.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/disk/round_tripper.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/disk/round_tripper_test.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/legacy.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/memory/memcache.go delete mode 100644 pseudo/k8s/client-go/discovery/cached/memory/memcache_test.go delete mode 100644 pseudo/k8s/client-go/discovery/discovery_client.go delete mode 100644 pseudo/k8s/client-go/discovery/discovery_client_test.go delete mode 100644 pseudo/k8s/client-go/discovery/doc.go delete mode 100644 pseudo/k8s/client-go/discovery/fake/discovery.go delete mode 100644 pseudo/k8s/client-go/discovery/fake/discovery_test.go delete mode 100644 pseudo/k8s/client-go/discovery/helper.go delete mode 100644 pseudo/k8s/client-go/discovery/helper_blackbox_test.go delete mode 100644 pseudo/k8s/client-go/dynamic/client_test.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamicinformer/informer.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamicinformer/informer_test.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamicinformer/interface.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamiclister/interface.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamiclister/lister.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamiclister/lister_test.go delete mode 100644 pseudo/k8s/client-go/dynamic/dynamiclister/shim.go delete mode 100644 pseudo/k8s/client-go/dynamic/fake/simple.go delete mode 100644 pseudo/k8s/client-go/dynamic/fake/simple_test.go delete mode 100644 pseudo/k8s/client-go/dynamic/interface.go delete mode 100644 pseudo/k8s/client-go/dynamic/scheme.go delete mode 100644 pseudo/k8s/client-go/dynamic/simple.go delete mode 100644 pseudo/k8s/client-go/examples/README.md delete mode 100644 pseudo/k8s/client-go/examples/create-update-delete-deployment/README.md delete mode 100644 pseudo/k8s/client-go/examples/create-update-delete-deployment/main.go delete mode 100644 pseudo/k8s/client-go/examples/dynamic-create-update-delete-deployment/README.md delete mode 100644 pseudo/k8s/client-go/examples/dynamic-create-update-delete-deployment/main.go delete mode 100644 pseudo/k8s/client-go/examples/fake-client/README.md delete mode 100644 pseudo/k8s/client-go/examples/fake-client/doc.go delete mode 100644 pseudo/k8s/client-go/examples/fake-client/main_test.go delete mode 100644 pseudo/k8s/client-go/examples/in-cluster-client-configuration/Dockerfile delete mode 100644 pseudo/k8s/client-go/examples/in-cluster-client-configuration/README.md delete mode 100644 pseudo/k8s/client-go/examples/in-cluster-client-configuration/main.go delete mode 100644 pseudo/k8s/client-go/examples/leader-election/README.md delete mode 100644 pseudo/k8s/client-go/examples/leader-election/main.go delete mode 100644 pseudo/k8s/client-go/examples/out-of-cluster-client-configuration/README.md delete mode 100644 pseudo/k8s/client-go/examples/out-of-cluster-client-configuration/main.go delete mode 100644 pseudo/k8s/client-go/examples/workqueue/README.md delete mode 100644 pseudo/k8s/client-go/examples/workqueue/main.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/interface.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/v1/mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/v1/validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/v1beta1/mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/informers/admissionregistration/v1beta1/validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/informers/apps/interface.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1/daemonset.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1/deployment.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1/replicaset.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1/statefulset.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta1/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta1/deployment.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta1/statefulset.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta2/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta2/daemonset.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta2/deployment.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta2/interface.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta2/replicaset.go delete mode 100644 pseudo/k8s/client-go/informers/apps/v1beta2/statefulset.go delete mode 100644 pseudo/k8s/client-go/informers/auditregistration/interface.go delete mode 100644 pseudo/k8s/client-go/informers/auditregistration/v1alpha1/auditsink.go delete mode 100644 pseudo/k8s/client-go/informers/auditregistration/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/interface.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/v1/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/v2beta1/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/v2beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/v2beta2/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/informers/autoscaling/v2beta2/interface.go delete mode 100644 pseudo/k8s/client-go/informers/batch/interface.go delete mode 100644 pseudo/k8s/client-go/informers/batch/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/batch/v1/job.go delete mode 100644 pseudo/k8s/client-go/informers/batch/v1beta1/cronjob.go delete mode 100644 pseudo/k8s/client-go/informers/batch/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/batch/v2alpha1/cronjob.go delete mode 100644 pseudo/k8s/client-go/informers/batch/v2alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/certificates/interface.go delete mode 100644 pseudo/k8s/client-go/informers/certificates/v1beta1/certificatesigningrequest.go delete mode 100644 pseudo/k8s/client-go/informers/certificates/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/coordination/interface.go delete mode 100644 pseudo/k8s/client-go/informers/coordination/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/coordination/v1/lease.go delete mode 100644 pseudo/k8s/client-go/informers/coordination/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/coordination/v1beta1/lease.go delete mode 100644 pseudo/k8s/client-go/informers/core/interface.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/componentstatus.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/configmap.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/endpoints.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/event.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/limitrange.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/namespace.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/node.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/persistentvolume.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/persistentvolumeclaim.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/pod.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/podtemplate.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/replicationcontroller.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/resourcequota.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/secret.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/service.go delete mode 100644 pseudo/k8s/client-go/informers/core/v1/serviceaccount.go delete mode 100644 pseudo/k8s/client-go/informers/discovery/interface.go delete mode 100644 pseudo/k8s/client-go/informers/discovery/v1alpha1/endpointslice.go delete mode 100644 pseudo/k8s/client-go/informers/discovery/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/events/interface.go delete mode 100644 pseudo/k8s/client-go/informers/events/v1beta1/event.go delete mode 100644 pseudo/k8s/client-go/informers/events/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/interface.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/daemonset.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/deployment.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/ingress.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/networkpolicy.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/informers/extensions/v1beta1/replicaset.go delete mode 100644 pseudo/k8s/client-go/informers/factory.go delete mode 100644 pseudo/k8s/client-go/informers/generic.go delete mode 100644 pseudo/k8s/client-go/informers/internalinterfaces/factory_interfaces.go delete mode 100644 pseudo/k8s/client-go/informers/networking/interface.go delete mode 100644 pseudo/k8s/client-go/informers/networking/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/networking/v1/networkpolicy.go delete mode 100644 pseudo/k8s/client-go/informers/networking/v1beta1/ingress.go delete mode 100644 pseudo/k8s/client-go/informers/networking/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/node/interface.go delete mode 100644 pseudo/k8s/client-go/informers/node/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/node/v1alpha1/runtimeclass.go delete mode 100644 pseudo/k8s/client-go/informers/node/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/node/v1beta1/runtimeclass.go delete mode 100644 pseudo/k8s/client-go/informers/policy/interface.go delete mode 100644 pseudo/k8s/client-go/informers/policy/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/policy/v1beta1/poddisruptionbudget.go delete mode 100644 pseudo/k8s/client-go/informers/policy/v1beta1/podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/interface.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1/role.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1alpha1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1alpha1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1alpha1/role.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1alpha1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1beta1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1beta1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1beta1/role.go delete mode 100644 pseudo/k8s/client-go/informers/rbac/v1beta1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/interface.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/v1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/v1alpha1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/scheduling/v1beta1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/informers/settings/interface.go delete mode 100644 pseudo/k8s/client-go/informers/settings/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/settings/v1alpha1/podpreset.go delete mode 100644 pseudo/k8s/client-go/informers/storage/interface.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1/storageclass.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1alpha1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1alpha1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1beta1/csidriver.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1beta1/csinode.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1beta1/interface.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1beta1/storageclass.go delete mode 100644 pseudo/k8s/client-go/informers/storage/v1beta1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/clientset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/fake/clientset_generated.go delete mode 100644 pseudo/k8s/client-go/kubernetes/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/fake/register.go delete mode 100644 pseudo/k8s/client-go/kubernetes/import.go delete mode 100644 pseudo/k8s/client-go/kubernetes/scheme/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/scheme/register.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/admissionregistration_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/fake/fake_admissionregistration_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/fake/fake_mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/fake/fake_validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1/validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/admissionregistration_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/fake/fake_admissionregistration_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/fake/fake_mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/fake/fake_validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/admissionregistration/v1beta1/validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/apps_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/daemonset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/fake_apps_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/fake_controllerrevision.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/fake_daemonset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/fake_deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/fake_replicaset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/fake/fake_statefulset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/replicaset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1/statefulset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/apps_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/fake/fake_apps_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/fake/fake_controllerrevision.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/fake/fake_deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/fake/fake_statefulset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta1/statefulset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/apps_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/daemonset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/fake_apps_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/fake_controllerrevision.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/fake_daemonset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/fake_deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/fake_replicaset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/fake/fake_statefulset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/replicaset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/apps/v1beta2/statefulset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/auditregistration_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/auditsink.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/fake/fake_auditregistration_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/fake/fake_auditsink.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/auditregistration/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/authentication_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/fake/fake_authentication_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/fake/fake_tokenreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/fake/fake_tokenreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/tokenreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1/tokenreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/authentication_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/fake/fake_authentication_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/fake/fake_tokenreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/fake/fake_tokenreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/tokenreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authentication/v1beta1/tokenreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/authorization_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_authorization_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_localsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_localsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_selfsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_selfsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_selfsubjectrulesreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_selfsubjectrulesreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_subjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/fake/fake_subjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/localsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/localsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/selfsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/selfsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/selfsubjectrulesreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/selfsubjectrulesreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/subjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1/subjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/authorization_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_authorization_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_localsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_localsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectrulesreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_selfsubjectrulesreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_subjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/fake/fake_subjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/localsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectrulesreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/selfsubjectrulesreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/autoscaling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/fake/fake_autoscaling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/fake/fake_horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v1/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/autoscaling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/fake/fake_autoscaling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/fake/fake_horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta1/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/autoscaling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/fake/fake_autoscaling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/fake/fake_horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/autoscaling/v2beta2/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/batch_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/fake/fake_batch_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/fake/fake_job.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1/job.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/batch_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/cronjob.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/fake/fake_batch_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/fake/fake_cronjob.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/batch_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/cronjob.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/fake/fake_batch_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/fake/fake_cronjob.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/batch/v2alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/certificates_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/certificatesigningrequest.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/certificatesigningrequest_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/fake/fake_certificates_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/fake/fake_certificatesigningrequest.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/fake/fake_certificatesigningrequest_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/certificates/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/coordination_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/fake/fake_coordination_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/fake/fake_lease.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1/lease.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/coordination_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/fake/fake_coordination_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/fake/fake_lease.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/coordination/v1beta1/lease.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/componentstatus.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/configmap.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/core_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/endpoints.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/event.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/event_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_componentstatus.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_configmap.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_core_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_endpoints.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_event.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_event_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_limitrange.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_namespace.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_namespace_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_node.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_node_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_persistentvolume.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_persistentvolumeclaim.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_pod.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_pod_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_podtemplate.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_replicationcontroller.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_resourcequota.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_secret.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_service.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_service_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_serviceaccount.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/fake/fake_serviceaccount_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/limitrange.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/namespace.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/namespace_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/node.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/node_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/persistentvolume.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/persistentvolumeclaim.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/pod.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/pod_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/podtemplate.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/replicationcontroller.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/resourcequota.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/secret.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/service.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/service_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/serviceaccount.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/core/v1/serviceaccount_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/discovery_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/endpointslice.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/fake/fake_discovery_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/fake/fake_endpointslice.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/discovery/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/event.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/event_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/events_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/fake/fake_event.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/fake/fake_event_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/fake/fake_events_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/events/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/daemonset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/deployment_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/extensions_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_daemonset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_deployment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_deployment_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_ingress.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_networkpolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/fake/fake_replicaset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/ingress.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/networkpolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/extensions/v1beta1/replicaset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/fake/fake_networking_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/fake/fake_networkpolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/networking_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1/networkpolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/fake/fake_ingress.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/fake/fake_networking_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/ingress.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/networking/v1beta1/networking_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/fake/fake_node_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/fake/fake_runtimeclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/node_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1alpha1/runtimeclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/fake/fake_node_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/fake/fake_runtimeclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/node_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/node/v1beta1/runtimeclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/eviction.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/eviction_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/fake/fake_eviction.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/fake/fake_eviction_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/fake/fake_poddisruptionbudget.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/fake/fake_podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/fake/fake_policy_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/poddisruptionbudget.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/policy/v1beta1/policy_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/fake/fake_clusterrole.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/fake/fake_clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/fake/fake_rbac_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/fake/fake_role.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/fake/fake_rolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/rbac_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/role.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/fake/fake_clusterrole.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/fake/fake_clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/fake/fake_rbac_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/fake/fake_role.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/fake/fake_rolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/rbac_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/role.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1alpha1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/fake/fake_clusterrole.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/fake/fake_clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/fake/fake_rbac_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/fake/fake_role.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/fake/fake_rolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/rbac_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/role.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/rbac/v1beta1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/fake/fake_priorityclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/fake/fake_scheduling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1/scheduling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/fake/fake_priorityclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/fake/fake_scheduling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1alpha1/scheduling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/fake/fake_priorityclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/fake/fake_scheduling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/scheduling/v1beta1/scheduling_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/fake/fake_podpreset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/fake/fake_settings_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/podpreset.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/settings/v1alpha1/settings_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/fake/fake_storage_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/fake/fake_storageclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/fake/fake_volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/storage_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/storageclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/fake/fake_storage_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/fake/fake_volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/storage_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1alpha1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/csidriver.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/csinode.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/fake/doc.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/fake/fake_csidriver.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/fake/fake_csinode.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/fake/fake_storage_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/fake/fake_storageclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/fake/fake_volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/generated_expansion.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/storage_client.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/storageclass.go delete mode 100644 pseudo/k8s/client-go/kubernetes/typed/storage/v1beta1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/kubernetes_test/timeout_test.go delete mode 100644 pseudo/k8s/client-go/listers/admissionregistration/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/admissionregistration/v1/mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/listers/admissionregistration/v1/validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/listers/admissionregistration/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/admissionregistration/v1beta1/mutatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/listers/admissionregistration/v1beta1/validatingwebhookconfiguration.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/daemonset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/daemonset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/deployment.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/deployment_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/replicaset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/replicaset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/statefulset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1/statefulset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta1/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta1/deployment.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta1/statefulset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta1/statefulset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/controllerrevision.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/daemonset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/daemonset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/deployment.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/deployment_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/replicaset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/replicaset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/statefulset.go delete mode 100644 pseudo/k8s/client-go/listers/apps/v1beta2/statefulset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/auditregistration/v1alpha1/auditsink.go delete mode 100644 pseudo/k8s/client-go/listers/auditregistration/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/authentication/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/authentication/v1/tokenreview.go delete mode 100644 pseudo/k8s/client-go/listers/authentication/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/authentication/v1beta1/tokenreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1/localsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1/selfsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1/selfsubjectrulesreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1/subjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1beta1/localsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1beta1/selfsubjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1beta1/selfsubjectrulesreview.go delete mode 100644 pseudo/k8s/client-go/listers/authorization/v1beta1/subjectaccessreview.go delete mode 100644 pseudo/k8s/client-go/listers/autoscaling/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/autoscaling/v1/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/listers/autoscaling/v2beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/autoscaling/v2beta1/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/listers/autoscaling/v2beta2/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/autoscaling/v2beta2/horizontalpodautoscaler.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v1/job.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v1/job_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v1beta1/cronjob.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v2alpha1/cronjob.go delete mode 100644 pseudo/k8s/client-go/listers/batch/v2alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/certificates/v1beta1/certificatesigningrequest.go delete mode 100644 pseudo/k8s/client-go/listers/certificates/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/coordination/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/coordination/v1/lease.go delete mode 100644 pseudo/k8s/client-go/listers/coordination/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/coordination/v1beta1/lease.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/componentstatus.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/configmap.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/endpoints.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/event.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/limitrange.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/namespace.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/node.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/node_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/persistentvolume.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/persistentvolumeclaim.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/pod.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/podtemplate.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/replicationcontroller.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/replicationcontroller_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/resourcequota.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/secret.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/service.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/service_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/core/v1/serviceaccount.go delete mode 100644 pseudo/k8s/client-go/listers/discovery/v1alpha1/endpointslice.go delete mode 100644 pseudo/k8s/client-go/listers/discovery/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/events/v1beta1/event.go delete mode 100644 pseudo/k8s/client-go/listers/events/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/daemonset.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/daemonset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/daemonset_expansion_test.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/deployment.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/deployment_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/ingress.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/networkpolicy.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/replicaset.go delete mode 100644 pseudo/k8s/client-go/listers/extensions/v1beta1/replicaset_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/imagepolicy/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/imagepolicy/v1alpha1/imagereview.go delete mode 100644 pseudo/k8s/client-go/listers/networking/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/networking/v1/networkpolicy.go delete mode 100644 pseudo/k8s/client-go/listers/networking/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/networking/v1beta1/ingress.go delete mode 100644 pseudo/k8s/client-go/listers/node/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/node/v1alpha1/runtimeclass.go delete mode 100644 pseudo/k8s/client-go/listers/node/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/node/v1beta1/runtimeclass.go delete mode 100644 pseudo/k8s/client-go/listers/policy/v1beta1/eviction.go delete mode 100644 pseudo/k8s/client-go/listers/policy/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/policy/v1beta1/poddisruptionbudget.go delete mode 100644 pseudo/k8s/client-go/listers/policy/v1beta1/poddisruptionbudget_expansion.go delete mode 100644 pseudo/k8s/client-go/listers/policy/v1beta1/podsecuritypolicy.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1/role.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1alpha1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1alpha1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1alpha1/role.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1alpha1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1beta1/clusterrole.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1beta1/clusterrolebinding.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1beta1/role.go delete mode 100644 pseudo/k8s/client-go/listers/rbac/v1beta1/rolebinding.go delete mode 100644 pseudo/k8s/client-go/listers/scheduling/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/scheduling/v1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/listers/scheduling/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/scheduling/v1alpha1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/listers/scheduling/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/scheduling/v1beta1/priorityclass.go delete mode 100644 pseudo/k8s/client-go/listers/settings/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/settings/v1alpha1/podpreset.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1/storageclass.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1alpha1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1alpha1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1beta1/csidriver.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1beta1/csinode.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1beta1/expansion_generated.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1beta1/storageclass.go delete mode 100644 pseudo/k8s/client-go/listers/storage/v1beta1/volumeattachment.go delete mode 100644 pseudo/k8s/client-go/metadata/fake/simple.go delete mode 100644 pseudo/k8s/client-go/metadata/fake/simple_test.go delete mode 100644 pseudo/k8s/client-go/metadata/interface.go delete mode 100644 pseudo/k8s/client-go/metadata/metadata.go delete mode 100644 pseudo/k8s/client-go/metadata/metadata_test.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatainformer/informer.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatainformer/informer_test.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatainformer/interface.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatalister/interface.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatalister/lister.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatalister/lister_test.go delete mode 100644 pseudo/k8s/client-go/metadata/metadatalister/shim.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/doc.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/install/install.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/register.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/types.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1alpha1/doc.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1alpha1/register.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1alpha1/types.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1alpha1/zz_generated.conversion.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1alpha1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1alpha1/zz_generated.defaults.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/conversion.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/register.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/types.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/zz_generated.conversion.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/v1beta1/zz_generated.defaults.go delete mode 100644 pseudo/k8s/client-go/pkg/apis/clientauthentication/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/pkg/version/.gitattributes delete mode 100644 pseudo/k8s/client-go/pkg/version/base.go delete mode 100644 pseudo/k8s/client-go/pkg/version/def.bzl delete mode 100644 pseudo/k8s/client-go/pkg/version/doc.go delete mode 100644 pseudo/k8s/client-go/pkg/version/version.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/azure/README.md delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/azure/azure.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/azure/azure_test.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/exec/exec.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/exec/exec_test.go delete mode 100755 pseudo/k8s/client-go/plugin/pkg/client/auth/exec/testdata/test-plugin.sh delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/gcp/gcp.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/gcp/gcp_test.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/oidc/oidc.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/oidc/oidc_test.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/openstack/openstack.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/openstack/openstack_test.go delete mode 100644 pseudo/k8s/client-go/plugin/pkg/client/auth/plugins.go delete mode 100644 pseudo/k8s/client-go/rest/client.go delete mode 100644 pseudo/k8s/client-go/rest/client_test.go delete mode 100644 pseudo/k8s/client-go/rest/config.go delete mode 100644 pseudo/k8s/client-go/rest/config_test.go delete mode 100644 pseudo/k8s/client-go/rest/fake/fake.go delete mode 100644 pseudo/k8s/client-go/rest/plugin.go delete mode 100644 pseudo/k8s/client-go/rest/plugin_test.go delete mode 100644 pseudo/k8s/client-go/rest/request.go delete mode 100644 pseudo/k8s/client-go/rest/request_test.go delete mode 100644 pseudo/k8s/client-go/rest/transport.go delete mode 100644 pseudo/k8s/client-go/rest/url_utils.go delete mode 100644 pseudo/k8s/client-go/rest/url_utils_test.go delete mode 100644 pseudo/k8s/client-go/rest/urlbackoff.go delete mode 100644 pseudo/k8s/client-go/rest/urlbackoff_test.go delete mode 100644 pseudo/k8s/client-go/rest/watch/decoder.go delete mode 100644 pseudo/k8s/client-go/rest/watch/decoder_test.go delete mode 100644 pseudo/k8s/client-go/rest/watch/encoder.go delete mode 100644 pseudo/k8s/client-go/rest/watch/encoder_test.go delete mode 100644 pseudo/k8s/client-go/rest/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/restmapper/category_expansion.go delete mode 100644 pseudo/k8s/client-go/restmapper/category_expansion_test.go delete mode 100644 pseudo/k8s/client-go/restmapper/discovery.go delete mode 100644 pseudo/k8s/client-go/restmapper/discovery_test.go delete mode 100644 pseudo/k8s/client-go/restmapper/shortcut.go delete mode 100644 pseudo/k8s/client-go/restmapper/shortcut_test.go delete mode 100644 pseudo/k8s/client-go/scale/client.go delete mode 100644 pseudo/k8s/client-go/scale/client_test.go delete mode 100644 pseudo/k8s/client-go/scale/doc.go delete mode 100644 pseudo/k8s/client-go/scale/fake/client.go delete mode 100644 pseudo/k8s/client-go/scale/interfaces.go delete mode 100644 pseudo/k8s/client-go/scale/roundtrip_test.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsint/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsint/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta1/conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta1/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta1/zz_generated.conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta2/conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta2/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta2/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/appsv1beta2/zz_generated.conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/autoscalingv1/conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/autoscalingv1/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/autoscalingv1/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/autoscalingv1/zz_generated.conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/extensionsint/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/extensionsint/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/extensionsv1beta1/conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/extensionsv1beta1/doc.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/extensionsv1beta1/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/extensionsv1beta1/zz_generated.conversion.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/register.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/types.go delete mode 100644 pseudo/k8s/client-go/scale/scheme/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/scale/util.go delete mode 100644 pseudo/k8s/client-go/testing/actions.go delete mode 100644 pseudo/k8s/client-go/testing/fake.go delete mode 100644 pseudo/k8s/client-go/testing/fake_test.go delete mode 100644 pseudo/k8s/client-go/testing/fixture.go delete mode 100644 pseudo/k8s/client-go/testing/fixture_test.go delete mode 100644 pseudo/k8s/client-go/third_party/forked/golang/template/exec.go delete mode 100644 pseudo/k8s/client-go/third_party/forked/golang/template/funcs.go delete mode 100644 pseudo/k8s/client-go/tools/auth/clientauth.go delete mode 100644 pseudo/k8s/client-go/tools/auth/clientauth_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/controller.go delete mode 100644 pseudo/k8s/client-go/tools/cache/controller_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/delta_fifo.go delete mode 100644 pseudo/k8s/client-go/tools/cache/delta_fifo_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/doc.go delete mode 100644 pseudo/k8s/client-go/tools/cache/expiration_cache.go delete mode 100644 pseudo/k8s/client-go/tools/cache/expiration_cache_fakes.go delete mode 100644 pseudo/k8s/client-go/tools/cache/expiration_cache_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/fake_custom_store.go delete mode 100644 pseudo/k8s/client-go/tools/cache/fifo.go delete mode 100644 pseudo/k8s/client-go/tools/cache/fifo_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/heap.go delete mode 100644 pseudo/k8s/client-go/tools/cache/heap_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/index.go delete mode 100644 pseudo/k8s/client-go/tools/cache/index_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/listers.go delete mode 100644 pseudo/k8s/client-go/tools/cache/listwatch.go delete mode 100644 pseudo/k8s/client-go/tools/cache/main_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/mutation_cache.go delete mode 100644 pseudo/k8s/client-go/tools/cache/mutation_detector.go delete mode 100644 pseudo/k8s/client-go/tools/cache/mutation_detector_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/processor_listener_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/reflector.go delete mode 100644 pseudo/k8s/client-go/tools/cache/reflector_metrics.go delete mode 100644 pseudo/k8s/client-go/tools/cache/reflector_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/shared_informer.go delete mode 100644 pseudo/k8s/client-go/tools/cache/shared_informer_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/store.go delete mode 100644 pseudo/k8s/client-go/tools/cache/store_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/testing/fake_controller_source.go delete mode 100644 pseudo/k8s/client-go/tools/cache/testing/fake_controller_source_test.go delete mode 100644 pseudo/k8s/client-go/tools/cache/thread_safe_store.go delete mode 100644 pseudo/k8s/client-go/tools/cache/undelta_store.go delete mode 100644 pseudo/k8s/client-go/tools/cache/undelta_store_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/doc.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/helpers.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/helpers_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/latest/latest.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/register.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/types.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/types_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/v1/conversion.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/v1/doc.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/v1/register.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/v1/types.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/v1/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/api/zz_generated.deepcopy.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/auth_loaders.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/client_config.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/client_config_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/config.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/doc.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/flag.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/helpers.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/loader.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/loader_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/merged_client_builder.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/merged_client_builder_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/overrides.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/overrides_test.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/validation.go delete mode 100644 pseudo/k8s/client-go/tools/clientcmd/validation_test.go delete mode 100644 pseudo/k8s/client-go/tools/events/event_broadcaster.go delete mode 100644 pseudo/k8s/client-go/tools/events/event_recorder.go delete mode 100644 pseudo/k8s/client-go/tools/events/eventseries_test.go delete mode 100644 pseudo/k8s/client-go/tools/events/fake.go delete mode 100644 pseudo/k8s/client-go/tools/events/interfaces.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/healthzadaptor.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/healthzadaptor_test.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/leaderelection.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/leaderelection_test.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/metrics.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/resourcelock/configmaplock.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/resourcelock/endpointslock.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/resourcelock/interface.go delete mode 100644 pseudo/k8s/client-go/tools/leaderelection/resourcelock/leaselock.go delete mode 100644 pseudo/k8s/client-go/tools/metrics/metrics.go delete mode 100644 pseudo/k8s/client-go/tools/pager/pager.go delete mode 100644 pseudo/k8s/client-go/tools/pager/pager_test.go delete mode 100644 pseudo/k8s/client-go/tools/portforward/doc.go delete mode 100644 pseudo/k8s/client-go/tools/portforward/portforward.go delete mode 100644 pseudo/k8s/client-go/tools/portforward/portforward_test.go delete mode 100644 pseudo/k8s/client-go/tools/record/doc.go delete mode 100644 pseudo/k8s/client-go/tools/record/event.go delete mode 100644 pseudo/k8s/client-go/tools/record/event_test.go delete mode 100644 pseudo/k8s/client-go/tools/record/events_cache.go delete mode 100644 pseudo/k8s/client-go/tools/record/events_cache_test.go delete mode 100644 pseudo/k8s/client-go/tools/record/fake.go delete mode 100644 pseudo/k8s/client-go/tools/record/main_test.go delete mode 100644 pseudo/k8s/client-go/tools/record/util/util.go delete mode 100644 pseudo/k8s/client-go/tools/reference/ref.go delete mode 100644 pseudo/k8s/client-go/tools/reference/ref_test.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/doc.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/errorstream.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/reader.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/remotecommand.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/resize.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/v1.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/v2.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/v2_test.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/v3.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/v4.go delete mode 100644 pseudo/k8s/client-go/tools/remotecommand/v4_test.go delete mode 100644 pseudo/k8s/client-go/tools/watch/informerwatcher.go delete mode 100644 pseudo/k8s/client-go/tools/watch/informerwatcher_test.go delete mode 100644 pseudo/k8s/client-go/tools/watch/retrywatcher.go delete mode 100644 pseudo/k8s/client-go/tools/watch/retrywatcher_test.go delete mode 100644 pseudo/k8s/client-go/tools/watch/until.go delete mode 100644 pseudo/k8s/client-go/tools/watch/until_test.go delete mode 100644 pseudo/k8s/client-go/transport/cache.go delete mode 100644 pseudo/k8s/client-go/transport/cache_test.go delete mode 100644 pseudo/k8s/client-go/transport/config.go delete mode 100644 pseudo/k8s/client-go/transport/round_trippers.go delete mode 100644 pseudo/k8s/client-go/transport/round_trippers_test.go delete mode 100644 pseudo/k8s/client-go/transport/spdy/spdy.go delete mode 100644 pseudo/k8s/client-go/transport/token_source.go delete mode 100644 pseudo/k8s/client-go/transport/token_source_test.go delete mode 100644 pseudo/k8s/client-go/transport/transport.go delete mode 100644 pseudo/k8s/client-go/transport/transport_test.go delete mode 100644 pseudo/k8s/client-go/util/cert/cert.go delete mode 100644 pseudo/k8s/client-go/util/cert/csr.go delete mode 100644 pseudo/k8s/client-go/util/cert/csr_test.go delete mode 100644 pseudo/k8s/client-go/util/cert/io.go delete mode 100644 pseudo/k8s/client-go/util/cert/pem.go delete mode 100644 pseudo/k8s/client-go/util/cert/testdata/dontUseThisKey.pem delete mode 100644 pseudo/k8s/client-go/util/certificate/certificate_manager.go delete mode 100644 pseudo/k8s/client-go/util/certificate/certificate_manager_test.go delete mode 100644 pseudo/k8s/client-go/util/certificate/certificate_store.go delete mode 100644 pseudo/k8s/client-go/util/certificate/certificate_store_test.go delete mode 100644 pseudo/k8s/client-go/util/certificate/csr/csr.go delete mode 100644 pseudo/k8s/client-go/util/connrotation/connrotation.go delete mode 100644 pseudo/k8s/client-go/util/connrotation/connrotation_test.go delete mode 100644 pseudo/k8s/client-go/util/exec/exec.go delete mode 100644 pseudo/k8s/client-go/util/flowcontrol/backoff.go delete mode 100644 pseudo/k8s/client-go/util/flowcontrol/backoff_test.go delete mode 100644 pseudo/k8s/client-go/util/flowcontrol/throttle.go delete mode 100644 pseudo/k8s/client-go/util/flowcontrol/throttle_test.go delete mode 100644 pseudo/k8s/client-go/util/homedir/homedir.go delete mode 100644 pseudo/k8s/client-go/util/jsonpath/doc.go delete mode 100644 pseudo/k8s/client-go/util/jsonpath/jsonpath.go delete mode 100644 pseudo/k8s/client-go/util/jsonpath/jsonpath_test.go delete mode 100644 pseudo/k8s/client-go/util/jsonpath/node.go delete mode 100644 pseudo/k8s/client-go/util/jsonpath/parser.go delete mode 100644 pseudo/k8s/client-go/util/jsonpath/parser_test.go delete mode 100644 pseudo/k8s/client-go/util/keyutil/key.go delete mode 100644 pseudo/k8s/client-go/util/keyutil/key_test.go delete mode 100644 pseudo/k8s/client-go/util/retry/util.go delete mode 100644 pseudo/k8s/client-go/util/retry/util_test.go delete mode 100644 pseudo/k8s/client-go/util/testing/fake_handler.go delete mode 100644 pseudo/k8s/client-go/util/testing/fake_handler_test.go delete mode 100644 pseudo/k8s/client-go/util/testing/tmpdir.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/default_rate_limiters.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/default_rate_limiters_test.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/delaying_queue.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/delaying_queue_test.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/doc.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/main_test.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/metrics.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/metrics_test.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/parallelizer.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/queue.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/queue_test.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/rate_limiting_queue.go delete mode 100644 pseudo/k8s/client-go/util/workqueue/rate_limiting_queue_test.go delete mode 100644 pseudo/k8s/go.mod delete mode 100644 pseudo/k8s/go.sum delete mode 100644 pseudo/k8s/main.go diff --git a/pseudo/README.md b/pseudo/README.md deleted file mode 100644 index 446cda457..000000000 --- a/pseudo/README.md +++ /dev/null @@ -1,63 +0,0 @@ -# Pseudo k8s - -[kubernetes/api]: https://github.com/kubernetes/api -[kubernetes/apimachinery]: https://github.com/kubernetes/apimachinery -[kubernetes/client-go]: https://github.com/kubernetes/client-go -[init-pseudo-module.sh]: init-pseudo-module.sh - -The module defined below in `pseudo/k8s` contains code generated by the -[init-pseudo-module.sh] script. - -The module contains clones (see the [script][init-pseudo-module.sh] for the specific clone tag) of code from the following repositories: - -- [kubernetes/api] -- [kubernetes/apimachinery] -- [kubernetes/client-go] - -These repositories are in turn snapshots of code being developed -in [kubernetes staging](https://github.com/kubernetes/kubernetes/tree/master/staging). - -## Why? - -[`cli-runtime`]: https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/cli-runtime -[`apimachinery`]: https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/apimachinery - -In what follows, let the word `apimachinery` generally represent one of more of the modules [kubernetes/api], [kubernetes/apimachinery], [kubernetes/client-go]. - - - kubectl depends on `apimachinery` in the k/k repo via a `go.mod` replacement. - - - kubectl must depend the on kustomize API module. - - - `apimachinery` doesn’t yet do releases distinguished by major version number. I.e., one cannot write a `go.mod` file containing the lines - > ``` - > require k8s.io/apimachinery v1.1.4 - > require k8s.io/apimachinery/v2 v2.1.0 - > require k8s.io/apimachinery/v3 v3.2.1 - > ``` - The only option at this time are pseudo-versions of the form `v0.0.0-20181127025237-2b1284ed4c93` and everything in the k/k repo must depend on exactly one pseudo version, which is typically a v.0.0.0 with a replace directive specifying an in-repo relative path. - - - kustomize depends on `apimachinery`. - -This creates a problem, since kubectl and kustomize have no means to declare a dependence on different versions of `apimachinery`, and no means to sync on the same version since kubectl and kustomize live in different repositories. - -A solution to this is a _manual vendor_: either the kustomize API module source code must be manually snapshotted into the k/k repo at some invented path that could never be confused with a normal module import path, or the `apimachinery` module (and friends) must be snapshotted into the kustomize repo using the same notion of import path replacement. - -This module is the result of taking the latter option. kustomize can depend on this snapshot of `apimachinery`, and both can be vendored into the k/k repo safely. - - -## Caveats - -This pseudo k8s module may be removed at anytime in the future without warning and no -support will be given for these modules. -It's best to try to encourage semver development in `apimachinery` directly. - -## How was this module made? - -These libraries were forked by running `git clone` to clone the repos. - -### Automated Creation Steps - -1. Remove the current existing pseudo modules - - `$ rm -rf pseudo/k8s` -2. Run the [init-pseudo-module.sh](init-pseudo-module.sh) script to clone and configure pseudo deps - - From the root directory -- `$ pseudo/init-pseudo-module.sh` diff --git a/pseudo/init-pseudo-module.sh b/pseudo/init-pseudo-module.sh deleted file mode 100755 index d9d1aebb9..000000000 --- a/pseudo/init-pseudo-module.sh +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/bash - -set -e -set -o xtrace - -function clonePseudoRepo { - git clone -b kubernetes-1.16.2 --depth 1 \ - https://github.com/kubernetes/$1.git - rm -rf $1/.git - find $1 -name go.mod | xargs rm - find $1 -name go.sum | xargs rm - find $1 -name OWNERS | xargs rm -} - -function replacePseudoModuleName { - find . -name *.go | xargs sed -i -e "s!k8s.io/$1!sigs.k8s.io/kustomize/pseudo/k8s/$1!g" - find . -name *.proto | xargs sed -i -e "s!k8s.io/$1!sigs.k8s.io/kustomize/pseudo/k8s/$1!g" -} - -function checkForForbiddenModules { - if find . -name '*.go' | xargs grep "k8s.io/$1" ; then - echo "forbidden dep k8s.io/$1 in *.go" - exit 1 - fi - if find . -name 'go.*' | xargs grep "k8s.io/$1" ; then - echo "forbidden dep k8s.io/$1 in go.*" - exit 1 - fi -} - -# make sure we are running in the right spot -if [ ! -d "pseudo" ]; then - echo "must run script from kustomize root dir" - exit 1 -fi -cd pseudo - -# make the k8s deps dir -if [ -d "k8s" ]; then - echo "must remove existing k8s dir" - exit 1 -fi -mkdir k8s - -cd k8s -go mod init sigs.k8s.io/kustomize/pseudo/k8s - -# setup the correct set of dependencies -- copied from the client-go repo -go mod edit \ - -require=github.com/google/go-cmp@v0.3.1 \ - -require=github.com/google/gofuzz@v1.0.0 \ - -require=github.com/google/uuid@v1.1.1 \ - -require=github.com/imdario/mergo@v0.3.5 \ - -require=github.com/json-iterator/go@v1.1.8 \ - -require=github.com/modern-go/reflect2@v1.0.1 \ - -require=golang.org/x/crypto@v0.0.0-20190308221718-c2843e01d9a2 \ - -require=golang.org/x/net@v0.0.0-20190620200207-3b0461eec859 \ - -require=golang.org/x/oauth2@v0.0.0-20190604053449-0f29369cfe45 \ - -require=golang.org/x/time@v0.0.0-20191024005414-555d28b269f0 \ - -require=gopkg.in/yaml.v2@v2.2.4 \ - -require=k8s.io/klog@v1.0.0 \ - -require=k8s.io/kube-openapi@v0.0.0-20191107075043-30be4d16710a \ - -require=k8s.io/utils@v0.0.0-20191030222137-2b95a09bc58d \ - -require=sigs.k8s.io/yaml@v1.1.0 - -# setup the correct set of dependencies -- copied from the client-go repo -go mod edit \ - -replace=golang.org/x/sys=golang.org/x/sys@v0.0.0-20190813064441-fde4db37ae7a \ - -replace=golang.org/x/tools=golang.org/x/tools@v0.0.0-20190821162956-65e3620a7ae7 - -# fetch the k8s packages -for item in api apimachinery client-go -do - clonePseudoRepo $item -done - -# fixup the package names -for item in api apimachinery client-go -do - replacePseudoModuleName $item -done - -# test the pseudo packages -go test ./... - -# verify the package dependencies -for item in api apimachinery client-go -do - checkForForbiddenModules $item -done diff --git a/pseudo/k8s/api/.github/PULL_REQUEST_TEMPLATE.md b/pseudo/k8s/api/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index e7e5eb834..000000000 --- a/pseudo/k8s/api/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,2 +0,0 @@ -Sorry, we do not accept changes directly against this repository. Please see -CONTRIBUTING.md for information on where and how to contribute instead. diff --git a/pseudo/k8s/api/CONTRIBUTING.md b/pseudo/k8s/api/CONTRIBUTING.md deleted file mode 100644 index 012bf76a3..000000000 --- a/pseudo/k8s/api/CONTRIBUTING.md +++ /dev/null @@ -1,7 +0,0 @@ -# Contributing guidelines - -Do not open pull requests directly against this repository, they will be ignored. Instead, please open pull requests against [kubernetes/kubernetes](https://git.k8s.io/kubernetes/). Please follow the same [contributing guide](https://git.k8s.io/kubernetes/CONTRIBUTING.md) you would follow for any other pull request made to kubernetes/kubernetes. - -This repository is published from [kubernetes/kubernetes/staging/src/k8s.io/api](https://git.k8s.io/kubernetes/staging/src/k8s.io/api) by the [kubernetes publishing-bot](https://git.k8s.io/publishing-bot). - -Please see [Staging Directory and Publishing](https://git.k8s.io/community/contributors/devel/sig-architecture/staging.md) for more information diff --git a/pseudo/k8s/api/Godeps/Godeps.json b/pseudo/k8s/api/Godeps/Godeps.json deleted file mode 100644 index 206c39caf..000000000 --- a/pseudo/k8s/api/Godeps/Godeps.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "ImportPath": "k8s.io/api", - "GoVersion": "unknown", - "GodepVersion": "gen-godeps", - "Packages": [ - "./..." - ], - "Deps": [ - { - "ImportPath": "github.com/NYTimes/gziphandler", - "Rev": "56545f4a5d46" - }, - { - "ImportPath": "github.com/PuerkitoBio/purell", - "Rev": "v1.0.0" - }, - { - "ImportPath": "github.com/PuerkitoBio/urlesc", - "Rev": "5bd2802263f2" - }, - { - "ImportPath": "github.com/davecgh/go-spew", - "Rev": "v1.1.1" - }, - { - "ImportPath": "github.com/docker/spdystream", - "Rev": "449fdfce4d96" - }, - { - "ImportPath": "github.com/elazarl/goproxy", - "Rev": "c4fc26588b6e" - }, - { - "ImportPath": "github.com/emicklei/go-restful", - "Rev": "ff4f55a20633" - }, - { - "ImportPath": "github.com/evanphx/json-patch", - "Rev": "v4.2.0" - }, - { - "ImportPath": "github.com/fsnotify/fsnotify", - "Rev": "v1.4.7" - }, - { - "ImportPath": "github.com/ghodss/yaml", - "Rev": "73d445a93680" - }, - { - "ImportPath": "github.com/go-logr/logr", - "Rev": "v0.1.0" - }, - { - "ImportPath": "github.com/go-openapi/jsonpointer", - "Rev": "46af16f9f7b1" - }, - { - "ImportPath": "github.com/go-openapi/jsonreference", - "Rev": "13c6e3589ad9" - }, - { - "ImportPath": "github.com/go-openapi/spec", - "Rev": "6aced65f8501" - }, - { - "ImportPath": "github.com/go-openapi/swag", - "Rev": "1d0bd113de87" - }, - { - "ImportPath": "github.com/gogo/protobuf", - "Rev": "65acae22fc9d" - }, - { - "ImportPath": "github.com/golang/groupcache", - "Rev": "02826c3e7903" - }, - { - "ImportPath": "github.com/golang/protobuf", - "Rev": "v1.3.1" - }, - { - "ImportPath": "github.com/google/go-cmp", - "Rev": "v0.3.0" - }, - { - "ImportPath": "github.com/google/gofuzz", - "Rev": "v1.0.0" - }, - { - "ImportPath": "github.com/google/uuid", - "Rev": "v1.1.1" - }, - { - "ImportPath": "github.com/googleapis/gnostic", - "Rev": "0c5108395e2d" - }, - { - "ImportPath": "github.com/hashicorp/golang-lru", - "Rev": "v0.5.1" - }, - { - "ImportPath": "github.com/hpcloud/tail", - "Rev": "v1.0.0" - }, - { - "ImportPath": "github.com/json-iterator/go", - "Rev": "v1.1.7" - }, - { - "ImportPath": "github.com/kisielk/errcheck", - "Rev": "v1.2.0" - }, - { - "ImportPath": "github.com/kisielk/gotool", - "Rev": "v1.0.0" - }, - { - "ImportPath": "github.com/kr/pretty", - "Rev": "v0.1.0" - }, - { - "ImportPath": "github.com/kr/pty", - "Rev": "v1.1.1" - }, - { - "ImportPath": "github.com/kr/text", - "Rev": "v0.1.0" - }, - { - "ImportPath": "github.com/mailru/easyjson", - "Rev": "d5b7844b561a" - }, - { - "ImportPath": "github.com/modern-go/concurrent", - "Rev": "bacd9c7ef1dd" - }, - { - "ImportPath": "github.com/modern-go/reflect2", - "Rev": "v1.0.1" - }, - { - "ImportPath": "github.com/munnerz/goautoneg", - "Rev": "a547fc61f48d" - }, - { - "ImportPath": "github.com/mxk/go-flowrate", - "Rev": "cca7078d478f" - }, - { - "ImportPath": "github.com/onsi/ginkgo", - "Rev": "v1.8.0" - }, - { - "ImportPath": "github.com/onsi/gomega", - "Rev": "v1.5.0" - }, - { - "ImportPath": "github.com/pmezard/go-difflib", - "Rev": "v1.0.0" - }, - { - "ImportPath": "github.com/spf13/pflag", - "Rev": "v1.0.3" - }, - { - "ImportPath": "github.com/stretchr/objx", - "Rev": "v0.1.0" - }, - { - "ImportPath": "github.com/stretchr/testify", - "Rev": "v1.3.0" - }, - { - "ImportPath": "golang.org/x/net", - "Rev": "cdfb69ac37fc" - }, - { - "ImportPath": "golang.org/x/sync", - "Rev": "42b317875d0f" - }, - { - "ImportPath": "golang.org/x/sys", - "Rev": "3b5209105503" - }, - { - "ImportPath": "golang.org/x/text", - "Rev": "e6919f6577db" - }, - { - "ImportPath": "golang.org/x/tools", - "Rev": "6c7e314b6563" - }, - { - "ImportPath": "gopkg.in/check.v1", - "Rev": "788fd7840127" - }, - { - "ImportPath": "gopkg.in/fsnotify.v1", - "Rev": "v1.4.7" - }, - { - "ImportPath": "gopkg.in/inf.v0", - "Rev": "v0.9.0" - }, - { - "ImportPath": "gopkg.in/tomb.v1", - "Rev": "dd632973f1e7" - }, - { - "ImportPath": "gopkg.in/yaml.v2", - "Rev": "v2.2.4" - }, - { - "ImportPath": "k8s.io/apimachinery", - "Rev": "a2eda9f80ab8" - }, - { - "ImportPath": "k8s.io/gengo", - "Rev": "0689ccc1d7d6" - }, - { - "ImportPath": "k8s.io/klog", - "Rev": "v0.4.0" - }, - { - "ImportPath": "k8s.io/kube-openapi", - "Rev": "743ec37842bf" - }, - { - "ImportPath": "sigs.k8s.io/structured-merge-diff", - "Rev": "15d366b2352e" - }, - { - "ImportPath": "sigs.k8s.io/yaml", - "Rev": "v1.1.0" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/Godeps/Readme b/pseudo/k8s/api/Godeps/Readme deleted file mode 100644 index 4cdaa53d5..000000000 --- a/pseudo/k8s/api/Godeps/Readme +++ /dev/null @@ -1,5 +0,0 @@ -This directory tree is generated automatically by godep. - -Please do not edit. - -See https://github.com/tools/godep for more information. diff --git a/pseudo/k8s/api/LICENSE b/pseudo/k8s/api/LICENSE deleted file mode 100644 index d64569567..000000000 --- a/pseudo/k8s/api/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - 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. diff --git a/pseudo/k8s/api/README.md b/pseudo/k8s/api/README.md deleted file mode 100644 index 7d8bb93f6..000000000 --- a/pseudo/k8s/api/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# api - -Schema of the external API types that are served by the Kubernetes API server. - -## Purpose - -This library is the canonical location of the Kubernetes API definition. Most likely interaction with this repository is as a dependency of client-go. - -## Compatibility - -Branches track Kubernetes branches and are compatible with that repo. - -## Where does it come from? - -`api` is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api. Code changes are made in that location, merged into `k8s.io/kubernetes` and later synced here. - -## Things you should *NOT* do - -1. https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api is synced to k8s.io/api. All changes must be made in the former. The latter is read-only. diff --git a/pseudo/k8s/api/SECURITY_CONTACTS b/pseudo/k8s/api/SECURITY_CONTACTS deleted file mode 100644 index 6df6a4d6a..000000000 --- a/pseudo/k8s/api/SECURITY_CONTACTS +++ /dev/null @@ -1,17 +0,0 @@ -# Defined below are the security contacts for this repo. -# -# They are the contact point for the Product Security Committee to reach out -# to for triaging and handling of incoming issues. -# -# The below names agree to abide by the -# [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) -# and will be removed and replaced if they violate that agreement. -# -# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE -# INSTRUCTIONS AT https://kubernetes.io/security/ - -cjcullen -joelsmith -liggitt -philips -tallclair diff --git a/pseudo/k8s/api/admission/v1/doc.go b/pseudo/k8s/api/admission/v1/doc.go deleted file mode 100644 index fc86ee6d6..000000000 --- a/pseudo/k8s/api/admission/v1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2019 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:protobuf-gen=package -// +k8s:openapi-gen=false - -// +groupName=admission.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1" diff --git a/pseudo/k8s/api/admission/v1/generated.pb.go b/pseudo/k8s/api/admission/v1/generated.pb.go deleted file mode 100644 index f34142d65..000000000 --- a/pseudo/k8s/api/admission/v1/generated.pb.go +++ /dev/null @@ -1,1769 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - k8s_io_apimachinery_pkg_types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AdmissionRequest) Reset() { *m = AdmissionRequest{} } -func (*AdmissionRequest) ProtoMessage() {} -func (*AdmissionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4b73421fd5edef9f, []int{0} -} -func (m *AdmissionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdmissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AdmissionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdmissionRequest.Merge(m, src) -} -func (m *AdmissionRequest) XXX_Size() int { - return m.Size() -} -func (m *AdmissionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdmissionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AdmissionRequest proto.InternalMessageInfo - -func (m *AdmissionResponse) Reset() { *m = AdmissionResponse{} } -func (*AdmissionResponse) ProtoMessage() {} -func (*AdmissionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4b73421fd5edef9f, []int{1} -} -func (m *AdmissionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdmissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AdmissionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdmissionResponse.Merge(m, src) -} -func (m *AdmissionResponse) XXX_Size() int { - return m.Size() -} -func (m *AdmissionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdmissionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AdmissionResponse proto.InternalMessageInfo - -func (m *AdmissionReview) Reset() { *m = AdmissionReview{} } -func (*AdmissionReview) ProtoMessage() {} -func (*AdmissionReview) Descriptor() ([]byte, []int) { - return fileDescriptor_4b73421fd5edef9f, []int{2} -} -func (m *AdmissionReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdmissionReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AdmissionReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdmissionReview.Merge(m, src) -} -func (m *AdmissionReview) XXX_Size() int { - return m.Size() -} -func (m *AdmissionReview) XXX_DiscardUnknown() { - xxx_messageInfo_AdmissionReview.DiscardUnknown(m) -} - -var xxx_messageInfo_AdmissionReview proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AdmissionRequest)(nil), "k8s.io.api.admission.v1.AdmissionRequest") - proto.RegisterType((*AdmissionResponse)(nil), "k8s.io.api.admission.v1.AdmissionResponse") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.admission.v1.AdmissionResponse.AuditAnnotationsEntry") - proto.RegisterType((*AdmissionReview)(nil), "k8s.io.api.admission.v1.AdmissionReview") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1/generated.proto", fileDescriptor_4b73421fd5edef9f) -} - -var fileDescriptor_4b73421fd5edef9f = []byte{ - // 898 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xf6, 0xc6, 0x89, 0xed, 0x1d, 0x87, 0xda, 0x9d, 0x82, 0x58, 0xf9, 0xb0, 0x36, 0x39, 0x20, - 0x17, 0xb5, 0xb3, 0x24, 0x82, 0x2a, 0xaa, 0x38, 0x34, 0x4b, 0x2a, 0x14, 0x90, 0x9a, 0x68, 0xda, - 0xa0, 0x8a, 0x03, 0xd2, 0xd8, 0x3b, 0xb5, 0x17, 0xdb, 0x33, 0xcb, 0xce, 0xac, 0x83, 0x6f, 0x9c, - 0x38, 0xf3, 0x0f, 0xf8, 0x1d, 0xfc, 0x83, 0x1c, 0x7b, 0xec, 0xc9, 0x22, 0xe6, 0x5f, 0x44, 0x42, - 0x42, 0x33, 0x3b, 0xfb, 0xd1, 0x7c, 0x88, 0xd0, 0xf4, 0xe4, 0x79, 0x3f, 0x9e, 0xe7, 0x7d, 0xfd, - 0xbc, 0x3b, 0xef, 0x80, 0x27, 0x93, 0x5d, 0x81, 0x42, 0xee, 0x4d, 0x92, 0x01, 0x8d, 0x19, 0x95, - 0x54, 0x78, 0x73, 0xca, 0x02, 0x1e, 0x7b, 0x26, 0x40, 0xa2, 0xd0, 0x23, 0xc1, 0x2c, 0x14, 0x22, - 0xe4, 0xcc, 0x9b, 0x6f, 0x7b, 0x23, 0xca, 0x68, 0x4c, 0x24, 0x0d, 0x50, 0x14, 0x73, 0xc9, 0xe1, - 0xc7, 0x69, 0x22, 0x22, 0x51, 0x88, 0xf2, 0x44, 0x34, 0xdf, 0xee, 0x3c, 0x1c, 0x85, 0x72, 0x9c, - 0x0c, 0xd0, 0x90, 0xcf, 0xbc, 0x11, 0x1f, 0x71, 0x4f, 0xe7, 0x0f, 0x92, 0x57, 0xda, 0xd2, 0x86, - 0x3e, 0xa5, 0x3c, 0x9d, 0x07, 0xe5, 0x82, 0x89, 0x1c, 0x53, 0x26, 0xc3, 0x21, 0x91, 0x57, 0x57, - 0xed, 0x7c, 0x51, 0x64, 0xcf, 0xc8, 0x70, 0x1c, 0x32, 0x1a, 0x2f, 0xbc, 0x68, 0x32, 0x52, 0x0e, - 0xe1, 0xcd, 0xa8, 0x24, 0x57, 0xa1, 0xbc, 0xeb, 0x50, 0x71, 0xc2, 0x64, 0x38, 0xa3, 0x97, 0x00, - 0x8f, 0xfe, 0x0b, 0x20, 0x86, 0x63, 0x3a, 0x23, 0x17, 0x71, 0x5b, 0x7f, 0xd8, 0xa0, 0xbd, 0x97, - 0x89, 0x81, 0xe9, 0xcf, 0x09, 0x15, 0x12, 0xfa, 0xa0, 0x9a, 0x84, 0x81, 0x63, 0xf5, 0xac, 0xbe, - 0xed, 0x7f, 0x7e, 0xba, 0xec, 0x56, 0x56, 0xcb, 0x6e, 0xf5, 0xf8, 0x60, 0xff, 0x7c, 0xd9, 0xfd, - 0xe4, 0xba, 0x42, 0x72, 0x11, 0x51, 0x81, 0x8e, 0x0f, 0xf6, 0xb1, 0x02, 0xc3, 0x97, 0x60, 0x7d, - 0x12, 0xb2, 0xc0, 0x59, 0xeb, 0x59, 0xfd, 0xe6, 0xce, 0x23, 0x54, 0x88, 0x9f, 0xc3, 0x50, 0x34, - 0x19, 0x29, 0x87, 0x40, 0x4a, 0x06, 0x34, 0xdf, 0x46, 0xdf, 0xc4, 0x3c, 0x89, 0xbe, 0xa7, 0xb1, - 0x6a, 0xe6, 0xbb, 0x90, 0x05, 0xfe, 0xa6, 0x29, 0xbe, 0xae, 0x2c, 0xac, 0x19, 0xe1, 0x18, 0x34, - 0x62, 0x2a, 0x78, 0x12, 0x0f, 0xa9, 0x53, 0xd5, 0xec, 0x8f, 0xff, 0x3f, 0x3b, 0x36, 0x0c, 0x7e, - 0xdb, 0x54, 0x68, 0x64, 0x1e, 0x9c, 0xb3, 0xc3, 0x2f, 0x41, 0x53, 0x24, 0x83, 0x2c, 0xe0, 0xac, - 0x6b, 0x3d, 0xee, 0x19, 0x40, 0xf3, 0x79, 0x11, 0xc2, 0xe5, 0x3c, 0x18, 0x82, 0x66, 0x9c, 0x2a, - 0xa9, 0xba, 0x76, 0x3e, 0xb8, 0x95, 0x02, 0x2d, 0x55, 0x0a, 0x17, 0x74, 0xb8, 0xcc, 0x0d, 0x17, - 0xa0, 0x65, 0xcc, 0xbc, 0xcb, 0x3b, 0xb7, 0x96, 0xe4, 0xde, 0x6a, 0xd9, 0x6d, 0xe1, 0xb7, 0x69, - 0xf1, 0xc5, 0x3a, 0xf0, 0x5b, 0x00, 0x8d, 0xab, 0x24, 0x84, 0xd3, 0xd2, 0x1a, 0x75, 0x8c, 0x46, - 0x10, 0x5f, 0xca, 0xc0, 0x57, 0xa0, 0x60, 0x0f, 0xac, 0x33, 0x32, 0xa3, 0xce, 0x86, 0x46, 0xe7, - 0x43, 0x7f, 0x46, 0x66, 0x14, 0xeb, 0x08, 0xf4, 0x80, 0xad, 0x7e, 0x45, 0x44, 0x86, 0xd4, 0xa9, - 0xe9, 0xb4, 0xbb, 0x26, 0xcd, 0x7e, 0x96, 0x05, 0x70, 0x91, 0x03, 0xbf, 0x02, 0x36, 0x8f, 0xd4, - 0xa7, 0x1e, 0x72, 0xe6, 0xd4, 0x35, 0xc0, 0xcd, 0x00, 0x87, 0x59, 0xe0, 0xbc, 0x6c, 0xe0, 0x02, - 0x00, 0x5f, 0x80, 0x46, 0x22, 0x68, 0x7c, 0xc0, 0x5e, 0x71, 0xa7, 0xa1, 0x05, 0xfd, 0x14, 0x95, - 0xd7, 0xc7, 0x5b, 0xd7, 0x5e, 0x09, 0x79, 0x6c, 0xb2, 0x8b, 0xef, 0x29, 0xf3, 0xe0, 0x9c, 0x09, - 0x1e, 0x83, 0x1a, 0x1f, 0xfc, 0x44, 0x87, 0xd2, 0xb1, 0x35, 0xe7, 0xc3, 0x6b, 0x87, 0x64, 0x6e, - 0x2d, 0xc2, 0xe4, 0xe4, 0xe9, 0x2f, 0x92, 0x32, 0x35, 0x1f, 0xff, 0x8e, 0xa1, 0xae, 0x1d, 0x6a, - 0x12, 0x6c, 0xc8, 0xe0, 0x8f, 0xc0, 0xe6, 0xd3, 0x20, 0x75, 0x3a, 0xe0, 0x5d, 0x98, 0x73, 0x29, - 0x0f, 0x33, 0x1e, 0x5c, 0x50, 0xc2, 0x2d, 0x50, 0x0b, 0xe2, 0x05, 0x4e, 0x98, 0xd3, 0xec, 0x59, - 0xfd, 0x86, 0x0f, 0x54, 0x0f, 0xfb, 0xda, 0x83, 0x4d, 0x04, 0xbe, 0x04, 0x75, 0x1e, 0x29, 0x31, - 0x84, 0xb3, 0xf9, 0x2e, 0x1d, 0xb4, 0x4c, 0x07, 0xf5, 0xc3, 0x94, 0x05, 0x67, 0x74, 0x5b, 0xff, - 0x54, 0xc1, 0xdd, 0xd2, 0x86, 0x12, 0x11, 0x67, 0x82, 0xbe, 0x97, 0x15, 0x75, 0x1f, 0xd4, 0xc9, - 0x74, 0xca, 0x4f, 0x68, 0xba, 0xa5, 0x1a, 0x45, 0x13, 0x7b, 0xa9, 0x1b, 0x67, 0x71, 0x78, 0x04, - 0x6a, 0x42, 0x12, 0x99, 0x08, 0xb3, 0x71, 0x1e, 0xdc, 0xec, 0x7a, 0x3d, 0xd7, 0x98, 0x54, 0x30, - 0x4c, 0x45, 0x32, 0x95, 0xd8, 0xf0, 0xc0, 0x2e, 0xd8, 0x88, 0x88, 0x1c, 0x8e, 0xf5, 0x56, 0xd9, - 0xf4, 0xed, 0xd5, 0xb2, 0xbb, 0x71, 0xa4, 0x1c, 0x38, 0xf5, 0xc3, 0x5d, 0x60, 0xeb, 0xc3, 0x8b, - 0x45, 0x94, 0x5d, 0x8c, 0x8e, 0x1a, 0xd1, 0x51, 0xe6, 0x3c, 0x2f, 0x1b, 0xb8, 0x48, 0x86, 0xbf, - 0x59, 0xa0, 0x4d, 0x92, 0x20, 0x94, 0x7b, 0x8c, 0x71, 0x49, 0xd2, 0xa9, 0xd4, 0x7a, 0xd5, 0x7e, - 0x73, 0xe7, 0x09, 0xba, 0xe6, 0x11, 0x44, 0x97, 0x24, 0x46, 0x7b, 0x17, 0x28, 0x9e, 0x32, 0x19, - 0x2f, 0x7c, 0xc7, 0x68, 0xd4, 0xbe, 0x18, 0xc6, 0x97, 0x6a, 0x76, 0xbe, 0x06, 0x1f, 0x5d, 0x49, - 0x02, 0xdb, 0xa0, 0x3a, 0xa1, 0x8b, 0x74, 0x7a, 0x58, 0x1d, 0xe1, 0x87, 0x60, 0x63, 0x4e, 0xa6, - 0x09, 0xd5, 0x93, 0xb0, 0x71, 0x6a, 0x3c, 0x5e, 0xdb, 0xb5, 0xb6, 0xfe, 0xb4, 0x40, 0xab, 0xd4, - 0xdc, 0x3c, 0xa4, 0x27, 0xf0, 0x08, 0xd4, 0xcd, 0x16, 0xd1, 0x1c, 0xcd, 0x9d, 0xfb, 0x37, 0xf9, - 0x5f, 0x1a, 0xe0, 0x37, 0xd5, 0x80, 0xb3, 0xed, 0x96, 0xd1, 0xa8, 0x0b, 0x1f, 0x9b, 0x3f, 0x6e, - 0x9e, 0xac, 0xcf, 0x6e, 0x2e, 0x95, 0xbf, 0x69, 0x1e, 0x10, 0x6d, 0xe1, 0x9c, 0xc9, 0xef, 0x9f, - 0x9e, 0xb9, 0x95, 0xd7, 0x67, 0x6e, 0xe5, 0xcd, 0x99, 0x5b, 0xf9, 0x75, 0xe5, 0x5a, 0xa7, 0x2b, - 0xd7, 0x7a, 0xbd, 0x72, 0xad, 0x37, 0x2b, 0xd7, 0xfa, 0x6b, 0xe5, 0x5a, 0xbf, 0xff, 0xed, 0x56, - 0x7e, 0x58, 0x9b, 0x6f, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x37, 0xc7, 0x3f, 0x71, 0xdf, 0x08, - 0x00, 0x00, -} - -func (m *AdmissionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AdmissionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdmissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.RequestSubResource) - copy(dAtA[i:], m.RequestSubResource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequestSubResource))) - i-- - dAtA[i] = 0x7a - if m.RequestResource != nil { - { - size, err := m.RequestResource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.RequestKind != nil { - { - size, err := m.RequestKind.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - { - size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - if m.DryRun != nil { - i-- - if *m.DryRun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - { - size, err := m.OldObject.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - { - size, err := m.UserInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - i -= len(m.Operation) - copy(dAtA[i:], m.Operation) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation))) - i-- - dAtA[i] = 0x3a - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x32 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x2a - i -= len(m.SubResource) - copy(dAtA[i:], m.SubResource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubResource))) - i-- - dAtA[i] = 0x22 - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Kind.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AdmissionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AdmissionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdmissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AuditAnnotations) > 0 { - keysForAuditAnnotations := make([]string, 0, len(m.AuditAnnotations)) - for k := range m.AuditAnnotations { - keysForAuditAnnotations = append(keysForAuditAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations) - for iNdEx := len(keysForAuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.AuditAnnotations[string(keysForAuditAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAuditAnnotations[iNdEx]) - copy(dAtA[i:], keysForAuditAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAuditAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if m.PatchType != nil { - i -= len(*m.PatchType) - copy(dAtA[i:], *m.PatchType) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PatchType))) - i-- - dAtA[i] = 0x2a - } - if m.Patch != nil { - i -= len(m.Patch) - copy(dAtA[i:], m.Patch) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Patch))) - i-- - dAtA[i] = 0x22 - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i-- - if m.Allowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AdmissionReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AdmissionReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdmissionReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Response != nil { - { - size, err := m.Response.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AdmissionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Kind.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SubResource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operation) - n += 1 + l + sovGenerated(uint64(l)) - l = m.UserInfo.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.OldObject.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.DryRun != nil { - n += 2 - } - l = m.Options.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.RequestKind != nil { - l = m.RequestKind.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RequestResource != nil { - l = m.RequestResource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.RequestSubResource) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AdmissionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Patch != nil { - l = len(m.Patch) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PatchType != nil { - l = len(*m.PatchType) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.AuditAnnotations) > 0 { - for k, v := range m.AuditAnnotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *AdmissionReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Response != nil { - l = m.Response.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AdmissionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AdmissionRequest{`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Kind:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Kind), "GroupVersionKind", "v1.GroupVersionKind", 1), `&`, ``, 1) + `,`, - `Resource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Resource), "GroupVersionResource", "v1.GroupVersionResource", 1), `&`, ``, 1) + `,`, - `SubResource:` + fmt.Sprintf("%v", this.SubResource) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`, - `UserInfo:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UserInfo), "UserInfo", "v11.UserInfo", 1), `&`, ``, 1) + `,`, - `Object:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Object), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `OldObject:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OldObject), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `DryRun:` + valueToStringGenerated(this.DryRun) + `,`, - `Options:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Options), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `RequestKind:` + strings.Replace(fmt.Sprintf("%v", this.RequestKind), "GroupVersionKind", "v1.GroupVersionKind", 1) + `,`, - `RequestResource:` + strings.Replace(fmt.Sprintf("%v", this.RequestResource), "GroupVersionResource", "v1.GroupVersionResource", 1) + `,`, - `RequestSubResource:` + fmt.Sprintf("%v", this.RequestSubResource) + `,`, - `}`, - }, "") - return s -} -func (this *AdmissionResponse) String() string { - if this == nil { - return "nil" - } - keysForAuditAnnotations := make([]string, 0, len(this.AuditAnnotations)) - for k := range this.AuditAnnotations { - keysForAuditAnnotations = append(keysForAuditAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations) - mapStringForAuditAnnotations := "map[string]string{" - for _, k := range keysForAuditAnnotations { - mapStringForAuditAnnotations += fmt.Sprintf("%v: %v,", k, this.AuditAnnotations[k]) - } - mapStringForAuditAnnotations += "}" - s := strings.Join([]string{`&AdmissionResponse{`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Status", "v1.Status", 1) + `,`, - `Patch:` + valueToStringGenerated(this.Patch) + `,`, - `PatchType:` + valueToStringGenerated(this.PatchType) + `,`, - `AuditAnnotations:` + mapStringForAuditAnnotations + `,`, - `}`, - }, "") - return s -} -func (this *AdmissionReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AdmissionReview{`, - `Request:` + strings.Replace(this.Request.String(), "AdmissionRequest", "AdmissionRequest", 1) + `,`, - `Response:` + strings.Replace(this.Response.String(), "AdmissionResponse", "AdmissionResponse", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AdmissionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AdmissionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AdmissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Kind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubResource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SubResource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operation = Operation(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UserInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldObject", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.OldObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.DryRun = &b - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestKind", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequestKind == nil { - m.RequestKind = &v1.GroupVersionKind{} - } - if err := m.RequestKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestResource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequestResource == nil { - m.RequestResource = &v1.GroupVersionResource{} - } - if err := m.RequestResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestSubResource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestSubResource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AdmissionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AdmissionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AdmissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Allowed = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &v1.Status{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Patch", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Patch = append(m.Patch[:0], dAtA[iNdEx:postIndex]...) - if m.Patch == nil { - m.Patch = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := PatchType(dAtA[iNdEx:postIndex]) - m.PatchType = &s - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuditAnnotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AuditAnnotations == nil { - m.AuditAnnotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AuditAnnotations[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AdmissionReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AdmissionReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AdmissionReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &AdmissionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Response == nil { - m.Response = &AdmissionResponse{} - } - if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/admission/v1/generated.proto b/pseudo/k8s/api/admission/v1/generated.proto deleted file mode 100644 index 72122df8e..000000000 --- a/pseudo/k8s/api/admission/v1/generated.proto +++ /dev/null @@ -1,160 +0,0 @@ -/* -Copyright 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.admission.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// AdmissionRequest describes the admission.Attributes for the admission request. -message AdmissionRequest { - // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are - // otherwise identical (parallel requests, requests when earlier requests did not modify etc) - // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - optional string uid = 1; - - // Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; - - // Resource is the fully-qualified resource being requested (for example, v1.pods) - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; - - // SubResource is the subresource being requested, if any (for example, "status" or "scale") - // +optional - optional string subResource = 4; - - // RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). - // If this is specified and differs from the value in "kind", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `kind: {group:"apps", version:"v1", kind:"Deployment"}` (matching the rule the webhook registered for), - // and `requestKind: {group:"apps", version:"v1beta1", kind:"Deployment"}` (indicating the kind of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type for more details. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind requestKind = 13; - - // RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). - // If this is specified and differs from the value in "resource", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `resource: {group:"apps", version:"v1", resource:"deployments"}` (matching the resource the webhook registered for), - // and `requestResource: {group:"apps", version:"v1beta1", resource:"deployments"}` (indicating the resource of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource requestResource = 14; - - // RequestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale") - // If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed. - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - optional string requestSubResource = 15; - - // Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and - // rely on the server to generate the name. If that is the case, this field will contain an empty string. - // +optional - optional string name = 5; - - // Namespace is the namespace associated with the request (if any). - // +optional - optional string namespace = 6; - - // Operation is the operation being performed. This may be different than the operation - // requested. e.g. a patch can result in either a CREATE or UPDATE Operation. - optional string operation = 7; - - // UserInfo is information about the requesting user - optional k8s.io.api.authentication.v1.UserInfo userInfo = 8; - - // Object is the object from the incoming request. - // +optional - optional k8s.io.apimachinery.pkg.runtime.RawExtension object = 9; - - // OldObject is the existing object. Only populated for DELETE and UPDATE requests. - // +optional - optional k8s.io.apimachinery.pkg.runtime.RawExtension oldObject = 10; - - // DryRun indicates that modifications will definitely not be persisted for this request. - // Defaults to false. - // +optional - optional bool dryRun = 11; - - // Options is the operation option structure of the operation being performed. - // e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be - // different than the options the caller provided. e.g. for a patch request the performed - // Operation might be a CREATE, in which case the Options will a - // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`. - // +optional - optional k8s.io.apimachinery.pkg.runtime.RawExtension options = 12; -} - -// AdmissionResponse describes an admission response. -message AdmissionResponse { - // UID is an identifier for the individual request/response. - // This must be copied over from the corresponding AdmissionRequest. - optional string uid = 1; - - // Allowed indicates whether or not the admission request was permitted. - optional bool allowed = 2; - - // Result contains extra details into why an admission request was denied. - // This field IS NOT consulted in any way if "Allowed" is "true". - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3; - - // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. - // +optional - optional bytes patch = 4; - - // The type of Patch. Currently we only allow "JSONPatch". - // +optional - optional string patchType = 5; - - // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). - // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with - // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by - // the admission webhook to add additional context to the audit log for this request. - // +optional - map auditAnnotations = 6; -} - -// AdmissionReview describes an admission review request/response. -message AdmissionReview { - // Request describes the attributes for the admission request. - // +optional - optional AdmissionRequest request = 1; - - // Response describes the attributes for the admission response. - // +optional - optional AdmissionResponse response = 2; -} - diff --git a/pseudo/k8s/api/admission/v1/register.go b/pseudo/k8s/api/admission/v1/register.go deleted file mode 100644 index 4cef1318c..000000000 --- a/pseudo/k8s/api/admission/v1/register.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name for this API. -const GroupName = "admission.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &AdmissionReview{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/admission/v1/types.go b/pseudo/k8s/api/admission/v1/types.go deleted file mode 100644 index 8ed9497d7..000000000 --- a/pseudo/k8s/api/admission/v1/types.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - authenticationv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// AdmissionReview describes an admission review request/response. -type AdmissionReview struct { - metav1.TypeMeta `json:",inline"` - // Request describes the attributes for the admission request. - // +optional - Request *AdmissionRequest `json:"request,omitempty" protobuf:"bytes,1,opt,name=request"` - // Response describes the attributes for the admission response. - // +optional - Response *AdmissionResponse `json:"response,omitempty" protobuf:"bytes,2,opt,name=response"` -} - -// AdmissionRequest describes the admission.Attributes for the admission request. -type AdmissionRequest struct { - // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are - // otherwise identical (parallel requests, requests when earlier requests did not modify etc) - // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - UID types.UID `json:"uid" protobuf:"bytes,1,opt,name=uid"` - // Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) - Kind metav1.GroupVersionKind `json:"kind" protobuf:"bytes,2,opt,name=kind"` - // Resource is the fully-qualified resource being requested (for example, v1.pods) - Resource metav1.GroupVersionResource `json:"resource" protobuf:"bytes,3,opt,name=resource"` - // SubResource is the subresource being requested, if any (for example, "status" or "scale") - // +optional - SubResource string `json:"subResource,omitempty" protobuf:"bytes,4,opt,name=subResource"` - - // RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). - // If this is specified and differs from the value in "kind", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `kind: {group:"apps", version:"v1", kind:"Deployment"}` (matching the rule the webhook registered for), - // and `requestKind: {group:"apps", version:"v1beta1", kind:"Deployment"}` (indicating the kind of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type for more details. - // +optional - RequestKind *metav1.GroupVersionKind `json:"requestKind,omitempty" protobuf:"bytes,13,opt,name=requestKind"` - // RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). - // If this is specified and differs from the value in "resource", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `resource: {group:"apps", version:"v1", resource:"deployments"}` (matching the resource the webhook registered for), - // and `requestResource: {group:"apps", version:"v1beta1", resource:"deployments"}` (indicating the resource of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - RequestResource *metav1.GroupVersionResource `json:"requestResource,omitempty" protobuf:"bytes,14,opt,name=requestResource"` - // RequestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale") - // If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed. - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - RequestSubResource string `json:"requestSubResource,omitempty" protobuf:"bytes,15,opt,name=requestSubResource"` - - // Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and - // rely on the server to generate the name. If that is the case, this field will contain an empty string. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,5,opt,name=name"` - // Namespace is the namespace associated with the request (if any). - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,6,opt,name=namespace"` - // Operation is the operation being performed. This may be different than the operation - // requested. e.g. a patch can result in either a CREATE or UPDATE Operation. - Operation Operation `json:"operation" protobuf:"bytes,7,opt,name=operation"` - // UserInfo is information about the requesting user - UserInfo authenticationv1.UserInfo `json:"userInfo" protobuf:"bytes,8,opt,name=userInfo"` - // Object is the object from the incoming request. - // +optional - Object runtime.RawExtension `json:"object,omitempty" protobuf:"bytes,9,opt,name=object"` - // OldObject is the existing object. Only populated for DELETE and UPDATE requests. - // +optional - OldObject runtime.RawExtension `json:"oldObject,omitempty" protobuf:"bytes,10,opt,name=oldObject"` - // DryRun indicates that modifications will definitely not be persisted for this request. - // Defaults to false. - // +optional - DryRun *bool `json:"dryRun,omitempty" protobuf:"varint,11,opt,name=dryRun"` - // Options is the operation option structure of the operation being performed. - // e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be - // different than the options the caller provided. e.g. for a patch request the performed - // Operation might be a CREATE, in which case the Options will a - // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`. - // +optional - Options runtime.RawExtension `json:"options,omitempty" protobuf:"bytes,12,opt,name=options"` -} - -// AdmissionResponse describes an admission response. -type AdmissionResponse struct { - // UID is an identifier for the individual request/response. - // This must be copied over from the corresponding AdmissionRequest. - UID types.UID `json:"uid" protobuf:"bytes,1,opt,name=uid"` - - // Allowed indicates whether or not the admission request was permitted. - Allowed bool `json:"allowed" protobuf:"varint,2,opt,name=allowed"` - - // Result contains extra details into why an admission request was denied. - // This field IS NOT consulted in any way if "Allowed" is "true". - // +optional - Result *metav1.Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` - - // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. - // +optional - Patch []byte `json:"patch,omitempty" protobuf:"bytes,4,opt,name=patch"` - - // The type of Patch. Currently we only allow "JSONPatch". - // +optional - PatchType *PatchType `json:"patchType,omitempty" protobuf:"bytes,5,opt,name=patchType"` - - // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). - // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with - // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by - // the admission webhook to add additional context to the audit log for this request. - // +optional - AuditAnnotations map[string]string `json:"auditAnnotations,omitempty" protobuf:"bytes,6,opt,name=auditAnnotations"` -} - -// PatchType is the type of patch being used to represent the mutated object -type PatchType string - -// PatchType constants. -const ( - PatchTypeJSONPatch PatchType = "JSONPatch" -) - -// Operation is the type of resource operation being checked for admission control -type Operation string - -// Operation constants -const ( - Create Operation = "CREATE" - Update Operation = "UPDATE" - Delete Operation = "DELETE" - Connect Operation = "CONNECT" -) diff --git a/pseudo/k8s/api/admission/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/admission/v1/types_swagger_doc_generated.go deleted file mode 100644 index 62351b161..000000000 --- a/pseudo/k8s/api/admission/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_AdmissionRequest = map[string]string{ - "": "AdmissionRequest describes the admission.Attributes for the admission request.", - "uid": "UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are otherwise identical (parallel requests, requests when earlier requests did not modify etc) The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.", - "kind": "Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)", - "resource": "Resource is the fully-qualified resource being requested (for example, v1.pods)", - "subResource": "SubResource is the subresource being requested, if any (for example, \"status\" or \"scale\")", - "requestKind": "RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). If this is specified and differs from the value in \"kind\", an equivalent match and conversion was performed.\n\nFor example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]` and `matchPolicy: Equivalent`, an API request to apps/v1beta1 deployments would be converted and sent to the webhook with `kind: {group:\"apps\", version:\"v1\", kind:\"Deployment\"}` (matching the rule the webhook registered for), and `requestKind: {group:\"apps\", version:\"v1beta1\", kind:\"Deployment\"}` (indicating the kind of the original API request).\n\nSee documentation for the \"matchPolicy\" field in the webhook configuration type for more details.", - "requestResource": "RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). If this is specified and differs from the value in \"resource\", an equivalent match and conversion was performed.\n\nFor example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]` and `matchPolicy: Equivalent`, an API request to apps/v1beta1 deployments would be converted and sent to the webhook with `resource: {group:\"apps\", version:\"v1\", resource:\"deployments\"}` (matching the resource the webhook registered for), and `requestResource: {group:\"apps\", version:\"v1beta1\", resource:\"deployments\"}` (indicating the resource of the original API request).\n\nSee documentation for the \"matchPolicy\" field in the webhook configuration type.", - "requestSubResource": "RequestSubResource is the name of the subresource of the original API request, if any (for example, \"status\" or \"scale\") If this is specified and differs from the value in \"subResource\", an equivalent match and conversion was performed. See documentation for the \"matchPolicy\" field in the webhook configuration type.", - "name": "Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and rely on the server to generate the name. If that is the case, this field will contain an empty string.", - "namespace": "Namespace is the namespace associated with the request (if any).", - "operation": "Operation is the operation being performed. This may be different than the operation requested. e.g. a patch can result in either a CREATE or UPDATE Operation.", - "userInfo": "UserInfo is information about the requesting user", - "object": "Object is the object from the incoming request.", - "oldObject": "OldObject is the existing object. Only populated for DELETE and UPDATE requests.", - "dryRun": "DryRun indicates that modifications will definitely not be persisted for this request. Defaults to false.", - "options": "Options is the operation option structure of the operation being performed. e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be different than the options the caller provided. e.g. for a patch request the performed Operation might be a CREATE, in which case the Options will a `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`.", -} - -func (AdmissionRequest) SwaggerDoc() map[string]string { - return map_AdmissionRequest -} - -var map_AdmissionResponse = map[string]string{ - "": "AdmissionResponse describes an admission response.", - "uid": "UID is an identifier for the individual request/response. This must be copied over from the corresponding AdmissionRequest.", - "allowed": "Allowed indicates whether or not the admission request was permitted.", - "status": "Result contains extra details into why an admission request was denied. This field IS NOT consulted in any way if \"Allowed\" is \"true\".", - "patch": "The patch body. Currently we only support \"JSONPatch\" which implements RFC 6902.", - "patchType": "The type of Patch. Currently we only allow \"JSONPatch\".", - "auditAnnotations": "AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request.", -} - -func (AdmissionResponse) SwaggerDoc() map[string]string { - return map_AdmissionResponse -} - -var map_AdmissionReview = map[string]string{ - "": "AdmissionReview describes an admission review request/response.", - "request": "Request describes the attributes for the admission request.", - "response": "Response describes the attributes for the admission response.", -} - -func (AdmissionReview) SwaggerDoc() map[string]string { - return map_AdmissionReview -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/admission/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/admission/v1/zz_generated.deepcopy.go deleted file mode 100644 index e2363e025..000000000 --- a/pseudo/k8s/api/admission/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,136 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AdmissionRequest) DeepCopyInto(out *AdmissionRequest) { - *out = *in - out.Kind = in.Kind - out.Resource = in.Resource - if in.RequestKind != nil { - in, out := &in.RequestKind, &out.RequestKind - *out = new(metav1.GroupVersionKind) - **out = **in - } - if in.RequestResource != nil { - in, out := &in.RequestResource, &out.RequestResource - *out = new(metav1.GroupVersionResource) - **out = **in - } - in.UserInfo.DeepCopyInto(&out.UserInfo) - in.Object.DeepCopyInto(&out.Object) - in.OldObject.DeepCopyInto(&out.OldObject) - if in.DryRun != nil { - in, out := &in.DryRun, &out.DryRun - *out = new(bool) - **out = **in - } - in.Options.DeepCopyInto(&out.Options) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionRequest. -func (in *AdmissionRequest) DeepCopy() *AdmissionRequest { - if in == nil { - return nil - } - out := new(AdmissionRequest) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AdmissionResponse) DeepCopyInto(out *AdmissionResponse) { - *out = *in - if in.Result != nil { - in, out := &in.Result, &out.Result - *out = new(metav1.Status) - (*in).DeepCopyInto(*out) - } - if in.Patch != nil { - in, out := &in.Patch, &out.Patch - *out = make([]byte, len(*in)) - copy(*out, *in) - } - if in.PatchType != nil { - in, out := &in.PatchType, &out.PatchType - *out = new(PatchType) - **out = **in - } - if in.AuditAnnotations != nil { - in, out := &in.AuditAnnotations, &out.AuditAnnotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionResponse. -func (in *AdmissionResponse) DeepCopy() *AdmissionResponse { - if in == nil { - return nil - } - out := new(AdmissionResponse) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Request != nil { - in, out := &in.Request, &out.Request - *out = new(AdmissionRequest) - (*in).DeepCopyInto(*out) - } - if in.Response != nil { - in, out := &in.Response, &out.Response - *out = new(AdmissionResponse) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview. -func (in *AdmissionReview) DeepCopy() *AdmissionReview { - if in == nil { - return nil - } - out := new(AdmissionReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AdmissionReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/api/admission/v1beta1/doc.go b/pseudo/k8s/api/admission/v1beta1/doc.go deleted file mode 100644 index adfdbb7d3..000000000 --- a/pseudo/k8s/api/admission/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=false - -// +groupName=admission.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1beta1" diff --git a/pseudo/k8s/api/admission/v1beta1/generated.pb.go b/pseudo/k8s/api/admission/v1beta1/generated.pb.go deleted file mode 100644 index 72de6dbc0..000000000 --- a/pseudo/k8s/api/admission/v1beta1/generated.pb.go +++ /dev/null @@ -1,1769 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - k8s_io_apimachinery_pkg_types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AdmissionRequest) Reset() { *m = AdmissionRequest{} } -func (*AdmissionRequest) ProtoMessage() {} -func (*AdmissionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_b87c2352de86eab9, []int{0} -} -func (m *AdmissionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdmissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AdmissionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdmissionRequest.Merge(m, src) -} -func (m *AdmissionRequest) XXX_Size() int { - return m.Size() -} -func (m *AdmissionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdmissionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AdmissionRequest proto.InternalMessageInfo - -func (m *AdmissionResponse) Reset() { *m = AdmissionResponse{} } -func (*AdmissionResponse) ProtoMessage() {} -func (*AdmissionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_b87c2352de86eab9, []int{1} -} -func (m *AdmissionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdmissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AdmissionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdmissionResponse.Merge(m, src) -} -func (m *AdmissionResponse) XXX_Size() int { - return m.Size() -} -func (m *AdmissionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdmissionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AdmissionResponse proto.InternalMessageInfo - -func (m *AdmissionReview) Reset() { *m = AdmissionReview{} } -func (*AdmissionReview) ProtoMessage() {} -func (*AdmissionReview) Descriptor() ([]byte, []int) { - return fileDescriptor_b87c2352de86eab9, []int{2} -} -func (m *AdmissionReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AdmissionReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AdmissionReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdmissionReview.Merge(m, src) -} -func (m *AdmissionReview) XXX_Size() int { - return m.Size() -} -func (m *AdmissionReview) XXX_DiscardUnknown() { - xxx_messageInfo_AdmissionReview.DiscardUnknown(m) -} - -var xxx_messageInfo_AdmissionReview proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AdmissionRequest)(nil), "k8s.io.api.admission.v1beta1.AdmissionRequest") - proto.RegisterType((*AdmissionResponse)(nil), "k8s.io.api.admission.v1beta1.AdmissionResponse") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.admission.v1beta1.AdmissionResponse.AuditAnnotationsEntry") - proto.RegisterType((*AdmissionReview)(nil), "k8s.io.api.admission.v1beta1.AdmissionReview") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1beta1/generated.proto", fileDescriptor_b87c2352de86eab9) -} - -var fileDescriptor_b87c2352de86eab9 = []byte{ - // 902 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xd6, 0x8e, 0xed, 0x1d, 0x87, 0xda, 0x9d, 0x82, 0xb4, 0xb2, 0xd0, 0xda, 0xe4, 0x80, - 0x82, 0xd4, 0xcc, 0x92, 0x08, 0xaa, 0xa8, 0xe2, 0x92, 0x25, 0x11, 0x0a, 0x48, 0x4d, 0x34, 0xad, - 0x51, 0xe1, 0x80, 0x34, 0xf6, 0x4e, 0xed, 0xc5, 0xf6, 0xcc, 0xb2, 0x33, 0xeb, 0xe0, 0x1b, 0xe2, - 0xca, 0x85, 0x6f, 0xc0, 0x87, 0xe1, 0x92, 0x63, 0x8f, 0x3d, 0x59, 0xc4, 0x7c, 0x8b, 0x9c, 0xd0, - 0xcc, 0xce, 0x7a, 0xb7, 0x76, 0x02, 0xfd, 0xc3, 0xc9, 0xf3, 0xfe, 0xfc, 0x7e, 0xef, 0xf9, 0xf7, - 0x76, 0xde, 0x80, 0x93, 0xf1, 0xa1, 0x40, 0x21, 0xf7, 0xc6, 0x49, 0x9f, 0xc6, 0x8c, 0x4a, 0x2a, - 0xbc, 0x19, 0x65, 0x01, 0x8f, 0x3d, 0x13, 0x20, 0x51, 0xe8, 0x91, 0x60, 0x1a, 0x0a, 0x11, 0x72, - 0xe6, 0xcd, 0xf6, 0xfb, 0x54, 0x92, 0x7d, 0x6f, 0x48, 0x19, 0x8d, 0x89, 0xa4, 0x01, 0x8a, 0x62, - 0x2e, 0x39, 0xfc, 0x30, 0xcd, 0x46, 0x24, 0x0a, 0xd1, 0x2a, 0x1b, 0x99, 0xec, 0xf6, 0xde, 0x30, - 0x94, 0xa3, 0xa4, 0x8f, 0x06, 0x7c, 0xea, 0x0d, 0xf9, 0x90, 0x7b, 0x1a, 0xd4, 0x4f, 0x9e, 0x6b, - 0x4b, 0x1b, 0xfa, 0x94, 0x92, 0xb5, 0x1f, 0x14, 0x4b, 0x27, 0x72, 0x44, 0x99, 0x0c, 0x07, 0x44, - 0xa6, 0xf5, 0xd7, 0x4b, 0xb7, 0x3f, 0xcb, 0xb3, 0xa7, 0x64, 0x30, 0x0a, 0x19, 0x8d, 0xe7, 0x5e, - 0x34, 0x1e, 0x2a, 0x87, 0xf0, 0xa6, 0x54, 0x92, 0x9b, 0x50, 0xde, 0x6d, 0xa8, 0x38, 0x61, 0x32, - 0x9c, 0xd2, 0x0d, 0xc0, 0xc3, 0xff, 0x02, 0x88, 0xc1, 0x88, 0x4e, 0xc9, 0x3a, 0x6e, 0xe7, 0x0f, - 0x1b, 0xb4, 0x8e, 0x32, 0x45, 0x30, 0xfd, 0x29, 0xa1, 0x42, 0x42, 0x1f, 0x94, 0x93, 0x30, 0x70, - 0xac, 0xae, 0xb5, 0x6b, 0xfb, 0x9f, 0x5e, 0x2e, 0x3a, 0xa5, 0xe5, 0xa2, 0x53, 0xee, 0x9d, 0x1e, - 0x5f, 0x2f, 0x3a, 0x1f, 0xdd, 0x56, 0x48, 0xce, 0x23, 0x2a, 0x50, 0xef, 0xf4, 0x18, 0x2b, 0x30, - 0x7c, 0x06, 0x2a, 0xe3, 0x90, 0x05, 0xce, 0x9d, 0xae, 0xb5, 0xdb, 0x38, 0x78, 0x88, 0xf2, 0x09, - 0xac, 0x60, 0x28, 0x1a, 0x0f, 0x95, 0x43, 0x20, 0x25, 0x03, 0x9a, 0xed, 0xa3, 0xaf, 0x62, 0x9e, - 0x44, 0xdf, 0xd2, 0x58, 0x35, 0xf3, 0x4d, 0xc8, 0x02, 0x7f, 0xdb, 0x14, 0xaf, 0x28, 0x0b, 0x6b, - 0x46, 0x38, 0x02, 0xf5, 0x98, 0x0a, 0x9e, 0xc4, 0x03, 0xea, 0x94, 0x35, 0xfb, 0xa3, 0x37, 0x67, - 0xc7, 0x86, 0xc1, 0x6f, 0x99, 0x0a, 0xf5, 0xcc, 0x83, 0x57, 0xec, 0xf0, 0x73, 0xd0, 0x10, 0x49, - 0x3f, 0x0b, 0x38, 0x15, 0xad, 0xc7, 0x7d, 0x03, 0x68, 0x3c, 0xc9, 0x43, 0xb8, 0x98, 0x07, 0x43, - 0xd0, 0x88, 0x53, 0x25, 0x55, 0xd7, 0xce, 0x7b, 0xef, 0xa4, 0x40, 0x53, 0x95, 0xc2, 0x39, 0x1d, - 0x2e, 0x72, 0xc3, 0x39, 0x68, 0x1a, 0x73, 0xd5, 0xe5, 0xdd, 0x77, 0x96, 0xe4, 0xfe, 0x72, 0xd1, - 0x69, 0xe2, 0x57, 0x69, 0xf1, 0x7a, 0x1d, 0xf8, 0x35, 0x80, 0xc6, 0x55, 0x10, 0xc2, 0x69, 0x6a, - 0x8d, 0xda, 0x46, 0x23, 0x88, 0x37, 0x32, 0xf0, 0x0d, 0x28, 0xd8, 0x05, 0x15, 0x46, 0xa6, 0xd4, - 0xd9, 0xd2, 0xe8, 0xd5, 0xd0, 0x1f, 0x93, 0x29, 0xc5, 0x3a, 0x02, 0x3d, 0x60, 0xab, 0x5f, 0x11, - 0x91, 0x01, 0x75, 0xaa, 0x3a, 0xed, 0x9e, 0x49, 0xb3, 0x1f, 0x67, 0x01, 0x9c, 0xe7, 0xc0, 0x2f, - 0x80, 0xcd, 0x23, 0xf5, 0xa9, 0x87, 0x9c, 0x39, 0x35, 0x0d, 0x70, 0x33, 0xc0, 0x59, 0x16, 0xb8, - 0x2e, 0x1a, 0x38, 0x07, 0xc0, 0xa7, 0xa0, 0x9e, 0x08, 0x1a, 0x9f, 0xb2, 0xe7, 0xdc, 0xa9, 0x6b, - 0x41, 0x3f, 0x46, 0xc5, 0x1d, 0xf2, 0xca, 0xb5, 0x57, 0x42, 0xf6, 0x4c, 0x76, 0xfe, 0x3d, 0x65, - 0x1e, 0xbc, 0x62, 0x82, 0x3d, 0x50, 0xe5, 0xfd, 0x1f, 0xe9, 0x40, 0x3a, 0xb6, 0xe6, 0xdc, 0xbb, - 0x75, 0x48, 0xe6, 0xd6, 0x22, 0x4c, 0x2e, 0x4e, 0x7e, 0x96, 0x94, 0xa9, 0xf9, 0xf8, 0x77, 0x0d, - 0x75, 0xf5, 0x4c, 0x93, 0x60, 0x43, 0x06, 0x7f, 0x00, 0x36, 0x9f, 0x04, 0xa9, 0xd3, 0x01, 0x6f, - 0xc3, 0xbc, 0x92, 0xf2, 0x2c, 0xe3, 0xc1, 0x39, 0x25, 0xdc, 0x01, 0xd5, 0x20, 0x9e, 0xe3, 0x84, - 0x39, 0x8d, 0xae, 0xb5, 0x5b, 0xf7, 0x81, 0xea, 0xe1, 0x58, 0x7b, 0xb0, 0x89, 0xc0, 0x67, 0xa0, - 0xc6, 0x23, 0x25, 0x86, 0x70, 0xb6, 0xdf, 0xa6, 0x83, 0xa6, 0xe9, 0xa0, 0x76, 0x96, 0xb2, 0xe0, - 0x8c, 0x6e, 0xe7, 0xd7, 0x0a, 0xb8, 0x57, 0xd8, 0x50, 0x22, 0xe2, 0x4c, 0xd0, 0xff, 0x65, 0x45, - 0x7d, 0x02, 0x6a, 0x64, 0x32, 0xe1, 0x17, 0x34, 0xdd, 0x52, 0xf5, 0xbc, 0x89, 0xa3, 0xd4, 0x8d, - 0xb3, 0x38, 0x3c, 0x07, 0x55, 0x21, 0x89, 0x4c, 0x84, 0xd9, 0x38, 0x0f, 0x5e, 0xef, 0x7a, 0x3d, - 0xd1, 0x98, 0x54, 0x30, 0x4c, 0x45, 0x32, 0x91, 0xd8, 0xf0, 0xc0, 0x0e, 0xd8, 0x8a, 0x88, 0x1c, - 0x8c, 0xf4, 0x56, 0xd9, 0xf6, 0xed, 0xe5, 0xa2, 0xb3, 0x75, 0xae, 0x1c, 0x38, 0xf5, 0xc3, 0x43, - 0x60, 0xeb, 0xc3, 0xd3, 0x79, 0x94, 0x5d, 0x8c, 0xb6, 0x1a, 0xd1, 0x79, 0xe6, 0xbc, 0x2e, 0x1a, - 0x38, 0x4f, 0x86, 0xbf, 0x59, 0xa0, 0x45, 0x92, 0x20, 0x94, 0x47, 0x8c, 0x71, 0x49, 0xd2, 0xa9, - 0x54, 0xbb, 0xe5, 0xdd, 0xc6, 0xc1, 0x09, 0xfa, 0xb7, 0x97, 0x10, 0x6d, 0xe8, 0x8c, 0x8e, 0xd6, - 0x78, 0x4e, 0x98, 0x8c, 0xe7, 0xbe, 0x63, 0x84, 0x6a, 0xad, 0x87, 0xf1, 0x46, 0xe1, 0xf6, 0x97, - 0xe0, 0x83, 0x1b, 0x49, 0x60, 0x0b, 0x94, 0xc7, 0x74, 0x9e, 0x8e, 0x10, 0xab, 0x23, 0x7c, 0x1f, - 0x6c, 0xcd, 0xc8, 0x24, 0xa1, 0x7a, 0x1c, 0x36, 0x4e, 0x8d, 0x47, 0x77, 0x0e, 0xad, 0x9d, 0x3f, - 0x2d, 0xd0, 0x2c, 0x34, 0x37, 0x0b, 0xe9, 0x05, 0xec, 0x81, 0x9a, 0x59, 0x25, 0x9a, 0xa3, 0x71, - 0x80, 0x5e, 0xfb, 0xcf, 0x69, 0x94, 0xdf, 0x50, 0xa3, 0xce, 0xf6, 0x5c, 0xc6, 0x05, 0xbf, 0xd3, - 0xcf, 0x8b, 0xfe, 0xf7, 0xe6, 0xf1, 0xf2, 0xde, 0x50, 0x34, 0x7f, 0xdb, 0xbc, 0x27, 0xda, 0xc2, - 0x2b, 0x3a, 0x7f, 0xef, 0xf2, 0xca, 0x2d, 0xbd, 0xb8, 0x72, 0x4b, 0x2f, 0xaf, 0xdc, 0xd2, 0x2f, - 0x4b, 0xd7, 0xba, 0x5c, 0xba, 0xd6, 0x8b, 0xa5, 0x6b, 0xbd, 0x5c, 0xba, 0xd6, 0x5f, 0x4b, 0xd7, - 0xfa, 0xfd, 0x6f, 0xb7, 0xf4, 0x7d, 0xcd, 0x10, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x8b, 0xd1, - 0x27, 0x74, 0xfd, 0x08, 0x00, 0x00, -} - -func (m *AdmissionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AdmissionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdmissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.RequestSubResource) - copy(dAtA[i:], m.RequestSubResource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequestSubResource))) - i-- - dAtA[i] = 0x7a - if m.RequestResource != nil { - { - size, err := m.RequestResource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.RequestKind != nil { - { - size, err := m.RequestKind.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - { - size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - if m.DryRun != nil { - i-- - if *m.DryRun { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - } - { - size, err := m.OldObject.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - { - size, err := m.UserInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - i -= len(m.Operation) - copy(dAtA[i:], m.Operation) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation))) - i-- - dAtA[i] = 0x3a - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x32 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x2a - i -= len(m.SubResource) - copy(dAtA[i:], m.SubResource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubResource))) - i-- - dAtA[i] = 0x22 - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Kind.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AdmissionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AdmissionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdmissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AuditAnnotations) > 0 { - keysForAuditAnnotations := make([]string, 0, len(m.AuditAnnotations)) - for k := range m.AuditAnnotations { - keysForAuditAnnotations = append(keysForAuditAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations) - for iNdEx := len(keysForAuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.AuditAnnotations[string(keysForAuditAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAuditAnnotations[iNdEx]) - copy(dAtA[i:], keysForAuditAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAuditAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if m.PatchType != nil { - i -= len(*m.PatchType) - copy(dAtA[i:], *m.PatchType) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PatchType))) - i-- - dAtA[i] = 0x2a - } - if m.Patch != nil { - i -= len(m.Patch) - copy(dAtA[i:], m.Patch) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Patch))) - i-- - dAtA[i] = 0x22 - } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i-- - if m.Allowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AdmissionReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AdmissionReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AdmissionReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Response != nil { - { - size, err := m.Response.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AdmissionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Kind.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SubResource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operation) - n += 1 + l + sovGenerated(uint64(l)) - l = m.UserInfo.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.OldObject.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.DryRun != nil { - n += 2 - } - l = m.Options.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.RequestKind != nil { - l = m.RequestKind.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RequestResource != nil { - l = m.RequestResource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.RequestSubResource) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AdmissionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Patch != nil { - l = len(m.Patch) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PatchType != nil { - l = len(*m.PatchType) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.AuditAnnotations) > 0 { - for k, v := range m.AuditAnnotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *AdmissionReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Response != nil { - l = m.Response.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AdmissionRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AdmissionRequest{`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Kind:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Kind), "GroupVersionKind", "v1.GroupVersionKind", 1), `&`, ``, 1) + `,`, - `Resource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Resource), "GroupVersionResource", "v1.GroupVersionResource", 1), `&`, ``, 1) + `,`, - `SubResource:` + fmt.Sprintf("%v", this.SubResource) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`, - `UserInfo:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UserInfo), "UserInfo", "v11.UserInfo", 1), `&`, ``, 1) + `,`, - `Object:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Object), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `OldObject:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OldObject), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `DryRun:` + valueToStringGenerated(this.DryRun) + `,`, - `Options:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Options), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `RequestKind:` + strings.Replace(fmt.Sprintf("%v", this.RequestKind), "GroupVersionKind", "v1.GroupVersionKind", 1) + `,`, - `RequestResource:` + strings.Replace(fmt.Sprintf("%v", this.RequestResource), "GroupVersionResource", "v1.GroupVersionResource", 1) + `,`, - `RequestSubResource:` + fmt.Sprintf("%v", this.RequestSubResource) + `,`, - `}`, - }, "") - return s -} -func (this *AdmissionResponse) String() string { - if this == nil { - return "nil" - } - keysForAuditAnnotations := make([]string, 0, len(this.AuditAnnotations)) - for k := range this.AuditAnnotations { - keysForAuditAnnotations = append(keysForAuditAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations) - mapStringForAuditAnnotations := "map[string]string{" - for _, k := range keysForAuditAnnotations { - mapStringForAuditAnnotations += fmt.Sprintf("%v: %v,", k, this.AuditAnnotations[k]) - } - mapStringForAuditAnnotations += "}" - s := strings.Join([]string{`&AdmissionResponse{`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, - `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Status", "v1.Status", 1) + `,`, - `Patch:` + valueToStringGenerated(this.Patch) + `,`, - `PatchType:` + valueToStringGenerated(this.PatchType) + `,`, - `AuditAnnotations:` + mapStringForAuditAnnotations + `,`, - `}`, - }, "") - return s -} -func (this *AdmissionReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AdmissionReview{`, - `Request:` + strings.Replace(this.Request.String(), "AdmissionRequest", "AdmissionRequest", 1) + `,`, - `Response:` + strings.Replace(this.Response.String(), "AdmissionResponse", "AdmissionResponse", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AdmissionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AdmissionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AdmissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Kind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubResource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SubResource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operation = Operation(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UserInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OldObject", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.OldObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.DryRun = &b - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestKind", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequestKind == nil { - m.RequestKind = &v1.GroupVersionKind{} - } - if err := m.RequestKind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestResource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequestResource == nil { - m.RequestResource = &v1.GroupVersionResource{} - } - if err := m.RequestResource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestSubResource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestSubResource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AdmissionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AdmissionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AdmissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Allowed = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Result == nil { - m.Result = &v1.Status{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Patch", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Patch = append(m.Patch[:0], dAtA[iNdEx:postIndex]...) - if m.Patch == nil { - m.Patch = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := PatchType(dAtA[iNdEx:postIndex]) - m.PatchType = &s - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuditAnnotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AuditAnnotations == nil { - m.AuditAnnotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AuditAnnotations[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AdmissionReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AdmissionReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AdmissionReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Request == nil { - m.Request = &AdmissionRequest{} - } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Response == nil { - m.Response = &AdmissionResponse{} - } - if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/admission/v1beta1/generated.proto b/pseudo/k8s/api/admission/v1beta1/generated.proto deleted file mode 100644 index 3ec175bd1..000000000 --- a/pseudo/k8s/api/admission/v1beta1/generated.proto +++ /dev/null @@ -1,160 +0,0 @@ -/* -Copyright 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.admission.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// AdmissionRequest describes the admission.Attributes for the admission request. -message AdmissionRequest { - // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are - // otherwise identical (parallel requests, requests when earlier requests did not modify etc) - // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - optional string uid = 1; - - // Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; - - // Resource is the fully-qualified resource being requested (for example, v1.pods) - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; - - // SubResource is the subresource being requested, if any (for example, "status" or "scale") - // +optional - optional string subResource = 4; - - // RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). - // If this is specified and differs from the value in "kind", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `kind: {group:"apps", version:"v1", kind:"Deployment"}` (matching the rule the webhook registered for), - // and `requestKind: {group:"apps", version:"v1beta1", kind:"Deployment"}` (indicating the kind of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type for more details. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind requestKind = 13; - - // RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). - // If this is specified and differs from the value in "resource", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `resource: {group:"apps", version:"v1", resource:"deployments"}` (matching the resource the webhook registered for), - // and `requestResource: {group:"apps", version:"v1beta1", resource:"deployments"}` (indicating the resource of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource requestResource = 14; - - // RequestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale") - // If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed. - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - optional string requestSubResource = 15; - - // Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and - // rely on the server to generate the name. If that is the case, this field will contain an empty string. - // +optional - optional string name = 5; - - // Namespace is the namespace associated with the request (if any). - // +optional - optional string namespace = 6; - - // Operation is the operation being performed. This may be different than the operation - // requested. e.g. a patch can result in either a CREATE or UPDATE Operation. - optional string operation = 7; - - // UserInfo is information about the requesting user - optional k8s.io.api.authentication.v1.UserInfo userInfo = 8; - - // Object is the object from the incoming request. - // +optional - optional k8s.io.apimachinery.pkg.runtime.RawExtension object = 9; - - // OldObject is the existing object. Only populated for DELETE and UPDATE requests. - // +optional - optional k8s.io.apimachinery.pkg.runtime.RawExtension oldObject = 10; - - // DryRun indicates that modifications will definitely not be persisted for this request. - // Defaults to false. - // +optional - optional bool dryRun = 11; - - // Options is the operation option structure of the operation being performed. - // e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be - // different than the options the caller provided. e.g. for a patch request the performed - // Operation might be a CREATE, in which case the Options will a - // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`. - // +optional - optional k8s.io.apimachinery.pkg.runtime.RawExtension options = 12; -} - -// AdmissionResponse describes an admission response. -message AdmissionResponse { - // UID is an identifier for the individual request/response. - // This should be copied over from the corresponding AdmissionRequest. - optional string uid = 1; - - // Allowed indicates whether or not the admission request was permitted. - optional bool allowed = 2; - - // Result contains extra details into why an admission request was denied. - // This field IS NOT consulted in any way if "Allowed" is "true". - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3; - - // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. - // +optional - optional bytes patch = 4; - - // The type of Patch. Currently we only allow "JSONPatch". - // +optional - optional string patchType = 5; - - // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). - // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with - // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by - // the admission webhook to add additional context to the audit log for this request. - // +optional - map auditAnnotations = 6; -} - -// AdmissionReview describes an admission review request/response. -message AdmissionReview { - // Request describes the attributes for the admission request. - // +optional - optional AdmissionRequest request = 1; - - // Response describes the attributes for the admission response. - // +optional - optional AdmissionResponse response = 2; -} - diff --git a/pseudo/k8s/api/admission/v1beta1/register.go b/pseudo/k8s/api/admission/v1beta1/register.go deleted file mode 100644 index 2ea74a13b..000000000 --- a/pseudo/k8s/api/admission/v1beta1/register.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name for this API. -const GroupName = "admission.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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &AdmissionReview{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/admission/v1beta1/types.go b/pseudo/k8s/api/admission/v1beta1/types.go deleted file mode 100644 index d8eab099b..000000000 --- a/pseudo/k8s/api/admission/v1beta1/types.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -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 ( - authenticationv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// AdmissionReview describes an admission review request/response. -type AdmissionReview struct { - metav1.TypeMeta `json:",inline"` - // Request describes the attributes for the admission request. - // +optional - Request *AdmissionRequest `json:"request,omitempty" protobuf:"bytes,1,opt,name=request"` - // Response describes the attributes for the admission response. - // +optional - Response *AdmissionResponse `json:"response,omitempty" protobuf:"bytes,2,opt,name=response"` -} - -// AdmissionRequest describes the admission.Attributes for the admission request. -type AdmissionRequest struct { - // UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are - // otherwise identical (parallel requests, requests when earlier requests did not modify etc) - // The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. - // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - UID types.UID `json:"uid" protobuf:"bytes,1,opt,name=uid"` - // Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) - Kind metav1.GroupVersionKind `json:"kind" protobuf:"bytes,2,opt,name=kind"` - // Resource is the fully-qualified resource being requested (for example, v1.pods) - Resource metav1.GroupVersionResource `json:"resource" protobuf:"bytes,3,opt,name=resource"` - // SubResource is the subresource being requested, if any (for example, "status" or "scale") - // +optional - SubResource string `json:"subResource,omitempty" protobuf:"bytes,4,opt,name=subResource"` - - // RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). - // If this is specified and differs from the value in "kind", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `kind: {group:"apps", version:"v1", kind:"Deployment"}` (matching the rule the webhook registered for), - // and `requestKind: {group:"apps", version:"v1beta1", kind:"Deployment"}` (indicating the kind of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type for more details. - // +optional - RequestKind *metav1.GroupVersionKind `json:"requestKind,omitempty" protobuf:"bytes,13,opt,name=requestKind"` - // RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). - // If this is specified and differs from the value in "resource", an equivalent match and conversion was performed. - // - // For example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of - // `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]` and `matchPolicy: Equivalent`, - // an API request to apps/v1beta1 deployments would be converted and sent to the webhook - // with `resource: {group:"apps", version:"v1", resource:"deployments"}` (matching the resource the webhook registered for), - // and `requestResource: {group:"apps", version:"v1beta1", resource:"deployments"}` (indicating the resource of the original API request). - // - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - RequestResource *metav1.GroupVersionResource `json:"requestResource,omitempty" protobuf:"bytes,14,opt,name=requestResource"` - // RequestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale") - // If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed. - // See documentation for the "matchPolicy" field in the webhook configuration type. - // +optional - RequestSubResource string `json:"requestSubResource,omitempty" protobuf:"bytes,15,opt,name=requestSubResource"` - - // Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and - // rely on the server to generate the name. If that is the case, this field will contain an empty string. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,5,opt,name=name"` - // Namespace is the namespace associated with the request (if any). - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,6,opt,name=namespace"` - // Operation is the operation being performed. This may be different than the operation - // requested. e.g. a patch can result in either a CREATE or UPDATE Operation. - Operation Operation `json:"operation" protobuf:"bytes,7,opt,name=operation"` - // UserInfo is information about the requesting user - UserInfo authenticationv1.UserInfo `json:"userInfo" protobuf:"bytes,8,opt,name=userInfo"` - // Object is the object from the incoming request. - // +optional - Object runtime.RawExtension `json:"object,omitempty" protobuf:"bytes,9,opt,name=object"` - // OldObject is the existing object. Only populated for DELETE and UPDATE requests. - // +optional - OldObject runtime.RawExtension `json:"oldObject,omitempty" protobuf:"bytes,10,opt,name=oldObject"` - // DryRun indicates that modifications will definitely not be persisted for this request. - // Defaults to false. - // +optional - DryRun *bool `json:"dryRun,omitempty" protobuf:"varint,11,opt,name=dryRun"` - // Options is the operation option structure of the operation being performed. - // e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be - // different than the options the caller provided. e.g. for a patch request the performed - // Operation might be a CREATE, in which case the Options will a - // `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`. - // +optional - Options runtime.RawExtension `json:"options,omitempty" protobuf:"bytes,12,opt,name=options"` -} - -// AdmissionResponse describes an admission response. -type AdmissionResponse struct { - // UID is an identifier for the individual request/response. - // This should be copied over from the corresponding AdmissionRequest. - UID types.UID `json:"uid" protobuf:"bytes,1,opt,name=uid"` - - // Allowed indicates whether or not the admission request was permitted. - Allowed bool `json:"allowed" protobuf:"varint,2,opt,name=allowed"` - - // Result contains extra details into why an admission request was denied. - // This field IS NOT consulted in any way if "Allowed" is "true". - // +optional - Result *metav1.Status `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` - - // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. - // +optional - Patch []byte `json:"patch,omitempty" protobuf:"bytes,4,opt,name=patch"` - - // The type of Patch. Currently we only allow "JSONPatch". - // +optional - PatchType *PatchType `json:"patchType,omitempty" protobuf:"bytes,5,opt,name=patchType"` - - // AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). - // MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with - // admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by - // the admission webhook to add additional context to the audit log for this request. - // +optional - AuditAnnotations map[string]string `json:"auditAnnotations,omitempty" protobuf:"bytes,6,opt,name=auditAnnotations"` -} - -// PatchType is the type of patch being used to represent the mutated object -type PatchType string - -// PatchType constants. -const ( - PatchTypeJSONPatch PatchType = "JSONPatch" -) - -// Operation is the type of resource operation being checked for admission control -type Operation string - -// Operation constants -const ( - Create Operation = "CREATE" - Update Operation = "UPDATE" - Delete Operation = "DELETE" - Connect Operation = "CONNECT" -) diff --git a/pseudo/k8s/api/admission/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/admission/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 2ef98db87..000000000 --- a/pseudo/k8s/api/admission/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_AdmissionRequest = map[string]string{ - "": "AdmissionRequest describes the admission.Attributes for the admission request.", - "uid": "UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are otherwise identical (parallel requests, requests when earlier requests did not modify etc) The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.", - "kind": "Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)", - "resource": "Resource is the fully-qualified resource being requested (for example, v1.pods)", - "subResource": "SubResource is the subresource being requested, if any (for example, \"status\" or \"scale\")", - "requestKind": "RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). If this is specified and differs from the value in \"kind\", an equivalent match and conversion was performed.\n\nFor example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]` and `matchPolicy: Equivalent`, an API request to apps/v1beta1 deployments would be converted and sent to the webhook with `kind: {group:\"apps\", version:\"v1\", kind:\"Deployment\"}` (matching the rule the webhook registered for), and `requestKind: {group:\"apps\", version:\"v1beta1\", kind:\"Deployment\"}` (indicating the kind of the original API request).\n\nSee documentation for the \"matchPolicy\" field in the webhook configuration type for more details.", - "requestResource": "RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). If this is specified and differs from the value in \"resource\", an equivalent match and conversion was performed.\n\nFor example, if deployments can be modified via apps/v1 and apps/v1beta1, and a webhook registered a rule of `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]` and `matchPolicy: Equivalent`, an API request to apps/v1beta1 deployments would be converted and sent to the webhook with `resource: {group:\"apps\", version:\"v1\", resource:\"deployments\"}` (matching the resource the webhook registered for), and `requestResource: {group:\"apps\", version:\"v1beta1\", resource:\"deployments\"}` (indicating the resource of the original API request).\n\nSee documentation for the \"matchPolicy\" field in the webhook configuration type.", - "requestSubResource": "RequestSubResource is the name of the subresource of the original API request, if any (for example, \"status\" or \"scale\") If this is specified and differs from the value in \"subResource\", an equivalent match and conversion was performed. See documentation for the \"matchPolicy\" field in the webhook configuration type.", - "name": "Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and rely on the server to generate the name. If that is the case, this field will contain an empty string.", - "namespace": "Namespace is the namespace associated with the request (if any).", - "operation": "Operation is the operation being performed. This may be different than the operation requested. e.g. a patch can result in either a CREATE or UPDATE Operation.", - "userInfo": "UserInfo is information about the requesting user", - "object": "Object is the object from the incoming request.", - "oldObject": "OldObject is the existing object. Only populated for DELETE and UPDATE requests.", - "dryRun": "DryRun indicates that modifications will definitely not be persisted for this request. Defaults to false.", - "options": "Options is the operation option structure of the operation being performed. e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be different than the options the caller provided. e.g. for a patch request the performed Operation might be a CREATE, in which case the Options will a `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`.", -} - -func (AdmissionRequest) SwaggerDoc() map[string]string { - return map_AdmissionRequest -} - -var map_AdmissionResponse = map[string]string{ - "": "AdmissionResponse describes an admission response.", - "uid": "UID is an identifier for the individual request/response. This should be copied over from the corresponding AdmissionRequest.", - "allowed": "Allowed indicates whether or not the admission request was permitted.", - "status": "Result contains extra details into why an admission request was denied. This field IS NOT consulted in any way if \"Allowed\" is \"true\".", - "patch": "The patch body. Currently we only support \"JSONPatch\" which implements RFC 6902.", - "patchType": "The type of Patch. Currently we only allow \"JSONPatch\".", - "auditAnnotations": "AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request.", -} - -func (AdmissionResponse) SwaggerDoc() map[string]string { - return map_AdmissionResponse -} - -var map_AdmissionReview = map[string]string{ - "": "AdmissionReview describes an admission review request/response.", - "request": "Request describes the attributes for the admission request.", - "response": "Response describes the attributes for the admission response.", -} - -func (AdmissionReview) SwaggerDoc() map[string]string { - return map_AdmissionReview -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/admission/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/admission/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index aa4dd204c..000000000 --- a/pseudo/k8s/api/admission/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,136 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AdmissionRequest) DeepCopyInto(out *AdmissionRequest) { - *out = *in - out.Kind = in.Kind - out.Resource = in.Resource - if in.RequestKind != nil { - in, out := &in.RequestKind, &out.RequestKind - *out = new(v1.GroupVersionKind) - **out = **in - } - if in.RequestResource != nil { - in, out := &in.RequestResource, &out.RequestResource - *out = new(v1.GroupVersionResource) - **out = **in - } - in.UserInfo.DeepCopyInto(&out.UserInfo) - in.Object.DeepCopyInto(&out.Object) - in.OldObject.DeepCopyInto(&out.OldObject) - if in.DryRun != nil { - in, out := &in.DryRun, &out.DryRun - *out = new(bool) - **out = **in - } - in.Options.DeepCopyInto(&out.Options) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionRequest. -func (in *AdmissionRequest) DeepCopy() *AdmissionRequest { - if in == nil { - return nil - } - out := new(AdmissionRequest) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AdmissionResponse) DeepCopyInto(out *AdmissionResponse) { - *out = *in - if in.Result != nil { - in, out := &in.Result, &out.Result - *out = new(v1.Status) - (*in).DeepCopyInto(*out) - } - if in.Patch != nil { - in, out := &in.Patch, &out.Patch - *out = make([]byte, len(*in)) - copy(*out, *in) - } - if in.PatchType != nil { - in, out := &in.PatchType, &out.PatchType - *out = new(PatchType) - **out = **in - } - if in.AuditAnnotations != nil { - in, out := &in.AuditAnnotations, &out.AuditAnnotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionResponse. -func (in *AdmissionResponse) DeepCopy() *AdmissionResponse { - if in == nil { - return nil - } - out := new(AdmissionResponse) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Request != nil { - in, out := &in.Request, &out.Request - *out = new(AdmissionRequest) - (*in).DeepCopyInto(*out) - } - if in.Response != nil { - in, out := &in.Response, &out.Response - *out = new(AdmissionResponse) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview. -func (in *AdmissionReview) DeepCopy() *AdmissionReview { - if in == nil { - return nil - } - out := new(AdmissionReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AdmissionReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/api/admissionregistration/v1/doc.go b/pseudo/k8s/api/admissionregistration/v1/doc.go deleted file mode 100644 index 5a41d92de..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/doc.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -Copyright 2019 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:protobuf-gen=package -// +k8s:openapi-gen=true -// +groupName=admissionregistration.k8s.io - -// Package v1 is the v1 version of the API. -// AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration -// MutatingWebhookConfiguration and ValidatingWebhookConfiguration are for the -// new dynamic admission controller configuration. -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1" diff --git a/pseudo/k8s/api/admissionregistration/v1/generated.pb.go b/pseudo/k8s/api/admissionregistration/v1/generated.pb.go deleted file mode 100644 index 93bd7d3f0..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/generated.pb.go +++ /dev/null @@ -1,3469 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } -func (*MutatingWebhook) ProtoMessage() {} -func (*MutatingWebhook) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{0} -} -func (m *MutatingWebhook) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MutatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MutatingWebhook) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutatingWebhook.Merge(m, src) -} -func (m *MutatingWebhook) XXX_Size() int { - return m.Size() -} -func (m *MutatingWebhook) XXX_DiscardUnknown() { - xxx_messageInfo_MutatingWebhook.DiscardUnknown(m) -} - -var xxx_messageInfo_MutatingWebhook proto.InternalMessageInfo - -func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} } -func (*MutatingWebhookConfiguration) ProtoMessage() {} -func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{1} -} -func (m *MutatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MutatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MutatingWebhookConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutatingWebhookConfiguration.Merge(m, src) -} -func (m *MutatingWebhookConfiguration) XXX_Size() int { - return m.Size() -} -func (m *MutatingWebhookConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_MutatingWebhookConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_MutatingWebhookConfiguration proto.InternalMessageInfo - -func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} } -func (*MutatingWebhookConfigurationList) ProtoMessage() {} -func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{2} -} -func (m *MutatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MutatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MutatingWebhookConfigurationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutatingWebhookConfigurationList.Merge(m, src) -} -func (m *MutatingWebhookConfigurationList) XXX_Size() int { - return m.Size() -} -func (m *MutatingWebhookConfigurationList) XXX_DiscardUnknown() { - xxx_messageInfo_MutatingWebhookConfigurationList.DiscardUnknown(m) -} - -var xxx_messageInfo_MutatingWebhookConfigurationList proto.InternalMessageInfo - -func (m *Rule) Reset() { *m = Rule{} } -func (*Rule) ProtoMessage() {} -func (*Rule) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{3} -} -func (m *Rule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Rule) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rule.Merge(m, src) -} -func (m *Rule) XXX_Size() int { - return m.Size() -} -func (m *Rule) XXX_DiscardUnknown() { - xxx_messageInfo_Rule.DiscardUnknown(m) -} - -var xxx_messageInfo_Rule proto.InternalMessageInfo - -func (m *RuleWithOperations) Reset() { *m = RuleWithOperations{} } -func (*RuleWithOperations) ProtoMessage() {} -func (*RuleWithOperations) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{4} -} -func (m *RuleWithOperations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuleWithOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuleWithOperations) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuleWithOperations.Merge(m, src) -} -func (m *RuleWithOperations) XXX_Size() int { - return m.Size() -} -func (m *RuleWithOperations) XXX_DiscardUnknown() { - xxx_messageInfo_RuleWithOperations.DiscardUnknown(m) -} - -var xxx_messageInfo_RuleWithOperations proto.InternalMessageInfo - -func (m *ServiceReference) Reset() { *m = ServiceReference{} } -func (*ServiceReference) ProtoMessage() {} -func (*ServiceReference) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{5} -} -func (m *ServiceReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceReference.Merge(m, src) -} -func (m *ServiceReference) XXX_Size() int { - return m.Size() -} -func (m *ServiceReference) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceReference proto.InternalMessageInfo - -func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} } -func (*ValidatingWebhook) ProtoMessage() {} -func (*ValidatingWebhook) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{6} -} -func (m *ValidatingWebhook) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ValidatingWebhook) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatingWebhook.Merge(m, src) -} -func (m *ValidatingWebhook) XXX_Size() int { - return m.Size() -} -func (m *ValidatingWebhook) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatingWebhook.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatingWebhook proto.InternalMessageInfo - -func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} } -func (*ValidatingWebhookConfiguration) ProtoMessage() {} -func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{7} -} -func (m *ValidatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ValidatingWebhookConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatingWebhookConfiguration.Merge(m, src) -} -func (m *ValidatingWebhookConfiguration) XXX_Size() int { - return m.Size() -} -func (m *ValidatingWebhookConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatingWebhookConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatingWebhookConfiguration proto.InternalMessageInfo - -func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} } -func (*ValidatingWebhookConfigurationList) ProtoMessage() {} -func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{8} -} -func (m *ValidatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ValidatingWebhookConfigurationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatingWebhookConfigurationList.Merge(m, src) -} -func (m *ValidatingWebhookConfigurationList) XXX_Size() int { - return m.Size() -} -func (m *ValidatingWebhookConfigurationList) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatingWebhookConfigurationList.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatingWebhookConfigurationList proto.InternalMessageInfo - -func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } -func (*WebhookClientConfig) ProtoMessage() {} -func (*WebhookClientConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_aaac5994f79683e8, []int{9} -} -func (m *WebhookClientConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WebhookClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WebhookClientConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebhookClientConfig.Merge(m, src) -} -func (m *WebhookClientConfig) XXX_Size() int { - return m.Size() -} -func (m *WebhookClientConfig) XXX_DiscardUnknown() { - xxx_messageInfo_WebhookClientConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_WebhookClientConfig proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1.MutatingWebhook") - proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration") - proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList") - proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1.Rule") - proto.RegisterType((*RuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1.RuleWithOperations") - proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1.ServiceReference") - proto.RegisterType((*ValidatingWebhook)(nil), "k8s.io.api.admissionregistration.v1.ValidatingWebhook") - proto.RegisterType((*ValidatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1.ValidatingWebhookConfiguration") - proto.RegisterType((*ValidatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1.ValidatingWebhookConfigurationList") - proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1.WebhookClientConfig") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1/generated.proto", fileDescriptor_aaac5994f79683e8) -} - -var fileDescriptor_aaac5994f79683e8 = []byte{ - // 1104 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xc6, 0x76, 0x63, 0x8f, 0xf3, 0xa7, 0x19, 0xa0, 0x35, 0xa1, 0xf2, 0x5a, 0x46, 0x42, - 0x46, 0xc0, 0x6e, 0x13, 0x4a, 0xa9, 0xb8, 0xa0, 0x6c, 0xf8, 0xa3, 0x88, 0xa4, 0x8d, 0x26, 0x6d, - 0x8a, 0x50, 0x0e, 0x1d, 0xaf, 0xc7, 0xf6, 0x10, 0x7b, 0x67, 0x35, 0x33, 0xeb, 0x92, 0x1b, 0x1f, - 0x81, 0xaf, 0x00, 0x9f, 0x82, 0x1b, 0xe2, 0x96, 0x63, 0x8f, 0x39, 0xa0, 0x85, 0x2c, 0x17, 0x0e, - 0x7c, 0x82, 0x9c, 0xd0, 0xcc, 0xae, 0x77, 0xfd, 0x27, 0x09, 0x56, 0x0e, 0x3d, 0xe5, 0xb6, 0xf3, - 0x7b, 0xf3, 0x7e, 0x6f, 0xde, 0xdb, 0xf7, 0xde, 0x0f, 0xec, 0x1c, 0x3d, 0x12, 0x16, 0x65, 0xf6, - 0x51, 0xd0, 0x24, 0xdc, 0x23, 0x92, 0x08, 0x7b, 0x40, 0xbc, 0x16, 0xe3, 0x76, 0x62, 0xc0, 0x3e, - 0xb5, 0x71, 0xab, 0x4f, 0x85, 0xa0, 0xcc, 0xe3, 0xa4, 0x43, 0x85, 0xe4, 0x58, 0x52, 0xe6, 0xd9, - 0x83, 0x75, 0xbb, 0x43, 0x3c, 0xc2, 0xb1, 0x24, 0x2d, 0xcb, 0xe7, 0x4c, 0x32, 0xf8, 0x6e, 0xec, - 0x64, 0x61, 0x9f, 0x5a, 0x17, 0x3a, 0x59, 0x83, 0xf5, 0xb5, 0x8f, 0x3a, 0x54, 0x76, 0x83, 0xa6, - 0xe5, 0xb2, 0xbe, 0xdd, 0x61, 0x1d, 0x66, 0x6b, 0xdf, 0x66, 0xd0, 0xd6, 0x27, 0x7d, 0xd0, 0x5f, - 0x31, 0xe7, 0xda, 0x83, 0xec, 0x21, 0x7d, 0xec, 0x76, 0xa9, 0x47, 0xf8, 0xb1, 0xed, 0x1f, 0x75, - 0x14, 0x20, 0xec, 0x3e, 0x91, 0xf8, 0x82, 0x97, 0xac, 0xd9, 0x97, 0x79, 0xf1, 0xc0, 0x93, 0xb4, - 0x4f, 0xa6, 0x1c, 0x1e, 0xfe, 0x9f, 0x83, 0x70, 0xbb, 0xa4, 0x8f, 0x27, 0xfd, 0xea, 0xbf, 0x2d, - 0x80, 0x95, 0xdd, 0x40, 0x62, 0x49, 0xbd, 0xce, 0x73, 0xd2, 0xec, 0x32, 0x76, 0x04, 0x6b, 0x20, - 0xef, 0xe1, 0x3e, 0xa9, 0x18, 0x35, 0xa3, 0x51, 0x72, 0x16, 0x4f, 0x42, 0x73, 0x2e, 0x0a, 0xcd, - 0xfc, 0x63, 0xdc, 0x27, 0x48, 0x5b, 0x20, 0x07, 0x8b, 0x6e, 0x8f, 0x12, 0x4f, 0x6e, 0x31, 0xaf, - 0x4d, 0x3b, 0x95, 0xf9, 0x9a, 0xd1, 0x28, 0x6f, 0x3c, 0xb2, 0x66, 0xa8, 0x9f, 0x95, 0x44, 0xd9, - 0x1a, 0xf1, 0x77, 0xde, 0x4c, 0x62, 0x2c, 0x8e, 0xa2, 0x68, 0x2c, 0x06, 0x3c, 0x04, 0x05, 0x1e, - 0xf4, 0x88, 0xa8, 0xe4, 0x6a, 0xb9, 0x46, 0x79, 0xe3, 0xd3, 0x99, 0x82, 0xa1, 0xa0, 0x47, 0x9e, - 0x53, 0xd9, 0x7d, 0xe2, 0x93, 0x18, 0x14, 0xce, 0x52, 0x12, 0xab, 0xa0, 0x6c, 0x02, 0xc5, 0xa4, - 0x70, 0x07, 0x2c, 0xb5, 0x31, 0xed, 0x05, 0x9c, 0xec, 0xb1, 0x1e, 0x75, 0x8f, 0x2b, 0x79, 0x9d, - 0xfc, 0x7b, 0x51, 0x68, 0x2e, 0x7d, 0x35, 0x6a, 0x38, 0x0f, 0xcd, 0xd5, 0x31, 0xe0, 0xe9, 0xb1, - 0x4f, 0xd0, 0xb8, 0x33, 0xfc, 0x02, 0x94, 0xfb, 0x58, 0xba, 0xdd, 0x84, 0xab, 0xa4, 0xb9, 0xea, - 0x51, 0x68, 0x96, 0x77, 0x33, 0xf8, 0x3c, 0x34, 0x57, 0x46, 0x8e, 0x9a, 0x67, 0xd4, 0x0d, 0xfe, - 0x00, 0x56, 0x55, 0xb5, 0x85, 0x8f, 0x5d, 0xb2, 0x4f, 0x7a, 0xc4, 0x95, 0x8c, 0x57, 0x0a, 0xba, - 0xd4, 0x1f, 0x8f, 0x64, 0x9f, 0xfe, 0x6f, 0xcb, 0x3f, 0xea, 0x28, 0x40, 0x58, 0xaa, 0xad, 0x54, - 0xfa, 0x3b, 0xb8, 0x49, 0x7a, 0x43, 0x57, 0xe7, 0xad, 0x28, 0x34, 0x57, 0x1f, 0x4f, 0x32, 0xa2, - 0xe9, 0x20, 0x90, 0x81, 0x65, 0xd6, 0xfc, 0x9e, 0xb8, 0x32, 0x0d, 0x5b, 0xbe, 0x7e, 0x58, 0x18, - 0x85, 0xe6, 0xf2, 0x93, 0x31, 0x3a, 0x34, 0x41, 0xaf, 0x0a, 0x26, 0x68, 0x8b, 0x7c, 0xd9, 0x6e, - 0x13, 0x57, 0x8a, 0xca, 0xad, 0xac, 0x60, 0xfb, 0x19, 0xac, 0x0a, 0x96, 0x1d, 0xb7, 0x7a, 0x58, - 0x08, 0x34, 0xea, 0x06, 0x3f, 0x03, 0xcb, 0xaa, 0xd7, 0x59, 0x20, 0xf7, 0x89, 0xcb, 0xbc, 0x96, - 0xa8, 0x2c, 0xd4, 0x8c, 0x46, 0x21, 0x7e, 0xc1, 0xd3, 0x31, 0x0b, 0x9a, 0xb8, 0x09, 0x9f, 0x81, - 0xbb, 0x69, 0x17, 0x21, 0x32, 0xa0, 0xe4, 0xe5, 0x01, 0xe1, 0xea, 0x20, 0x2a, 0xc5, 0x5a, 0xae, - 0x51, 0x72, 0xde, 0x89, 0x42, 0xf3, 0xee, 0xe6, 0xc5, 0x57, 0xd0, 0x65, 0xbe, 0xf0, 0x05, 0x80, - 0x9c, 0x50, 0x6f, 0xc0, 0x5c, 0xdd, 0x7e, 0x49, 0x43, 0x00, 0x9d, 0xdf, 0xfd, 0x28, 0x34, 0x21, - 0x9a, 0xb2, 0x9e, 0x87, 0xe6, 0x9d, 0x69, 0x54, 0xb7, 0xc7, 0x05, 0x5c, 0xf5, 0x53, 0x03, 0xdc, - 0x9b, 0x98, 0xe0, 0x78, 0x62, 0x82, 0xb8, 0xe3, 0xe1, 0x0b, 0x50, 0x54, 0x3f, 0xa6, 0x85, 0x25, - 0xd6, 0x23, 0x5d, 0xde, 0xb8, 0x3f, 0xdb, 0x6f, 0x8c, 0xff, 0xd9, 0x2e, 0x91, 0xd8, 0x81, 0xc9, - 0xd0, 0x80, 0x0c, 0x43, 0x29, 0x2b, 0x3c, 0x00, 0xc5, 0x24, 0xb2, 0xa8, 0xcc, 0xeb, 0xe9, 0x7c, - 0x30, 0xd3, 0x74, 0x4e, 0x3c, 0xdb, 0xc9, 0xab, 0x28, 0xa8, 0xf8, 0x32, 0xe1, 0xaa, 0xff, 0x63, - 0x80, 0xda, 0x55, 0xa9, 0xed, 0x50, 0x21, 0xe1, 0xe1, 0x54, 0x7a, 0xd6, 0x8c, 0x5d, 0x4a, 0x45, - 0x9c, 0xdc, 0xed, 0x24, 0xb9, 0xe2, 0x10, 0x19, 0x49, 0xad, 0x0d, 0x0a, 0x54, 0x92, 0xfe, 0x30, - 0xaf, 0xcd, 0xeb, 0xe4, 0x35, 0xf6, 0xe6, 0x6c, 0xff, 0x6c, 0x2b, 0x5e, 0x14, 0xd3, 0xd7, 0x7f, - 0x37, 0x40, 0x5e, 0x2d, 0x24, 0xf8, 0x01, 0x28, 0x61, 0x9f, 0x7e, 0xcd, 0x59, 0xe0, 0x8b, 0x8a, - 0xa1, 0x3b, 0x6f, 0x29, 0x0a, 0xcd, 0xd2, 0xe6, 0xde, 0x76, 0x0c, 0xa2, 0xcc, 0x0e, 0xd7, 0x41, - 0x19, 0xfb, 0x34, 0x6d, 0xd4, 0x79, 0x7d, 0x7d, 0x45, 0x8d, 0xcd, 0xe6, 0xde, 0x76, 0xda, 0x9c, - 0xa3, 0x77, 0x14, 0x3f, 0x27, 0x82, 0x05, 0xdc, 0x4d, 0x56, 0x69, 0xc2, 0x8f, 0x86, 0x20, 0xca, - 0xec, 0xf0, 0x43, 0x50, 0x10, 0x2e, 0xf3, 0x49, 0xb2, 0x0d, 0xef, 0xa8, 0x67, 0xef, 0x2b, 0xe0, - 0x3c, 0x34, 0x4b, 0xfa, 0x43, 0xb7, 0x65, 0x7c, 0xa9, 0xfe, 0x8b, 0x01, 0xe0, 0xf4, 0xc2, 0x85, - 0x9f, 0x03, 0xc0, 0xd2, 0x53, 0x92, 0x92, 0xa9, 0x7b, 0x29, 0x45, 0xcf, 0x43, 0x73, 0x29, 0x3d, - 0x69, 0xca, 0x11, 0x17, 0xf8, 0x0d, 0xc8, 0xab, 0x25, 0x9d, 0xa8, 0xcc, 0xfb, 0x33, 0x2f, 0xfe, - 0x4c, 0xba, 0xd4, 0x09, 0x69, 0x92, 0xfa, 0xcf, 0x06, 0xb8, 0xbd, 0x4f, 0xf8, 0x80, 0xba, 0x04, - 0x91, 0x36, 0xe1, 0xc4, 0x73, 0x09, 0xb4, 0x41, 0x29, 0x5d, 0x82, 0x89, 0xec, 0xad, 0x26, 0xbe, - 0xa5, 0x74, 0x61, 0xa2, 0xec, 0x4e, 0x2a, 0x91, 0xf3, 0x97, 0x4a, 0xe4, 0x3d, 0x90, 0xf7, 0xb1, - 0xec, 0x56, 0x72, 0xfa, 0x46, 0x51, 0x59, 0xf7, 0xb0, 0xec, 0x22, 0x8d, 0x6a, 0x2b, 0xe3, 0x52, - 0xd7, 0xb5, 0x90, 0x58, 0x19, 0x97, 0x48, 0xa3, 0xf5, 0x3f, 0x6f, 0x81, 0xd5, 0x03, 0xdc, 0xa3, - 0xad, 0x1b, 0x59, 0xbe, 0x91, 0xe5, 0x2b, 0x65, 0x19, 0xdc, 0xc8, 0xf2, 0x75, 0x64, 0xb9, 0xfe, - 0x87, 0x01, 0xaa, 0x53, 0x13, 0xf6, 0xba, 0x65, 0xf3, 0xdb, 0x29, 0xd9, 0x7c, 0x38, 0xd3, 0xf4, - 0x4c, 0x3d, 0x7c, 0x4a, 0x38, 0xff, 0x35, 0x40, 0xfd, 0xea, 0xf4, 0x5e, 0x83, 0x74, 0x76, 0xc7, - 0xa5, 0x73, 0xeb, 0x7a, 0xb9, 0xcd, 0x22, 0x9e, 0xbf, 0x1a, 0xe0, 0x8d, 0x0b, 0xf6, 0x17, 0x7c, - 0x1b, 0xe4, 0x02, 0xde, 0x4b, 0x56, 0xf0, 0x42, 0x14, 0x9a, 0xb9, 0x67, 0x68, 0x07, 0x29, 0x0c, - 0x1e, 0x82, 0x05, 0x11, 0xab, 0x40, 0x92, 0xf9, 0x27, 0x33, 0x3d, 0x6f, 0x52, 0x39, 0x9c, 0x72, - 0x14, 0x9a, 0x0b, 0x43, 0x74, 0x48, 0x09, 0x1b, 0xa0, 0xe8, 0x62, 0x27, 0xf0, 0x5a, 0x89, 0x6a, - 0x2d, 0x3a, 0x8b, 0xaa, 0x48, 0x5b, 0x9b, 0x31, 0x86, 0x52, 0xab, 0xd3, 0x38, 0x39, 0xab, 0xce, - 0xbd, 0x3a, 0xab, 0xce, 0x9d, 0x9e, 0x55, 0xe7, 0x7e, 0x8c, 0xaa, 0xc6, 0x49, 0x54, 0x35, 0x5e, - 0x45, 0x55, 0xe3, 0x34, 0xaa, 0x1a, 0x7f, 0x45, 0x55, 0xe3, 0xa7, 0xbf, 0xab, 0x73, 0xdf, 0xcd, - 0x0f, 0xd6, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x57, 0x91, 0x2c, 0x7b, 0xeb, 0x0e, 0x00, 0x00, -} - -func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ObjectSelector != nil { - { - size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.ReinvocationPolicy != nil { - i -= len(*m.ReinvocationPolicy) - copy(dAtA[i:], *m.ReinvocationPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy))) - i-- - dAtA[i] = 0x52 - } - if m.MatchPolicy != nil { - i -= len(*m.MatchPolicy) - copy(dAtA[i:], *m.MatchPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) - i-- - dAtA[i] = 0x4a - } - if len(m.AdmissionReviewVersions) > 0 { - for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AdmissionReviewVersions[iNdEx]) - copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x38 - } - if m.SideEffects != nil { - i -= len(*m.SideEffects) - copy(dAtA[i:], *m.SideEffects) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) - i-- - dAtA[i] = 0x32 - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Webhooks) > 0 { - for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Rule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Rule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Scope != nil { - i -= len(*m.Scope) - copy(dAtA[i:], *m.Scope) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope))) - i-- - dAtA[i] = 0x22 - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.APIVersions) > 0 { - for iNdEx := len(m.APIVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIVersions[iNdEx]) - copy(dAtA[i:], m.APIVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersions[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RuleWithOperations) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuleWithOperations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Operations) > 0 { - for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Operations[iNdEx]) - copy(dAtA[i:], m.Operations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operations[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ServiceReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) - i-- - dAtA[i] = 0x20 - } - if m.Path != nil { - i -= len(*m.Path) - copy(dAtA[i:], *m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) - i-- - dAtA[i] = 0x1a - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ObjectSelector != nil { - { - size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.MatchPolicy != nil { - i -= len(*m.MatchPolicy) - copy(dAtA[i:], *m.MatchPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) - i-- - dAtA[i] = 0x4a - } - if len(m.AdmissionReviewVersions) > 0 { - for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AdmissionReviewVersions[iNdEx]) - copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x38 - } - if m.SideEffects != nil { - i -= len(*m.SideEffects) - copy(dAtA[i:], *m.SideEffects) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) - i-- - dAtA[i] = 0x32 - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Webhooks) > 0 { - for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.URL != nil { - i -= len(*m.URL) - copy(dAtA[i:], *m.URL) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) - i-- - dAtA[i] = 0x1a - } - if m.CABundle != nil { - i -= len(m.CABundle) - copy(dAtA[i:], m.CABundle) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) - i-- - dAtA[i] = 0x12 - } - if m.Service != nil { - { - size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MutatingWebhook) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.FailurePolicy != nil { - l = len(*m.FailurePolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SideEffects != nil { - l = len(*m.SideEffects) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - if len(m.AdmissionReviewVersions) > 0 { - for _, s := range m.AdmissionReviewVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.MatchPolicy != nil { - l = len(*m.MatchPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ReinvocationPolicy != nil { - l = len(*m.ReinvocationPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ObjectSelector != nil { - l = m.ObjectSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MutatingWebhookConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Webhooks) > 0 { - for _, e := range m.Webhooks { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *MutatingWebhookConfigurationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Rule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIVersions) > 0 { - for _, s := range m.APIVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Scope != nil { - l = len(*m.Scope) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RuleWithOperations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Operations) > 0 { - for _, s := range m.Operations { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Rule.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Path != nil { - l = len(*m.Path) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - n += 1 + sovGenerated(uint64(*m.Port)) - } - return n -} - -func (m *ValidatingWebhook) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.FailurePolicy != nil { - l = len(*m.FailurePolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SideEffects != nil { - l = len(*m.SideEffects) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - if len(m.AdmissionReviewVersions) > 0 { - for _, s := range m.AdmissionReviewVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.MatchPolicy != nil { - l = len(*m.MatchPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ObjectSelector != nil { - l = m.ObjectSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ValidatingWebhookConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Webhooks) > 0 { - for _, e := range m.Webhooks { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ValidatingWebhookConfigurationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *WebhookClientConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Service != nil { - l = m.Service.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CABundle != nil { - l = len(m.CABundle) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.URL != nil { - l = len(*m.URL) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *MutatingWebhook) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]RuleWithOperations{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&MutatingWebhook{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, - `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`, - `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MutatingWebhookConfiguration) String() string { - if this == nil { - return "nil" - } - repeatedStringForWebhooks := "[]MutatingWebhook{" - for _, f := range this.Webhooks { - repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + "," - } - repeatedStringForWebhooks += "}" - s := strings.Join([]string{`&MutatingWebhookConfiguration{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Webhooks:` + repeatedStringForWebhooks + `,`, - `}`, - }, "") - return s -} -func (this *MutatingWebhookConfigurationList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]MutatingWebhookConfiguration{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&MutatingWebhookConfigurationList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *Rule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Rule{`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `Scope:` + valueToStringGenerated(this.Scope) + `,`, - `}`, - }, "") - return s -} -func (this *RuleWithOperations) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuleWithOperations{`, - `Operations:` + fmt.Sprintf("%v", this.Operations) + `,`, - `Rule:` + strings.Replace(strings.Replace(this.Rule.String(), "Rule", "Rule", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceReference{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Path:` + valueToStringGenerated(this.Path) + `,`, - `Port:` + valueToStringGenerated(this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingWebhook) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]RuleWithOperations{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&ValidatingWebhook{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, - `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingWebhookConfiguration) String() string { - if this == nil { - return "nil" - } - repeatedStringForWebhooks := "[]ValidatingWebhook{" - for _, f := range this.Webhooks { - repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + "," - } - repeatedStringForWebhooks += "}" - s := strings.Join([]string{`&ValidatingWebhookConfiguration{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Webhooks:` + repeatedStringForWebhooks + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingWebhookConfigurationList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ValidatingWebhookConfiguration{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *WebhookClientConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WebhookClientConfig{`, - `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, - `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, - `URL:` + valueToStringGenerated(this.URL) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *MutatingWebhook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MutatingWebhook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MutatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, RuleWithOperations{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := FailurePolicyType(dAtA[iNdEx:postIndex]) - m.FailurePolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} - } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := SideEffectClass(dAtA[iNdEx:postIndex]) - m.SideEffects = &s - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := MatchPolicyType(dAtA[iNdEx:postIndex]) - m.MatchPolicy = &s - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ReinvocationPolicyType(dAtA[iNdEx:postIndex]) - m.ReinvocationPolicy = &s - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectSelector == nil { - m.ObjectSelector = &v1.LabelSelector{} - } - if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MutatingWebhookConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MutatingWebhookConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MutatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Webhooks = append(m.Webhooks, MutatingWebhook{}) - if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MutatingWebhookConfigurationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MutatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, MutatingWebhookConfiguration{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Rule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ScopeType(dAtA[iNdEx:postIndex]) - m.Scope = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuleWithOperations) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuleWithOperations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operations = append(m.Operations, OperationType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Path = &s - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Port = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatingWebhook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatingWebhook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, RuleWithOperations{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := FailurePolicyType(dAtA[iNdEx:postIndex]) - m.FailurePolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} - } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := SideEffectClass(dAtA[iNdEx:postIndex]) - m.SideEffects = &s - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := MatchPolicyType(dAtA[iNdEx:postIndex]) - m.MatchPolicy = &s - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectSelector == nil { - m.ObjectSelector = &v1.LabelSelector{} - } - if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatingWebhookConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatingWebhookConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Webhooks = append(m.Webhooks, ValidatingWebhook{}) - if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatingWebhookConfigurationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ValidatingWebhookConfiguration{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Service == nil { - m.Service = &ServiceReference{} - } - if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) - if m.CABundle == nil { - m.CABundle = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.URL = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/admissionregistration/v1/generated.proto b/pseudo/k8s/api/admissionregistration/v1/generated.proto deleted file mode 100644 index 423651084..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/generated.proto +++ /dev/null @@ -1,479 +0,0 @@ -/* -Copyright 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.admissionregistration.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// MutatingWebhook describes an admission webhook and the resources and operations it applies to. -message MutatingWebhook { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - optional string name = 1; - - // ClientConfig defines how to communicate with the hook. - // Required - optional WebhookClientConfig clientConfig = 2; - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - repeated RuleWithOperations rules = 3; - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Fail. - // +optional - optional string failurePolicy = 4; - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Equivalent" - // +optional - optional string matchPolicy = 9; - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. - optional string sideEffects = 6; - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 10 seconds. - // +optional - optional int32 timeoutSeconds = 7; - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - repeated string admissionReviewVersions = 8; - - // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. - // Allowed values are "Never" and "IfNeeded". - // - // Never: the webhook will not be called more than once in a single admission evaluation. - // - // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation - // if the object being admitted is modified by other admission plugins after the initial webhook call. - // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. - // Note: - // * the number of additional invocations is not guaranteed to be exactly one. - // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. - // * webhooks that use this option may be reordered to minimize the number of additional invocations. - // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - // - // Defaults to "Never". - // +optional - optional string reinvocationPolicy = 10; -} - -// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. -message MutatingWebhookConfiguration { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated MutatingWebhook Webhooks = 2; -} - -// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. -message MutatingWebhookConfigurationList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of MutatingWebhookConfiguration. - repeated MutatingWebhookConfiguration items = 2; -} - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -message Rule { - // APIGroups is the API groups the resources belong to. '*' is all groups. - // If '*' is present, the length of the slice must be one. - // Required. - repeated string apiGroups = 1; - - // APIVersions is the API versions the resources belong to. '*' is all versions. - // If '*' is present, the length of the slice must be one. - // Required. - repeated string apiVersions = 2; - - // Resources is a list of resources this rule applies to. - // - // For example: - // 'pods' means pods. - // 'pods/log' means the log subresource of pods. - // '*' means all resources, but not subresources. - // 'pods/*' means all subresources of pods. - // '*/scale' means all scale subresources. - // '*/*' means all resources and their subresources. - // - // If wildcard is present, the validation rule will ensure resources do not - // overlap with each other. - // - // Depending on the enclosing object, subresources might not be allowed. - // Required. - repeated string resources = 3; - - // scope specifies the scope of this rule. - // Valid values are "Cluster", "Namespaced", and "*" - // "Cluster" means that only cluster-scoped resources will match this rule. - // Namespace API objects are cluster-scoped. - // "Namespaced" means that only namespaced resources will match this rule. - // "*" means that there are no scope restrictions. - // Subresources match the scope of their parent resource. - // Default is "*". - // - // +optional - optional string scope = 4; -} - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -message RuleWithOperations { - // Operations is the operations the admission hook cares about - CREATE, UPDATE, or * - // for all operations. - // If '*' is present, the length of the slice must be one. - // Required. - repeated string operations = 1; - - // Rule is embedded, it describes other criteria of the rule, like - // APIGroups, APIVersions, Resources, etc. - optional Rule rule = 2; -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -message ServiceReference { - // `namespace` is the namespace of the service. - // Required - optional string namespace = 1; - - // `name` is the name of the service. - // Required - optional string name = 2; - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - optional string path = 3; - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - optional int32 port = 4; -} - -// ValidatingWebhook describes an admission webhook and the resources and operations it applies to. -message ValidatingWebhook { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - optional string name = 1; - - // ClientConfig defines how to communicate with the hook. - // Required - optional WebhookClientConfig clientConfig = 2; - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - repeated RuleWithOperations rules = 3; - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Fail. - // +optional - optional string failurePolicy = 4; - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Equivalent" - // +optional - optional string matchPolicy = 9; - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. - optional string sideEffects = 6; - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 10 seconds. - // +optional - optional int32 timeoutSeconds = 7; - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - repeated string admissionReviewVersions = 8; -} - -// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. -message ValidatingWebhookConfiguration { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated ValidatingWebhook Webhooks = 2; -} - -// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. -message ValidatingWebhookConfigurationList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ValidatingWebhookConfiguration. - repeated ValidatingWebhookConfiguration items = 2; -} - -// WebhookClientConfig contains the information to make a TLS -// connection with the webhook -message WebhookClientConfig { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - optional string url = 3; - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - optional ServiceReference service = 1; - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - optional bytes caBundle = 2; -} - diff --git a/pseudo/k8s/api/admissionregistration/v1/register.go b/pseudo/k8s/api/admissionregistration/v1/register.go deleted file mode 100644 index 3b8910ee6..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const GroupName = "admissionregistration.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &ValidatingWebhookConfiguration{}, - &ValidatingWebhookConfigurationList{}, - &MutatingWebhookConfiguration{}, - &MutatingWebhookConfigurationList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/admissionregistration/v1/types.go b/pseudo/k8s/api/admissionregistration/v1/types.go deleted file mode 100644 index cc8e3b6df..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/types.go +++ /dev/null @@ -1,551 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -type Rule struct { - // APIGroups is the API groups the resources belong to. '*' is all groups. - // If '*' is present, the length of the slice must be one. - // Required. - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,1,rep,name=apiGroups"` - - // APIVersions is the API versions the resources belong to. '*' is all versions. - // If '*' is present, the length of the slice must be one. - // Required. - APIVersions []string `json:"apiVersions,omitempty" protobuf:"bytes,2,rep,name=apiVersions"` - - // Resources is a list of resources this rule applies to. - // - // For example: - // 'pods' means pods. - // 'pods/log' means the log subresource of pods. - // '*' means all resources, but not subresources. - // 'pods/*' means all subresources of pods. - // '*/scale' means all scale subresources. - // '*/*' means all resources and their subresources. - // - // If wildcard is present, the validation rule will ensure resources do not - // overlap with each other. - // - // Depending on the enclosing object, subresources might not be allowed. - // Required. - Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` - - // scope specifies the scope of this rule. - // Valid values are "Cluster", "Namespaced", and "*" - // "Cluster" means that only cluster-scoped resources will match this rule. - // Namespace API objects are cluster-scoped. - // "Namespaced" means that only namespaced resources will match this rule. - // "*" means that there are no scope restrictions. - // Subresources match the scope of their parent resource. - // Default is "*". - // - // +optional - Scope *ScopeType `json:"scope,omitempty" protobuf:"bytes,4,rep,name=scope"` -} - -type ScopeType string - -const ( - // ClusterScope means that scope is limited to cluster-scoped objects. - // Namespace objects are cluster-scoped. - ClusterScope ScopeType = "Cluster" - // NamespacedScope means that scope is limited to namespaced objects. - NamespacedScope ScopeType = "Namespaced" - // AllScopes means that all scopes are included. - AllScopes ScopeType = "*" -) - -type FailurePolicyType string - -const ( - // Ignore means that an error calling the webhook is ignored. - Ignore FailurePolicyType = "Ignore" - // Fail means that an error calling the webhook causes the admission to fail. - Fail FailurePolicyType = "Fail" -) - -// MatchPolicyType specifies the type of match policy -type MatchPolicyType string - -const ( - // Exact means requests should only be sent to the webhook if they exactly match a given rule - Exact MatchPolicyType = "Exact" - // Equivalent means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version. - Equivalent MatchPolicyType = "Equivalent" -) - -type SideEffectClass string - -const ( - // SideEffectClassUnknown means that no information is known about the side effects of calling the webhook. - // If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. - SideEffectClassUnknown SideEffectClass = "Unknown" - // SideEffectClassNone means that calling the webhook will have no side effects. - SideEffectClassNone SideEffectClass = "None" - // SideEffectClassSome means that calling the webhook will possibly have side effects. - // If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. - SideEffectClassSome SideEffectClass = "Some" - // SideEffectClassNoneOnDryRun means that calling the webhook will possibly have side effects, but if the - // request being reviewed has the dry-run attribute, the side effects will be suppressed. - SideEffectClassNoneOnDryRun SideEffectClass = "NoneOnDryRun" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. -type ValidatingWebhookConfiguration struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Webhooks []ValidatingWebhook `json:"webhooks,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=Webhooks"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. -type ValidatingWebhookConfigurationList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // List of ValidatingWebhookConfiguration. - Items []ValidatingWebhookConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. -type MutatingWebhookConfiguration struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Webhooks []MutatingWebhook `json:"webhooks,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=Webhooks"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. -type MutatingWebhookConfigurationList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // List of MutatingWebhookConfiguration. - Items []MutatingWebhookConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// ValidatingWebhook describes an admission webhook and the resources and operations it applies to. -type ValidatingWebhook struct { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - - // ClientConfig defines how to communicate with the hook. - // Required - ClientConfig WebhookClientConfig `json:"clientConfig" protobuf:"bytes,2,opt,name=clientConfig"` - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - Rules []RuleWithOperations `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Fail. - // +optional - FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"` - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Equivalent" - // +optional - MatchPolicy *MatchPolicyType `json:"matchPolicy,omitempty" protobuf:"bytes,9,opt,name=matchPolicy,casttype=MatchPolicyType"` - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,5,opt,name=namespaceSelector"` - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - ObjectSelector *metav1.LabelSelector `json:"objectSelector,omitempty" protobuf:"bytes,10,opt,name=objectSelector"` - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. - SideEffects *SideEffectClass `json:"sideEffects" protobuf:"bytes,6,opt,name=sideEffects,casttype=SideEffectClass"` - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 10 seconds. - // +optional - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"` - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - AdmissionReviewVersions []string `json:"admissionReviewVersions" protobuf:"bytes,8,rep,name=admissionReviewVersions"` -} - -// MutatingWebhook describes an admission webhook and the resources and operations it applies to. -type MutatingWebhook struct { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - - // ClientConfig defines how to communicate with the hook. - // Required - ClientConfig WebhookClientConfig `json:"clientConfig" protobuf:"bytes,2,opt,name=clientConfig"` - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - Rules []RuleWithOperations `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Fail. - // +optional - FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"` - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Equivalent" - // +optional - MatchPolicy *MatchPolicyType `json:"matchPolicy,omitempty" protobuf:"bytes,9,opt,name=matchPolicy,casttype=MatchPolicyType"` - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,5,opt,name=namespaceSelector"` - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - ObjectSelector *metav1.LabelSelector `json:"objectSelector,omitempty" protobuf:"bytes,11,opt,name=objectSelector"` - - // SideEffects states whether this webhook has side effects. - // Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. - SideEffects *SideEffectClass `json:"sideEffects" protobuf:"bytes,6,opt,name=sideEffects,casttype=SideEffectClass"` - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 10 seconds. - // +optional - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"` - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - AdmissionReviewVersions []string `json:"admissionReviewVersions" protobuf:"bytes,8,rep,name=admissionReviewVersions"` - - // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. - // Allowed values are "Never" and "IfNeeded". - // - // Never: the webhook will not be called more than once in a single admission evaluation. - // - // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation - // if the object being admitted is modified by other admission plugins after the initial webhook call. - // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. - // Note: - // * the number of additional invocations is not guaranteed to be exactly one. - // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. - // * webhooks that use this option may be reordered to minimize the number of additional invocations. - // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - // - // Defaults to "Never". - // +optional - ReinvocationPolicy *ReinvocationPolicyType `json:"reinvocationPolicy,omitempty" protobuf:"bytes,10,opt,name=reinvocationPolicy,casttype=ReinvocationPolicyType"` -} - -// ReinvocationPolicyType specifies what type of policy the admission hook uses. -type ReinvocationPolicyType string - -const ( - // NeverReinvocationPolicy indicates that the webhook must not be called more than once in a - // single admission evaluation. - NeverReinvocationPolicy ReinvocationPolicyType = "Never" - // IfNeededReinvocationPolicy indicates that the webhook may be called at least one - // additional time as part of the admission evaluation if the object being admitted is - // modified by other admission plugins after the initial webhook call. - IfNeededReinvocationPolicy ReinvocationPolicyType = "IfNeeded" -) - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -type RuleWithOperations struct { - // Operations is the operations the admission hook cares about - CREATE, UPDATE, or * - // for all operations. - // If '*' is present, the length of the slice must be one. - // Required. - Operations []OperationType `json:"operations,omitempty" protobuf:"bytes,1,rep,name=operations,casttype=OperationType"` - // Rule is embedded, it describes other criteria of the rule, like - // APIGroups, APIVersions, Resources, etc. - Rule `json:",inline" protobuf:"bytes,2,opt,name=rule"` -} - -type OperationType string - -// The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go. -const ( - OperationAll OperationType = "*" - Create OperationType = "CREATE" - Update OperationType = "UPDATE" - Delete OperationType = "DELETE" - Connect OperationType = "CONNECT" -) - -// WebhookClientConfig contains the information to make a TLS -// connection with the webhook -type WebhookClientConfig struct { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - URL *string `json:"url,omitempty" protobuf:"bytes,3,opt,name=url"` - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,1,opt,name=service"` - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - CABundle []byte `json:"caBundle,omitempty" protobuf:"bytes,2,opt,name=caBundle"` -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -type ServiceReference struct { - // `namespace` is the namespace of the service. - // Required - Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` - // `name` is the name of the service. - // Required - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - Path *string `json:"path,omitempty" protobuf:"bytes,3,opt,name=path"` - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"` -} diff --git a/pseudo/k8s/api/admissionregistration/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/admissionregistration/v1/types_swagger_doc_generated.go deleted file mode 100644 index 2fde0ce37..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_MutatingWebhook = map[string]string{ - "": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", - "name": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "clientConfig": "ClientConfig defines how to communicate with the hook. Required", - "rules": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "failurePolicy": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", - "matchPolicy": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", - "namespaceSelector": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", - "objectSelector": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", - "sideEffects": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", - "timeoutSeconds": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", - "admissionReviewVersions": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", - "reinvocationPolicy": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", -} - -func (MutatingWebhook) SwaggerDoc() map[string]string { - return map_MutatingWebhook -} - -var map_MutatingWebhookConfiguration = map[string]string{ - "": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "webhooks": "Webhooks is a list of webhooks and the affected resources and operations.", -} - -func (MutatingWebhookConfiguration) SwaggerDoc() map[string]string { - return map_MutatingWebhookConfiguration -} - -var map_MutatingWebhookConfigurationList = map[string]string{ - "": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of MutatingWebhookConfiguration.", -} - -func (MutatingWebhookConfigurationList) SwaggerDoc() map[string]string { - return map_MutatingWebhookConfigurationList -} - -var map_Rule = map[string]string{ - "": "Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.", - "apiGroups": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", - "apiVersions": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", - "resources": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", - "scope": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", -} - -func (Rule) SwaggerDoc() map[string]string { - return map_Rule -} - -var map_RuleWithOperations = map[string]string{ - "": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", - "operations": "Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.", -} - -func (RuleWithOperations) SwaggerDoc() map[string]string { - return map_RuleWithOperations -} - -var map_ServiceReference = map[string]string{ - "": "ServiceReference holds a reference to Service.legacy.k8s.io", - "namespace": "`namespace` is the namespace of the service. Required", - "name": "`name` is the name of the service. Required", - "path": "`path` is an optional URL path which will be sent in any request to this service.", - "port": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", -} - -func (ServiceReference) SwaggerDoc() map[string]string { - return map_ServiceReference -} - -var map_ValidatingWebhook = map[string]string{ - "": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", - "name": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "clientConfig": "ClientConfig defines how to communicate with the hook. Required", - "rules": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "failurePolicy": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", - "matchPolicy": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", - "namespaceSelector": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", - "objectSelector": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", - "sideEffects": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", - "timeoutSeconds": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", - "admissionReviewVersions": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", -} - -func (ValidatingWebhook) SwaggerDoc() map[string]string { - return map_ValidatingWebhook -} - -var map_ValidatingWebhookConfiguration = map[string]string{ - "": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "webhooks": "Webhooks is a list of webhooks and the affected resources and operations.", -} - -func (ValidatingWebhookConfiguration) SwaggerDoc() map[string]string { - return map_ValidatingWebhookConfiguration -} - -var map_ValidatingWebhookConfigurationList = map[string]string{ - "": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ValidatingWebhookConfiguration.", -} - -func (ValidatingWebhookConfigurationList) SwaggerDoc() map[string]string { - return map_ValidatingWebhookConfigurationList -} - -var map_WebhookClientConfig = map[string]string{ - "": "WebhookClientConfig contains the information to make a TLS connection with the webhook", - "url": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", - "service": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", - "caBundle": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", -} - -func (WebhookClientConfig) SwaggerDoc() map[string]string { - return map_WebhookClientConfig -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/admissionregistration/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/admissionregistration/v1/zz_generated.deepcopy.go deleted file mode 100644 index dd9d0c9d7..000000000 --- a/pseudo/k8s/api/admissionregistration/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,396 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) { - *out = *in - in.ClientConfig.DeepCopyInto(&out.ClientConfig) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]RuleWithOperations, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.FailurePolicy != nil { - in, out := &in.FailurePolicy, &out.FailurePolicy - *out = new(FailurePolicyType) - **out = **in - } - if in.MatchPolicy != nil { - in, out := &in.MatchPolicy, &out.MatchPolicy - *out = new(MatchPolicyType) - **out = **in - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.ObjectSelector != nil { - in, out := &in.ObjectSelector, &out.ObjectSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.SideEffects != nil { - in, out := &in.SideEffects, &out.SideEffects - *out = new(SideEffectClass) - **out = **in - } - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int32) - **out = **in - } - if in.AdmissionReviewVersions != nil { - in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ReinvocationPolicy != nil { - in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy - *out = new(ReinvocationPolicyType) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook. -func (in *MutatingWebhook) DeepCopy() *MutatingWebhook { - if in == nil { - return nil - } - out := new(MutatingWebhook) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Webhooks != nil { - in, out := &in.Webhooks, &out.Webhooks - *out = make([]MutatingWebhook, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration. -func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration { - if in == nil { - return nil - } - out := new(MutatingWebhookConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MutatingWebhookConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList. -func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList { - if in == nil { - return nil - } - out := new(MutatingWebhookConfigurationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Rule) DeepCopyInto(out *Rule) { - *out = *in - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIVersions != nil { - in, out := &in.APIVersions, &out.APIVersions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Scope != nil { - in, out := &in.Scope, &out.Scope - *out = new(ScopeType) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. -func (in *Rule) DeepCopy() *Rule { - if in == nil { - return nil - } - out := new(Rule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) { - *out = *in - if in.Operations != nil { - in, out := &in.Operations, &out.Operations - *out = make([]OperationType, len(*in)) - copy(*out, *in) - } - in.Rule.DeepCopyInto(&out.Rule) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations. -func (in *RuleWithOperations) DeepCopy() *RuleWithOperations { - if in == nil { - return nil - } - out := new(RuleWithOperations) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceReference) DeepCopyInto(out *ServiceReference) { - *out = *in - if in.Path != nil { - in, out := &in.Path, &out.Path - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference. -func (in *ServiceReference) DeepCopy() *ServiceReference { - if in == nil { - return nil - } - out := new(ServiceReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ValidatingWebhook) DeepCopyInto(out *ValidatingWebhook) { - *out = *in - in.ClientConfig.DeepCopyInto(&out.ClientConfig) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]RuleWithOperations, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.FailurePolicy != nil { - in, out := &in.FailurePolicy, &out.FailurePolicy - *out = new(FailurePolicyType) - **out = **in - } - if in.MatchPolicy != nil { - in, out := &in.MatchPolicy, &out.MatchPolicy - *out = new(MatchPolicyType) - **out = **in - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.ObjectSelector != nil { - in, out := &in.ObjectSelector, &out.ObjectSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.SideEffects != nil { - in, out := &in.SideEffects, &out.SideEffects - *out = new(SideEffectClass) - **out = **in - } - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int32) - **out = **in - } - if in.AdmissionReviewVersions != nil { - in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhook. -func (in *ValidatingWebhook) DeepCopy() *ValidatingWebhook { - if in == nil { - return nil - } - out := new(ValidatingWebhook) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Webhooks != nil { - in, out := &in.Webhooks, &out.Webhooks - *out = make([]ValidatingWebhook, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration. -func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration { - if in == nil { - return nil - } - out := new(ValidatingWebhookConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ValidatingWebhookConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList. -func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList { - if in == nil { - return nil - } - out := new(ValidatingWebhookConfigurationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) { - *out = *in - if in.URL != nil { - in, out := &in.URL, &out.URL - *out = new(string) - **out = **in - } - if in.Service != nil { - in, out := &in.Service, &out.Service - *out = new(ServiceReference) - (*in).DeepCopyInto(*out) - } - if in.CABundle != nil { - in, out := &in.CABundle, &out.CABundle - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig. -func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig { - if in == nil { - return nil - } - out := new(WebhookClientConfig) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/doc.go b/pseudo/k8s/api/admissionregistration/v1beta1/doc.go deleted file mode 100644 index 4357bdfb6..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/doc.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true -// +groupName=admissionregistration.k8s.io - -// Package v1beta1 is the v1beta1 version of the API. -// AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration -// MutatingWebhookConfiguration and ValidatingWebhookConfiguration are for the -// new dynamic admission controller configuration. -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1beta1" diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/generated.pb.go b/pseudo/k8s/api/admissionregistration/v1beta1/generated.pb.go deleted file mode 100644 index d857e9109..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/generated.pb.go +++ /dev/null @@ -1,3470 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } -func (*MutatingWebhook) ProtoMessage() {} -func (*MutatingWebhook) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{0} -} -func (m *MutatingWebhook) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MutatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MutatingWebhook) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutatingWebhook.Merge(m, src) -} -func (m *MutatingWebhook) XXX_Size() int { - return m.Size() -} -func (m *MutatingWebhook) XXX_DiscardUnknown() { - xxx_messageInfo_MutatingWebhook.DiscardUnknown(m) -} - -var xxx_messageInfo_MutatingWebhook proto.InternalMessageInfo - -func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} } -func (*MutatingWebhookConfiguration) ProtoMessage() {} -func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{1} -} -func (m *MutatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MutatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MutatingWebhookConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutatingWebhookConfiguration.Merge(m, src) -} -func (m *MutatingWebhookConfiguration) XXX_Size() int { - return m.Size() -} -func (m *MutatingWebhookConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_MutatingWebhookConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_MutatingWebhookConfiguration proto.InternalMessageInfo - -func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} } -func (*MutatingWebhookConfigurationList) ProtoMessage() {} -func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{2} -} -func (m *MutatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MutatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MutatingWebhookConfigurationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_MutatingWebhookConfigurationList.Merge(m, src) -} -func (m *MutatingWebhookConfigurationList) XXX_Size() int { - return m.Size() -} -func (m *MutatingWebhookConfigurationList) XXX_DiscardUnknown() { - xxx_messageInfo_MutatingWebhookConfigurationList.DiscardUnknown(m) -} - -var xxx_messageInfo_MutatingWebhookConfigurationList proto.InternalMessageInfo - -func (m *Rule) Reset() { *m = Rule{} } -func (*Rule) ProtoMessage() {} -func (*Rule) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{3} -} -func (m *Rule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Rule) XXX_Merge(src proto.Message) { - xxx_messageInfo_Rule.Merge(m, src) -} -func (m *Rule) XXX_Size() int { - return m.Size() -} -func (m *Rule) XXX_DiscardUnknown() { - xxx_messageInfo_Rule.DiscardUnknown(m) -} - -var xxx_messageInfo_Rule proto.InternalMessageInfo - -func (m *RuleWithOperations) Reset() { *m = RuleWithOperations{} } -func (*RuleWithOperations) ProtoMessage() {} -func (*RuleWithOperations) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{4} -} -func (m *RuleWithOperations) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuleWithOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuleWithOperations) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuleWithOperations.Merge(m, src) -} -func (m *RuleWithOperations) XXX_Size() int { - return m.Size() -} -func (m *RuleWithOperations) XXX_DiscardUnknown() { - xxx_messageInfo_RuleWithOperations.DiscardUnknown(m) -} - -var xxx_messageInfo_RuleWithOperations proto.InternalMessageInfo - -func (m *ServiceReference) Reset() { *m = ServiceReference{} } -func (*ServiceReference) ProtoMessage() {} -func (*ServiceReference) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{5} -} -func (m *ServiceReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceReference.Merge(m, src) -} -func (m *ServiceReference) XXX_Size() int { - return m.Size() -} -func (m *ServiceReference) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceReference proto.InternalMessageInfo - -func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} } -func (*ValidatingWebhook) ProtoMessage() {} -func (*ValidatingWebhook) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{6} -} -func (m *ValidatingWebhook) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatingWebhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ValidatingWebhook) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatingWebhook.Merge(m, src) -} -func (m *ValidatingWebhook) XXX_Size() int { - return m.Size() -} -func (m *ValidatingWebhook) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatingWebhook.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatingWebhook proto.InternalMessageInfo - -func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} } -func (*ValidatingWebhookConfiguration) ProtoMessage() {} -func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{7} -} -func (m *ValidatingWebhookConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatingWebhookConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ValidatingWebhookConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatingWebhookConfiguration.Merge(m, src) -} -func (m *ValidatingWebhookConfiguration) XXX_Size() int { - return m.Size() -} -func (m *ValidatingWebhookConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatingWebhookConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatingWebhookConfiguration proto.InternalMessageInfo - -func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} } -func (*ValidatingWebhookConfigurationList) ProtoMessage() {} -func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{8} -} -func (m *ValidatingWebhookConfigurationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatingWebhookConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ValidatingWebhookConfigurationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatingWebhookConfigurationList.Merge(m, src) -} -func (m *ValidatingWebhookConfigurationList) XXX_Size() int { - return m.Size() -} -func (m *ValidatingWebhookConfigurationList) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatingWebhookConfigurationList.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatingWebhookConfigurationList proto.InternalMessageInfo - -func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } -func (*WebhookClientConfig) ProtoMessage() {} -func (*WebhookClientConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_abeea74cbc46f55a, []int{9} -} -func (m *WebhookClientConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WebhookClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WebhookClientConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebhookClientConfig.Merge(m, src) -} -func (m *WebhookClientConfig) XXX_Size() int { - return m.Size() -} -func (m *WebhookClientConfig) XXX_DiscardUnknown() { - xxx_messageInfo_WebhookClientConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_WebhookClientConfig proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhook") - proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration") - proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList") - proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1beta1.Rule") - proto.RegisterType((*RuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1beta1.RuleWithOperations") - proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1beta1.ServiceReference") - proto.RegisterType((*ValidatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook") - proto.RegisterType((*ValidatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration") - proto.RegisterType((*ValidatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList") - proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1beta1/generated.proto", fileDescriptor_abeea74cbc46f55a) -} - -var fileDescriptor_abeea74cbc46f55a = []byte{ - // 1114 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4d, 0x6f, 0x23, 0x45, - 0x13, 0xce, 0xc4, 0xf6, 0xda, 0x6e, 0x27, 0xbb, 0x9b, 0x7e, 0x5f, 0x76, 0x4d, 0x58, 0x79, 0x2c, - 0x1f, 0x90, 0x25, 0xd8, 0x99, 0x4d, 0x40, 0x08, 0x16, 0x10, 0x8a, 0x03, 0x0b, 0x91, 0x92, 0xdd, - 0xd0, 0xd9, 0x0f, 0x89, 0x0f, 0x69, 0xdb, 0xe3, 0xb2, 0xdd, 0xd8, 0x9e, 0x1e, 0x4d, 0xf7, 0x38, - 0xe4, 0xc6, 0x4f, 0xe0, 0x2f, 0x70, 0xe2, 0x57, 0x70, 0xe0, 0x16, 0x6e, 0x7b, 0xdc, 0x0b, 0x23, - 0x32, 0x9c, 0x38, 0x70, 0xe0, 0x9a, 0x13, 0x9a, 0x9e, 0xf6, 0xf8, 0x2b, 0x59, 0x4c, 0x90, 0xf6, - 0x94, 0xdb, 0xf4, 0x53, 0x5d, 0x4f, 0x75, 0xd5, 0x54, 0xd5, 0x83, 0x3e, 0xef, 0xbd, 0x2b, 0x2c, - 0xc6, 0xed, 0x5e, 0xd0, 0x04, 0xdf, 0x05, 0x09, 0xc2, 0x1e, 0x82, 0xdb, 0xe2, 0xbe, 0xad, 0x0d, - 0xd4, 0x63, 0x36, 0x6d, 0x0d, 0x98, 0x10, 0x8c, 0xbb, 0x3e, 0x74, 0x98, 0x90, 0x3e, 0x95, 0x8c, - 0xbb, 0xf6, 0x70, 0xa3, 0x09, 0x92, 0x6e, 0xd8, 0x1d, 0x70, 0xc1, 0xa7, 0x12, 0x5a, 0x96, 0xe7, - 0x73, 0xc9, 0x71, 0x3d, 0xf1, 0xb4, 0xa8, 0xc7, 0xac, 0x33, 0x3d, 0x2d, 0xed, 0xb9, 0x7e, 0xbb, - 0xc3, 0x64, 0x37, 0x68, 0x5a, 0x0e, 0x1f, 0xd8, 0x1d, 0xde, 0xe1, 0xb6, 0x22, 0x68, 0x06, 0x6d, - 0x75, 0x52, 0x07, 0xf5, 0x95, 0x10, 0xaf, 0xbf, 0x3d, 0x7e, 0xd2, 0x80, 0x3a, 0x5d, 0xe6, 0x82, - 0x7f, 0x64, 0x7b, 0xbd, 0x4e, 0x0c, 0x08, 0x7b, 0x00, 0x92, 0xda, 0xc3, 0xb9, 0xe7, 0xac, 0xdb, - 0xe7, 0x79, 0xf9, 0x81, 0x2b, 0xd9, 0x00, 0xe6, 0x1c, 0xde, 0xf9, 0x27, 0x07, 0xe1, 0x74, 0x61, - 0x40, 0x67, 0xfd, 0x6a, 0xbf, 0xe4, 0xd1, 0xb5, 0xbd, 0x40, 0x52, 0xc9, 0xdc, 0xce, 0x13, 0x68, - 0x76, 0x39, 0xef, 0xe1, 0x2a, 0xca, 0xba, 0x74, 0x00, 0x65, 0xa3, 0x6a, 0xd4, 0x8b, 0x8d, 0x95, - 0xe3, 0xd0, 0x5c, 0x8a, 0x42, 0x33, 0x7b, 0x9f, 0x0e, 0x80, 0x28, 0x0b, 0x3e, 0x44, 0x2b, 0x4e, - 0x9f, 0x81, 0x2b, 0xb7, 0xb9, 0xdb, 0x66, 0x9d, 0xf2, 0x72, 0xd5, 0xa8, 0x97, 0x36, 0x3f, 0xb4, - 0x16, 0x2d, 0xa2, 0xa5, 0x43, 0x6d, 0x4f, 0x90, 0x34, 0xfe, 0xaf, 0x03, 0xad, 0x4c, 0xa2, 0x64, - 0x2a, 0x10, 0xa6, 0x28, 0xe7, 0x07, 0x7d, 0x10, 0xe5, 0x4c, 0x35, 0x53, 0x2f, 0x6d, 0x7e, 0xb0, - 0x78, 0x44, 0x12, 0xf4, 0xe1, 0x09, 0x93, 0xdd, 0x07, 0x1e, 0x24, 0x16, 0xd1, 0x58, 0xd5, 0x01, - 0x73, 0xb1, 0x4d, 0x90, 0x84, 0x19, 0xef, 0xa2, 0xd5, 0x36, 0x65, 0xfd, 0xc0, 0x87, 0x7d, 0xde, - 0x67, 0xce, 0x51, 0x39, 0xab, 0xca, 0xf0, 0x7a, 0x14, 0x9a, 0xab, 0xf7, 0x26, 0x0d, 0xa7, 0xa1, - 0xb9, 0x36, 0x05, 0x3c, 0x3c, 0xf2, 0x80, 0x4c, 0x3b, 0xe3, 0x8f, 0x51, 0x69, 0x40, 0xa5, 0xd3, - 0xd5, 0x5c, 0x45, 0xc5, 0x55, 0x8b, 0x42, 0xb3, 0xb4, 0x37, 0x86, 0x4f, 0x43, 0xf3, 0xda, 0xc4, - 0x51, 0xf1, 0x4c, 0xba, 0xe1, 0x6f, 0xd1, 0x5a, 0x5c, 0x77, 0xe1, 0x51, 0x07, 0x0e, 0xa0, 0x0f, - 0x8e, 0xe4, 0x7e, 0x39, 0xa7, 0x8a, 0xfe, 0xd6, 0x44, 0x09, 0xd2, 0x3f, 0x6f, 0x79, 0xbd, 0x4e, - 0x0c, 0x08, 0x2b, 0x6e, 0x30, 0x6b, 0xb8, 0x61, 0xed, 0xd2, 0x26, 0xf4, 0x47, 0xae, 0x8d, 0x57, - 0xa2, 0xd0, 0x5c, 0xbb, 0x3f, 0xcb, 0x48, 0xe6, 0x83, 0x60, 0x8e, 0xae, 0xf2, 0xe6, 0x37, 0xe0, - 0xc8, 0x34, 0x6c, 0xe9, 0xe2, 0x61, 0x71, 0x14, 0x9a, 0x57, 0x1f, 0x4c, 0xd1, 0x91, 0x19, 0xfa, - 0xb8, 0x60, 0x82, 0xb5, 0xe0, 0x93, 0x76, 0x1b, 0x1c, 0x29, 0xca, 0x57, 0xc6, 0x05, 0x3b, 0x18, - 0xc3, 0x71, 0xc1, 0xc6, 0xc7, 0xed, 0x3e, 0x15, 0x82, 0x4c, 0xba, 0xe1, 0xbb, 0xe8, 0x6a, 0xdc, - 0xf5, 0x3c, 0x90, 0x07, 0xe0, 0x70, 0xb7, 0x25, 0xca, 0xf9, 0xaa, 0x51, 0xcf, 0x25, 0x2f, 0x78, - 0x38, 0x65, 0x21, 0x33, 0x37, 0xf1, 0x23, 0x74, 0x33, 0x6d, 0x25, 0x02, 0x43, 0x06, 0x87, 0x8f, - 0xc1, 0x8f, 0x0f, 0xa2, 0x5c, 0xa8, 0x66, 0xea, 0xc5, 0xc6, 0x6b, 0x51, 0x68, 0xde, 0xdc, 0x3a, - 0xfb, 0x0a, 0x39, 0xcf, 0x17, 0x3f, 0x45, 0xd8, 0x07, 0xe6, 0x0e, 0xb9, 0xa3, 0xda, 0x4f, 0x37, - 0x04, 0x52, 0xf9, 0xdd, 0x89, 0x42, 0x13, 0x93, 0x39, 0xeb, 0x69, 0x68, 0xde, 0x98, 0x47, 0x55, - 0x7b, 0x9c, 0xc1, 0x55, 0xfb, 0xd5, 0x40, 0xb7, 0x66, 0x66, 0x39, 0x19, 0x9b, 0x20, 0xe9, 0x78, - 0xfc, 0x14, 0x15, 0xe2, 0x1f, 0xd3, 0xa2, 0x92, 0xaa, 0xe1, 0x2e, 0x6d, 0xde, 0x59, 0xec, 0x37, - 0x26, 0xff, 0x6c, 0x0f, 0x24, 0x6d, 0x60, 0x3d, 0x34, 0x68, 0x8c, 0x91, 0x94, 0x15, 0x7f, 0x89, - 0x0a, 0x3a, 0xb2, 0x28, 0x2f, 0xab, 0x11, 0x7d, 0x6f, 0xf1, 0x11, 0x9d, 0x79, 0x7b, 0x23, 0x1b, - 0x87, 0x22, 0x85, 0x43, 0x4d, 0x58, 0xfb, 0xd3, 0x40, 0xd5, 0x17, 0xe5, 0xb7, 0xcb, 0x84, 0xc4, - 0x5f, 0xcd, 0xe5, 0x68, 0x2d, 0xd8, 0xaa, 0x4c, 0x24, 0x19, 0x5e, 0xd7, 0x19, 0x16, 0x46, 0xc8, - 0x44, 0x7e, 0x3d, 0x94, 0x63, 0x12, 0x06, 0xa3, 0xe4, 0xee, 0x5d, 0x38, 0xb9, 0xa9, 0x87, 0x8f, - 0x37, 0xd1, 0x4e, 0x4c, 0x4e, 0x92, 0x18, 0xb5, 0x9f, 0x0d, 0x94, 0x8d, 0x57, 0x13, 0x7e, 0x03, - 0x15, 0xa9, 0xc7, 0x3e, 0xf5, 0x79, 0xe0, 0x89, 0xb2, 0xa1, 0x7a, 0x70, 0x35, 0x0a, 0xcd, 0xe2, - 0xd6, 0xfe, 0x4e, 0x02, 0x92, 0xb1, 0x1d, 0x6f, 0xa0, 0x12, 0xf5, 0x58, 0xda, 0xb2, 0xcb, 0xea, - 0xfa, 0xb5, 0x78, 0x80, 0xb6, 0xf6, 0x77, 0xd2, 0x36, 0x9d, 0xbc, 0x13, 0xf3, 0xfb, 0x20, 0x78, - 0xe0, 0x3b, 0x7a, 0xb3, 0x6a, 0x7e, 0x32, 0x02, 0xc9, 0xd8, 0x8e, 0xdf, 0x44, 0x39, 0xe1, 0x70, - 0x0f, 0xf4, 0x5e, 0xbc, 0x11, 0x3f, 0xfb, 0x20, 0x06, 0x4e, 0x43, 0xb3, 0xa8, 0x3e, 0x54, 0x83, - 0x26, 0x97, 0x6a, 0x3f, 0x1a, 0x08, 0xcf, 0xaf, 0x5e, 0xfc, 0x11, 0x42, 0x3c, 0x3d, 0xe9, 0x94, - 0x4c, 0xd5, 0x55, 0x29, 0x7a, 0x1a, 0x9a, 0xab, 0xe9, 0x49, 0x51, 0x4e, 0xb8, 0xe0, 0x7d, 0x94, - 0x8d, 0xd7, 0xb5, 0x56, 0x1e, 0xeb, 0xdf, 0xe9, 0xc0, 0x58, 0xd3, 0xe2, 0x13, 0x51, 0x4c, 0xb5, - 0x1f, 0x0c, 0x74, 0xfd, 0x00, 0xfc, 0x21, 0x73, 0x80, 0x40, 0x1b, 0x7c, 0x70, 0x1d, 0xc0, 0x36, - 0x2a, 0xa6, 0x3b, 0x51, 0xeb, 0xe1, 0x9a, 0xf6, 0x2d, 0xa6, 0xfb, 0x93, 0x8c, 0xef, 0xa4, 0xda, - 0xb9, 0x7c, 0xae, 0x76, 0xde, 0x42, 0x59, 0x8f, 0xca, 0x6e, 0x39, 0xa3, 0x6e, 0x14, 0x62, 0xeb, - 0x3e, 0x95, 0x5d, 0xa2, 0x50, 0x65, 0xe5, 0xbe, 0x54, 0xc5, 0xcd, 0x69, 0x2b, 0xf7, 0x25, 0x51, - 0x68, 0xed, 0x8f, 0x2b, 0x68, 0xed, 0x31, 0xed, 0xb3, 0xd6, 0xa5, 0x5e, 0x5f, 0xea, 0xf5, 0x82, - 0x7a, 0x8d, 0x2e, 0xf5, 0xfa, 0x22, 0x7a, 0x5d, 0x3b, 0x31, 0x50, 0x65, 0x6e, 0xd6, 0x5e, 0xb6, - 0x9e, 0x7e, 0x3d, 0xa7, 0xa7, 0xef, 0x2f, 0x3e, 0x42, 0x73, 0xaf, 0x9f, 0x53, 0xd4, 0xbf, 0x0c, - 0x54, 0x7b, 0x71, 0x8e, 0x2f, 0x41, 0x53, 0x07, 0xd3, 0x9a, 0xfa, 0xd9, 0x7f, 0x48, 0x70, 0x11, - 0x55, 0xfd, 0xc9, 0x40, 0xff, 0x3b, 0x63, 0x9d, 0xe1, 0x57, 0x51, 0x26, 0xf0, 0xfb, 0x7a, 0x2d, - 0xe7, 0xa3, 0xd0, 0xcc, 0x3c, 0x22, 0xbb, 0x24, 0xc6, 0x30, 0x45, 0x79, 0x91, 0x28, 0x83, 0x4e, - 0xff, 0xee, 0xe2, 0x6f, 0x9c, 0x95, 0x94, 0x46, 0x29, 0x0a, 0xcd, 0xfc, 0x08, 0x1d, 0xf1, 0xe2, - 0x3a, 0x2a, 0x38, 0xb4, 0x11, 0xb8, 0x2d, 0xad, 0x69, 0x2b, 0x8d, 0x95, 0xb8, 0x5c, 0xdb, 0x5b, - 0x09, 0x46, 0x52, 0x6b, 0xe3, 0xf6, 0xf1, 0x49, 0x65, 0xe9, 0xd9, 0x49, 0x65, 0xe9, 0xf9, 0x49, - 0x65, 0xe9, 0xbb, 0xa8, 0x62, 0x1c, 0x47, 0x15, 0xe3, 0x59, 0x54, 0x31, 0x9e, 0x47, 0x15, 0xe3, - 0xb7, 0xa8, 0x62, 0x7c, 0xff, 0x7b, 0x65, 0xe9, 0x8b, 0xbc, 0x8e, 0xff, 0x77, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xae, 0x27, 0x2b, 0xcb, 0x2c, 0x0f, 0x00, 0x00, -} - -func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MutatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ObjectSelector != nil { - { - size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.ReinvocationPolicy != nil { - i -= len(*m.ReinvocationPolicy) - copy(dAtA[i:], *m.ReinvocationPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy))) - i-- - dAtA[i] = 0x52 - } - if m.MatchPolicy != nil { - i -= len(*m.MatchPolicy) - copy(dAtA[i:], *m.MatchPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) - i-- - dAtA[i] = 0x4a - } - if len(m.AdmissionReviewVersions) > 0 { - for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AdmissionReviewVersions[iNdEx]) - copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x38 - } - if m.SideEffects != nil { - i -= len(*m.SideEffects) - copy(dAtA[i:], *m.SideEffects) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) - i-- - dAtA[i] = 0x32 - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MutatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Webhooks) > 0 { - for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MutatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Rule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Rule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Scope != nil { - i -= len(*m.Scope) - copy(dAtA[i:], *m.Scope) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope))) - i-- - dAtA[i] = 0x22 - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.APIVersions) > 0 { - for iNdEx := len(m.APIVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIVersions[iNdEx]) - copy(dAtA[i:], m.APIVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersions[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RuleWithOperations) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuleWithOperations) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuleWithOperations) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Rule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Operations) > 0 { - for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Operations[iNdEx]) - copy(dAtA[i:], m.Operations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operations[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ServiceReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) - i-- - dAtA[i] = 0x20 - } - if m.Path != nil { - i -= len(*m.Path) - copy(dAtA[i:], *m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) - i-- - dAtA[i] = 0x1a - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingWebhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ObjectSelector != nil { - { - size, err := m.ObjectSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.MatchPolicy != nil { - i -= len(*m.MatchPolicy) - copy(dAtA[i:], *m.MatchPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) - i-- - dAtA[i] = 0x4a - } - if len(m.AdmissionReviewVersions) > 0 { - for iNdEx := len(m.AdmissionReviewVersions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AdmissionReviewVersions[iNdEx]) - copy(dAtA[i:], m.AdmissionReviewVersions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AdmissionReviewVersions[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x38 - } - if m.SideEffects != nil { - i -= len(*m.SideEffects) - copy(dAtA[i:], *m.SideEffects) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) - i-- - dAtA[i] = 0x32 - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.FailurePolicy != nil { - i -= len(*m.FailurePolicy) - copy(dAtA[i:], *m.FailurePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingWebhookConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Webhooks) > 0 { - for iNdEx := len(m.Webhooks) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Webhooks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatingWebhookConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.URL != nil { - i -= len(*m.URL) - copy(dAtA[i:], *m.URL) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) - i-- - dAtA[i] = 0x1a - } - if m.CABundle != nil { - i -= len(m.CABundle) - copy(dAtA[i:], m.CABundle) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) - i-- - dAtA[i] = 0x12 - } - if m.Service != nil { - { - size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MutatingWebhook) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.FailurePolicy != nil { - l = len(*m.FailurePolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SideEffects != nil { - l = len(*m.SideEffects) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - if len(m.AdmissionReviewVersions) > 0 { - for _, s := range m.AdmissionReviewVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.MatchPolicy != nil { - l = len(*m.MatchPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ReinvocationPolicy != nil { - l = len(*m.ReinvocationPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ObjectSelector != nil { - l = m.ObjectSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MutatingWebhookConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Webhooks) > 0 { - for _, e := range m.Webhooks { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *MutatingWebhookConfigurationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Rule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIVersions) > 0 { - for _, s := range m.APIVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Scope != nil { - l = len(*m.Scope) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RuleWithOperations) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Operations) > 0 { - for _, s := range m.Operations { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Rule.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Path != nil { - l = len(*m.Path) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - n += 1 + sovGenerated(uint64(*m.Port)) - } - return n -} - -func (m *ValidatingWebhook) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.FailurePolicy != nil { - l = len(*m.FailurePolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SideEffects != nil { - l = len(*m.SideEffects) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - if len(m.AdmissionReviewVersions) > 0 { - for _, s := range m.AdmissionReviewVersions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.MatchPolicy != nil { - l = len(*m.MatchPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ObjectSelector != nil { - l = m.ObjectSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ValidatingWebhookConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Webhooks) > 0 { - for _, e := range m.Webhooks { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ValidatingWebhookConfigurationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *WebhookClientConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Service != nil { - l = m.Service.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CABundle != nil { - l = len(m.CABundle) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.URL != nil { - l = len(*m.URL) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *MutatingWebhook) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]RuleWithOperations{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&MutatingWebhook{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, - `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`, - `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MutatingWebhookConfiguration) String() string { - if this == nil { - return "nil" - } - repeatedStringForWebhooks := "[]MutatingWebhook{" - for _, f := range this.Webhooks { - repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + "," - } - repeatedStringForWebhooks += "}" - s := strings.Join([]string{`&MutatingWebhookConfiguration{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Webhooks:` + repeatedStringForWebhooks + `,`, - `}`, - }, "") - return s -} -func (this *MutatingWebhookConfigurationList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]MutatingWebhookConfiguration{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&MutatingWebhookConfigurationList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *Rule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Rule{`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `Scope:` + valueToStringGenerated(this.Scope) + `,`, - `}`, - }, "") - return s -} -func (this *RuleWithOperations) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuleWithOperations{`, - `Operations:` + fmt.Sprintf("%v", this.Operations) + `,`, - `Rule:` + strings.Replace(strings.Replace(this.Rule.String(), "Rule", "Rule", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceReference{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Path:` + valueToStringGenerated(this.Path) + `,`, - `Port:` + valueToStringGenerated(this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingWebhook) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]RuleWithOperations{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&ValidatingWebhook{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, - `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, - `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingWebhookConfiguration) String() string { - if this == nil { - return "nil" - } - repeatedStringForWebhooks := "[]ValidatingWebhook{" - for _, f := range this.Webhooks { - repeatedStringForWebhooks += strings.Replace(strings.Replace(f.String(), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + "," - } - repeatedStringForWebhooks += "}" - s := strings.Join([]string{`&ValidatingWebhookConfiguration{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Webhooks:` + repeatedStringForWebhooks + `,`, - `}`, - }, "") - return s -} -func (this *ValidatingWebhookConfigurationList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ValidatingWebhookConfiguration{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *WebhookClientConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WebhookClientConfig{`, - `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, - `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, - `URL:` + valueToStringGenerated(this.URL) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *MutatingWebhook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MutatingWebhook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MutatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, RuleWithOperations{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := FailurePolicyType(dAtA[iNdEx:postIndex]) - m.FailurePolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} - } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := SideEffectClass(dAtA[iNdEx:postIndex]) - m.SideEffects = &s - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := MatchPolicyType(dAtA[iNdEx:postIndex]) - m.MatchPolicy = &s - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ReinvocationPolicyType(dAtA[iNdEx:postIndex]) - m.ReinvocationPolicy = &s - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectSelector == nil { - m.ObjectSelector = &v1.LabelSelector{} - } - if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MutatingWebhookConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MutatingWebhookConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MutatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Webhooks = append(m.Webhooks, MutatingWebhook{}) - if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MutatingWebhookConfigurationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MutatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, MutatingWebhookConfiguration{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Rule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ScopeType(dAtA[iNdEx:postIndex]) - m.Scope = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuleWithOperations) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuleWithOperations: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operations = append(m.Operations, OperationType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Path = &s - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Port = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatingWebhook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatingWebhook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, RuleWithOperations{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := FailurePolicyType(dAtA[iNdEx:postIndex]) - m.FailurePolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} - } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := SideEffectClass(dAtA[iNdEx:postIndex]) - m.SideEffects = &s - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := MatchPolicyType(dAtA[iNdEx:postIndex]) - m.MatchPolicy = &s - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ObjectSelector == nil { - m.ObjectSelector = &v1.LabelSelector{} - } - if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatingWebhookConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatingWebhookConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Webhooks = append(m.Webhooks, ValidatingWebhook{}) - if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatingWebhookConfigurationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ValidatingWebhookConfiguration{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Service == nil { - m.Service = &ServiceReference{} - } - if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) - if m.CABundle == nil { - m.CABundle = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.URL = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/generated.proto b/pseudo/k8s/api/admissionregistration/v1beta1/generated.proto deleted file mode 100644 index d77016568..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/generated.proto +++ /dev/null @@ -1,487 +0,0 @@ -/* -Copyright 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.admissionregistration.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// MutatingWebhook describes an admission webhook and the resources and operations it applies to. -message MutatingWebhook { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - optional string name = 1; - - // ClientConfig defines how to communicate with the hook. - // Required - optional WebhookClientConfig clientConfig = 2; - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - repeated RuleWithOperations rules = 3; - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Ignore. - // +optional - optional string failurePolicy = 4; - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Exact" - // +optional - optional string matchPolicy = 9; - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - - // SideEffects states whether this webhookk has side effects. - // Acceptable values are: Unknown, None, Some, NoneOnDryRun - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. Defaults to Unknown. - // +optional - optional string sideEffects = 6; - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. - // +optional - optional int32 timeoutSeconds = 7; - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - // Default to `['v1beta1']`. - // +optional - repeated string admissionReviewVersions = 8; - - // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. - // Allowed values are "Never" and "IfNeeded". - // - // Never: the webhook will not be called more than once in a single admission evaluation. - // - // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation - // if the object being admitted is modified by other admission plugins after the initial webhook call. - // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. - // Note: - // * the number of additional invocations is not guaranteed to be exactly one. - // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. - // * webhooks that use this option may be reordered to minimize the number of additional invocations. - // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - // - // Defaults to "Never". - // +optional - optional string reinvocationPolicy = 10; -} - -// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. -// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. -message MutatingWebhookConfiguration { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated MutatingWebhook Webhooks = 2; -} - -// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. -message MutatingWebhookConfigurationList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of MutatingWebhookConfiguration. - repeated MutatingWebhookConfiguration items = 2; -} - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -message Rule { - // APIGroups is the API groups the resources belong to. '*' is all groups. - // If '*' is present, the length of the slice must be one. - // Required. - repeated string apiGroups = 1; - - // APIVersions is the API versions the resources belong to. '*' is all versions. - // If '*' is present, the length of the slice must be one. - // Required. - repeated string apiVersions = 2; - - // Resources is a list of resources this rule applies to. - // - // For example: - // 'pods' means pods. - // 'pods/log' means the log subresource of pods. - // '*' means all resources, but not subresources. - // 'pods/*' means all subresources of pods. - // '*/scale' means all scale subresources. - // '*/*' means all resources and their subresources. - // - // If wildcard is present, the validation rule will ensure resources do not - // overlap with each other. - // - // Depending on the enclosing object, subresources might not be allowed. - // Required. - repeated string resources = 3; - - // scope specifies the scope of this rule. - // Valid values are "Cluster", "Namespaced", and "*" - // "Cluster" means that only cluster-scoped resources will match this rule. - // Namespace API objects are cluster-scoped. - // "Namespaced" means that only namespaced resources will match this rule. - // "*" means that there are no scope restrictions. - // Subresources match the scope of their parent resource. - // Default is "*". - // - // +optional - optional string scope = 4; -} - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -message RuleWithOperations { - // Operations is the operations the admission hook cares about - CREATE, UPDATE, or * - // for all operations. - // If '*' is present, the length of the slice must be one. - // Required. - repeated string operations = 1; - - // Rule is embedded, it describes other criteria of the rule, like - // APIGroups, APIVersions, Resources, etc. - optional Rule rule = 2; -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -message ServiceReference { - // `namespace` is the namespace of the service. - // Required - optional string namespace = 1; - - // `name` is the name of the service. - // Required - optional string name = 2; - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - optional string path = 3; - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - optional int32 port = 4; -} - -// ValidatingWebhook describes an admission webhook and the resources and operations it applies to. -message ValidatingWebhook { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - optional string name = 1; - - // ClientConfig defines how to communicate with the hook. - // Required - optional WebhookClientConfig clientConfig = 2; - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - repeated RuleWithOperations rules = 3; - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Ignore. - // +optional - optional string failurePolicy = 4; - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Exact" - // +optional - optional string matchPolicy = 9; - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; - - // SideEffects states whether this webhookk has side effects. - // Acceptable values are: Unknown, None, Some, NoneOnDryRun - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. Defaults to Unknown. - // +optional - optional string sideEffects = 6; - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. - // +optional - optional int32 timeoutSeconds = 7; - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - // Default to `['v1beta1']`. - // +optional - repeated string admissionReviewVersions = 8; -} - -// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. -// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. -message ValidatingWebhookConfiguration { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated ValidatingWebhook Webhooks = 2; -} - -// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. -message ValidatingWebhookConfigurationList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ValidatingWebhookConfiguration. - repeated ValidatingWebhookConfiguration items = 2; -} - -// WebhookClientConfig contains the information to make a TLS -// connection with the webhook -message WebhookClientConfig { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - optional string url = 3; - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - optional ServiceReference service = 1; - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - optional bytes caBundle = 2; -} - diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/register.go b/pseudo/k8s/api/admissionregistration/v1beta1/register.go deleted file mode 100644 index c747a1298..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const GroupName = "admissionregistration.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 sigs.k8s.io/kustomize/pseudo/k8s/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 scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &ValidatingWebhookConfiguration{}, - &ValidatingWebhookConfigurationList{}, - &MutatingWebhookConfiguration{}, - &MutatingWebhookConfigurationList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/types.go b/pseudo/k8s/api/admissionregistration/v1beta1/types.go deleted file mode 100644 index 05cc8f432..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/types.go +++ /dev/null @@ -1,559 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended -// to make sure that all the tuple expansions are valid. -type Rule struct { - // APIGroups is the API groups the resources belong to. '*' is all groups. - // If '*' is present, the length of the slice must be one. - // Required. - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,1,rep,name=apiGroups"` - - // APIVersions is the API versions the resources belong to. '*' is all versions. - // If '*' is present, the length of the slice must be one. - // Required. - APIVersions []string `json:"apiVersions,omitempty" protobuf:"bytes,2,rep,name=apiVersions"` - - // Resources is a list of resources this rule applies to. - // - // For example: - // 'pods' means pods. - // 'pods/log' means the log subresource of pods. - // '*' means all resources, but not subresources. - // 'pods/*' means all subresources of pods. - // '*/scale' means all scale subresources. - // '*/*' means all resources and their subresources. - // - // If wildcard is present, the validation rule will ensure resources do not - // overlap with each other. - // - // Depending on the enclosing object, subresources might not be allowed. - // Required. - Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` - - // scope specifies the scope of this rule. - // Valid values are "Cluster", "Namespaced", and "*" - // "Cluster" means that only cluster-scoped resources will match this rule. - // Namespace API objects are cluster-scoped. - // "Namespaced" means that only namespaced resources will match this rule. - // "*" means that there are no scope restrictions. - // Subresources match the scope of their parent resource. - // Default is "*". - // - // +optional - Scope *ScopeType `json:"scope,omitempty" protobuf:"bytes,4,rep,name=scope"` -} - -type ScopeType string - -const ( - // ClusterScope means that scope is limited to cluster-scoped objects. - // Namespace objects are cluster-scoped. - ClusterScope ScopeType = "Cluster" - // NamespacedScope means that scope is limited to namespaced objects. - NamespacedScope ScopeType = "Namespaced" - // AllScopes means that all scopes are included. - AllScopes ScopeType = "*" -) - -type FailurePolicyType string - -const ( - // Ignore means that an error calling the webhook is ignored. - Ignore FailurePolicyType = "Ignore" - // Fail means that an error calling the webhook causes the admission to fail. - Fail FailurePolicyType = "Fail" -) - -// MatchPolicyType specifies the type of match policy -type MatchPolicyType string - -const ( - // Exact means requests should only be sent to the webhook if they exactly match a given rule - Exact MatchPolicyType = "Exact" - // Equivalent means requests should be sent to the webhook if they modify a resource listed in rules via another API group or version. - Equivalent MatchPolicyType = "Equivalent" -) - -type SideEffectClass string - -const ( - // SideEffectClassUnknown means that no information is known about the side effects of calling the webhook. - // If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. - SideEffectClassUnknown SideEffectClass = "Unknown" - // SideEffectClassNone means that calling the webhook will have no side effects. - SideEffectClassNone SideEffectClass = "None" - // SideEffectClassSome means that calling the webhook will possibly have side effects. - // If a request with the dry-run attribute would trigger a call to this webhook, the request will instead fail. - SideEffectClassSome SideEffectClass = "Some" - // SideEffectClassNoneOnDryRun means that calling the webhook will possibly have side effects, but if the - // request being reviewed has the dry-run attribute, the side effects will be suppressed. - SideEffectClassNoneOnDryRun SideEffectClass = "NoneOnDryRun" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. -// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. -type ValidatingWebhookConfiguration struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Webhooks []ValidatingWebhook `json:"webhooks,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=Webhooks"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. -type ValidatingWebhookConfigurationList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // List of ValidatingWebhookConfiguration. - Items []ValidatingWebhookConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. -// Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. -type MutatingWebhookConfiguration struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Webhooks is a list of webhooks and the affected resources and operations. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Webhooks []MutatingWebhook `json:"webhooks,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=Webhooks"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. -type MutatingWebhookConfigurationList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // List of MutatingWebhookConfiguration. - Items []MutatingWebhookConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// ValidatingWebhook describes an admission webhook and the resources and operations it applies to. -type ValidatingWebhook struct { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - - // ClientConfig defines how to communicate with the hook. - // Required - ClientConfig WebhookClientConfig `json:"clientConfig" protobuf:"bytes,2,opt,name=clientConfig"` - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - Rules []RuleWithOperations `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Ignore. - // +optional - FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"` - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Exact" - // +optional - MatchPolicy *MatchPolicyType `json:"matchPolicy,omitempty" protobuf:"bytes,9,opt,name=matchPolicy,casttype=MatchPolicyType"` - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,5,opt,name=namespaceSelector"` - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - ObjectSelector *metav1.LabelSelector `json:"objectSelector,omitempty" protobuf:"bytes,10,opt,name=objectSelector"` - - // SideEffects states whether this webhookk has side effects. - // Acceptable values are: Unknown, None, Some, NoneOnDryRun - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. Defaults to Unknown. - // +optional - SideEffects *SideEffectClass `json:"sideEffects,omitempty" protobuf:"bytes,6,opt,name=sideEffects,casttype=SideEffectClass"` - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. - // +optional - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"` - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - // Default to `['v1beta1']`. - // +optional - AdmissionReviewVersions []string `json:"admissionReviewVersions,omitempty" protobuf:"bytes,8,rep,name=admissionReviewVersions"` -} - -// MutatingWebhook describes an admission webhook and the resources and operations it applies to. -type MutatingWebhook struct { - // The name of the admission webhook. - // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where - // "imagepolicy" is the name of the webhook, and kubernetes.io is the name - // of the organization. - // Required. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - - // ClientConfig defines how to communicate with the hook. - // Required - ClientConfig WebhookClientConfig `json:"clientConfig" protobuf:"bytes,2,opt,name=clientConfig"` - - // Rules describes what operations on what resources/subresources the webhook cares about. - // The webhook cares about an operation if it matches _any_ Rule. - // However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks - // from putting the cluster in a state which cannot be recovered from without completely - // disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called - // on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - Rules []RuleWithOperations `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` - - // FailurePolicy defines how unrecognized errors from the admission endpoint are handled - - // allowed values are Ignore or Fail. Defaults to Ignore. - // +optional - FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"` - - // matchPolicy defines how the "rules" list is used to match incoming requests. - // Allowed values are "Exact" or "Equivalent". - // - // - Exact: match a request only if it exactly matches a specified rule. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - // - // - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. - // For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, - // and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, - // a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - // - // Defaults to "Exact" - // +optional - MatchPolicy *MatchPolicyType `json:"matchPolicy,omitempty" protobuf:"bytes,9,opt,name=matchPolicy,casttype=MatchPolicyType"` - - // NamespaceSelector decides whether to run the webhook on an object based - // on whether the namespace for that object matches the selector. If the - // object itself is a namespace, the matching is performed on - // object.metadata.labels. If the object is another cluster scoped resource, - // it never skips the webhook. - // - // For example, to run the webhook on any objects whose namespace is not - // associated with "runlevel" of "0" or "1"; you will set the selector as - // follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "runlevel", - // "operator": "NotIn", - // "values": [ - // "0", - // "1" - // ] - // } - // ] - // } - // - // If instead you want to only run the webhook on any objects whose - // namespace is associated with the "environment" of "prod" or "staging"; - // you will set the selector as follows: - // "namespaceSelector": { - // "matchExpressions": [ - // { - // "key": "environment", - // "operator": "In", - // "values": [ - // "prod", - // "staging" - // ] - // } - // ] - // } - // - // See - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - // for more examples of label selectors. - // - // Default to the empty LabelSelector, which matches everything. - // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,5,opt,name=namespaceSelector"` - - // ObjectSelector decides whether to run the webhook based on if the - // object has matching labels. objectSelector is evaluated against both - // the oldObject and newObject that would be sent to the webhook, and - // is considered to match if either object matches the selector. A null - // object (oldObject in the case of create, or newObject in the case of - // delete) or an object that cannot have labels (like a - // DeploymentRollback or a PodProxyOptions object) is not considered to - // match. - // Use the object selector only if the webhook is opt-in, because end - // users may skip the admission webhook by setting the labels. - // Default to the empty LabelSelector, which matches everything. - // +optional - ObjectSelector *metav1.LabelSelector `json:"objectSelector,omitempty" protobuf:"bytes,11,opt,name=objectSelector"` - - // SideEffects states whether this webhookk has side effects. - // Acceptable values are: Unknown, None, Some, NoneOnDryRun - // Webhooks with side effects MUST implement a reconciliation system, since a request may be - // rejected by a future step in the admission change and the side effects therefore need to be undone. - // Requests with the dryRun attribute will be auto-rejected if they match a webhook with - // sideEffects == Unknown or Some. Defaults to Unknown. - // +optional - SideEffects *SideEffectClass `json:"sideEffects,omitempty" protobuf:"bytes,6,opt,name=sideEffects,casttype=SideEffectClass"` - - // TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, - // the webhook call will be ignored or the API call will fail based on the - // failure policy. - // The timeout value must be between 1 and 30 seconds. - // Default to 30 seconds. - // +optional - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,7,opt,name=timeoutSeconds"` - - // AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - // versions the Webhook expects. API server will try to use first version in - // the list which it supports. If none of the versions specified in this list - // supported by API server, validation will fail for this object. - // If a persisted webhook configuration specifies allowed versions and does not - // include any versions known to the API Server, calls to the webhook will fail - // and be subject to the failure policy. - // Default to `['v1beta1']`. - // +optional - AdmissionReviewVersions []string `json:"admissionReviewVersions,omitempty" protobuf:"bytes,8,rep,name=admissionReviewVersions"` - - // reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. - // Allowed values are "Never" and "IfNeeded". - // - // Never: the webhook will not be called more than once in a single admission evaluation. - // - // IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation - // if the object being admitted is modified by other admission plugins after the initial webhook call. - // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. - // Note: - // * the number of additional invocations is not guaranteed to be exactly one. - // * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. - // * webhooks that use this option may be reordered to minimize the number of additional invocations. - // * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - // - // Defaults to "Never". - // +optional - ReinvocationPolicy *ReinvocationPolicyType `json:"reinvocationPolicy,omitempty" protobuf:"bytes,10,opt,name=reinvocationPolicy,casttype=ReinvocationPolicyType"` -} - -// ReinvocationPolicyType specifies what type of policy the admission hook uses. -type ReinvocationPolicyType string - -const ( - // NeverReinvocationPolicy indicates that the webhook must not be called more than once in a - // single admission evaluation. - NeverReinvocationPolicy ReinvocationPolicyType = "Never" - // IfNeededReinvocationPolicy indicates that the webhook may be called at least one - // additional time as part of the admission evaluation if the object being admitted is - // modified by other admission plugins after the initial webhook call. - IfNeededReinvocationPolicy ReinvocationPolicyType = "IfNeeded" -) - -// RuleWithOperations is a tuple of Operations and Resources. It is recommended to make -// sure that all the tuple expansions are valid. -type RuleWithOperations struct { - // Operations is the operations the admission hook cares about - CREATE, UPDATE, or * - // for all operations. - // If '*' is present, the length of the slice must be one. - // Required. - Operations []OperationType `json:"operations,omitempty" protobuf:"bytes,1,rep,name=operations,casttype=OperationType"` - // Rule is embedded, it describes other criteria of the rule, like - // APIGroups, APIVersions, Resources, etc. - Rule `json:",inline" protobuf:"bytes,2,opt,name=rule"` -} - -type OperationType string - -// The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go. -const ( - OperationAll OperationType = "*" - Create OperationType = "CREATE" - Update OperationType = "UPDATE" - Delete OperationType = "DELETE" - Connect OperationType = "CONNECT" -) - -// WebhookClientConfig contains the information to make a TLS -// connection with the webhook -type WebhookClientConfig struct { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - URL *string `json:"url,omitempty" protobuf:"bytes,3,opt,name=url"` - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,1,opt,name=service"` - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - CABundle []byte `json:"caBundle,omitempty" protobuf:"bytes,2,opt,name=caBundle"` -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -type ServiceReference struct { - // `namespace` is the namespace of the service. - // Required - Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` - // `name` is the name of the service. - // Required - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - Path *string `json:"path,omitempty" protobuf:"bytes,3,opt,name=path"` - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"` -} diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/admissionregistration/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index f40a15d50..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_MutatingWebhook = map[string]string{ - "": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", - "name": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "clientConfig": "ClientConfig defines how to communicate with the hook. Required", - "rules": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "failurePolicy": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "matchPolicy": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", - "namespaceSelector": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", - "objectSelector": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", - "sideEffects": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", - "timeoutSeconds": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", - "admissionReviewVersions": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", - "reinvocationPolicy": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", -} - -func (MutatingWebhook) SwaggerDoc() map[string]string { - return map_MutatingWebhook -} - -var map_MutatingWebhookConfiguration = map[string]string{ - "": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "webhooks": "Webhooks is a list of webhooks and the affected resources and operations.", -} - -func (MutatingWebhookConfiguration) SwaggerDoc() map[string]string { - return map_MutatingWebhookConfiguration -} - -var map_MutatingWebhookConfigurationList = map[string]string{ - "": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of MutatingWebhookConfiguration.", -} - -func (MutatingWebhookConfigurationList) SwaggerDoc() map[string]string { - return map_MutatingWebhookConfigurationList -} - -var map_Rule = map[string]string{ - "": "Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.", - "apiGroups": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", - "apiVersions": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", - "resources": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", - "scope": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", -} - -func (Rule) SwaggerDoc() map[string]string { - return map_Rule -} - -var map_RuleWithOperations = map[string]string{ - "": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", - "operations": "Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.", -} - -func (RuleWithOperations) SwaggerDoc() map[string]string { - return map_RuleWithOperations -} - -var map_ServiceReference = map[string]string{ - "": "ServiceReference holds a reference to Service.legacy.k8s.io", - "namespace": "`namespace` is the namespace of the service. Required", - "name": "`name` is the name of the service. Required", - "path": "`path` is an optional URL path which will be sent in any request to this service.", - "port": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", -} - -func (ServiceReference) SwaggerDoc() map[string]string { - return map_ServiceReference -} - -var map_ValidatingWebhook = map[string]string{ - "": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", - "name": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "clientConfig": "ClientConfig defines how to communicate with the hook. Required", - "rules": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "failurePolicy": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "matchPolicy": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", - "namespaceSelector": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", - "objectSelector": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", - "sideEffects": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", - "timeoutSeconds": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", - "admissionReviewVersions": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", -} - -func (ValidatingWebhook) SwaggerDoc() map[string]string { - return map_ValidatingWebhook -} - -var map_ValidatingWebhookConfiguration = map[string]string{ - "": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "webhooks": "Webhooks is a list of webhooks and the affected resources and operations.", -} - -func (ValidatingWebhookConfiguration) SwaggerDoc() map[string]string { - return map_ValidatingWebhookConfiguration -} - -var map_ValidatingWebhookConfigurationList = map[string]string{ - "": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ValidatingWebhookConfiguration.", -} - -func (ValidatingWebhookConfigurationList) SwaggerDoc() map[string]string { - return map_ValidatingWebhookConfigurationList -} - -var map_WebhookClientConfig = map[string]string{ - "": "WebhookClientConfig contains the information to make a TLS connection with the webhook", - "url": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", - "service": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", - "caBundle": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", -} - -func (WebhookClientConfig) SwaggerDoc() map[string]string { - return map_WebhookClientConfig -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/admissionregistration/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/admissionregistration/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 8520d4614..000000000 --- a/pseudo/k8s/api/admissionregistration/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,396 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) { - *out = *in - in.ClientConfig.DeepCopyInto(&out.ClientConfig) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]RuleWithOperations, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.FailurePolicy != nil { - in, out := &in.FailurePolicy, &out.FailurePolicy - *out = new(FailurePolicyType) - **out = **in - } - if in.MatchPolicy != nil { - in, out := &in.MatchPolicy, &out.MatchPolicy - *out = new(MatchPolicyType) - **out = **in - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.ObjectSelector != nil { - in, out := &in.ObjectSelector, &out.ObjectSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.SideEffects != nil { - in, out := &in.SideEffects, &out.SideEffects - *out = new(SideEffectClass) - **out = **in - } - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int32) - **out = **in - } - if in.AdmissionReviewVersions != nil { - in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ReinvocationPolicy != nil { - in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy - *out = new(ReinvocationPolicyType) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook. -func (in *MutatingWebhook) DeepCopy() *MutatingWebhook { - if in == nil { - return nil - } - out := new(MutatingWebhook) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MutatingWebhookConfiguration) DeepCopyInto(out *MutatingWebhookConfiguration) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Webhooks != nil { - in, out := &in.Webhooks, &out.Webhooks - *out = make([]MutatingWebhook, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfiguration. -func (in *MutatingWebhookConfiguration) DeepCopy() *MutatingWebhookConfiguration { - if in == nil { - return nil - } - out := new(MutatingWebhookConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MutatingWebhookConfiguration) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MutatingWebhookConfigurationList) DeepCopyInto(out *MutatingWebhookConfigurationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MutatingWebhookConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhookConfigurationList. -func (in *MutatingWebhookConfigurationList) DeepCopy() *MutatingWebhookConfigurationList { - if in == nil { - return nil - } - out := new(MutatingWebhookConfigurationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MutatingWebhookConfigurationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Rule) DeepCopyInto(out *Rule) { - *out = *in - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIVersions != nil { - in, out := &in.APIVersions, &out.APIVersions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Scope != nil { - in, out := &in.Scope, &out.Scope - *out = new(ScopeType) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. -func (in *Rule) DeepCopy() *Rule { - if in == nil { - return nil - } - out := new(Rule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) { - *out = *in - if in.Operations != nil { - in, out := &in.Operations, &out.Operations - *out = make([]OperationType, len(*in)) - copy(*out, *in) - } - in.Rule.DeepCopyInto(&out.Rule) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations. -func (in *RuleWithOperations) DeepCopy() *RuleWithOperations { - if in == nil { - return nil - } - out := new(RuleWithOperations) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceReference) DeepCopyInto(out *ServiceReference) { - *out = *in - if in.Path != nil { - in, out := &in.Path, &out.Path - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference. -func (in *ServiceReference) DeepCopy() *ServiceReference { - if in == nil { - return nil - } - out := new(ServiceReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ValidatingWebhook) DeepCopyInto(out *ValidatingWebhook) { - *out = *in - in.ClientConfig.DeepCopyInto(&out.ClientConfig) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]RuleWithOperations, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.FailurePolicy != nil { - in, out := &in.FailurePolicy, &out.FailurePolicy - *out = new(FailurePolicyType) - **out = **in - } - if in.MatchPolicy != nil { - in, out := &in.MatchPolicy, &out.MatchPolicy - *out = new(MatchPolicyType) - **out = **in - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.ObjectSelector != nil { - in, out := &in.ObjectSelector, &out.ObjectSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.SideEffects != nil { - in, out := &in.SideEffects, &out.SideEffects - *out = new(SideEffectClass) - **out = **in - } - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int32) - **out = **in - } - if in.AdmissionReviewVersions != nil { - in, out := &in.AdmissionReviewVersions, &out.AdmissionReviewVersions - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhook. -func (in *ValidatingWebhook) DeepCopy() *ValidatingWebhook { - if in == nil { - return nil - } - out := new(ValidatingWebhook) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ValidatingWebhookConfiguration) DeepCopyInto(out *ValidatingWebhookConfiguration) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Webhooks != nil { - in, out := &in.Webhooks, &out.Webhooks - *out = make([]ValidatingWebhook, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfiguration. -func (in *ValidatingWebhookConfiguration) DeepCopy() *ValidatingWebhookConfiguration { - if in == nil { - return nil - } - out := new(ValidatingWebhookConfiguration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ValidatingWebhookConfiguration) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ValidatingWebhookConfigurationList) DeepCopyInto(out *ValidatingWebhookConfigurationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ValidatingWebhookConfiguration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidatingWebhookConfigurationList. -func (in *ValidatingWebhookConfigurationList) DeepCopy() *ValidatingWebhookConfigurationList { - if in == nil { - return nil - } - out := new(ValidatingWebhookConfigurationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ValidatingWebhookConfigurationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) { - *out = *in - if in.URL != nil { - in, out := &in.URL, &out.URL - *out = new(string) - **out = **in - } - if in.Service != nil { - in, out := &in.Service, &out.Service - *out = new(ServiceReference) - (*in).DeepCopyInto(*out) - } - if in.CABundle != nil { - in, out := &in.CABundle, &out.CABundle - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig. -func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig { - if in == nil { - return nil - } - out := new(WebhookClientConfig) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/apps/v1/doc.go b/pseudo/k8s/api/apps/v1/doc.go deleted file mode 100644 index 25a0faaf2..000000000 --- a/pseudo/k8s/api/apps/v1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1" diff --git a/pseudo/k8s/api/apps/v1/generated.pb.go b/pseudo/k8s/api/apps/v1/generated.pb.go deleted file mode 100644 index 9f98b88e5..000000000 --- a/pseudo/k8s/api/apps/v1/generated.pb.go +++ /dev/null @@ -1,8264 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ControllerRevision) Reset() { *m = ControllerRevision{} } -func (*ControllerRevision) ProtoMessage() {} -func (*ControllerRevision) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{0} -} -func (m *ControllerRevision) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControllerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ControllerRevision) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControllerRevision.Merge(m, src) -} -func (m *ControllerRevision) XXX_Size() int { - return m.Size() -} -func (m *ControllerRevision) XXX_DiscardUnknown() { - xxx_messageInfo_ControllerRevision.DiscardUnknown(m) -} - -var xxx_messageInfo_ControllerRevision proto.InternalMessageInfo - -func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} } -func (*ControllerRevisionList) ProtoMessage() {} -func (*ControllerRevisionList) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{1} -} -func (m *ControllerRevisionList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControllerRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ControllerRevisionList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControllerRevisionList.Merge(m, src) -} -func (m *ControllerRevisionList) XXX_Size() int { - return m.Size() -} -func (m *ControllerRevisionList) XXX_DiscardUnknown() { - xxx_messageInfo_ControllerRevisionList.DiscardUnknown(m) -} - -var xxx_messageInfo_ControllerRevisionList proto.InternalMessageInfo - -func (m *DaemonSet) Reset() { *m = DaemonSet{} } -func (*DaemonSet) ProtoMessage() {} -func (*DaemonSet) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{2} -} -func (m *DaemonSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSet.Merge(m, src) -} -func (m *DaemonSet) XXX_Size() int { - return m.Size() -} -func (m *DaemonSet) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSet.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSet proto.InternalMessageInfo - -func (m *DaemonSetCondition) Reset() { *m = DaemonSetCondition{} } -func (*DaemonSetCondition) ProtoMessage() {} -func (*DaemonSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{3} -} -func (m *DaemonSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetCondition.Merge(m, src) -} -func (m *DaemonSetCondition) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetCondition proto.InternalMessageInfo - -func (m *DaemonSetList) Reset() { *m = DaemonSetList{} } -func (*DaemonSetList) ProtoMessage() {} -func (*DaemonSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{4} -} -func (m *DaemonSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetList.Merge(m, src) -} -func (m *DaemonSetList) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetList) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetList proto.InternalMessageInfo - -func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} } -func (*DaemonSetSpec) ProtoMessage() {} -func (*DaemonSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{5} -} -func (m *DaemonSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetSpec.Merge(m, src) -} -func (m *DaemonSetSpec) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetSpec proto.InternalMessageInfo - -func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} } -func (*DaemonSetStatus) ProtoMessage() {} -func (*DaemonSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{6} -} -func (m *DaemonSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetStatus.Merge(m, src) -} -func (m *DaemonSetStatus) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetStatus proto.InternalMessageInfo - -func (m *DaemonSetUpdateStrategy) Reset() { *m = DaemonSetUpdateStrategy{} } -func (*DaemonSetUpdateStrategy) ProtoMessage() {} -func (*DaemonSetUpdateStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{7} -} -func (m *DaemonSetUpdateStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetUpdateStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetUpdateStrategy.Merge(m, src) -} -func (m *DaemonSetUpdateStrategy) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetUpdateStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetUpdateStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetUpdateStrategy proto.InternalMessageInfo - -func (m *Deployment) Reset() { *m = Deployment{} } -func (*Deployment) ProtoMessage() {} -func (*Deployment) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{8} -} -func (m *Deployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Deployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deployment.Merge(m, src) -} -func (m *Deployment) XXX_Size() int { - return m.Size() -} -func (m *Deployment) XXX_DiscardUnknown() { - xxx_messageInfo_Deployment.DiscardUnknown(m) -} - -var xxx_messageInfo_Deployment proto.InternalMessageInfo - -func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } -func (*DeploymentCondition) ProtoMessage() {} -func (*DeploymentCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{9} -} -func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentCondition.Merge(m, src) -} -func (m *DeploymentCondition) XXX_Size() int { - return m.Size() -} -func (m *DeploymentCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo - -func (m *DeploymentList) Reset() { *m = DeploymentList{} } -func (*DeploymentList) ProtoMessage() {} -func (*DeploymentList) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{10} -} -func (m *DeploymentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentList.Merge(m, src) -} -func (m *DeploymentList) XXX_Size() int { - return m.Size() -} -func (m *DeploymentList) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentList.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentList proto.InternalMessageInfo - -func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } -func (*DeploymentSpec) ProtoMessage() {} -func (*DeploymentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{11} -} -func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentSpec.Merge(m, src) -} -func (m *DeploymentSpec) XXX_Size() int { - return m.Size() -} -func (m *DeploymentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo - -func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } -func (*DeploymentStatus) ProtoMessage() {} -func (*DeploymentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{12} -} -func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStatus.Merge(m, src) -} -func (m *DeploymentStatus) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo - -func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } -func (*DeploymentStrategy) ProtoMessage() {} -func (*DeploymentStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{13} -} -func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStrategy.Merge(m, src) -} -func (m *DeploymentStrategy) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo - -func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } -func (*ReplicaSet) ProtoMessage() {} -func (*ReplicaSet) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{14} -} -func (m *ReplicaSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSet.Merge(m, src) -} -func (m *ReplicaSet) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSet) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSet.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSet proto.InternalMessageInfo - -func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} } -func (*ReplicaSetCondition) ProtoMessage() {} -func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{15} -} -func (m *ReplicaSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetCondition.Merge(m, src) -} -func (m *ReplicaSetCondition) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetCondition proto.InternalMessageInfo - -func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } -func (*ReplicaSetList) ProtoMessage() {} -func (*ReplicaSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{16} -} -func (m *ReplicaSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetList.Merge(m, src) -} -func (m *ReplicaSetList) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetList) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetList proto.InternalMessageInfo - -func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } -func (*ReplicaSetSpec) ProtoMessage() {} -func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{17} -} -func (m *ReplicaSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetSpec.Merge(m, src) -} -func (m *ReplicaSetSpec) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetSpec proto.InternalMessageInfo - -func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } -func (*ReplicaSetStatus) ProtoMessage() {} -func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{18} -} -func (m *ReplicaSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetStatus.Merge(m, src) -} -func (m *ReplicaSetStatus) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetStatus proto.InternalMessageInfo - -func (m *RollingUpdateDaemonSet) Reset() { *m = RollingUpdateDaemonSet{} } -func (*RollingUpdateDaemonSet) ProtoMessage() {} -func (*RollingUpdateDaemonSet) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{19} -} -func (m *RollingUpdateDaemonSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDaemonSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDaemonSet.Merge(m, src) -} -func (m *RollingUpdateDaemonSet) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDaemonSet) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDaemonSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDaemonSet proto.InternalMessageInfo - -func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } -func (*RollingUpdateDeployment) ProtoMessage() {} -func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{20} -} -func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDeployment.Merge(m, src) -} -func (m *RollingUpdateDeployment) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDeployment) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo - -func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} } -func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {} -func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{21} -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateStatefulSetStrategy.Merge(m, src) -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateStatefulSetStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateStatefulSetStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateStatefulSetStrategy proto.InternalMessageInfo - -func (m *StatefulSet) Reset() { *m = StatefulSet{} } -func (*StatefulSet) ProtoMessage() {} -func (*StatefulSet) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{22} -} -func (m *StatefulSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSet.Merge(m, src) -} -func (m *StatefulSet) XXX_Size() int { - return m.Size() -} -func (m *StatefulSet) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSet.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSet proto.InternalMessageInfo - -func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} } -func (*StatefulSetCondition) ProtoMessage() {} -func (*StatefulSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{23} -} -func (m *StatefulSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetCondition.Merge(m, src) -} -func (m *StatefulSetCondition) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetCondition proto.InternalMessageInfo - -func (m *StatefulSetList) Reset() { *m = StatefulSetList{} } -func (*StatefulSetList) ProtoMessage() {} -func (*StatefulSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{24} -} -func (m *StatefulSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetList.Merge(m, src) -} -func (m *StatefulSetList) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetList) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetList proto.InternalMessageInfo - -func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } -func (*StatefulSetSpec) ProtoMessage() {} -func (*StatefulSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{25} -} -func (m *StatefulSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetSpec.Merge(m, src) -} -func (m *StatefulSetSpec) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetSpec proto.InternalMessageInfo - -func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} } -func (*StatefulSetStatus) ProtoMessage() {} -func (*StatefulSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{26} -} -func (m *StatefulSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetStatus.Merge(m, src) -} -func (m *StatefulSetStatus) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetStatus proto.InternalMessageInfo - -func (m *StatefulSetUpdateStrategy) Reset() { *m = StatefulSetUpdateStrategy{} } -func (*StatefulSetUpdateStrategy) ProtoMessage() {} -func (*StatefulSetUpdateStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_e1014cab6f31e43b, []int{27} -} -func (m *StatefulSetUpdateStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetUpdateStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetUpdateStrategy.Merge(m, src) -} -func (m *StatefulSetUpdateStrategy) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetUpdateStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetUpdateStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetUpdateStrategy proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ControllerRevision)(nil), "k8s.io.api.apps.v1.ControllerRevision") - proto.RegisterType((*ControllerRevisionList)(nil), "k8s.io.api.apps.v1.ControllerRevisionList") - proto.RegisterType((*DaemonSet)(nil), "k8s.io.api.apps.v1.DaemonSet") - proto.RegisterType((*DaemonSetCondition)(nil), "k8s.io.api.apps.v1.DaemonSetCondition") - proto.RegisterType((*DaemonSetList)(nil), "k8s.io.api.apps.v1.DaemonSetList") - proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.api.apps.v1.DaemonSetSpec") - proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.api.apps.v1.DaemonSetStatus") - proto.RegisterType((*DaemonSetUpdateStrategy)(nil), "k8s.io.api.apps.v1.DaemonSetUpdateStrategy") - proto.RegisterType((*Deployment)(nil), "k8s.io.api.apps.v1.Deployment") - proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.apps.v1.DeploymentCondition") - proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.apps.v1.DeploymentList") - proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.apps.v1.DeploymentSpec") - proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.apps.v1.DeploymentStatus") - proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.apps.v1.DeploymentStrategy") - proto.RegisterType((*ReplicaSet)(nil), "k8s.io.api.apps.v1.ReplicaSet") - proto.RegisterType((*ReplicaSetCondition)(nil), "k8s.io.api.apps.v1.ReplicaSetCondition") - proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.api.apps.v1.ReplicaSetList") - proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.api.apps.v1.ReplicaSetSpec") - proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.api.apps.v1.ReplicaSetStatus") - proto.RegisterType((*RollingUpdateDaemonSet)(nil), "k8s.io.api.apps.v1.RollingUpdateDaemonSet") - proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.apps.v1.RollingUpdateDeployment") - proto.RegisterType((*RollingUpdateStatefulSetStrategy)(nil), "k8s.io.api.apps.v1.RollingUpdateStatefulSetStrategy") - proto.RegisterType((*StatefulSet)(nil), "k8s.io.api.apps.v1.StatefulSet") - proto.RegisterType((*StatefulSetCondition)(nil), "k8s.io.api.apps.v1.StatefulSetCondition") - proto.RegisterType((*StatefulSetList)(nil), "k8s.io.api.apps.v1.StatefulSetList") - proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.api.apps.v1.StatefulSetSpec") - proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.api.apps.v1.StatefulSetStatus") - proto.RegisterType((*StatefulSetUpdateStrategy)(nil), "k8s.io.api.apps.v1.StatefulSetUpdateStrategy") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1/generated.proto", fileDescriptor_e1014cab6f31e43b) -} - -var fileDescriptor_e1014cab6f31e43b = []byte{ - // 2031 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x24, 0x47, - 0x1d, 0x75, 0xcf, 0x87, 0x3d, 0x2e, 0xaf, 0xed, 0xdd, 0xb2, 0xb1, 0x27, 0xbb, 0x64, 0x66, 0x19, - 0x60, 0xe3, 0x64, 0xb3, 0x3d, 0xec, 0x66, 0x13, 0xa1, 0x2c, 0x02, 0x79, 0xc6, 0x21, 0x84, 0x78, - 0x6c, 0x53, 0x5e, 0xef, 0x61, 0x09, 0x12, 0xe5, 0xe9, 0xda, 0x71, 0xc7, 0xfd, 0xa5, 0xee, 0xea, - 0x61, 0x47, 0x5c, 0x10, 0x12, 0x9c, 0x38, 0xf0, 0x9f, 0x20, 0x84, 0xe0, 0x86, 0x22, 0xc4, 0x65, - 0x2f, 0x48, 0x11, 0x17, 0x72, 0xb2, 0xd8, 0xc9, 0x09, 0xa1, 0x1c, 0xb9, 0xe4, 0x02, 0xaa, 0xea, - 0xea, 0xef, 0x6a, 0xcf, 0xd8, 0x9b, 0x38, 0x24, 0xca, 0xcd, 0x53, 0xf5, 0x7e, 0xaf, 0x7f, 0x55, - 0xf5, 0xab, 0x7a, 0xaf, 0xab, 0x0d, 0xee, 0x1d, 0x7f, 0xdb, 0x53, 0x75, 0xbb, 0x7d, 0xec, 0x1f, - 0x12, 0xd7, 0x22, 0x94, 0x78, 0xed, 0x21, 0xb1, 0x34, 0xdb, 0x6d, 0x8b, 0x0e, 0xec, 0xe8, 0x6d, - 0xec, 0x38, 0x5e, 0x7b, 0x78, 0xbb, 0x3d, 0x20, 0x16, 0x71, 0x31, 0x25, 0x9a, 0xea, 0xb8, 0x36, - 0xb5, 0x21, 0x0c, 0x30, 0x2a, 0x76, 0x74, 0x95, 0x61, 0xd4, 0xe1, 0xed, 0xab, 0xb7, 0x06, 0x3a, - 0x3d, 0xf2, 0x0f, 0xd5, 0xbe, 0x6d, 0xb6, 0x07, 0xf6, 0xc0, 0x6e, 0x73, 0xe8, 0xa1, 0xff, 0x88, - 0xff, 0xe2, 0x3f, 0xf8, 0x5f, 0x01, 0xc5, 0xd5, 0x56, 0xe2, 0x31, 0x7d, 0xdb, 0x25, 0x92, 0xc7, - 0x5c, 0xbd, 0x1b, 0x63, 0x4c, 0xdc, 0x3f, 0xd2, 0x2d, 0xe2, 0x8e, 0xda, 0xce, 0xf1, 0x80, 0x35, - 0x78, 0x6d, 0x93, 0x50, 0x2c, 0x8b, 0x6a, 0x17, 0x45, 0xb9, 0xbe, 0x45, 0x75, 0x93, 0xe4, 0x02, - 0x5e, 0x9b, 0x14, 0xe0, 0xf5, 0x8f, 0x88, 0x89, 0x73, 0x71, 0xaf, 0x14, 0xc5, 0xf9, 0x54, 0x37, - 0xda, 0xba, 0x45, 0x3d, 0xea, 0x66, 0x83, 0x5a, 0xff, 0x51, 0x00, 0xec, 0xda, 0x16, 0x75, 0x6d, - 0xc3, 0x20, 0x2e, 0x22, 0x43, 0xdd, 0xd3, 0x6d, 0x0b, 0xfe, 0x14, 0xd4, 0xd8, 0x78, 0x34, 0x4c, - 0x71, 0x5d, 0xb9, 0xae, 0x6c, 0x2c, 0xdc, 0xf9, 0x96, 0x1a, 0x4f, 0x72, 0x44, 0xaf, 0x3a, 0xc7, - 0x03, 0xd6, 0xe0, 0xa9, 0x0c, 0xad, 0x0e, 0x6f, 0xab, 0xbb, 0x87, 0xef, 0x92, 0x3e, 0xed, 0x11, - 0x8a, 0x3b, 0xf0, 0xc9, 0x49, 0x73, 0x66, 0x7c, 0xd2, 0x04, 0x71, 0x1b, 0x8a, 0x58, 0xe1, 0x2e, - 0xa8, 0x70, 0xf6, 0x12, 0x67, 0xbf, 0x55, 0xc8, 0x2e, 0x06, 0xad, 0x22, 0xfc, 0xb3, 0x37, 0x1e, - 0x53, 0x62, 0xb1, 0xf4, 0x3a, 0x97, 0x04, 0x75, 0x65, 0x0b, 0x53, 0x8c, 0x38, 0x11, 0x7c, 0x19, - 0xd4, 0x5c, 0x91, 0x7e, 0xbd, 0x7c, 0x5d, 0xd9, 0x28, 0x77, 0x2e, 0x0b, 0x54, 0x2d, 0x1c, 0x16, - 0x8a, 0x10, 0xad, 0xbf, 0x2a, 0x60, 0x2d, 0x3f, 0xee, 0x6d, 0xdd, 0xa3, 0xf0, 0x9d, 0xdc, 0xd8, - 0xd5, 0xe9, 0xc6, 0xce, 0xa2, 0xf9, 0xc8, 0xa3, 0x07, 0x87, 0x2d, 0x89, 0x71, 0xbf, 0x0d, 0xaa, - 0x3a, 0x25, 0xa6, 0x57, 0x2f, 0x5d, 0x2f, 0x6f, 0x2c, 0xdc, 0xb9, 0xa1, 0xe6, 0x6b, 0x57, 0xcd, - 0x27, 0xd6, 0x59, 0x14, 0x94, 0xd5, 0xb7, 0x58, 0x30, 0x0a, 0x38, 0x5a, 0xff, 0x55, 0xc0, 0xfc, - 0x16, 0x26, 0xa6, 0x6d, 0xed, 0x13, 0x7a, 0x01, 0x8b, 0xd6, 0x05, 0x15, 0xcf, 0x21, 0x7d, 0xb1, - 0x68, 0x5f, 0x93, 0xe5, 0x1e, 0xa5, 0xb3, 0xef, 0x90, 0x7e, 0xbc, 0x50, 0xec, 0x17, 0xe2, 0xc1, - 0xf0, 0x6d, 0x30, 0xeb, 0x51, 0x4c, 0x7d, 0x8f, 0x2f, 0xd3, 0xc2, 0x9d, 0xaf, 0x9f, 0x4e, 0xc3, - 0xa1, 0x9d, 0x25, 0x41, 0x34, 0x1b, 0xfc, 0x46, 0x82, 0xa2, 0xf5, 0xaf, 0x12, 0x80, 0x11, 0xb6, - 0x6b, 0x5b, 0x9a, 0x4e, 0x59, 0xfd, 0xbe, 0x0e, 0x2a, 0x74, 0xe4, 0x10, 0x3e, 0x0d, 0xf3, 0x9d, - 0x1b, 0x61, 0x16, 0xf7, 0x47, 0x0e, 0xf9, 0xf8, 0xa4, 0xb9, 0x96, 0x8f, 0x60, 0x3d, 0x88, 0xc7, - 0xc0, 0xed, 0x28, 0xbf, 0x12, 0x8f, 0xbe, 0x9b, 0x7e, 0xf4, 0xc7, 0x27, 0x4d, 0xc9, 0x61, 0xa1, - 0x46, 0x4c, 0xe9, 0x04, 0xe1, 0x10, 0x40, 0x03, 0x7b, 0xf4, 0xbe, 0x8b, 0x2d, 0x2f, 0x78, 0x92, - 0x6e, 0x12, 0x31, 0xf2, 0x97, 0xa6, 0x5b, 0x1e, 0x16, 0xd1, 0xb9, 0x2a, 0xb2, 0x80, 0xdb, 0x39, - 0x36, 0x24, 0x79, 0x02, 0xbc, 0x01, 0x66, 0x5d, 0x82, 0x3d, 0xdb, 0xaa, 0x57, 0xf8, 0x28, 0xa2, - 0x09, 0x44, 0xbc, 0x15, 0x89, 0x5e, 0xf8, 0x22, 0x98, 0x33, 0x89, 0xe7, 0xe1, 0x01, 0xa9, 0x57, - 0x39, 0x70, 0x59, 0x00, 0xe7, 0x7a, 0x41, 0x33, 0x0a, 0xfb, 0x5b, 0xbf, 0x57, 0xc0, 0x62, 0x34, - 0x73, 0x17, 0xb0, 0x55, 0x3a, 0xe9, 0xad, 0xf2, 0xfc, 0xa9, 0x75, 0x52, 0xb0, 0x43, 0xde, 0x2b, - 0x27, 0x72, 0x66, 0x45, 0x08, 0x7f, 0x02, 0x6a, 0x1e, 0x31, 0x48, 0x9f, 0xda, 0xae, 0xc8, 0xf9, - 0x95, 0x29, 0x73, 0xc6, 0x87, 0xc4, 0xd8, 0x17, 0xa1, 0x9d, 0x4b, 0x2c, 0xe9, 0xf0, 0x17, 0x8a, - 0x28, 0xe1, 0x8f, 0x40, 0x8d, 0x12, 0xd3, 0x31, 0x30, 0x25, 0x62, 0x9b, 0xa4, 0xea, 0x9b, 0x95, - 0x0b, 0x23, 0xdb, 0xb3, 0xb5, 0xfb, 0x02, 0xc6, 0x37, 0x4a, 0x34, 0x0f, 0x61, 0x2b, 0x8a, 0x68, - 0xe0, 0x31, 0x58, 0xf2, 0x1d, 0x8d, 0x21, 0x29, 0x3b, 0xba, 0x07, 0x23, 0x51, 0x3e, 0x37, 0x4f, - 0x9d, 0x90, 0x83, 0x54, 0x48, 0x67, 0x4d, 0x3c, 0x60, 0x29, 0xdd, 0x8e, 0x32, 0xd4, 0x70, 0x13, - 0x2c, 0x9b, 0xba, 0x85, 0x08, 0xd6, 0x46, 0xfb, 0xa4, 0x6f, 0x5b, 0x9a, 0xc7, 0x0b, 0xa8, 0xda, - 0x59, 0x17, 0x04, 0xcb, 0xbd, 0x74, 0x37, 0xca, 0xe2, 0xe1, 0x36, 0x58, 0x0d, 0xcf, 0xd9, 0x1f, - 0xe8, 0x1e, 0xb5, 0xdd, 0xd1, 0xb6, 0x6e, 0xea, 0xb4, 0x3e, 0xcb, 0x79, 0xea, 0xe3, 0x93, 0xe6, - 0x2a, 0x92, 0xf4, 0x23, 0x69, 0x54, 0xeb, 0x37, 0xb3, 0x60, 0x39, 0x73, 0x1a, 0xc0, 0x07, 0x60, - 0xad, 0xef, 0xbb, 0x2e, 0xb1, 0xe8, 0x8e, 0x6f, 0x1e, 0x12, 0x77, 0xbf, 0x7f, 0x44, 0x34, 0xdf, - 0x20, 0x1a, 0x5f, 0xd1, 0x6a, 0xa7, 0x21, 0x72, 0x5d, 0xeb, 0x4a, 0x51, 0xa8, 0x20, 0x1a, 0xfe, - 0x10, 0x40, 0x8b, 0x37, 0xf5, 0x74, 0xcf, 0x8b, 0x38, 0x4b, 0x9c, 0x33, 0xda, 0x80, 0x3b, 0x39, - 0x04, 0x92, 0x44, 0xb1, 0x1c, 0x35, 0xe2, 0xe9, 0x2e, 0xd1, 0xb2, 0x39, 0x96, 0xd3, 0x39, 0x6e, - 0x49, 0x51, 0xa8, 0x20, 0x1a, 0xbe, 0x0a, 0x16, 0x82, 0xa7, 0xf1, 0x39, 0x17, 0x8b, 0xb3, 0x22, - 0xc8, 0x16, 0x76, 0xe2, 0x2e, 0x94, 0xc4, 0xb1, 0xa1, 0xd9, 0x87, 0x1e, 0x71, 0x87, 0x44, 0x7b, - 0x33, 0xf0, 0x00, 0x4c, 0x28, 0xab, 0x5c, 0x28, 0xa3, 0xa1, 0xed, 0xe6, 0x10, 0x48, 0x12, 0xc5, - 0x86, 0x16, 0x54, 0x4d, 0x6e, 0x68, 0xb3, 0xe9, 0xa1, 0x1d, 0x48, 0x51, 0xa8, 0x20, 0x9a, 0xd5, - 0x5e, 0x90, 0xf2, 0xe6, 0x10, 0xeb, 0x06, 0x3e, 0x34, 0x48, 0x7d, 0x2e, 0x5d, 0x7b, 0x3b, 0xe9, - 0x6e, 0x94, 0xc5, 0xc3, 0x37, 0xc1, 0x95, 0xa0, 0xe9, 0xc0, 0xc2, 0x11, 0x49, 0x8d, 0x93, 0x3c, - 0x27, 0x48, 0xae, 0xec, 0x64, 0x01, 0x28, 0x1f, 0x03, 0x5f, 0x07, 0x4b, 0x7d, 0xdb, 0x30, 0x78, - 0x3d, 0x76, 0x6d, 0xdf, 0xa2, 0xf5, 0x79, 0xce, 0x02, 0xd9, 0x1e, 0xea, 0xa6, 0x7a, 0x50, 0x06, - 0x09, 0x1f, 0x02, 0xd0, 0x0f, 0xe5, 0xc0, 0xab, 0x83, 0x62, 0xa1, 0xcf, 0xeb, 0x50, 0x2c, 0xc0, - 0x51, 0x93, 0x87, 0x12, 0x6c, 0xad, 0xf7, 0x14, 0xb0, 0x5e, 0xb0, 0xc7, 0xe1, 0xf7, 0x52, 0xaa, - 0x77, 0x33, 0xa3, 0x7a, 0xd7, 0x0a, 0xc2, 0x12, 0xd2, 0xd7, 0x07, 0x8b, 0xcc, 0x77, 0xe8, 0xd6, - 0x20, 0x80, 0x88, 0x13, 0xec, 0x25, 0x59, 0xee, 0x28, 0x09, 0x8c, 0x8f, 0xe1, 0x2b, 0xe3, 0x93, - 0xe6, 0x62, 0xaa, 0x0f, 0xa5, 0x39, 0x5b, 0xbf, 0x2c, 0x01, 0xb0, 0x45, 0x1c, 0xc3, 0x1e, 0x99, - 0xc4, 0xba, 0x08, 0xd7, 0xb2, 0x95, 0x72, 0x2d, 0x2d, 0xe9, 0x42, 0x44, 0xf9, 0x14, 0xda, 0x96, - 0xed, 0x8c, 0x6d, 0xf9, 0xc6, 0x04, 0x9e, 0xd3, 0x7d, 0xcb, 0x3f, 0xca, 0x60, 0x25, 0x06, 0xc7, - 0xc6, 0xe5, 0x5e, 0x6a, 0x09, 0x5f, 0xc8, 0x2c, 0xe1, 0xba, 0x24, 0xe4, 0x53, 0x73, 0x2e, 0xef, - 0x82, 0x25, 0xe6, 0x2b, 0x82, 0x55, 0xe3, 0xae, 0x65, 0xf6, 0xcc, 0xae, 0x25, 0x52, 0x9d, 0xed, - 0x14, 0x13, 0xca, 0x30, 0x17, 0xb8, 0xa4, 0xb9, 0xcf, 0xa3, 0x4b, 0xfa, 0x83, 0x02, 0x96, 0xe2, - 0x65, 0xba, 0x00, 0x9b, 0xd4, 0x4d, 0xdb, 0xa4, 0xc6, 0xe9, 0x75, 0x59, 0xe0, 0x93, 0xfe, 0x5e, - 0x49, 0x66, 0xcd, 0x8d, 0xd2, 0x06, 0x7b, 0xa1, 0x72, 0x0c, 0xbd, 0x8f, 0x3d, 0x21, 0xab, 0x97, - 0x82, 0x97, 0xa9, 0xa0, 0x0d, 0x45, 0xbd, 0x29, 0x4b, 0x55, 0xfa, 0x74, 0x2d, 0x55, 0xf9, 0x93, - 0xb1, 0x54, 0xf7, 0x41, 0xcd, 0x0b, 0xcd, 0x54, 0x85, 0x53, 0xde, 0x98, 0xb4, 0x9d, 0x85, 0x8f, - 0x8a, 0x58, 0x23, 0x07, 0x15, 0x31, 0xc9, 0xbc, 0x53, 0xf5, 0xb3, 0xf4, 0x4e, 0xac, 0xbc, 0x1d, - 0xec, 0x7b, 0x44, 0xe3, 0x5b, 0xa9, 0x16, 0x97, 0xf7, 0x1e, 0x6f, 0x45, 0xa2, 0x17, 0x1e, 0x80, - 0x75, 0xc7, 0xb5, 0x07, 0x2e, 0xf1, 0xbc, 0x2d, 0x82, 0x35, 0x43, 0xb7, 0x48, 0x38, 0x80, 0x40, - 0xf5, 0xae, 0x8d, 0x4f, 0x9a, 0xeb, 0x7b, 0x72, 0x08, 0x2a, 0x8a, 0x6d, 0xfd, 0xb9, 0x02, 0x2e, - 0x67, 0x4f, 0xc4, 0x02, 0x23, 0xa2, 0x9c, 0xcb, 0x88, 0xbc, 0x9c, 0x28, 0xd1, 0xc0, 0xa5, 0x25, - 0xde, 0xf9, 0x73, 0x65, 0xba, 0x09, 0x96, 0x85, 0xf1, 0x08, 0x3b, 0x85, 0x15, 0x8b, 0x96, 0xe7, - 0x20, 0xdd, 0x8d, 0xb2, 0x78, 0x78, 0x0f, 0x2c, 0xba, 0xdc, 0x5b, 0x85, 0x04, 0x81, 0x3f, 0xf9, - 0x8a, 0x20, 0x58, 0x44, 0xc9, 0x4e, 0x94, 0xc6, 0x32, 0x6f, 0x12, 0x5b, 0x8e, 0x90, 0xa0, 0x92, - 0xf6, 0x26, 0x9b, 0x59, 0x00, 0xca, 0xc7, 0xc0, 0x1e, 0x58, 0xf1, 0xad, 0x3c, 0x55, 0x50, 0x6b, - 0xd7, 0x04, 0xd5, 0xca, 0x41, 0x1e, 0x82, 0x64, 0x71, 0xf0, 0xc7, 0x29, 0xbb, 0x32, 0xcb, 0x4f, - 0x91, 0x17, 0x4e, 0xdf, 0x0e, 0x53, 0xfb, 0x15, 0x89, 0x8f, 0xaa, 0x4d, 0xeb, 0xa3, 0x5a, 0x7f, - 0x52, 0x00, 0xcc, 0x6f, 0xc1, 0x89, 0x2f, 0xf7, 0xb9, 0x88, 0x84, 0x44, 0x6a, 0x72, 0x87, 0x73, - 0x73, 0xb2, 0xc3, 0x89, 0x4f, 0xd0, 0xe9, 0x2c, 0x8e, 0x98, 0xde, 0x8b, 0xb9, 0x98, 0x99, 0xc2, - 0xe2, 0xc4, 0xf9, 0x3c, 0x9b, 0xc5, 0x49, 0xf0, 0x9c, 0x6e, 0x71, 0xfe, 0x5d, 0x02, 0x2b, 0x31, - 0x78, 0x6a, 0x8b, 0x23, 0x09, 0xf9, 0xf2, 0x72, 0x66, 0x3a, 0xdb, 0x11, 0x4f, 0xdd, 0xff, 0x89, - 0xed, 0x88, 0x13, 0x2a, 0xb0, 0x1d, 0xbf, 0x2b, 0x25, 0xb3, 0x3e, 0xa3, 0xed, 0xf8, 0x04, 0xae, - 0x2a, 0x3e, 0x77, 0xce, 0xa5, 0xf5, 0x97, 0x32, 0xb8, 0x9c, 0xdd, 0x82, 0x29, 0x1d, 0x54, 0x26, - 0xea, 0xe0, 0x1e, 0x58, 0x7d, 0xe4, 0x1b, 0xc6, 0x88, 0x8f, 0x21, 0x21, 0x86, 0x81, 0x82, 0x7e, - 0x55, 0x44, 0xae, 0x7e, 0x5f, 0x82, 0x41, 0xd2, 0xc8, 0xbc, 0x2c, 0x56, 0x9e, 0x55, 0x16, 0xab, - 0xe7, 0x90, 0x45, 0xb9, 0xb3, 0x28, 0x9f, 0xcb, 0x59, 0x4c, 0xad, 0x89, 0x92, 0xe3, 0x6a, 0xe2, - 0x3b, 0xfc, 0xaf, 0x15, 0xb0, 0x26, 0x7f, 0x7d, 0x86, 0x06, 0x58, 0x32, 0xf1, 0xe3, 0xe4, 0xe5, - 0xc5, 0x24, 0xc1, 0xf0, 0xa9, 0x6e, 0xa8, 0xc1, 0xd7, 0x1d, 0xf5, 0x2d, 0x8b, 0xee, 0xba, 0xfb, - 0xd4, 0xd5, 0xad, 0x41, 0x20, 0xb0, 0xbd, 0x14, 0x17, 0xca, 0x70, 0xb7, 0x3e, 0x54, 0xc0, 0x7a, - 0x81, 0xca, 0x5d, 0x6c, 0x26, 0xf0, 0x21, 0xa8, 0x99, 0xf8, 0xf1, 0xbe, 0xef, 0x0e, 0x42, 0x49, - 0x3e, 0xfb, 0x73, 0xf8, 0x2e, 0xec, 0x09, 0x16, 0x14, 0xf1, 0xb5, 0x76, 0xc1, 0xf5, 0xd4, 0x20, - 0xd9, 0xa6, 0x21, 0x8f, 0x7c, 0x83, 0xef, 0x1f, 0xe1, 0x29, 0x6e, 0x82, 0x79, 0x07, 0xbb, 0x54, - 0x8f, 0xcc, 0x68, 0xb5, 0xb3, 0x38, 0x3e, 0x69, 0xce, 0xef, 0x85, 0x8d, 0x28, 0xee, 0x6f, 0xfd, - 0xaa, 0x04, 0x16, 0x12, 0x24, 0x17, 0xa0, 0xef, 0x6f, 0xa4, 0xf4, 0x5d, 0xfa, 0xc5, 0x24, 0x39, - 0xaa, 0x22, 0x81, 0xef, 0x65, 0x04, 0xfe, 0x9b, 0x93, 0x88, 0x4e, 0x57, 0xf8, 0x8f, 0x4a, 0x60, - 0x35, 0x81, 0x8e, 0x25, 0xfe, 0x3b, 0x29, 0x89, 0xdf, 0xc8, 0x48, 0x7c, 0x5d, 0x16, 0xf3, 0xa5, - 0xc6, 0x4f, 0xd6, 0xf8, 0x3f, 0x2a, 0x60, 0x39, 0x31, 0x77, 0x17, 0x20, 0xf2, 0x5b, 0x69, 0x91, - 0x6f, 0x4e, 0xa8, 0x97, 0x02, 0x95, 0x7f, 0x52, 0x4d, 0xe5, 0xfd, 0x85, 0xbf, 0x5d, 0xf8, 0x39, - 0x58, 0x1d, 0xda, 0x86, 0x6f, 0x92, 0xae, 0x81, 0x75, 0x33, 0x04, 0x30, 0x55, 0x64, 0x93, 0xf8, - 0xa2, 0x94, 0x9e, 0xb8, 0x9e, 0xee, 0x51, 0x62, 0xd1, 0x07, 0x71, 0x64, 0xac, 0xc5, 0x0f, 0x24, - 0x74, 0x48, 0xfa, 0x10, 0xf8, 0x2a, 0x58, 0x60, 0x6a, 0xa6, 0xf7, 0xc9, 0x0e, 0x36, 0xc3, 0x9a, - 0x8a, 0xbe, 0x0f, 0xec, 0xc7, 0x5d, 0x28, 0x89, 0x83, 0x47, 0x60, 0xc5, 0xb1, 0xb5, 0x1e, 0xb6, - 0xf0, 0x80, 0xb0, 0xf3, 0x7f, 0xcf, 0x36, 0xf4, 0xfe, 0x88, 0xdf, 0x3b, 0xcc, 0x77, 0x5e, 0x0b, - 0xdf, 0x29, 0xf7, 0xf2, 0x10, 0xe6, 0xd9, 0x25, 0xcd, 0x7c, 0x3f, 0xcb, 0x28, 0xa1, 0x99, 0xfb, - 0x9c, 0x35, 0x97, 0xfb, 0x1f, 0x00, 0x59, 0x71, 0x9d, 0xf3, 0x83, 0x56, 0xd1, 0x8d, 0x4a, 0xed, - 0x5c, 0x5f, 0xa3, 0x3e, 0xaa, 0x80, 0x2b, 0xb9, 0x03, 0xf2, 0x33, 0xbc, 0xd3, 0xc8, 0x39, 0xaf, - 0xf2, 0x19, 0x9c, 0xd7, 0x26, 0x58, 0x16, 0x1f, 0xc2, 0x32, 0xc6, 0x2d, 0x32, 0xd0, 0xdd, 0x74, - 0x37, 0xca, 0xe2, 0x65, 0x77, 0x2a, 0xd5, 0x33, 0xde, 0xa9, 0x24, 0xb3, 0x10, 0xff, 0xbf, 0x11, - 0x54, 0x5d, 0x3e, 0x0b, 0xf1, 0x6f, 0x1c, 0x59, 0x3c, 0xfc, 0x6e, 0x58, 0x52, 0x11, 0xc3, 0x1c, - 0x67, 0xc8, 0xd4, 0x48, 0x44, 0x90, 0x41, 0x3f, 0xd3, 0xc7, 0x9e, 0x77, 0x24, 0x1f, 0x7b, 0x36, - 0x26, 0x94, 0xf2, 0xf4, 0x56, 0xf1, 0x6f, 0x0a, 0x78, 0xae, 0x70, 0x0f, 0xc0, 0xcd, 0x94, 0xce, - 0xde, 0xca, 0xe8, 0xec, 0xf3, 0x85, 0x81, 0x09, 0xb1, 0x35, 0xe5, 0x17, 0x22, 0x77, 0x27, 0x5e, - 0x88, 0x48, 0x5c, 0xd4, 0xe4, 0x9b, 0x91, 0xce, 0xc6, 0x93, 0xa7, 0x8d, 0x99, 0xf7, 0x9f, 0x36, - 0x66, 0x3e, 0x78, 0xda, 0x98, 0xf9, 0xc5, 0xb8, 0xa1, 0x3c, 0x19, 0x37, 0x94, 0xf7, 0xc7, 0x0d, - 0xe5, 0x83, 0x71, 0x43, 0xf9, 0xe7, 0xb8, 0xa1, 0xfc, 0xf6, 0xc3, 0xc6, 0xcc, 0xc3, 0xd2, 0xf0, - 0xf6, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x59, 0xb3, 0x11, 0xc0, 0x12, 0x26, 0x00, 0x00, -} - -func (m *ControllerRevision) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ControllerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ControllerRevisionList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControllerRevisionList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ControllerRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - { - size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DaemonSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x48 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberUnavailable)) - i-- - dAtA[i] = 0x40 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberAvailable)) - i-- - dAtA[i] = 0x38 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedNumberScheduled)) - i-- - dAtA[i] = 0x30 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberReady)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredNumberScheduled)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberMisscheduled)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentNumberScheduled)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DaemonSetUpdateStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Deployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Deployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ProgressDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds)) - i-- - dAtA[i] = 0x48 - } - i-- - if m.Paused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x28 - { - size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x40 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x38 - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReplicaSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.FullyLabeledReplicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDaemonSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDaemonSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxSurge != nil { - { - size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RollingUpdateStatefulSetStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateStatefulSetStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateStatefulSetStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Partition != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Partition)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StatefulSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x40 - } - { - size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - i -= len(m.PodManagementPolicy) - copy(dAtA[i:], m.PodManagementPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodManagementPolicy))) - i-- - dAtA[i] = 0x32 - i -= len(m.ServiceName) - copy(dAtA[i:], m.ServiceName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName))) - i-- - dAtA[i] = 0x2a - if len(m.VolumeClaimTemplates) > 0 { - for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x48 - } - i -= len(m.UpdateRevision) - copy(dAtA[i:], m.UpdateRevision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpdateRevision))) - i-- - dAtA[i] = 0x3a - i -= len(m.CurrentRevision) - copy(dAtA[i:], m.CurrentRevision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CurrentRevision))) - i-- - dAtA[i] = 0x32 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *StatefulSetUpdateStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ControllerRevision) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Data.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Revision)) - return n -} - -func (m *ControllerRevisionList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DaemonSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DaemonSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.UpdateStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - return n -} - -func (m *DaemonSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.CurrentNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberMisscheduled)) - n += 1 + sovGenerated(uint64(m.DesiredNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberReady)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.UpdatedNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberAvailable)) - n += 1 + sovGenerated(uint64(m.NumberUnavailable)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSetUpdateStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Deployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastUpdateTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Strategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - n += 2 - if m.ProgressDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds)) - } - return n -} - -func (m *DeploymentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - return n -} - -func (m *DeploymentStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ReplicaSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicaSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicaSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ReplicaSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - return n -} - -func (m *ReplicaSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RollingUpdateDaemonSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingUpdateDeployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.MaxSurge != nil { - l = m.MaxSurge.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingUpdateStatefulSetStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Partition != nil { - n += 1 + sovGenerated(uint64(*m.Partition)) - } - return n -} - -func (m *StatefulSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StatefulSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.VolumeClaimTemplates) > 0 { - for _, e := range m.VolumeClaimTemplates { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ServiceName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.PodManagementPolicy) - n += 1 + l + sovGenerated(uint64(l)) - l = m.UpdateStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - return n -} - -func (m *StatefulSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.CurrentReplicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - l = len(m.CurrentRevision) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UpdateRevision) - n += 1 + l + sovGenerated(uint64(l)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StatefulSetUpdateStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ControllerRevision) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ControllerRevision{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `}`, - }, "") - return s -} -func (this *ControllerRevisionList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ControllerRevision{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ControllerRevision", "ControllerRevision", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ControllerRevisionList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DaemonSetSpec", "DaemonSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DaemonSetStatus", "DaemonSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]DaemonSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DaemonSet", "DaemonSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DaemonSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetSpec{`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "DaemonSetUpdateStrategy", "DaemonSetUpdateStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DaemonSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DaemonSetCondition", "DaemonSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DaemonSetStatus{`, - `CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`, - `NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`, - `DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`, - `NumberReady:` + fmt.Sprintf("%v", this.NumberReady) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `UpdatedNumberScheduled:` + fmt.Sprintf("%v", this.UpdatedNumberScheduled) + `,`, - `NumberAvailable:` + fmt.Sprintf("%v", this.NumberAvailable) + `,`, - `NumberUnavailable:` + fmt.Sprintf("%v", this.NumberUnavailable) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetUpdateStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetUpdateStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDaemonSet", "RollingUpdateDaemonSet", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Deployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Deployment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Deployment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DeploymentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, - `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DeploymentCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DeploymentStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicaSetSpec", "ReplicaSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicaSetStatus", "ReplicaSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ReplicaSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ReplicaSet", "ReplicaSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ReplicaSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSetSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]ReplicaSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ReplicaSetCondition", "ReplicaSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ReplicaSetStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDaemonSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDaemonSet{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDeployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDeployment{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateStatefulSetStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateStatefulSetStrategy{`, - `Partition:` + valueToStringGenerated(this.Partition) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]StatefulSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&StatefulSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{" - for _, f := range this.VolumeClaimTemplates { - repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + "," - } - repeatedStringForVolumeClaimTemplates += "}" - s := strings.Join([]string{`&StatefulSetSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`, - `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, - `PodManagementPolicy:` + fmt.Sprintf("%v", this.PodManagementPolicy) + `,`, - `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "StatefulSetUpdateStrategy", "StatefulSetUpdateStrategy", 1), `&`, ``, 1) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]StatefulSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StatefulSetCondition", "StatefulSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&StatefulSetStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `CurrentRevision:` + fmt.Sprintf("%v", this.CurrentRevision) + `,`, - `UpdateRevision:` + fmt.Sprintf("%v", this.UpdateRevision) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetUpdateStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSetUpdateStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateStatefulSetStrategy", "RollingUpdateStatefulSetStrategy", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ControllerRevision) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControllerRevision: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControllerRevision: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ControllerRevisionList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ControllerRevision{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DaemonSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, DaemonSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType) - } - m.CurrentNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType) - } - m.NumberMisscheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberMisscheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType) - } - m.DesiredNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType) - } - m.NumberReady = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberReady |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType) - } - m.UpdatedNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType) - } - m.NumberAvailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberAvailable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType) - } - m.NumberUnavailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberUnavailable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DaemonSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetUpdateStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetUpdateStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DaemonSetUpdateStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDaemonSet{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Deployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Deployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Deployment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ProgressDeadlineSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) - } - m.UnavailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnavailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DeploymentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDeployment{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = ReplicaSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ReplicaSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) - } - m.FullyLabeledReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FullyLabeledReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, ReplicaSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDaemonSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxSurge == nil { - m.MaxSurge = &intstr.IntOrString{} - } - if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateStatefulSetStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Partition = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, StatefulSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{}) - if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentRevision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateRevision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, StatefulSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetUpdateStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateStatefulSetStrategy{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/apps/v1/generated.proto b/pseudo/k8s/api/apps/v1/generated.proto deleted file mode 100644 index ab70118b0..000000000 --- a/pseudo/k8s/api/apps/v1/generated.proto +++ /dev/null @@ -1,701 +0,0 @@ -/* -Copyright 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.apps.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -message ControllerRevision { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Data is the serialized representation of the state. - optional k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; - - // Revision indicates the revision of the state represented by Data. - optional int64 revision = 3; -} - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -message ControllerRevisionList { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of ControllerRevisions - repeated ControllerRevision items = 2; -} - -// DaemonSet represents the configuration of a daemon set. -message DaemonSet { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional DaemonSetSpec spec = 2; - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional DaemonSetStatus status = 3; -} - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -message DaemonSetCondition { - // Type of DaemonSet condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// DaemonSetList is a collection of daemon sets. -message DaemonSetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // A list of daemon sets. - repeated DaemonSet items = 2; -} - -// DaemonSetSpec is the specification of a daemon set. -message DaemonSetSpec { - // 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 - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; - - // 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 - optional k8s.io.api.core.v1.PodTemplateSpec template = 2; - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - optional DaemonSetUpdateStrategy updateStrategy = 3; - - // 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). - // +optional - optional int32 minReadySeconds = 4; - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - optional int32 revisionHistoryLimit = 6; -} - -// DaemonSetStatus represents the current status of a daemon set. -message DaemonSetStatus { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 currentNumberScheduled = 1; - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 numberMisscheduled = 2; - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 desiredNumberScheduled = 3; - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - optional int32 numberReady = 4; - - // The most recent generation observed by the daemon set controller. - // +optional - optional int64 observedGeneration = 5; - - // The total number of nodes that are running updated daemon pod - // +optional - optional int32 updatedNumberScheduled = 6; - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - optional int32 numberAvailable = 7; - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - optional int32 numberUnavailable = 8; - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - optional int32 collisionCount = 9; - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated DaemonSetCondition conditions = 10; -} - -// DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. -message DaemonSetUpdateStrategy { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if type = "RollingUpdate". - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - optional RollingUpdateDaemonSet rollingUpdate = 2; -} - -// Deployment enables declarative updates for Pods and ReplicaSets. -message Deployment { - // Standard object metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the Deployment. - // +optional - optional DeploymentSpec spec = 2; - - // Most recently observed status of the Deployment. - // +optional - optional DeploymentStatus status = 3; -} - -// DeploymentCondition describes the state of a deployment at a certain point. -message DeploymentCondition { - // Type of deployment condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time this condition was updated. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; - - // Last time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; - - // The reason for the condition's last transition. - optional string reason = 4; - - // A human readable message indicating details about the transition. - optional string message = 5; -} - -// DeploymentList is a list of Deployments. -message DeploymentList { - // Standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Deployments. - repeated Deployment items = 2; -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -message DeploymentSpec { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - optional int32 replicas = 1; - - // 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. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // Template describes the pods that will be created. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - optional DeploymentStrategy strategy = 4; - - // 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) - // +optional - optional int32 minReadySeconds = 5; - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - optional int32 revisionHistoryLimit = 6; - - // Indicates that the deployment is paused. - // +optional - optional bool paused = 7; - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - optional int32 progressDeadlineSeconds = 9; -} - -// DeploymentStatus is the most recently observed status of the Deployment. -message DeploymentStatus { - // The generation observed by the deployment controller. - // +optional - optional int64 observedGeneration = 1; - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - optional int32 replicas = 2; - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - optional int32 updatedReplicas = 3; - - // Total number of ready pods targeted by this deployment. - // +optional - optional int32 readyReplicas = 7; - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - optional int32 availableReplicas = 4; - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - optional int32 unavailableReplicas = 5; - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - repeated DeploymentCondition conditions = 6; - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - optional int32 collisionCount = 8; -} - -// DeploymentStrategy describes how to replace existing pods with new ones. -message DeploymentStrategy { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - optional RollingUpdateDeployment rollingUpdate = 2; -} - -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -message ReplicaSet { - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicaSetSpec spec = 2; - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicaSetStatus status = 3; -} - -// ReplicaSetCondition describes the state of a replica set at a certain point. -message ReplicaSetCondition { - // Type of replica set condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// ReplicaSetList is a collection of ReplicaSets. -message ReplicaSetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - repeated ReplicaSet items = 2; -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -message ReplicaSetSpec { - // 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 - // +optional - optional int32 replicas = 1; - - // 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) - // +optional - optional int32 minReadySeconds = 4; - - // 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 - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // 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 - // +optional - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -message ReplicaSetStatus { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - optional int32 replicas = 1; - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - optional int32 fullyLabeledReplicas = 2; - - // The number of ready replicas for this replica set. - // +optional - optional int32 readyReplicas = 4; - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - optional int32 availableReplicas = 5; - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - optional int64 observedGeneration = 3; - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated ReplicaSetCondition conditions = 6; -} - -// Spec to control the desired behavior of daemon set rolling update. -message RollingUpdateDaemonSet { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0. - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given - // time. The update starts by stopping at most 30% of those DaemonSet pods - // and then brings up new DaemonSet pods in their place. Once the new pods - // are available, it then proceeds onto other DaemonSet pods, thus ensuring - // that at least 70% of original number of DaemonSet pods are available at - // all times during the update. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; -} - -// Spec to control the desired behavior of rolling update. -message RollingUpdateDeployment { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; -} - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -message RollingUpdateStatefulSetStrategy { - // Partition indicates the ordinal at which the StatefulSet should be - // partitioned. - // Default value is 0. - // +optional - optional int32 partition = 1; -} - -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -message StatefulSet { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the desired identities of pods in this set. - // +optional - optional StatefulSetSpec spec = 2; - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - optional StatefulSetStatus status = 3; -} - -// StatefulSetCondition describes the state of a statefulset at a certain point. -message StatefulSetCondition { - // Type of statefulset condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// StatefulSetList is a collection of StatefulSets. -message StatefulSetList { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - repeated StatefulSet items = 2; -} - -// A StatefulSetSpec is the specification of a StatefulSet. -message StatefulSetSpec { - // 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. - // TODO: Consider a rename of this field. - // +optional - optional int32 replicas = 1; - - // 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 - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // 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. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // 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. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - repeated k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4; - - // 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. - optional string serviceName = 5; - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - optional string podManagementPolicy = 6; - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - optional StatefulSetUpdateStrategy updateStrategy = 7; - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - optional int32 revisionHistoryLimit = 8; -} - -// StatefulSetStatus represents the current state of a StatefulSet. -message StatefulSetStatus { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - optional int64 observedGeneration = 1; - - // replicas is the number of Pods created by the StatefulSet controller. - optional int32 replicas = 2; - - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - optional int32 readyReplicas = 3; - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - optional int32 currentReplicas = 4; - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - optional int32 updatedReplicas = 5; - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - optional string currentRevision = 6; - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - optional string updateRevision = 7; - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - optional int32 collisionCount = 9; - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated StatefulSetCondition conditions = 10; -} - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -message StatefulSetUpdateStrategy { - // Type indicates the type of the StatefulSetUpdateStrategy. - // Default is RollingUpdate. - // +optional - optional string type = 1; - - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - // +optional - optional RollingUpdateStatefulSetStrategy rollingUpdate = 2; -} - diff --git a/pseudo/k8s/api/apps/v1/register.go b/pseudo/k8s/api/apps/v1/register.go deleted file mode 100644 index 4a8e54678..000000000 --- a/pseudo/k8s/api/apps/v1/register.go +++ /dev/null @@ -1,60 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "apps" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Deployment{}, - &DeploymentList{}, - &StatefulSet{}, - &StatefulSetList{}, - &DaemonSet{}, - &DaemonSetList{}, - &ReplicaSet{}, - &ReplicaSetList{}, - &ControllerRevision{}, - &ControllerRevisionList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/apps/v1/types.go b/pseudo/k8s/api/apps/v1/types.go deleted file mode 100644 index 9adac3da4..000000000 --- a/pseudo/k8s/api/apps/v1/types.go +++ /dev/null @@ -1,826 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -const ( - ControllerRevisionHashLabelKey = "controller-revision-hash" - StatefulSetRevisionLabel = ControllerRevisionHashLabelKey - DeprecatedRollbackTo = "deprecated.deployment.rollback.to" - DeprecatedTemplateGeneration = "deprecated.daemonset.template.generation" - StatefulSetPodNameLabel = "statefulset.kubernetes.io/pod-name" -) - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -type StatefulSet struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the desired identities of pods in this set. - // +optional - Spec StatefulSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - Status StatefulSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// PodManagementPolicyType defines the policy for creating pods under a stateful set. -type PodManagementPolicyType string - -const ( - // OrderedReadyPodManagement will create pods in strictly increasing order on - // scale up and strictly decreasing order on scale down, progressing only when - // the previous pod is ready or terminated. At most one pod will be changed - // at any time. - OrderedReadyPodManagement PodManagementPolicyType = "OrderedReady" - // ParallelPodManagement will create and delete pods as soon as the stateful set - // replica count is changed, and will not wait for pods to be ready or complete - // termination. - ParallelPodManagement PodManagementPolicyType = "Parallel" -) - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -type StatefulSetUpdateStrategy struct { - // Type indicates the type of the StatefulSetUpdateStrategy. - // Default is RollingUpdate. - // +optional - Type StatefulSetUpdateStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=StatefulSetStrategyType"` - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - // +optional - RollingUpdate *RollingUpdateStatefulSetStrategy `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -// StatefulSetUpdateStrategyType is a string enumeration type that enumerates -// all possible update strategies for the StatefulSet controller. -type StatefulSetUpdateStrategyType string - -const ( - // RollingUpdateStatefulSetStrategyType indicates that update will be - // applied to all Pods in the StatefulSet with respect to the StatefulSet - // ordering constraints. When a scale operation is performed with this - // strategy, new Pods will be created from the specification version indicated - // by the StatefulSet's updateRevision. - RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate" - // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version - // tracking and ordered rolling restarts are disabled. Pods are recreated - // from the StatefulSetSpec when they are manually deleted. When a scale - // operation is performed with this strategy,specification version indicated - // by the StatefulSet's currentRevision. - OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete" -) - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -type RollingUpdateStatefulSetStrategy struct { - // Partition indicates the ordinal at which the StatefulSet should be - // partitioned. - // Default value is 0. - // +optional - Partition *int32 `json:"partition,omitempty" protobuf:"varint,1,opt,name=partition"` -} - -// A StatefulSetSpec is the specification of a StatefulSet. -type StatefulSetSpec struct { - // 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. - // TODO: Consider a rename of this field. - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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 - 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 - // will fulfill this Template, but have a unique identity from the rest - // of the StatefulSet. - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` - - // 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. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"` - - // 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. - ServiceName string `json:"serviceName" protobuf:"bytes,5,opt,name=serviceName"` - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - PodManagementPolicy PodManagementPolicyType `json:"podManagementPolicy,omitempty" protobuf:"bytes,6,opt,name=podManagementPolicy,casttype=PodManagementPolicyType"` - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - UpdateStrategy StatefulSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,7,opt,name=updateStrategy"` - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,8,opt,name=revisionHistoryLimit"` -} - -// StatefulSetStatus represents the current state of a StatefulSet. -type StatefulSetStatus struct { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // replicas is the number of Pods created by the StatefulSet controller. - Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"` - - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,3,opt,name=readyReplicas"` - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - CurrentReplicas int32 `json:"currentReplicas,omitempty" protobuf:"varint,4,opt,name=currentReplicas"` - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,5,opt,name=updatedReplicas"` - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - CurrentRevision string `json:"currentRevision,omitempty" protobuf:"bytes,6,opt,name=currentRevision"` - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - UpdateRevision string `json:"updateRevision,omitempty" protobuf:"bytes,7,opt,name=updateRevision"` - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"` - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []StatefulSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` -} - -type StatefulSetConditionType string - -// StatefulSetCondition describes the state of a statefulset at a certain point. -type StatefulSetCondition struct { - // Type of statefulset condition. - Type StatefulSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=StatefulSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StatefulSetList is a collection of StatefulSets. -type StatefulSetList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []StatefulSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Deployment enables declarative updates for Pods and ReplicaSets. -type Deployment struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the Deployment. - // +optional - Spec DeploymentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the Deployment. - // +optional - Status DeploymentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -type DeploymentSpec struct { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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. - 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"` - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - Strategy DeploymentStrategy `json:"strategy,omitempty" patchStrategy:"retainKeys" protobuf:"bytes,4,opt,name=strategy"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,5,opt,name=minReadySeconds"` - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` - - // Indicates that the deployment is paused. - // +optional - Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty" protobuf:"varint,9,opt,name=progressDeadlineSeconds"` -} - -const ( - // DefaultDeploymentUniqueLabelKey is the default key of the selector that is added - // to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets - // to select new pods (and old pods being select by new ReplicaSet). - DefaultDeploymentUniqueLabelKey string = "pod-template-hash" -) - -// DeploymentStrategy describes how to replace existing pods with new ones. -type DeploymentStrategy struct { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - Type DeploymentStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentStrategyType"` - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DeploymentStrategyType string - -const ( - // Kill all existing pods before creating new ones. - RecreateDeploymentStrategyType DeploymentStrategyType = "Recreate" - - // Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one. - RollingUpdateDeploymentStrategyType DeploymentStrategyType = "RollingUpdate" -) - -// Spec to control the desired behavior of rolling update. -type RollingUpdateDeployment struct { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` -} - -// DeploymentStatus is the most recently observed status of the Deployment. -type DeploymentStatus struct { - // The generation observed by the deployment controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"` - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"` - - // Total number of ready pods targeted by this deployment. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"` - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"` - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"` - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,8,opt,name=collisionCount"` -} - -type DeploymentConditionType string - -// These are valid conditions of a deployment. -const ( - // Available means the deployment is available, ie. at least the minimum available - // replicas required are up and running for at least minReadySeconds. - DeploymentAvailable DeploymentConditionType = "Available" - // Progressing means the deployment is progressing. Progress for a deployment is - // considered when a new replica set is created or adopted, and when new pods scale - // up or old pods scale down. Progress is not estimated for paused deployments or - // when progressDeadlineSeconds is not specified. - DeploymentProgressing DeploymentConditionType = "Progressing" - // ReplicaFailure is added in a deployment when one of its pods fails to be created - // or deleted. - DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure" -) - -// DeploymentCondition describes the state of a deployment at a certain point. -type DeploymentCondition struct { - // Type of deployment condition. - Type DeploymentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time this condition was updated. - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` - // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DeploymentList is a list of Deployments. -type DeploymentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Deployments. - Items []Deployment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. -type DaemonSetUpdateStrategy struct { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // +optional - Type DaemonSetUpdateStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` - - // Rolling update config params. Present only if type = "RollingUpdate". - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DaemonSetUpdateStrategyType string - -const ( - // Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. - RollingUpdateDaemonSetStrategyType DaemonSetUpdateStrategyType = "RollingUpdate" - - // Replace the old daemons only when it's killed - OnDeleteDaemonSetStrategyType DaemonSetUpdateStrategyType = "OnDelete" -) - -// Spec to control the desired behavior of daemon set rolling update. -type RollingUpdateDaemonSet struct { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0. - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given - // time. The update starts by stopping at most 30% of those DaemonSet pods - // and then brings up new DaemonSet pods in their place. Once the new pods - // are available, it then proceeds onto other DaemonSet pods, thus ensuring - // that at least 70% of original number of DaemonSet pods are available at - // all times during the update. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` -} - -// DaemonSetSpec is the specification of a daemon set. -type DaemonSetSpec struct { - // 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 - 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 - // 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 - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,2,opt,name=template"` - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,3,opt,name=updateStrategy"` - - // 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). - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` -} - -// DaemonSetStatus represents the current status of a daemon set. -type DaemonSetStatus struct { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - CurrentNumberScheduled int32 `json:"currentNumberScheduled" protobuf:"varint,1,opt,name=currentNumberScheduled"` - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - NumberMisscheduled int32 `json:"numberMisscheduled" protobuf:"varint,2,opt,name=numberMisscheduled"` - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - DesiredNumberScheduled int32 `json:"desiredNumberScheduled" protobuf:"varint,3,opt,name=desiredNumberScheduled"` - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - NumberReady int32 `json:"numberReady" protobuf:"varint,4,opt,name=numberReady"` - - // The most recent generation observed by the daemon set controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,5,opt,name=observedGeneration"` - - // The total number of nodes that are running updated daemon pod - // +optional - UpdatedNumberScheduled int32 `json:"updatedNumberScheduled,omitempty" protobuf:"varint,6,opt,name=updatedNumberScheduled"` - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - NumberAvailable int32 `json:"numberAvailable,omitempty" protobuf:"varint,7,opt,name=numberAvailable"` - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - NumberUnavailable int32 `json:"numberUnavailable,omitempty" protobuf:"varint,8,opt,name=numberUnavailable"` - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"` - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DaemonSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` -} - -type DaemonSetConditionType string - -// TODO: Add valid condition types of a DaemonSet. - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -type DaemonSetCondition struct { - // Type of DaemonSet condition. - Type DaemonSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DaemonSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DaemonSet represents the configuration of a daemon set. -type DaemonSet struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec DaemonSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status DaemonSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -const ( - // DefaultDaemonSetUniqueLabelKey is the default label key that is added - // to existing DaemonSet pods to distinguish between old and new - // DaemonSet pods during DaemonSet template updates. - DefaultDaemonSetUniqueLabelKey = ControllerRevisionHashLabelKey -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DaemonSetList is a collection of daemon sets. -type DaemonSetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // A list of daemon sets. - Items []DaemonSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -type ReplicaSet struct { - metav1.TypeMeta `json:",inline"` - - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ReplicaSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ReplicaSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ReplicaSetList is a collection of ReplicaSets. -type ReplicaSetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - Items []ReplicaSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -type ReplicaSetSpec struct { - // 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 - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` - - // 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 - 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. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - Template v1.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -type ReplicaSetStatus struct { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` - - // The number of ready replicas for this replica set. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` -} - -type ReplicaSetConditionType string - -// These are valid conditions of a replica set. -const ( - // ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created - // due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted - // due to kubelet being down or finalizers are failing. - ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure" -) - -// ReplicaSetCondition describes the state of a replica set at a certain point. -type ReplicaSetCondition struct { - // Type of replica set condition. - Type ReplicaSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicaSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -type ControllerRevision struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Data is the serialized representation of the state. - Data runtime.RawExtension `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"` - - // Revision indicates the revision of the state represented by Data. - Revision int64 `json:"revision" protobuf:"varint,3,opt,name=revision"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -type ControllerRevisionList struct { - metav1.TypeMeta `json:",inline"` - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of ControllerRevisions - Items []ControllerRevision `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/apps/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/apps/v1/types_swagger_doc_generated.go deleted file mode 100644 index 3f0299d03..000000000 --- a/pseudo/k8s/api/apps/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,365 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_ControllerRevision = map[string]string{ - "": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "data": "Data is the serialized representation of the state.", - "revision": "Revision indicates the revision of the state represented by Data.", -} - -func (ControllerRevision) SwaggerDoc() map[string]string { - return map_ControllerRevision -} - -var map_ControllerRevisionList = map[string]string{ - "": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of ControllerRevisions", -} - -func (ControllerRevisionList) SwaggerDoc() map[string]string { - return map_ControllerRevisionList -} - -var map_DaemonSet = map[string]string{ - "": "DaemonSet represents the configuration of a daemon set.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (DaemonSet) SwaggerDoc() map[string]string { - return map_DaemonSet -} - -var map_DaemonSetCondition = map[string]string{ - "": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", - "type": "Type of DaemonSet condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DaemonSetCondition) SwaggerDoc() map[string]string { - return map_DaemonSetCondition -} - -var map_DaemonSetList = map[string]string{ - "": "DaemonSetList is a collection of daemon sets.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "A list of daemon sets.", -} - -func (DaemonSetList) SwaggerDoc() map[string]string { - return map_DaemonSetList -} - -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. 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).", - "revisionHistoryLimit": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", -} - -func (DaemonSetSpec) SwaggerDoc() map[string]string { - return map_DaemonSetSpec -} - -var map_DaemonSetStatus = map[string]string{ - "": "DaemonSetStatus represents the current status of a daemon set.", - "currentNumberScheduled": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "numberMisscheduled": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "desiredNumberScheduled": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "numberReady": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "observedGeneration": "The most recent generation observed by the daemon set controller.", - "updatedNumberScheduled": "The total number of nodes that are running updated daemon pod", - "numberAvailable": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "numberUnavailable": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "collisionCount": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "conditions": "Represents the latest available observations of a DaemonSet's current state.", -} - -func (DaemonSetStatus) SwaggerDoc() map[string]string { - return map_DaemonSetStatus -} - -var map_DaemonSetUpdateStrategy = map[string]string{ - "": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", - "type": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", - "rollingUpdate": "Rolling update config params. Present only if type = \"RollingUpdate\".", -} - -func (DaemonSetUpdateStrategy) SwaggerDoc() map[string]string { - return map_DaemonSetUpdateStrategy -} - -var map_Deployment = map[string]string{ - "": "Deployment enables declarative updates for Pods and ReplicaSets.", - "metadata": "Standard object metadata.", - "spec": "Specification of the desired behavior of the Deployment.", - "status": "Most recently observed status of the Deployment.", -} - -func (Deployment) SwaggerDoc() map[string]string { - return map_Deployment -} - -var map_DeploymentCondition = map[string]string{ - "": "DeploymentCondition describes the state of a deployment at a certain point.", - "type": "Type of deployment condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastUpdateTime": "The last time this condition was updated.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DeploymentCondition) SwaggerDoc() map[string]string { - return map_DeploymentCondition -} - -var map_DeploymentList = map[string]string{ - "": "DeploymentList is a list of Deployments.", - "metadata": "Standard list metadata.", - "items": "Items is the list of Deployments.", -} - -func (DeploymentList) SwaggerDoc() map[string]string { - return map_DeploymentList -} - -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. 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)", - "revisionHistoryLimit": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", - "paused": "Indicates that the deployment is paused.", - "progressDeadlineSeconds": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", -} - -func (DeploymentSpec) SwaggerDoc() map[string]string { - return map_DeploymentSpec -} - -var map_DeploymentStatus = map[string]string{ - "": "DeploymentStatus is the most recently observed status of the Deployment.", - "observedGeneration": "The generation observed by the deployment controller.", - "replicas": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "readyReplicas": "Total number of ready pods targeted by this deployment.", - "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", - "conditions": "Represents the latest available observations of a deployment's current state.", - "collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", -} - -func (DeploymentStatus) SwaggerDoc() map[string]string { - return map_DeploymentStatus -} - -var map_DeploymentStrategy = map[string]string{ - "": "DeploymentStrategy describes how to replace existing pods with new ones.", - "type": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "rollingUpdate": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", -} - -func (DeploymentStrategy) SwaggerDoc() map[string]string { - return map_DeploymentStrategy -} - -var map_ReplicaSet = map[string]string{ - "": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", - "metadata": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (ReplicaSet) SwaggerDoc() map[string]string { - return map_ReplicaSet -} - -var map_ReplicaSetCondition = map[string]string{ - "": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "type": "Type of replica set condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "The last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (ReplicaSetCondition) SwaggerDoc() map[string]string { - return map_ReplicaSetCondition -} - -var map_ReplicaSetList = map[string]string{ - "": "ReplicaSetList is a collection of ReplicaSets.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", -} - -func (ReplicaSetList) SwaggerDoc() map[string]string { - return map_ReplicaSetList -} - -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. 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", -} - -func (ReplicaSetSpec) SwaggerDoc() map[string]string { - return map_ReplicaSetSpec -} - -var map_ReplicaSetStatus = map[string]string{ - "": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "replicas": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", - "fullyLabeledReplicas": "The number of pods that have labels matching the labels of the pod template of the replicaset.", - "readyReplicas": "The number of ready replicas for this replica set.", - "availableReplicas": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "conditions": "Represents the latest available observations of a replica set's current state.", -} - -func (ReplicaSetStatus) SwaggerDoc() map[string]string { - return map_ReplicaSetStatus -} - -var map_RollingUpdateDaemonSet = map[string]string{ - "": "Spec to control the desired behavior of daemon set rolling update.", - "maxUnavailable": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", -} - -func (RollingUpdateDaemonSet) SwaggerDoc() map[string]string { - return map_RollingUpdateDaemonSet -} - -var map_RollingUpdateDeployment = map[string]string{ - "": "Spec to control the desired behavior of rolling update.", - "maxUnavailable": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "maxSurge": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", -} - -func (RollingUpdateDeployment) SwaggerDoc() map[string]string { - return map_RollingUpdateDeployment -} - -var map_RollingUpdateStatefulSetStrategy = map[string]string{ - "": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "partition": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", -} - -func (RollingUpdateStatefulSetStrategy) SwaggerDoc() map[string]string { - return map_RollingUpdateStatefulSetStrategy -} - -var map_StatefulSet = map[string]string{ - "": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", - "spec": "Spec defines the desired identities of pods in this set.", - "status": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", -} - -func (StatefulSet) SwaggerDoc() map[string]string { - return map_StatefulSet -} - -var map_StatefulSetCondition = map[string]string{ - "": "StatefulSetCondition describes the state of a statefulset at a certain point.", - "type": "Type of statefulset condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (StatefulSetCondition) SwaggerDoc() map[string]string { - return map_StatefulSetCondition -} - -var map_StatefulSetList = map[string]string{ - "": "StatefulSetList is a collection of StatefulSets.", -} - -func (StatefulSetList) SwaggerDoc() map[string]string { - return map_StatefulSetList -} - -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. 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.", - "podManagementPolicy": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", - "updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", -} - -func (StatefulSetSpec) SwaggerDoc() map[string]string { - return map_StatefulSetSpec -} - -var map_StatefulSetStatus = map[string]string{ - "": "StatefulSetStatus represents the current state of a StatefulSet.", - "observedGeneration": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", - "replicas": "replicas is the number of Pods created by the StatefulSet controller.", - "readyReplicas": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "currentReplicas": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "updatedReplicas": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", - "currentRevision": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", - "updateRevision": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", - "collisionCount": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "conditions": "Represents the latest available observations of a statefulset's current state.", -} - -func (StatefulSetStatus) SwaggerDoc() map[string]string { - return map_StatefulSetStatus -} - -var map_StatefulSetUpdateStrategy = map[string]string{ - "": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", - "type": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", - "rollingUpdate": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", -} - -func (StatefulSetUpdateStrategy) SwaggerDoc() map[string]string { - return map_StatefulSetUpdateStrategy -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/apps/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/apps/v1/zz_generated.deepcopy.go deleted file mode 100644 index 679423b79..000000000 --- a/pseudo/k8s/api/apps/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,772 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Data.DeepCopyInto(&out.Data) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevision. -func (in *ControllerRevision) DeepCopy() *ControllerRevision { - if in == nil { - return nil - } - out := new(ControllerRevision) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ControllerRevision) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ControllerRevisionList) DeepCopyInto(out *ControllerRevisionList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ControllerRevision, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevisionList. -func (in *ControllerRevisionList) DeepCopy() *ControllerRevisionList { - if in == nil { - return nil - } - out := new(ControllerRevisionList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ControllerRevisionList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSet) DeepCopyInto(out *DaemonSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSet. -func (in *DaemonSet) DeepCopy() *DaemonSet { - if in == nil { - return nil - } - out := new(DaemonSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DaemonSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetCondition) DeepCopyInto(out *DaemonSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetCondition. -func (in *DaemonSetCondition) DeepCopy() *DaemonSetCondition { - if in == nil { - return nil - } - out := new(DaemonSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetList) DeepCopyInto(out *DaemonSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DaemonSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetList. -func (in *DaemonSetList) DeepCopy() *DaemonSetList { - if in == nil { - return nil - } - out := new(DaemonSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DaemonSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpec. -func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec { - if in == nil { - return nil - } - out := new(DaemonSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetStatus) DeepCopyInto(out *DaemonSetStatus) { - *out = *in - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DaemonSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetStatus. -func (in *DaemonSetStatus) DeepCopy() *DaemonSetStatus { - if in == nil { - return nil - } - out := new(DaemonSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetUpdateStrategy) DeepCopyInto(out *DaemonSetUpdateStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDaemonSet) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetUpdateStrategy. -func (in *DaemonSetUpdateStrategy) DeepCopy() *DaemonSetUpdateStrategy { - if in == nil { - return nil - } - out := new(DaemonSetUpdateStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Deployment) DeepCopyInto(out *Deployment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment. -func (in *Deployment) DeepCopy() *Deployment { - if in == nil { - return nil - } - out := new(Deployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Deployment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentCondition) DeepCopyInto(out *DeploymentCondition) { - *out = *in - in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentCondition. -func (in *DeploymentCondition) DeepCopy() *DeploymentCondition { - if in == nil { - return nil - } - out := new(DeploymentCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentList) DeepCopyInto(out *DeploymentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Deployment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentList. -func (in *DeploymentList) DeepCopy() *DeploymentList { - if in == nil { - return nil - } - out := new(DeploymentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeploymentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.Strategy.DeepCopyInto(&out.Strategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - if in.ProgressDeadlineSeconds != nil { - in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec. -func (in *DeploymentSpec) DeepCopy() *DeploymentSpec { - if in == nil { - return nil - } - out := new(DeploymentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DeploymentCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus. -func (in *DeploymentStatus) DeepCopy() *DeploymentStatus { - if in == nil { - return nil - } - out := new(DeploymentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStrategy) DeepCopyInto(out *DeploymentStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDeployment) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStrategy. -func (in *DeploymentStrategy) DeepCopy() *DeploymentStrategy { - if in == nil { - return nil - } - out := new(DeploymentStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSet) DeepCopyInto(out *ReplicaSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSet. -func (in *ReplicaSet) DeepCopy() *ReplicaSet { - if in == nil { - return nil - } - out := new(ReplicaSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicaSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetCondition) DeepCopyInto(out *ReplicaSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetCondition. -func (in *ReplicaSetCondition) DeepCopy() *ReplicaSetCondition { - if in == nil { - return nil - } - out := new(ReplicaSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetList) DeepCopyInto(out *ReplicaSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ReplicaSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetList. -func (in *ReplicaSetList) DeepCopy() *ReplicaSetList { - if in == nil { - return nil - } - out := new(ReplicaSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicaSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetSpec) DeepCopyInto(out *ReplicaSetSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetSpec. -func (in *ReplicaSetSpec) DeepCopy() *ReplicaSetSpec { - if in == nil { - return nil - } - out := new(ReplicaSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetStatus) DeepCopyInto(out *ReplicaSetStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]ReplicaSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetStatus. -func (in *ReplicaSetStatus) DeepCopy() *ReplicaSetStatus { - if in == nil { - return nil - } - out := new(ReplicaSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDaemonSet) DeepCopyInto(out *RollingUpdateDaemonSet) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDaemonSet. -func (in *RollingUpdateDaemonSet) DeepCopy() *RollingUpdateDaemonSet { - if in == nil { - return nil - } - out := new(RollingUpdateDaemonSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDeployment) DeepCopyInto(out *RollingUpdateDeployment) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - if in.MaxSurge != nil { - in, out := &in.MaxSurge, &out.MaxSurge - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDeployment. -func (in *RollingUpdateDeployment) DeepCopy() *RollingUpdateDeployment { - if in == nil { - return nil - } - out := new(RollingUpdateDeployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateStatefulSetStrategy) DeepCopyInto(out *RollingUpdateStatefulSetStrategy) { - *out = *in - if in.Partition != nil { - in, out := &in.Partition, &out.Partition - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateStatefulSetStrategy. -func (in *RollingUpdateStatefulSetStrategy) DeepCopy() *RollingUpdateStatefulSetStrategy { - if in == nil { - return nil - } - out := new(RollingUpdateStatefulSetStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSet) DeepCopyInto(out *StatefulSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSet. -func (in *StatefulSet) DeepCopy() *StatefulSet { - if in == nil { - return nil - } - out := new(StatefulSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StatefulSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetCondition) DeepCopyInto(out *StatefulSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetCondition. -func (in *StatefulSetCondition) DeepCopy() *StatefulSetCondition { - if in == nil { - return nil - } - out := new(StatefulSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetList) DeepCopyInto(out *StatefulSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]StatefulSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetList. -func (in *StatefulSetList) DeepCopy() *StatefulSetList { - if in == nil { - return nil - } - out := new(StatefulSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StatefulSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - if in.VolumeClaimTemplates != nil { - in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]corev1.PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec. -func (in *StatefulSetSpec) DeepCopy() *StatefulSetSpec { - if in == nil { - return nil - } - out := new(StatefulSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetStatus) DeepCopyInto(out *StatefulSetStatus) { - *out = *in - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]StatefulSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetStatus. -func (in *StatefulSetStatus) DeepCopy() *StatefulSetStatus { - if in == nil { - return nil - } - out := new(StatefulSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetUpdateStrategy) DeepCopyInto(out *StatefulSetUpdateStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateStatefulSetStrategy) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetUpdateStrategy. -func (in *StatefulSetUpdateStrategy) DeepCopy() *StatefulSetUpdateStrategy { - if in == nil { - return nil - } - out := new(StatefulSetUpdateStrategy) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/apps/v1beta1/doc.go b/pseudo/k8s/api/apps/v1beta1/doc.go deleted file mode 100644 index 00d22ed84..000000000 --- a/pseudo/k8s/api/apps/v1beta1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta1" diff --git a/pseudo/k8s/api/apps/v1beta1/generated.pb.go b/pseudo/k8s/api/apps/v1beta1/generated.pb.go deleted file mode 100644 index c144d7ac0..000000000 --- a/pseudo/k8s/api/apps/v1beta1/generated.pb.go +++ /dev/null @@ -1,6272 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ControllerRevision) Reset() { *m = ControllerRevision{} } -func (*ControllerRevision) ProtoMessage() {} -func (*ControllerRevision) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{0} -} -func (m *ControllerRevision) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControllerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ControllerRevision) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControllerRevision.Merge(m, src) -} -func (m *ControllerRevision) XXX_Size() int { - return m.Size() -} -func (m *ControllerRevision) XXX_DiscardUnknown() { - xxx_messageInfo_ControllerRevision.DiscardUnknown(m) -} - -var xxx_messageInfo_ControllerRevision proto.InternalMessageInfo - -func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} } -func (*ControllerRevisionList) ProtoMessage() {} -func (*ControllerRevisionList) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{1} -} -func (m *ControllerRevisionList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControllerRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ControllerRevisionList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControllerRevisionList.Merge(m, src) -} -func (m *ControllerRevisionList) XXX_Size() int { - return m.Size() -} -func (m *ControllerRevisionList) XXX_DiscardUnknown() { - xxx_messageInfo_ControllerRevisionList.DiscardUnknown(m) -} - -var xxx_messageInfo_ControllerRevisionList proto.InternalMessageInfo - -func (m *Deployment) Reset() { *m = Deployment{} } -func (*Deployment) ProtoMessage() {} -func (*Deployment) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{2} -} -func (m *Deployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Deployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deployment.Merge(m, src) -} -func (m *Deployment) XXX_Size() int { - return m.Size() -} -func (m *Deployment) XXX_DiscardUnknown() { - xxx_messageInfo_Deployment.DiscardUnknown(m) -} - -var xxx_messageInfo_Deployment proto.InternalMessageInfo - -func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } -func (*DeploymentCondition) ProtoMessage() {} -func (*DeploymentCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{3} -} -func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentCondition.Merge(m, src) -} -func (m *DeploymentCondition) XXX_Size() int { - return m.Size() -} -func (m *DeploymentCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo - -func (m *DeploymentList) Reset() { *m = DeploymentList{} } -func (*DeploymentList) ProtoMessage() {} -func (*DeploymentList) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{4} -} -func (m *DeploymentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentList.Merge(m, src) -} -func (m *DeploymentList) XXX_Size() int { - return m.Size() -} -func (m *DeploymentList) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentList.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentList proto.InternalMessageInfo - -func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} } -func (*DeploymentRollback) ProtoMessage() {} -func (*DeploymentRollback) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{5} -} -func (m *DeploymentRollback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentRollback) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentRollback.Merge(m, src) -} -func (m *DeploymentRollback) XXX_Size() int { - return m.Size() -} -func (m *DeploymentRollback) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentRollback.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentRollback proto.InternalMessageInfo - -func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } -func (*DeploymentSpec) ProtoMessage() {} -func (*DeploymentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{6} -} -func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentSpec.Merge(m, src) -} -func (m *DeploymentSpec) XXX_Size() int { - return m.Size() -} -func (m *DeploymentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo - -func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } -func (*DeploymentStatus) ProtoMessage() {} -func (*DeploymentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{7} -} -func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStatus.Merge(m, src) -} -func (m *DeploymentStatus) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo - -func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } -func (*DeploymentStrategy) ProtoMessage() {} -func (*DeploymentStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{8} -} -func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStrategy.Merge(m, src) -} -func (m *DeploymentStrategy) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo - -func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } -func (*RollbackConfig) ProtoMessage() {} -func (*RollbackConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{9} -} -func (m *RollbackConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollbackConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollbackConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollbackConfig.Merge(m, src) -} -func (m *RollbackConfig) XXX_Size() int { - return m.Size() -} -func (m *RollbackConfig) XXX_DiscardUnknown() { - xxx_messageInfo_RollbackConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_RollbackConfig proto.InternalMessageInfo - -func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } -func (*RollingUpdateDeployment) ProtoMessage() {} -func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{10} -} -func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDeployment.Merge(m, src) -} -func (m *RollingUpdateDeployment) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDeployment) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo - -func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} } -func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {} -func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{11} -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateStatefulSetStrategy.Merge(m, src) -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateStatefulSetStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateStatefulSetStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateStatefulSetStrategy proto.InternalMessageInfo - -func (m *Scale) Reset() { *m = Scale{} } -func (*Scale) ProtoMessage() {} -func (*Scale) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{12} -} -func (m *Scale) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Scale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Scale) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scale.Merge(m, src) -} -func (m *Scale) XXX_Size() int { - return m.Size() -} -func (m *Scale) XXX_DiscardUnknown() { - xxx_messageInfo_Scale.DiscardUnknown(m) -} - -var xxx_messageInfo_Scale proto.InternalMessageInfo - -func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } -func (*ScaleSpec) ProtoMessage() {} -func (*ScaleSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{13} -} -func (m *ScaleSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleSpec.Merge(m, src) -} -func (m *ScaleSpec) XXX_Size() int { - return m.Size() -} -func (m *ScaleSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleSpec proto.InternalMessageInfo - -func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } -func (*ScaleStatus) ProtoMessage() {} -func (*ScaleStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{14} -} -func (m *ScaleStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleStatus.Merge(m, src) -} -func (m *ScaleStatus) XXX_Size() int { - return m.Size() -} -func (m *ScaleStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleStatus proto.InternalMessageInfo - -func (m *StatefulSet) Reset() { *m = StatefulSet{} } -func (*StatefulSet) ProtoMessage() {} -func (*StatefulSet) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{15} -} -func (m *StatefulSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSet.Merge(m, src) -} -func (m *StatefulSet) XXX_Size() int { - return m.Size() -} -func (m *StatefulSet) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSet.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSet proto.InternalMessageInfo - -func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} } -func (*StatefulSetCondition) ProtoMessage() {} -func (*StatefulSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{16} -} -func (m *StatefulSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetCondition.Merge(m, src) -} -func (m *StatefulSetCondition) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetCondition proto.InternalMessageInfo - -func (m *StatefulSetList) Reset() { *m = StatefulSetList{} } -func (*StatefulSetList) ProtoMessage() {} -func (*StatefulSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{17} -} -func (m *StatefulSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetList.Merge(m, src) -} -func (m *StatefulSetList) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetList) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetList proto.InternalMessageInfo - -func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } -func (*StatefulSetSpec) ProtoMessage() {} -func (*StatefulSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{18} -} -func (m *StatefulSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetSpec.Merge(m, src) -} -func (m *StatefulSetSpec) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetSpec proto.InternalMessageInfo - -func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} } -func (*StatefulSetStatus) ProtoMessage() {} -func (*StatefulSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{19} -} -func (m *StatefulSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetStatus.Merge(m, src) -} -func (m *StatefulSetStatus) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetStatus proto.InternalMessageInfo - -func (m *StatefulSetUpdateStrategy) Reset() { *m = StatefulSetUpdateStrategy{} } -func (*StatefulSetUpdateStrategy) ProtoMessage() {} -func (*StatefulSetUpdateStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_2a07313e8f66e805, []int{20} -} -func (m *StatefulSetUpdateStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetUpdateStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetUpdateStrategy.Merge(m, src) -} -func (m *StatefulSetUpdateStrategy) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetUpdateStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetUpdateStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetUpdateStrategy proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ControllerRevision)(nil), "k8s.io.api.apps.v1beta1.ControllerRevision") - proto.RegisterType((*ControllerRevisionList)(nil), "k8s.io.api.apps.v1beta1.ControllerRevisionList") - proto.RegisterType((*Deployment)(nil), "k8s.io.api.apps.v1beta1.Deployment") - proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.apps.v1beta1.DeploymentCondition") - proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.apps.v1beta1.DeploymentList") - proto.RegisterType((*DeploymentRollback)(nil), "k8s.io.api.apps.v1beta1.DeploymentRollback") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.apps.v1beta1.DeploymentRollback.UpdatedAnnotationsEntry") - proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.apps.v1beta1.DeploymentSpec") - proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.apps.v1beta1.DeploymentStatus") - proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.apps.v1beta1.DeploymentStrategy") - proto.RegisterType((*RollbackConfig)(nil), "k8s.io.api.apps.v1beta1.RollbackConfig") - proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.apps.v1beta1.RollingUpdateDeployment") - proto.RegisterType((*RollingUpdateStatefulSetStrategy)(nil), "k8s.io.api.apps.v1beta1.RollingUpdateStatefulSetStrategy") - proto.RegisterType((*Scale)(nil), "k8s.io.api.apps.v1beta1.Scale") - proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.apps.v1beta1.ScaleSpec") - proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.apps.v1beta1.ScaleStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.apps.v1beta1.ScaleStatus.SelectorEntry") - proto.RegisterType((*StatefulSet)(nil), "k8s.io.api.apps.v1beta1.StatefulSet") - proto.RegisterType((*StatefulSetCondition)(nil), "k8s.io.api.apps.v1beta1.StatefulSetCondition") - proto.RegisterType((*StatefulSetList)(nil), "k8s.io.api.apps.v1beta1.StatefulSetList") - proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.api.apps.v1beta1.StatefulSetSpec") - proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.api.apps.v1beta1.StatefulSetStatus") - proto.RegisterType((*StatefulSetUpdateStrategy)(nil), "k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta1/generated.proto", fileDescriptor_2a07313e8f66e805) -} - -var fileDescriptor_2a07313e8f66e805 = []byte{ - // 1855 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcd, 0x6f, 0x24, 0x47, - 0x15, 0x77, 0x8f, 0x67, 0xec, 0xf1, 0x73, 0x3c, 0xde, 0x2d, 0x9b, 0xf5, 0xc4, 0x81, 0xb1, 0x35, - 0x44, 0x89, 0xf3, 0xe1, 0x9e, 0xac, 0x13, 0xa2, 0x64, 0x17, 0x45, 0x78, 0xbc, 0x4b, 0xb2, 0x91, - 0x8d, 0x9d, 0xb2, 0x1d, 0x44, 0x00, 0x29, 0x35, 0x3d, 0xb5, 0xb3, 0x1d, 0xf7, 0x97, 0xba, 0xab, - 0x87, 0x1d, 0x71, 0xe1, 0x0f, 0x40, 0x0a, 0x67, 0xfe, 0x0a, 0x8e, 0x08, 0x6e, 0x9c, 0xf6, 0x82, - 0x14, 0x71, 0x21, 0x27, 0x8b, 0x9d, 0x5c, 0x81, 0x1b, 0x97, 0x95, 0x90, 0x50, 0x55, 0x57, 0x7f, - 0x77, 0xdb, 0x6d, 0xa4, 0xb5, 0x04, 0xb7, 0xe9, 0x7a, 0xef, 0xfd, 0x5e, 0x7d, 0xbc, 0xaf, 0xdf, - 0xc0, 0x0f, 0xce, 0xde, 0xf3, 0x54, 0xdd, 0xee, 0x9d, 0xf9, 0x03, 0xea, 0x5a, 0x94, 0x51, 0xaf, - 0x37, 0xa6, 0xd6, 0xd0, 0x76, 0x7b, 0x52, 0x40, 0x1c, 0xbd, 0x47, 0x1c, 0xc7, 0xeb, 0x8d, 0x6f, - 0x0f, 0x28, 0x23, 0xb7, 0x7b, 0x23, 0x6a, 0x51, 0x97, 0x30, 0x3a, 0x54, 0x1d, 0xd7, 0x66, 0x36, - 0x5a, 0x0b, 0x14, 0x55, 0xe2, 0xe8, 0x2a, 0x57, 0x54, 0xa5, 0xe2, 0xfa, 0xf6, 0x48, 0x67, 0x8f, - 0xfc, 0x81, 0xaa, 0xd9, 0x66, 0x6f, 0x64, 0x8f, 0xec, 0x9e, 0xd0, 0x1f, 0xf8, 0x0f, 0xc5, 0x97, - 0xf8, 0x10, 0xbf, 0x02, 0x9c, 0xf5, 0x6e, 0xc2, 0xa1, 0x66, 0xbb, 0xb4, 0x37, 0xce, 0xf9, 0x5a, - 0x7f, 0x27, 0xd6, 0x31, 0x89, 0xf6, 0x48, 0xb7, 0xa8, 0x3b, 0xe9, 0x39, 0x67, 0x23, 0xbe, 0xe0, - 0xf5, 0x4c, 0xca, 0x48, 0x91, 0x55, 0xaf, 0xcc, 0xca, 0xf5, 0x2d, 0xa6, 0x9b, 0x34, 0x67, 0xf0, - 0xee, 0x65, 0x06, 0x9e, 0xf6, 0x88, 0x9a, 0x24, 0x67, 0xf7, 0x76, 0x99, 0x9d, 0xcf, 0x74, 0xa3, - 0xa7, 0x5b, 0xcc, 0x63, 0x6e, 0xd6, 0xa8, 0xfb, 0x2f, 0x05, 0xd0, 0x9e, 0x6d, 0x31, 0xd7, 0x36, - 0x0c, 0xea, 0x62, 0x3a, 0xd6, 0x3d, 0xdd, 0xb6, 0xd0, 0xe7, 0xd0, 0xe4, 0xe7, 0x19, 0x12, 0x46, - 0xda, 0xca, 0xa6, 0xb2, 0xb5, 0xb8, 0xf3, 0x96, 0x1a, 0xdf, 0x74, 0x04, 0xaf, 0x3a, 0x67, 0x23, - 0xbe, 0xe0, 0xa9, 0x5c, 0x5b, 0x1d, 0xdf, 0x56, 0x0f, 0x07, 0x5f, 0x50, 0x8d, 0x1d, 0x50, 0x46, - 0xfa, 0xe8, 0xc9, 0xf9, 0xc6, 0xcc, 0xf4, 0x7c, 0x03, 0xe2, 0x35, 0x1c, 0xa1, 0xa2, 0x43, 0xa8, - 0x0b, 0xf4, 0x9a, 0x40, 0xdf, 0x2e, 0x45, 0x97, 0x87, 0x56, 0x31, 0xf9, 0xc5, 0xfd, 0xc7, 0x8c, - 0x5a, 0x7c, 0x7b, 0xfd, 0x17, 0x24, 0x74, 0xfd, 0x1e, 0x61, 0x04, 0x0b, 0x20, 0xf4, 0x26, 0x34, - 0x5d, 0xb9, 0xfd, 0xf6, 0xec, 0xa6, 0xb2, 0x35, 0xdb, 0xbf, 0x21, 0xb5, 0x9a, 0xe1, 0xb1, 0x70, - 0xa4, 0xd1, 0x7d, 0xa2, 0xc0, 0xad, 0xfc, 0xb9, 0xf7, 0x75, 0x8f, 0xa1, 0x9f, 0xe5, 0xce, 0xae, - 0x56, 0x3b, 0x3b, 0xb7, 0x16, 0x27, 0x8f, 0x1c, 0x87, 0x2b, 0x89, 0x73, 0x1f, 0x41, 0x43, 0x67, - 0xd4, 0xf4, 0xda, 0xb5, 0xcd, 0xd9, 0xad, 0xc5, 0x9d, 0x37, 0xd4, 0x92, 0x00, 0x56, 0xf3, 0xbb, - 0xeb, 0x2f, 0x49, 0xdc, 0xc6, 0x03, 0x8e, 0x80, 0x03, 0xa0, 0xee, 0xaf, 0x6b, 0x00, 0xf7, 0xa8, - 0x63, 0xd8, 0x13, 0x93, 0x5a, 0xec, 0x1a, 0x9e, 0xee, 0x01, 0xd4, 0x3d, 0x87, 0x6a, 0xf2, 0xe9, - 0x5e, 0x2d, 0x3d, 0x41, 0xbc, 0xa9, 0x63, 0x87, 0x6a, 0xf1, 0xa3, 0xf1, 0x2f, 0x2c, 0x20, 0xd0, - 0x27, 0x30, 0xe7, 0x31, 0xc2, 0x7c, 0x4f, 0x3c, 0xd9, 0xe2, 0xce, 0x6b, 0x55, 0xc0, 0x84, 0x41, - 0xbf, 0x25, 0xe1, 0xe6, 0x82, 0x6f, 0x2c, 0x81, 0xba, 0x7f, 0x9d, 0x85, 0x95, 0x58, 0x79, 0xcf, - 0xb6, 0x86, 0x3a, 0xe3, 0x21, 0x7d, 0x17, 0xea, 0x6c, 0xe2, 0x50, 0x71, 0x27, 0x0b, 0xfd, 0x57, - 0xc3, 0xcd, 0x9c, 0x4c, 0x1c, 0xfa, 0xec, 0x7c, 0x63, 0xad, 0xc0, 0x84, 0x8b, 0xb0, 0x30, 0x42, - 0xfb, 0xd1, 0x3e, 0x6b, 0xc2, 0xfc, 0x9d, 0xb4, 0xf3, 0x67, 0xe7, 0x1b, 0x05, 0x05, 0x44, 0x8d, - 0x90, 0xd2, 0x5b, 0x44, 0x5f, 0x40, 0xcb, 0x20, 0x1e, 0x3b, 0x75, 0x86, 0x84, 0xd1, 0x13, 0xdd, - 0xa4, 0xed, 0x39, 0x71, 0xfa, 0xd7, 0xab, 0x3d, 0x14, 0xb7, 0xe8, 0xdf, 0x92, 0x3b, 0x68, 0xed, - 0xa7, 0x90, 0x70, 0x06, 0x19, 0x8d, 0x01, 0xf1, 0x95, 0x13, 0x97, 0x58, 0x5e, 0x70, 0x2a, 0xee, - 0x6f, 0xfe, 0xca, 0xfe, 0xd6, 0xa5, 0x3f, 0xb4, 0x9f, 0x43, 0xc3, 0x05, 0x1e, 0xd0, 0x2b, 0x30, - 0xe7, 0x52, 0xe2, 0xd9, 0x56, 0xbb, 0x2e, 0x6e, 0x2c, 0x7a, 0x2e, 0x2c, 0x56, 0xb1, 0x94, 0xa2, - 0xd7, 0x60, 0xde, 0xa4, 0x9e, 0x47, 0x46, 0xb4, 0xdd, 0x10, 0x8a, 0xcb, 0x52, 0x71, 0xfe, 0x20, - 0x58, 0xc6, 0xa1, 0xbc, 0xfb, 0x7b, 0x05, 0x5a, 0xf1, 0x33, 0x5d, 0x43, 0xae, 0x7e, 0x94, 0xce, - 0xd5, 0xef, 0x56, 0x08, 0xce, 0x92, 0x1c, 0xfd, 0x7b, 0x0d, 0x50, 0xac, 0x84, 0x6d, 0xc3, 0x18, - 0x10, 0xed, 0x0c, 0x6d, 0x42, 0xdd, 0x22, 0x66, 0x18, 0x93, 0x51, 0x82, 0xfc, 0x88, 0x98, 0x14, - 0x0b, 0x09, 0xfa, 0x52, 0x01, 0xe4, 0x8b, 0xd7, 0x1c, 0xee, 0x5a, 0x96, 0xcd, 0x08, 0xbf, 0xe0, - 0x70, 0x43, 0x7b, 0x15, 0x36, 0x14, 0xfa, 0x52, 0x4f, 0x73, 0x28, 0xf7, 0x2d, 0xe6, 0x4e, 0xe2, - 0x87, 0xcd, 0x2b, 0xe0, 0x02, 0xd7, 0xe8, 0xa7, 0x00, 0xae, 0xc4, 0x3c, 0xb1, 0x65, 0xda, 0x96, - 0xd7, 0x80, 0xd0, 0xfd, 0x9e, 0x6d, 0x3d, 0xd4, 0x47, 0x71, 0x61, 0xc1, 0x11, 0x04, 0x4e, 0xc0, - 0xad, 0xdf, 0x87, 0xb5, 0x92, 0x7d, 0xa2, 0x1b, 0x30, 0x7b, 0x46, 0x27, 0xc1, 0x55, 0x61, 0xfe, - 0x13, 0xad, 0x42, 0x63, 0x4c, 0x0c, 0x9f, 0x06, 0x39, 0x89, 0x83, 0x8f, 0x3b, 0xb5, 0xf7, 0x94, - 0xee, 0xef, 0x1a, 0xc9, 0x48, 0xe1, 0xf5, 0x06, 0x6d, 0xf1, 0xf6, 0xe0, 0x18, 0xba, 0x46, 0x3c, - 0x81, 0xd1, 0xe8, 0xbf, 0x10, 0xb4, 0x86, 0x60, 0x0d, 0x47, 0x52, 0xf4, 0x73, 0x68, 0x7a, 0xd4, - 0xa0, 0x1a, 0xb3, 0x5d, 0x59, 0xe2, 0xde, 0xae, 0x18, 0x53, 0x64, 0x40, 0x8d, 0x63, 0x69, 0x1a, - 0xc0, 0x87, 0x5f, 0x38, 0x82, 0x44, 0x9f, 0x40, 0x93, 0x51, 0xd3, 0x31, 0x08, 0xa3, 0xf2, 0xf6, - 0x52, 0x71, 0xc5, 0x6b, 0x07, 0x07, 0x3b, 0xb2, 0x87, 0x27, 0x52, 0x4d, 0x54, 0xcf, 0x28, 0x4e, - 0xc3, 0x55, 0x1c, 0xc1, 0xa0, 0x9f, 0x40, 0xd3, 0x63, 0xbc, 0xab, 0x8f, 0x26, 0x22, 0xdb, 0x2e, - 0x6a, 0x2b, 0xc9, 0x3a, 0x1a, 0x98, 0xc4, 0xd0, 0xe1, 0x0a, 0x8e, 0xe0, 0xd0, 0x2e, 0x2c, 0x9b, - 0xba, 0x85, 0x29, 0x19, 0x4e, 0x8e, 0xa9, 0x66, 0x5b, 0x43, 0x4f, 0xa4, 0x69, 0xa3, 0xbf, 0x26, - 0x8d, 0x96, 0x0f, 0xd2, 0x62, 0x9c, 0xd5, 0x47, 0xfb, 0xb0, 0x1a, 0xb6, 0xdd, 0x8f, 0x74, 0x8f, - 0xd9, 0xee, 0x64, 0x5f, 0x37, 0x75, 0x26, 0x6a, 0x5e, 0xa3, 0xdf, 0x9e, 0x9e, 0x6f, 0xac, 0xe2, - 0x02, 0x39, 0x2e, 0xb4, 0xe2, 0x75, 0xc5, 0x21, 0xbe, 0x47, 0x87, 0xa2, 0x86, 0x35, 0xe3, 0xba, - 0x72, 0x24, 0x56, 0xb1, 0x94, 0xa2, 0x1f, 0xa7, 0xc2, 0xb4, 0x79, 0xb5, 0x30, 0x6d, 0x95, 0x87, - 0x28, 0x3a, 0x85, 0x35, 0xc7, 0xb5, 0x47, 0x2e, 0xf5, 0xbc, 0x7b, 0x94, 0x0c, 0x0d, 0xdd, 0xa2, - 0xe1, 0xcd, 0x2c, 0x88, 0x13, 0xbd, 0x34, 0x3d, 0xdf, 0x58, 0x3b, 0x2a, 0x56, 0xc1, 0x65, 0xb6, - 0xdd, 0x3f, 0xd5, 0xe1, 0x46, 0xb6, 0xc7, 0xa1, 0x8f, 0x01, 0xd9, 0x03, 0x8f, 0xba, 0x63, 0x3a, - 0xfc, 0x30, 0x18, 0xdc, 0xf8, 0x74, 0xa3, 0x88, 0xe9, 0x26, 0xca, 0xdb, 0xc3, 0x9c, 0x06, 0x2e, - 0xb0, 0x0a, 0xe6, 0x23, 0x99, 0x00, 0x35, 0xb1, 0xd1, 0xc4, 0x7c, 0x94, 0x4b, 0x82, 0x5d, 0x58, - 0x96, 0xb9, 0x1f, 0x0a, 0x45, 0xb0, 0x26, 0xde, 0xfd, 0x34, 0x2d, 0xc6, 0x59, 0x7d, 0x74, 0x17, - 0x96, 0x5c, 0x1e, 0x07, 0x11, 0xc0, 0xbc, 0x00, 0xf8, 0x96, 0x04, 0x58, 0xc2, 0x49, 0x21, 0x4e, - 0xeb, 0xa2, 0x0f, 0xe1, 0x26, 0x19, 0x13, 0xdd, 0x20, 0x03, 0x83, 0x46, 0x00, 0x75, 0x01, 0xf0, - 0xa2, 0x04, 0xb8, 0xb9, 0x9b, 0x55, 0xc0, 0x79, 0x1b, 0x74, 0x00, 0x2b, 0xbe, 0x95, 0x87, 0x0a, - 0x82, 0xf8, 0x25, 0x09, 0xb5, 0x72, 0x9a, 0x57, 0xc1, 0x45, 0x76, 0xe8, 0x73, 0x00, 0x2d, 0xec, - 0xea, 0x5e, 0x7b, 0x4e, 0x94, 0xe1, 0x37, 0x2b, 0x24, 0x5b, 0x34, 0x0a, 0xc4, 0x25, 0x30, 0x5a, - 0xf2, 0x70, 0x02, 0x13, 0xdd, 0x81, 0x96, 0x66, 0x1b, 0x86, 0x88, 0xfc, 0x3d, 0xdb, 0xb7, 0x98, - 0x08, 0xde, 0x46, 0x1f, 0xf1, 0x66, 0xbf, 0x97, 0x92, 0xe0, 0x8c, 0x66, 0xf7, 0x8f, 0x4a, 0xb2, - 0xcd, 0x84, 0xe9, 0x8c, 0xee, 0xa4, 0x46, 0x9f, 0x57, 0x32, 0xa3, 0xcf, 0xad, 0xbc, 0x45, 0x62, - 0xf2, 0xd1, 0x61, 0x89, 0x07, 0xbf, 0x6e, 0x8d, 0x82, 0x07, 0x97, 0x25, 0xf1, 0xad, 0x0b, 0x53, - 0x29, 0xd2, 0x4e, 0x34, 0xc6, 0x9b, 0xe2, 0xcd, 0x93, 0x42, 0x9c, 0x46, 0xee, 0x7e, 0x00, 0xad, - 0x74, 0x1e, 0xa6, 0x66, 0x7a, 0xe5, 0xd2, 0x99, 0xfe, 0x1b, 0x05, 0xd6, 0x4a, 0xbc, 0x23, 0x03, - 0x5a, 0x26, 0x79, 0x9c, 0x78, 0xe6, 0x4b, 0x67, 0x63, 0xce, 0x9a, 0xd4, 0x80, 0x35, 0xa9, 0x0f, - 0x2c, 0x76, 0xe8, 0x1e, 0x33, 0x57, 0xb7, 0x46, 0xc1, 0x3b, 0x1c, 0xa4, 0xb0, 0x70, 0x06, 0x1b, - 0x7d, 0x06, 0x4d, 0x93, 0x3c, 0x3e, 0xf6, 0xdd, 0x51, 0xd1, 0x7d, 0x55, 0xf3, 0x23, 0xfa, 0xc7, - 0x81, 0x44, 0xc1, 0x11, 0x5e, 0xf7, 0x10, 0x36, 0x53, 0x87, 0xe4, 0xa5, 0x82, 0x3e, 0xf4, 0x8d, - 0x63, 0x1a, 0x3f, 0xf8, 0x1b, 0xb0, 0xe0, 0x10, 0x97, 0xe9, 0x51, 0xb9, 0x68, 0xf4, 0x97, 0xa6, - 0xe7, 0x1b, 0x0b, 0x47, 0xe1, 0x22, 0x8e, 0xe5, 0xdd, 0x7f, 0x2b, 0xd0, 0x38, 0xd6, 0x88, 0x41, - 0xaf, 0x81, 0x3a, 0xdc, 0x4b, 0x51, 0x87, 0x6e, 0x69, 0x10, 0x89, 0xfd, 0x94, 0xb2, 0x86, 0xfd, - 0x0c, 0x6b, 0x78, 0xf9, 0x12, 0x9c, 0x8b, 0x09, 0xc3, 0xfb, 0xb0, 0x10, 0xb9, 0x4b, 0x55, 0x49, - 0xe5, 0xb2, 0x2a, 0xd9, 0xfd, 0x6d, 0x0d, 0x16, 0x13, 0x2e, 0xae, 0x66, 0xcd, 0xaf, 0x3b, 0x31, - 0x68, 0xf0, 0x4a, 0xb2, 0x53, 0xe5, 0x20, 0x6a, 0x38, 0x54, 0x04, 0xf3, 0x5b, 0xdc, 0xbd, 0xf3, - 0xb3, 0xc6, 0x07, 0xd0, 0x62, 0xc4, 0x1d, 0x51, 0x16, 0xca, 0xc4, 0x85, 0x2d, 0xc4, 0xe4, 0xe1, - 0x24, 0x25, 0xc5, 0x19, 0xed, 0xf5, 0xbb, 0xb0, 0x94, 0x72, 0x76, 0xa5, 0x21, 0xec, 0x4b, 0x7e, - 0x39, 0x71, 0x70, 0x5e, 0x43, 0x74, 0x7d, 0x9c, 0x8a, 0xae, 0xad, 0xf2, 0xcb, 0x4c, 0xa4, 0x4c, - 0x59, 0x8c, 0xe1, 0x4c, 0x8c, 0xbd, 0x5e, 0x09, 0xed, 0xe2, 0x48, 0xfb, 0x47, 0x0d, 0x56, 0x13, - 0xda, 0x31, 0x37, 0xfd, 0x7e, 0xaa, 0x40, 0x6f, 0x65, 0x0a, 0x74, 0xbb, 0xc8, 0xe6, 0xb9, 0x91, - 0xd3, 0x62, 0xc2, 0x38, 0xfb, 0xbf, 0x48, 0x18, 0xff, 0xa0, 0xc0, 0x72, 0xe2, 0xee, 0xae, 0x81, - 0x31, 0x3e, 0x48, 0x33, 0xc6, 0x97, 0xab, 0x04, 0x4d, 0x09, 0x65, 0xfc, 0x73, 0x23, 0xb5, 0xf9, - 0xff, 0x7b, 0x12, 0xf3, 0x4b, 0x58, 0x1d, 0xdb, 0x86, 0x6f, 0xd2, 0x3d, 0x83, 0xe8, 0x66, 0xa8, - 0xc0, 0x87, 0xbe, 0xd9, 0xec, 0x1f, 0x43, 0x11, 0x3c, 0x75, 0x3d, 0xdd, 0x63, 0xd4, 0x62, 0x9f, - 0xc6, 0x96, 0xfd, 0x6f, 0x4b, 0x27, 0xab, 0x9f, 0x16, 0xc0, 0xe1, 0x42, 0x27, 0xe8, 0x7b, 0xb0, - 0xc8, 0x07, 0x66, 0x5d, 0xa3, 0x9c, 0x7b, 0xcb, 0xc0, 0x5a, 0x91, 0x40, 0x8b, 0xc7, 0xb1, 0x08, - 0x27, 0xf5, 0xd0, 0x23, 0x58, 0x71, 0xec, 0xe1, 0x01, 0xb1, 0xc8, 0x88, 0xf2, 0x31, 0xe3, 0xc8, - 0x36, 0x74, 0x6d, 0x22, 0x98, 0xcd, 0x42, 0xff, 0xdd, 0x70, 0xb8, 0x3c, 0xca, 0xab, 0x3c, 0xe3, - 0x14, 0x21, 0xbf, 0x2c, 0x92, 0xba, 0x08, 0x12, 0xb9, 0xd0, 0xf2, 0x65, 0xbb, 0x97, 0x44, 0x2f, - 0xf8, 0x0b, 0x67, 0xa7, 0x4a, 0x84, 0x9d, 0xa6, 0x2c, 0xe3, 0xea, 0x9f, 0x5e, 0xc7, 0x19, 0x0f, - 0xa5, 0xc4, 0xad, 0xf9, 0xdf, 0x10, 0xb7, 0xee, 0x3f, 0xeb, 0x70, 0x33, 0x57, 0x2a, 0xd1, 0x0f, - 0x2f, 0x60, 0x38, 0xb7, 0x9e, 0x1b, 0xbb, 0xc9, 0x51, 0x93, 0xd9, 0x2b, 0x50, 0x93, 0x5d, 0x58, - 0xd6, 0x7c, 0xd7, 0xa5, 0x16, 0xcb, 0x10, 0x93, 0x88, 0x1a, 0xed, 0xa5, 0xc5, 0x38, 0xab, 0x5f, - 0xc4, 0xae, 0x1a, 0x57, 0x64, 0x57, 0xc9, 0x5d, 0xc8, 0x09, 0x39, 0x08, 0xbb, 0xfc, 0x2e, 0xe4, - 0xa0, 0x9c, 0xd5, 0xe7, 0xd3, 0x41, 0x80, 0x1a, 0x21, 0xcc, 0xa7, 0xa7, 0x83, 0xd3, 0x94, 0x14, - 0x67, 0xb4, 0x0b, 0x98, 0xca, 0x42, 0x55, 0xa6, 0x82, 0x48, 0x8a, 0x47, 0x81, 0xc8, 0xf1, 0xed, - 0x2a, 0xb1, 0x5c, 0x99, 0x48, 0x75, 0xff, 0xa2, 0xc0, 0x8b, 0xa5, 0x49, 0x80, 0x76, 0x53, 0x2d, - 0x77, 0x3b, 0xd3, 0x72, 0xbf, 0x53, 0x6a, 0x98, 0xe8, 0xbb, 0x6e, 0x31, 0x35, 0x7a, 0xbf, 0x1a, - 0x35, 0x2a, 0x98, 0xdb, 0x2f, 0xe7, 0x48, 0xfd, 0xed, 0x27, 0x4f, 0x3b, 0x33, 0x5f, 0x3d, 0xed, - 0xcc, 0x7c, 0xfd, 0xb4, 0x33, 0xf3, 0xab, 0x69, 0x47, 0x79, 0x32, 0xed, 0x28, 0x5f, 0x4d, 0x3b, - 0xca, 0xd7, 0xd3, 0x8e, 0xf2, 0xb7, 0x69, 0x47, 0xf9, 0xcd, 0x37, 0x9d, 0x99, 0xcf, 0xe6, 0xa5, - 0xc7, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x99, 0x8d, 0x1e, 0xaf, 0x61, 0x1b, 0x00, 0x00, -} - -func (m *ControllerRevision) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ControllerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ControllerRevisionList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControllerRevisionList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ControllerRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Deployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Deployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentRollback) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentRollback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RollbackTo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.UpdatedAnnotations) > 0 { - keysForUpdatedAnnotations := make([]string, 0, len(m.UpdatedAnnotations)) - for k := range m.UpdatedAnnotations { - keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) - for iNdEx := len(keysForUpdatedAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.UpdatedAnnotations[string(keysForUpdatedAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForUpdatedAnnotations[iNdEx]) - copy(dAtA[i:], keysForUpdatedAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForUpdatedAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ProgressDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds)) - i-- - dAtA[i] = 0x48 - } - if m.RollbackTo != nil { - { - size, err := m.RollbackTo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - i-- - if m.Paused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x28 - { - size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x40 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x38 - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RollbackConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollbackConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollbackConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxSurge != nil { - { - size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RollingUpdateStatefulSetStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateStatefulSetStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateStatefulSetStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Partition != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Partition)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Scale) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Scale) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Scale) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScaleSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ScaleStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.TargetSelector) - copy(dAtA[i:], m.TargetSelector) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetSelector))) - i-- - dAtA[i] = 0x1a - if len(m.Selector) > 0 { - keysForSelector := make([]string, 0, len(m.Selector)) - for k := range m.Selector { - keysForSelector = append(keysForSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.Selector[string(keysForSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForSelector[iNdEx]) - copy(dAtA[i:], keysForSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *StatefulSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x40 - } - { - size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - i -= len(m.PodManagementPolicy) - copy(dAtA[i:], m.PodManagementPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodManagementPolicy))) - i-- - dAtA[i] = 0x32 - i -= len(m.ServiceName) - copy(dAtA[i:], m.ServiceName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName))) - i-- - dAtA[i] = 0x2a - if len(m.VolumeClaimTemplates) > 0 { - for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x48 - } - i -= len(m.UpdateRevision) - copy(dAtA[i:], m.UpdateRevision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpdateRevision))) - i-- - dAtA[i] = 0x3a - i -= len(m.CurrentRevision) - copy(dAtA[i:], m.CurrentRevision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CurrentRevision))) - i-- - dAtA[i] = 0x32 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - if m.ObservedGeneration != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StatefulSetUpdateStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ControllerRevision) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Data.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Revision)) - return n -} - -func (m *ControllerRevisionList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Deployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastUpdateTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentRollback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.UpdatedAnnotations) > 0 { - for k, v := range m.UpdatedAnnotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = m.RollbackTo.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Strategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - n += 2 - if m.RollbackTo != nil { - l = m.RollbackTo.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ProgressDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds)) - } - return n -} - -func (m *DeploymentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - return n -} - -func (m *DeploymentStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollbackConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Revision)) - return n -} - -func (m *RollingUpdateDeployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.MaxSurge != nil { - l = m.MaxSurge.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingUpdateStatefulSetStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Partition != nil { - n += 1 + sovGenerated(uint64(*m.Partition)) - } - return n -} - -func (m *Scale) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScaleSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - return n -} - -func (m *ScaleStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - if len(m.Selector) > 0 { - for k, v := range m.Selector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.TargetSelector) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StatefulSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.VolumeClaimTemplates) > 0 { - for _, e := range m.VolumeClaimTemplates { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ServiceName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.PodManagementPolicy) - n += 1 + l + sovGenerated(uint64(l)) - l = m.UpdateStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - return n -} - -func (m *StatefulSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObservedGeneration != nil { - n += 1 + sovGenerated(uint64(*m.ObservedGeneration)) - } - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.CurrentReplicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - l = len(m.CurrentRevision) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UpdateRevision) - n += 1 + l + sovGenerated(uint64(l)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StatefulSetUpdateStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ControllerRevision) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ControllerRevision{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `}`, - }, "") - return s -} -func (this *ControllerRevisionList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ControllerRevision{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ControllerRevision", "ControllerRevision", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ControllerRevisionList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *Deployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Deployment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Deployment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DeploymentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentRollback) String() string { - if this == nil { - return "nil" - } - keysForUpdatedAnnotations := make([]string, 0, len(this.UpdatedAnnotations)) - for k := range this.UpdatedAnnotations { - keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) - mapStringForUpdatedAnnotations := "map[string]string{" - for _, k := range keysForUpdatedAnnotations { - mapStringForUpdatedAnnotations += fmt.Sprintf("%v: %v,", k, this.UpdatedAnnotations[k]) - } - mapStringForUpdatedAnnotations += "}" - s := strings.Join([]string{`&DeploymentRollback{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UpdatedAnnotations:` + mapStringForUpdatedAnnotations + `,`, - `RollbackTo:` + strings.Replace(strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, - `RollbackTo:` + strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1) + `,`, - `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DeploymentCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DeploymentStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollbackConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollbackConfig{`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDeployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDeployment{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateStatefulSetStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateStatefulSetStrategy{`, - `Partition:` + valueToStringGenerated(this.Partition) + `,`, - `}`, - }, "") - return s -} -func (this *Scale) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Scale{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleSpec{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleStatus) String() string { - if this == nil { - return "nil" - } - keysForSelector := make([]string, 0, len(this.Selector)) - for k := range this.Selector { - keysForSelector = append(keysForSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - mapStringForSelector := "map[string]string{" - for _, k := range keysForSelector { - mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) - } - mapStringForSelector += "}" - s := strings.Join([]string{`&ScaleStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `Selector:` + mapStringForSelector + `,`, - `TargetSelector:` + fmt.Sprintf("%v", this.TargetSelector) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]StatefulSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&StatefulSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{" - for _, f := range this.VolumeClaimTemplates { - repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + "," - } - repeatedStringForVolumeClaimTemplates += "}" - s := strings.Join([]string{`&StatefulSetSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`, - `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, - `PodManagementPolicy:` + fmt.Sprintf("%v", this.PodManagementPolicy) + `,`, - `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "StatefulSetUpdateStrategy", "StatefulSetUpdateStrategy", 1), `&`, ``, 1) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]StatefulSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StatefulSetCondition", "StatefulSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&StatefulSetStatus{`, - `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `CurrentRevision:` + fmt.Sprintf("%v", this.CurrentRevision) + `,`, - `UpdateRevision:` + fmt.Sprintf("%v", this.UpdateRevision) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetUpdateStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSetUpdateStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateStatefulSetStrategy", "RollingUpdateStatefulSetStrategy", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ControllerRevision) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControllerRevision: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControllerRevision: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ControllerRevisionList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ControllerRevision{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Deployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Deployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Deployment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentRollback) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentRollback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentRollback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAnnotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UpdatedAnnotations == nil { - m.UpdatedAnnotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.UpdatedAnnotations[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollbackTo == nil { - m.RollbackTo = &RollbackConfig{} - } - if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ProgressDeadlineSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) - } - m.UnavailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnavailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DeploymentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDeployment{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollbackConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollbackConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollbackConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxSurge == nil { - m.MaxSurge = &intstr.IntOrString{} - } - if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateStatefulSetStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Partition = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Scale) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Scale: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Selector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, StatefulSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{}) - if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ObservedGeneration = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentRevision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateRevision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, StatefulSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetUpdateStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateStatefulSetStrategy{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/apps/v1beta1/generated.proto b/pseudo/k8s/api/apps/v1beta1/generated.proto deleted file mode 100644 index 6ac9ba0f2..000000000 --- a/pseudo/k8s/api/apps/v1beta1/generated.proto +++ /dev/null @@ -1,484 +0,0 @@ -/* -Copyright 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.apps.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the -// release notes for more information. -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -message ControllerRevision { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Data is the serialized representation of the state. - optional k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; - - // Revision indicates the revision of the state represented by Data. - optional int64 revision = 3; -} - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -message ControllerRevisionList { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of ControllerRevisions - repeated ControllerRevision items = 2; -} - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -message Deployment { - // Standard object metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the Deployment. - // +optional - optional DeploymentSpec spec = 2; - - // Most recently observed status of the Deployment. - // +optional - optional DeploymentStatus status = 3; -} - -// DeploymentCondition describes the state of a deployment at a certain point. -message DeploymentCondition { - // Type of deployment condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time this condition was updated. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; - - // Last time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; - - // The reason for the condition's last transition. - optional string reason = 4; - - // A human readable message indicating details about the transition. - optional string message = 5; -} - -// DeploymentList is a list of Deployments. -message DeploymentList { - // Standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Deployments. - repeated Deployment items = 2; -} - -// DEPRECATED. -// DeploymentRollback stores the information required to rollback a deployment. -message DeploymentRollback { - // Required: This must match the Name of a deployment. - optional string name = 1; - - // The annotations to be updated to a deployment - // +optional - map updatedAnnotations = 2; - - // The config of this deployment rollback. - optional RollbackConfig rollbackTo = 3; -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -message DeploymentSpec { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - optional int32 replicas = 1; - - // Label selector for pods. Existing ReplicaSets whose pods are - // selected by this will be the ones affected by this deployment. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // Template describes the pods that will be created. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - optional DeploymentStrategy strategy = 4; - - // 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) - // +optional - optional int32 minReadySeconds = 5; - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 2. - // +optional - optional int32 revisionHistoryLimit = 6; - - // Indicates that the deployment is paused. - // +optional - optional bool paused = 7; - - // DEPRECATED. - // The config this deployment is rolling back to. Will be cleared after rollback is done. - // +optional - optional RollbackConfig rollbackTo = 8; - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - // +optional - optional int32 progressDeadlineSeconds = 9; -} - -// DeploymentStatus is the most recently observed status of the Deployment. -message DeploymentStatus { - // The generation observed by the deployment controller. - // +optional - optional int64 observedGeneration = 1; - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - optional int32 replicas = 2; - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - optional int32 updatedReplicas = 3; - - // Total number of ready pods targeted by this deployment. - // +optional - optional int32 readyReplicas = 7; - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - optional int32 availableReplicas = 4; - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - optional int32 unavailableReplicas = 5; - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - repeated DeploymentCondition conditions = 6; - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - optional int32 collisionCount = 8; -} - -// DeploymentStrategy describes how to replace existing pods with new ones. -message DeploymentStrategy { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - optional RollingUpdateDeployment rollingUpdate = 2; -} - -// DEPRECATED. -message RollbackConfig { - // The revision to rollback to. If set to 0, rollback to the last revision. - // +optional - optional int64 revision = 1; -} - -// Spec to control the desired behavior of rolling update. -message RollingUpdateDeployment { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; -} - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -message RollingUpdateStatefulSetStrategy { - // Partition indicates the ordinal at which the StatefulSet should be - // partitioned. - optional int32 partition = 1; -} - -// Scale represents a scaling request for a resource. -message Scale { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional ScaleSpec spec = 2; - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - optional ScaleStatus status = 3; -} - -// ScaleSpec describes the attributes of a scale subresource -message ScaleSpec { - // desired number of instances for the scaled object. - // +optional - optional int32 replicas = 1; -} - -// ScaleStatus represents the current status of a scale subresource. -message ScaleStatus { - // actual number of observed instances of the scaled object. - optional int32 replicas = 1; - - // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - map selector = 2; - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - optional string targetSelector = 3; -} - -// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for -// more information. -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -message StatefulSet { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the desired identities of pods in this set. - // +optional - optional StatefulSetSpec spec = 2; - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - optional StatefulSetStatus status = 3; -} - -// StatefulSetCondition describes the state of a statefulset at a certain point. -message StatefulSetCondition { - // Type of statefulset condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// StatefulSetList is a collection of StatefulSets. -message StatefulSetList { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - repeated StatefulSet items = 2; -} - -// A StatefulSetSpec is the specification of a StatefulSet. -message StatefulSetSpec { - // 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. - // TODO: Consider a rename of this field. - // +optional - 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. - // 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 - // 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. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // 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. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - repeated k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4; - - // 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. - optional string serviceName = 5; - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - optional string podManagementPolicy = 6; - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - optional StatefulSetUpdateStrategy updateStrategy = 7; - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - optional int32 revisionHistoryLimit = 8; -} - -// StatefulSetStatus represents the current state of a StatefulSet. -message StatefulSetStatus { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - optional int64 observedGeneration = 1; - - // replicas is the number of Pods created by the StatefulSet controller. - optional int32 replicas = 2; - - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - optional int32 readyReplicas = 3; - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - optional int32 currentReplicas = 4; - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - optional int32 updatedReplicas = 5; - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - optional string currentRevision = 6; - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - optional string updateRevision = 7; - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - optional int32 collisionCount = 9; - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated StatefulSetCondition conditions = 10; -} - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -message StatefulSetUpdateStrategy { - // Type indicates the type of the StatefulSetUpdateStrategy. - optional string type = 1; - - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - optional RollingUpdateStatefulSetStrategy rollingUpdate = 2; -} - diff --git a/pseudo/k8s/api/apps/v1beta1/register.go b/pseudo/k8s/api/apps/v1beta1/register.go deleted file mode 100644 index bf7b6b768..000000000 --- a/pseudo/k8s/api/apps/v1beta1/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -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 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "apps" - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Deployment{}, - &DeploymentList{}, - &DeploymentRollback{}, - &Scale{}, - &StatefulSet{}, - &StatefulSetList{}, - &ControllerRevision{}, - &ControllerRevisionList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/apps/v1beta1/types.go b/pseudo/k8s/api/apps/v1beta1/types.go deleted file mode 100644 index fbedfda49..000000000 --- a/pseudo/k8s/api/apps/v1beta1/types.go +++ /dev/null @@ -1,567 +0,0 @@ -/* -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 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -const ( - ControllerRevisionHashLabelKey = "controller-revision-hash" - StatefulSetRevisionLabel = ControllerRevisionHashLabelKey - StatefulSetPodNameLabel = "statefulset.kubernetes.io/pod-name" -) - -// ScaleSpec describes the attributes of a scale subresource -type ScaleSpec struct { - // desired number of instances for the scaled object. - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` -} - -// ScaleStatus represents the current status of a scale subresource. -type ScaleStatus struct { - // actual number of observed instances of the scaled object. - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - TargetSelector string `json:"targetSelector,omitempty" protobuf:"bytes,3,opt,name=targetSelector"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Scale represents a scaling request for a resource. -type Scale struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for -// more information. -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -type StatefulSet struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the desired identities of pods in this set. - // +optional - Spec StatefulSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - Status StatefulSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// PodManagementPolicyType defines the policy for creating pods under a stateful set. -type PodManagementPolicyType string - -const ( - // OrderedReadyPodManagement will create pods in strictly increasing order on - // scale up and strictly decreasing order on scale down, progressing only when - // the previous pod is ready or terminated. At most one pod will be changed - // at any time. - OrderedReadyPodManagement PodManagementPolicyType = "OrderedReady" - // ParallelPodManagement will create and delete pods as soon as the stateful set - // replica count is changed, and will not wait for pods to be ready or complete - // termination. - ParallelPodManagement PodManagementPolicyType = "Parallel" -) - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -type StatefulSetUpdateStrategy struct { - // Type indicates the type of the StatefulSetUpdateStrategy. - Type StatefulSetUpdateStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=StatefulSetStrategyType"` - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - RollingUpdate *RollingUpdateStatefulSetStrategy `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -// StatefulSetUpdateStrategyType is a string enumeration type that enumerates -// all possible update strategies for the StatefulSet controller. -type StatefulSetUpdateStrategyType string - -const ( - // RollingUpdateStatefulSetStrategyType indicates that update will be - // applied to all Pods in the StatefulSet with respect to the StatefulSet - // ordering constraints. When a scale operation is performed with this - // strategy, new Pods will be created from the specification version indicated - // by the StatefulSet's updateRevision. - RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate" - // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version - // tracking and ordered rolling restarts are disabled. Pods are recreated - // from the StatefulSetSpec when they are manually deleted. When a scale - // operation is performed with this strategy,specification version indicated - // by the StatefulSet's currentRevision. - OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete" -) - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -type RollingUpdateStatefulSetStrategy struct { - // Partition indicates the ordinal at which the StatefulSet should be - // partitioned. - Partition *int32 `json:"partition,omitempty" protobuf:"varint,1,opt,name=partition"` -} - -// A StatefulSetSpec is the specification of a StatefulSet. -type StatefulSetSpec struct { - // 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. - // TODO: Consider a rename of this field. - // +optional - 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. - // 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"` - - // 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. - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` - - // 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. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"` - - // 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. - ServiceName string `json:"serviceName" protobuf:"bytes,5,opt,name=serviceName"` - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - PodManagementPolicy PodManagementPolicyType `json:"podManagementPolicy,omitempty" protobuf:"bytes,6,opt,name=podManagementPolicy,casttype=PodManagementPolicyType"` - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - UpdateStrategy StatefulSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,7,opt,name=updateStrategy"` - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,8,opt,name=revisionHistoryLimit"` -} - -// StatefulSetStatus represents the current state of a StatefulSet. -type StatefulSetStatus struct { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // replicas is the number of Pods created by the StatefulSet controller. - Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"` - - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,3,opt,name=readyReplicas"` - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - CurrentReplicas int32 `json:"currentReplicas,omitempty" protobuf:"varint,4,opt,name=currentReplicas"` - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,5,opt,name=updatedReplicas"` - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - CurrentRevision string `json:"currentRevision,omitempty" protobuf:"bytes,6,opt,name=currentRevision"` - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - UpdateRevision string `json:"updateRevision,omitempty" protobuf:"bytes,7,opt,name=updateRevision"` - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"` - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []StatefulSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` -} - -type StatefulSetConditionType string - -// StatefulSetCondition describes the state of a statefulset at a certain point. -type StatefulSetCondition struct { - // Type of statefulset condition. - Type StatefulSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=StatefulSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StatefulSetList is a collection of StatefulSets. -type StatefulSetList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []StatefulSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -type Deployment struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the Deployment. - // +optional - Spec DeploymentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the Deployment. - // +optional - Status DeploymentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -type DeploymentSpec struct { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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"` - - // Template describes the pods that will be created. - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - Strategy DeploymentStrategy `json:"strategy,omitempty" patchStrategy:"retainKeys" protobuf:"bytes,4,opt,name=strategy"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,5,opt,name=minReadySeconds"` - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 2. - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` - - // Indicates that the deployment is paused. - // +optional - Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` - - // DEPRECATED. - // The config this deployment is rolling back to. Will be cleared after rollback is done. - // +optional - RollbackTo *RollbackConfig `json:"rollbackTo,omitempty" protobuf:"bytes,8,opt,name=rollbackTo"` - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - // +optional - ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty" protobuf:"varint,9,opt,name=progressDeadlineSeconds"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED. -// DeploymentRollback stores the information required to rollback a deployment. -type DeploymentRollback struct { - metav1.TypeMeta `json:",inline"` - // Required: This must match the Name of a deployment. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // The annotations to be updated to a deployment - // +optional - UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty" protobuf:"bytes,2,rep,name=updatedAnnotations"` - // The config of this deployment rollback. - RollbackTo RollbackConfig `json:"rollbackTo" protobuf:"bytes,3,opt,name=rollbackTo"` -} - -// DEPRECATED. -type RollbackConfig struct { - // The revision to rollback to. If set to 0, rollback to the last revision. - // +optional - Revision int64 `json:"revision,omitempty" protobuf:"varint,1,opt,name=revision"` -} - -const ( - // DefaultDeploymentUniqueLabelKey is the default key of the selector that is added - // to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets - // to select new pods (and old pods being select by new ReplicaSet). - DefaultDeploymentUniqueLabelKey string = "pod-template-hash" -) - -// DeploymentStrategy describes how to replace existing pods with new ones. -type DeploymentStrategy struct { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - Type DeploymentStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentStrategyType"` - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DeploymentStrategyType string - -const ( - // Kill all existing pods before creating new ones. - RecreateDeploymentStrategyType DeploymentStrategyType = "Recreate" - - // Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one. - RollingUpdateDeploymentStrategyType DeploymentStrategyType = "RollingUpdate" -) - -// Spec to control the desired behavior of rolling update. -type RollingUpdateDeployment struct { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` -} - -// DeploymentStatus is the most recently observed status of the Deployment. -type DeploymentStatus struct { - // The generation observed by the deployment controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"` - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"` - - // Total number of ready pods targeted by this deployment. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"` - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"` - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"` - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,8,opt,name=collisionCount"` -} - -type DeploymentConditionType string - -// These are valid conditions of a deployment. -const ( - // Available means the deployment is available, ie. at least the minimum available - // replicas required are up and running for at least minReadySeconds. - DeploymentAvailable DeploymentConditionType = "Available" - // Progressing means the deployment is progressing. Progress for a deployment is - // considered when a new replica set is created or adopted, and when new pods scale - // up or old pods scale down. Progress is not estimated for paused deployments or - // when progressDeadlineSeconds is not specified. - DeploymentProgressing DeploymentConditionType = "Progressing" - // ReplicaFailure is added in a deployment when one of its pods fails to be created - // or deleted. - DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure" -) - -// DeploymentCondition describes the state of a deployment at a certain point. -type DeploymentCondition struct { - // Type of deployment condition. - Type DeploymentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time this condition was updated. - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` - // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DeploymentList is a list of Deployments. -type DeploymentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Deployments. - Items []Deployment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the -// release notes for more information. -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -type ControllerRevision struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Data is the serialized representation of the state. - Data runtime.RawExtension `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"` - - // Revision indicates the revision of the state represented by Data. - Revision int64 `json:"revision" protobuf:"varint,3,opt,name=revision"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -type ControllerRevisionList struct { - metav1.TypeMeta `json:",inline"` - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of ControllerRevisions - Items []ControllerRevision `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/apps/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/apps/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 504b85863..000000000 --- a/pseudo/k8s/api/apps/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,273 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_ControllerRevision = map[string]string{ - "": "DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "data": "Data is the serialized representation of the state.", - "revision": "Revision indicates the revision of the state represented by Data.", -} - -func (ControllerRevision) SwaggerDoc() map[string]string { - return map_ControllerRevision -} - -var map_ControllerRevisionList = map[string]string{ - "": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of ControllerRevisions", -} - -func (ControllerRevisionList) SwaggerDoc() map[string]string { - return map_ControllerRevisionList -} - -var map_Deployment = map[string]string{ - "": "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.", - "metadata": "Standard object metadata.", - "spec": "Specification of the desired behavior of the Deployment.", - "status": "Most recently observed status of the Deployment.", -} - -func (Deployment) SwaggerDoc() map[string]string { - return map_Deployment -} - -var map_DeploymentCondition = map[string]string{ - "": "DeploymentCondition describes the state of a deployment at a certain point.", - "type": "Type of deployment condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastUpdateTime": "The last time this condition was updated.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DeploymentCondition) SwaggerDoc() map[string]string { - return map_DeploymentCondition -} - -var map_DeploymentList = map[string]string{ - "": "DeploymentList is a list of Deployments.", - "metadata": "Standard list metadata.", - "items": "Items is the list of Deployments.", -} - -func (DeploymentList) SwaggerDoc() map[string]string { - return map_DeploymentList -} - -var map_DeploymentRollback = map[string]string{ - "": "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.", - "name": "Required: This must match the Name of a deployment.", - "updatedAnnotations": "The annotations to be updated to a deployment", - "rollbackTo": "The config of this deployment rollback.", -} - -func (DeploymentRollback) SwaggerDoc() map[string]string { - return map_DeploymentRollback -} - -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.", - "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)", - "revisionHistoryLimit": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.", - "paused": "Indicates that the deployment is paused.", - "rollbackTo": "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - "progressDeadlineSeconds": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", -} - -func (DeploymentSpec) SwaggerDoc() map[string]string { - return map_DeploymentSpec -} - -var map_DeploymentStatus = map[string]string{ - "": "DeploymentStatus is the most recently observed status of the Deployment.", - "observedGeneration": "The generation observed by the deployment controller.", - "replicas": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "readyReplicas": "Total number of ready pods targeted by this deployment.", - "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", - "conditions": "Represents the latest available observations of a deployment's current state.", - "collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", -} - -func (DeploymentStatus) SwaggerDoc() map[string]string { - return map_DeploymentStatus -} - -var map_DeploymentStrategy = map[string]string{ - "": "DeploymentStrategy describes how to replace existing pods with new ones.", - "type": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "rollingUpdate": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", -} - -func (DeploymentStrategy) SwaggerDoc() map[string]string { - return map_DeploymentStrategy -} - -var map_RollbackConfig = map[string]string{ - "": "DEPRECATED.", - "revision": "The revision to rollback to. If set to 0, rollback to the last revision.", -} - -func (RollbackConfig) SwaggerDoc() map[string]string { - return map_RollbackConfig -} - -var map_RollingUpdateDeployment = map[string]string{ - "": "Spec to control the desired behavior of rolling update.", - "maxUnavailable": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "maxSurge": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", -} - -func (RollingUpdateDeployment) SwaggerDoc() map[string]string { - return map_RollingUpdateDeployment -} - -var map_RollingUpdateStatefulSetStrategy = map[string]string{ - "": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "partition": "Partition indicates the ordinal at which the StatefulSet should be partitioned.", -} - -func (RollingUpdateStatefulSetStrategy) SwaggerDoc() map[string]string { - return map_RollingUpdateStatefulSetStrategy -} - -var map_Scale = map[string]string{ - "": "Scale represents a scaling request for a resource.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "spec": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", -} - -func (Scale) SwaggerDoc() map[string]string { - return map_Scale -} - -var map_ScaleSpec = map[string]string{ - "": "ScaleSpec describes the attributes of a scale subresource", - "replicas": "desired number of instances for the scaled object.", -} - -func (ScaleSpec) SwaggerDoc() map[string]string { - return map_ScaleSpec -} - -var map_ScaleStatus = map[string]string{ - "": "ScaleStatus represents the current status of a scale subresource.", - "replicas": "actual number of observed instances of the scaled object.", - "selector": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "targetSelector": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", -} - -func (ScaleStatus) SwaggerDoc() map[string]string { - return map_ScaleStatus -} - -var map_StatefulSet = map[string]string{ - "": "DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", - "spec": "Spec defines the desired identities of pods in this set.", - "status": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", -} - -func (StatefulSet) SwaggerDoc() map[string]string { - return map_StatefulSet -} - -var map_StatefulSetCondition = map[string]string{ - "": "StatefulSetCondition describes the state of a statefulset at a certain point.", - "type": "Type of statefulset condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (StatefulSetCondition) SwaggerDoc() map[string]string { - return map_StatefulSetCondition -} - -var map_StatefulSetList = map[string]string{ - "": "StatefulSetList is a collection of StatefulSets.", -} - -func (StatefulSetList) SwaggerDoc() map[string]string { - return map_StatefulSetList -} - -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", - "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.", - "podManagementPolicy": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", - "updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", -} - -func (StatefulSetSpec) SwaggerDoc() map[string]string { - return map_StatefulSetSpec -} - -var map_StatefulSetStatus = map[string]string{ - "": "StatefulSetStatus represents the current state of a StatefulSet.", - "observedGeneration": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", - "replicas": "replicas is the number of Pods created by the StatefulSet controller.", - "readyReplicas": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "currentReplicas": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "updatedReplicas": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", - "currentRevision": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", - "updateRevision": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", - "collisionCount": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "conditions": "Represents the latest available observations of a statefulset's current state.", -} - -func (StatefulSetStatus) SwaggerDoc() map[string]string { - return map_StatefulSetStatus -} - -var map_StatefulSetUpdateStrategy = map[string]string{ - "": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", - "type": "Type indicates the type of the StatefulSetUpdateStrategy.", - "rollingUpdate": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", -} - -func (StatefulSetUpdateStrategy) SwaggerDoc() map[string]string { - return map_StatefulSetUpdateStrategy -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/apps/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/apps/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 668d6a0e8..000000000 --- a/pseudo/k8s/api/apps/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,594 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Data.DeepCopyInto(&out.Data) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevision. -func (in *ControllerRevision) DeepCopy() *ControllerRevision { - if in == nil { - return nil - } - out := new(ControllerRevision) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ControllerRevision) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ControllerRevisionList) DeepCopyInto(out *ControllerRevisionList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ControllerRevision, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevisionList. -func (in *ControllerRevisionList) DeepCopy() *ControllerRevisionList { - if in == nil { - return nil - } - out := new(ControllerRevisionList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ControllerRevisionList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Deployment) DeepCopyInto(out *Deployment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment. -func (in *Deployment) DeepCopy() *Deployment { - if in == nil { - return nil - } - out := new(Deployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Deployment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentCondition) DeepCopyInto(out *DeploymentCondition) { - *out = *in - in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentCondition. -func (in *DeploymentCondition) DeepCopy() *DeploymentCondition { - if in == nil { - return nil - } - out := new(DeploymentCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentList) DeepCopyInto(out *DeploymentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Deployment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentList. -func (in *DeploymentList) DeepCopy() *DeploymentList { - if in == nil { - return nil - } - out := new(DeploymentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeploymentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentRollback) DeepCopyInto(out *DeploymentRollback) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.UpdatedAnnotations != nil { - in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - out.RollbackTo = in.RollbackTo - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentRollback. -func (in *DeploymentRollback) DeepCopy() *DeploymentRollback { - if in == nil { - return nil - } - out := new(DeploymentRollback) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeploymentRollback) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.Strategy.DeepCopyInto(&out.Strategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - if in.RollbackTo != nil { - in, out := &in.RollbackTo, &out.RollbackTo - *out = new(RollbackConfig) - **out = **in - } - if in.ProgressDeadlineSeconds != nil { - in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec. -func (in *DeploymentSpec) DeepCopy() *DeploymentSpec { - if in == nil { - return nil - } - out := new(DeploymentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DeploymentCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus. -func (in *DeploymentStatus) DeepCopy() *DeploymentStatus { - if in == nil { - return nil - } - out := new(DeploymentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStrategy) DeepCopyInto(out *DeploymentStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDeployment) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStrategy. -func (in *DeploymentStrategy) DeepCopy() *DeploymentStrategy { - if in == nil { - return nil - } - out := new(DeploymentStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig. -func (in *RollbackConfig) DeepCopy() *RollbackConfig { - if in == nil { - return nil - } - out := new(RollbackConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDeployment) DeepCopyInto(out *RollingUpdateDeployment) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - if in.MaxSurge != nil { - in, out := &in.MaxSurge, &out.MaxSurge - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDeployment. -func (in *RollingUpdateDeployment) DeepCopy() *RollingUpdateDeployment { - if in == nil { - return nil - } - out := new(RollingUpdateDeployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateStatefulSetStrategy) DeepCopyInto(out *RollingUpdateStatefulSetStrategy) { - *out = *in - if in.Partition != nil { - in, out := &in.Partition, &out.Partition - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateStatefulSetStrategy. -func (in *RollingUpdateStatefulSetStrategy) DeepCopy() *RollingUpdateStatefulSetStrategy { - if in == nil { - return nil - } - out := new(RollingUpdateStatefulSetStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Scale) DeepCopyInto(out *Scale) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale. -func (in *Scale) DeepCopy() *Scale { - if in == nil { - return nil - } - out := new(Scale) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Scale) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec. -func (in *ScaleSpec) DeepCopy() *ScaleSpec { - if in == nil { - return nil - } - out := new(ScaleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus. -func (in *ScaleStatus) DeepCopy() *ScaleStatus { - if in == nil { - return nil - } - out := new(ScaleStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSet) DeepCopyInto(out *StatefulSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSet. -func (in *StatefulSet) DeepCopy() *StatefulSet { - if in == nil { - return nil - } - out := new(StatefulSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StatefulSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetCondition) DeepCopyInto(out *StatefulSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetCondition. -func (in *StatefulSetCondition) DeepCopy() *StatefulSetCondition { - if in == nil { - return nil - } - out := new(StatefulSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetList) DeepCopyInto(out *StatefulSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]StatefulSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetList. -func (in *StatefulSetList) DeepCopy() *StatefulSetList { - if in == nil { - return nil - } - out := new(StatefulSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StatefulSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - if in.VolumeClaimTemplates != nil { - in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]corev1.PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec. -func (in *StatefulSetSpec) DeepCopy() *StatefulSetSpec { - if in == nil { - return nil - } - out := new(StatefulSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetStatus) DeepCopyInto(out *StatefulSetStatus) { - *out = *in - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = **in - } - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]StatefulSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetStatus. -func (in *StatefulSetStatus) DeepCopy() *StatefulSetStatus { - if in == nil { - return nil - } - out := new(StatefulSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetUpdateStrategy) DeepCopyInto(out *StatefulSetUpdateStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateStatefulSetStrategy) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetUpdateStrategy. -func (in *StatefulSetUpdateStrategy) DeepCopy() *StatefulSetUpdateStrategy { - if in == nil { - return nil - } - out := new(StatefulSetUpdateStrategy) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/apps/v1beta2/doc.go b/pseudo/k8s/api/apps/v1beta2/doc.go deleted file mode 100644 index f85831373..000000000 --- a/pseudo/k8s/api/apps/v1beta2/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1beta2 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta2" diff --git a/pseudo/k8s/api/apps/v1beta2/generated.pb.go b/pseudo/k8s/api/apps/v1beta2/generated.pb.go deleted file mode 100644 index 9384c2648..000000000 --- a/pseudo/k8s/api/apps/v1beta2/generated.pb.go +++ /dev/null @@ -1,9040 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta2/generated.proto - -package v1beta2 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ControllerRevision) Reset() { *m = ControllerRevision{} } -func (*ControllerRevision) ProtoMessage() {} -func (*ControllerRevision) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{0} -} -func (m *ControllerRevision) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControllerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ControllerRevision) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControllerRevision.Merge(m, src) -} -func (m *ControllerRevision) XXX_Size() int { - return m.Size() -} -func (m *ControllerRevision) XXX_DiscardUnknown() { - xxx_messageInfo_ControllerRevision.DiscardUnknown(m) -} - -var xxx_messageInfo_ControllerRevision proto.InternalMessageInfo - -func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} } -func (*ControllerRevisionList) ProtoMessage() {} -func (*ControllerRevisionList) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{1} -} -func (m *ControllerRevisionList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ControllerRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ControllerRevisionList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ControllerRevisionList.Merge(m, src) -} -func (m *ControllerRevisionList) XXX_Size() int { - return m.Size() -} -func (m *ControllerRevisionList) XXX_DiscardUnknown() { - xxx_messageInfo_ControllerRevisionList.DiscardUnknown(m) -} - -var xxx_messageInfo_ControllerRevisionList proto.InternalMessageInfo - -func (m *DaemonSet) Reset() { *m = DaemonSet{} } -func (*DaemonSet) ProtoMessage() {} -func (*DaemonSet) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{2} -} -func (m *DaemonSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSet.Merge(m, src) -} -func (m *DaemonSet) XXX_Size() int { - return m.Size() -} -func (m *DaemonSet) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSet.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSet proto.InternalMessageInfo - -func (m *DaemonSetCondition) Reset() { *m = DaemonSetCondition{} } -func (*DaemonSetCondition) ProtoMessage() {} -func (*DaemonSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{3} -} -func (m *DaemonSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetCondition.Merge(m, src) -} -func (m *DaemonSetCondition) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetCondition proto.InternalMessageInfo - -func (m *DaemonSetList) Reset() { *m = DaemonSetList{} } -func (*DaemonSetList) ProtoMessage() {} -func (*DaemonSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{4} -} -func (m *DaemonSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetList.Merge(m, src) -} -func (m *DaemonSetList) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetList) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetList proto.InternalMessageInfo - -func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} } -func (*DaemonSetSpec) ProtoMessage() {} -func (*DaemonSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{5} -} -func (m *DaemonSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetSpec.Merge(m, src) -} -func (m *DaemonSetSpec) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetSpec proto.InternalMessageInfo - -func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} } -func (*DaemonSetStatus) ProtoMessage() {} -func (*DaemonSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{6} -} -func (m *DaemonSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetStatus.Merge(m, src) -} -func (m *DaemonSetStatus) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetStatus proto.InternalMessageInfo - -func (m *DaemonSetUpdateStrategy) Reset() { *m = DaemonSetUpdateStrategy{} } -func (*DaemonSetUpdateStrategy) ProtoMessage() {} -func (*DaemonSetUpdateStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{7} -} -func (m *DaemonSetUpdateStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetUpdateStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetUpdateStrategy.Merge(m, src) -} -func (m *DaemonSetUpdateStrategy) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetUpdateStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetUpdateStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetUpdateStrategy proto.InternalMessageInfo - -func (m *Deployment) Reset() { *m = Deployment{} } -func (*Deployment) ProtoMessage() {} -func (*Deployment) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{8} -} -func (m *Deployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Deployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deployment.Merge(m, src) -} -func (m *Deployment) XXX_Size() int { - return m.Size() -} -func (m *Deployment) XXX_DiscardUnknown() { - xxx_messageInfo_Deployment.DiscardUnknown(m) -} - -var xxx_messageInfo_Deployment proto.InternalMessageInfo - -func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } -func (*DeploymentCondition) ProtoMessage() {} -func (*DeploymentCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{9} -} -func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentCondition.Merge(m, src) -} -func (m *DeploymentCondition) XXX_Size() int { - return m.Size() -} -func (m *DeploymentCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo - -func (m *DeploymentList) Reset() { *m = DeploymentList{} } -func (*DeploymentList) ProtoMessage() {} -func (*DeploymentList) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{10} -} -func (m *DeploymentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentList.Merge(m, src) -} -func (m *DeploymentList) XXX_Size() int { - return m.Size() -} -func (m *DeploymentList) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentList.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentList proto.InternalMessageInfo - -func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } -func (*DeploymentSpec) ProtoMessage() {} -func (*DeploymentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{11} -} -func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentSpec.Merge(m, src) -} -func (m *DeploymentSpec) XXX_Size() int { - return m.Size() -} -func (m *DeploymentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo - -func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } -func (*DeploymentStatus) ProtoMessage() {} -func (*DeploymentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{12} -} -func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStatus.Merge(m, src) -} -func (m *DeploymentStatus) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo - -func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } -func (*DeploymentStrategy) ProtoMessage() {} -func (*DeploymentStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{13} -} -func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStrategy.Merge(m, src) -} -func (m *DeploymentStrategy) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo - -func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } -func (*ReplicaSet) ProtoMessage() {} -func (*ReplicaSet) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{14} -} -func (m *ReplicaSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSet.Merge(m, src) -} -func (m *ReplicaSet) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSet) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSet.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSet proto.InternalMessageInfo - -func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} } -func (*ReplicaSetCondition) ProtoMessage() {} -func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{15} -} -func (m *ReplicaSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetCondition.Merge(m, src) -} -func (m *ReplicaSetCondition) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetCondition proto.InternalMessageInfo - -func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } -func (*ReplicaSetList) ProtoMessage() {} -func (*ReplicaSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{16} -} -func (m *ReplicaSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetList.Merge(m, src) -} -func (m *ReplicaSetList) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetList) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetList proto.InternalMessageInfo - -func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } -func (*ReplicaSetSpec) ProtoMessage() {} -func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{17} -} -func (m *ReplicaSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetSpec.Merge(m, src) -} -func (m *ReplicaSetSpec) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetSpec proto.InternalMessageInfo - -func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } -func (*ReplicaSetStatus) ProtoMessage() {} -func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{18} -} -func (m *ReplicaSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetStatus.Merge(m, src) -} -func (m *ReplicaSetStatus) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetStatus proto.InternalMessageInfo - -func (m *RollingUpdateDaemonSet) Reset() { *m = RollingUpdateDaemonSet{} } -func (*RollingUpdateDaemonSet) ProtoMessage() {} -func (*RollingUpdateDaemonSet) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{19} -} -func (m *RollingUpdateDaemonSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDaemonSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDaemonSet.Merge(m, src) -} -func (m *RollingUpdateDaemonSet) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDaemonSet) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDaemonSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDaemonSet proto.InternalMessageInfo - -func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } -func (*RollingUpdateDeployment) ProtoMessage() {} -func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{20} -} -func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDeployment.Merge(m, src) -} -func (m *RollingUpdateDeployment) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDeployment) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo - -func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} } -func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {} -func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{21} -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateStatefulSetStrategy.Merge(m, src) -} -func (m *RollingUpdateStatefulSetStrategy) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateStatefulSetStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateStatefulSetStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateStatefulSetStrategy proto.InternalMessageInfo - -func (m *Scale) Reset() { *m = Scale{} } -func (*Scale) ProtoMessage() {} -func (*Scale) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{22} -} -func (m *Scale) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Scale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Scale) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scale.Merge(m, src) -} -func (m *Scale) XXX_Size() int { - return m.Size() -} -func (m *Scale) XXX_DiscardUnknown() { - xxx_messageInfo_Scale.DiscardUnknown(m) -} - -var xxx_messageInfo_Scale proto.InternalMessageInfo - -func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } -func (*ScaleSpec) ProtoMessage() {} -func (*ScaleSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{23} -} -func (m *ScaleSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleSpec.Merge(m, src) -} -func (m *ScaleSpec) XXX_Size() int { - return m.Size() -} -func (m *ScaleSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleSpec proto.InternalMessageInfo - -func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } -func (*ScaleStatus) ProtoMessage() {} -func (*ScaleStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{24} -} -func (m *ScaleStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleStatus.Merge(m, src) -} -func (m *ScaleStatus) XXX_Size() int { - return m.Size() -} -func (m *ScaleStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleStatus proto.InternalMessageInfo - -func (m *StatefulSet) Reset() { *m = StatefulSet{} } -func (*StatefulSet) ProtoMessage() {} -func (*StatefulSet) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{25} -} -func (m *StatefulSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSet.Merge(m, src) -} -func (m *StatefulSet) XXX_Size() int { - return m.Size() -} -func (m *StatefulSet) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSet.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSet proto.InternalMessageInfo - -func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} } -func (*StatefulSetCondition) ProtoMessage() {} -func (*StatefulSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{26} -} -func (m *StatefulSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetCondition.Merge(m, src) -} -func (m *StatefulSetCondition) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetCondition proto.InternalMessageInfo - -func (m *StatefulSetList) Reset() { *m = StatefulSetList{} } -func (*StatefulSetList) ProtoMessage() {} -func (*StatefulSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{27} -} -func (m *StatefulSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetList.Merge(m, src) -} -func (m *StatefulSetList) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetList) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetList proto.InternalMessageInfo - -func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } -func (*StatefulSetSpec) ProtoMessage() {} -func (*StatefulSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{28} -} -func (m *StatefulSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetSpec.Merge(m, src) -} -func (m *StatefulSetSpec) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetSpec proto.InternalMessageInfo - -func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} } -func (*StatefulSetStatus) ProtoMessage() {} -func (*StatefulSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{29} -} -func (m *StatefulSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetStatus.Merge(m, src) -} -func (m *StatefulSetStatus) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetStatus proto.InternalMessageInfo - -func (m *StatefulSetUpdateStrategy) Reset() { *m = StatefulSetUpdateStrategy{} } -func (*StatefulSetUpdateStrategy) ProtoMessage() {} -func (*StatefulSetUpdateStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_42fe616264472f7e, []int{30} -} -func (m *StatefulSetUpdateStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatefulSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatefulSetUpdateStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatefulSetUpdateStrategy.Merge(m, src) -} -func (m *StatefulSetUpdateStrategy) XXX_Size() int { - return m.Size() -} -func (m *StatefulSetUpdateStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_StatefulSetUpdateStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_StatefulSetUpdateStrategy proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ControllerRevision)(nil), "k8s.io.api.apps.v1beta2.ControllerRevision") - proto.RegisterType((*ControllerRevisionList)(nil), "k8s.io.api.apps.v1beta2.ControllerRevisionList") - proto.RegisterType((*DaemonSet)(nil), "k8s.io.api.apps.v1beta2.DaemonSet") - proto.RegisterType((*DaemonSetCondition)(nil), "k8s.io.api.apps.v1beta2.DaemonSetCondition") - proto.RegisterType((*DaemonSetList)(nil), "k8s.io.api.apps.v1beta2.DaemonSetList") - proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.api.apps.v1beta2.DaemonSetSpec") - proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.api.apps.v1beta2.DaemonSetStatus") - proto.RegisterType((*DaemonSetUpdateStrategy)(nil), "k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy") - proto.RegisterType((*Deployment)(nil), "k8s.io.api.apps.v1beta2.Deployment") - proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.apps.v1beta2.DeploymentCondition") - proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.apps.v1beta2.DeploymentList") - proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.apps.v1beta2.DeploymentSpec") - proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.apps.v1beta2.DeploymentStatus") - proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.apps.v1beta2.DeploymentStrategy") - proto.RegisterType((*ReplicaSet)(nil), "k8s.io.api.apps.v1beta2.ReplicaSet") - proto.RegisterType((*ReplicaSetCondition)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetCondition") - proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetList") - proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetSpec") - proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.api.apps.v1beta2.ReplicaSetStatus") - proto.RegisterType((*RollingUpdateDaemonSet)(nil), "k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet") - proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.apps.v1beta2.RollingUpdateDeployment") - proto.RegisterType((*RollingUpdateStatefulSetStrategy)(nil), "k8s.io.api.apps.v1beta2.RollingUpdateStatefulSetStrategy") - proto.RegisterType((*Scale)(nil), "k8s.io.api.apps.v1beta2.Scale") - proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.apps.v1beta2.ScaleSpec") - proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.apps.v1beta2.ScaleStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.apps.v1beta2.ScaleStatus.SelectorEntry") - proto.RegisterType((*StatefulSet)(nil), "k8s.io.api.apps.v1beta2.StatefulSet") - proto.RegisterType((*StatefulSetCondition)(nil), "k8s.io.api.apps.v1beta2.StatefulSetCondition") - proto.RegisterType((*StatefulSetList)(nil), "k8s.io.api.apps.v1beta2.StatefulSetList") - proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.api.apps.v1beta2.StatefulSetSpec") - proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.api.apps.v1beta2.StatefulSetStatus") - proto.RegisterType((*StatefulSetUpdateStrategy)(nil), "k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta2/generated.proto", fileDescriptor_42fe616264472f7e) -} - -var fileDescriptor_42fe616264472f7e = []byte{ - // 2171 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcd, 0x6f, 0x1c, 0xb7, - 0xf9, 0xd6, 0xec, 0x87, 0xb4, 0xa2, 0x2c, 0xc9, 0xa6, 0xf4, 0x93, 0x36, 0xf2, 0xaf, 0x2b, 0x63, - 0x13, 0x38, 0x4a, 0x6c, 0xcd, 0xda, 0xca, 0x07, 0x12, 0xbb, 0x68, 0xab, 0x95, 0x52, 0xdb, 0x81, - 0xbe, 0x42, 0x59, 0x06, 0x1a, 0xb4, 0xa8, 0xa9, 0x5d, 0x7a, 0x35, 0xd1, 0x7c, 0x61, 0x86, 0xb3, - 0xf5, 0xa2, 0x97, 0x9e, 0x0a, 0x14, 0x28, 0xd0, 0xf6, 0xda, 0x7f, 0xa2, 0xb7, 0xa2, 0x68, 0x6f, - 0x45, 0x50, 0xf8, 0x52, 0x20, 0xe8, 0x25, 0x39, 0x09, 0xf5, 0xe6, 0x54, 0x14, 0xbd, 0x14, 0xe8, - 0x25, 0x40, 0x81, 0x82, 0x1c, 0xce, 0x07, 0xe7, 0xc3, 0x3b, 0x52, 0x1c, 0xa5, 0x29, 0x72, 0xd3, - 0x92, 0xcf, 0xfb, 0xf0, 0x7d, 0xc9, 0x97, 0x7c, 0x1f, 0x72, 0x04, 0xbe, 0x73, 0xfc, 0x96, 0xab, - 0x6a, 0x56, 0xeb, 0xd8, 0x3b, 0x24, 0x8e, 0x49, 0x28, 0x71, 0x5b, 0x7d, 0x62, 0x76, 0x2d, 0xa7, - 0x25, 0x3a, 0xb0, 0xad, 0xb5, 0xb0, 0x6d, 0xbb, 0xad, 0xfe, 0xcd, 0x43, 0x42, 0xf1, 0x5a, 0xab, - 0x47, 0x4c, 0xe2, 0x60, 0x4a, 0xba, 0xaa, 0xed, 0x58, 0xd4, 0x82, 0x8b, 0x3e, 0x50, 0xc5, 0xb6, - 0xa6, 0x32, 0xa0, 0x2a, 0x80, 0x4b, 0xab, 0x3d, 0x8d, 0x1e, 0x79, 0x87, 0x6a, 0xc7, 0x32, 0x5a, - 0x3d, 0xab, 0x67, 0xb5, 0x38, 0xfe, 0xd0, 0x7b, 0xc4, 0x7f, 0xf1, 0x1f, 0xfc, 0x2f, 0x9f, 0x67, - 0xa9, 0x19, 0x1b, 0xb0, 0x63, 0x39, 0xa4, 0xd5, 0xbf, 0x99, 0x1c, 0x6b, 0xe9, 0xf5, 0x08, 0x63, - 0xe0, 0xce, 0x91, 0x66, 0x12, 0x67, 0xd0, 0xb2, 0x8f, 0x7b, 0xac, 0xc1, 0x6d, 0x19, 0x84, 0xe2, - 0x2c, 0xab, 0x56, 0x9e, 0x95, 0xe3, 0x99, 0x54, 0x33, 0x48, 0xca, 0xe0, 0xcd, 0x51, 0x06, 0x6e, - 0xe7, 0x88, 0x18, 0x38, 0x65, 0xf7, 0x5a, 0x9e, 0x9d, 0x47, 0x35, 0xbd, 0xa5, 0x99, 0xd4, 0xa5, - 0x4e, 0xd2, 0xa8, 0xf9, 0x2f, 0x05, 0xc0, 0x0d, 0xcb, 0xa4, 0x8e, 0xa5, 0xeb, 0xc4, 0x41, 0xa4, - 0xaf, 0xb9, 0x9a, 0x65, 0xc2, 0x87, 0xa0, 0xc6, 0xe2, 0xe9, 0x62, 0x8a, 0xeb, 0xca, 0x15, 0x65, - 0x65, 0x6a, 0xed, 0x86, 0x1a, 0xcd, 0x74, 0x48, 0xaf, 0xda, 0xc7, 0x3d, 0xd6, 0xe0, 0xaa, 0x0c, - 0xad, 0xf6, 0x6f, 0xaa, 0xbb, 0x87, 0x1f, 0x90, 0x0e, 0xdd, 0x26, 0x14, 0xb7, 0xe1, 0x93, 0x93, - 0xe5, 0xb1, 0xe1, 0xc9, 0x32, 0x88, 0xda, 0x50, 0xc8, 0x0a, 0x77, 0x41, 0x85, 0xb3, 0x97, 0x38, - 0xfb, 0x6a, 0x2e, 0xbb, 0x08, 0x5a, 0x45, 0xf8, 0x47, 0xef, 0x3c, 0xa6, 0xc4, 0x64, 0xee, 0xb5, - 0x2f, 0x08, 0xea, 0xca, 0x26, 0xa6, 0x18, 0x71, 0x22, 0x78, 0x1d, 0xd4, 0x1c, 0xe1, 0x7e, 0xbd, - 0x7c, 0x45, 0x59, 0x29, 0xb7, 0x2f, 0x0a, 0x54, 0x2d, 0x08, 0x0b, 0x85, 0x88, 0xe6, 0x13, 0x05, - 0x2c, 0xa4, 0xe3, 0xde, 0xd2, 0x5c, 0x0a, 0xbf, 0x9f, 0x8a, 0x5d, 0x2d, 0x16, 0x3b, 0xb3, 0xe6, - 0x91, 0x87, 0x03, 0x07, 0x2d, 0xb1, 0xb8, 0xf7, 0x40, 0x55, 0xa3, 0xc4, 0x70, 0xeb, 0xa5, 0x2b, - 0xe5, 0x95, 0xa9, 0xb5, 0x6b, 0x6a, 0x4e, 0x02, 0xab, 0x69, 0xef, 0xda, 0xd3, 0x82, 0xb7, 0x7a, - 0x8f, 0x31, 0x20, 0x9f, 0xa8, 0xf9, 0xb3, 0x12, 0x98, 0xdc, 0xc4, 0xc4, 0xb0, 0xcc, 0x7d, 0x42, - 0xcf, 0x61, 0xe5, 0xee, 0x82, 0x8a, 0x6b, 0x93, 0x8e, 0x58, 0xb9, 0xab, 0xb9, 0x01, 0x84, 0x3e, - 0xed, 0xdb, 0xa4, 0x13, 0x2d, 0x19, 0xfb, 0x85, 0x38, 0x03, 0xdc, 0x03, 0xe3, 0x2e, 0xc5, 0xd4, - 0x73, 0xf9, 0x82, 0x4d, 0xad, 0xad, 0x14, 0xe0, 0xe2, 0xf8, 0xf6, 0x8c, 0x60, 0x1b, 0xf7, 0x7f, - 0x23, 0xc1, 0xd3, 0xfc, 0x5b, 0x09, 0xc0, 0x10, 0xbb, 0x61, 0x99, 0x5d, 0x8d, 0xb2, 0x74, 0xbe, - 0x05, 0x2a, 0x74, 0x60, 0x13, 0x3e, 0x21, 0x93, 0xed, 0xab, 0x81, 0x2b, 0xf7, 0x07, 0x36, 0xf9, - 0xec, 0x64, 0x79, 0x21, 0x6d, 0xc1, 0x7a, 0x10, 0xb7, 0x81, 0x5b, 0xa1, 0x93, 0x25, 0x6e, 0xfd, - 0xba, 0x3c, 0xf4, 0x67, 0x27, 0xcb, 0x19, 0x67, 0x87, 0x1a, 0x32, 0xc9, 0x0e, 0xc2, 0x3e, 0x80, - 0x3a, 0x76, 0xe9, 0x7d, 0x07, 0x9b, 0xae, 0x3f, 0x92, 0x66, 0x10, 0x11, 0xfe, 0xab, 0xc5, 0x16, - 0x8a, 0x59, 0xb4, 0x97, 0x84, 0x17, 0x70, 0x2b, 0xc5, 0x86, 0x32, 0x46, 0x80, 0x57, 0xc1, 0xb8, - 0x43, 0xb0, 0x6b, 0x99, 0xf5, 0x0a, 0x8f, 0x22, 0x9c, 0x40, 0xc4, 0x5b, 0x91, 0xe8, 0x85, 0xaf, - 0x80, 0x09, 0x83, 0xb8, 0x2e, 0xee, 0x91, 0x7a, 0x95, 0x03, 0x67, 0x05, 0x70, 0x62, 0xdb, 0x6f, - 0x46, 0x41, 0x7f, 0xf3, 0xb7, 0x0a, 0x98, 0x0e, 0x67, 0xee, 0x1c, 0x76, 0xce, 0x1d, 0x79, 0xe7, - 0x34, 0x47, 0x27, 0x4b, 0xce, 0x86, 0xf9, 0xb0, 0x1c, 0x73, 0x9c, 0xa5, 0x23, 0xfc, 0x01, 0xa8, - 0xb9, 0x44, 0x27, 0x1d, 0x6a, 0x39, 0xc2, 0xf1, 0xd7, 0x0a, 0x3a, 0x8e, 0x0f, 0x89, 0xbe, 0x2f, - 0x4c, 0xdb, 0x17, 0x98, 0xe7, 0xc1, 0x2f, 0x14, 0x52, 0xc2, 0xf7, 0x40, 0x8d, 0x12, 0xc3, 0xd6, - 0x31, 0x25, 0x62, 0xd7, 0xbc, 0x18, 0x77, 0x9e, 0xe5, 0x0c, 0x23, 0xdb, 0xb3, 0xba, 0xf7, 0x05, - 0x8c, 0x6f, 0x99, 0x70, 0x32, 0x82, 0x56, 0x14, 0xd2, 0x40, 0x1b, 0xcc, 0x78, 0x76, 0x97, 0x21, - 0x29, 0x3b, 0xce, 0x7b, 0x03, 0x91, 0x43, 0x37, 0x46, 0xcf, 0xca, 0x81, 0x64, 0xd7, 0x5e, 0x10, - 0xa3, 0xcc, 0xc8, 0xed, 0x28, 0xc1, 0x0f, 0xd7, 0xc1, 0xac, 0xa1, 0x99, 0x88, 0xe0, 0xee, 0x60, - 0x9f, 0x74, 0x2c, 0xb3, 0xeb, 0xf2, 0x54, 0xaa, 0xb6, 0x17, 0x05, 0xc1, 0xec, 0xb6, 0xdc, 0x8d, - 0x92, 0x78, 0xb8, 0x05, 0xe6, 0x83, 0x03, 0xf8, 0xae, 0xe6, 0x52, 0xcb, 0x19, 0x6c, 0x69, 0x86, - 0x46, 0xeb, 0xe3, 0x9c, 0xa7, 0x3e, 0x3c, 0x59, 0x9e, 0x47, 0x19, 0xfd, 0x28, 0xd3, 0xaa, 0xf9, - 0xab, 0x71, 0x30, 0x9b, 0x38, 0x17, 0xe0, 0x03, 0xb0, 0xd0, 0xf1, 0x1c, 0x87, 0x98, 0x74, 0xc7, - 0x33, 0x0e, 0x89, 0xb3, 0xdf, 0x39, 0x22, 0x5d, 0x4f, 0x27, 0x5d, 0xbe, 0xac, 0xd5, 0x76, 0x43, - 0xf8, 0xba, 0xb0, 0x91, 0x89, 0x42, 0x39, 0xd6, 0xf0, 0x5d, 0x00, 0x4d, 0xde, 0xb4, 0xad, 0xb9, - 0x6e, 0xc8, 0x59, 0xe2, 0x9c, 0xe1, 0x56, 0xdc, 0x49, 0x21, 0x50, 0x86, 0x15, 0xf3, 0xb1, 0x4b, - 0x5c, 0xcd, 0x21, 0xdd, 0xa4, 0x8f, 0x65, 0xd9, 0xc7, 0xcd, 0x4c, 0x14, 0xca, 0xb1, 0x86, 0x6f, - 0x80, 0x29, 0x7f, 0x34, 0x3e, 0xe7, 0x62, 0x71, 0xe6, 0x04, 0xd9, 0xd4, 0x4e, 0xd4, 0x85, 0xe2, - 0x38, 0x16, 0x9a, 0x75, 0xe8, 0x12, 0xa7, 0x4f, 0xba, 0x77, 0x7c, 0x71, 0xc0, 0x2a, 0x68, 0x95, - 0x57, 0xd0, 0x30, 0xb4, 0xdd, 0x14, 0x02, 0x65, 0x58, 0xb1, 0xd0, 0xfc, 0xac, 0x49, 0x85, 0x36, - 0x2e, 0x87, 0x76, 0x90, 0x89, 0x42, 0x39, 0xd6, 0x2c, 0xf7, 0x7c, 0x97, 0xd7, 0xfb, 0x58, 0xd3, - 0xf1, 0xa1, 0x4e, 0xea, 0x13, 0x72, 0xee, 0xed, 0xc8, 0xdd, 0x28, 0x89, 0x87, 0x77, 0xc0, 0x25, - 0xbf, 0xe9, 0xc0, 0xc4, 0x21, 0x49, 0x8d, 0x93, 0xbc, 0x20, 0x48, 0x2e, 0xed, 0x24, 0x01, 0x28, - 0x6d, 0x03, 0x6f, 0x81, 0x99, 0x8e, 0xa5, 0xeb, 0x3c, 0x1f, 0x37, 0x2c, 0xcf, 0xa4, 0xf5, 0x49, - 0xce, 0x02, 0xd9, 0x1e, 0xda, 0x90, 0x7a, 0x50, 0x02, 0x09, 0x7f, 0x08, 0x40, 0x27, 0x28, 0x0c, - 0x6e, 0x1d, 0x8c, 0x50, 0x00, 0xe9, 0xb2, 0x14, 0x55, 0xe6, 0xb0, 0xc9, 0x45, 0x31, 0xca, 0xe6, - 0x87, 0x0a, 0x58, 0xcc, 0xd9, 0xe8, 0xf0, 0xdb, 0x52, 0x11, 0xbc, 0x96, 0x28, 0x82, 0x97, 0x73, - 0xcc, 0x62, 0x95, 0xf0, 0x08, 0x4c, 0x33, 0x41, 0xa2, 0x99, 0x3d, 0x1f, 0x22, 0xce, 0xb2, 0x56, - 0x6e, 0x00, 0x28, 0x8e, 0x8e, 0x4e, 0xe5, 0x4b, 0xc3, 0x93, 0xe5, 0x69, 0xa9, 0x0f, 0xc9, 0xc4, - 0xcd, 0x9f, 0x97, 0x00, 0xd8, 0x24, 0xb6, 0x6e, 0x0d, 0x0c, 0x62, 0x9e, 0x87, 0xa6, 0xb9, 0x27, - 0x69, 0x9a, 0x97, 0xf3, 0x97, 0x24, 0x74, 0x2a, 0x57, 0xd4, 0xbc, 0x97, 0x10, 0x35, 0xaf, 0x14, - 0x21, 0x7b, 0xb6, 0xaa, 0xf9, 0xb8, 0x0c, 0xe6, 0x22, 0x70, 0x24, 0x6b, 0x6e, 0x4b, 0x2b, 0xfa, - 0x72, 0x62, 0x45, 0x17, 0x33, 0x4c, 0xbe, 0x30, 0x5d, 0xf3, 0x01, 0x98, 0x61, 0xaa, 0xc3, 0x5f, - 0x3f, 0xae, 0x69, 0xc6, 0x4f, 0xad, 0x69, 0xc2, 0x4a, 0xb4, 0x25, 0x31, 0xa1, 0x04, 0x73, 0x8e, - 0x86, 0x9a, 0xf8, 0x2a, 0x6a, 0xa8, 0xdf, 0x29, 0x60, 0x26, 0x5a, 0xa6, 0x73, 0x10, 0x51, 0x77, - 0x65, 0x11, 0xf5, 0x62, 0x81, 0xe4, 0xcc, 0x51, 0x51, 0x1f, 0x57, 0xe2, 0xae, 0x73, 0x19, 0xb5, - 0xc2, 0xae, 0x60, 0xb6, 0xae, 0x75, 0xb0, 0x2b, 0xea, 0xed, 0x05, 0xff, 0xfa, 0xe5, 0xb7, 0xa1, - 0xb0, 0x57, 0x12, 0x5c, 0xa5, 0x2f, 0x56, 0x70, 0x95, 0x9f, 0x8f, 0xe0, 0xfa, 0x1e, 0xa8, 0xb9, - 0x81, 0xd4, 0xaa, 0x70, 0xca, 0x6b, 0x85, 0x36, 0xb6, 0x50, 0x59, 0x21, 0x75, 0xa8, 0xaf, 0x42, - 0xba, 0x2c, 0x65, 0x55, 0xfd, 0x32, 0x95, 0x15, 0x4b, 0x74, 0x1b, 0x7b, 0x2e, 0xe9, 0xf2, 0x4d, - 0x55, 0x8b, 0x12, 0x7d, 0x8f, 0xb7, 0x22, 0xd1, 0x0b, 0x0f, 0xc0, 0xa2, 0xed, 0x58, 0x3d, 0x87, - 0xb8, 0xee, 0x26, 0xc1, 0x5d, 0x5d, 0x33, 0x49, 0x10, 0x80, 0x5f, 0x13, 0x2f, 0x0f, 0x4f, 0x96, - 0x17, 0xf7, 0xb2, 0x21, 0x28, 0xcf, 0xb6, 0xf9, 0xc7, 0x0a, 0xb8, 0x98, 0x3c, 0x1b, 0x73, 0x64, - 0x8a, 0x72, 0x26, 0x99, 0x72, 0x3d, 0x96, 0xa7, 0xbe, 0x86, 0x8b, 0x3d, 0x15, 0xa4, 0x72, 0x75, - 0x1d, 0xcc, 0x0a, 0x59, 0x12, 0x74, 0x0a, 0xa1, 0x16, 0x2e, 0xcf, 0x81, 0xdc, 0x8d, 0x92, 0x78, - 0x78, 0x1b, 0x4c, 0x3b, 0x5c, 0x79, 0x05, 0x04, 0xbe, 0x7a, 0xf9, 0x3f, 0x41, 0x30, 0x8d, 0xe2, - 0x9d, 0x48, 0xc6, 0x32, 0xe5, 0x12, 0x09, 0x92, 0x80, 0xa0, 0x22, 0x2b, 0x97, 0xf5, 0x24, 0x00, - 0xa5, 0x6d, 0xe0, 0x36, 0x98, 0xf3, 0xcc, 0x34, 0x95, 0x9f, 0x6b, 0x97, 0x05, 0xd5, 0xdc, 0x41, - 0x1a, 0x82, 0xb2, 0xec, 0xe0, 0x43, 0x49, 0xcc, 0x8c, 0xf3, 0xf3, 0xe4, 0x7a, 0x81, 0x3d, 0x51, - 0x58, 0xcd, 0x64, 0x48, 0xad, 0x5a, 0x51, 0xa9, 0xd5, 0xfc, 0x83, 0x02, 0x60, 0x7a, 0x1f, 0x8e, - 0x7c, 0x09, 0x48, 0x59, 0xc4, 0x2a, 0xa6, 0x96, 0xad, 0x7f, 0x6e, 0x14, 0xd4, 0x3f, 0xd1, 0x81, - 0x5a, 0x4c, 0x00, 0x89, 0x89, 0x3e, 0x9f, 0x47, 0x9d, 0xa2, 0x02, 0x28, 0x72, 0xea, 0x39, 0x08, - 0xa0, 0x18, 0xd9, 0xb3, 0x05, 0xd0, 0xdf, 0x4b, 0x60, 0x2e, 0x02, 0x17, 0x16, 0x40, 0x19, 0x26, - 0x5f, 0x3f, 0xec, 0x14, 0x13, 0x25, 0xd1, 0xd4, 0xfd, 0x37, 0x89, 0x92, 0xc8, 0xab, 0x1c, 0x51, - 0xf2, 0x9b, 0x52, 0xdc, 0xf5, 0x53, 0x8a, 0x92, 0xe7, 0xf0, 0xc2, 0xf1, 0x95, 0xd3, 0x35, 0xcd, - 0x3f, 0x95, 0xc1, 0xc5, 0xe4, 0x3e, 0x94, 0x0a, 0xa4, 0x32, 0xb2, 0x40, 0xee, 0x81, 0xf9, 0x47, - 0x9e, 0xae, 0x0f, 0x78, 0x0c, 0xb1, 0x2a, 0xe9, 0x97, 0xd6, 0xff, 0x17, 0x96, 0xf3, 0xdf, 0xcd, - 0xc0, 0xa0, 0x4c, 0xcb, 0x74, 0xbd, 0xac, 0x7c, 0xde, 0x7a, 0x59, 0x3d, 0x43, 0xbd, 0xcc, 0x96, - 0x1c, 0xe5, 0x33, 0x49, 0x8e, 0xd3, 0x15, 0xcb, 0x8c, 0x83, 0x6b, 0xe4, 0xd5, 0xff, 0xa7, 0x0a, - 0x58, 0xc8, 0xbe, 0x70, 0x43, 0x1d, 0xcc, 0x18, 0xf8, 0x71, 0xfc, 0xe1, 0x63, 0x54, 0x11, 0xf1, - 0xa8, 0xa6, 0xab, 0xfe, 0x27, 0x23, 0xf5, 0x9e, 0x49, 0x77, 0x9d, 0x7d, 0xea, 0x68, 0x66, 0xcf, - 0xaf, 0xbc, 0xdb, 0x12, 0x17, 0x4a, 0x70, 0x37, 0x3f, 0x55, 0xc0, 0x62, 0x4e, 0xe5, 0x3b, 0x5f, - 0x4f, 0xe0, 0xfb, 0xa0, 0x66, 0xe0, 0xc7, 0xfb, 0x9e, 0xd3, 0xcb, 0xaa, 0xd5, 0xc5, 0xc6, 0xe1, - 0x5b, 0x71, 0x5b, 0xb0, 0xa0, 0x90, 0xaf, 0xb9, 0x0b, 0xae, 0x48, 0x41, 0xb2, 0x9d, 0x43, 0x1e, - 0x79, 0x3a, 0xdf, 0x44, 0x42, 0x6c, 0x5c, 0x03, 0x93, 0x36, 0x76, 0xa8, 0x16, 0x4a, 0xd5, 0x6a, - 0x7b, 0x7a, 0x78, 0xb2, 0x3c, 0xb9, 0x17, 0x34, 0xa2, 0xa8, 0xbf, 0xf9, 0x6f, 0x05, 0x54, 0xf7, - 0x3b, 0x58, 0x27, 0xe7, 0x50, 0xed, 0x37, 0xa5, 0x6a, 0x9f, 0xff, 0x92, 0xce, 0xfd, 0xc9, 0x2d, - 0xf4, 0x5b, 0x89, 0x42, 0xff, 0xd2, 0x08, 0x9e, 0x67, 0xd7, 0xf8, 0xb7, 0xc1, 0x64, 0x38, 0xdc, - 0xe9, 0x0e, 0xa0, 0xe6, 0xaf, 0x4b, 0x60, 0x2a, 0x36, 0xc4, 0x29, 0x8f, 0xaf, 0x87, 0xd2, 0x99, - 0xcd, 0x36, 0xe6, 0x5a, 0x91, 0x40, 0xd4, 0xe0, 0x7c, 0x7e, 0xc7, 0xa4, 0x4e, 0xfc, 0x82, 0x97, - 0x3e, 0xb6, 0xbf, 0x05, 0x66, 0x28, 0x76, 0x7a, 0x84, 0x06, 0x7d, 0x7c, 0xc2, 0x26, 0xa3, 0x07, - 0x8f, 0xfb, 0x52, 0x2f, 0x4a, 0xa0, 0x97, 0x6e, 0x83, 0x69, 0x69, 0x30, 0x78, 0x11, 0x94, 0x8f, - 0xc9, 0xc0, 0x97, 0x3d, 0x88, 0xfd, 0x09, 0xe7, 0x41, 0xb5, 0x8f, 0x75, 0xcf, 0xcf, 0xf3, 0x49, - 0xe4, 0xff, 0xb8, 0x55, 0x7a, 0x4b, 0x69, 0xfe, 0x82, 0x4d, 0x4e, 0x94, 0x9c, 0xe7, 0x90, 0x5d, - 0xef, 0x4a, 0xd9, 0x95, 0xff, 0x51, 0x2f, 0xbe, 0x65, 0xf2, 0x72, 0x0c, 0x25, 0x72, 0xec, 0xd5, - 0x42, 0x6c, 0xcf, 0xce, 0xb4, 0x7f, 0x94, 0xc0, 0x7c, 0x0c, 0x1d, 0xc9, 0xc9, 0x6f, 0x4a, 0x72, - 0x72, 0x25, 0x21, 0x27, 0xeb, 0x59, 0x36, 0x5f, 0xeb, 0xc9, 0xd1, 0x7a, 0xf2, 0xf7, 0x0a, 0x98, - 0x8d, 0xcd, 0xdd, 0x39, 0x08, 0xca, 0x7b, 0xb2, 0xa0, 0x7c, 0xa9, 0x48, 0xd2, 0xe4, 0x28, 0xca, - 0x3f, 0x57, 0x25, 0xe7, 0xff, 0xe7, 0xdf, 0xb9, 0x7e, 0x0c, 0xe6, 0xfb, 0x96, 0xee, 0x19, 0x64, - 0x43, 0xc7, 0x9a, 0x11, 0x00, 0x98, 0x02, 0x2b, 0x27, 0xef, 0x72, 0x21, 0x3d, 0x71, 0x5c, 0xcd, - 0xa5, 0xc4, 0xa4, 0x0f, 0x22, 0xcb, 0x48, 0xf7, 0x3d, 0xc8, 0xa0, 0x43, 0x99, 0x83, 0xc0, 0x37, - 0xc0, 0x14, 0x53, 0x4e, 0x5a, 0x87, 0xec, 0x60, 0x23, 0x48, 0xac, 0xf0, 0x13, 0xd6, 0x7e, 0xd4, - 0x85, 0xe2, 0x38, 0x78, 0x04, 0xe6, 0x6c, 0xab, 0xbb, 0x8d, 0x4d, 0xdc, 0x23, 0x4c, 0x66, 0xec, - 0x59, 0xba, 0xd6, 0x19, 0xf0, 0xc7, 0xaf, 0xc9, 0xf6, 0x9b, 0xc1, 0xc3, 0xc6, 0x5e, 0x1a, 0xc2, - 0x2e, 0x89, 0x19, 0xcd, 0x7c, 0x53, 0x67, 0x51, 0x42, 0x27, 0xf5, 0xd9, 0xd5, 0x7f, 0x76, 0x5e, - 0x2b, 0x92, 0x61, 0x67, 0xfc, 0xf0, 0x9a, 0xf7, 0xb6, 0x57, 0x3b, 0xd3, 0x57, 0xd3, 0x7f, 0x56, - 0xc0, 0xa5, 0xd4, 0x51, 0xf9, 0x25, 0xbe, 0xae, 0xa5, 0xa4, 0x7e, 0xf9, 0x14, 0x52, 0x7f, 0x1d, - 0xcc, 0x8a, 0x0f, 0xb6, 0x89, 0x9b, 0x42, 0x78, 0x63, 0xdb, 0x90, 0xbb, 0x51, 0x12, 0x9f, 0xf5, - 0xba, 0x57, 0x3d, 0xe5, 0xeb, 0x5e, 0xdc, 0x0b, 0xf1, 0x0f, 0x48, 0x7e, 0xea, 0xa5, 0xbd, 0x10, - 0xff, 0x87, 0x94, 0xc4, 0x33, 0x85, 0xe0, 0xb3, 0x86, 0x0c, 0x13, 0xb2, 0x42, 0x38, 0x90, 0x7a, - 0x51, 0x02, 0xfd, 0xb9, 0x3e, 0x4a, 0xe2, 0x8c, 0x8f, 0x92, 0xab, 0x45, 0xf2, 0xb9, 0xf8, 0xdd, - 0xe4, 0x2f, 0x0a, 0x78, 0x21, 0x77, 0x23, 0xc0, 0x75, 0xa9, 0xec, 0xae, 0x26, 0xca, 0xee, 0x37, - 0x72, 0x0d, 0x63, 0xb5, 0xd7, 0xc9, 0x7e, 0x9a, 0x7b, 0xbb, 0xd8, 0xd3, 0x5c, 0x86, 0x76, 0x1f, - 0xfd, 0x46, 0xd7, 0x5e, 0x7d, 0xf2, 0xb4, 0x31, 0xf6, 0xd1, 0xd3, 0xc6, 0xd8, 0x27, 0x4f, 0x1b, - 0x63, 0x3f, 0x19, 0x36, 0x94, 0x27, 0xc3, 0x86, 0xf2, 0xd1, 0xb0, 0xa1, 0x7c, 0x32, 0x6c, 0x28, - 0x7f, 0x1d, 0x36, 0x94, 0x5f, 0x7e, 0xda, 0x18, 0x7b, 0x7f, 0x42, 0x8c, 0xf8, 0x9f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x70, 0x2d, 0x26, 0x9d, 0xec, 0x28, 0x00, 0x00, -} - -func (m *ControllerRevision) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ControllerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x18 - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ControllerRevisionList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ControllerRevisionList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ControllerRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - { - size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DaemonSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x48 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberUnavailable)) - i-- - dAtA[i] = 0x40 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberAvailable)) - i-- - dAtA[i] = 0x38 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedNumberScheduled)) - i-- - dAtA[i] = 0x30 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberReady)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredNumberScheduled)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberMisscheduled)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentNumberScheduled)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DaemonSetUpdateStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Deployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Deployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ProgressDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds)) - i-- - dAtA[i] = 0x48 - } - i-- - if m.Paused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x28 - { - size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x40 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x38 - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReplicaSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.FullyLabeledReplicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDaemonSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDaemonSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxSurge != nil { - { - size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RollingUpdateStatefulSetStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateStatefulSetStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateStatefulSetStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Partition != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Partition)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Scale) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Scale) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Scale) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScaleSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ScaleStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.TargetSelector) - copy(dAtA[i:], m.TargetSelector) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetSelector))) - i-- - dAtA[i] = 0x1a - if len(m.Selector) > 0 { - keysForSelector := make([]string, 0, len(m.Selector)) - for k := range m.Selector { - keysForSelector = append(keysForSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.Selector[string(keysForSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForSelector[iNdEx]) - copy(dAtA[i:], keysForSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *StatefulSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x40 - } - { - size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - i -= len(m.PodManagementPolicy) - copy(dAtA[i:], m.PodManagementPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodManagementPolicy))) - i-- - dAtA[i] = 0x32 - i -= len(m.ServiceName) - copy(dAtA[i:], m.ServiceName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName))) - i-- - dAtA[i] = 0x2a - if len(m.VolumeClaimTemplates) > 0 { - for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x48 - } - i -= len(m.UpdateRevision) - copy(dAtA[i:], m.UpdateRevision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpdateRevision))) - i-- - dAtA[i] = 0x3a - i -= len(m.CurrentRevision) - copy(dAtA[i:], m.CurrentRevision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CurrentRevision))) - i-- - dAtA[i] = 0x32 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *StatefulSetUpdateStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatefulSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatefulSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ControllerRevision) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Data.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Revision)) - return n -} - -func (m *ControllerRevisionList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DaemonSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DaemonSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.UpdateStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - return n -} - -func (m *DaemonSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.CurrentNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberMisscheduled)) - n += 1 + sovGenerated(uint64(m.DesiredNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberReady)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.UpdatedNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberAvailable)) - n += 1 + sovGenerated(uint64(m.NumberUnavailable)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSetUpdateStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Deployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastUpdateTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Strategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - n += 2 - if m.ProgressDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds)) - } - return n -} - -func (m *DeploymentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - return n -} - -func (m *DeploymentStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ReplicaSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicaSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicaSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ReplicaSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - return n -} - -func (m *ReplicaSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RollingUpdateDaemonSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingUpdateDeployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.MaxSurge != nil { - l = m.MaxSurge.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingUpdateStatefulSetStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Partition != nil { - n += 1 + sovGenerated(uint64(*m.Partition)) - } - return n -} - -func (m *Scale) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScaleSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - return n -} - -func (m *ScaleStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - if len(m.Selector) > 0 { - for k, v := range m.Selector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.TargetSelector) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatefulSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StatefulSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.VolumeClaimTemplates) > 0 { - for _, e := range m.VolumeClaimTemplates { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ServiceName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.PodManagementPolicy) - n += 1 + l + sovGenerated(uint64(l)) - l = m.UpdateStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - return n -} - -func (m *StatefulSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.CurrentReplicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - l = len(m.CurrentRevision) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UpdateRevision) - n += 1 + l + sovGenerated(uint64(l)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StatefulSetUpdateStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ControllerRevision) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ControllerRevision{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `}`, - }, "") - return s -} -func (this *ControllerRevisionList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ControllerRevision{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ControllerRevision", "ControllerRevision", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ControllerRevisionList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DaemonSetSpec", "DaemonSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DaemonSetStatus", "DaemonSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]DaemonSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DaemonSet", "DaemonSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DaemonSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetSpec{`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "DaemonSetUpdateStrategy", "DaemonSetUpdateStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DaemonSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DaemonSetCondition", "DaemonSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DaemonSetStatus{`, - `CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`, - `NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`, - `DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`, - `NumberReady:` + fmt.Sprintf("%v", this.NumberReady) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `UpdatedNumberScheduled:` + fmt.Sprintf("%v", this.UpdatedNumberScheduled) + `,`, - `NumberAvailable:` + fmt.Sprintf("%v", this.NumberAvailable) + `,`, - `NumberUnavailable:` + fmt.Sprintf("%v", this.NumberUnavailable) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetUpdateStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetUpdateStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDaemonSet", "RollingUpdateDaemonSet", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Deployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Deployment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Deployment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DeploymentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, - `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DeploymentCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DeploymentStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicaSetSpec", "ReplicaSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicaSetStatus", "ReplicaSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ReplicaSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ReplicaSet", "ReplicaSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ReplicaSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSetSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]ReplicaSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ReplicaSetCondition", "ReplicaSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ReplicaSetStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDaemonSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDaemonSet{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDeployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDeployment{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateStatefulSetStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateStatefulSetStrategy{`, - `Partition:` + valueToStringGenerated(this.Partition) + `,`, - `}`, - }, "") - return s -} -func (this *Scale) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Scale{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleSpec{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleStatus) String() string { - if this == nil { - return "nil" - } - keysForSelector := make([]string, 0, len(this.Selector)) - for k := range this.Selector { - keysForSelector = append(keysForSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - mapStringForSelector := "map[string]string{" - for _, k := range keysForSelector { - mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) - } - mapStringForSelector += "}" - s := strings.Join([]string{`&ScaleStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `Selector:` + mapStringForSelector + `,`, - `TargetSelector:` + fmt.Sprintf("%v", this.TargetSelector) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]StatefulSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&StatefulSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{" - for _, f := range this.VolumeClaimTemplates { - repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + "," - } - repeatedStringForVolumeClaimTemplates += "}" - s := strings.Join([]string{`&StatefulSetSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`, - `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, - `PodManagementPolicy:` + fmt.Sprintf("%v", this.PodManagementPolicy) + `,`, - `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "StatefulSetUpdateStrategy", "StatefulSetUpdateStrategy", 1), `&`, ``, 1) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]StatefulSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StatefulSetCondition", "StatefulSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&StatefulSetStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `CurrentRevision:` + fmt.Sprintf("%v", this.CurrentRevision) + `,`, - `UpdateRevision:` + fmt.Sprintf("%v", this.UpdateRevision) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *StatefulSetUpdateStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatefulSetUpdateStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateStatefulSetStrategy", "RollingUpdateStatefulSetStrategy", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ControllerRevision) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControllerRevision: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControllerRevision: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ControllerRevisionList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ControllerRevision{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DaemonSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, DaemonSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType) - } - m.CurrentNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType) - } - m.NumberMisscheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberMisscheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType) - } - m.DesiredNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType) - } - m.NumberReady = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberReady |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType) - } - m.UpdatedNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType) - } - m.NumberAvailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberAvailable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType) - } - m.NumberUnavailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberUnavailable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DaemonSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetUpdateStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetUpdateStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DaemonSetUpdateStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDaemonSet{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Deployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Deployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Deployment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ProgressDeadlineSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) - } - m.UnavailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnavailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DeploymentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDeployment{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = ReplicaSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ReplicaSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) - } - m.FullyLabeledReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FullyLabeledReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, ReplicaSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDaemonSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxSurge == nil { - m.MaxSurge = &intstr.IntOrString{} - } - if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateStatefulSetStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Partition = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Scale) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Scale: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Selector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, StatefulSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{}) - if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentRevision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateRevision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, StatefulSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatefulSetUpdateStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateStatefulSetStrategy{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/apps/v1beta2/generated.proto b/pseudo/k8s/api/apps/v1beta2/generated.proto deleted file mode 100644 index 3e15dcd2e..000000000 --- a/pseudo/k8s/api/apps/v1beta2/generated.proto +++ /dev/null @@ -1,752 +0,0 @@ -/* -Copyright 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.apps.v1beta2; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta2"; - -// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the -// release notes for more information. -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -message ControllerRevision { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Data is the serialized representation of the state. - optional k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; - - // Revision indicates the revision of the state represented by Data. - optional int64 revision = 3; -} - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -message ControllerRevisionList { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of ControllerRevisions - repeated ControllerRevision items = 2; -} - -// DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for -// more information. -// DaemonSet represents the configuration of a daemon set. -message DaemonSet { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional DaemonSetSpec spec = 2; - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional DaemonSetStatus status = 3; -} - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -message DaemonSetCondition { - // Type of DaemonSet condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// DaemonSetList is a collection of daemon sets. -message DaemonSetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // A list of daemon sets. - repeated DaemonSet items = 2; -} - -// DaemonSetSpec is the specification of a daemon set. -message DaemonSetSpec { - // 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 - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; - - // 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 - optional k8s.io.api.core.v1.PodTemplateSpec template = 2; - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - optional DaemonSetUpdateStrategy updateStrategy = 3; - - // 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). - // +optional - optional int32 minReadySeconds = 4; - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - optional int32 revisionHistoryLimit = 6; -} - -// DaemonSetStatus represents the current status of a daemon set. -message DaemonSetStatus { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 currentNumberScheduled = 1; - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 numberMisscheduled = 2; - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 desiredNumberScheduled = 3; - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - optional int32 numberReady = 4; - - // The most recent generation observed by the daemon set controller. - // +optional - optional int64 observedGeneration = 5; - - // The total number of nodes that are running updated daemon pod - // +optional - optional int32 updatedNumberScheduled = 6; - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - optional int32 numberAvailable = 7; - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - optional int32 numberUnavailable = 8; - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - optional int32 collisionCount = 9; - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated DaemonSetCondition conditions = 10; -} - -// DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. -message DaemonSetUpdateStrategy { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if type = "RollingUpdate". - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - optional RollingUpdateDaemonSet rollingUpdate = 2; -} - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -message Deployment { - // Standard object metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the Deployment. - // +optional - optional DeploymentSpec spec = 2; - - // Most recently observed status of the Deployment. - // +optional - optional DeploymentStatus status = 3; -} - -// DeploymentCondition describes the state of a deployment at a certain point. -message DeploymentCondition { - // Type of deployment condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time this condition was updated. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; - - // Last time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; - - // The reason for the condition's last transition. - optional string reason = 4; - - // A human readable message indicating details about the transition. - optional string message = 5; -} - -// DeploymentList is a list of Deployments. -message DeploymentList { - // Standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Deployments. - repeated Deployment items = 2; -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -message DeploymentSpec { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - optional int32 replicas = 1; - - // 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. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // Template describes the pods that will be created. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - optional DeploymentStrategy strategy = 4; - - // 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) - // +optional - optional int32 minReadySeconds = 5; - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - optional int32 revisionHistoryLimit = 6; - - // Indicates that the deployment is paused. - // +optional - optional bool paused = 7; - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - optional int32 progressDeadlineSeconds = 9; -} - -// DeploymentStatus is the most recently observed status of the Deployment. -message DeploymentStatus { - // The generation observed by the deployment controller. - // +optional - optional int64 observedGeneration = 1; - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - optional int32 replicas = 2; - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - optional int32 updatedReplicas = 3; - - // Total number of ready pods targeted by this deployment. - // +optional - optional int32 readyReplicas = 7; - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - optional int32 availableReplicas = 4; - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - optional int32 unavailableReplicas = 5; - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - repeated DeploymentCondition conditions = 6; - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - optional int32 collisionCount = 8; -} - -// DeploymentStrategy describes how to replace existing pods with new ones. -message DeploymentStrategy { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - optional RollingUpdateDeployment rollingUpdate = 2; -} - -// DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for -// more information. -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -message ReplicaSet { - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicaSetSpec spec = 2; - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicaSetStatus status = 3; -} - -// ReplicaSetCondition describes the state of a replica set at a certain point. -message ReplicaSetCondition { - // Type of replica set condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// ReplicaSetList is a collection of ReplicaSets. -message ReplicaSetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - repeated ReplicaSet items = 2; -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -message ReplicaSetSpec { - // 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 - // +optional - optional int32 replicas = 1; - - // 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) - // +optional - optional int32 minReadySeconds = 4; - - // 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 - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // 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 - // +optional - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -message ReplicaSetStatus { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - optional int32 replicas = 1; - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - optional int32 fullyLabeledReplicas = 2; - - // The number of ready replicas for this replica set. - // +optional - optional int32 readyReplicas = 4; - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - optional int32 availableReplicas = 5; - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - optional int64 observedGeneration = 3; - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated ReplicaSetCondition conditions = 6; -} - -// Spec to control the desired behavior of daemon set rolling update. -message RollingUpdateDaemonSet { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0. - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given - // time. The update starts by stopping at most 30% of those DaemonSet pods - // and then brings up new DaemonSet pods in their place. Once the new pods - // are available, it then proceeds onto other DaemonSet pods, thus ensuring - // that at least 70% of original number of DaemonSet pods are available at - // all times during the update. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; -} - -// Spec to control the desired behavior of rolling update. -message RollingUpdateDeployment { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; -} - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -message RollingUpdateStatefulSetStrategy { - // Partition indicates the ordinal at which the StatefulSet should be - // partitioned. - // Default value is 0. - // +optional - optional int32 partition = 1; -} - -// Scale represents a scaling request for a resource. -message Scale { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional ScaleSpec spec = 2; - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - optional ScaleStatus status = 3; -} - -// ScaleSpec describes the attributes of a scale subresource -message ScaleSpec { - // desired number of instances for the scaled object. - // +optional - optional int32 replicas = 1; -} - -// ScaleStatus represents the current status of a scale subresource. -message ScaleStatus { - // actual number of observed instances of the scaled object. - optional int32 replicas = 1; - - // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - map selector = 2; - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - optional string targetSelector = 3; -} - -// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for -// more information. -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -message StatefulSet { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the desired identities of pods in this set. - // +optional - optional StatefulSetSpec spec = 2; - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - optional StatefulSetStatus status = 3; -} - -// StatefulSetCondition describes the state of a statefulset at a certain point. -message StatefulSetCondition { - // Type of statefulset condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// StatefulSetList is a collection of StatefulSets. -message StatefulSetList { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - repeated StatefulSet items = 2; -} - -// A StatefulSetSpec is the specification of a StatefulSet. -message StatefulSetSpec { - // 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. - // TODO: Consider a rename of this field. - // +optional - optional int32 replicas = 1; - - // 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 - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // 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. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // 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. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - repeated k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4; - - // 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. - optional string serviceName = 5; - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - optional string podManagementPolicy = 6; - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - optional StatefulSetUpdateStrategy updateStrategy = 7; - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - optional int32 revisionHistoryLimit = 8; -} - -// StatefulSetStatus represents the current state of a StatefulSet. -message StatefulSetStatus { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - optional int64 observedGeneration = 1; - - // replicas is the number of Pods created by the StatefulSet controller. - optional int32 replicas = 2; - - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - optional int32 readyReplicas = 3; - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - optional int32 currentReplicas = 4; - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - optional int32 updatedReplicas = 5; - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - optional string currentRevision = 6; - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - optional string updateRevision = 7; - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - optional int32 collisionCount = 9; - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated StatefulSetCondition conditions = 10; -} - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -message StatefulSetUpdateStrategy { - // Type indicates the type of the StatefulSetUpdateStrategy. - // Default is RollingUpdate. - // +optional - optional string type = 1; - - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - // +optional - optional RollingUpdateStatefulSetStrategy rollingUpdate = 2; -} - diff --git a/pseudo/k8s/api/apps/v1beta2/register.go b/pseudo/k8s/api/apps/v1beta2/register.go deleted file mode 100644 index 4ba84d1eb..000000000 --- a/pseudo/k8s/api/apps/v1beta2/register.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -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 v1beta2 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "apps" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta2"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Deployment{}, - &DeploymentList{}, - &Scale{}, - &StatefulSet{}, - &StatefulSetList{}, - &DaemonSet{}, - &DaemonSetList{}, - &ReplicaSet{}, - &ReplicaSetList{}, - &ControllerRevision{}, - &ControllerRevisionList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/apps/v1beta2/types.go b/pseudo/k8s/api/apps/v1beta2/types.go deleted file mode 100644 index 5d3bfdda1..000000000 --- a/pseudo/k8s/api/apps/v1beta2/types.go +++ /dev/null @@ -1,876 +0,0 @@ -/* -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 v1beta2 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -const ( - ControllerRevisionHashLabelKey = "controller-revision-hash" - StatefulSetRevisionLabel = ControllerRevisionHashLabelKey - DeprecatedRollbackTo = "deprecated.deployment.rollback.to" - DeprecatedTemplateGeneration = "deprecated.daemonset.template.generation" - StatefulSetPodNameLabel = "statefulset.kubernetes.io/pod-name" -) - -// ScaleSpec describes the attributes of a scale subresource -type ScaleSpec struct { - // desired number of instances for the scaled object. - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` -} - -// ScaleStatus represents the current status of a scale subresource. -type ScaleStatus struct { - // actual number of observed instances of the scaled object. - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - TargetSelector string `json:"targetSelector,omitempty" protobuf:"bytes,3,opt,name=targetSelector"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Scale represents a scaling request for a resource. -type Scale struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=Scale,result=Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for -// more information. -// StatefulSet represents a set of pods with consistent identities. -// Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. -// The StatefulSet guarantees that a given network identity will always -// map to the same storage identity. -type StatefulSet struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the desired identities of pods in this set. - // +optional - Spec StatefulSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the current status of Pods in this StatefulSet. This data - // may be out of date by some window of time. - // +optional - Status StatefulSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// PodManagementPolicyType defines the policy for creating pods under a stateful set. -type PodManagementPolicyType string - -const ( - // OrderedReadyPodManagement will create pods in strictly increasing order on - // scale up and strictly decreasing order on scale down, progressing only when - // the previous pod is ready or terminated. At most one pod will be changed - // at any time. - OrderedReadyPodManagement PodManagementPolicyType = "OrderedReady" - // ParallelPodManagement will create and delete pods as soon as the stateful set - // replica count is changed, and will not wait for pods to be ready or complete - // termination. - ParallelPodManagement PodManagementPolicyType = "Parallel" -) - -// StatefulSetUpdateStrategy indicates the strategy that the StatefulSet -// controller will use to perform updates. It includes any additional parameters -// necessary to perform the update for the indicated strategy. -type StatefulSetUpdateStrategy struct { - // Type indicates the type of the StatefulSetUpdateStrategy. - // Default is RollingUpdate. - // +optional - Type StatefulSetUpdateStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=StatefulSetStrategyType"` - // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - // +optional - RollingUpdate *RollingUpdateStatefulSetStrategy `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -// StatefulSetUpdateStrategyType is a string enumeration type that enumerates -// all possible update strategies for the StatefulSet controller. -type StatefulSetUpdateStrategyType string - -const ( - // RollingUpdateStatefulSetStrategyType indicates that update will be - // applied to all Pods in the StatefulSet with respect to the StatefulSet - // ordering constraints. When a scale operation is performed with this - // strategy, new Pods will be created from the specification version indicated - // by the StatefulSet's updateRevision. - RollingUpdateStatefulSetStrategyType StatefulSetUpdateStrategyType = "RollingUpdate" - // OnDeleteStatefulSetStrategyType triggers the legacy behavior. Version - // tracking and ordered rolling restarts are disabled. Pods are recreated - // from the StatefulSetSpec when they are manually deleted. When a scale - // operation is performed with this strategy,specification version indicated - // by the StatefulSet's currentRevision. - OnDeleteStatefulSetStrategyType StatefulSetUpdateStrategyType = "OnDelete" -) - -// RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. -type RollingUpdateStatefulSetStrategy struct { - // Partition indicates the ordinal at which the StatefulSet should be - // partitioned. - // Default value is 0. - // +optional - Partition *int32 `json:"partition,omitempty" protobuf:"varint,1,opt,name=partition"` -} - -// A StatefulSetSpec is the specification of a StatefulSet. -type StatefulSetSpec struct { - // 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. - // TODO: Consider a rename of this field. - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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 - 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 - // will fulfill this Template, but have a unique identity from the rest - // of the StatefulSet. - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` - - // 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. - // TODO: Define the behavior if a claim already exists with the same name. - // +optional - VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"` - - // 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. - ServiceName string `json:"serviceName" protobuf:"bytes,5,opt,name=serviceName"` - - // podManagementPolicy controls how pods are created during initial scale up, - // when replacing pods on nodes, or when scaling down. The default policy is - // `OrderedReady`, where pods are created in increasing order (pod-0, then - // pod-1, etc) and the controller will wait until each pod is ready before - // continuing. When scaling down, the pods are removed in the opposite order. - // The alternative policy is `Parallel` which will create pods in parallel - // to match the desired scale without waiting, and on scale down will delete - // all pods at once. - // +optional - PodManagementPolicy PodManagementPolicyType `json:"podManagementPolicy,omitempty" protobuf:"bytes,6,opt,name=podManagementPolicy,casttype=PodManagementPolicyType"` - - // updateStrategy indicates the StatefulSetUpdateStrategy that will be - // employed to update Pods in the StatefulSet when a revision is made to - // Template. - UpdateStrategy StatefulSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,7,opt,name=updateStrategy"` - - // revisionHistoryLimit is the maximum number of revisions that will - // be maintained in the StatefulSet's revision history. The revision history - // consists of all revisions not represented by a currently applied - // StatefulSetSpec version. The default value is 10. - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,8,opt,name=revisionHistoryLimit"` -} - -// StatefulSetStatus represents the current state of a StatefulSet. -type StatefulSetStatus struct { - // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the - // StatefulSet's generation, which is updated on mutation by the API Server. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // replicas is the number of Pods created by the StatefulSet controller. - Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"` - - // readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,3,opt,name=readyReplicas"` - - // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by currentRevision. - CurrentReplicas int32 `json:"currentReplicas,omitempty" protobuf:"varint,4,opt,name=currentReplicas"` - - // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version - // indicated by updateRevision. - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,5,opt,name=updatedReplicas"` - - // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the - // sequence [0,currentReplicas). - CurrentRevision string `json:"currentRevision,omitempty" protobuf:"bytes,6,opt,name=currentRevision"` - - // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence - // [replicas-updatedReplicas,replicas) - UpdateRevision string `json:"updateRevision,omitempty" protobuf:"bytes,7,opt,name=updateRevision"` - - // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller - // uses this field as a collision avoidance mechanism when it needs to create the name for the - // newest ControllerRevision. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"` - - // Represents the latest available observations of a statefulset's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []StatefulSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` -} - -type StatefulSetConditionType string - -// StatefulSetCondition describes the state of a statefulset at a certain point. -type StatefulSetCondition struct { - // Type of statefulset condition. - Type StatefulSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=StatefulSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StatefulSetList is a collection of StatefulSets. -type StatefulSetList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []StatefulSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -type Deployment struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the Deployment. - // +optional - Spec DeploymentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the Deployment. - // +optional - Status DeploymentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -type DeploymentSpec struct { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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. - 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"` - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - Strategy DeploymentStrategy `json:"strategy,omitempty" patchStrategy:"retainKeys" protobuf:"bytes,4,opt,name=strategy"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,5,opt,name=minReadySeconds"` - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` - - // Indicates that the deployment is paused. - // +optional - Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. Defaults to 600s. - ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty" protobuf:"varint,9,opt,name=progressDeadlineSeconds"` -} - -const ( - // DefaultDeploymentUniqueLabelKey is the default key of the selector that is added - // to existing ReplicaSets (and label key that is added to its pods) to prevent the existing ReplicaSets - // to select new pods (and old pods being select by new ReplicaSet). - DefaultDeploymentUniqueLabelKey string = "pod-template-hash" -) - -// DeploymentStrategy describes how to replace existing pods with new ones. -type DeploymentStrategy struct { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - Type DeploymentStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentStrategyType"` - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DeploymentStrategyType string - -const ( - // Kill all existing pods before creating new ones. - RecreateDeploymentStrategyType DeploymentStrategyType = "Recreate" - - // Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one. - RollingUpdateDeploymentStrategyType DeploymentStrategyType = "RollingUpdate" -) - -// Spec to control the desired behavior of rolling update. -type RollingUpdateDeployment struct { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // Defaults to 25%. - // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet - // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // Defaults to 25%. - // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new ReplicaSet can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` -} - -// DeploymentStatus is the most recently observed status of the Deployment. -type DeploymentStatus struct { - // The generation observed by the deployment controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"` - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"` - - // Total number of ready pods targeted by this deployment. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"` - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"` - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"` - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,8,opt,name=collisionCount"` -} - -type DeploymentConditionType string - -// These are valid conditions of a deployment. -const ( - // Available means the deployment is available, ie. at least the minimum available - // replicas required are up and running for at least minReadySeconds. - DeploymentAvailable DeploymentConditionType = "Available" - // Progressing means the deployment is progressing. Progress for a deployment is - // considered when a new replica set is created or adopted, and when new pods scale - // up or old pods scale down. Progress is not estimated for paused deployments or - // when progressDeadlineSeconds is not specified. - DeploymentProgressing DeploymentConditionType = "Progressing" - // ReplicaFailure is added in a deployment when one of its pods fails to be created - // or deleted. - DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure" -) - -// DeploymentCondition describes the state of a deployment at a certain point. -type DeploymentCondition struct { - // Type of deployment condition. - Type DeploymentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time this condition was updated. - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` - // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DeploymentList is a list of Deployments. -type DeploymentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Deployments. - Items []Deployment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. -type DaemonSetUpdateStrategy struct { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // +optional - Type DaemonSetUpdateStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` - - // Rolling update config params. Present only if type = "RollingUpdate". - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DaemonSetUpdateStrategyType string - -const ( - // Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. - RollingUpdateDaemonSetStrategyType DaemonSetUpdateStrategyType = "RollingUpdate" - - // Replace the old daemons only when it's killed - OnDeleteDaemonSetStrategyType DaemonSetUpdateStrategyType = "OnDelete" -) - -// Spec to control the desired behavior of daemon set rolling update. -type RollingUpdateDaemonSet struct { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0. - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given - // time. The update starts by stopping at most 30% of those DaemonSet pods - // and then brings up new DaemonSet pods in their place. Once the new pods - // are available, it then proceeds onto other DaemonSet pods, thus ensuring - // that at least 70% of original number of DaemonSet pods are available at - // all times during the update. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` -} - -// DaemonSetSpec is the specification of a daemon set. -type DaemonSetSpec struct { - // 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 - 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 - // 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 - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,2,opt,name=template"` - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,3,opt,name=updateStrategy"` - - // 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). - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` -} - -// DaemonSetStatus represents the current status of a daemon set. -type DaemonSetStatus struct { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - CurrentNumberScheduled int32 `json:"currentNumberScheduled" protobuf:"varint,1,opt,name=currentNumberScheduled"` - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - NumberMisscheduled int32 `json:"numberMisscheduled" protobuf:"varint,2,opt,name=numberMisscheduled"` - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - DesiredNumberScheduled int32 `json:"desiredNumberScheduled" protobuf:"varint,3,opt,name=desiredNumberScheduled"` - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - NumberReady int32 `json:"numberReady" protobuf:"varint,4,opt,name=numberReady"` - - // The most recent generation observed by the daemon set controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,5,opt,name=observedGeneration"` - - // The total number of nodes that are running updated daemon pod - // +optional - UpdatedNumberScheduled int32 `json:"updatedNumberScheduled,omitempty" protobuf:"varint,6,opt,name=updatedNumberScheduled"` - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - NumberAvailable int32 `json:"numberAvailable,omitempty" protobuf:"varint,7,opt,name=numberAvailable"` - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - NumberUnavailable int32 `json:"numberUnavailable,omitempty" protobuf:"varint,8,opt,name=numberUnavailable"` - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"` - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DaemonSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` -} - -type DaemonSetConditionType string - -// TODO: Add valid condition types of a DaemonSet. - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -type DaemonSetCondition struct { - // Type of DaemonSet condition. - Type DaemonSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DaemonSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for -// more information. -// DaemonSet represents the configuration of a daemon set. -type DaemonSet struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec DaemonSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status DaemonSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -const ( - // DefaultDaemonSetUniqueLabelKey is the default label key that is added - // to existing DaemonSet pods to distinguish between old and new - // DaemonSet pods during DaemonSet template updates. - DefaultDaemonSetUniqueLabelKey = ControllerRevisionHashLabelKey -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DaemonSetList is a collection of daemon sets. -type DaemonSetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // A list of daemon sets. - Items []DaemonSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for -// more information. -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -type ReplicaSet struct { - metav1.TypeMeta `json:",inline"` - - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ReplicaSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ReplicaSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ReplicaSetList is a collection of ReplicaSets. -type ReplicaSetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - Items []ReplicaSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -type ReplicaSetSpec struct { - // 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 - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` - - // 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 - 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. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - Template v1.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -type ReplicaSetStatus struct { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` - - // The number of ready replicas for this replica set. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` -} - -type ReplicaSetConditionType string - -// These are valid conditions of a replica set. -const ( - // ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created - // due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted - // due to kubelet being down or finalizers are failing. - ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure" -) - -// ReplicaSetCondition describes the state of a replica set at a certain point. -type ReplicaSetCondition struct { - // Type of replica set condition. - Type ReplicaSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicaSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the -// release notes for more information. -// ControllerRevision implements an immutable snapshot of state data. Clients -// are responsible for serializing and deserializing the objects that contain -// their internal state. -// Once a ControllerRevision has been successfully created, it can not be updated. -// The API Server will fail validation of all requests that attempt to mutate -// the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both -// the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, -// it may be subject to name and representation changes in future releases, and clients should not -// depend on its stability. It is primarily for internal use by controllers. -type ControllerRevision struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Data is the serialized representation of the state. - Data runtime.RawExtension `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"` - - // Revision indicates the revision of the state represented by Data. - Revision int64 `json:"revision" protobuf:"varint,3,opt,name=revision"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ControllerRevisionList is a resource containing a list of ControllerRevision objects. -type ControllerRevisionList struct { - metav1.TypeMeta `json:",inline"` - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of ControllerRevisions - Items []ControllerRevision `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/apps/v1beta2/types_swagger_doc_generated.go b/pseudo/k8s/api/apps/v1beta2/types_swagger_doc_generated.go deleted file mode 100644 index 822158a18..000000000 --- a/pseudo/k8s/api/apps/v1beta2/types_swagger_doc_generated.go +++ /dev/null @@ -1,396 +0,0 @@ -/* -Copyright 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 v1beta2 - -// 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. DO NOT EDIT. -var map_ControllerRevision = map[string]string{ - "": "DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "data": "Data is the serialized representation of the state.", - "revision": "Revision indicates the revision of the state represented by Data.", -} - -func (ControllerRevision) SwaggerDoc() map[string]string { - return map_ControllerRevision -} - -var map_ControllerRevisionList = map[string]string{ - "": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of ControllerRevisions", -} - -func (ControllerRevisionList) SwaggerDoc() map[string]string { - return map_ControllerRevisionList -} - -var map_DaemonSet = map[string]string{ - "": "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (DaemonSet) SwaggerDoc() map[string]string { - return map_DaemonSet -} - -var map_DaemonSetCondition = map[string]string{ - "": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", - "type": "Type of DaemonSet condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DaemonSetCondition) SwaggerDoc() map[string]string { - return map_DaemonSetCondition -} - -var map_DaemonSetList = map[string]string{ - "": "DaemonSetList is a collection of daemon sets.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "A list of daemon sets.", -} - -func (DaemonSetList) SwaggerDoc() map[string]string { - return map_DaemonSetList -} - -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. 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).", - "revisionHistoryLimit": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", -} - -func (DaemonSetSpec) SwaggerDoc() map[string]string { - return map_DaemonSetSpec -} - -var map_DaemonSetStatus = map[string]string{ - "": "DaemonSetStatus represents the current status of a daemon set.", - "currentNumberScheduled": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "numberMisscheduled": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "desiredNumberScheduled": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "numberReady": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "observedGeneration": "The most recent generation observed by the daemon set controller.", - "updatedNumberScheduled": "The total number of nodes that are running updated daemon pod", - "numberAvailable": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "numberUnavailable": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "collisionCount": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "conditions": "Represents the latest available observations of a DaemonSet's current state.", -} - -func (DaemonSetStatus) SwaggerDoc() map[string]string { - return map_DaemonSetStatus -} - -var map_DaemonSetUpdateStrategy = map[string]string{ - "": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", - "type": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", - "rollingUpdate": "Rolling update config params. Present only if type = \"RollingUpdate\".", -} - -func (DaemonSetUpdateStrategy) SwaggerDoc() map[string]string { - return map_DaemonSetUpdateStrategy -} - -var map_Deployment = map[string]string{ - "": "DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.", - "metadata": "Standard object metadata.", - "spec": "Specification of the desired behavior of the Deployment.", - "status": "Most recently observed status of the Deployment.", -} - -func (Deployment) SwaggerDoc() map[string]string { - return map_Deployment -} - -var map_DeploymentCondition = map[string]string{ - "": "DeploymentCondition describes the state of a deployment at a certain point.", - "type": "Type of deployment condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastUpdateTime": "The last time this condition was updated.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DeploymentCondition) SwaggerDoc() map[string]string { - return map_DeploymentCondition -} - -var map_DeploymentList = map[string]string{ - "": "DeploymentList is a list of Deployments.", - "metadata": "Standard list metadata.", - "items": "Items is the list of Deployments.", -} - -func (DeploymentList) SwaggerDoc() map[string]string { - return map_DeploymentList -} - -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. 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)", - "revisionHistoryLimit": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", - "paused": "Indicates that the deployment is paused.", - "progressDeadlineSeconds": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", -} - -func (DeploymentSpec) SwaggerDoc() map[string]string { - return map_DeploymentSpec -} - -var map_DeploymentStatus = map[string]string{ - "": "DeploymentStatus is the most recently observed status of the Deployment.", - "observedGeneration": "The generation observed by the deployment controller.", - "replicas": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "readyReplicas": "Total number of ready pods targeted by this deployment.", - "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", - "conditions": "Represents the latest available observations of a deployment's current state.", - "collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", -} - -func (DeploymentStatus) SwaggerDoc() map[string]string { - return map_DeploymentStatus -} - -var map_DeploymentStrategy = map[string]string{ - "": "DeploymentStrategy describes how to replace existing pods with new ones.", - "type": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "rollingUpdate": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", -} - -func (DeploymentStrategy) SwaggerDoc() map[string]string { - return map_DeploymentStrategy -} - -var map_ReplicaSet = map[string]string{ - "": "DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time.", - "metadata": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (ReplicaSet) SwaggerDoc() map[string]string { - return map_ReplicaSet -} - -var map_ReplicaSetCondition = map[string]string{ - "": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "type": "Type of replica set condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "The last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (ReplicaSetCondition) SwaggerDoc() map[string]string { - return map_ReplicaSetCondition -} - -var map_ReplicaSetList = map[string]string{ - "": "ReplicaSetList is a collection of ReplicaSets.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", -} - -func (ReplicaSetList) SwaggerDoc() map[string]string { - return map_ReplicaSetList -} - -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. 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", -} - -func (ReplicaSetSpec) SwaggerDoc() map[string]string { - return map_ReplicaSetSpec -} - -var map_ReplicaSetStatus = map[string]string{ - "": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "replicas": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", - "fullyLabeledReplicas": "The number of pods that have labels matching the labels of the pod template of the replicaset.", - "readyReplicas": "The number of ready replicas for this replica set.", - "availableReplicas": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "conditions": "Represents the latest available observations of a replica set's current state.", -} - -func (ReplicaSetStatus) SwaggerDoc() map[string]string { - return map_ReplicaSetStatus -} - -var map_RollingUpdateDaemonSet = map[string]string{ - "": "Spec to control the desired behavior of daemon set rolling update.", - "maxUnavailable": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", -} - -func (RollingUpdateDaemonSet) SwaggerDoc() map[string]string { - return map_RollingUpdateDaemonSet -} - -var map_RollingUpdateDeployment = map[string]string{ - "": "Spec to control the desired behavior of rolling update.", - "maxUnavailable": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "maxSurge": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", -} - -func (RollingUpdateDeployment) SwaggerDoc() map[string]string { - return map_RollingUpdateDeployment -} - -var map_RollingUpdateStatefulSetStrategy = map[string]string{ - "": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", - "partition": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", -} - -func (RollingUpdateStatefulSetStrategy) SwaggerDoc() map[string]string { - return map_RollingUpdateStatefulSetStrategy -} - -var map_Scale = map[string]string{ - "": "Scale represents a scaling request for a resource.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "spec": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", -} - -func (Scale) SwaggerDoc() map[string]string { - return map_Scale -} - -var map_ScaleSpec = map[string]string{ - "": "ScaleSpec describes the attributes of a scale subresource", - "replicas": "desired number of instances for the scaled object.", -} - -func (ScaleSpec) SwaggerDoc() map[string]string { - return map_ScaleSpec -} - -var map_ScaleStatus = map[string]string{ - "": "ScaleStatus represents the current status of a scale subresource.", - "replicas": "actual number of observed instances of the scaled object.", - "selector": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "targetSelector": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", -} - -func (ScaleStatus) SwaggerDoc() map[string]string { - return map_ScaleStatus -} - -var map_StatefulSet = map[string]string{ - "": "DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", - "spec": "Spec defines the desired identities of pods in this set.", - "status": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", -} - -func (StatefulSet) SwaggerDoc() map[string]string { - return map_StatefulSet -} - -var map_StatefulSetCondition = map[string]string{ - "": "StatefulSetCondition describes the state of a statefulset at a certain point.", - "type": "Type of statefulset condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (StatefulSetCondition) SwaggerDoc() map[string]string { - return map_StatefulSetCondition -} - -var map_StatefulSetList = map[string]string{ - "": "StatefulSetList is a collection of StatefulSets.", -} - -func (StatefulSetList) SwaggerDoc() map[string]string { - return map_StatefulSetList -} - -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. 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.", - "podManagementPolicy": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", - "updateStrategy": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", - "revisionHistoryLimit": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", -} - -func (StatefulSetSpec) SwaggerDoc() map[string]string { - return map_StatefulSetSpec -} - -var map_StatefulSetStatus = map[string]string{ - "": "StatefulSetStatus represents the current state of a StatefulSet.", - "observedGeneration": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", - "replicas": "replicas is the number of Pods created by the StatefulSet controller.", - "readyReplicas": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.", - "currentReplicas": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", - "updatedReplicas": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", - "currentRevision": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", - "updateRevision": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", - "collisionCount": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "conditions": "Represents the latest available observations of a statefulset's current state.", -} - -func (StatefulSetStatus) SwaggerDoc() map[string]string { - return map_StatefulSetStatus -} - -var map_StatefulSetUpdateStrategy = map[string]string{ - "": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", - "type": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", - "rollingUpdate": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", -} - -func (StatefulSetUpdateStrategy) SwaggerDoc() map[string]string { - return map_StatefulSetUpdateStrategy -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/apps/v1beta2/zz_generated.deepcopy.go b/pseudo/k8s/api/apps/v1beta2/zz_generated.deepcopy.go deleted file mode 100644 index c9c28fb2e..000000000 --- a/pseudo/k8s/api/apps/v1beta2/zz_generated.deepcopy.go +++ /dev/null @@ -1,839 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta2 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Data.DeepCopyInto(&out.Data) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevision. -func (in *ControllerRevision) DeepCopy() *ControllerRevision { - if in == nil { - return nil - } - out := new(ControllerRevision) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ControllerRevision) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ControllerRevisionList) DeepCopyInto(out *ControllerRevisionList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ControllerRevision, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevisionList. -func (in *ControllerRevisionList) DeepCopy() *ControllerRevisionList { - if in == nil { - return nil - } - out := new(ControllerRevisionList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ControllerRevisionList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSet) DeepCopyInto(out *DaemonSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSet. -func (in *DaemonSet) DeepCopy() *DaemonSet { - if in == nil { - return nil - } - out := new(DaemonSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DaemonSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetCondition) DeepCopyInto(out *DaemonSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetCondition. -func (in *DaemonSetCondition) DeepCopy() *DaemonSetCondition { - if in == nil { - return nil - } - out := new(DaemonSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetList) DeepCopyInto(out *DaemonSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DaemonSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetList. -func (in *DaemonSetList) DeepCopy() *DaemonSetList { - if in == nil { - return nil - } - out := new(DaemonSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DaemonSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpec. -func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec { - if in == nil { - return nil - } - out := new(DaemonSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetStatus) DeepCopyInto(out *DaemonSetStatus) { - *out = *in - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DaemonSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetStatus. -func (in *DaemonSetStatus) DeepCopy() *DaemonSetStatus { - if in == nil { - return nil - } - out := new(DaemonSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetUpdateStrategy) DeepCopyInto(out *DaemonSetUpdateStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDaemonSet) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetUpdateStrategy. -func (in *DaemonSetUpdateStrategy) DeepCopy() *DaemonSetUpdateStrategy { - if in == nil { - return nil - } - out := new(DaemonSetUpdateStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Deployment) DeepCopyInto(out *Deployment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment. -func (in *Deployment) DeepCopy() *Deployment { - if in == nil { - return nil - } - out := new(Deployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Deployment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentCondition) DeepCopyInto(out *DeploymentCondition) { - *out = *in - in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentCondition. -func (in *DeploymentCondition) DeepCopy() *DeploymentCondition { - if in == nil { - return nil - } - out := new(DeploymentCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentList) DeepCopyInto(out *DeploymentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Deployment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentList. -func (in *DeploymentList) DeepCopy() *DeploymentList { - if in == nil { - return nil - } - out := new(DeploymentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeploymentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.Strategy.DeepCopyInto(&out.Strategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - if in.ProgressDeadlineSeconds != nil { - in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec. -func (in *DeploymentSpec) DeepCopy() *DeploymentSpec { - if in == nil { - return nil - } - out := new(DeploymentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DeploymentCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus. -func (in *DeploymentStatus) DeepCopy() *DeploymentStatus { - if in == nil { - return nil - } - out := new(DeploymentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStrategy) DeepCopyInto(out *DeploymentStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDeployment) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStrategy. -func (in *DeploymentStrategy) DeepCopy() *DeploymentStrategy { - if in == nil { - return nil - } - out := new(DeploymentStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSet) DeepCopyInto(out *ReplicaSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSet. -func (in *ReplicaSet) DeepCopy() *ReplicaSet { - if in == nil { - return nil - } - out := new(ReplicaSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicaSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetCondition) DeepCopyInto(out *ReplicaSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetCondition. -func (in *ReplicaSetCondition) DeepCopy() *ReplicaSetCondition { - if in == nil { - return nil - } - out := new(ReplicaSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetList) DeepCopyInto(out *ReplicaSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ReplicaSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetList. -func (in *ReplicaSetList) DeepCopy() *ReplicaSetList { - if in == nil { - return nil - } - out := new(ReplicaSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicaSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetSpec) DeepCopyInto(out *ReplicaSetSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetSpec. -func (in *ReplicaSetSpec) DeepCopy() *ReplicaSetSpec { - if in == nil { - return nil - } - out := new(ReplicaSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetStatus) DeepCopyInto(out *ReplicaSetStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]ReplicaSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetStatus. -func (in *ReplicaSetStatus) DeepCopy() *ReplicaSetStatus { - if in == nil { - return nil - } - out := new(ReplicaSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDaemonSet) DeepCopyInto(out *RollingUpdateDaemonSet) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDaemonSet. -func (in *RollingUpdateDaemonSet) DeepCopy() *RollingUpdateDaemonSet { - if in == nil { - return nil - } - out := new(RollingUpdateDaemonSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDeployment) DeepCopyInto(out *RollingUpdateDeployment) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - if in.MaxSurge != nil { - in, out := &in.MaxSurge, &out.MaxSurge - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDeployment. -func (in *RollingUpdateDeployment) DeepCopy() *RollingUpdateDeployment { - if in == nil { - return nil - } - out := new(RollingUpdateDeployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateStatefulSetStrategy) DeepCopyInto(out *RollingUpdateStatefulSetStrategy) { - *out = *in - if in.Partition != nil { - in, out := &in.Partition, &out.Partition - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateStatefulSetStrategy. -func (in *RollingUpdateStatefulSetStrategy) DeepCopy() *RollingUpdateStatefulSetStrategy { - if in == nil { - return nil - } - out := new(RollingUpdateStatefulSetStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Scale) DeepCopyInto(out *Scale) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale. -func (in *Scale) DeepCopy() *Scale { - if in == nil { - return nil - } - out := new(Scale) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Scale) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec. -func (in *ScaleSpec) DeepCopy() *ScaleSpec { - if in == nil { - return nil - } - out := new(ScaleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus. -func (in *ScaleStatus) DeepCopy() *ScaleStatus { - if in == nil { - return nil - } - out := new(ScaleStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSet) DeepCopyInto(out *StatefulSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSet. -func (in *StatefulSet) DeepCopy() *StatefulSet { - if in == nil { - return nil - } - out := new(StatefulSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StatefulSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetCondition) DeepCopyInto(out *StatefulSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetCondition. -func (in *StatefulSetCondition) DeepCopy() *StatefulSetCondition { - if in == nil { - return nil - } - out := new(StatefulSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetList) DeepCopyInto(out *StatefulSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]StatefulSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetList. -func (in *StatefulSetList) DeepCopy() *StatefulSetList { - if in == nil { - return nil - } - out := new(StatefulSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StatefulSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - if in.VolumeClaimTemplates != nil { - in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates - *out = make([]corev1.PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec. -func (in *StatefulSetSpec) DeepCopy() *StatefulSetSpec { - if in == nil { - return nil - } - out := new(StatefulSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetStatus) DeepCopyInto(out *StatefulSetStatus) { - *out = *in - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]StatefulSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetStatus. -func (in *StatefulSetStatus) DeepCopy() *StatefulSetStatus { - if in == nil { - return nil - } - out := new(StatefulSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatefulSetUpdateStrategy) DeepCopyInto(out *StatefulSetUpdateStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateStatefulSetStrategy) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetUpdateStrategy. -func (in *StatefulSetUpdateStrategy) DeepCopy() *StatefulSetUpdateStrategy { - if in == nil { - return nil - } - out := new(StatefulSetUpdateStrategy) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/doc.go b/pseudo/k8s/api/auditregistration/v1alpha1/doc.go deleted file mode 100644 index 6a0576df2..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=auditregistration.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/auditregistration/v1alpha1" diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/generated.pb.go b/pseudo/k8s/api/auditregistration/v1alpha1/generated.pb.go deleted file mode 100644 index 00ec689de..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/generated.pb.go +++ /dev/null @@ -1,2056 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/auditregistration/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AuditSink) Reset() { *m = AuditSink{} } -func (*AuditSink) ProtoMessage() {} -func (*AuditSink) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{0} -} -func (m *AuditSink) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AuditSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AuditSink) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuditSink.Merge(m, src) -} -func (m *AuditSink) XXX_Size() int { - return m.Size() -} -func (m *AuditSink) XXX_DiscardUnknown() { - xxx_messageInfo_AuditSink.DiscardUnknown(m) -} - -var xxx_messageInfo_AuditSink proto.InternalMessageInfo - -func (m *AuditSinkList) Reset() { *m = AuditSinkList{} } -func (*AuditSinkList) ProtoMessage() {} -func (*AuditSinkList) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{1} -} -func (m *AuditSinkList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AuditSinkList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AuditSinkList) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuditSinkList.Merge(m, src) -} -func (m *AuditSinkList) XXX_Size() int { - return m.Size() -} -func (m *AuditSinkList) XXX_DiscardUnknown() { - xxx_messageInfo_AuditSinkList.DiscardUnknown(m) -} - -var xxx_messageInfo_AuditSinkList proto.InternalMessageInfo - -func (m *AuditSinkSpec) Reset() { *m = AuditSinkSpec{} } -func (*AuditSinkSpec) ProtoMessage() {} -func (*AuditSinkSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{2} -} -func (m *AuditSinkSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AuditSinkSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AuditSinkSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuditSinkSpec.Merge(m, src) -} -func (m *AuditSinkSpec) XXX_Size() int { - return m.Size() -} -func (m *AuditSinkSpec) XXX_DiscardUnknown() { - xxx_messageInfo_AuditSinkSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_AuditSinkSpec proto.InternalMessageInfo - -func (m *Policy) Reset() { *m = Policy{} } -func (*Policy) ProtoMessage() {} -func (*Policy) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{3} -} -func (m *Policy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Policy) XXX_Merge(src proto.Message) { - xxx_messageInfo_Policy.Merge(m, src) -} -func (m *Policy) XXX_Size() int { - return m.Size() -} -func (m *Policy) XXX_DiscardUnknown() { - xxx_messageInfo_Policy.DiscardUnknown(m) -} - -var xxx_messageInfo_Policy proto.InternalMessageInfo - -func (m *ServiceReference) Reset() { *m = ServiceReference{} } -func (*ServiceReference) ProtoMessage() {} -func (*ServiceReference) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{4} -} -func (m *ServiceReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceReference.Merge(m, src) -} -func (m *ServiceReference) XXX_Size() int { - return m.Size() -} -func (m *ServiceReference) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceReference proto.InternalMessageInfo - -func (m *Webhook) Reset() { *m = Webhook{} } -func (*Webhook) ProtoMessage() {} -func (*Webhook) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{5} -} -func (m *Webhook) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Webhook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Webhook) XXX_Merge(src proto.Message) { - xxx_messageInfo_Webhook.Merge(m, src) -} -func (m *Webhook) XXX_Size() int { - return m.Size() -} -func (m *Webhook) XXX_DiscardUnknown() { - xxx_messageInfo_Webhook.DiscardUnknown(m) -} - -var xxx_messageInfo_Webhook proto.InternalMessageInfo - -func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } -func (*WebhookClientConfig) ProtoMessage() {} -func (*WebhookClientConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{6} -} -func (m *WebhookClientConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WebhookClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WebhookClientConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebhookClientConfig.Merge(m, src) -} -func (m *WebhookClientConfig) XXX_Size() int { - return m.Size() -} -func (m *WebhookClientConfig) XXX_DiscardUnknown() { - xxx_messageInfo_WebhookClientConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_WebhookClientConfig proto.InternalMessageInfo - -func (m *WebhookThrottleConfig) Reset() { *m = WebhookThrottleConfig{} } -func (*WebhookThrottleConfig) ProtoMessage() {} -func (*WebhookThrottleConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_642d3597c6afa8ba, []int{7} -} -func (m *WebhookThrottleConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WebhookThrottleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WebhookThrottleConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_WebhookThrottleConfig.Merge(m, src) -} -func (m *WebhookThrottleConfig) XXX_Size() int { - return m.Size() -} -func (m *WebhookThrottleConfig) XXX_DiscardUnknown() { - xxx_messageInfo_WebhookThrottleConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_WebhookThrottleConfig proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AuditSink)(nil), "k8s.io.api.auditregistration.v1alpha1.AuditSink") - proto.RegisterType((*AuditSinkList)(nil), "k8s.io.api.auditregistration.v1alpha1.AuditSinkList") - proto.RegisterType((*AuditSinkSpec)(nil), "k8s.io.api.auditregistration.v1alpha1.AuditSinkSpec") - proto.RegisterType((*Policy)(nil), "k8s.io.api.auditregistration.v1alpha1.Policy") - proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.auditregistration.v1alpha1.ServiceReference") - proto.RegisterType((*Webhook)(nil), "k8s.io.api.auditregistration.v1alpha1.Webhook") - proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.auditregistration.v1alpha1.WebhookClientConfig") - proto.RegisterType((*WebhookThrottleConfig)(nil), "k8s.io.api.auditregistration.v1alpha1.WebhookThrottleConfig") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/auditregistration/v1alpha1/generated.proto", fileDescriptor_642d3597c6afa8ba) -} - -var fileDescriptor_642d3597c6afa8ba = []byte{ - // 765 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x41, 0x6f, 0x13, 0x47, - 0x14, 0xf6, 0xc6, 0x76, 0x6c, 0x4f, 0x9c, 0x36, 0x9d, 0xb4, 0x95, 0x1b, 0x55, 0x6b, 0x6b, 0xa5, - 0x4a, 0x91, 0xda, 0xcc, 0x36, 0x55, 0xd4, 0x56, 0x88, 0x4b, 0x36, 0x27, 0xa4, 0x10, 0xc2, 0x98, - 0x80, 0x40, 0x08, 0x31, 0x5e, 0x3f, 0xef, 0x0e, 0xb6, 0x77, 0x97, 0xdd, 0x59, 0xa3, 0xdc, 0xf8, - 0x09, 0xfc, 0x05, 0xfe, 0x06, 0x37, 0x24, 0x90, 0x72, 0xcc, 0x31, 0xa7, 0x88, 0x98, 0x03, 0xff, - 0x81, 0x13, 0x9a, 0xd9, 0x59, 0xdb, 0xc4, 0x41, 0x38, 0xb7, 0x79, 0xdf, 0x7b, 0xdf, 0xf7, 0xbe, - 0xf7, 0xde, 0xa0, 0x83, 0xfe, 0xff, 0x09, 0xe1, 0xa1, 0xdd, 0x4f, 0x3b, 0x10, 0x07, 0x20, 0x20, - 0xb1, 0x47, 0x10, 0x74, 0xc3, 0xd8, 0xd6, 0x09, 0x16, 0x71, 0x9b, 0xa5, 0x5d, 0x2e, 0x62, 0xf0, - 0x78, 0x22, 0x62, 0x26, 0x78, 0x18, 0xd8, 0xa3, 0x6d, 0x36, 0x88, 0x7c, 0xb6, 0x6d, 0x7b, 0x10, - 0x40, 0xcc, 0x04, 0x74, 0x49, 0x14, 0x87, 0x22, 0xc4, 0x7f, 0x64, 0x34, 0xc2, 0x22, 0x4e, 0xe6, - 0x68, 0x24, 0xa7, 0x6d, 0x6c, 0x79, 0x5c, 0xf8, 0x69, 0x87, 0xb8, 0xe1, 0xd0, 0xf6, 0x42, 0x2f, - 0xb4, 0x15, 0xbb, 0x93, 0xf6, 0x54, 0xa4, 0x02, 0xf5, 0xca, 0x54, 0x37, 0x76, 0xa6, 0x66, 0x86, - 0xcc, 0xf5, 0x79, 0x00, 0xf1, 0xb1, 0x1d, 0xf5, 0x3d, 0x09, 0x24, 0xf6, 0x10, 0x04, 0xb3, 0x47, - 0x73, 0x5e, 0x36, 0xec, 0x6f, 0xb1, 0xe2, 0x34, 0x10, 0x7c, 0x08, 0x73, 0x84, 0x7f, 0xbf, 0x47, - 0x48, 0x5c, 0x1f, 0x86, 0xec, 0x32, 0xcf, 0x7a, 0x6f, 0xa0, 0xda, 0xae, 0x1c, 0xb6, 0xcd, 0x83, - 0x3e, 0x7e, 0x8a, 0xaa, 0xd2, 0x51, 0x97, 0x09, 0xd6, 0x30, 0x5a, 0xc6, 0xe6, 0xca, 0x3f, 0x7f, - 0x93, 0xe9, 0x56, 0x26, 0xc2, 0x24, 0xea, 0x7b, 0x12, 0x48, 0x88, 0xac, 0x26, 0xa3, 0x6d, 0x72, - 0xa7, 0xf3, 0x0c, 0x5c, 0x71, 0x1b, 0x04, 0x73, 0xf0, 0xc9, 0x79, 0xb3, 0x30, 0x3e, 0x6f, 0xa2, - 0x29, 0x46, 0x27, 0xaa, 0xf8, 0x3e, 0x2a, 0x25, 0x11, 0xb8, 0x8d, 0x25, 0xa5, 0xbe, 0x43, 0x16, - 0xda, 0x39, 0x99, 0x38, 0x6c, 0x47, 0xe0, 0x3a, 0x75, 0xdd, 0xa1, 0x24, 0x23, 0xaa, 0xf4, 0xac, - 0x77, 0x06, 0x5a, 0x9d, 0x54, 0xed, 0xf3, 0x44, 0xe0, 0xc7, 0x73, 0xb3, 0x90, 0xc5, 0x66, 0x91, - 0x6c, 0x35, 0xc9, 0x9a, 0xee, 0x53, 0xcd, 0x91, 0x99, 0x39, 0x8e, 0x50, 0x99, 0x0b, 0x18, 0x26, - 0x8d, 0xa5, 0x56, 0xf1, 0xd2, 0x9a, 0x16, 0x1a, 0xc4, 0x59, 0xd5, 0xe2, 0xe5, 0x5b, 0x52, 0x86, - 0x66, 0x6a, 0xd6, 0xdb, 0xd9, 0x31, 0xe4, 0x78, 0xf8, 0x08, 0x2d, 0x47, 0xe1, 0x80, 0xbb, 0xc7, - 0x7a, 0x88, 0xad, 0x05, 0x3b, 0x1d, 0x2a, 0x92, 0xf3, 0x83, 0x6e, 0xb3, 0x9c, 0xc5, 0x54, 0x8b, - 0xe1, 0x87, 0xa8, 0xf2, 0x02, 0x3a, 0x7e, 0x18, 0xf6, 0xf5, 0x29, 0xc8, 0x82, 0xba, 0x0f, 0x32, - 0x96, 0xf3, 0xa3, 0x16, 0xae, 0x68, 0x80, 0xe6, 0x7a, 0x96, 0x8b, 0x74, 0x33, 0xfc, 0x17, 0x2a, - 0x0f, 0x60, 0x04, 0x03, 0x65, 0xbd, 0xe6, 0xfc, 0x9a, 0x8f, 0xbc, 0x2f, 0xc1, 0xcf, 0xf9, 0x83, - 0x66, 0x45, 0xf8, 0x4f, 0xb4, 0x9c, 0x08, 0xe6, 0x41, 0xb6, 0xd3, 0x9a, 0xb3, 0x2e, 0x6d, 0xb7, - 0x15, 0x22, 0x6b, 0xd5, 0x8b, 0xea, 0x12, 0xeb, 0xb5, 0x81, 0xd6, 0xda, 0x10, 0x8f, 0xb8, 0x0b, - 0x14, 0x7a, 0x10, 0x43, 0xe0, 0x02, 0xb6, 0x51, 0x2d, 0x60, 0x43, 0x48, 0x22, 0xe6, 0x82, 0xee, - 0xf9, 0x93, 0xee, 0x59, 0x3b, 0xc8, 0x13, 0x74, 0x5a, 0x83, 0x5b, 0xa8, 0x24, 0x03, 0xb5, 0x82, - 0xda, 0xf4, 0x5f, 0xc9, 0x5a, 0xaa, 0x32, 0xf8, 0x77, 0x54, 0x8a, 0x98, 0xf0, 0x1b, 0x45, 0x55, - 0x51, 0x95, 0xd9, 0x43, 0x26, 0x7c, 0xaa, 0x50, 0x95, 0x0d, 0x63, 0xd1, 0x28, 0xb5, 0x8c, 0xcd, - 0xb2, 0xce, 0x86, 0xb1, 0xa0, 0x0a, 0xb5, 0x3e, 0x19, 0x28, 0xdf, 0x0e, 0xee, 0xa1, 0xaa, 0xf0, - 0xe3, 0x50, 0x88, 0x01, 0xe8, 0x43, 0xde, 0xbc, 0xde, 0xc2, 0xef, 0x69, 0xf6, 0x5e, 0x18, 0xf4, - 0xb8, 0xe7, 0xd4, 0xe5, 0xbf, 0xcc, 0x31, 0x3a, 0xd1, 0xc6, 0x02, 0xd5, 0xdd, 0x01, 0x87, 0x40, - 0x64, 0x75, 0xfa, 0xb8, 0x37, 0xae, 0xd7, 0x6b, 0x6f, 0x46, 0xc1, 0xf9, 0x59, 0x6f, 0xa5, 0x3e, - 0x8b, 0xd2, 0xaf, 0xba, 0x58, 0x6f, 0x0c, 0xb4, 0x7e, 0x05, 0x17, 0xff, 0x86, 0x8a, 0x69, 0x9c, - 0x9f, 0xbf, 0x32, 0x3e, 0x6f, 0x16, 0x8f, 0xe8, 0x3e, 0x95, 0x18, 0x7e, 0x82, 0x2a, 0x49, 0x76, - 0x3f, 0xed, 0xf1, 0xbf, 0x05, 0x3d, 0x5e, 0xbe, 0xba, 0xb3, 0x22, 0x7f, 0x61, 0x8e, 0xe6, 0xa2, - 0x78, 0x13, 0x55, 0x5d, 0xe6, 0xa4, 0x41, 0x77, 0x00, 0xea, 0x78, 0xf5, 0x6c, 0x65, 0x7b, 0xbb, - 0x19, 0x46, 0x27, 0x59, 0xab, 0x8d, 0x7e, 0xb9, 0x72, 0xc7, 0xd2, 0xfd, 0xf3, 0x28, 0x51, 0xee, - 0x8b, 0x99, 0xfb, 0xbb, 0x87, 0x6d, 0x2a, 0x31, 0xdc, 0x44, 0xe5, 0x4e, 0x1a, 0x27, 0x42, 0x79, - 0x2f, 0x3a, 0x35, 0xf9, 0xab, 0x1d, 0x09, 0xd0, 0x0c, 0x77, 0xc8, 0xc9, 0x85, 0x59, 0x38, 0xbd, - 0x30, 0x0b, 0x67, 0x17, 0x66, 0xe1, 0xe5, 0xd8, 0x34, 0x4e, 0xc6, 0xa6, 0x71, 0x3a, 0x36, 0x8d, - 0xb3, 0xb1, 0x69, 0x7c, 0x18, 0x9b, 0xc6, 0xab, 0x8f, 0x66, 0xe1, 0x51, 0x35, 0x9f, 0xea, 0x4b, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x6c, 0xff, 0x86, 0xcd, 0x06, 0x00, 0x00, -} - -func (m *AuditSink) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AuditSink) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AuditSink) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AuditSinkList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AuditSinkList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AuditSinkList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AuditSinkSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AuditSinkSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AuditSinkSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Webhook.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Policy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Policy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Policy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Stages) > 0 { - for iNdEx := len(m.Stages) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Stages[iNdEx]) - copy(dAtA[i:], m.Stages[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Stages[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Level) - copy(dAtA[i:], m.Level) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Level))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) - i-- - dAtA[i] = 0x20 - } - if m.Path != nil { - i -= len(*m.Path) - copy(dAtA[i:], *m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) - i-- - dAtA[i] = 0x1a - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Webhook) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Webhook) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Webhook) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ClientConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.Throttle != nil { - { - size, err := m.Throttle.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WebhookClientConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CABundle != nil { - i -= len(m.CABundle) - copy(dAtA[i:], m.CABundle) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) - i-- - dAtA[i] = 0x1a - } - if m.Service != nil { - { - size, err := m.Service.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.URL != nil { - i -= len(*m.URL) - copy(dAtA[i:], *m.URL) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *WebhookThrottleConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WebhookThrottleConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WebhookThrottleConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Burst != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Burst)) - i-- - dAtA[i] = 0x10 - } - if m.QPS != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.QPS)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AuditSink) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AuditSinkList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *AuditSinkSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Policy.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Webhook.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Policy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Level) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Stages) > 0 { - for _, s := range m.Stages { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServiceReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Path != nil { - l = len(*m.Path) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - n += 1 + sovGenerated(uint64(*m.Port)) - } - return n -} - -func (m *Webhook) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Throttle != nil { - l = m.Throttle.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.ClientConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *WebhookClientConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.URL != nil { - l = len(*m.URL) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Service != nil { - l = m.Service.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CABundle != nil { - l = len(m.CABundle) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *WebhookThrottleConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.QPS != nil { - n += 1 + sovGenerated(uint64(*m.QPS)) - } - if m.Burst != nil { - n += 1 + sovGenerated(uint64(*m.Burst)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AuditSink) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AuditSink{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "AuditSinkSpec", "AuditSinkSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *AuditSinkList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]AuditSink{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "AuditSink", "AuditSink", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&AuditSinkList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *AuditSinkSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AuditSinkSpec{`, - `Policy:` + strings.Replace(strings.Replace(this.Policy.String(), "Policy", "Policy", 1), `&`, ``, 1) + `,`, - `Webhook:` + strings.Replace(strings.Replace(this.Webhook.String(), "Webhook", "Webhook", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Policy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Policy{`, - `Level:` + fmt.Sprintf("%v", this.Level) + `,`, - `Stages:` + fmt.Sprintf("%v", this.Stages) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceReference{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Path:` + valueToStringGenerated(this.Path) + `,`, - `Port:` + valueToStringGenerated(this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *Webhook) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Webhook{`, - `Throttle:` + strings.Replace(this.Throttle.String(), "WebhookThrottleConfig", "WebhookThrottleConfig", 1) + `,`, - `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *WebhookClientConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WebhookClientConfig{`, - `URL:` + valueToStringGenerated(this.URL) + `,`, - `Service:` + strings.Replace(this.Service.String(), "ServiceReference", "ServiceReference", 1) + `,`, - `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, - `}`, - }, "") - return s -} -func (this *WebhookThrottleConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WebhookThrottleConfig{`, - `QPS:` + valueToStringGenerated(this.QPS) + `,`, - `Burst:` + valueToStringGenerated(this.Burst) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AuditSink) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AuditSink: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AuditSink: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AuditSinkList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AuditSinkList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AuditSinkList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, AuditSink{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AuditSinkSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AuditSinkSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AuditSinkSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Policy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Policy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Policy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Policy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Level = Level(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Stages", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Stages = append(m.Stages, Stage(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Path = &s - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Port = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Webhook) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Webhook: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Webhook: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Throttle", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Throttle == nil { - m.Throttle = &WebhookThrottleConfig{} - } - if err := m.Throttle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.URL = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Service == nil { - m.Service = &ServiceReference{} - } - if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) - if m.CABundle == nil { - m.CABundle = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WebhookThrottleConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WebhookThrottleConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WebhookThrottleConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field QPS", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.QPS = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Burst", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Burst = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/generated.proto b/pseudo/k8s/api/auditregistration/v1alpha1/generated.proto deleted file mode 100644 index 8f3a7d629..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/generated.proto +++ /dev/null @@ -1,162 +0,0 @@ -/* -Copyright 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.auditregistration.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// AuditSink represents a cluster level audit sink -message AuditSink { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the audit configuration spec - optional AuditSinkSpec spec = 2; -} - -// AuditSinkList is a list of AuditSink items. -message AuditSinkList { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of audit configurations. - repeated AuditSink items = 2; -} - -// AuditSinkSpec holds the spec for the audit sink -message AuditSinkSpec { - // Policy defines the policy for selecting which events should be sent to the webhook - // required - optional Policy policy = 1; - - // Webhook to send events - // required - optional Webhook webhook = 2; -} - -// Policy defines the configuration of how audit events are logged -message Policy { - // The Level that all requests are recorded at. - // available options: None, Metadata, Request, RequestResponse - // required - optional string level = 1; - - // Stages is a list of stages for which events are created. - // +optional - repeated string stages = 2; -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -message ServiceReference { - // `namespace` is the namespace of the service. - // Required - optional string namespace = 1; - - // `name` is the name of the service. - // Required - optional string name = 2; - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - optional string path = 3; - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - optional int32 port = 4; -} - -// Webhook holds the configuration of the webhook -message Webhook { - // Throttle holds the options for throttling the webhook - // +optional - optional WebhookThrottleConfig throttle = 1; - - // ClientConfig holds the connection parameters for the webhook - // required - optional WebhookClientConfig clientConfig = 2; -} - -// WebhookClientConfig contains the information to make a connection with the webhook -message WebhookClientConfig { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - optional string url = 1; - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - optional ServiceReference service = 2; - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - optional bytes caBundle = 3; -} - -// WebhookThrottleConfig holds the configuration for throttling events -message WebhookThrottleConfig { - // ThrottleQPS maximum number of batches per second - // default 10 QPS - // +optional - optional int64 qps = 1; - - // ThrottleBurst is the maximum number of events sent at the same moment - // default 15 QPS - // +optional - optional int64 burst = 2; -} - diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/register.go b/pseudo/k8s/api/auditregistration/v1alpha1/register.go deleted file mode 100644 index c01bc664d..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/register.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "auditregistration.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes) -} - -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &AuditSink{}, - &AuditSinkList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/types.go b/pseudo/k8s/api/auditregistration/v1alpha1/types.go deleted file mode 100644 index 6ec8cde97..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/types.go +++ /dev/null @@ -1,198 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:openapi-gen=true - -package v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Level defines the amount of information logged during auditing -type Level string - -// Valid audit levels -const ( - // LevelNone disables auditing - LevelNone Level = "None" - // LevelMetadata provides the basic level of auditing. - LevelMetadata Level = "Metadata" - // LevelRequest provides Metadata level of auditing, and additionally - // logs the request object (does not apply for non-resource requests). - LevelRequest Level = "Request" - // LevelRequestResponse provides Request level of auditing, and additionally - // logs the response object (does not apply for non-resource requests and watches). - LevelRequestResponse Level = "RequestResponse" -) - -// Stage defines the stages in request handling during which audit events may be generated. -type Stage string - -// Valid audit stages. -const ( - // The stage for events generated after the audit handler receives the request, but before it - // is delegated down the handler chain. - StageRequestReceived = "RequestReceived" - // The stage for events generated after the response headers are sent, but before the response body - // is sent. This stage is only generated for long-running requests (e.g. watch). - StageResponseStarted = "ResponseStarted" - // The stage for events generated after the response body has been completed, and no more bytes - // will be sent. - StageResponseComplete = "ResponseComplete" - // The stage for events generated when a panic occurred. - StagePanic = "Panic" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// AuditSink represents a cluster level audit sink -type AuditSink struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the audit configuration spec - Spec AuditSinkSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// AuditSinkSpec holds the spec for the audit sink -type AuditSinkSpec struct { - // Policy defines the policy for selecting which events should be sent to the webhook - // required - Policy Policy `json:"policy" protobuf:"bytes,1,opt,name=policy"` - - // Webhook to send events - // required - Webhook Webhook `json:"webhook" protobuf:"bytes,2,opt,name=webhook"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// AuditSinkList is a list of AuditSink items. -type AuditSinkList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of audit configurations. - Items []AuditSink `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// Policy defines the configuration of how audit events are logged -type Policy struct { - // The Level that all requests are recorded at. - // available options: None, Metadata, Request, RequestResponse - // required - Level Level `json:"level" protobuf:"bytes,1,opt,name=level"` - - // Stages is a list of stages for which events are created. - // +optional - Stages []Stage `json:"stages" protobuf:"bytes,2,opt,name=stages"` -} - -// Webhook holds the configuration of the webhook -type Webhook struct { - // Throttle holds the options for throttling the webhook - // +optional - Throttle *WebhookThrottleConfig `json:"throttle,omitempty" protobuf:"bytes,1,opt,name=throttle"` - - // ClientConfig holds the connection parameters for the webhook - // required - ClientConfig WebhookClientConfig `json:"clientConfig" protobuf:"bytes,2,opt,name=clientConfig"` -} - -// WebhookThrottleConfig holds the configuration for throttling events -type WebhookThrottleConfig struct { - // ThrottleQPS maximum number of batches per second - // default 10 QPS - // +optional - QPS *int64 `json:"qps,omitempty" protobuf:"bytes,1,opt,name=qps"` - - // ThrottleBurst is the maximum number of events sent at the same moment - // default 15 QPS - // +optional - Burst *int64 `json:"burst,omitempty" protobuf:"bytes,2,opt,name=burst"` -} - -// WebhookClientConfig contains the information to make a connection with the webhook -type WebhookClientConfig struct { - // `url` gives the location of the webhook, in standard URL form - // (`scheme://host:port/path`). Exactly one of `url` or `service` - // must be specified. - // - // The `host` should not refer to a service running in the cluster; use - // the `service` field instead. The host might be resolved via external - // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve - // in-cluster DNS as that would be a layering violation). `host` may - // also be an IP address. - // - // Please note that using `localhost` or `127.0.0.1` as a `host` is - // risky unless you take great care to run this webhook on all hosts - // which run an apiserver which might need to make calls to this - // webhook. Such installs are likely to be non-portable, i.e., not easy - // to turn up in a new cluster. - // - // The scheme must be "https"; the URL must begin with "https://". - // - // A path is optional, and if present may be any string permissible in - // a URL. You may use the path to pass an arbitrary string to the - // webhook, for example, a cluster identifier. - // - // Attempting to use a user or basic auth e.g. "user:password@" is not - // allowed. Fragments ("#...") and query parameters ("?...") are not - // allowed, either. - // - // +optional - URL *string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"` - - // `service` is a reference to the service for this webhook. Either - // `service` or `url` must be specified. - // - // If the webhook is running within the cluster, then you should use `service`. - // - // +optional - Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,2,opt,name=service"` - - // `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. - // If unspecified, system trust roots on the apiserver are used. - // +optional - CABundle []byte `json:"caBundle,omitempty" protobuf:"bytes,3,opt,name=caBundle"` -} - -// ServiceReference holds a reference to Service.legacy.k8s.io -type ServiceReference struct { - // `namespace` is the namespace of the service. - // Required - Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` - - // `name` is the name of the service. - // Required - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - - // `path` is an optional URL path which will be sent in any request to - // this service. - // +optional - Path *string `json:"path,omitempty" protobuf:"bytes,3,opt,name=path"` - - // If specified, the port on the service that hosting webhook. - // Default to 443 for backward compatibility. - // `port` should be a valid port number (1-65535, inclusive). - // +optional - Port *int32 `json:"port,omitempty" protobuf:"varint,4,opt,name=port"` -} diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/auditregistration/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 1a86f4da5..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,111 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_AuditSink = map[string]string{ - "": "AuditSink represents a cluster level audit sink", - "spec": "Spec defines the audit configuration spec", -} - -func (AuditSink) SwaggerDoc() map[string]string { - return map_AuditSink -} - -var map_AuditSinkList = map[string]string{ - "": "AuditSinkList is a list of AuditSink items.", - "items": "List of audit configurations.", -} - -func (AuditSinkList) SwaggerDoc() map[string]string { - return map_AuditSinkList -} - -var map_AuditSinkSpec = map[string]string{ - "": "AuditSinkSpec holds the spec for the audit sink", - "policy": "Policy defines the policy for selecting which events should be sent to the webhook required", - "webhook": "Webhook to send events required", -} - -func (AuditSinkSpec) SwaggerDoc() map[string]string { - return map_AuditSinkSpec -} - -var map_Policy = map[string]string{ - "": "Policy defines the configuration of how audit events are logged", - "level": "The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required", - "stages": "Stages is a list of stages for which events are created.", -} - -func (Policy) SwaggerDoc() map[string]string { - return map_Policy -} - -var map_ServiceReference = map[string]string{ - "": "ServiceReference holds a reference to Service.legacy.k8s.io", - "namespace": "`namespace` is the namespace of the service. Required", - "name": "`name` is the name of the service. Required", - "path": "`path` is an optional URL path which will be sent in any request to this service.", - "port": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", -} - -func (ServiceReference) SwaggerDoc() map[string]string { - return map_ServiceReference -} - -var map_Webhook = map[string]string{ - "": "Webhook holds the configuration of the webhook", - "throttle": "Throttle holds the options for throttling the webhook", - "clientConfig": "ClientConfig holds the connection parameters for the webhook required", -} - -func (Webhook) SwaggerDoc() map[string]string { - return map_Webhook -} - -var map_WebhookClientConfig = map[string]string{ - "": "WebhookClientConfig contains the information to make a connection with the webhook", - "url": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", - "service": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", - "caBundle": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", -} - -func (WebhookClientConfig) SwaggerDoc() map[string]string { - return map_WebhookClientConfig -} - -var map_WebhookThrottleConfig = map[string]string{ - "": "WebhookThrottleConfig holds the configuration for throttling events", - "qps": "ThrottleQPS maximum number of batches per second default 10 QPS", - "burst": "ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS", -} - -func (WebhookThrottleConfig) SwaggerDoc() map[string]string { - return map_WebhookThrottleConfig -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/auditregistration/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/auditregistration/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 4e55e8537..000000000 --- a/pseudo/k8s/api/auditregistration/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,229 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AuditSink) DeepCopyInto(out *AuditSink) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditSink. -func (in *AuditSink) DeepCopy() *AuditSink { - if in == nil { - return nil - } - out := new(AuditSink) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AuditSink) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AuditSinkList) DeepCopyInto(out *AuditSinkList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]AuditSink, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditSinkList. -func (in *AuditSinkList) DeepCopy() *AuditSinkList { - if in == nil { - return nil - } - out := new(AuditSinkList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AuditSinkList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AuditSinkSpec) DeepCopyInto(out *AuditSinkSpec) { - *out = *in - in.Policy.DeepCopyInto(&out.Policy) - in.Webhook.DeepCopyInto(&out.Webhook) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditSinkSpec. -func (in *AuditSinkSpec) DeepCopy() *AuditSinkSpec { - if in == nil { - return nil - } - out := new(AuditSinkSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Policy) DeepCopyInto(out *Policy) { - *out = *in - if in.Stages != nil { - in, out := &in.Stages, &out.Stages - *out = make([]Stage, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy. -func (in *Policy) DeepCopy() *Policy { - if in == nil { - return nil - } - out := new(Policy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceReference) DeepCopyInto(out *ServiceReference) { - *out = *in - if in.Path != nil { - in, out := &in.Path, &out.Path - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference. -func (in *ServiceReference) DeepCopy() *ServiceReference { - if in == nil { - return nil - } - out := new(ServiceReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Webhook) DeepCopyInto(out *Webhook) { - *out = *in - if in.Throttle != nil { - in, out := &in.Throttle, &out.Throttle - *out = new(WebhookThrottleConfig) - (*in).DeepCopyInto(*out) - } - in.ClientConfig.DeepCopyInto(&out.ClientConfig) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook. -func (in *Webhook) DeepCopy() *Webhook { - if in == nil { - return nil - } - out := new(Webhook) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) { - *out = *in - if in.URL != nil { - in, out := &in.URL, &out.URL - *out = new(string) - **out = **in - } - if in.Service != nil { - in, out := &in.Service, &out.Service - *out = new(ServiceReference) - (*in).DeepCopyInto(*out) - } - if in.CABundle != nil { - in, out := &in.CABundle, &out.CABundle - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookClientConfig. -func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig { - if in == nil { - return nil - } - out := new(WebhookClientConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WebhookThrottleConfig) DeepCopyInto(out *WebhookThrottleConfig) { - *out = *in - if in.QPS != nil { - in, out := &in.QPS, &out.QPS - *out = new(int64) - **out = **in - } - if in.Burst != nil { - in, out := &in.Burst, &out.Burst - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookThrottleConfig. -func (in *WebhookThrottleConfig) DeepCopy() *WebhookThrottleConfig { - if in == nil { - return nil - } - out := new(WebhookThrottleConfig) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/authentication/v1/doc.go b/pseudo/k8s/api/authentication/v1/doc.go deleted file mode 100644 index 7b46da9f2..000000000 --- a/pseudo/k8s/api/authentication/v1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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:protobuf-gen=package -// +groupName=authentication.k8s.io -// +k8s:openapi-gen=true - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1" diff --git a/pseudo/k8s/api/authentication/v1/generated.pb.go b/pseudo/k8s/api/authentication/v1/generated.pb.go deleted file mode 100644 index 86682f9d8..000000000 --- a/pseudo/k8s/api/authentication/v1/generated.pb.go +++ /dev/null @@ -1,2607 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - k8s_io_apimachinery_pkg_types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *BoundObjectReference) Reset() { *m = BoundObjectReference{} } -func (*BoundObjectReference) ProtoMessage() {} -func (*BoundObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{0} -} -func (m *BoundObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BoundObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *BoundObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoundObjectReference.Merge(m, src) -} -func (m *BoundObjectReference) XXX_Size() int { - return m.Size() -} -func (m *BoundObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_BoundObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_BoundObjectReference proto.InternalMessageInfo - -func (m *ExtraValue) Reset() { *m = ExtraValue{} } -func (*ExtraValue) ProtoMessage() {} -func (*ExtraValue) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{1} -} -func (m *ExtraValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExtraValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtraValue.Merge(m, src) -} -func (m *ExtraValue) XXX_Size() int { - return m.Size() -} -func (m *ExtraValue) XXX_DiscardUnknown() { - xxx_messageInfo_ExtraValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtraValue proto.InternalMessageInfo - -func (m *TokenRequest) Reset() { *m = TokenRequest{} } -func (*TokenRequest) ProtoMessage() {} -func (*TokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{2} -} -func (m *TokenRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenRequest.Merge(m, src) -} -func (m *TokenRequest) XXX_Size() int { - return m.Size() -} -func (m *TokenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TokenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenRequest proto.InternalMessageInfo - -func (m *TokenRequestSpec) Reset() { *m = TokenRequestSpec{} } -func (*TokenRequestSpec) ProtoMessage() {} -func (*TokenRequestSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{3} -} -func (m *TokenRequestSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenRequestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenRequestSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenRequestSpec.Merge(m, src) -} -func (m *TokenRequestSpec) XXX_Size() int { - return m.Size() -} -func (m *TokenRequestSpec) XXX_DiscardUnknown() { - xxx_messageInfo_TokenRequestSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenRequestSpec proto.InternalMessageInfo - -func (m *TokenRequestStatus) Reset() { *m = TokenRequestStatus{} } -func (*TokenRequestStatus) ProtoMessage() {} -func (*TokenRequestStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{4} -} -func (m *TokenRequestStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenRequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenRequestStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenRequestStatus.Merge(m, src) -} -func (m *TokenRequestStatus) XXX_Size() int { - return m.Size() -} -func (m *TokenRequestStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TokenRequestStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenRequestStatus proto.InternalMessageInfo - -func (m *TokenReview) Reset() { *m = TokenReview{} } -func (*TokenReview) ProtoMessage() {} -func (*TokenReview) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{5} -} -func (m *TokenReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenReview.Merge(m, src) -} -func (m *TokenReview) XXX_Size() int { - return m.Size() -} -func (m *TokenReview) XXX_DiscardUnknown() { - xxx_messageInfo_TokenReview.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenReview proto.InternalMessageInfo - -func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} } -func (*TokenReviewSpec) ProtoMessage() {} -func (*TokenReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{6} -} -func (m *TokenReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenReviewSpec.Merge(m, src) -} -func (m *TokenReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *TokenReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_TokenReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenReviewSpec proto.InternalMessageInfo - -func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} } -func (*TokenReviewStatus) ProtoMessage() {} -func (*TokenReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{7} -} -func (m *TokenReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenReviewStatus.Merge(m, src) -} -func (m *TokenReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *TokenReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TokenReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenReviewStatus proto.InternalMessageInfo - -func (m *UserInfo) Reset() { *m = UserInfo{} } -func (*UserInfo) ProtoMessage() {} -func (*UserInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_2953ea822e7ffe1e, []int{8} -} -func (m *UserInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *UserInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserInfo.Merge(m, src) -} -func (m *UserInfo) XXX_Size() int { - return m.Size() -} -func (m *UserInfo) XXX_DiscardUnknown() { - xxx_messageInfo_UserInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_UserInfo proto.InternalMessageInfo - -func init() { - proto.RegisterType((*BoundObjectReference)(nil), "k8s.io.api.authentication.v1.BoundObjectReference") - proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authentication.v1.ExtraValue") - proto.RegisterType((*TokenRequest)(nil), "k8s.io.api.authentication.v1.TokenRequest") - proto.RegisterType((*TokenRequestSpec)(nil), "k8s.io.api.authentication.v1.TokenRequestSpec") - proto.RegisterType((*TokenRequestStatus)(nil), "k8s.io.api.authentication.v1.TokenRequestStatus") - proto.RegisterType((*TokenReview)(nil), "k8s.io.api.authentication.v1.TokenReview") - proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.api.authentication.v1.TokenReviewSpec") - proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.api.authentication.v1.TokenReviewStatus") - proto.RegisterType((*UserInfo)(nil), "k8s.io.api.authentication.v1.UserInfo") - proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authentication.v1.UserInfo.ExtraEntry") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1/generated.proto", fileDescriptor_2953ea822e7ffe1e) -} - -var fileDescriptor_2953ea822e7ffe1e = []byte{ - // 903 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcf, 0x6f, 0xe3, 0x44, - 0x14, 0x8e, 0xf3, 0xa3, 0x4a, 0x26, 0xdb, 0xd2, 0xce, 0xb2, 0x52, 0x54, 0x20, 0x2e, 0x5e, 0x09, - 0x55, 0xc0, 0xda, 0x9b, 0x08, 0xc1, 0x6a, 0x91, 0x90, 0x6a, 0x1a, 0x41, 0x84, 0x60, 0x57, 0xb3, - 0xdb, 0x82, 0x38, 0x31, 0xb1, 0x5f, 0x53, 0x13, 0x3c, 0x36, 0xf6, 0x38, 0x6c, 0x6e, 0xfb, 0x27, - 0x70, 0x04, 0x89, 0x03, 0x7f, 0x04, 0x12, 0xff, 0x42, 0x8f, 0x2b, 0x4e, 0x3d, 0xa0, 0x88, 0x9a, - 0x2b, 0x47, 0x4e, 0x9c, 0xd0, 0x8c, 0xa7, 0x71, 0x9c, 0xb4, 0x69, 0x4e, 0x7b, 0x8b, 0xdf, 0xfb, - 0xde, 0xf7, 0xde, 0xfb, 0xe6, 0xcb, 0x0c, 0xea, 0x8d, 0x1e, 0xc4, 0xa6, 0x17, 0x58, 0xa3, 0x64, - 0x00, 0x11, 0x03, 0x0e, 0xb1, 0x35, 0x06, 0xe6, 0x06, 0x91, 0xa5, 0x12, 0x34, 0xf4, 0x2c, 0x9a, - 0xf0, 0x53, 0x60, 0xdc, 0x73, 0x28, 0xf7, 0x02, 0x66, 0x8d, 0x3b, 0xd6, 0x10, 0x18, 0x44, 0x94, - 0x83, 0x6b, 0x86, 0x51, 0xc0, 0x03, 0xfc, 0x7a, 0x86, 0x36, 0x69, 0xe8, 0x99, 0x45, 0xb4, 0x39, - 0xee, 0xec, 0xde, 0x1b, 0x7a, 0xfc, 0x34, 0x19, 0x98, 0x4e, 0xe0, 0x5b, 0xc3, 0x60, 0x18, 0x58, - 0xb2, 0x68, 0x90, 0x9c, 0xc8, 0x2f, 0xf9, 0x21, 0x7f, 0x65, 0x64, 0xbb, 0xef, 0xe5, 0xad, 0x7d, - 0xea, 0x9c, 0x7a, 0x0c, 0xa2, 0x89, 0x15, 0x8e, 0x86, 0x22, 0x10, 0x5b, 0x3e, 0x70, 0x7a, 0xc5, - 0x08, 0xbb, 0xd6, 0x75, 0x55, 0x51, 0xc2, 0xb8, 0xe7, 0xc3, 0x52, 0xc1, 0xfb, 0x37, 0x15, 0xc4, - 0xce, 0x29, 0xf8, 0x74, 0xb1, 0xce, 0xf8, 0x43, 0x43, 0xaf, 0xda, 0x41, 0xc2, 0xdc, 0x47, 0x83, - 0x6f, 0xc1, 0xe1, 0x04, 0x4e, 0x20, 0x02, 0xe6, 0x00, 0xde, 0x43, 0xd5, 0x91, 0xc7, 0xdc, 0x96, - 0xb6, 0xa7, 0xed, 0x37, 0xec, 0x5b, 0x67, 0x53, 0xbd, 0x94, 0x4e, 0xf5, 0xea, 0x67, 0x1e, 0x73, - 0x89, 0xcc, 0xe0, 0x2e, 0x42, 0xf4, 0x71, 0xff, 0x18, 0xa2, 0xd8, 0x0b, 0x58, 0xab, 0x2c, 0x71, - 0x58, 0xe1, 0xd0, 0xc1, 0x2c, 0x43, 0xe6, 0x50, 0x82, 0x95, 0x51, 0x1f, 0x5a, 0x95, 0x22, 0xeb, - 0x17, 0xd4, 0x07, 0x22, 0x33, 0xd8, 0x46, 0x95, 0xa4, 0x7f, 0xd8, 0xaa, 0x4a, 0xc0, 0x7d, 0x05, - 0xa8, 0x1c, 0xf5, 0x0f, 0xff, 0x9b, 0xea, 0x6f, 0x5e, 0xb7, 0x24, 0x9f, 0x84, 0x10, 0x9b, 0x47, - 0xfd, 0x43, 0x22, 0x8a, 0x8d, 0x0f, 0x10, 0xea, 0x3d, 0xe3, 0x11, 0x3d, 0xa6, 0xdf, 0x25, 0x80, - 0x75, 0x54, 0xf3, 0x38, 0xf8, 0x71, 0x4b, 0xdb, 0xab, 0xec, 0x37, 0xec, 0x46, 0x3a, 0xd5, 0x6b, - 0x7d, 0x11, 0x20, 0x59, 0xfc, 0x61, 0xfd, 0xa7, 0x5f, 0xf5, 0xd2, 0xf3, 0x3f, 0xf7, 0x4a, 0xc6, - 0x2f, 0x65, 0x74, 0xeb, 0x69, 0x30, 0x02, 0x46, 0xe0, 0xfb, 0x04, 0x62, 0x8e, 0xbf, 0x41, 0x75, - 0x71, 0x44, 0x2e, 0xe5, 0x54, 0x2a, 0xd1, 0xec, 0xde, 0x37, 0x73, 0x77, 0xcc, 0x86, 0x30, 0xc3, - 0xd1, 0x50, 0x04, 0x62, 0x53, 0xa0, 0xcd, 0x71, 0xc7, 0xcc, 0xe4, 0xfc, 0x1c, 0x38, 0xcd, 0x35, - 0xc9, 0x63, 0x64, 0xc6, 0x8a, 0x1f, 0xa3, 0x6a, 0x1c, 0x82, 0x23, 0xf5, 0x6b, 0x76, 0x4d, 0x73, - 0x95, 0xf7, 0xcc, 0xf9, 0xd9, 0x9e, 0x84, 0xe0, 0xe4, 0x0a, 0x8a, 0x2f, 0x22, 0x99, 0xf0, 0x57, - 0x68, 0x23, 0xe6, 0x94, 0x27, 0xb1, 0x54, 0xb9, 0x38, 0xf1, 0x4d, 0x9c, 0xb2, 0xce, 0xde, 0x52, - 0xac, 0x1b, 0xd9, 0x37, 0x51, 0x7c, 0xc6, 0xbf, 0x1a, 0xda, 0x5e, 0x1c, 0x01, 0xbf, 0x83, 0x1a, - 0x34, 0x71, 0x3d, 0x61, 0x9a, 0x4b, 0x89, 0x37, 0xd3, 0xa9, 0xde, 0x38, 0xb8, 0x0c, 0x92, 0x3c, - 0x8f, 0x3f, 0x46, 0x3b, 0xf0, 0x2c, 0xf4, 0x22, 0xd9, 0xfd, 0x09, 0x38, 0x01, 0x73, 0x63, 0x79, - 0xd6, 0x15, 0xfb, 0x4e, 0x3a, 0xd5, 0x77, 0x7a, 0x8b, 0x49, 0xb2, 0x8c, 0xc7, 0x0c, 0x6d, 0x0d, - 0x0a, 0x96, 0x55, 0x8b, 0x76, 0x57, 0x2f, 0x7a, 0x95, 0xcd, 0x6d, 0x9c, 0x4e, 0xf5, 0xad, 0x62, - 0x86, 0x2c, 0xb0, 0x1b, 0xbf, 0x69, 0x08, 0x2f, 0xab, 0x84, 0xef, 0xa2, 0x1a, 0x17, 0x51, 0xf5, - 0x17, 0xd9, 0x54, 0xa2, 0xd5, 0x32, 0x68, 0x96, 0xc3, 0x13, 0x74, 0x3b, 0x5f, 0xe0, 0xa9, 0xe7, - 0x43, 0xcc, 0xa9, 0x1f, 0xaa, 0xd3, 0x7e, 0x7b, 0x3d, 0x2f, 0x89, 0x32, 0xfb, 0x35, 0x45, 0x7f, - 0xbb, 0xb7, 0x4c, 0x47, 0xae, 0xea, 0x61, 0xfc, 0x5c, 0x46, 0x4d, 0x35, 0xf6, 0xd8, 0x83, 0x1f, - 0x5e, 0x82, 0x97, 0x1f, 0x15, 0xbc, 0x7c, 0x6f, 0x2d, 0xdf, 0x89, 0xd1, 0xae, 0xb5, 0xf2, 0x97, - 0x0b, 0x56, 0xb6, 0xd6, 0xa7, 0x5c, 0xed, 0x64, 0x07, 0xbd, 0xb2, 0xd0, 0x7f, 0xbd, 0xe3, 0x2c, - 0x98, 0xbd, 0xbc, 0xda, 0xec, 0xc6, 0x3f, 0x1a, 0xda, 0x59, 0x1a, 0x09, 0x7f, 0x88, 0x36, 0xe7, - 0x26, 0x87, 0xec, 0x86, 0xad, 0xdb, 0x77, 0x54, 0xbf, 0xcd, 0x83, 0xf9, 0x24, 0x29, 0x62, 0xf1, - 0xa7, 0xa8, 0x9a, 0xc4, 0x10, 0x29, 0x85, 0xdf, 0x5a, 0x2d, 0xc7, 0x51, 0x0c, 0x51, 0x9f, 0x9d, - 0x04, 0xb9, 0xb4, 0x22, 0x42, 0x24, 0x43, 0x71, 0x93, 0xea, 0x0d, 0x7f, 0xdb, 0xbb, 0xa8, 0x06, - 0x51, 0x14, 0x44, 0xea, 0xde, 0x9e, 0x69, 0xd3, 0x13, 0x41, 0x92, 0xe5, 0x8c, 0xdf, 0xcb, 0xa8, - 0x7e, 0xd9, 0x12, 0xbf, 0x8b, 0xea, 0xa2, 0x8d, 0xbc, 0xec, 0x33, 0x41, 0xb7, 0x55, 0x91, 0xc4, - 0x88, 0x38, 0x99, 0x21, 0xf0, 0x1b, 0xa8, 0x92, 0x78, 0xae, 0x7a, 0x43, 0x9a, 0x73, 0x97, 0x3e, - 0x11, 0x71, 0x6c, 0xa0, 0x8d, 0x61, 0x14, 0x24, 0xa1, 0xb0, 0x81, 0x18, 0x14, 0x89, 0x13, 0xfd, - 0x44, 0x46, 0x88, 0xca, 0xe0, 0x63, 0x54, 0x03, 0x71, 0xe7, 0xcb, 0x5d, 0x9a, 0xdd, 0xce, 0x7a, - 0xd2, 0x98, 0xf2, 0x9d, 0xe8, 0x31, 0x1e, 0x4d, 0xe6, 0xb6, 0x12, 0x31, 0x92, 0xd1, 0xed, 0x0e, - 0xd4, 0x5b, 0x22, 0x31, 0x78, 0x1b, 0x55, 0x46, 0x30, 0xc9, 0x36, 0x22, 0xe2, 0x27, 0xfe, 0x08, - 0xd5, 0xc6, 0xe2, 0x99, 0x51, 0x47, 0xb2, 0xbf, 0xba, 0x6f, 0xfe, 0x2c, 0x91, 0xac, 0xec, 0x61, - 0xf9, 0x81, 0x66, 0xef, 0x9f, 0x5d, 0xb4, 0x4b, 0x2f, 0x2e, 0xda, 0xa5, 0xf3, 0x8b, 0x76, 0xe9, - 0x79, 0xda, 0xd6, 0xce, 0xd2, 0xb6, 0xf6, 0x22, 0x6d, 0x6b, 0xe7, 0x69, 0x5b, 0xfb, 0x2b, 0x6d, - 0x6b, 0x3f, 0xfe, 0xdd, 0x2e, 0x7d, 0x5d, 0x1e, 0x77, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x8c, - 0x44, 0x87, 0xd0, 0xe2, 0x08, 0x00, 0x00, -} - -func (m *BoundObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BoundObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BoundObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x22 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m ExtraValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m) > 0 { - for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m[iNdEx]) - copy(dAtA[i:], m[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *TokenRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TokenRequestSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenRequestSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenRequestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ExpirationSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ExpirationSeconds)) - i-- - dAtA[i] = 0x20 - } - if m.BoundObjectRef != nil { - { - size, err := m.BoundObjectRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Audiences) > 0 { - for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Audiences[iNdEx]) - copy(dAtA[i:], m.Audiences[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *TokenRequestStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenRequestStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenRequestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ExpirationTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Token) - copy(dAtA[i:], m.Token) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TokenReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Audiences) > 0 { - for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Audiences[iNdEx]) - copy(dAtA[i:], m.Audiences[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Token) - copy(dAtA[i:], m.Token) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Audiences) > 0 { - for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Audiences[iNdEx]) - copy(dAtA[i:], m.Audiences[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x1a - { - size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i-- - if m.Authenticated { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *UserInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { - v := m.Extra[string(keysForExtra[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForExtra[iNdEx]) - copy(dAtA[i:], keysForExtra[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x12 - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BoundObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m ExtraValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TokenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TokenRequestSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Audiences) > 0 { - for _, s := range m.Audiences { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.BoundObjectRef != nil { - l = m.BoundObjectRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ExpirationSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ExpirationSeconds)) - } - return n -} - -func (m *TokenRequestStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Token) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ExpirationTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TokenReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TokenReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Token) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Audiences) > 0 { - for _, s := range m.Audiences { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TokenReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - l = m.User.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Error) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Audiences) > 0 { - for _, s := range m.Audiences { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *UserInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Username) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *BoundObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&BoundObjectReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `}`, - }, "") - return s -} -func (this *TokenRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenRequest{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenRequestSpec", "TokenRequestSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenRequestStatus", "TokenRequestStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TokenRequestSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenRequestSpec{`, - `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, - `BoundObjectRef:` + strings.Replace(this.BoundObjectRef.String(), "BoundObjectReference", "BoundObjectReference", 1) + `,`, - `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *TokenRequestStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenRequestStatus{`, - `Token:` + fmt.Sprintf("%v", this.Token) + `,`, - `ExpirationTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExpirationTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TokenReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TokenReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenReviewSpec{`, - `Token:` + fmt.Sprintf("%v", this.Token) + `,`, - `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, - `}`, - }, "") - return s -} -func (this *TokenReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenReviewStatus{`, - `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`, - `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, - `Error:` + fmt.Sprintf("%v", this.Error) + `,`, - `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, - `}`, - }, "") - return s -} -func (this *UserInfo) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]ExtraValue{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&UserInfo{`, - `Username:` + fmt.Sprintf("%v", this.Username) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Extra:` + mapStringForExtra + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *BoundObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BoundObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BoundObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExtraValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenRequestSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenRequestSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BoundObjectRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BoundObjectRef == nil { - m.BoundObjectRef = &BoundObjectReference{} - } - if err := m.BoundObjectRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpirationSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenRequestStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenRequestStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Token = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ExpirationTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Token = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Authenticated = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Extra == nil { - m.Extra = make(map[string]ExtraValue) - } - var mapkey string - mapvalue := &ExtraValue{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ExtraValue{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Extra[mapkey] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/authentication/v1/generated.proto b/pseudo/k8s/api/authentication/v1/generated.proto deleted file mode 100644 index bc41439da..000000000 --- a/pseudo/k8s/api/authentication/v1/generated.proto +++ /dev/null @@ -1,182 +0,0 @@ -/* -Copyright 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.authentication.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// BoundObjectReference is a reference to an object that a token is bound to. -message BoundObjectReference { - // Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - // +optional - optional string kind = 1; - - // API version of the referent. - // +optional - optional string aPIVersion = 2; - - // Name of the referent. - // +optional - optional string name = 3; - - // UID of the referent. - // +optional - optional string uID = 4; -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -message ExtraValue { - // items, if empty, will result in an empty slice - - repeated string items = 1; -} - -// TokenRequest requests a token for a given service account. -message TokenRequest { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - optional TokenRequestSpec spec = 2; - - // +optional - optional TokenRequestStatus status = 3; -} - -// TokenRequestSpec contains client provided parameters of a token request. -message TokenRequestSpec { - // Audiences are the intendend audiences of the token. A recipient of a - // token must identitfy themself with an identifier in the list of - // audiences of the token, and otherwise should reject the token. A - // token issued for multiple audiences may be used to authenticate - // against any of the audiences listed but implies a high degree of - // trust between the target audiences. - repeated string audiences = 1; - - // ExpirationSeconds is the requested duration of validity of the request. The - // token issuer may return a token with a different validity duration so a - // client needs to check the 'expiration' field in a response. - // +optional - optional int64 expirationSeconds = 4; - - // BoundObjectRef is a reference to an object that the token will be bound to. - // The token will only be valid for as long as the bound object exists. - // NOTE: The API server's TokenReview endpoint will validate the - // BoundObjectRef, but other audiences may not. Keep ExpirationSeconds - // small if you want prompt revocation. - // +optional - optional BoundObjectReference boundObjectRef = 3; -} - -// TokenRequestStatus is the result of a token request. -message TokenRequestStatus { - // Token is the opaque bearer token. - optional string token = 1; - - // ExpirationTimestamp is the time of expiration of the returned token. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; -} - -// TokenReview attempts to authenticate a token to a known user. -// Note: TokenReview requests may be cached by the webhook token authenticator -// plugin in the kube-apiserver. -message TokenReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated - optional TokenReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request can be authenticated. - // +optional - optional TokenReviewStatus status = 3; -} - -// TokenReviewSpec is a description of the token authentication request. -message TokenReviewSpec { - // Token is the opaque bearer token. - // +optional - optional string token = 1; - - // Audiences is a list of the identifiers that the resource server presented - // with the token identifies as. Audience-aware token authenticators will - // verify that the token was intended for at least one of the audiences in - // this list. If no audiences are provided, the audience will default to the - // audience of the Kubernetes apiserver. - // +optional - repeated string audiences = 2; -} - -// TokenReviewStatus is the result of the token authentication request. -message TokenReviewStatus { - // Authenticated indicates that the token was associated with a known user. - // +optional - optional bool authenticated = 1; - - // User is the UserInfo associated with the provided token. - // +optional - optional UserInfo user = 2; - - // Audiences are audience identifiers chosen by the authenticator that are - // compatible with both the TokenReview and token. An identifier is any - // identifier in the intersection of the TokenReviewSpec audiences and the - // token's audiences. A client of the TokenReview API that sets the - // spec.audiences field should validate that a compatible audience identifier - // is returned in the status.audiences field to ensure that the TokenReview - // server is audience aware. If a TokenReview returns an empty - // status.audience field where status.authenticated is "true", the token is - // valid against the audience of the Kubernetes API server. - // +optional - repeated string audiences = 4; - - // Error indicates that the token couldn't be checked - // +optional - optional string error = 3; -} - -// UserInfo holds the information about the user needed to implement the -// user.Info interface. -message UserInfo { - // The name that uniquely identifies this user among all active users. - // +optional - optional string username = 1; - - // A unique value that identifies this user across time. If this user is - // deleted and another user by the same name is added, they will have - // different UIDs. - // +optional - optional string uid = 2; - - // The names of groups this user is a part of. - // +optional - repeated string groups = 3; - - // Any additional information provided by the authenticator. - // +optional - map extra = 4; -} - diff --git a/pseudo/k8s/api/authentication/v1/register.go b/pseudo/k8s/api/authentication/v1/register.go deleted file mode 100644 index bf6b45323..000000000 --- a/pseudo/k8s/api/authentication/v1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "authentication.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &TokenReview{}, - &TokenRequest{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/authentication/v1/types.go b/pseudo/k8s/api/authentication/v1/types.go deleted file mode 100644 index 6c2cbd898..000000000 --- a/pseudo/k8s/api/authentication/v1/types.go +++ /dev/null @@ -1,189 +0,0 @@ -/* -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 v1 - -import ( - "fmt" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -const ( - // ImpersonateUserHeader is used to impersonate a particular user during an API server request - ImpersonateUserHeader = "Impersonate-User" - - // ImpersonateGroupHeader is used to impersonate a particular group during an API server request. - // It can be repeated multiplied times for multiple groups. - ImpersonateGroupHeader = "Impersonate-Group" - - // ImpersonateUserExtraHeaderPrefix is a prefix for any header used to impersonate an entry in the - // extra map[string][]string for user.Info. The key will be every after the prefix. - // It can be repeated multiplied times for multiple map keys and the same key can be repeated multiple - // times to have multiple elements in the slice under a single key - ImpersonateUserExtraHeaderPrefix = "Impersonate-Extra-" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// TokenReview attempts to authenticate a token to a known user. -// Note: TokenReview requests may be cached by the webhook token authenticator -// plugin in the kube-apiserver. -type TokenReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated - Spec TokenReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request can be authenticated. - // +optional - Status TokenReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// TokenReviewSpec is a description of the token authentication request. -type TokenReviewSpec struct { - // Token is the opaque bearer token. - // +optional - Token string `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"` - // Audiences is a list of the identifiers that the resource server presented - // with the token identifies as. Audience-aware token authenticators will - // verify that the token was intended for at least one of the audiences in - // this list. If no audiences are provided, the audience will default to the - // audience of the Kubernetes apiserver. - // +optional - Audiences []string `json:"audiences,omitempty" protobuf:"bytes,2,rep,name=audiences"` -} - -// TokenReviewStatus is the result of the token authentication request. -type TokenReviewStatus struct { - // Authenticated indicates that the token was associated with a known user. - // +optional - Authenticated bool `json:"authenticated,omitempty" protobuf:"varint,1,opt,name=authenticated"` - // User is the UserInfo associated with the provided token. - // +optional - User UserInfo `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` - // Audiences are audience identifiers chosen by the authenticator that are - // compatible with both the TokenReview and token. An identifier is any - // identifier in the intersection of the TokenReviewSpec audiences and the - // token's audiences. A client of the TokenReview API that sets the - // spec.audiences field should validate that a compatible audience identifier - // is returned in the status.audiences field to ensure that the TokenReview - // server is audience aware. If a TokenReview returns an empty - // status.audience field where status.authenticated is "true", the token is - // valid against the audience of the Kubernetes API server. - // +optional - Audiences []string `json:"audiences,omitempty" protobuf:"bytes,4,rep,name=audiences"` - // Error indicates that the token couldn't be checked - // +optional - Error string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` -} - -// UserInfo holds the information about the user needed to implement the -// user.Info interface. -type UserInfo struct { - // The name that uniquely identifies this user among all active users. - // +optional - Username string `json:"username,omitempty" protobuf:"bytes,1,opt,name=username"` - // A unique value that identifies this user across time. If this user is - // deleted and another user by the same name is added, they will have - // different UIDs. - // +optional - UID string `json:"uid,omitempty" protobuf:"bytes,2,opt,name=uid"` - // The names of groups this user is a part of. - // +optional - Groups []string `json:"groups,omitempty" protobuf:"bytes,3,rep,name=groups"` - // Any additional information provided by the authenticator. - // +optional - Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,4,rep,name=extra"` -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -type ExtraValue []string - -func (t ExtraValue) String() string { - return fmt.Sprintf("%v", []string(t)) -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// TokenRequest requests a token for a given service account. -type TokenRequest struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Spec TokenRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - // +optional - Status TokenRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// TokenRequestSpec contains client provided parameters of a token request. -type TokenRequestSpec struct { - // Audiences are the intendend audiences of the token. A recipient of a - // token must identitfy themself with an identifier in the list of - // audiences of the token, and otherwise should reject the token. A - // token issued for multiple audiences may be used to authenticate - // against any of the audiences listed but implies a high degree of - // trust between the target audiences. - Audiences []string `json:"audiences" protobuf:"bytes,1,rep,name=audiences"` - - // ExpirationSeconds is the requested duration of validity of the request. The - // token issuer may return a token with a different validity duration so a - // client needs to check the 'expiration' field in a response. - // +optional - ExpirationSeconds *int64 `json:"expirationSeconds" protobuf:"varint,4,opt,name=expirationSeconds"` - - // BoundObjectRef is a reference to an object that the token will be bound to. - // The token will only be valid for as long as the bound object exists. - // NOTE: The API server's TokenReview endpoint will validate the - // BoundObjectRef, but other audiences may not. Keep ExpirationSeconds - // small if you want prompt revocation. - // +optional - BoundObjectRef *BoundObjectReference `json:"boundObjectRef" protobuf:"bytes,3,opt,name=boundObjectRef"` -} - -// TokenRequestStatus is the result of a token request. -type TokenRequestStatus struct { - // Token is the opaque bearer token. - Token string `json:"token" protobuf:"bytes,1,opt,name=token"` - // ExpirationTimestamp is the time of expiration of the returned token. - ExpirationTimestamp metav1.Time `json:"expirationTimestamp" protobuf:"bytes,2,opt,name=expirationTimestamp"` -} - -// BoundObjectReference is a reference to an object that a token is bound to. -type BoundObjectReference struct { - // Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - // +optional - Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` - // API version of the referent. - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=aPIVersion"` - - // Name of the referent. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"` - // UID of the referent. - // +optional - UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uID,casttype=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types.UID"` -} diff --git a/pseudo/k8s/api/authentication/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/authentication/v1/types_swagger_doc_generated.go deleted file mode 100644 index 09f6b920f..000000000 --- a/pseudo/k8s/api/authentication/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,115 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_BoundObjectReference = map[string]string{ - "": "BoundObjectReference is a reference to an object that a token is bound to.", - "kind": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", - "apiVersion": "API version of the referent.", - "name": "Name of the referent.", - "uid": "UID of the referent.", -} - -func (BoundObjectReference) SwaggerDoc() map[string]string { - return map_BoundObjectReference -} - -var map_TokenRequest = map[string]string{ - "": "TokenRequest requests a token for a given service account.", -} - -func (TokenRequest) SwaggerDoc() map[string]string { - return map_TokenRequest -} - -var map_TokenRequestSpec = map[string]string{ - "": "TokenRequestSpec contains client provided parameters of a token request.", - "audiences": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", - "expirationSeconds": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", - "boundObjectRef": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.", -} - -func (TokenRequestSpec) SwaggerDoc() map[string]string { - return map_TokenRequestSpec -} - -var map_TokenRequestStatus = map[string]string{ - "": "TokenRequestStatus is the result of a token request.", - "token": "Token is the opaque bearer token.", - "expirationTimestamp": "ExpirationTimestamp is the time of expiration of the returned token.", -} - -func (TokenRequestStatus) SwaggerDoc() map[string]string { - return map_TokenRequestStatus -} - -var map_TokenReview = map[string]string{ - "": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "spec": "Spec holds information about the request being evaluated", - "status": "Status is filled in by the server and indicates whether the request can be authenticated.", -} - -func (TokenReview) SwaggerDoc() map[string]string { - return map_TokenReview -} - -var map_TokenReviewSpec = map[string]string{ - "": "TokenReviewSpec is a description of the token authentication request.", - "token": "Token is the opaque bearer token.", - "audiences": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", -} - -func (TokenReviewSpec) SwaggerDoc() map[string]string { - return map_TokenReviewSpec -} - -var map_TokenReviewStatus = map[string]string{ - "": "TokenReviewStatus is the result of the token authentication request.", - "authenticated": "Authenticated indicates that the token was associated with a known user.", - "user": "User is the UserInfo associated with the provided token.", - "audiences": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", - "error": "Error indicates that the token couldn't be checked", -} - -func (TokenReviewStatus) SwaggerDoc() map[string]string { - return map_TokenReviewStatus -} - -var map_UserInfo = map[string]string{ - "": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "username": "The name that uniquely identifies this user among all active users.", - "uid": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", - "groups": "The names of groups this user is a part of.", - "extra": "Any additional information provided by the authenticator.", -} - -func (UserInfo) SwaggerDoc() map[string]string { - return map_UserInfo -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/authentication/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/authentication/v1/zz_generated.deepcopy.go deleted file mode 100644 index 9296d45b4..000000000 --- a/pseudo/k8s/api/authentication/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,244 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BoundObjectReference) DeepCopyInto(out *BoundObjectReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BoundObjectReference. -func (in *BoundObjectReference) DeepCopy() *BoundObjectReference { - if in == nil { - return nil - } - out := new(BoundObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ExtraValue) DeepCopyInto(out *ExtraValue) { - { - in := &in - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue. -func (in ExtraValue) DeepCopy() ExtraValue { - if in == nil { - return nil - } - out := new(ExtraValue) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenRequest) DeepCopyInto(out *TokenRequest) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequest. -func (in *TokenRequest) DeepCopy() *TokenRequest { - if in == nil { - return nil - } - out := new(TokenRequest) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TokenRequest) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenRequestSpec) DeepCopyInto(out *TokenRequestSpec) { - *out = *in - if in.Audiences != nil { - in, out := &in.Audiences, &out.Audiences - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ExpirationSeconds != nil { - in, out := &in.ExpirationSeconds, &out.ExpirationSeconds - *out = new(int64) - **out = **in - } - if in.BoundObjectRef != nil { - in, out := &in.BoundObjectRef, &out.BoundObjectRef - *out = new(BoundObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestSpec. -func (in *TokenRequestSpec) DeepCopy() *TokenRequestSpec { - if in == nil { - return nil - } - out := new(TokenRequestSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenRequestStatus) DeepCopyInto(out *TokenRequestStatus) { - *out = *in - in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestStatus. -func (in *TokenRequestStatus) DeepCopy() *TokenRequestStatus { - if in == nil { - return nil - } - out := new(TokenRequestStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenReview) DeepCopyInto(out *TokenReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview. -func (in *TokenReview) DeepCopy() *TokenReview { - if in == nil { - return nil - } - out := new(TokenReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TokenReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenReviewSpec) DeepCopyInto(out *TokenReviewSpec) { - *out = *in - if in.Audiences != nil { - in, out := &in.Audiences, &out.Audiences - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewSpec. -func (in *TokenReviewSpec) DeepCopy() *TokenReviewSpec { - if in == nil { - return nil - } - out := new(TokenReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenReviewStatus) DeepCopyInto(out *TokenReviewStatus) { - *out = *in - in.User.DeepCopyInto(&out.User) - if in.Audiences != nil { - in, out := &in.Audiences, &out.Audiences - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewStatus. -func (in *TokenReviewStatus) DeepCopy() *TokenReviewStatus { - if in == nil { - return nil - } - out := new(TokenReviewStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserInfo) DeepCopyInto(out *UserInfo) { - *out = *in - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Extra != nil { - in, out := &in.Extra, &out.Extra - *out = make(map[string]ExtraValue, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. -func (in *UserInfo) DeepCopy() *UserInfo { - if in == nil { - return nil - } - out := new(UserInfo) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/authentication/v1beta1/doc.go b/pseudo/k8s/api/authentication/v1beta1/doc.go deleted file mode 100644 index c4b657424..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +groupName=authentication.k8s.io -// +k8s:openapi-gen=true - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1beta1" diff --git a/pseudo/k8s/api/authentication/v1beta1/generated.pb.go b/pseudo/k8s/api/authentication/v1beta1/generated.pb.go deleted file mode 100644 index 429c6962c..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/generated.pb.go +++ /dev/null @@ -1,1584 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ExtraValue) Reset() { *m = ExtraValue{} } -func (*ExtraValue) ProtoMessage() {} -func (*ExtraValue) Descriptor() ([]byte, []int) { - return fileDescriptor_77c9b20d3ad27844, []int{0} -} -func (m *ExtraValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExtraValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtraValue.Merge(m, src) -} -func (m *ExtraValue) XXX_Size() int { - return m.Size() -} -func (m *ExtraValue) XXX_DiscardUnknown() { - xxx_messageInfo_ExtraValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtraValue proto.InternalMessageInfo - -func (m *TokenReview) Reset() { *m = TokenReview{} } -func (*TokenReview) ProtoMessage() {} -func (*TokenReview) Descriptor() ([]byte, []int) { - return fileDescriptor_77c9b20d3ad27844, []int{1} -} -func (m *TokenReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenReview.Merge(m, src) -} -func (m *TokenReview) XXX_Size() int { - return m.Size() -} -func (m *TokenReview) XXX_DiscardUnknown() { - xxx_messageInfo_TokenReview.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenReview proto.InternalMessageInfo - -func (m *TokenReviewSpec) Reset() { *m = TokenReviewSpec{} } -func (*TokenReviewSpec) ProtoMessage() {} -func (*TokenReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_77c9b20d3ad27844, []int{2} -} -func (m *TokenReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenReviewSpec.Merge(m, src) -} -func (m *TokenReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *TokenReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_TokenReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenReviewSpec proto.InternalMessageInfo - -func (m *TokenReviewStatus) Reset() { *m = TokenReviewStatus{} } -func (*TokenReviewStatus) ProtoMessage() {} -func (*TokenReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_77c9b20d3ad27844, []int{3} -} -func (m *TokenReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TokenReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TokenReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenReviewStatus.Merge(m, src) -} -func (m *TokenReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *TokenReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_TokenReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_TokenReviewStatus proto.InternalMessageInfo - -func (m *UserInfo) Reset() { *m = UserInfo{} } -func (*UserInfo) ProtoMessage() {} -func (*UserInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_77c9b20d3ad27844, []int{4} -} -func (m *UserInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *UserInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserInfo.Merge(m, src) -} -func (m *UserInfo) XXX_Size() int { - return m.Size() -} -func (m *UserInfo) XXX_DiscardUnknown() { - xxx_messageInfo_UserInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_UserInfo proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authentication.v1beta1.ExtraValue") - proto.RegisterType((*TokenReview)(nil), "k8s.io.api.authentication.v1beta1.TokenReview") - proto.RegisterType((*TokenReviewSpec)(nil), "k8s.io.api.authentication.v1beta1.TokenReviewSpec") - proto.RegisterType((*TokenReviewStatus)(nil), "k8s.io.api.authentication.v1beta1.TokenReviewStatus") - proto.RegisterType((*UserInfo)(nil), "k8s.io.api.authentication.v1beta1.UserInfo") - proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authentication.v1beta1.UserInfo.ExtraEntry") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1beta1/generated.proto", fileDescriptor_77c9b20d3ad27844) -} - -var fileDescriptor_77c9b20d3ad27844 = []byte{ - // 663 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xb6, 0xf3, 0x53, 0x92, 0x0d, 0x81, 0xb2, 0x12, 0x52, 0x14, 0x09, 0xa7, 0x84, 0x4b, 0xa5, - 0xd2, 0x35, 0xad, 0xaa, 0x52, 0x95, 0x53, 0x0d, 0x15, 0x2a, 0x52, 0x85, 0xb4, 0xb4, 0x1c, 0x80, - 0x03, 0x1b, 0x67, 0xea, 0x98, 0xe0, 0x1f, 0xad, 0xd7, 0x81, 0xde, 0xfa, 0x08, 0x1c, 0x39, 0x22, - 0xf1, 0x24, 0xdc, 0x7a, 0xec, 0xb1, 0x07, 0x14, 0x51, 0xf3, 0x04, 0xbc, 0x01, 0xda, 0xf5, 0xb6, - 0x4e, 0x1b, 0x41, 0xdb, 0x9b, 0xf7, 0x9b, 0xf9, 0xbe, 0x99, 0xf9, 0xc6, 0x83, 0x5e, 0x0c, 0xd7, - 0x12, 0xe2, 0x47, 0xf6, 0x30, 0xed, 0x01, 0x0f, 0x41, 0x40, 0x62, 0x8f, 0x20, 0xec, 0x47, 0xdc, - 0xd6, 0x01, 0x16, 0xfb, 0x36, 0x4b, 0xc5, 0x00, 0x42, 0xe1, 0xbb, 0x4c, 0xf8, 0x51, 0x68, 0x8f, - 0x96, 0x7a, 0x20, 0xd8, 0x92, 0xed, 0x41, 0x08, 0x9c, 0x09, 0xe8, 0x93, 0x98, 0x47, 0x22, 0xc2, - 0xf7, 0x73, 0x0a, 0x61, 0xb1, 0x4f, 0xce, 0x53, 0x88, 0xa6, 0xb4, 0x17, 0x3d, 0x5f, 0x0c, 0xd2, - 0x1e, 0x71, 0xa3, 0xc0, 0xf6, 0x22, 0x2f, 0xb2, 0x15, 0xb3, 0x97, 0xee, 0xa9, 0x97, 0x7a, 0xa8, - 0xaf, 0x5c, 0xb1, 0xbd, 0x52, 0x34, 0x11, 0x30, 0x77, 0xe0, 0x87, 0xc0, 0xf7, 0xed, 0x78, 0xe8, - 0x49, 0x20, 0xb1, 0x03, 0x10, 0xcc, 0x1e, 0x4d, 0xf5, 0xd1, 0xb6, 0xff, 0xc5, 0xe2, 0x69, 0x28, - 0xfc, 0x00, 0xa6, 0x08, 0xab, 0x97, 0x11, 0x12, 0x77, 0x00, 0x01, 0xbb, 0xc8, 0xeb, 0x3e, 0x46, - 0x68, 0xf3, 0xb3, 0xe0, 0xec, 0x35, 0xfb, 0x98, 0x02, 0xee, 0xa0, 0xaa, 0x2f, 0x20, 0x48, 0x5a, - 0xe6, 0x5c, 0x79, 0xbe, 0xee, 0xd4, 0xb3, 0x71, 0xa7, 0xba, 0x25, 0x01, 0x9a, 0xe3, 0xeb, 0xb5, - 0xaf, 0xdf, 0x3a, 0xc6, 0xc1, 0xcf, 0x39, 0xa3, 0xfb, 0xbd, 0x84, 0x1a, 0x3b, 0xd1, 0x10, 0x42, - 0x0a, 0x23, 0x1f, 0x3e, 0xe1, 0xf7, 0xa8, 0x26, 0x87, 0xe9, 0x33, 0xc1, 0x5a, 0xe6, 0x9c, 0x39, - 0xdf, 0x58, 0x7e, 0x44, 0x0a, 0x33, 0xcf, 0x7a, 0x22, 0xf1, 0xd0, 0x93, 0x40, 0x42, 0x64, 0x36, - 0x19, 0x2d, 0x91, 0x97, 0xbd, 0x0f, 0xe0, 0x8a, 0x6d, 0x10, 0xcc, 0xc1, 0x87, 0xe3, 0x8e, 0x91, - 0x8d, 0x3b, 0xa8, 0xc0, 0xe8, 0x99, 0x2a, 0xde, 0x41, 0x95, 0x24, 0x06, 0xb7, 0x55, 0x52, 0xea, - 0xcb, 0xe4, 0xd2, 0x55, 0x91, 0x89, 0xfe, 0x5e, 0xc5, 0xe0, 0x3a, 0x37, 0xb5, 0x7e, 0x45, 0xbe, - 0xa8, 0x52, 0xc3, 0xef, 0xd0, 0x4c, 0x22, 0x98, 0x48, 0x93, 0x56, 0x59, 0xe9, 0xae, 0x5c, 0x53, - 0x57, 0x71, 0x9d, 0x5b, 0x5a, 0x79, 0x26, 0x7f, 0x53, 0xad, 0xd9, 0x75, 0xd1, 0xed, 0x0b, 0x4d, - 0xe0, 0x07, 0xa8, 0x2a, 0x24, 0xa4, 0x5c, 0xaa, 0x3b, 0x4d, 0xcd, 0xac, 0xe6, 0x79, 0x79, 0x0c, - 0x2f, 0xa0, 0x3a, 0x4b, 0xfb, 0x3e, 0x84, 0x2e, 0x24, 0xad, 0x92, 0x5a, 0x46, 0x33, 0x1b, 0x77, - 0xea, 0x1b, 0xa7, 0x20, 0x2d, 0xe2, 0xdd, 0x3f, 0x26, 0xba, 0x33, 0xd5, 0x12, 0x7e, 0x82, 0x9a, - 0x13, 0xed, 0x43, 0x5f, 0xd5, 0xab, 0x39, 0x77, 0x75, 0xbd, 0xe6, 0xc6, 0x64, 0x90, 0x9e, 0xcf, - 0xc5, 0xdb, 0xa8, 0x92, 0x26, 0xc0, 0xb5, 0xd7, 0x0b, 0x57, 0xf0, 0x64, 0x37, 0x01, 0xbe, 0x15, - 0xee, 0x45, 0x85, 0xc9, 0x12, 0xa1, 0x4a, 0xe6, 0xfc, 0x38, 0x95, 0xff, 0x8f, 0x23, 0x0d, 0x02, - 0xce, 0x23, 0xae, 0x16, 0x32, 0x61, 0xd0, 0xa6, 0x04, 0x69, 0x1e, 0xeb, 0xfe, 0x28, 0xa1, 0xda, - 0x69, 0x49, 0xfc, 0x10, 0xd5, 0x64, 0x99, 0x90, 0x05, 0xa0, 0x5d, 0x9d, 0xd5, 0x24, 0x95, 0x23, - 0x71, 0x7a, 0x96, 0x81, 0xef, 0xa1, 0x72, 0xea, 0xf7, 0xd5, 0x68, 0x75, 0xa7, 0xa1, 0x13, 0xcb, - 0xbb, 0x5b, 0xcf, 0xa8, 0xc4, 0x71, 0x17, 0xcd, 0x78, 0x3c, 0x4a, 0x63, 0xf9, 0x43, 0xc8, 0x46, - 0x91, 0x5c, 0xeb, 0x73, 0x85, 0x50, 0x1d, 0xc1, 0x6f, 0x51, 0x15, 0xe4, 0xd5, 0xa8, 0x59, 0x1a, - 0xcb, 0xab, 0xd7, 0xf0, 0x87, 0xa8, 0x73, 0xdb, 0x0c, 0x05, 0xdf, 0x9f, 0x18, 0x4d, 0x62, 0x34, - 0xd7, 0x6c, 0x7b, 0xfa, 0x24, 0x55, 0x0e, 0x9e, 0x45, 0xe5, 0x21, 0xec, 0xe7, 0x63, 0x51, 0xf9, - 0x89, 0x9f, 0xa2, 0xea, 0x48, 0x5e, 0xab, 0x5e, 0xce, 0xe2, 0x15, 0x8a, 0x17, 0x27, 0x4e, 0x73, - 0xee, 0x7a, 0x69, 0xcd, 0x74, 0x16, 0x0f, 0x4f, 0x2c, 0xe3, 0xe8, 0xc4, 0x32, 0x8e, 0x4f, 0x2c, - 0xe3, 0x20, 0xb3, 0xcc, 0xc3, 0xcc, 0x32, 0x8f, 0x32, 0xcb, 0x3c, 0xce, 0x2c, 0xf3, 0x57, 0x66, - 0x99, 0x5f, 0x7e, 0x5b, 0xc6, 0x9b, 0x1b, 0x5a, 0xe4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, - 0xbb, 0x89, 0x53, 0x68, 0x05, 0x00, 0x00, -} - -func (m ExtraValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m) > 0 { - for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m[iNdEx]) - copy(dAtA[i:], m[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *TokenReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TokenReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Audiences) > 0 { - for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Audiences[iNdEx]) - copy(dAtA[i:], m.Audiences[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Token) - copy(dAtA[i:], m.Token) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Token))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TokenReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TokenReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TokenReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Audiences) > 0 { - for iNdEx := len(m.Audiences) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Audiences[iNdEx]) - copy(dAtA[i:], m.Audiences[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audiences[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x1a - { - size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i-- - if m.Authenticated { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *UserInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UserInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UserInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { - v := m.Extra[string(keysForExtra[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForExtra[iNdEx]) - copy(dAtA[i:], keysForExtra[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x12 - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m ExtraValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TokenReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TokenReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Token) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Audiences) > 0 { - for _, s := range m.Audiences { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TokenReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - l = m.User.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Error) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Audiences) > 0 { - for _, s := range m.Audiences { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *UserInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Username) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *TokenReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TokenReviewSpec", "TokenReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "TokenReviewStatus", "TokenReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *TokenReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenReviewSpec{`, - `Token:` + fmt.Sprintf("%v", this.Token) + `,`, - `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, - `}`, - }, "") - return s -} -func (this *TokenReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TokenReviewStatus{`, - `Authenticated:` + fmt.Sprintf("%v", this.Authenticated) + `,`, - `User:` + strings.Replace(strings.Replace(this.User.String(), "UserInfo", "UserInfo", 1), `&`, ``, 1) + `,`, - `Error:` + fmt.Sprintf("%v", this.Error) + `,`, - `Audiences:` + fmt.Sprintf("%v", this.Audiences) + `,`, - `}`, - }, "") - return s -} -func (this *UserInfo) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]ExtraValue{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&UserInfo{`, - `Username:` + fmt.Sprintf("%v", this.Username) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Extra:` + mapStringForExtra + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ExtraValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Token = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TokenReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TokenReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TokenReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Authenticated", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Authenticated = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Audiences", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Audiences = append(m.Audiences, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UserInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UserInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UserInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Extra == nil { - m.Extra = make(map[string]ExtraValue) - } - var mapkey string - mapvalue := &ExtraValue{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ExtraValue{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Extra[mapkey] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/authentication/v1beta1/generated.proto b/pseudo/k8s/api/authentication/v1beta1/generated.proto deleted file mode 100644 index dcc00e5f2..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/generated.proto +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 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.authentication.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -message ExtraValue { - // items, if empty, will result in an empty slice - - repeated string items = 1; -} - -// TokenReview attempts to authenticate a token to a known user. -// Note: TokenReview requests may be cached by the webhook token authenticator -// plugin in the kube-apiserver. -message TokenReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated - optional TokenReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request can be authenticated. - // +optional - optional TokenReviewStatus status = 3; -} - -// TokenReviewSpec is a description of the token authentication request. -message TokenReviewSpec { - // Token is the opaque bearer token. - // +optional - optional string token = 1; - - // Audiences is a list of the identifiers that the resource server presented - // with the token identifies as. Audience-aware token authenticators will - // verify that the token was intended for at least one of the audiences in - // this list. If no audiences are provided, the audience will default to the - // audience of the Kubernetes apiserver. - // +optional - repeated string audiences = 2; -} - -// TokenReviewStatus is the result of the token authentication request. -message TokenReviewStatus { - // Authenticated indicates that the token was associated with a known user. - // +optional - optional bool authenticated = 1; - - // User is the UserInfo associated with the provided token. - // +optional - optional UserInfo user = 2; - - // Audiences are audience identifiers chosen by the authenticator that are - // compatible with both the TokenReview and token. An identifier is any - // identifier in the intersection of the TokenReviewSpec audiences and the - // token's audiences. A client of the TokenReview API that sets the - // spec.audiences field should validate that a compatible audience identifier - // is returned in the status.audiences field to ensure that the TokenReview - // server is audience aware. If a TokenReview returns an empty - // status.audience field where status.authenticated is "true", the token is - // valid against the audience of the Kubernetes API server. - // +optional - repeated string audiences = 4; - - // Error indicates that the token couldn't be checked - // +optional - optional string error = 3; -} - -// UserInfo holds the information about the user needed to implement the -// user.Info interface. -message UserInfo { - // The name that uniquely identifies this user among all active users. - // +optional - optional string username = 1; - - // A unique value that identifies this user across time. If this user is - // deleted and another user by the same name is added, they will have - // different UIDs. - // +optional - optional string uid = 2; - - // The names of groups this user is a part of. - // +optional - repeated string groups = 3; - - // Any additional information provided by the authenticator. - // +optional - map extra = 4; -} - diff --git a/pseudo/k8s/api/authentication/v1beta1/register.go b/pseudo/k8s/api/authentication/v1beta1/register.go deleted file mode 100644 index 032c29b5c..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/register.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2015 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "authentication.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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &TokenReview{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/authentication/v1beta1/types.go b/pseudo/k8s/api/authentication/v1beta1/types.go deleted file mode 100644 index 69c5175e4..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/types.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -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 - -import ( - "fmt" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// TokenReview attempts to authenticate a token to a known user. -// Note: TokenReview requests may be cached by the webhook token authenticator -// plugin in the kube-apiserver. -type TokenReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated - Spec TokenReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request can be authenticated. - // +optional - Status TokenReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// TokenReviewSpec is a description of the token authentication request. -type TokenReviewSpec struct { - // Token is the opaque bearer token. - // +optional - Token string `json:"token,omitempty" protobuf:"bytes,1,opt,name=token"` - // Audiences is a list of the identifiers that the resource server presented - // with the token identifies as. Audience-aware token authenticators will - // verify that the token was intended for at least one of the audiences in - // this list. If no audiences are provided, the audience will default to the - // audience of the Kubernetes apiserver. - // +optional - Audiences []string `json:"audiences,omitempty" protobuf:"bytes,2,rep,name=audiences"` -} - -// TokenReviewStatus is the result of the token authentication request. -type TokenReviewStatus struct { - // Authenticated indicates that the token was associated with a known user. - // +optional - Authenticated bool `json:"authenticated,omitempty" protobuf:"varint,1,opt,name=authenticated"` - // User is the UserInfo associated with the provided token. - // +optional - User UserInfo `json:"user,omitempty" protobuf:"bytes,2,opt,name=user"` - // Audiences are audience identifiers chosen by the authenticator that are - // compatible with both the TokenReview and token. An identifier is any - // identifier in the intersection of the TokenReviewSpec audiences and the - // token's audiences. A client of the TokenReview API that sets the - // spec.audiences field should validate that a compatible audience identifier - // is returned in the status.audiences field to ensure that the TokenReview - // server is audience aware. If a TokenReview returns an empty - // status.audience field where status.authenticated is "true", the token is - // valid against the audience of the Kubernetes API server. - // +optional - Audiences []string `json:"audiences,omitempty" protobuf:"bytes,4,rep,name=audiences"` - // Error indicates that the token couldn't be checked - // +optional - Error string `json:"error,omitempty" protobuf:"bytes,3,opt,name=error"` -} - -// UserInfo holds the information about the user needed to implement the -// user.Info interface. -type UserInfo struct { - // The name that uniquely identifies this user among all active users. - // +optional - Username string `json:"username,omitempty" protobuf:"bytes,1,opt,name=username"` - // A unique value that identifies this user across time. If this user is - // deleted and another user by the same name is added, they will have - // different UIDs. - // +optional - UID string `json:"uid,omitempty" protobuf:"bytes,2,opt,name=uid"` - // The names of groups this user is a part of. - // +optional - Groups []string `json:"groups,omitempty" protobuf:"bytes,3,rep,name=groups"` - // Any additional information provided by the authenticator. - // +optional - Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,4,rep,name=extra"` -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -type ExtraValue []string - -func (t ExtraValue) String() string { - return fmt.Sprintf("%v", []string(t)) -} diff --git a/pseudo/k8s/api/authentication/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/authentication/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 8c9acfb5b..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_TokenReview = map[string]string{ - "": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", - "spec": "Spec holds information about the request being evaluated", - "status": "Status is filled in by the server and indicates whether the request can be authenticated.", -} - -func (TokenReview) SwaggerDoc() map[string]string { - return map_TokenReview -} - -var map_TokenReviewSpec = map[string]string{ - "": "TokenReviewSpec is a description of the token authentication request.", - "token": "Token is the opaque bearer token.", - "audiences": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", -} - -func (TokenReviewSpec) SwaggerDoc() map[string]string { - return map_TokenReviewSpec -} - -var map_TokenReviewStatus = map[string]string{ - "": "TokenReviewStatus is the result of the token authentication request.", - "authenticated": "Authenticated indicates that the token was associated with a known user.", - "user": "User is the UserInfo associated with the provided token.", - "audiences": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", - "error": "Error indicates that the token couldn't be checked", -} - -func (TokenReviewStatus) SwaggerDoc() map[string]string { - return map_TokenReviewStatus -} - -var map_UserInfo = map[string]string{ - "": "UserInfo holds the information about the user needed to implement the user.Info interface.", - "username": "The name that uniquely identifies this user among all active users.", - "uid": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", - "groups": "The names of groups this user is a part of.", - "extra": "Any additional information provided by the authenticator.", -} - -func (UserInfo) SwaggerDoc() map[string]string { - return map_UserInfo -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/authentication/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/authentication/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index f7a9920ed..000000000 --- a/pseudo/k8s/api/authentication/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,152 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ExtraValue) DeepCopyInto(out *ExtraValue) { - { - in := &in - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue. -func (in ExtraValue) DeepCopy() ExtraValue { - if in == nil { - return nil - } - out := new(ExtraValue) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenReview) DeepCopyInto(out *TokenReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview. -func (in *TokenReview) DeepCopy() *TokenReview { - if in == nil { - return nil - } - out := new(TokenReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TokenReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenReviewSpec) DeepCopyInto(out *TokenReviewSpec) { - *out = *in - if in.Audiences != nil { - in, out := &in.Audiences, &out.Audiences - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewSpec. -func (in *TokenReviewSpec) DeepCopy() *TokenReviewSpec { - if in == nil { - return nil - } - out := new(TokenReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TokenReviewStatus) DeepCopyInto(out *TokenReviewStatus) { - *out = *in - in.User.DeepCopyInto(&out.User) - if in.Audiences != nil { - in, out := &in.Audiences, &out.Audiences - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewStatus. -func (in *TokenReviewStatus) DeepCopy() *TokenReviewStatus { - if in == nil { - return nil - } - out := new(TokenReviewStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserInfo) DeepCopyInto(out *UserInfo) { - *out = *in - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Extra != nil { - in, out := &in.Extra, &out.Extra - *out = make(map[string]ExtraValue, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. -func (in *UserInfo) DeepCopy() *UserInfo { - if in == nil { - return nil - } - out := new(UserInfo) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/authorization/v1/doc.go b/pseudo/k8s/api/authorization/v1/doc.go deleted file mode 100644 index 1fb17c897..000000000 --- a/pseudo/k8s/api/authorization/v1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=authorization.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1" diff --git a/pseudo/k8s/api/authorization/v1/generated.pb.go b/pseudo/k8s/api/authorization/v1/generated.pb.go deleted file mode 100644 index d24c2d046..000000000 --- a/pseudo/k8s/api/authorization/v1/generated.pb.go +++ /dev/null @@ -1,4113 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ExtraValue) Reset() { *m = ExtraValue{} } -func (*ExtraValue) ProtoMessage() {} -func (*ExtraValue) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{0} -} -func (m *ExtraValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExtraValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtraValue.Merge(m, src) -} -func (m *ExtraValue) XXX_Size() int { - return m.Size() -} -func (m *ExtraValue) XXX_DiscardUnknown() { - xxx_messageInfo_ExtraValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtraValue proto.InternalMessageInfo - -func (m *LocalSubjectAccessReview) Reset() { *m = LocalSubjectAccessReview{} } -func (*LocalSubjectAccessReview) ProtoMessage() {} -func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{1} -} -func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LocalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LocalSubjectAccessReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSubjectAccessReview.Merge(m, src) -} -func (m *LocalSubjectAccessReview) XXX_Size() int { - return m.Size() -} -func (m *LocalSubjectAccessReview) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSubjectAccessReview.DiscardUnknown(m) -} - -var xxx_messageInfo_LocalSubjectAccessReview proto.InternalMessageInfo - -func (m *NonResourceAttributes) Reset() { *m = NonResourceAttributes{} } -func (*NonResourceAttributes) ProtoMessage() {} -func (*NonResourceAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{2} -} -func (m *NonResourceAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NonResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NonResourceAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_NonResourceAttributes.Merge(m, src) -} -func (m *NonResourceAttributes) XXX_Size() int { - return m.Size() -} -func (m *NonResourceAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_NonResourceAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_NonResourceAttributes proto.InternalMessageInfo - -func (m *NonResourceRule) Reset() { *m = NonResourceRule{} } -func (*NonResourceRule) ProtoMessage() {} -func (*NonResourceRule) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{3} -} -func (m *NonResourceRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NonResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NonResourceRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_NonResourceRule.Merge(m, src) -} -func (m *NonResourceRule) XXX_Size() int { - return m.Size() -} -func (m *NonResourceRule) XXX_DiscardUnknown() { - xxx_messageInfo_NonResourceRule.DiscardUnknown(m) -} - -var xxx_messageInfo_NonResourceRule proto.InternalMessageInfo - -func (m *ResourceAttributes) Reset() { *m = ResourceAttributes{} } -func (*ResourceAttributes) ProtoMessage() {} -func (*ResourceAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{4} -} -func (m *ResourceAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceAttributes.Merge(m, src) -} -func (m *ResourceAttributes) XXX_Size() int { - return m.Size() -} -func (m *ResourceAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceAttributes proto.InternalMessageInfo - -func (m *ResourceRule) Reset() { *m = ResourceRule{} } -func (*ResourceRule) ProtoMessage() {} -func (*ResourceRule) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{5} -} -func (m *ResourceRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceRule.Merge(m, src) -} -func (m *ResourceRule) XXX_Size() int { - return m.Size() -} -func (m *ResourceRule) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceRule.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceRule proto.InternalMessageInfo - -func (m *SelfSubjectAccessReview) Reset() { *m = SelfSubjectAccessReview{} } -func (*SelfSubjectAccessReview) ProtoMessage() {} -func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{6} -} -func (m *SelfSubjectAccessReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectAccessReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectAccessReview.Merge(m, src) -} -func (m *SelfSubjectAccessReview) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectAccessReview) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectAccessReview.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectAccessReview proto.InternalMessageInfo - -func (m *SelfSubjectAccessReviewSpec) Reset() { *m = SelfSubjectAccessReviewSpec{} } -func (*SelfSubjectAccessReviewSpec) ProtoMessage() {} -func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{7} -} -func (m *SelfSubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectAccessReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectAccessReviewSpec.Merge(m, src) -} -func (m *SelfSubjectAccessReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectAccessReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectAccessReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectAccessReviewSpec proto.InternalMessageInfo - -func (m *SelfSubjectRulesReview) Reset() { *m = SelfSubjectRulesReview{} } -func (*SelfSubjectRulesReview) ProtoMessage() {} -func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{8} -} -func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectRulesReview.Merge(m, src) -} -func (m *SelfSubjectRulesReview) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectRulesReview) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectRulesReview.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectRulesReview proto.InternalMessageInfo - -func (m *SelfSubjectRulesReviewSpec) Reset() { *m = SelfSubjectRulesReviewSpec{} } -func (*SelfSubjectRulesReviewSpec) ProtoMessage() {} -func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{9} -} -func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectRulesReviewSpec.Merge(m, src) -} -func (m *SelfSubjectRulesReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectRulesReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectRulesReviewSpec proto.InternalMessageInfo - -func (m *SubjectAccessReview) Reset() { *m = SubjectAccessReview{} } -func (*SubjectAccessReview) ProtoMessage() {} -func (*SubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{10} -} -func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectAccessReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectAccessReview.Merge(m, src) -} -func (m *SubjectAccessReview) XXX_Size() int { - return m.Size() -} -func (m *SubjectAccessReview) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectAccessReview.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectAccessReview proto.InternalMessageInfo - -func (m *SubjectAccessReviewSpec) Reset() { *m = SubjectAccessReviewSpec{} } -func (*SubjectAccessReviewSpec) ProtoMessage() {} -func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{11} -} -func (m *SubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectAccessReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectAccessReviewSpec.Merge(m, src) -} -func (m *SubjectAccessReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *SubjectAccessReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectAccessReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectAccessReviewSpec proto.InternalMessageInfo - -func (m *SubjectAccessReviewStatus) Reset() { *m = SubjectAccessReviewStatus{} } -func (*SubjectAccessReviewStatus) ProtoMessage() {} -func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{12} -} -func (m *SubjectAccessReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectAccessReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectAccessReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectAccessReviewStatus.Merge(m, src) -} -func (m *SubjectAccessReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *SubjectAccessReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectAccessReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectAccessReviewStatus proto.InternalMessageInfo - -func (m *SubjectRulesReviewStatus) Reset() { *m = SubjectRulesReviewStatus{} } -func (*SubjectRulesReviewStatus) ProtoMessage() {} -func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e50da13573e369bd, []int{13} -} -func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectRulesReviewStatus.Merge(m, src) -} -func (m *SubjectRulesReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectRulesReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectRulesReviewStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authorization.v1.ExtraValue") - proto.RegisterType((*LocalSubjectAccessReview)(nil), "k8s.io.api.authorization.v1.LocalSubjectAccessReview") - proto.RegisterType((*NonResourceAttributes)(nil), "k8s.io.api.authorization.v1.NonResourceAttributes") - proto.RegisterType((*NonResourceRule)(nil), "k8s.io.api.authorization.v1.NonResourceRule") - proto.RegisterType((*ResourceAttributes)(nil), "k8s.io.api.authorization.v1.ResourceAttributes") - proto.RegisterType((*ResourceRule)(nil), "k8s.io.api.authorization.v1.ResourceRule") - proto.RegisterType((*SelfSubjectAccessReview)(nil), "k8s.io.api.authorization.v1.SelfSubjectAccessReview") - proto.RegisterType((*SelfSubjectAccessReviewSpec)(nil), "k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec") - proto.RegisterType((*SelfSubjectRulesReview)(nil), "k8s.io.api.authorization.v1.SelfSubjectRulesReview") - proto.RegisterType((*SelfSubjectRulesReviewSpec)(nil), "k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec") - proto.RegisterType((*SubjectAccessReview)(nil), "k8s.io.api.authorization.v1.SubjectAccessReview") - proto.RegisterType((*SubjectAccessReviewSpec)(nil), "k8s.io.api.authorization.v1.SubjectAccessReviewSpec") - proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authorization.v1.SubjectAccessReviewSpec.ExtraEntry") - proto.RegisterType((*SubjectAccessReviewStatus)(nil), "k8s.io.api.authorization.v1.SubjectAccessReviewStatus") - proto.RegisterType((*SubjectRulesReviewStatus)(nil), "k8s.io.api.authorization.v1.SubjectRulesReviewStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1/generated.proto", fileDescriptor_e50da13573e369bd) -} - -var fileDescriptor_e50da13573e369bd = []byte{ - // 1140 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xf7, 0xae, 0xed, 0xc4, 0x1e, 0x37, 0xdf, 0xa4, 0x13, 0xa5, 0xd9, 0xa6, 0xfa, 0xda, 0xd1, - 0x22, 0x41, 0x2a, 0xca, 0x2e, 0xb1, 0xda, 0x26, 0xaa, 0x54, 0xa1, 0x58, 0x89, 0x50, 0xa4, 0xb6, - 0x54, 0x13, 0x25, 0x12, 0x45, 0x20, 0xc6, 0xeb, 0x89, 0xbd, 0xc4, 0xde, 0x5d, 0x66, 0x66, 0x1d, - 0xc2, 0xa9, 0x12, 0xff, 0x00, 0x47, 0x0e, 0x1c, 0xf8, 0x0f, 0xb8, 0x20, 0x71, 0xe3, 0xc0, 0x01, - 0xe5, 0xd8, 0x63, 0x91, 0x90, 0x45, 0x96, 0x33, 0xff, 0x03, 0x9a, 0xd9, 0xb1, 0x77, 0x9d, 0xac, - 0xdd, 0x84, 0x03, 0xbd, 0xf4, 0xb6, 0xfb, 0x3e, 0x9f, 0xf7, 0xe6, 0xcd, 0xfb, 0x35, 0x0f, 0x6c, - 0x1f, 0x6d, 0x32, 0xcb, 0xf5, 0xed, 0xa3, 0xb0, 0x49, 0xa8, 0x47, 0x38, 0x61, 0x76, 0x9f, 0x78, - 0x2d, 0x9f, 0xda, 0x0a, 0xc0, 0x81, 0x6b, 0xe3, 0x90, 0x77, 0x7c, 0xea, 0x7e, 0x8d, 0xb9, 0xeb, - 0x7b, 0x76, 0x7f, 0xdd, 0x6e, 0x13, 0x8f, 0x50, 0xcc, 0x49, 0xcb, 0x0a, 0xa8, 0xcf, 0x7d, 0x78, - 0x2b, 0x26, 0x5b, 0x38, 0x70, 0xad, 0x31, 0xb2, 0xd5, 0x5f, 0x5f, 0x79, 0xaf, 0xed, 0xf2, 0x4e, - 0xd8, 0xb4, 0x1c, 0xbf, 0x67, 0xb7, 0xfd, 0xb6, 0x6f, 0x4b, 0x9d, 0x66, 0x78, 0x28, 0xff, 0xe4, - 0x8f, 0xfc, 0x8a, 0x6d, 0xad, 0xdc, 0x4d, 0x0e, 0xee, 0x61, 0xa7, 0xe3, 0x7a, 0x84, 0x9e, 0xd8, - 0xc1, 0x51, 0x5b, 0x08, 0x98, 0xdd, 0x23, 0x1c, 0x67, 0x78, 0xb0, 0x62, 0x4f, 0xd2, 0xa2, 0xa1, - 0xc7, 0xdd, 0x1e, 0xb9, 0xa0, 0x70, 0xff, 0x55, 0x0a, 0xcc, 0xe9, 0x90, 0x1e, 0x3e, 0xaf, 0x67, - 0x6e, 0x00, 0xb0, 0xf3, 0x15, 0xa7, 0xf8, 0x00, 0x77, 0x43, 0x02, 0x6b, 0xa0, 0xe8, 0x72, 0xd2, - 0x63, 0x86, 0xb6, 0x9a, 0x5f, 0x2b, 0x37, 0xca, 0xd1, 0xa0, 0x56, 0xdc, 0x15, 0x02, 0x14, 0xcb, - 0x1f, 0x94, 0xbe, 0xfb, 0xa1, 0x96, 0x7b, 0xfe, 0xc7, 0x6a, 0xce, 0xfc, 0x49, 0x07, 0xc6, 0x23, - 0xdf, 0xc1, 0xdd, 0xbd, 0xb0, 0xf9, 0x05, 0x71, 0xf8, 0x96, 0xe3, 0x10, 0xc6, 0x10, 0xe9, 0xbb, - 0xe4, 0x18, 0x7e, 0x0e, 0x4a, 0xe2, 0x66, 0x2d, 0xcc, 0xb1, 0xa1, 0xad, 0x6a, 0x6b, 0x95, 0xfa, - 0xfb, 0x56, 0x12, 0xd3, 0x91, 0x83, 0x56, 0x70, 0xd4, 0x16, 0x02, 0x66, 0x09, 0xb6, 0xd5, 0x5f, - 0xb7, 0x3e, 0x92, 0xb6, 0x1e, 0x13, 0x8e, 0x1b, 0xf0, 0x74, 0x50, 0xcb, 0x45, 0x83, 0x1a, 0x48, - 0x64, 0x68, 0x64, 0x15, 0x1e, 0x80, 0x02, 0x0b, 0x88, 0x63, 0xe8, 0xd2, 0xfa, 0x5d, 0x6b, 0x4a, - 0xc6, 0xac, 0x0c, 0x0f, 0xf7, 0x02, 0xe2, 0x34, 0xae, 0xa9, 0x13, 0x0a, 0xe2, 0x0f, 0x49, 0x7b, - 0xf0, 0x33, 0x30, 0xc3, 0x38, 0xe6, 0x21, 0x33, 0xf2, 0xd2, 0xf2, 0xfd, 0x2b, 0x5b, 0x96, 0xda, - 0x8d, 0xff, 0x29, 0xdb, 0x33, 0xf1, 0x3f, 0x52, 0x56, 0xcd, 0x4f, 0xc0, 0xd2, 0x13, 0xdf, 0x43, - 0x84, 0xf9, 0x21, 0x75, 0xc8, 0x16, 0xe7, 0xd4, 0x6d, 0x86, 0x9c, 0x30, 0xb8, 0x0a, 0x0a, 0x01, - 0xe6, 0x1d, 0x19, 0xae, 0x72, 0xe2, 0xda, 0x53, 0xcc, 0x3b, 0x48, 0x22, 0x82, 0xd1, 0x27, 0xb4, - 0x29, 0xaf, 0x9c, 0x62, 0x1c, 0x10, 0xda, 0x44, 0x12, 0x31, 0xbf, 0x04, 0xf3, 0x29, 0xe3, 0x28, - 0xec, 0xca, 0x8c, 0x0a, 0x68, 0x2c, 0xa3, 0x42, 0x83, 0xa1, 0x58, 0x0e, 0x1f, 0x82, 0x79, 0x2f, - 0xd1, 0xd9, 0x47, 0x8f, 0x98, 0xa1, 0x4b, 0xea, 0x62, 0x34, 0xa8, 0xa5, 0xcd, 0x09, 0x08, 0x9d, - 0xe7, 0x9a, 0xbf, 0xe8, 0x00, 0x66, 0xdc, 0xc6, 0x06, 0x65, 0x0f, 0xf7, 0x08, 0x0b, 0xb0, 0x43, - 0xd4, 0x95, 0xae, 0x2b, 0x87, 0xcb, 0x4f, 0x86, 0x00, 0x4a, 0x38, 0xaf, 0xbe, 0x1c, 0x7c, 0x0b, - 0x14, 0xdb, 0xd4, 0x0f, 0x03, 0x99, 0x98, 0x72, 0x63, 0x4e, 0x51, 0x8a, 0x1f, 0x0a, 0x21, 0x8a, - 0x31, 0x78, 0x1b, 0xcc, 0xf6, 0x09, 0x65, 0xae, 0xef, 0x19, 0x05, 0x49, 0x9b, 0x57, 0xb4, 0xd9, - 0x83, 0x58, 0x8c, 0x86, 0x38, 0xbc, 0x03, 0x4a, 0x54, 0x39, 0x6e, 0x14, 0x25, 0x77, 0x41, 0x71, - 0x4b, 0xa3, 0x08, 0x8e, 0x18, 0xf0, 0x1e, 0xa8, 0xb0, 0xb0, 0x39, 0x52, 0x98, 0x91, 0x0a, 0x8b, - 0x4a, 0xa1, 0xb2, 0x97, 0x40, 0x28, 0xcd, 0x13, 0xd7, 0x12, 0x77, 0x34, 0x66, 0xc7, 0xaf, 0x25, - 0x42, 0x80, 0x24, 0x62, 0xfe, 0xaa, 0x81, 0x6b, 0x57, 0xcb, 0xd8, 0xbb, 0xa0, 0x8c, 0x03, 0x57, - 0x5e, 0x7b, 0x98, 0xab, 0x39, 0x11, 0xd7, 0xad, 0xa7, 0xbb, 0xb1, 0x10, 0x25, 0xb8, 0x20, 0x0f, - 0x9d, 0x11, 0x25, 0x3d, 0x22, 0x0f, 0x8f, 0x64, 0x28, 0xc1, 0xe1, 0x06, 0x98, 0x1b, 0xfe, 0xc8, - 0x24, 0x19, 0x05, 0xa9, 0x70, 0x3d, 0x1a, 0xd4, 0xe6, 0x50, 0x1a, 0x40, 0xe3, 0x3c, 0xf3, 0x67, - 0x1d, 0x2c, 0xef, 0x91, 0xee, 0xe1, 0xeb, 0x99, 0x05, 0xcf, 0xc6, 0x66, 0xc1, 0xe6, 0xf4, 0x8e, - 0xcd, 0xf6, 0xf2, 0xb5, 0xcd, 0x83, 0xef, 0x75, 0x70, 0x6b, 0x8a, 0x4f, 0xf0, 0x18, 0x40, 0x7a, - 0xa1, 0xbd, 0x54, 0x1c, 0xed, 0xa9, 0xbe, 0x5c, 0xec, 0xca, 0xc6, 0x8d, 0x68, 0x50, 0xcb, 0xe8, - 0x56, 0x94, 0x71, 0x04, 0xfc, 0x46, 0x03, 0x4b, 0x5e, 0xd6, 0xa4, 0x52, 0x61, 0xae, 0x4f, 0x3d, - 0x3c, 0x73, 0xc6, 0x35, 0x6e, 0x46, 0x83, 0x5a, 0xf6, 0xf8, 0x43, 0xd9, 0x67, 0x89, 0x57, 0xe6, - 0x46, 0x2a, 0x3c, 0xa2, 0x41, 0xfe, 0xbb, 0xba, 0xfa, 0x78, 0xac, 0xae, 0x36, 0x2e, 0x5b, 0x57, - 0x29, 0x27, 0x27, 0x96, 0xd5, 0xa7, 0xe7, 0xca, 0xea, 0xde, 0x65, 0xca, 0x2a, 0x6d, 0x78, 0x7a, - 0x55, 0x3d, 0x06, 0x2b, 0x93, 0x1d, 0xba, 0xf2, 0x70, 0x36, 0x7f, 0xd4, 0xc1, 0xe2, 0x9b, 0x67, - 0xfe, 0x2a, 0x6d, 0xfd, 0x5b, 0x01, 0x2c, 0xbf, 0x69, 0xe9, 0x49, 0x8b, 0x4e, 0xc8, 0x08, 0x55, - 0xcf, 0xf8, 0x28, 0x39, 0xfb, 0x8c, 0x50, 0x24, 0x11, 0x68, 0x82, 0x99, 0x76, 0xfc, 0xba, 0xc5, - 0xef, 0x0f, 0x10, 0x01, 0x56, 0x4f, 0x9b, 0x42, 0x60, 0x0b, 0x14, 0x89, 0xd8, 0x5b, 0x8d, 0xe2, - 0x6a, 0x7e, 0xad, 0x52, 0xff, 0xe0, 0xdf, 0x54, 0x86, 0x25, 0x37, 0xdf, 0x1d, 0x8f, 0xd3, 0x93, - 0x64, 0x9d, 0x90, 0x32, 0x14, 0x1b, 0x87, 0xff, 0x07, 0xf9, 0xd0, 0x6d, 0xa9, 0xd7, 0xbe, 0xa2, - 0x28, 0xf9, 0xfd, 0xdd, 0x6d, 0x24, 0xe4, 0x2b, 0x58, 0x2d, 0xcf, 0xd2, 0x04, 0x5c, 0x00, 0xf9, - 0x23, 0x72, 0x12, 0x37, 0x14, 0x12, 0x9f, 0xf0, 0x21, 0x28, 0xf6, 0xc5, 0x5e, 0xad, 0xe2, 0xfb, - 0xce, 0x54, 0x27, 0x93, 0x35, 0x1c, 0xc5, 0x5a, 0x0f, 0xf4, 0x4d, 0xcd, 0xfc, 0x5d, 0x03, 0x37, - 0x27, 0x96, 0x9f, 0x58, 0x77, 0x70, 0xb7, 0xeb, 0x1f, 0x93, 0x96, 0x3c, 0xb6, 0x94, 0xac, 0x3b, - 0x5b, 0xb1, 0x18, 0x0d, 0x71, 0xf8, 0x36, 0x98, 0x69, 0x11, 0xcf, 0x25, 0x2d, 0xb9, 0x18, 0x95, - 0x92, 0xca, 0xdd, 0x96, 0x52, 0xa4, 0x50, 0xc1, 0xa3, 0x04, 0x33, 0xdf, 0x53, 0xab, 0xd8, 0x88, - 0x87, 0xa4, 0x14, 0x29, 0x14, 0x6e, 0x81, 0x79, 0x22, 0xdc, 0x94, 0xfe, 0xef, 0x50, 0xea, 0x0f, - 0x33, 0xba, 0xac, 0x14, 0xe6, 0x77, 0xc6, 0x61, 0x74, 0x9e, 0x6f, 0xfe, 0xad, 0x03, 0x63, 0xd2, - 0x68, 0x83, 0x87, 0xc9, 0x2e, 0x22, 0x41, 0xb9, 0x0e, 0x55, 0xea, 0xb7, 0x2f, 0xd5, 0x20, 0x42, - 0xa3, 0xb1, 0xa4, 0x1c, 0x99, 0x4b, 0x4b, 0x53, 0xab, 0x8b, 0xfc, 0x85, 0x14, 0x2c, 0x78, 0xe3, - 0x3b, 0x73, 0xbc, 0x54, 0x55, 0xea, 0x77, 0x2e, 0xdb, 0x0e, 0xf2, 0x34, 0x43, 0x9d, 0xb6, 0x70, - 0x0e, 0x60, 0xe8, 0x82, 0x7d, 0x58, 0x07, 0xc0, 0xf5, 0x1c, 0xbf, 0x17, 0x74, 0x09, 0x27, 0x32, - 0x6c, 0xa5, 0x64, 0x0e, 0xee, 0x8e, 0x10, 0x94, 0x62, 0x65, 0xc5, 0xbb, 0x70, 0xb5, 0x78, 0x37, - 0xd6, 0x4e, 0xcf, 0xaa, 0xb9, 0x17, 0x67, 0xd5, 0xdc, 0xcb, 0xb3, 0x6a, 0xee, 0x79, 0x54, 0xd5, - 0x4e, 0xa3, 0xaa, 0xf6, 0x22, 0xaa, 0x6a, 0x2f, 0xa3, 0xaa, 0xf6, 0x67, 0x54, 0xd5, 0xbe, 0xfd, - 0xab, 0x9a, 0x7b, 0xa6, 0xf7, 0xd7, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x99, 0x87, 0xb8, 0x24, - 0x47, 0x0f, 0x00, 0x00, -} - -func (m ExtraValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m) > 0 { - for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m[iNdEx]) - copy(dAtA[i:], m[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LocalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NonResourceAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NonResourceAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NonResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Verb) - copy(dAtA[i:], m.Verb) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) - i-- - dAtA[i] = 0x12 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NonResourceRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NonResourceRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NonResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NonResourceURLs) > 0 { - for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NonResourceURLs[iNdEx]) - copy(dAtA[i:], m.NonResourceURLs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ResourceAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x3a - i -= len(m.Subresource) - copy(dAtA[i:], m.Subresource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subresource))) - i-- - dAtA[i] = 0x32 - i -= len(m.Resource) - copy(dAtA[i:], m.Resource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i-- - dAtA[i] = 0x2a - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x22 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x1a - i -= len(m.Verb) - copy(dAtA[i:], m.Verb) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ResourceNames) > 0 { - for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ResourceNames[iNdEx]) - copy(dAtA[i:], m.ResourceNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SelfSubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SelfSubjectAccessReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NonResourceAttributes != nil { - { - size, err := m.NonResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ResourceAttributes != nil { - { - size, err := m.ResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SubjectAccessReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x32 - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { - v := m.Extra[string(keysForExtra[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForExtra[iNdEx]) - copy(dAtA[i:], keysForExtra[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0x1a - if m.NonResourceAttributes != nil { - { - size, err := m.NonResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ResourceAttributes != nil { - { - size, err := m.ResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SubjectAccessReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectAccessReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.Denied { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i -= len(m.EvaluationError) - copy(dAtA[i:], m.EvaluationError) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i-- - dAtA[i] = 0x1a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - i-- - if m.Allowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectRulesReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.EvaluationError) - copy(dAtA[i:], m.EvaluationError) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i-- - dAtA[i] = 0x22 - i-- - if m.Incomplete { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - if len(m.NonResourceRules) > 0 { - for iNdEx := len(m.NonResourceRules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NonResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ResourceRules) > 0 { - for iNdEx := len(m.ResourceRules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m ExtraValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LocalSubjectAccessReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NonResourceAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Verb) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NonResourceRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ResourceAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Verb) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Subresource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SelfSubjectAccessReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SelfSubjectAccessReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResourceAttributes != nil { - l = m.ResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NonResourceAttributes != nil { - l = m.NonResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SelfSubjectRulesReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SelfSubjectRulesReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectAccessReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectAccessReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResourceAttributes != nil { - l = m.ResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NonResourceAttributes != nil { - l = m.NonResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectAccessReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *SubjectRulesReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceRules) > 0 { - for _, e := range m.ResourceRules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceRules) > 0 { - for _, e := range m.NonResourceRules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *LocalSubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LocalSubjectAccessReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NonResourceAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NonResourceAttributes{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, - `}`, - }, "") - return s -} -func (this *NonResourceRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NonResourceRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceAttributes{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectAccessReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectAccessReviewSpec", "SelfSubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectAccessReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectAccessReviewSpec{`, - `ResourceAttributes:` + strings.Replace(this.ResourceAttributes.String(), "ResourceAttributes", "ResourceAttributes", 1) + `,`, - `NonResourceAttributes:` + strings.Replace(this.NonResourceAttributes.String(), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectRulesReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectRulesReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectRulesReviewSpec", "SelfSubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectRulesReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectRulesReviewSpec{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectAccessReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReviewSpec) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]ExtraValue{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&SubjectAccessReviewSpec{`, - `ResourceAttributes:` + strings.Replace(this.ResourceAttributes.String(), "ResourceAttributes", "ResourceAttributes", 1) + `,`, - `NonResourceAttributes:` + strings.Replace(this.NonResourceAttributes.String(), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Extra:` + mapStringForExtra + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectAccessReviewStatus{`, - `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `Denied:` + fmt.Sprintf("%v", this.Denied) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectRulesReviewStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForResourceRules := "[]ResourceRule{" - for _, f := range this.ResourceRules { - repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourceRule", "ResourceRule", 1), `&`, ``, 1) + "," - } - repeatedStringForResourceRules += "}" - repeatedStringForNonResourceRules := "[]NonResourceRule{" - for _, f := range this.NonResourceRules { - repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourceRule", "NonResourceRule", 1), `&`, ``, 1) + "," - } - repeatedStringForNonResourceRules += "}" - s := strings.Join([]string{`&SubjectRulesReviewStatus{`, - `ResourceRules:` + repeatedStringForResourceRules + `,`, - `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, - `Incomplete:` + fmt.Sprintf("%v", this.Incomplete) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ExtraValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LocalSubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LocalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NonResourceAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NonResourceAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NonResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verb = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NonResourceRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NonResourceRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NonResourceRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verb = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subresource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subresource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectAccessReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceAttributes == nil { - m.ResourceAttributes = &ResourceAttributes{} - } - if err := m.ResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NonResourceAttributes == nil { - m.NonResourceAttributes = &NonResourceAttributes{} - } - if err := m.NonResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectRulesReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceAttributes == nil { - m.ResourceAttributes = &ResourceAttributes{} - } - if err := m.ResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NonResourceAttributes == nil { - m.NonResourceAttributes = &NonResourceAttributes{} - } - if err := m.NonResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Extra == nil { - m.Extra = make(map[string]ExtraValue) - } - var mapkey string - mapvalue := &ExtraValue{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ExtraValue{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Extra[mapkey] = *mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Allowed = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Denied", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Denied = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectRulesReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectRulesReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRules = append(m.ResourceRules, ResourceRule{}) - if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceRules = append(m.NonResourceRules, NonResourceRule{}) - if err := m.NonResourceRules[len(m.NonResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Incomplete", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Incomplete = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/authorization/v1/generated.proto b/pseudo/k8s/api/authorization/v1/generated.proto deleted file mode 100644 index 90d5482c5..000000000 --- a/pseudo/k8s/api/authorization/v1/generated.proto +++ /dev/null @@ -1,272 +0,0 @@ -/* -Copyright 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.authorization.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -message ExtraValue { - // items, if empty, will result in an empty slice - - repeated string items = 1; -} - -// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. -// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions -// checking. -message LocalSubjectAccessReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace - // you made the request against. If empty, it is defaulted. - optional SubjectAccessReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - optional SubjectAccessReviewStatus status = 3; -} - -// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface -message NonResourceAttributes { - // Path is the URL path of the request - // +optional - optional string path = 1; - - // Verb is the standard HTTP verb - // +optional - optional string verb = 2; -} - -// NonResourceRule holds information that describes a rule for the non-resource -message NonResourceRule { - // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - repeated string verbs = 1; - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, - // final step in the path. "*" means all. - // +optional - repeated string nonResourceURLs = 2; -} - -// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface -message ResourceAttributes { - // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - // "" (empty) is defaulted for LocalSubjectAccessReviews - // "" (empty) is empty for cluster-scoped resources - // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - // +optional - optional string namespace = 1; - - // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - // +optional - optional string verb = 2; - - // Group is the API Group of the Resource. "*" means all. - // +optional - optional string group = 3; - - // Version is the API Version of the Resource. "*" means all. - // +optional - optional string version = 4; - - // Resource is one of the existing resource types. "*" means all. - // +optional - optional string resource = 5; - - // Subresource is one of the existing resource types. "" means none. - // +optional - optional string subresource = 6; - - // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - // +optional - optional string name = 7; -} - -// ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, -// may contain duplicates, and possibly be incomplete. -message ResourceRule { - // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. - repeated string verbs = 1; - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "*" means all. - // +optional - repeated string apiGroups = 2; - - // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - // "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - repeated string resources = 3; - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - // +optional - repeated string resourceNames = 4; -} - -// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a -// spec.namespace means "in all namespaces". Self is a special case, because users should always be able -// to check whether they can perform an action -message SelfSubjectAccessReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated. user and groups must be empty - optional SelfSubjectAccessReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - optional SubjectAccessReviewStatus status = 3; -} - -// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -message SelfSubjectAccessReviewSpec { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - optional ResourceAttributes resourceAttributes = 1; - - // NonResourceAttributes describes information for a non-resource access request - // +optional - optional NonResourceAttributes nonResourceAttributes = 2; -} - -// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. -// The returned list of actions may be incomplete depending on the server's authorization mode, -// and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, -// or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to -// drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. -// SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. -message SelfSubjectRulesReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated. - optional SelfSubjectRulesReviewSpec spec = 2; - - // Status is filled in by the server and indicates the set of actions a user can perform. - // +optional - optional SubjectRulesReviewStatus status = 3; -} - -message SelfSubjectRulesReviewSpec { - // Namespace to evaluate rules for. Required. - optional string namespace = 1; -} - -// SubjectAccessReview checks whether or not a user or group can perform an action. -message SubjectAccessReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated - optional SubjectAccessReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - optional SubjectAccessReviewStatus status = 3; -} - -// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -message SubjectAccessReviewSpec { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - optional ResourceAttributes resourceAttributes = 1; - - // NonResourceAttributes describes information for a non-resource access request - // +optional - optional NonResourceAttributes nonResourceAttributes = 2; - - // User is the user you're testing for. - // If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups - // +optional - optional string user = 3; - - // Groups is the groups you're testing for. - // +optional - repeated string groups = 4; - - // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer - // it needs a reflection here. - // +optional - map extra = 5; - - // UID information about the requesting user. - // +optional - optional string uid = 6; -} - -// SubjectAccessReviewStatus -message SubjectAccessReviewStatus { - // Allowed is required. True if the action would be allowed, false otherwise. - optional bool allowed = 1; - - // Denied is optional. True if the action would be denied, otherwise - // false. If both allowed is false and denied is false, then the - // authorizer has no opinion on whether to authorize the action. Denied - // may not be true if Allowed is true. - // +optional - optional bool denied = 4; - - // Reason is optional. It indicates why a request was allowed or denied. - // +optional - optional string reason = 2; - - // EvaluationError is an indication that some error occurred during the authorization check. - // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. - // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - // +optional - optional string evaluationError = 3; -} - -// SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on -// the set of authorizers the server is configured with and any errors experienced during evaluation. -// Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, -// even if that list is incomplete. -message SubjectRulesReviewStatus { - // ResourceRules is the list of actions the subject is allowed to perform on resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - repeated ResourceRule resourceRules = 1; - - // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - repeated NonResourceRule nonResourceRules = 2; - - // Incomplete is true when the rules returned by this call are incomplete. This is most commonly - // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - optional bool incomplete = 3; - - // EvaluationError can appear in combination with Rules. It indicates an error occurred during - // rule evaluation, such as an authorizer that doesn't support rule evaluation, and that - // ResourceRules and/or NonResourceRules may be incomplete. - // +optional - optional string evaluationError = 4; -} - diff --git a/pseudo/k8s/api/authorization/v1/register.go b/pseudo/k8s/api/authorization/v1/register.go deleted file mode 100644 index d41cefbfc..000000000 --- a/pseudo/k8s/api/authorization/v1/register.go +++ /dev/null @@ -1,55 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "authorization.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &SelfSubjectRulesReview{}, - &SelfSubjectAccessReview{}, - &SubjectAccessReview{}, - &LocalSubjectAccessReview{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/authorization/v1/types.go b/pseudo/k8s/api/authorization/v1/types.go deleted file mode 100644 index 7db2dccc3..000000000 --- a/pseudo/k8s/api/authorization/v1/types.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -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 v1 - -import ( - "fmt" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SubjectAccessReview checks whether or not a user or group can perform an action. -type SubjectAccessReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated - Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a -// spec.namespace means "in all namespaces". Self is a special case, because users should always be able -// to check whether they can perform an action -type SelfSubjectAccessReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated. user and groups must be empty - Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. -// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions -// checking. -type LocalSubjectAccessReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace - // you made the request against. If empty, it is defaulted. - Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface -type ResourceAttributes struct { - // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - // "" (empty) is defaulted for LocalSubjectAccessReviews - // "" (empty) is empty for cluster-scoped resources - // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` - // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - // +optional - Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` - // Group is the API Group of the Resource. "*" means all. - // +optional - Group string `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` - // Version is the API Version of the Resource. "*" means all. - // +optional - Version string `json:"version,omitempty" protobuf:"bytes,4,opt,name=version"` - // Resource is one of the existing resource types. "*" means all. - // +optional - Resource string `json:"resource,omitempty" protobuf:"bytes,5,opt,name=resource"` - // Subresource is one of the existing resource types. "" means none. - // +optional - Subresource string `json:"subresource,omitempty" protobuf:"bytes,6,opt,name=subresource"` - // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,7,opt,name=name"` -} - -// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface -type NonResourceAttributes struct { - // Path is the URL path of the request - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` - // Verb is the standard HTTP verb - // +optional - Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` -} - -// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -type SubjectAccessReviewSpec struct { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` - // NonResourceAttributes describes information for a non-resource access request - // +optional - NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` - - // User is the user you're testing for. - // If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups - // +optional - User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"` - // Groups is the groups you're testing for. - // +optional - Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"` - // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer - // it needs a reflection here. - // +optional - Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,5,rep,name=extra"` - // UID information about the requesting user. - // +optional - UID string `json:"uid,omitempty" protobuf:"bytes,6,opt,name=uid"` -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -type ExtraValue []string - -func (t ExtraValue) String() string { - return fmt.Sprintf("%v", []string(t)) -} - -// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -type SelfSubjectAccessReviewSpec struct { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` - // NonResourceAttributes describes information for a non-resource access request - // +optional - NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` -} - -// SubjectAccessReviewStatus -type SubjectAccessReviewStatus struct { - // Allowed is required. True if the action would be allowed, false otherwise. - Allowed bool `json:"allowed" protobuf:"varint,1,opt,name=allowed"` - // Denied is optional. True if the action would be denied, otherwise - // false. If both allowed is false and denied is false, then the - // authorizer has no opinion on whether to authorize the action. Denied - // may not be true if Allowed is true. - // +optional - Denied bool `json:"denied,omitempty" protobuf:"varint,4,opt,name=denied"` - // Reason is optional. It indicates why a request was allowed or denied. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` - // EvaluationError is an indication that some error occurred during the authorization check. - // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. - // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - // +optional - EvaluationError string `json:"evaluationError,omitempty" protobuf:"bytes,3,opt,name=evaluationError"` -} - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. -// The returned list of actions may be incomplete depending on the server's authorization mode, -// and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, -// or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to -// drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. -// SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. -type SelfSubjectRulesReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated. - Spec SelfSubjectRulesReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates the set of actions a user can perform. - // +optional - Status SubjectRulesReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -type SelfSubjectRulesReviewSpec struct { - // Namespace to evaluate rules for. Required. - Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` -} - -// SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on -// the set of authorizers the server is configured with and any errors experienced during evaluation. -// Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, -// even if that list is incomplete. -type SubjectRulesReviewStatus struct { - // ResourceRules is the list of actions the subject is allowed to perform on resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - ResourceRules []ResourceRule `json:"resourceRules" protobuf:"bytes,1,rep,name=resourceRules"` - // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - NonResourceRules []NonResourceRule `json:"nonResourceRules" protobuf:"bytes,2,rep,name=nonResourceRules"` - // Incomplete is true when the rules returned by this call are incomplete. This is most commonly - // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - Incomplete bool `json:"incomplete" protobuf:"bytes,3,rep,name=incomplete"` - // EvaluationError can appear in combination with Rules. It indicates an error occurred during - // rule evaluation, such as an authorizer that doesn't support rule evaluation, and that - // ResourceRules and/or NonResourceRules may be incomplete. - // +optional - EvaluationError string `json:"evaluationError,omitempty" protobuf:"bytes,4,opt,name=evaluationError"` -} - -// ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, -// may contain duplicates, and possibly be incomplete. -type ResourceRule struct { - // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "*" means all. - // +optional - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,2,rep,name=apiGroups"` - // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - // "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - // +optional - ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,4,rep,name=resourceNames"` -} - -// NonResourceRule holds information that describes a rule for the non-resource -type NonResourceRule struct { - // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, - // final step in the path. "*" means all. - // +optional - NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,2,rep,name=nonResourceURLs"` -} diff --git a/pseudo/k8s/api/authorization/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/authorization/v1/types_swagger_doc_generated.go deleted file mode 100644 index 8445f7116..000000000 --- a/pseudo/k8s/api/authorization/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,173 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_LocalSubjectAccessReview = map[string]string{ - "": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "spec": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", - "status": "Status is filled in by the server and indicates whether the request is allowed or not", -} - -func (LocalSubjectAccessReview) SwaggerDoc() map[string]string { - return map_LocalSubjectAccessReview -} - -var map_NonResourceAttributes = map[string]string{ - "": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", - "path": "Path is the URL path of the request", - "verb": "Verb is the standard HTTP verb", -} - -func (NonResourceAttributes) SwaggerDoc() map[string]string { - return map_NonResourceAttributes -} - -var map_NonResourceRule = map[string]string{ - "": "NonResourceRule holds information that describes a rule for the non-resource", - "verbs": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "nonResourceURLs": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", -} - -func (NonResourceRule) SwaggerDoc() map[string]string { - return map_NonResourceRule -} - -var map_ResourceAttributes = map[string]string{ - "": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "namespace": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", - "verb": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "group": "Group is the API Group of the Resource. \"*\" means all.", - "version": "Version is the API Version of the Resource. \"*\" means all.", - "resource": "Resource is one of the existing resource types. \"*\" means all.", - "subresource": "Subresource is one of the existing resource types. \"\" means none.", - "name": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", -} - -func (ResourceAttributes) SwaggerDoc() map[string]string { - return map_ResourceAttributes -} - -var map_ResourceRule = map[string]string{ - "": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "verbs": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "apiGroups": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", - "resources": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", - "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", -} - -func (ResourceRule) SwaggerDoc() map[string]string { - return map_ResourceRule -} - -var map_SelfSubjectAccessReview = map[string]string{ - "": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", - "spec": "Spec holds information about the request being evaluated. user and groups must be empty", - "status": "Status is filled in by the server and indicates whether the request is allowed or not", -} - -func (SelfSubjectAccessReview) SwaggerDoc() map[string]string { - return map_SelfSubjectAccessReview -} - -var map_SelfSubjectAccessReviewSpec = map[string]string{ - "": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "resourceAttributes": "ResourceAuthorizationAttributes describes information for a resource access request", - "nonResourceAttributes": "NonResourceAttributes describes information for a non-resource access request", -} - -func (SelfSubjectAccessReviewSpec) SwaggerDoc() map[string]string { - return map_SelfSubjectAccessReviewSpec -} - -var map_SelfSubjectRulesReview = map[string]string{ - "": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", - "spec": "Spec holds information about the request being evaluated.", - "status": "Status is filled in by the server and indicates the set of actions a user can perform.", -} - -func (SelfSubjectRulesReview) SwaggerDoc() map[string]string { - return map_SelfSubjectRulesReview -} - -var map_SelfSubjectRulesReviewSpec = map[string]string{ - "namespace": "Namespace to evaluate rules for. Required.", -} - -func (SelfSubjectRulesReviewSpec) SwaggerDoc() map[string]string { - return map_SelfSubjectRulesReviewSpec -} - -var map_SubjectAccessReview = map[string]string{ - "": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "spec": "Spec holds information about the request being evaluated", - "status": "Status is filled in by the server and indicates whether the request is allowed or not", -} - -func (SubjectAccessReview) SwaggerDoc() map[string]string { - return map_SubjectAccessReview -} - -var map_SubjectAccessReviewSpec = map[string]string{ - "": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "resourceAttributes": "ResourceAuthorizationAttributes describes information for a resource access request", - "nonResourceAttributes": "NonResourceAttributes describes information for a non-resource access request", - "user": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", - "groups": "Groups is the groups you're testing for.", - "extra": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "uid": "UID information about the requesting user.", -} - -func (SubjectAccessReviewSpec) SwaggerDoc() map[string]string { - return map_SubjectAccessReviewSpec -} - -var map_SubjectAccessReviewStatus = map[string]string{ - "": "SubjectAccessReviewStatus", - "allowed": "Allowed is required. True if the action would be allowed, false otherwise.", - "denied": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - "reason": "Reason is optional. It indicates why a request was allowed or denied.", - "evaluationError": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", -} - -func (SubjectAccessReviewStatus) SwaggerDoc() map[string]string { - return map_SubjectAccessReviewStatus -} - -var map_SubjectRulesReviewStatus = map[string]string{ - "": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", - "resourceRules": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "nonResourceRules": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "incomplete": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", - "evaluationError": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", -} - -func (SubjectRulesReviewStatus) SwaggerDoc() map[string]string { - return map_SubjectRulesReviewStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/authorization/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/authorization/v1/zz_generated.deepcopy.go deleted file mode 100644 index b155ff4bc..000000000 --- a/pseudo/k8s/api/authorization/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,385 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ExtraValue) DeepCopyInto(out *ExtraValue) { - { - in := &in - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue. -func (in ExtraValue) DeepCopy() ExtraValue { - if in == nil { - return nil - } - out := new(ExtraValue) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview. -func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview { - if in == nil { - return nil - } - out := new(LocalSubjectAccessReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes. -func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes { - if in == nil { - return nil - } - out := new(NonResourceAttributes) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.NonResourceURLs != nil { - in, out := &in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule. -func (in *NonResourceRule) DeepCopy() *NonResourceRule { - if in == nil { - return nil - } - out := new(NonResourceRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes. -func (in *ResourceAttributes) DeepCopy() *ResourceAttributes { - if in == nil { - return nil - } - out := new(ResourceAttributes) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceRule) DeepCopyInto(out *ResourceRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule. -func (in *ResourceRule) DeepCopy() *ResourceRule { - if in == nil { - return nil - } - out := new(ResourceRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview. -func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { - if in == nil { - return nil - } - out := new(SelfSubjectAccessReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { - *out = *in - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = **in - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. -func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { - if in == nil { - return nil - } - out := new(SelfSubjectAccessReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview. -func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview { - if in == nil { - return nil - } - out := new(SelfSubjectRulesReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec. -func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec { - if in == nil { - return nil - } - out := new(SelfSubjectRulesReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview. -func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { - if in == nil { - return nil - } - out := new(SubjectAccessReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubjectAccessReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { - *out = *in - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = **in - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = **in - } - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Extra != nil { - in, out := &in.Extra, &out.Extra - *out = make(map[string]ExtraValue, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. -func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { - if in == nil { - return nil - } - out := new(SubjectAccessReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. -func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { - if in == nil { - return nil - } - out := new(SubjectAccessReviewStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) { - *out = *in - if in.ResourceRules != nil { - in, out := &in.ResourceRules, &out.ResourceRules - *out = make([]ResourceRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NonResourceRules != nil { - in, out := &in.NonResourceRules, &out.NonResourceRules - *out = make([]NonResourceRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus. -func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus { - if in == nil { - return nil - } - out := new(SubjectRulesReviewStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/authorization/v1beta1/doc.go b/pseudo/k8s/api/authorization/v1beta1/doc.go deleted file mode 100644 index d4f7262bd..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=authorization.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1beta1" diff --git a/pseudo/k8s/api/authorization/v1beta1/generated.pb.go b/pseudo/k8s/api/authorization/v1beta1/generated.pb.go deleted file mode 100644 index ac9878588..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/generated.pb.go +++ /dev/null @@ -1,4113 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ExtraValue) Reset() { *m = ExtraValue{} } -func (*ExtraValue) ProtoMessage() {} -func (*ExtraValue) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{0} -} -func (m *ExtraValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExtraValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtraValue.Merge(m, src) -} -func (m *ExtraValue) XXX_Size() int { - return m.Size() -} -func (m *ExtraValue) XXX_DiscardUnknown() { - xxx_messageInfo_ExtraValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtraValue proto.InternalMessageInfo - -func (m *LocalSubjectAccessReview) Reset() { *m = LocalSubjectAccessReview{} } -func (*LocalSubjectAccessReview) ProtoMessage() {} -func (*LocalSubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{1} -} -func (m *LocalSubjectAccessReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LocalSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LocalSubjectAccessReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalSubjectAccessReview.Merge(m, src) -} -func (m *LocalSubjectAccessReview) XXX_Size() int { - return m.Size() -} -func (m *LocalSubjectAccessReview) XXX_DiscardUnknown() { - xxx_messageInfo_LocalSubjectAccessReview.DiscardUnknown(m) -} - -var xxx_messageInfo_LocalSubjectAccessReview proto.InternalMessageInfo - -func (m *NonResourceAttributes) Reset() { *m = NonResourceAttributes{} } -func (*NonResourceAttributes) ProtoMessage() {} -func (*NonResourceAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{2} -} -func (m *NonResourceAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NonResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NonResourceAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_NonResourceAttributes.Merge(m, src) -} -func (m *NonResourceAttributes) XXX_Size() int { - return m.Size() -} -func (m *NonResourceAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_NonResourceAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_NonResourceAttributes proto.InternalMessageInfo - -func (m *NonResourceRule) Reset() { *m = NonResourceRule{} } -func (*NonResourceRule) ProtoMessage() {} -func (*NonResourceRule) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{3} -} -func (m *NonResourceRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NonResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NonResourceRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_NonResourceRule.Merge(m, src) -} -func (m *NonResourceRule) XXX_Size() int { - return m.Size() -} -func (m *NonResourceRule) XXX_DiscardUnknown() { - xxx_messageInfo_NonResourceRule.DiscardUnknown(m) -} - -var xxx_messageInfo_NonResourceRule proto.InternalMessageInfo - -func (m *ResourceAttributes) Reset() { *m = ResourceAttributes{} } -func (*ResourceAttributes) ProtoMessage() {} -func (*ResourceAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{4} -} -func (m *ResourceAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceAttributes.Merge(m, src) -} -func (m *ResourceAttributes) XXX_Size() int { - return m.Size() -} -func (m *ResourceAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceAttributes proto.InternalMessageInfo - -func (m *ResourceRule) Reset() { *m = ResourceRule{} } -func (*ResourceRule) ProtoMessage() {} -func (*ResourceRule) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{5} -} -func (m *ResourceRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceRule.Merge(m, src) -} -func (m *ResourceRule) XXX_Size() int { - return m.Size() -} -func (m *ResourceRule) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceRule.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceRule proto.InternalMessageInfo - -func (m *SelfSubjectAccessReview) Reset() { *m = SelfSubjectAccessReview{} } -func (*SelfSubjectAccessReview) ProtoMessage() {} -func (*SelfSubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{6} -} -func (m *SelfSubjectAccessReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectAccessReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectAccessReview.Merge(m, src) -} -func (m *SelfSubjectAccessReview) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectAccessReview) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectAccessReview.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectAccessReview proto.InternalMessageInfo - -func (m *SelfSubjectAccessReviewSpec) Reset() { *m = SelfSubjectAccessReviewSpec{} } -func (*SelfSubjectAccessReviewSpec) ProtoMessage() {} -func (*SelfSubjectAccessReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{7} -} -func (m *SelfSubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectAccessReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectAccessReviewSpec.Merge(m, src) -} -func (m *SelfSubjectAccessReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectAccessReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectAccessReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectAccessReviewSpec proto.InternalMessageInfo - -func (m *SelfSubjectRulesReview) Reset() { *m = SelfSubjectRulesReview{} } -func (*SelfSubjectRulesReview) ProtoMessage() {} -func (*SelfSubjectRulesReview) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{8} -} -func (m *SelfSubjectRulesReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectRulesReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectRulesReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectRulesReview.Merge(m, src) -} -func (m *SelfSubjectRulesReview) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectRulesReview) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectRulesReview.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectRulesReview proto.InternalMessageInfo - -func (m *SelfSubjectRulesReviewSpec) Reset() { *m = SelfSubjectRulesReviewSpec{} } -func (*SelfSubjectRulesReviewSpec) ProtoMessage() {} -func (*SelfSubjectRulesReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{9} -} -func (m *SelfSubjectRulesReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SelfSubjectRulesReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SelfSubjectRulesReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_SelfSubjectRulesReviewSpec.Merge(m, src) -} -func (m *SelfSubjectRulesReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *SelfSubjectRulesReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_SelfSubjectRulesReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_SelfSubjectRulesReviewSpec proto.InternalMessageInfo - -func (m *SubjectAccessReview) Reset() { *m = SubjectAccessReview{} } -func (*SubjectAccessReview) ProtoMessage() {} -func (*SubjectAccessReview) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{10} -} -func (m *SubjectAccessReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectAccessReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectAccessReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectAccessReview.Merge(m, src) -} -func (m *SubjectAccessReview) XXX_Size() int { - return m.Size() -} -func (m *SubjectAccessReview) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectAccessReview.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectAccessReview proto.InternalMessageInfo - -func (m *SubjectAccessReviewSpec) Reset() { *m = SubjectAccessReviewSpec{} } -func (*SubjectAccessReviewSpec) ProtoMessage() {} -func (*SubjectAccessReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{11} -} -func (m *SubjectAccessReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectAccessReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectAccessReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectAccessReviewSpec.Merge(m, src) -} -func (m *SubjectAccessReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *SubjectAccessReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectAccessReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectAccessReviewSpec proto.InternalMessageInfo - -func (m *SubjectAccessReviewStatus) Reset() { *m = SubjectAccessReviewStatus{} } -func (*SubjectAccessReviewStatus) ProtoMessage() {} -func (*SubjectAccessReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{12} -} -func (m *SubjectAccessReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectAccessReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectAccessReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectAccessReviewStatus.Merge(m, src) -} -func (m *SubjectAccessReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *SubjectAccessReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectAccessReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectAccessReviewStatus proto.InternalMessageInfo - -func (m *SubjectRulesReviewStatus) Reset() { *m = SubjectRulesReviewStatus{} } -func (*SubjectRulesReviewStatus) ProtoMessage() {} -func (*SubjectRulesReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_43130d8376f09103, []int{13} -} -func (m *SubjectRulesReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SubjectRulesReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SubjectRulesReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubjectRulesReviewStatus.Merge(m, src) -} -func (m *SubjectRulesReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *SubjectRulesReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SubjectRulesReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_SubjectRulesReviewStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.authorization.v1beta1.ExtraValue") - proto.RegisterType((*LocalSubjectAccessReview)(nil), "k8s.io.api.authorization.v1beta1.LocalSubjectAccessReview") - proto.RegisterType((*NonResourceAttributes)(nil), "k8s.io.api.authorization.v1beta1.NonResourceAttributes") - proto.RegisterType((*NonResourceRule)(nil), "k8s.io.api.authorization.v1beta1.NonResourceRule") - proto.RegisterType((*ResourceAttributes)(nil), "k8s.io.api.authorization.v1beta1.ResourceAttributes") - proto.RegisterType((*ResourceRule)(nil), "k8s.io.api.authorization.v1beta1.ResourceRule") - proto.RegisterType((*SelfSubjectAccessReview)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectAccessReview") - proto.RegisterType((*SelfSubjectAccessReviewSpec)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectAccessReviewSpec") - proto.RegisterType((*SelfSubjectRulesReview)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectRulesReview") - proto.RegisterType((*SelfSubjectRulesReviewSpec)(nil), "k8s.io.api.authorization.v1beta1.SelfSubjectRulesReviewSpec") - proto.RegisterType((*SubjectAccessReview)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReview") - proto.RegisterType((*SubjectAccessReviewSpec)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReviewSpec") - proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReviewSpec.ExtraEntry") - proto.RegisterType((*SubjectAccessReviewStatus)(nil), "k8s.io.api.authorization.v1beta1.SubjectAccessReviewStatus") - proto.RegisterType((*SubjectRulesReviewStatus)(nil), "k8s.io.api.authorization.v1beta1.SubjectRulesReviewStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1beta1/generated.proto", fileDescriptor_43130d8376f09103) -} - -var fileDescriptor_43130d8376f09103 = []byte{ - // 1141 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xfa, 0x4f, 0x62, 0x8f, 0x1b, 0x92, 0x4e, 0x94, 0x66, 0x1b, 0x84, 0x6d, 0x19, 0x09, - 0x05, 0xd1, 0xee, 0x92, 0xa8, 0x90, 0x12, 0xe8, 0x21, 0x56, 0x22, 0x14, 0xa9, 0x2d, 0xd5, 0x44, - 0xc9, 0x81, 0x4a, 0xc0, 0xec, 0x7a, 0x62, 0x2f, 0xb6, 0x77, 0x97, 0x99, 0x59, 0x87, 0x20, 0x0e, - 0x3d, 0x72, 0xe4, 0xc8, 0x91, 0x13, 0xdf, 0x81, 0x0b, 0x12, 0x9c, 0x72, 0xec, 0x31, 0x48, 0xc8, - 0x22, 0xcb, 0x87, 0xe0, 0x8a, 0x66, 0x76, 0xec, 0x5d, 0x27, 0x9b, 0x38, 0xce, 0x81, 0x5e, 0x7a, - 0xdb, 0x79, 0xbf, 0xdf, 0x7b, 0xf3, 0xde, 0x9b, 0xf7, 0xde, 0x3e, 0xb0, 0xdb, 0x79, 0xc8, 0x0c, - 0xc7, 0x33, 0x3b, 0x81, 0x45, 0xa8, 0x4b, 0x38, 0x61, 0x66, 0x9f, 0xb8, 0x4d, 0x8f, 0x9a, 0x0a, - 0xc0, 0xbe, 0x63, 0xe2, 0x80, 0xb7, 0x3d, 0xea, 0x7c, 0x87, 0xb9, 0xe3, 0xb9, 0x66, 0x7f, 0xcd, - 0x22, 0x1c, 0xaf, 0x99, 0x2d, 0xe2, 0x12, 0x8a, 0x39, 0x69, 0x1a, 0x3e, 0xf5, 0xb8, 0x07, 0x6b, - 0x91, 0x86, 0x81, 0x7d, 0xc7, 0x18, 0xd3, 0x30, 0x94, 0xc6, 0xca, 0xfd, 0x96, 0xc3, 0xdb, 0x81, - 0x65, 0xd8, 0x5e, 0xcf, 0x6c, 0x79, 0x2d, 0xcf, 0x94, 0x8a, 0x56, 0x70, 0x28, 0x4f, 0xf2, 0x20, - 0xbf, 0x22, 0x83, 0x2b, 0x0f, 0x62, 0x17, 0x7a, 0xd8, 0x6e, 0x3b, 0x2e, 0xa1, 0xc7, 0xa6, 0xdf, - 0x69, 0x09, 0x01, 0x33, 0x7b, 0x84, 0x63, 0xb3, 0x7f, 0xc1, 0x8d, 0x15, 0xf3, 0x32, 0x2d, 0x1a, - 0xb8, 0xdc, 0xe9, 0x91, 0x0b, 0x0a, 0x1f, 0x4e, 0x52, 0x60, 0x76, 0x9b, 0xf4, 0xf0, 0x79, 0xbd, - 0xfa, 0x06, 0x00, 0x3b, 0xdf, 0x72, 0x8a, 0x0f, 0x70, 0x37, 0x20, 0xb0, 0x0a, 0x0a, 0x0e, 0x27, - 0x3d, 0xa6, 0x6b, 0xb5, 0xdc, 0x6a, 0xa9, 0x51, 0x0a, 0x07, 0xd5, 0xc2, 0xae, 0x10, 0xa0, 0x48, - 0xbe, 0x59, 0xfc, 0xe9, 0xe7, 0x6a, 0xe6, 0xc5, 0x5f, 0xb5, 0x4c, 0xfd, 0xb7, 0x2c, 0xd0, 0x1f, - 0x7b, 0x36, 0xee, 0xee, 0x05, 0xd6, 0xd7, 0xc4, 0xe6, 0x5b, 0xb6, 0x4d, 0x18, 0x43, 0xa4, 0xef, - 0x90, 0x23, 0xf8, 0x15, 0x28, 0x8a, 0xc8, 0x9a, 0x98, 0x63, 0x5d, 0xab, 0x69, 0xab, 0xe5, 0xf5, - 0xf7, 0x8d, 0x38, 0xb1, 0x23, 0x07, 0x0d, 0xbf, 0xd3, 0x12, 0x02, 0x66, 0x08, 0xb6, 0xd1, 0x5f, - 0x33, 0x3e, 0x93, 0xb6, 0x9e, 0x10, 0x8e, 0x1b, 0xf0, 0x64, 0x50, 0xcd, 0x84, 0x83, 0x2a, 0x88, - 0x65, 0x68, 0x64, 0x15, 0x3e, 0x07, 0x79, 0xe6, 0x13, 0x5b, 0xcf, 0x4a, 0xeb, 0x1f, 0x19, 0x93, - 0x9e, 0xcd, 0x48, 0x71, 0x73, 0xcf, 0x27, 0x76, 0xe3, 0x96, 0xba, 0x26, 0x2f, 0x4e, 0x48, 0x1a, - 0x85, 0x36, 0x98, 0x61, 0x1c, 0xf3, 0x80, 0xe9, 0x39, 0x69, 0xfe, 0xe3, 0x9b, 0x99, 0x97, 0x26, - 0x1a, 0x6f, 0xa8, 0x0b, 0x66, 0xa2, 0x33, 0x52, 0xa6, 0xeb, 0xcf, 0xc1, 0xd2, 0x53, 0xcf, 0x45, - 0x84, 0x79, 0x01, 0xb5, 0xc9, 0x16, 0xe7, 0xd4, 0xb1, 0x02, 0x4e, 0x18, 0xac, 0x81, 0xbc, 0x8f, - 0x79, 0x5b, 0x26, 0xae, 0x14, 0xfb, 0xf7, 0x0c, 0xf3, 0x36, 0x92, 0x88, 0x60, 0xf4, 0x09, 0xb5, - 0x64, 0xf0, 0x09, 0xc6, 0x01, 0xa1, 0x16, 0x92, 0x48, 0xfd, 0x1b, 0x30, 0x9f, 0x30, 0x8e, 0x82, - 0xae, 0x7c, 0x5b, 0x01, 0x8d, 0xbd, 0xad, 0xd0, 0x60, 0x28, 0x92, 0xc3, 0x47, 0x60, 0xde, 0x8d, - 0x75, 0xf6, 0xd1, 0x63, 0xa6, 0x67, 0x25, 0x75, 0x31, 0x1c, 0x54, 0x93, 0xe6, 0x04, 0x84, 0xce, - 0x73, 0x45, 0x41, 0xc0, 0x94, 0x68, 0x4c, 0x50, 0x72, 0x71, 0x8f, 0x30, 0x1f, 0xdb, 0x44, 0x85, - 0x74, 0x5b, 0x39, 0x5c, 0x7a, 0x3a, 0x04, 0x50, 0xcc, 0x99, 0x1c, 0x1c, 0x7c, 0x1b, 0x14, 0x5a, - 0xd4, 0x0b, 0x7c, 0xf9, 0x3a, 0xa5, 0xc6, 0x9c, 0xa2, 0x14, 0x3e, 0x15, 0x42, 0x14, 0x61, 0xf0, - 0x5d, 0x30, 0xdb, 0x27, 0x94, 0x39, 0x9e, 0xab, 0xe7, 0x25, 0x6d, 0x5e, 0xd1, 0x66, 0x0f, 0x22, - 0x31, 0x1a, 0xe2, 0xf0, 0x1e, 0x28, 0x52, 0xe5, 0xb8, 0x5e, 0x90, 0xdc, 0x05, 0xc5, 0x2d, 0x8e, - 0x32, 0x38, 0x62, 0xc0, 0x0f, 0x40, 0x99, 0x05, 0xd6, 0x48, 0x61, 0x46, 0x2a, 0x2c, 0x2a, 0x85, - 0xf2, 0x5e, 0x0c, 0xa1, 0x24, 0x4f, 0x84, 0x25, 0x62, 0xd4, 0x67, 0xc7, 0xc3, 0x12, 0x29, 0x40, - 0x12, 0xa9, 0xff, 0xa1, 0x81, 0x5b, 0xd3, 0xbd, 0xd8, 0x7b, 0xa0, 0x84, 0x7d, 0x47, 0x86, 0x3d, - 0x7c, 0xab, 0x39, 0x91, 0xd7, 0xad, 0x67, 0xbb, 0x91, 0x10, 0xc5, 0xb8, 0x20, 0x0f, 0x9d, 0x11, - 0x75, 0x3d, 0x22, 0x0f, 0xaf, 0x64, 0x28, 0xc6, 0xe1, 0x06, 0x98, 0x1b, 0x1e, 0xe4, 0x23, 0xe9, - 0x79, 0xa9, 0x70, 0x3b, 0x1c, 0x54, 0xe7, 0x50, 0x12, 0x40, 0xe3, 0xbc, 0xfa, 0xef, 0x59, 0xb0, - 0xbc, 0x47, 0xba, 0x87, 0xaf, 0x66, 0x2a, 0x7c, 0x39, 0x36, 0x15, 0x1e, 0x5d, 0xa3, 0x6d, 0xd3, - 0x5d, 0x7d, 0xb5, 0x93, 0xe1, 0x97, 0x2c, 0x78, 0xf3, 0x0a, 0xc7, 0xe0, 0xf7, 0x00, 0xd2, 0x0b, - 0x8d, 0xa6, 0x32, 0xfa, 0x60, 0xb2, 0x43, 0x17, 0x9b, 0xb4, 0x71, 0x27, 0x1c, 0x54, 0x53, 0x9a, - 0x17, 0xa5, 0xdc, 0x03, 0x7f, 0xd0, 0xc0, 0x92, 0x9b, 0x36, 0xb8, 0x54, 0xd6, 0x37, 0x26, 0x7b, - 0x90, 0x3a, 0xf7, 0x1a, 0x77, 0xc3, 0x41, 0x35, 0x7d, 0x24, 0xa2, 0xf4, 0x0b, 0xc5, 0xc8, 0xb9, - 0x93, 0x48, 0x94, 0x68, 0x9a, 0xff, 0xaf, 0xd6, 0xbe, 0x18, 0xab, 0xb5, 0x4f, 0xa6, 0xaa, 0xb5, - 0x84, 0xa7, 0x97, 0x96, 0x9a, 0x75, 0xae, 0xd4, 0x36, 0xaf, 0x5d, 0x6a, 0x49, 0xeb, 0x57, 0x57, - 0xda, 0x13, 0xb0, 0x72, 0xb9, 0x57, 0x53, 0x8f, 0xee, 0xfa, 0xaf, 0x59, 0xb0, 0xf8, 0x7a, 0x1d, - 0xb8, 0x59, 0xd3, 0x9f, 0xe6, 0xc1, 0xf2, 0xeb, 0x86, 0xbf, 0xba, 0xe1, 0xc5, 0x4f, 0x34, 0x60, - 0x84, 0xaa, 0x1f, 0xff, 0xe8, 0xad, 0xf6, 0x19, 0xa1, 0x48, 0x22, 0xb0, 0x36, 0xdc, 0x0d, 0xa2, - 0x1f, 0x16, 0x10, 0x99, 0x56, 0xff, 0x42, 0xb5, 0x18, 0x38, 0xa0, 0x40, 0xc4, 0xc6, 0xab, 0x17, - 0x6a, 0xb9, 0xd5, 0xf2, 0xfa, 0xf6, 0x8d, 0x6b, 0xc5, 0x90, 0x8b, 0xf3, 0x8e, 0xcb, 0xe9, 0x71, - 0xbc, 0x83, 0x48, 0x19, 0x8a, 0x6e, 0x80, 0x6f, 0x81, 0x5c, 0xe0, 0x34, 0xd5, 0x8a, 0x50, 0x56, - 0x94, 0xdc, 0xfe, 0xee, 0x36, 0x12, 0xf2, 0x95, 0x43, 0xb5, 0x7b, 0x4b, 0x13, 0x70, 0x01, 0xe4, - 0x3a, 0xe4, 0x38, 0xea, 0x33, 0x24, 0x3e, 0x61, 0x03, 0x14, 0xfa, 0x62, 0x2d, 0x57, 0x79, 0xbe, - 0x37, 0xd9, 0xd3, 0x78, 0x95, 0x47, 0x91, 0xea, 0x66, 0xf6, 0xa1, 0x56, 0xff, 0x53, 0x03, 0x77, - 0x2f, 0x2d, 0x48, 0xb1, 0x28, 0xe1, 0x6e, 0xd7, 0x3b, 0x22, 0x4d, 0x79, 0x77, 0x31, 0x5e, 0x94, - 0xb6, 0x22, 0x31, 0x1a, 0xe2, 0xf0, 0x1d, 0x30, 0xd3, 0x24, 0xae, 0x43, 0x9a, 0x72, 0xa5, 0x2a, - 0xc6, 0xb5, 0xbc, 0x2d, 0xa5, 0x48, 0xa1, 0x82, 0x47, 0x09, 0x66, 0x9e, 0xab, 0x96, 0xb8, 0x11, - 0x0f, 0x49, 0x29, 0x52, 0x28, 0xdc, 0x02, 0xf3, 0x44, 0xb8, 0x29, 0x83, 0xd8, 0xa1, 0xd4, 0x1b, - 0xbe, 0xec, 0xb2, 0x52, 0x98, 0xdf, 0x19, 0x87, 0xd1, 0x79, 0x7e, 0xfd, 0xdf, 0x2c, 0xd0, 0x2f, - 0x1b, 0x7b, 0xb0, 0x13, 0x6f, 0x31, 0x12, 0x94, 0x8b, 0x54, 0x79, 0xdd, 0xb8, 0x7e, 0xcb, 0x08, - 0xb5, 0xc6, 0x92, 0xf2, 0x66, 0x2e, 0x29, 0x4d, 0x6c, 0x3e, 0xf2, 0x08, 0x8f, 0xc0, 0x82, 0x3b, - 0xbe, 0x72, 0x47, 0x3b, 0x59, 0x79, 0x7d, 0x6d, 0xaa, 0x06, 0x91, 0x57, 0xea, 0xea, 0xca, 0x85, - 0x73, 0x00, 0x43, 0x17, 0x2e, 0x81, 0xeb, 0x00, 0x38, 0xae, 0xed, 0xf5, 0xfc, 0x2e, 0xe1, 0x44, - 0x26, 0xb0, 0x18, 0x4f, 0xcb, 0xdd, 0x11, 0x82, 0x12, 0xac, 0xb4, 0xcc, 0xe7, 0xa7, 0xcb, 0x7c, - 0xe3, 0xfe, 0xc9, 0x59, 0x25, 0xf3, 0xf2, 0xac, 0x92, 0x39, 0x3d, 0xab, 0x64, 0x5e, 0x84, 0x15, - 0xed, 0x24, 0xac, 0x68, 0x2f, 0xc3, 0x8a, 0x76, 0x1a, 0x56, 0xb4, 0xbf, 0xc3, 0x8a, 0xf6, 0xe3, - 0x3f, 0x95, 0xcc, 0xe7, 0xb3, 0x2a, 0xc2, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xc9, 0xa5, - 0x34, 0xa4, 0x0f, 0x00, 0x00, -} - -func (m ExtraValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m) > 0 { - for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m[iNdEx]) - copy(dAtA[i:], m[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *LocalSubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LocalSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LocalSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NonResourceAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NonResourceAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NonResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Verb) - copy(dAtA[i:], m.Verb) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) - i-- - dAtA[i] = 0x12 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NonResourceRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NonResourceRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NonResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NonResourceURLs) > 0 { - for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NonResourceURLs[iNdEx]) - copy(dAtA[i:], m.NonResourceURLs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ResourceAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x3a - i -= len(m.Subresource) - copy(dAtA[i:], m.Subresource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subresource))) - i-- - dAtA[i] = 0x32 - i -= len(m.Resource) - copy(dAtA[i:], m.Resource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i-- - dAtA[i] = 0x2a - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x22 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x1a - i -= len(m.Verb) - copy(dAtA[i:], m.Verb) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verb))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ResourceNames) > 0 { - for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ResourceNames[iNdEx]) - copy(dAtA[i:], m.ResourceNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SelfSubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SelfSubjectAccessReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NonResourceAttributes != nil { - { - size, err := m.NonResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ResourceAttributes != nil { - { - size, err := m.ResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SelfSubjectRulesReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectRulesReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectRulesReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SelfSubjectRulesReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SelfSubjectRulesReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SelfSubjectRulesReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SubjectAccessReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectAccessReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SubjectAccessReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectAccessReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x32 - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { - v := m.Extra[string(keysForExtra[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForExtra[iNdEx]) - copy(dAtA[i:], keysForExtra[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0x1a - if m.NonResourceAttributes != nil { - { - size, err := m.NonResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ResourceAttributes != nil { - { - size, err := m.ResourceAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SubjectAccessReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectAccessReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectAccessReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.Denied { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i -= len(m.EvaluationError) - copy(dAtA[i:], m.EvaluationError) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i-- - dAtA[i] = 0x1a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - i-- - if m.Allowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *SubjectRulesReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SubjectRulesReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SubjectRulesReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.EvaluationError) - copy(dAtA[i:], m.EvaluationError) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EvaluationError))) - i-- - dAtA[i] = 0x22 - i-- - if m.Incomplete { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - if len(m.NonResourceRules) > 0 { - for iNdEx := len(m.NonResourceRules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NonResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ResourceRules) > 0 { - for iNdEx := len(m.ResourceRules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ResourceRules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m ExtraValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LocalSubjectAccessReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NonResourceAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Verb) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NonResourceRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ResourceAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Verb) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Subresource) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SelfSubjectAccessReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SelfSubjectAccessReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResourceAttributes != nil { - l = m.ResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NonResourceAttributes != nil { - l = m.NonResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SelfSubjectRulesReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SelfSubjectRulesReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectAccessReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectAccessReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ResourceAttributes != nil { - l = m.ResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NonResourceAttributes != nil { - l = m.NonResourceAttributes.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SubjectAccessReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *SubjectRulesReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ResourceRules) > 0 { - for _, e := range m.ResourceRules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceRules) > 0 { - for _, e := range m.NonResourceRules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - l = len(m.EvaluationError) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *LocalSubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LocalSubjectAccessReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NonResourceAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NonResourceAttributes{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, - `}`, - }, "") - return s -} -func (this *NonResourceRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NonResourceRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceAttributes) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceAttributes{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Verb:` + fmt.Sprintf("%v", this.Verb) + `,`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `Subresource:` + fmt.Sprintf("%v", this.Subresource) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectAccessReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectAccessReviewSpec", "SelfSubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectAccessReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectAccessReviewSpec{`, - `ResourceAttributes:` + strings.Replace(this.ResourceAttributes.String(), "ResourceAttributes", "ResourceAttributes", 1) + `,`, - `NonResourceAttributes:` + strings.Replace(this.NonResourceAttributes.String(), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectRulesReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectRulesReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SelfSubjectRulesReviewSpec", "SelfSubjectRulesReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectRulesReviewStatus", "SubjectRulesReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SelfSubjectRulesReviewSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SelfSubjectRulesReviewSpec{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectAccessReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "SubjectAccessReviewSpec", "SubjectAccessReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SubjectAccessReviewStatus", "SubjectAccessReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReviewSpec) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]ExtraValue{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&SubjectAccessReviewSpec{`, - `ResourceAttributes:` + strings.Replace(this.ResourceAttributes.String(), "ResourceAttributes", "ResourceAttributes", 1) + `,`, - `NonResourceAttributes:` + strings.Replace(this.NonResourceAttributes.String(), "NonResourceAttributes", "NonResourceAttributes", 1) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Extra:` + mapStringForExtra + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectAccessReviewStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SubjectAccessReviewStatus{`, - `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `Denied:` + fmt.Sprintf("%v", this.Denied) + `,`, - `}`, - }, "") - return s -} -func (this *SubjectRulesReviewStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForResourceRules := "[]ResourceRule{" - for _, f := range this.ResourceRules { - repeatedStringForResourceRules += strings.Replace(strings.Replace(f.String(), "ResourceRule", "ResourceRule", 1), `&`, ``, 1) + "," - } - repeatedStringForResourceRules += "}" - repeatedStringForNonResourceRules := "[]NonResourceRule{" - for _, f := range this.NonResourceRules { - repeatedStringForNonResourceRules += strings.Replace(strings.Replace(f.String(), "NonResourceRule", "NonResourceRule", 1), `&`, ``, 1) + "," - } - repeatedStringForNonResourceRules += "}" - s := strings.Join([]string{`&SubjectRulesReviewStatus{`, - `ResourceRules:` + repeatedStringForResourceRules + `,`, - `NonResourceRules:` + repeatedStringForNonResourceRules + `,`, - `Incomplete:` + fmt.Sprintf("%v", this.Incomplete) + `,`, - `EvaluationError:` + fmt.Sprintf("%v", this.EvaluationError) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ExtraValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LocalSubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LocalSubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LocalSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NonResourceAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NonResourceAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NonResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verb = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NonResourceRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NonResourceRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NonResourceRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceAttributes) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verb", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verb = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subresource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subresource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectAccessReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceAttributes == nil { - m.ResourceAttributes = &ResourceAttributes{} - } - if err := m.ResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NonResourceAttributes == nil { - m.NonResourceAttributes = &NonResourceAttributes{} - } - if err := m.NonResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectRulesReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectRulesReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectRulesReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SelfSubjectRulesReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SelfSubjectRulesReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceAttributes == nil { - m.ResourceAttributes = &ResourceAttributes{} - } - if err := m.ResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NonResourceAttributes == nil { - m.NonResourceAttributes = &NonResourceAttributes{} - } - if err := m.NonResourceAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Extra == nil { - m.Extra = make(map[string]ExtraValue) - } - var mapkey string - mapvalue := &ExtraValue{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ExtraValue{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Extra[mapkey] = *mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectAccessReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectAccessReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectAccessReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Allowed = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Denied", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Denied = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubjectRulesReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubjectRulesReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubjectRulesReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceRules = append(m.ResourceRules, ResourceRule{}) - if err := m.ResourceRules[len(m.ResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceRules = append(m.NonResourceRules, NonResourceRule{}) - if err := m.NonResourceRules[len(m.NonResourceRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Incomplete", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Incomplete = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvaluationError", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EvaluationError = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/authorization/v1beta1/generated.proto b/pseudo/k8s/api/authorization/v1beta1/generated.proto deleted file mode 100644 index 9add3e035..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/generated.proto +++ /dev/null @@ -1,272 +0,0 @@ -/* -Copyright 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.authorization.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -message ExtraValue { - // items, if empty, will result in an empty slice - - repeated string items = 1; -} - -// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. -// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions -// checking. -message LocalSubjectAccessReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace - // you made the request against. If empty, it is defaulted. - optional SubjectAccessReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - optional SubjectAccessReviewStatus status = 3; -} - -// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface -message NonResourceAttributes { - // Path is the URL path of the request - // +optional - optional string path = 1; - - // Verb is the standard HTTP verb - // +optional - optional string verb = 2; -} - -// NonResourceRule holds information that describes a rule for the non-resource -message NonResourceRule { - // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - repeated string verbs = 1; - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, - // final step in the path. "*" means all. - // +optional - repeated string nonResourceURLs = 2; -} - -// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface -message ResourceAttributes { - // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - // "" (empty) is defaulted for LocalSubjectAccessReviews - // "" (empty) is empty for cluster-scoped resources - // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - // +optional - optional string namespace = 1; - - // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - // +optional - optional string verb = 2; - - // Group is the API Group of the Resource. "*" means all. - // +optional - optional string group = 3; - - // Version is the API Version of the Resource. "*" means all. - // +optional - optional string version = 4; - - // Resource is one of the existing resource types. "*" means all. - // +optional - optional string resource = 5; - - // Subresource is one of the existing resource types. "" means none. - // +optional - optional string subresource = 6; - - // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - // +optional - optional string name = 7; -} - -// ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, -// may contain duplicates, and possibly be incomplete. -message ResourceRule { - // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. - repeated string verbs = 1; - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "*" means all. - // +optional - repeated string apiGroups = 2; - - // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - // "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - repeated string resources = 3; - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - // +optional - repeated string resourceNames = 4; -} - -// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a -// spec.namespace means "in all namespaces". Self is a special case, because users should always be able -// to check whether they can perform an action -message SelfSubjectAccessReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated. user and groups must be empty - optional SelfSubjectAccessReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - optional SubjectAccessReviewStatus status = 3; -} - -// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -message SelfSubjectAccessReviewSpec { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - optional ResourceAttributes resourceAttributes = 1; - - // NonResourceAttributes describes information for a non-resource access request - // +optional - optional NonResourceAttributes nonResourceAttributes = 2; -} - -// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. -// The returned list of actions may be incomplete depending on the server's authorization mode, -// and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, -// or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to -// drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. -// SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. -message SelfSubjectRulesReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated. - optional SelfSubjectRulesReviewSpec spec = 2; - - // Status is filled in by the server and indicates the set of actions a user can perform. - // +optional - optional SubjectRulesReviewStatus status = 3; -} - -message SelfSubjectRulesReviewSpec { - // Namespace to evaluate rules for. Required. - optional string namespace = 1; -} - -// SubjectAccessReview checks whether or not a user or group can perform an action. -message SubjectAccessReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the request being evaluated - optional SubjectAccessReviewSpec spec = 2; - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - optional SubjectAccessReviewStatus status = 3; -} - -// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -message SubjectAccessReviewSpec { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - optional ResourceAttributes resourceAttributes = 1; - - // NonResourceAttributes describes information for a non-resource access request - // +optional - optional NonResourceAttributes nonResourceAttributes = 2; - - // User is the user you're testing for. - // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups - // +optional - optional string user = 3; - - // Groups is the groups you're testing for. - // +optional - repeated string group = 4; - - // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer - // it needs a reflection here. - // +optional - map extra = 5; - - // UID information about the requesting user. - // +optional - optional string uid = 6; -} - -// SubjectAccessReviewStatus -message SubjectAccessReviewStatus { - // Allowed is required. True if the action would be allowed, false otherwise. - optional bool allowed = 1; - - // Denied is optional. True if the action would be denied, otherwise - // false. If both allowed is false and denied is false, then the - // authorizer has no opinion on whether to authorize the action. Denied - // may not be true if Allowed is true. - // +optional - optional bool denied = 4; - - // Reason is optional. It indicates why a request was allowed or denied. - // +optional - optional string reason = 2; - - // EvaluationError is an indication that some error occurred during the authorization check. - // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. - // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - // +optional - optional string evaluationError = 3; -} - -// SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on -// the set of authorizers the server is configured with and any errors experienced during evaluation. -// Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, -// even if that list is incomplete. -message SubjectRulesReviewStatus { - // ResourceRules is the list of actions the subject is allowed to perform on resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - repeated ResourceRule resourceRules = 1; - - // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - repeated NonResourceRule nonResourceRules = 2; - - // Incomplete is true when the rules returned by this call are incomplete. This is most commonly - // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - optional bool incomplete = 3; - - // EvaluationError can appear in combination with Rules. It indicates an error occurred during - // rule evaluation, such as an authorizer that doesn't support rule evaluation, and that - // ResourceRules and/or NonResourceRules may be incomplete. - // +optional - optional string evaluationError = 4; -} - diff --git a/pseudo/k8s/api/authorization/v1beta1/register.go b/pseudo/k8s/api/authorization/v1beta1/register.go deleted file mode 100644 index 6c0f3c50a..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/register.go +++ /dev/null @@ -1,55 +0,0 @@ -/* -Copyright 2015 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "authorization.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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &SelfSubjectRulesReview{}, - &SelfSubjectAccessReview{}, - &SubjectAccessReview{}, - &LocalSubjectAccessReview{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/authorization/v1beta1/types.go b/pseudo/k8s/api/authorization/v1beta1/types.go deleted file mode 100644 index 862d81cbc..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/types.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -Copyright 2015 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 ( - "fmt" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SubjectAccessReview checks whether or not a user or group can perform an action. -type SubjectAccessReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated - Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a -// spec.namespace means "in all namespaces". Self is a special case, because users should always be able -// to check whether they can perform an action -type SelfSubjectAccessReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated. user and groups must be empty - Spec SelfSubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +genclient -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. -// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions -// checking. -type LocalSubjectAccessReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace - // you made the request against. If empty, it is defaulted. - Spec SubjectAccessReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates whether the request is allowed or not - // +optional - Status SubjectAccessReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface -type ResourceAttributes struct { - // Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces - // "" (empty) is defaulted for LocalSubjectAccessReviews - // "" (empty) is empty for cluster-scoped resources - // "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` - // Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - // +optional - Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` - // Group is the API Group of the Resource. "*" means all. - // +optional - Group string `json:"group,omitempty" protobuf:"bytes,3,opt,name=group"` - // Version is the API Version of the Resource. "*" means all. - // +optional - Version string `json:"version,omitempty" protobuf:"bytes,4,opt,name=version"` - // Resource is one of the existing resource types. "*" means all. - // +optional - Resource string `json:"resource,omitempty" protobuf:"bytes,5,opt,name=resource"` - // Subresource is one of the existing resource types. "" means none. - // +optional - Subresource string `json:"subresource,omitempty" protobuf:"bytes,6,opt,name=subresource"` - // Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,7,opt,name=name"` -} - -// NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface -type NonResourceAttributes struct { - // Path is the URL path of the request - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` - // Verb is the standard HTTP verb - // +optional - Verb string `json:"verb,omitempty" protobuf:"bytes,2,opt,name=verb"` -} - -// SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -type SubjectAccessReviewSpec struct { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` - // NonResourceAttributes describes information for a non-resource access request - // +optional - NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` - - // User is the user you're testing for. - // If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups - // +optional - User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"` - // Groups is the groups you're testing for. - // +optional - Groups []string `json:"group,omitempty" protobuf:"bytes,4,rep,name=group"` - // Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer - // it needs a reflection here. - // +optional - Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,5,rep,name=extra"` - // UID information about the requesting user. - // +optional - UID string `json:"uid,omitempty" protobuf:"bytes,6,opt,name=uid"` -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -type ExtraValue []string - -func (t ExtraValue) String() string { - return fmt.Sprintf("%v", []string(t)) -} - -// SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes -// and NonResourceAuthorizationAttributes must be set -type SelfSubjectAccessReviewSpec struct { - // ResourceAuthorizationAttributes describes information for a resource access request - // +optional - ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"` - // NonResourceAttributes describes information for a non-resource access request - // +optional - NonResourceAttributes *NonResourceAttributes `json:"nonResourceAttributes,omitempty" protobuf:"bytes,2,opt,name=nonResourceAttributes"` -} - -// SubjectAccessReviewStatus -type SubjectAccessReviewStatus struct { - // Allowed is required. True if the action would be allowed, false otherwise. - Allowed bool `json:"allowed" protobuf:"varint,1,opt,name=allowed"` - // Denied is optional. True if the action would be denied, otherwise - // false. If both allowed is false and denied is false, then the - // authorizer has no opinion on whether to authorize the action. Denied - // may not be true if Allowed is true. - // +optional - Denied bool `json:"denied,omitempty" protobuf:"varint,4,opt,name=denied"` - // Reason is optional. It indicates why a request was allowed or denied. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` - // EvaluationError is an indication that some error occurred during the authorization check. - // It is entirely possible to get an error and be able to continue determine authorization status in spite of it. - // For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - // +optional - EvaluationError string `json:"evaluationError,omitempty" protobuf:"bytes,3,opt,name=evaluationError"` -} - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. -// The returned list of actions may be incomplete depending on the server's authorization mode, -// and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, -// or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to -// drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. -// SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. -type SelfSubjectRulesReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the request being evaluated. - Spec SelfSubjectRulesReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the server and indicates the set of actions a user can perform. - // +optional - Status SubjectRulesReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -type SelfSubjectRulesReviewSpec struct { - // Namespace to evaluate rules for. Required. - Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` -} - -// SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on -// the set of authorizers the server is configured with and any errors experienced during evaluation. -// Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, -// even if that list is incomplete. -type SubjectRulesReviewStatus struct { - // ResourceRules is the list of actions the subject is allowed to perform on resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - ResourceRules []ResourceRule `json:"resourceRules" protobuf:"bytes,1,rep,name=resourceRules"` - // NonResourceRules is the list of actions the subject is allowed to perform on non-resources. - // The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - NonResourceRules []NonResourceRule `json:"nonResourceRules" protobuf:"bytes,2,rep,name=nonResourceRules"` - // Incomplete is true when the rules returned by this call are incomplete. This is most commonly - // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - Incomplete bool `json:"incomplete" protobuf:"bytes,3,rep,name=incomplete"` - // EvaluationError can appear in combination with Rules. It indicates an error occurred during - // rule evaluation, such as an authorizer that doesn't support rule evaluation, and that - // ResourceRules and/or NonResourceRules may be incomplete. - // +optional - EvaluationError string `json:"evaluationError,omitempty" protobuf:"bytes,4,opt,name=evaluationError"` -} - -// ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, -// may contain duplicates, and possibly be incomplete. -type ResourceRule struct { - // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. "*" means all. - // +optional - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,2,rep,name=apiGroups"` - // Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - // "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - // +optional - ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,4,rep,name=resourceNames"` -} - -// NonResourceRule holds information that describes a rule for the non-resource -type NonResourceRule struct { - // Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, - // final step in the path. "*" means all. - // +optional - NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,2,rep,name=nonResourceURLs"` -} diff --git a/pseudo/k8s/api/authorization/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/authorization/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 3ae6e7206..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,173 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_LocalSubjectAccessReview = map[string]string{ - "": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", - "spec": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.", - "status": "Status is filled in by the server and indicates whether the request is allowed or not", -} - -func (LocalSubjectAccessReview) SwaggerDoc() map[string]string { - return map_LocalSubjectAccessReview -} - -var map_NonResourceAttributes = map[string]string{ - "": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", - "path": "Path is the URL path of the request", - "verb": "Verb is the standard HTTP verb", -} - -func (NonResourceAttributes) SwaggerDoc() map[string]string { - return map_NonResourceAttributes -} - -var map_NonResourceRule = map[string]string{ - "": "NonResourceRule holds information that describes a rule for the non-resource", - "verbs": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", - "nonResourceURLs": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", -} - -func (NonResourceRule) SwaggerDoc() map[string]string { - return map_NonResourceRule -} - -var map_ResourceAttributes = map[string]string{ - "": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", - "namespace": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", - "verb": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "group": "Group is the API Group of the Resource. \"*\" means all.", - "version": "Version is the API Version of the Resource. \"*\" means all.", - "resource": "Resource is one of the existing resource types. \"*\" means all.", - "subresource": "Subresource is one of the existing resource types. \"\" means none.", - "name": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", -} - -func (ResourceAttributes) SwaggerDoc() map[string]string { - return map_ResourceAttributes -} - -var map_ResourceRule = map[string]string{ - "": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "verbs": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", - "apiGroups": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", - "resources": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", - "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", -} - -func (ResourceRule) SwaggerDoc() map[string]string { - return map_ResourceRule -} - -var map_SelfSubjectAccessReview = map[string]string{ - "": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", - "spec": "Spec holds information about the request being evaluated. user and groups must be empty", - "status": "Status is filled in by the server and indicates whether the request is allowed or not", -} - -func (SelfSubjectAccessReview) SwaggerDoc() map[string]string { - return map_SelfSubjectAccessReview -} - -var map_SelfSubjectAccessReviewSpec = map[string]string{ - "": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "resourceAttributes": "ResourceAuthorizationAttributes describes information for a resource access request", - "nonResourceAttributes": "NonResourceAttributes describes information for a non-resource access request", -} - -func (SelfSubjectAccessReviewSpec) SwaggerDoc() map[string]string { - return map_SelfSubjectAccessReviewSpec -} - -var map_SelfSubjectRulesReview = map[string]string{ - "": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", - "spec": "Spec holds information about the request being evaluated.", - "status": "Status is filled in by the server and indicates the set of actions a user can perform.", -} - -func (SelfSubjectRulesReview) SwaggerDoc() map[string]string { - return map_SelfSubjectRulesReview -} - -var map_SelfSubjectRulesReviewSpec = map[string]string{ - "namespace": "Namespace to evaluate rules for. Required.", -} - -func (SelfSubjectRulesReviewSpec) SwaggerDoc() map[string]string { - return map_SelfSubjectRulesReviewSpec -} - -var map_SubjectAccessReview = map[string]string{ - "": "SubjectAccessReview checks whether or not a user or group can perform an action.", - "spec": "Spec holds information about the request being evaluated", - "status": "Status is filled in by the server and indicates whether the request is allowed or not", -} - -func (SubjectAccessReview) SwaggerDoc() map[string]string { - return map_SubjectAccessReview -} - -var map_SubjectAccessReviewSpec = map[string]string{ - "": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", - "resourceAttributes": "ResourceAuthorizationAttributes describes information for a resource access request", - "nonResourceAttributes": "NonResourceAttributes describes information for a non-resource access request", - "user": "User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups", - "group": "Groups is the groups you're testing for.", - "extra": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - "uid": "UID information about the requesting user.", -} - -func (SubjectAccessReviewSpec) SwaggerDoc() map[string]string { - return map_SubjectAccessReviewSpec -} - -var map_SubjectAccessReviewStatus = map[string]string{ - "": "SubjectAccessReviewStatus", - "allowed": "Allowed is required. True if the action would be allowed, false otherwise.", - "denied": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - "reason": "Reason is optional. It indicates why a request was allowed or denied.", - "evaluationError": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", -} - -func (SubjectAccessReviewStatus) SwaggerDoc() map[string]string { - return map_SubjectAccessReviewStatus -} - -var map_SubjectRulesReviewStatus = map[string]string{ - "": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", - "resourceRules": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "nonResourceRules": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", - "incomplete": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", - "evaluationError": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", -} - -func (SubjectRulesReviewStatus) SwaggerDoc() map[string]string { - return map_SubjectRulesReviewStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/authorization/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/authorization/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index a838e04be..000000000 --- a/pseudo/k8s/api/authorization/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,385 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ExtraValue) DeepCopyInto(out *ExtraValue) { - { - in := &in - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue. -func (in ExtraValue) DeepCopy() ExtraValue { - if in == nil { - return nil - } - out := new(ExtraValue) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview. -func (in *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview { - if in == nil { - return nil - } - out := new(LocalSubjectAccessReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LocalSubjectAccessReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes. -func (in *NonResourceAttributes) DeepCopy() *NonResourceAttributes { - if in == nil { - return nil - } - out := new(NonResourceAttributes) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NonResourceRule) DeepCopyInto(out *NonResourceRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.NonResourceURLs != nil { - in, out := &in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceRule. -func (in *NonResourceRule) DeepCopy() *NonResourceRule { - if in == nil { - return nil - } - out := new(NonResourceRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes. -func (in *ResourceAttributes) DeepCopy() *ResourceAttributes { - if in == nil { - return nil - } - out := new(ResourceAttributes) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceRule) DeepCopyInto(out *ResourceRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule. -func (in *ResourceRule) DeepCopy() *ResourceRule { - if in == nil { - return nil - } - out := new(ResourceRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview. -func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { - if in == nil { - return nil - } - out := new(SelfSubjectAccessReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { - *out = *in - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = **in - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec. -func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { - if in == nil { - return nil - } - out := new(SelfSubjectAccessReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectRulesReview) DeepCopyInto(out *SelfSubjectRulesReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReview. -func (in *SelfSubjectRulesReview) DeepCopy() *SelfSubjectRulesReview { - if in == nil { - return nil - } - out := new(SelfSubjectRulesReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectRulesReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectRulesReviewSpec) DeepCopyInto(out *SelfSubjectRulesReviewSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectRulesReviewSpec. -func (in *SelfSubjectRulesReviewSpec) DeepCopy() *SelfSubjectRulesReviewSpec { - if in == nil { - return nil - } - out := new(SelfSubjectRulesReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview. -func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { - if in == nil { - return nil - } - out := new(SubjectAccessReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubjectAccessReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { - *out = *in - if in.ResourceAttributes != nil { - in, out := &in.ResourceAttributes, &out.ResourceAttributes - *out = new(ResourceAttributes) - **out = **in - } - if in.NonResourceAttributes != nil { - in, out := &in.NonResourceAttributes, &out.NonResourceAttributes - *out = new(NonResourceAttributes) - **out = **in - } - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Extra != nil { - in, out := &in.Extra, &out.Extra - *out = make(map[string]ExtraValue, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec. -func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { - if in == nil { - return nil - } - out := new(SubjectAccessReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus. -func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { - if in == nil { - return nil - } - out := new(SubjectAccessReviewStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubjectRulesReviewStatus) DeepCopyInto(out *SubjectRulesReviewStatus) { - *out = *in - if in.ResourceRules != nil { - in, out := &in.ResourceRules, &out.ResourceRules - *out = make([]ResourceRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NonResourceRules != nil { - in, out := &in.NonResourceRules, &out.NonResourceRules - *out = make([]NonResourceRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubjectRulesReviewStatus. -func (in *SubjectRulesReviewStatus) DeepCopy() *SubjectRulesReviewStatus { - if in == nil { - return nil - } - out := new(SubjectRulesReviewStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/autoscaling/v1/doc.go b/pseudo/k8s/api/autoscaling/v1/doc.go deleted file mode 100644 index ade8dc9a0..000000000 --- a/pseudo/k8s/api/autoscaling/v1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1" diff --git a/pseudo/k8s/api/autoscaling/v1/generated.pb.go b/pseudo/k8s/api/autoscaling/v1/generated.pb.go deleted file mode 100644 index 8cbfde1c7..000000000 --- a/pseudo/k8s/api/autoscaling/v1/generated.pb.go +++ /dev/null @@ -1,5596 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } -func (*CrossVersionObjectReference) ProtoMessage() {} -func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{0} -} -func (m *CrossVersionObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CrossVersionObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CrossVersionObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_CrossVersionObjectReference.Merge(m, src) -} -func (m *CrossVersionObjectReference) XXX_Size() int { - return m.Size() -} -func (m *CrossVersionObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_CrossVersionObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_CrossVersionObjectReference proto.InternalMessageInfo - -func (m *ExternalMetricSource) Reset() { *m = ExternalMetricSource{} } -func (*ExternalMetricSource) ProtoMessage() {} -func (*ExternalMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{1} -} -func (m *ExternalMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExternalMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalMetricSource.Merge(m, src) -} -func (m *ExternalMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ExternalMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalMetricSource proto.InternalMessageInfo - -func (m *ExternalMetricStatus) Reset() { *m = ExternalMetricStatus{} } -func (*ExternalMetricStatus) ProtoMessage() {} -func (*ExternalMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{2} -} -func (m *ExternalMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExternalMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalMetricStatus.Merge(m, src) -} -func (m *ExternalMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ExternalMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalMetricStatus proto.InternalMessageInfo - -func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } -func (*HorizontalPodAutoscaler) ProtoMessage() {} -func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{3} -} -func (m *HorizontalPodAutoscaler) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscaler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscaler) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscaler.Merge(m, src) -} -func (m *HorizontalPodAutoscaler) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscaler) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscaler.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscaler proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} } -func (*HorizontalPodAutoscalerCondition) ProtoMessage() {} -func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{4} -} -func (m *HorizontalPodAutoscalerCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerCondition.Merge(m, src) -} -func (m *HorizontalPodAutoscalerCondition) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerCondition) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerCondition proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } -func (*HorizontalPodAutoscalerList) ProtoMessage() {} -func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{5} -} -func (m *HorizontalPodAutoscalerList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerList) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerList.Merge(m, src) -} -func (m *HorizontalPodAutoscalerList) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerList) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerList.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerList proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } -func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} -func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{6} -} -func (m *HorizontalPodAutoscalerSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerSpec.Merge(m, src) -} -func (m *HorizontalPodAutoscalerSpec) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerSpec) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerSpec proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } -func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} -func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{7} -} -func (m *HorizontalPodAutoscalerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerStatus.Merge(m, src) -} -func (m *HorizontalPodAutoscalerStatus) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerStatus proto.InternalMessageInfo - -func (m *MetricSpec) Reset() { *m = MetricSpec{} } -func (*MetricSpec) ProtoMessage() {} -func (*MetricSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{8} -} -func (m *MetricSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricSpec.Merge(m, src) -} -func (m *MetricSpec) XXX_Size() int { - return m.Size() -} -func (m *MetricSpec) XXX_DiscardUnknown() { - xxx_messageInfo_MetricSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricSpec proto.InternalMessageInfo - -func (m *MetricStatus) Reset() { *m = MetricStatus{} } -func (*MetricStatus) ProtoMessage() {} -func (*MetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{9} -} -func (m *MetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricStatus.Merge(m, src) -} -func (m *MetricStatus) XXX_Size() int { - return m.Size() -} -func (m *MetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_MetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricStatus proto.InternalMessageInfo - -func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} } -func (*ObjectMetricSource) ProtoMessage() {} -func (*ObjectMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{10} -} -func (m *ObjectMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetricSource.Merge(m, src) -} -func (m *ObjectMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMetricSource proto.InternalMessageInfo - -func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} } -func (*ObjectMetricStatus) ProtoMessage() {} -func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{11} -} -func (m *ObjectMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetricStatus.Merge(m, src) -} -func (m *ObjectMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMetricStatus proto.InternalMessageInfo - -func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} } -func (*PodsMetricSource) ProtoMessage() {} -func (*PodsMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{12} -} -func (m *PodsMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodsMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodsMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodsMetricSource.Merge(m, src) -} -func (m *PodsMetricSource) XXX_Size() int { - return m.Size() -} -func (m *PodsMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_PodsMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PodsMetricSource proto.InternalMessageInfo - -func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} } -func (*PodsMetricStatus) ProtoMessage() {} -func (*PodsMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{13} -} -func (m *PodsMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodsMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodsMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodsMetricStatus.Merge(m, src) -} -func (m *PodsMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *PodsMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PodsMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PodsMetricStatus proto.InternalMessageInfo - -func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} } -func (*ResourceMetricSource) ProtoMessage() {} -func (*ResourceMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{14} -} -func (m *ResourceMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMetricSource.Merge(m, src) -} -func (m *ResourceMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ResourceMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceMetricSource proto.InternalMessageInfo - -func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} } -func (*ResourceMetricStatus) ProtoMessage() {} -func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{15} -} -func (m *ResourceMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMetricStatus.Merge(m, src) -} -func (m *ResourceMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ResourceMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceMetricStatus proto.InternalMessageInfo - -func (m *Scale) Reset() { *m = Scale{} } -func (*Scale) ProtoMessage() {} -func (*Scale) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{16} -} -func (m *Scale) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Scale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Scale) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scale.Merge(m, src) -} -func (m *Scale) XXX_Size() int { - return m.Size() -} -func (m *Scale) XXX_DiscardUnknown() { - xxx_messageInfo_Scale.DiscardUnknown(m) -} - -var xxx_messageInfo_Scale proto.InternalMessageInfo - -func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } -func (*ScaleSpec) ProtoMessage() {} -func (*ScaleSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{17} -} -func (m *ScaleSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleSpec.Merge(m, src) -} -func (m *ScaleSpec) XXX_Size() int { - return m.Size() -} -func (m *ScaleSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleSpec proto.InternalMessageInfo - -func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } -func (*ScaleStatus) ProtoMessage() {} -func (*ScaleStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_2bb1f2101a7f10e2, []int{18} -} -func (m *ScaleStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleStatus.Merge(m, src) -} -func (m *ScaleStatus) XXX_Size() int { - return m.Size() -} -func (m *ScaleStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.api.autoscaling.v1.CrossVersionObjectReference") - proto.RegisterType((*ExternalMetricSource)(nil), "k8s.io.api.autoscaling.v1.ExternalMetricSource") - proto.RegisterType((*ExternalMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ExternalMetricStatus") - proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscaler") - proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerCondition") - proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerList") - proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec") - proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerStatus") - proto.RegisterType((*MetricSpec)(nil), "k8s.io.api.autoscaling.v1.MetricSpec") - proto.RegisterType((*MetricStatus)(nil), "k8s.io.api.autoscaling.v1.MetricStatus") - proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.api.autoscaling.v1.ObjectMetricSource") - proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ObjectMetricStatus") - proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.api.autoscaling.v1.PodsMetricSource") - proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.api.autoscaling.v1.PodsMetricStatus") - proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.api.autoscaling.v1.ResourceMetricSource") - proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v1.ResourceMetricStatus") - proto.RegisterType((*Scale)(nil), "k8s.io.api.autoscaling.v1.Scale") - proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.autoscaling.v1.ScaleSpec") - proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.autoscaling.v1.ScaleStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1/generated.proto", fileDescriptor_2bb1f2101a7f10e2) -} - -var fileDescriptor_2bb1f2101a7f10e2 = []byte{ - // 1516 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcf, 0x6f, 0x13, 0xc7, - 0x17, 0x8f, 0x7f, 0x24, 0x24, 0xe3, 0x90, 0xe4, 0x3b, 0x20, 0x08, 0xe1, 0x8b, 0x37, 0xda, 0x22, - 0x44, 0x7f, 0xb0, 0x6e, 0x52, 0x8a, 0xe8, 0x31, 0x76, 0x4b, 0x41, 0x8d, 0x21, 0x4c, 0x02, 0xa5, - 0x3f, 0xc5, 0x64, 0x3d, 0x38, 0x43, 0xbc, 0xbb, 0xd6, 0xec, 0xd8, 0x22, 0x48, 0x95, 0xda, 0x43, - 0xef, 0xbd, 0xb4, 0xea, 0xb1, 0x95, 0x7a, 0xed, 0x99, 0x73, 0x6f, 0x1c, 0x39, 0x20, 0x95, 0xd3, - 0xaa, 0x6c, 0x8f, 0xfd, 0x0f, 0x38, 0x55, 0xf3, 0xc3, 0xeb, 0x5d, 0xdb, 0xeb, 0x24, 0x26, 0x44, - 0x6d, 0x6f, 0x3b, 0x33, 0xef, 0x7d, 0xde, 0xec, 0x7b, 0x6f, 0xde, 0x2f, 0x50, 0xde, 0xbe, 0xec, - 0x5b, 0xd4, 0x2b, 0x6d, 0xb7, 0x36, 0x09, 0x73, 0x09, 0x27, 0x7e, 0xa9, 0x4d, 0xdc, 0x9a, 0xc7, - 0x4a, 0xfa, 0x00, 0x37, 0x69, 0x09, 0xb7, 0xb8, 0xe7, 0xdb, 0xb8, 0x41, 0xdd, 0x7a, 0xa9, 0xbd, - 0x54, 0xaa, 0x13, 0x97, 0x30, 0xcc, 0x49, 0xcd, 0x6a, 0x32, 0x8f, 0x7b, 0xf0, 0x94, 0x22, 0xb5, - 0x70, 0x93, 0x5a, 0x31, 0x52, 0xab, 0xbd, 0xb4, 0x70, 0xa1, 0x4e, 0xf9, 0x56, 0x6b, 0xd3, 0xb2, - 0x3d, 0xa7, 0x54, 0xf7, 0xea, 0x5e, 0x49, 0x72, 0x6c, 0xb6, 0xee, 0xc9, 0x95, 0x5c, 0xc8, 0x2f, - 0x85, 0xb4, 0x60, 0xc6, 0x84, 0xda, 0x1e, 0x23, 0x03, 0xa4, 0x2d, 0x5c, 0xec, 0xd2, 0x38, 0xd8, - 0xde, 0xa2, 0x2e, 0x61, 0x3b, 0xa5, 0xe6, 0x76, 0x5d, 0x32, 0x31, 0xe2, 0x7b, 0x2d, 0x66, 0x93, - 0x7d, 0x71, 0xf9, 0x25, 0x87, 0x70, 0x3c, 0x48, 0x56, 0x29, 0x8d, 0x8b, 0xb5, 0x5c, 0x4e, 0x9d, - 0x7e, 0x31, 0x97, 0x76, 0x63, 0xf0, 0xed, 0x2d, 0xe2, 0xe0, 0x5e, 0x3e, 0xf3, 0xfb, 0x0c, 0x38, - 0x5d, 0x61, 0x9e, 0xef, 0xdf, 0x26, 0xcc, 0xa7, 0x9e, 0x7b, 0x63, 0xf3, 0x3e, 0xb1, 0x39, 0x22, - 0xf7, 0x08, 0x23, 0xae, 0x4d, 0xe0, 0x22, 0xc8, 0x6f, 0x53, 0xb7, 0x36, 0x9f, 0x59, 0xcc, 0x9c, - 0x9f, 0x2a, 0x4f, 0x3f, 0x0e, 0x8c, 0xb1, 0x30, 0x30, 0xf2, 0x1f, 0x51, 0xb7, 0x86, 0xe4, 0x89, - 0xa0, 0x70, 0xb1, 0x43, 0xe6, 0xb3, 0x49, 0x8a, 0xeb, 0xd8, 0x21, 0x48, 0x9e, 0xc0, 0x65, 0x00, - 0x70, 0x93, 0x6a, 0x01, 0xf3, 0x39, 0x49, 0x07, 0x35, 0x1d, 0x58, 0x59, 0xbb, 0xa6, 0x4f, 0x50, - 0x8c, 0xca, 0xfc, 0x21, 0x07, 0x8e, 0x7f, 0xf0, 0x80, 0x13, 0xe6, 0xe2, 0x46, 0x95, 0x70, 0x46, - 0xed, 0x75, 0xa9, 0x5f, 0x01, 0xe6, 0xc8, 0xb5, 0x10, 0xa0, 0xaf, 0x15, 0x81, 0x55, 0xa3, 0x13, - 0x14, 0xa3, 0x82, 0x1e, 0x98, 0x51, 0xab, 0x75, 0xd2, 0x20, 0x36, 0xf7, 0x98, 0xbc, 0x6c, 0x61, - 0xf9, 0x1d, 0xab, 0xeb, 0x40, 0x91, 0xd6, 0xac, 0xe6, 0x76, 0x5d, 0x6c, 0xf8, 0x96, 0x30, 0x8e, - 0xd5, 0x5e, 0xb2, 0x56, 0xf1, 0x26, 0x69, 0x74, 0x58, 0xcb, 0x30, 0x0c, 0x8c, 0x99, 0x6a, 0x02, - 0x0e, 0xf5, 0xc0, 0x43, 0x0c, 0x0a, 0x1c, 0xb3, 0x3a, 0xe1, 0xb7, 0x71, 0xa3, 0x45, 0xe4, 0x2f, - 0x17, 0x96, 0xad, 0x61, 0xd2, 0xac, 0x8e, 0x03, 0x59, 0x37, 0x5b, 0xd8, 0xe5, 0x94, 0xef, 0x94, - 0x67, 0xc3, 0xc0, 0x28, 0x6c, 0x74, 0x61, 0x50, 0x1c, 0x13, 0xb6, 0x01, 0x54, 0xcb, 0x95, 0x36, - 0x61, 0xb8, 0x4e, 0x94, 0xa4, 0xfc, 0x48, 0x92, 0x4e, 0x84, 0x81, 0x01, 0x37, 0xfa, 0xd0, 0xd0, - 0x00, 0x09, 0xe6, 0x4f, 0xfd, 0x86, 0xe1, 0x98, 0xb7, 0xfc, 0x7f, 0x87, 0x61, 0xb6, 0xc0, 0xb4, - 0xdd, 0x62, 0x8c, 0xb8, 0x2f, 0x65, 0x99, 0xe3, 0xfa, 0xb7, 0xa6, 0x2b, 0x31, 0x2c, 0x94, 0x40, - 0x86, 0x3b, 0xe0, 0x98, 0x5e, 0x1f, 0x80, 0x81, 0x4e, 0x86, 0x81, 0x71, 0xac, 0xd2, 0x0f, 0x87, - 0x06, 0xc9, 0x30, 0x1f, 0x65, 0xc1, 0xc9, 0xab, 0x1e, 0xa3, 0x0f, 0x3d, 0x97, 0xe3, 0xc6, 0x9a, - 0x57, 0x5b, 0xd1, 0xb1, 0x91, 0x30, 0x78, 0x17, 0x4c, 0x0a, 0xed, 0xd5, 0x30, 0xc7, 0xd2, 0x46, - 0x85, 0xe5, 0xb7, 0xf7, 0xa6, 0x6b, 0x15, 0x18, 0xaa, 0x84, 0xe3, 0xae, 0x55, 0xbb, 0x7b, 0x28, - 0x42, 0x85, 0x77, 0x40, 0xde, 0x6f, 0x12, 0x5b, 0x5b, 0xf2, 0x92, 0x95, 0x1a, 0xa3, 0xad, 0x94, - 0x3b, 0xae, 0x37, 0x89, 0xdd, 0x8d, 0x23, 0x62, 0x85, 0x24, 0x22, 0xbc, 0x0b, 0x26, 0x7c, 0xe9, - 0x6b, 0xda, 0x6c, 0x97, 0x47, 0xc0, 0x96, 0xfc, 0xe5, 0x19, 0x8d, 0x3e, 0xa1, 0xd6, 0x48, 0xe3, - 0x9a, 0xdf, 0xe6, 0xc0, 0x62, 0x0a, 0x67, 0xc5, 0x73, 0x6b, 0x94, 0x53, 0xcf, 0x85, 0x57, 0x41, - 0x9e, 0xef, 0x34, 0x3b, 0x2e, 0x7e, 0xb1, 0x73, 0xd1, 0x8d, 0x9d, 0x26, 0x79, 0x11, 0x18, 0x67, - 0x77, 0xe3, 0x17, 0x74, 0x48, 0x22, 0xc0, 0xd5, 0xe8, 0x87, 0xb2, 0x09, 0x2c, 0x7d, 0xad, 0x17, - 0x81, 0x31, 0x20, 0x2f, 0x59, 0x11, 0x52, 0xf2, 0xf2, 0x22, 0x22, 0x34, 0xb0, 0xcf, 0x37, 0x18, - 0x76, 0x7d, 0x25, 0x89, 0x3a, 0x1d, 0x0f, 0x7f, 0x63, 0x6f, 0x46, 0x16, 0x1c, 0xe5, 0x05, 0x7d, - 0x0b, 0xb8, 0xda, 0x87, 0x86, 0x06, 0x48, 0x80, 0xe7, 0xc0, 0x04, 0x23, 0xd8, 0xf7, 0x5c, 0xe9, - 0xdc, 0x53, 0x5d, 0xe5, 0x22, 0xb9, 0x8b, 0xf4, 0x29, 0x7c, 0x1d, 0x1c, 0x71, 0x88, 0xef, 0xe3, - 0x3a, 0x99, 0x1f, 0x97, 0x84, 0xb3, 0x9a, 0xf0, 0x48, 0x55, 0x6d, 0xa3, 0xce, 0xb9, 0xf9, 0x34, - 0x03, 0x4e, 0xa7, 0xe8, 0x71, 0x95, 0xfa, 0x1c, 0x7e, 0xde, 0xe7, 0xc5, 0xd6, 0x1e, 0x23, 0x06, - 0xf5, 0x95, 0x0f, 0xcf, 0x69, 0xd9, 0x93, 0x9d, 0x9d, 0x98, 0x07, 0x7f, 0x0c, 0xc6, 0x29, 0x27, - 0x8e, 0xb0, 0x4a, 0xee, 0x7c, 0x61, 0x79, 0x79, 0xff, 0x6e, 0x56, 0x3e, 0xaa, 0xe1, 0xc7, 0xaf, - 0x09, 0x20, 0xa4, 0xf0, 0xcc, 0xbf, 0xb2, 0xa9, 0xbf, 0x25, 0xdc, 0x1c, 0xb6, 0xc1, 0x8c, 0x5c, - 0xa9, 0x50, 0x8c, 0xc8, 0x3d, 0xfd, 0x73, 0xc3, 0x1e, 0xd1, 0x90, 0xe4, 0x5d, 0x3e, 0xa1, 0x6f, - 0x31, 0xb3, 0x9e, 0x40, 0x45, 0x3d, 0x52, 0xe0, 0x12, 0x28, 0x38, 0xd4, 0x45, 0xa4, 0xd9, 0xa0, - 0x36, 0x56, 0xce, 0x38, 0xae, 0xd2, 0x4f, 0xb5, 0xbb, 0x8d, 0xe2, 0x34, 0xf0, 0x5d, 0x50, 0x70, - 0xf0, 0x83, 0x88, 0x25, 0x27, 0x59, 0x8e, 0x69, 0x79, 0x85, 0x6a, 0xf7, 0x08, 0xc5, 0xe9, 0xe0, - 0x7d, 0x50, 0x54, 0x39, 0xa5, 0xb2, 0x76, 0xeb, 0x16, 0xa7, 0x0d, 0xfa, 0x10, 0x0b, 0x3f, 0x5a, - 0x23, 0xcc, 0x26, 0x2e, 0x17, 0xae, 0x91, 0x97, 0x48, 0x66, 0x18, 0x18, 0xc5, 0x8d, 0xa1, 0x94, - 0x68, 0x17, 0x24, 0xf3, 0xb7, 0x1c, 0x38, 0x33, 0x34, 0x0c, 0xc0, 0x2b, 0x00, 0x7a, 0x9b, 0x3e, - 0x61, 0x6d, 0x52, 0xfb, 0x50, 0xd5, 0x45, 0xa2, 0x40, 0x11, 0x3a, 0xcf, 0xa9, 0x9c, 0x78, 0xa3, - 0xef, 0x14, 0x0d, 0xe0, 0x80, 0x36, 0x38, 0x2a, 0xde, 0x85, 0xd2, 0x32, 0xd5, 0xb5, 0xd0, 0xfe, - 0x1e, 0xdd, 0xff, 0xc2, 0xc0, 0x38, 0xba, 0x1a, 0x07, 0x41, 0x49, 0x4c, 0xb8, 0x02, 0x66, 0x75, - 0xb0, 0xef, 0xd1, 0xfa, 0x49, 0xad, 0xf5, 0xd9, 0x4a, 0xf2, 0x18, 0xf5, 0xd2, 0x0b, 0x88, 0x1a, - 0xf1, 0x29, 0x23, 0xb5, 0x08, 0x22, 0x9f, 0x84, 0x78, 0x3f, 0x79, 0x8c, 0x7a, 0xe9, 0xa1, 0x03, - 0x0c, 0x8d, 0x9a, 0x6a, 0xc1, 0x71, 0x09, 0xf9, 0x5a, 0x18, 0x18, 0x46, 0x65, 0x38, 0x29, 0xda, - 0x0d, 0x4b, 0x94, 0x81, 0xba, 0x76, 0x90, 0x0f, 0xe4, 0x62, 0x22, 0xf4, 0x2e, 0xf6, 0x84, 0xde, - 0xb9, 0x78, 0xa1, 0x18, 0x0b, 0xb3, 0x37, 0xc1, 0x84, 0x27, 0x5f, 0x86, 0xb6, 0xcb, 0x85, 0x21, - 0xcf, 0x29, 0x4a, 0x69, 0x11, 0x50, 0x19, 0x88, 0x58, 0xa6, 0x9f, 0x96, 0x06, 0x82, 0xd7, 0x40, - 0xbe, 0xe9, 0xd5, 0x3a, 0x89, 0xe8, 0xcd, 0x21, 0x80, 0x6b, 0x5e, 0xcd, 0x4f, 0xc0, 0x4d, 0x8a, - 0x1b, 0x8b, 0x5d, 0x24, 0x21, 0xe0, 0x27, 0x60, 0xb2, 0x93, 0xf0, 0x75, 0x75, 0x50, 0x1a, 0x02, - 0x87, 0x34, 0x69, 0x02, 0x72, 0x5a, 0x04, 0xb2, 0xce, 0x09, 0x8a, 0xe0, 0x04, 0x34, 0xd1, 0xa5, - 0x9a, 0xb4, 0xca, 0x70, 0xe8, 0x41, 0xe5, 0xb6, 0x82, 0xee, 0x9c, 0xa0, 0x08, 0xce, 0xfc, 0x31, - 0x07, 0xa6, 0x13, 0xe5, 0xdf, 0x21, 0x9b, 0x46, 0xe5, 0xf1, 0x03, 0x33, 0x8d, 0x82, 0x3b, 0x50, - 0xd3, 0x28, 0xc8, 0x57, 0x62, 0x9a, 0x18, 0xf4, 0x00, 0xd3, 0x3c, 0xcd, 0x01, 0xd8, 0xef, 0xc6, - 0xf0, 0x4b, 0x30, 0xa1, 0x02, 0xe6, 0x4b, 0x26, 0x95, 0x28, 0xbd, 0xeb, 0xfc, 0xa1, 0x51, 0x7b, - 0xea, 0xff, 0xec, 0x9e, 0xea, 0x7f, 0x72, 0x10, 0x7d, 0x52, 0x94, 0x75, 0x52, 0x7b, 0xa5, 0x2f, - 0xc0, 0xa4, 0xdf, 0x69, 0x30, 0xf2, 0xa3, 0x37, 0x18, 0x52, 0xe1, 0x51, 0x6b, 0x11, 0x41, 0xc2, - 0x1a, 0x98, 0xc6, 0xf1, 0x1a, 0x7f, 0x7c, 0xa4, 0xdf, 0x98, 0x13, 0x0d, 0x45, 0xa2, 0xb8, 0x4f, - 0xa0, 0x9a, 0xbf, 0xf7, 0x9a, 0x55, 0xbd, 0xbb, 0x7f, 0xa2, 0x59, 0x0f, 0xaf, 0xcb, 0xfa, 0x4f, - 0x58, 0xf6, 0xe7, 0x2c, 0x98, 0xeb, 0x4d, 0x13, 0x23, 0xb5, 0xd3, 0x0f, 0x07, 0xce, 0x04, 0xb2, - 0x23, 0x5d, 0x3a, 0xea, 0x02, 0xf6, 0x36, 0x17, 0x48, 0x58, 0x22, 0x77, 0xe0, 0x96, 0x30, 0x7f, - 0x49, 0xea, 0x68, 0xf4, 0x91, 0xc3, 0x57, 0x83, 0xfb, 0xf2, 0xd1, 0x94, 0x74, 0x5a, 0x0b, 0xdb, - 0x73, 0x6f, 0xfe, 0xaa, 0xd5, 0xf4, 0x6b, 0x16, 0x1c, 0x1f, 0x54, 0x22, 0xc0, 0x8a, 0x9e, 0xd2, - 0x29, 0x25, 0x95, 0xe2, 0x53, 0xba, 0x17, 0x81, 0x61, 0x0c, 0x68, 0x33, 0x3b, 0x30, 0xb1, 0x41, - 0xde, 0x1d, 0x30, 0x9f, 0xb0, 0x7c, 0xac, 0x66, 0xd3, 0x4d, 0xc3, 0xff, 0xc3, 0xc0, 0x98, 0xdf, - 0x48, 0xa1, 0x41, 0xa9, 0xdc, 0x29, 0xd3, 0xac, 0xdc, 0x2b, 0x9f, 0x66, 0x3d, 0xea, 0xd7, 0x97, - 0x72, 0xad, 0x03, 0xd1, 0xd7, 0x67, 0xe0, 0x54, 0xd2, 0x07, 0xfa, 0x15, 0x76, 0x26, 0x0c, 0x8c, - 0x53, 0x95, 0x34, 0x22, 0x94, 0xce, 0x9f, 0xe6, 0xc8, 0xb9, 0xc3, 0x71, 0x64, 0xf3, 0x9b, 0x2c, - 0x18, 0x97, 0xcd, 0xc9, 0x21, 0x8c, 0x94, 0xae, 0x24, 0x46, 0x4a, 0x67, 0x87, 0x64, 0x38, 0x79, - 0xa3, 0xd4, 0x01, 0xd2, 0xf5, 0x9e, 0x01, 0xd2, 0xb9, 0x5d, 0x91, 0x86, 0x8f, 0x8b, 0xde, 0x03, - 0x53, 0x91, 0x40, 0xf8, 0x96, 0x28, 0x16, 0x75, 0x57, 0x95, 0x91, 0xb6, 0x8d, 0x66, 0x0c, 0x51, - 0x3b, 0x15, 0x51, 0x98, 0x14, 0x14, 0x62, 0x12, 0xf6, 0xc7, 0x2c, 0xa8, 0xfd, 0xf8, 0xc0, 0x74, - 0xaa, 0x4b, 0xdd, 0x1f, 0x13, 0xca, 0xe7, 0x1f, 0x3f, 0x2f, 0x8e, 0x3d, 0x79, 0x5e, 0x1c, 0x7b, - 0xf6, 0xbc, 0x38, 0xf6, 0x75, 0x58, 0xcc, 0x3c, 0x0e, 0x8b, 0x99, 0x27, 0x61, 0x31, 0xf3, 0x2c, - 0x2c, 0x66, 0xfe, 0x08, 0x8b, 0x99, 0xef, 0xfe, 0x2c, 0x8e, 0x7d, 0x9a, 0x6d, 0x2f, 0xfd, 0x1d, - 0x00, 0x00, 0xff, 0xff, 0x3c, 0x26, 0x41, 0xcb, 0x94, 0x19, 0x00, 0x00, -} - -func (m *CrossVersionObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CrossVersionObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CrossVersionObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x1a - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExternalMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TargetAverageValue != nil { - { - size, err := m.TargetAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.TargetValue != nil { - { - size, err := m.TargetValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.MetricSelector != nil { - { - size, err := m.MetricSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExternalMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentAverageValue != nil { - { - size, err := m.CurrentAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.MetricSelector != nil { - { - size, err := m.MetricSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscaler) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscaler) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TargetCPUUtilizationPercentage != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetCPUUtilizationPercentage)) - i-- - dAtA[i] = 0x20 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas)) - i-- - dAtA[i] = 0x18 - if m.MinReplicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.MinReplicas)) - i-- - dAtA[i] = 0x10 - } - { - size, err := m.ScaleTargetRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentCPUUtilizationPercentage != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentCPUUtilizationPercentage)) - i-- - dAtA[i] = 0x28 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) - i-- - dAtA[i] = 0x18 - if m.LastScaleTime != nil { - { - size, err := m.LastScaleTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ObservedGeneration != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MetricSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.External != nil { - { - size, err := m.External.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Pods != nil { - { - size, err := m.Pods.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.External != nil { - { - size, err := m.External.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Pods != nil { - { - size, err := m.Pods.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AverageValue != nil { - { - size, err := m.AverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.TargetValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AverageValue != nil { - { - size, err := m.AverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodsMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodsMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodsMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.TargetAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodsMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodsMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodsMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.CurrentAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TargetAverageValue != nil { - { - size, err := m.TargetAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.TargetAverageUtilization != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetAverageUtilization)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.CurrentAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.CurrentAverageUtilization != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentAverageUtilization)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Scale) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Scale) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Scale) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScaleSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ScaleStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Selector) - copy(dAtA[i:], m.Selector) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Selector))) - i-- - dAtA[i] = 0x12 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CrossVersionObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ExternalMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - if m.MetricSelector != nil { - l = m.MetricSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TargetValue != nil { - l = m.TargetValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TargetAverageValue != nil { - l = m.TargetAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ExternalMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - if m.MetricSelector != nil { - l = m.MetricSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.CurrentValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.CurrentAverageValue != nil { - l = m.CurrentAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *HorizontalPodAutoscaler) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscalerCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscalerList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HorizontalPodAutoscalerSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ScaleTargetRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.MinReplicas != nil { - n += 1 + sovGenerated(uint64(*m.MinReplicas)) - } - n += 1 + sovGenerated(uint64(m.MaxReplicas)) - if m.TargetCPUUtilizationPercentage != nil { - n += 1 + sovGenerated(uint64(*m.TargetCPUUtilizationPercentage)) - } - return n -} - -func (m *HorizontalPodAutoscalerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObservedGeneration != nil { - n += 1 + sovGenerated(uint64(*m.ObservedGeneration)) - } - if m.LastScaleTime != nil { - l = m.LastScaleTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.CurrentReplicas)) - n += 1 + sovGenerated(uint64(m.DesiredReplicas)) - if m.CurrentCPUUtilizationPercentage != nil { - n += 1 + sovGenerated(uint64(*m.CurrentCPUUtilizationPercentage)) - } - return n -} - -func (m *MetricSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pods != nil { - l = m.Pods.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.External != nil { - l = m.External.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pods != nil { - l = m.Pods.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.External != nil { - l = m.External.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ObjectMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.TargetValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageValue != nil { - l = m.AverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ObjectMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.CurrentValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageValue != nil { - l = m.AverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodsMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.TargetAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodsMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.CurrentAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ResourceMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.TargetAverageUtilization != nil { - n += 1 + sovGenerated(uint64(*m.TargetAverageUtilization)) - } - if m.TargetAverageValue != nil { - l = m.TargetAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ResourceMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.CurrentAverageUtilization != nil { - n += 1 + sovGenerated(uint64(*m.CurrentAverageUtilization)) - } - l = m.CurrentAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Scale) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScaleSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - return n -} - -func (m *ScaleStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - l = len(m.Selector) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CrossVersionObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CrossVersionObjectReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalMetricSource{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `TargetValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetValue), "Quantity", "resource.Quantity", 1) + `,`, - `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalMetricStatus{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `CurrentValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `CurrentAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscaler) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscaler{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscalerCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]HorizontalPodAutoscaler{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`, - `ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`, - `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`, - `TargetCPUUtilizationPercentage:` + valueToStringGenerated(this.TargetCPUUtilizationPercentage) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`, - `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, - `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "v1.Time", 1) + `,`, - `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, - `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`, - `CurrentCPUUtilizationPercentage:` + valueToStringGenerated(this.CurrentCPUUtilizationPercentage) + `,`, - `}`, - }, "") - return s -} -func (this *MetricSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricSpec{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(this.Object.String(), "ObjectMetricSource", "ObjectMetricSource", 1) + `,`, - `Pods:` + strings.Replace(this.Pods.String(), "PodsMetricSource", "PodsMetricSource", 1) + `,`, - `Resource:` + strings.Replace(this.Resource.String(), "ResourceMetricSource", "ResourceMetricSource", 1) + `,`, - `External:` + strings.Replace(this.External.String(), "ExternalMetricSource", "ExternalMetricSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricStatus{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(this.Object.String(), "ObjectMetricStatus", "ObjectMetricStatus", 1) + `,`, - `Pods:` + strings.Replace(this.Pods.String(), "PodsMetricStatus", "PodsMetricStatus", 1) + `,`, - `Resource:` + strings.Replace(this.Resource.String(), "ResourceMetricStatus", "ResourceMetricStatus", 1) + `,`, - `External:` + strings.Replace(this.External.String(), "ExternalMetricStatus", "ExternalMetricStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectMetricSource{`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `TargetValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TargetValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectMetricStatus{`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `CurrentValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodsMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodsMetricSource{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `TargetAverageValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodsMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodsMetricStatus{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `CurrentAverageValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceMetricSource{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`, - `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceMetricStatus{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `CurrentAverageUtilization:` + valueToStringGenerated(this.CurrentAverageUtilization) + `,`, - `CurrentAverageValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Scale) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Scale{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleSpec{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `Selector:` + fmt.Sprintf("%v", this.Selector) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CrossVersionObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CrossVersionObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MetricSelector == nil { - m.MetricSelector = &v1.LabelSelector{} - } - if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetValue == nil { - m.TargetValue = &resource.Quantity{} - } - if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetAverageValue == nil { - m.TargetAverageValue = &resource.Quantity{} - } - if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MetricSelector == nil { - m.MetricSelector = &v1.LabelSelector{} - } - if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentAverageValue == nil { - m.CurrentAverageValue = &resource.Quantity{} - } - if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = HorizontalPodAutoscalerConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, HorizontalPodAutoscaler{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScaleTargetRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ScaleTargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReplicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.MinReplicas = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType) - } - m.MaxReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetCPUUtilizationPercentage", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TargetCPUUtilizationPercentage = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ObservedGeneration = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastScaleTime == nil { - m.LastScaleTime = &v1.Time{} - } - if err := m.LastScaleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType) - } - m.DesiredReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentCPUUtilizationPercentage", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CurrentCPUUtilizationPercentage = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &ObjectMetricSource{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pods == nil { - m.Pods = &PodsMetricSource{} - } - if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &ResourceMetricSource{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.External == nil { - m.External = &ExternalMetricSource{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &ObjectMetricStatus{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pods == nil { - m.Pods = &PodsMetricStatus{} - } - if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &ResourceMetricStatus{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.External == nil { - m.External = &ExternalMetricStatus{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AverageValue == nil { - m.AverageValue = &resource.Quantity{} - } - if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AverageValue == nil { - m.AverageValue = &resource.Quantity{} - } - if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodsMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodsMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodsMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodsMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageUtilization", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TargetAverageUtilization = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetAverageValue == nil { - m.TargetAverageValue = &resource.Quantity{} - } - if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageUtilization", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CurrentAverageUtilization = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Scale) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Scale: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Selector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/autoscaling/v1/generated.proto b/pseudo/k8s/api/autoscaling/v1/generated.proto deleted file mode 100644 index 0697f9309..000000000 --- a/pseudo/k8s/api/autoscaling/v1/generated.proto +++ /dev/null @@ -1,419 +0,0 @@ -/* -Copyright 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.autoscaling.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -message CrossVersionObjectReference { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - optional string kind = 1; - - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - optional string name = 2; - - // API version of the referent - // +optional - optional string apiVersion = 3; -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -message ExternalMetricSource { - // metricName is the name of the metric in question. - optional string metricName = 1; - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; - - // targetValue is the target value of the metric (as a quantity). - // Mutually exclusive with TargetAverageValue. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; - - // targetAverageValue is the target per-pod value of global metric (as a quantity). - // Mutually exclusive with TargetValue. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -message ExternalMetricStatus { - // metricName is the name of a metric used for autoscaling in - // metric system. - optional string metricName = 1; - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; - - // currentValue is the current value of the metric (as a quantity) - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3; - - // currentAverageValue is the current value of metric averaged over autoscaled pods. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 4; -} - -// configuration of a horizontal pod autoscaler. -message HorizontalPodAutoscaler { - // Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional HorizontalPodAutoscalerSpec spec = 2; - - // current information about the autoscaler. - // +optional - optional HorizontalPodAutoscalerStatus status = 3; -} - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -message HorizontalPodAutoscalerCondition { - // type describes the current condition - optional string type = 1; - - // status is the status of the condition (True, False, Unknown) - optional string status = 2; - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // reason is the reason for the condition's last transition. - // +optional - optional string reason = 4; - - // message is a human-readable explanation containing details about - // the transition - // +optional - optional string message = 5; -} - -// list of horizontal pod autoscaler objects. -message HorizontalPodAutoscalerList { - // Standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // list of horizontal pod autoscaler objects. - repeated HorizontalPodAutoscaler items = 2; -} - -// specification of a horizontal pod autoscaler. -message HorizontalPodAutoscalerSpec { - // reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption - // and will set the desired number of pods by using its Scale subresource. - optional CrossVersionObjectReference scaleTargetRef = 1; - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - optional int32 minReplicas = 2; - - // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - optional int32 maxReplicas = 3; - - // target average CPU utilization (represented as a percentage of requested CPU) over all the pods; - // if not specified the default autoscaling policy will be used. - // +optional - optional int32 targetCPUUtilizationPercentage = 4; -} - -// current status of a horizontal pod autoscaler -message HorizontalPodAutoscalerStatus { - // most recent generation observed by this autoscaler. - // +optional - optional int64 observedGeneration = 1; - - // last time the HorizontalPodAutoscaler scaled the number of pods; - // used by the autoscaler to control how often the number of pods is changed. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; - - // current number of replicas of pods managed by this autoscaler. - optional int32 currentReplicas = 3; - - // desired number of replicas of pods managed by this autoscaler. - optional int32 desiredReplicas = 4; - - // current average CPU utilization over all pods, represented as a percentage of requested CPU, - // e.g. 70 means that an average pod is using now 70% of its requested CPU. - // +optional - optional int32 currentCPUUtilizationPercentage = 5; -} - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -message MetricSpec { - // type is the type of metric source. It should be one of "Object", - // "Pods" or "Resource", each mapping to a matching field in the object. - optional string type = 1; - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - optional ObjectMetricSource object = 2; - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - optional PodsMetricSource pods = 3; - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - optional ResourceMetricSource resource = 4; - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - optional ExternalMetricSource external = 5; -} - -// MetricStatus describes the last-read state of a single metric. -message MetricStatus { - // type is the type of metric source. It will be one of "Object", - // "Pods" or "Resource", each corresponds to a matching field in the object. - optional string type = 1; - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - optional ObjectMetricStatus object = 2; - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - optional PodsMetricStatus pods = 3; - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - optional ResourceMetricStatus resource = 4; - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - optional ExternalMetricStatus external = 5; -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -message ObjectMetricSource { - // target is the described Kubernetes object. - optional CrossVersionObjectReference target = 1; - - // metricName is the name of the metric in question. - optional string metricName = 2; - - // targetValue is the target value of the metric (as a quantity). - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric. - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5; -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -message ObjectMetricStatus { - // target is the described Kubernetes object. - optional CrossVersionObjectReference target = 1; - - // metricName is the name of the metric in question. - optional string metricName = 2; - - // currentValue is the current value of the metric (as a quantity). - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5; -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -message PodsMetricSource { - // metricName is the name of the metric in question - optional string metricName = 1; - - // targetAverageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3; -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -message PodsMetricStatus { - // metricName is the name of the metric in question - optional string metricName = 1; - - // currentAverageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3; -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -message ResourceMetricSource { - // name is the name of the resource in question. - optional string name = 1; - - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - optional int32 targetAverageUtilization = 2; - - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -message ResourceMetricStatus { - // name is the name of the resource in question. - optional string name = 1; - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - optional int32 currentAverageUtilization = 2; - - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -} - -// Scale represents a scaling request for a resource. -message Scale { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional ScaleSpec spec = 2; - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - optional ScaleStatus status = 3; -} - -// ScaleSpec describes the attributes of a scale subresource. -message ScaleSpec { - // desired number of instances for the scaled object. - // +optional - optional int32 replicas = 1; -} - -// ScaleStatus represents the current status of a scale subresource. -message ScaleStatus { - // actual number of observed instances of the scaled object. - optional int32 replicas = 1; - - // label query over pods that should match the replicas count. This is same - // as the label selector but in the string format to avoid introspection - // by clients. The string will be in the same format as the query-param syntax. - // More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - optional string selector = 2; -} - diff --git a/pseudo/k8s/api/autoscaling/v1/register.go b/pseudo/k8s/api/autoscaling/v1/register.go deleted file mode 100644 index cb4d23d10..000000000 --- a/pseudo/k8s/api/autoscaling/v1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "autoscaling" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &HorizontalPodAutoscaler{}, - &HorizontalPodAutoscalerList{}, - &Scale{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/autoscaling/v1/types.go b/pseudo/k8s/api/autoscaling/v1/types.go deleted file mode 100644 index 757db006a..000000000 --- a/pseudo/k8s/api/autoscaling/v1/types.go +++ /dev/null @@ -1,432 +0,0 @@ -/* -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 v1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -type CrossVersionObjectReference struct { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - // API version of the referent - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` -} - -// specification of a horizontal pod autoscaler. -type HorizontalPodAutoscalerSpec struct { - // reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption - // and will set the desired number of pods by using its Scale subresource. - ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"` - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"` - // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"` - // target average CPU utilization (represented as a percentage of requested CPU) over all the pods; - // if not specified the default autoscaling policy will be used. - // +optional - TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty" protobuf:"varint,4,opt,name=targetCPUUtilizationPercentage"` -} - -// current status of a horizontal pod autoscaler -type HorizontalPodAutoscalerStatus struct { - // most recent generation observed by this autoscaler. - // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // last time the HorizontalPodAutoscaler scaled the number of pods; - // used by the autoscaler to control how often the number of pods is changed. - // +optional - LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty" protobuf:"bytes,2,opt,name=lastScaleTime"` - - // current number of replicas of pods managed by this autoscaler. - CurrentReplicas int32 `json:"currentReplicas" protobuf:"varint,3,opt,name=currentReplicas"` - - // desired number of replicas of pods managed by this autoscaler. - DesiredReplicas int32 `json:"desiredReplicas" protobuf:"varint,4,opt,name=desiredReplicas"` - - // current average CPU utilization over all pods, represented as a percentage of requested CPU, - // e.g. 70 means that an average pod is using now 70% of its requested CPU. - // +optional - CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty" protobuf:"varint,5,opt,name=currentCPUUtilizationPercentage"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// configuration of a horizontal pod autoscaler. -type HorizontalPodAutoscaler struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // current information about the autoscaler. - // +optional - Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// list of horizontal pod autoscaler objects. -type HorizontalPodAutoscalerList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // list of horizontal pod autoscaler objects. - Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Scale represents a scaling request for a resource. -type Scale struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// ScaleSpec describes the attributes of a scale subresource. -type ScaleSpec struct { - // desired number of instances for the scaled object. - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` -} - -// ScaleStatus represents the current status of a scale subresource. -type ScaleStatus struct { - // actual number of observed instances of the scaled object. - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // label query over pods that should match the replicas count. This is same - // as the label selector but in the string format to avoid introspection - // by clients. The string will be in the same format as the query-param syntax. - // More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - Selector string `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` -} - -// the types below are used in the alpha metrics annotation - -// MetricSourceType indicates the type of metric. -type MetricSourceType string - -var ( - // ObjectMetricSourceType is a metric describing a kubernetes object - // (for example, hits-per-second on an Ingress object). - ObjectMetricSourceType MetricSourceType = "Object" - // PodsMetricSourceType is a metric describing each pod in the current scale - // target (for example, transactions-processed-per-second). The values - // will be averaged together before being compared to the target value. - PodsMetricSourceType MetricSourceType = "Pods" - // ResourceMetricSourceType is a resource metric known to Kubernetes, as - // specified in requests and limits, describing each pod in the current - // scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics (the "pods" source). - ResourceMetricSourceType MetricSourceType = "Resource" - // ExternalMetricSourceType is a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - ExternalMetricSourceType MetricSourceType = "External" -) - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -type MetricSpec struct { - // type is the type of metric source. It should be one of "Object", - // "Pods" or "Resource", each mapping to a matching field in the object. - Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - Object *ObjectMetricSource `json:"object,omitempty" protobuf:"bytes,2,opt,name=object"` - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - Pods *PodsMetricSource `json:"pods,omitempty" protobuf:"bytes,3,opt,name=pods"` - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - Resource *ResourceMetricSource `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"` - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - External *ExternalMetricSource `json:"external,omitempty" protobuf:"bytes,5,opt,name=external"` -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -type ObjectMetricSource struct { - // target is the described Kubernetes object. - Target CrossVersionObjectReference `json:"target" protobuf:"bytes,1,name=target"` - - // metricName is the name of the metric in question. - MetricName string `json:"metricName" protobuf:"bytes,2,name=metricName"` - // targetValue is the target value of the metric (as a quantity). - TargetValue resource.Quantity `json:"targetValue" protobuf:"bytes,3,name=targetValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric. - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,name=selector"` - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - AverageValue *resource.Quantity `json:"averageValue,omitempty" protobuf:"bytes,5,name=averageValue"` -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -type PodsMetricSource struct { - // metricName is the name of the metric in question - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // targetAverageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - TargetAverageValue resource.Quantity `json:"targetAverageValue" protobuf:"bytes,2,name=targetAverageValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,3,name=selector"` -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -type ResourceMetricSource struct { - // name is the name of the resource in question. - Name v1.ResourceName `json:"name" protobuf:"bytes,1,name=name"` - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - TargetAverageUtilization *int32 `json:"targetAverageUtilization,omitempty" protobuf:"varint,2,opt,name=targetAverageUtilization"` - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty" protobuf:"bytes,3,opt,name=targetAverageValue"` -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -type ExternalMetricSource struct { - // metricName is the name of the metric in question. - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - MetricSelector *metav1.LabelSelector `json:"metricSelector,omitempty" protobuf:"bytes,2,opt,name=metricSelector"` - // targetValue is the target value of the metric (as a quantity). - // Mutually exclusive with TargetAverageValue. - // +optional - TargetValue *resource.Quantity `json:"targetValue,omitempty" protobuf:"bytes,3,opt,name=targetValue"` - // targetAverageValue is the target per-pod value of global metric (as a quantity). - // Mutually exclusive with TargetValue. - // +optional - TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty" protobuf:"bytes,4,opt,name=targetAverageValue"` -} - -// MetricStatus describes the last-read state of a single metric. -type MetricStatus struct { - // type is the type of metric source. It will be one of "Object", - // "Pods" or "Resource", each corresponds to a matching field in the object. - Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - Object *ObjectMetricStatus `json:"object,omitempty" protobuf:"bytes,2,opt,name=object"` - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - Pods *PodsMetricStatus `json:"pods,omitempty" protobuf:"bytes,3,opt,name=pods"` - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - Resource *ResourceMetricStatus `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"` - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - External *ExternalMetricStatus `json:"external,omitempty" protobuf:"bytes,5,opt,name=external"` -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -type HorizontalPodAutoscalerConditionType string - -var ( - // ScalingActive indicates that the HPA controller is able to scale if necessary: - // it's correctly configured, can fetch the desired metrics, and isn't disabled. - ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive" - // AbleToScale indicates a lack of transient issues which prevent scaling from occurring, - // such as being in a backoff window, or being unable to access/update the target scale. - AbleToScale HorizontalPodAutoscalerConditionType = "AbleToScale" - // ScalingLimited indicates that the calculated scale based on metrics would be above or - // below the range for the HPA, and has thus been capped. - ScalingLimited HorizontalPodAutoscalerConditionType = "ScalingLimited" -) - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -type HorizontalPodAutoscalerCondition struct { - // type describes the current condition - Type HorizontalPodAutoscalerConditionType `json:"type" protobuf:"bytes,1,name=type"` - // status is the status of the condition (True, False, Unknown) - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,name=status"` - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // reason is the reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // message is a human-readable explanation containing details about - // the transition - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -type ObjectMetricStatus struct { - // target is the described Kubernetes object. - Target CrossVersionObjectReference `json:"target" protobuf:"bytes,1,name=target"` - - // metricName is the name of the metric in question. - MetricName string `json:"metricName" protobuf:"bytes,2,name=metricName"` - // currentValue is the current value of the metric (as a quantity). - CurrentValue resource.Quantity `json:"currentValue" protobuf:"bytes,3,name=currentValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,name=selector"` - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - AverageValue *resource.Quantity `json:"averageValue,omitempty" protobuf:"bytes,5,name=averageValue"` -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -type PodsMetricStatus struct { - // metricName is the name of the metric in question - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // currentAverageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - CurrentAverageValue resource.Quantity `json:"currentAverageValue" protobuf:"bytes,2,name=currentAverageValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,3,name=selector"` -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -type ResourceMetricStatus struct { - // name is the name of the resource in question. - Name v1.ResourceName `json:"name" protobuf:"bytes,1,name=name"` - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - CurrentAverageUtilization *int32 `json:"currentAverageUtilization,omitempty" protobuf:"bytes,2,opt,name=currentAverageUtilization"` - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - CurrentAverageValue resource.Quantity `json:"currentAverageValue" protobuf:"bytes,3,name=currentAverageValue"` -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -type ExternalMetricStatus struct { - // metricName is the name of a metric used for autoscaling in - // metric system. - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - MetricSelector *metav1.LabelSelector `json:"metricSelector,omitempty" protobuf:"bytes,2,opt,name=metricSelector"` - // currentValue is the current value of the metric (as a quantity) - CurrentValue resource.Quantity `json:"currentValue" protobuf:"bytes,3,name=currentValue"` - // currentAverageValue is the current value of metric averaged over autoscaled pods. - // +optional - CurrentAverageValue *resource.Quantity `json:"currentAverageValue,omitempty" protobuf:"bytes,4,opt,name=currentAverageValue"` -} diff --git a/pseudo/k8s/api/autoscaling/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/autoscaling/v1/types_swagger_doc_generated.go deleted file mode 100644 index 129ce2b48..000000000 --- a/pseudo/k8s/api/autoscaling/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,250 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_CrossVersionObjectReference = map[string]string{ - "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "kind": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "name": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "apiVersion": "API version of the referent", -} - -func (CrossVersionObjectReference) SwaggerDoc() map[string]string { - return map_CrossVersionObjectReference -} - -var map_ExternalMetricSource = map[string]string{ - "": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "metricName": "metricName is the name of the metric in question.", - "metricSelector": "metricSelector is used to identify a specific time series within a given metric.", - "targetValue": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.", - "targetAverageValue": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.", -} - -func (ExternalMetricSource) SwaggerDoc() map[string]string { - return map_ExternalMetricSource -} - -var map_ExternalMetricStatus = map[string]string{ - "": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "metricName": "metricName is the name of a metric used for autoscaling in metric system.", - "metricSelector": "metricSelector is used to identify a specific time series within a given metric.", - "currentValue": "currentValue is the current value of the metric (as a quantity)", - "currentAverageValue": "currentAverageValue is the current value of metric averaged over autoscaled pods.", -} - -func (ExternalMetricStatus) SwaggerDoc() map[string]string { - return map_ExternalMetricStatus -} - -var map_HorizontalPodAutoscaler = map[string]string{ - "": "configuration of a horizontal pod autoscaler.", - "metadata": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "current information about the autoscaler.", -} - -func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscaler -} - -var map_HorizontalPodAutoscalerCondition = map[string]string{ - "": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "type": "type describes the current condition", - "status": "status is the status of the condition (True, False, Unknown)", - "lastTransitionTime": "lastTransitionTime is the last time the condition transitioned from one status to another", - "reason": "reason is the reason for the condition's last transition.", - "message": "message is a human-readable explanation containing details about the transition", -} - -func (HorizontalPodAutoscalerCondition) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerCondition -} - -var map_HorizontalPodAutoscalerList = map[string]string{ - "": "list of horizontal pod autoscaler objects.", - "metadata": "Standard list metadata.", - "items": "list of horizontal pod autoscaler objects.", -} - -func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerList -} - -var map_HorizontalPodAutoscalerSpec = map[string]string{ - "": "specification of a horizontal pod autoscaler.", - "scaleTargetRef": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.", - "minReplicas": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "maxReplicas": "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", - "targetCPUUtilizationPercentage": "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", -} - -func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerSpec -} - -var map_HorizontalPodAutoscalerStatus = map[string]string{ - "": "current status of a horizontal pod autoscaler", - "observedGeneration": "most recent generation observed by this autoscaler.", - "lastScaleTime": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - "currentReplicas": "current number of replicas of pods managed by this autoscaler.", - "desiredReplicas": "desired number of replicas of pods managed by this autoscaler.", - "currentCPUUtilizationPercentage": "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", -} - -func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerStatus -} - -var map_MetricSpec = map[string]string{ - "": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "type": "type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.", - "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", -} - -func (MetricSpec) SwaggerDoc() map[string]string { - return map_MetricSpec -} - -var map_MetricStatus = map[string]string{ - "": "MetricStatus describes the last-read state of a single metric.", - "type": "type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.", - "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", -} - -func (MetricStatus) SwaggerDoc() map[string]string { - return map_MetricStatus -} - -var map_ObjectMetricSource = map[string]string{ - "": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "target": "target is the described Kubernetes object.", - "metricName": "metricName is the name of the metric in question.", - "targetValue": "targetValue is the target value of the metric (as a quantity).", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric. When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", - "averageValue": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", -} - -func (ObjectMetricSource) SwaggerDoc() map[string]string { - return map_ObjectMetricSource -} - -var map_ObjectMetricStatus = map[string]string{ - "": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "target": "target is the described Kubernetes object.", - "metricName": "metricName is the name of the metric in question.", - "currentValue": "currentValue is the current value of the metric (as a quantity).", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - "averageValue": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", -} - -func (ObjectMetricStatus) SwaggerDoc() map[string]string { - return map_ObjectMetricStatus -} - -var map_PodsMetricSource = map[string]string{ - "": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "metricName": "metricName is the name of the metric in question", - "targetAverageValue": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", -} - -func (PodsMetricSource) SwaggerDoc() map[string]string { - return map_PodsMetricSource -} - -var map_PodsMetricStatus = map[string]string{ - "": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "metricName": "metricName is the name of the metric in question", - "currentAverageValue": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", -} - -func (PodsMetricStatus) SwaggerDoc() map[string]string { - return map_PodsMetricStatus -} - -var map_ResourceMetricSource = map[string]string{ - "": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "name": "name is the name of the resource in question.", - "targetAverageUtilization": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "targetAverageValue": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", -} - -func (ResourceMetricSource) SwaggerDoc() map[string]string { - return map_ResourceMetricSource -} - -var map_ResourceMetricStatus = map[string]string{ - "": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "name": "name is the name of the resource in question.", - "currentAverageUtilization": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "currentAverageValue": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", -} - -func (ResourceMetricStatus) SwaggerDoc() map[string]string { - return map_ResourceMetricStatus -} - -var map_Scale = map[string]string{ - "": "Scale represents a scaling request for a resource.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "spec": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", -} - -func (Scale) SwaggerDoc() map[string]string { - return map_Scale -} - -var map_ScaleSpec = map[string]string{ - "": "ScaleSpec describes the attributes of a scale subresource.", - "replicas": "desired number of instances for the scaled object.", -} - -func (ScaleSpec) SwaggerDoc() map[string]string { - return map_ScaleSpec -} - -var map_ScaleStatus = map[string]string{ - "": "ScaleStatus represents the current status of a scale subresource.", - "replicas": "actual number of observed instances of the scaled object.", - "selector": "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors", -} - -func (ScaleStatus) SwaggerDoc() map[string]string { - return map_ScaleStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/autoscaling/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/autoscaling/v1/zz_generated.deepcopy.go deleted file mode 100644 index c71b98c89..000000000 --- a/pseudo/k8s/api/autoscaling/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,515 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference. -func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference { - if in == nil { - return nil - } - out := new(CrossVersionObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) { - *out = *in - if in.MetricSelector != nil { - in, out := &in.MetricSelector, &out.MetricSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.TargetValue != nil { - in, out := &in.TargetValue, &out.TargetValue - x := (*in).DeepCopy() - *out = &x - } - if in.TargetAverageValue != nil { - in, out := &in.TargetAverageValue, &out.TargetAverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource. -func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource { - if in == nil { - return nil - } - out := new(ExternalMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) { - *out = *in - if in.MetricSelector != nil { - in, out := &in.MetricSelector, &out.MetricSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - out.CurrentValue = in.CurrentValue.DeepCopy() - if in.CurrentAverageValue != nil { - in, out := &in.CurrentAverageValue, &out.CurrentAverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus. -func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus { - if in == nil { - return nil - } - out := new(ExternalMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler. -func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscaler) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition. -func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]HorizontalPodAutoscaler, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList. -func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) { - *out = *in - out.ScaleTargetRef = in.ScaleTargetRef - if in.MinReplicas != nil { - in, out := &in.MinReplicas, &out.MinReplicas - *out = new(int32) - **out = **in - } - if in.TargetCPUUtilizationPercentage != nil { - in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec. -func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) { - *out = *in - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = **in - } - if in.LastScaleTime != nil { - in, out := &in.LastScaleTime, &out.LastScaleTime - *out = (*in).DeepCopy() - } - if in.CurrentCPUUtilizationPercentage != nil { - in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus. -func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricSpec) DeepCopyInto(out *MetricSpec) { - *out = *in - if in.Object != nil { - in, out := &in.Object, &out.Object - *out = new(ObjectMetricSource) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(PodsMetricSource) - (*in).DeepCopyInto(*out) - } - if in.Resource != nil { - in, out := &in.Resource, &out.Resource - *out = new(ResourceMetricSource) - (*in).DeepCopyInto(*out) - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalMetricSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec. -func (in *MetricSpec) DeepCopy() *MetricSpec { - if in == nil { - return nil - } - out := new(MetricSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricStatus) DeepCopyInto(out *MetricStatus) { - *out = *in - if in.Object != nil { - in, out := &in.Object, &out.Object - *out = new(ObjectMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(PodsMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.Resource != nil { - in, out := &in.Resource, &out.Resource - *out = new(ResourceMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalMetricStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus. -func (in *MetricStatus) DeepCopy() *MetricStatus { - if in == nil { - return nil - } - out := new(MetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) { - *out = *in - out.Target = in.Target - out.TargetValue = in.TargetValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.AverageValue != nil { - in, out := &in.AverageValue, &out.AverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource. -func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource { - if in == nil { - return nil - } - out := new(ObjectMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) { - *out = *in - out.Target = in.Target - out.CurrentValue = in.CurrentValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.AverageValue != nil { - in, out := &in.AverageValue, &out.AverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus. -func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus { - if in == nil { - return nil - } - out := new(ObjectMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) { - *out = *in - out.TargetAverageValue = in.TargetAverageValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource. -func (in *PodsMetricSource) DeepCopy() *PodsMetricSource { - if in == nil { - return nil - } - out := new(PodsMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) { - *out = *in - out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus. -func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus { - if in == nil { - return nil - } - out := new(PodsMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) { - *out = *in - if in.TargetAverageUtilization != nil { - in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization - *out = new(int32) - **out = **in - } - if in.TargetAverageValue != nil { - in, out := &in.TargetAverageValue, &out.TargetAverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource. -func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource { - if in == nil { - return nil - } - out := new(ResourceMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) { - *out = *in - if in.CurrentAverageUtilization != nil { - in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization - *out = new(int32) - **out = **in - } - out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus. -func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus { - if in == nil { - return nil - } - out := new(ResourceMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Scale) DeepCopyInto(out *Scale) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale. -func (in *Scale) DeepCopy() *Scale { - if in == nil { - return nil - } - out := new(Scale) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Scale) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec. -func (in *ScaleSpec) DeepCopy() *ScaleSpec { - if in == nil { - return nil - } - out := new(ScaleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus. -func (in *ScaleStatus) DeepCopy() *ScaleStatus { - if in == nil { - return nil - } - out := new(ScaleStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/autoscaling/v2beta1/doc.go b/pseudo/k8s/api/autoscaling/v2beta1/doc.go deleted file mode 100644 index 79987054d..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v2beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta1" diff --git a/pseudo/k8s/api/autoscaling/v2beta1/generated.pb.go b/pseudo/k8s/api/autoscaling/v2beta1/generated.pb.go deleted file mode 100644 index 1b785fc26..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/generated.pb.go +++ /dev/null @@ -1,5121 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta1/generated.proto - -package v2beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } -func (*CrossVersionObjectReference) ProtoMessage() {} -func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{0} -} -func (m *CrossVersionObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CrossVersionObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CrossVersionObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_CrossVersionObjectReference.Merge(m, src) -} -func (m *CrossVersionObjectReference) XXX_Size() int { - return m.Size() -} -func (m *CrossVersionObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_CrossVersionObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_CrossVersionObjectReference proto.InternalMessageInfo - -func (m *ExternalMetricSource) Reset() { *m = ExternalMetricSource{} } -func (*ExternalMetricSource) ProtoMessage() {} -func (*ExternalMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{1} -} -func (m *ExternalMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExternalMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalMetricSource.Merge(m, src) -} -func (m *ExternalMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ExternalMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalMetricSource proto.InternalMessageInfo - -func (m *ExternalMetricStatus) Reset() { *m = ExternalMetricStatus{} } -func (*ExternalMetricStatus) ProtoMessage() {} -func (*ExternalMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{2} -} -func (m *ExternalMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExternalMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalMetricStatus.Merge(m, src) -} -func (m *ExternalMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ExternalMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalMetricStatus proto.InternalMessageInfo - -func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } -func (*HorizontalPodAutoscaler) ProtoMessage() {} -func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{3} -} -func (m *HorizontalPodAutoscaler) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscaler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscaler) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscaler.Merge(m, src) -} -func (m *HorizontalPodAutoscaler) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscaler) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscaler.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscaler proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} } -func (*HorizontalPodAutoscalerCondition) ProtoMessage() {} -func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{4} -} -func (m *HorizontalPodAutoscalerCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerCondition.Merge(m, src) -} -func (m *HorizontalPodAutoscalerCondition) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerCondition) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerCondition proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } -func (*HorizontalPodAutoscalerList) ProtoMessage() {} -func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{5} -} -func (m *HorizontalPodAutoscalerList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerList) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerList.Merge(m, src) -} -func (m *HorizontalPodAutoscalerList) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerList) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerList.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerList proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } -func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} -func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{6} -} -func (m *HorizontalPodAutoscalerSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerSpec.Merge(m, src) -} -func (m *HorizontalPodAutoscalerSpec) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerSpec) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerSpec proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } -func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} -func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{7} -} -func (m *HorizontalPodAutoscalerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerStatus.Merge(m, src) -} -func (m *HorizontalPodAutoscalerStatus) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerStatus proto.InternalMessageInfo - -func (m *MetricSpec) Reset() { *m = MetricSpec{} } -func (*MetricSpec) ProtoMessage() {} -func (*MetricSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{8} -} -func (m *MetricSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricSpec.Merge(m, src) -} -func (m *MetricSpec) XXX_Size() int { - return m.Size() -} -func (m *MetricSpec) XXX_DiscardUnknown() { - xxx_messageInfo_MetricSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricSpec proto.InternalMessageInfo - -func (m *MetricStatus) Reset() { *m = MetricStatus{} } -func (*MetricStatus) ProtoMessage() {} -func (*MetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{9} -} -func (m *MetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricStatus.Merge(m, src) -} -func (m *MetricStatus) XXX_Size() int { - return m.Size() -} -func (m *MetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_MetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricStatus proto.InternalMessageInfo - -func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} } -func (*ObjectMetricSource) ProtoMessage() {} -func (*ObjectMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{10} -} -func (m *ObjectMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetricSource.Merge(m, src) -} -func (m *ObjectMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMetricSource proto.InternalMessageInfo - -func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} } -func (*ObjectMetricStatus) ProtoMessage() {} -func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{11} -} -func (m *ObjectMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetricStatus.Merge(m, src) -} -func (m *ObjectMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMetricStatus proto.InternalMessageInfo - -func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} } -func (*PodsMetricSource) ProtoMessage() {} -func (*PodsMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{12} -} -func (m *PodsMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodsMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodsMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodsMetricSource.Merge(m, src) -} -func (m *PodsMetricSource) XXX_Size() int { - return m.Size() -} -func (m *PodsMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_PodsMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PodsMetricSource proto.InternalMessageInfo - -func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} } -func (*PodsMetricStatus) ProtoMessage() {} -func (*PodsMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{13} -} -func (m *PodsMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodsMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodsMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodsMetricStatus.Merge(m, src) -} -func (m *PodsMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *PodsMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PodsMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PodsMetricStatus proto.InternalMessageInfo - -func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} } -func (*ResourceMetricSource) ProtoMessage() {} -func (*ResourceMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{14} -} -func (m *ResourceMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMetricSource.Merge(m, src) -} -func (m *ResourceMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ResourceMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceMetricSource proto.InternalMessageInfo - -func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} } -func (*ResourceMetricStatus) ProtoMessage() {} -func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_26c1bfc7a52d0478, []int{15} -} -func (m *ResourceMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMetricStatus.Merge(m, src) -} -func (m *ResourceMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ResourceMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceMetricStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference") - proto.RegisterType((*ExternalMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ExternalMetricSource") - proto.RegisterType((*ExternalMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ExternalMetricStatus") - proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscaler") - proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerCondition") - proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerList") - proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerSpec") - proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v2beta1.HorizontalPodAutoscalerStatus") - proto.RegisterType((*MetricSpec)(nil), "k8s.io.api.autoscaling.v2beta1.MetricSpec") - proto.RegisterType((*MetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.MetricStatus") - proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ObjectMetricSource") - proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ObjectMetricStatus") - proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.PodsMetricSource") - proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.PodsMetricStatus") - proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2beta1.ResourceMetricSource") - proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta1.ResourceMetricStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta1/generated.proto", fileDescriptor_26c1bfc7a52d0478) -} - -var fileDescriptor_26c1bfc7a52d0478 = []byte{ - // 1475 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcb, 0x8f, 0x1b, 0x45, - 0x13, 0x5f, 0x3f, 0x76, 0xb3, 0x69, 0x6f, 0x76, 0xf7, 0xeb, 0x44, 0x89, 0xb3, 0xf9, 0x62, 0xaf, - 0x2c, 0x84, 0x42, 0x44, 0x66, 0x12, 0xb3, 0x3c, 0x24, 0x84, 0xc4, 0xda, 0x40, 0x12, 0xb1, 0x4e, - 0x42, 0xef, 0x26, 0x42, 0x90, 0x20, 0xda, 0x33, 0x1d, 0x6f, 0xb3, 0x9e, 0x19, 0x6b, 0xba, 0x6d, - 0x65, 0x83, 0x90, 0xb8, 0x70, 0xe7, 0x02, 0x67, 0x90, 0x38, 0x21, 0xb8, 0xc2, 0x99, 0x5b, 0x8e, - 0x39, 0x26, 0x02, 0x59, 0x64, 0xf8, 0x2f, 0x72, 0x42, 0xfd, 0x98, 0xf1, 0x8c, 0x1f, 0x6b, 0xc7, - 0x38, 0xe1, 0x71, 0x9b, 0xee, 0xaa, 0xfa, 0x55, 0x4f, 0xfd, 0xaa, 0xab, 0xbb, 0x1a, 0x5c, 0xdc, - 0x7b, 0x8d, 0x19, 0xd4, 0x33, 0xf7, 0xda, 0x75, 0xe2, 0xbb, 0x84, 0x13, 0x66, 0x76, 0x88, 0x6b, - 0x7b, 0xbe, 0xa9, 0x05, 0xb8, 0x45, 0x4d, 0xdc, 0xe6, 0x1e, 0xb3, 0x70, 0x93, 0xba, 0x0d, 0xb3, - 0x53, 0xae, 0x13, 0x8e, 0x2f, 0x98, 0x0d, 0xe2, 0x12, 0x1f, 0x73, 0x62, 0x1b, 0x2d, 0xdf, 0xe3, - 0x1e, 0x2c, 0x28, 0x7d, 0x03, 0xb7, 0xa8, 0x11, 0xd3, 0x37, 0xb4, 0xfe, 0xda, 0xb9, 0x06, 0xe5, - 0xbb, 0xed, 0xba, 0x61, 0x79, 0x8e, 0xd9, 0xf0, 0x1a, 0x9e, 0x29, 0xcd, 0xea, 0xed, 0xdb, 0x72, - 0x24, 0x07, 0xf2, 0x4b, 0xc1, 0xad, 0x95, 0x62, 0xee, 0x2d, 0xcf, 0x27, 0x66, 0x67, 0xc0, 0xe5, - 0xda, 0x46, 0x4f, 0xc7, 0xc1, 0xd6, 0x2e, 0x75, 0x89, 0xbf, 0x6f, 0xb6, 0xf6, 0x1a, 0xd2, 0xc8, - 0x27, 0xcc, 0x6b, 0xfb, 0x16, 0x79, 0x22, 0x2b, 0x66, 0x3a, 0x84, 0xe3, 0x61, 0xbe, 0xcc, 0x51, - 0x56, 0x7e, 0xdb, 0xe5, 0xd4, 0x19, 0x74, 0xf3, 0xca, 0x38, 0x03, 0x66, 0xed, 0x12, 0x07, 0xf7, - 0xdb, 0x95, 0xbe, 0x4a, 0x81, 0x53, 0x55, 0xdf, 0x63, 0xec, 0x06, 0xf1, 0x19, 0xf5, 0xdc, 0xab, - 0xf5, 0x4f, 0x88, 0xc5, 0x11, 0xb9, 0x4d, 0x7c, 0xe2, 0x5a, 0x04, 0xae, 0x83, 0xec, 0x1e, 0x75, - 0xed, 0x7c, 0x6a, 0x3d, 0x75, 0xe6, 0x70, 0x65, 0xe9, 0x5e, 0xb7, 0x38, 0x17, 0x74, 0x8b, 0xd9, - 0x77, 0xa9, 0x6b, 0x23, 0x29, 0x11, 0x1a, 0x2e, 0x76, 0x48, 0x3e, 0x9d, 0xd4, 0xb8, 0x82, 0x1d, - 0x82, 0xa4, 0x04, 0x96, 0x01, 0xc0, 0x2d, 0xaa, 0x1d, 0xe4, 0x33, 0x52, 0x0f, 0x6a, 0x3d, 0xb0, - 0x79, 0xed, 0xb2, 0x96, 0xa0, 0x98, 0x56, 0xe9, 0xeb, 0x0c, 0x38, 0xf6, 0xf6, 0x1d, 0x4e, 0x7c, - 0x17, 0x37, 0x6b, 0x84, 0xfb, 0xd4, 0xda, 0x96, 0xf1, 0x15, 0x60, 0x8e, 0x1c, 0x0b, 0x07, 0x7a, - 0x59, 0x11, 0x58, 0x2d, 0x92, 0xa0, 0x98, 0x16, 0xf4, 0xc0, 0xb2, 0x1a, 0x6d, 0x93, 0x26, 0xb1, - 0xb8, 0xe7, 0xcb, 0xc5, 0xe6, 0xca, 0x2f, 0x19, 0xbd, 0x2c, 0x8a, 0xa2, 0x66, 0xb4, 0xf6, 0x1a, - 0x62, 0x82, 0x19, 0x82, 0x1c, 0xa3, 0x73, 0xc1, 0xd8, 0xc2, 0x75, 0xd2, 0x0c, 0x4d, 0x2b, 0x30, - 0xe8, 0x16, 0x97, 0x6b, 0x09, 0x38, 0xd4, 0x07, 0x0f, 0x31, 0xc8, 0x71, 0xec, 0x37, 0x08, 0xbf, - 0x81, 0x9b, 0x6d, 0x22, 0x7f, 0x39, 0x57, 0x36, 0x0e, 0xf2, 0x66, 0x84, 0x09, 0x64, 0xbc, 0xd7, - 0xc6, 0x2e, 0xa7, 0x7c, 0xbf, 0xb2, 0x12, 0x74, 0x8b, 0xb9, 0x9d, 0x1e, 0x0c, 0x8a, 0x63, 0xc2, - 0x0e, 0x80, 0x6a, 0xb8, 0xd9, 0x21, 0x3e, 0x6e, 0x10, 0xe5, 0x29, 0x3b, 0x95, 0xa7, 0xe3, 0x41, - 0xb7, 0x08, 0x77, 0x06, 0xd0, 0xd0, 0x10, 0x0f, 0xa5, 0x6f, 0x06, 0x89, 0xe1, 0x98, 0xb7, 0xd9, - 0xbf, 0x83, 0x98, 0x5d, 0xb0, 0x64, 0xb5, 0x7d, 0x9f, 0xb8, 0x7f, 0x89, 0x99, 0x63, 0xfa, 0xb7, - 0x96, 0xaa, 0x31, 0x2c, 0x94, 0x40, 0x86, 0xfb, 0xe0, 0xa8, 0x1e, 0xcf, 0x80, 0xa0, 0x13, 0x41, - 0xb7, 0x78, 0xb4, 0x3a, 0x08, 0x87, 0x86, 0xf9, 0x28, 0xfd, 0x92, 0x06, 0x27, 0x2e, 0x79, 0x3e, - 0xbd, 0xeb, 0xb9, 0x1c, 0x37, 0xaf, 0x79, 0xf6, 0xa6, 0x2e, 0x90, 0xc4, 0x87, 0x1f, 0x83, 0x45, - 0x11, 0x3d, 0x1b, 0x73, 0x2c, 0x39, 0xca, 0x95, 0xcf, 0x4f, 0x16, 0x6b, 0x55, 0x18, 0x6a, 0x84, - 0xe3, 0x1e, 0xab, 0xbd, 0x39, 0x14, 0xa1, 0xc2, 0x5b, 0x20, 0xcb, 0x5a, 0xc4, 0xd2, 0x4c, 0xbe, - 0x6e, 0x1c, 0x5c, 0xa8, 0x8d, 0x11, 0x0b, 0xdd, 0x6e, 0x11, 0xab, 0x57, 0x4c, 0xc4, 0x08, 0x49, - 0x58, 0x48, 0xc0, 0x02, 0x93, 0x09, 0xa7, 0xb9, 0x7b, 0x63, 0x5a, 0x07, 0x12, 0xa4, 0xb2, 0xac, - 0x5d, 0x2c, 0xa8, 0x31, 0xd2, 0xe0, 0xa5, 0x2f, 0x32, 0x60, 0x7d, 0x84, 0x65, 0xd5, 0x73, 0x6d, - 0xca, 0xa9, 0xe7, 0xc2, 0x4b, 0x20, 0xcb, 0xf7, 0x5b, 0x61, 0xb2, 0x6f, 0x84, 0xab, 0xdd, 0xd9, - 0x6f, 0x91, 0xc7, 0xdd, 0xe2, 0x73, 0xe3, 0xec, 0x85, 0x1e, 0x92, 0x08, 0x70, 0x2b, 0xfa, 0xab, - 0x74, 0x02, 0x4b, 0x2f, 0xeb, 0x71, 0xb7, 0x38, 0xe4, 0x84, 0x32, 0x22, 0xa4, 0xe4, 0xe2, 0x45, - 0x6d, 0x68, 0x62, 0xc6, 0x77, 0x7c, 0xec, 0x32, 0xe5, 0x89, 0x3a, 0x61, 0xae, 0x9f, 0x9d, 0x8c, - 0x6e, 0x61, 0x51, 0x59, 0xd3, 0xab, 0x80, 0x5b, 0x03, 0x68, 0x68, 0x88, 0x07, 0xf8, 0x3c, 0x58, - 0xf0, 0x09, 0x66, 0x9e, 0x2b, 0xd3, 0xfc, 0x70, 0x2f, 0xb8, 0x48, 0xce, 0x22, 0x2d, 0x85, 0x2f, - 0x80, 0x43, 0x0e, 0x61, 0x0c, 0x37, 0x48, 0x7e, 0x5e, 0x2a, 0xae, 0x68, 0xc5, 0x43, 0x35, 0x35, - 0x8d, 0x42, 0x79, 0xe9, 0x61, 0x0a, 0x9c, 0x1a, 0x11, 0xc7, 0x2d, 0xca, 0x38, 0xbc, 0x39, 0x90, - 0xcf, 0xc6, 0x84, 0xb5, 0x83, 0x32, 0x95, 0xcd, 0xab, 0xda, 0xf7, 0x62, 0x38, 0x13, 0xcb, 0xe5, - 0x9b, 0x60, 0x9e, 0x72, 0xe2, 0x08, 0x56, 0x32, 0x67, 0x72, 0xe5, 0x57, 0xa7, 0xcc, 0xb5, 0xca, - 0x11, 0xed, 0x63, 0xfe, 0xb2, 0x40, 0x43, 0x0a, 0xb4, 0xf4, 0x6b, 0x7a, 0xe4, 0xbf, 0x89, 0x84, - 0x87, 0x9f, 0x82, 0x65, 0x39, 0x52, 0x95, 0x19, 0x91, 0xdb, 0xfa, 0x0f, 0xc7, 0xee, 0xa9, 0x03, - 0x0e, 0xf4, 0xca, 0x71, 0xbd, 0x94, 0xe5, 0xed, 0x04, 0x34, 0xea, 0x73, 0x05, 0x2f, 0x80, 0x9c, - 0x43, 0x5d, 0x44, 0x5a, 0x4d, 0x6a, 0x61, 0x95, 0x96, 0xf3, 0xea, 0x48, 0xaa, 0xf5, 0xa6, 0x51, - 0x5c, 0x07, 0xbe, 0x0c, 0x72, 0x0e, 0xbe, 0x13, 0x99, 0x64, 0xa4, 0xc9, 0x51, 0xed, 0x2f, 0x57, - 0xeb, 0x89, 0x50, 0x5c, 0x0f, 0x5e, 0x17, 0xd9, 0x20, 0xaa, 0x34, 0xcb, 0x67, 0x65, 0x98, 0xcf, - 0x8e, 0xfb, 0x3f, 0x5d, 0xe4, 0x45, 0x89, 0x88, 0x65, 0x8e, 0x84, 0x40, 0x21, 0x56, 0xe9, 0xa7, - 0x2c, 0x38, 0x7d, 0xe0, 0xde, 0x87, 0xef, 0x00, 0xe8, 0xd5, 0x19, 0xf1, 0x3b, 0xc4, 0xbe, 0xa8, - 0xae, 0x45, 0xe2, 0x7e, 0x22, 0x62, 0x9c, 0x51, 0x47, 0xe2, 0xd5, 0x01, 0x29, 0x1a, 0x62, 0x01, - 0x2d, 0x70, 0x44, 0x6c, 0x06, 0x15, 0x50, 0xaa, 0xaf, 0x42, 0x4f, 0xb6, 0xd3, 0xfe, 0x17, 0x74, - 0x8b, 0x47, 0xb6, 0xe2, 0x20, 0x28, 0x89, 0x09, 0x37, 0xc1, 0x8a, 0xae, 0xf5, 0x7d, 0x01, 0x3e, - 0xa1, 0x23, 0xb0, 0x52, 0x4d, 0x8a, 0x51, 0xbf, 0xbe, 0x80, 0xb0, 0x09, 0xa3, 0x3e, 0xb1, 0x23, - 0x88, 0x6c, 0x12, 0xe2, 0xad, 0xa4, 0x18, 0xf5, 0xeb, 0xc3, 0x26, 0x58, 0xd6, 0xa8, 0x3a, 0xde, - 0xf9, 0x79, 0x49, 0xd9, 0x8b, 0x13, 0x52, 0xa6, 0x8a, 0x6e, 0x94, 0x83, 0xd5, 0x04, 0x16, 0xea, - 0xc3, 0x86, 0x1c, 0x00, 0x2b, 0x2c, 0x71, 0x2c, 0xbf, 0x20, 0x3d, 0xbd, 0x39, 0xe5, 0x1e, 0x8c, - 0x6a, 0x65, 0xef, 0xf8, 0x8a, 0xa6, 0x18, 0x8a, 0xf9, 0x29, 0x7d, 0x9f, 0x01, 0xa0, 0x97, 0x61, - 0x70, 0x23, 0x51, 0xe4, 0xd7, 0xfb, 0x8a, 0xfc, 0x6a, 0xfc, 0x72, 0x1a, 0x2b, 0xe8, 0x37, 0xc0, - 0x82, 0x27, 0x77, 0x9e, 0x4e, 0x86, 0xf2, 0xb8, 0x65, 0x47, 0x67, 0x69, 0x84, 0x56, 0x01, 0xa2, - 0x74, 0xea, 0xfd, 0xab, 0xd1, 0xe0, 0x15, 0x90, 0x6d, 0x79, 0x76, 0x78, 0xf8, 0x9d, 0x1f, 0x87, - 0x7a, 0xcd, 0xb3, 0x59, 0x02, 0x73, 0x51, 0xac, 0x5d, 0xcc, 0x22, 0x89, 0x03, 0x3f, 0x02, 0x8b, - 0xe1, 0x75, 0x43, 0xdf, 0x4d, 0x36, 0xc6, 0x61, 0x22, 0xad, 0x9f, 0xc0, 0x5d, 0x12, 0x15, 0x34, - 0x94, 0xa0, 0x08, 0x53, 0xe0, 0x13, 0x7d, 0x5b, 0x94, 0xb5, 0x7e, 0x02, 0xfc, 0x61, 0xd7, 0x7e, - 0x85, 0x1f, 0x4a, 0x50, 0x84, 0x59, 0xfa, 0x21, 0x03, 0x96, 0x12, 0xd7, 0xd0, 0xbf, 0x83, 0x2e, - 0x95, 0xd5, 0xb3, 0xa5, 0x4b, 0x61, 0xce, 0x9e, 0x2e, 0x85, 0xfb, 0xf4, 0xe8, 0x8a, 0xe1, 0x0f, - 0xa1, 0xeb, 0x61, 0x06, 0xc0, 0xc1, 0x4c, 0x87, 0x16, 0x58, 0x50, 0xad, 0xc6, 0x2c, 0x4e, 0xb8, - 0xe8, 0xd6, 0xa1, 0x0f, 0x33, 0x0d, 0xdd, 0xd7, 0xa0, 0xa4, 0x27, 0x6a, 0x50, 0xc8, 0x2c, 0x1a, - 0xb9, 0xe8, 0x08, 0x1c, 0xd9, 0xcc, 0xdd, 0x02, 0x8b, 0x2c, 0xec, 0x80, 0xb2, 0xd3, 0x77, 0x40, - 0x32, 0xea, 0x51, 0xef, 0x13, 0x41, 0x42, 0x1b, 0x2c, 0xe1, 0x78, 0x13, 0x32, 0x3f, 0xd5, 0x6f, - 0xac, 0x8a, 0x8e, 0x27, 0xd1, 0x7d, 0x24, 0x50, 0x4b, 0xbf, 0xf5, 0x73, 0xab, 0x36, 0xe4, 0x3f, - 0x96, 0xdb, 0x67, 0xd7, 0x0b, 0xfe, 0x27, 0xe8, 0xfd, 0x36, 0x0d, 0x56, 0xfb, 0x8f, 0x93, 0xa9, - 0x9a, 0xfe, 0xbb, 0x43, 0x5f, 0x2e, 0xd2, 0x53, 0x2d, 0x3a, 0xea, 0x50, 0x26, 0x7b, 0xbd, 0x48, - 0x30, 0x91, 0x99, 0x39, 0x13, 0xa5, 0xef, 0x92, 0x31, 0x9a, 0xfe, 0x61, 0xe4, 0xb3, 0xe1, 0xaf, - 0x07, 0xd3, 0x05, 0xe9, 0x94, 0x76, 0x36, 0xf1, 0x0b, 0xc2, 0xd3, 0x0e, 0xd3, 0x8f, 0x69, 0x70, - 0x6c, 0xd8, 0x2d, 0x02, 0x56, 0xf5, 0x5b, 0xa2, 0x0a, 0x92, 0x19, 0x7f, 0x4b, 0x7c, 0xdc, 0x2d, - 0x16, 0x87, 0xb4, 0xc0, 0x21, 0x4c, 0xec, 0xb9, 0xf1, 0x7d, 0x90, 0x4f, 0x30, 0x7f, 0x9d, 0xd3, - 0x26, 0xbd, 0xab, 0x2e, 0xf7, 0xaa, 0x8d, 0xf9, 0x7f, 0xd0, 0x2d, 0xe6, 0x77, 0x46, 0xe8, 0xa0, - 0x91, 0xd6, 0x23, 0xde, 0xdc, 0x32, 0x4f, 0xfd, 0xcd, 0xed, 0xe7, 0xc1, 0x78, 0xa9, 0xd4, 0x9a, - 0x49, 0xbc, 0x3e, 0x04, 0x27, 0x93, 0x39, 0x30, 0x18, 0xb0, 0xd3, 0x41, 0xb7, 0x78, 0xb2, 0x3a, - 0x4a, 0x09, 0x8d, 0xb6, 0x1f, 0x95, 0xc8, 0x99, 0x67, 0x93, 0xc8, 0x95, 0x73, 0xf7, 0x1e, 0x15, - 0xe6, 0xee, 0x3f, 0x2a, 0xcc, 0x3d, 0x78, 0x54, 0x98, 0xfb, 0x3c, 0x28, 0xa4, 0xee, 0x05, 0x85, - 0xd4, 0xfd, 0xa0, 0x90, 0x7a, 0x10, 0x14, 0x52, 0xbf, 0x07, 0x85, 0xd4, 0x97, 0x7f, 0x14, 0xe6, - 0x3e, 0x38, 0xa4, 0x8f, 0x9e, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x05, 0x26, 0x31, 0x5d, 0x9f, - 0x18, 0x00, 0x00, -} - -func (m *CrossVersionObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CrossVersionObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CrossVersionObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x1a - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExternalMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TargetAverageValue != nil { - { - size, err := m.TargetAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.TargetValue != nil { - { - size, err := m.TargetValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.MetricSelector != nil { - { - size, err := m.MetricSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExternalMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CurrentAverageValue != nil { - { - size, err := m.CurrentAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.MetricSelector != nil { - { - size, err := m.MetricSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscaler) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscaler) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Metrics) > 0 { - for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas)) - i-- - dAtA[i] = 0x18 - if m.MinReplicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.MinReplicas)) - i-- - dAtA[i] = 0x10 - } - { - size, err := m.ScaleTargetRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.CurrentMetrics) > 0 { - for iNdEx := len(m.CurrentMetrics) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CurrentMetrics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) - i-- - dAtA[i] = 0x18 - if m.LastScaleTime != nil { - { - size, err := m.LastScaleTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ObservedGeneration != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MetricSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.External != nil { - { - size, err := m.External.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Pods != nil { - { - size, err := m.Pods.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.External != nil { - { - size, err := m.External.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Pods != nil { - { - size, err := m.Pods.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AverageValue != nil { - { - size, err := m.AverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.TargetValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AverageValue != nil { - { - size, err := m.AverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodsMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodsMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodsMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.TargetAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodsMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodsMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodsMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.CurrentAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.MetricName) - copy(dAtA[i:], m.MetricName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MetricName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TargetAverageValue != nil { - { - size, err := m.TargetAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.TargetAverageUtilization != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TargetAverageUtilization)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.CurrentAverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.CurrentAverageUtilization != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CurrentAverageUtilization)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CrossVersionObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ExternalMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - if m.MetricSelector != nil { - l = m.MetricSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TargetValue != nil { - l = m.TargetValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TargetAverageValue != nil { - l = m.TargetAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ExternalMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - if m.MetricSelector != nil { - l = m.MetricSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.CurrentValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.CurrentAverageValue != nil { - l = m.CurrentAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *HorizontalPodAutoscaler) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscalerCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscalerList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HorizontalPodAutoscalerSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ScaleTargetRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.MinReplicas != nil { - n += 1 + sovGenerated(uint64(*m.MinReplicas)) - } - n += 1 + sovGenerated(uint64(m.MaxReplicas)) - if len(m.Metrics) > 0 { - for _, e := range m.Metrics { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HorizontalPodAutoscalerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObservedGeneration != nil { - n += 1 + sovGenerated(uint64(*m.ObservedGeneration)) - } - if m.LastScaleTime != nil { - l = m.LastScaleTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.CurrentReplicas)) - n += 1 + sovGenerated(uint64(m.DesiredReplicas)) - if len(m.CurrentMetrics) > 0 { - for _, e := range m.CurrentMetrics { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *MetricSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pods != nil { - l = m.Pods.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.External != nil { - l = m.External.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pods != nil { - l = m.Pods.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.External != nil { - l = m.External.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ObjectMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.TargetValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageValue != nil { - l = m.AverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ObjectMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.CurrentValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageValue != nil { - l = m.AverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodsMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.TargetAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodsMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MetricName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.CurrentAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ResourceMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.TargetAverageUtilization != nil { - n += 1 + sovGenerated(uint64(*m.TargetAverageUtilization)) - } - if m.TargetAverageValue != nil { - l = m.TargetAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ResourceMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.CurrentAverageUtilization != nil { - n += 1 + sovGenerated(uint64(*m.CurrentAverageUtilization)) - } - l = m.CurrentAverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CrossVersionObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CrossVersionObjectReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalMetricSource{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `TargetValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetValue), "Quantity", "resource.Quantity", 1) + `,`, - `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalMetricStatus{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `MetricSelector:` + strings.Replace(fmt.Sprintf("%v", this.MetricSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `CurrentValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `CurrentAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscaler) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscaler{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscalerCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]HorizontalPodAutoscaler{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForMetrics := "[]MetricSpec{" - for _, f := range this.Metrics { - repeatedStringForMetrics += strings.Replace(strings.Replace(f.String(), "MetricSpec", "MetricSpec", 1), `&`, ``, 1) + "," - } - repeatedStringForMetrics += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`, - `ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`, - `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`, - `Metrics:` + repeatedStringForMetrics + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForCurrentMetrics := "[]MetricStatus{" - for _, f := range this.CurrentMetrics { - repeatedStringForCurrentMetrics += strings.Replace(strings.Replace(f.String(), "MetricStatus", "MetricStatus", 1), `&`, ``, 1) + "," - } - repeatedStringForCurrentMetrics += "}" - repeatedStringForConditions := "[]HorizontalPodAutoscalerCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "HorizontalPodAutoscalerCondition", "HorizontalPodAutoscalerCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`, - `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, - `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "v1.Time", 1) + `,`, - `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, - `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`, - `CurrentMetrics:` + repeatedStringForCurrentMetrics + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *MetricSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricSpec{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(this.Object.String(), "ObjectMetricSource", "ObjectMetricSource", 1) + `,`, - `Pods:` + strings.Replace(this.Pods.String(), "PodsMetricSource", "PodsMetricSource", 1) + `,`, - `Resource:` + strings.Replace(this.Resource.String(), "ResourceMetricSource", "ResourceMetricSource", 1) + `,`, - `External:` + strings.Replace(this.External.String(), "ExternalMetricSource", "ExternalMetricSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricStatus{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(this.Object.String(), "ObjectMetricStatus", "ObjectMetricStatus", 1) + `,`, - `Pods:` + strings.Replace(this.Pods.String(), "PodsMetricStatus", "PodsMetricStatus", 1) + `,`, - `Resource:` + strings.Replace(this.Resource.String(), "ResourceMetricStatus", "ResourceMetricStatus", 1) + `,`, - `External:` + strings.Replace(this.External.String(), "ExternalMetricStatus", "ExternalMetricStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectMetricSource{`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `TargetValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TargetValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectMetricStatus{`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `CurrentValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodsMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodsMetricSource{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `TargetAverageValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodsMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodsMetricStatus{`, - `MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`, - `CurrentAverageValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceMetricSource{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `TargetAverageUtilization:` + valueToStringGenerated(this.TargetAverageUtilization) + `,`, - `TargetAverageValue:` + strings.Replace(fmt.Sprintf("%v", this.TargetAverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceMetricStatus{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `CurrentAverageUtilization:` + valueToStringGenerated(this.CurrentAverageUtilization) + `,`, - `CurrentAverageValue:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CurrentAverageValue), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CrossVersionObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CrossVersionObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MetricSelector == nil { - m.MetricSelector = &v1.LabelSelector{} - } - if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetValue == nil { - m.TargetValue = &resource.Quantity{} - } - if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetAverageValue == nil { - m.TargetAverageValue = &resource.Quantity{} - } - if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MetricSelector == nil { - m.MetricSelector = &v1.LabelSelector{} - } - if err := m.MetricSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentAverageValue == nil { - m.CurrentAverageValue = &resource.Quantity{} - } - if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = HorizontalPodAutoscalerConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, HorizontalPodAutoscaler{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScaleTargetRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ScaleTargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReplicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.MinReplicas = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType) - } - m.MaxReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Metrics = append(m.Metrics, MetricSpec{}) - if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ObservedGeneration = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastScaleTime == nil { - m.LastScaleTime = &v1.Time{} - } - if err := m.LastScaleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType) - } - m.DesiredReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentMetrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentMetrics = append(m.CurrentMetrics, MetricStatus{}) - if err := m.CurrentMetrics[len(m.CurrentMetrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, HorizontalPodAutoscalerCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &ObjectMetricSource{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pods == nil { - m.Pods = &PodsMetricSource{} - } - if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &ResourceMetricSource{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.External == nil { - m.External = &ExternalMetricSource{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &ObjectMetricStatus{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pods == nil { - m.Pods = &PodsMetricStatus{} - } - if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &ResourceMetricStatus{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.External == nil { - m.External = &ExternalMetricStatus{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AverageValue == nil { - m.AverageValue = &resource.Quantity{} - } - if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AverageValue == nil { - m.AverageValue = &resource.Quantity{} - } - if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodsMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodsMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodsMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodsMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetricName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageUtilization", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TargetAverageUtilization = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetAverageValue == nil { - m.TargetAverageValue = &resource.Quantity{} - } - if err := m.TargetAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageUtilization", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CurrentAverageUtilization = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentAverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CurrentAverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/autoscaling/v2beta1/generated.proto b/pseudo/k8s/api/autoscaling/v2beta1/generated.proto deleted file mode 100644 index 6c1ca6acf..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/generated.proto +++ /dev/null @@ -1,400 +0,0 @@ -/* -Copyright 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.autoscaling.v2beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v2beta1"; - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -message CrossVersionObjectReference { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - optional string kind = 1; - - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - optional string name = 2; - - // API version of the referent - // +optional - optional string apiVersion = 3; -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -// Exactly one "target" type should be set. -message ExternalMetricSource { - // metricName is the name of the metric in question. - optional string metricName = 1; - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; - - // targetValue is the target value of the metric (as a quantity). - // Mutually exclusive with TargetAverageValue. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; - - // targetAverageValue is the target per-pod value of global metric (as a quantity). - // Mutually exclusive with TargetValue. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -message ExternalMetricStatus { - // metricName is the name of a metric used for autoscaling in - // metric system. - optional string metricName = 1; - - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; - - // currentValue is the current value of the metric (as a quantity) - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3; - - // currentAverageValue is the current value of metric averaged over autoscaled pods. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 4; -} - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -message HorizontalPodAutoscaler { - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional HorizontalPodAutoscalerSpec spec = 2; - - // status is the current information about the autoscaler. - // +optional - optional HorizontalPodAutoscalerStatus status = 3; -} - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -message HorizontalPodAutoscalerCondition { - // type describes the current condition - optional string type = 1; - - // status is the status of the condition (True, False, Unknown) - optional string status = 2; - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // reason is the reason for the condition's last transition. - // +optional - optional string reason = 4; - - // message is a human-readable explanation containing details about - // the transition - // +optional - optional string message = 5; -} - -// HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. -message HorizontalPodAutoscalerList { - // metadata is the standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of horizontal pod autoscaler objects. - repeated HorizontalPodAutoscaler items = 2; -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -message HorizontalPodAutoscalerSpec { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - optional CrossVersionObjectReference scaleTargetRef = 1; - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - optional int32 minReplicas = 2; - - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - optional int32 maxReplicas = 3; - - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // +optional - repeated MetricSpec metrics = 4; -} - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -message HorizontalPodAutoscalerStatus { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - optional int64 observedGeneration = 1; - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - optional int32 currentReplicas = 3; - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - optional int32 desiredReplicas = 4; - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +optional - repeated MetricStatus currentMetrics = 5; - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - repeated HorizontalPodAutoscalerCondition conditions = 6; -} - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -message MetricSpec { - // type is the type of metric source. It should be one of "Object", - // "Pods" or "Resource", each mapping to a matching field in the object. - optional string type = 1; - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - optional ObjectMetricSource object = 2; - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - optional PodsMetricSource pods = 3; - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - optional ResourceMetricSource resource = 4; - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - optional ExternalMetricSource external = 5; -} - -// MetricStatus describes the last-read state of a single metric. -message MetricStatus { - // type is the type of metric source. It will be one of "Object", - // "Pods" or "Resource", each corresponds to a matching field in the object. - optional string type = 1; - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - optional ObjectMetricStatus object = 2; - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - optional PodsMetricStatus pods = 3; - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - optional ResourceMetricStatus resource = 4; - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - optional ExternalMetricStatus external = 5; -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -message ObjectMetricSource { - // target is the described Kubernetes object. - optional CrossVersionObjectReference target = 1; - - // metricName is the name of the metric in question. - optional string metricName = 2; - - // targetValue is the target value of the metric (as a quantity). - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5; -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -message ObjectMetricStatus { - // target is the described Kubernetes object. - optional CrossVersionObjectReference target = 1; - - // metricName is the name of the metric in question. - optional string metricName = 2; - - // currentValue is the current value of the metric (as a quantity). - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentValue = 3; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5; -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -message PodsMetricSource { - // metricName is the name of the metric in question - optional string metricName = 1; - - // targetAverageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3; -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -message PodsMetricStatus { - // metricName is the name of the metric in question - optional string metricName = 1; - - // currentAverageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 2; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3; -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -message ResourceMetricSource { - // name is the name of the resource in question. - optional string name = 1; - - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - optional int32 targetAverageUtilization = 2; - - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -message ResourceMetricStatus { - // name is the name of the resource in question. - optional string name = 1; - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - optional int32 currentAverageUtilization = 2; - - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - optional k8s.io.apimachinery.pkg.api.resource.Quantity currentAverageValue = 3; -} - diff --git a/pseudo/k8s/api/autoscaling/v2beta1/register.go b/pseudo/k8s/api/autoscaling/v2beta1/register.go deleted file mode 100644 index 01a123576..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -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 v2beta1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "autoscaling" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2beta1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &HorizontalPodAutoscaler{}, - &HorizontalPodAutoscalerList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/autoscaling/v2beta1/types.go b/pseudo/k8s/api/autoscaling/v2beta1/types.go deleted file mode 100644 index e0fec29d1..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/types.go +++ /dev/null @@ -1,408 +0,0 @@ -/* -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 v2beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -type CrossVersionObjectReference struct { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - // API version of the referent - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -type HorizontalPodAutoscalerSpec struct { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"` - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"` - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"` - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // +optional - Metrics []MetricSpec `json:"metrics,omitempty" protobuf:"bytes,4,rep,name=metrics"` -} - -// MetricSourceType indicates the type of metric. -type MetricSourceType string - -var ( - // ObjectMetricSourceType is a metric describing a kubernetes object - // (for example, hits-per-second on an Ingress object). - ObjectMetricSourceType MetricSourceType = "Object" - // PodsMetricSourceType is a metric describing each pod in the current scale - // target (for example, transactions-processed-per-second). The values - // will be averaged together before being compared to the target value. - PodsMetricSourceType MetricSourceType = "Pods" - // ResourceMetricSourceType is a resource metric known to Kubernetes, as - // specified in requests and limits, describing each pod in the current - // scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics (the "pods" source). - ResourceMetricSourceType MetricSourceType = "Resource" - // ExternalMetricSourceType is a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - ExternalMetricSourceType MetricSourceType = "External" -) - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -type MetricSpec struct { - // type is the type of metric source. It should be one of "Object", - // "Pods" or "Resource", each mapping to a matching field in the object. - Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - Object *ObjectMetricSource `json:"object,omitempty" protobuf:"bytes,2,opt,name=object"` - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - Pods *PodsMetricSource `json:"pods,omitempty" protobuf:"bytes,3,opt,name=pods"` - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - Resource *ResourceMetricSource `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"` - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - External *ExternalMetricSource `json:"external,omitempty" protobuf:"bytes,5,opt,name=external"` -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -type ObjectMetricSource struct { - // target is the described Kubernetes object. - Target CrossVersionObjectReference `json:"target" protobuf:"bytes,1,name=target"` - - // metricName is the name of the metric in question. - MetricName string `json:"metricName" protobuf:"bytes,2,name=metricName"` - // targetValue is the target value of the metric (as a quantity). - TargetValue resource.Quantity `json:"targetValue" protobuf:"bytes,3,name=targetValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,name=selector"` - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - AverageValue *resource.Quantity `json:"averageValue,omitempty" protobuf:"bytes,5,name=averageValue"` -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -type PodsMetricSource struct { - // metricName is the name of the metric in question - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // targetAverageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - TargetAverageValue resource.Quantity `json:"targetAverageValue" protobuf:"bytes,2,name=targetAverageValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,3,name=selector"` -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -type ResourceMetricSource struct { - // name is the name of the resource in question. - Name v1.ResourceName `json:"name" protobuf:"bytes,1,name=name"` - // targetAverageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - TargetAverageUtilization *int32 `json:"targetAverageUtilization,omitempty" protobuf:"varint,2,opt,name=targetAverageUtilization"` - // targetAverageValue is the target value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // +optional - TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty" protobuf:"bytes,3,opt,name=targetAverageValue"` -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -// Exactly one "target" type should be set. -type ExternalMetricSource struct { - // metricName is the name of the metric in question. - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - MetricSelector *metav1.LabelSelector `json:"metricSelector,omitempty" protobuf:"bytes,2,opt,name=metricSelector"` - // targetValue is the target value of the metric (as a quantity). - // Mutually exclusive with TargetAverageValue. - // +optional - TargetValue *resource.Quantity `json:"targetValue,omitempty" protobuf:"bytes,3,opt,name=targetValue"` - // targetAverageValue is the target per-pod value of global metric (as a quantity). - // Mutually exclusive with TargetValue. - // +optional - TargetAverageValue *resource.Quantity `json:"targetAverageValue,omitempty" protobuf:"bytes,4,opt,name=targetAverageValue"` -} - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -type HorizontalPodAutoscalerStatus struct { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty" protobuf:"bytes,2,opt,name=lastScaleTime"` - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - CurrentReplicas int32 `json:"currentReplicas" protobuf:"varint,3,opt,name=currentReplicas"` - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - DesiredReplicas int32 `json:"desiredReplicas" protobuf:"varint,4,opt,name=desiredReplicas"` - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +optional - CurrentMetrics []MetricStatus `json:"currentMetrics" protobuf:"bytes,5,rep,name=currentMetrics"` - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - Conditions []HorizontalPodAutoscalerCondition `json:"conditions" protobuf:"bytes,6,rep,name=conditions"` -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -type HorizontalPodAutoscalerConditionType string - -var ( - // ScalingActive indicates that the HPA controller is able to scale if necessary: - // it's correctly configured, can fetch the desired metrics, and isn't disabled. - ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive" - // AbleToScale indicates a lack of transient issues which prevent scaling from occurring, - // such as being in a backoff window, or being unable to access/update the target scale. - AbleToScale HorizontalPodAutoscalerConditionType = "AbleToScale" - // ScalingLimited indicates that the calculated scale based on metrics would be above or - // below the range for the HPA, and has thus been capped. - ScalingLimited HorizontalPodAutoscalerConditionType = "ScalingLimited" -) - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -type HorizontalPodAutoscalerCondition struct { - // type describes the current condition - Type HorizontalPodAutoscalerConditionType `json:"type" protobuf:"bytes,1,name=type"` - // status is the status of the condition (True, False, Unknown) - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,name=status"` - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // reason is the reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // message is a human-readable explanation containing details about - // the transition - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// MetricStatus describes the last-read state of a single metric. -type MetricStatus struct { - // type is the type of metric source. It will be one of "Object", - // "Pods" or "Resource", each corresponds to a matching field in the object. - Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - Object *ObjectMetricStatus `json:"object,omitempty" protobuf:"bytes,2,opt,name=object"` - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - Pods *PodsMetricStatus `json:"pods,omitempty" protobuf:"bytes,3,opt,name=pods"` - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - Resource *ResourceMetricStatus `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"` - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - External *ExternalMetricStatus `json:"external,omitempty" protobuf:"bytes,5,opt,name=external"` -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -type ObjectMetricStatus struct { - // target is the described Kubernetes object. - Target CrossVersionObjectReference `json:"target" protobuf:"bytes,1,name=target"` - - // metricName is the name of the metric in question. - MetricName string `json:"metricName" protobuf:"bytes,2,name=metricName"` - // currentValue is the current value of the metric (as a quantity). - CurrentValue resource.Quantity `json:"currentValue" protobuf:"bytes,3,name=currentValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,name=selector"` - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - AverageValue *resource.Quantity `json:"averageValue,omitempty" protobuf:"bytes,5,name=averageValue"` -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -type PodsMetricStatus struct { - // metricName is the name of the metric in question - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // currentAverageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - CurrentAverageValue resource.Quantity `json:"currentAverageValue" protobuf:"bytes,2,name=currentAverageValue"` - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,3,name=selector"` -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -type ResourceMetricStatus struct { - // name is the name of the resource in question. - Name v1.ResourceName `json:"name" protobuf:"bytes,1,name=name"` - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. It will only be - // present if `targetAverageValue` was set in the corresponding metric - // specification. - // +optional - CurrentAverageUtilization *int32 `json:"currentAverageUtilization,omitempty" protobuf:"bytes,2,opt,name=currentAverageUtilization"` - // currentAverageValue is the current value of the average of the - // resource metric across all relevant pods, as a raw value (instead of as - // a percentage of the request), similar to the "pods" metric source type. - // It will always be set, regardless of the corresponding metric specification. - CurrentAverageValue resource.Quantity `json:"currentAverageValue" protobuf:"bytes,3,name=currentAverageValue"` -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -type ExternalMetricStatus struct { - // metricName is the name of a metric used for autoscaling in - // metric system. - MetricName string `json:"metricName" protobuf:"bytes,1,name=metricName"` - // metricSelector is used to identify a specific time series - // within a given metric. - // +optional - MetricSelector *metav1.LabelSelector `json:"metricSelector,omitempty" protobuf:"bytes,2,opt,name=metricSelector"` - // currentValue is the current value of the metric (as a quantity) - CurrentValue resource.Quantity `json:"currentValue" protobuf:"bytes,3,name=currentValue"` - // currentAverageValue is the current value of metric averaged over autoscaled pods. - // +optional - CurrentAverageValue *resource.Quantity `json:"currentAverageValue,omitempty" protobuf:"bytes,4,opt,name=currentAverageValue"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -type HorizontalPodAutoscaler struct { - metav1.TypeMeta `json:",inline"` - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // status is the current information about the autoscaler. - // +optional - Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. -type HorizontalPodAutoscalerList struct { - metav1.TypeMeta `json:",inline"` - // metadata is the standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of horizontal pod autoscaler objects. - Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/autoscaling/v2beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/autoscaling/v2beta1/types_swagger_doc_generated.go deleted file mode 100644 index a0d5f5337..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,221 +0,0 @@ -/* -Copyright 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 v2beta1 - -// 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. DO NOT EDIT. -var map_CrossVersionObjectReference = map[string]string{ - "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "kind": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "name": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "apiVersion": "API version of the referent", -} - -func (CrossVersionObjectReference) SwaggerDoc() map[string]string { - return map_CrossVersionObjectReference -} - -var map_ExternalMetricSource = map[string]string{ - "": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.", - "metricName": "metricName is the name of the metric in question.", - "metricSelector": "metricSelector is used to identify a specific time series within a given metric.", - "targetValue": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.", - "targetAverageValue": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.", -} - -func (ExternalMetricSource) SwaggerDoc() map[string]string { - return map_ExternalMetricSource -} - -var map_ExternalMetricStatus = map[string]string{ - "": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "metricName": "metricName is the name of a metric used for autoscaling in metric system.", - "metricSelector": "metricSelector is used to identify a specific time series within a given metric.", - "currentValue": "currentValue is the current value of the metric (as a quantity)", - "currentAverageValue": "currentAverageValue is the current value of metric averaged over autoscaled pods.", -} - -func (ExternalMetricStatus) SwaggerDoc() map[string]string { - return map_ExternalMetricStatus -} - -var map_HorizontalPodAutoscaler = map[string]string{ - "": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "metadata": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "status is the current information about the autoscaler.", -} - -func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscaler -} - -var map_HorizontalPodAutoscalerCondition = map[string]string{ - "": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "type": "type describes the current condition", - "status": "status is the status of the condition (True, False, Unknown)", - "lastTransitionTime": "lastTransitionTime is the last time the condition transitioned from one status to another", - "reason": "reason is the reason for the condition's last transition.", - "message": "message is a human-readable explanation containing details about the transition", -} - -func (HorizontalPodAutoscalerCondition) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerCondition -} - -var map_HorizontalPodAutoscalerList = map[string]string{ - "": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", - "metadata": "metadata is the standard list metadata.", - "items": "items is the list of horizontal pod autoscaler objects.", -} - -func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerList -} - -var map_HorizontalPodAutoscalerSpec = map[string]string{ - "": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "scaleTargetRef": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", - "minReplicas": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "maxReplicas": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "metrics": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", -} - -func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerSpec -} - -var map_HorizontalPodAutoscalerStatus = map[string]string{ - "": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "observedGeneration": "observedGeneration is the most recent generation observed by this autoscaler.", - "lastScaleTime": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "currentReplicas": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "desiredReplicas": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "currentMetrics": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "conditions": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", -} - -func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerStatus -} - -var map_MetricSpec = map[string]string{ - "": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "type": "type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.", - "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", -} - -func (MetricSpec) SwaggerDoc() map[string]string { - return map_MetricSpec -} - -var map_MetricStatus = map[string]string{ - "": "MetricStatus describes the last-read state of a single metric.", - "type": "type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.", - "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", -} - -func (MetricStatus) SwaggerDoc() map[string]string { - return map_MetricStatus -} - -var map_ObjectMetricSource = map[string]string{ - "": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "target": "target is the described Kubernetes object.", - "metricName": "metricName is the name of the metric in question.", - "targetValue": "targetValue is the target value of the metric (as a quantity).", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", - "averageValue": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", -} - -func (ObjectMetricSource) SwaggerDoc() map[string]string { - return map_ObjectMetricSource -} - -var map_ObjectMetricStatus = map[string]string{ - "": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "target": "target is the described Kubernetes object.", - "metricName": "metricName is the name of the metric in question.", - "currentValue": "currentValue is the current value of the metric (as a quantity).", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", - "averageValue": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", -} - -func (ObjectMetricStatus) SwaggerDoc() map[string]string { - return map_ObjectMetricStatus -} - -var map_PodsMetricSource = map[string]string{ - "": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "metricName": "metricName is the name of the metric in question", - "targetAverageValue": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.", -} - -func (PodsMetricSource) SwaggerDoc() map[string]string { - return map_PodsMetricSource -} - -var map_PodsMetricStatus = map[string]string{ - "": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "metricName": "metricName is the name of the metric in question", - "currentAverageValue": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", -} - -func (PodsMetricStatus) SwaggerDoc() map[string]string { - return map_PodsMetricStatus -} - -var map_ResourceMetricSource = map[string]string{ - "": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "name": "name is the name of the resource in question.", - "targetAverageUtilization": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "targetAverageValue": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", -} - -func (ResourceMetricSource) SwaggerDoc() map[string]string { - return map_ResourceMetricSource -} - -var map_ResourceMetricStatus = map[string]string{ - "": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "name": "name is the name of the resource in question.", - "currentAverageUtilization": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "currentAverageValue": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", -} - -func (ResourceMetricStatus) SwaggerDoc() map[string]string { - return map_ResourceMetricStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/autoscaling/v2beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/autoscaling/v2beta1/zz_generated.deepcopy.go deleted file mode 100644 index 878f3cbe4..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,466 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v2beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference. -func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference { - if in == nil { - return nil - } - out := new(CrossVersionObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) { - *out = *in - if in.MetricSelector != nil { - in, out := &in.MetricSelector, &out.MetricSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.TargetValue != nil { - in, out := &in.TargetValue, &out.TargetValue - x := (*in).DeepCopy() - *out = &x - } - if in.TargetAverageValue != nil { - in, out := &in.TargetAverageValue, &out.TargetAverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource. -func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource { - if in == nil { - return nil - } - out := new(ExternalMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) { - *out = *in - if in.MetricSelector != nil { - in, out := &in.MetricSelector, &out.MetricSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - out.CurrentValue = in.CurrentValue.DeepCopy() - if in.CurrentAverageValue != nil { - in, out := &in.CurrentAverageValue, &out.CurrentAverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus. -func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus { - if in == nil { - return nil - } - out := new(ExternalMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler. -func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscaler) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition. -func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]HorizontalPodAutoscaler, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList. -func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) { - *out = *in - out.ScaleTargetRef = in.ScaleTargetRef - if in.MinReplicas != nil { - in, out := &in.MinReplicas, &out.MinReplicas - *out = new(int32) - **out = **in - } - if in.Metrics != nil { - in, out := &in.Metrics, &out.Metrics - *out = make([]MetricSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec. -func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) { - *out = *in - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = **in - } - if in.LastScaleTime != nil { - in, out := &in.LastScaleTime, &out.LastScaleTime - *out = (*in).DeepCopy() - } - if in.CurrentMetrics != nil { - in, out := &in.CurrentMetrics, &out.CurrentMetrics - *out = make([]MetricStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]HorizontalPodAutoscalerCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus. -func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricSpec) DeepCopyInto(out *MetricSpec) { - *out = *in - if in.Object != nil { - in, out := &in.Object, &out.Object - *out = new(ObjectMetricSource) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(PodsMetricSource) - (*in).DeepCopyInto(*out) - } - if in.Resource != nil { - in, out := &in.Resource, &out.Resource - *out = new(ResourceMetricSource) - (*in).DeepCopyInto(*out) - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalMetricSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec. -func (in *MetricSpec) DeepCopy() *MetricSpec { - if in == nil { - return nil - } - out := new(MetricSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricStatus) DeepCopyInto(out *MetricStatus) { - *out = *in - if in.Object != nil { - in, out := &in.Object, &out.Object - *out = new(ObjectMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(PodsMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.Resource != nil { - in, out := &in.Resource, &out.Resource - *out = new(ResourceMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalMetricStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus. -func (in *MetricStatus) DeepCopy() *MetricStatus { - if in == nil { - return nil - } - out := new(MetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) { - *out = *in - out.Target = in.Target - out.TargetValue = in.TargetValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.AverageValue != nil { - in, out := &in.AverageValue, &out.AverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource. -func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource { - if in == nil { - return nil - } - out := new(ObjectMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) { - *out = *in - out.Target = in.Target - out.CurrentValue = in.CurrentValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.AverageValue != nil { - in, out := &in.AverageValue, &out.AverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus. -func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus { - if in == nil { - return nil - } - out := new(ObjectMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) { - *out = *in - out.TargetAverageValue = in.TargetAverageValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource. -func (in *PodsMetricSource) DeepCopy() *PodsMetricSource { - if in == nil { - return nil - } - out := new(PodsMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) { - *out = *in - out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus. -func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus { - if in == nil { - return nil - } - out := new(PodsMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) { - *out = *in - if in.TargetAverageUtilization != nil { - in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization - *out = new(int32) - **out = **in - } - if in.TargetAverageValue != nil { - in, out := &in.TargetAverageValue, &out.TargetAverageValue - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource. -func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource { - if in == nil { - return nil - } - out := new(ResourceMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) { - *out = *in - if in.CurrentAverageUtilization != nil { - in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization - *out = new(int32) - **out = **in - } - out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus. -func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus { - if in == nil { - return nil - } - out := new(ResourceMetricStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/autoscaling/v2beta2/doc.go b/pseudo/k8s/api/autoscaling/v2beta2/doc.go deleted file mode 100644 index 6e115158e..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:protobuf-gen=package -// +k8s:openapi-gen=true - -package v2beta2 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta2" diff --git a/pseudo/k8s/api/autoscaling/v2beta2/generated.pb.go b/pseudo/k8s/api/autoscaling/v2beta2/generated.pb.go deleted file mode 100644 index 9bf393d1e..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/generated.pb.go +++ /dev/null @@ -1,5324 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta2/generated.proto - -package v2beta2 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CrossVersionObjectReference) Reset() { *m = CrossVersionObjectReference{} } -func (*CrossVersionObjectReference) ProtoMessage() {} -func (*CrossVersionObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{0} -} -func (m *CrossVersionObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CrossVersionObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CrossVersionObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_CrossVersionObjectReference.Merge(m, src) -} -func (m *CrossVersionObjectReference) XXX_Size() int { - return m.Size() -} -func (m *CrossVersionObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_CrossVersionObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_CrossVersionObjectReference proto.InternalMessageInfo - -func (m *ExternalMetricSource) Reset() { *m = ExternalMetricSource{} } -func (*ExternalMetricSource) ProtoMessage() {} -func (*ExternalMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{1} -} -func (m *ExternalMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExternalMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalMetricSource.Merge(m, src) -} -func (m *ExternalMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ExternalMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalMetricSource proto.InternalMessageInfo - -func (m *ExternalMetricStatus) Reset() { *m = ExternalMetricStatus{} } -func (*ExternalMetricStatus) ProtoMessage() {} -func (*ExternalMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{2} -} -func (m *ExternalMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExternalMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExternalMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalMetricStatus.Merge(m, src) -} -func (m *ExternalMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ExternalMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalMetricStatus proto.InternalMessageInfo - -func (m *HorizontalPodAutoscaler) Reset() { *m = HorizontalPodAutoscaler{} } -func (*HorizontalPodAutoscaler) ProtoMessage() {} -func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{3} -} -func (m *HorizontalPodAutoscaler) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscaler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscaler) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscaler.Merge(m, src) -} -func (m *HorizontalPodAutoscaler) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscaler) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscaler.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscaler proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerCondition) Reset() { *m = HorizontalPodAutoscalerCondition{} } -func (*HorizontalPodAutoscalerCondition) ProtoMessage() {} -func (*HorizontalPodAutoscalerCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{4} -} -func (m *HorizontalPodAutoscalerCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerCondition.Merge(m, src) -} -func (m *HorizontalPodAutoscalerCondition) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerCondition) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerCondition proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerList) Reset() { *m = HorizontalPodAutoscalerList{} } -func (*HorizontalPodAutoscalerList) ProtoMessage() {} -func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{5} -} -func (m *HorizontalPodAutoscalerList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerList) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerList.Merge(m, src) -} -func (m *HorizontalPodAutoscalerList) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerList) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerList.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerList proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerSpec) Reset() { *m = HorizontalPodAutoscalerSpec{} } -func (*HorizontalPodAutoscalerSpec) ProtoMessage() {} -func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{6} -} -func (m *HorizontalPodAutoscalerSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerSpec.Merge(m, src) -} -func (m *HorizontalPodAutoscalerSpec) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerSpec) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerSpec proto.InternalMessageInfo - -func (m *HorizontalPodAutoscalerStatus) Reset() { *m = HorizontalPodAutoscalerStatus{} } -func (*HorizontalPodAutoscalerStatus) ProtoMessage() {} -func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{7} -} -func (m *HorizontalPodAutoscalerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HorizontalPodAutoscalerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HorizontalPodAutoscalerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_HorizontalPodAutoscalerStatus.Merge(m, src) -} -func (m *HorizontalPodAutoscalerStatus) XXX_Size() int { - return m.Size() -} -func (m *HorizontalPodAutoscalerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_HorizontalPodAutoscalerStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_HorizontalPodAutoscalerStatus proto.InternalMessageInfo - -func (m *MetricIdentifier) Reset() { *m = MetricIdentifier{} } -func (*MetricIdentifier) ProtoMessage() {} -func (*MetricIdentifier) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{8} -} -func (m *MetricIdentifier) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricIdentifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricIdentifier.Merge(m, src) -} -func (m *MetricIdentifier) XXX_Size() int { - return m.Size() -} -func (m *MetricIdentifier) XXX_DiscardUnknown() { - xxx_messageInfo_MetricIdentifier.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricIdentifier proto.InternalMessageInfo - -func (m *MetricSpec) Reset() { *m = MetricSpec{} } -func (*MetricSpec) ProtoMessage() {} -func (*MetricSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{9} -} -func (m *MetricSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricSpec.Merge(m, src) -} -func (m *MetricSpec) XXX_Size() int { - return m.Size() -} -func (m *MetricSpec) XXX_DiscardUnknown() { - xxx_messageInfo_MetricSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricSpec proto.InternalMessageInfo - -func (m *MetricStatus) Reset() { *m = MetricStatus{} } -func (*MetricStatus) ProtoMessage() {} -func (*MetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{10} -} -func (m *MetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricStatus.Merge(m, src) -} -func (m *MetricStatus) XXX_Size() int { - return m.Size() -} -func (m *MetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_MetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricStatus proto.InternalMessageInfo - -func (m *MetricTarget) Reset() { *m = MetricTarget{} } -func (*MetricTarget) ProtoMessage() {} -func (*MetricTarget) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{11} -} -func (m *MetricTarget) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricTarget) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricTarget.Merge(m, src) -} -func (m *MetricTarget) XXX_Size() int { - return m.Size() -} -func (m *MetricTarget) XXX_DiscardUnknown() { - xxx_messageInfo_MetricTarget.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricTarget proto.InternalMessageInfo - -func (m *MetricValueStatus) Reset() { *m = MetricValueStatus{} } -func (*MetricValueStatus) ProtoMessage() {} -func (*MetricValueStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{12} -} -func (m *MetricValueStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MetricValueStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *MetricValueStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_MetricValueStatus.Merge(m, src) -} -func (m *MetricValueStatus) XXX_Size() int { - return m.Size() -} -func (m *MetricValueStatus) XXX_DiscardUnknown() { - xxx_messageInfo_MetricValueStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_MetricValueStatus proto.InternalMessageInfo - -func (m *ObjectMetricSource) Reset() { *m = ObjectMetricSource{} } -func (*ObjectMetricSource) ProtoMessage() {} -func (*ObjectMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{13} -} -func (m *ObjectMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetricSource.Merge(m, src) -} -func (m *ObjectMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMetricSource proto.InternalMessageInfo - -func (m *ObjectMetricStatus) Reset() { *m = ObjectMetricStatus{} } -func (*ObjectMetricStatus) ProtoMessage() {} -func (*ObjectMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{14} -} -func (m *ObjectMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMetricStatus.Merge(m, src) -} -func (m *ObjectMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ObjectMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMetricStatus proto.InternalMessageInfo - -func (m *PodsMetricSource) Reset() { *m = PodsMetricSource{} } -func (*PodsMetricSource) ProtoMessage() {} -func (*PodsMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{15} -} -func (m *PodsMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodsMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodsMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodsMetricSource.Merge(m, src) -} -func (m *PodsMetricSource) XXX_Size() int { - return m.Size() -} -func (m *PodsMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_PodsMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PodsMetricSource proto.InternalMessageInfo - -func (m *PodsMetricStatus) Reset() { *m = PodsMetricStatus{} } -func (*PodsMetricStatus) ProtoMessage() {} -func (*PodsMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{16} -} -func (m *PodsMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodsMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodsMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodsMetricStatus.Merge(m, src) -} -func (m *PodsMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *PodsMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PodsMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PodsMetricStatus proto.InternalMessageInfo - -func (m *ResourceMetricSource) Reset() { *m = ResourceMetricSource{} } -func (*ResourceMetricSource) ProtoMessage() {} -func (*ResourceMetricSource) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{17} -} -func (m *ResourceMetricSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMetricSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceMetricSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMetricSource.Merge(m, src) -} -func (m *ResourceMetricSource) XXX_Size() int { - return m.Size() -} -func (m *ResourceMetricSource) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMetricSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceMetricSource proto.InternalMessageInfo - -func (m *ResourceMetricStatus) Reset() { *m = ResourceMetricStatus{} } -func (*ResourceMetricStatus) ProtoMessage() {} -func (*ResourceMetricStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_592ad94d7d6be24f, []int{18} -} -func (m *ResourceMetricStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceMetricStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceMetricStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceMetricStatus.Merge(m, src) -} -func (m *ResourceMetricStatus) XXX_Size() int { - return m.Size() -} -func (m *ResourceMetricStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceMetricStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceMetricStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CrossVersionObjectReference)(nil), "k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference") - proto.RegisterType((*ExternalMetricSource)(nil), "k8s.io.api.autoscaling.v2beta2.ExternalMetricSource") - proto.RegisterType((*ExternalMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta2.ExternalMetricStatus") - proto.RegisterType((*HorizontalPodAutoscaler)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscaler") - proto.RegisterType((*HorizontalPodAutoscalerCondition)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition") - proto.RegisterType((*HorizontalPodAutoscalerList)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerList") - proto.RegisterType((*HorizontalPodAutoscalerSpec)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec") - proto.RegisterType((*HorizontalPodAutoscalerStatus)(nil), "k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus") - proto.RegisterType((*MetricIdentifier)(nil), "k8s.io.api.autoscaling.v2beta2.MetricIdentifier") - proto.RegisterType((*MetricSpec)(nil), "k8s.io.api.autoscaling.v2beta2.MetricSpec") - proto.RegisterType((*MetricStatus)(nil), "k8s.io.api.autoscaling.v2beta2.MetricStatus") - proto.RegisterType((*MetricTarget)(nil), "k8s.io.api.autoscaling.v2beta2.MetricTarget") - proto.RegisterType((*MetricValueStatus)(nil), "k8s.io.api.autoscaling.v2beta2.MetricValueStatus") - proto.RegisterType((*ObjectMetricSource)(nil), "k8s.io.api.autoscaling.v2beta2.ObjectMetricSource") - proto.RegisterType((*ObjectMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta2.ObjectMetricStatus") - proto.RegisterType((*PodsMetricSource)(nil), "k8s.io.api.autoscaling.v2beta2.PodsMetricSource") - proto.RegisterType((*PodsMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta2.PodsMetricStatus") - proto.RegisterType((*ResourceMetricSource)(nil), "k8s.io.api.autoscaling.v2beta2.ResourceMetricSource") - proto.RegisterType((*ResourceMetricStatus)(nil), "k8s.io.api.autoscaling.v2beta2.ResourceMetricStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta2/generated.proto", fileDescriptor_592ad94d7d6be24f) -} - -var fileDescriptor_592ad94d7d6be24f = []byte{ - // 1425 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xdd, 0x6f, 0x1b, 0xc5, - 0x16, 0xcf, 0xda, 0x8e, 0x93, 0x8e, 0xd3, 0x24, 0x9d, 0x5b, 0xb5, 0x56, 0xaa, 0x6b, 0x47, 0xab, - 0xab, 0xab, 0x52, 0xd1, 0x35, 0x31, 0xe1, 0x43, 0x42, 0x48, 0xc4, 0x01, 0xda, 0x8a, 0xa4, 0x2d, - 0x93, 0xb4, 0x42, 0xa8, 0x45, 0x8c, 0x77, 0x4f, 0xdc, 0x21, 0xde, 0x5d, 0x6b, 0x76, 0x6c, 0x35, - 0x45, 0x42, 0xbc, 0xf0, 0x8e, 0x40, 0xfc, 0x13, 0x88, 0x17, 0x5e, 0x90, 0x78, 0xe4, 0x43, 0xa8, - 0x42, 0x08, 0xf5, 0xb1, 0x08, 0xc9, 0xa2, 0xe6, 0xbf, 0xe8, 0x13, 0xda, 0x99, 0xd9, 0xf5, 0xae, - 0xed, 0xc4, 0x4e, 0x95, 0x14, 0xf5, 0xcd, 0x33, 0xe7, 0x9c, 0xdf, 0xf9, 0x9c, 0x73, 0xce, 0x1a, - 0x5d, 0xda, 0x7d, 0x35, 0xb0, 0x98, 0x5f, 0xd9, 0x6d, 0xd7, 0x81, 0x7b, 0x20, 0x20, 0xa8, 0x74, - 0xc0, 0x73, 0x7c, 0x5e, 0xd1, 0x04, 0xda, 0x62, 0x15, 0xda, 0x16, 0x7e, 0x60, 0xd3, 0x26, 0xf3, - 0x1a, 0x95, 0x4e, 0xb5, 0x0e, 0x82, 0x56, 0x2b, 0x0d, 0xf0, 0x80, 0x53, 0x01, 0x8e, 0xd5, 0xe2, - 0xbe, 0xf0, 0x71, 0x49, 0xf1, 0x5b, 0xb4, 0xc5, 0xac, 0x04, 0xbf, 0xa5, 0xf9, 0x97, 0x2e, 0x36, - 0x98, 0xb8, 0xd3, 0xae, 0x5b, 0xb6, 0xef, 0x56, 0x1a, 0x7e, 0xc3, 0xaf, 0x48, 0xb1, 0x7a, 0x7b, - 0x47, 0x9e, 0xe4, 0x41, 0xfe, 0x52, 0x70, 0x4b, 0x66, 0x42, 0xbd, 0xed, 0x73, 0xa8, 0x74, 0x56, - 0x06, 0x55, 0x2e, 0xad, 0xf6, 0x79, 0x5c, 0x6a, 0xdf, 0x61, 0x1e, 0xf0, 0xbd, 0x4a, 0x6b, 0xb7, - 0x21, 0x85, 0x38, 0x04, 0x7e, 0x9b, 0xdb, 0x70, 0x28, 0xa9, 0xa0, 0xe2, 0x82, 0xa0, 0xa3, 0x74, - 0x55, 0xf6, 0x93, 0xe2, 0x6d, 0x4f, 0x30, 0x77, 0x58, 0xcd, 0xcb, 0xe3, 0x04, 0x02, 0xfb, 0x0e, - 0xb8, 0x74, 0x50, 0xce, 0xfc, 0xca, 0x40, 0xe7, 0xd6, 0xb9, 0x1f, 0x04, 0x37, 0x81, 0x07, 0xcc, - 0xf7, 0xae, 0xd5, 0x3f, 0x02, 0x5b, 0x10, 0xd8, 0x01, 0x0e, 0x9e, 0x0d, 0x78, 0x19, 0xe5, 0x76, - 0x99, 0xe7, 0x14, 0x8d, 0x65, 0xe3, 0xfc, 0x89, 0xda, 0xdc, 0xfd, 0x6e, 0x79, 0xaa, 0xd7, 0x2d, - 0xe7, 0xde, 0x61, 0x9e, 0x43, 0x24, 0x25, 0xe4, 0xf0, 0xa8, 0x0b, 0xc5, 0x4c, 0x9a, 0xe3, 0x2a, - 0x75, 0x81, 0x48, 0x0a, 0xae, 0x22, 0x44, 0x5b, 0x4c, 0x2b, 0x28, 0x66, 0x25, 0x1f, 0xd6, 0x7c, - 0x68, 0xed, 0xfa, 0x15, 0x4d, 0x21, 0x09, 0x2e, 0xf3, 0x17, 0x03, 0x9d, 0x7e, 0xeb, 0xae, 0x00, - 0xee, 0xd1, 0xe6, 0x26, 0x08, 0xce, 0xec, 0x2d, 0x19, 0x5f, 0xfc, 0x1e, 0xca, 0xbb, 0xf2, 0x2c, - 0x4d, 0x2a, 0x54, 0x5f, 0xb0, 0x0e, 0xae, 0x04, 0x4b, 0x49, 0x5f, 0x71, 0xc0, 0x13, 0x6c, 0x87, - 0x01, 0xaf, 0xcd, 0x6b, 0xd5, 0x79, 0x45, 0x21, 0x1a, 0x0f, 0x6f, 0xa3, 0xbc, 0xa0, 0xbc, 0x01, - 0x42, 0xba, 0x52, 0xa8, 0x3e, 0x3f, 0x19, 0xf2, 0xb6, 0x94, 0xe9, 0xa3, 0xaa, 0x33, 0xd1, 0x58, - 0xe6, 0xef, 0xc3, 0x8e, 0x08, 0x2a, 0xda, 0xc1, 0x31, 0x3a, 0x72, 0x0b, 0xcd, 0xd8, 0x6d, 0xce, - 0xc1, 0x8b, 0x3c, 0x59, 0x99, 0x0c, 0xfa, 0x26, 0x6d, 0xb6, 0x41, 0x59, 0x57, 0x5b, 0xd0, 0xd8, - 0x33, 0xeb, 0x0a, 0x89, 0x44, 0x90, 0xe6, 0x0f, 0x19, 0x74, 0xf6, 0xb2, 0xcf, 0xd9, 0x3d, 0xdf, - 0x13, 0xb4, 0x79, 0xdd, 0x77, 0xd6, 0x34, 0x20, 0x70, 0xfc, 0x21, 0x9a, 0x0d, 0x2b, 0xda, 0xa1, - 0x82, 0x8e, 0xf0, 0x2a, 0x2e, 0x4c, 0xab, 0xb5, 0xdb, 0x08, 0x2f, 0x02, 0x2b, 0xe4, 0xb6, 0x3a, - 0x2b, 0x96, 0x2a, 0xbb, 0x4d, 0x10, 0xb4, 0x5f, 0x19, 0xfd, 0x3b, 0x12, 0xa3, 0xe2, 0xdb, 0x28, - 0x17, 0xb4, 0xc0, 0xd6, 0x8e, 0xbd, 0x36, 0xce, 0xb1, 0x7d, 0x0c, 0xdd, 0x6a, 0x81, 0xdd, 0x2f, - 0xd5, 0xf0, 0x44, 0x24, 0x2c, 0x06, 0x94, 0x0f, 0x64, 0x00, 0x64, 0x99, 0x16, 0xaa, 0xaf, 0x3f, - 0xa9, 0x02, 0x15, 0xc5, 0x38, 0x43, 0xea, 0x4c, 0x34, 0xb8, 0xf9, 0x59, 0x16, 0x2d, 0xef, 0x23, - 0xb9, 0xee, 0x7b, 0x0e, 0x13, 0xcc, 0xf7, 0xf0, 0x65, 0x94, 0x13, 0x7b, 0x2d, 0xd0, 0x4f, 0x6f, - 0x35, 0xb2, 0x76, 0x7b, 0xaf, 0x05, 0x8f, 0xbb, 0xe5, 0xff, 0x8d, 0x93, 0x0f, 0xf9, 0x88, 0x44, - 0xc0, 0x1b, 0xb1, 0x57, 0x99, 0x14, 0x96, 0x36, 0xeb, 0x71, 0xb7, 0x3c, 0xa2, 0xff, 0x59, 0x31, - 0x52, 0xda, 0x78, 0xdc, 0x41, 0xb8, 0x49, 0x03, 0xb1, 0xcd, 0xa9, 0x17, 0x28, 0x4d, 0xcc, 0x05, - 0x1d, 0xaf, 0x0b, 0x93, 0xa5, 0x3b, 0x94, 0xa8, 0x2d, 0x69, 0x2b, 0xf0, 0xc6, 0x10, 0x1a, 0x19, - 0xa1, 0x01, 0xff, 0x1f, 0xe5, 0x39, 0xd0, 0xc0, 0xf7, 0x8a, 0x39, 0xe9, 0x45, 0x1c, 0x5c, 0x22, - 0x6f, 0x89, 0xa6, 0xe2, 0xe7, 0xd0, 0x8c, 0x0b, 0x41, 0x40, 0x1b, 0x50, 0x9c, 0x96, 0x8c, 0x71, - 0x2d, 0x6f, 0xaa, 0x6b, 0x12, 0xd1, 0xcd, 0x3f, 0x0c, 0x74, 0x6e, 0x9f, 0x38, 0x6e, 0xb0, 0x40, - 0xe0, 0x5b, 0x43, 0xf5, 0x6c, 0x4d, 0xe6, 0x60, 0x28, 0x2d, 0xab, 0x79, 0x51, 0xeb, 0x9e, 0x8d, - 0x6e, 0x12, 0xb5, 0x7c, 0x0b, 0x4d, 0x33, 0x01, 0x6e, 0x98, 0x95, 0xec, 0xf9, 0x42, 0xf5, 0x95, - 0x27, 0xac, 0xb5, 0xda, 0x49, 0xad, 0x63, 0xfa, 0x4a, 0x88, 0x46, 0x14, 0xa8, 0xf9, 0x67, 0x66, - 0x5f, 0xdf, 0xc2, 0x82, 0xc7, 0x1f, 0xa3, 0x79, 0x79, 0xd2, 0xfd, 0x0a, 0x76, 0xb4, 0x87, 0x63, - 0xdf, 0xd4, 0x01, 0xe3, 0xa2, 0x76, 0x46, 0x9b, 0x32, 0xbf, 0x95, 0x82, 0x26, 0x03, 0xaa, 0xf0, - 0x0a, 0x2a, 0xb8, 0xcc, 0x23, 0xd0, 0x6a, 0x32, 0x9b, 0xaa, 0xb2, 0x9c, 0xae, 0x2d, 0xf4, 0xba, - 0xe5, 0xc2, 0x66, 0xff, 0x9a, 0x24, 0x79, 0xf0, 0x4b, 0xa8, 0xe0, 0xd2, 0xbb, 0xb1, 0x48, 0x56, - 0x8a, 0xfc, 0x47, 0xeb, 0x2b, 0x6c, 0xf6, 0x49, 0x24, 0xc9, 0x87, 0x6f, 0x84, 0xd5, 0x10, 0x76, - 0xb7, 0xa0, 0x98, 0x93, 0x61, 0xbe, 0x30, 0x59, 0x33, 0x94, 0x2d, 0x22, 0x51, 0x39, 0x12, 0x82, - 0x44, 0x58, 0xe6, 0x77, 0x39, 0xf4, 0xdf, 0x03, 0xdf, 0x3e, 0x7e, 0x1b, 0x61, 0xbf, 0x1e, 0x00, - 0xef, 0x80, 0x73, 0x49, 0x0d, 0xdd, 0x70, 0xfa, 0x85, 0x31, 0xce, 0xd6, 0xce, 0x84, 0x65, 0x7f, - 0x6d, 0x88, 0x4a, 0x46, 0x48, 0x60, 0x1b, 0x9d, 0x0c, 0x1f, 0x83, 0x0a, 0x28, 0xd3, 0x83, 0xf6, - 0x70, 0x2f, 0xed, 0x54, 0xaf, 0x5b, 0x3e, 0xb9, 0x91, 0x04, 0x21, 0x69, 0x4c, 0xbc, 0x86, 0x16, - 0x74, 0x7f, 0x1f, 0x08, 0xf0, 0x59, 0x1d, 0x81, 0x85, 0xf5, 0x34, 0x99, 0x0c, 0xf2, 0x87, 0x10, - 0x0e, 0x04, 0x8c, 0x83, 0x13, 0x43, 0xe4, 0xd2, 0x10, 0x6f, 0xa6, 0xc9, 0x64, 0x90, 0x1f, 0x37, - 0xd1, 0xbc, 0x46, 0xd5, 0xf1, 0x2e, 0x4e, 0xcb, 0x94, 0x4d, 0x38, 0x89, 0x75, 0xd3, 0x8d, 0x6b, - 0x70, 0x3d, 0x85, 0x45, 0x06, 0xb0, 0xb1, 0x40, 0xc8, 0x8e, 0x5a, 0x5c, 0x50, 0xcc, 0x4b, 0x4d, - 0x6f, 0x3c, 0xe1, 0x1b, 0x8c, 0x7b, 0x65, 0x7f, 0x7c, 0xc5, 0x57, 0x01, 0x49, 0xe8, 0x31, 0xbf, - 0x34, 0xd0, 0xe2, 0xe0, 0x24, 0x8f, 0x77, 0x28, 0x63, 0xdf, 0x1d, 0xea, 0x36, 0x9a, 0x0d, 0xa0, - 0x09, 0xb6, 0xf0, 0xb9, 0x2e, 0x80, 0x17, 0x27, 0xec, 0x44, 0xb4, 0x0e, 0xcd, 0x2d, 0x2d, 0x5a, - 0x9b, 0x0b, 0x5b, 0x51, 0x74, 0x22, 0x31, 0xa4, 0xf9, 0x75, 0x16, 0xa1, 0x7e, 0xdd, 0xe3, 0xd5, - 0xd4, 0xe8, 0x59, 0x1e, 0x18, 0x3d, 0x8b, 0xc9, 0x85, 0x2c, 0x31, 0x66, 0x6e, 0xa2, 0xbc, 0x2f, - 0xfb, 0x81, 0xb6, 0xb0, 0x3a, 0x2e, 0x98, 0xf1, 0x84, 0x8f, 0xd1, 0x6a, 0x28, 0x6c, 0xe8, 0xba, - 0xab, 0x68, 0x34, 0x7c, 0x15, 0xe5, 0x5a, 0xbe, 0x13, 0x8d, 0xe4, 0xb1, 0x7b, 0xd2, 0x75, 0xdf, - 0x09, 0x52, 0x98, 0xb3, 0xa1, 0xed, 0xe1, 0x2d, 0x91, 0x38, 0xf8, 0x03, 0x34, 0x1b, 0xad, 0xeb, - 0xb2, 0x44, 0x0b, 0xd5, 0xd5, 0x71, 0x98, 0x44, 0xf3, 0xa7, 0x70, 0x65, 0x30, 0x23, 0x0a, 0x89, - 0x31, 0x43, 0x7c, 0xd0, 0x1b, 0x9f, 0x9c, 0x40, 0x13, 0xe0, 0x8f, 0x5a, 0x75, 0x15, 0x7e, 0x44, - 0x21, 0x31, 0xa6, 0xf9, 0x4d, 0x16, 0xcd, 0xa5, 0x56, 0xc9, 0x7f, 0x23, 0x5d, 0xea, 0xad, 0x1d, - 0x6d, 0xba, 0x14, 0xe6, 0xd1, 0xa7, 0x4b, 0xe1, 0x1e, 0x5f, 0xba, 0x12, 0xf8, 0x23, 0xd2, 0xf5, - 0x53, 0x26, 0x4a, 0x97, 0x9a, 0x7f, 0x93, 0xa5, 0x4b, 0xf1, 0x26, 0xd2, 0x75, 0x0d, 0x4d, 0x77, - 0xc2, 0x05, 0x5d, 0x67, 0xeb, 0xc0, 0x45, 0xc4, 0x8a, 0x9c, 0xb3, 0xde, 0x6d, 0x53, 0x4f, 0x30, - 0xb1, 0x57, 0x3b, 0x11, 0x2e, 0x08, 0x72, 0xc3, 0x27, 0x0a, 0x07, 0x3b, 0x68, 0x8e, 0x76, 0x80, - 0xd3, 0x06, 0xc8, 0x6b, 0x9d, 0xaf, 0xc3, 0xe2, 0x2e, 0xf6, 0xba, 0xe5, 0xb9, 0xb5, 0x04, 0x0e, - 0x49, 0xa1, 0x86, 0x63, 0x50, 0x9f, 0x6f, 0x08, 0xd6, 0x64, 0xf7, 0xd4, 0x18, 0x54, 0x93, 0x41, - 0x8e, 0xc1, 0xb5, 0x21, 0x2a, 0x19, 0x21, 0x61, 0x7e, 0x91, 0x41, 0xa7, 0x86, 0x3e, 0x53, 0xfa, - 0x41, 0x31, 0x8e, 0x29, 0x28, 0x99, 0xa7, 0x18, 0x94, 0xec, 0xa1, 0x83, 0xf2, 0x73, 0x06, 0xe1, - 0xe1, 0x26, 0x8a, 0x3f, 0x91, 0xa3, 0xd8, 0xe6, 0xac, 0x0e, 0x8e, 0x22, 0x1f, 0xc5, 0x6e, 0x97, - 0x9c, 0xe3, 0x49, 0x6c, 0x32, 0xa8, 0xec, 0x78, 0xbe, 0xa4, 0x13, 0x1f, 0xcc, 0xd9, 0xa3, 0xfd, - 0x60, 0x36, 0x7f, 0x1b, 0x0c, 0xe3, 0x33, 0xfd, 0x85, 0x3e, 0x2a, 0xfd, 0xd9, 0xa7, 0x98, 0x7e, - 0xf3, 0x47, 0x03, 0x2d, 0x0e, 0x0e, 0xe1, 0x67, 0xee, 0x7f, 0x9b, 0x5f, 0xd3, 0x4e, 0x3c, 0xdb, - 0xff, 0xd9, 0x7c, 0x6b, 0xa0, 0xd3, 0xa3, 0x56, 0x18, 0xbc, 0x9e, 0x5a, 0x3c, 0x2b, 0xc9, 0xc5, - 0xf3, 0x71, 0xb7, 0x5c, 0x1e, 0xf1, 0xaf, 0x40, 0x04, 0x93, 0xd8, 0x4d, 0x8f, 0x27, 0x01, 0xdf, - 0x0f, 0xdb, 0xac, 0x92, 0x70, 0x24, 0x36, 0x1f, 0x6b, 0xbc, 0x6b, 0x17, 0xef, 0x3f, 0x2a, 0x4d, - 0x3d, 0x78, 0x54, 0x9a, 0x7a, 0xf8, 0xa8, 0x34, 0xf5, 0x69, 0xaf, 0x64, 0xdc, 0xef, 0x95, 0x8c, - 0x07, 0xbd, 0x92, 0xf1, 0xb0, 0x57, 0x32, 0xfe, 0xea, 0x95, 0x8c, 0xcf, 0xff, 0x2e, 0x4d, 0xbd, - 0x3f, 0xa3, 0xa1, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x7e, 0xa0, 0xce, 0xf5, 0x16, 0x17, 0x00, - 0x00, -} - -func (m *CrossVersionObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CrossVersionObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CrossVersionObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x1a - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExternalMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExternalMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExternalMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExternalMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Current.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscaler) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscaler) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscaler) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Metrics) > 0 { - for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MaxReplicas)) - i-- - dAtA[i] = 0x18 - if m.MinReplicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.MinReplicas)) - i-- - dAtA[i] = 0x10 - } - { - size, err := m.ScaleTargetRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HorizontalPodAutoscalerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HorizontalPodAutoscalerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HorizontalPodAutoscalerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.CurrentMetrics) > 0 { - for iNdEx := len(m.CurrentMetrics) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CurrentMetrics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) - i-- - dAtA[i] = 0x18 - if m.LastScaleTime != nil { - { - size, err := m.LastScaleTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.ObservedGeneration != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MetricIdentifier) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricIdentifier) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.External != nil { - { - size, err := m.External.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Pods != nil { - { - size, err := m.Pods.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.External != nil { - { - size, err := m.External.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Resource != nil { - { - size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Pods != nil { - { - size, err := m.Pods.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Object != nil { - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricTarget) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricTarget) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AverageUtilization != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.AverageUtilization)) - i-- - dAtA[i] = 0x20 - } - if m.AverageValue != nil { - { - size, err := m.AverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Value != nil { - { - size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *MetricValueStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MetricValueStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MetricValueStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AverageUtilization != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.AverageUtilization)) - i-- - dAtA[i] = 0x18 - } - if m.AverageValue != nil { - { - size, err := m.AverageValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Value != nil { - { - size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ObjectMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.DescribedObject.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.DescribedObject.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Current.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodsMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodsMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodsMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodsMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodsMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodsMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Current.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Metric.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceMetricSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceMetricSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMetricSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceMetricStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceMetricStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceMetricStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Current.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CrossVersionObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ExternalMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Metric.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ExternalMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Metric.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Current.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscaler) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscalerCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HorizontalPodAutoscalerList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HorizontalPodAutoscalerSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ScaleTargetRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.MinReplicas != nil { - n += 1 + sovGenerated(uint64(*m.MinReplicas)) - } - n += 1 + sovGenerated(uint64(m.MaxReplicas)) - if len(m.Metrics) > 0 { - for _, e := range m.Metrics { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HorizontalPodAutoscalerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ObservedGeneration != nil { - n += 1 + sovGenerated(uint64(*m.ObservedGeneration)) - } - if m.LastScaleTime != nil { - l = m.LastScaleTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.CurrentReplicas)) - n += 1 + sovGenerated(uint64(m.DesiredReplicas)) - if len(m.CurrentMetrics) > 0 { - for _, e := range m.CurrentMetrics { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *MetricIdentifier) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MetricSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pods != nil { - l = m.Pods.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.External != nil { - l = m.External.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Pods != nil { - l = m.Pods.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Resource != nil { - l = m.Resource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.External != nil { - l = m.External.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *MetricTarget) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageValue != nil { - l = m.AverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageUtilization != nil { - n += 1 + sovGenerated(uint64(*m.AverageUtilization)) - } - return n -} - -func (m *MetricValueStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageValue != nil { - l = m.AverageValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AverageUtilization != nil { - n += 1 + sovGenerated(uint64(*m.AverageUtilization)) - } - return n -} - -func (m *ObjectMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.DescribedObject.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Metric.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ObjectMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Metric.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Current.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.DescribedObject.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodsMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Metric.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodsMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Metric.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Current.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceMetricSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceMetricStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Current.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CrossVersionObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CrossVersionObjectReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalMetricSource{`, - `Metric:` + strings.Replace(strings.Replace(this.Metric.String(), "MetricIdentifier", "MetricIdentifier", 1), `&`, ``, 1) + `,`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "MetricTarget", "MetricTarget", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ExternalMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExternalMetricStatus{`, - `Metric:` + strings.Replace(strings.Replace(this.Metric.String(), "MetricIdentifier", "MetricIdentifier", 1), `&`, ``, 1) + `,`, - `Current:` + strings.Replace(strings.Replace(this.Current.String(), "MetricValueStatus", "MetricValueStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscaler) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscaler{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "HorizontalPodAutoscalerSpec", "HorizontalPodAutoscalerSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "HorizontalPodAutoscalerStatus", "HorizontalPodAutoscalerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HorizontalPodAutoscalerCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]HorizontalPodAutoscaler{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "HorizontalPodAutoscaler", "HorizontalPodAutoscaler", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForMetrics := "[]MetricSpec{" - for _, f := range this.Metrics { - repeatedStringForMetrics += strings.Replace(strings.Replace(f.String(), "MetricSpec", "MetricSpec", 1), `&`, ``, 1) + "," - } - repeatedStringForMetrics += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerSpec{`, - `ScaleTargetRef:` + strings.Replace(strings.Replace(this.ScaleTargetRef.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `MinReplicas:` + valueToStringGenerated(this.MinReplicas) + `,`, - `MaxReplicas:` + fmt.Sprintf("%v", this.MaxReplicas) + `,`, - `Metrics:` + repeatedStringForMetrics + `,`, - `}`, - }, "") - return s -} -func (this *HorizontalPodAutoscalerStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForCurrentMetrics := "[]MetricStatus{" - for _, f := range this.CurrentMetrics { - repeatedStringForCurrentMetrics += strings.Replace(strings.Replace(f.String(), "MetricStatus", "MetricStatus", 1), `&`, ``, 1) + "," - } - repeatedStringForCurrentMetrics += "}" - repeatedStringForConditions := "[]HorizontalPodAutoscalerCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "HorizontalPodAutoscalerCondition", "HorizontalPodAutoscalerCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&HorizontalPodAutoscalerStatus{`, - `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, - `LastScaleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScaleTime), "Time", "v1.Time", 1) + `,`, - `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, - `DesiredReplicas:` + fmt.Sprintf("%v", this.DesiredReplicas) + `,`, - `CurrentMetrics:` + repeatedStringForCurrentMetrics + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *MetricIdentifier) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricIdentifier{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricSpec{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(this.Object.String(), "ObjectMetricSource", "ObjectMetricSource", 1) + `,`, - `Pods:` + strings.Replace(this.Pods.String(), "PodsMetricSource", "PodsMetricSource", 1) + `,`, - `Resource:` + strings.Replace(this.Resource.String(), "ResourceMetricSource", "ResourceMetricSource", 1) + `,`, - `External:` + strings.Replace(this.External.String(), "ExternalMetricSource", "ExternalMetricSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricStatus{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(this.Object.String(), "ObjectMetricStatus", "ObjectMetricStatus", 1) + `,`, - `Pods:` + strings.Replace(this.Pods.String(), "PodsMetricStatus", "PodsMetricStatus", 1) + `,`, - `Resource:` + strings.Replace(this.Resource.String(), "ResourceMetricStatus", "ResourceMetricStatus", 1) + `,`, - `External:` + strings.Replace(this.External.String(), "ExternalMetricStatus", "ExternalMetricStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *MetricTarget) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricTarget{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Value:` + strings.Replace(fmt.Sprintf("%v", this.Value), "Quantity", "resource.Quantity", 1) + `,`, - `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `AverageUtilization:` + valueToStringGenerated(this.AverageUtilization) + `,`, - `}`, - }, "") - return s -} -func (this *MetricValueStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&MetricValueStatus{`, - `Value:` + strings.Replace(fmt.Sprintf("%v", this.Value), "Quantity", "resource.Quantity", 1) + `,`, - `AverageValue:` + strings.Replace(fmt.Sprintf("%v", this.AverageValue), "Quantity", "resource.Quantity", 1) + `,`, - `AverageUtilization:` + valueToStringGenerated(this.AverageUtilization) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectMetricSource{`, - `DescribedObject:` + strings.Replace(strings.Replace(this.DescribedObject.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "MetricTarget", "MetricTarget", 1), `&`, ``, 1) + `,`, - `Metric:` + strings.Replace(strings.Replace(this.Metric.String(), "MetricIdentifier", "MetricIdentifier", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectMetricStatus{`, - `Metric:` + strings.Replace(strings.Replace(this.Metric.String(), "MetricIdentifier", "MetricIdentifier", 1), `&`, ``, 1) + `,`, - `Current:` + strings.Replace(strings.Replace(this.Current.String(), "MetricValueStatus", "MetricValueStatus", 1), `&`, ``, 1) + `,`, - `DescribedObject:` + strings.Replace(strings.Replace(this.DescribedObject.String(), "CrossVersionObjectReference", "CrossVersionObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodsMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodsMetricSource{`, - `Metric:` + strings.Replace(strings.Replace(this.Metric.String(), "MetricIdentifier", "MetricIdentifier", 1), `&`, ``, 1) + `,`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "MetricTarget", "MetricTarget", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodsMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodsMetricStatus{`, - `Metric:` + strings.Replace(strings.Replace(this.Metric.String(), "MetricIdentifier", "MetricIdentifier", 1), `&`, ``, 1) + `,`, - `Current:` + strings.Replace(strings.Replace(this.Current.String(), "MetricValueStatus", "MetricValueStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceMetricSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceMetricSource{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "MetricTarget", "MetricTarget", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceMetricStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceMetricStatus{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Current:` + strings.Replace(strings.Replace(this.Current.String(), "MetricValueStatus", "MetricValueStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CrossVersionObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CrossVersionObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExternalMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExternalMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Current.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscaler: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscaler: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = HorizontalPodAutoscalerConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, HorizontalPodAutoscaler{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScaleTargetRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ScaleTargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReplicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.MinReplicas = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxReplicas", wireType) - } - m.MaxReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Metrics = append(m.Metrics, MetricSpec{}) - if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HorizontalPodAutoscalerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ObservedGeneration = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScaleTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastScaleTime == nil { - m.LastScaleTime = &v1.Time{} - } - if err := m.LastScaleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) - } - m.CurrentReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredReplicas", wireType) - } - m.DesiredReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentMetrics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentMetrics = append(m.CurrentMetrics, MetricStatus{}) - if err := m.CurrentMetrics[len(m.CurrentMetrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, HorizontalPodAutoscalerCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricIdentifier) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricIdentifier: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricIdentifier: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &ObjectMetricSource{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pods == nil { - m.Pods = &PodsMetricSource{} - } - if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &ResourceMetricSource{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.External == nil { - m.External = &ExternalMetricSource{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricSourceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Object == nil { - m.Object = &ObjectMetricStatus{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pods == nil { - m.Pods = &PodsMetricStatus{} - } - if err := m.Pods.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Resource == nil { - m.Resource = &ResourceMetricStatus{} - } - if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field External", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.External == nil { - m.External = &ExternalMetricStatus{} - } - if err := m.External.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricTarget) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricTarget: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricTarget: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = MetricTargetType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &resource.Quantity{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AverageValue == nil { - m.AverageValue = &resource.Quantity{} - } - if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageUtilization", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AverageUtilization = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MetricValueStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MetricValueStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MetricValueStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &resource.Quantity{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AverageValue == nil { - m.AverageValue = &resource.Quantity{} - } - if err := m.AverageValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AverageUtilization", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AverageUtilization = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DescribedObject", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DescribedObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Current.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DescribedObject", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DescribedObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodsMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodsMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodsMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodsMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodsMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodsMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metric", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Metric.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Current.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetricSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceMetricSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetricSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceMetricStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceMetricStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceMetricStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Current.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/autoscaling/v2beta2/generated.proto b/pseudo/k8s/api/autoscaling/v2beta2/generated.proto deleted file mode 100644 index df80295bd..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/generated.proto +++ /dev/null @@ -1,372 +0,0 @@ -/* -Copyright 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.autoscaling.v2beta2; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v2beta2"; - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -message CrossVersionObjectReference { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - optional string kind = 1; - - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - optional string name = 2; - - // API version of the referent - // +optional - optional string apiVersion = 3; -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -message ExternalMetricSource { - // metric identifies the target metric by name and selector - optional MetricIdentifier metric = 1; - - // target specifies the target value for the given metric - optional MetricTarget target = 2; -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -message ExternalMetricStatus { - // metric identifies the target metric by name and selector - optional MetricIdentifier metric = 1; - - // current contains the current value for the given metric - optional MetricValueStatus current = 2; -} - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -message HorizontalPodAutoscaler { - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional HorizontalPodAutoscalerSpec spec = 2; - - // status is the current information about the autoscaler. - // +optional - optional HorizontalPodAutoscalerStatus status = 3; -} - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -message HorizontalPodAutoscalerCondition { - // type describes the current condition - optional string type = 1; - - // status is the status of the condition (True, False, Unknown) - optional string status = 2; - - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // reason is the reason for the condition's last transition. - // +optional - optional string reason = 4; - - // message is a human-readable explanation containing details about - // the transition - // +optional - optional string message = 5; -} - -// HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. -message HorizontalPodAutoscalerList { - // metadata is the standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of horizontal pod autoscaler objects. - repeated HorizontalPodAutoscaler items = 2; -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -message HorizontalPodAutoscalerSpec { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - optional CrossVersionObjectReference scaleTargetRef = 1; - - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - optional int32 minReplicas = 2; - - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - optional int32 maxReplicas = 3; - - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // If not set, the default metric will be set to 80% average CPU utilization. - // +optional - repeated MetricSpec metrics = 4; -} - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -message HorizontalPodAutoscalerStatus { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - optional int64 observedGeneration = 1; - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScaleTime = 2; - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - optional int32 currentReplicas = 3; - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - optional int32 desiredReplicas = 4; - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +optional - repeated MetricStatus currentMetrics = 5; - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - repeated HorizontalPodAutoscalerCondition conditions = 6; -} - -// MetricIdentifier defines the name and optionally selector for a metric -message MetricIdentifier { - // name is the name of the given metric - optional string name = 1; - - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; -} - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -message MetricSpec { - // type is the type of metric source. It should be one of "Object", - // "Pods" or "Resource", each mapping to a matching field in the object. - optional string type = 1; - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - optional ObjectMetricSource object = 2; - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - optional PodsMetricSource pods = 3; - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - optional ResourceMetricSource resource = 4; - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - optional ExternalMetricSource external = 5; -} - -// MetricStatus describes the last-read state of a single metric. -message MetricStatus { - // type is the type of metric source. It will be one of "Object", - // "Pods" or "Resource", each corresponds to a matching field in the object. - optional string type = 1; - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - optional ObjectMetricStatus object = 2; - - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - optional PodsMetricStatus pods = 3; - - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - optional ResourceMetricStatus resource = 4; - - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - optional ExternalMetricStatus external = 5; -} - -// MetricTarget defines the target value, average value, or average utilization of a specific metric -message MetricTarget { - // type represents whether the metric type is Utilization, Value, or AverageValue - optional string type = 1; - - // value is the target value of the metric (as a quantity). - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; - - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 3; - - // averageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // Currently only valid for Resource metric source type - // +optional - optional int32 averageUtilization = 4; -} - -// MetricValueStatus holds the current value for a metric -message MetricValueStatus { - // value is the current value of the metric (as a quantity). - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; - - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 2; - - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - optional int32 averageUtilization = 3; -} - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -message ObjectMetricSource { - optional CrossVersionObjectReference describedObject = 1; - - // target specifies the target value for the given metric - optional MetricTarget target = 2; - - // metric identifies the target metric by name and selector - optional MetricIdentifier metric = 3; -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -message ObjectMetricStatus { - // metric identifies the target metric by name and selector - optional MetricIdentifier metric = 1; - - // current contains the current value for the given metric - optional MetricValueStatus current = 2; - - optional CrossVersionObjectReference describedObject = 3; -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -message PodsMetricSource { - // metric identifies the target metric by name and selector - optional MetricIdentifier metric = 1; - - // target specifies the target value for the given metric - optional MetricTarget target = 2; -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -message PodsMetricStatus { - // metric identifies the target metric by name and selector - optional MetricIdentifier metric = 1; - - // current contains the current value for the given metric - optional MetricValueStatus current = 2; -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -message ResourceMetricSource { - // name is the name of the resource in question. - optional string name = 1; - - // target specifies the target value for the given metric - optional MetricTarget target = 2; -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -message ResourceMetricStatus { - // Name is the name of the resource in question. - optional string name = 1; - - // current contains the current value for the given metric - optional MetricValueStatus current = 2; -} - diff --git a/pseudo/k8s/api/autoscaling/v2beta2/register.go b/pseudo/k8s/api/autoscaling/v2beta2/register.go deleted file mode 100644 index 555a86e2d..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/register.go +++ /dev/null @@ -1,50 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 v2beta2 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "autoscaling" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2beta2"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &HorizontalPodAutoscaler{}, - &HorizontalPodAutoscalerList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/autoscaling/v2beta2/types.go b/pseudo/k8s/api/autoscaling/v2beta2/types.go deleted file mode 100644 index 1526dca4e..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/types.go +++ /dev/null @@ -1,396 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:openapi-gen=true - -package v2beta2 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// HorizontalPodAutoscaler is the configuration for a horizontal pod -// autoscaler, which automatically manages the replica count of any resource -// implementing the scale subresource based on the metrics specified. -type HorizontalPodAutoscaler struct { - metav1.TypeMeta `json:",inline"` - // metadata is the standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec is the specification for the behaviour of the autoscaler. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // status is the current information about the autoscaler. - // +optional - Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -type HorizontalPodAutoscalerSpec struct { - // scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics - // should be collected, as well as to actually change the replica count. - ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"` - // minReplicas is the lower limit for the number of replicas to which the autoscaler - // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the - // alpha feature gate HPAScaleToZero is enabled and at least one Object or External - // metric is configured. Scaling is active as long as at least one metric value is - // available. - // +optional - MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"` - // maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - // It cannot be less that minReplicas. - MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"` - // metrics contains the specifications for which to use to calculate the - // desired replica count (the maximum replica count across all metrics will - // be used). The desired replica count is calculated multiplying the - // ratio between the target value and the current value by the current - // number of pods. Ergo, metrics used must decrease as the pod count is - // increased, and vice-versa. See the individual metric source types for - // more information about how each type of metric must respond. - // If not set, the default metric will be set to 80% average CPU utilization. - // +optional - Metrics []MetricSpec `json:"metrics,omitempty" protobuf:"bytes,4,rep,name=metrics"` -} - -// CrossVersionObjectReference contains enough information to let you identify the referred resource. -type CrossVersionObjectReference struct { - // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` - // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - // API version of the referent - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` -} - -// MetricSpec specifies how to scale based on a single metric -// (only `type` and one other matching field should be set at once). -type MetricSpec struct { - // type is the type of metric source. It should be one of "Object", - // "Pods" or "Resource", each mapping to a matching field in the object. - Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - Object *ObjectMetricSource `json:"object,omitempty" protobuf:"bytes,2,opt,name=object"` - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - Pods *PodsMetricSource `json:"pods,omitempty" protobuf:"bytes,3,opt,name=pods"` - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - Resource *ResourceMetricSource `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"` - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - External *ExternalMetricSource `json:"external,omitempty" protobuf:"bytes,5,opt,name=external"` -} - -// MetricSourceType indicates the type of metric. -type MetricSourceType string - -var ( - // ObjectMetricSourceType is a metric describing a kubernetes object - // (for example, hits-per-second on an Ingress object). - ObjectMetricSourceType MetricSourceType = "Object" - // PodsMetricSourceType is a metric describing each pod in the current scale - // target (for example, transactions-processed-per-second). The values - // will be averaged together before being compared to the target value. - PodsMetricSourceType MetricSourceType = "Pods" - // ResourceMetricSourceType is a resource metric known to Kubernetes, as - // specified in requests and limits, describing each pod in the current - // scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics (the "pods" source). - ResourceMetricSourceType MetricSourceType = "Resource" - // ExternalMetricSourceType is a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - ExternalMetricSourceType MetricSourceType = "External" -) - -// ObjectMetricSource indicates how to scale on a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -type ObjectMetricSource struct { - DescribedObject CrossVersionObjectReference `json:"describedObject" protobuf:"bytes,1,name=describedObject"` - // target specifies the target value for the given metric - Target MetricTarget `json:"target" protobuf:"bytes,2,name=target"` - // metric identifies the target metric by name and selector - Metric MetricIdentifier `json:"metric" protobuf:"bytes,3,name=metric"` -} - -// PodsMetricSource indicates how to scale on a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -// The values will be averaged together before being compared to the target -// value. -type PodsMetricSource struct { - // metric identifies the target metric by name and selector - Metric MetricIdentifier `json:"metric" protobuf:"bytes,1,name=metric"` - // target specifies the target value for the given metric - Target MetricTarget `json:"target" protobuf:"bytes,2,name=target"` -} - -// ResourceMetricSource indicates how to scale on a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). The values will be averaged -// together before being compared to the target. Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. Only one "target" type -// should be set. -type ResourceMetricSource struct { - // name is the name of the resource in question. - Name v1.ResourceName `json:"name" protobuf:"bytes,1,name=name"` - // target specifies the target value for the given metric - Target MetricTarget `json:"target" protobuf:"bytes,2,name=target"` -} - -// ExternalMetricSource indicates how to scale on a metric not associated with -// any Kubernetes object (for example length of queue in cloud -// messaging service, or QPS from loadbalancer running outside of cluster). -type ExternalMetricSource struct { - // metric identifies the target metric by name and selector - Metric MetricIdentifier `json:"metric" protobuf:"bytes,1,name=metric"` - // target specifies the target value for the given metric - Target MetricTarget `json:"target" protobuf:"bytes,2,name=target"` -} - -// MetricIdentifier defines the name and optionally selector for a metric -type MetricIdentifier struct { - // name is the name of the given metric - Name string `json:"name" protobuf:"bytes,1,name=name"` - // selector is the string-encoded form of a standard kubernetes label selector for the given metric - // When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. - // When unset, just the metricName will be used to gather metrics. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,name=selector"` -} - -// MetricTarget defines the target value, average value, or average utilization of a specific metric -type MetricTarget struct { - // type represents whether the metric type is Utilization, Value, or AverageValue - Type MetricTargetType `json:"type" protobuf:"bytes,1,name=type"` - // value is the target value of the metric (as a quantity). - // +optional - Value *resource.Quantity `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` - // averageValue is the target value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - AverageValue *resource.Quantity `json:"averageValue,omitempty" protobuf:"bytes,3,opt,name=averageValue"` - // averageUtilization is the target value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // Currently only valid for Resource metric source type - // +optional - AverageUtilization *int32 `json:"averageUtilization,omitempty" protobuf:"bytes,4,opt,name=averageUtilization"` -} - -// MetricTargetType specifies the type of metric being targeted, and should be either -// "Value", "AverageValue", or "Utilization" -type MetricTargetType string - -var ( - // UtilizationMetricType declares a MetricTarget is an AverageUtilization value - UtilizationMetricType MetricTargetType = "Utilization" - // ValueMetricType declares a MetricTarget is a raw value - ValueMetricType MetricTargetType = "Value" - // AverageValueMetricType declares a MetricTarget is an - AverageValueMetricType MetricTargetType = "AverageValue" -) - -// HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -type HorizontalPodAutoscalerStatus struct { - // observedGeneration is the most recent generation observed by this autoscaler. - // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, - // used by the autoscaler to control how often the number of pods is changed. - // +optional - LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty" protobuf:"bytes,2,opt,name=lastScaleTime"` - - // currentReplicas is current number of replicas of pods managed by this autoscaler, - // as last seen by the autoscaler. - CurrentReplicas int32 `json:"currentReplicas" protobuf:"varint,3,opt,name=currentReplicas"` - - // desiredReplicas is the desired number of replicas of pods managed by this autoscaler, - // as last calculated by the autoscaler. - DesiredReplicas int32 `json:"desiredReplicas" protobuf:"varint,4,opt,name=desiredReplicas"` - - // currentMetrics is the last read state of the metrics used by this autoscaler. - // +optional - CurrentMetrics []MetricStatus `json:"currentMetrics" protobuf:"bytes,5,rep,name=currentMetrics"` - - // conditions is the set of conditions required for this autoscaler to scale its target, - // and indicates whether or not those conditions are met. - Conditions []HorizontalPodAutoscalerCondition `json:"conditions" protobuf:"bytes,6,rep,name=conditions"` -} - -// HorizontalPodAutoscalerConditionType are the valid conditions of -// a HorizontalPodAutoscaler. -type HorizontalPodAutoscalerConditionType string - -var ( - // ScalingActive indicates that the HPA controller is able to scale if necessary: - // it's correctly configured, can fetch the desired metrics, and isn't disabled. - ScalingActive HorizontalPodAutoscalerConditionType = "ScalingActive" - // AbleToScale indicates a lack of transient issues which prevent scaling from occurring, - // such as being in a backoff window, or being unable to access/update the target scale. - AbleToScale HorizontalPodAutoscalerConditionType = "AbleToScale" - // ScalingLimited indicates that the calculated scale based on metrics would be above or - // below the range for the HPA, and has thus been capped. - ScalingLimited HorizontalPodAutoscalerConditionType = "ScalingLimited" -) - -// HorizontalPodAutoscalerCondition describes the state of -// a HorizontalPodAutoscaler at a certain point. -type HorizontalPodAutoscalerCondition struct { - // type describes the current condition - Type HorizontalPodAutoscalerConditionType `json:"type" protobuf:"bytes,1,name=type"` - // status is the status of the condition (True, False, Unknown) - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,name=status"` - // lastTransitionTime is the last time the condition transitioned from - // one status to another - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // reason is the reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // message is a human-readable explanation containing details about - // the transition - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// MetricStatus describes the last-read state of a single metric. -type MetricStatus struct { - // type is the type of metric source. It will be one of "Object", - // "Pods" or "Resource", each corresponds to a matching field in the object. - Type MetricSourceType `json:"type" protobuf:"bytes,1,name=type"` - - // object refers to a metric describing a single kubernetes object - // (for example, hits-per-second on an Ingress object). - // +optional - Object *ObjectMetricStatus `json:"object,omitempty" protobuf:"bytes,2,opt,name=object"` - // pods refers to a metric describing each pod in the current scale target - // (for example, transactions-processed-per-second). The values will be - // averaged together before being compared to the target value. - // +optional - Pods *PodsMetricStatus `json:"pods,omitempty" protobuf:"bytes,3,opt,name=pods"` - // resource refers to a resource metric (such as those specified in - // requests and limits) known to Kubernetes describing each pod in the - // current scale target (e.g. CPU or memory). Such metrics are built in to - // Kubernetes, and have special scaling options on top of those available - // to normal per-pod metrics using the "pods" source. - // +optional - Resource *ResourceMetricStatus `json:"resource,omitempty" protobuf:"bytes,4,opt,name=resource"` - // external refers to a global metric that is not associated - // with any Kubernetes object. It allows autoscaling based on information - // coming from components running outside of cluster - // (for example length of queue in cloud messaging service, or - // QPS from loadbalancer running outside of cluster). - // +optional - External *ExternalMetricStatus `json:"external,omitempty" protobuf:"bytes,5,opt,name=external"` -} - -// ObjectMetricStatus indicates the current value of a metric describing a -// kubernetes object (for example, hits-per-second on an Ingress object). -type ObjectMetricStatus struct { - // metric identifies the target metric by name and selector - Metric MetricIdentifier `json:"metric" protobuf:"bytes,1,name=metric"` - // current contains the current value for the given metric - Current MetricValueStatus `json:"current" protobuf:"bytes,2,name=current"` - - DescribedObject CrossVersionObjectReference `json:"describedObject" protobuf:"bytes,3,name=describedObject"` -} - -// PodsMetricStatus indicates the current value of a metric describing each pod in -// the current scale target (for example, transactions-processed-per-second). -type PodsMetricStatus struct { - // metric identifies the target metric by name and selector - Metric MetricIdentifier `json:"metric" protobuf:"bytes,1,name=metric"` - // current contains the current value for the given metric - Current MetricValueStatus `json:"current" protobuf:"bytes,2,name=current"` -} - -// ResourceMetricStatus indicates the current value of a resource metric known to -// Kubernetes, as specified in requests and limits, describing each pod in the -// current scale target (e.g. CPU or memory). Such metrics are built in to -// Kubernetes, and have special scaling options on top of those available to -// normal per-pod metrics using the "pods" source. -type ResourceMetricStatus struct { - // Name is the name of the resource in question. - Name v1.ResourceName `json:"name" protobuf:"bytes,1,name=name"` - // current contains the current value for the given metric - Current MetricValueStatus `json:"current" protobuf:"bytes,2,name=current"` -} - -// ExternalMetricStatus indicates the current value of a global metric -// not associated with any Kubernetes object. -type ExternalMetricStatus struct { - // metric identifies the target metric by name and selector - Metric MetricIdentifier `json:"metric" protobuf:"bytes,1,name=metric"` - // current contains the current value for the given metric - Current MetricValueStatus `json:"current" protobuf:"bytes,2,name=current"` -} - -// MetricValueStatus holds the current value for a metric -type MetricValueStatus struct { - // value is the current value of the metric (as a quantity). - // +optional - Value *resource.Quantity `json:"value,omitempty" protobuf:"bytes,1,opt,name=value"` - // averageValue is the current value of the average of the - // metric across all relevant pods (as a quantity) - // +optional - AverageValue *resource.Quantity `json:"averageValue,omitempty" protobuf:"bytes,2,opt,name=averageValue"` - // currentAverageUtilization is the current value of the average of the - // resource metric across all relevant pods, represented as a percentage of - // the requested value of the resource for the pods. - // +optional - AverageUtilization *int32 `json:"averageUtilization,omitempty" protobuf:"bytes,3,opt,name=averageUtilization"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. -type HorizontalPodAutoscalerList struct { - metav1.TypeMeta `json:",inline"` - // metadata is the standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of horizontal pod autoscaler objects. - Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/autoscaling/v2beta2/types_swagger_doc_generated.go b/pseudo/k8s/api/autoscaling/v2beta2/types_swagger_doc_generated.go deleted file mode 100644 index bb85b9f0f..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/types_swagger_doc_generated.go +++ /dev/null @@ -1,240 +0,0 @@ -/* -Copyright 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 v2beta2 - -// 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. DO NOT EDIT. -var map_CrossVersionObjectReference = map[string]string{ - "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "kind": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "name": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "apiVersion": "API version of the referent", -} - -func (CrossVersionObjectReference) SwaggerDoc() map[string]string { - return map_CrossVersionObjectReference -} - -var map_ExternalMetricSource = map[string]string{ - "": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "metric": "metric identifies the target metric by name and selector", - "target": "target specifies the target value for the given metric", -} - -func (ExternalMetricSource) SwaggerDoc() map[string]string { - return map_ExternalMetricSource -} - -var map_ExternalMetricStatus = map[string]string{ - "": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "metric": "metric identifies the target metric by name and selector", - "current": "current contains the current value for the given metric", -} - -func (ExternalMetricStatus) SwaggerDoc() map[string]string { - return map_ExternalMetricStatus -} - -var map_HorizontalPodAutoscaler = map[string]string{ - "": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "metadata": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "status is the current information about the autoscaler.", -} - -func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscaler -} - -var map_HorizontalPodAutoscalerCondition = map[string]string{ - "": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "type": "type describes the current condition", - "status": "status is the status of the condition (True, False, Unknown)", - "lastTransitionTime": "lastTransitionTime is the last time the condition transitioned from one status to another", - "reason": "reason is the reason for the condition's last transition.", - "message": "message is a human-readable explanation containing details about the transition", -} - -func (HorizontalPodAutoscalerCondition) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerCondition -} - -var map_HorizontalPodAutoscalerList = map[string]string{ - "": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", - "metadata": "metadata is the standard list metadata.", - "items": "items is the list of horizontal pod autoscaler objects.", -} - -func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerList -} - -var map_HorizontalPodAutoscalerSpec = map[string]string{ - "": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "scaleTargetRef": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.", - "minReplicas": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "maxReplicas": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "metrics": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", -} - -func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerSpec -} - -var map_HorizontalPodAutoscalerStatus = map[string]string{ - "": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "observedGeneration": "observedGeneration is the most recent generation observed by this autoscaler.", - "lastScaleTime": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "currentReplicas": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "desiredReplicas": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "currentMetrics": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "conditions": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", -} - -func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string { - return map_HorizontalPodAutoscalerStatus -} - -var map_MetricIdentifier = map[string]string{ - "": "MetricIdentifier defines the name and optionally selector for a metric", - "name": "name is the name of the given metric", - "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.", -} - -func (MetricIdentifier) SwaggerDoc() map[string]string { - return map_MetricIdentifier -} - -var map_MetricSpec = map[string]string{ - "": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "type": "type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.", - "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", -} - -func (MetricSpec) SwaggerDoc() map[string]string { - return map_MetricSpec -} - -var map_MetricStatus = map[string]string{ - "": "MetricStatus describes the last-read state of a single metric.", - "type": "type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.", - "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).", - "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", -} - -func (MetricStatus) SwaggerDoc() map[string]string { - return map_MetricStatus -} - -var map_MetricTarget = map[string]string{ - "": "MetricTarget defines the target value, average value, or average utilization of a specific metric", - "type": "type represents whether the metric type is Utilization, Value, or AverageValue", - "value": "value is the target value of the metric (as a quantity).", - "averageValue": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "averageUtilization": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", -} - -func (MetricTarget) SwaggerDoc() map[string]string { - return map_MetricTarget -} - -var map_MetricValueStatus = map[string]string{ - "": "MetricValueStatus holds the current value for a metric", - "value": "value is the current value of the metric (as a quantity).", - "averageValue": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "averageUtilization": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", -} - -func (MetricValueStatus) SwaggerDoc() map[string]string { - return map_MetricValueStatus -} - -var map_ObjectMetricSource = map[string]string{ - "": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "target": "target specifies the target value for the given metric", - "metric": "metric identifies the target metric by name and selector", -} - -func (ObjectMetricSource) SwaggerDoc() map[string]string { - return map_ObjectMetricSource -} - -var map_ObjectMetricStatus = map[string]string{ - "": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "metric": "metric identifies the target metric by name and selector", - "current": "current contains the current value for the given metric", -} - -func (ObjectMetricStatus) SwaggerDoc() map[string]string { - return map_ObjectMetricStatus -} - -var map_PodsMetricSource = map[string]string{ - "": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "metric": "metric identifies the target metric by name and selector", - "target": "target specifies the target value for the given metric", -} - -func (PodsMetricSource) SwaggerDoc() map[string]string { - return map_PodsMetricSource -} - -var map_PodsMetricStatus = map[string]string{ - "": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "metric": "metric identifies the target metric by name and selector", - "current": "current contains the current value for the given metric", -} - -func (PodsMetricStatus) SwaggerDoc() map[string]string { - return map_PodsMetricStatus -} - -var map_ResourceMetricSource = map[string]string{ - "": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "name": "name is the name of the resource in question.", - "target": "target specifies the target value for the given metric", -} - -func (ResourceMetricSource) SwaggerDoc() map[string]string { - return map_ResourceMetricSource -} - -var map_ResourceMetricStatus = map[string]string{ - "": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "name": "Name is the name of the resource in question.", - "current": "current contains the current value for the given metric", -} - -func (ResourceMetricStatus) SwaggerDoc() map[string]string { - return map_ResourceMetricStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/autoscaling/v2beta2/zz_generated.deepcopy.go b/pseudo/k8s/api/autoscaling/v2beta2/zz_generated.deepcopy.go deleted file mode 100644 index 0c6ab7dbc..000000000 --- a/pseudo/k8s/api/autoscaling/v2beta2/zz_generated.deepcopy.go +++ /dev/null @@ -1,487 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v2beta2 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference. -func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference { - if in == nil { - return nil - } - out := new(CrossVersionObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) { - *out = *in - in.Metric.DeepCopyInto(&out.Metric) - in.Target.DeepCopyInto(&out.Target) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource. -func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource { - if in == nil { - return nil - } - out := new(ExternalMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) { - *out = *in - in.Metric.DeepCopyInto(&out.Metric) - in.Current.DeepCopyInto(&out.Current) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus. -func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus { - if in == nil { - return nil - } - out := new(ExternalMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler. -func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscaler) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition. -func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]HorizontalPodAutoscaler, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList. -func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) { - *out = *in - out.ScaleTargetRef = in.ScaleTargetRef - if in.MinReplicas != nil { - in, out := &in.MinReplicas, &out.MinReplicas - *out = new(int32) - **out = **in - } - if in.Metrics != nil { - in, out := &in.Metrics, &out.Metrics - *out = make([]MetricSpec, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec. -func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) { - *out = *in - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = **in - } - if in.LastScaleTime != nil { - in, out := &in.LastScaleTime, &out.LastScaleTime - *out = (*in).DeepCopy() - } - if in.CurrentMetrics != nil { - in, out := &in.CurrentMetrics, &out.CurrentMetrics - *out = make([]MetricStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]HorizontalPodAutoscalerCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus. -func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus { - if in == nil { - return nil - } - out := new(HorizontalPodAutoscalerStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricIdentifier) DeepCopyInto(out *MetricIdentifier) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricIdentifier. -func (in *MetricIdentifier) DeepCopy() *MetricIdentifier { - if in == nil { - return nil - } - out := new(MetricIdentifier) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricSpec) DeepCopyInto(out *MetricSpec) { - *out = *in - if in.Object != nil { - in, out := &in.Object, &out.Object - *out = new(ObjectMetricSource) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(PodsMetricSource) - (*in).DeepCopyInto(*out) - } - if in.Resource != nil { - in, out := &in.Resource, &out.Resource - *out = new(ResourceMetricSource) - (*in).DeepCopyInto(*out) - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalMetricSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec. -func (in *MetricSpec) DeepCopy() *MetricSpec { - if in == nil { - return nil - } - out := new(MetricSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricStatus) DeepCopyInto(out *MetricStatus) { - *out = *in - if in.Object != nil { - in, out := &in.Object, &out.Object - *out = new(ObjectMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(PodsMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.Resource != nil { - in, out := &in.Resource, &out.Resource - *out = new(ResourceMetricStatus) - (*in).DeepCopyInto(*out) - } - if in.External != nil { - in, out := &in.External, &out.External - *out = new(ExternalMetricStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus. -func (in *MetricStatus) DeepCopy() *MetricStatus { - if in == nil { - return nil - } - out := new(MetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricTarget) DeepCopyInto(out *MetricTarget) { - *out = *in - if in.Value != nil { - in, out := &in.Value, &out.Value - x := (*in).DeepCopy() - *out = &x - } - if in.AverageValue != nil { - in, out := &in.AverageValue, &out.AverageValue - x := (*in).DeepCopy() - *out = &x - } - if in.AverageUtilization != nil { - in, out := &in.AverageUtilization, &out.AverageUtilization - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricTarget. -func (in *MetricTarget) DeepCopy() *MetricTarget { - if in == nil { - return nil - } - out := new(MetricTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetricValueStatus) DeepCopyInto(out *MetricValueStatus) { - *out = *in - if in.Value != nil { - in, out := &in.Value, &out.Value - x := (*in).DeepCopy() - *out = &x - } - if in.AverageValue != nil { - in, out := &in.AverageValue, &out.AverageValue - x := (*in).DeepCopy() - *out = &x - } - if in.AverageUtilization != nil { - in, out := &in.AverageUtilization, &out.AverageUtilization - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricValueStatus. -func (in *MetricValueStatus) DeepCopy() *MetricValueStatus { - if in == nil { - return nil - } - out := new(MetricValueStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) { - *out = *in - out.DescribedObject = in.DescribedObject - in.Target.DeepCopyInto(&out.Target) - in.Metric.DeepCopyInto(&out.Metric) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource. -func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource { - if in == nil { - return nil - } - out := new(ObjectMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) { - *out = *in - in.Metric.DeepCopyInto(&out.Metric) - in.Current.DeepCopyInto(&out.Current) - out.DescribedObject = in.DescribedObject - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus. -func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus { - if in == nil { - return nil - } - out := new(ObjectMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) { - *out = *in - in.Metric.DeepCopyInto(&out.Metric) - in.Target.DeepCopyInto(&out.Target) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource. -func (in *PodsMetricSource) DeepCopy() *PodsMetricSource { - if in == nil { - return nil - } - out := new(PodsMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) { - *out = *in - in.Metric.DeepCopyInto(&out.Metric) - in.Current.DeepCopyInto(&out.Current) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus. -func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus { - if in == nil { - return nil - } - out := new(PodsMetricStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) { - *out = *in - in.Target.DeepCopyInto(&out.Target) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource. -func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource { - if in == nil { - return nil - } - out := new(ResourceMetricSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) { - *out = *in - in.Current.DeepCopyInto(&out.Current) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus. -func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus { - if in == nil { - return nil - } - out := new(ResourceMetricStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/batch/v1/doc.go b/pseudo/k8s/api/batch/v1/doc.go deleted file mode 100644 index a9e8c07c4..000000000 --- a/pseudo/k8s/api/batch/v1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1" diff --git a/pseudo/k8s/api/batch/v1/generated.pb.go b/pseudo/k8s/api/batch/v1/generated.pb.go deleted file mode 100644 index 48079430d..000000000 --- a/pseudo/k8s/api/batch/v1/generated.pb.go +++ /dev/null @@ -1,1880 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Job) Reset() { *m = Job{} } -func (*Job) ProtoMessage() {} -func (*Job) Descriptor() ([]byte, []int) { - return fileDescriptor_3b52da57c93de713, []int{0} -} -func (m *Job) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Job) XXX_Merge(src proto.Message) { - xxx_messageInfo_Job.Merge(m, src) -} -func (m *Job) XXX_Size() int { - return m.Size() -} -func (m *Job) XXX_DiscardUnknown() { - xxx_messageInfo_Job.DiscardUnknown(m) -} - -var xxx_messageInfo_Job proto.InternalMessageInfo - -func (m *JobCondition) Reset() { *m = JobCondition{} } -func (*JobCondition) ProtoMessage() {} -func (*JobCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_3b52da57c93de713, []int{1} -} -func (m *JobCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobCondition.Merge(m, src) -} -func (m *JobCondition) XXX_Size() int { - return m.Size() -} -func (m *JobCondition) XXX_DiscardUnknown() { - xxx_messageInfo_JobCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_JobCondition proto.InternalMessageInfo - -func (m *JobList) Reset() { *m = JobList{} } -func (*JobList) ProtoMessage() {} -func (*JobList) Descriptor() ([]byte, []int) { - return fileDescriptor_3b52da57c93de713, []int{2} -} -func (m *JobList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobList) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobList.Merge(m, src) -} -func (m *JobList) XXX_Size() int { - return m.Size() -} -func (m *JobList) XXX_DiscardUnknown() { - xxx_messageInfo_JobList.DiscardUnknown(m) -} - -var xxx_messageInfo_JobList proto.InternalMessageInfo - -func (m *JobSpec) Reset() { *m = JobSpec{} } -func (*JobSpec) ProtoMessage() {} -func (*JobSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_3b52da57c93de713, []int{3} -} -func (m *JobSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobSpec.Merge(m, src) -} -func (m *JobSpec) XXX_Size() int { - return m.Size() -} -func (m *JobSpec) XXX_DiscardUnknown() { - xxx_messageInfo_JobSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_JobSpec proto.InternalMessageInfo - -func (m *JobStatus) Reset() { *m = JobStatus{} } -func (*JobStatus) ProtoMessage() {} -func (*JobStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_3b52da57c93de713, []int{4} -} -func (m *JobStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobStatus.Merge(m, src) -} -func (m *JobStatus) XXX_Size() int { - return m.Size() -} -func (m *JobStatus) XXX_DiscardUnknown() { - xxx_messageInfo_JobStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_JobStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Job)(nil), "k8s.io.api.batch.v1.Job") - proto.RegisterType((*JobCondition)(nil), "k8s.io.api.batch.v1.JobCondition") - proto.RegisterType((*JobList)(nil), "k8s.io.api.batch.v1.JobList") - proto.RegisterType((*JobSpec)(nil), "k8s.io.api.batch.v1.JobSpec") - proto.RegisterType((*JobStatus)(nil), "k8s.io.api.batch.v1.JobStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1/generated.proto", fileDescriptor_3b52da57c93de713) -} - -var fileDescriptor_3b52da57c93de713 = []byte{ - // 929 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xe3, 0x44, - 0x14, 0xad, 0x9b, 0xa6, 0x4d, 0xa6, 0x1f, 0x5b, 0x06, 0x55, 0x1b, 0x0a, 0xb2, 0x97, 0x20, 0xa1, - 0x82, 0x84, 0x4d, 0x4b, 0x85, 0x10, 0x02, 0xa4, 0x75, 0x51, 0x25, 0xaa, 0x54, 0x5b, 0x26, 0x59, - 0x21, 0x21, 0x90, 0x18, 0xdb, 0x37, 0x89, 0x89, 0xed, 0xb1, 0x3c, 0x93, 0x48, 0x7d, 0xe3, 0x27, - 0xf0, 0x23, 0x10, 0x7f, 0x82, 0x77, 0xd4, 0xc7, 0x7d, 0xdc, 0x27, 0x8b, 0x9a, 0x1f, 0xc0, 0xfb, - 0x3e, 0xa1, 0x19, 0x3b, 0xb6, 0xd3, 0x26, 0xa2, 0xcb, 0x5b, 0xe6, 0xcc, 0x39, 0xe7, 0x5e, 0xcf, - 0x3d, 0xb9, 0xe8, 0x8b, 0xc9, 0x67, 0xdc, 0xf4, 0x99, 0x35, 0x99, 0x3a, 0x90, 0x44, 0x20, 0x80, - 0x5b, 0x33, 0x88, 0x3c, 0x96, 0x58, 0xc5, 0x05, 0x8d, 0x7d, 0xcb, 0xa1, 0xc2, 0x1d, 0x5b, 0xb3, - 0x63, 0x6b, 0x04, 0x11, 0x24, 0x54, 0x80, 0x67, 0xc6, 0x09, 0x13, 0x0c, 0xbf, 0x99, 0x93, 0x4c, - 0x1a, 0xfb, 0xa6, 0x22, 0x99, 0xb3, 0xe3, 0xc3, 0x8f, 0x46, 0xbe, 0x18, 0x4f, 0x1d, 0xd3, 0x65, - 0xa1, 0x35, 0x62, 0x23, 0x66, 0x29, 0xae, 0x33, 0x1d, 0xaa, 0x93, 0x3a, 0xa8, 0x5f, 0xb9, 0xc7, - 0x61, 0xb7, 0x56, 0xc8, 0x65, 0x09, 0x2c, 0xa9, 0x73, 0x78, 0x5a, 0x71, 0x42, 0xea, 0x8e, 0xfd, - 0x08, 0x92, 0x6b, 0x2b, 0x9e, 0x8c, 0x24, 0xc0, 0xad, 0x10, 0x04, 0x5d, 0xa6, 0xb2, 0x56, 0xa9, - 0x92, 0x69, 0x24, 0xfc, 0x10, 0xee, 0x09, 0x3e, 0xfd, 0x2f, 0x01, 0x77, 0xc7, 0x10, 0xd2, 0xbb, - 0xba, 0xee, 0x3f, 0x1a, 0x6a, 0x5c, 0x30, 0x07, 0xff, 0x84, 0x5a, 0xb2, 0x17, 0x8f, 0x0a, 0xda, - 0xd1, 0x9e, 0x68, 0x47, 0xdb, 0x27, 0x1f, 0x9b, 0xd5, 0x0b, 0x95, 0x96, 0x66, 0x3c, 0x19, 0x49, - 0x80, 0x9b, 0x92, 0x6d, 0xce, 0x8e, 0xcd, 0x67, 0xce, 0xcf, 0xe0, 0x8a, 0x4b, 0x10, 0xd4, 0xc6, - 0x37, 0xa9, 0xb1, 0x96, 0xa5, 0x06, 0xaa, 0x30, 0x52, 0xba, 0xe2, 0xaf, 0xd0, 0x06, 0x8f, 0xc1, - 0xed, 0xac, 0x2b, 0xf7, 0x77, 0xcc, 0x25, 0xef, 0x6f, 0x5e, 0x30, 0xa7, 0x1f, 0x83, 0x6b, 0xef, - 0x14, 0x4e, 0x1b, 0xf2, 0x44, 0x94, 0x0e, 0x9f, 0xa3, 0x4d, 0x2e, 0xa8, 0x98, 0xf2, 0x4e, 0x43, - 0x39, 0xe8, 0x2b, 0x1d, 0x14, 0xcb, 0xde, 0x2b, 0x3c, 0x36, 0xf3, 0x33, 0x29, 0xd4, 0xdd, 0x3f, - 0x1b, 0x68, 0xe7, 0x82, 0x39, 0x67, 0x2c, 0xf2, 0x7c, 0xe1, 0xb3, 0x08, 0x9f, 0xa2, 0x0d, 0x71, - 0x1d, 0x83, 0xfa, 0xec, 0xb6, 0xfd, 0x64, 0x5e, 0x7a, 0x70, 0x1d, 0xc3, 0xab, 0xd4, 0xd8, 0xaf, - 0x73, 0x25, 0x46, 0x14, 0x1b, 0xf7, 0xca, 0x76, 0xd6, 0x95, 0xee, 0x74, 0xb1, 0xdc, 0xab, 0xd4, - 0x58, 0x92, 0x0e, 0xb3, 0x74, 0x5a, 0x6c, 0x0a, 0x8f, 0xd0, 0x6e, 0x40, 0xb9, 0xb8, 0x4a, 0x98, - 0x03, 0x03, 0x3f, 0x84, 0xe2, 0x1b, 0x3f, 0x7c, 0xd8, 0x0c, 0xa4, 0xc2, 0x3e, 0x28, 0x1a, 0xd8, - 0xed, 0xd5, 0x8d, 0xc8, 0xa2, 0x2f, 0x9e, 0x21, 0x2c, 0x81, 0x41, 0x42, 0x23, 0x9e, 0x7f, 0x92, - 0xac, 0xb6, 0xf1, 0xda, 0xd5, 0x0e, 0x8b, 0x6a, 0xb8, 0x77, 0xcf, 0x8d, 0x2c, 0xa9, 0x80, 0xdf, - 0x47, 0x9b, 0x09, 0x50, 0xce, 0xa2, 0x4e, 0x53, 0x3d, 0x57, 0x39, 0x1d, 0xa2, 0x50, 0x52, 0xdc, - 0xe2, 0x0f, 0xd0, 0x56, 0x08, 0x9c, 0xd3, 0x11, 0x74, 0x36, 0x15, 0xf1, 0x51, 0x41, 0xdc, 0xba, - 0xcc, 0x61, 0x32, 0xbf, 0xef, 0xfe, 0xae, 0xa1, 0xad, 0x0b, 0xe6, 0xf4, 0x7c, 0x2e, 0xf0, 0x0f, - 0xf7, 0xe2, 0x6b, 0x3e, 0xec, 0x63, 0xa4, 0x5a, 0x85, 0x77, 0xbf, 0xa8, 0xd3, 0x9a, 0x23, 0xb5, - 0xe8, 0x7e, 0x89, 0x9a, 0xbe, 0x80, 0x50, 0x8e, 0xba, 0x71, 0xb4, 0x7d, 0xd2, 0x59, 0x95, 0x3c, - 0x7b, 0xb7, 0x30, 0x69, 0x7e, 0x23, 0xe9, 0x24, 0x57, 0x75, 0xff, 0xd8, 0x50, 0x8d, 0xca, 0x2c, - 0xe3, 0x63, 0xb4, 0x1d, 0xd3, 0x84, 0x06, 0x01, 0x04, 0x3e, 0x0f, 0x55, 0xaf, 0x4d, 0xfb, 0x51, - 0x96, 0x1a, 0xdb, 0x57, 0x15, 0x4c, 0xea, 0x1c, 0x29, 0x71, 0x59, 0x18, 0x07, 0x20, 0x1f, 0x33, - 0x8f, 0x5b, 0x21, 0x39, 0xab, 0x60, 0x52, 0xe7, 0xe0, 0x67, 0xe8, 0x80, 0xba, 0xc2, 0x9f, 0xc1, - 0xd7, 0x40, 0xbd, 0xc0, 0x8f, 0xa0, 0x0f, 0x2e, 0x8b, 0xbc, 0xfc, 0xaf, 0xd3, 0xb0, 0xdf, 0xca, - 0x52, 0xe3, 0xe0, 0xe9, 0x32, 0x02, 0x59, 0xae, 0xc3, 0xa7, 0x68, 0xc7, 0xa1, 0xee, 0x84, 0x0d, - 0x87, 0x3d, 0x3f, 0xf4, 0x45, 0x67, 0x4b, 0x35, 0xb1, 0x9f, 0xa5, 0xc6, 0x8e, 0x5d, 0xc3, 0xc9, - 0x02, 0x0b, 0xff, 0x88, 0x5a, 0x1c, 0x02, 0x70, 0x05, 0x4b, 0x8a, 0x88, 0x7d, 0xf2, 0xc0, 0xa9, - 0x50, 0x07, 0x82, 0x7e, 0x21, 0xb5, 0x77, 0xe4, 0x58, 0xe6, 0x27, 0x52, 0x5a, 0xe2, 0xcf, 0xd1, - 0x5e, 0x48, 0xa3, 0x29, 0x2d, 0x99, 0x2a, 0x5b, 0x2d, 0x1b, 0x67, 0xa9, 0xb1, 0x77, 0xb9, 0x70, - 0x43, 0xee, 0x30, 0xf1, 0xb7, 0xa8, 0x25, 0x20, 0x8c, 0x03, 0x2a, 0xf2, 0xa0, 0x6d, 0x9f, 0xbc, - 0x57, 0x9f, 0xaa, 0xfc, 0xbf, 0xca, 0x46, 0xae, 0x98, 0x37, 0x28, 0x68, 0x6a, 0x31, 0x95, 0x29, - 0x99, 0xa3, 0xa4, 0xb4, 0xc1, 0xcf, 0xd1, 0x63, 0x21, 0x82, 0xe2, 0xc5, 0x9e, 0x0e, 0x05, 0x24, - 0xe7, 0x7e, 0xe4, 0xf3, 0x31, 0x78, 0x9d, 0x96, 0x7a, 0xae, 0xb7, 0xb3, 0xd4, 0x78, 0x3c, 0x18, - 0xf4, 0x96, 0x51, 0xc8, 0x2a, 0x6d, 0xf7, 0xb7, 0x06, 0x6a, 0x97, 0x5b, 0x0d, 0x3f, 0x47, 0xc8, - 0x9d, 0xef, 0x10, 0xde, 0xd1, 0x54, 0x1e, 0xdf, 0x5d, 0x95, 0xc7, 0x72, 0xdb, 0x54, 0xab, 0xb9, - 0x84, 0x38, 0xa9, 0x19, 0xe1, 0xef, 0x50, 0x9b, 0x0b, 0x9a, 0x08, 0xb5, 0x0d, 0xd6, 0x5f, 0x7b, - 0x1b, 0xec, 0x66, 0xa9, 0xd1, 0xee, 0xcf, 0x0d, 0x48, 0xe5, 0x85, 0x87, 0x68, 0xaf, 0x0a, 0xe6, - 0xff, 0xdc, 0x6c, 0x6a, 0x9e, 0x67, 0x0b, 0x2e, 0xe4, 0x8e, 0xab, 0xdc, 0x2f, 0x79, 0x72, 0x55, - 0xd0, 0x9a, 0xd5, 0x7e, 0xc9, 0x63, 0x4e, 0x8a, 0x5b, 0x6c, 0xa1, 0x36, 0x9f, 0xba, 0x2e, 0x80, - 0x07, 0x9e, 0x8a, 0x4b, 0xd3, 0x7e, 0xa3, 0xa0, 0xb6, 0xfb, 0xf3, 0x0b, 0x52, 0x71, 0xa4, 0xf1, - 0x90, 0xfa, 0x01, 0x78, 0x2a, 0x26, 0x35, 0xe3, 0x73, 0x85, 0x92, 0xe2, 0xd6, 0x3e, 0xba, 0xb9, - 0xd5, 0xd7, 0x5e, 0xdc, 0xea, 0x6b, 0x2f, 0x6f, 0xf5, 0xb5, 0x5f, 0x32, 0x5d, 0xbb, 0xc9, 0x74, - 0xed, 0x45, 0xa6, 0x6b, 0x2f, 0x33, 0x5d, 0xfb, 0x2b, 0xd3, 0xb5, 0x5f, 0xff, 0xd6, 0xd7, 0xbe, - 0x5f, 0x9f, 0x1d, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x73, 0xe7, 0x7a, 0xb8, 0x08, 0x00, - 0x00, -} - -func (m *Job) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Job) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Job) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *JobCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x32 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.LastProbeTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *JobList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *JobSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TTLSecondsAfterFinished != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TTLSecondsAfterFinished)) - i-- - dAtA[i] = 0x40 - } - if m.BackoffLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.BackoffLimit)) - i-- - dAtA[i] = 0x38 - } - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - if m.ManualSelector != nil { - i-- - if *m.ManualSelector { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.ActiveDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ActiveDeadlineSeconds)) - i-- - dAtA[i] = 0x18 - } - if m.Completions != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Completions)) - i-- - dAtA[i] = 0x10 - } - if m.Parallelism != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Parallelism)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *JobStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Failed)) - i-- - dAtA[i] = 0x30 - i = encodeVarintGenerated(dAtA, i, uint64(m.Succeeded)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.Active)) - i-- - dAtA[i] = 0x20 - if m.CompletionTime != nil { - { - size, err := m.CompletionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.StartTime != nil { - { - size, err := m.StartTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Job) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JobCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastProbeTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JobList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *JobSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Parallelism != nil { - n += 1 + sovGenerated(uint64(*m.Parallelism)) - } - if m.Completions != nil { - n += 1 + sovGenerated(uint64(*m.Completions)) - } - if m.ActiveDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ManualSelector != nil { - n += 2 - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.BackoffLimit != nil { - n += 1 + sovGenerated(uint64(*m.BackoffLimit)) - } - if m.TTLSecondsAfterFinished != nil { - n += 1 + sovGenerated(uint64(*m.TTLSecondsAfterFinished)) - } - return n -} - -func (m *JobStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.StartTime != nil { - l = m.StartTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CompletionTime != nil { - l = m.CompletionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.Active)) - n += 1 + sovGenerated(uint64(m.Succeeded)) - n += 1 + sovGenerated(uint64(m.Failed)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Job) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Job{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "JobSpec", "JobSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "JobStatus", "JobStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastProbeTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastProbeTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *JobList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Job{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Job", "Job", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&JobList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *JobSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobSpec{`, - `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, - `Completions:` + valueToStringGenerated(this.Completions) + `,`, - `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `ManualSelector:` + valueToStringGenerated(this.ManualSelector) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `BackoffLimit:` + valueToStringGenerated(this.BackoffLimit) + `,`, - `TTLSecondsAfterFinished:` + valueToStringGenerated(this.TTLSecondsAfterFinished) + `,`, - `}`, - }, "") - return s -} -func (this *JobStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]JobCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "JobCondition", "JobCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&JobStatus{`, - `Conditions:` + repeatedStringForConditions + `,`, - `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "v1.Time", 1) + `,`, - `CompletionTime:` + strings.Replace(fmt.Sprintf("%v", this.CompletionTime), "Time", "v1.Time", 1) + `,`, - `Active:` + fmt.Sprintf("%v", this.Active) + `,`, - `Succeeded:` + fmt.Sprintf("%v", this.Succeeded) + `,`, - `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Job) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Job: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Job: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = JobConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastProbeTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Job{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Parallelism = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Completions", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Completions = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveDeadlineSeconds = &v - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ManualSelector", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.ManualSelector = &b - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BackoffLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.BackoffLimit = &v - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTLSecondsAfterFinished", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TTLSecondsAfterFinished = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, JobCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTime == nil { - m.StartTime = &v1.Time{} - } - if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CompletionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CompletionTime == nil { - m.CompletionTime = &v1.Time{} - } - if err := m.CompletionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - m.Active = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Active |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) - } - m.Succeeded = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Succeeded |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) - } - m.Failed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Failed |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/batch/v1/generated.proto b/pseudo/k8s/api/batch/v1/generated.proto deleted file mode 100644 index 38fcb263b..000000000 --- a/pseudo/k8s/api/batch/v1/generated.proto +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 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.batch.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// Job represents the configuration of a single job. -message Job { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of a job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional JobSpec spec = 2; - - // Current status of a job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional JobStatus status = 3; -} - -// JobCondition describes current state of a job. -message JobCondition { - // Type of job condition, Complete or Failed. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition was checked. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; - - // Last time the condition transit from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // (brief) reason for the condition's last transition. - // +optional - optional string reason = 5; - - // Human readable message indicating details about last transition. - // +optional - optional string message = 6; -} - -// JobList is a collection of jobs. -message JobList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of Jobs. - repeated Job items = 2; -} - -// JobSpec describes how the job execution will look like. -message JobSpec { - // Specifies the maximum desired number of pods the job should - // run at any given time. The actual number of pods running in steady state will - // be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), - // i.e. when the work left to do is less than max parallelism. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - optional int32 parallelism = 1; - - // Specifies the desired number of successfully finished pods the - // job should be run with. Setting to nil means that the success of any - // pod signals the success of all pods, and allows parallelism to have any positive - // value. Setting to 1 means that parallelism is limited to 1 and the success of that - // pod signals the success of the job. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - optional int32 completions = 2; - - // Specifies the duration in seconds relative to the startTime that the job may be active - // before the system tries to terminate it; value must be positive integer - // +optional - optional int64 activeDeadlineSeconds = 3; - - // Specifies the number of retries before marking this job failed. - // Defaults to 6 - // +optional - optional int32 backoffLimit = 7; - - // A label query over pods that should match the pod count. - // Normally, the system sets this field for you. - // 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 = 4; - - // manualSelector controls generation of pod labels and pod selectors. - // Leave `manualSelector` unset unless you are certain what you are doing. - // When false or unset, the system pick labels unique to this job - // and appends those labels to the pod template. When true, - // the user is responsible for picking unique labels and specifying - // the selector. Failure to pick a unique label may cause this - // and other jobs to not function correctly. However, You may see - // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` - // API. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector - // +optional - optional bool manualSelector = 5; - - // Describes the pod that will be created when executing a job. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - optional k8s.io.api.core.v1.PodTemplateSpec template = 6; - - // ttlSecondsAfterFinished limits the lifetime of a Job that has finished - // execution (either Complete or Failed). If this field is set, - // ttlSecondsAfterFinished after the Job finishes, it is eligible to be - // automatically deleted. When the Job is being deleted, its lifecycle - // guarantees (e.g. finalizers) will be honored. If this field is unset, - // the Job won't be automatically deleted. If this field is set to zero, - // the Job becomes eligible to be deleted immediately after it finishes. - // This field is alpha-level and is only honored by servers that enable the - // TTLAfterFinished feature. - // +optional - optional int32 ttlSecondsAfterFinished = 8; -} - -// JobStatus represents the current state of a Job. -message JobStatus { - // The latest available observations of an object's current state. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated JobCondition conditions = 1; - - // Represents time when the job was acknowledged by the job controller. - // It is not guaranteed to be set in happens-before order across separate operations. - // It is represented in RFC3339 form and is in UTC. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2; - - // Represents time when the job was completed. It is not guaranteed to - // be set in happens-before order across separate operations. - // It is represented in RFC3339 form and is in UTC. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3; - - // The number of actively running pods. - // +optional - optional int32 active = 4; - - // The number of pods which reached phase Succeeded. - // +optional - optional int32 succeeded = 5; - - // The number of pods which reached phase Failed. - // +optional - optional int32 failed = 6; -} - diff --git a/pseudo/k8s/api/batch/v1/register.go b/pseudo/k8s/api/batch/v1/register.go deleted file mode 100644 index d1cbb2397..000000000 --- a/pseudo/k8s/api/batch/v1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "batch" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Job{}, - &JobList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/batch/v1/types.go b/pseudo/k8s/api/batch/v1/types.go deleted file mode 100644 index a18b2d37c..000000000 --- a/pseudo/k8s/api/batch/v1/types.go +++ /dev/null @@ -1,193 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Job represents the configuration of a single job. -type Job struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of a job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Current status of a job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// JobList is a collection of jobs. -type JobList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of Jobs. - Items []Job `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// JobSpec describes how the job execution will look like. -type JobSpec struct { - - // Specifies the maximum desired number of pods the job should - // run at any given time. The actual number of pods running in steady state will - // be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), - // i.e. when the work left to do is less than max parallelism. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"` - - // Specifies the desired number of successfully finished pods the - // job should be run with. Setting to nil means that the success of any - // pod signals the success of all pods, and allows parallelism to have any positive - // value. Setting to 1 means that parallelism is limited to 1 and the success of that - // pod signals the success of the job. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - Completions *int32 `json:"completions,omitempty" protobuf:"varint,2,opt,name=completions"` - - // Specifies the duration in seconds relative to the startTime that the job may be active - // before the system tries to terminate it; value must be positive integer - // +optional - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"` - - // Specifies the number of retries before marking this job failed. - // Defaults to 6 - // +optional - BackoffLimit *int32 `json:"backoffLimit,omitempty" protobuf:"varint,7,opt,name=backoffLimit"` - - // TODO enabled it when https://github.com/kubernetes/kubernetes/issues/28486 has been fixed - // Optional number of failed pods to retain. - // +optional - // FailedPodsLimit *int32 `json:"failedPodsLimit,omitempty" protobuf:"varint,9,opt,name=failedPodsLimit"` - - // A label query over pods that should match the pod count. - // Normally, the system sets this field for you. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` - - // manualSelector controls generation of pod labels and pod selectors. - // Leave `manualSelector` unset unless you are certain what you are doing. - // When false or unset, the system pick labels unique to this job - // and appends those labels to the pod template. When true, - // the user is responsible for picking unique labels and specifying - // the selector. Failure to pick a unique label may cause this - // and other jobs to not function correctly. However, You may see - // `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` - // API. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector - // +optional - ManualSelector *bool `json:"manualSelector,omitempty" protobuf:"varint,5,opt,name=manualSelector"` - - // Describes the pod that will be created when executing a job. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"` - - // ttlSecondsAfterFinished limits the lifetime of a Job that has finished - // execution (either Complete or Failed). If this field is set, - // ttlSecondsAfterFinished after the Job finishes, it is eligible to be - // automatically deleted. When the Job is being deleted, its lifecycle - // guarantees (e.g. finalizers) will be honored. If this field is unset, - // the Job won't be automatically deleted. If this field is set to zero, - // the Job becomes eligible to be deleted immediately after it finishes. - // This field is alpha-level and is only honored by servers that enable the - // TTLAfterFinished feature. - // +optional - TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty" protobuf:"varint,8,opt,name=ttlSecondsAfterFinished"` -} - -// JobStatus represents the current state of a Job. -type JobStatus struct { - // The latest available observations of an object's current state. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` - - // Represents time when the job was acknowledged by the job controller. - // It is not guaranteed to be set in happens-before order across separate operations. - // It is represented in RFC3339 form and is in UTC. - // +optional - StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"` - - // Represents time when the job was completed. It is not guaranteed to - // be set in happens-before order across separate operations. - // It is represented in RFC3339 form and is in UTC. - // +optional - CompletionTime *metav1.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"` - - // The number of actively running pods. - // +optional - Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"` - - // The number of pods which reached phase Succeeded. - // +optional - Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"` - - // The number of pods which reached phase Failed. - // +optional - Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"` -} - -type JobConditionType string - -// These are valid conditions of a job. -const ( - // JobComplete means the job has completed its execution. - JobComplete JobConditionType = "Complete" - // JobFailed means the job has failed its execution. - JobFailed JobConditionType = "Failed" -) - -// JobCondition describes current state of a job. -type JobCondition struct { - // Type of job condition, Complete or Failed. - Type JobConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=JobConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition was checked. - // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` - // Last time the condition transit from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` - // (brief) reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` - // Human readable message indicating details about last transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` -} diff --git a/pseudo/k8s/api/batch/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/batch/v1/types_swagger_doc_generated.go deleted file mode 100644 index 0120e07d4..000000000 --- a/pseudo/k8s/api/batch/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,95 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_Job = map[string]string{ - "": "Job represents the configuration of a single job.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Job) SwaggerDoc() map[string]string { - return map_Job -} - -var map_JobCondition = map[string]string{ - "": "JobCondition describes current state of a job.", - "type": "Type of job condition, Complete or Failed.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastProbeTime": "Last time the condition was checked.", - "lastTransitionTime": "Last time the condition transit from one status to another.", - "reason": "(brief) reason for the condition's last transition.", - "message": "Human readable message indicating details about last transition.", -} - -func (JobCondition) SwaggerDoc() map[string]string { - return map_JobCondition -} - -var map_JobList = map[string]string{ - "": "JobList is a collection of jobs.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of Jobs.", -} - -func (JobList) SwaggerDoc() map[string]string { - return map_JobList -} - -var map_JobSpec = map[string]string{ - "": "JobSpec describes how the job execution will look like.", - "parallelism": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "completions": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "activeDeadlineSeconds": "Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", - "backoffLimit": "Specifies the number of retries before marking this job failed. Defaults to 6", - "selector": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", - "manualSelector": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", - "template": "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "ttlSecondsAfterFinished": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.", -} - -func (JobSpec) SwaggerDoc() map[string]string { - return map_JobSpec -} - -var map_JobStatus = map[string]string{ - "": "JobStatus represents the current state of a Job.", - "conditions": "The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", - "startTime": "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "completionTime": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "active": "The number of actively running pods.", - "succeeded": "The number of pods which reached phase Succeeded.", - "failed": "The number of pods which reached phase Failed.", -} - -func (JobStatus) SwaggerDoc() map[string]string { - return map_JobStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/batch/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/batch/v1/zz_generated.deepcopy.go deleted file mode 100644 index 12246c60e..000000000 --- a/pseudo/k8s/api/batch/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,188 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Job) DeepCopyInto(out *Job) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job. -func (in *Job) DeepCopy() *Job { - if in == nil { - return nil - } - out := new(Job) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Job) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobCondition) DeepCopyInto(out *JobCondition) { - *out = *in - in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobCondition. -func (in *JobCondition) DeepCopy() *JobCondition { - if in == nil { - return nil - } - out := new(JobCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobList) DeepCopyInto(out *JobList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Job, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList. -func (in *JobList) DeepCopy() *JobList { - if in == nil { - return nil - } - out := new(JobList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *JobList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobSpec) DeepCopyInto(out *JobSpec) { - *out = *in - if in.Parallelism != nil { - in, out := &in.Parallelism, &out.Parallelism - *out = new(int32) - **out = **in - } - if in.Completions != nil { - in, out := &in.Completions, &out.Completions - *out = new(int32) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.BackoffLimit != nil { - in, out := &in.BackoffLimit, &out.BackoffLimit - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.ManualSelector != nil { - in, out := &in.ManualSelector, &out.ManualSelector - *out = new(bool) - **out = **in - } - in.Template.DeepCopyInto(&out.Template) - if in.TTLSecondsAfterFinished != nil { - in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec. -func (in *JobSpec) DeepCopy() *JobSpec { - if in == nil { - return nil - } - out := new(JobSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobStatus) DeepCopyInto(out *JobStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]JobCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.StartTime != nil { - in, out := &in.StartTime, &out.StartTime - *out = (*in).DeepCopy() - } - if in.CompletionTime != nil { - in, out := &in.CompletionTime, &out.CompletionTime - *out = (*in).DeepCopy() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus. -func (in *JobStatus) DeepCopy() *JobStatus { - if in == nil { - return nil - } - out := new(JobStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/batch/v1beta1/doc.go b/pseudo/k8s/api/batch/v1beta1/doc.go deleted file mode 100644 index 43679b0ee..000000000 --- a/pseudo/k8s/api/batch/v1beta1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1beta1" diff --git a/pseudo/k8s/api/batch/v1beta1/generated.pb.go b/pseudo/k8s/api/batch/v1beta1/generated.pb.go deleted file mode 100644 index db6e3d08a..000000000 --- a/pseudo/k8s/api/batch/v1beta1/generated.pb.go +++ /dev/null @@ -1,1769 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CronJob) Reset() { *m = CronJob{} } -func (*CronJob) ProtoMessage() {} -func (*CronJob) Descriptor() ([]byte, []int) { - return fileDescriptor_e57b277b05179ae7, []int{0} -} -func (m *CronJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJob.Merge(m, src) -} -func (m *CronJob) XXX_Size() int { - return m.Size() -} -func (m *CronJob) XXX_DiscardUnknown() { - xxx_messageInfo_CronJob.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJob proto.InternalMessageInfo - -func (m *CronJobList) Reset() { *m = CronJobList{} } -func (*CronJobList) ProtoMessage() {} -func (*CronJobList) Descriptor() ([]byte, []int) { - return fileDescriptor_e57b277b05179ae7, []int{1} -} -func (m *CronJobList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJobList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJobList) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJobList.Merge(m, src) -} -func (m *CronJobList) XXX_Size() int { - return m.Size() -} -func (m *CronJobList) XXX_DiscardUnknown() { - xxx_messageInfo_CronJobList.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJobList proto.InternalMessageInfo - -func (m *CronJobSpec) Reset() { *m = CronJobSpec{} } -func (*CronJobSpec) ProtoMessage() {} -func (*CronJobSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e57b277b05179ae7, []int{2} -} -func (m *CronJobSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJobSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJobSpec.Merge(m, src) -} -func (m *CronJobSpec) XXX_Size() int { - return m.Size() -} -func (m *CronJobSpec) XXX_DiscardUnknown() { - xxx_messageInfo_CronJobSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJobSpec proto.InternalMessageInfo - -func (m *CronJobStatus) Reset() { *m = CronJobStatus{} } -func (*CronJobStatus) ProtoMessage() {} -func (*CronJobStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_e57b277b05179ae7, []int{3} -} -func (m *CronJobStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJobStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJobStatus.Merge(m, src) -} -func (m *CronJobStatus) XXX_Size() int { - return m.Size() -} -func (m *CronJobStatus) XXX_DiscardUnknown() { - xxx_messageInfo_CronJobStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJobStatus proto.InternalMessageInfo - -func (m *JobTemplate) Reset() { *m = JobTemplate{} } -func (*JobTemplate) ProtoMessage() {} -func (*JobTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_e57b277b05179ae7, []int{4} -} -func (m *JobTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobTemplate.Merge(m, src) -} -func (m *JobTemplate) XXX_Size() int { - return m.Size() -} -func (m *JobTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_JobTemplate.DiscardUnknown(m) -} - -var xxx_messageInfo_JobTemplate proto.InternalMessageInfo - -func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} } -func (*JobTemplateSpec) ProtoMessage() {} -func (*JobTemplateSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_e57b277b05179ae7, []int{5} -} -func (m *JobTemplateSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobTemplateSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobTemplateSpec.Merge(m, src) -} -func (m *JobTemplateSpec) XXX_Size() int { - return m.Size() -} -func (m *JobTemplateSpec) XXX_DiscardUnknown() { - xxx_messageInfo_JobTemplateSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_JobTemplateSpec proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CronJob)(nil), "k8s.io.api.batch.v1beta1.CronJob") - proto.RegisterType((*CronJobList)(nil), "k8s.io.api.batch.v1beta1.CronJobList") - proto.RegisterType((*CronJobSpec)(nil), "k8s.io.api.batch.v1beta1.CronJobSpec") - proto.RegisterType((*CronJobStatus)(nil), "k8s.io.api.batch.v1beta1.CronJobStatus") - proto.RegisterType((*JobTemplate)(nil), "k8s.io.api.batch.v1beta1.JobTemplate") - proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.api.batch.v1beta1.JobTemplateSpec") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1beta1/generated.proto", fileDescriptor_e57b277b05179ae7) -} - -var fileDescriptor_e57b277b05179ae7 = []byte{ - // 771 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xcf, 0x6f, 0xe3, 0x44, - 0x14, 0xc7, 0xe3, 0x34, 0xbf, 0x76, 0xc2, 0x42, 0xd7, 0xa0, 0x5d, 0x2b, 0x20, 0x27, 0x64, 0xb5, - 0x22, 0x20, 0x76, 0x4c, 0x2b, 0x84, 0x38, 0x21, 0xad, 0x17, 0x2d, 0x50, 0x8a, 0x16, 0x39, 0x45, - 0x48, 0xa8, 0x42, 0x1d, 0x8f, 0x5f, 0x92, 0x69, 0x6c, 0x8f, 0xe5, 0x19, 0x47, 0xca, 0x8d, 0x0b, - 0x77, 0xfe, 0x11, 0x4e, 0xfc, 0x13, 0x11, 0xa7, 0x1e, 0x7b, 0x8a, 0xa8, 0xf9, 0x2f, 0x38, 0x21, - 0x4f, 0x9c, 0x1f, 0xcd, 0x8f, 0xb6, 0x7b, 0xe9, 0xcd, 0xf3, 0xe6, 0xfb, 0xfd, 0xcc, 0xf3, 0x7b, - 0x6f, 0x06, 0xbd, 0x18, 0x7e, 0x29, 0x30, 0xe3, 0xd6, 0x30, 0x71, 0x21, 0x0e, 0x41, 0x82, 0xb0, - 0x46, 0x10, 0x7a, 0x3c, 0xb6, 0xf2, 0x0d, 0x12, 0x31, 0xcb, 0x25, 0x92, 0x0e, 0xac, 0xd1, 0x81, - 0x0b, 0x92, 0x1c, 0x58, 0x7d, 0x08, 0x21, 0x26, 0x12, 0x3c, 0x1c, 0xc5, 0x5c, 0x72, 0xdd, 0x98, - 0x29, 0x31, 0x89, 0x18, 0x56, 0x4a, 0x9c, 0x2b, 0x1b, 0xcf, 0xfb, 0x4c, 0x0e, 0x12, 0x17, 0x53, - 0x1e, 0x58, 0x7d, 0xde, 0xe7, 0x96, 0x32, 0xb8, 0x49, 0x4f, 0xad, 0xd4, 0x42, 0x7d, 0xcd, 0x40, - 0x8d, 0xa7, 0x5b, 0x8e, 0x5c, 0x3f, 0xad, 0xd1, 0x5e, 0x11, 0x51, 0x1e, 0xc3, 0x36, 0xcd, 0xe7, - 0x4b, 0x4d, 0x40, 0xe8, 0x80, 0x85, 0x10, 0x8f, 0xad, 0x68, 0xd8, 0xcf, 0x02, 0xc2, 0x0a, 0x40, - 0x92, 0x6d, 0x2e, 0x6b, 0x97, 0x2b, 0x4e, 0x42, 0xc9, 0x02, 0xd8, 0x30, 0x7c, 0x71, 0x9b, 0x41, - 0xd0, 0x01, 0x04, 0x64, 0xdd, 0xd7, 0xfe, 0xbd, 0x88, 0xaa, 0x2f, 0x63, 0x1e, 0x1e, 0x71, 0x57, - 0x3f, 0x43, 0xb5, 0x2c, 0x1f, 0x8f, 0x48, 0x62, 0x68, 0x2d, 0xad, 0x53, 0x3f, 0xfc, 0x0c, 0x2f, - 0xeb, 0xb9, 0xc0, 0xe2, 0x68, 0xd8, 0xcf, 0x02, 0x02, 0x67, 0x6a, 0x3c, 0x3a, 0xc0, 0xaf, 0xdd, - 0x73, 0xa0, 0xf2, 0x07, 0x90, 0xc4, 0xd6, 0x27, 0xd3, 0x66, 0x21, 0x9d, 0x36, 0xd1, 0x32, 0xe6, - 0x2c, 0xa8, 0xfa, 0x37, 0xa8, 0x24, 0x22, 0xa0, 0x46, 0x51, 0xd1, 0x9f, 0xe1, 0x5d, 0xdd, 0xc2, - 0x79, 0x4a, 0xdd, 0x08, 0xa8, 0xfd, 0x56, 0x8e, 0x2c, 0x65, 0x2b, 0x47, 0x01, 0xf4, 0xd7, 0xa8, - 0x22, 0x24, 0x91, 0x89, 0x30, 0xf6, 0x14, 0xea, 0xa3, 0xdb, 0x51, 0x4a, 0x6e, 0xbf, 0x9d, 0xc3, - 0x2a, 0xb3, 0xb5, 0x93, 0x63, 0xda, 0x7f, 0x69, 0xa8, 0x9e, 0x2b, 0x8f, 0x99, 0x90, 0xfa, 0xe9, - 0x46, 0x2d, 0xf0, 0xdd, 0x6a, 0x91, 0xb9, 0x55, 0x25, 0xf6, 0xf3, 0x93, 0x6a, 0xf3, 0xc8, 0x4a, - 0x1d, 0x5e, 0xa1, 0x32, 0x93, 0x10, 0x08, 0xa3, 0xd8, 0xda, 0xeb, 0xd4, 0x0f, 0x3f, 0xbc, 0x35, - 0x7b, 0xfb, 0x61, 0x4e, 0x2b, 0x7f, 0x97, 0xf9, 0x9c, 0x99, 0xbd, 0xfd, 0x67, 0x69, 0x91, 0x75, - 0x56, 0x1c, 0xfd, 0x53, 0x54, 0xcb, 0xfa, 0xec, 0x25, 0x3e, 0xa8, 0xac, 0x1f, 0x2c, 0xb3, 0xe8, - 0xe6, 0x71, 0x67, 0xa1, 0xd0, 0x7f, 0x42, 0x4f, 0x84, 0x24, 0xb1, 0x64, 0x61, 0xff, 0x6b, 0x20, - 0x9e, 0xcf, 0x42, 0xe8, 0x02, 0xe5, 0xa1, 0x27, 0x54, 0x83, 0xf6, 0xec, 0xf7, 0xd3, 0x69, 0xf3, - 0x49, 0x77, 0xbb, 0xc4, 0xd9, 0xe5, 0xd5, 0x4f, 0xd1, 0x23, 0xca, 0x43, 0x9a, 0xc4, 0x31, 0x84, - 0x74, 0xfc, 0x23, 0xf7, 0x19, 0x1d, 0xab, 0x36, 0x3d, 0xb0, 0x71, 0x9e, 0xcd, 0xa3, 0x97, 0xeb, - 0x82, 0xff, 0xb6, 0x05, 0x9d, 0x4d, 0x90, 0xfe, 0x0c, 0x55, 0x45, 0x22, 0x22, 0x08, 0x3d, 0xa3, - 0xd4, 0xd2, 0x3a, 0x35, 0xbb, 0x9e, 0x4e, 0x9b, 0xd5, 0xee, 0x2c, 0xe4, 0xcc, 0xf7, 0xf4, 0x33, - 0x54, 0x3f, 0xe7, 0xee, 0x09, 0x04, 0x91, 0x4f, 0x24, 0x18, 0x65, 0xd5, 0xc2, 0x8f, 0x77, 0xd7, - 0xf9, 0x68, 0x29, 0x56, 0x43, 0xf7, 0x6e, 0x9e, 0x69, 0x7d, 0x65, 0xc3, 0x59, 0x45, 0xea, 0xbf, - 0xa2, 0x86, 0x48, 0x28, 0x05, 0x21, 0x7a, 0x89, 0x7f, 0xc4, 0x5d, 0xf1, 0x2d, 0x13, 0x92, 0xc7, - 0xe3, 0x63, 0x16, 0x30, 0x69, 0x54, 0x5a, 0x5a, 0xa7, 0x6c, 0x9b, 0xe9, 0xb4, 0xd9, 0xe8, 0xee, - 0x54, 0x39, 0x37, 0x10, 0x74, 0x07, 0x3d, 0xee, 0x11, 0xe6, 0x83, 0xb7, 0xc1, 0xae, 0x2a, 0x76, - 0x23, 0x9d, 0x36, 0x1f, 0xbf, 0xda, 0xaa, 0x70, 0x76, 0x38, 0xdb, 0x7f, 0x6b, 0xe8, 0xe1, 0xb5, - 0xfb, 0xa0, 0x7f, 0x8f, 0x2a, 0x84, 0x4a, 0x36, 0xca, 0xe6, 0x25, 0x1b, 0xc5, 0xa7, 0xab, 0x25, - 0xca, 0xde, 0xb4, 0xe5, 0xfd, 0x76, 0xa0, 0x07, 0x59, 0x27, 0x60, 0x79, 0x89, 0x5e, 0x28, 0xab, - 0x93, 0x23, 0x74, 0x1f, 0xed, 0xfb, 0x44, 0xc8, 0xf9, 0xa8, 0x9d, 0xb0, 0x00, 0x54, 0x93, 0xea, - 0x87, 0x9f, 0xdc, 0xed, 0xf2, 0x64, 0x0e, 0xfb, 0xbd, 0x74, 0xda, 0xdc, 0x3f, 0x5e, 0xe3, 0x38, - 0x1b, 0xe4, 0xf6, 0x44, 0x43, 0xab, 0xdd, 0xb9, 0x87, 0xe7, 0xeb, 0x67, 0x54, 0x93, 0xf3, 0x89, - 0x2a, 0xbe, 0xe9, 0x44, 0x2d, 0x6e, 0xe2, 0x62, 0x9c, 0x16, 0xb0, 0xec, 0xf5, 0x79, 0x67, 0x4d, - 0x7f, 0x0f, 0xbf, 0xf3, 0xd5, 0xb5, 0xd7, 0xf8, 0x83, 0x6d, 0xbf, 0x82, 0x6f, 0x78, 0x84, 0xed, - 0xe7, 0x93, 0x2b, 0xb3, 0x70, 0x71, 0x65, 0x16, 0x2e, 0xaf, 0xcc, 0xc2, 0x6f, 0xa9, 0xa9, 0x4d, - 0x52, 0x53, 0xbb, 0x48, 0x4d, 0xed, 0x32, 0x35, 0xb5, 0x7f, 0x52, 0x53, 0xfb, 0xe3, 0x5f, 0xb3, - 0xf0, 0x4b, 0x35, 0x2f, 0xc8, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x9f, 0xb3, 0xdd, 0xdf, - 0x07, 0x00, 0x00, -} - -func (m *CronJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CronJobList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJobList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJobList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CronJobSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FailedJobsHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.FailedJobsHistoryLimit)) - i-- - dAtA[i] = 0x38 - } - if m.SuccessfulJobsHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.SuccessfulJobsHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - { - size, err := m.JobTemplate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if m.Suspend != nil { - i-- - if *m.Suspend { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - i -= len(m.ConcurrencyPolicy) - copy(dAtA[i:], m.ConcurrencyPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConcurrencyPolicy))) - i-- - dAtA[i] = 0x1a - if m.StartingDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.StartingDeadlineSeconds)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Schedule) - copy(dAtA[i:], m.Schedule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CronJobStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastScheduleTime != nil { - { - size, err := m.LastScheduleTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Active) > 0 { - for iNdEx := len(m.Active) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Active[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *JobTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CronJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CronJobList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CronJobSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Schedule) - n += 1 + l + sovGenerated(uint64(l)) - if m.StartingDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds)) - } - l = len(m.ConcurrencyPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.Suspend != nil { - n += 2 - } - l = m.JobTemplate.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.SuccessfulJobsHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.SuccessfulJobsHistoryLimit)) - } - if m.FailedJobsHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.FailedJobsHistoryLimit)) - } - return n -} - -func (m *CronJobStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Active) > 0 { - for _, e := range m.Active { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.LastScheduleTime != nil { - l = m.LastScheduleTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *JobTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JobTemplateSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CronJob) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CronJob{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CronJobList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]CronJob{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CronJob", "CronJob", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&CronJobList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *CronJobSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CronJobSpec{`, - `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, - `StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`, - `ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`, - `Suspend:` + valueToStringGenerated(this.Suspend) + `,`, - `JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, - `SuccessfulJobsHistoryLimit:` + valueToStringGenerated(this.SuccessfulJobsHistoryLimit) + `,`, - `FailedJobsHistoryLimit:` + valueToStringGenerated(this.FailedJobsHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *CronJobStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForActive := "[]ObjectReference{" - for _, f := range this.Active { - repeatedStringForActive += fmt.Sprintf("%v", f) + "," - } - repeatedStringForActive += "}" - s := strings.Join([]string{`&CronJobStatus{`, - `Active:` + repeatedStringForActive + `,`, - `LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "v1.Time", 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobTemplate) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobTemplate{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobTemplateSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobTemplateSpec{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Spec), "JobSpec", "v12.JobSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CronJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CronJobList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJobList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, CronJob{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CronJobSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StartingDeadlineSeconds = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConcurrencyPolicy = ConcurrencyPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Suspend = &b - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.JobTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SuccessfulJobsHistoryLimit = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.FailedJobsHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CronJobStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Active = append(m.Active, v11.ObjectReference{}) - if err := m.Active[len(m.Active)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastScheduleTime == nil { - m.LastScheduleTime = &v1.Time{} - } - if err := m.LastScheduleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobTemplate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobTemplateSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/batch/v1beta1/generated.proto b/pseudo/k8s/api/batch/v1beta1/generated.proto deleted file mode 100644 index cbead5085..000000000 --- a/pseudo/k8s/api/batch/v1beta1/generated.proto +++ /dev/null @@ -1,137 +0,0 @@ -/* -Copyright 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.batch.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// CronJob represents the configuration of a single cron job. -message CronJob { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of a cron job, including the schedule. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional CronJobSpec spec = 2; - - // Current status of a cron job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional CronJobStatus status = 3; -} - -// CronJobList is a collection of cron jobs. -message CronJobList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of CronJobs. - repeated CronJob items = 2; -} - -// CronJobSpec describes how the job execution will look like and when it will actually run. -message CronJobSpec { - // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - optional string schedule = 1; - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +optional - optional int64 startingDeadlineSeconds = 2; - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +optional - optional string concurrencyPolicy = 3; - - // This flag tells the controller to suspend subsequent executions, it does - // not apply to already started executions. Defaults to false. - // +optional - optional bool suspend = 4; - - // Specifies the job that will be created when executing a CronJob. - optional JobTemplateSpec jobTemplate = 5; - - // The number of successful finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 3. - // +optional - optional int32 successfulJobsHistoryLimit = 6; - - // The number of failed finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 1. - // +optional - optional int32 failedJobsHistoryLimit = 7; -} - -// CronJobStatus represents the current state of a cron job. -message CronJobStatus { - // A list of pointers to currently running jobs. - // +optional - repeated k8s.io.api.core.v1.ObjectReference active = 1; - - // Information when was the last time the job was successfully scheduled. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScheduleTime = 4; -} - -// JobTemplate describes a template for creating copies of a predefined pod. -message JobTemplate { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Defines jobs that will be created from this template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional JobTemplateSpec template = 2; -} - -// JobTemplateSpec describes the data a Job should have when created from a template -message JobTemplateSpec { - // Standard object's metadata of the jobs created from this template. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional k8s.io.api.batch.v1.JobSpec spec = 2; -} - diff --git a/pseudo/k8s/api/batch/v1beta1/register.go b/pseudo/k8s/api/batch/v1beta1/register.go deleted file mode 100644 index 9eaba7c5c..000000000 --- a/pseudo/k8s/api/batch/v1beta1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "batch" - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &JobTemplate{}, - &CronJob{}, - &CronJobList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/batch/v1beta1/types.go b/pseudo/k8s/api/batch/v1beta1/types.go deleted file mode 100644 index 5fec5b3dc..000000000 --- a/pseudo/k8s/api/batch/v1beta1/types.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -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 ( - batchv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// JobTemplate describes a template for creating copies of a predefined pod. -type JobTemplate struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Defines jobs that will be created from this template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Template JobTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` -} - -// JobTemplateSpec describes the data a Job should have when created from a template -type JobTemplateSpec struct { - // Standard object's metadata of the jobs created from this template. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec batchv1.JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CronJob represents the configuration of a single cron job. -type CronJob struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of a cron job, including the schedule. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Current status of a cron job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CronJobList is a collection of cron jobs. -type CronJobList struct { - metav1.TypeMeta `json:",inline"` - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of CronJobs. - Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// CronJobSpec describes how the job execution will look like and when it will actually run. -type CronJobSpec struct { - - // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"` - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +optional - StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=startingDeadlineSeconds"` - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +optional - ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty" protobuf:"bytes,3,opt,name=concurrencyPolicy,casttype=ConcurrencyPolicy"` - - // This flag tells the controller to suspend subsequent executions, it does - // not apply to already started executions. Defaults to false. - // +optional - Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"` - - // Specifies the job that will be created when executing a CronJob. - JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"` - - // The number of successful finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 3. - // +optional - SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty" protobuf:"varint,6,opt,name=successfulJobsHistoryLimit"` - - // The number of failed finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 1. - // +optional - FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty" protobuf:"varint,7,opt,name=failedJobsHistoryLimit"` -} - -// ConcurrencyPolicy describes how the job will be handled. -// Only one of the following concurrent policies may be specified. -// If none of the following policies is specified, the default one -// is AllowConcurrent. -type ConcurrencyPolicy string - -const ( - // AllowConcurrent allows CronJobs to run concurrently. - AllowConcurrent ConcurrencyPolicy = "Allow" - - // ForbidConcurrent forbids concurrent runs, skipping next run if previous - // hasn't finished yet. - ForbidConcurrent ConcurrencyPolicy = "Forbid" - - // ReplaceConcurrent cancels currently running job and replaces it with a new one. - ReplaceConcurrent ConcurrencyPolicy = "Replace" -) - -// CronJobStatus represents the current state of a cron job. -type CronJobStatus struct { - // A list of pointers to currently running jobs. - // +optional - Active []v1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"` - - // Information when was the last time the job was successfully scheduled. - // +optional - LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"` -} diff --git a/pseudo/k8s/api/batch/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/batch/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index ecc914446..000000000 --- a/pseudo/k8s/api/batch/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_CronJob = map[string]string{ - "": "CronJob represents the configuration of a single cron job.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (CronJob) SwaggerDoc() map[string]string { - return map_CronJob -} - -var map_CronJobList = map[string]string{ - "": "CronJobList is a collection of cron jobs.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of CronJobs.", -} - -func (CronJobList) SwaggerDoc() map[string]string { - return map_CronJobList -} - -var map_CronJobSpec = map[string]string{ - "": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "schedule": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", - "startingDeadlineSeconds": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "concurrencyPolicy": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", - "suspend": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "jobTemplate": "Specifies the job that will be created when executing a CronJob.", - "successfulJobsHistoryLimit": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.", - "failedJobsHistoryLimit": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", -} - -func (CronJobSpec) SwaggerDoc() map[string]string { - return map_CronJobSpec -} - -var map_CronJobStatus = map[string]string{ - "": "CronJobStatus represents the current state of a cron job.", - "active": "A list of pointers to currently running jobs.", - "lastScheduleTime": "Information when was the last time the job was successfully scheduled.", -} - -func (CronJobStatus) SwaggerDoc() map[string]string { - return map_CronJobStatus -} - -var map_JobTemplate = map[string]string{ - "": "JobTemplate describes a template for creating copies of a predefined pod.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "template": "Defines jobs that will be created from this template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (JobTemplate) SwaggerDoc() map[string]string { - return map_JobTemplate -} - -var map_JobTemplateSpec = map[string]string{ - "": "JobTemplateSpec describes the data a Job should have when created from a template", - "metadata": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (JobTemplateSpec) SwaggerDoc() map[string]string { - return map_JobTemplateSpec -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/batch/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/batch/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index c6fe2a0e7..000000000 --- a/pseudo/k8s/api/batch/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,194 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJob) DeepCopyInto(out *CronJob) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob. -func (in *CronJob) DeepCopy() *CronJob { - if in == nil { - return nil - } - out := new(CronJob) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CronJob) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJobList) DeepCopyInto(out *CronJobList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CronJob, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList. -func (in *CronJobList) DeepCopy() *CronJobList { - if in == nil { - return nil - } - out := new(CronJobList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CronJobList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec) { - *out = *in - if in.StartingDeadlineSeconds != nil { - in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.Suspend != nil { - in, out := &in.Suspend, &out.Suspend - *out = new(bool) - **out = **in - } - in.JobTemplate.DeepCopyInto(&out.JobTemplate) - if in.SuccessfulJobsHistoryLimit != nil { - in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit - *out = new(int32) - **out = **in - } - if in.FailedJobsHistoryLimit != nil { - in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec. -func (in *CronJobSpec) DeepCopy() *CronJobSpec { - if in == nil { - return nil - } - out := new(CronJobSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus) { - *out = *in - if in.Active != nil { - in, out := &in.Active, &out.Active - *out = make([]v1.ObjectReference, len(*in)) - copy(*out, *in) - } - if in.LastScheduleTime != nil { - in, out := &in.LastScheduleTime, &out.LastScheduleTime - *out = (*in).DeepCopy() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus. -func (in *CronJobStatus) DeepCopy() *CronJobStatus { - if in == nil { - return nil - } - out := new(CronJobStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobTemplate) DeepCopyInto(out *JobTemplate) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplate. -func (in *JobTemplate) DeepCopy() *JobTemplate { - if in == nil { - return nil - } - out := new(JobTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *JobTemplate) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec. -func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec { - if in == nil { - return nil - } - out := new(JobTemplateSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/batch/v2alpha1/doc.go b/pseudo/k8s/api/batch/v2alpha1/doc.go deleted file mode 100644 index b82363bb6..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v2alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v2alpha1" diff --git a/pseudo/k8s/api/batch/v2alpha1/generated.pb.go b/pseudo/k8s/api/batch/v2alpha1/generated.pb.go deleted file mode 100644 index 613b6d065..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/generated.pb.go +++ /dev/null @@ -1,1769 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v2alpha1/generated.proto - -package v2alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CronJob) Reset() { *m = CronJob{} } -func (*CronJob) ProtoMessage() {} -func (*CronJob) Descriptor() ([]byte, []int) { - return fileDescriptor_5495a0550fe29c46, []int{0} -} -func (m *CronJob) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJob.Merge(m, src) -} -func (m *CronJob) XXX_Size() int { - return m.Size() -} -func (m *CronJob) XXX_DiscardUnknown() { - xxx_messageInfo_CronJob.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJob proto.InternalMessageInfo - -func (m *CronJobList) Reset() { *m = CronJobList{} } -func (*CronJobList) ProtoMessage() {} -func (*CronJobList) Descriptor() ([]byte, []int) { - return fileDescriptor_5495a0550fe29c46, []int{1} -} -func (m *CronJobList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJobList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJobList) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJobList.Merge(m, src) -} -func (m *CronJobList) XXX_Size() int { - return m.Size() -} -func (m *CronJobList) XXX_DiscardUnknown() { - xxx_messageInfo_CronJobList.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJobList proto.InternalMessageInfo - -func (m *CronJobSpec) Reset() { *m = CronJobSpec{} } -func (*CronJobSpec) ProtoMessage() {} -func (*CronJobSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_5495a0550fe29c46, []int{2} -} -func (m *CronJobSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJobSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJobSpec.Merge(m, src) -} -func (m *CronJobSpec) XXX_Size() int { - return m.Size() -} -func (m *CronJobSpec) XXX_DiscardUnknown() { - xxx_messageInfo_CronJobSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJobSpec proto.InternalMessageInfo - -func (m *CronJobStatus) Reset() { *m = CronJobStatus{} } -func (*CronJobStatus) ProtoMessage() {} -func (*CronJobStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_5495a0550fe29c46, []int{3} -} -func (m *CronJobStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CronJobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CronJobStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronJobStatus.Merge(m, src) -} -func (m *CronJobStatus) XXX_Size() int { - return m.Size() -} -func (m *CronJobStatus) XXX_DiscardUnknown() { - xxx_messageInfo_CronJobStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_CronJobStatus proto.InternalMessageInfo - -func (m *JobTemplate) Reset() { *m = JobTemplate{} } -func (*JobTemplate) ProtoMessage() {} -func (*JobTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_5495a0550fe29c46, []int{4} -} -func (m *JobTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobTemplate.Merge(m, src) -} -func (m *JobTemplate) XXX_Size() int { - return m.Size() -} -func (m *JobTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_JobTemplate.DiscardUnknown(m) -} - -var xxx_messageInfo_JobTemplate proto.InternalMessageInfo - -func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} } -func (*JobTemplateSpec) ProtoMessage() {} -func (*JobTemplateSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_5495a0550fe29c46, []int{5} -} -func (m *JobTemplateSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *JobTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *JobTemplateSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_JobTemplateSpec.Merge(m, src) -} -func (m *JobTemplateSpec) XXX_Size() int { - return m.Size() -} -func (m *JobTemplateSpec) XXX_DiscardUnknown() { - xxx_messageInfo_JobTemplateSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_JobTemplateSpec proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CronJob)(nil), "k8s.io.api.batch.v2alpha1.CronJob") - proto.RegisterType((*CronJobList)(nil), "k8s.io.api.batch.v2alpha1.CronJobList") - proto.RegisterType((*CronJobSpec)(nil), "k8s.io.api.batch.v2alpha1.CronJobSpec") - proto.RegisterType((*CronJobStatus)(nil), "k8s.io.api.batch.v2alpha1.CronJobStatus") - proto.RegisterType((*JobTemplate)(nil), "k8s.io.api.batch.v2alpha1.JobTemplate") - proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.api.batch.v2alpha1.JobTemplateSpec") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v2alpha1/generated.proto", fileDescriptor_5495a0550fe29c46) -} - -var fileDescriptor_5495a0550fe29c46 = []byte{ - // 774 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4d, 0x6f, 0xdb, 0x36, - 0x18, 0xc7, 0x2d, 0xc7, 0x6f, 0xa1, 0x97, 0x2d, 0xd1, 0x86, 0xc4, 0xf3, 0x06, 0xd9, 0x50, 0xb0, - 0xc1, 0x18, 0x36, 0x6a, 0x09, 0x86, 0x61, 0xa7, 0x01, 0x53, 0x86, 0x36, 0x4d, 0x53, 0x34, 0x90, - 0x53, 0xa0, 0x28, 0x82, 0xa2, 0x14, 0x45, 0xdb, 0x8c, 0x25, 0x51, 0x10, 0x29, 0x03, 0xbe, 0xf5, - 0xd6, 0x6b, 0x3f, 0x49, 0x2f, 0xed, 0x87, 0x48, 0x7b, 0xca, 0x31, 0x27, 0xa3, 0x51, 0xbf, 0x45, - 0x4f, 0x85, 0x68, 0xf9, 0x25, 0x7e, 0x49, 0xd2, 0x4b, 0x6e, 0xe2, 0xa3, 0xff, 0xff, 0xc7, 0x87, - 0xcf, 0xf3, 0x90, 0xc0, 0xec, 0xfe, 0xc3, 0x21, 0x65, 0x46, 0x37, 0xb2, 0x49, 0xe8, 0x13, 0x41, - 0xb8, 0xd1, 0x23, 0xbe, 0xc3, 0x42, 0x23, 0xfd, 0x81, 0x02, 0x6a, 0xd8, 0x48, 0xe0, 0x8e, 0xd1, - 0xdb, 0x45, 0x6e, 0xd0, 0x41, 0x3b, 0x46, 0x9b, 0xf8, 0x24, 0x44, 0x82, 0x38, 0x30, 0x08, 0x99, - 0x60, 0xea, 0x8f, 0x43, 0x29, 0x44, 0x01, 0x85, 0x52, 0x0a, 0x47, 0xd2, 0xea, 0x1f, 0x6d, 0x2a, - 0x3a, 0x91, 0x0d, 0x31, 0xf3, 0x8c, 0x36, 0x6b, 0x33, 0x43, 0x3a, 0xec, 0xa8, 0x25, 0x57, 0x72, - 0x21, 0xbf, 0x86, 0xa4, 0xea, 0xf6, 0xfc, 0xa6, 0x73, 0xdb, 0x55, 0xf5, 0x29, 0x11, 0x66, 0x21, - 0x59, 0xa4, 0xf9, 0x6b, 0xa2, 0xf1, 0x10, 0xee, 0x50, 0x9f, 0x84, 0x7d, 0x23, 0xe8, 0xb6, 0x93, - 0x00, 0x37, 0x3c, 0x22, 0xd0, 0x22, 0x97, 0xb1, 0xcc, 0x15, 0x46, 0xbe, 0xa0, 0x1e, 0x99, 0x33, - 0xfc, 0x7d, 0x93, 0x81, 0xe3, 0x0e, 0xf1, 0xd0, 0xac, 0x4f, 0x7f, 0x95, 0x05, 0xc5, 0xbd, 0x90, - 0xf9, 0x07, 0xcc, 0x56, 0x5f, 0x80, 0x52, 0x92, 0x8f, 0x83, 0x04, 0xaa, 0x28, 0x75, 0xa5, 0x51, - 0xde, 0xfd, 0x13, 0x4e, 0x0a, 0x3a, 0xc6, 0xc2, 0xa0, 0xdb, 0x4e, 0x02, 0x1c, 0x26, 0x6a, 0xd8, - 0xdb, 0x81, 0x8f, 0xed, 0x53, 0x82, 0xc5, 0x23, 0x22, 0x90, 0xa9, 0x9e, 0x0d, 0x6a, 0x99, 0x78, - 0x50, 0x03, 0x93, 0x98, 0x35, 0xa6, 0xaa, 0xfb, 0x20, 0xc7, 0x03, 0x82, 0x2b, 0x59, 0x49, 0xff, - 0x15, 0x2e, 0x6d, 0x17, 0x4c, 0x73, 0x6a, 0x06, 0x04, 0x9b, 0xdf, 0xa4, 0xcc, 0x5c, 0xb2, 0xb2, - 0x24, 0x41, 0x3d, 0x02, 0x05, 0x2e, 0x90, 0x88, 0x78, 0x65, 0x45, 0xb2, 0x1a, 0xb7, 0x60, 0x49, - 0xbd, 0xf9, 0x6d, 0x4a, 0x2b, 0x0c, 0xd7, 0x56, 0xca, 0xd1, 0xdf, 0x29, 0xa0, 0x9c, 0x2a, 0x0f, - 0x29, 0x17, 0xea, 0xc9, 0x5c, 0x35, 0xe0, 0xed, 0xaa, 0x91, 0xb8, 0x65, 0x2d, 0xd6, 0xd3, 0x9d, - 0x4a, 0xa3, 0xc8, 0x54, 0x25, 0xee, 0x83, 0x3c, 0x15, 0xc4, 0xe3, 0x95, 0x6c, 0x7d, 0xa5, 0x51, - 0xde, 0xd5, 0x6f, 0x4e, 0xdf, 0x5c, 0x4b, 0x71, 0xf9, 0x07, 0x89, 0xd1, 0x1a, 0xfa, 0xf5, 0x37, - 0xb9, 0x71, 0xda, 0x49, 0x79, 0xd4, 0xdf, 0x41, 0x29, 0x69, 0xb5, 0x13, 0xb9, 0x44, 0xa6, 0xbd, - 0x3a, 0x49, 0xa3, 0x99, 0xc6, 0xad, 0xb1, 0x42, 0x7d, 0x02, 0xb6, 0xb8, 0x40, 0xa1, 0xa0, 0x7e, - 0xfb, 0x7f, 0x82, 0x1c, 0x97, 0xfa, 0xa4, 0x49, 0x30, 0xf3, 0x1d, 0x2e, 0x7b, 0xb4, 0x62, 0xfe, - 0x14, 0x0f, 0x6a, 0x5b, 0xcd, 0xc5, 0x12, 0x6b, 0x99, 0x57, 0x3d, 0x01, 0x1b, 0x98, 0xf9, 0x38, - 0x0a, 0x43, 0xe2, 0xe3, 0xfe, 0x11, 0x73, 0x29, 0xee, 0xcb, 0x46, 0xad, 0x9a, 0x30, 0xcd, 0x66, - 0x63, 0x6f, 0x56, 0xf0, 0x79, 0x51, 0xd0, 0x9a, 0x07, 0xa9, 0xbf, 0x80, 0x22, 0x8f, 0x78, 0x40, - 0x7c, 0xa7, 0x92, 0xab, 0x2b, 0x8d, 0x92, 0x59, 0x8e, 0x07, 0xb5, 0x62, 0x73, 0x18, 0xb2, 0x46, - 0xff, 0x54, 0x04, 0xca, 0xa7, 0xcc, 0x3e, 0x26, 0x5e, 0xe0, 0x22, 0x41, 0x2a, 0x79, 0xd9, 0xc3, - 0xdf, 0xae, 0x29, 0xf4, 0xc1, 0x44, 0x2d, 0xe7, 0xee, 0xfb, 0x34, 0xd5, 0xf2, 0xd4, 0x0f, 0x6b, - 0x9a, 0xa9, 0x3e, 0x07, 0x55, 0x1e, 0x61, 0x4c, 0x38, 0x6f, 0x45, 0xee, 0x01, 0xb3, 0xf9, 0x3e, - 0xe5, 0x82, 0x85, 0xfd, 0x43, 0xea, 0x51, 0x51, 0x29, 0xd4, 0x95, 0x46, 0xde, 0xd4, 0xe2, 0x41, - 0xad, 0xda, 0x5c, 0xaa, 0xb2, 0xae, 0x21, 0xa8, 0x16, 0xd8, 0x6c, 0x21, 0xea, 0x12, 0x67, 0x8e, - 0x5d, 0x94, 0xec, 0x6a, 0x3c, 0xa8, 0x6d, 0xde, 0x5b, 0xa8, 0xb0, 0x96, 0x38, 0xf5, 0x0f, 0x0a, - 0x58, 0xbb, 0x72, 0x23, 0xd4, 0x87, 0xa0, 0x80, 0xb0, 0xa0, 0xbd, 0x64, 0x60, 0x92, 0x61, 0xdc, - 0x9e, 0xae, 0x51, 0xf2, 0xae, 0x4d, 0xee, 0xb8, 0x45, 0x5a, 0x24, 0x69, 0x05, 0x99, 0x5c, 0xa3, - 0xff, 0xa4, 0xd5, 0x4a, 0x11, 0xaa, 0x0b, 0xd6, 0x5d, 0xc4, 0xc5, 0x68, 0xd6, 0x8e, 0xa9, 0x47, - 0x64, 0x97, 0xae, 0x96, 0xfe, 0x9a, 0xeb, 0x93, 0x38, 0xcc, 0x1f, 0xe2, 0x41, 0x6d, 0xfd, 0x70, - 0x86, 0x63, 0xcd, 0x91, 0xf5, 0xf7, 0x0a, 0x98, 0xee, 0xce, 0x1d, 0x3c, 0x61, 0x4f, 0x41, 0x49, - 0x8c, 0x46, 0x2a, 0xfb, 0xd5, 0x23, 0x35, 0xbe, 0x8b, 0xe3, 0x79, 0x1a, 0xd3, 0xf4, 0xb7, 0x0a, - 0xf8, 0x6e, 0x46, 0x7f, 0x07, 0xe7, 0xf9, 0xf7, 0xca, 0x93, 0xfc, 0xf3, 0x82, 0xb3, 0xc8, 0x53, - 0x2c, 0x7b, 0x88, 0x4d, 0x78, 0x76, 0xa9, 0x65, 0xce, 0x2f, 0xb5, 0xcc, 0xc5, 0xa5, 0x96, 0x79, - 0x19, 0x6b, 0xca, 0x59, 0xac, 0x29, 0xe7, 0xb1, 0xa6, 0x5c, 0xc4, 0x9a, 0xf2, 0x31, 0xd6, 0x94, - 0xd7, 0x9f, 0xb4, 0xcc, 0xb3, 0xd2, 0xa8, 0x22, 0x5f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x20, 0x1c, - 0xcf, 0x94, 0xe7, 0x07, 0x00, 0x00, -} - -func (m *CronJob) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJob) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJob) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CronJobList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJobList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJobList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CronJobSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FailedJobsHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.FailedJobsHistoryLimit)) - i-- - dAtA[i] = 0x38 - } - if m.SuccessfulJobsHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.SuccessfulJobsHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - { - size, err := m.JobTemplate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if m.Suspend != nil { - i-- - if *m.Suspend { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - i -= len(m.ConcurrencyPolicy) - copy(dAtA[i:], m.ConcurrencyPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConcurrencyPolicy))) - i-- - dAtA[i] = 0x1a - if m.StartingDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.StartingDeadlineSeconds)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Schedule) - copy(dAtA[i:], m.Schedule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CronJobStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CronJobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LastScheduleTime != nil { - { - size, err := m.LastScheduleTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Active) > 0 { - for iNdEx := len(m.Active) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Active[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *JobTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *JobTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CronJob) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CronJobList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CronJobSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Schedule) - n += 1 + l + sovGenerated(uint64(l)) - if m.StartingDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds)) - } - l = len(m.ConcurrencyPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.Suspend != nil { - n += 2 - } - l = m.JobTemplate.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.SuccessfulJobsHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.SuccessfulJobsHistoryLimit)) - } - if m.FailedJobsHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.FailedJobsHistoryLimit)) - } - return n -} - -func (m *CronJobStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Active) > 0 { - for _, e := range m.Active { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.LastScheduleTime != nil { - l = m.LastScheduleTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *JobTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *JobTemplateSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CronJob) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CronJob{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CronJobList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]CronJob{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CronJob", "CronJob", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&CronJobList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *CronJobSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CronJobSpec{`, - `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, - `StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`, - `ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`, - `Suspend:` + valueToStringGenerated(this.Suspend) + `,`, - `JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, - `SuccessfulJobsHistoryLimit:` + valueToStringGenerated(this.SuccessfulJobsHistoryLimit) + `,`, - `FailedJobsHistoryLimit:` + valueToStringGenerated(this.FailedJobsHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *CronJobStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForActive := "[]ObjectReference{" - for _, f := range this.Active { - repeatedStringForActive += fmt.Sprintf("%v", f) + "," - } - repeatedStringForActive += "}" - s := strings.Join([]string{`&CronJobStatus{`, - `Active:` + repeatedStringForActive + `,`, - `LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "v1.Time", 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobTemplate) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobTemplate{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *JobTemplateSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&JobTemplateSpec{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Spec), "JobSpec", "v12.JobSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CronJob) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJob: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CronJobList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJobList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, CronJob{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CronJobSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJobSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Schedule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StartingDeadlineSeconds = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConcurrencyPolicy = ConcurrencyPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Suspend = &b - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.JobTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SuccessfulJobsHistoryLimit = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.FailedJobsHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CronJobStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CronJobStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Active = append(m.Active, v11.ObjectReference{}) - if err := m.Active[len(m.Active)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastScheduleTime == nil { - m.LastScheduleTime = &v1.Time{} - } - if err := m.LastScheduleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobTemplate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: JobTemplateSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: JobTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/batch/v2alpha1/generated.proto b/pseudo/k8s/api/batch/v2alpha1/generated.proto deleted file mode 100644 index 01027c65c..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/generated.proto +++ /dev/null @@ -1,135 +0,0 @@ -/* -Copyright 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.batch.v2alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v2alpha1"; - -// CronJob represents the configuration of a single cron job. -message CronJob { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of a cron job, including the schedule. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional CronJobSpec spec = 2; - - // Current status of a cron job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional CronJobStatus status = 3; -} - -// CronJobList is a collection of cron jobs. -message CronJobList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of CronJobs. - repeated CronJob items = 2; -} - -// CronJobSpec describes how the job execution will look like and when it will actually run. -message CronJobSpec { - // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - optional string schedule = 1; - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +optional - optional int64 startingDeadlineSeconds = 2; - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +optional - optional string concurrencyPolicy = 3; - - // This flag tells the controller to suspend subsequent executions, it does - // not apply to already started executions. Defaults to false. - // +optional - optional bool suspend = 4; - - // Specifies the job that will be created when executing a CronJob. - optional JobTemplateSpec jobTemplate = 5; - - // The number of successful finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // +optional - optional int32 successfulJobsHistoryLimit = 6; - - // The number of failed finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // +optional - optional int32 failedJobsHistoryLimit = 7; -} - -// CronJobStatus represents the current state of a cron job. -message CronJobStatus { - // A list of pointers to currently running jobs. - // +optional - repeated k8s.io.api.core.v1.ObjectReference active = 1; - - // Information when was the last time the job was successfully scheduled. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScheduleTime = 4; -} - -// JobTemplate describes a template for creating copies of a predefined pod. -message JobTemplate { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Defines jobs that will be created from this template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional JobTemplateSpec template = 2; -} - -// JobTemplateSpec describes the data a Job should have when created from a template -message JobTemplateSpec { - // Standard object's metadata of the jobs created from this template. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional k8s.io.api.batch.v1.JobSpec spec = 2; -} - diff --git a/pseudo/k8s/api/batch/v2alpha1/register.go b/pseudo/k8s/api/batch/v2alpha1/register.go deleted file mode 100644 index 07d604543..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -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 v2alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "batch" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v2alpha1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &JobTemplate{}, - &CronJob{}, - &CronJobList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/batch/v2alpha1/types.go b/pseudo/k8s/api/batch/v2alpha1/types.go deleted file mode 100644 index 1ffa3a752..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/types.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -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 v2alpha1 - -import ( - batchv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// JobTemplate describes a template for creating copies of a predefined pod. -type JobTemplate struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Defines jobs that will be created from this template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Template JobTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` -} - -// JobTemplateSpec describes the data a Job should have when created from a template -type JobTemplateSpec struct { - // Standard object's metadata of the jobs created from this template. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec batchv1.JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CronJob represents the configuration of a single cron job. -type CronJob struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of a cron job, including the schedule. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Current status of a cron job. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CronJobList is a collection of cron jobs. -type CronJobList struct { - metav1.TypeMeta `json:",inline"` - - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of CronJobs. - Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// CronJobSpec describes how the job execution will look like and when it will actually run. -type CronJobSpec struct { - - // The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"` - - // Optional deadline in seconds for starting the job if it misses scheduled - // time for any reason. Missed jobs executions will be counted as failed ones. - // +optional - StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=startingDeadlineSeconds"` - - // Specifies how to treat concurrent executions of a Job. - // Valid values are: - // - "Allow" (default): allows CronJobs to run concurrently; - // - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - // - "Replace": cancels currently running job and replaces it with a new one - // +optional - ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty" protobuf:"bytes,3,opt,name=concurrencyPolicy,casttype=ConcurrencyPolicy"` - - // This flag tells the controller to suspend subsequent executions, it does - // not apply to already started executions. Defaults to false. - // +optional - Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"` - - // Specifies the job that will be created when executing a CronJob. - JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"` - - // The number of successful finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // +optional - SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty" protobuf:"varint,6,opt,name=successfulJobsHistoryLimit"` - - // The number of failed finished jobs to retain. - // This is a pointer to distinguish between explicit zero and not specified. - // +optional - FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty" protobuf:"varint,7,opt,name=failedJobsHistoryLimit"` -} - -// ConcurrencyPolicy describes how the job will be handled. -// Only one of the following concurrent policies may be specified. -// If none of the following policies is specified, the default one -// is AllowConcurrent. -type ConcurrencyPolicy string - -const ( - // AllowConcurrent allows CronJobs to run concurrently. - AllowConcurrent ConcurrencyPolicy = "Allow" - - // ForbidConcurrent forbids concurrent runs, skipping next run if previous - // hasn't finished yet. - ForbidConcurrent ConcurrencyPolicy = "Forbid" - - // ReplaceConcurrent cancels currently running job and replaces it with a new one. - ReplaceConcurrent ConcurrencyPolicy = "Replace" -) - -// CronJobStatus represents the current state of a cron job. -type CronJobStatus struct { - // A list of pointers to currently running jobs. - // +optional - Active []v1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"` - - // Information when was the last time the job was successfully scheduled. - // +optional - LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"` -} diff --git a/pseudo/k8s/api/batch/v2alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/batch/v2alpha1/types_swagger_doc_generated.go deleted file mode 100644 index bc80eca48..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 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 v2alpha1 - -// 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. DO NOT EDIT. -var map_CronJob = map[string]string{ - "": "CronJob represents the configuration of a single cron job.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (CronJob) SwaggerDoc() map[string]string { - return map_CronJob -} - -var map_CronJobList = map[string]string{ - "": "CronJobList is a collection of cron jobs.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of CronJobs.", -} - -func (CronJobList) SwaggerDoc() map[string]string { - return map_CronJobList -} - -var map_CronJobSpec = map[string]string{ - "": "CronJobSpec describes how the job execution will look like and when it will actually run.", - "schedule": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", - "startingDeadlineSeconds": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "concurrencyPolicy": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", - "suspend": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "jobTemplate": "Specifies the job that will be created when executing a CronJob.", - "successfulJobsHistoryLimit": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", - "failedJobsHistoryLimit": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.", -} - -func (CronJobSpec) SwaggerDoc() map[string]string { - return map_CronJobSpec -} - -var map_CronJobStatus = map[string]string{ - "": "CronJobStatus represents the current state of a cron job.", - "active": "A list of pointers to currently running jobs.", - "lastScheduleTime": "Information when was the last time the job was successfully scheduled.", -} - -func (CronJobStatus) SwaggerDoc() map[string]string { - return map_CronJobStatus -} - -var map_JobTemplate = map[string]string{ - "": "JobTemplate describes a template for creating copies of a predefined pod.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "template": "Defines jobs that will be created from this template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (JobTemplate) SwaggerDoc() map[string]string { - return map_JobTemplate -} - -var map_JobTemplateSpec = map[string]string{ - "": "JobTemplateSpec describes the data a Job should have when created from a template", - "metadata": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (JobTemplateSpec) SwaggerDoc() map[string]string { - return map_JobTemplateSpec -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/batch/v2alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/batch/v2alpha1/zz_generated.deepcopy.go deleted file mode 100644 index ccf80c03e..000000000 --- a/pseudo/k8s/api/batch/v2alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,194 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v2alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJob) DeepCopyInto(out *CronJob) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob. -func (in *CronJob) DeepCopy() *CronJob { - if in == nil { - return nil - } - out := new(CronJob) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CronJob) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJobList) DeepCopyInto(out *CronJobList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CronJob, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList. -func (in *CronJobList) DeepCopy() *CronJobList { - if in == nil { - return nil - } - out := new(CronJobList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CronJobList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec) { - *out = *in - if in.StartingDeadlineSeconds != nil { - in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.Suspend != nil { - in, out := &in.Suspend, &out.Suspend - *out = new(bool) - **out = **in - } - in.JobTemplate.DeepCopyInto(&out.JobTemplate) - if in.SuccessfulJobsHistoryLimit != nil { - in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit - *out = new(int32) - **out = **in - } - if in.FailedJobsHistoryLimit != nil { - in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec. -func (in *CronJobSpec) DeepCopy() *CronJobSpec { - if in == nil { - return nil - } - out := new(CronJobSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus) { - *out = *in - if in.Active != nil { - in, out := &in.Active, &out.Active - *out = make([]v1.ObjectReference, len(*in)) - copy(*out, *in) - } - if in.LastScheduleTime != nil { - in, out := &in.LastScheduleTime, &out.LastScheduleTime - *out = (*in).DeepCopy() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus. -func (in *CronJobStatus) DeepCopy() *CronJobStatus { - if in == nil { - return nil - } - out := new(CronJobStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobTemplate) DeepCopyInto(out *JobTemplate) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplate. -func (in *JobTemplate) DeepCopy() *JobTemplate { - if in == nil { - return nil - } - out := new(JobTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *JobTemplate) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec. -func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec { - if in == nil { - return nil - } - out := new(JobTemplateSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/certificates/v1beta1/doc.go b/pseudo/k8s/api/certificates/v1beta1/doc.go deleted file mode 100644 index 6f2d75366..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=certificates.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/certificates/v1beta1" diff --git a/pseudo/k8s/api/certificates/v1beta1/generated.pb.go b/pseudo/k8s/api/certificates/v1beta1/generated.pb.go deleted file mode 100644 index ce94cdb9d..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/generated.pb.go +++ /dev/null @@ -1,1936 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/certificates/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} } -func (*CertificateSigningRequest) ProtoMessage() {} -func (*CertificateSigningRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_09d156762b8218ef, []int{0} -} -func (m *CertificateSigningRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CertificateSigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CertificateSigningRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateSigningRequest.Merge(m, src) -} -func (m *CertificateSigningRequest) XXX_Size() int { - return m.Size() -} -func (m *CertificateSigningRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateSigningRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateSigningRequest proto.InternalMessageInfo - -func (m *CertificateSigningRequestCondition) Reset() { *m = CertificateSigningRequestCondition{} } -func (*CertificateSigningRequestCondition) ProtoMessage() {} -func (*CertificateSigningRequestCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_09d156762b8218ef, []int{1} -} -func (m *CertificateSigningRequestCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CertificateSigningRequestCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CertificateSigningRequestCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateSigningRequestCondition.Merge(m, src) -} -func (m *CertificateSigningRequestCondition) XXX_Size() int { - return m.Size() -} -func (m *CertificateSigningRequestCondition) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateSigningRequestCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateSigningRequestCondition proto.InternalMessageInfo - -func (m *CertificateSigningRequestList) Reset() { *m = CertificateSigningRequestList{} } -func (*CertificateSigningRequestList) ProtoMessage() {} -func (*CertificateSigningRequestList) Descriptor() ([]byte, []int) { - return fileDescriptor_09d156762b8218ef, []int{2} -} -func (m *CertificateSigningRequestList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CertificateSigningRequestList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CertificateSigningRequestList) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateSigningRequestList.Merge(m, src) -} -func (m *CertificateSigningRequestList) XXX_Size() int { - return m.Size() -} -func (m *CertificateSigningRequestList) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateSigningRequestList.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateSigningRequestList proto.InternalMessageInfo - -func (m *CertificateSigningRequestSpec) Reset() { *m = CertificateSigningRequestSpec{} } -func (*CertificateSigningRequestSpec) ProtoMessage() {} -func (*CertificateSigningRequestSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_09d156762b8218ef, []int{3} -} -func (m *CertificateSigningRequestSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CertificateSigningRequestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CertificateSigningRequestSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateSigningRequestSpec.Merge(m, src) -} -func (m *CertificateSigningRequestSpec) XXX_Size() int { - return m.Size() -} -func (m *CertificateSigningRequestSpec) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateSigningRequestSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateSigningRequestSpec proto.InternalMessageInfo - -func (m *CertificateSigningRequestStatus) Reset() { *m = CertificateSigningRequestStatus{} } -func (*CertificateSigningRequestStatus) ProtoMessage() {} -func (*CertificateSigningRequestStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_09d156762b8218ef, []int{4} -} -func (m *CertificateSigningRequestStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CertificateSigningRequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CertificateSigningRequestStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateSigningRequestStatus.Merge(m, src) -} -func (m *CertificateSigningRequestStatus) XXX_Size() int { - return m.Size() -} -func (m *CertificateSigningRequestStatus) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateSigningRequestStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateSigningRequestStatus proto.InternalMessageInfo - -func (m *ExtraValue) Reset() { *m = ExtraValue{} } -func (*ExtraValue) ProtoMessage() {} -func (*ExtraValue) Descriptor() ([]byte, []int) { - return fileDescriptor_09d156762b8218ef, []int{5} -} -func (m *ExtraValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExtraValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExtraValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtraValue.Merge(m, src) -} -func (m *ExtraValue) XXX_Size() int { - return m.Size() -} -func (m *ExtraValue) XXX_DiscardUnknown() { - xxx_messageInfo_ExtraValue.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtraValue proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CertificateSigningRequest)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequest") - proto.RegisterType((*CertificateSigningRequestCondition)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestCondition") - proto.RegisterType((*CertificateSigningRequestList)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestList") - proto.RegisterType((*CertificateSigningRequestSpec)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestSpec") - proto.RegisterMapType((map[string]ExtraValue)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestSpec.ExtraEntry") - proto.RegisterType((*CertificateSigningRequestStatus)(nil), "k8s.io.api.certificates.v1beta1.CertificateSigningRequestStatus") - proto.RegisterType((*ExtraValue)(nil), "k8s.io.api.certificates.v1beta1.ExtraValue") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/certificates/v1beta1/generated.proto", fileDescriptor_09d156762b8218ef) -} - -var fileDescriptor_09d156762b8218ef = []byte{ - // 805 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4b, 0x8f, 0x1b, 0x45, - 0x10, 0xf6, 0xf8, 0xb5, 0x76, 0x7b, 0xd9, 0x44, 0x2d, 0x14, 0x0d, 0x2b, 0x65, 0x66, 0x35, 0x02, - 0xb4, 0x3c, 0xd2, 0xc3, 0x46, 0x08, 0x56, 0x7b, 0x40, 0x30, 0x4b, 0x04, 0x2b, 0x12, 0x21, 0x75, - 0x62, 0x0e, 0x08, 0x89, 0xb4, 0xc7, 0x95, 0x71, 0xc7, 0x99, 0x07, 0xd3, 0x3d, 0x06, 0xdf, 0xf2, - 0x13, 0x38, 0x72, 0x41, 0xe2, 0x97, 0x70, 0x5e, 0x0e, 0x48, 0x39, 0xe6, 0x80, 0x2c, 0xd6, 0xfc, - 0x8b, 0x9c, 0x50, 0xf7, 0xb4, 0x3d, 0xc6, 0x2b, 0xe3, 0x28, 0x7b, 0x9b, 0xfa, 0xaa, 0xbe, 0xaf, - 0x1e, 0x5d, 0x35, 0xe8, 0xcb, 0xf1, 0xb1, 0x20, 0x3c, 0xf5, 0xc7, 0xc5, 0x00, 0xf2, 0x04, 0x24, - 0x08, 0x7f, 0x02, 0xc9, 0x30, 0xcd, 0x7d, 0xe3, 0x60, 0x19, 0xf7, 0x43, 0xc8, 0x25, 0x7f, 0xc4, - 0x43, 0xa6, 0xdd, 0x47, 0x03, 0x90, 0xec, 0xc8, 0x8f, 0x20, 0x81, 0x9c, 0x49, 0x18, 0x92, 0x2c, - 0x4f, 0x65, 0x8a, 0xdd, 0x92, 0x40, 0x58, 0xc6, 0xc9, 0x2a, 0x81, 0x18, 0xc2, 0xfe, 0xad, 0x88, - 0xcb, 0x51, 0x31, 0x20, 0x61, 0x1a, 0xfb, 0x51, 0x1a, 0xa5, 0xbe, 0xe6, 0x0d, 0x8a, 0x47, 0xda, - 0xd2, 0x86, 0xfe, 0x2a, 0xf5, 0xf6, 0x3f, 0xac, 0x0a, 0x88, 0x59, 0x38, 0xe2, 0x09, 0xe4, 0x53, - 0x3f, 0x1b, 0x47, 0x0a, 0x10, 0x7e, 0x0c, 0x92, 0xf9, 0x93, 0x4b, 0x55, 0xec, 0xfb, 0x9b, 0x58, - 0x79, 0x91, 0x48, 0x1e, 0xc3, 0x25, 0xc2, 0x47, 0xdb, 0x08, 0x22, 0x1c, 0x41, 0xcc, 0xd6, 0x79, - 0xde, 0x1f, 0x75, 0xf4, 0xc6, 0x69, 0xd5, 0xe6, 0x7d, 0x1e, 0x25, 0x3c, 0x89, 0x28, 0xfc, 0x50, - 0x80, 0x90, 0xf8, 0x21, 0xea, 0xa8, 0x0a, 0x87, 0x4c, 0x32, 0xdb, 0x3a, 0xb0, 0x0e, 0x7b, 0xb7, - 0x3f, 0x20, 0xd5, 0x7c, 0x96, 0x89, 0x48, 0x36, 0x8e, 0x14, 0x20, 0x88, 0x8a, 0x26, 0x93, 0x23, - 0xf2, 0xf5, 0xe0, 0x31, 0x84, 0xf2, 0x1e, 0x48, 0x16, 0xe0, 0xf3, 0x99, 0x5b, 0x9b, 0xcf, 0x5c, - 0x54, 0x61, 0x74, 0xa9, 0x8a, 0x1f, 0xa2, 0xa6, 0xc8, 0x20, 0xb4, 0xeb, 0x5a, 0xfd, 0x13, 0xb2, - 0x65, 0xfa, 0x64, 0x63, 0xad, 0xf7, 0x33, 0x08, 0x83, 0x5d, 0x93, 0xab, 0xa9, 0x2c, 0xaa, 0x95, - 0xf1, 0x08, 0xb5, 0x85, 0x64, 0xb2, 0x10, 0x76, 0x43, 0xe7, 0xf8, 0xf4, 0x0a, 0x39, 0xb4, 0x4e, - 0xb0, 0x67, 0xb2, 0xb4, 0x4b, 0x9b, 0x1a, 0x7d, 0xef, 0xd7, 0x3a, 0xf2, 0x36, 0x72, 0x4f, 0xd3, - 0x64, 0xc8, 0x25, 0x4f, 0x13, 0x7c, 0x8c, 0x9a, 0x72, 0x9a, 0x81, 0x1e, 0x68, 0x37, 0x78, 0x73, - 0x51, 0xf2, 0x83, 0x69, 0x06, 0x2f, 0x66, 0xee, 0xeb, 0xeb, 0xf1, 0x0a, 0xa7, 0x9a, 0x81, 0xdf, - 0x46, 0xed, 0x1c, 0x98, 0x48, 0x13, 0x3d, 0xae, 0x6e, 0x55, 0x08, 0xd5, 0x28, 0x35, 0x5e, 0xfc, - 0x0e, 0xda, 0x89, 0x41, 0x08, 0x16, 0x81, 0xee, 0xb9, 0x1b, 0x5c, 0x33, 0x81, 0x3b, 0xf7, 0x4a, - 0x98, 0x2e, 0xfc, 0xf8, 0x31, 0xda, 0x7b, 0xc2, 0x84, 0xec, 0x67, 0x43, 0x26, 0xe1, 0x01, 0x8f, - 0xc1, 0x6e, 0xea, 0x29, 0xbd, 0xfb, 0x72, 0xef, 0xac, 0x18, 0xc1, 0x0d, 0xa3, 0xbe, 0x77, 0xf7, - 0x3f, 0x4a, 0x74, 0x4d, 0xd9, 0x9b, 0x59, 0xe8, 0xe6, 0xc6, 0xf9, 0xdc, 0xe5, 0x42, 0xe2, 0xef, - 0x2e, 0xed, 0x1b, 0x79, 0xb9, 0x3a, 0x14, 0x5b, 0x6f, 0xdb, 0x75, 0x53, 0x4b, 0x67, 0x81, 0xac, - 0xec, 0xda, 0xf7, 0xa8, 0xc5, 0x25, 0xc4, 0xc2, 0xae, 0x1f, 0x34, 0x0e, 0x7b, 0xb7, 0x4f, 0x5e, - 0x7d, 0x11, 0x82, 0xd7, 0x4c, 0x9a, 0xd6, 0x99, 0x12, 0xa4, 0xa5, 0xae, 0xf7, 0x7b, 0xe3, 0x7f, - 0x1a, 0x54, 0x2b, 0x89, 0xdf, 0x42, 0x3b, 0x79, 0x69, 0xea, 0xfe, 0x76, 0x83, 0x9e, 0x7a, 0x15, - 0x13, 0x41, 0x17, 0x3e, 0x4c, 0x50, 0xbb, 0x50, 0xcf, 0x23, 0xec, 0xd6, 0x41, 0xe3, 0xb0, 0x1b, - 0xdc, 0x50, 0x8f, 0xdc, 0xd7, 0xc8, 0x8b, 0x99, 0xdb, 0xf9, 0x0a, 0xa6, 0xda, 0xa0, 0x26, 0x0a, - 0xbf, 0x8f, 0x3a, 0x85, 0x80, 0x3c, 0x61, 0x31, 0x98, 0xd5, 0x58, 0xce, 0xa1, 0x6f, 0x70, 0xba, - 0x8c, 0xc0, 0x37, 0x51, 0xa3, 0xe0, 0x43, 0xb3, 0x1a, 0x3d, 0x13, 0xd8, 0xe8, 0x9f, 0x7d, 0x4e, - 0x15, 0x8e, 0x3d, 0xd4, 0x8e, 0xf2, 0xb4, 0xc8, 0x84, 0xdd, 0xd4, 0xc9, 0x91, 0x4a, 0xfe, 0x85, - 0x46, 0xa8, 0xf1, 0xe0, 0x04, 0xb5, 0xe0, 0x27, 0x99, 0x33, 0xbb, 0xad, 0x47, 0x79, 0x76, 0xb5, - 0xbb, 0x25, 0x77, 0x94, 0xd6, 0x9d, 0x44, 0xe6, 0xd3, 0x6a, 0xb2, 0x1a, 0xa3, 0x65, 0x9a, 0x7d, - 0x40, 0xa8, 0x8a, 0xc1, 0xd7, 0x51, 0x63, 0x0c, 0xd3, 0xf2, 0x80, 0xa8, 0xfa, 0xc4, 0x9f, 0xa1, - 0xd6, 0x84, 0x3d, 0x29, 0xc0, 0xfc, 0x47, 0xde, 0xdb, 0x5a, 0x8f, 0x56, 0xfb, 0x46, 0x51, 0x68, - 0xc9, 0x3c, 0xa9, 0x1f, 0x5b, 0xde, 0x9f, 0x16, 0x72, 0xb7, 0x5c, 0x3f, 0xfe, 0x11, 0xa1, 0x70, - 0x71, 0x9b, 0xc2, 0xb6, 0x74, 0xff, 0xa7, 0xaf, 0xde, 0xff, 0xf2, 0xce, 0xab, 0x1f, 0xe5, 0x12, - 0x12, 0x74, 0x25, 0x15, 0x3e, 0x42, 0xbd, 0x15, 0x69, 0xdd, 0xe9, 0x6e, 0x70, 0x6d, 0x3e, 0x73, - 0x7b, 0x2b, 0xe2, 0x74, 0x35, 0xc6, 0xfb, 0xd8, 0x8c, 0x4d, 0x37, 0x8a, 0xdd, 0xc5, 0xfe, 0x5b, - 0xfa, 0x5d, 0xbb, 0xeb, 0xfb, 0x7b, 0xd2, 0xf9, 0xe5, 0x37, 0xb7, 0xf6, 0xf4, 0xaf, 0x83, 0x5a, - 0x70, 0xeb, 0xfc, 0xc2, 0xa9, 0x3d, 0xbb, 0x70, 0x6a, 0xcf, 0x2f, 0x9c, 0xda, 0xd3, 0xb9, 0x63, - 0x9d, 0xcf, 0x1d, 0xeb, 0xd9, 0xdc, 0xb1, 0x9e, 0xcf, 0x1d, 0xeb, 0xef, 0xb9, 0x63, 0xfd, 0xfc, - 0x8f, 0x53, 0xfb, 0x76, 0xc7, 0x74, 0xf7, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x39, 0x0e, 0xb6, - 0xcd, 0x7f, 0x07, 0x00, 0x00, -} - -func (m *CertificateSigningRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CertificateSigningRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CertificateSigningRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CertificateSigningRequestCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CertificateSigningRequestCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CertificateSigningRequestCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CertificateSigningRequestList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CertificateSigningRequestList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CertificateSigningRequestList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CertificateSigningRequestSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CertificateSigningRequestSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CertificateSigningRequestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Extra) > 0 { - keysForExtra := make([]string, 0, len(m.Extra)) - for k := range m.Extra { - keysForExtra = append(keysForExtra, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - for iNdEx := len(keysForExtra) - 1; iNdEx >= 0; iNdEx-- { - v := m.Extra[string(keysForExtra[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForExtra[iNdEx]) - copy(dAtA[i:], keysForExtra[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForExtra[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.Usages) > 0 { - for iNdEx := len(m.Usages) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Usages[iNdEx]) - copy(dAtA[i:], m.Usages[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Usages[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Groups[iNdEx]) - copy(dAtA[i:], m.Groups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Groups[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x1a - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0x12 - if m.Request != nil { - i -= len(m.Request) - copy(dAtA[i:], m.Request) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Request))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CertificateSigningRequestStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CertificateSigningRequestStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CertificateSigningRequestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Certificate != nil { - i -= len(m.Certificate) - copy(dAtA[i:], m.Certificate) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Certificate))) - i-- - dAtA[i] = 0x12 - } - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m ExtraValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m ExtraValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m ExtraValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m) > 0 { - for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m[iNdEx]) - copy(dAtA[i:], m[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CertificateSigningRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CertificateSigningRequestCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastUpdateTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CertificateSigningRequestList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CertificateSigningRequestSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Request != nil { - l = len(m.Request) - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Username) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Groups) > 0 { - for _, s := range m.Groups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Usages) > 0 { - for _, s := range m.Usages { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Extra) > 0 { - for k, v := range m.Extra { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *CertificateSigningRequestStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Certificate != nil { - l = len(m.Certificate) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m ExtraValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CertificateSigningRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CertificateSigningRequest{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CertificateSigningRequestSpec", "CertificateSigningRequestSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CertificateSigningRequestStatus", "CertificateSigningRequestStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CertificateSigningRequestCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CertificateSigningRequestCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CertificateSigningRequestList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]CertificateSigningRequest{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CertificateSigningRequest", "CertificateSigningRequest", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&CertificateSigningRequestList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *CertificateSigningRequestSpec) String() string { - if this == nil { - return "nil" - } - keysForExtra := make([]string, 0, len(this.Extra)) - for k := range this.Extra { - keysForExtra = append(keysForExtra, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForExtra) - mapStringForExtra := "map[string]ExtraValue{" - for _, k := range keysForExtra { - mapStringForExtra += fmt.Sprintf("%v: %v,", k, this.Extra[k]) - } - mapStringForExtra += "}" - s := strings.Join([]string{`&CertificateSigningRequestSpec{`, - `Request:` + valueToStringGenerated(this.Request) + `,`, - `Username:` + fmt.Sprintf("%v", this.Username) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `Groups:` + fmt.Sprintf("%v", this.Groups) + `,`, - `Usages:` + fmt.Sprintf("%v", this.Usages) + `,`, - `Extra:` + mapStringForExtra + `,`, - `}`, - }, "") - return s -} -func (this *CertificateSigningRequestStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]CertificateSigningRequestCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "CertificateSigningRequestCondition", "CertificateSigningRequestCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&CertificateSigningRequestStatus{`, - `Conditions:` + repeatedStringForConditions + `,`, - `Certificate:` + valueToStringGenerated(this.Certificate) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CertificateSigningRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CertificateSigningRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CertificateSigningRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CertificateSigningRequestCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CertificateSigningRequestCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CertificateSigningRequestCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = RequestConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CertificateSigningRequestList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CertificateSigningRequestList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CertificateSigningRequestList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, CertificateSigningRequest{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CertificateSigningRequestSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CertificateSigningRequestSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CertificateSigningRequestSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Request = append(m.Request[:0], dAtA[iNdEx:postIndex]...) - if m.Request == nil { - m.Request = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Usages", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Usages = append(m.Usages, KeyUsage(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Extra", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Extra == nil { - m.Extra = make(map[string]ExtraValue) - } - var mapkey string - mapvalue := &ExtraValue{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ExtraValue{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Extra[mapkey] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CertificateSigningRequestStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CertificateSigningRequestStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CertificateSigningRequestStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, CertificateSigningRequestCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Certificate", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Certificate = append(m.Certificate[:0], dAtA[iNdEx:postIndex]...) - if m.Certificate == nil { - m.Certificate = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExtraValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExtraValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExtraValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/certificates/v1beta1/generated.proto b/pseudo/k8s/api/certificates/v1beta1/generated.proto deleted file mode 100644 index 3f4743524..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/generated.proto +++ /dev/null @@ -1,121 +0,0 @@ -/* -Copyright 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.certificates.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// Describes a certificate signing request -message CertificateSigningRequest { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The certificate request itself and any additional information. - // +optional - optional CertificateSigningRequestSpec spec = 2; - - // Derived information about the request. - // +optional - optional CertificateSigningRequestStatus status = 3; -} - -message CertificateSigningRequestCondition { - // request approval state, currently Approved or Denied. - optional string type = 1; - - // brief reason for the request state - // +optional - optional string reason = 2; - - // human readable message with details about the request state - // +optional - optional string message = 3; - - // timestamp for the last update to this condition - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 4; -} - -message CertificateSigningRequestList { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - repeated CertificateSigningRequest items = 2; -} - -// This information is immutable after the request is created. Only the Request -// and Usages fields can be set on creation, other fields are derived by -// Kubernetes and cannot be modified by users. -message CertificateSigningRequestSpec { - // Base64-encoded PKCS#10 CSR data - optional bytes request = 1; - - // allowedUsages specifies a set of usage contexts the key will be - // valid for. - // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - // https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - repeated string usages = 5; - - // Information about the requesting user. - // See user.Info interface for details. - // +optional - optional string username = 2; - - // UID information about the requesting user. - // See user.Info interface for details. - // +optional - optional string uid = 3; - - // Group information about the requesting user. - // See user.Info interface for details. - // +optional - repeated string groups = 4; - - // Extra information about the requesting user. - // See user.Info interface for details. - // +optional - map extra = 6; -} - -message CertificateSigningRequestStatus { - // Conditions applied to the request, such as approval or denial. - // +optional - repeated CertificateSigningRequestCondition conditions = 1; - - // If request was approved, the controller will place the issued certificate here. - // +optional - optional bytes certificate = 2; -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -message ExtraValue { - // items, if empty, will result in an empty slice - - repeated string items = 1; -} - diff --git a/pseudo/k8s/api/certificates/v1beta1/register.go b/pseudo/k8s/api/certificates/v1beta1/register.go deleted file mode 100644 index ccb996d51..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/register.go +++ /dev/null @@ -1,59 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "certificates.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"} - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &CertificateSigningRequest{}, - &CertificateSigningRequestList{}, - ) - - // Add the watch version that applies - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/certificates/v1beta1/types.go b/pseudo/k8s/api/certificates/v1beta1/types.go deleted file mode 100644 index 39bcca250..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/types.go +++ /dev/null @@ -1,155 +0,0 @@ -/* -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 - -import ( - "fmt" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Describes a certificate signing request -type CertificateSigningRequest struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The certificate request itself and any additional information. - // +optional - Spec CertificateSigningRequestSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Derived information about the request. - // +optional - Status CertificateSigningRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// This information is immutable after the request is created. Only the Request -// and Usages fields can be set on creation, other fields are derived by -// Kubernetes and cannot be modified by users. -type CertificateSigningRequestSpec struct { - // Base64-encoded PKCS#10 CSR data - Request []byte `json:"request" protobuf:"bytes,1,opt,name=request"` - - // allowedUsages specifies a set of usage contexts the key will be - // valid for. - // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - // https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - Usages []KeyUsage `json:"usages,omitempty" protobuf:"bytes,5,opt,name=usages"` - - // Information about the requesting user. - // See user.Info interface for details. - // +optional - Username string `json:"username,omitempty" protobuf:"bytes,2,opt,name=username"` - // UID information about the requesting user. - // See user.Info interface for details. - // +optional - UID string `json:"uid,omitempty" protobuf:"bytes,3,opt,name=uid"` - // Group information about the requesting user. - // See user.Info interface for details. - // +optional - Groups []string `json:"groups,omitempty" protobuf:"bytes,4,rep,name=groups"` - // Extra information about the requesting user. - // See user.Info interface for details. - // +optional - Extra map[string]ExtraValue `json:"extra,omitempty" protobuf:"bytes,6,rep,name=extra"` -} - -// ExtraValue masks the value so protobuf can generate -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -type ExtraValue []string - -func (t ExtraValue) String() string { - return fmt.Sprintf("%v", []string(t)) -} - -type CertificateSigningRequestStatus struct { - // Conditions applied to the request, such as approval or denial. - // +optional - Conditions []CertificateSigningRequestCondition `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"` - - // If request was approved, the controller will place the issued certificate here. - // +optional - Certificate []byte `json:"certificate,omitempty" protobuf:"bytes,2,opt,name=certificate"` -} - -type RequestConditionType string - -// These are the possible conditions for a certificate request. -const ( - CertificateApproved RequestConditionType = "Approved" - CertificateDenied RequestConditionType = "Denied" -) - -type CertificateSigningRequestCondition struct { - // request approval state, currently Approved or Denied. - Type RequestConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RequestConditionType"` - // brief reason for the request state - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` - // human readable message with details about the request state - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - // timestamp for the last update to this condition - // +optional - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,4,opt,name=lastUpdateTime"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -type CertificateSigningRequestList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Items []CertificateSigningRequest `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// KeyUsages specifies valid usage contexts for keys. -// See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 -// https://tools.ietf.org/html/rfc5280#section-4.2.1.12 -type KeyUsage string - -const ( - UsageSigning KeyUsage = "signing" - UsageDigitalSignature KeyUsage = "digital signature" - UsageContentCommittment KeyUsage = "content commitment" - UsageKeyEncipherment KeyUsage = "key encipherment" - UsageKeyAgreement KeyUsage = "key agreement" - UsageDataEncipherment KeyUsage = "data encipherment" - UsageCertSign KeyUsage = "cert sign" - UsageCRLSign KeyUsage = "crl sign" - UsageEncipherOnly KeyUsage = "encipher only" - UsageDecipherOnly KeyUsage = "decipher only" - UsageAny KeyUsage = "any" - UsageServerAuth KeyUsage = "server auth" - UsageClientAuth KeyUsage = "client auth" - UsageCodeSigning KeyUsage = "code signing" - UsageEmailProtection KeyUsage = "email protection" - UsageSMIME KeyUsage = "s/mime" - UsageIPsecEndSystem KeyUsage = "ipsec end system" - UsageIPsecTunnel KeyUsage = "ipsec tunnel" - UsageIPsecUser KeyUsage = "ipsec user" - UsageTimestamping KeyUsage = "timestamping" - UsageOCSPSigning KeyUsage = "ocsp signing" - UsageMicrosoftSGC KeyUsage = "microsoft sgc" - UsageNetscapSGC KeyUsage = "netscape sgc" -) diff --git a/pseudo/k8s/api/certificates/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/certificates/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index f6a7e16ac..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_CertificateSigningRequest = map[string]string{ - "": "Describes a certificate signing request", - "spec": "The certificate request itself and any additional information.", - "status": "Derived information about the request.", -} - -func (CertificateSigningRequest) SwaggerDoc() map[string]string { - return map_CertificateSigningRequest -} - -var map_CertificateSigningRequestCondition = map[string]string{ - "type": "request approval state, currently Approved or Denied.", - "reason": "brief reason for the request state", - "message": "human readable message with details about the request state", - "lastUpdateTime": "timestamp for the last update to this condition", -} - -func (CertificateSigningRequestCondition) SwaggerDoc() map[string]string { - return map_CertificateSigningRequestCondition -} - -var map_CertificateSigningRequestSpec = map[string]string{ - "": "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.", - "request": "Base64-encoded PKCS#10 CSR data", - "usages": "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3\n https://tools.ietf.org/html/rfc5280#section-4.2.1.12", - "username": "Information about the requesting user. See user.Info interface for details.", - "uid": "UID information about the requesting user. See user.Info interface for details.", - "groups": "Group information about the requesting user. See user.Info interface for details.", - "extra": "Extra information about the requesting user. See user.Info interface for details.", -} - -func (CertificateSigningRequestSpec) SwaggerDoc() map[string]string { - return map_CertificateSigningRequestSpec -} - -var map_CertificateSigningRequestStatus = map[string]string{ - "conditions": "Conditions applied to the request, such as approval or denial.", - "certificate": "If request was approved, the controller will place the issued certificate here.", -} - -func (CertificateSigningRequestStatus) SwaggerDoc() map[string]string { - return map_CertificateSigningRequestStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/certificates/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/certificates/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index a7a16eb7a..000000000 --- a/pseudo/k8s/api/certificates/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,197 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CertificateSigningRequest) DeepCopyInto(out *CertificateSigningRequest) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequest. -func (in *CertificateSigningRequest) DeepCopy() *CertificateSigningRequest { - if in == nil { - return nil - } - out := new(CertificateSigningRequest) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CertificateSigningRequest) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CertificateSigningRequestCondition) DeepCopyInto(out *CertificateSigningRequestCondition) { - *out = *in - in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestCondition. -func (in *CertificateSigningRequestCondition) DeepCopy() *CertificateSigningRequestCondition { - if in == nil { - return nil - } - out := new(CertificateSigningRequestCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CertificateSigningRequestList) DeepCopyInto(out *CertificateSigningRequestList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CertificateSigningRequest, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestList. -func (in *CertificateSigningRequestList) DeepCopy() *CertificateSigningRequestList { - if in == nil { - return nil - } - out := new(CertificateSigningRequestList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CertificateSigningRequestList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CertificateSigningRequestSpec) DeepCopyInto(out *CertificateSigningRequestSpec) { - *out = *in - if in.Request != nil { - in, out := &in.Request, &out.Request - *out = make([]byte, len(*in)) - copy(*out, *in) - } - if in.Usages != nil { - in, out := &in.Usages, &out.Usages - *out = make([]KeyUsage, len(*in)) - copy(*out, *in) - } - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Extra != nil { - in, out := &in.Extra, &out.Extra - *out = make(map[string]ExtraValue, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec. -func (in *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec { - if in == nil { - return nil - } - out := new(CertificateSigningRequestSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]CertificateSigningRequestCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Certificate != nil { - in, out := &in.Certificate, &out.Certificate - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus. -func (in *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus { - if in == nil { - return nil - } - out := new(CertificateSigningRequestStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ExtraValue) DeepCopyInto(out *ExtraValue) { - { - in := &in - *out = make(ExtraValue, len(*in)) - copy(*out, *in) - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraValue. -func (in ExtraValue) DeepCopy() ExtraValue { - if in == nil { - return nil - } - out := new(ExtraValue) - in.DeepCopyInto(out) - return *out -} diff --git a/pseudo/k8s/api/code-of-conduct.md b/pseudo/k8s/api/code-of-conduct.md deleted file mode 100644 index 0d15c00cf..000000000 --- a/pseudo/k8s/api/code-of-conduct.md +++ /dev/null @@ -1,3 +0,0 @@ -# Kubernetes Community Code of Conduct - -Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) diff --git a/pseudo/k8s/api/coordination/v1/doc.go b/pseudo/k8s/api/coordination/v1/doc.go deleted file mode 100644 index 01a7d34d4..000000000 --- a/pseudo/k8s/api/coordination/v1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=coordination.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1" diff --git a/pseudo/k8s/api/coordination/v1/generated.pb.go b/pseudo/k8s/api/coordination/v1/generated.pb.go deleted file mode 100644 index d3d3d6940..000000000 --- a/pseudo/k8s/api/coordination/v1/generated.pb.go +++ /dev/null @@ -1,1002 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Lease) Reset() { *m = Lease{} } -func (*Lease) ProtoMessage() {} -func (*Lease) Descriptor() ([]byte, []int) { - return fileDescriptor_929e1148ad9baca3, []int{0} -} -func (m *Lease) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Lease) XXX_Merge(src proto.Message) { - xxx_messageInfo_Lease.Merge(m, src) -} -func (m *Lease) XXX_Size() int { - return m.Size() -} -func (m *Lease) XXX_DiscardUnknown() { - xxx_messageInfo_Lease.DiscardUnknown(m) -} - -var xxx_messageInfo_Lease proto.InternalMessageInfo - -func (m *LeaseList) Reset() { *m = LeaseList{} } -func (*LeaseList) ProtoMessage() {} -func (*LeaseList) Descriptor() ([]byte, []int) { - return fileDescriptor_929e1148ad9baca3, []int{1} -} -func (m *LeaseList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LeaseList) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseList.Merge(m, src) -} -func (m *LeaseList) XXX_Size() int { - return m.Size() -} -func (m *LeaseList) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseList.DiscardUnknown(m) -} - -var xxx_messageInfo_LeaseList proto.InternalMessageInfo - -func (m *LeaseSpec) Reset() { *m = LeaseSpec{} } -func (*LeaseSpec) ProtoMessage() {} -func (*LeaseSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_929e1148ad9baca3, []int{2} -} -func (m *LeaseSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaseSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LeaseSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseSpec.Merge(m, src) -} -func (m *LeaseSpec) XXX_Size() int { - return m.Size() -} -func (m *LeaseSpec) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_LeaseSpec proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Lease)(nil), "k8s.io.api.coordination.v1.Lease") - proto.RegisterType((*LeaseList)(nil), "k8s.io.api.coordination.v1.LeaseList") - proto.RegisterType((*LeaseSpec)(nil), "k8s.io.api.coordination.v1.LeaseSpec") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1/generated.proto", fileDescriptor_929e1148ad9baca3) -} - -var fileDescriptor_929e1148ad9baca3 = []byte{ - // 535 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xe3, 0x36, 0x91, 0x9a, 0x0d, 0x2d, 0x91, 0x95, 0x83, 0x95, 0x83, 0x5d, 0x22, 0x21, - 0xe5, 0xc2, 0x2e, 0xa9, 0x10, 0x42, 0x9c, 0xc0, 0x20, 0xa0, 0x52, 0x2a, 0x24, 0xb7, 0x27, 0xd4, - 0x03, 0x1b, 0x7b, 0x70, 0x96, 0xd4, 0x5e, 0xb3, 0xbb, 0x0e, 0xea, 0x8d, 0x47, 0xe0, 0xca, 0x63, - 0xc0, 0x53, 0xe4, 0xd8, 0x63, 0x4f, 0x16, 0x31, 0x2f, 0x82, 0x76, 0x93, 0x36, 0x21, 0x49, 0xd5, - 0x8a, 0xdb, 0xee, 0xcc, 0xfc, 0xdf, 0xfc, 0xf3, 0xa3, 0x57, 0xa3, 0x67, 0x12, 0x33, 0x4e, 0x46, - 0xf9, 0x00, 0x44, 0x0a, 0x0a, 0x24, 0x19, 0x43, 0x1a, 0x71, 0x41, 0xe6, 0x0d, 0x9a, 0x31, 0x12, - 0x72, 0x2e, 0x22, 0x96, 0x52, 0xc5, 0x78, 0x4a, 0xc6, 0x3d, 0x12, 0x43, 0x0a, 0x82, 0x2a, 0x88, - 0x70, 0x26, 0xb8, 0xe2, 0x76, 0x7b, 0x36, 0x8b, 0x69, 0xc6, 0xf0, 0xf2, 0x2c, 0x1e, 0xf7, 0xda, - 0x8f, 0x62, 0xa6, 0x86, 0xf9, 0x00, 0x87, 0x3c, 0x21, 0x31, 0x8f, 0x39, 0x31, 0x92, 0x41, 0xfe, - 0xc9, 0xfc, 0xcc, 0xc7, 0xbc, 0x66, 0xa8, 0xf6, 0x93, 0xc5, 0xda, 0x84, 0x86, 0x43, 0x96, 0x82, - 0x38, 0x27, 0xd9, 0x28, 0xd6, 0x05, 0x49, 0x12, 0x50, 0x74, 0x83, 0x81, 0x36, 0xb9, 0x49, 0x25, - 0xf2, 0x54, 0xb1, 0x04, 0xd6, 0x04, 0x4f, 0x6f, 0x13, 0xc8, 0x70, 0x08, 0x09, 0x5d, 0xd5, 0x75, - 0x7e, 0x59, 0xa8, 0xd6, 0x07, 0x2a, 0xc1, 0xfe, 0x88, 0x76, 0xb4, 0x9b, 0x88, 0x2a, 0xea, 0x58, - 0xfb, 0x56, 0xb7, 0x71, 0xf0, 0x18, 0x2f, 0x62, 0xb8, 0x86, 0xe2, 0x6c, 0x14, 0xeb, 0x82, 0xc4, - 0x7a, 0x1a, 0x8f, 0x7b, 0xf8, 0xfd, 0xe0, 0x33, 0x84, 0xea, 0x08, 0x14, 0xf5, 0xed, 0x49, 0xe1, - 0x55, 0xca, 0xc2, 0x43, 0x8b, 0x5a, 0x70, 0x4d, 0xb5, 0xdf, 0xa2, 0xaa, 0xcc, 0x20, 0x74, 0xb6, - 0x0c, 0xfd, 0x21, 0xbe, 0x39, 0x64, 0x6c, 0x2c, 0x1d, 0x67, 0x10, 0xfa, 0xf7, 0xe6, 0xc8, 0xaa, - 0xfe, 0x05, 0x06, 0xd0, 0xf9, 0x69, 0xa1, 0xba, 0x99, 0xe8, 0x33, 0xa9, 0xec, 0xd3, 0x35, 0xe3, - 0xf8, 0x6e, 0xc6, 0xb5, 0xda, 0xd8, 0x6e, 0xce, 0x77, 0xec, 0x5c, 0x55, 0x96, 0x4c, 0xbf, 0x41, - 0x35, 0xa6, 0x20, 0x91, 0xce, 0xd6, 0xfe, 0x76, 0xb7, 0x71, 0xf0, 0xe0, 0x56, 0xd7, 0xfe, 0xee, - 0x9c, 0x56, 0x3b, 0xd4, 0xba, 0x60, 0x26, 0xef, 0xfc, 0xd8, 0x9e, 0x7b, 0xd6, 0x77, 0xd8, 0xcf, - 0xd1, 0xde, 0x90, 0x9f, 0x45, 0x20, 0x0e, 0x23, 0x48, 0x15, 0x53, 0xe7, 0xc6, 0x79, 0xdd, 0xb7, - 0xcb, 0xc2, 0xdb, 0x7b, 0xf7, 0x4f, 0x27, 0x58, 0x99, 0xb4, 0xfb, 0xa8, 0x75, 0xa6, 0x41, 0xaf, - 0x73, 0x61, 0x36, 0x1f, 0x43, 0xc8, 0xd3, 0x48, 0x9a, 0x58, 0x6b, 0xbe, 0x53, 0x16, 0x5e, 0xab, - 0xbf, 0xa1, 0x1f, 0x6c, 0x54, 0xd9, 0x03, 0xd4, 0xa0, 0xe1, 0x97, 0x9c, 0x09, 0x38, 0x61, 0x09, - 0x38, 0xdb, 0x26, 0x40, 0x72, 0xb7, 0x00, 0x8f, 0x58, 0x28, 0xb8, 0x96, 0xf9, 0xf7, 0xcb, 0xc2, - 0x6b, 0xbc, 0x5c, 0x70, 0x82, 0x65, 0xa8, 0x7d, 0x8a, 0xea, 0x02, 0x52, 0xf8, 0x6a, 0x36, 0x54, - 0xff, 0x6f, 0xc3, 0x6e, 0x59, 0x78, 0xf5, 0xe0, 0x8a, 0x12, 0x2c, 0x80, 0xf6, 0x0b, 0xd4, 0x34, - 0x97, 0x9d, 0x08, 0x9a, 0x4a, 0xa6, 0x6f, 0x93, 0x4e, 0xcd, 0x64, 0xd1, 0x2a, 0x0b, 0xaf, 0xd9, - 0x5f, 0xe9, 0x05, 0x6b, 0xd3, 0x7e, 0x77, 0x32, 0x75, 0x2b, 0x17, 0x53, 0xb7, 0x72, 0x39, 0x75, - 0x2b, 0xdf, 0x4a, 0xd7, 0x9a, 0x94, 0xae, 0x75, 0x51, 0xba, 0xd6, 0x65, 0xe9, 0x5a, 0xbf, 0x4b, - 0xd7, 0xfa, 0xfe, 0xc7, 0xad, 0x7c, 0xd8, 0x1a, 0xf7, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x41, - 0x5e, 0x94, 0x96, 0x5e, 0x04, 0x00, 0x00, -} - -func (m *Lease) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Lease) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LeaseList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LeaseList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaseList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LeaseSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LeaseSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaseSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LeaseTransitions != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseTransitions)) - i-- - dAtA[i] = 0x28 - } - if m.RenewTime != nil { - { - size, err := m.RenewTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.AcquireTime != nil { - { - size, err := m.AcquireTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.LeaseDurationSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseDurationSeconds)) - i-- - dAtA[i] = 0x10 - } - if m.HolderIdentity != nil { - i -= len(*m.HolderIdentity) - copy(dAtA[i:], *m.HolderIdentity) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HolderIdentity))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Lease) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LeaseList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LeaseSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HolderIdentity != nil { - l = len(*m.HolderIdentity) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.LeaseDurationSeconds != nil { - n += 1 + sovGenerated(uint64(*m.LeaseDurationSeconds)) - } - if m.AcquireTime != nil { - l = m.AcquireTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RenewTime != nil { - l = m.RenewTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.LeaseTransitions != nil { - n += 1 + sovGenerated(uint64(*m.LeaseTransitions)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Lease) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Lease{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LeaseSpec", "LeaseSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *LeaseList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Lease{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Lease", "Lease", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&LeaseList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *LeaseSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LeaseSpec{`, - `HolderIdentity:` + valueToStringGenerated(this.HolderIdentity) + `,`, - `LeaseDurationSeconds:` + valueToStringGenerated(this.LeaseDurationSeconds) + `,`, - `AcquireTime:` + strings.Replace(fmt.Sprintf("%v", this.AcquireTime), "MicroTime", "v1.MicroTime", 1) + `,`, - `RenewTime:` + strings.Replace(fmt.Sprintf("%v", this.RenewTime), "MicroTime", "v1.MicroTime", 1) + `,`, - `LeaseTransitions:` + valueToStringGenerated(this.LeaseTransitions) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Lease) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Lease: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Lease{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HolderIdentity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.HolderIdentity = &s - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseDurationSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LeaseDurationSeconds = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AcquireTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AcquireTime == nil { - m.AcquireTime = &v1.MicroTime{} - } - if err := m.AcquireTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RenewTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RenewTime == nil { - m.RenewTime = &v1.MicroTime{} - } - if err := m.RenewTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseTransitions", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LeaseTransitions = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/coordination/v1/generated.proto b/pseudo/k8s/api/coordination/v1/generated.proto deleted file mode 100644 index 49d11e866..000000000 --- a/pseudo/k8s/api/coordination/v1/generated.proto +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 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.coordination.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// Lease defines a lease concept. -message Lease { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the Lease. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional LeaseSpec spec = 2; -} - -// LeaseList is a list of Lease objects. -message LeaseList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated Lease items = 2; -} - -// LeaseSpec is a specification of a Lease. -message LeaseSpec { - // holderIdentity contains the identity of the holder of a current lease. - // +optional - optional string holderIdentity = 1; - - // leaseDurationSeconds is a duration that candidates for a lease need - // to wait to force acquire it. This is measure against time of last - // observed RenewTime. - // +optional - optional int32 leaseDurationSeconds = 2; - - // acquireTime is a time when the current lease was acquired. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; - - // renewTime is a time when the current holder of a lease has last - // updated the lease. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; - - // leaseTransitions is the number of transitions of a lease between - // holders. - // +optional - optional int32 leaseTransitions = 5; -} - diff --git a/pseudo/k8s/api/coordination/v1/register.go b/pseudo/k8s/api/coordination/v1/register.go deleted file mode 100644 index aeda1d6a2..000000000 --- a/pseudo/k8s/api/coordination/v1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "coordination.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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, - &Lease{}, - &LeaseList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/coordination/v1/types.go b/pseudo/k8s/api/coordination/v1/types.go deleted file mode 100644 index 6ec74c5fb..000000000 --- a/pseudo/k8s/api/coordination/v1/types.go +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Lease defines a lease concept. -type Lease struct { - metav1.TypeMeta `json:",inline"` - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the Lease. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// LeaseSpec is a specification of a Lease. -type LeaseSpec struct { - // holderIdentity contains the identity of the holder of a current lease. - // +optional - HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=holderIdentity"` - // leaseDurationSeconds is a duration that candidates for a lease need - // to wait to force acquire it. This is measure against time of last - // observed RenewTime. - // +optional - LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"` - // acquireTime is a time when the current lease was acquired. - // +optional - AcquireTime *metav1.MicroTime `json:"acquireTime,omitempty" protobuf:"bytes,3,opt,name=acquireTime"` - // renewTime is a time when the current holder of a lease has last - // updated the lease. - // +optional - RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,4,opt,name=renewTime"` - // leaseTransitions is the number of transitions of a lease between - // holders. - // +optional - LeaseTransitions *int32 `json:"leaseTransitions,omitempty" protobuf:"varint,5,opt,name=leaseTransitions"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// LeaseList is a list of Lease objects. -type LeaseList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/coordination/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/coordination/v1/types_swagger_doc_generated.go deleted file mode 100644 index 0f1440430..000000000 --- a/pseudo/k8s/api/coordination/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_Lease = map[string]string{ - "": "Lease defines a lease concept.", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Lease) SwaggerDoc() map[string]string { - return map_Lease -} - -var map_LeaseList = map[string]string{ - "": "LeaseList is a list of Lease objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (LeaseList) SwaggerDoc() map[string]string { - return map_LeaseList -} - -var map_LeaseSpec = map[string]string{ - "": "LeaseSpec is a specification of a Lease.", - "holderIdentity": "holderIdentity contains the identity of the holder of a current lease.", - "leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", - "acquireTime": "acquireTime is a time when the current lease was acquired.", - "renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.", - "leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.", -} - -func (LeaseSpec) SwaggerDoc() map[string]string { - return map_LeaseSpec -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/coordination/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/coordination/v1/zz_generated.deepcopy.go deleted file mode 100644 index 4f7f4da75..000000000 --- a/pseudo/k8s/api/coordination/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,124 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Lease) DeepCopyInto(out *Lease) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease. -func (in *Lease) DeepCopy() *Lease { - if in == nil { - return nil - } - out := new(Lease) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Lease) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LeaseList) DeepCopyInto(out *LeaseList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Lease, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList. -func (in *LeaseList) DeepCopy() *LeaseList { - if in == nil { - return nil - } - out := new(LeaseList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LeaseList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec) { - *out = *in - if in.HolderIdentity != nil { - in, out := &in.HolderIdentity, &out.HolderIdentity - *out = new(string) - **out = **in - } - if in.LeaseDurationSeconds != nil { - in, out := &in.LeaseDurationSeconds, &out.LeaseDurationSeconds - *out = new(int32) - **out = **in - } - if in.AcquireTime != nil { - in, out := &in.AcquireTime, &out.AcquireTime - *out = (*in).DeepCopy() - } - if in.RenewTime != nil { - in, out := &in.RenewTime, &out.RenewTime - *out = (*in).DeepCopy() - } - if in.LeaseTransitions != nil { - in, out := &in.LeaseTransitions, &out.LeaseTransitions - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec. -func (in *LeaseSpec) DeepCopy() *LeaseSpec { - if in == nil { - return nil - } - out := new(LeaseSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/coordination/v1beta1/doc.go b/pseudo/k8s/api/coordination/v1beta1/doc.go deleted file mode 100644 index d140cbe61..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=coordination.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1beta1" diff --git a/pseudo/k8s/api/coordination/v1beta1/generated.pb.go b/pseudo/k8s/api/coordination/v1beta1/generated.pb.go deleted file mode 100644 index d52fe5def..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/generated.pb.go +++ /dev/null @@ -1,1002 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Lease) Reset() { *m = Lease{} } -func (*Lease) ProtoMessage() {} -func (*Lease) Descriptor() ([]byte, []int) { - return fileDescriptor_daca6bcd2ff63a80, []int{0} -} -func (m *Lease) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Lease) XXX_Merge(src proto.Message) { - xxx_messageInfo_Lease.Merge(m, src) -} -func (m *Lease) XXX_Size() int { - return m.Size() -} -func (m *Lease) XXX_DiscardUnknown() { - xxx_messageInfo_Lease.DiscardUnknown(m) -} - -var xxx_messageInfo_Lease proto.InternalMessageInfo - -func (m *LeaseList) Reset() { *m = LeaseList{} } -func (*LeaseList) ProtoMessage() {} -func (*LeaseList) Descriptor() ([]byte, []int) { - return fileDescriptor_daca6bcd2ff63a80, []int{1} -} -func (m *LeaseList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LeaseList) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseList.Merge(m, src) -} -func (m *LeaseList) XXX_Size() int { - return m.Size() -} -func (m *LeaseList) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseList.DiscardUnknown(m) -} - -var xxx_messageInfo_LeaseList proto.InternalMessageInfo - -func (m *LeaseSpec) Reset() { *m = LeaseSpec{} } -func (*LeaseSpec) ProtoMessage() {} -func (*LeaseSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_daca6bcd2ff63a80, []int{2} -} -func (m *LeaseSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LeaseSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LeaseSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_LeaseSpec.Merge(m, src) -} -func (m *LeaseSpec) XXX_Size() int { - return m.Size() -} -func (m *LeaseSpec) XXX_DiscardUnknown() { - xxx_messageInfo_LeaseSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_LeaseSpec proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Lease)(nil), "k8s.io.api.coordination.v1beta1.Lease") - proto.RegisterType((*LeaseList)(nil), "k8s.io.api.coordination.v1beta1.LeaseList") - proto.RegisterType((*LeaseSpec)(nil), "k8s.io.api.coordination.v1beta1.LeaseSpec") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1beta1/generated.proto", fileDescriptor_daca6bcd2ff63a80) -} - -var fileDescriptor_daca6bcd2ff63a80 = []byte{ - // 540 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xe3, 0xb6, 0x11, 0xcd, 0x86, 0x96, 0xc8, 0xca, 0xc1, 0xca, 0xc1, 0xae, 0x72, 0x40, - 0x15, 0x52, 0x77, 0x49, 0x85, 0x10, 0xe2, 0x04, 0x16, 0x87, 0x56, 0xb8, 0x42, 0x72, 0x7b, 0x42, - 0x3d, 0xb0, 0xb6, 0x07, 0x67, 0x49, 0xed, 0x35, 0xbb, 0xeb, 0xa0, 0xde, 0x78, 0x04, 0xae, 0xbc, - 0x08, 0xbc, 0x42, 0x8e, 0x3d, 0xf6, 0x64, 0x11, 0xf3, 0x22, 0xc8, 0x1b, 0xb7, 0x09, 0x49, 0x51, - 0x23, 0x6e, 0xde, 0x99, 0xf9, 0xbf, 0xf9, 0xe7, 0x37, 0x3a, 0x1a, 0xbd, 0x90, 0x98, 0x71, 0x32, - 0xca, 0x03, 0x10, 0x29, 0x28, 0x90, 0x64, 0x0c, 0x69, 0xc4, 0x05, 0xa9, 0x1b, 0x34, 0x63, 0x24, - 0xe4, 0x5c, 0x44, 0x2c, 0xa5, 0x8a, 0xf1, 0x94, 0x8c, 0x07, 0x01, 0x28, 0x3a, 0x20, 0x31, 0xa4, - 0x20, 0xa8, 0x82, 0x08, 0x67, 0x82, 0x2b, 0x6e, 0x3a, 0x33, 0x01, 0xa6, 0x19, 0xc3, 0x8b, 0x02, - 0x5c, 0x0b, 0x7a, 0x07, 0x31, 0x53, 0xc3, 0x3c, 0xc0, 0x21, 0x4f, 0x48, 0xcc, 0x63, 0x4e, 0xb4, - 0x2e, 0xc8, 0x3f, 0xea, 0x97, 0x7e, 0xe8, 0xaf, 0x19, 0xaf, 0xf7, 0x6c, 0x6e, 0x20, 0xa1, 0xe1, - 0x90, 0xa5, 0x20, 0x2e, 0x49, 0x36, 0x8a, 0xab, 0x82, 0x24, 0x09, 0x28, 0x4a, 0xc6, 0x2b, 0x2e, - 0x7a, 0xe4, 0x5f, 0x2a, 0x91, 0xa7, 0x8a, 0x25, 0xb0, 0x22, 0x78, 0x7e, 0x9f, 0x40, 0x86, 0x43, - 0x48, 0xe8, 0xb2, 0xae, 0xff, 0xd3, 0x40, 0x4d, 0x0f, 0xa8, 0x04, 0xf3, 0x03, 0xda, 0xae, 0xdc, - 0x44, 0x54, 0x51, 0xcb, 0xd8, 0x33, 0xf6, 0xdb, 0x87, 0x4f, 0xf1, 0x3c, 0x8b, 0x5b, 0x28, 0xce, - 0x46, 0x71, 0x55, 0x90, 0xb8, 0x9a, 0xc6, 0xe3, 0x01, 0x7e, 0x17, 0x7c, 0x82, 0x50, 0x9d, 0x80, - 0xa2, 0xae, 0x39, 0x29, 0x9c, 0x46, 0x59, 0x38, 0x68, 0x5e, 0xf3, 0x6f, 0xa9, 0xa6, 0x87, 0xb6, - 0x64, 0x06, 0xa1, 0xb5, 0xa1, 0xe9, 0x4f, 0xf0, 0x3d, 0x49, 0x63, 0xed, 0xeb, 0x34, 0x83, 0xd0, - 0x7d, 0x58, 0x73, 0xb7, 0xaa, 0x97, 0xaf, 0x29, 0xfd, 0x1f, 0x06, 0x6a, 0xe9, 0x09, 0x8f, 0x49, - 0x65, 0x9e, 0xaf, 0xb8, 0xc7, 0xeb, 0xb9, 0xaf, 0xd4, 0xda, 0x7b, 0xa7, 0xde, 0xb1, 0x7d, 0x53, - 0x59, 0x70, 0xfe, 0x16, 0x35, 0x99, 0x82, 0x44, 0x5a, 0x1b, 0x7b, 0x9b, 0xfb, 0xed, 0xc3, 0xc7, - 0xeb, 0x59, 0x77, 0x77, 0x6a, 0x64, 0xf3, 0xb8, 0x12, 0xfb, 0x33, 0x46, 0xff, 0xfb, 0x66, 0x6d, - 0xbc, 0x3a, 0xc6, 0x7c, 0x89, 0x76, 0x87, 0xfc, 0x22, 0x02, 0x71, 0x1c, 0x41, 0xaa, 0x98, 0xba, - 0xd4, 0xf6, 0x5b, 0xae, 0x59, 0x16, 0xce, 0xee, 0xd1, 0x5f, 0x1d, 0x7f, 0x69, 0xd2, 0xf4, 0x50, - 0xf7, 0xa2, 0x02, 0xbd, 0xc9, 0x85, 0x5e, 0x7f, 0x0a, 0x21, 0x4f, 0x23, 0xa9, 0x03, 0x6e, 0xba, - 0x56, 0x59, 0x38, 0x5d, 0xef, 0x8e, 0xbe, 0x7f, 0xa7, 0xca, 0x0c, 0x50, 0x9b, 0x86, 0x9f, 0x73, - 0x26, 0xe0, 0x8c, 0x25, 0x60, 0x6d, 0xea, 0x14, 0xc9, 0x7a, 0x29, 0x9e, 0xb0, 0x50, 0xf0, 0x4a, - 0xe6, 0x3e, 0x2a, 0x0b, 0xa7, 0xfd, 0x7a, 0xce, 0xf1, 0x17, 0xa1, 0xe6, 0x39, 0x6a, 0x09, 0x48, - 0xe1, 0x8b, 0xde, 0xb0, 0xf5, 0x7f, 0x1b, 0x76, 0xca, 0xc2, 0x69, 0xf9, 0x37, 0x14, 0x7f, 0x0e, - 0x34, 0x5f, 0xa1, 0x8e, 0xbe, 0xec, 0x4c, 0xd0, 0x54, 0xb2, 0xea, 0x36, 0x69, 0x35, 0x75, 0x16, - 0xdd, 0xb2, 0x70, 0x3a, 0xde, 0x52, 0xcf, 0x5f, 0x99, 0x76, 0x0f, 0x26, 0x53, 0xbb, 0x71, 0x35, - 0xb5, 0x1b, 0xd7, 0x53, 0xbb, 0xf1, 0xb5, 0xb4, 0x8d, 0x49, 0x69, 0x1b, 0x57, 0xa5, 0x6d, 0x5c, - 0x97, 0xb6, 0xf1, 0xab, 0xb4, 0x8d, 0x6f, 0xbf, 0xed, 0xc6, 0xfb, 0x07, 0xf5, 0x6f, 0xfe, 0x13, - 0x00, 0x00, 0xff, 0xff, 0x51, 0x34, 0x6a, 0x0f, 0x77, 0x04, 0x00, 0x00, -} - -func (m *Lease) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Lease) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LeaseList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LeaseList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaseList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LeaseSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LeaseSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LeaseSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LeaseTransitions != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseTransitions)) - i-- - dAtA[i] = 0x28 - } - if m.RenewTime != nil { - { - size, err := m.RenewTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.AcquireTime != nil { - { - size, err := m.AcquireTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.LeaseDurationSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseDurationSeconds)) - i-- - dAtA[i] = 0x10 - } - if m.HolderIdentity != nil { - i -= len(*m.HolderIdentity) - copy(dAtA[i:], *m.HolderIdentity) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HolderIdentity))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Lease) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LeaseList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LeaseSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HolderIdentity != nil { - l = len(*m.HolderIdentity) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.LeaseDurationSeconds != nil { - n += 1 + sovGenerated(uint64(*m.LeaseDurationSeconds)) - } - if m.AcquireTime != nil { - l = m.AcquireTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RenewTime != nil { - l = m.RenewTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.LeaseTransitions != nil { - n += 1 + sovGenerated(uint64(*m.LeaseTransitions)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Lease) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Lease{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LeaseSpec", "LeaseSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *LeaseList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Lease{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Lease", "Lease", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&LeaseList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *LeaseSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LeaseSpec{`, - `HolderIdentity:` + valueToStringGenerated(this.HolderIdentity) + `,`, - `LeaseDurationSeconds:` + valueToStringGenerated(this.LeaseDurationSeconds) + `,`, - `AcquireTime:` + strings.Replace(fmt.Sprintf("%v", this.AcquireTime), "MicroTime", "v1.MicroTime", 1) + `,`, - `RenewTime:` + strings.Replace(fmt.Sprintf("%v", this.RenewTime), "MicroTime", "v1.MicroTime", 1) + `,`, - `LeaseTransitions:` + valueToStringGenerated(this.LeaseTransitions) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Lease) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Lease: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Lease{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LeaseSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LeaseSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LeaseSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HolderIdentity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.HolderIdentity = &s - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseDurationSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LeaseDurationSeconds = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AcquireTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AcquireTime == nil { - m.AcquireTime = &v1.MicroTime{} - } - if err := m.AcquireTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RenewTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RenewTime == nil { - m.RenewTime = &v1.MicroTime{} - } - if err := m.RenewTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeaseTransitions", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LeaseTransitions = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/coordination/v1beta1/generated.proto b/pseudo/k8s/api/coordination/v1beta1/generated.proto deleted file mode 100644 index 905a47d5d..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/generated.proto +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 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.coordination.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// Lease defines a lease concept. -message Lease { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the Lease. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional LeaseSpec spec = 2; -} - -// LeaseList is a list of Lease objects. -message LeaseList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated Lease items = 2; -} - -// LeaseSpec is a specification of a Lease. -message LeaseSpec { - // holderIdentity contains the identity of the holder of a current lease. - // +optional - optional string holderIdentity = 1; - - // leaseDurationSeconds is a duration that candidates for a lease need - // to wait to force acquire it. This is measure against time of last - // observed RenewTime. - // +optional - optional int32 leaseDurationSeconds = 2; - - // acquireTime is a time when the current lease was acquired. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; - - // renewTime is a time when the current holder of a lease has last - // updated the lease. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; - - // leaseTransitions is the number of transitions of a lease between - // holders. - // +optional - optional int32 leaseTransitions = 5; -} - diff --git a/pseudo/k8s/api/coordination/v1beta1/register.go b/pseudo/k8s/api/coordination/v1beta1/register.go deleted file mode 100644 index ab8c09a36..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "coordination.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 sigs.k8s.io/kustomize/pseudo/k8s/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, - &Lease{}, - &LeaseList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/coordination/v1beta1/types.go b/pseudo/k8s/api/coordination/v1beta1/types.go deleted file mode 100644 index ffe9677c1..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/types.go +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Lease defines a lease concept. -type Lease struct { - metav1.TypeMeta `json:",inline"` - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the Lease. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// LeaseSpec is a specification of a Lease. -type LeaseSpec struct { - // holderIdentity contains the identity of the holder of a current lease. - // +optional - HolderIdentity *string `json:"holderIdentity,omitempty" protobuf:"bytes,1,opt,name=holderIdentity"` - // leaseDurationSeconds is a duration that candidates for a lease need - // to wait to force acquire it. This is measure against time of last - // observed RenewTime. - // +optional - LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty" protobuf:"varint,2,opt,name=leaseDurationSeconds"` - // acquireTime is a time when the current lease was acquired. - // +optional - AcquireTime *metav1.MicroTime `json:"acquireTime,omitempty" protobuf:"bytes,3,opt,name=acquireTime"` - // renewTime is a time when the current holder of a lease has last - // updated the lease. - // +optional - RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,4,opt,name=renewTime"` - // leaseTransitions is the number of transitions of a lease between - // holders. - // +optional - LeaseTransitions *int32 `json:"leaseTransitions,omitempty" protobuf:"varint,5,opt,name=leaseTransitions"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// LeaseList is a list of Lease objects. -type LeaseList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/coordination/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/coordination/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index f557d265d..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_Lease = map[string]string{ - "": "Lease defines a lease concept.", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Lease) SwaggerDoc() map[string]string { - return map_Lease -} - -var map_LeaseList = map[string]string{ - "": "LeaseList is a list of Lease objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (LeaseList) SwaggerDoc() map[string]string { - return map_LeaseList -} - -var map_LeaseSpec = map[string]string{ - "": "LeaseSpec is a specification of a Lease.", - "holderIdentity": "holderIdentity contains the identity of the holder of a current lease.", - "leaseDurationSeconds": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.", - "acquireTime": "acquireTime is a time when the current lease was acquired.", - "renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.", - "leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.", -} - -func (LeaseSpec) SwaggerDoc() map[string]string { - return map_LeaseSpec -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/coordination/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/coordination/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 5fddd6351..000000000 --- a/pseudo/k8s/api/coordination/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,124 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Lease) DeepCopyInto(out *Lease) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lease. -func (in *Lease) DeepCopy() *Lease { - if in == nil { - return nil - } - out := new(Lease) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Lease) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LeaseList) DeepCopyInto(out *LeaseList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Lease, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseList. -func (in *LeaseList) DeepCopy() *LeaseList { - if in == nil { - return nil - } - out := new(LeaseList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LeaseList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LeaseSpec) DeepCopyInto(out *LeaseSpec) { - *out = *in - if in.HolderIdentity != nil { - in, out := &in.HolderIdentity, &out.HolderIdentity - *out = new(string) - **out = **in - } - if in.LeaseDurationSeconds != nil { - in, out := &in.LeaseDurationSeconds, &out.LeaseDurationSeconds - *out = new(int32) - **out = **in - } - if in.AcquireTime != nil { - in, out := &in.AcquireTime, &out.AcquireTime - *out = (*in).DeepCopy() - } - if in.RenewTime != nil { - in, out := &in.RenewTime, &out.RenewTime - *out = (*in).DeepCopy() - } - if in.LeaseTransitions != nil { - in, out := &in.LeaseTransitions, &out.LeaseTransitions - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseSpec. -func (in *LeaseSpec) DeepCopy() *LeaseSpec { - if in == nil { - return nil - } - out := new(LeaseSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/core/v1/annotation_key_constants.go b/pseudo/k8s/api/core/v1/annotation_key_constants.go deleted file mode 100644 index edc9b4d60..000000000 --- a/pseudo/k8s/api/core/v1/annotation_key_constants.go +++ /dev/null @@ -1,106 +0,0 @@ -/* -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 should be consistent with pkg/api/annotation_key_constants.go. - -package v1 - -const ( - // ImagePolicyFailedOpenKey is added to pods created by failing open when the image policy - // webhook backend fails. - ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open" - - // PodPresetOptOutAnnotationKey represents the annotation key for a pod to exempt itself from pod preset manipulation - PodPresetOptOutAnnotationKey string = "podpreset.admission.kubernetes.io/exclude" - - // MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods - MirrorPodAnnotationKey string = "kubernetes.io/config.mirror" - - // TolerationsAnnotationKey represents the key of tolerations data (json serialized) - // in the Annotations of a Pod. - TolerationsAnnotationKey string = "scheduler.alpha.kubernetes.io/tolerations" - - // TaintsAnnotationKey represents the key of taints data (json serialized) - // in the Annotations of a Node. - TaintsAnnotationKey string = "scheduler.alpha.kubernetes.io/taints" - - // SeccompPodAnnotationKey represents the key of a seccomp profile applied - // to all containers of a pod. - SeccompPodAnnotationKey string = "seccomp.security.alpha.kubernetes.io/pod" - - // SeccompContainerAnnotationKeyPrefix represents the key of a seccomp profile applied - // to one container of a pod. - SeccompContainerAnnotationKeyPrefix string = "container.seccomp.security.alpha.kubernetes.io/" - - // SeccompProfileRuntimeDefault represents the default seccomp profile used by container runtime. - SeccompProfileRuntimeDefault string = "runtime/default" - - // DeprecatedSeccompProfileDockerDefault represents the default seccomp profile used by docker. - // This is now deprecated and should be replaced by SeccompProfileRuntimeDefault. - DeprecatedSeccompProfileDockerDefault string = "docker/default" - - // PreferAvoidPodsAnnotationKey represents the key of preferAvoidPods data (json serialized) - // in the Annotations of a Node. - PreferAvoidPodsAnnotationKey string = "scheduler.alpha.kubernetes.io/preferAvoidPods" - - // ObjectTTLAnnotations represents a suggestion for kubelet for how long it can cache - // an object (e.g. secret, config map) before fetching it again from apiserver. - // This annotation can be attached to node. - ObjectTTLAnnotationKey string = "node.alpha.kubernetes.io/ttl" - - // annotation key prefix used to identify non-convertible json paths. - NonConvertibleAnnotationPrefix = "non-convertible.kubernetes.io" - - kubectlPrefix = "kubectl.kubernetes.io/" - - // LastAppliedConfigAnnotation is the annotation used to store the previous - // configuration of a resource for use in a three way diff by UpdateApplyAnnotation. - LastAppliedConfigAnnotation = kubectlPrefix + "last-applied-configuration" - - // AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers - // - // It should be a comma-separated list of CIDRs, e.g. `0.0.0.0/0` to - // allow full access (the default) or `18.0.0.0/8,56.0.0.0/8` to allow - // access only from the CIDRs currently allocated to MIT & the USPS. - // - // Not all cloud providers support this annotation, though AWS & GCE do. - AnnotationLoadBalancerSourceRangesKey = "service.beta.kubernetes.io/load-balancer-source-ranges" - - // EndpointsLastChangeTriggerTime is the annotation key, set for endpoints objects, that - // represents the timestamp (stored as RFC 3339 date-time string, e.g. '2018-10-22T19:32:52.1Z') - // of the last change, of some Pod or Service object, that triggered the endpoints object change. - // In other words, if a Pod / Service changed at time T0, that change was observed by endpoints - // controller at T1, and the Endpoints object was changed at T2, the - // EndpointsLastChangeTriggerTime would be set to T0. - // - // The "endpoints change trigger" here means any Pod or Service change that resulted in the - // Endpoints object change. - // - // Given the definition of the "endpoints change trigger", please note that this annotation will - // be set ONLY for endpoints object changes triggered by either Pod or Service change. If the - // Endpoints object changes due to other reasons, this annotation won't be set (or updated if it's - // already set). - // - // This annotation will be used to compute the in-cluster network programming latency SLI, see - // https://github.com/kubernetes/community/blob/master/sig-scalability/slos/network_programming_latency.md - EndpointsLastChangeTriggerTime = "endpoints.kubernetes.io/last-change-trigger-time" - - // MigratedPluginsAnnotationKey is the annotation key, set for CSINode objects, that is a comma-separated - // list of in-tree plugins that will be serviced by the CSI backend on the Node represented by CSINode. - // This annotation is used by the Attach Detach Controller to determine whether to use the in-tree or - // CSI Backend for a volume plugin on a specific node. - MigratedPluginsAnnotationKey = "storage.alpha.kubernetes.io/migrated-plugins" -) diff --git a/pseudo/k8s/api/core/v1/doc.go b/pseudo/k8s/api/core/v1/doc.go deleted file mode 100644 index 7c5d8efa1..000000000 --- a/pseudo/k8s/api/core/v1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2015 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:openapi-gen=true -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package - -// Package v1 is the v1 version of the core API. -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" diff --git a/pseudo/k8s/api/core/v1/generated.pb.go b/pseudo/k8s/api/core/v1/generated.pb.go deleted file mode 100644 index 22d8a61bf..000000000 --- a/pseudo/k8s/api/core/v1/generated.pb.go +++ /dev/null @@ -1,66336 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - k8s_io_apimachinery_pkg_types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AWSElasticBlockStoreVolumeSource) Reset() { *m = AWSElasticBlockStoreVolumeSource{} } -func (*AWSElasticBlockStoreVolumeSource) ProtoMessage() {} -func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{0} -} -func (m *AWSElasticBlockStoreVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AWSElasticBlockStoreVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AWSElasticBlockStoreVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_AWSElasticBlockStoreVolumeSource.Merge(m, src) -} -func (m *AWSElasticBlockStoreVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *AWSElasticBlockStoreVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_AWSElasticBlockStoreVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_AWSElasticBlockStoreVolumeSource proto.InternalMessageInfo - -func (m *Affinity) Reset() { *m = Affinity{} } -func (*Affinity) ProtoMessage() {} -func (*Affinity) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{1} -} -func (m *Affinity) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Affinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Affinity) XXX_Merge(src proto.Message) { - xxx_messageInfo_Affinity.Merge(m, src) -} -func (m *Affinity) XXX_Size() int { - return m.Size() -} -func (m *Affinity) XXX_DiscardUnknown() { - xxx_messageInfo_Affinity.DiscardUnknown(m) -} - -var xxx_messageInfo_Affinity proto.InternalMessageInfo - -func (m *AttachedVolume) Reset() { *m = AttachedVolume{} } -func (*AttachedVolume) ProtoMessage() {} -func (*AttachedVolume) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{2} -} -func (m *AttachedVolume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AttachedVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AttachedVolume) XXX_Merge(src proto.Message) { - xxx_messageInfo_AttachedVolume.Merge(m, src) -} -func (m *AttachedVolume) XXX_Size() int { - return m.Size() -} -func (m *AttachedVolume) XXX_DiscardUnknown() { - xxx_messageInfo_AttachedVolume.DiscardUnknown(m) -} - -var xxx_messageInfo_AttachedVolume proto.InternalMessageInfo - -func (m *AvoidPods) Reset() { *m = AvoidPods{} } -func (*AvoidPods) ProtoMessage() {} -func (*AvoidPods) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{3} -} -func (m *AvoidPods) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AvoidPods) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AvoidPods) XXX_Merge(src proto.Message) { - xxx_messageInfo_AvoidPods.Merge(m, src) -} -func (m *AvoidPods) XXX_Size() int { - return m.Size() -} -func (m *AvoidPods) XXX_DiscardUnknown() { - xxx_messageInfo_AvoidPods.DiscardUnknown(m) -} - -var xxx_messageInfo_AvoidPods proto.InternalMessageInfo - -func (m *AzureDiskVolumeSource) Reset() { *m = AzureDiskVolumeSource{} } -func (*AzureDiskVolumeSource) ProtoMessage() {} -func (*AzureDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{4} -} -func (m *AzureDiskVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AzureDiskVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AzureDiskVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_AzureDiskVolumeSource.Merge(m, src) -} -func (m *AzureDiskVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *AzureDiskVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_AzureDiskVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_AzureDiskVolumeSource proto.InternalMessageInfo - -func (m *AzureFilePersistentVolumeSource) Reset() { *m = AzureFilePersistentVolumeSource{} } -func (*AzureFilePersistentVolumeSource) ProtoMessage() {} -func (*AzureFilePersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{5} -} -func (m *AzureFilePersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AzureFilePersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AzureFilePersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_AzureFilePersistentVolumeSource.Merge(m, src) -} -func (m *AzureFilePersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *AzureFilePersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_AzureFilePersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_AzureFilePersistentVolumeSource proto.InternalMessageInfo - -func (m *AzureFileVolumeSource) Reset() { *m = AzureFileVolumeSource{} } -func (*AzureFileVolumeSource) ProtoMessage() {} -func (*AzureFileVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{6} -} -func (m *AzureFileVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AzureFileVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AzureFileVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_AzureFileVolumeSource.Merge(m, src) -} -func (m *AzureFileVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *AzureFileVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_AzureFileVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_AzureFileVolumeSource proto.InternalMessageInfo - -func (m *Binding) Reset() { *m = Binding{} } -func (*Binding) ProtoMessage() {} -func (*Binding) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{7} -} -func (m *Binding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Binding) XXX_Merge(src proto.Message) { - xxx_messageInfo_Binding.Merge(m, src) -} -func (m *Binding) XXX_Size() int { - return m.Size() -} -func (m *Binding) XXX_DiscardUnknown() { - xxx_messageInfo_Binding.DiscardUnknown(m) -} - -var xxx_messageInfo_Binding proto.InternalMessageInfo - -func (m *CSIPersistentVolumeSource) Reset() { *m = CSIPersistentVolumeSource{} } -func (*CSIPersistentVolumeSource) ProtoMessage() {} -func (*CSIPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{8} -} -func (m *CSIPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSIPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSIPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSIPersistentVolumeSource.Merge(m, src) -} -func (m *CSIPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *CSIPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_CSIPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_CSIPersistentVolumeSource proto.InternalMessageInfo - -func (m *CSIVolumeSource) Reset() { *m = CSIVolumeSource{} } -func (*CSIVolumeSource) ProtoMessage() {} -func (*CSIVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{9} -} -func (m *CSIVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSIVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSIVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSIVolumeSource.Merge(m, src) -} -func (m *CSIVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *CSIVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_CSIVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_CSIVolumeSource proto.InternalMessageInfo - -func (m *Capabilities) Reset() { *m = Capabilities{} } -func (*Capabilities) ProtoMessage() {} -func (*Capabilities) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{10} -} -func (m *Capabilities) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Capabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Capabilities) XXX_Merge(src proto.Message) { - xxx_messageInfo_Capabilities.Merge(m, src) -} -func (m *Capabilities) XXX_Size() int { - return m.Size() -} -func (m *Capabilities) XXX_DiscardUnknown() { - xxx_messageInfo_Capabilities.DiscardUnknown(m) -} - -var xxx_messageInfo_Capabilities proto.InternalMessageInfo - -func (m *CephFSPersistentVolumeSource) Reset() { *m = CephFSPersistentVolumeSource{} } -func (*CephFSPersistentVolumeSource) ProtoMessage() {} -func (*CephFSPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{11} -} -func (m *CephFSPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CephFSPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CephFSPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CephFSPersistentVolumeSource.Merge(m, src) -} -func (m *CephFSPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *CephFSPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_CephFSPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_CephFSPersistentVolumeSource proto.InternalMessageInfo - -func (m *CephFSVolumeSource) Reset() { *m = CephFSVolumeSource{} } -func (*CephFSVolumeSource) ProtoMessage() {} -func (*CephFSVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{12} -} -func (m *CephFSVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CephFSVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CephFSVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CephFSVolumeSource.Merge(m, src) -} -func (m *CephFSVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *CephFSVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_CephFSVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_CephFSVolumeSource proto.InternalMessageInfo - -func (m *CinderPersistentVolumeSource) Reset() { *m = CinderPersistentVolumeSource{} } -func (*CinderPersistentVolumeSource) ProtoMessage() {} -func (*CinderPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{13} -} -func (m *CinderPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CinderPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CinderPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CinderPersistentVolumeSource.Merge(m, src) -} -func (m *CinderPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *CinderPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_CinderPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_CinderPersistentVolumeSource proto.InternalMessageInfo - -func (m *CinderVolumeSource) Reset() { *m = CinderVolumeSource{} } -func (*CinderVolumeSource) ProtoMessage() {} -func (*CinderVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{14} -} -func (m *CinderVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CinderVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CinderVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_CinderVolumeSource.Merge(m, src) -} -func (m *CinderVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *CinderVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_CinderVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_CinderVolumeSource proto.InternalMessageInfo - -func (m *ClientIPConfig) Reset() { *m = ClientIPConfig{} } -func (*ClientIPConfig) ProtoMessage() {} -func (*ClientIPConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{15} -} -func (m *ClientIPConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClientIPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClientIPConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClientIPConfig.Merge(m, src) -} -func (m *ClientIPConfig) XXX_Size() int { - return m.Size() -} -func (m *ClientIPConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ClientIPConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ClientIPConfig proto.InternalMessageInfo - -func (m *ComponentCondition) Reset() { *m = ComponentCondition{} } -func (*ComponentCondition) ProtoMessage() {} -func (*ComponentCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{16} -} -func (m *ComponentCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComponentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ComponentCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComponentCondition.Merge(m, src) -} -func (m *ComponentCondition) XXX_Size() int { - return m.Size() -} -func (m *ComponentCondition) XXX_DiscardUnknown() { - xxx_messageInfo_ComponentCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_ComponentCondition proto.InternalMessageInfo - -func (m *ComponentStatus) Reset() { *m = ComponentStatus{} } -func (*ComponentStatus) ProtoMessage() {} -func (*ComponentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{17} -} -func (m *ComponentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComponentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ComponentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComponentStatus.Merge(m, src) -} -func (m *ComponentStatus) XXX_Size() int { - return m.Size() -} -func (m *ComponentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ComponentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ComponentStatus proto.InternalMessageInfo - -func (m *ComponentStatusList) Reset() { *m = ComponentStatusList{} } -func (*ComponentStatusList) ProtoMessage() {} -func (*ComponentStatusList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{18} -} -func (m *ComponentStatusList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ComponentStatusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ComponentStatusList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComponentStatusList.Merge(m, src) -} -func (m *ComponentStatusList) XXX_Size() int { - return m.Size() -} -func (m *ComponentStatusList) XXX_DiscardUnknown() { - xxx_messageInfo_ComponentStatusList.DiscardUnknown(m) -} - -var xxx_messageInfo_ComponentStatusList proto.InternalMessageInfo - -func (m *ConfigMap) Reset() { *m = ConfigMap{} } -func (*ConfigMap) ProtoMessage() {} -func (*ConfigMap) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{19} -} -func (m *ConfigMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMap.Merge(m, src) -} -func (m *ConfigMap) XXX_Size() int { - return m.Size() -} -func (m *ConfigMap) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMap.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMap proto.InternalMessageInfo - -func (m *ConfigMapEnvSource) Reset() { *m = ConfigMapEnvSource{} } -func (*ConfigMapEnvSource) ProtoMessage() {} -func (*ConfigMapEnvSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{20} -} -func (m *ConfigMapEnvSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMapEnvSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMapEnvSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMapEnvSource.Merge(m, src) -} -func (m *ConfigMapEnvSource) XXX_Size() int { - return m.Size() -} -func (m *ConfigMapEnvSource) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMapEnvSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMapEnvSource proto.InternalMessageInfo - -func (m *ConfigMapKeySelector) Reset() { *m = ConfigMapKeySelector{} } -func (*ConfigMapKeySelector) ProtoMessage() {} -func (*ConfigMapKeySelector) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{21} -} -func (m *ConfigMapKeySelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMapKeySelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMapKeySelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMapKeySelector.Merge(m, src) -} -func (m *ConfigMapKeySelector) XXX_Size() int { - return m.Size() -} -func (m *ConfigMapKeySelector) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMapKeySelector.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMapKeySelector proto.InternalMessageInfo - -func (m *ConfigMapList) Reset() { *m = ConfigMapList{} } -func (*ConfigMapList) ProtoMessage() {} -func (*ConfigMapList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{22} -} -func (m *ConfigMapList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMapList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMapList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMapList.Merge(m, src) -} -func (m *ConfigMapList) XXX_Size() int { - return m.Size() -} -func (m *ConfigMapList) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMapList.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMapList proto.InternalMessageInfo - -func (m *ConfigMapNodeConfigSource) Reset() { *m = ConfigMapNodeConfigSource{} } -func (*ConfigMapNodeConfigSource) ProtoMessage() {} -func (*ConfigMapNodeConfigSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{23} -} -func (m *ConfigMapNodeConfigSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMapNodeConfigSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMapNodeConfigSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMapNodeConfigSource.Merge(m, src) -} -func (m *ConfigMapNodeConfigSource) XXX_Size() int { - return m.Size() -} -func (m *ConfigMapNodeConfigSource) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMapNodeConfigSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMapNodeConfigSource proto.InternalMessageInfo - -func (m *ConfigMapProjection) Reset() { *m = ConfigMapProjection{} } -func (*ConfigMapProjection) ProtoMessage() {} -func (*ConfigMapProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{24} -} -func (m *ConfigMapProjection) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMapProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMapProjection) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMapProjection.Merge(m, src) -} -func (m *ConfigMapProjection) XXX_Size() int { - return m.Size() -} -func (m *ConfigMapProjection) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMapProjection.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMapProjection proto.InternalMessageInfo - -func (m *ConfigMapVolumeSource) Reset() { *m = ConfigMapVolumeSource{} } -func (*ConfigMapVolumeSource) ProtoMessage() {} -func (*ConfigMapVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{25} -} -func (m *ConfigMapVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ConfigMapVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ConfigMapVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConfigMapVolumeSource.Merge(m, src) -} -func (m *ConfigMapVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *ConfigMapVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_ConfigMapVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ConfigMapVolumeSource proto.InternalMessageInfo - -func (m *Container) Reset() { *m = Container{} } -func (*Container) ProtoMessage() {} -func (*Container) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{26} -} -func (m *Container) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Container) XXX_Merge(src proto.Message) { - xxx_messageInfo_Container.Merge(m, src) -} -func (m *Container) XXX_Size() int { - return m.Size() -} -func (m *Container) XXX_DiscardUnknown() { - xxx_messageInfo_Container.DiscardUnknown(m) -} - -var xxx_messageInfo_Container proto.InternalMessageInfo - -func (m *ContainerImage) Reset() { *m = ContainerImage{} } -func (*ContainerImage) ProtoMessage() {} -func (*ContainerImage) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{27} -} -func (m *ContainerImage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerImage) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerImage.Merge(m, src) -} -func (m *ContainerImage) XXX_Size() int { - return m.Size() -} -func (m *ContainerImage) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerImage.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerImage proto.InternalMessageInfo - -func (m *ContainerPort) Reset() { *m = ContainerPort{} } -func (*ContainerPort) ProtoMessage() {} -func (*ContainerPort) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{28} -} -func (m *ContainerPort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerPort.Merge(m, src) -} -func (m *ContainerPort) XXX_Size() int { - return m.Size() -} -func (m *ContainerPort) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerPort.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerPort proto.InternalMessageInfo - -func (m *ContainerState) Reset() { *m = ContainerState{} } -func (*ContainerState) ProtoMessage() {} -func (*ContainerState) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{29} -} -func (m *ContainerState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerState) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerState.Merge(m, src) -} -func (m *ContainerState) XXX_Size() int { - return m.Size() -} -func (m *ContainerState) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerState.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerState proto.InternalMessageInfo - -func (m *ContainerStateRunning) Reset() { *m = ContainerStateRunning{} } -func (*ContainerStateRunning) ProtoMessage() {} -func (*ContainerStateRunning) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{30} -} -func (m *ContainerStateRunning) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerStateRunning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerStateRunning) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerStateRunning.Merge(m, src) -} -func (m *ContainerStateRunning) XXX_Size() int { - return m.Size() -} -func (m *ContainerStateRunning) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerStateRunning.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerStateRunning proto.InternalMessageInfo - -func (m *ContainerStateTerminated) Reset() { *m = ContainerStateTerminated{} } -func (*ContainerStateTerminated) ProtoMessage() {} -func (*ContainerStateTerminated) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{31} -} -func (m *ContainerStateTerminated) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerStateTerminated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerStateTerminated) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerStateTerminated.Merge(m, src) -} -func (m *ContainerStateTerminated) XXX_Size() int { - return m.Size() -} -func (m *ContainerStateTerminated) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerStateTerminated.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerStateTerminated proto.InternalMessageInfo - -func (m *ContainerStateWaiting) Reset() { *m = ContainerStateWaiting{} } -func (*ContainerStateWaiting) ProtoMessage() {} -func (*ContainerStateWaiting) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{32} -} -func (m *ContainerStateWaiting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerStateWaiting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerStateWaiting) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerStateWaiting.Merge(m, src) -} -func (m *ContainerStateWaiting) XXX_Size() int { - return m.Size() -} -func (m *ContainerStateWaiting) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerStateWaiting.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerStateWaiting proto.InternalMessageInfo - -func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } -func (*ContainerStatus) ProtoMessage() {} -func (*ContainerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{33} -} -func (m *ContainerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContainerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ContainerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerStatus.Merge(m, src) -} -func (m *ContainerStatus) XXX_Size() int { - return m.Size() -} -func (m *ContainerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerStatus proto.InternalMessageInfo - -func (m *DaemonEndpoint) Reset() { *m = DaemonEndpoint{} } -func (*DaemonEndpoint) ProtoMessage() {} -func (*DaemonEndpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{34} -} -func (m *DaemonEndpoint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonEndpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonEndpoint.Merge(m, src) -} -func (m *DaemonEndpoint) XXX_Size() int { - return m.Size() -} -func (m *DaemonEndpoint) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonEndpoint.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonEndpoint proto.InternalMessageInfo - -func (m *DownwardAPIProjection) Reset() { *m = DownwardAPIProjection{} } -func (*DownwardAPIProjection) ProtoMessage() {} -func (*DownwardAPIProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{35} -} -func (m *DownwardAPIProjection) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DownwardAPIProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DownwardAPIProjection) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownwardAPIProjection.Merge(m, src) -} -func (m *DownwardAPIProjection) XXX_Size() int { - return m.Size() -} -func (m *DownwardAPIProjection) XXX_DiscardUnknown() { - xxx_messageInfo_DownwardAPIProjection.DiscardUnknown(m) -} - -var xxx_messageInfo_DownwardAPIProjection proto.InternalMessageInfo - -func (m *DownwardAPIVolumeFile) Reset() { *m = DownwardAPIVolumeFile{} } -func (*DownwardAPIVolumeFile) ProtoMessage() {} -func (*DownwardAPIVolumeFile) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{36} -} -func (m *DownwardAPIVolumeFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DownwardAPIVolumeFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DownwardAPIVolumeFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownwardAPIVolumeFile.Merge(m, src) -} -func (m *DownwardAPIVolumeFile) XXX_Size() int { - return m.Size() -} -func (m *DownwardAPIVolumeFile) XXX_DiscardUnknown() { - xxx_messageInfo_DownwardAPIVolumeFile.DiscardUnknown(m) -} - -var xxx_messageInfo_DownwardAPIVolumeFile proto.InternalMessageInfo - -func (m *DownwardAPIVolumeSource) Reset() { *m = DownwardAPIVolumeSource{} } -func (*DownwardAPIVolumeSource) ProtoMessage() {} -func (*DownwardAPIVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{37} -} -func (m *DownwardAPIVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DownwardAPIVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DownwardAPIVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_DownwardAPIVolumeSource.Merge(m, src) -} -func (m *DownwardAPIVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *DownwardAPIVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_DownwardAPIVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_DownwardAPIVolumeSource proto.InternalMessageInfo - -func (m *EmptyDirVolumeSource) Reset() { *m = EmptyDirVolumeSource{} } -func (*EmptyDirVolumeSource) ProtoMessage() {} -func (*EmptyDirVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{38} -} -func (m *EmptyDirVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EmptyDirVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EmptyDirVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmptyDirVolumeSource.Merge(m, src) -} -func (m *EmptyDirVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *EmptyDirVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_EmptyDirVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_EmptyDirVolumeSource proto.InternalMessageInfo - -func (m *EndpointAddress) Reset() { *m = EndpointAddress{} } -func (*EndpointAddress) ProtoMessage() {} -func (*EndpointAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{39} -} -func (m *EndpointAddress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointAddress.Merge(m, src) -} -func (m *EndpointAddress) XXX_Size() int { - return m.Size() -} -func (m *EndpointAddress) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointAddress.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointAddress proto.InternalMessageInfo - -func (m *EndpointPort) Reset() { *m = EndpointPort{} } -func (*EndpointPort) ProtoMessage() {} -func (*EndpointPort) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{40} -} -func (m *EndpointPort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointPort.Merge(m, src) -} -func (m *EndpointPort) XXX_Size() int { - return m.Size() -} -func (m *EndpointPort) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointPort.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointPort proto.InternalMessageInfo - -func (m *EndpointSubset) Reset() { *m = EndpointSubset{} } -func (*EndpointSubset) ProtoMessage() {} -func (*EndpointSubset) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{41} -} -func (m *EndpointSubset) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointSubset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointSubset) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointSubset.Merge(m, src) -} -func (m *EndpointSubset) XXX_Size() int { - return m.Size() -} -func (m *EndpointSubset) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointSubset.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointSubset proto.InternalMessageInfo - -func (m *Endpoints) Reset() { *m = Endpoints{} } -func (*Endpoints) ProtoMessage() {} -func (*Endpoints) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{42} -} -func (m *Endpoints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Endpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Endpoints) XXX_Merge(src proto.Message) { - xxx_messageInfo_Endpoints.Merge(m, src) -} -func (m *Endpoints) XXX_Size() int { - return m.Size() -} -func (m *Endpoints) XXX_DiscardUnknown() { - xxx_messageInfo_Endpoints.DiscardUnknown(m) -} - -var xxx_messageInfo_Endpoints proto.InternalMessageInfo - -func (m *EndpointsList) Reset() { *m = EndpointsList{} } -func (*EndpointsList) ProtoMessage() {} -func (*EndpointsList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{43} -} -func (m *EndpointsList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointsList) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointsList.Merge(m, src) -} -func (m *EndpointsList) XXX_Size() int { - return m.Size() -} -func (m *EndpointsList) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointsList.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointsList proto.InternalMessageInfo - -func (m *EnvFromSource) Reset() { *m = EnvFromSource{} } -func (*EnvFromSource) ProtoMessage() {} -func (*EnvFromSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{44} -} -func (m *EnvFromSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EnvFromSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EnvFromSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnvFromSource.Merge(m, src) -} -func (m *EnvFromSource) XXX_Size() int { - return m.Size() -} -func (m *EnvFromSource) XXX_DiscardUnknown() { - xxx_messageInfo_EnvFromSource.DiscardUnknown(m) -} - -var xxx_messageInfo_EnvFromSource proto.InternalMessageInfo - -func (m *EnvVar) Reset() { *m = EnvVar{} } -func (*EnvVar) ProtoMessage() {} -func (*EnvVar) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{45} -} -func (m *EnvVar) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EnvVar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EnvVar) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnvVar.Merge(m, src) -} -func (m *EnvVar) XXX_Size() int { - return m.Size() -} -func (m *EnvVar) XXX_DiscardUnknown() { - xxx_messageInfo_EnvVar.DiscardUnknown(m) -} - -var xxx_messageInfo_EnvVar proto.InternalMessageInfo - -func (m *EnvVarSource) Reset() { *m = EnvVarSource{} } -func (*EnvVarSource) ProtoMessage() {} -func (*EnvVarSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{46} -} -func (m *EnvVarSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EnvVarSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EnvVarSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnvVarSource.Merge(m, src) -} -func (m *EnvVarSource) XXX_Size() int { - return m.Size() -} -func (m *EnvVarSource) XXX_DiscardUnknown() { - xxx_messageInfo_EnvVarSource.DiscardUnknown(m) -} - -var xxx_messageInfo_EnvVarSource proto.InternalMessageInfo - -func (m *EphemeralContainer) Reset() { *m = EphemeralContainer{} } -func (*EphemeralContainer) ProtoMessage() {} -func (*EphemeralContainer) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{47} -} -func (m *EphemeralContainer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EphemeralContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EphemeralContainer) XXX_Merge(src proto.Message) { - xxx_messageInfo_EphemeralContainer.Merge(m, src) -} -func (m *EphemeralContainer) XXX_Size() int { - return m.Size() -} -func (m *EphemeralContainer) XXX_DiscardUnknown() { - xxx_messageInfo_EphemeralContainer.DiscardUnknown(m) -} - -var xxx_messageInfo_EphemeralContainer proto.InternalMessageInfo - -func (m *EphemeralContainerCommon) Reset() { *m = EphemeralContainerCommon{} } -func (*EphemeralContainerCommon) ProtoMessage() {} -func (*EphemeralContainerCommon) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{48} -} -func (m *EphemeralContainerCommon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EphemeralContainerCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EphemeralContainerCommon) XXX_Merge(src proto.Message) { - xxx_messageInfo_EphemeralContainerCommon.Merge(m, src) -} -func (m *EphemeralContainerCommon) XXX_Size() int { - return m.Size() -} -func (m *EphemeralContainerCommon) XXX_DiscardUnknown() { - xxx_messageInfo_EphemeralContainerCommon.DiscardUnknown(m) -} - -var xxx_messageInfo_EphemeralContainerCommon proto.InternalMessageInfo - -func (m *EphemeralContainers) Reset() { *m = EphemeralContainers{} } -func (*EphemeralContainers) ProtoMessage() {} -func (*EphemeralContainers) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{49} -} -func (m *EphemeralContainers) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EphemeralContainers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EphemeralContainers) XXX_Merge(src proto.Message) { - xxx_messageInfo_EphemeralContainers.Merge(m, src) -} -func (m *EphemeralContainers) XXX_Size() int { - return m.Size() -} -func (m *EphemeralContainers) XXX_DiscardUnknown() { - xxx_messageInfo_EphemeralContainers.DiscardUnknown(m) -} - -var xxx_messageInfo_EphemeralContainers proto.InternalMessageInfo - -func (m *Event) Reset() { *m = Event{} } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{50} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) -} - -var xxx_messageInfo_Event proto.InternalMessageInfo - -func (m *EventList) Reset() { *m = EventList{} } -func (*EventList) ProtoMessage() {} -func (*EventList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{51} -} -func (m *EventList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EventList) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventList.Merge(m, src) -} -func (m *EventList) XXX_Size() int { - return m.Size() -} -func (m *EventList) XXX_DiscardUnknown() { - xxx_messageInfo_EventList.DiscardUnknown(m) -} - -var xxx_messageInfo_EventList proto.InternalMessageInfo - -func (m *EventSeries) Reset() { *m = EventSeries{} } -func (*EventSeries) ProtoMessage() {} -func (*EventSeries) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{52} -} -func (m *EventSeries) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EventSeries) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSeries.Merge(m, src) -} -func (m *EventSeries) XXX_Size() int { - return m.Size() -} -func (m *EventSeries) XXX_DiscardUnknown() { - xxx_messageInfo_EventSeries.DiscardUnknown(m) -} - -var xxx_messageInfo_EventSeries proto.InternalMessageInfo - -func (m *EventSource) Reset() { *m = EventSource{} } -func (*EventSource) ProtoMessage() {} -func (*EventSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{53} -} -func (m *EventSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EventSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSource.Merge(m, src) -} -func (m *EventSource) XXX_Size() int { - return m.Size() -} -func (m *EventSource) XXX_DiscardUnknown() { - xxx_messageInfo_EventSource.DiscardUnknown(m) -} - -var xxx_messageInfo_EventSource proto.InternalMessageInfo - -func (m *ExecAction) Reset() { *m = ExecAction{} } -func (*ExecAction) ProtoMessage() {} -func (*ExecAction) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{54} -} -func (m *ExecAction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExecAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExecAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecAction.Merge(m, src) -} -func (m *ExecAction) XXX_Size() int { - return m.Size() -} -func (m *ExecAction) XXX_DiscardUnknown() { - xxx_messageInfo_ExecAction.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecAction proto.InternalMessageInfo - -func (m *FCVolumeSource) Reset() { *m = FCVolumeSource{} } -func (*FCVolumeSource) ProtoMessage() {} -func (*FCVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{55} -} -func (m *FCVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FCVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FCVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_FCVolumeSource.Merge(m, src) -} -func (m *FCVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *FCVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_FCVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_FCVolumeSource proto.InternalMessageInfo - -func (m *FlexPersistentVolumeSource) Reset() { *m = FlexPersistentVolumeSource{} } -func (*FlexPersistentVolumeSource) ProtoMessage() {} -func (*FlexPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{56} -} -func (m *FlexPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlexPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FlexPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlexPersistentVolumeSource.Merge(m, src) -} -func (m *FlexPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *FlexPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_FlexPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_FlexPersistentVolumeSource proto.InternalMessageInfo - -func (m *FlexVolumeSource) Reset() { *m = FlexVolumeSource{} } -func (*FlexVolumeSource) ProtoMessage() {} -func (*FlexVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{57} -} -func (m *FlexVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlexVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FlexVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlexVolumeSource.Merge(m, src) -} -func (m *FlexVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *FlexVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_FlexVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_FlexVolumeSource proto.InternalMessageInfo - -func (m *FlockerVolumeSource) Reset() { *m = FlockerVolumeSource{} } -func (*FlockerVolumeSource) ProtoMessage() {} -func (*FlockerVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{58} -} -func (m *FlockerVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FlockerVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FlockerVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlockerVolumeSource.Merge(m, src) -} -func (m *FlockerVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *FlockerVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_FlockerVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_FlockerVolumeSource proto.InternalMessageInfo - -func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } -func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} -func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{59} -} -func (m *GCEPersistentDiskVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GCEPersistentDiskVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GCEPersistentDiskVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_GCEPersistentDiskVolumeSource.Merge(m, src) -} -func (m *GCEPersistentDiskVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *GCEPersistentDiskVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_GCEPersistentDiskVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_GCEPersistentDiskVolumeSource proto.InternalMessageInfo - -func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } -func (*GitRepoVolumeSource) ProtoMessage() {} -func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{60} -} -func (m *GitRepoVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GitRepoVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GitRepoVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_GitRepoVolumeSource.Merge(m, src) -} -func (m *GitRepoVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *GitRepoVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_GitRepoVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_GitRepoVolumeSource proto.InternalMessageInfo - -func (m *GlusterfsPersistentVolumeSource) Reset() { *m = GlusterfsPersistentVolumeSource{} } -func (*GlusterfsPersistentVolumeSource) ProtoMessage() {} -func (*GlusterfsPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{61} -} -func (m *GlusterfsPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GlusterfsPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GlusterfsPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_GlusterfsPersistentVolumeSource.Merge(m, src) -} -func (m *GlusterfsPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *GlusterfsPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_GlusterfsPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_GlusterfsPersistentVolumeSource proto.InternalMessageInfo - -func (m *GlusterfsVolumeSource) Reset() { *m = GlusterfsVolumeSource{} } -func (*GlusterfsVolumeSource) ProtoMessage() {} -func (*GlusterfsVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{62} -} -func (m *GlusterfsVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GlusterfsVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GlusterfsVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_GlusterfsVolumeSource.Merge(m, src) -} -func (m *GlusterfsVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *GlusterfsVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_GlusterfsVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_GlusterfsVolumeSource proto.InternalMessageInfo - -func (m *HTTPGetAction) Reset() { *m = HTTPGetAction{} } -func (*HTTPGetAction) ProtoMessage() {} -func (*HTTPGetAction) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{63} -} -func (m *HTTPGetAction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HTTPGetAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HTTPGetAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_HTTPGetAction.Merge(m, src) -} -func (m *HTTPGetAction) XXX_Size() int { - return m.Size() -} -func (m *HTTPGetAction) XXX_DiscardUnknown() { - xxx_messageInfo_HTTPGetAction.DiscardUnknown(m) -} - -var xxx_messageInfo_HTTPGetAction proto.InternalMessageInfo - -func (m *HTTPHeader) Reset() { *m = HTTPHeader{} } -func (*HTTPHeader) ProtoMessage() {} -func (*HTTPHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{64} -} -func (m *HTTPHeader) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HTTPHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HTTPHeader) XXX_Merge(src proto.Message) { - xxx_messageInfo_HTTPHeader.Merge(m, src) -} -func (m *HTTPHeader) XXX_Size() int { - return m.Size() -} -func (m *HTTPHeader) XXX_DiscardUnknown() { - xxx_messageInfo_HTTPHeader.DiscardUnknown(m) -} - -var xxx_messageInfo_HTTPHeader proto.InternalMessageInfo - -func (m *Handler) Reset() { *m = Handler{} } -func (*Handler) ProtoMessage() {} -func (*Handler) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{65} -} -func (m *Handler) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Handler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Handler) XXX_Merge(src proto.Message) { - xxx_messageInfo_Handler.Merge(m, src) -} -func (m *Handler) XXX_Size() int { - return m.Size() -} -func (m *Handler) XXX_DiscardUnknown() { - xxx_messageInfo_Handler.DiscardUnknown(m) -} - -var xxx_messageInfo_Handler proto.InternalMessageInfo - -func (m *HostAlias) Reset() { *m = HostAlias{} } -func (*HostAlias) ProtoMessage() {} -func (*HostAlias) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{66} -} -func (m *HostAlias) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostAlias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HostAlias) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostAlias.Merge(m, src) -} -func (m *HostAlias) XXX_Size() int { - return m.Size() -} -func (m *HostAlias) XXX_DiscardUnknown() { - xxx_messageInfo_HostAlias.DiscardUnknown(m) -} - -var xxx_messageInfo_HostAlias proto.InternalMessageInfo - -func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } -func (*HostPathVolumeSource) ProtoMessage() {} -func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{67} -} -func (m *HostPathVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostPathVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HostPathVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostPathVolumeSource.Merge(m, src) -} -func (m *HostPathVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *HostPathVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_HostPathVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_HostPathVolumeSource proto.InternalMessageInfo - -func (m *ISCSIPersistentVolumeSource) Reset() { *m = ISCSIPersistentVolumeSource{} } -func (*ISCSIPersistentVolumeSource) ProtoMessage() {} -func (*ISCSIPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{68} -} -func (m *ISCSIPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ISCSIPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ISCSIPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ISCSIPersistentVolumeSource.Merge(m, src) -} -func (m *ISCSIPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *ISCSIPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_ISCSIPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ISCSIPersistentVolumeSource proto.InternalMessageInfo - -func (m *ISCSIVolumeSource) Reset() { *m = ISCSIVolumeSource{} } -func (*ISCSIVolumeSource) ProtoMessage() {} -func (*ISCSIVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{69} -} -func (m *ISCSIVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ISCSIVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ISCSIVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ISCSIVolumeSource.Merge(m, src) -} -func (m *ISCSIVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *ISCSIVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_ISCSIVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ISCSIVolumeSource proto.InternalMessageInfo - -func (m *KeyToPath) Reset() { *m = KeyToPath{} } -func (*KeyToPath) ProtoMessage() {} -func (*KeyToPath) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{70} -} -func (m *KeyToPath) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *KeyToPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *KeyToPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyToPath.Merge(m, src) -} -func (m *KeyToPath) XXX_Size() int { - return m.Size() -} -func (m *KeyToPath) XXX_DiscardUnknown() { - xxx_messageInfo_KeyToPath.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyToPath proto.InternalMessageInfo - -func (m *Lifecycle) Reset() { *m = Lifecycle{} } -func (*Lifecycle) ProtoMessage() {} -func (*Lifecycle) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{71} -} -func (m *Lifecycle) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Lifecycle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Lifecycle) XXX_Merge(src proto.Message) { - xxx_messageInfo_Lifecycle.Merge(m, src) -} -func (m *Lifecycle) XXX_Size() int { - return m.Size() -} -func (m *Lifecycle) XXX_DiscardUnknown() { - xxx_messageInfo_Lifecycle.DiscardUnknown(m) -} - -var xxx_messageInfo_Lifecycle proto.InternalMessageInfo - -func (m *LimitRange) Reset() { *m = LimitRange{} } -func (*LimitRange) ProtoMessage() {} -func (*LimitRange) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{72} -} -func (m *LimitRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LimitRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LimitRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_LimitRange.Merge(m, src) -} -func (m *LimitRange) XXX_Size() int { - return m.Size() -} -func (m *LimitRange) XXX_DiscardUnknown() { - xxx_messageInfo_LimitRange.DiscardUnknown(m) -} - -var xxx_messageInfo_LimitRange proto.InternalMessageInfo - -func (m *LimitRangeItem) Reset() { *m = LimitRangeItem{} } -func (*LimitRangeItem) ProtoMessage() {} -func (*LimitRangeItem) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{73} -} -func (m *LimitRangeItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LimitRangeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LimitRangeItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_LimitRangeItem.Merge(m, src) -} -func (m *LimitRangeItem) XXX_Size() int { - return m.Size() -} -func (m *LimitRangeItem) XXX_DiscardUnknown() { - xxx_messageInfo_LimitRangeItem.DiscardUnknown(m) -} - -var xxx_messageInfo_LimitRangeItem proto.InternalMessageInfo - -func (m *LimitRangeList) Reset() { *m = LimitRangeList{} } -func (*LimitRangeList) ProtoMessage() {} -func (*LimitRangeList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{74} -} -func (m *LimitRangeList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LimitRangeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LimitRangeList) XXX_Merge(src proto.Message) { - xxx_messageInfo_LimitRangeList.Merge(m, src) -} -func (m *LimitRangeList) XXX_Size() int { - return m.Size() -} -func (m *LimitRangeList) XXX_DiscardUnknown() { - xxx_messageInfo_LimitRangeList.DiscardUnknown(m) -} - -var xxx_messageInfo_LimitRangeList proto.InternalMessageInfo - -func (m *LimitRangeSpec) Reset() { *m = LimitRangeSpec{} } -func (*LimitRangeSpec) ProtoMessage() {} -func (*LimitRangeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{75} -} -func (m *LimitRangeSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LimitRangeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LimitRangeSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_LimitRangeSpec.Merge(m, src) -} -func (m *LimitRangeSpec) XXX_Size() int { - return m.Size() -} -func (m *LimitRangeSpec) XXX_DiscardUnknown() { - xxx_messageInfo_LimitRangeSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_LimitRangeSpec proto.InternalMessageInfo - -func (m *List) Reset() { *m = List{} } -func (*List) ProtoMessage() {} -func (*List) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{76} -} -func (m *List) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *List) XXX_Merge(src proto.Message) { - xxx_messageInfo_List.Merge(m, src) -} -func (m *List) XXX_Size() int { - return m.Size() -} -func (m *List) XXX_DiscardUnknown() { - xxx_messageInfo_List.DiscardUnknown(m) -} - -var xxx_messageInfo_List proto.InternalMessageInfo - -func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } -func (*LoadBalancerIngress) ProtoMessage() {} -func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{77} -} -func (m *LoadBalancerIngress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoadBalancerIngress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LoadBalancerIngress) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadBalancerIngress.Merge(m, src) -} -func (m *LoadBalancerIngress) XXX_Size() int { - return m.Size() -} -func (m *LoadBalancerIngress) XXX_DiscardUnknown() { - xxx_messageInfo_LoadBalancerIngress.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadBalancerIngress proto.InternalMessageInfo - -func (m *LoadBalancerStatus) Reset() { *m = LoadBalancerStatus{} } -func (*LoadBalancerStatus) ProtoMessage() {} -func (*LoadBalancerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{78} -} -func (m *LoadBalancerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LoadBalancerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LoadBalancerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadBalancerStatus.Merge(m, src) -} -func (m *LoadBalancerStatus) XXX_Size() int { - return m.Size() -} -func (m *LoadBalancerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_LoadBalancerStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadBalancerStatus proto.InternalMessageInfo - -func (m *LocalObjectReference) Reset() { *m = LocalObjectReference{} } -func (*LocalObjectReference) ProtoMessage() {} -func (*LocalObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{79} -} -func (m *LocalObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LocalObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LocalObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalObjectReference.Merge(m, src) -} -func (m *LocalObjectReference) XXX_Size() int { - return m.Size() -} -func (m *LocalObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_LocalObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_LocalObjectReference proto.InternalMessageInfo - -func (m *LocalVolumeSource) Reset() { *m = LocalVolumeSource{} } -func (*LocalVolumeSource) ProtoMessage() {} -func (*LocalVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{80} -} -func (m *LocalVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LocalVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LocalVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_LocalVolumeSource.Merge(m, src) -} -func (m *LocalVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *LocalVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_LocalVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_LocalVolumeSource proto.InternalMessageInfo - -func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } -func (*NFSVolumeSource) ProtoMessage() {} -func (*NFSVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{81} -} -func (m *NFSVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NFSVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NFSVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_NFSVolumeSource.Merge(m, src) -} -func (m *NFSVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *NFSVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_NFSVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_NFSVolumeSource proto.InternalMessageInfo - -func (m *Namespace) Reset() { *m = Namespace{} } -func (*Namespace) ProtoMessage() {} -func (*Namespace) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{82} -} -func (m *Namespace) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Namespace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Namespace) XXX_Merge(src proto.Message) { - xxx_messageInfo_Namespace.Merge(m, src) -} -func (m *Namespace) XXX_Size() int { - return m.Size() -} -func (m *Namespace) XXX_DiscardUnknown() { - xxx_messageInfo_Namespace.DiscardUnknown(m) -} - -var xxx_messageInfo_Namespace proto.InternalMessageInfo - -func (m *NamespaceCondition) Reset() { *m = NamespaceCondition{} } -func (*NamespaceCondition) ProtoMessage() {} -func (*NamespaceCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{83} -} -func (m *NamespaceCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NamespaceCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NamespaceCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamespaceCondition.Merge(m, src) -} -func (m *NamespaceCondition) XXX_Size() int { - return m.Size() -} -func (m *NamespaceCondition) XXX_DiscardUnknown() { - xxx_messageInfo_NamespaceCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_NamespaceCondition proto.InternalMessageInfo - -func (m *NamespaceList) Reset() { *m = NamespaceList{} } -func (*NamespaceList) ProtoMessage() {} -func (*NamespaceList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{84} -} -func (m *NamespaceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NamespaceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NamespaceList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamespaceList.Merge(m, src) -} -func (m *NamespaceList) XXX_Size() int { - return m.Size() -} -func (m *NamespaceList) XXX_DiscardUnknown() { - xxx_messageInfo_NamespaceList.DiscardUnknown(m) -} - -var xxx_messageInfo_NamespaceList proto.InternalMessageInfo - -func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } -func (*NamespaceSpec) ProtoMessage() {} -func (*NamespaceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{85} -} -func (m *NamespaceSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NamespaceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NamespaceSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamespaceSpec.Merge(m, src) -} -func (m *NamespaceSpec) XXX_Size() int { - return m.Size() -} -func (m *NamespaceSpec) XXX_DiscardUnknown() { - xxx_messageInfo_NamespaceSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_NamespaceSpec proto.InternalMessageInfo - -func (m *NamespaceStatus) Reset() { *m = NamespaceStatus{} } -func (*NamespaceStatus) ProtoMessage() {} -func (*NamespaceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{86} -} -func (m *NamespaceStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NamespaceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NamespaceStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamespaceStatus.Merge(m, src) -} -func (m *NamespaceStatus) XXX_Size() int { - return m.Size() -} -func (m *NamespaceStatus) XXX_DiscardUnknown() { - xxx_messageInfo_NamespaceStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_NamespaceStatus proto.InternalMessageInfo - -func (m *Node) Reset() { *m = Node{} } -func (*Node) ProtoMessage() {} -func (*Node) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{87} -} -func (m *Node) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Node) XXX_Merge(src proto.Message) { - xxx_messageInfo_Node.Merge(m, src) -} -func (m *Node) XXX_Size() int { - return m.Size() -} -func (m *Node) XXX_DiscardUnknown() { - xxx_messageInfo_Node.DiscardUnknown(m) -} - -var xxx_messageInfo_Node proto.InternalMessageInfo - -func (m *NodeAddress) Reset() { *m = NodeAddress{} } -func (*NodeAddress) ProtoMessage() {} -func (*NodeAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{88} -} -func (m *NodeAddress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeAddress.Merge(m, src) -} -func (m *NodeAddress) XXX_Size() int { - return m.Size() -} -func (m *NodeAddress) XXX_DiscardUnknown() { - xxx_messageInfo_NodeAddress.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeAddress proto.InternalMessageInfo - -func (m *NodeAffinity) Reset() { *m = NodeAffinity{} } -func (*NodeAffinity) ProtoMessage() {} -func (*NodeAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{89} -} -func (m *NodeAffinity) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeAffinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeAffinity) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeAffinity.Merge(m, src) -} -func (m *NodeAffinity) XXX_Size() int { - return m.Size() -} -func (m *NodeAffinity) XXX_DiscardUnknown() { - xxx_messageInfo_NodeAffinity.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeAffinity proto.InternalMessageInfo - -func (m *NodeCondition) Reset() { *m = NodeCondition{} } -func (*NodeCondition) ProtoMessage() {} -func (*NodeCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{90} -} -func (m *NodeCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeCondition.Merge(m, src) -} -func (m *NodeCondition) XXX_Size() int { - return m.Size() -} -func (m *NodeCondition) XXX_DiscardUnknown() { - xxx_messageInfo_NodeCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeCondition proto.InternalMessageInfo - -func (m *NodeConfigSource) Reset() { *m = NodeConfigSource{} } -func (*NodeConfigSource) ProtoMessage() {} -func (*NodeConfigSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{91} -} -func (m *NodeConfigSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeConfigSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeConfigSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeConfigSource.Merge(m, src) -} -func (m *NodeConfigSource) XXX_Size() int { - return m.Size() -} -func (m *NodeConfigSource) XXX_DiscardUnknown() { - xxx_messageInfo_NodeConfigSource.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeConfigSource proto.InternalMessageInfo - -func (m *NodeConfigStatus) Reset() { *m = NodeConfigStatus{} } -func (*NodeConfigStatus) ProtoMessage() {} -func (*NodeConfigStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{92} -} -func (m *NodeConfigStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeConfigStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeConfigStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeConfigStatus.Merge(m, src) -} -func (m *NodeConfigStatus) XXX_Size() int { - return m.Size() -} -func (m *NodeConfigStatus) XXX_DiscardUnknown() { - xxx_messageInfo_NodeConfigStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeConfigStatus proto.InternalMessageInfo - -func (m *NodeDaemonEndpoints) Reset() { *m = NodeDaemonEndpoints{} } -func (*NodeDaemonEndpoints) ProtoMessage() {} -func (*NodeDaemonEndpoints) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{93} -} -func (m *NodeDaemonEndpoints) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeDaemonEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeDaemonEndpoints) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeDaemonEndpoints.Merge(m, src) -} -func (m *NodeDaemonEndpoints) XXX_Size() int { - return m.Size() -} -func (m *NodeDaemonEndpoints) XXX_DiscardUnknown() { - xxx_messageInfo_NodeDaemonEndpoints.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeDaemonEndpoints proto.InternalMessageInfo - -func (m *NodeList) Reset() { *m = NodeList{} } -func (*NodeList) ProtoMessage() {} -func (*NodeList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{94} -} -func (m *NodeList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeList.Merge(m, src) -} -func (m *NodeList) XXX_Size() int { - return m.Size() -} -func (m *NodeList) XXX_DiscardUnknown() { - xxx_messageInfo_NodeList.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeList proto.InternalMessageInfo - -func (m *NodeProxyOptions) Reset() { *m = NodeProxyOptions{} } -func (*NodeProxyOptions) ProtoMessage() {} -func (*NodeProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{95} -} -func (m *NodeProxyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeProxyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeProxyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeProxyOptions.Merge(m, src) -} -func (m *NodeProxyOptions) XXX_Size() int { - return m.Size() -} -func (m *NodeProxyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_NodeProxyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeProxyOptions proto.InternalMessageInfo - -func (m *NodeResources) Reset() { *m = NodeResources{} } -func (*NodeResources) ProtoMessage() {} -func (*NodeResources) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{96} -} -func (m *NodeResources) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeResources) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeResources.Merge(m, src) -} -func (m *NodeResources) XXX_Size() int { - return m.Size() -} -func (m *NodeResources) XXX_DiscardUnknown() { - xxx_messageInfo_NodeResources.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeResources proto.InternalMessageInfo - -func (m *NodeSelector) Reset() { *m = NodeSelector{} } -func (*NodeSelector) ProtoMessage() {} -func (*NodeSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{97} -} -func (m *NodeSelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeSelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeSelector.Merge(m, src) -} -func (m *NodeSelector) XXX_Size() int { - return m.Size() -} -func (m *NodeSelector) XXX_DiscardUnknown() { - xxx_messageInfo_NodeSelector.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeSelector proto.InternalMessageInfo - -func (m *NodeSelectorRequirement) Reset() { *m = NodeSelectorRequirement{} } -func (*NodeSelectorRequirement) ProtoMessage() {} -func (*NodeSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{98} -} -func (m *NodeSelectorRequirement) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeSelectorRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeSelectorRequirement) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeSelectorRequirement.Merge(m, src) -} -func (m *NodeSelectorRequirement) XXX_Size() int { - return m.Size() -} -func (m *NodeSelectorRequirement) XXX_DiscardUnknown() { - xxx_messageInfo_NodeSelectorRequirement.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeSelectorRequirement proto.InternalMessageInfo - -func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } -func (*NodeSelectorTerm) ProtoMessage() {} -func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{99} -} -func (m *NodeSelectorTerm) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeSelectorTerm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeSelectorTerm) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeSelectorTerm.Merge(m, src) -} -func (m *NodeSelectorTerm) XXX_Size() int { - return m.Size() -} -func (m *NodeSelectorTerm) XXX_DiscardUnknown() { - xxx_messageInfo_NodeSelectorTerm.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeSelectorTerm proto.InternalMessageInfo - -func (m *NodeSpec) Reset() { *m = NodeSpec{} } -func (*NodeSpec) ProtoMessage() {} -func (*NodeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{100} -} -func (m *NodeSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeSpec.Merge(m, src) -} -func (m *NodeSpec) XXX_Size() int { - return m.Size() -} -func (m *NodeSpec) XXX_DiscardUnknown() { - xxx_messageInfo_NodeSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeSpec proto.InternalMessageInfo - -func (m *NodeStatus) Reset() { *m = NodeStatus{} } -func (*NodeStatus) ProtoMessage() {} -func (*NodeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{101} -} -func (m *NodeStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeStatus.Merge(m, src) -} -func (m *NodeStatus) XXX_Size() int { - return m.Size() -} -func (m *NodeStatus) XXX_DiscardUnknown() { - xxx_messageInfo_NodeStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeStatus proto.InternalMessageInfo - -func (m *NodeSystemInfo) Reset() { *m = NodeSystemInfo{} } -func (*NodeSystemInfo) ProtoMessage() {} -func (*NodeSystemInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{102} -} -func (m *NodeSystemInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NodeSystemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NodeSystemInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeSystemInfo.Merge(m, src) -} -func (m *NodeSystemInfo) XXX_Size() int { - return m.Size() -} -func (m *NodeSystemInfo) XXX_DiscardUnknown() { - xxx_messageInfo_NodeSystemInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeSystemInfo proto.InternalMessageInfo - -func (m *ObjectFieldSelector) Reset() { *m = ObjectFieldSelector{} } -func (*ObjectFieldSelector) ProtoMessage() {} -func (*ObjectFieldSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{103} -} -func (m *ObjectFieldSelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectFieldSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectFieldSelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectFieldSelector.Merge(m, src) -} -func (m *ObjectFieldSelector) XXX_Size() int { - return m.Size() -} -func (m *ObjectFieldSelector) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectFieldSelector.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectFieldSelector proto.InternalMessageInfo - -func (m *ObjectReference) Reset() { *m = ObjectReference{} } -func (*ObjectReference) ProtoMessage() {} -func (*ObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{104} -} -func (m *ObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectReference.Merge(m, src) -} -func (m *ObjectReference) XXX_Size() int { - return m.Size() -} -func (m *ObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectReference proto.InternalMessageInfo - -func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } -func (*PersistentVolume) ProtoMessage() {} -func (*PersistentVolume) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{105} -} -func (m *PersistentVolume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolume) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolume.Merge(m, src) -} -func (m *PersistentVolume) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolume) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolume.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolume proto.InternalMessageInfo - -func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } -func (*PersistentVolumeClaim) ProtoMessage() {} -func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{106} -} -func (m *PersistentVolumeClaim) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeClaim) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeClaim.Merge(m, src) -} -func (m *PersistentVolumeClaim) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeClaim) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeClaim.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeClaim proto.InternalMessageInfo - -func (m *PersistentVolumeClaimCondition) Reset() { *m = PersistentVolumeClaimCondition{} } -func (*PersistentVolumeClaimCondition) ProtoMessage() {} -func (*PersistentVolumeClaimCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{107} -} -func (m *PersistentVolumeClaimCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeClaimCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeClaimCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeClaimCondition.Merge(m, src) -} -func (m *PersistentVolumeClaimCondition) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeClaimCondition) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeClaimCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeClaimCondition proto.InternalMessageInfo - -func (m *PersistentVolumeClaimList) Reset() { *m = PersistentVolumeClaimList{} } -func (*PersistentVolumeClaimList) ProtoMessage() {} -func (*PersistentVolumeClaimList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{108} -} -func (m *PersistentVolumeClaimList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeClaimList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeClaimList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeClaimList.Merge(m, src) -} -func (m *PersistentVolumeClaimList) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeClaimList) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeClaimList.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeClaimList proto.InternalMessageInfo - -func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } -func (*PersistentVolumeClaimSpec) ProtoMessage() {} -func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{109} -} -func (m *PersistentVolumeClaimSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeClaimSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeClaimSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeClaimSpec.Merge(m, src) -} -func (m *PersistentVolumeClaimSpec) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeClaimSpec) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeClaimSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeClaimSpec proto.InternalMessageInfo - -func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } -func (*PersistentVolumeClaimStatus) ProtoMessage() {} -func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{110} -} -func (m *PersistentVolumeClaimStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeClaimStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeClaimStatus.Merge(m, src) -} -func (m *PersistentVolumeClaimStatus) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeClaimStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeClaimStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeClaimStatus proto.InternalMessageInfo - -func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } -func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} -func (*PersistentVolumeClaimVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{111} -} -func (m *PersistentVolumeClaimVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeClaimVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeClaimVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeClaimVolumeSource.Merge(m, src) -} -func (m *PersistentVolumeClaimVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeClaimVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeClaimVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeClaimVolumeSource proto.InternalMessageInfo - -func (m *PersistentVolumeList) Reset() { *m = PersistentVolumeList{} } -func (*PersistentVolumeList) ProtoMessage() {} -func (*PersistentVolumeList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{112} -} -func (m *PersistentVolumeList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeList.Merge(m, src) -} -func (m *PersistentVolumeList) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeList) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeList.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeList proto.InternalMessageInfo - -func (m *PersistentVolumeSource) Reset() { *m = PersistentVolumeSource{} } -func (*PersistentVolumeSource) ProtoMessage() {} -func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{113} -} -func (m *PersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeSource.Merge(m, src) -} -func (m *PersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeSource proto.InternalMessageInfo - -func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } -func (*PersistentVolumeSpec) ProtoMessage() {} -func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{114} -} -func (m *PersistentVolumeSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeSpec.Merge(m, src) -} -func (m *PersistentVolumeSpec) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeSpec) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeSpec proto.InternalMessageInfo - -func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } -func (*PersistentVolumeStatus) ProtoMessage() {} -func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{115} -} -func (m *PersistentVolumeStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersistentVolumeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PersistentVolumeStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersistentVolumeStatus.Merge(m, src) -} -func (m *PersistentVolumeStatus) XXX_Size() int { - return m.Size() -} -func (m *PersistentVolumeStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PersistentVolumeStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PersistentVolumeStatus proto.InternalMessageInfo - -func (m *PhotonPersistentDiskVolumeSource) Reset() { *m = PhotonPersistentDiskVolumeSource{} } -func (*PhotonPersistentDiskVolumeSource) ProtoMessage() {} -func (*PhotonPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{116} -} -func (m *PhotonPersistentDiskVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PhotonPersistentDiskVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PhotonPersistentDiskVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PhotonPersistentDiskVolumeSource.Merge(m, src) -} -func (m *PhotonPersistentDiskVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *PhotonPersistentDiskVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_PhotonPersistentDiskVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PhotonPersistentDiskVolumeSource proto.InternalMessageInfo - -func (m *Pod) Reset() { *m = Pod{} } -func (*Pod) ProtoMessage() {} -func (*Pod) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{117} -} -func (m *Pod) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Pod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Pod) XXX_Merge(src proto.Message) { - xxx_messageInfo_Pod.Merge(m, src) -} -func (m *Pod) XXX_Size() int { - return m.Size() -} -func (m *Pod) XXX_DiscardUnknown() { - xxx_messageInfo_Pod.DiscardUnknown(m) -} - -var xxx_messageInfo_Pod proto.InternalMessageInfo - -func (m *PodAffinity) Reset() { *m = PodAffinity{} } -func (*PodAffinity) ProtoMessage() {} -func (*PodAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{118} -} -func (m *PodAffinity) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodAffinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodAffinity) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodAffinity.Merge(m, src) -} -func (m *PodAffinity) XXX_Size() int { - return m.Size() -} -func (m *PodAffinity) XXX_DiscardUnknown() { - xxx_messageInfo_PodAffinity.DiscardUnknown(m) -} - -var xxx_messageInfo_PodAffinity proto.InternalMessageInfo - -func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } -func (*PodAffinityTerm) ProtoMessage() {} -func (*PodAffinityTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{119} -} -func (m *PodAffinityTerm) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodAffinityTerm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodAffinityTerm) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodAffinityTerm.Merge(m, src) -} -func (m *PodAffinityTerm) XXX_Size() int { - return m.Size() -} -func (m *PodAffinityTerm) XXX_DiscardUnknown() { - xxx_messageInfo_PodAffinityTerm.DiscardUnknown(m) -} - -var xxx_messageInfo_PodAffinityTerm proto.InternalMessageInfo - -func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } -func (*PodAntiAffinity) ProtoMessage() {} -func (*PodAntiAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{120} -} -func (m *PodAntiAffinity) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodAntiAffinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodAntiAffinity) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodAntiAffinity.Merge(m, src) -} -func (m *PodAntiAffinity) XXX_Size() int { - return m.Size() -} -func (m *PodAntiAffinity) XXX_DiscardUnknown() { - xxx_messageInfo_PodAntiAffinity.DiscardUnknown(m) -} - -var xxx_messageInfo_PodAntiAffinity proto.InternalMessageInfo - -func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } -func (*PodAttachOptions) ProtoMessage() {} -func (*PodAttachOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{121} -} -func (m *PodAttachOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodAttachOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodAttachOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodAttachOptions.Merge(m, src) -} -func (m *PodAttachOptions) XXX_Size() int { - return m.Size() -} -func (m *PodAttachOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PodAttachOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PodAttachOptions proto.InternalMessageInfo - -func (m *PodCondition) Reset() { *m = PodCondition{} } -func (*PodCondition) ProtoMessage() {} -func (*PodCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{122} -} -func (m *PodCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodCondition.Merge(m, src) -} -func (m *PodCondition) XXX_Size() int { - return m.Size() -} -func (m *PodCondition) XXX_DiscardUnknown() { - xxx_messageInfo_PodCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_PodCondition proto.InternalMessageInfo - -func (m *PodDNSConfig) Reset() { *m = PodDNSConfig{} } -func (*PodDNSConfig) ProtoMessage() {} -func (*PodDNSConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{123} -} -func (m *PodDNSConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodDNSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodDNSConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodDNSConfig.Merge(m, src) -} -func (m *PodDNSConfig) XXX_Size() int { - return m.Size() -} -func (m *PodDNSConfig) XXX_DiscardUnknown() { - xxx_messageInfo_PodDNSConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_PodDNSConfig proto.InternalMessageInfo - -func (m *PodDNSConfigOption) Reset() { *m = PodDNSConfigOption{} } -func (*PodDNSConfigOption) ProtoMessage() {} -func (*PodDNSConfigOption) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{124} -} -func (m *PodDNSConfigOption) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodDNSConfigOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodDNSConfigOption) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodDNSConfigOption.Merge(m, src) -} -func (m *PodDNSConfigOption) XXX_Size() int { - return m.Size() -} -func (m *PodDNSConfigOption) XXX_DiscardUnknown() { - xxx_messageInfo_PodDNSConfigOption.DiscardUnknown(m) -} - -var xxx_messageInfo_PodDNSConfigOption proto.InternalMessageInfo - -func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } -func (*PodExecOptions) ProtoMessage() {} -func (*PodExecOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{125} -} -func (m *PodExecOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodExecOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodExecOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodExecOptions.Merge(m, src) -} -func (m *PodExecOptions) XXX_Size() int { - return m.Size() -} -func (m *PodExecOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PodExecOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PodExecOptions proto.InternalMessageInfo - -func (m *PodIP) Reset() { *m = PodIP{} } -func (*PodIP) ProtoMessage() {} -func (*PodIP) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{126} -} -func (m *PodIP) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodIP) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodIP.Merge(m, src) -} -func (m *PodIP) XXX_Size() int { - return m.Size() -} -func (m *PodIP) XXX_DiscardUnknown() { - xxx_messageInfo_PodIP.DiscardUnknown(m) -} - -var xxx_messageInfo_PodIP proto.InternalMessageInfo - -func (m *PodList) Reset() { *m = PodList{} } -func (*PodList) ProtoMessage() {} -func (*PodList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{127} -} -func (m *PodList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodList.Merge(m, src) -} -func (m *PodList) XXX_Size() int { - return m.Size() -} -func (m *PodList) XXX_DiscardUnknown() { - xxx_messageInfo_PodList.DiscardUnknown(m) -} - -var xxx_messageInfo_PodList proto.InternalMessageInfo - -func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } -func (*PodLogOptions) ProtoMessage() {} -func (*PodLogOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{128} -} -func (m *PodLogOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodLogOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodLogOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodLogOptions.Merge(m, src) -} -func (m *PodLogOptions) XXX_Size() int { - return m.Size() -} -func (m *PodLogOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PodLogOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PodLogOptions proto.InternalMessageInfo - -func (m *PodPortForwardOptions) Reset() { *m = PodPortForwardOptions{} } -func (*PodPortForwardOptions) ProtoMessage() {} -func (*PodPortForwardOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{129} -} -func (m *PodPortForwardOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodPortForwardOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodPortForwardOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodPortForwardOptions.Merge(m, src) -} -func (m *PodPortForwardOptions) XXX_Size() int { - return m.Size() -} -func (m *PodPortForwardOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PodPortForwardOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PodPortForwardOptions proto.InternalMessageInfo - -func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } -func (*PodProxyOptions) ProtoMessage() {} -func (*PodProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{130} -} -func (m *PodProxyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodProxyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodProxyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodProxyOptions.Merge(m, src) -} -func (m *PodProxyOptions) XXX_Size() int { - return m.Size() -} -func (m *PodProxyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PodProxyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PodProxyOptions proto.InternalMessageInfo - -func (m *PodReadinessGate) Reset() { *m = PodReadinessGate{} } -func (*PodReadinessGate) ProtoMessage() {} -func (*PodReadinessGate) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{131} -} -func (m *PodReadinessGate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodReadinessGate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodReadinessGate) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodReadinessGate.Merge(m, src) -} -func (m *PodReadinessGate) XXX_Size() int { - return m.Size() -} -func (m *PodReadinessGate) XXX_DiscardUnknown() { - xxx_messageInfo_PodReadinessGate.DiscardUnknown(m) -} - -var xxx_messageInfo_PodReadinessGate proto.InternalMessageInfo - -func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } -func (*PodSecurityContext) ProtoMessage() {} -func (*PodSecurityContext) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{132} -} -func (m *PodSecurityContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityContext.Merge(m, src) -} -func (m *PodSecurityContext) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityContext) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityContext.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityContext proto.InternalMessageInfo - -func (m *PodSignature) Reset() { *m = PodSignature{} } -func (*PodSignature) ProtoMessage() {} -func (*PodSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{133} -} -func (m *PodSignature) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSignature) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSignature.Merge(m, src) -} -func (m *PodSignature) XXX_Size() int { - return m.Size() -} -func (m *PodSignature) XXX_DiscardUnknown() { - xxx_messageInfo_PodSignature.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSignature proto.InternalMessageInfo - -func (m *PodSpec) Reset() { *m = PodSpec{} } -func (*PodSpec) ProtoMessage() {} -func (*PodSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{134} -} -func (m *PodSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSpec.Merge(m, src) -} -func (m *PodSpec) XXX_Size() int { - return m.Size() -} -func (m *PodSpec) XXX_DiscardUnknown() { - xxx_messageInfo_PodSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSpec proto.InternalMessageInfo - -func (m *PodStatus) Reset() { *m = PodStatus{} } -func (*PodStatus) ProtoMessage() {} -func (*PodStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{135} -} -func (m *PodStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodStatus.Merge(m, src) -} -func (m *PodStatus) XXX_Size() int { - return m.Size() -} -func (m *PodStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PodStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PodStatus proto.InternalMessageInfo - -func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } -func (*PodStatusResult) ProtoMessage() {} -func (*PodStatusResult) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{136} -} -func (m *PodStatusResult) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodStatusResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodStatusResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodStatusResult.Merge(m, src) -} -func (m *PodStatusResult) XXX_Size() int { - return m.Size() -} -func (m *PodStatusResult) XXX_DiscardUnknown() { - xxx_messageInfo_PodStatusResult.DiscardUnknown(m) -} - -var xxx_messageInfo_PodStatusResult proto.InternalMessageInfo - -func (m *PodTemplate) Reset() { *m = PodTemplate{} } -func (*PodTemplate) ProtoMessage() {} -func (*PodTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{137} -} -func (m *PodTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodTemplate.Merge(m, src) -} -func (m *PodTemplate) XXX_Size() int { - return m.Size() -} -func (m *PodTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_PodTemplate.DiscardUnknown(m) -} - -var xxx_messageInfo_PodTemplate proto.InternalMessageInfo - -func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } -func (*PodTemplateList) ProtoMessage() {} -func (*PodTemplateList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{138} -} -func (m *PodTemplateList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodTemplateList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodTemplateList.Merge(m, src) -} -func (m *PodTemplateList) XXX_Size() int { - return m.Size() -} -func (m *PodTemplateList) XXX_DiscardUnknown() { - xxx_messageInfo_PodTemplateList.DiscardUnknown(m) -} - -var xxx_messageInfo_PodTemplateList proto.InternalMessageInfo - -func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } -func (*PodTemplateSpec) ProtoMessage() {} -func (*PodTemplateSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{139} -} -func (m *PodTemplateSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodTemplateSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodTemplateSpec.Merge(m, src) -} -func (m *PodTemplateSpec) XXX_Size() int { - return m.Size() -} -func (m *PodTemplateSpec) XXX_DiscardUnknown() { - xxx_messageInfo_PodTemplateSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PodTemplateSpec proto.InternalMessageInfo - -func (m *PortworxVolumeSource) Reset() { *m = PortworxVolumeSource{} } -func (*PortworxVolumeSource) ProtoMessage() {} -func (*PortworxVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{140} -} -func (m *PortworxVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PortworxVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PortworxVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_PortworxVolumeSource.Merge(m, src) -} -func (m *PortworxVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *PortworxVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_PortworxVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_PortworxVolumeSource proto.InternalMessageInfo - -func (m *Preconditions) Reset() { *m = Preconditions{} } -func (*Preconditions) ProtoMessage() {} -func (*Preconditions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{141} -} -func (m *Preconditions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Preconditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Preconditions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Preconditions.Merge(m, src) -} -func (m *Preconditions) XXX_Size() int { - return m.Size() -} -func (m *Preconditions) XXX_DiscardUnknown() { - xxx_messageInfo_Preconditions.DiscardUnknown(m) -} - -var xxx_messageInfo_Preconditions proto.InternalMessageInfo - -func (m *PreferAvoidPodsEntry) Reset() { *m = PreferAvoidPodsEntry{} } -func (*PreferAvoidPodsEntry) ProtoMessage() {} -func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{142} -} -func (m *PreferAvoidPodsEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PreferAvoidPodsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PreferAvoidPodsEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreferAvoidPodsEntry.Merge(m, src) -} -func (m *PreferAvoidPodsEntry) XXX_Size() int { - return m.Size() -} -func (m *PreferAvoidPodsEntry) XXX_DiscardUnknown() { - xxx_messageInfo_PreferAvoidPodsEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_PreferAvoidPodsEntry proto.InternalMessageInfo - -func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } -func (*PreferredSchedulingTerm) ProtoMessage() {} -func (*PreferredSchedulingTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{143} -} -func (m *PreferredSchedulingTerm) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PreferredSchedulingTerm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PreferredSchedulingTerm) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreferredSchedulingTerm.Merge(m, src) -} -func (m *PreferredSchedulingTerm) XXX_Size() int { - return m.Size() -} -func (m *PreferredSchedulingTerm) XXX_DiscardUnknown() { - xxx_messageInfo_PreferredSchedulingTerm.DiscardUnknown(m) -} - -var xxx_messageInfo_PreferredSchedulingTerm proto.InternalMessageInfo - -func (m *Probe) Reset() { *m = Probe{} } -func (*Probe) ProtoMessage() {} -func (*Probe) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{144} -} -func (m *Probe) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Probe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Probe) XXX_Merge(src proto.Message) { - xxx_messageInfo_Probe.Merge(m, src) -} -func (m *Probe) XXX_Size() int { - return m.Size() -} -func (m *Probe) XXX_DiscardUnknown() { - xxx_messageInfo_Probe.DiscardUnknown(m) -} - -var xxx_messageInfo_Probe proto.InternalMessageInfo - -func (m *ProjectedVolumeSource) Reset() { *m = ProjectedVolumeSource{} } -func (*ProjectedVolumeSource) ProtoMessage() {} -func (*ProjectedVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{145} -} -func (m *ProjectedVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ProjectedVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ProjectedVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectedVolumeSource.Merge(m, src) -} -func (m *ProjectedVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *ProjectedVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectedVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectedVolumeSource proto.InternalMessageInfo - -func (m *QuobyteVolumeSource) Reset() { *m = QuobyteVolumeSource{} } -func (*QuobyteVolumeSource) ProtoMessage() {} -func (*QuobyteVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{146} -} -func (m *QuobyteVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QuobyteVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *QuobyteVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuobyteVolumeSource.Merge(m, src) -} -func (m *QuobyteVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *QuobyteVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_QuobyteVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_QuobyteVolumeSource proto.InternalMessageInfo - -func (m *RBDPersistentVolumeSource) Reset() { *m = RBDPersistentVolumeSource{} } -func (*RBDPersistentVolumeSource) ProtoMessage() {} -func (*RBDPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{147} -} -func (m *RBDPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RBDPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RBDPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_RBDPersistentVolumeSource.Merge(m, src) -} -func (m *RBDPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *RBDPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_RBDPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_RBDPersistentVolumeSource proto.InternalMessageInfo - -func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } -func (*RBDVolumeSource) ProtoMessage() {} -func (*RBDVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{148} -} -func (m *RBDVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RBDVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RBDVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_RBDVolumeSource.Merge(m, src) -} -func (m *RBDVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *RBDVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_RBDVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_RBDVolumeSource proto.InternalMessageInfo - -func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } -func (*RangeAllocation) ProtoMessage() {} -func (*RangeAllocation) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{149} -} -func (m *RangeAllocation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RangeAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RangeAllocation) XXX_Merge(src proto.Message) { - xxx_messageInfo_RangeAllocation.Merge(m, src) -} -func (m *RangeAllocation) XXX_Size() int { - return m.Size() -} -func (m *RangeAllocation) XXX_DiscardUnknown() { - xxx_messageInfo_RangeAllocation.DiscardUnknown(m) -} - -var xxx_messageInfo_RangeAllocation proto.InternalMessageInfo - -func (m *ReplicationController) Reset() { *m = ReplicationController{} } -func (*ReplicationController) ProtoMessage() {} -func (*ReplicationController) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{150} -} -func (m *ReplicationController) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationController) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationController) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationController.Merge(m, src) -} -func (m *ReplicationController) XXX_Size() int { - return m.Size() -} -func (m *ReplicationController) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationController.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationController proto.InternalMessageInfo - -func (m *ReplicationControllerCondition) Reset() { *m = ReplicationControllerCondition{} } -func (*ReplicationControllerCondition) ProtoMessage() {} -func (*ReplicationControllerCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{151} -} -func (m *ReplicationControllerCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationControllerCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationControllerCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationControllerCondition.Merge(m, src) -} -func (m *ReplicationControllerCondition) XXX_Size() int { - return m.Size() -} -func (m *ReplicationControllerCondition) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationControllerCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationControllerCondition proto.InternalMessageInfo - -func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } -func (*ReplicationControllerList) ProtoMessage() {} -func (*ReplicationControllerList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{152} -} -func (m *ReplicationControllerList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationControllerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationControllerList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationControllerList.Merge(m, src) -} -func (m *ReplicationControllerList) XXX_Size() int { - return m.Size() -} -func (m *ReplicationControllerList) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationControllerList.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationControllerList proto.InternalMessageInfo - -func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } -func (*ReplicationControllerSpec) ProtoMessage() {} -func (*ReplicationControllerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{153} -} -func (m *ReplicationControllerSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationControllerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationControllerSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationControllerSpec.Merge(m, src) -} -func (m *ReplicationControllerSpec) XXX_Size() int { - return m.Size() -} -func (m *ReplicationControllerSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationControllerSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationControllerSpec proto.InternalMessageInfo - -func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } -func (*ReplicationControllerStatus) ProtoMessage() {} -func (*ReplicationControllerStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{154} -} -func (m *ReplicationControllerStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationControllerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationControllerStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationControllerStatus.Merge(m, src) -} -func (m *ReplicationControllerStatus) XXX_Size() int { - return m.Size() -} -func (m *ReplicationControllerStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationControllerStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationControllerStatus proto.InternalMessageInfo - -func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } -func (*ResourceFieldSelector) ProtoMessage() {} -func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{155} -} -func (m *ResourceFieldSelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceFieldSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceFieldSelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceFieldSelector.Merge(m, src) -} -func (m *ResourceFieldSelector) XXX_Size() int { - return m.Size() -} -func (m *ResourceFieldSelector) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceFieldSelector.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceFieldSelector proto.InternalMessageInfo - -func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } -func (*ResourceQuota) ProtoMessage() {} -func (*ResourceQuota) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{156} -} -func (m *ResourceQuota) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceQuota) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceQuota.Merge(m, src) -} -func (m *ResourceQuota) XXX_Size() int { - return m.Size() -} -func (m *ResourceQuota) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceQuota.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceQuota proto.InternalMessageInfo - -func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } -func (*ResourceQuotaList) ProtoMessage() {} -func (*ResourceQuotaList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{157} -} -func (m *ResourceQuotaList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceQuotaList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceQuotaList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceQuotaList.Merge(m, src) -} -func (m *ResourceQuotaList) XXX_Size() int { - return m.Size() -} -func (m *ResourceQuotaList) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceQuotaList.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceQuotaList proto.InternalMessageInfo - -func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } -func (*ResourceQuotaSpec) ProtoMessage() {} -func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{158} -} -func (m *ResourceQuotaSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceQuotaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceQuotaSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceQuotaSpec.Merge(m, src) -} -func (m *ResourceQuotaSpec) XXX_Size() int { - return m.Size() -} -func (m *ResourceQuotaSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceQuotaSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceQuotaSpec proto.InternalMessageInfo - -func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } -func (*ResourceQuotaStatus) ProtoMessage() {} -func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{159} -} -func (m *ResourceQuotaStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceQuotaStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceQuotaStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceQuotaStatus.Merge(m, src) -} -func (m *ResourceQuotaStatus) XXX_Size() int { - return m.Size() -} -func (m *ResourceQuotaStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceQuotaStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceQuotaStatus proto.InternalMessageInfo - -func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } -func (*ResourceRequirements) ProtoMessage() {} -func (*ResourceRequirements) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{160} -} -func (m *ResourceRequirements) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResourceRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ResourceRequirements) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceRequirements.Merge(m, src) -} -func (m *ResourceRequirements) XXX_Size() int { - return m.Size() -} -func (m *ResourceRequirements) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceRequirements.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceRequirements proto.InternalMessageInfo - -func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } -func (*SELinuxOptions) ProtoMessage() {} -func (*SELinuxOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{161} -} -func (m *SELinuxOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SELinuxOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SELinuxOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SELinuxOptions.Merge(m, src) -} -func (m *SELinuxOptions) XXX_Size() int { - return m.Size() -} -func (m *SELinuxOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SELinuxOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SELinuxOptions proto.InternalMessageInfo - -func (m *ScaleIOPersistentVolumeSource) Reset() { *m = ScaleIOPersistentVolumeSource{} } -func (*ScaleIOPersistentVolumeSource) ProtoMessage() {} -func (*ScaleIOPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{162} -} -func (m *ScaleIOPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleIOPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleIOPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleIOPersistentVolumeSource.Merge(m, src) -} -func (m *ScaleIOPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *ScaleIOPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleIOPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleIOPersistentVolumeSource proto.InternalMessageInfo - -func (m *ScaleIOVolumeSource) Reset() { *m = ScaleIOVolumeSource{} } -func (*ScaleIOVolumeSource) ProtoMessage() {} -func (*ScaleIOVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{163} -} -func (m *ScaleIOVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleIOVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleIOVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleIOVolumeSource.Merge(m, src) -} -func (m *ScaleIOVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *ScaleIOVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleIOVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleIOVolumeSource proto.InternalMessageInfo - -func (m *ScopeSelector) Reset() { *m = ScopeSelector{} } -func (*ScopeSelector) ProtoMessage() {} -func (*ScopeSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{164} -} -func (m *ScopeSelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScopeSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScopeSelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScopeSelector.Merge(m, src) -} -func (m *ScopeSelector) XXX_Size() int { - return m.Size() -} -func (m *ScopeSelector) XXX_DiscardUnknown() { - xxx_messageInfo_ScopeSelector.DiscardUnknown(m) -} - -var xxx_messageInfo_ScopeSelector proto.InternalMessageInfo - -func (m *ScopedResourceSelectorRequirement) Reset() { *m = ScopedResourceSelectorRequirement{} } -func (*ScopedResourceSelectorRequirement) ProtoMessage() {} -func (*ScopedResourceSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{165} -} -func (m *ScopedResourceSelectorRequirement) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScopedResourceSelectorRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScopedResourceSelectorRequirement) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScopedResourceSelectorRequirement.Merge(m, src) -} -func (m *ScopedResourceSelectorRequirement) XXX_Size() int { - return m.Size() -} -func (m *ScopedResourceSelectorRequirement) XXX_DiscardUnknown() { - xxx_messageInfo_ScopedResourceSelectorRequirement.DiscardUnknown(m) -} - -var xxx_messageInfo_ScopedResourceSelectorRequirement proto.InternalMessageInfo - -func (m *Secret) Reset() { *m = Secret{} } -func (*Secret) ProtoMessage() {} -func (*Secret) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{166} -} -func (m *Secret) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Secret) XXX_Merge(src proto.Message) { - xxx_messageInfo_Secret.Merge(m, src) -} -func (m *Secret) XXX_Size() int { - return m.Size() -} -func (m *Secret) XXX_DiscardUnknown() { - xxx_messageInfo_Secret.DiscardUnknown(m) -} - -var xxx_messageInfo_Secret proto.InternalMessageInfo - -func (m *SecretEnvSource) Reset() { *m = SecretEnvSource{} } -func (*SecretEnvSource) ProtoMessage() {} -func (*SecretEnvSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{167} -} -func (m *SecretEnvSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretEnvSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecretEnvSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretEnvSource.Merge(m, src) -} -func (m *SecretEnvSource) XXX_Size() int { - return m.Size() -} -func (m *SecretEnvSource) XXX_DiscardUnknown() { - xxx_messageInfo_SecretEnvSource.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretEnvSource proto.InternalMessageInfo - -func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } -func (*SecretKeySelector) ProtoMessage() {} -func (*SecretKeySelector) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{168} -} -func (m *SecretKeySelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretKeySelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecretKeySelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretKeySelector.Merge(m, src) -} -func (m *SecretKeySelector) XXX_Size() int { - return m.Size() -} -func (m *SecretKeySelector) XXX_DiscardUnknown() { - xxx_messageInfo_SecretKeySelector.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretKeySelector proto.InternalMessageInfo - -func (m *SecretList) Reset() { *m = SecretList{} } -func (*SecretList) ProtoMessage() {} -func (*SecretList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{169} -} -func (m *SecretList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecretList) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretList.Merge(m, src) -} -func (m *SecretList) XXX_Size() int { - return m.Size() -} -func (m *SecretList) XXX_DiscardUnknown() { - xxx_messageInfo_SecretList.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretList proto.InternalMessageInfo - -func (m *SecretProjection) Reset() { *m = SecretProjection{} } -func (*SecretProjection) ProtoMessage() {} -func (*SecretProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{170} -} -func (m *SecretProjection) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecretProjection) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretProjection.Merge(m, src) -} -func (m *SecretProjection) XXX_Size() int { - return m.Size() -} -func (m *SecretProjection) XXX_DiscardUnknown() { - xxx_messageInfo_SecretProjection.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretProjection proto.InternalMessageInfo - -func (m *SecretReference) Reset() { *m = SecretReference{} } -func (*SecretReference) ProtoMessage() {} -func (*SecretReference) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{171} -} -func (m *SecretReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecretReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretReference.Merge(m, src) -} -func (m *SecretReference) XXX_Size() int { - return m.Size() -} -func (m *SecretReference) XXX_DiscardUnknown() { - xxx_messageInfo_SecretReference.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretReference proto.InternalMessageInfo - -func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } -func (*SecretVolumeSource) ProtoMessage() {} -func (*SecretVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{172} -} -func (m *SecretVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecretVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecretVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecretVolumeSource.Merge(m, src) -} -func (m *SecretVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *SecretVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_SecretVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_SecretVolumeSource proto.InternalMessageInfo - -func (m *SecurityContext) Reset() { *m = SecurityContext{} } -func (*SecurityContext) ProtoMessage() {} -func (*SecurityContext) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{173} -} -func (m *SecurityContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SecurityContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityContext.Merge(m, src) -} -func (m *SecurityContext) XXX_Size() int { - return m.Size() -} -func (m *SecurityContext) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityContext.DiscardUnknown(m) -} - -var xxx_messageInfo_SecurityContext proto.InternalMessageInfo - -func (m *SerializedReference) Reset() { *m = SerializedReference{} } -func (*SerializedReference) ProtoMessage() {} -func (*SerializedReference) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{174} -} -func (m *SerializedReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SerializedReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SerializedReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_SerializedReference.Merge(m, src) -} -func (m *SerializedReference) XXX_Size() int { - return m.Size() -} -func (m *SerializedReference) XXX_DiscardUnknown() { - xxx_messageInfo_SerializedReference.DiscardUnknown(m) -} - -var xxx_messageInfo_SerializedReference proto.InternalMessageInfo - -func (m *Service) Reset() { *m = Service{} } -func (*Service) ProtoMessage() {} -func (*Service) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{175} -} -func (m *Service) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Service) XXX_Merge(src proto.Message) { - xxx_messageInfo_Service.Merge(m, src) -} -func (m *Service) XXX_Size() int { - return m.Size() -} -func (m *Service) XXX_DiscardUnknown() { - xxx_messageInfo_Service.DiscardUnknown(m) -} - -var xxx_messageInfo_Service proto.InternalMessageInfo - -func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } -func (*ServiceAccount) ProtoMessage() {} -func (*ServiceAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{176} -} -func (m *ServiceAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceAccount.Merge(m, src) -} -func (m *ServiceAccount) XXX_Size() int { - return m.Size() -} -func (m *ServiceAccount) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceAccount proto.InternalMessageInfo - -func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } -func (*ServiceAccountList) ProtoMessage() {} -func (*ServiceAccountList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{177} -} -func (m *ServiceAccountList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceAccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceAccountList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceAccountList.Merge(m, src) -} -func (m *ServiceAccountList) XXX_Size() int { - return m.Size() -} -func (m *ServiceAccountList) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceAccountList.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceAccountList proto.InternalMessageInfo - -func (m *ServiceAccountTokenProjection) Reset() { *m = ServiceAccountTokenProjection{} } -func (*ServiceAccountTokenProjection) ProtoMessage() {} -func (*ServiceAccountTokenProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{178} -} -func (m *ServiceAccountTokenProjection) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceAccountTokenProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceAccountTokenProjection) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceAccountTokenProjection.Merge(m, src) -} -func (m *ServiceAccountTokenProjection) XXX_Size() int { - return m.Size() -} -func (m *ServiceAccountTokenProjection) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceAccountTokenProjection.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceAccountTokenProjection proto.InternalMessageInfo - -func (m *ServiceList) Reset() { *m = ServiceList{} } -func (*ServiceList) ProtoMessage() {} -func (*ServiceList) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{179} -} -func (m *ServiceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceList.Merge(m, src) -} -func (m *ServiceList) XXX_Size() int { - return m.Size() -} -func (m *ServiceList) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceList.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceList proto.InternalMessageInfo - -func (m *ServicePort) Reset() { *m = ServicePort{} } -func (*ServicePort) ProtoMessage() {} -func (*ServicePort) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{180} -} -func (m *ServicePort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServicePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServicePort) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServicePort.Merge(m, src) -} -func (m *ServicePort) XXX_Size() int { - return m.Size() -} -func (m *ServicePort) XXX_DiscardUnknown() { - xxx_messageInfo_ServicePort.DiscardUnknown(m) -} - -var xxx_messageInfo_ServicePort proto.InternalMessageInfo - -func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } -func (*ServiceProxyOptions) ProtoMessage() {} -func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{181} -} -func (m *ServiceProxyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceProxyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceProxyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceProxyOptions.Merge(m, src) -} -func (m *ServiceProxyOptions) XXX_Size() int { - return m.Size() -} -func (m *ServiceProxyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceProxyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceProxyOptions proto.InternalMessageInfo - -func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } -func (*ServiceSpec) ProtoMessage() {} -func (*ServiceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{182} -} -func (m *ServiceSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceSpec.Merge(m, src) -} -func (m *ServiceSpec) XXX_Size() int { - return m.Size() -} -func (m *ServiceSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceSpec proto.InternalMessageInfo - -func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } -func (*ServiceStatus) ProtoMessage() {} -func (*ServiceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{183} -} -func (m *ServiceStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServiceStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceStatus.Merge(m, src) -} -func (m *ServiceStatus) XXX_Size() int { - return m.Size() -} -func (m *ServiceStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceStatus proto.InternalMessageInfo - -func (m *SessionAffinityConfig) Reset() { *m = SessionAffinityConfig{} } -func (*SessionAffinityConfig) ProtoMessage() {} -func (*SessionAffinityConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{184} -} -func (m *SessionAffinityConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SessionAffinityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SessionAffinityConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_SessionAffinityConfig.Merge(m, src) -} -func (m *SessionAffinityConfig) XXX_Size() int { - return m.Size() -} -func (m *SessionAffinityConfig) XXX_DiscardUnknown() { - xxx_messageInfo_SessionAffinityConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_SessionAffinityConfig proto.InternalMessageInfo - -func (m *StorageOSPersistentVolumeSource) Reset() { *m = StorageOSPersistentVolumeSource{} } -func (*StorageOSPersistentVolumeSource) ProtoMessage() {} -func (*StorageOSPersistentVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{185} -} -func (m *StorageOSPersistentVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageOSPersistentVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StorageOSPersistentVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageOSPersistentVolumeSource.Merge(m, src) -} -func (m *StorageOSPersistentVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *StorageOSPersistentVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_StorageOSPersistentVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_StorageOSPersistentVolumeSource proto.InternalMessageInfo - -func (m *StorageOSVolumeSource) Reset() { *m = StorageOSVolumeSource{} } -func (*StorageOSVolumeSource) ProtoMessage() {} -func (*StorageOSVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{186} -} -func (m *StorageOSVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageOSVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StorageOSVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageOSVolumeSource.Merge(m, src) -} -func (m *StorageOSVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *StorageOSVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_StorageOSVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_StorageOSVolumeSource proto.InternalMessageInfo - -func (m *Sysctl) Reset() { *m = Sysctl{} } -func (*Sysctl) ProtoMessage() {} -func (*Sysctl) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{187} -} -func (m *Sysctl) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Sysctl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Sysctl) XXX_Merge(src proto.Message) { - xxx_messageInfo_Sysctl.Merge(m, src) -} -func (m *Sysctl) XXX_Size() int { - return m.Size() -} -func (m *Sysctl) XXX_DiscardUnknown() { - xxx_messageInfo_Sysctl.DiscardUnknown(m) -} - -var xxx_messageInfo_Sysctl proto.InternalMessageInfo - -func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } -func (*TCPSocketAction) ProtoMessage() {} -func (*TCPSocketAction) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{188} -} -func (m *TCPSocketAction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TCPSocketAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TCPSocketAction) XXX_Merge(src proto.Message) { - xxx_messageInfo_TCPSocketAction.Merge(m, src) -} -func (m *TCPSocketAction) XXX_Size() int { - return m.Size() -} -func (m *TCPSocketAction) XXX_DiscardUnknown() { - xxx_messageInfo_TCPSocketAction.DiscardUnknown(m) -} - -var xxx_messageInfo_TCPSocketAction proto.InternalMessageInfo - -func (m *Taint) Reset() { *m = Taint{} } -func (*Taint) ProtoMessage() {} -func (*Taint) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{189} -} -func (m *Taint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Taint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Taint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Taint.Merge(m, src) -} -func (m *Taint) XXX_Size() int { - return m.Size() -} -func (m *Taint) XXX_DiscardUnknown() { - xxx_messageInfo_Taint.DiscardUnknown(m) -} - -var xxx_messageInfo_Taint proto.InternalMessageInfo - -func (m *Toleration) Reset() { *m = Toleration{} } -func (*Toleration) ProtoMessage() {} -func (*Toleration) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{190} -} -func (m *Toleration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Toleration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Toleration) XXX_Merge(src proto.Message) { - xxx_messageInfo_Toleration.Merge(m, src) -} -func (m *Toleration) XXX_Size() int { - return m.Size() -} -func (m *Toleration) XXX_DiscardUnknown() { - xxx_messageInfo_Toleration.DiscardUnknown(m) -} - -var xxx_messageInfo_Toleration proto.InternalMessageInfo - -func (m *TopologySelectorLabelRequirement) Reset() { *m = TopologySelectorLabelRequirement{} } -func (*TopologySelectorLabelRequirement) ProtoMessage() {} -func (*TopologySelectorLabelRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{191} -} -func (m *TopologySelectorLabelRequirement) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TopologySelectorLabelRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TopologySelectorLabelRequirement) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopologySelectorLabelRequirement.Merge(m, src) -} -func (m *TopologySelectorLabelRequirement) XXX_Size() int { - return m.Size() -} -func (m *TopologySelectorLabelRequirement) XXX_DiscardUnknown() { - xxx_messageInfo_TopologySelectorLabelRequirement.DiscardUnknown(m) -} - -var xxx_messageInfo_TopologySelectorLabelRequirement proto.InternalMessageInfo - -func (m *TopologySelectorTerm) Reset() { *m = TopologySelectorTerm{} } -func (*TopologySelectorTerm) ProtoMessage() {} -func (*TopologySelectorTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{192} -} -func (m *TopologySelectorTerm) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TopologySelectorTerm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TopologySelectorTerm) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopologySelectorTerm.Merge(m, src) -} -func (m *TopologySelectorTerm) XXX_Size() int { - return m.Size() -} -func (m *TopologySelectorTerm) XXX_DiscardUnknown() { - xxx_messageInfo_TopologySelectorTerm.DiscardUnknown(m) -} - -var xxx_messageInfo_TopologySelectorTerm proto.InternalMessageInfo - -func (m *TopologySpreadConstraint) Reset() { *m = TopologySpreadConstraint{} } -func (*TopologySpreadConstraint) ProtoMessage() {} -func (*TopologySpreadConstraint) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{193} -} -func (m *TopologySpreadConstraint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TopologySpreadConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TopologySpreadConstraint) XXX_Merge(src proto.Message) { - xxx_messageInfo_TopologySpreadConstraint.Merge(m, src) -} -func (m *TopologySpreadConstraint) XXX_Size() int { - return m.Size() -} -func (m *TopologySpreadConstraint) XXX_DiscardUnknown() { - xxx_messageInfo_TopologySpreadConstraint.DiscardUnknown(m) -} - -var xxx_messageInfo_TopologySpreadConstraint proto.InternalMessageInfo - -func (m *TypedLocalObjectReference) Reset() { *m = TypedLocalObjectReference{} } -func (*TypedLocalObjectReference) ProtoMessage() {} -func (*TypedLocalObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{194} -} -func (m *TypedLocalObjectReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TypedLocalObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TypedLocalObjectReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypedLocalObjectReference.Merge(m, src) -} -func (m *TypedLocalObjectReference) XXX_Size() int { - return m.Size() -} -func (m *TypedLocalObjectReference) XXX_DiscardUnknown() { - xxx_messageInfo_TypedLocalObjectReference.DiscardUnknown(m) -} - -var xxx_messageInfo_TypedLocalObjectReference proto.InternalMessageInfo - -func (m *Volume) Reset() { *m = Volume{} } -func (*Volume) ProtoMessage() {} -func (*Volume) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{195} -} -func (m *Volume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Volume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Volume) XXX_Merge(src proto.Message) { - xxx_messageInfo_Volume.Merge(m, src) -} -func (m *Volume) XXX_Size() int { - return m.Size() -} -func (m *Volume) XXX_DiscardUnknown() { - xxx_messageInfo_Volume.DiscardUnknown(m) -} - -var xxx_messageInfo_Volume proto.InternalMessageInfo - -func (m *VolumeDevice) Reset() { *m = VolumeDevice{} } -func (*VolumeDevice) ProtoMessage() {} -func (*VolumeDevice) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{196} -} -func (m *VolumeDevice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeDevice) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeDevice.Merge(m, src) -} -func (m *VolumeDevice) XXX_Size() int { - return m.Size() -} -func (m *VolumeDevice) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeDevice.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeDevice proto.InternalMessageInfo - -func (m *VolumeMount) Reset() { *m = VolumeMount{} } -func (*VolumeMount) ProtoMessage() {} -func (*VolumeMount) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{197} -} -func (m *VolumeMount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeMount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeMount) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeMount.Merge(m, src) -} -func (m *VolumeMount) XXX_Size() int { - return m.Size() -} -func (m *VolumeMount) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeMount.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeMount proto.InternalMessageInfo - -func (m *VolumeNodeAffinity) Reset() { *m = VolumeNodeAffinity{} } -func (*VolumeNodeAffinity) ProtoMessage() {} -func (*VolumeNodeAffinity) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{198} -} -func (m *VolumeNodeAffinity) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeNodeAffinity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeNodeAffinity) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeNodeAffinity.Merge(m, src) -} -func (m *VolumeNodeAffinity) XXX_Size() int { - return m.Size() -} -func (m *VolumeNodeAffinity) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeNodeAffinity.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeNodeAffinity proto.InternalMessageInfo - -func (m *VolumeProjection) Reset() { *m = VolumeProjection{} } -func (*VolumeProjection) ProtoMessage() {} -func (*VolumeProjection) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{199} -} -func (m *VolumeProjection) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeProjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeProjection) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeProjection.Merge(m, src) -} -func (m *VolumeProjection) XXX_Size() int { - return m.Size() -} -func (m *VolumeProjection) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeProjection.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeProjection proto.InternalMessageInfo - -func (m *VolumeSource) Reset() { *m = VolumeSource{} } -func (*VolumeSource) ProtoMessage() {} -func (*VolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{200} -} -func (m *VolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeSource.Merge(m, src) -} -func (m *VolumeSource) XXX_Size() int { - return m.Size() -} -func (m *VolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeSource proto.InternalMessageInfo - -func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } -func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} -func (*VsphereVirtualDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{201} -} -func (m *VsphereVirtualDiskVolumeSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VsphereVirtualDiskVolumeSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VsphereVirtualDiskVolumeSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_VsphereVirtualDiskVolumeSource.Merge(m, src) -} -func (m *VsphereVirtualDiskVolumeSource) XXX_Size() int { - return m.Size() -} -func (m *VsphereVirtualDiskVolumeSource) XXX_DiscardUnknown() { - xxx_messageInfo_VsphereVirtualDiskVolumeSource.DiscardUnknown(m) -} - -var xxx_messageInfo_VsphereVirtualDiskVolumeSource proto.InternalMessageInfo - -func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } -func (*WeightedPodAffinityTerm) ProtoMessage() {} -func (*WeightedPodAffinityTerm) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{202} -} -func (m *WeightedPodAffinityTerm) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WeightedPodAffinityTerm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WeightedPodAffinityTerm) XXX_Merge(src proto.Message) { - xxx_messageInfo_WeightedPodAffinityTerm.Merge(m, src) -} -func (m *WeightedPodAffinityTerm) XXX_Size() int { - return m.Size() -} -func (m *WeightedPodAffinityTerm) XXX_DiscardUnknown() { - xxx_messageInfo_WeightedPodAffinityTerm.DiscardUnknown(m) -} - -var xxx_messageInfo_WeightedPodAffinityTerm proto.InternalMessageInfo - -func (m *WindowsSecurityContextOptions) Reset() { *m = WindowsSecurityContextOptions{} } -func (*WindowsSecurityContextOptions) ProtoMessage() {} -func (*WindowsSecurityContextOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_83c10c24ec417dc9, []int{203} -} -func (m *WindowsSecurityContextOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WindowsSecurityContextOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WindowsSecurityContextOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_WindowsSecurityContextOptions.Merge(m, src) -} -func (m *WindowsSecurityContextOptions) XXX_Size() int { - return m.Size() -} -func (m *WindowsSecurityContextOptions) XXX_DiscardUnknown() { - xxx_messageInfo_WindowsSecurityContextOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_WindowsSecurityContextOptions proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AWSElasticBlockStoreVolumeSource)(nil), "k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource") - proto.RegisterType((*Affinity)(nil), "k8s.io.api.core.v1.Affinity") - proto.RegisterType((*AttachedVolume)(nil), "k8s.io.api.core.v1.AttachedVolume") - proto.RegisterType((*AvoidPods)(nil), "k8s.io.api.core.v1.AvoidPods") - proto.RegisterType((*AzureDiskVolumeSource)(nil), "k8s.io.api.core.v1.AzureDiskVolumeSource") - proto.RegisterType((*AzureFilePersistentVolumeSource)(nil), "k8s.io.api.core.v1.AzureFilePersistentVolumeSource") - proto.RegisterType((*AzureFileVolumeSource)(nil), "k8s.io.api.core.v1.AzureFileVolumeSource") - proto.RegisterType((*Binding)(nil), "k8s.io.api.core.v1.Binding") - proto.RegisterType((*CSIPersistentVolumeSource)(nil), "k8s.io.api.core.v1.CSIPersistentVolumeSource") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.CSIPersistentVolumeSource.VolumeAttributesEntry") - proto.RegisterType((*CSIVolumeSource)(nil), "k8s.io.api.core.v1.CSIVolumeSource") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.CSIVolumeSource.VolumeAttributesEntry") - proto.RegisterType((*Capabilities)(nil), "k8s.io.api.core.v1.Capabilities") - proto.RegisterType((*CephFSPersistentVolumeSource)(nil), "k8s.io.api.core.v1.CephFSPersistentVolumeSource") - proto.RegisterType((*CephFSVolumeSource)(nil), "k8s.io.api.core.v1.CephFSVolumeSource") - proto.RegisterType((*CinderPersistentVolumeSource)(nil), "k8s.io.api.core.v1.CinderPersistentVolumeSource") - proto.RegisterType((*CinderVolumeSource)(nil), "k8s.io.api.core.v1.CinderVolumeSource") - proto.RegisterType((*ClientIPConfig)(nil), "k8s.io.api.core.v1.ClientIPConfig") - proto.RegisterType((*ComponentCondition)(nil), "k8s.io.api.core.v1.ComponentCondition") - proto.RegisterType((*ComponentStatus)(nil), "k8s.io.api.core.v1.ComponentStatus") - proto.RegisterType((*ComponentStatusList)(nil), "k8s.io.api.core.v1.ComponentStatusList") - proto.RegisterType((*ConfigMap)(nil), "k8s.io.api.core.v1.ConfigMap") - proto.RegisterMapType((map[string][]byte)(nil), "k8s.io.api.core.v1.ConfigMap.BinaryDataEntry") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.ConfigMap.DataEntry") - proto.RegisterType((*ConfigMapEnvSource)(nil), "k8s.io.api.core.v1.ConfigMapEnvSource") - proto.RegisterType((*ConfigMapKeySelector)(nil), "k8s.io.api.core.v1.ConfigMapKeySelector") - proto.RegisterType((*ConfigMapList)(nil), "k8s.io.api.core.v1.ConfigMapList") - proto.RegisterType((*ConfigMapNodeConfigSource)(nil), "k8s.io.api.core.v1.ConfigMapNodeConfigSource") - proto.RegisterType((*ConfigMapProjection)(nil), "k8s.io.api.core.v1.ConfigMapProjection") - proto.RegisterType((*ConfigMapVolumeSource)(nil), "k8s.io.api.core.v1.ConfigMapVolumeSource") - proto.RegisterType((*Container)(nil), "k8s.io.api.core.v1.Container") - proto.RegisterType((*ContainerImage)(nil), "k8s.io.api.core.v1.ContainerImage") - proto.RegisterType((*ContainerPort)(nil), "k8s.io.api.core.v1.ContainerPort") - proto.RegisterType((*ContainerState)(nil), "k8s.io.api.core.v1.ContainerState") - proto.RegisterType((*ContainerStateRunning)(nil), "k8s.io.api.core.v1.ContainerStateRunning") - proto.RegisterType((*ContainerStateTerminated)(nil), "k8s.io.api.core.v1.ContainerStateTerminated") - proto.RegisterType((*ContainerStateWaiting)(nil), "k8s.io.api.core.v1.ContainerStateWaiting") - proto.RegisterType((*ContainerStatus)(nil), "k8s.io.api.core.v1.ContainerStatus") - proto.RegisterType((*DaemonEndpoint)(nil), "k8s.io.api.core.v1.DaemonEndpoint") - proto.RegisterType((*DownwardAPIProjection)(nil), "k8s.io.api.core.v1.DownwardAPIProjection") - proto.RegisterType((*DownwardAPIVolumeFile)(nil), "k8s.io.api.core.v1.DownwardAPIVolumeFile") - proto.RegisterType((*DownwardAPIVolumeSource)(nil), "k8s.io.api.core.v1.DownwardAPIVolumeSource") - proto.RegisterType((*EmptyDirVolumeSource)(nil), "k8s.io.api.core.v1.EmptyDirVolumeSource") - proto.RegisterType((*EndpointAddress)(nil), "k8s.io.api.core.v1.EndpointAddress") - proto.RegisterType((*EndpointPort)(nil), "k8s.io.api.core.v1.EndpointPort") - proto.RegisterType((*EndpointSubset)(nil), "k8s.io.api.core.v1.EndpointSubset") - proto.RegisterType((*Endpoints)(nil), "k8s.io.api.core.v1.Endpoints") - proto.RegisterType((*EndpointsList)(nil), "k8s.io.api.core.v1.EndpointsList") - proto.RegisterType((*EnvFromSource)(nil), "k8s.io.api.core.v1.EnvFromSource") - proto.RegisterType((*EnvVar)(nil), "k8s.io.api.core.v1.EnvVar") - proto.RegisterType((*EnvVarSource)(nil), "k8s.io.api.core.v1.EnvVarSource") - proto.RegisterType((*EphemeralContainer)(nil), "k8s.io.api.core.v1.EphemeralContainer") - proto.RegisterType((*EphemeralContainerCommon)(nil), "k8s.io.api.core.v1.EphemeralContainerCommon") - proto.RegisterType((*EphemeralContainers)(nil), "k8s.io.api.core.v1.EphemeralContainers") - proto.RegisterType((*Event)(nil), "k8s.io.api.core.v1.Event") - proto.RegisterType((*EventList)(nil), "k8s.io.api.core.v1.EventList") - proto.RegisterType((*EventSeries)(nil), "k8s.io.api.core.v1.EventSeries") - proto.RegisterType((*EventSource)(nil), "k8s.io.api.core.v1.EventSource") - proto.RegisterType((*ExecAction)(nil), "k8s.io.api.core.v1.ExecAction") - proto.RegisterType((*FCVolumeSource)(nil), "k8s.io.api.core.v1.FCVolumeSource") - proto.RegisterType((*FlexPersistentVolumeSource)(nil), "k8s.io.api.core.v1.FlexPersistentVolumeSource") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.FlexPersistentVolumeSource.OptionsEntry") - proto.RegisterType((*FlexVolumeSource)(nil), "k8s.io.api.core.v1.FlexVolumeSource") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.FlexVolumeSource.OptionsEntry") - proto.RegisterType((*FlockerVolumeSource)(nil), "k8s.io.api.core.v1.FlockerVolumeSource") - proto.RegisterType((*GCEPersistentDiskVolumeSource)(nil), "k8s.io.api.core.v1.GCEPersistentDiskVolumeSource") - proto.RegisterType((*GitRepoVolumeSource)(nil), "k8s.io.api.core.v1.GitRepoVolumeSource") - proto.RegisterType((*GlusterfsPersistentVolumeSource)(nil), "k8s.io.api.core.v1.GlusterfsPersistentVolumeSource") - proto.RegisterType((*GlusterfsVolumeSource)(nil), "k8s.io.api.core.v1.GlusterfsVolumeSource") - proto.RegisterType((*HTTPGetAction)(nil), "k8s.io.api.core.v1.HTTPGetAction") - proto.RegisterType((*HTTPHeader)(nil), "k8s.io.api.core.v1.HTTPHeader") - proto.RegisterType((*Handler)(nil), "k8s.io.api.core.v1.Handler") - proto.RegisterType((*HostAlias)(nil), "k8s.io.api.core.v1.HostAlias") - proto.RegisterType((*HostPathVolumeSource)(nil), "k8s.io.api.core.v1.HostPathVolumeSource") - proto.RegisterType((*ISCSIPersistentVolumeSource)(nil), "k8s.io.api.core.v1.ISCSIPersistentVolumeSource") - proto.RegisterType((*ISCSIVolumeSource)(nil), "k8s.io.api.core.v1.ISCSIVolumeSource") - proto.RegisterType((*KeyToPath)(nil), "k8s.io.api.core.v1.KeyToPath") - proto.RegisterType((*Lifecycle)(nil), "k8s.io.api.core.v1.Lifecycle") - proto.RegisterType((*LimitRange)(nil), "k8s.io.api.core.v1.LimitRange") - proto.RegisterType((*LimitRangeItem)(nil), "k8s.io.api.core.v1.LimitRangeItem") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.LimitRangeItem.DefaultEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.LimitRangeItem.DefaultRequestEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.LimitRangeItem.MaxEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.LimitRangeItem.MaxLimitRequestRatioEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.LimitRangeItem.MinEntry") - proto.RegisterType((*LimitRangeList)(nil), "k8s.io.api.core.v1.LimitRangeList") - proto.RegisterType((*LimitRangeSpec)(nil), "k8s.io.api.core.v1.LimitRangeSpec") - proto.RegisterType((*List)(nil), "k8s.io.api.core.v1.List") - proto.RegisterType((*LoadBalancerIngress)(nil), "k8s.io.api.core.v1.LoadBalancerIngress") - proto.RegisterType((*LoadBalancerStatus)(nil), "k8s.io.api.core.v1.LoadBalancerStatus") - proto.RegisterType((*LocalObjectReference)(nil), "k8s.io.api.core.v1.LocalObjectReference") - proto.RegisterType((*LocalVolumeSource)(nil), "k8s.io.api.core.v1.LocalVolumeSource") - proto.RegisterType((*NFSVolumeSource)(nil), "k8s.io.api.core.v1.NFSVolumeSource") - proto.RegisterType((*Namespace)(nil), "k8s.io.api.core.v1.Namespace") - proto.RegisterType((*NamespaceCondition)(nil), "k8s.io.api.core.v1.NamespaceCondition") - proto.RegisterType((*NamespaceList)(nil), "k8s.io.api.core.v1.NamespaceList") - proto.RegisterType((*NamespaceSpec)(nil), "k8s.io.api.core.v1.NamespaceSpec") - proto.RegisterType((*NamespaceStatus)(nil), "k8s.io.api.core.v1.NamespaceStatus") - proto.RegisterType((*Node)(nil), "k8s.io.api.core.v1.Node") - proto.RegisterType((*NodeAddress)(nil), "k8s.io.api.core.v1.NodeAddress") - proto.RegisterType((*NodeAffinity)(nil), "k8s.io.api.core.v1.NodeAffinity") - proto.RegisterType((*NodeCondition)(nil), "k8s.io.api.core.v1.NodeCondition") - proto.RegisterType((*NodeConfigSource)(nil), "k8s.io.api.core.v1.NodeConfigSource") - proto.RegisterType((*NodeConfigStatus)(nil), "k8s.io.api.core.v1.NodeConfigStatus") - proto.RegisterType((*NodeDaemonEndpoints)(nil), "k8s.io.api.core.v1.NodeDaemonEndpoints") - proto.RegisterType((*NodeList)(nil), "k8s.io.api.core.v1.NodeList") - proto.RegisterType((*NodeProxyOptions)(nil), "k8s.io.api.core.v1.NodeProxyOptions") - proto.RegisterType((*NodeResources)(nil), "k8s.io.api.core.v1.NodeResources") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.NodeResources.CapacityEntry") - proto.RegisterType((*NodeSelector)(nil), "k8s.io.api.core.v1.NodeSelector") - proto.RegisterType((*NodeSelectorRequirement)(nil), "k8s.io.api.core.v1.NodeSelectorRequirement") - proto.RegisterType((*NodeSelectorTerm)(nil), "k8s.io.api.core.v1.NodeSelectorTerm") - proto.RegisterType((*NodeSpec)(nil), "k8s.io.api.core.v1.NodeSpec") - proto.RegisterType((*NodeStatus)(nil), "k8s.io.api.core.v1.NodeStatus") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.NodeStatus.AllocatableEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.NodeStatus.CapacityEntry") - proto.RegisterType((*NodeSystemInfo)(nil), "k8s.io.api.core.v1.NodeSystemInfo") - proto.RegisterType((*ObjectFieldSelector)(nil), "k8s.io.api.core.v1.ObjectFieldSelector") - proto.RegisterType((*ObjectReference)(nil), "k8s.io.api.core.v1.ObjectReference") - proto.RegisterType((*PersistentVolume)(nil), "k8s.io.api.core.v1.PersistentVolume") - proto.RegisterType((*PersistentVolumeClaim)(nil), "k8s.io.api.core.v1.PersistentVolumeClaim") - proto.RegisterType((*PersistentVolumeClaimCondition)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimCondition") - proto.RegisterType((*PersistentVolumeClaimList)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimList") - proto.RegisterType((*PersistentVolumeClaimSpec)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimSpec") - proto.RegisterType((*PersistentVolumeClaimStatus)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimStatus") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimStatus.CapacityEntry") - proto.RegisterType((*PersistentVolumeClaimVolumeSource)(nil), "k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource") - proto.RegisterType((*PersistentVolumeList)(nil), "k8s.io.api.core.v1.PersistentVolumeList") - proto.RegisterType((*PersistentVolumeSource)(nil), "k8s.io.api.core.v1.PersistentVolumeSource") - proto.RegisterType((*PersistentVolumeSpec)(nil), "k8s.io.api.core.v1.PersistentVolumeSpec") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.PersistentVolumeSpec.CapacityEntry") - proto.RegisterType((*PersistentVolumeStatus)(nil), "k8s.io.api.core.v1.PersistentVolumeStatus") - proto.RegisterType((*PhotonPersistentDiskVolumeSource)(nil), "k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource") - proto.RegisterType((*Pod)(nil), "k8s.io.api.core.v1.Pod") - proto.RegisterType((*PodAffinity)(nil), "k8s.io.api.core.v1.PodAffinity") - proto.RegisterType((*PodAffinityTerm)(nil), "k8s.io.api.core.v1.PodAffinityTerm") - proto.RegisterType((*PodAntiAffinity)(nil), "k8s.io.api.core.v1.PodAntiAffinity") - proto.RegisterType((*PodAttachOptions)(nil), "k8s.io.api.core.v1.PodAttachOptions") - proto.RegisterType((*PodCondition)(nil), "k8s.io.api.core.v1.PodCondition") - proto.RegisterType((*PodDNSConfig)(nil), "k8s.io.api.core.v1.PodDNSConfig") - proto.RegisterType((*PodDNSConfigOption)(nil), "k8s.io.api.core.v1.PodDNSConfigOption") - proto.RegisterType((*PodExecOptions)(nil), "k8s.io.api.core.v1.PodExecOptions") - proto.RegisterType((*PodIP)(nil), "k8s.io.api.core.v1.PodIP") - proto.RegisterType((*PodList)(nil), "k8s.io.api.core.v1.PodList") - proto.RegisterType((*PodLogOptions)(nil), "k8s.io.api.core.v1.PodLogOptions") - proto.RegisterType((*PodPortForwardOptions)(nil), "k8s.io.api.core.v1.PodPortForwardOptions") - proto.RegisterType((*PodProxyOptions)(nil), "k8s.io.api.core.v1.PodProxyOptions") - proto.RegisterType((*PodReadinessGate)(nil), "k8s.io.api.core.v1.PodReadinessGate") - proto.RegisterType((*PodSecurityContext)(nil), "k8s.io.api.core.v1.PodSecurityContext") - proto.RegisterType((*PodSignature)(nil), "k8s.io.api.core.v1.PodSignature") - proto.RegisterType((*PodSpec)(nil), "k8s.io.api.core.v1.PodSpec") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.PodSpec.NodeSelectorEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.PodSpec.OverheadEntry") - proto.RegisterType((*PodStatus)(nil), "k8s.io.api.core.v1.PodStatus") - proto.RegisterType((*PodStatusResult)(nil), "k8s.io.api.core.v1.PodStatusResult") - proto.RegisterType((*PodTemplate)(nil), "k8s.io.api.core.v1.PodTemplate") - proto.RegisterType((*PodTemplateList)(nil), "k8s.io.api.core.v1.PodTemplateList") - proto.RegisterType((*PodTemplateSpec)(nil), "k8s.io.api.core.v1.PodTemplateSpec") - proto.RegisterType((*PortworxVolumeSource)(nil), "k8s.io.api.core.v1.PortworxVolumeSource") - proto.RegisterType((*Preconditions)(nil), "k8s.io.api.core.v1.Preconditions") - proto.RegisterType((*PreferAvoidPodsEntry)(nil), "k8s.io.api.core.v1.PreferAvoidPodsEntry") - proto.RegisterType((*PreferredSchedulingTerm)(nil), "k8s.io.api.core.v1.PreferredSchedulingTerm") - proto.RegisterType((*Probe)(nil), "k8s.io.api.core.v1.Probe") - proto.RegisterType((*ProjectedVolumeSource)(nil), "k8s.io.api.core.v1.ProjectedVolumeSource") - proto.RegisterType((*QuobyteVolumeSource)(nil), "k8s.io.api.core.v1.QuobyteVolumeSource") - proto.RegisterType((*RBDPersistentVolumeSource)(nil), "k8s.io.api.core.v1.RBDPersistentVolumeSource") - proto.RegisterType((*RBDVolumeSource)(nil), "k8s.io.api.core.v1.RBDVolumeSource") - proto.RegisterType((*RangeAllocation)(nil), "k8s.io.api.core.v1.RangeAllocation") - proto.RegisterType((*ReplicationController)(nil), "k8s.io.api.core.v1.ReplicationController") - proto.RegisterType((*ReplicationControllerCondition)(nil), "k8s.io.api.core.v1.ReplicationControllerCondition") - proto.RegisterType((*ReplicationControllerList)(nil), "k8s.io.api.core.v1.ReplicationControllerList") - proto.RegisterType((*ReplicationControllerSpec)(nil), "k8s.io.api.core.v1.ReplicationControllerSpec") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.ReplicationControllerSpec.SelectorEntry") - proto.RegisterType((*ReplicationControllerStatus)(nil), "k8s.io.api.core.v1.ReplicationControllerStatus") - proto.RegisterType((*ResourceFieldSelector)(nil), "k8s.io.api.core.v1.ResourceFieldSelector") - proto.RegisterType((*ResourceQuota)(nil), "k8s.io.api.core.v1.ResourceQuota") - proto.RegisterType((*ResourceQuotaList)(nil), "k8s.io.api.core.v1.ResourceQuotaList") - proto.RegisterType((*ResourceQuotaSpec)(nil), "k8s.io.api.core.v1.ResourceQuotaSpec") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.ResourceQuotaSpec.HardEntry") - proto.RegisterType((*ResourceQuotaStatus)(nil), "k8s.io.api.core.v1.ResourceQuotaStatus") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.ResourceQuotaStatus.HardEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.ResourceQuotaStatus.UsedEntry") - proto.RegisterType((*ResourceRequirements)(nil), "k8s.io.api.core.v1.ResourceRequirements") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.ResourceRequirements.LimitsEntry") - proto.RegisterMapType((ResourceList)(nil), "k8s.io.api.core.v1.ResourceRequirements.RequestsEntry") - proto.RegisterType((*SELinuxOptions)(nil), "k8s.io.api.core.v1.SELinuxOptions") - proto.RegisterType((*ScaleIOPersistentVolumeSource)(nil), "k8s.io.api.core.v1.ScaleIOPersistentVolumeSource") - proto.RegisterType((*ScaleIOVolumeSource)(nil), "k8s.io.api.core.v1.ScaleIOVolumeSource") - proto.RegisterType((*ScopeSelector)(nil), "k8s.io.api.core.v1.ScopeSelector") - proto.RegisterType((*ScopedResourceSelectorRequirement)(nil), "k8s.io.api.core.v1.ScopedResourceSelectorRequirement") - proto.RegisterType((*Secret)(nil), "k8s.io.api.core.v1.Secret") - proto.RegisterMapType((map[string][]byte)(nil), "k8s.io.api.core.v1.Secret.DataEntry") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.Secret.StringDataEntry") - proto.RegisterType((*SecretEnvSource)(nil), "k8s.io.api.core.v1.SecretEnvSource") - proto.RegisterType((*SecretKeySelector)(nil), "k8s.io.api.core.v1.SecretKeySelector") - proto.RegisterType((*SecretList)(nil), "k8s.io.api.core.v1.SecretList") - proto.RegisterType((*SecretProjection)(nil), "k8s.io.api.core.v1.SecretProjection") - proto.RegisterType((*SecretReference)(nil), "k8s.io.api.core.v1.SecretReference") - proto.RegisterType((*SecretVolumeSource)(nil), "k8s.io.api.core.v1.SecretVolumeSource") - proto.RegisterType((*SecurityContext)(nil), "k8s.io.api.core.v1.SecurityContext") - proto.RegisterType((*SerializedReference)(nil), "k8s.io.api.core.v1.SerializedReference") - proto.RegisterType((*Service)(nil), "k8s.io.api.core.v1.Service") - proto.RegisterType((*ServiceAccount)(nil), "k8s.io.api.core.v1.ServiceAccount") - proto.RegisterType((*ServiceAccountList)(nil), "k8s.io.api.core.v1.ServiceAccountList") - proto.RegisterType((*ServiceAccountTokenProjection)(nil), "k8s.io.api.core.v1.ServiceAccountTokenProjection") - proto.RegisterType((*ServiceList)(nil), "k8s.io.api.core.v1.ServiceList") - proto.RegisterType((*ServicePort)(nil), "k8s.io.api.core.v1.ServicePort") - proto.RegisterType((*ServiceProxyOptions)(nil), "k8s.io.api.core.v1.ServiceProxyOptions") - proto.RegisterType((*ServiceSpec)(nil), "k8s.io.api.core.v1.ServiceSpec") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.core.v1.ServiceSpec.SelectorEntry") - proto.RegisterType((*ServiceStatus)(nil), "k8s.io.api.core.v1.ServiceStatus") - proto.RegisterType((*SessionAffinityConfig)(nil), "k8s.io.api.core.v1.SessionAffinityConfig") - proto.RegisterType((*StorageOSPersistentVolumeSource)(nil), "k8s.io.api.core.v1.StorageOSPersistentVolumeSource") - proto.RegisterType((*StorageOSVolumeSource)(nil), "k8s.io.api.core.v1.StorageOSVolumeSource") - proto.RegisterType((*Sysctl)(nil), "k8s.io.api.core.v1.Sysctl") - proto.RegisterType((*TCPSocketAction)(nil), "k8s.io.api.core.v1.TCPSocketAction") - proto.RegisterType((*Taint)(nil), "k8s.io.api.core.v1.Taint") - proto.RegisterType((*Toleration)(nil), "k8s.io.api.core.v1.Toleration") - proto.RegisterType((*TopologySelectorLabelRequirement)(nil), "k8s.io.api.core.v1.TopologySelectorLabelRequirement") - proto.RegisterType((*TopologySelectorTerm)(nil), "k8s.io.api.core.v1.TopologySelectorTerm") - proto.RegisterType((*TopologySpreadConstraint)(nil), "k8s.io.api.core.v1.TopologySpreadConstraint") - proto.RegisterType((*TypedLocalObjectReference)(nil), "k8s.io.api.core.v1.TypedLocalObjectReference") - proto.RegisterType((*Volume)(nil), "k8s.io.api.core.v1.Volume") - proto.RegisterType((*VolumeDevice)(nil), "k8s.io.api.core.v1.VolumeDevice") - proto.RegisterType((*VolumeMount)(nil), "k8s.io.api.core.v1.VolumeMount") - proto.RegisterType((*VolumeNodeAffinity)(nil), "k8s.io.api.core.v1.VolumeNodeAffinity") - proto.RegisterType((*VolumeProjection)(nil), "k8s.io.api.core.v1.VolumeProjection") - proto.RegisterType((*VolumeSource)(nil), "k8s.io.api.core.v1.VolumeSource") - proto.RegisterType((*VsphereVirtualDiskVolumeSource)(nil), "k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource") - proto.RegisterType((*WeightedPodAffinityTerm)(nil), "k8s.io.api.core.v1.WeightedPodAffinityTerm") - proto.RegisterType((*WindowsSecurityContextOptions)(nil), "k8s.io.api.core.v1.WindowsSecurityContextOptions") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto", fileDescriptor_83c10c24ec417dc9) -} - -var fileDescriptor_83c10c24ec417dc9 = []byte{ - // 13567 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0xbd, 0x7b, 0x70, 0x24, 0x49, - 0x5a, 0x18, 0x7e, 0xd5, 0xad, 0x47, 0xf7, 0xa7, 0x77, 0xce, 0x63, 0x35, 0xda, 0x9d, 0xd1, 0x6c, - 0xed, 0xdd, 0xec, 0xec, 0xed, 0xae, 0xe6, 0xf6, 0x75, 0xbb, 0xdc, 0xde, 0x2d, 0x48, 0x6a, 0x69, - 0xa6, 0x77, 0x46, 0x9a, 0xde, 0x6c, 0xcd, 0xcc, 0xdd, 0xb2, 0x77, 0x5c, 0xa9, 0x2b, 0x25, 0xd5, - 0xaa, 0xbb, 0xaa, 0xb7, 0xaa, 0x5a, 0x33, 0xda, 0x1f, 0xc4, 0x0f, 0x1f, 0xcf, 0x33, 0xe0, 0xb8, - 0xb0, 0x09, 0x3f, 0x80, 0xc0, 0x11, 0x18, 0x07, 0x60, 0xb0, 0xc3, 0x18, 0x0c, 0x98, 0xc3, 0x36, - 0x06, 0xdb, 0x81, 0xfd, 0x07, 0xc6, 0x0e, 0xdb, 0x47, 0x04, 0x61, 0x19, 0x06, 0x87, 0x89, 0xfb, - 0xc3, 0x40, 0x18, 0xfc, 0x87, 0x65, 0xc2, 0x38, 0xf2, 0x59, 0x99, 0xd5, 0x55, 0xdd, 0xad, 0x59, - 0x8d, 0x6e, 0xb9, 0xd8, 0xff, 0xba, 0xf3, 0xfb, 0xf2, 0xcb, 0xac, 0x7c, 0x7e, 0xf9, 0x3d, 0xe1, - 0xd5, 0xdd, 0x57, 0xa2, 0x05, 0x2f, 0xb8, 0xb2, 0xdb, 0xd9, 0x24, 0xa1, 0x4f, 0x62, 0x12, 0x5d, - 0xd9, 0x23, 0xbe, 0x1b, 0x84, 0x57, 0x04, 0xc0, 0x69, 0x7b, 0x57, 0x1a, 0x41, 0x48, 0xae, 0xec, - 0x3d, 0x77, 0x65, 0x9b, 0xf8, 0x24, 0x74, 0x62, 0xe2, 0x2e, 0xb4, 0xc3, 0x20, 0x0e, 0x10, 0xe2, - 0x38, 0x0b, 0x4e, 0xdb, 0x5b, 0xa0, 0x38, 0x0b, 0x7b, 0xcf, 0xcd, 0x3d, 0xbb, 0xed, 0xc5, 0x3b, - 0x9d, 0xcd, 0x85, 0x46, 0xd0, 0xba, 0xb2, 0x1d, 0x6c, 0x07, 0x57, 0x18, 0xea, 0x66, 0x67, 0x8b, - 0xfd, 0x63, 0x7f, 0xd8, 0x2f, 0x4e, 0x62, 0xee, 0xc5, 0xa4, 0x99, 0x96, 0xd3, 0xd8, 0xf1, 0x7c, - 0x12, 0xee, 0x5f, 0x69, 0xef, 0x6e, 0xb3, 0x76, 0x43, 0x12, 0x05, 0x9d, 0xb0, 0x41, 0xd2, 0x0d, - 0xf7, 0xac, 0x15, 0x5d, 0x69, 0x91, 0xd8, 0xc9, 0xe8, 0xee, 0xdc, 0x95, 0xbc, 0x5a, 0x61, 0xc7, - 0x8f, 0xbd, 0x56, 0x77, 0x33, 0x1f, 0xef, 0x57, 0x21, 0x6a, 0xec, 0x90, 0x96, 0xd3, 0x55, 0xef, - 0x85, 0xbc, 0x7a, 0x9d, 0xd8, 0x6b, 0x5e, 0xf1, 0xfc, 0x38, 0x8a, 0xc3, 0x74, 0x25, 0xfb, 0x2b, - 0x16, 0x5c, 0x5c, 0xbc, 0x53, 0x5f, 0x69, 0x3a, 0x51, 0xec, 0x35, 0x96, 0x9a, 0x41, 0x63, 0xb7, - 0x1e, 0x07, 0x21, 0xb9, 0x1d, 0x34, 0x3b, 0x2d, 0x52, 0x67, 0x03, 0x81, 0x9e, 0x81, 0xd2, 0x1e, - 0xfb, 0x5f, 0xad, 0xcc, 0x5a, 0x17, 0xad, 0xcb, 0xe5, 0xa5, 0xe9, 0xdf, 0x38, 0x98, 0xff, 0xd0, - 0xfd, 0x83, 0xf9, 0xd2, 0x6d, 0x51, 0x8e, 0x15, 0x06, 0xba, 0x04, 0x23, 0x5b, 0xd1, 0xc6, 0x7e, - 0x9b, 0xcc, 0x16, 0x18, 0xee, 0xa4, 0xc0, 0x1d, 0x59, 0xad, 0xd3, 0x52, 0x2c, 0xa0, 0xe8, 0x0a, - 0x94, 0xdb, 0x4e, 0x18, 0x7b, 0xb1, 0x17, 0xf8, 0xb3, 0xc5, 0x8b, 0xd6, 0xe5, 0xe1, 0xa5, 0x19, - 0x81, 0x5a, 0xae, 0x49, 0x00, 0x4e, 0x70, 0x68, 0x37, 0x42, 0xe2, 0xb8, 0x37, 0xfd, 0xe6, 0xfe, - 0xec, 0xd0, 0x45, 0xeb, 0x72, 0x29, 0xe9, 0x06, 0x16, 0xe5, 0x58, 0x61, 0xd8, 0x3f, 0x54, 0x80, - 0xd2, 0xe2, 0xd6, 0x96, 0xe7, 0x7b, 0xf1, 0x3e, 0xba, 0x0d, 0xe3, 0x7e, 0xe0, 0x12, 0xf9, 0x9f, - 0x7d, 0xc5, 0xd8, 0xf3, 0x17, 0x17, 0xba, 0x97, 0xd2, 0xc2, 0xba, 0x86, 0xb7, 0x34, 0x7d, 0xff, - 0x60, 0x7e, 0x5c, 0x2f, 0xc1, 0x06, 0x1d, 0x84, 0x61, 0xac, 0x1d, 0xb8, 0x8a, 0x6c, 0x81, 0x91, - 0x9d, 0xcf, 0x22, 0x5b, 0x4b, 0xd0, 0x96, 0xa6, 0xee, 0x1f, 0xcc, 0x8f, 0x69, 0x05, 0x58, 0x27, - 0x82, 0x36, 0x61, 0x8a, 0xfe, 0xf5, 0x63, 0x4f, 0xd1, 0x2d, 0x32, 0xba, 0x4f, 0xe4, 0xd1, 0xd5, - 0x50, 0x97, 0x4e, 0xdd, 0x3f, 0x98, 0x9f, 0x4a, 0x15, 0xe2, 0x34, 0x41, 0xfb, 0x5d, 0x98, 0x5c, - 0x8c, 0x63, 0xa7, 0xb1, 0x43, 0x5c, 0x3e, 0x83, 0xe8, 0x45, 0x18, 0xf2, 0x9d, 0x16, 0x11, 0xf3, - 0x7b, 0x51, 0x0c, 0xec, 0xd0, 0xba, 0xd3, 0x22, 0x87, 0x07, 0xf3, 0xd3, 0xb7, 0x7c, 0xef, 0x9d, - 0x8e, 0x58, 0x15, 0xb4, 0x0c, 0x33, 0x6c, 0xf4, 0x3c, 0x80, 0x4b, 0xf6, 0xbc, 0x06, 0xa9, 0x39, - 0xf1, 0x8e, 0x98, 0x6f, 0x24, 0xea, 0x42, 0x45, 0x41, 0xb0, 0x86, 0x65, 0xdf, 0x83, 0xf2, 0xe2, - 0x5e, 0xe0, 0xb9, 0xb5, 0xc0, 0x8d, 0xd0, 0x2e, 0x4c, 0xb5, 0x43, 0xb2, 0x45, 0x42, 0x55, 0x34, - 0x6b, 0x5d, 0x2c, 0x5e, 0x1e, 0x7b, 0xfe, 0x72, 0xe6, 0xc7, 0x9a, 0xa8, 0x2b, 0x7e, 0x1c, 0xee, - 0x2f, 0x3d, 0x22, 0xda, 0x9b, 0x4a, 0x41, 0x71, 0x9a, 0xb2, 0xfd, 0x2f, 0x0b, 0x70, 0x66, 0xf1, - 0xdd, 0x4e, 0x48, 0x2a, 0x5e, 0xb4, 0x9b, 0x5e, 0xe1, 0xae, 0x17, 0xed, 0xae, 0x27, 0x23, 0xa0, - 0x96, 0x56, 0x45, 0x94, 0x63, 0x85, 0x81, 0x9e, 0x85, 0x51, 0xfa, 0xfb, 0x16, 0xae, 0x8a, 0x4f, - 0x3e, 0x25, 0x90, 0xc7, 0x2a, 0x4e, 0xec, 0x54, 0x38, 0x08, 0x4b, 0x1c, 0xb4, 0x06, 0x63, 0x0d, - 0xb6, 0x21, 0xb7, 0xd7, 0x02, 0x97, 0xb0, 0xc9, 0x2c, 0x2f, 0x3d, 0x4d, 0xd1, 0x97, 0x93, 0xe2, - 0xc3, 0x83, 0xf9, 0x59, 0xde, 0x37, 0x41, 0x42, 0x83, 0x61, 0xbd, 0x3e, 0xb2, 0xd5, 0xfe, 0x1a, - 0x62, 0x94, 0x20, 0x63, 0x6f, 0x5d, 0xd6, 0xb6, 0xca, 0x30, 0xdb, 0x2a, 0xe3, 0xd9, 0xdb, 0x04, - 0x3d, 0x07, 0x43, 0xbb, 0x9e, 0xef, 0xce, 0x8e, 0x30, 0x5a, 0xe7, 0xe9, 0x9c, 0x5f, 0xf7, 0x7c, - 0xf7, 0xf0, 0x60, 0x7e, 0xc6, 0xe8, 0x0e, 0x2d, 0xc4, 0x0c, 0xd5, 0xfe, 0x13, 0x0b, 0xe6, 0x19, - 0x6c, 0xd5, 0x6b, 0x92, 0x1a, 0x09, 0x23, 0x2f, 0x8a, 0x89, 0x1f, 0x1b, 0x03, 0xfa, 0x3c, 0x40, - 0x44, 0x1a, 0x21, 0x89, 0xb5, 0x21, 0x55, 0x0b, 0xa3, 0xae, 0x20, 0x58, 0xc3, 0xa2, 0x07, 0x42, - 0xb4, 0xe3, 0x84, 0x6c, 0x7d, 0x89, 0x81, 0x55, 0x07, 0x42, 0x5d, 0x02, 0x70, 0x82, 0x63, 0x1c, - 0x08, 0xc5, 0x7e, 0x07, 0x02, 0xfa, 0x14, 0x4c, 0x25, 0x8d, 0x45, 0x6d, 0xa7, 0x21, 0x07, 0x90, - 0x6d, 0x99, 0xba, 0x09, 0xc2, 0x69, 0x5c, 0xfb, 0xef, 0x59, 0x62, 0xf1, 0xd0, 0xaf, 0x7e, 0x9f, - 0x7f, 0xab, 0xfd, 0x4b, 0x16, 0x8c, 0x2e, 0x79, 0xbe, 0xeb, 0xf9, 0xdb, 0xe8, 0xf3, 0x50, 0xa2, - 0x77, 0x93, 0xeb, 0xc4, 0x8e, 0x38, 0xf7, 0x3e, 0xa6, 0xed, 0x2d, 0x75, 0x55, 0x2c, 0xb4, 0x77, - 0xb7, 0x69, 0x41, 0xb4, 0x40, 0xb1, 0xe9, 0x6e, 0xbb, 0xb9, 0xf9, 0x36, 0x69, 0xc4, 0x6b, 0x24, - 0x76, 0x92, 0xcf, 0x49, 0xca, 0xb0, 0xa2, 0x8a, 0xae, 0xc3, 0x48, 0xec, 0x84, 0xdb, 0x24, 0x16, - 0x07, 0x60, 0xe6, 0x41, 0xc5, 0x6b, 0x62, 0xba, 0x23, 0x89, 0xdf, 0x20, 0xc9, 0xb5, 0xb0, 0xc1, - 0xaa, 0x62, 0x41, 0xc2, 0xfe, 0x81, 0x51, 0x38, 0xb7, 0x5c, 0xaf, 0xe6, 0xac, 0xab, 0x4b, 0x30, - 0xe2, 0x86, 0xde, 0x1e, 0x09, 0xc5, 0x38, 0x2b, 0x2a, 0x15, 0x56, 0x8a, 0x05, 0x14, 0xbd, 0x02, - 0xe3, 0xfc, 0x42, 0xba, 0xe6, 0xf8, 0x6e, 0x53, 0x0e, 0xf1, 0x69, 0x81, 0x3d, 0x7e, 0x5b, 0x83, - 0x61, 0x03, 0xf3, 0x88, 0x8b, 0xea, 0x52, 0x6a, 0x33, 0xe6, 0x5d, 0x76, 0x5f, 0xb4, 0x60, 0x9a, - 0x37, 0xb3, 0x18, 0xc7, 0xa1, 0xb7, 0xd9, 0x89, 0x49, 0x34, 0x3b, 0xcc, 0x4e, 0xba, 0xe5, 0xac, - 0xd1, 0xca, 0x1d, 0x81, 0x85, 0xdb, 0x29, 0x2a, 0xfc, 0x10, 0x9c, 0x15, 0xed, 0x4e, 0xa7, 0xc1, - 0xb8, 0xab, 0x59, 0xf4, 0x1d, 0x16, 0xcc, 0x35, 0x02, 0x3f, 0x0e, 0x83, 0x66, 0x93, 0x84, 0xb5, - 0xce, 0x66, 0xd3, 0x8b, 0x76, 0xf8, 0x3a, 0xc5, 0x64, 0x8b, 0x9d, 0x04, 0x39, 0x73, 0xa8, 0x90, - 0xc4, 0x1c, 0x5e, 0xb8, 0x7f, 0x30, 0x3f, 0xb7, 0x9c, 0x4b, 0x0a, 0xf7, 0x68, 0x06, 0xed, 0x02, - 0xa2, 0x57, 0x69, 0x3d, 0x76, 0xb6, 0x49, 0xd2, 0xf8, 0xe8, 0xe0, 0x8d, 0x9f, 0xbd, 0x7f, 0x30, - 0x8f, 0xd6, 0xbb, 0x48, 0xe0, 0x0c, 0xb2, 0xe8, 0x1d, 0x38, 0x4d, 0x4b, 0xbb, 0xbe, 0xb5, 0x34, - 0x78, 0x73, 0xb3, 0xf7, 0x0f, 0xe6, 0x4f, 0xaf, 0x67, 0x10, 0xc1, 0x99, 0xa4, 0xd1, 0xb7, 0x5b, - 0x70, 0x2e, 0xf9, 0xfc, 0x95, 0x7b, 0x6d, 0xc7, 0x77, 0x93, 0x86, 0xcb, 0x83, 0x37, 0x4c, 0xcf, - 0xe4, 0x73, 0xcb, 0x79, 0x94, 0x70, 0x7e, 0x23, 0x73, 0xcb, 0x70, 0x26, 0x73, 0xb5, 0xa0, 0x69, - 0x28, 0xee, 0x12, 0xce, 0x05, 0x95, 0x31, 0xfd, 0x89, 0x4e, 0xc3, 0xf0, 0x9e, 0xd3, 0xec, 0x88, - 0x8d, 0x82, 0xf9, 0x9f, 0x4f, 0x14, 0x5e, 0xb1, 0xec, 0x7f, 0x55, 0x84, 0xa9, 0xe5, 0x7a, 0xf5, - 0x81, 0x76, 0xa1, 0x7e, 0x0d, 0x15, 0x7a, 0x5e, 0x43, 0xc9, 0xa5, 0x56, 0xcc, 0xbd, 0xd4, 0xfe, - 0xff, 0x8c, 0x2d, 0x34, 0xc4, 0xb6, 0xd0, 0x37, 0xe4, 0x6c, 0xa1, 0x63, 0xde, 0x38, 0x7b, 0x39, - 0xab, 0x68, 0x98, 0x4d, 0x66, 0x26, 0xc7, 0x72, 0x23, 0x68, 0x38, 0xcd, 0xf4, 0xd1, 0x77, 0xc4, - 0xa5, 0x74, 0x3c, 0xf3, 0xd8, 0x80, 0xf1, 0x65, 0xa7, 0xed, 0x6c, 0x7a, 0x4d, 0x2f, 0xf6, 0x48, - 0x84, 0x9e, 0x84, 0xa2, 0xe3, 0xba, 0x8c, 0xdb, 0x2a, 0x2f, 0x9d, 0xb9, 0x7f, 0x30, 0x5f, 0x5c, - 0x74, 0xe9, 0xb5, 0x0f, 0x0a, 0x6b, 0x1f, 0x53, 0x0c, 0xf4, 0x51, 0x18, 0x72, 0xc3, 0xa0, 0x3d, - 0x5b, 0x60, 0x98, 0x74, 0xd7, 0x0d, 0x55, 0xc2, 0xa0, 0x9d, 0x42, 0x65, 0x38, 0xf6, 0xaf, 0x16, - 0xe0, 0xb1, 0x65, 0xd2, 0xde, 0x59, 0xad, 0xe7, 0x9c, 0xdf, 0x97, 0xa1, 0xd4, 0x0a, 0x7c, 0x2f, - 0x0e, 0xc2, 0x48, 0x34, 0xcd, 0x56, 0xc4, 0x9a, 0x28, 0xc3, 0x0a, 0x8a, 0x2e, 0xc2, 0x50, 0x3b, - 0x61, 0x2a, 0xc7, 0x25, 0x43, 0xca, 0xd8, 0x49, 0x06, 0xa1, 0x18, 0x9d, 0x88, 0x84, 0x62, 0xc5, - 0x28, 0x8c, 0x5b, 0x11, 0x09, 0x31, 0x83, 0x24, 0x37, 0x33, 0xbd, 0xb3, 0xc5, 0x09, 0x9d, 0xba, - 0x99, 0x29, 0x04, 0x6b, 0x58, 0xa8, 0x06, 0xe5, 0x28, 0x35, 0xb3, 0x03, 0x6d, 0xd3, 0x09, 0x76, - 0x75, 0xab, 0x99, 0x4c, 0x88, 0x18, 0x37, 0xca, 0x48, 0xdf, 0xab, 0xfb, 0xcb, 0x05, 0x40, 0x7c, - 0x08, 0xff, 0x82, 0x0d, 0xdc, 0xad, 0xee, 0x81, 0x1b, 0x7c, 0x4b, 0x1c, 0xd7, 0xe8, 0xfd, 0xa9, - 0x05, 0x8f, 0x2d, 0x7b, 0xbe, 0x4b, 0xc2, 0x9c, 0x05, 0xf8, 0x70, 0xde, 0xb2, 0x47, 0x63, 0x1a, - 0x8c, 0x25, 0x36, 0x74, 0x0c, 0x4b, 0xcc, 0xfe, 0x23, 0x0b, 0x10, 0xff, 0xec, 0xf7, 0xdd, 0xc7, - 0xde, 0xea, 0xfe, 0xd8, 0x63, 0x58, 0x16, 0xf6, 0x0d, 0x98, 0x5c, 0x6e, 0x7a, 0xc4, 0x8f, 0xab, - 0xb5, 0xe5, 0xc0, 0xdf, 0xf2, 0xb6, 0xd1, 0x27, 0x60, 0x32, 0xf6, 0x5a, 0x24, 0xe8, 0xc4, 0x75, - 0xd2, 0x08, 0x7c, 0xf6, 0x92, 0xb4, 0x2e, 0x0f, 0x2f, 0xa1, 0xfb, 0x07, 0xf3, 0x93, 0x1b, 0x06, - 0x04, 0xa7, 0x30, 0xed, 0xdf, 0xa1, 0xe3, 0x17, 0xb4, 0xda, 0x81, 0x4f, 0xfc, 0x78, 0x39, 0xf0, - 0x5d, 0x2e, 0x71, 0xf8, 0x04, 0x0c, 0xc5, 0x74, 0x3c, 0xf8, 0xd8, 0x5d, 0x92, 0x1b, 0x85, 0x8e, - 0xc2, 0xe1, 0xc1, 0xfc, 0xd9, 0xee, 0x1a, 0x6c, 0x9c, 0x58, 0x1d, 0xf4, 0x0d, 0x30, 0x12, 0xc5, - 0x4e, 0xdc, 0x89, 0xc4, 0x68, 0x3e, 0x2e, 0x47, 0xb3, 0xce, 0x4a, 0x0f, 0x0f, 0xe6, 0xa7, 0x54, - 0x35, 0x5e, 0x84, 0x45, 0x05, 0xf4, 0x14, 0x8c, 0xb6, 0x48, 0x14, 0x39, 0xdb, 0xf2, 0x36, 0x9c, - 0x12, 0x75, 0x47, 0xd7, 0x78, 0x31, 0x96, 0x70, 0xf4, 0x04, 0x0c, 0x93, 0x30, 0x0c, 0x42, 0xb1, - 0x47, 0x27, 0x04, 0xe2, 0xf0, 0x0a, 0x2d, 0xc4, 0x1c, 0x66, 0xff, 0x3b, 0x0b, 0xa6, 0x54, 0x5f, - 0x79, 0x5b, 0x27, 0xf0, 0x2a, 0x78, 0x13, 0xa0, 0x21, 0x3f, 0x30, 0x62, 0xb7, 0xc7, 0xd8, 0xf3, - 0x97, 0x32, 0x2f, 0xea, 0xae, 0x61, 0x4c, 0x28, 0xab, 0xa2, 0x08, 0x6b, 0xd4, 0xec, 0x7f, 0x6a, - 0xc1, 0xa9, 0xd4, 0x17, 0xdd, 0xf0, 0xa2, 0x18, 0xbd, 0xd5, 0xf5, 0x55, 0x0b, 0x83, 0x7d, 0x15, - 0xad, 0xcd, 0xbe, 0x49, 0x2d, 0x65, 0x59, 0xa2, 0x7d, 0xd1, 0x35, 0x18, 0xf6, 0x62, 0xd2, 0x92, - 0x1f, 0xf3, 0x44, 0xcf, 0x8f, 0xe1, 0xbd, 0x4a, 0x66, 0xa4, 0x4a, 0x6b, 0x62, 0x4e, 0xc0, 0xfe, - 0x6b, 0x45, 0x28, 0xf3, 0x65, 0xbb, 0xe6, 0xb4, 0x4f, 0x60, 0x2e, 0xaa, 0x30, 0xc4, 0xa8, 0xf3, - 0x8e, 0x3f, 0x99, 0xdd, 0x71, 0xd1, 0x9d, 0x05, 0xfa, 0xe4, 0xe7, 0xcc, 0x91, 0xba, 0x1a, 0x68, - 0x11, 0x66, 0x24, 0x90, 0x03, 0xb0, 0xe9, 0xf9, 0x4e, 0xb8, 0x4f, 0xcb, 0x66, 0x8b, 0x8c, 0xe0, - 0xb3, 0xbd, 0x09, 0x2e, 0x29, 0x7c, 0x4e, 0x56, 0xf5, 0x35, 0x01, 0x60, 0x8d, 0xe8, 0xdc, 0xcb, - 0x50, 0x56, 0xc8, 0x47, 0xe1, 0x71, 0xe6, 0x3e, 0x05, 0x53, 0xa9, 0xb6, 0xfa, 0x55, 0x1f, 0xd7, - 0x59, 0xa4, 0x5f, 0x66, 0xa7, 0x80, 0xe8, 0xf5, 0x8a, 0xbf, 0x27, 0x4e, 0xd1, 0x77, 0xe1, 0x74, - 0x33, 0xe3, 0x70, 0x12, 0x53, 0x35, 0xf8, 0x61, 0xf6, 0x98, 0xf8, 0xec, 0xd3, 0x59, 0x50, 0x9c, - 0xd9, 0x06, 0xbd, 0xf6, 0x83, 0x36, 0x5d, 0xf3, 0x4e, 0x53, 0xe7, 0xa0, 0x6f, 0x8a, 0x32, 0xac, - 0xa0, 0xf4, 0x08, 0x3b, 0xad, 0x3a, 0x7f, 0x9d, 0xec, 0xd7, 0x49, 0x93, 0x34, 0xe2, 0x20, 0xfc, - 0x9a, 0x76, 0xff, 0x3c, 0x1f, 0x7d, 0x7e, 0x02, 0x8e, 0x09, 0x02, 0xc5, 0xeb, 0x64, 0x9f, 0x4f, - 0x85, 0xfe, 0x75, 0xc5, 0x9e, 0x5f, 0xf7, 0xb3, 0x16, 0x4c, 0xa8, 0xaf, 0x3b, 0x81, 0xad, 0xbe, - 0x64, 0x6e, 0xf5, 0xf3, 0x3d, 0x17, 0x78, 0xce, 0x26, 0xff, 0x72, 0x01, 0xce, 0x29, 0x1c, 0xca, - 0xee, 0xf3, 0x3f, 0x62, 0x55, 0x5d, 0x81, 0xb2, 0xaf, 0x04, 0x51, 0x96, 0x29, 0x01, 0x4a, 0xc4, - 0x50, 0x09, 0x0e, 0xe5, 0xda, 0xfc, 0x44, 0x5a, 0x34, 0xae, 0x4b, 0x68, 0x85, 0x34, 0x76, 0x09, - 0x8a, 0x1d, 0xcf, 0x15, 0x77, 0xc6, 0xc7, 0xe4, 0x68, 0xdf, 0xaa, 0x56, 0x0e, 0x0f, 0xe6, 0x1f, - 0xcf, 0xd3, 0x0e, 0xd0, 0xcb, 0x2a, 0x5a, 0xb8, 0x55, 0xad, 0x60, 0x5a, 0x19, 0x2d, 0xc2, 0x94, - 0x54, 0x80, 0xdc, 0xa6, 0x1c, 0x54, 0xe0, 0x8b, 0xab, 0x45, 0x89, 0x59, 0xb1, 0x09, 0xc6, 0x69, - 0x7c, 0x54, 0x81, 0xe9, 0xdd, 0xce, 0x26, 0x69, 0x92, 0x98, 0x7f, 0xf0, 0x75, 0xc2, 0x85, 0x90, - 0xe5, 0xe4, 0xb1, 0x75, 0x3d, 0x05, 0xc7, 0x5d, 0x35, 0xec, 0x3f, 0x67, 0x47, 0xbc, 0x18, 0xbd, - 0x5a, 0x18, 0xd0, 0x85, 0x45, 0xa9, 0x7f, 0x2d, 0x97, 0xf3, 0x20, 0xab, 0xe2, 0x3a, 0xd9, 0xdf, - 0x08, 0x28, 0xb3, 0x9d, 0xbd, 0x2a, 0x8c, 0x35, 0x3f, 0xd4, 0x73, 0xcd, 0xff, 0x7c, 0x01, 0xce, - 0xa8, 0x11, 0x30, 0xf8, 0xba, 0xbf, 0xe8, 0x63, 0xf0, 0x1c, 0x8c, 0xb9, 0x64, 0xcb, 0xe9, 0x34, - 0x63, 0x25, 0x11, 0x1f, 0xe6, 0x5a, 0x91, 0x4a, 0x52, 0x8c, 0x75, 0x9c, 0x23, 0x0c, 0xdb, 0xff, - 0x1a, 0x63, 0x77, 0x6b, 0xec, 0xd0, 0x35, 0xae, 0x76, 0x8d, 0x95, 0xbb, 0x6b, 0x9e, 0x80, 0x61, - 0xaf, 0x45, 0x79, 0xad, 0x82, 0xc9, 0x42, 0x55, 0x69, 0x21, 0xe6, 0x30, 0xf4, 0x11, 0x18, 0x6d, - 0x04, 0xad, 0x96, 0xe3, 0xbb, 0xec, 0xca, 0x2b, 0x2f, 0x8d, 0x51, 0x76, 0x6c, 0x99, 0x17, 0x61, - 0x09, 0x43, 0x8f, 0xc1, 0x90, 0x13, 0x6e, 0x73, 0xb1, 0x44, 0x79, 0xa9, 0x44, 0x5b, 0x5a, 0x0c, - 0xb7, 0x23, 0xcc, 0x4a, 0xe9, 0xab, 0xea, 0x6e, 0x10, 0xee, 0x7a, 0xfe, 0x76, 0xc5, 0x0b, 0xc5, - 0x96, 0x50, 0x77, 0xe1, 0x1d, 0x05, 0xc1, 0x1a, 0x16, 0x5a, 0x85, 0xe1, 0x76, 0x10, 0xc6, 0xd1, - 0xec, 0x08, 0x1b, 0xee, 0xc7, 0x73, 0x0e, 0x22, 0xfe, 0xb5, 0xb5, 0x20, 0x8c, 0x93, 0x0f, 0xa0, - 0xff, 0x22, 0xcc, 0xab, 0xa3, 0x1b, 0x30, 0x4a, 0xfc, 0xbd, 0xd5, 0x30, 0x68, 0xcd, 0x9e, 0xca, - 0xa7, 0xb4, 0xc2, 0x51, 0xf8, 0x32, 0x4b, 0xd8, 0x4e, 0x51, 0x8c, 0x25, 0x09, 0xf4, 0x0d, 0x50, - 0x24, 0xfe, 0xde, 0xec, 0x28, 0xa3, 0x34, 0x97, 0x43, 0xe9, 0xb6, 0x13, 0x26, 0x67, 0xfe, 0x8a, - 0xbf, 0x87, 0x69, 0x1d, 0xf4, 0x19, 0x28, 0xcb, 0x03, 0x23, 0x12, 0xf2, 0xb7, 0xcc, 0x05, 0x2b, - 0x8f, 0x19, 0x4c, 0xde, 0xe9, 0x78, 0x21, 0x69, 0x11, 0x3f, 0x8e, 0x92, 0x13, 0x52, 0x42, 0x23, - 0x9c, 0x50, 0x43, 0x9f, 0x91, 0x42, 0xdf, 0xb5, 0xa0, 0xe3, 0xc7, 0xd1, 0x6c, 0x99, 0x75, 0x2f, - 0x53, 0x1d, 0x77, 0x3b, 0xc1, 0x4b, 0x4b, 0x85, 0x79, 0x65, 0x6c, 0x90, 0x42, 0x9f, 0x85, 0x09, - 0xfe, 0x9f, 0x2b, 0xb5, 0xa2, 0xd9, 0x33, 0x8c, 0xf6, 0xc5, 0x7c, 0xda, 0x1c, 0x71, 0xe9, 0x8c, - 0x20, 0x3e, 0xa1, 0x97, 0x46, 0xd8, 0xa4, 0x86, 0x30, 0x4c, 0x34, 0xbd, 0x3d, 0xe2, 0x93, 0x28, - 0xaa, 0x85, 0xc1, 0x26, 0x99, 0x05, 0x36, 0x30, 0xe7, 0xb2, 0x95, 0x60, 0xc1, 0x26, 0x59, 0x9a, - 0xa1, 0x34, 0x6f, 0xe8, 0x75, 0xb0, 0x49, 0x02, 0xdd, 0x82, 0x49, 0xfa, 0x08, 0xf3, 0x12, 0xa2, - 0x63, 0xfd, 0x88, 0xb2, 0xa7, 0x12, 0x36, 0x2a, 0xe1, 0x14, 0x11, 0x74, 0x13, 0xc6, 0xa3, 0xd8, - 0x09, 0xe3, 0x4e, 0x9b, 0x13, 0x3d, 0xdb, 0x8f, 0x28, 0xd3, 0xa1, 0xd6, 0xb5, 0x2a, 0xd8, 0x20, - 0x80, 0x5e, 0x87, 0x72, 0xd3, 0xdb, 0x22, 0x8d, 0xfd, 0x46, 0x93, 0xcc, 0x8e, 0x33, 0x6a, 0x99, - 0x87, 0xca, 0x0d, 0x89, 0xc4, 0x5f, 0x85, 0xea, 0x2f, 0x4e, 0xaa, 0xa3, 0xdb, 0x70, 0x36, 0x26, - 0x61, 0xcb, 0xf3, 0x1d, 0x7a, 0x18, 0x88, 0xd7, 0x12, 0xd3, 0x4d, 0x4e, 0xb0, 0xdd, 0x76, 0x41, - 0xcc, 0xc6, 0xd9, 0x8d, 0x4c, 0x2c, 0x9c, 0x53, 0x1b, 0xdd, 0x83, 0xd9, 0x0c, 0x48, 0xd0, 0xf4, - 0x1a, 0xfb, 0xb3, 0xa7, 0x19, 0xe5, 0x4f, 0x0a, 0xca, 0xb3, 0x1b, 0x39, 0x78, 0x87, 0x3d, 0x60, - 0x38, 0x97, 0x3a, 0xba, 0x09, 0x53, 0xec, 0x04, 0xaa, 0x75, 0x9a, 0x4d, 0xd1, 0xe0, 0x24, 0x6b, - 0xf0, 0x23, 0xf2, 0x3e, 0xae, 0x9a, 0xe0, 0xc3, 0x83, 0x79, 0x48, 0xfe, 0xe1, 0x74, 0x6d, 0xb4, - 0xc9, 0xd4, 0x60, 0x9d, 0xd0, 0x8b, 0xf7, 0xe9, 0xb9, 0x41, 0xee, 0xc5, 0xb3, 0x53, 0x3d, 0x45, - 0x10, 0x3a, 0xaa, 0xd2, 0x95, 0xe9, 0x85, 0x38, 0x4d, 0x90, 0x1e, 0xa9, 0x51, 0xec, 0x7a, 0xfe, - 0xec, 0x34, 0x3b, 0xa9, 0xd5, 0x89, 0x54, 0xa7, 0x85, 0x98, 0xc3, 0x98, 0x0a, 0x8c, 0xfe, 0xb8, - 0x49, 0x6f, 0xae, 0x19, 0x86, 0x98, 0xa8, 0xc0, 0x24, 0x00, 0x27, 0x38, 0x94, 0x99, 0x8c, 0xe3, - 0xfd, 0x59, 0xc4, 0x50, 0xd5, 0xc1, 0xb2, 0xb1, 0xf1, 0x19, 0x4c, 0xcb, 0xed, 0x4d, 0x98, 0x54, - 0x07, 0x21, 0x1b, 0x13, 0x34, 0x0f, 0xc3, 0x8c, 0x7d, 0x12, 0x02, 0xb3, 0x32, 0xed, 0x02, 0x63, - 0xad, 0x30, 0x2f, 0x67, 0x5d, 0xf0, 0xde, 0x25, 0x4b, 0xfb, 0x31, 0xe1, 0xcf, 0xf4, 0xa2, 0xd6, - 0x05, 0x09, 0xc0, 0x09, 0x8e, 0xfd, 0x7f, 0x39, 0x1b, 0x9a, 0x9c, 0xb6, 0x03, 0xdc, 0x2f, 0xcf, - 0x40, 0x69, 0x27, 0x88, 0x62, 0x8a, 0xcd, 0xda, 0x18, 0x4e, 0x18, 0xcf, 0x6b, 0xa2, 0x1c, 0x2b, - 0x0c, 0xf4, 0x2a, 0x4c, 0x34, 0xf4, 0x06, 0xc4, 0xe5, 0xa8, 0x8e, 0x11, 0xa3, 0x75, 0x6c, 0xe2, - 0xa2, 0x57, 0xa0, 0xc4, 0xcc, 0x3a, 0x1a, 0x41, 0x53, 0x70, 0x6d, 0xf2, 0x86, 0x2f, 0xd5, 0x44, - 0xf9, 0xa1, 0xf6, 0x1b, 0x2b, 0x6c, 0x74, 0x09, 0x46, 0x68, 0x17, 0xaa, 0x35, 0x71, 0x2d, 0x29, - 0xd9, 0xcf, 0x35, 0x56, 0x8a, 0x05, 0xd4, 0xfe, 0xab, 0x05, 0x6d, 0x94, 0xe9, 0x13, 0x97, 0xa0, - 0x1a, 0x8c, 0xde, 0x75, 0xbc, 0xd8, 0xf3, 0xb7, 0x05, 0xff, 0xf1, 0x54, 0xcf, 0x3b, 0x8a, 0x55, - 0xba, 0xc3, 0x2b, 0xf0, 0x5b, 0x54, 0xfc, 0xc1, 0x92, 0x0c, 0xa5, 0x18, 0x76, 0x7c, 0x9f, 0x52, - 0x2c, 0x0c, 0x4a, 0x11, 0xf3, 0x0a, 0x9c, 0xa2, 0xf8, 0x83, 0x25, 0x19, 0xf4, 0x16, 0x80, 0xdc, - 0x61, 0xc4, 0x15, 0xe6, 0x14, 0xcf, 0xf4, 0x27, 0xba, 0xa1, 0xea, 0x2c, 0x4d, 0xd2, 0x3b, 0x3a, - 0xf9, 0x8f, 0x35, 0x7a, 0x76, 0xcc, 0xf8, 0xb4, 0xee, 0xce, 0xa0, 0x6f, 0xa6, 0x4b, 0xdc, 0x09, - 0x63, 0xe2, 0x2e, 0xc6, 0x62, 0x70, 0x3e, 0x3a, 0xd8, 0x23, 0x65, 0xc3, 0x6b, 0x11, 0x7d, 0x3b, - 0x08, 0x22, 0x38, 0xa1, 0x67, 0xff, 0x62, 0x11, 0x66, 0xf3, 0xba, 0x4b, 0x17, 0x1d, 0xb9, 0xe7, - 0xc5, 0xcb, 0x94, 0xbd, 0xb2, 0xcc, 0x45, 0xb7, 0x22, 0xca, 0xb1, 0xc2, 0xa0, 0xb3, 0x1f, 0x79, - 0xdb, 0xf2, 0x8d, 0x39, 0x9c, 0xcc, 0x7e, 0x9d, 0x95, 0x62, 0x01, 0xa5, 0x78, 0x21, 0x71, 0x22, - 0x61, 0xaf, 0xa3, 0xad, 0x12, 0xcc, 0x4a, 0xb1, 0x80, 0xea, 0x02, 0xac, 0xa1, 0x3e, 0x02, 0x2c, - 0x63, 0x88, 0x86, 0x8f, 0x77, 0x88, 0xd0, 0xe7, 0x00, 0xb6, 0x3c, 0xdf, 0x8b, 0x76, 0x18, 0xf5, - 0x91, 0x23, 0x53, 0x57, 0xcc, 0xd9, 0xaa, 0xa2, 0x82, 0x35, 0x8a, 0xe8, 0x25, 0x18, 0x53, 0x1b, - 0xb0, 0x5a, 0x61, 0xca, 0x4b, 0xcd, 0x18, 0x24, 0x39, 0x8d, 0x2a, 0x58, 0xc7, 0xb3, 0xdf, 0x4e, - 0xaf, 0x17, 0xb1, 0x03, 0xb4, 0xf1, 0xb5, 0x06, 0x1d, 0xdf, 0x42, 0xef, 0xf1, 0xb5, 0xbf, 0x5a, - 0x84, 0x29, 0xa3, 0xb1, 0x4e, 0x34, 0xc0, 0x99, 0x75, 0x95, 0x1e, 0xe0, 0x4e, 0x4c, 0xc4, 0xfe, - 0xb3, 0xfb, 0x6f, 0x15, 0xfd, 0x90, 0xa7, 0x3b, 0x80, 0xd7, 0x47, 0x9f, 0x83, 0x72, 0xd3, 0x89, - 0x98, 0x30, 0x8c, 0x88, 0x7d, 0x37, 0x08, 0xb1, 0xe4, 0x61, 0xe2, 0x44, 0xb1, 0x76, 0x6b, 0x72, - 0xda, 0x09, 0x49, 0x7a, 0xd3, 0x50, 0xfe, 0x44, 0x1a, 0x84, 0xa9, 0x4e, 0x50, 0x26, 0x66, 0x1f, - 0x73, 0x18, 0x7a, 0x05, 0xc6, 0x43, 0xc2, 0x56, 0xc5, 0x32, 0xe5, 0xe6, 0xd8, 0x32, 0x1b, 0x4e, - 0xd8, 0x3e, 0xac, 0xc1, 0xb0, 0x81, 0x99, 0xbc, 0x0d, 0x46, 0x7a, 0xbc, 0x0d, 0x9e, 0x82, 0x51, - 0xf6, 0x43, 0xad, 0x00, 0x35, 0x1b, 0x55, 0x5e, 0x8c, 0x25, 0x3c, 0xbd, 0x60, 0x4a, 0x83, 0x2d, - 0x18, 0xfa, 0xfa, 0x10, 0x8b, 0x9a, 0x29, 0x8e, 0x4b, 0xfc, 0x94, 0x13, 0x4b, 0x1e, 0x4b, 0x98, - 0xfd, 0x51, 0x98, 0xac, 0x38, 0xa4, 0x15, 0xf8, 0x2b, 0xbe, 0xdb, 0x0e, 0x3c, 0x3f, 0x46, 0xb3, - 0x30, 0xc4, 0x2e, 0x11, 0x7e, 0x04, 0x0c, 0xd1, 0x86, 0xf0, 0x10, 0x7d, 0x10, 0xd8, 0xdb, 0x70, - 0xa6, 0x12, 0xdc, 0xf5, 0xef, 0x3a, 0xa1, 0xbb, 0x58, 0xab, 0x6a, 0xef, 0xeb, 0x75, 0xf9, 0xbe, - 0xe3, 0x76, 0x58, 0x99, 0x47, 0xaf, 0x56, 0x93, 0xb3, 0xb5, 0xab, 0x5e, 0x93, 0xe4, 0x48, 0x41, - 0xfe, 0x46, 0xc1, 0x68, 0x29, 0xc1, 0x57, 0x8a, 0x2a, 0x2b, 0x57, 0x51, 0xf5, 0x06, 0x94, 0xb6, - 0x3c, 0xd2, 0x74, 0x31, 0xd9, 0x12, 0x2b, 0xf1, 0xc9, 0x7c, 0xd3, 0x92, 0x55, 0x8a, 0x29, 0xa5, - 0x5e, 0xfc, 0x75, 0xb8, 0x2a, 0x2a, 0x63, 0x45, 0x06, 0xed, 0xc2, 0xb4, 0x7c, 0x30, 0x48, 0xa8, - 0x58, 0x97, 0x4f, 0xf5, 0x7a, 0x85, 0x98, 0xc4, 0x4f, 0xdf, 0x3f, 0x98, 0x9f, 0xc6, 0x29, 0x32, - 0xb8, 0x8b, 0x30, 0x7d, 0x0e, 0xb6, 0xe8, 0x09, 0x3c, 0xc4, 0x86, 0x9f, 0x3d, 0x07, 0xd9, 0xcb, - 0x96, 0x95, 0xda, 0x3f, 0x62, 0xc1, 0x23, 0x5d, 0x23, 0x23, 0x5e, 0xf8, 0xc7, 0x3c, 0x0b, 0xe9, - 0x17, 0x77, 0xa1, 0xff, 0x8b, 0xdb, 0xfe, 0x19, 0x0b, 0x4e, 0xaf, 0xb4, 0xda, 0xf1, 0x7e, 0xc5, - 0x33, 0xb5, 0x4a, 0x2f, 0xc3, 0x48, 0x8b, 0xb8, 0x5e, 0xa7, 0x25, 0x66, 0x6e, 0x5e, 0x9e, 0x52, - 0x6b, 0xac, 0xf4, 0xf0, 0x60, 0x7e, 0xa2, 0x1e, 0x07, 0xa1, 0xb3, 0x4d, 0x78, 0x01, 0x16, 0xe8, - 0xec, 0xac, 0xf7, 0xde, 0x25, 0x37, 0xbc, 0x96, 0x27, 0x4d, 0x85, 0x7a, 0xca, 0xec, 0x16, 0xe4, - 0x80, 0x2e, 0xbc, 0xd1, 0x71, 0xfc, 0xd8, 0x8b, 0xf7, 0x85, 0x42, 0x48, 0x12, 0xc1, 0x09, 0x3d, - 0xfb, 0x2b, 0x16, 0x4c, 0xc9, 0x75, 0xbf, 0xe8, 0xba, 0x21, 0x89, 0x22, 0x34, 0x07, 0x05, 0xaf, - 0x2d, 0x7a, 0x09, 0xa2, 0x97, 0x85, 0x6a, 0x0d, 0x17, 0xbc, 0xb6, 0x64, 0xcb, 0xd8, 0x41, 0x58, - 0x34, 0x75, 0x63, 0xd7, 0x44, 0x39, 0x56, 0x18, 0xe8, 0x32, 0x94, 0xfc, 0xc0, 0xe5, 0xe6, 0x5a, - 0xfc, 0x4a, 0x63, 0x0b, 0x6c, 0x5d, 0x94, 0x61, 0x05, 0x45, 0x35, 0x28, 0x73, 0x4b, 0xa6, 0x64, - 0xd1, 0x0e, 0x64, 0x0f, 0xc5, 0xbe, 0x6c, 0x43, 0xd6, 0xc4, 0x09, 0x11, 0xfb, 0xfb, 0x2d, 0x18, - 0x97, 0x5f, 0x36, 0x20, 0xcf, 0x49, 0xb7, 0x56, 0xc2, 0x6f, 0x26, 0x5b, 0x8b, 0xf2, 0x8c, 0x0c, - 0x62, 0xb0, 0x8a, 0xc5, 0xa3, 0xb0, 0x8a, 0xf6, 0x0f, 0x17, 0x60, 0x52, 0x76, 0xa7, 0xde, 0xd9, - 0x8c, 0x48, 0x8c, 0x36, 0xa0, 0xec, 0xf0, 0x21, 0x27, 0x72, 0xc5, 0x3e, 0x91, 0x2d, 0x14, 0x30, - 0xe6, 0x27, 0xb9, 0xbd, 0x17, 0x65, 0x6d, 0x9c, 0x10, 0x42, 0x4d, 0x98, 0xf1, 0x83, 0x98, 0x9d, - 0xe4, 0x0a, 0xde, 0x4b, 0xf5, 0x92, 0xa6, 0x7e, 0x4e, 0x50, 0x9f, 0x59, 0x4f, 0x53, 0xc1, 0xdd, - 0x84, 0xd1, 0x8a, 0x14, 0xb4, 0x14, 0xf3, 0x5f, 0xf6, 0xfa, 0x2c, 0x64, 0xcb, 0x59, 0xec, 0x5f, - 0xb1, 0xa0, 0x2c, 0xd1, 0x4e, 0x42, 0xcb, 0xb6, 0x06, 0xa3, 0x11, 0x9b, 0x04, 0x39, 0x34, 0x76, - 0xaf, 0x8e, 0xf3, 0xf9, 0x4a, 0x2e, 0x28, 0xfe, 0x3f, 0xc2, 0x92, 0x06, 0x93, 0xb3, 0xab, 0xee, - 0xbf, 0x4f, 0xe4, 0xec, 0xaa, 0x3f, 0x39, 0x37, 0xcc, 0x1f, 0xb0, 0x3e, 0x6b, 0x82, 0x2b, 0xca, - 0x47, 0xb5, 0x43, 0xb2, 0xe5, 0xdd, 0x4b, 0xf3, 0x51, 0x35, 0x56, 0x8a, 0x05, 0x14, 0xbd, 0x05, - 0xe3, 0x0d, 0x29, 0x60, 0x4d, 0xb6, 0xeb, 0xa5, 0x9e, 0xc2, 0x7e, 0xa5, 0x17, 0xe2, 0x82, 0x8d, - 0x65, 0xad, 0x3e, 0x36, 0xa8, 0x99, 0x6a, 0xfe, 0x62, 0x3f, 0x35, 0x7f, 0x42, 0x37, 0x5f, 0xe9, - 0xfd, 0xa3, 0x16, 0x8c, 0x70, 0xc1, 0xda, 0x60, 0x72, 0x4d, 0x4d, 0x4d, 0x96, 0x8c, 0xdd, 0x6d, - 0x5a, 0x28, 0xd4, 0x5e, 0x68, 0x0d, 0xca, 0xec, 0x07, 0x13, 0x0c, 0x16, 0xf3, 0xad, 0xe2, 0x79, - 0xab, 0x7a, 0x07, 0x6f, 0xcb, 0x6a, 0x38, 0xa1, 0x60, 0xff, 0x60, 0x91, 0x1e, 0x55, 0x09, 0xaa, - 0x71, 0x83, 0x5b, 0x0f, 0xef, 0x06, 0x2f, 0x3c, 0xac, 0x1b, 0x7c, 0x1b, 0xa6, 0x1a, 0x9a, 0x52, - 0x2d, 0x99, 0xc9, 0xcb, 0x3d, 0x17, 0x89, 0xa6, 0x7f, 0xe3, 0x22, 0x93, 0x65, 0x93, 0x08, 0x4e, - 0x53, 0x45, 0xdf, 0x0c, 0xe3, 0x7c, 0x9e, 0x45, 0x2b, 0xdc, 0x52, 0xe2, 0x23, 0xf9, 0xeb, 0x45, - 0x6f, 0x82, 0x8b, 0xd8, 0xb4, 0xea, 0xd8, 0x20, 0x66, 0xff, 0xb1, 0x05, 0x68, 0xa5, 0xbd, 0x43, - 0x5a, 0x24, 0x74, 0x9a, 0x89, 0x6c, 0xfc, 0x2f, 0x5b, 0x30, 0x4b, 0xba, 0x8a, 0x97, 0x83, 0x56, - 0x4b, 0xbc, 0x40, 0x72, 0x1e, 0xc9, 0x2b, 0x39, 0x75, 0x94, 0xdb, 0xc0, 0x6c, 0x1e, 0x06, 0xce, - 0x6d, 0x0f, 0xad, 0xc1, 0x29, 0x7e, 0xe5, 0x29, 0x80, 0x66, 0x1b, 0xfd, 0xa8, 0x20, 0x7c, 0x6a, - 0xa3, 0x1b, 0x05, 0x67, 0xd5, 0xb3, 0xbf, 0x73, 0x1c, 0x72, 0x7b, 0xf1, 0x81, 0x52, 0xe0, 0x03, - 0xa5, 0xc0, 0x07, 0x4a, 0x81, 0x0f, 0x94, 0x02, 0x1f, 0x28, 0x05, 0xbe, 0xee, 0x95, 0x02, 0x7f, - 0x68, 0xc1, 0xa9, 0xee, 0x6b, 0xe0, 0x24, 0x18, 0xf3, 0x0e, 0x9c, 0xea, 0xbe, 0xeb, 0x7a, 0xda, - 0xc1, 0x75, 0xf7, 0x33, 0xb9, 0xf7, 0x32, 0xbe, 0x01, 0x67, 0xd1, 0xb7, 0x7f, 0xb1, 0x04, 0xc3, - 0x2b, 0x7b, 0xc4, 0x8f, 0x4f, 0xe0, 0x13, 0x1b, 0x30, 0xe9, 0xf9, 0x7b, 0x41, 0x73, 0x8f, 0xb8, - 0x1c, 0x7e, 0x94, 0xf7, 0xee, 0x59, 0x41, 0x7a, 0xb2, 0x6a, 0x90, 0xc0, 0x29, 0x92, 0x0f, 0x43, - 0xe6, 0x7c, 0x15, 0x46, 0xf8, 0xed, 0x20, 0x04, 0xce, 0x99, 0x97, 0x01, 0x1b, 0x44, 0x71, 0xe7, - 0x25, 0xf2, 0x70, 0x7e, 0xfb, 0x88, 0xea, 0xe8, 0x6d, 0x98, 0xdc, 0xf2, 0xc2, 0x28, 0xde, 0xf0, - 0x5a, 0x24, 0x8a, 0x9d, 0x56, 0xfb, 0x01, 0x64, 0xcc, 0x6a, 0x1c, 0x56, 0x0d, 0x4a, 0x38, 0x45, - 0x19, 0x6d, 0xc3, 0x44, 0xd3, 0xd1, 0x9b, 0x1a, 0x3d, 0x72, 0x53, 0xea, 0xda, 0xb9, 0xa1, 0x13, - 0xc2, 0x26, 0x5d, 0xba, 0x4f, 0x1b, 0x4c, 0x4c, 0x5a, 0x62, 0xc2, 0x03, 0xb5, 0x4f, 0xb9, 0x7c, - 0x94, 0xc3, 0x28, 0x07, 0xc5, 0x2c, 0x63, 0xcb, 0x26, 0x07, 0xa5, 0xd9, 0xbf, 0x7e, 0x1e, 0xca, - 0x84, 0x0e, 0x21, 0x25, 0x2c, 0x6e, 0xae, 0x2b, 0x83, 0xf5, 0x75, 0xcd, 0x6b, 0x84, 0x81, 0x29, - 0xdd, 0x5f, 0x91, 0x94, 0x70, 0x42, 0x14, 0x2d, 0xc3, 0x48, 0x44, 0x42, 0x8f, 0x44, 0xe2, 0x0e, - 0xeb, 0x31, 0x8d, 0x0c, 0x8d, 0x3b, 0x95, 0xf0, 0xdf, 0x58, 0x54, 0xa5, 0xcb, 0xcb, 0x61, 0x82, - 0x4f, 0x76, 0xcb, 0x68, 0xcb, 0x6b, 0x91, 0x95, 0x62, 0x01, 0x45, 0xaf, 0xc3, 0x68, 0x48, 0x9a, - 0x4c, 0x7d, 0x34, 0x31, 0xf8, 0x22, 0xe7, 0xda, 0x28, 0x5e, 0x0f, 0x4b, 0x02, 0xe8, 0x3a, 0xa0, - 0x90, 0x50, 0x0e, 0xcc, 0xf3, 0xb7, 0x95, 0xbd, 0xa8, 0x38, 0xc1, 0xd5, 0x8e, 0xc7, 0x09, 0x86, - 0xf4, 0xef, 0xc1, 0x19, 0xd5, 0xd0, 0x55, 0x98, 0x51, 0xa5, 0x55, 0x3f, 0x8a, 0x1d, 0x7a, 0x72, - 0x4e, 0x31, 0x5a, 0x4a, 0x00, 0x82, 0xd3, 0x08, 0xb8, 0xbb, 0x8e, 0xfd, 0x53, 0x16, 0xf0, 0x71, - 0x3e, 0x81, 0x67, 0xff, 0x6b, 0xe6, 0xb3, 0xff, 0x5c, 0xee, 0xcc, 0xe5, 0x3c, 0xf9, 0xef, 0x5b, - 0x30, 0xa6, 0xcd, 0x6c, 0xb2, 0x66, 0xad, 0x1e, 0x6b, 0xb6, 0x03, 0xd3, 0x74, 0xa5, 0xdf, 0xdc, - 0x8c, 0x48, 0xb8, 0x47, 0x5c, 0xb6, 0x30, 0x0b, 0x0f, 0xb6, 0x30, 0x95, 0x21, 0xdb, 0x8d, 0x14, - 0x41, 0xdc, 0xd5, 0x04, 0x7a, 0x59, 0xea, 0x52, 0x8a, 0x86, 0x1d, 0x38, 0xd7, 0x93, 0x1c, 0x1e, - 0xcc, 0x4f, 0x6b, 0x1f, 0xa2, 0xeb, 0x4e, 0xec, 0xcf, 0xcb, 0x6f, 0x54, 0x06, 0x83, 0x0d, 0xb5, - 0x58, 0x52, 0x06, 0x83, 0x6a, 0x39, 0xe0, 0x04, 0x87, 0xee, 0xd1, 0x9d, 0x20, 0x8a, 0xd3, 0x06, - 0x83, 0xd7, 0x82, 0x28, 0xc6, 0x0c, 0x62, 0xbf, 0x00, 0xb0, 0x72, 0x8f, 0x34, 0xf8, 0x52, 0xd7, - 0x9f, 0x33, 0x56, 0xfe, 0x73, 0xc6, 0xfe, 0x0f, 0x16, 0x4c, 0xae, 0x2e, 0x1b, 0x12, 0xe1, 0x05, - 0x00, 0xfe, 0x06, 0xbb, 0x73, 0x67, 0x5d, 0x6a, 0xdb, 0xb9, 0xc2, 0x54, 0x95, 0x62, 0x0d, 0x03, - 0x9d, 0x83, 0x62, 0xb3, 0xe3, 0x0b, 0xe9, 0xe4, 0x28, 0xbd, 0xb0, 0x6f, 0x74, 0x7c, 0x4c, 0xcb, - 0x34, 0x27, 0x84, 0xe2, 0xc0, 0x4e, 0x08, 0x7d, 0x83, 0x01, 0xa0, 0x79, 0x18, 0xbe, 0x7b, 0xd7, - 0x73, 0xb9, 0xcb, 0xa5, 0xb0, 0x04, 0xb8, 0x73, 0xa7, 0x5a, 0x89, 0x30, 0x2f, 0xb7, 0xbf, 0x54, - 0x84, 0xb9, 0xd5, 0x26, 0xb9, 0xf7, 0x1e, 0xdd, 0x4e, 0x07, 0x75, 0xa1, 0x38, 0x9a, 0x68, 0xe8, - 0xa8, 0x6e, 0x32, 0xfd, 0xc7, 0x63, 0x0b, 0x46, 0xb9, 0xbd, 0x9c, 0x74, 0x42, 0x7d, 0x35, 0xab, - 0xf5, 0xfc, 0x01, 0x59, 0xe0, 0x76, 0x77, 0xc2, 0x87, 0x4e, 0xdd, 0xb4, 0xa2, 0x14, 0x4b, 0xe2, - 0x73, 0x9f, 0x80, 0x71, 0x1d, 0xf3, 0x48, 0x0e, 0x6b, 0x7f, 0xa9, 0x08, 0xd3, 0xb4, 0x07, 0x0f, - 0x75, 0x22, 0x6e, 0x75, 0x4f, 0xc4, 0x71, 0x3b, 0x2d, 0xf5, 0x9f, 0x8d, 0xb7, 0xd2, 0xb3, 0xf1, - 0x5c, 0xde, 0x6c, 0x9c, 0xf4, 0x1c, 0x7c, 0x87, 0x05, 0xa7, 0x56, 0x9b, 0x41, 0x63, 0x37, 0xe5, - 0x58, 0xf4, 0x12, 0x8c, 0xd1, 0x73, 0x3c, 0x32, 0x7c, 0xde, 0x8d, 0x28, 0x08, 0x02, 0x84, 0x75, - 0x3c, 0xad, 0xda, 0xad, 0x5b, 0xd5, 0x4a, 0x56, 0xf0, 0x04, 0x01, 0xc2, 0x3a, 0x9e, 0xfd, 0x9b, - 0x16, 0x9c, 0xbf, 0xba, 0xbc, 0x92, 0x2c, 0xc5, 0xae, 0xf8, 0x0d, 0x97, 0x60, 0xa4, 0xed, 0x6a, - 0x5d, 0x49, 0x04, 0xbe, 0x15, 0xd6, 0x0b, 0x01, 0x7d, 0xbf, 0xc4, 0x26, 0xf9, 0x49, 0x0b, 0x4e, - 0x5d, 0xf5, 0x62, 0x7a, 0x2d, 0xa7, 0x23, 0x09, 0xd0, 0x7b, 0x39, 0xf2, 0xe2, 0x20, 0xdc, 0x4f, - 0x47, 0x12, 0xc0, 0x0a, 0x82, 0x35, 0x2c, 0xde, 0xf2, 0x9e, 0xc7, 0x2c, 0xb5, 0x0b, 0xa6, 0x1e, - 0x0b, 0x8b, 0x72, 0xac, 0x30, 0xe8, 0x87, 0xb9, 0x5e, 0xc8, 0xa4, 0x86, 0xfb, 0xe2, 0x84, 0x55, - 0x1f, 0x56, 0x91, 0x00, 0x9c, 0xe0, 0xd0, 0x07, 0xd4, 0xfc, 0xd5, 0x66, 0x27, 0x8a, 0x49, 0xb8, - 0x15, 0xe5, 0x9c, 0x8e, 0x2f, 0x40, 0x99, 0x48, 0x19, 0xbd, 0xe8, 0xb5, 0x62, 0x35, 0x95, 0xf0, - 0x9e, 0x07, 0x34, 0x50, 0x78, 0x03, 0xb8, 0x29, 0x1e, 0xcd, 0xcf, 0x6c, 0x15, 0x10, 0xd1, 0xdb, - 0xd2, 0x23, 0x3c, 0x30, 0x57, 0xf1, 0x95, 0x2e, 0x28, 0xce, 0xa8, 0x61, 0xff, 0x88, 0x05, 0x67, - 0xd4, 0x07, 0xbf, 0xef, 0x3e, 0xd3, 0xfe, 0xb9, 0x02, 0x4c, 0x5c, 0xdb, 0xd8, 0xa8, 0x5d, 0x25, - 0xb1, 0xb8, 0xb6, 0xfb, 0xab, 0xd1, 0xb1, 0xa6, 0x0d, 0xec, 0xf5, 0x0a, 0xec, 0xc4, 0x5e, 0x73, - 0x81, 0x07, 0x0a, 0x5a, 0xa8, 0xfa, 0xf1, 0xcd, 0xb0, 0x1e, 0x87, 0x9e, 0xbf, 0x9d, 0xa9, 0x3f, - 0x94, 0xcc, 0x45, 0x31, 0x8f, 0xb9, 0x40, 0x2f, 0xc0, 0x08, 0x8b, 0x54, 0x24, 0x27, 0xe1, 0x51, - 0xf5, 0x88, 0x62, 0xa5, 0x87, 0x07, 0xf3, 0xe5, 0x5b, 0xb8, 0xca, 0xff, 0x60, 0x81, 0x8a, 0x6e, - 0xc1, 0xd8, 0x4e, 0x1c, 0xb7, 0xaf, 0x11, 0xc7, 0xa5, 0xaf, 0x65, 0x7e, 0x1c, 0x5e, 0xc8, 0x3a, - 0x0e, 0xe9, 0x20, 0x70, 0xb4, 0xe4, 0x04, 0x49, 0xca, 0x22, 0xac, 0xd3, 0xb1, 0xeb, 0x00, 0x09, - 0xec, 0x98, 0x74, 0x27, 0xf6, 0xef, 0x5b, 0x30, 0xca, 0x83, 0x46, 0x84, 0xe8, 0x93, 0x30, 0x44, - 0xee, 0x91, 0x86, 0x60, 0x95, 0x33, 0x3b, 0x9c, 0x70, 0x5a, 0x5c, 0x06, 0x4c, 0xff, 0x63, 0x56, - 0x0b, 0x5d, 0x83, 0x51, 0xda, 0xdb, 0xab, 0x2a, 0x82, 0xc6, 0xe3, 0x79, 0x5f, 0xac, 0xa6, 0x9d, - 0x33, 0x67, 0xa2, 0x08, 0xcb, 0xea, 0x4c, 0xfb, 0xdc, 0x68, 0xd7, 0xe9, 0x89, 0x1d, 0xf7, 0x62, - 0x2c, 0x36, 0x96, 0x6b, 0x1c, 0x49, 0x50, 0xe3, 0xda, 0x67, 0x59, 0x88, 0x13, 0x22, 0xf6, 0x06, - 0x94, 0xe9, 0xa4, 0x2e, 0x36, 0x3d, 0xa7, 0xb7, 0x42, 0xfd, 0x69, 0x28, 0x4b, 0x75, 0x79, 0x24, - 0x9c, 0xc5, 0x19, 0x55, 0xa9, 0x4d, 0x8f, 0x70, 0x02, 0xb7, 0xb7, 0xe0, 0x34, 0x33, 0x7e, 0x74, - 0xe2, 0x1d, 0x63, 0x8f, 0xf5, 0x5f, 0xcc, 0xcf, 0x88, 0x97, 0x27, 0x9f, 0x99, 0x59, 0xcd, 0x1f, - 0x73, 0x5c, 0x52, 0x4c, 0x5e, 0xa1, 0xf6, 0x57, 0x87, 0xe0, 0xd1, 0x6a, 0x3d, 0x3f, 0x9e, 0xc8, - 0x2b, 0x30, 0xce, 0xf9, 0x52, 0xba, 0xb4, 0x9d, 0xa6, 0x68, 0x57, 0x09, 0x7f, 0x37, 0x34, 0x18, - 0x36, 0x30, 0xd1, 0x79, 0x28, 0x7a, 0xef, 0xf8, 0x69, 0xd7, 0xa6, 0xea, 0x1b, 0xeb, 0x98, 0x96, - 0x53, 0x30, 0x65, 0x71, 0xf9, 0xdd, 0xa1, 0xc0, 0x8a, 0xcd, 0x7d, 0x0d, 0x26, 0xbd, 0xa8, 0x11, - 0x79, 0x55, 0x9f, 0x9e, 0x33, 0xda, 0x49, 0xa5, 0xa4, 0x22, 0xb4, 0xd3, 0x0a, 0x8a, 0x53, 0xd8, - 0xda, 0x45, 0x36, 0x3c, 0x30, 0x9b, 0xdc, 0xd7, 0x7b, 0x9a, 0xbe, 0x00, 0xda, 0xec, 0xeb, 0x22, - 0x26, 0xc5, 0x17, 0x2f, 0x00, 0xfe, 0xc1, 0x11, 0x96, 0x30, 0xfa, 0xe4, 0x6c, 0xec, 0x38, 0xed, - 0xc5, 0x4e, 0xbc, 0x53, 0xf1, 0xa2, 0x46, 0xb0, 0x47, 0xc2, 0x7d, 0x26, 0x2d, 0x28, 0x25, 0x4f, - 0x4e, 0x05, 0x58, 0xbe, 0xb6, 0x58, 0xa3, 0x98, 0xb8, 0xbb, 0x0e, 0x5a, 0x84, 0x29, 0x59, 0x58, - 0x27, 0x11, 0xbb, 0xc2, 0xc6, 0x18, 0x19, 0xe5, 0x6c, 0x24, 0x8a, 0x15, 0x91, 0x34, 0xbe, 0xc9, - 0x49, 0xc3, 0x71, 0x70, 0xd2, 0x2f, 0xc3, 0x84, 0xe7, 0x7b, 0xb1, 0xe7, 0xc4, 0x01, 0x57, 0x41, - 0x71, 0xc1, 0x00, 0x93, 0xad, 0x57, 0x75, 0x00, 0x36, 0xf1, 0xec, 0xff, 0x36, 0x04, 0x33, 0x6c, - 0xda, 0x3e, 0x58, 0x61, 0x5f, 0x4f, 0x2b, 0xec, 0x56, 0xf7, 0x0a, 0x3b, 0x8e, 0x27, 0xc2, 0x03, - 0x2f, 0xb3, 0xb7, 0xa1, 0xac, 0xfc, 0xab, 0xa4, 0x83, 0xa5, 0x95, 0xe3, 0x60, 0xd9, 0x9f, 0xfb, - 0x90, 0x26, 0x6a, 0xc5, 0x4c, 0x13, 0xb5, 0xbf, 0x65, 0x41, 0xa2, 0x53, 0x41, 0xd7, 0xa0, 0xdc, - 0x0e, 0x98, 0xe5, 0x65, 0x28, 0xcd, 0x99, 0x1f, 0xcd, 0xbc, 0xa8, 0xf8, 0xa5, 0xc8, 0x3f, 0xbe, - 0x26, 0x6b, 0xe0, 0xa4, 0x32, 0x5a, 0x82, 0xd1, 0x76, 0x48, 0xea, 0x31, 0x0b, 0x2b, 0xd2, 0x97, - 0x0e, 0x5f, 0x23, 0x1c, 0x1f, 0xcb, 0x8a, 0xf6, 0xcf, 0x5b, 0x00, 0xdc, 0x0a, 0xcc, 0xf1, 0xb7, - 0xc9, 0x09, 0x88, 0xbb, 0x2b, 0x30, 0x14, 0xb5, 0x49, 0xa3, 0x97, 0x4d, 0x6c, 0xd2, 0x9f, 0x7a, - 0x9b, 0x34, 0x92, 0x01, 0xa7, 0xff, 0x30, 0xab, 0x6d, 0x7f, 0x17, 0xc0, 0x64, 0x82, 0x56, 0x8d, - 0x49, 0x0b, 0x3d, 0x6b, 0x84, 0x19, 0x38, 0x97, 0x0a, 0x33, 0x50, 0x66, 0xd8, 0x9a, 0x64, 0xf5, - 0x6d, 0x28, 0xb6, 0x9c, 0x7b, 0x42, 0x74, 0xf6, 0x74, 0xef, 0x6e, 0x50, 0xfa, 0x0b, 0x6b, 0xce, - 0x3d, 0xfe, 0x48, 0x7c, 0x5a, 0x2e, 0x90, 0x35, 0xe7, 0xde, 0x21, 0xb7, 0x7c, 0x65, 0x87, 0xd4, - 0x0d, 0x2f, 0x8a, 0xbf, 0xf0, 0x5f, 0x93, 0xff, 0x6c, 0xd9, 0xd1, 0x46, 0x58, 0x5b, 0x9e, 0x2f, - 0x6c, 0xa2, 0x06, 0x6a, 0xcb, 0xf3, 0xd3, 0x6d, 0x79, 0xfe, 0x00, 0x6d, 0x79, 0x3e, 0x7a, 0x17, - 0x46, 0x85, 0xfd, 0xa1, 0x08, 0xeb, 0x73, 0x65, 0x80, 0xf6, 0x84, 0xf9, 0x22, 0x6f, 0xf3, 0x8a, - 0x7c, 0x04, 0x8b, 0xd2, 0xbe, 0xed, 0xca, 0x06, 0xd1, 0x5f, 0xb7, 0x60, 0x52, 0xfc, 0xc6, 0xe4, - 0x9d, 0x0e, 0x89, 0x62, 0xc1, 0x7b, 0x7e, 0x7c, 0xf0, 0x3e, 0x88, 0x8a, 0xbc, 0x2b, 0x1f, 0x97, - 0xc7, 0xac, 0x09, 0xec, 0xdb, 0xa3, 0x54, 0x2f, 0xd0, 0x3f, 0xb0, 0xe0, 0x74, 0xcb, 0xb9, 0xc7, - 0x5b, 0xe4, 0x65, 0xd8, 0x89, 0xbd, 0x40, 0xa8, 0xfe, 0x3f, 0x39, 0xd8, 0xf4, 0x77, 0x55, 0xe7, - 0x9d, 0x94, 0xfa, 0xc9, 0xd3, 0x59, 0x28, 0x7d, 0xbb, 0x9a, 0xd9, 0xaf, 0xb9, 0x2d, 0x28, 0xc9, - 0xf5, 0x96, 0x21, 0x6a, 0xa8, 0xe8, 0x8c, 0xf5, 0x91, 0xcd, 0x3f, 0x75, 0x5f, 0x7f, 0xda, 0x8e, - 0x58, 0x6b, 0x0f, 0xb5, 0x9d, 0xb7, 0x61, 0x5c, 0x5f, 0x63, 0x0f, 0xb5, 0xad, 0x77, 0xe0, 0x54, - 0xc6, 0x5a, 0x7a, 0xa8, 0x4d, 0xde, 0x85, 0x73, 0xb9, 0xeb, 0xe3, 0x61, 0x36, 0x6c, 0xff, 0x9c, - 0xa5, 0x9f, 0x83, 0x27, 0xa0, 0x73, 0x58, 0x36, 0x75, 0x0e, 0x17, 0x7a, 0xef, 0x9c, 0x1c, 0xc5, - 0xc3, 0x5b, 0x7a, 0xa7, 0xe9, 0xa9, 0x8e, 0x5e, 0x87, 0x91, 0x26, 0x2d, 0x91, 0x86, 0xaf, 0x76, - 0xff, 0x1d, 0x99, 0xf0, 0x52, 0xac, 0x3c, 0xc2, 0x82, 0x82, 0xfd, 0x4b, 0x16, 0x0c, 0x9d, 0xc0, - 0x48, 0x60, 0x73, 0x24, 0x9e, 0xcd, 0x25, 0x2d, 0x22, 0x0e, 0x2f, 0x60, 0xe7, 0xee, 0xca, 0xbd, - 0x98, 0xf8, 0x11, 0x7b, 0x2a, 0x66, 0x0e, 0xcc, 0xb7, 0xc0, 0xa9, 0x1b, 0x81, 0xe3, 0x2e, 0x39, - 0x4d, 0xc7, 0x6f, 0x90, 0xb0, 0xea, 0x6f, 0x1f, 0xc9, 0x02, 0xbb, 0xd0, 0xcf, 0x02, 0xdb, 0xde, - 0x01, 0xa4, 0x37, 0x20, 0x5c, 0x59, 0x30, 0x8c, 0x7a, 0xbc, 0x29, 0x31, 0xfc, 0x4f, 0x66, 0xb3, - 0x66, 0x5d, 0x3d, 0xd3, 0x9c, 0x34, 0x78, 0x01, 0x96, 0x84, 0xec, 0x57, 0x20, 0xd3, 0x1f, 0xbe, - 0xbf, 0xd8, 0xc0, 0xfe, 0x0c, 0xcc, 0xb0, 0x9a, 0x47, 0x7c, 0xd2, 0xda, 0x29, 0xa9, 0x64, 0x46, - 0xf0, 0x3b, 0xfb, 0x8b, 0x16, 0x4c, 0xad, 0xa7, 0x62, 0x82, 0x5d, 0x62, 0x0a, 0xd0, 0x0c, 0x61, - 0x78, 0x9d, 0x95, 0x62, 0x01, 0x3d, 0x76, 0x19, 0xd4, 0x9f, 0x5b, 0x90, 0x84, 0xa8, 0x38, 0x01, - 0xc6, 0x6b, 0xd9, 0x60, 0xbc, 0x32, 0x65, 0x23, 0xaa, 0x3b, 0x79, 0x7c, 0x17, 0xba, 0xae, 0xe2, - 0x31, 0xf5, 0x10, 0x8b, 0x24, 0x64, 0x78, 0xf4, 0x9e, 0x49, 0x33, 0x68, 0x93, 0x8c, 0xd0, 0x64, - 0xff, 0xe7, 0x02, 0x20, 0x85, 0x3b, 0x70, 0xbc, 0xa8, 0xee, 0x1a, 0xc7, 0x13, 0x2f, 0x6a, 0x0f, - 0x10, 0x53, 0xe1, 0x87, 0x8e, 0x1f, 0x71, 0xb2, 0x9e, 0x90, 0xba, 0x1d, 0xcd, 0x3e, 0x60, 0x4e, - 0x34, 0x89, 0x6e, 0x74, 0x51, 0xc3, 0x19, 0x2d, 0x68, 0xa6, 0x19, 0xc3, 0x83, 0x9a, 0x66, 0x8c, - 0xf4, 0x71, 0x57, 0xfb, 0x59, 0x0b, 0x26, 0xd4, 0x30, 0xbd, 0x4f, 0xec, 0xcf, 0x55, 0x7f, 0x72, - 0x8e, 0xbe, 0x9a, 0xd6, 0x65, 0x76, 0x25, 0x7c, 0x23, 0x73, 0x3b, 0x74, 0x9a, 0xde, 0xbb, 0x44, - 0x45, 0xeb, 0x9b, 0x17, 0x6e, 0x84, 0xa2, 0xf4, 0xf0, 0x60, 0x7e, 0x42, 0xfd, 0xe3, 0xd1, 0x81, - 0x93, 0x2a, 0xf6, 0x8f, 0xd3, 0xcd, 0x6e, 0x2e, 0x45, 0xf4, 0x12, 0x0c, 0xb7, 0x77, 0x9c, 0x88, - 0xa4, 0x9c, 0x6e, 0x86, 0x6b, 0xb4, 0xf0, 0xf0, 0x60, 0x7e, 0x52, 0x55, 0x60, 0x25, 0x98, 0x63, - 0x0f, 0x1e, 0x85, 0xab, 0x7b, 0x71, 0xf6, 0x8d, 0xc2, 0xf5, 0xc7, 0x16, 0x0c, 0xad, 0x07, 0xee, - 0x49, 0x1c, 0x01, 0xaf, 0x19, 0x47, 0xc0, 0x63, 0x79, 0x81, 0xdb, 0x73, 0x77, 0xff, 0x6a, 0x6a, - 0xf7, 0x5f, 0xc8, 0xa5, 0xd0, 0x7b, 0xe3, 0xb7, 0x60, 0x8c, 0x85, 0x83, 0x17, 0x0e, 0x46, 0x2f, - 0x18, 0x1b, 0x7e, 0x3e, 0xb5, 0xe1, 0xa7, 0x34, 0x54, 0x6d, 0xa7, 0x3f, 0x05, 0xa3, 0xc2, 0xc9, - 0x25, 0xed, 0xbd, 0x29, 0x70, 0xb1, 0x84, 0xdb, 0x3f, 0x5a, 0x04, 0x23, 0xfc, 0x3c, 0xfa, 0x15, - 0x0b, 0x16, 0x42, 0x6e, 0xfc, 0xea, 0x56, 0x3a, 0xa1, 0xe7, 0x6f, 0xd7, 0x1b, 0x3b, 0xc4, 0xed, - 0x34, 0x3d, 0x7f, 0xbb, 0xba, 0xed, 0x07, 0xaa, 0x78, 0xe5, 0x1e, 0x69, 0x74, 0x98, 0xfa, 0xaa, - 0x4f, 0xac, 0x7b, 0x65, 0x44, 0xfe, 0xfc, 0xfd, 0x83, 0xf9, 0x05, 0x7c, 0x24, 0xda, 0xf8, 0x88, - 0x7d, 0x41, 0xbf, 0x69, 0xc1, 0x15, 0x1e, 0x95, 0x7d, 0xf0, 0xfe, 0xf7, 0x78, 0xe7, 0xd6, 0x24, - 0xa9, 0x84, 0xc8, 0x06, 0x09, 0x5b, 0x4b, 0x2f, 0x8b, 0x01, 0xbd, 0x52, 0x3b, 0x5a, 0x5b, 0xf8, - 0xa8, 0x9d, 0xb3, 0xff, 0x45, 0x11, 0x26, 0x44, 0x68, 0x27, 0x71, 0x07, 0xbc, 0x64, 0x2c, 0x89, - 0xc7, 0x53, 0x4b, 0x62, 0xc6, 0x40, 0x3e, 0x9e, 0xe3, 0x3f, 0x82, 0x19, 0x7a, 0x38, 0x5f, 0x23, - 0x4e, 0x18, 0x6f, 0x12, 0x87, 0x5b, 0x5c, 0x15, 0x8f, 0x7c, 0xfa, 0x2b, 0xc1, 0xda, 0x8d, 0x34, - 0x31, 0xdc, 0x4d, 0xff, 0xeb, 0xe9, 0xce, 0xf1, 0x61, 0xba, 0x2b, 0x3a, 0xd7, 0x9b, 0x50, 0x56, - 0x1e, 0x1a, 0xe2, 0xd0, 0xe9, 0x1d, 0xe4, 0x2e, 0x4d, 0x81, 0x0b, 0xbf, 0x12, 0xef, 0xa0, 0x84, - 0x9c, 0xfd, 0x0f, 0x0b, 0x46, 0x83, 0x7c, 0x12, 0xd7, 0xa1, 0xe4, 0x44, 0x91, 0xb7, 0xed, 0x13, - 0x57, 0xec, 0xd8, 0x0f, 0xe7, 0xed, 0x58, 0xa3, 0x19, 0xe6, 0x25, 0xb3, 0x28, 0x6a, 0x62, 0x45, - 0x03, 0x5d, 0xe3, 0x76, 0x6d, 0x7b, 0xf2, 0xa5, 0x36, 0x18, 0x35, 0x90, 0x96, 0x6f, 0x7b, 0x04, - 0x8b, 0xfa, 0xe8, 0xb3, 0xdc, 0xf0, 0xf0, 0xba, 0x1f, 0xdc, 0xf5, 0xaf, 0x06, 0x81, 0x0c, 0x9f, - 0x30, 0x18, 0xc1, 0x19, 0x69, 0x6e, 0xa8, 0xaa, 0x63, 0x93, 0xda, 0x60, 0x11, 0x2c, 0xbf, 0x15, - 0x4e, 0x51, 0xd2, 0xa6, 0x77, 0x73, 0x84, 0x08, 0x4c, 0x89, 0xb8, 0x61, 0xb2, 0x4c, 0x8c, 0x5d, - 0xe6, 0x23, 0xcc, 0xac, 0x9d, 0x48, 0x80, 0xaf, 0x9b, 0x24, 0x70, 0x9a, 0xa6, 0xfd, 0x13, 0x16, - 0x30, 0x4f, 0xcf, 0x13, 0xe0, 0x47, 0x3e, 0x65, 0xf2, 0x23, 0xb3, 0x79, 0x83, 0x9c, 0xc3, 0x8a, - 0xbc, 0xc8, 0x57, 0x56, 0x2d, 0x0c, 0xee, 0xed, 0x0b, 0xa3, 0x8f, 0xfe, 0xef, 0x0f, 0xfb, 0xff, - 0x58, 0xfc, 0x10, 0x53, 0xfe, 0x13, 0xe8, 0xdb, 0xa0, 0xd4, 0x70, 0xda, 0x4e, 0x83, 0xe7, 0x4a, - 0xc9, 0x95, 0xc5, 0x19, 0x95, 0x16, 0x96, 0x45, 0x0d, 0x2e, 0x5b, 0x92, 0xf1, 0xe7, 0x4a, 0xb2, - 0xb8, 0xaf, 0x3c, 0x49, 0x35, 0x39, 0xb7, 0x0b, 0x13, 0x06, 0xb1, 0x87, 0x2a, 0x88, 0xf8, 0x36, - 0x7e, 0xc5, 0xaa, 0x78, 0x89, 0x2d, 0x98, 0xf1, 0xb5, 0xff, 0xf4, 0x42, 0x91, 0x8f, 0xcb, 0x0f, - 0xf7, 0xbb, 0x44, 0xd9, 0xed, 0xa3, 0xf9, 0x9d, 0xa6, 0xc8, 0xe0, 0x6e, 0xca, 0xf6, 0x8f, 0x59, - 0xf0, 0x88, 0x8e, 0xa8, 0xb9, 0xb6, 0xf4, 0x93, 0xee, 0x57, 0xa0, 0x14, 0xb4, 0x49, 0xe8, 0xc4, - 0x41, 0x28, 0x6e, 0x8d, 0xcb, 0x72, 0xd0, 0x6f, 0x8a, 0xf2, 0x43, 0x11, 0x69, 0x5c, 0x52, 0x97, - 0xe5, 0x58, 0xd5, 0xa4, 0xaf, 0x4f, 0x36, 0x18, 0x91, 0x70, 0x62, 0x62, 0x67, 0x00, 0x53, 0x74, - 0x47, 0x58, 0x40, 0xec, 0xaf, 0x5a, 0x7c, 0x61, 0xe9, 0x5d, 0x47, 0xef, 0xc0, 0x74, 0xcb, 0x89, - 0x1b, 0x3b, 0x2b, 0xf7, 0xda, 0x21, 0xd7, 0x95, 0xc8, 0x71, 0x7a, 0xba, 0xdf, 0x38, 0x69, 0x1f, - 0x99, 0xd8, 0x52, 0xae, 0xa5, 0x88, 0xe1, 0x2e, 0xf2, 0x68, 0x13, 0xc6, 0x58, 0x19, 0xf3, 0xcf, - 0x8b, 0x7a, 0xb1, 0x06, 0x79, 0xad, 0x29, 0x5b, 0x81, 0xb5, 0x84, 0x0e, 0xd6, 0x89, 0xda, 0x3f, - 0x53, 0xe4, 0xbb, 0x9d, 0xb1, 0xf2, 0x4f, 0xc1, 0x68, 0x3b, 0x70, 0x97, 0xab, 0x15, 0x2c, 0x66, - 0x41, 0x5d, 0x23, 0x35, 0x5e, 0x8c, 0x25, 0x1c, 0x5d, 0x86, 0x92, 0xf8, 0x29, 0x75, 0x5b, 0xec, - 0x6c, 0x16, 0x78, 0x11, 0x56, 0x50, 0xf4, 0x3c, 0x40, 0x3b, 0x0c, 0xf6, 0x3c, 0x97, 0x05, 0x81, - 0x28, 0x9a, 0x66, 0x3e, 0x35, 0x05, 0xc1, 0x1a, 0x16, 0x7a, 0x15, 0x26, 0x3a, 0x7e, 0xc4, 0xd9, - 0x11, 0x67, 0x53, 0x04, 0xe5, 0x2e, 0x25, 0x06, 0x28, 0xb7, 0x74, 0x20, 0x36, 0x71, 0xd1, 0x22, - 0x8c, 0xc4, 0x0e, 0x33, 0x5b, 0x19, 0xce, 0xb7, 0xb7, 0xdd, 0xa0, 0x18, 0x7a, 0x5a, 0x0e, 0x5a, - 0x01, 0x8b, 0x8a, 0xe8, 0x4d, 0xe9, 0x2a, 0xcb, 0x0f, 0x76, 0x61, 0xe8, 0x3e, 0xd8, 0x25, 0xa0, - 0x39, 0xca, 0x0a, 0x03, 0x7a, 0x83, 0x16, 0x7a, 0x15, 0x80, 0xdc, 0x8b, 0x49, 0xe8, 0x3b, 0x4d, - 0x65, 0x15, 0xa6, 0xec, 0xa0, 0x2b, 0xc1, 0x7a, 0x10, 0xdf, 0x8a, 0xc8, 0xb7, 0xac, 0x28, 0x14, - 0xac, 0xa1, 0xdb, 0xbf, 0x59, 0x06, 0x48, 0x18, 0x77, 0xf4, 0x6e, 0xd7, 0xc9, 0xf5, 0x4c, 0x6f, - 0x56, 0xff, 0xf8, 0x8e, 0x2d, 0xf4, 0xdd, 0x16, 0x8c, 0x39, 0xcd, 0x66, 0xd0, 0x70, 0x62, 0x36, - 0x45, 0x85, 0xde, 0x27, 0xa7, 0x68, 0x7f, 0x31, 0xa9, 0xc1, 0xbb, 0xf0, 0x82, 0x5c, 0xa2, 0x1a, - 0xa4, 0x6f, 0x2f, 0xf4, 0x86, 0xd1, 0xc7, 0xe4, 0x5b, 0x91, 0xaf, 0xad, 0xb9, 0xf4, 0x5b, 0xb1, - 0xcc, 0x2e, 0x09, 0xfd, 0x99, 0x78, 0xcb, 0x78, 0x26, 0x0e, 0xe5, 0x3b, 0x03, 0x1a, 0xfc, 0x6b, - 0xbf, 0x17, 0x22, 0xaa, 0xe9, 0x81, 0x01, 0x86, 0xf3, 0x3d, 0xef, 0xb4, 0x87, 0x52, 0x9f, 0xa0, - 0x00, 0x6f, 0xc3, 0x94, 0x6b, 0x72, 0x01, 0x62, 0x29, 0x3e, 0x99, 0x47, 0x37, 0xc5, 0x34, 0x24, - 0xf7, 0x7e, 0x0a, 0x80, 0xd3, 0x84, 0x51, 0x8d, 0x07, 0x7d, 0xa8, 0xfa, 0x5b, 0x81, 0xf0, 0xb6, - 0xb0, 0x73, 0xe7, 0x72, 0x3f, 0x8a, 0x49, 0x8b, 0x62, 0x26, 0xd7, 0xfb, 0xba, 0xa8, 0x8b, 0x15, - 0x15, 0xf4, 0x3a, 0x8c, 0x30, 0xd7, 0xab, 0x68, 0xb6, 0x94, 0x2f, 0x2c, 0x36, 0xa3, 0x98, 0x25, - 0x3b, 0x92, 0xfd, 0x8d, 0xb0, 0xa0, 0x80, 0xae, 0x49, 0xc7, 0xc6, 0xa8, 0xea, 0xdf, 0x8a, 0x08, - 0x73, 0x6c, 0x2c, 0x2f, 0x7d, 0x38, 0xf1, 0x59, 0xe4, 0xe5, 0x99, 0xd9, 0xbb, 0x8c, 0x9a, 0x94, - 0x8d, 0x12, 0xff, 0x65, 0x52, 0xb0, 0x59, 0xc8, 0xef, 0x9e, 0x99, 0x38, 0x2c, 0x19, 0xce, 0xdb, - 0x26, 0x09, 0x9c, 0xa6, 0x49, 0x59, 0x52, 0xbe, 0xed, 0x85, 0xbf, 0x46, 0xbf, 0xc3, 0x83, 0xbf, - 0xc4, 0xd9, 0x75, 0xc4, 0x4b, 0xb0, 0xa8, 0x7f, 0xa2, 0xfc, 0xc1, 0x9c, 0x0f, 0xd3, 0xe9, 0x2d, - 0xfa, 0x50, 0xf9, 0x91, 0xdf, 0x1f, 0x82, 0x49, 0x73, 0x49, 0xa1, 0x2b, 0x50, 0x16, 0x44, 0x54, - 0x20, 0x7f, 0xb5, 0x4b, 0xd6, 0x24, 0x00, 0x27, 0x38, 0x2c, 0x7f, 0x03, 0xab, 0xae, 0xd9, 0xd9, - 0x26, 0xf9, 0x1b, 0x14, 0x04, 0x6b, 0x58, 0xf4, 0x65, 0xb5, 0x19, 0x04, 0xb1, 0xba, 0x91, 0xd4, - 0xba, 0x5b, 0x62, 0xa5, 0x58, 0x40, 0xe9, 0x4d, 0xb4, 0x4b, 0x42, 0x9f, 0x34, 0xcd, 0xf8, 0xc0, - 0xea, 0x26, 0xba, 0xae, 0x03, 0xb1, 0x89, 0x4b, 0xef, 0xd3, 0x20, 0x62, 0x0b, 0x59, 0xbc, 0xdf, - 0x12, 0xbb, 0xe5, 0x3a, 0xf7, 0xad, 0x96, 0x70, 0xf4, 0x19, 0x78, 0x44, 0xc5, 0x40, 0xc2, 0x5c, - 0x11, 0x21, 0x5b, 0x1c, 0x31, 0xc4, 0x2d, 0x8f, 0x2c, 0x67, 0xa3, 0xe1, 0xbc, 0xfa, 0xe8, 0x35, - 0x98, 0x14, 0x3c, 0xbe, 0xa4, 0x38, 0x6a, 0xda, 0xc6, 0x5c, 0x37, 0xa0, 0x38, 0x85, 0x2d, 0x23, - 0x1c, 0x33, 0x36, 0x5b, 0x52, 0x28, 0x75, 0x47, 0x38, 0xd6, 0xe1, 0xb8, 0xab, 0x06, 0x5a, 0x84, - 0x29, 0xce, 0x84, 0x79, 0xfe, 0x36, 0x9f, 0x13, 0xe1, 0x4e, 0xa5, 0xb6, 0xd4, 0x4d, 0x13, 0x8c, - 0xd3, 0xf8, 0xe8, 0x15, 0x18, 0x77, 0xc2, 0xc6, 0x8e, 0x17, 0x93, 0x46, 0xdc, 0x09, 0xb9, 0x9f, - 0x95, 0x66, 0x5c, 0xb4, 0xa8, 0xc1, 0xb0, 0x81, 0x69, 0xbf, 0x0b, 0xa7, 0x32, 0x82, 0x2e, 0xd0, - 0x85, 0xe3, 0xb4, 0x3d, 0xf9, 0x4d, 0x29, 0x0b, 0xe4, 0xc5, 0x5a, 0x55, 0x7e, 0x8d, 0x86, 0x45, - 0x57, 0x27, 0x0b, 0xce, 0xa0, 0xe5, 0x00, 0x54, 0xab, 0x73, 0x55, 0x02, 0x70, 0x82, 0x63, 0xff, - 0xcf, 0x02, 0x4c, 0x65, 0x28, 0x57, 0x58, 0x1e, 0xba, 0xd4, 0x2b, 0x25, 0x49, 0x3b, 0x67, 0x06, - 0xcc, 0x2e, 0x1c, 0x21, 0x60, 0x76, 0xb1, 0x5f, 0xc0, 0xec, 0xa1, 0xf7, 0x12, 0x30, 0xdb, 0x1c, - 0xb1, 0xe1, 0x81, 0x46, 0x2c, 0x23, 0xc8, 0xf6, 0xc8, 0x11, 0x83, 0x6c, 0x1b, 0x83, 0x3e, 0x3a, - 0xc0, 0xa0, 0xff, 0x60, 0x01, 0xa6, 0xd3, 0x46, 0x90, 0x27, 0x20, 0xb8, 0x7d, 0xdd, 0x10, 0xdc, - 0x66, 0x67, 0x75, 0x4c, 0x9b, 0x66, 0xe6, 0x09, 0x71, 0x71, 0x4a, 0x88, 0xfb, 0xd1, 0x81, 0xa8, - 0xf5, 0x16, 0xe8, 0xfe, 0x9d, 0x02, 0x9c, 0x49, 0x57, 0x59, 0x6e, 0x3a, 0x5e, 0xeb, 0x04, 0xc6, - 0xe6, 0xa6, 0x31, 0x36, 0xcf, 0x0e, 0xf2, 0x35, 0xac, 0x6b, 0xb9, 0x03, 0x74, 0x27, 0x35, 0x40, - 0x57, 0x06, 0x27, 0xd9, 0x7b, 0x94, 0xbe, 0x52, 0x84, 0x0b, 0x99, 0xf5, 0x12, 0xb9, 0xe7, 0xaa, - 0x21, 0xf7, 0x7c, 0x3e, 0x25, 0xf7, 0xb4, 0x7b, 0xd7, 0x3e, 0x1e, 0x41, 0xa8, 0x70, 0x91, 0x65, - 0x11, 0x04, 0x1e, 0x50, 0x08, 0x6a, 0xb8, 0xc8, 0x2a, 0x42, 0xd8, 0xa4, 0xfb, 0xf5, 0x24, 0xfc, - 0xfc, 0x37, 0x16, 0x9c, 0xcb, 0x9c, 0x9b, 0x13, 0x10, 0x76, 0xad, 0x9b, 0xc2, 0xae, 0xa7, 0x06, - 0x5e, 0xad, 0x39, 0xd2, 0xaf, 0x5f, 0x1f, 0xca, 0xf9, 0x16, 0xf6, 0x94, 0xbf, 0x09, 0x63, 0x4e, - 0xa3, 0x41, 0xa2, 0x68, 0x2d, 0x70, 0x55, 0x4c, 0xe0, 0x67, 0xd9, 0x3b, 0x2b, 0x29, 0x3e, 0x3c, - 0x98, 0x9f, 0x4b, 0x93, 0x48, 0xc0, 0x58, 0xa7, 0x80, 0x3e, 0x0b, 0xa5, 0x48, 0xdc, 0x9b, 0x62, - 0xee, 0x5f, 0x18, 0x70, 0x70, 0x9c, 0x4d, 0xd2, 0x34, 0xe3, 0x1c, 0x29, 0x51, 0x85, 0x22, 0x69, - 0xc6, 0x44, 0x29, 0x1c, 0x6b, 0x4c, 0x94, 0xe7, 0x01, 0xf6, 0xd4, 0x63, 0x20, 0x2d, 0x80, 0xd0, - 0x9e, 0x09, 0x1a, 0x16, 0xfa, 0x26, 0x98, 0x8e, 0x78, 0x54, 0xbf, 0xe5, 0xa6, 0x13, 0x31, 0x3f, - 0x17, 0xb1, 0x0a, 0x59, 0x2c, 0xa5, 0x7a, 0x0a, 0x86, 0xbb, 0xb0, 0xd1, 0xaa, 0x6c, 0x95, 0x85, - 0x20, 0xe4, 0x0b, 0xf3, 0x52, 0xd2, 0xa2, 0xc8, 0x82, 0x7b, 0x3a, 0x3d, 0xfc, 0x6c, 0xe0, 0xb5, - 0x9a, 0xe8, 0xb3, 0x00, 0x74, 0xf9, 0x08, 0x41, 0xc4, 0x68, 0xfe, 0xe1, 0x49, 0x4f, 0x15, 0x37, - 0xd3, 0x2c, 0x97, 0x39, 0xa7, 0x56, 0x14, 0x11, 0xac, 0x11, 0xb4, 0x7f, 0x70, 0x08, 0x1e, 0xed, - 0x71, 0x46, 0xa2, 0x45, 0x53, 0x11, 0xfb, 0x74, 0xfa, 0x71, 0x3d, 0x97, 0x59, 0xd9, 0x78, 0x6d, - 0xa7, 0x96, 0x62, 0xe1, 0x3d, 0x2f, 0xc5, 0xef, 0xb3, 0x34, 0xb1, 0x07, 0x37, 0xd6, 0xfc, 0xd4, - 0x11, 0xcf, 0xfe, 0x63, 0x94, 0x83, 0x6c, 0x65, 0x08, 0x13, 0x9e, 0x1f, 0xb8, 0x3b, 0x03, 0x4b, - 0x17, 0x4e, 0x56, 0x4c, 0xfc, 0x05, 0x0b, 0x1e, 0xcf, 0xec, 0xaf, 0x61, 0x92, 0x73, 0x05, 0xca, - 0x0d, 0x5a, 0xa8, 0xf9, 0x22, 0x26, 0x4e, 0xda, 0x12, 0x80, 0x13, 0x1c, 0xc3, 0xf2, 0xa6, 0xd0, - 0xd7, 0xf2, 0xe6, 0x9f, 0x5b, 0xd0, 0xb5, 0x3f, 0x4e, 0xe0, 0xa0, 0xae, 0x9a, 0x07, 0xf5, 0x87, - 0x07, 0x99, 0xcb, 0x9c, 0x33, 0xfa, 0x8f, 0xa6, 0xe0, 0x6c, 0x8e, 0x2f, 0xce, 0x1e, 0xcc, 0x6c, - 0x37, 0x88, 0xe9, 0xe5, 0x29, 0x3e, 0x26, 0xd3, 0x21, 0xb6, 0xa7, 0x4b, 0x28, 0x4b, 0x69, 0x39, - 0xd3, 0x85, 0x82, 0xbb, 0x9b, 0x40, 0x5f, 0xb0, 0xe0, 0xb4, 0x73, 0x37, 0xea, 0xca, 0x81, 0x2f, - 0xd6, 0xcc, 0x8b, 0x99, 0x42, 0x90, 0x3e, 0x39, 0xf3, 0x79, 0x8e, 0xcf, 0x2c, 0x2c, 0x9c, 0xd9, - 0x16, 0xc2, 0x22, 0x4a, 0x3c, 0x65, 0xe7, 0x7b, 0xf8, 0x21, 0x67, 0x39, 0x4d, 0xf1, 0x1b, 0x44, - 0x42, 0xb0, 0xa2, 0x83, 0x3e, 0x0f, 0xe5, 0x6d, 0xe9, 0xc9, 0x98, 0x71, 0x43, 0x25, 0x03, 0xd9, - 0xdb, 0xbf, 0x93, 0xab, 0x32, 0x15, 0x12, 0x4e, 0x88, 0xa2, 0xd7, 0xa0, 0xe8, 0x6f, 0x45, 0xbd, - 0xd2, 0x64, 0xa6, 0x6c, 0xd6, 0xb8, 0xb7, 0xff, 0xfa, 0x6a, 0x1d, 0xd3, 0x8a, 0xe8, 0x1a, 0x14, - 0xc3, 0x4d, 0x57, 0x48, 0xf0, 0x32, 0xcf, 0x70, 0xbc, 0x54, 0xc9, 0xe9, 0x15, 0xa3, 0x84, 0x97, - 0x2a, 0x98, 0x92, 0x40, 0x35, 0x18, 0x66, 0x0e, 0x2c, 0xe2, 0x3e, 0xc8, 0xe4, 0x7c, 0x7b, 0x38, - 0x82, 0xf1, 0x90, 0x00, 0x0c, 0x01, 0x73, 0x42, 0x68, 0x03, 0x46, 0x1a, 0x2c, 0xa5, 0xa2, 0x08, - 0x48, 0xf6, 0xb1, 0x4c, 0x59, 0x5d, 0x8f, 0x5c, 0x93, 0x42, 0x74, 0xc5, 0x30, 0xb0, 0xa0, 0xc5, - 0xa8, 0x92, 0xf6, 0xce, 0x56, 0x24, 0x52, 0x00, 0x67, 0x53, 0xed, 0x91, 0x42, 0x55, 0x50, 0x65, - 0x18, 0x58, 0xd0, 0x42, 0x9f, 0x80, 0xc2, 0x56, 0x43, 0x38, 0xa7, 0x64, 0x0a, 0xed, 0xcc, 0x80, - 0x0d, 0x4b, 0x23, 0xf7, 0x0f, 0xe6, 0x0b, 0xab, 0xcb, 0xb8, 0xb0, 0xd5, 0x40, 0xeb, 0x30, 0xba, - 0xc5, 0x5d, 0xbc, 0x85, 0x5c, 0xee, 0xc9, 0x6c, 0xef, 0xf3, 0x2e, 0x2f, 0x70, 0xee, 0x97, 0x21, - 0x00, 0x58, 0x12, 0x61, 0x41, 0xd7, 0x95, 0xab, 0xba, 0x88, 0xdd, 0xb5, 0x70, 0xb4, 0xf0, 0x02, - 0xfc, 0x7e, 0x4e, 0x1c, 0xde, 0xb1, 0x46, 0x91, 0xae, 0x6a, 0x47, 0xe6, 0x61, 0x17, 0xb1, 0x58, - 0x32, 0x57, 0x75, 0x9f, 0x14, 0xf5, 0x7c, 0x55, 0x2b, 0x24, 0x9c, 0x10, 0x45, 0xbb, 0x30, 0xb1, - 0x17, 0xb5, 0x77, 0x88, 0xdc, 0xd2, 0x2c, 0x34, 0x4b, 0xce, 0x15, 0x76, 0x5b, 0x20, 0x7a, 0x61, - 0xdc, 0x71, 0x9a, 0x5d, 0xa7, 0x10, 0xd3, 0x7f, 0xdf, 0xd6, 0x89, 0x61, 0x93, 0x36, 0x1d, 0xfe, - 0x77, 0x3a, 0xc1, 0xe6, 0x7e, 0x4c, 0x44, 0xc8, 0xad, 0xcc, 0xe1, 0x7f, 0x83, 0xa3, 0x74, 0x0f, - 0xbf, 0x00, 0x60, 0x49, 0x04, 0xdd, 0x16, 0xc3, 0xc3, 0x4e, 0xcf, 0xe9, 0xfc, 0xb8, 0x98, 0x8b, - 0x12, 0x29, 0x67, 0x50, 0xd8, 0x69, 0x99, 0x90, 0x62, 0xa7, 0x64, 0x7b, 0x27, 0x88, 0x03, 0x3f, - 0x75, 0x42, 0xcf, 0xe4, 0x9f, 0x92, 0xb5, 0x0c, 0xfc, 0xee, 0x53, 0x32, 0x0b, 0x0b, 0x67, 0xb6, - 0x85, 0x5c, 0x98, 0x6c, 0x07, 0x61, 0x7c, 0x37, 0x08, 0xe5, 0xfa, 0x42, 0x3d, 0xe4, 0x0a, 0x06, - 0xa6, 0x68, 0x91, 0x45, 0xb3, 0x33, 0x21, 0x38, 0x45, 0x13, 0x7d, 0x1a, 0x46, 0xa3, 0x86, 0xd3, - 0x24, 0xd5, 0x9b, 0xb3, 0xa7, 0xf2, 0xaf, 0x9f, 0x3a, 0x47, 0xc9, 0x59, 0x5d, 0x3c, 0x42, 0x3b, - 0x47, 0xc1, 0x92, 0x1c, 0x5a, 0x85, 0x61, 0x96, 0x54, 0x8b, 0xc5, 0x87, 0xcb, 0x09, 0xef, 0xd9, - 0x65, 0x41, 0xcc, 0xcf, 0x26, 0x56, 0x8c, 0x79, 0x75, 0xba, 0x07, 0x04, 0x7b, 0x1d, 0x44, 0xb3, - 0x67, 0xf2, 0xf7, 0x80, 0xe0, 0xca, 0x6f, 0xd6, 0x7b, 0xed, 0x01, 0x85, 0x84, 0x13, 0xa2, 0xf4, - 0x64, 0xa6, 0xa7, 0xe9, 0xd9, 0x1e, 0xa6, 0x2f, 0xb9, 0x67, 0x29, 0x3b, 0x99, 0xe9, 0x49, 0x4a, - 0x49, 0xd8, 0xbf, 0x3b, 0xda, 0xcd, 0xb3, 0xb0, 0x07, 0xd9, 0x77, 0x5a, 0x5d, 0xba, 0xba, 0x8f, - 0x0f, 0x2a, 0x1f, 0x3a, 0x46, 0x6e, 0xf5, 0x0b, 0x16, 0x9c, 0x6d, 0x67, 0x7e, 0x88, 0x60, 0x00, - 0x06, 0x13, 0x33, 0xf1, 0x4f, 0x57, 0xb1, 0x04, 0xb3, 0xe1, 0x38, 0xa7, 0xa5, 0xf4, 0x8b, 0xa0, - 0xf8, 0x9e, 0x5f, 0x04, 0x6b, 0x50, 0x62, 0x4c, 0x66, 0x9f, 0x14, 0xc3, 0xe9, 0x87, 0x11, 0x63, - 0x25, 0x96, 0x45, 0x45, 0xac, 0x48, 0xa0, 0xef, 0xb7, 0xe0, 0x7c, 0xba, 0xeb, 0x98, 0x30, 0xb0, - 0x08, 0x40, 0xc8, 0xdf, 0x82, 0xab, 0xe2, 0xfb, 0xcf, 0xd7, 0x7a, 0x21, 0x1f, 0xf6, 0x43, 0xc0, - 0xbd, 0x1b, 0x43, 0x95, 0x8c, 0xc7, 0xe8, 0x88, 0x29, 0x80, 0x1f, 0xe0, 0x41, 0xfa, 0x22, 0x8c, - 0xb7, 0x82, 0x8e, 0x1f, 0x0b, 0x4b, 0x19, 0xa1, 0xb5, 0x67, 0xda, 0xea, 0x35, 0xad, 0x1c, 0x1b, - 0x58, 0xa9, 0x67, 0x6c, 0xe9, 0x81, 0x9f, 0xb1, 0x6f, 0xc1, 0xb8, 0xaf, 0x99, 0x76, 0x0a, 0x7e, - 0xe0, 0x52, 0x7e, 0xf0, 0x50, 0xdd, 0x10, 0x94, 0xf7, 0x52, 0x2f, 0xc1, 0x06, 0xb5, 0x93, 0x7d, - 0x1b, 0xfd, 0x94, 0x95, 0xc1, 0xd4, 0xf3, 0xd7, 0xf2, 0x27, 0xcd, 0xd7, 0xf2, 0xa5, 0xf4, 0x6b, - 0xb9, 0x4b, 0xf8, 0x6a, 0x3c, 0x94, 0x07, 0x4f, 0x74, 0x32, 0x68, 0x9c, 0x40, 0xbb, 0x09, 0x17, - 0xfb, 0x5d, 0x4b, 0xcc, 0x64, 0xca, 0x55, 0xaa, 0xb6, 0xc4, 0x64, 0xca, 0xad, 0x56, 0x30, 0x83, - 0x0c, 0x1a, 0x48, 0xc6, 0xfe, 0x1f, 0x16, 0x14, 0x6b, 0x81, 0x7b, 0x02, 0xc2, 0xe4, 0x4f, 0x19, - 0xc2, 0xe4, 0x47, 0xb3, 0x2f, 0x44, 0x37, 0x57, 0x74, 0xbc, 0x92, 0x12, 0x1d, 0x9f, 0xcf, 0x23, - 0xd0, 0x5b, 0x50, 0xfc, 0xe3, 0x45, 0x18, 0xab, 0x05, 0xae, 0xb2, 0x57, 0xfe, 0xf5, 0x07, 0xb1, - 0x57, 0xce, 0x8d, 0xf0, 0xaf, 0x51, 0x66, 0x96, 0x56, 0xd2, 0xc9, 0xf2, 0x2f, 0x98, 0xd9, 0xf2, - 0x1d, 0xe2, 0x6d, 0xef, 0xc4, 0xc4, 0x4d, 0x7f, 0xce, 0xc9, 0x99, 0x2d, 0xff, 0x77, 0x0b, 0xa6, - 0x52, 0xad, 0xa3, 0x26, 0x4c, 0x34, 0x75, 0xc1, 0xa4, 0x58, 0xa7, 0x0f, 0x24, 0xd3, 0x14, 0x66, - 0x9f, 0x5a, 0x11, 0x36, 0x89, 0xa3, 0x05, 0x00, 0xa5, 0xa9, 0x93, 0x12, 0x30, 0xc6, 0xf5, 0x2b, - 0x55, 0x5e, 0x84, 0x35, 0x0c, 0xf4, 0x12, 0x8c, 0xc5, 0x41, 0x3b, 0x68, 0x06, 0xdb, 0xfb, 0xd7, - 0x89, 0x0c, 0x5d, 0xa4, 0x8c, 0xb9, 0x36, 0x12, 0x10, 0xd6, 0xf1, 0xec, 0x9f, 0x2c, 0xf2, 0x0f, - 0xf5, 0x63, 0xef, 0x83, 0x35, 0xf9, 0xfe, 0x5e, 0x93, 0x5f, 0xb1, 0x60, 0x9a, 0xb6, 0xce, 0xcc, - 0x45, 0xe4, 0x65, 0xab, 0x82, 0x06, 0x5b, 0x3d, 0x82, 0x06, 0x5f, 0xa2, 0x67, 0x97, 0x1b, 0x74, - 0x62, 0x21, 0x41, 0xd3, 0x0e, 0x27, 0x5a, 0x8a, 0x05, 0x54, 0xe0, 0x91, 0x30, 0x14, 0x3e, 0x6e, - 0x3a, 0x1e, 0x09, 0x43, 0x2c, 0xa0, 0x32, 0xa6, 0xf0, 0x50, 0x76, 0x4c, 0x61, 0x1e, 0x88, 0x51, - 0x18, 0x16, 0x08, 0xb6, 0x47, 0x0b, 0xc4, 0x28, 0x2d, 0x0e, 0x12, 0x1c, 0xfb, 0xe7, 0x8a, 0x30, - 0x5e, 0x0b, 0xdc, 0x44, 0x57, 0xf6, 0xa2, 0xa1, 0x2b, 0xbb, 0x98, 0xd2, 0x95, 0x4d, 0xeb, 0xb8, - 0x1f, 0x68, 0xc6, 0xbe, 0x56, 0x9a, 0xb1, 0x7f, 0x66, 0xb1, 0x59, 0xab, 0xac, 0xd7, 0xb9, 0xf5, - 0x11, 0x7a, 0x0e, 0xc6, 0xd8, 0x81, 0xc4, 0x9c, 0x2a, 0xa5, 0x02, 0x89, 0xe5, 0x50, 0x5a, 0x4f, - 0x8a, 0xb1, 0x8e, 0x83, 0x2e, 0x43, 0x29, 0x22, 0x4e, 0xd8, 0xd8, 0x51, 0x67, 0x9c, 0xd0, 0xf6, - 0xf0, 0x32, 0xac, 0xa0, 0xe8, 0x8d, 0x24, 0x06, 0x60, 0x31, 0xdf, 0x49, 0x4b, 0xef, 0x0f, 0xdf, - 0x22, 0xf9, 0x81, 0xff, 0xec, 0x3b, 0x80, 0xba, 0xf1, 0x07, 0x08, 0x7e, 0x35, 0x6f, 0x06, 0xbf, - 0x2a, 0x77, 0x05, 0xbe, 0xfa, 0x33, 0x0b, 0x26, 0x6b, 0x81, 0x4b, 0xb7, 0xee, 0xd7, 0xd3, 0x3e, - 0xd5, 0x03, 0xa0, 0x8e, 0xf4, 0x08, 0x80, 0xfa, 0x04, 0x0c, 0xd7, 0x02, 0xb7, 0x5a, 0xeb, 0xe5, - 0xdc, 0x6c, 0xff, 0x5d, 0x0b, 0x46, 0x6b, 0x81, 0x7b, 0x02, 0xc2, 0xf9, 0x4f, 0x9a, 0xc2, 0xf9, - 0x47, 0x72, 0xd6, 0x4d, 0x8e, 0x3c, 0xfe, 0x17, 0x8a, 0x30, 0x41, 0xfb, 0x19, 0x6c, 0xcb, 0xa9, - 0x34, 0x86, 0xcd, 0x1a, 0x60, 0xd8, 0x28, 0x2f, 0x1c, 0x34, 0x9b, 0xc1, 0xdd, 0xf4, 0xb4, 0xae, - 0xb2, 0x52, 0x2c, 0xa0, 0xe8, 0x19, 0x28, 0xb5, 0x43, 0xb2, 0xe7, 0x05, 0x82, 0xc9, 0xd4, 0x54, - 0x1d, 0x35, 0x51, 0x8e, 0x15, 0x06, 0x7d, 0x9c, 0x45, 0x9e, 0xdf, 0x20, 0x75, 0xd2, 0x08, 0x7c, - 0x97, 0xcb, 0xaf, 0x8b, 0x22, 0x6f, 0x80, 0x56, 0x8e, 0x0d, 0x2c, 0x74, 0x07, 0xca, 0xec, 0x3f, - 0x3b, 0x76, 0x8e, 0x9e, 0x4e, 0x52, 0xa4, 0x17, 0x13, 0x04, 0x70, 0x42, 0x0b, 0x3d, 0x0f, 0x10, - 0xcb, 0x10, 0xd9, 0x91, 0x08, 0x74, 0xa4, 0x18, 0x72, 0x15, 0x3c, 0x3b, 0xc2, 0x1a, 0x16, 0x7a, - 0x1a, 0xca, 0xb1, 0xe3, 0x35, 0x6f, 0x78, 0x3e, 0x89, 0x98, 0x5c, 0xba, 0x28, 0xb3, 0x7c, 0x89, - 0x42, 0x9c, 0xc0, 0x29, 0x43, 0xc4, 0xa2, 0x00, 0xf0, 0x64, 0xb4, 0x25, 0x86, 0xcd, 0x18, 0xa2, - 0x1b, 0xaa, 0x14, 0x6b, 0x18, 0xf6, 0x2b, 0x70, 0xa6, 0x16, 0xb8, 0xb5, 0x20, 0x8c, 0x57, 0x83, - 0xf0, 0xae, 0x13, 0xba, 0x72, 0xfe, 0xe6, 0x65, 0x72, 0x10, 0x7a, 0x40, 0x0d, 0xf3, 0xed, 0x6b, - 0xa4, 0xa8, 0x7a, 0x81, 0xb1, 0x44, 0x47, 0xf4, 0x11, 0x69, 0xb0, 0xcb, 0x59, 0xa5, 0x81, 0xb8, - 0xea, 0xc4, 0x04, 0xdd, 0x64, 0xb9, 0x6a, 0x93, 0x7b, 0x4a, 0x54, 0x7f, 0x4a, 0xcb, 0x55, 0x9b, - 0x00, 0x33, 0x2f, 0x36, 0xb3, 0xbe, 0xfd, 0x33, 0x43, 0xec, 0xc8, 0x4a, 0xa5, 0x12, 0x40, 0x9f, - 0x83, 0xc9, 0x88, 0xdc, 0xf0, 0xfc, 0xce, 0x3d, 0xf9, 0x52, 0xef, 0xe1, 0xe5, 0x53, 0x5f, 0xd1, - 0x31, 0xb9, 0xbc, 0xcf, 0x2c, 0xc3, 0x29, 0x6a, 0xa8, 0x05, 0x93, 0x77, 0x3d, 0xdf, 0x0d, 0xee, - 0x46, 0x92, 0x7e, 0x29, 0x5f, 0xec, 0x77, 0x87, 0x63, 0xa6, 0xfa, 0x68, 0x34, 0x77, 0xc7, 0x20, - 0x86, 0x53, 0xc4, 0xe9, 0xb2, 0x08, 0x3b, 0xfe, 0x62, 0x74, 0x2b, 0x22, 0xa1, 0xc8, 0x3a, 0xcc, - 0x96, 0x05, 0x96, 0x85, 0x38, 0x81, 0xd3, 0x65, 0xc1, 0xfe, 0x5c, 0x0d, 0x83, 0x0e, 0x0f, 0x2f, - 0x2f, 0x96, 0x05, 0x56, 0xa5, 0x58, 0xc3, 0xa0, 0xdb, 0x86, 0xfd, 0x5b, 0x0f, 0x7c, 0x1c, 0x04, - 0xb1, 0xdc, 0x68, 0x2c, 0xcf, 0xa5, 0x56, 0x8e, 0x0d, 0x2c, 0xb4, 0x0a, 0x28, 0xea, 0xb4, 0xdb, - 0x4d, 0x66, 0x3d, 0xe0, 0x34, 0x19, 0x29, 0xae, 0xb9, 0x2d, 0xf2, 0xe0, 0x99, 0xf5, 0x2e, 0x28, - 0xce, 0xa8, 0x41, 0x4f, 0xd0, 0x2d, 0xd1, 0xd5, 0x61, 0xd6, 0x55, 0xae, 0x22, 0xa8, 0xf3, 0x7e, - 0x4a, 0x18, 0x5a, 0x81, 0xd1, 0x68, 0x3f, 0x6a, 0xc4, 0x22, 0x0a, 0x58, 0x4e, 0xb6, 0x98, 0x3a, - 0x43, 0xd1, 0x92, 0x95, 0xf1, 0x2a, 0x58, 0xd6, 0xb5, 0xbf, 0x8d, 0x5d, 0xd0, 0x2c, 0x47, 0x6d, - 0xdc, 0x09, 0x09, 0x6a, 0xc1, 0x44, 0x9b, 0xad, 0x30, 0x11, 0x2f, 0x5d, 0x2c, 0x93, 0x17, 0x07, - 0x7c, 0x69, 0xdf, 0xa5, 0xe7, 0x9a, 0x92, 0x84, 0xb1, 0x27, 0x4c, 0x4d, 0x27, 0x87, 0x4d, 0xea, - 0xf6, 0x57, 0xce, 0xb2, 0x23, 0xbe, 0xce, 0x9f, 0xcf, 0xa3, 0xc2, 0xdc, 0x59, 0xbc, 0x15, 0xe6, - 0xf2, 0xe5, 0x38, 0xc9, 0x17, 0x09, 0x93, 0x69, 0x2c, 0xeb, 0xa2, 0xcf, 0xc2, 0x24, 0x65, 0xbd, - 0xb5, 0x7c, 0x11, 0xa7, 0xf3, 0xfd, 0xd2, 0x93, 0x34, 0x11, 0x5a, 0x2e, 0x05, 0xbd, 0x32, 0x4e, - 0x11, 0x43, 0x6f, 0x30, 0xc5, 0xbc, 0x99, 0x8a, 0xa2, 0x0f, 0x69, 0x5d, 0x07, 0x2f, 0xc9, 0x6a, - 0x44, 0xf2, 0xd2, 0x5c, 0xd8, 0x0f, 0x37, 0xcd, 0x05, 0xba, 0x01, 0x13, 0x22, 0x51, 0xab, 0x10, - 0x3f, 0x16, 0x0d, 0xf1, 0xd2, 0x04, 0xd6, 0x81, 0x87, 0xe9, 0x02, 0x6c, 0x56, 0x46, 0xdb, 0x70, - 0x5e, 0xcb, 0xb5, 0x72, 0x35, 0x74, 0x98, 0x8e, 0xd8, 0x63, 0x27, 0x91, 0x76, 0xf9, 0x3c, 0x7e, - 0xff, 0x60, 0xfe, 0xfc, 0x46, 0x2f, 0x44, 0xdc, 0x9b, 0x0e, 0xba, 0x09, 0x67, 0xb8, 0x57, 0x65, - 0x85, 0x38, 0x6e, 0xd3, 0xf3, 0xd5, 0xed, 0xc6, 0x77, 0xcb, 0xb9, 0xfb, 0x07, 0xf3, 0x67, 0x16, - 0xb3, 0x10, 0x70, 0x76, 0x3d, 0xf4, 0x49, 0x28, 0xbb, 0x7e, 0x24, 0xc6, 0x60, 0xc4, 0x48, 0x67, - 0x53, 0xae, 0xac, 0xd7, 0xd5, 0xf7, 0x27, 0x7f, 0x70, 0x52, 0x01, 0x6d, 0x73, 0x11, 0xa4, 0x7a, - 0xf1, 0x8f, 0x76, 0xc5, 0x83, 0x49, 0xcb, 0x8e, 0x0c, 0xbf, 0x2a, 0x2e, 0x7b, 0x57, 0xd6, 0xc6, - 0x86, 0xcb, 0x95, 0x41, 0x18, 0xbd, 0x0e, 0x88, 0xb2, 0xc4, 0x5e, 0x83, 0x2c, 0x36, 0x58, 0x30, - 0x7e, 0x26, 0xb1, 0x2d, 0x19, 0xde, 0x29, 0xa8, 0xde, 0x85, 0x81, 0x33, 0x6a, 0xa1, 0x6b, 0xf4, - 0x36, 0xd0, 0x4b, 0x85, 0xd5, 0xb4, 0x4a, 0x3e, 0x56, 0x21, 0xed, 0x90, 0x34, 0x9c, 0x98, 0xb8, - 0x26, 0x45, 0x9c, 0xaa, 0x87, 0x5c, 0x78, 0xcc, 0xe9, 0xc4, 0x01, 0x93, 0xee, 0x9a, 0xa8, 0x1b, - 0xc1, 0x2e, 0xf1, 0x99, 0x62, 0xa5, 0xb4, 0x74, 0xf1, 0xfe, 0xc1, 0xfc, 0x63, 0x8b, 0x3d, 0xf0, - 0x70, 0x4f, 0x2a, 0x94, 0xed, 0x51, 0xa9, 0x43, 0xc1, 0x0c, 0x73, 0x93, 0x91, 0x3e, 0xf4, 0x25, - 0x18, 0xdb, 0x09, 0xa2, 0x78, 0x9d, 0xc4, 0x77, 0x83, 0x70, 0x57, 0x04, 0x2b, 0x4c, 0x02, 0xdc, - 0x26, 0x20, 0xac, 0xe3, 0xd1, 0x77, 0x0d, 0x53, 0xfb, 0x57, 0x2b, 0x4c, 0xe3, 0x5a, 0x4a, 0xce, - 0x98, 0x6b, 0xbc, 0x18, 0x4b, 0xb8, 0x44, 0xad, 0xd6, 0x96, 0x99, 0xf6, 0x34, 0x85, 0x5a, 0xad, - 0x2d, 0x63, 0x09, 0xa7, 0xcb, 0x35, 0xda, 0x71, 0x42, 0x52, 0x0b, 0x83, 0x06, 0x89, 0xb4, 0xb0, - 0xca, 0x8f, 0xf2, 0x50, 0x8c, 0x74, 0xb9, 0xd6, 0xb3, 0x10, 0x70, 0x76, 0x3d, 0x44, 0xba, 0xf3, - 0x0c, 0x4d, 0xe6, 0x8b, 0xbd, 0xbb, 0x59, 0x81, 0x01, 0x53, 0x0d, 0xf9, 0x30, 0xad, 0x32, 0x1c, - 0xf1, 0xe0, 0x8b, 0xd1, 0xec, 0x14, 0x5b, 0xdb, 0x83, 0x47, 0x6e, 0x54, 0x8a, 0x84, 0x6a, 0x8a, - 0x12, 0xee, 0xa2, 0x6d, 0x44, 0x32, 0x9a, 0xee, 0x9b, 0x4b, 0xf6, 0x0a, 0x94, 0xa3, 0xce, 0xa6, - 0x1b, 0xb4, 0x1c, 0xcf, 0x67, 0xda, 0x53, 0x8d, 0xc1, 0xae, 0x4b, 0x00, 0x4e, 0x70, 0xd0, 0x2a, - 0x94, 0x1c, 0xa9, 0x25, 0x40, 0xf9, 0x01, 0x30, 0x94, 0x6e, 0x80, 0xfb, 0x84, 0x4b, 0xbd, 0x80, - 0xaa, 0x8b, 0x5e, 0x85, 0x09, 0xe1, 0x15, 0x28, 0x92, 0xeb, 0x9d, 0x32, 0x3d, 0x37, 0xea, 0x3a, - 0x10, 0x9b, 0xb8, 0xe8, 0x16, 0x8c, 0xc5, 0x41, 0x93, 0xb9, 0x1f, 0x50, 0x0e, 0xe9, 0x6c, 0x7e, - 0x10, 0xad, 0x0d, 0x85, 0xa6, 0x0b, 0xe8, 0x54, 0x55, 0xac, 0xd3, 0x41, 0x1b, 0x7c, 0xbd, 0xb3, - 0xf0, 0xc2, 0x24, 0x9a, 0x7d, 0x24, 0xff, 0x4e, 0x52, 0x51, 0x88, 0xcd, 0xed, 0x20, 0x6a, 0x62, - 0x9d, 0x0c, 0xba, 0x0a, 0x33, 0xed, 0xd0, 0x0b, 0xd8, 0x9a, 0x50, 0x0a, 0xa2, 0x59, 0x33, 0x29, - 0x4a, 0x2d, 0x8d, 0x80, 0xbb, 0xeb, 0x30, 0xa7, 0x4e, 0x51, 0x38, 0x7b, 0x8e, 0x27, 0xd3, 0xe5, - 0xef, 0x15, 0x5e, 0x86, 0x15, 0x14, 0xad, 0xb1, 0x93, 0x98, 0x3f, 0xb5, 0x67, 0xe7, 0xf2, 0x63, - 0x6e, 0xe8, 0x4f, 0x72, 0xce, 0xf7, 0xa9, 0xbf, 0x38, 0xa1, 0x80, 0x5c, 0x2d, 0x51, 0x1b, 0x65, - 0xb6, 0xa3, 0xd9, 0xc7, 0x7a, 0xd8, 0x5e, 0xa5, 0x38, 0xf3, 0x84, 0x21, 0x30, 0x8a, 0x23, 0x9c, - 0xa2, 0x89, 0xbe, 0x09, 0xa6, 0x45, 0x8c, 0xaf, 0x64, 0x98, 0xce, 0x27, 0x46, 0x9d, 0x38, 0x05, - 0xc3, 0x5d, 0xd8, 0x3c, 0xec, 0xba, 0xb3, 0xd9, 0x24, 0xe2, 0xe8, 0xbb, 0xe1, 0xf9, 0xbb, 0xd1, - 0xec, 0x05, 0x76, 0x3e, 0x88, 0xb0, 0xeb, 0x69, 0x28, 0xce, 0xa8, 0x81, 0x36, 0x60, 0xba, 0x1d, - 0x12, 0xd2, 0x62, 0x3c, 0xb2, 0xb8, 0xcf, 0xe6, 0xb9, 0x4f, 0x33, 0xed, 0x49, 0x2d, 0x05, 0x3b, - 0xcc, 0x28, 0xc3, 0x5d, 0x14, 0xd0, 0x5d, 0x28, 0x05, 0x7b, 0x24, 0xdc, 0x21, 0x8e, 0x3b, 0x7b, - 0xb1, 0x87, 0x91, 0xb1, 0xb8, 0xdc, 0x6e, 0x0a, 0xdc, 0x94, 0x52, 0x59, 0x16, 0xf7, 0x57, 0x2a, - 0xcb, 0xc6, 0xd0, 0x0f, 0x58, 0x70, 0x4e, 0xca, 0xa1, 0xeb, 0x6d, 0x3a, 0xea, 0xcb, 0x81, 0x1f, - 0xc5, 0x21, 0xf7, 0xc2, 0x7d, 0x3c, 0xdf, 0x31, 0x75, 0x23, 0xa7, 0x92, 0x92, 0xf6, 0x9d, 0xcb, - 0xc3, 0x88, 0x70, 0x7e, 0x8b, 0x73, 0xdf, 0x08, 0x33, 0x5d, 0x37, 0xf7, 0x51, 0x32, 0x41, 0xcc, - 0xed, 0xc2, 0x84, 0x31, 0x3a, 0x0f, 0x55, 0x9f, 0xf8, 0xaf, 0x47, 0xa1, 0xac, 0x74, 0x4d, 0xe8, - 0x8a, 0xa9, 0x42, 0x3c, 0x97, 0x56, 0x21, 0x96, 0xe8, 0x6b, 0x56, 0xd7, 0x1a, 0x6e, 0x64, 0xc4, - 0x3c, 0xca, 0xdb, 0x8b, 0x83, 0xfb, 0xb2, 0x6a, 0xa2, 0xc3, 0xe2, 0xc0, 0xba, 0xc8, 0xa1, 0x9e, - 0xd2, 0xc8, 0xab, 0x30, 0xe3, 0x07, 0x8c, 0x5d, 0x24, 0xae, 0xe4, 0x05, 0xd8, 0x95, 0x5f, 0xd6, - 0x83, 0x08, 0xa4, 0x10, 0x70, 0x77, 0x1d, 0xda, 0x20, 0xbf, 0xb3, 0xd3, 0xe2, 0x4f, 0x7e, 0xa5, - 0x63, 0x01, 0x45, 0x4f, 0xc0, 0x70, 0x3b, 0x70, 0xab, 0x35, 0xc1, 0x2a, 0x6a, 0x59, 0x41, 0xdd, - 0x6a, 0x0d, 0x73, 0x18, 0x5a, 0x84, 0x11, 0xf6, 0x23, 0x9a, 0x1d, 0xcf, 0xf7, 0x16, 0x67, 0x35, - 0xb4, 0x3c, 0x1b, 0xac, 0x02, 0x16, 0x15, 0x99, 0x18, 0x86, 0xf2, 0xd7, 0x4c, 0x0c, 0x33, 0xfa, - 0x80, 0x62, 0x18, 0x49, 0x00, 0x27, 0xb4, 0xd0, 0x3d, 0x38, 0x63, 0xbc, 0x69, 0xf8, 0x12, 0x21, - 0x91, 0x70, 0x58, 0x7d, 0xa2, 0xe7, 0x63, 0x46, 0xe8, 0x2e, 0xcf, 0x8b, 0x4e, 0x9f, 0xa9, 0x66, - 0x51, 0xc2, 0xd9, 0x0d, 0xa0, 0x26, 0xcc, 0x34, 0xba, 0x5a, 0x2d, 0x0d, 0xde, 0xaa, 0x9a, 0xd0, - 0xee, 0x16, 0xbb, 0x09, 0xa3, 0x57, 0xa1, 0xf4, 0x4e, 0x10, 0xb1, 0x63, 0x56, 0xb0, 0xb7, 0xd2, - 0xdb, 0xb1, 0xf4, 0xc6, 0xcd, 0x3a, 0x2b, 0x3f, 0x3c, 0x98, 0x1f, 0xab, 0x05, 0xae, 0xfc, 0x8b, - 0x55, 0x05, 0xf4, 0x3d, 0x16, 0xcc, 0x75, 0x3f, 0x9a, 0x54, 0xa7, 0x27, 0x06, 0xef, 0xb4, 0x2d, - 0x1a, 0x9d, 0x5b, 0xc9, 0x25, 0x87, 0x7b, 0x34, 0x65, 0xff, 0x32, 0xd7, 0x33, 0x0a, 0x6d, 0x04, - 0x89, 0x3a, 0xcd, 0x93, 0xc8, 0x4b, 0xb8, 0x62, 0x28, 0x4a, 0x1e, 0x58, 0x97, 0xfd, 0x6b, 0x16, - 0xd3, 0x65, 0x6f, 0x90, 0x56, 0xbb, 0xe9, 0xc4, 0x27, 0xe1, 0x2c, 0xf7, 0x06, 0x94, 0x62, 0xd1, - 0x5a, 0xaf, 0x54, 0x8a, 0x5a, 0xa7, 0x98, 0x3e, 0x5f, 0x31, 0x9b, 0xb2, 0x14, 0x2b, 0x32, 0xf6, - 0x3f, 0xe6, 0x33, 0x20, 0x21, 0x27, 0x20, 0x8f, 0xae, 0x98, 0xf2, 0xe8, 0xf9, 0x3e, 0x5f, 0x90, - 0x23, 0x97, 0xfe, 0x47, 0x66, 0xbf, 0x99, 0x90, 0xe5, 0xfd, 0x6e, 0x44, 0x61, 0xff, 0x90, 0x05, - 0xa7, 0xb3, 0xac, 0x0e, 0xe9, 0x03, 0x81, 0x8b, 0x78, 0x94, 0x51, 0x89, 0x1a, 0xc1, 0xdb, 0xa2, - 0x1c, 0x2b, 0x8c, 0x81, 0xb3, 0x14, 0x1d, 0x2d, 0x6a, 0xe7, 0x4d, 0x98, 0xa8, 0x85, 0x44, 0xbb, - 0xd0, 0x5e, 0xe3, 0xde, 0xaf, 0xbc, 0x3f, 0xcf, 0x1c, 0xd9, 0xf3, 0xd5, 0xfe, 0xe9, 0x02, 0x9c, - 0xe6, 0x5a, 0xe1, 0xc5, 0xbd, 0xc0, 0x73, 0x6b, 0x81, 0x2b, 0x32, 0x4c, 0xbd, 0x09, 0xe3, 0x6d, - 0x4d, 0x2e, 0xd7, 0x2b, 0x02, 0x9d, 0x2e, 0xbf, 0x4b, 0x24, 0x09, 0x7a, 0x29, 0x36, 0x68, 0x21, - 0x17, 0xc6, 0xc9, 0x9e, 0xd7, 0x50, 0xaa, 0xc5, 0xc2, 0x91, 0x2f, 0x17, 0xd5, 0xca, 0x8a, 0x46, - 0x07, 0x1b, 0x54, 0x1f, 0x42, 0xd2, 0x51, 0xfb, 0x87, 0x2d, 0x78, 0x24, 0x27, 0x5e, 0x1d, 0x6d, - 0xee, 0x2e, 0xd3, 0xbf, 0x8b, 0xfc, 0x85, 0xaa, 0x39, 0xae, 0x95, 0xc7, 0x02, 0x8a, 0x3e, 0x0d, - 0xc0, 0xb5, 0xea, 0xf4, 0x85, 0xda, 0x2f, 0xb0, 0x97, 0x11, 0x93, 0x48, 0x0b, 0x2f, 0x23, 0xeb, - 0x63, 0x8d, 0x96, 0xfd, 0x13, 0x45, 0x18, 0xe6, 0x99, 0x97, 0x57, 0x61, 0x74, 0x87, 0xc7, 0xdd, - 0x1f, 0x24, 0xc4, 0x7f, 0x22, 0x3b, 0xe0, 0x05, 0x58, 0x56, 0x46, 0x6b, 0x70, 0x8a, 0xe7, 0x2d, - 0x68, 0x56, 0x48, 0xd3, 0xd9, 0x97, 0x82, 0x2e, 0x9e, 0xf3, 0x4f, 0x09, 0xfc, 0xaa, 0xdd, 0x28, - 0x38, 0xab, 0x1e, 0x7a, 0x0d, 0x26, 0xe9, 0xc3, 0x23, 0xe8, 0xc4, 0x92, 0x12, 0xcf, 0x58, 0xa0, - 0x5e, 0x3a, 0x1b, 0x06, 0x14, 0xa7, 0xb0, 0xe9, 0xdb, 0xb7, 0xdd, 0x25, 0xd2, 0x1b, 0x4e, 0xde, - 0xbe, 0xa6, 0x18, 0xcf, 0xc4, 0x65, 0xe6, 0x86, 0x1d, 0x66, 0x5c, 0xb9, 0xb1, 0x13, 0x92, 0x68, - 0x27, 0x68, 0xba, 0x8c, 0xd1, 0x1a, 0xd6, 0xcc, 0x0d, 0x53, 0x70, 0xdc, 0x55, 0x83, 0x52, 0xd9, - 0x72, 0xbc, 0x66, 0x27, 0x24, 0x09, 0x95, 0x11, 0x93, 0xca, 0x6a, 0x0a, 0x8e, 0xbb, 0x6a, 0xd0, - 0x75, 0x74, 0xa6, 0x16, 0x06, 0xf4, 0xf0, 0x92, 0x31, 0x38, 0x94, 0x0d, 0xe9, 0xa8, 0x74, 0x17, - 0xec, 0x11, 0xae, 0x4a, 0x58, 0xd9, 0x71, 0x0a, 0x86, 0x02, 0xb9, 0x2e, 0x1c, 0x05, 0x25, 0x15, - 0xf4, 0x1c, 0x8c, 0x89, 0x68, 0xf4, 0xcc, 0xd4, 0x91, 0x4f, 0x1d, 0x53, 0x78, 0x57, 0x92, 0x62, - 0xac, 0xe3, 0xd8, 0xdf, 0x5b, 0x80, 0x53, 0x19, 0xb6, 0xea, 0xfc, 0xa8, 0xda, 0xf6, 0xa2, 0x58, - 0xe5, 0x35, 0xd3, 0x8e, 0x2a, 0x5e, 0x8e, 0x15, 0x06, 0xdd, 0x0f, 0xfc, 0x30, 0x4c, 0x1f, 0x80, - 0xc2, 0x16, 0x54, 0x40, 0x8f, 0x98, 0x21, 0xec, 0x22, 0x0c, 0x75, 0x22, 0x22, 0x03, 0xcd, 0xa9, - 0xf3, 0x9b, 0x69, 0x5c, 0x18, 0x84, 0xb2, 0xc7, 0xdb, 0x4a, 0x79, 0xa1, 0xb1, 0xc7, 0x5c, 0x7d, - 0xc1, 0x61, 0xb4, 0x73, 0x31, 0xf1, 0x1d, 0x3f, 0x16, 0x4c, 0x74, 0x12, 0x31, 0x89, 0x95, 0x62, - 0x01, 0xb5, 0xbf, 0x54, 0x84, 0x73, 0xb9, 0xde, 0x2b, 0xb4, 0xeb, 0xad, 0xc0, 0xf7, 0xe2, 0x40, - 0x59, 0x12, 0xf0, 0x28, 0x49, 0xa4, 0xbd, 0xb3, 0x26, 0xca, 0xb1, 0xc2, 0x40, 0x97, 0x60, 0x98, - 0x09, 0x9d, 0xba, 0x32, 0xbc, 0x2d, 0x55, 0x78, 0xd4, 0x0c, 0x0e, 0x1e, 0x38, 0x7b, 0xe6, 0x13, - 0x30, 0xd4, 0x0e, 0x82, 0x66, 0xfa, 0xd0, 0xa2, 0xdd, 0x0d, 0x82, 0x26, 0x66, 0x40, 0xf4, 0x11, - 0x31, 0x5e, 0x29, 0xd5, 0x39, 0x76, 0xdc, 0x20, 0xd2, 0x06, 0xed, 0x29, 0x18, 0xdd, 0x25, 0xfb, - 0xa1, 0xe7, 0x6f, 0xa7, 0x4d, 0x2a, 0xae, 0xf3, 0x62, 0x2c, 0xe1, 0x66, 0xb2, 0x9e, 0xd1, 0xe3, - 0x4e, 0x7b, 0x59, 0xea, 0x7b, 0x05, 0x7e, 0x5f, 0x11, 0xa6, 0xf0, 0x52, 0xe5, 0x83, 0x89, 0xb8, - 0xd5, 0x3d, 0x11, 0xc7, 0x9d, 0xf6, 0xb2, 0xff, 0x6c, 0xfc, 0x82, 0x05, 0x53, 0x2c, 0x26, 0xbe, - 0x08, 0xaf, 0xe3, 0x05, 0xfe, 0x09, 0xb0, 0x78, 0x4f, 0xc0, 0x70, 0x48, 0x1b, 0x4d, 0xa7, 0x76, - 0x63, 0x3d, 0xc1, 0x1c, 0x86, 0x1e, 0x83, 0x21, 0xd6, 0x05, 0x3a, 0x79, 0xe3, 0x3c, 0x2b, 0x4e, - 0xc5, 0x89, 0x1d, 0xcc, 0x4a, 0x59, 0xcc, 0x08, 0x4c, 0xda, 0x4d, 0x8f, 0x77, 0x3a, 0x51, 0x09, - 0xbe, 0x3f, 0x62, 0x46, 0x64, 0x76, 0xed, 0xbd, 0xc5, 0x8c, 0xc8, 0x26, 0xd9, 0xfb, 0xf9, 0xf4, - 0x87, 0x05, 0xb8, 0x90, 0x59, 0x6f, 0xe0, 0x98, 0x11, 0xbd, 0x6b, 0x3f, 0xcc, 0xd8, 0xe9, 0xc5, - 0x13, 0x34, 0x58, 0x1b, 0x1a, 0x94, 0xc3, 0x1c, 0x1e, 0x20, 0x94, 0x43, 0xe6, 0x90, 0xbd, 0x4f, - 0x42, 0x39, 0x64, 0xf6, 0x2d, 0xe7, 0xf9, 0xf7, 0xe7, 0x85, 0x9c, 0x6f, 0x61, 0x0f, 0xc1, 0xcb, - 0xf4, 0x9c, 0x61, 0xc0, 0x48, 0x70, 0xcc, 0xe3, 0xfc, 0x8c, 0xe1, 0x65, 0x58, 0x41, 0xd1, 0x22, - 0x4c, 0xb5, 0x3c, 0x9f, 0x1e, 0x3e, 0xfb, 0x26, 0xe3, 0xa7, 0x22, 0xed, 0xac, 0x99, 0x60, 0x9c, - 0xc6, 0x47, 0x9e, 0x16, 0xe6, 0xa1, 0x90, 0x9f, 0x2c, 0x39, 0xb7, 0xb7, 0x0b, 0xa6, 0xba, 0x54, - 0x8d, 0x62, 0x46, 0xc8, 0x87, 0x35, 0xed, 0xfd, 0x5f, 0x1c, 0xfc, 0xfd, 0x3f, 0x9e, 0xfd, 0xf6, - 0x9f, 0x7b, 0x15, 0x26, 0x1e, 0x58, 0xe0, 0x6b, 0x7f, 0xa5, 0x08, 0x8f, 0xf6, 0xd8, 0xf6, 0xfc, - 0xac, 0x37, 0xe6, 0x40, 0x3b, 0xeb, 0xbb, 0xe6, 0xa1, 0x06, 0xa7, 0xb7, 0x3a, 0xcd, 0xe6, 0x3e, - 0xb3, 0x09, 0x27, 0xae, 0xc4, 0x10, 0x3c, 0xe5, 0x63, 0x32, 0x0f, 0xd1, 0x6a, 0x06, 0x0e, 0xce, - 0xac, 0x49, 0x19, 0x7a, 0x7a, 0x93, 0xec, 0x2b, 0x52, 0x29, 0x86, 0x1e, 0xeb, 0x40, 0x6c, 0xe2, - 0xa2, 0xab, 0x30, 0xe3, 0xec, 0x39, 0x1e, 0x0f, 0x96, 0x29, 0x09, 0x70, 0x8e, 0x5e, 0xc9, 0xe9, - 0x16, 0xd3, 0x08, 0xb8, 0xbb, 0x0e, 0x7a, 0x1d, 0x50, 0x20, 0x92, 0xbd, 0x5f, 0x25, 0xbe, 0xd0, - 0x6a, 0xb1, 0xb9, 0x2b, 0x26, 0x47, 0xc2, 0xcd, 0x2e, 0x0c, 0x9c, 0x51, 0x2b, 0x15, 0x36, 0x61, - 0x24, 0x3f, 0x6c, 0x42, 0xef, 0x73, 0xb1, 0x6f, 0xd8, 0xfe, 0xff, 0x62, 0xd1, 0xeb, 0x8b, 0x33, - 0xf9, 0x66, 0xf4, 0xaf, 0x57, 0x99, 0x41, 0x17, 0x97, 0xe1, 0x69, 0x11, 0x0c, 0xce, 0x68, 0x06, - 0x5d, 0x09, 0x10, 0x9b, 0xb8, 0x7c, 0x41, 0x44, 0x89, 0xe3, 0x9c, 0xc1, 0xe2, 0x8b, 0x10, 0x25, - 0x0a, 0x03, 0x7d, 0x06, 0x46, 0x5d, 0x6f, 0xcf, 0x8b, 0x82, 0x50, 0xac, 0xf4, 0x23, 0xaa, 0x0b, - 0x92, 0x73, 0xb0, 0xc2, 0xc9, 0x60, 0x49, 0xcf, 0xfe, 0xbe, 0x02, 0x4c, 0xc8, 0x16, 0xdf, 0xe8, - 0x04, 0xb1, 0x73, 0x02, 0xd7, 0xf2, 0x55, 0xe3, 0x5a, 0xfe, 0x48, 0xaf, 0x38, 0x2d, 0xac, 0x4b, - 0xb9, 0xd7, 0xf1, 0xcd, 0xd4, 0x75, 0xfc, 0x64, 0x7f, 0x52, 0xbd, 0xaf, 0xe1, 0x7f, 0x62, 0xc1, - 0x8c, 0x81, 0x7f, 0x02, 0xb7, 0xc1, 0xaa, 0x79, 0x1b, 0x3c, 0xde, 0xf7, 0x1b, 0x72, 0x6e, 0x81, - 0xef, 0x2a, 0xa6, 0xfa, 0xce, 0x4e, 0xff, 0x77, 0x60, 0x68, 0xc7, 0x09, 0xdd, 0x5e, 0x81, 0xa9, - 0xbb, 0x2a, 0x2d, 0x5c, 0x73, 0x42, 0xa1, 0xd6, 0x7b, 0x46, 0xe5, 0x2a, 0x76, 0xc2, 0xfe, 0x2a, - 0x3d, 0xd6, 0x14, 0x7a, 0x05, 0x46, 0xa2, 0x46, 0xd0, 0x56, 0x56, 0xdc, 0x17, 0x79, 0x1e, 0x63, - 0x5a, 0x72, 0x78, 0x30, 0x8f, 0xcc, 0xe6, 0x68, 0x31, 0x16, 0xf8, 0xe8, 0x4d, 0x98, 0x60, 0xbf, - 0x94, 0x8d, 0x4d, 0x31, 0x3f, 0x89, 0x4d, 0x5d, 0x47, 0xe4, 0x06, 0x68, 0x46, 0x11, 0x36, 0x49, - 0xcd, 0x6d, 0x43, 0x59, 0x7d, 0xd6, 0x43, 0xd5, 0xc7, 0xfd, 0xfb, 0x22, 0x9c, 0xca, 0x58, 0x73, - 0x28, 0x32, 0x66, 0xe2, 0xb9, 0x01, 0x97, 0xea, 0x7b, 0x9c, 0x8b, 0x88, 0xbd, 0x86, 0x5c, 0xb1, - 0xb6, 0x06, 0x6e, 0xf4, 0x56, 0x44, 0xd2, 0x8d, 0xd2, 0xa2, 0xfe, 0x8d, 0xd2, 0xc6, 0x4e, 0x6c, - 0xa8, 0x69, 0x43, 0xaa, 0xa7, 0x0f, 0x75, 0x4e, 0xff, 0xa4, 0x08, 0xa7, 0xb3, 0x42, 0x47, 0xa1, - 0x6f, 0x4d, 0x25, 0x34, 0x7b, 0x71, 0xd0, 0xa0, 0x53, 0x3c, 0xcb, 0x19, 0x97, 0x01, 0x2f, 0x2d, - 0x98, 0x29, 0xce, 0xfa, 0x0e, 0xb3, 0x68, 0x93, 0x39, 0x85, 0x87, 0x3c, 0x11, 0x9d, 0x3c, 0x3e, - 0x3e, 0x3e, 0x70, 0x07, 0x44, 0x06, 0xbb, 0x28, 0xa5, 0xbf, 0x97, 0xc5, 0xfd, 0xf5, 0xf7, 0xb2, - 0xe5, 0x39, 0x0f, 0xc6, 0xb4, 0xaf, 0x79, 0xa8, 0x33, 0xbe, 0x4b, 0x6f, 0x2b, 0xad, 0xdf, 0x0f, - 0x75, 0xd6, 0x7f, 0xd8, 0x82, 0x94, 0x35, 0xb4, 0x12, 0x8b, 0x59, 0xb9, 0x62, 0xb1, 0x8b, 0x30, - 0x14, 0x06, 0x4d, 0x92, 0xce, 0x1f, 0x86, 0x83, 0x26, 0xc1, 0x0c, 0x42, 0x31, 0xe2, 0x44, 0xd8, - 0x31, 0xae, 0x3f, 0xe4, 0xc4, 0x13, 0xed, 0x09, 0x18, 0x6e, 0x92, 0x3d, 0xd2, 0x4c, 0xa7, 0x79, - 0xb8, 0x41, 0x0b, 0x31, 0x87, 0xd9, 0xbf, 0x30, 0x04, 0xe7, 0x7b, 0x86, 0x55, 0xa0, 0xcf, 0xa1, - 0x6d, 0x27, 0x26, 0x77, 0x9d, 0xfd, 0x74, 0x3c, 0xf6, 0xab, 0xbc, 0x18, 0x4b, 0x38, 0xf3, 0x22, - 0xe1, 0x51, 0x55, 0x53, 0x42, 0x44, 0x11, 0x4c, 0x55, 0x40, 0x4d, 0xa1, 0x54, 0xf1, 0x38, 0x84, - 0x52, 0xcf, 0x03, 0x44, 0x51, 0x93, 0x1b, 0xbe, 0xb8, 0xc2, 0x3d, 0x25, 0x89, 0xbe, 0x5b, 0xbf, - 0x21, 0x20, 0x58, 0xc3, 0x42, 0x15, 0x98, 0x6e, 0x87, 0x41, 0xcc, 0x65, 0xb2, 0x15, 0x6e, 0x1b, - 0x36, 0x6c, 0x7a, 0xb4, 0xd7, 0x52, 0x70, 0xdc, 0x55, 0x03, 0xbd, 0x04, 0x63, 0xc2, 0xcb, 0xbd, - 0x16, 0x04, 0x4d, 0x21, 0x06, 0x52, 0xe6, 0x52, 0xf5, 0x04, 0x84, 0x75, 0x3c, 0xad, 0x1a, 0x13, - 0xf4, 0x8e, 0x66, 0x56, 0xe3, 0xc2, 0x5e, 0x0d, 0x2f, 0x15, 0x46, 0xae, 0x34, 0x50, 0x18, 0xb9, - 0x44, 0x30, 0x56, 0x1e, 0x58, 0xb7, 0x05, 0x7d, 0x45, 0x49, 0x3f, 0x3b, 0x04, 0xa7, 0xc4, 0xc2, - 0x79, 0xd8, 0xcb, 0xe5, 0x56, 0xf7, 0x72, 0x39, 0x0e, 0xd1, 0xd9, 0x07, 0x6b, 0xe6, 0xa4, 0xd7, - 0xcc, 0xf7, 0x5b, 0x60, 0xb2, 0x57, 0xe8, 0xff, 0xcb, 0x4d, 0x68, 0xf1, 0x52, 0x2e, 0xbb, 0xe6, - 0xca, 0x0b, 0xe4, 0x3d, 0xa6, 0xb6, 0xb0, 0xff, 0x93, 0x05, 0x8f, 0xf7, 0xa5, 0x88, 0x56, 0xa0, - 0xcc, 0x78, 0x40, 0xed, 0x75, 0xf6, 0xa4, 0xb2, 0x1d, 0x95, 0x80, 0x1c, 0x96, 0x34, 0xa9, 0x89, - 0x56, 0xba, 0x32, 0x87, 0x3c, 0x95, 0x91, 0x39, 0xe4, 0x8c, 0x31, 0x3c, 0x0f, 0x98, 0x3a, 0xe4, - 0x97, 0x8b, 0x30, 0xc2, 0x57, 0xfc, 0x09, 0x3c, 0xc3, 0x56, 0x85, 0xdc, 0xb6, 0x47, 0x9c, 0x3a, - 0xde, 0x97, 0x85, 0x8a, 0x13, 0x3b, 0x9c, 0x4d, 0x50, 0xb7, 0x55, 0x22, 0xe1, 0x45, 0x9f, 0x03, - 0x88, 0xe2, 0xd0, 0xf3, 0xb7, 0x69, 0x99, 0x88, 0x60, 0xf8, 0xd1, 0x1e, 0xd4, 0xea, 0x0a, 0x99, - 0xd3, 0x4c, 0x76, 0xae, 0x02, 0x60, 0x8d, 0x22, 0x5a, 0x30, 0xee, 0xcb, 0xb9, 0x94, 0xe0, 0x13, - 0x38, 0xd5, 0xe4, 0xf6, 0x9c, 0x7b, 0x19, 0xca, 0x8a, 0x78, 0x3f, 0x29, 0xce, 0xb8, 0xce, 0x5c, - 0x7c, 0x0a, 0xa6, 0x52, 0x7d, 0x3b, 0x92, 0x10, 0xe8, 0x17, 0x2d, 0x98, 0xe2, 0x9d, 0x59, 0xf1, - 0xf7, 0xc4, 0x99, 0xfa, 0x2e, 0x9c, 0x6e, 0x66, 0x9c, 0x6d, 0x62, 0x46, 0x07, 0x3f, 0x0b, 0x95, - 0xd0, 0x27, 0x0b, 0x8a, 0x33, 0xdb, 0x40, 0x97, 0xe9, 0xba, 0xa5, 0x67, 0x97, 0xd3, 0x14, 0xce, - 0x86, 0xe3, 0x7c, 0xcd, 0xf2, 0x32, 0xac, 0xa0, 0xf6, 0x6f, 0x5b, 0x30, 0xc3, 0x7b, 0x7e, 0x9d, - 0xec, 0xab, 0x1d, 0xfe, 0xb5, 0xec, 0xbb, 0x48, 0xe6, 0x53, 0xc8, 0x49, 0xe6, 0xa3, 0x7f, 0x5a, - 0xb1, 0xe7, 0xa7, 0xfd, 0xb4, 0x05, 0x62, 0x85, 0x9c, 0xc0, 0x53, 0xfe, 0x1b, 0xcd, 0xa7, 0xfc, - 0x5c, 0xfe, 0x26, 0xc8, 0x79, 0xc3, 0xff, 0x99, 0x05, 0xd3, 0x1c, 0x21, 0xd1, 0x39, 0x7f, 0x4d, - 0xe7, 0x61, 0x90, 0x94, 0x9f, 0xd7, 0xc9, 0xfe, 0x46, 0x50, 0x73, 0xe2, 0x9d, 0xec, 0x8f, 0x32, - 0x26, 0x6b, 0xa8, 0xe7, 0x64, 0xb9, 0x72, 0x03, 0x1d, 0x21, 0x8f, 0xf0, 0x91, 0x43, 0xdd, 0xdb, - 0x5f, 0xb5, 0x00, 0xf1, 0x66, 0x0c, 0xf6, 0x87, 0x32, 0x15, 0xac, 0x54, 0xbb, 0x2e, 0x92, 0xa3, - 0x49, 0x41, 0xb0, 0x86, 0x75, 0x2c, 0xc3, 0x93, 0x32, 0x1c, 0x28, 0xf6, 0x37, 0x1c, 0x38, 0xc2, - 0x88, 0xfe, 0xc1, 0x30, 0xa4, 0x3d, 0x40, 0xd0, 0x6d, 0x18, 0x6f, 0x38, 0x6d, 0x67, 0xd3, 0x6b, - 0x7a, 0xb1, 0x47, 0xa2, 0x5e, 0x16, 0x47, 0xcb, 0x1a, 0x9e, 0x50, 0xf5, 0x6a, 0x25, 0xd8, 0xa0, - 0x83, 0x16, 0x00, 0xda, 0xa1, 0xb7, 0xe7, 0x35, 0xc9, 0x36, 0x93, 0x38, 0x30, 0xf7, 0x66, 0x6e, - 0x46, 0x23, 0x4b, 0xb1, 0x86, 0x91, 0xe1, 0xa9, 0x5a, 0x7c, 0xc8, 0x9e, 0xaa, 0x70, 0x62, 0x9e, - 0xaa, 0x43, 0x47, 0xf2, 0x54, 0x2d, 0x1d, 0xd9, 0x53, 0x75, 0x78, 0x20, 0x4f, 0x55, 0x0c, 0x67, - 0x25, 0x07, 0x47, 0xff, 0xaf, 0x7a, 0x4d, 0x22, 0xd8, 0x76, 0xee, 0x93, 0x3d, 0x77, 0xff, 0x60, - 0xfe, 0x2c, 0xce, 0xc4, 0xc0, 0x39, 0x35, 0xd1, 0xa7, 0x61, 0xd6, 0x69, 0x36, 0x83, 0xbb, 0x6a, - 0x52, 0x57, 0xa2, 0x86, 0xd3, 0xe4, 0xa2, 0xfc, 0x51, 0x46, 0xf5, 0xb1, 0xfb, 0x07, 0xf3, 0xb3, - 0x8b, 0x39, 0x38, 0x38, 0xb7, 0x36, 0xfa, 0x24, 0x94, 0xdb, 0x61, 0xd0, 0x58, 0xd3, 0xdc, 0xd4, - 0x2e, 0xd0, 0x01, 0xac, 0xc9, 0xc2, 0xc3, 0x83, 0xf9, 0x09, 0xf5, 0x87, 0x5d, 0xf8, 0x49, 0x05, - 0x7b, 0x17, 0x4e, 0xd5, 0x49, 0xe8, 0xb1, 0xac, 0xc0, 0x6e, 0x72, 0x7e, 0x6c, 0x40, 0x39, 0x4c, - 0x9d, 0x98, 0x03, 0xc5, 0x76, 0xd3, 0x62, 0x82, 0xcb, 0x13, 0x32, 0x21, 0x64, 0xff, 0x6f, 0x0b, - 0x46, 0x85, 0x47, 0xc6, 0x09, 0x30, 0x6a, 0x8b, 0x86, 0xbc, 0x7c, 0x3e, 0xfb, 0x56, 0x61, 0x9d, - 0xc9, 0x95, 0x94, 0x57, 0x53, 0x92, 0xf2, 0xc7, 0x7b, 0x11, 0xe9, 0x2d, 0x23, 0xff, 0x9b, 0x45, - 0x98, 0x34, 0x5d, 0xf7, 0x4e, 0x60, 0x08, 0xd6, 0x61, 0x34, 0x12, 0xbe, 0x69, 0x85, 0x7c, 0x8b, - 0xec, 0xf4, 0x24, 0x26, 0xd6, 0x5a, 0xc2, 0x1b, 0x4d, 0x12, 0xc9, 0x74, 0x7a, 0x2b, 0x3e, 0x44, - 0xa7, 0xb7, 0x7e, 0xde, 0x93, 0x43, 0xc7, 0xe1, 0x3d, 0x69, 0x7f, 0x99, 0xdd, 0x6c, 0x7a, 0xf9, - 0x09, 0x30, 0x3d, 0x57, 0xcd, 0x3b, 0xd0, 0xee, 0xb1, 0xb2, 0x44, 0xa7, 0x72, 0x98, 0x9f, 0x9f, - 0xb7, 0xe0, 0x7c, 0xc6, 0x57, 0x69, 0x9c, 0xd0, 0x33, 0x50, 0x72, 0x3a, 0xae, 0xa7, 0xf6, 0xb2, - 0xa6, 0x35, 0x5b, 0x14, 0xe5, 0x58, 0x61, 0xa0, 0x65, 0x98, 0x21, 0xf7, 0xda, 0x1e, 0x57, 0x18, - 0xea, 0x26, 0x95, 0x45, 0x1e, 0xef, 0x7a, 0x25, 0x0d, 0xc4, 0xdd, 0xf8, 0x2a, 0xd8, 0x43, 0x31, - 0x37, 0xd8, 0xc3, 0xdf, 0xb7, 0x60, 0x4c, 0x79, 0x67, 0x3d, 0xf4, 0xd1, 0xfe, 0x26, 0x73, 0xb4, - 0x1f, 0xed, 0x31, 0xda, 0x39, 0xc3, 0xfc, 0xb7, 0x0b, 0xaa, 0xbf, 0xb5, 0x20, 0x8c, 0x07, 0xe0, - 0xb0, 0x5e, 0x81, 0x52, 0x3b, 0x0c, 0xe2, 0xa0, 0x11, 0x34, 0x05, 0x83, 0xf5, 0x58, 0x12, 0x8b, - 0x84, 0x97, 0x1f, 0x6a, 0xbf, 0xb1, 0xc2, 0x66, 0xa3, 0x17, 0x84, 0xb1, 0x60, 0x6a, 0x92, 0xd1, - 0x0b, 0xc2, 0x18, 0x33, 0x08, 0x72, 0x01, 0x62, 0x27, 0xdc, 0x26, 0x31, 0x2d, 0x13, 0xb1, 0x8f, - 0xf2, 0x0f, 0x8f, 0x4e, 0xec, 0x35, 0x17, 0x3c, 0x3f, 0x8e, 0xe2, 0x70, 0xa1, 0xea, 0xc7, 0x37, - 0x43, 0xfe, 0x5e, 0xd3, 0x82, 0x8b, 0x28, 0x5a, 0x58, 0xa3, 0x2b, 0xdd, 0x8a, 0x59, 0x1b, 0xc3, - 0xa6, 0xfe, 0x7d, 0x5d, 0x94, 0x63, 0x85, 0x61, 0xbf, 0xcc, 0xae, 0x12, 0x36, 0x40, 0x47, 0x8b, - 0xfb, 0xf1, 0x9d, 0x65, 0x35, 0xb4, 0x4c, 0xf9, 0x56, 0xd1, 0xa3, 0x8b, 0xf4, 0x3e, 0xb9, 0x69, - 0xc3, 0xba, 0x8b, 0x51, 0x12, 0x82, 0x04, 0x7d, 0x73, 0x97, 0x4d, 0xc5, 0xb3, 0x7d, 0xae, 0x80, - 0x23, 0x58, 0x51, 0xb0, 0x18, 0xfc, 0x2c, 0x42, 0x79, 0xb5, 0x26, 0x16, 0xb9, 0x16, 0x83, 0x5f, - 0x00, 0x70, 0x82, 0x83, 0xae, 0x88, 0xd7, 0xf8, 0x90, 0x91, 0x79, 0x52, 0xbe, 0xc6, 0xe5, 0xe7, - 0x6b, 0xc2, 0xec, 0xe7, 0x60, 0x4c, 0x65, 0xa0, 0xac, 0xf1, 0xc4, 0x86, 0x22, 0x12, 0xd4, 0x4a, - 0x52, 0x8c, 0x75, 0x1c, 0xb4, 0x01, 0x53, 0x11, 0x17, 0xf5, 0xa8, 0x80, 0x9f, 0x5c, 0x64, 0xf6, - 0x51, 0x69, 0x88, 0x52, 0x37, 0xc1, 0x87, 0xac, 0x88, 0x1f, 0x1d, 0xd2, 0x95, 0x37, 0x4d, 0x02, - 0xbd, 0x06, 0x93, 0xcd, 0xc0, 0x71, 0x97, 0x9c, 0xa6, 0xe3, 0x37, 0xd8, 0xf7, 0x96, 0xcc, 0x44, - 0x66, 0x37, 0x0c, 0x28, 0x4e, 0x61, 0x53, 0xce, 0x47, 0x2f, 0x11, 0x41, 0x6a, 0x1d, 0x7f, 0x9b, - 0x44, 0x22, 0x9f, 0x20, 0xe3, 0x7c, 0x6e, 0xe4, 0xe0, 0xe0, 0xdc, 0xda, 0xe8, 0x15, 0x18, 0x97, - 0x9f, 0xaf, 0x79, 0xbe, 0x27, 0xb6, 0xf7, 0x1a, 0x0c, 0x1b, 0x98, 0xe8, 0x2e, 0x9c, 0x91, 0xff, - 0x37, 0x42, 0x67, 0x6b, 0xcb, 0x6b, 0x08, 0x77, 0x50, 0xee, 0x18, 0xb7, 0x28, 0xbd, 0xb7, 0x56, - 0xb2, 0x90, 0x0e, 0x0f, 0xe6, 0x2f, 0x8a, 0x51, 0xcb, 0x84, 0xb3, 0x49, 0xcc, 0xa6, 0x8f, 0xd6, - 0xe0, 0xd4, 0x0e, 0x71, 0x9a, 0xf1, 0xce, 0xf2, 0x0e, 0x69, 0xec, 0xca, 0x4d, 0xc4, 0xfc, 0xe9, - 0x35, 0x8b, 0xf5, 0x6b, 0xdd, 0x28, 0x38, 0xab, 0x1e, 0x7a, 0x0b, 0x66, 0xdb, 0x9d, 0xcd, 0xa6, - 0x17, 0xed, 0xac, 0x07, 0x31, 0xb3, 0x46, 0x51, 0x09, 0x2d, 0x85, 0xe3, 0xbd, 0x8a, 0x58, 0x50, - 0xcb, 0xc1, 0xc3, 0xb9, 0x14, 0xd0, 0xbb, 0x70, 0x26, 0xb5, 0x18, 0x84, 0xeb, 0xf1, 0x64, 0x7e, - 0xc8, 0xef, 0x7a, 0x56, 0x05, 0xe1, 0xc5, 0x9f, 0x05, 0xc2, 0xd9, 0x4d, 0xa0, 0x17, 0xa1, 0xe4, - 0xb5, 0x57, 0x9d, 0x96, 0xd7, 0xdc, 0x67, 0x31, 0xcb, 0xcb, 0x2c, 0x8e, 0x77, 0xa9, 0x5a, 0xe3, - 0x65, 0x87, 0xda, 0x6f, 0xac, 0x30, 0xdf, 0x9b, 0x35, 0xd2, 0x3b, 0xb4, 0xb2, 0xc6, 0xca, 0xa1, - 0xcf, 0xc3, 0xb8, 0xbe, 0xf6, 0xc4, 0xb5, 0x74, 0x29, 0x9b, 0xd3, 0xd1, 0xd6, 0x28, 0x67, 0x04, - 0xd5, 0x3a, 0xd4, 0x61, 0xd8, 0xa0, 0x68, 0x13, 0xc8, 0x1e, 0x15, 0x74, 0x03, 0x4a, 0x8d, 0xa6, - 0x47, 0xfc, 0xb8, 0x5a, 0xeb, 0x15, 0x88, 0x68, 0x59, 0xe0, 0x88, 0x61, 0x16, 0x91, 0x95, 0x79, - 0x19, 0x56, 0x14, 0xec, 0x5f, 0x2d, 0xc0, 0x7c, 0x9f, 0x30, 0xdd, 0x29, 0xa1, 0xb9, 0x35, 0x90, - 0xd0, 0x7c, 0x51, 0x26, 0xf5, 0x5c, 0x4f, 0x49, 0x12, 0x52, 0x09, 0x3b, 0x13, 0x79, 0x42, 0x1a, - 0x7f, 0x60, 0x23, 0x66, 0x5d, 0xee, 0x3e, 0xd4, 0xd7, 0x0c, 0xdf, 0xd0, 0xb7, 0x0d, 0x0f, 0xfe, - 0x7c, 0xc9, 0xd5, 0x9d, 0xd8, 0x5f, 0x2e, 0xc0, 0x19, 0x35, 0x84, 0x5f, 0xbf, 0x03, 0x77, 0xab, - 0x7b, 0xe0, 0x8e, 0x41, 0xf3, 0x64, 0xdf, 0x84, 0x11, 0x1e, 0x59, 0x69, 0x00, 0xb6, 0xe9, 0x09, - 0x33, 0x34, 0xa0, 0xba, 0xdc, 0x8d, 0xf0, 0x80, 0xdf, 0x63, 0xc1, 0xd4, 0xc6, 0x72, 0xad, 0x1e, - 0x34, 0x76, 0x49, 0xbc, 0xc8, 0xd9, 0x5c, 0x2c, 0xb8, 0x26, 0xeb, 0x01, 0xb9, 0xa1, 0x2c, 0x3e, - 0xeb, 0x22, 0x0c, 0xed, 0x04, 0x51, 0x9c, 0x56, 0x4b, 0x5f, 0x0b, 0xa2, 0x18, 0x33, 0x88, 0xfd, - 0x3b, 0x16, 0x0c, 0xb3, 0x3c, 0xd6, 0xfd, 0x32, 0xa9, 0x0f, 0xf2, 0x5d, 0xe8, 0x25, 0x18, 0x21, - 0x5b, 0x5b, 0xa4, 0x11, 0x8b, 0x59, 0x95, 0x7e, 0xc4, 0x23, 0x2b, 0xac, 0x94, 0xb2, 0x0a, 0xac, - 0x31, 0xfe, 0x17, 0x0b, 0x64, 0x74, 0x07, 0xca, 0xb1, 0xd7, 0x22, 0x8b, 0xae, 0x2b, 0x14, 0x7b, - 0x0f, 0xe0, 0x0b, 0xbd, 0x21, 0x09, 0xe0, 0x84, 0x96, 0xfd, 0xa5, 0x02, 0x40, 0x12, 0x57, 0xa3, - 0xdf, 0x27, 0x2e, 0x75, 0xa9, 0x7c, 0x2e, 0x65, 0xa8, 0x7c, 0x50, 0x42, 0x30, 0x43, 0xdf, 0xa3, - 0x86, 0xa9, 0x38, 0xd0, 0x30, 0x0d, 0x1d, 0x65, 0x98, 0x96, 0x61, 0x26, 0x89, 0x0b, 0x62, 0x86, - 0x45, 0x62, 0x4f, 0x9b, 0x8d, 0x34, 0x10, 0x77, 0xe3, 0xdb, 0x04, 0x2e, 0xaa, 0xf0, 0x08, 0xe2, - 0xae, 0x61, 0x76, 0xa3, 0x47, 0x48, 0xaa, 0x9f, 0xe8, 0xb4, 0x0a, 0xb9, 0x3a, 0xad, 0x1f, 0xb3, - 0xe0, 0x74, 0xba, 0x1d, 0xe6, 0xc8, 0xf7, 0x45, 0x0b, 0xce, 0x30, 0xcd, 0x1e, 0x6b, 0xb5, 0x5b, - 0x8f, 0xf8, 0x62, 0xcf, 0x90, 0x0f, 0x39, 0x3d, 0x4e, 0x1c, 0xd6, 0xd7, 0xb2, 0x48, 0xe3, 0xec, - 0x16, 0xed, 0xff, 0x58, 0x80, 0xd9, 0xbc, 0x58, 0x11, 0xcc, 0xac, 0xdc, 0xb9, 0x57, 0xdf, 0x25, - 0x77, 0x85, 0xf1, 0x6e, 0x62, 0x56, 0xce, 0x8b, 0xb1, 0x84, 0xa7, 0x23, 0x2f, 0x17, 0x06, 0x8b, - 0xbc, 0x8c, 0x76, 0x60, 0xe6, 0xee, 0x0e, 0xf1, 0x6f, 0xf9, 0x91, 0x13, 0x7b, 0xd1, 0x96, 0xc7, - 0x32, 0xa2, 0xf3, 0x75, 0xf3, 0x09, 0x69, 0x62, 0x7b, 0x27, 0x8d, 0x70, 0x78, 0x30, 0x7f, 0xde, - 0x28, 0x48, 0xba, 0xcc, 0x0f, 0x12, 0xdc, 0x4d, 0xb4, 0x3b, 0x70, 0xf5, 0xd0, 0x43, 0x0c, 0x5c, - 0x6d, 0x7f, 0xd1, 0x82, 0x73, 0xb9, 0x89, 0xe5, 0xd0, 0x65, 0x28, 0x39, 0x6d, 0x8f, 0x8b, 0x40, - 0xc5, 0x31, 0xca, 0x9e, 0xf2, 0xb5, 0x2a, 0x17, 0x80, 0x2a, 0xa8, 0x4a, 0x78, 0x5b, 0xc8, 0x4d, - 0x78, 0xdb, 0x37, 0x7f, 0xad, 0xfd, 0xdd, 0x16, 0x08, 0x97, 0xb8, 0x01, 0xce, 0xee, 0x37, 0x65, - 0xbe, 0x70, 0x23, 0xb9, 0xc5, 0xc5, 0x7c, 0x1f, 0x41, 0x91, 0xd2, 0x42, 0xf1, 0x4a, 0x46, 0x22, - 0x0b, 0x83, 0x96, 0xed, 0x82, 0x80, 0x56, 0x08, 0x13, 0x20, 0xf6, 0xef, 0xcd, 0xf3, 0x00, 0x2e, - 0xc3, 0xd5, 0xb2, 0x06, 0xab, 0x9b, 0xb9, 0xa2, 0x20, 0x58, 0xc3, 0xb2, 0xff, 0x6d, 0x01, 0xc6, - 0x64, 0x32, 0x85, 0x8e, 0x3f, 0xc8, 0x33, 0xff, 0x48, 0xd9, 0xd5, 0x58, 0x9a, 0x6d, 0x4a, 0xb8, - 0x96, 0x48, 0x47, 0x92, 0x34, 0xdb, 0x12, 0x80, 0x13, 0x1c, 0xba, 0x8b, 0xa2, 0xce, 0x26, 0x43, - 0x4f, 0x39, 0x70, 0xd5, 0x79, 0x31, 0x96, 0x70, 0xf4, 0x69, 0x98, 0xe6, 0xf5, 0xc2, 0xa0, 0xed, - 0x6c, 0x73, 0xd9, 0xf2, 0xb0, 0xf2, 0xbc, 0x9e, 0x5e, 0x4b, 0xc1, 0x0e, 0x0f, 0xe6, 0x4f, 0xa7, - 0xcb, 0x98, 0xd2, 0xa4, 0x8b, 0x0a, 0x33, 0xc4, 0xe0, 0x8d, 0xd0, 0xdd, 0xdf, 0x65, 0xbf, 0x91, - 0x80, 0xb0, 0x8e, 0x67, 0x7f, 0x1e, 0x50, 0x77, 0x5a, 0x09, 0xf4, 0x3a, 0xb7, 0xbe, 0xf3, 0x42, - 0xe2, 0xf6, 0x52, 0xa2, 0xe8, 0xfe, 0xc5, 0xd2, 0xf7, 0x82, 0xd7, 0xc2, 0xaa, 0xbe, 0xfd, 0x57, - 0x8a, 0x30, 0x9d, 0xf6, 0x36, 0x45, 0xd7, 0x60, 0x84, 0xb3, 0x1e, 0x82, 0x7c, 0x0f, 0x1d, 0xbd, - 0xe6, 0xa3, 0xca, 0x0e, 0x61, 0xc1, 0xbd, 0x88, 0xfa, 0xe8, 0x2d, 0x18, 0x73, 0x83, 0xbb, 0xfe, - 0x5d, 0x27, 0x74, 0x17, 0x6b, 0x55, 0xb1, 0x9c, 0x33, 0xdf, 0x3d, 0x95, 0x04, 0x4d, 0xf7, 0x7b, - 0x65, 0xfa, 0xa8, 0x04, 0x84, 0x75, 0x72, 0x68, 0x83, 0x45, 0xc1, 0xdd, 0xf2, 0xb6, 0xd7, 0x9c, - 0x76, 0x2f, 0x53, 0xec, 0x65, 0x89, 0xa4, 0x51, 0x9e, 0x10, 0xa1, 0x72, 0x39, 0x00, 0x27, 0x84, - 0xd0, 0xb7, 0xc2, 0xa9, 0x28, 0x47, 0x54, 0x9a, 0x97, 0x65, 0xa8, 0x97, 0xf4, 0x70, 0xe9, 0x11, - 0xfa, 0x22, 0xcd, 0x12, 0xaa, 0x66, 0x35, 0x63, 0xff, 0xda, 0x29, 0x30, 0x36, 0xb1, 0x91, 0x74, - 0xce, 0x3a, 0xa6, 0xa4, 0x73, 0x18, 0x4a, 0xa4, 0xd5, 0x8e, 0xf7, 0x2b, 0x5e, 0xd8, 0x2b, 0x6b, - 0xe9, 0x8a, 0xc0, 0xe9, 0xa6, 0x29, 0x21, 0x58, 0xd1, 0xc9, 0xce, 0x0c, 0x58, 0xfc, 0x1a, 0x66, - 0x06, 0x1c, 0x3a, 0xc1, 0xcc, 0x80, 0xeb, 0x30, 0xba, 0xed, 0xc5, 0x98, 0xb4, 0x03, 0xc1, 0xf4, - 0x67, 0xae, 0xc3, 0xab, 0x1c, 0xa5, 0x3b, 0x07, 0x95, 0x00, 0x60, 0x49, 0x04, 0xbd, 0xae, 0x76, - 0xe0, 0x48, 0xfe, 0x9b, 0xb9, 0x5b, 0x99, 0x9c, 0xb9, 0x07, 0x45, 0xfe, 0xbf, 0xd1, 0x07, 0xcd, - 0xff, 0xb7, 0x2a, 0xb3, 0xf6, 0x95, 0xf2, 0xfd, 0x26, 0x58, 0x52, 0xbe, 0x3e, 0xb9, 0xfa, 0x6e, - 0xeb, 0x99, 0x0e, 0xcb, 0xf9, 0x27, 0x81, 0x4a, 0x62, 0x38, 0x60, 0x7e, 0xc3, 0xef, 0xb6, 0xe0, - 0x4c, 0x3b, 0x2b, 0xe9, 0xa7, 0xd0, 0xbb, 0xbe, 0x34, 0x70, 0x56, 0x53, 0xa3, 0x41, 0x26, 0x72, - 0xc9, 0x44, 0xc3, 0xd9, 0xcd, 0xd1, 0x81, 0x0e, 0x37, 0x5d, 0x91, 0xa0, 0xef, 0x89, 0x9c, 0x44, - 0x89, 0x3d, 0xd2, 0x23, 0x6e, 0x64, 0x24, 0xe5, 0xfb, 0x70, 0x5e, 0x52, 0xbe, 0x81, 0x53, 0xf1, - 0xbd, 0xae, 0x52, 0x24, 0x4e, 0xe4, 0x2f, 0x25, 0x9e, 0x00, 0xb1, 0x6f, 0x62, 0xc4, 0xd7, 0x55, - 0x62, 0xc4, 0x1e, 0x11, 0x21, 0x79, 0xda, 0xc3, 0xbe, 0xe9, 0x10, 0xb5, 0x94, 0x86, 0x53, 0xc7, - 0x93, 0xd2, 0xd0, 0xb8, 0x6a, 0x78, 0x56, 0xbd, 0xa7, 0xfb, 0x5c, 0x35, 0x06, 0xdd, 0xde, 0x97, - 0x0d, 0x4f, 0xdf, 0x38, 0xf3, 0x40, 0xe9, 0x1b, 0x6f, 0xeb, 0xe9, 0x10, 0x51, 0x9f, 0x7c, 0x7f, - 0x14, 0x69, 0xc0, 0x24, 0x88, 0xb7, 0xf5, 0x0b, 0xf0, 0x54, 0x3e, 0x5d, 0x75, 0xcf, 0x75, 0xd3, - 0xcd, 0xbc, 0x02, 0xbb, 0x92, 0x2b, 0x9e, 0x3e, 0x99, 0xe4, 0x8a, 0x67, 0x8e, 0x3d, 0xb9, 0xe2, - 0xd9, 0x13, 0x48, 0xae, 0xf8, 0xc8, 0x09, 0x26, 0x57, 0xbc, 0xcd, 0x8c, 0x15, 0x78, 0x60, 0x11, - 0x11, 0xc1, 0x32, 0x3b, 0x5a, 0x62, 0x56, 0xf4, 0x11, 0xfe, 0x71, 0x0a, 0x84, 0x13, 0x52, 0x19, - 0x49, 0x1b, 0x67, 0x1f, 0x42, 0xd2, 0xc6, 0xf5, 0x24, 0x69, 0xe3, 0xb9, 0xfc, 0xa9, 0xce, 0x30, - 0x12, 0xcf, 0x49, 0xd5, 0x78, 0x5b, 0x4f, 0xb1, 0xf8, 0x68, 0x0f, 0xa1, 0x7a, 0x96, 0xe0, 0xb1, - 0x47, 0x62, 0xc5, 0xd7, 0x78, 0x62, 0xc5, 0xc7, 0xf2, 0x4f, 0xf2, 0xf4, 0x75, 0x67, 0xa6, 0x53, - 0xfc, 0xde, 0x02, 0x5c, 0xe8, 0xbd, 0x2f, 0x12, 0xa9, 0x67, 0x2d, 0xd1, 0xed, 0xa5, 0xa4, 0x9e, - 0xfc, 0x6d, 0x95, 0x60, 0x0d, 0x1c, 0x73, 0xea, 0x2a, 0xcc, 0x28, 0x2b, 0xf0, 0xa6, 0xd7, 0xd8, - 0xd7, 0x32, 0xc8, 0x2b, 0xcf, 0xd9, 0x7a, 0x1a, 0x01, 0x77, 0xd7, 0x41, 0x8b, 0x30, 0x65, 0x14, - 0x56, 0x2b, 0xe2, 0x0d, 0xa5, 0xc4, 0xac, 0x75, 0x13, 0x8c, 0xd3, 0xf8, 0xf6, 0x4f, 0x59, 0xf0, - 0x48, 0x4e, 0xde, 0xa2, 0x81, 0x43, 0x2a, 0x6d, 0xc1, 0x54, 0xdb, 0xac, 0xda, 0x27, 0xf2, 0x9a, - 0x91, 0x1d, 0x49, 0xf5, 0x35, 0x05, 0xc0, 0x69, 0xa2, 0xf6, 0x9f, 0x5a, 0x70, 0xbe, 0xa7, 0x41, - 0x16, 0xc2, 0x70, 0x76, 0xbb, 0x15, 0x39, 0xcb, 0x21, 0x71, 0x89, 0x1f, 0x7b, 0x4e, 0xb3, 0xde, - 0x26, 0x0d, 0x4d, 0x6e, 0xcd, 0x2c, 0x9b, 0xae, 0xae, 0xd5, 0x17, 0xbb, 0x31, 0x70, 0x4e, 0x4d, - 0xb4, 0x0a, 0xa8, 0x1b, 0x22, 0x66, 0x98, 0x45, 0x67, 0xed, 0xa6, 0x87, 0x33, 0x6a, 0xa0, 0x97, - 0x61, 0x42, 0x19, 0x7a, 0x69, 0x33, 0xce, 0x0e, 0x60, 0xac, 0x03, 0xb0, 0x89, 0xb7, 0x74, 0xf9, - 0x37, 0x7e, 0xef, 0xc2, 0x87, 0x7e, 0xeb, 0xf7, 0x2e, 0x7c, 0xe8, 0xb7, 0x7f, 0xef, 0xc2, 0x87, - 0xbe, 0xfd, 0xfe, 0x05, 0xeb, 0x37, 0xee, 0x5f, 0xb0, 0x7e, 0xeb, 0xfe, 0x05, 0xeb, 0xb7, 0xef, - 0x5f, 0xb0, 0x7e, 0xf7, 0xfe, 0x05, 0xeb, 0x4b, 0xbf, 0x7f, 0xe1, 0x43, 0x6f, 0x16, 0xf6, 0x9e, - 0xfb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x11, 0xe2, 0x4d, 0x14, 0xfc, 0x00, 0x00, -} - -func (m *AWSElasticBlockStoreVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AWSElasticBlockStoreVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AWSElasticBlockStoreVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.Partition)) - i-- - dAtA[i] = 0x18 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumeID) - copy(dAtA[i:], m.VolumeID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Affinity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Affinity) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Affinity) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PodAntiAffinity != nil { - { - size, err := m.PodAntiAffinity.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.PodAffinity != nil { - { - size, err := m.PodAffinity.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.NodeAffinity != nil { - { - size, err := m.NodeAffinity.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AttachedVolume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AttachedVolume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AttachedVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.DevicePath) - copy(dAtA[i:], m.DevicePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DevicePath))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AvoidPods) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AvoidPods) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AvoidPods) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PreferAvoidPods) > 0 { - for iNdEx := len(m.PreferAvoidPods) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PreferAvoidPods[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *AzureDiskVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AzureDiskVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AzureDiskVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Kind != nil { - i -= len(*m.Kind) - copy(dAtA[i:], *m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Kind))) - i-- - dAtA[i] = 0x32 - } - if m.ReadOnly != nil { - i-- - if *m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.FSType != nil { - i -= len(*m.FSType) - copy(dAtA[i:], *m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FSType))) - i-- - dAtA[i] = 0x22 - } - if m.CachingMode != nil { - i -= len(*m.CachingMode) - copy(dAtA[i:], *m.CachingMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.CachingMode))) - i-- - dAtA[i] = 0x1a - } - i -= len(m.DataDiskURI) - copy(dAtA[i:], m.DataDiskURI) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DataDiskURI))) - i-- - dAtA[i] = 0x12 - i -= len(m.DiskName) - copy(dAtA[i:], m.DiskName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DiskName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AzureFilePersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AzureFilePersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AzureFilePersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretNamespace != nil { - i -= len(*m.SecretNamespace) - copy(dAtA[i:], *m.SecretNamespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SecretNamespace))) - i-- - dAtA[i] = 0x22 - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.ShareName) - copy(dAtA[i:], m.ShareName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ShareName))) - i-- - dAtA[i] = 0x12 - i -= len(m.SecretName) - copy(dAtA[i:], m.SecretName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AzureFileVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AzureFileVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AzureFileVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.ShareName) - copy(dAtA[i:], m.ShareName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ShareName))) - i-- - dAtA[i] = 0x12 - i -= len(m.SecretName) - copy(dAtA[i:], m.SecretName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Binding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Binding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Binding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Target.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSIPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSIPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSIPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ControllerExpandSecretRef != nil { - { - size, err := m.ControllerExpandSecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.NodePublishSecretRef != nil { - { - size, err := m.NodePublishSecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.NodeStageSecretRef != nil { - { - size, err := m.NodeStageSecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.ControllerPublishSecretRef != nil { - { - size, err := m.ControllerPublishSecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.VolumeAttributes) > 0 { - keysForVolumeAttributes := make([]string, 0, len(m.VolumeAttributes)) - for k := range m.VolumeAttributes { - keysForVolumeAttributes = append(keysForVolumeAttributes, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForVolumeAttributes) - for iNdEx := len(keysForVolumeAttributes) - 1; iNdEx >= 0; iNdEx-- { - v := m.VolumeAttributes[string(keysForVolumeAttributes[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForVolumeAttributes[iNdEx]) - copy(dAtA[i:], keysForVolumeAttributes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForVolumeAttributes[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x22 - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.VolumeHandle) - copy(dAtA[i:], m.VolumeHandle) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeHandle))) - i-- - dAtA[i] = 0x12 - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSIVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSIVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSIVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NodePublishSecretRef != nil { - { - size, err := m.NodePublishSecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.VolumeAttributes) > 0 { - keysForVolumeAttributes := make([]string, 0, len(m.VolumeAttributes)) - for k := range m.VolumeAttributes { - keysForVolumeAttributes = append(keysForVolumeAttributes, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForVolumeAttributes) - for iNdEx := len(keysForVolumeAttributes) - 1; iNdEx >= 0; iNdEx-- { - v := m.VolumeAttributes[string(keysForVolumeAttributes[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForVolumeAttributes[iNdEx]) - copy(dAtA[i:], keysForVolumeAttributes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForVolumeAttributes[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if m.FSType != nil { - i -= len(*m.FSType) - copy(dAtA[i:], *m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FSType))) - i-- - dAtA[i] = 0x1a - } - if m.ReadOnly != nil { - i-- - if *m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Capabilities) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Capabilities) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Capabilities) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Drop) > 0 { - for iNdEx := len(m.Drop) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Drop[iNdEx]) - copy(dAtA[i:], m.Drop[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Drop[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Add) > 0 { - for iNdEx := len(m.Add) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Add[iNdEx]) - copy(dAtA[i:], m.Add[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Add[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CephFSPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CephFSPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CephFSPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - i -= len(m.SecretFile) - copy(dAtA[i:], m.SecretFile) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretFile))) - i-- - dAtA[i] = 0x22 - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0x1a - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - if len(m.Monitors) > 0 { - for iNdEx := len(m.Monitors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Monitors[iNdEx]) - copy(dAtA[i:], m.Monitors[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Monitors[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CephFSVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CephFSVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CephFSVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - i -= len(m.SecretFile) - copy(dAtA[i:], m.SecretFile) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretFile))) - i-- - dAtA[i] = 0x22 - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0x1a - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - if len(m.Monitors) > 0 { - for iNdEx := len(m.Monitors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Monitors[iNdEx]) - copy(dAtA[i:], m.Monitors[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Monitors[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CinderPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CinderPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CinderPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumeID) - copy(dAtA[i:], m.VolumeID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CinderVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CinderVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CinderVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumeID) - copy(dAtA[i:], m.VolumeID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClientIPConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClientIPConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClientIPConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ComponentCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComponentCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComponentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x22 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ComponentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComponentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComponentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ComponentStatusList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ComponentStatusList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ComponentStatusList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMap) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BinaryData) > 0 { - keysForBinaryData := make([]string, 0, len(m.BinaryData)) - for k := range m.BinaryData { - keysForBinaryData = append(keysForBinaryData, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForBinaryData) - for iNdEx := len(keysForBinaryData) - 1; iNdEx >= 0; iNdEx-- { - v := m.BinaryData[string(keysForBinaryData[iNdEx])] - baseI := i - if v != nil { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(keysForBinaryData[iNdEx]) - copy(dAtA[i:], keysForBinaryData[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForBinaryData[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Data) > 0 { - keysForData := make([]string, 0, len(m.Data)) - for k := range m.Data { - keysForData = append(keysForData, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - for iNdEx := len(keysForData) - 1; iNdEx >= 0; iNdEx-- { - v := m.Data[string(keysForData[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForData[iNdEx]) - copy(dAtA[i:], keysForData[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForData[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMapEnvSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMapEnvSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMapEnvSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMapKeySelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMapKeySelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMapKeySelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMapList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMapList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMapList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMapNodeConfigSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMapNodeConfigSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMapNodeConfigSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.KubeletConfigKey) - copy(dAtA[i:], m.KubeletConfigKey) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.KubeletConfigKey))) - i-- - dAtA[i] = 0x2a - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x22 - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x1a - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMapProjection) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMapProjection) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMapProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ConfigMapVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ConfigMapVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ConfigMapVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.DefaultMode != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.DefaultMode)) - i-- - dAtA[i] = 0x18 - } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Container) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Container) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartupProbe != nil { - { - size, err := m.StartupProbe.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if len(m.VolumeDevices) > 0 { - for iNdEx := len(m.VolumeDevices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeDevices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - } - i -= len(m.TerminationMessagePolicy) - copy(dAtA[i:], m.TerminationMessagePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TerminationMessagePolicy))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - if len(m.EnvFrom) > 0 { - for iNdEx := len(m.EnvFrom) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EnvFrom[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - } - i-- - if m.TTY { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - i-- - if m.StdinOnce { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - i-- - if m.Stdin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - if m.SecurityContext != nil { - { - size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - i -= len(m.ImagePullPolicy) - copy(dAtA[i:], m.ImagePullPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImagePullPolicy))) - i-- - dAtA[i] = 0x72 - i -= len(m.TerminationMessagePath) - copy(dAtA[i:], m.TerminationMessagePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TerminationMessagePath))) - i-- - dAtA[i] = 0x6a - if m.Lifecycle != nil { - { - size, err := m.Lifecycle.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.ReadinessProbe != nil { - { - size, err := m.ReadinessProbe.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.LivenessProbe != nil { - { - size, err := m.LivenessProbe.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.VolumeMounts) > 0 { - for iNdEx := len(m.VolumeMounts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeMounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - { - size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - if len(m.Env) > 0 { - for iNdEx := len(m.Env) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Env[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i -= len(m.WorkingDir) - copy(dAtA[i:], m.WorkingDir) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.WorkingDir))) - i-- - dAtA[i] = 0x2a - if len(m.Args) > 0 { - for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Args[iNdEx]) - copy(dAtA[i:], m.Args[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Args[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Command) > 0 { - for iNdEx := len(m.Command) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Command[iNdEx]) - copy(dAtA[i:], m.Command[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Command[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ContainerImage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerImage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.SizeBytes)) - i-- - dAtA[i] = 0x10 - if len(m.Names) > 0 { - for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Names[iNdEx]) - copy(dAtA[i:], m.Names[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Names[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ContainerPort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerPort) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.HostIP) - copy(dAtA[i:], m.HostIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.HostIP))) - i-- - dAtA[i] = 0x2a - i -= len(m.Protocol) - copy(dAtA[i:], m.Protocol) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) - i-- - dAtA[i] = 0x22 - i = encodeVarintGenerated(dAtA, i, uint64(m.ContainerPort)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.HostPort)) - i-- - dAtA[i] = 0x10 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ContainerState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Terminated != nil { - { - size, err := m.Terminated.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Running != nil { - { - size, err := m.Running.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Waiting != nil { - { - size, err := m.Waiting.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContainerStateRunning) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerStateRunning) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerStateRunning) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ContainerStateTerminated) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerStateTerminated) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerStateTerminated) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0x3a - { - size, err := m.FinishedAt.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - { - size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x22 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - i = encodeVarintGenerated(dAtA, i, uint64(m.Signal)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ExitCode)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ContainerStateWaiting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerStateWaiting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerStateWaiting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ContainerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContainerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContainerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Started != nil { - i-- - if *m.Started { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - i -= len(m.ContainerID) - copy(dAtA[i:], m.ContainerID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerID))) - i-- - dAtA[i] = 0x42 - i -= len(m.ImageID) - copy(dAtA[i:], m.ImageID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImageID))) - i-- - dAtA[i] = 0x3a - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0x32 - i = encodeVarintGenerated(dAtA, i, uint64(m.RestartCount)) - i-- - dAtA[i] = 0x28 - i-- - if m.Ready { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - { - size, err := m.LastTerminationState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonEndpoint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonEndpoint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonEndpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DownwardAPIProjection) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DownwardAPIProjection) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DownwardAPIProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *DownwardAPIVolumeFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DownwardAPIVolumeFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DownwardAPIVolumeFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Mode != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Mode)) - i-- - dAtA[i] = 0x20 - } - if m.ResourceFieldRef != nil { - { - size, err := m.ResourceFieldRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.FieldRef != nil { - { - size, err := m.FieldRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DownwardAPIVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DownwardAPIVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DownwardAPIVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DefaultMode != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.DefaultMode)) - i-- - dAtA[i] = 0x10 - } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *EmptyDirVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EmptyDirVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EmptyDirVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SizeLimit != nil { - { - size, err := m.SizeLimit.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Medium) - copy(dAtA[i:], m.Medium) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Medium))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EndpointAddress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointAddress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NodeName != nil { - i -= len(*m.NodeName) - copy(dAtA[i:], *m.NodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.NodeName))) - i-- - dAtA[i] = 0x22 - } - i -= len(m.Hostname) - copy(dAtA[i:], m.Hostname) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) - i-- - dAtA[i] = 0x1a - if m.TargetRef != nil { - { - size, err := m.TargetRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.IP) - copy(dAtA[i:], m.IP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EndpointPort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointPort) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Protocol) - copy(dAtA[i:], m.Protocol) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) - i-- - dAtA[i] = 0x1a - i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x10 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EndpointSubset) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointSubset) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointSubset) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.NotReadyAddresses) > 0 { - for iNdEx := len(m.NotReadyAddresses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NotReadyAddresses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Addresses) > 0 { - for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Addresses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Endpoints) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Endpoints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Endpoints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Subsets) > 0 { - for iNdEx := len(m.Subsets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subsets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EndpointsList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointsList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EnvFromSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EnvFromSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EnvFromSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.ConfigMapRef != nil { - { - size, err := m.ConfigMapRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Prefix) - copy(dAtA[i:], m.Prefix) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EnvVar) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EnvVar) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EnvVar) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ValueFrom != nil { - { - size, err := m.ValueFrom.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EnvVarSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EnvVarSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EnvVarSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretKeyRef != nil { - { - size, err := m.SecretKeyRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.ConfigMapKeyRef != nil { - { - size, err := m.ConfigMapKeyRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.ResourceFieldRef != nil { - { - size, err := m.ResourceFieldRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.FieldRef != nil { - { - size, err := m.FieldRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EphemeralContainer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EphemeralContainer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EphemeralContainer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.TargetContainerName) - copy(dAtA[i:], m.TargetContainerName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetContainerName))) - i-- - dAtA[i] = 0x12 - { - size, err := m.EphemeralContainerCommon.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EphemeralContainerCommon) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EphemeralContainerCommon) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EphemeralContainerCommon) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartupProbe != nil { - { - size, err := m.StartupProbe.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if len(m.VolumeDevices) > 0 { - for iNdEx := len(m.VolumeDevices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeDevices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - } - i -= len(m.TerminationMessagePolicy) - copy(dAtA[i:], m.TerminationMessagePolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TerminationMessagePolicy))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - if len(m.EnvFrom) > 0 { - for iNdEx := len(m.EnvFrom) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EnvFrom[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - } - i-- - if m.TTY { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x90 - i-- - if m.StdinOnce { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - i-- - if m.Stdin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - if m.SecurityContext != nil { - { - size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - i -= len(m.ImagePullPolicy) - copy(dAtA[i:], m.ImagePullPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImagePullPolicy))) - i-- - dAtA[i] = 0x72 - i -= len(m.TerminationMessagePath) - copy(dAtA[i:], m.TerminationMessagePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TerminationMessagePath))) - i-- - dAtA[i] = 0x6a - if m.Lifecycle != nil { - { - size, err := m.Lifecycle.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.ReadinessProbe != nil { - { - size, err := m.ReadinessProbe.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.LivenessProbe != nil { - { - size, err := m.LivenessProbe.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.VolumeMounts) > 0 { - for iNdEx := len(m.VolumeMounts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeMounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - { - size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - if len(m.Env) > 0 { - for iNdEx := len(m.Env) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Env[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i -= len(m.WorkingDir) - copy(dAtA[i:], m.WorkingDir) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.WorkingDir))) - i-- - dAtA[i] = 0x2a - if len(m.Args) > 0 { - for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Args[iNdEx]) - copy(dAtA[i:], m.Args[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Args[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Command) > 0 { - for iNdEx := len(m.Command) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Command[iNdEx]) - copy(dAtA[i:], m.Command[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Command[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EphemeralContainers) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EphemeralContainers) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EphemeralContainers) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EphemeralContainers) > 0 { - for iNdEx := len(m.EphemeralContainers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EphemeralContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ReportingInstance) - copy(dAtA[i:], m.ReportingInstance) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingInstance))) - i-- - dAtA[i] = 0x7a - i -= len(m.ReportingController) - copy(dAtA[i:], m.ReportingController) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingController))) - i-- - dAtA[i] = 0x72 - if m.Related != nil { - { - size, err := m.Related.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - i -= len(m.Action) - copy(dAtA[i:], m.Action) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) - i-- - dAtA[i] = 0x62 - if m.Series != nil { - { - size, err := m.Series.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - { - size, err := m.EventTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x4a - i = encodeVarintGenerated(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x40 - { - size, err := m.LastTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size, err := m.FirstTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - { - size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x22 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - { - size, err := m.InvolvedObject.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EventList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EventSeries) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventSeries) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.State))) - i-- - dAtA[i] = 0x1a - { - size, err := m.LastObservedTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i = encodeVarintGenerated(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *EventSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Host) - copy(dAtA[i:], m.Host) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i-- - dAtA[i] = 0x12 - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Component))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ExecAction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExecAction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExecAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Command) > 0 { - for iNdEx := len(m.Command) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Command[iNdEx]) - copy(dAtA[i:], m.Command[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Command[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *FCVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FCVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FCVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WWIDs) > 0 { - for iNdEx := len(m.WWIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.WWIDs[iNdEx]) - copy(dAtA[i:], m.WWIDs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.WWIDs[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x1a - if m.Lun != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Lun)) - i-- - dAtA[i] = 0x10 - } - if len(m.TargetWWNs) > 0 { - for iNdEx := len(m.TargetWWNs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TargetWWNs[iNdEx]) - copy(dAtA[i:], m.TargetWWNs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetWWNs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *FlexPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FlexPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlexPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Options) > 0 { - keysForOptions := make([]string, 0, len(m.Options)) - for k := range m.Options { - keysForOptions = append(keysForOptions, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) - for iNdEx := len(keysForOptions) - 1; iNdEx >= 0; iNdEx-- { - v := m.Options[string(keysForOptions[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForOptions[iNdEx]) - copy(dAtA[i:], keysForOptions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForOptions[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *FlexVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FlexVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlexVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Options) > 0 { - keysForOptions := make([]string, 0, len(m.Options)) - for k := range m.Options { - keysForOptions = append(keysForOptions, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) - for iNdEx := len(keysForOptions) - 1; iNdEx >= 0; iNdEx-- { - v := m.Options[string(keysForOptions[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForOptions[iNdEx]) - copy(dAtA[i:], keysForOptions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForOptions[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *FlockerVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FlockerVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FlockerVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.DatasetUUID) - copy(dAtA[i:], m.DatasetUUID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DatasetUUID))) - i-- - dAtA[i] = 0x12 - i -= len(m.DatasetName) - copy(dAtA[i:], m.DatasetName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DatasetName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GCEPersistentDiskVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GCEPersistentDiskVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GCEPersistentDiskVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.Partition)) - i-- - dAtA[i] = 0x18 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.PDName) - copy(dAtA[i:], m.PDName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PDName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GitRepoVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GitRepoVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GitRepoVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Directory) - copy(dAtA[i:], m.Directory) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Directory))) - i-- - dAtA[i] = 0x1a - i -= len(m.Revision) - copy(dAtA[i:], m.Revision) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Revision))) - i-- - dAtA[i] = 0x12 - i -= len(m.Repository) - copy(dAtA[i:], m.Repository) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Repository))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GlusterfsPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GlusterfsPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GlusterfsPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EndpointsNamespace != nil { - i -= len(*m.EndpointsNamespace) - copy(dAtA[i:], *m.EndpointsNamespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.EndpointsNamespace))) - i-- - dAtA[i] = 0x22 - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - i -= len(m.EndpointsName) - copy(dAtA[i:], m.EndpointsName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EndpointsName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GlusterfsVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GlusterfsVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GlusterfsVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - i -= len(m.EndpointsName) - copy(dAtA[i:], m.EndpointsName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.EndpointsName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HTTPGetAction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HTTPGetAction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HTTPGetAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.HTTPHeaders) > 0 { - for iNdEx := len(m.HTTPHeaders) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HTTPHeaders[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - i -= len(m.Scheme) - copy(dAtA[i:], m.Scheme) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scheme))) - i-- - dAtA[i] = 0x22 - i -= len(m.Host) - copy(dAtA[i:], m.Host) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i-- - dAtA[i] = 0x1a - { - size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HTTPHeader) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HTTPHeader) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HTTPHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Handler) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Handler) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Handler) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TCPSocket != nil { - { - size, err := m.TCPSocket.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.HTTPGet != nil { - { - size, err := m.HTTPGet.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Exec != nil { - { - size, err := m.Exec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *HostAlias) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostAlias) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostAlias) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hostnames) > 0 { - for iNdEx := len(m.Hostnames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Hostnames[iNdEx]) - copy(dAtA[i:], m.Hostnames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostnames[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.IP) - copy(dAtA[i:], m.IP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HostPathVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostPathVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostPathVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Type != nil { - i -= len(*m.Type) - copy(dAtA[i:], *m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Type))) - i-- - dAtA[i] = 0x12 - } - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ISCSIPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ISCSIPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ISCSIPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InitiatorName != nil { - i -= len(*m.InitiatorName) - copy(dAtA[i:], *m.InitiatorName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.InitiatorName))) - i-- - dAtA[i] = 0x62 - } - i-- - if m.SessionCHAPAuth { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - i-- - if m.DiscoveryCHAPAuth { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - if len(m.Portals) > 0 { - for iNdEx := len(m.Portals) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Portals[iNdEx]) - copy(dAtA[i:], m.Portals[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Portals[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x2a - i -= len(m.ISCSIInterface) - copy(dAtA[i:], m.ISCSIInterface) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ISCSIInterface))) - i-- - dAtA[i] = 0x22 - i = encodeVarintGenerated(dAtA, i, uint64(m.Lun)) - i-- - dAtA[i] = 0x18 - i -= len(m.IQN) - copy(dAtA[i:], m.IQN) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IQN))) - i-- - dAtA[i] = 0x12 - i -= len(m.TargetPortal) - copy(dAtA[i:], m.TargetPortal) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetPortal))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ISCSIVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ISCSIVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ISCSIVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InitiatorName != nil { - i -= len(*m.InitiatorName) - copy(dAtA[i:], *m.InitiatorName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.InitiatorName))) - i-- - dAtA[i] = 0x62 - } - i-- - if m.SessionCHAPAuth { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - i-- - if m.DiscoveryCHAPAuth { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - if len(m.Portals) > 0 { - for iNdEx := len(m.Portals) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Portals[iNdEx]) - copy(dAtA[i:], m.Portals[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Portals[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x2a - i -= len(m.ISCSIInterface) - copy(dAtA[i:], m.ISCSIInterface) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ISCSIInterface))) - i-- - dAtA[i] = 0x22 - i = encodeVarintGenerated(dAtA, i, uint64(m.Lun)) - i-- - dAtA[i] = 0x18 - i -= len(m.IQN) - copy(dAtA[i:], m.IQN) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IQN))) - i-- - dAtA[i] = 0x12 - i -= len(m.TargetPortal) - copy(dAtA[i:], m.TargetPortal) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetPortal))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *KeyToPath) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *KeyToPath) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *KeyToPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Mode != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Mode)) - i-- - dAtA[i] = 0x18 - } - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Lifecycle) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Lifecycle) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Lifecycle) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PreStop != nil { - { - size, err := m.PreStop.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PostStart != nil { - { - size, err := m.PostStart.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *LimitRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LimitRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LimitRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LimitRangeItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LimitRangeItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LimitRangeItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MaxLimitRequestRatio) > 0 { - keysForMaxLimitRequestRatio := make([]string, 0, len(m.MaxLimitRequestRatio)) - for k := range m.MaxLimitRequestRatio { - keysForMaxLimitRequestRatio = append(keysForMaxLimitRequestRatio, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMaxLimitRequestRatio) - for iNdEx := len(keysForMaxLimitRequestRatio) - 1; iNdEx >= 0; iNdEx-- { - v := m.MaxLimitRequestRatio[ResourceName(keysForMaxLimitRequestRatio[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForMaxLimitRequestRatio[iNdEx]) - copy(dAtA[i:], keysForMaxLimitRequestRatio[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMaxLimitRequestRatio[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x32 - } - } - if len(m.DefaultRequest) > 0 { - keysForDefaultRequest := make([]string, 0, len(m.DefaultRequest)) - for k := range m.DefaultRequest { - keysForDefaultRequest = append(keysForDefaultRequest, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForDefaultRequest) - for iNdEx := len(keysForDefaultRequest) - 1; iNdEx >= 0; iNdEx-- { - v := m.DefaultRequest[ResourceName(keysForDefaultRequest[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForDefaultRequest[iNdEx]) - copy(dAtA[i:], keysForDefaultRequest[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDefaultRequest[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Default) > 0 { - keysForDefault := make([]string, 0, len(m.Default)) - for k := range m.Default { - keysForDefault = append(keysForDefault, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForDefault) - for iNdEx := len(keysForDefault) - 1; iNdEx >= 0; iNdEx-- { - v := m.Default[ResourceName(keysForDefault[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForDefault[iNdEx]) - copy(dAtA[i:], keysForDefault[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDefault[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Min) > 0 { - keysForMin := make([]string, 0, len(m.Min)) - for k := range m.Min { - keysForMin = append(keysForMin, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMin) - for iNdEx := len(keysForMin) - 1; iNdEx >= 0; iNdEx-- { - v := m.Min[ResourceName(keysForMin[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForMin[iNdEx]) - copy(dAtA[i:], keysForMin[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMin[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Max) > 0 { - keysForMax := make([]string, 0, len(m.Max)) - for k := range m.Max { - keysForMax = append(keysForMax, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMax) - for iNdEx := len(keysForMax) - 1; iNdEx >= 0; iNdEx-- { - v := m.Max[ResourceName(keysForMax[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForMax[iNdEx]) - copy(dAtA[i:], keysForMax[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMax[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LimitRangeList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LimitRangeList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LimitRangeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LimitRangeSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LimitRangeSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LimitRangeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Limits) > 0 { - for iNdEx := len(m.Limits) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Limits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *List) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *List) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *List) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LoadBalancerIngress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoadBalancerIngress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadBalancerIngress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Hostname) - copy(dAtA[i:], m.Hostname) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) - i-- - dAtA[i] = 0x12 - i -= len(m.IP) - copy(dAtA[i:], m.IP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LoadBalancerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LoadBalancerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LoadBalancerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ingress) > 0 { - for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *LocalObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LocalObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LocalObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LocalVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LocalVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LocalVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FSType != nil { - i -= len(*m.FSType) - copy(dAtA[i:], *m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FSType))) - i-- - dAtA[i] = 0x12 - } - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NFSVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NFSVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NFSVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - i -= len(m.Server) - copy(dAtA[i:], m.Server) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Server))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Namespace) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Namespace) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Namespace) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NamespaceCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamespaceCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NamespaceCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x32 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NamespaceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamespaceList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NamespaceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NamespaceSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamespaceSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Finalizers) > 0 { - for iNdEx := len(m.Finalizers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Finalizers[iNdEx]) - copy(dAtA[i:], m.Finalizers[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Finalizers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NamespaceStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NamespaceStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NamespaceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Node) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Node) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeAddress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeAddress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeAffinity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeAffinity) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeAffinity) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { - for iNdEx := len(m.PreferredDuringSchedulingIgnoredDuringExecution) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PreferredDuringSchedulingIgnoredDuringExecution[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.RequiredDuringSchedulingIgnoredDuringExecution != nil { - { - size, err := m.RequiredDuringSchedulingIgnoredDuringExecution.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NodeCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x32 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.LastHeartbeatTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeConfigSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeConfigSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeConfigSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ConfigMap != nil { - { - size, err := m.ConfigMap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *NodeConfigStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeConfigStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeConfigStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Error) - copy(dAtA[i:], m.Error) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) - i-- - dAtA[i] = 0x22 - if m.LastKnownGood != nil { - { - size, err := m.LastKnownGood.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Active != nil { - { - size, err := m.Active.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Assigned != nil { - { - size, err := m.Assigned.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NodeDaemonEndpoints) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeDaemonEndpoints) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeDaemonEndpoints) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.KubeletEndpoint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeProxyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeProxyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeProxyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeResources) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeResources) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Capacity) > 0 { - keysForCapacity := make([]string, 0, len(m.Capacity)) - for k := range m.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - for iNdEx := len(keysForCapacity) - 1; iNdEx >= 0; iNdEx-- { - v := m.Capacity[ResourceName(keysForCapacity[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForCapacity[iNdEx]) - copy(dAtA[i:], keysForCapacity[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCapacity[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NodeSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeSelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NodeSelectorTerms) > 0 { - for iNdEx := len(m.NodeSelectorTerms) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NodeSelectorTerms[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NodeSelectorRequirement) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeSelectorRequirement) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Values[iNdEx]) - copy(dAtA[i:], m.Values[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Values[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeSelectorTerm) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeSelectorTerm) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeSelectorTerm) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MatchFields) > 0 { - for iNdEx := len(m.MatchFields) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchFields[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.MatchExpressions) > 0 { - for iNdEx := len(m.MatchExpressions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchExpressions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NodeSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodCIDRs) > 0 { - for iNdEx := len(m.PodCIDRs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PodCIDRs[iNdEx]) - copy(dAtA[i:], m.PodCIDRs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodCIDRs[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - if m.ConfigSource != nil { - { - size, err := m.ConfigSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.Taints) > 0 { - for iNdEx := len(m.Taints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Taints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - i-- - if m.Unschedulable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i -= len(m.ProviderID) - copy(dAtA[i:], m.ProviderID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProviderID))) - i-- - dAtA[i] = 0x1a - i -= len(m.DoNotUse_ExternalID) - copy(dAtA[i:], m.DoNotUse_ExternalID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DoNotUse_ExternalID))) - i-- - dAtA[i] = 0x12 - i -= len(m.PodCIDR) - copy(dAtA[i:], m.PodCIDR) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodCIDR))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NodeStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Config != nil { - { - size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if len(m.VolumesAttached) > 0 { - for iNdEx := len(m.VolumesAttached) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumesAttached[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if len(m.VolumesInUse) > 0 { - for iNdEx := len(m.VolumesInUse) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.VolumesInUse[iNdEx]) - copy(dAtA[i:], m.VolumesInUse[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumesInUse[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - if len(m.Images) > 0 { - for iNdEx := len(m.Images) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Images[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - { - size, err := m.NodeInfo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size, err := m.DaemonEndpoints.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - if len(m.Addresses) > 0 { - for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Addresses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0x1a - if len(m.Allocatable) > 0 { - keysForAllocatable := make([]string, 0, len(m.Allocatable)) - for k := range m.Allocatable { - keysForAllocatable = append(keysForAllocatable, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatable) - for iNdEx := len(keysForAllocatable) - 1; iNdEx >= 0; iNdEx-- { - v := m.Allocatable[ResourceName(keysForAllocatable[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForAllocatable[iNdEx]) - copy(dAtA[i:], keysForAllocatable[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAllocatable[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Capacity) > 0 { - keysForCapacity := make([]string, 0, len(m.Capacity)) - for k := range m.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - for iNdEx := len(keysForCapacity) - 1; iNdEx >= 0; iNdEx-- { - v := m.Capacity[ResourceName(keysForCapacity[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForCapacity[iNdEx]) - copy(dAtA[i:], keysForCapacity[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCapacity[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NodeSystemInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NodeSystemInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NodeSystemInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Architecture) - copy(dAtA[i:], m.Architecture) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Architecture))) - i-- - dAtA[i] = 0x52 - i -= len(m.OperatingSystem) - copy(dAtA[i:], m.OperatingSystem) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.OperatingSystem))) - i-- - dAtA[i] = 0x4a - i -= len(m.KubeProxyVersion) - copy(dAtA[i:], m.KubeProxyVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.KubeProxyVersion))) - i-- - dAtA[i] = 0x42 - i -= len(m.KubeletVersion) - copy(dAtA[i:], m.KubeletVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.KubeletVersion))) - i-- - dAtA[i] = 0x3a - i -= len(m.ContainerRuntimeVersion) - copy(dAtA[i:], m.ContainerRuntimeVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerRuntimeVersion))) - i-- - dAtA[i] = 0x32 - i -= len(m.OSImage) - copy(dAtA[i:], m.OSImage) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.OSImage))) - i-- - dAtA[i] = 0x2a - i -= len(m.KernelVersion) - copy(dAtA[i:], m.KernelVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.KernelVersion))) - i-- - dAtA[i] = 0x22 - i -= len(m.BootID) - copy(dAtA[i:], m.BootID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.BootID))) - i-- - dAtA[i] = 0x1a - i -= len(m.SystemUUID) - copy(dAtA[i:], m.SystemUUID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SystemUUID))) - i-- - dAtA[i] = 0x12 - i -= len(m.MachineID) - copy(dAtA[i:], m.MachineID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MachineID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectFieldSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectFieldSelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectFieldSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.FieldPath) - copy(dAtA[i:], m.FieldPath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldPath))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.FieldPath) - copy(dAtA[i:], m.FieldPath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldPath))) - i-- - dAtA[i] = 0x3a - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x32 - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x2a - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x22 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeClaim) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeClaim) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeClaimCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeClaimCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeClaimCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x32 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.LastProbeTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeClaimList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeClaimList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeClaimList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeClaimSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeClaimSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeClaimSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DataSource != nil { - { - size, err := m.DataSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.VolumeMode != nil { - i -= len(*m.VolumeMode) - copy(dAtA[i:], *m.VolumeMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeMode))) - i-- - dAtA[i] = 0x32 - } - if m.StorageClassName != nil { - i -= len(*m.StorageClassName) - copy(dAtA[i:], *m.StorageClassName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.StorageClassName))) - i-- - dAtA[i] = 0x2a - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i -= len(m.VolumeName) - copy(dAtA[i:], m.VolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeName))) - i-- - dAtA[i] = 0x1a - { - size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.AccessModes) > 0 { - for iNdEx := len(m.AccessModes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AccessModes[iNdEx]) - copy(dAtA[i:], m.AccessModes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AccessModes[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeClaimStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeClaimStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.Capacity) > 0 { - keysForCapacity := make([]string, 0, len(m.Capacity)) - for k := range m.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - for iNdEx := len(keysForCapacity) - 1; iNdEx >= 0; iNdEx-- { - v := m.Capacity[ResourceName(keysForCapacity[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForCapacity[iNdEx]) - copy(dAtA[i:], keysForCapacity[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCapacity[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - if len(m.AccessModes) > 0 { - for iNdEx := len(m.AccessModes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AccessModes[iNdEx]) - copy(dAtA[i:], m.AccessModes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AccessModes[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeClaimVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeClaimVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeClaimVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.ClaimName) - copy(dAtA[i:], m.ClaimName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClaimName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CSI != nil { - { - size, err := m.CSI.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if m.StorageOS != nil { - { - size, err := m.StorageOS.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - if m.Local != nil { - { - size, err := m.Local.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - if m.ScaleIO != nil { - { - size, err := m.ScaleIO.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if m.PortworxVolume != nil { - { - size, err := m.PortworxVolume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if m.PhotonPersistentDisk != nil { - { - size, err := m.PhotonPersistentDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if m.AzureDisk != nil { - { - size, err := m.AzureDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.Quobyte != nil { - { - size, err := m.Quobyte.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if m.VsphereVolume != nil { - { - size, err := m.VsphereVolume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.AzureFile != nil { - { - size, err := m.AzureFile.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.FlexVolume != nil { - { - size, err := m.FlexVolume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.Flocker != nil { - { - size, err := m.Flocker.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.FC != nil { - { - size, err := m.FC.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.CephFS != nil { - { - size, err := m.CephFS.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.Cinder != nil { - { - size, err := m.Cinder.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.ISCSI != nil { - { - size, err := m.ISCSI.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.RBD != nil { - { - size, err := m.RBD.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.NFS != nil { - { - size, err := m.NFS.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.Glusterfs != nil { - { - size, err := m.Glusterfs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.HostPath != nil { - { - size, err := m.HostPath.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.AWSElasticBlockStore != nil { - { - size, err := m.AWSElasticBlockStore.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.GCEPersistentDisk != nil { - { - size, err := m.GCEPersistentDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NodeAffinity != nil { - { - size, err := m.NodeAffinity.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.VolumeMode != nil { - i -= len(*m.VolumeMode) - copy(dAtA[i:], *m.VolumeMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeMode))) - i-- - dAtA[i] = 0x42 - } - if len(m.MountOptions) > 0 { - for iNdEx := len(m.MountOptions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.MountOptions[iNdEx]) - copy(dAtA[i:], m.MountOptions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MountOptions[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - i -= len(m.StorageClassName) - copy(dAtA[i:], m.StorageClassName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageClassName))) - i-- - dAtA[i] = 0x32 - i -= len(m.PersistentVolumeReclaimPolicy) - copy(dAtA[i:], m.PersistentVolumeReclaimPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PersistentVolumeReclaimPolicy))) - i-- - dAtA[i] = 0x2a - if m.ClaimRef != nil { - { - size, err := m.ClaimRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.AccessModes) > 0 { - for iNdEx := len(m.AccessModes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AccessModes[iNdEx]) - copy(dAtA[i:], m.AccessModes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AccessModes[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - { - size, err := m.PersistentVolumeSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Capacity) > 0 { - keysForCapacity := make([]string, 0, len(m.Capacity)) - for k := range m.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - for iNdEx := len(keysForCapacity) - 1; iNdEx >= 0; iNdEx-- { - v := m.Capacity[ResourceName(keysForCapacity[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForCapacity[iNdEx]) - copy(dAtA[i:], keysForCapacity[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForCapacity[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PersistentVolumeStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersistentVolumeStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersistentVolumeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PhotonPersistentDiskVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PhotonPersistentDiskVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PhotonPersistentDiskVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.PdID) - copy(dAtA[i:], m.PdID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PdID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Pod) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Pod) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Pod) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodAffinity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodAffinity) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodAffinity) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { - for iNdEx := len(m.PreferredDuringSchedulingIgnoredDuringExecution) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PreferredDuringSchedulingIgnoredDuringExecution[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { - for iNdEx := len(m.RequiredDuringSchedulingIgnoredDuringExecution) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RequiredDuringSchedulingIgnoredDuringExecution[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PodAffinityTerm) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodAffinityTerm) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodAffinityTerm) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.TopologyKey) - copy(dAtA[i:], m.TopologyKey) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TopologyKey))) - i-- - dAtA[i] = 0x1a - if len(m.Namespaces) > 0 { - for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Namespaces[iNdEx]) - copy(dAtA[i:], m.Namespaces[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespaces[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if m.LabelSelector != nil { - { - size, err := m.LabelSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodAntiAffinity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodAntiAffinity) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodAntiAffinity) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { - for iNdEx := len(m.PreferredDuringSchedulingIgnoredDuringExecution) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PreferredDuringSchedulingIgnoredDuringExecution[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { - for iNdEx := len(m.RequiredDuringSchedulingIgnoredDuringExecution) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.RequiredDuringSchedulingIgnoredDuringExecution[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PodAttachOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodAttachOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodAttachOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Container) - copy(dAtA[i:], m.Container) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) - i-- - dAtA[i] = 0x2a - i-- - if m.TTY { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i-- - if m.Stderr { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i-- - if m.Stdout { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i-- - if m.Stdin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *PodCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x32 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.LastProbeTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodDNSConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodDNSConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodDNSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Options) > 0 { - for iNdEx := len(m.Options) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Options[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Searches) > 0 { - for iNdEx := len(m.Searches) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Searches[iNdEx]) - copy(dAtA[i:], m.Searches[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Searches[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Nameservers) > 0 { - for iNdEx := len(m.Nameservers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Nameservers[iNdEx]) - copy(dAtA[i:], m.Nameservers[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Nameservers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PodDNSConfigOption) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodDNSConfigOption) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodDNSConfigOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != nil { - i -= len(*m.Value) - copy(dAtA[i:], *m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Value))) - i-- - dAtA[i] = 0x12 - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodExecOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodExecOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodExecOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Command) > 0 { - for iNdEx := len(m.Command) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Command[iNdEx]) - copy(dAtA[i:], m.Command[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Command[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - i -= len(m.Container) - copy(dAtA[i:], m.Container) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) - i-- - dAtA[i] = 0x2a - i-- - if m.TTY { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i-- - if m.Stderr { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i-- - if m.Stdout { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i-- - if m.Stdin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *PodIP) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodIP) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodIP) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.IP) - copy(dAtA[i:], m.IP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IP))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodLogOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodLogOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodLogOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LimitBytes != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.LimitBytes)) - i-- - dAtA[i] = 0x40 - } - if m.TailLines != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TailLines)) - i-- - dAtA[i] = 0x38 - } - i-- - if m.Timestamps { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - if m.SinceTime != nil { - { - size, err := m.SinceTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.SinceSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.SinceSeconds)) - i-- - dAtA[i] = 0x20 - } - i-- - if m.Previous { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i-- - if m.Follow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.Container) - copy(dAtA[i:], m.Container) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodPortForwardOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodPortForwardOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodPortForwardOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - i = encodeVarintGenerated(dAtA, i, uint64(m.Ports[iNdEx])) - i-- - dAtA[i] = 0x8 - } - } - return len(dAtA) - i, nil -} - -func (m *PodProxyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodProxyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodProxyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodReadinessGate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodReadinessGate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodReadinessGate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ConditionType) - copy(dAtA[i:], m.ConditionType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConditionType))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodSecurityContext) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WindowsOptions != nil { - { - size, err := m.WindowsOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if len(m.Sysctls) > 0 { - for iNdEx := len(m.Sysctls) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Sysctls[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if m.RunAsGroup != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RunAsGroup)) - i-- - dAtA[i] = 0x30 - } - if m.FSGroup != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.FSGroup)) - i-- - dAtA[i] = 0x28 - } - if len(m.SupplementalGroups) > 0 { - for iNdEx := len(m.SupplementalGroups) - 1; iNdEx >= 0; iNdEx-- { - i = encodeVarintGenerated(dAtA, i, uint64(m.SupplementalGroups[iNdEx])) - i-- - dAtA[i] = 0x20 - } - } - if m.RunAsNonRoot != nil { - i-- - if *m.RunAsNonRoot { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.RunAsUser != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RunAsUser)) - i-- - dAtA[i] = 0x10 - } - if m.SELinuxOptions != nil { - { - size, err := m.SELinuxOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodSignature) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSignature) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PodController != nil { - { - size, err := m.PodController.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EphemeralContainers) > 0 { - for iNdEx := len(m.EphemeralContainers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EphemeralContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x92 - } - } - if len(m.TopologySpreadConstraints) > 0 { - for iNdEx := len(m.TopologySpreadConstraints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TopologySpreadConstraints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x8a - } - } - if len(m.Overhead) > 0 { - keysForOverhead := make([]string, 0, len(m.Overhead)) - for k := range m.Overhead { - keysForOverhead = append(keysForOverhead, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForOverhead) - for iNdEx := len(keysForOverhead) - 1; iNdEx >= 0; iNdEx-- { - v := m.Overhead[ResourceName(keysForOverhead[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForOverhead[iNdEx]) - copy(dAtA[i:], keysForOverhead[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForOverhead[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x82 - } - } - if m.PreemptionPolicy != nil { - i -= len(*m.PreemptionPolicy) - copy(dAtA[i:], *m.PreemptionPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xfa - } - if m.EnableServiceLinks != nil { - i-- - if *m.EnableServiceLinks { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xf0 - } - if m.RuntimeClassName != nil { - i -= len(*m.RuntimeClassName) - copy(dAtA[i:], *m.RuntimeClassName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.RuntimeClassName))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xea - } - if len(m.ReadinessGates) > 0 { - for iNdEx := len(m.ReadinessGates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReadinessGates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 - } - } - if m.ShareProcessNamespace != nil { - i-- - if *m.ShareProcessNamespace { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd8 - } - if m.DNSConfig != nil { - { - size, err := m.DNSConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 - } - if m.Priority != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Priority)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc8 - } - i -= len(m.PriorityClassName) - copy(dAtA[i:], m.PriorityClassName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PriorityClassName))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - if len(m.HostAliases) > 0 { - for iNdEx := len(m.HostAliases) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostAliases[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - } - if len(m.Tolerations) > 0 { - for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - } - if m.AutomountServiceAccountToken != nil { - i-- - if *m.AutomountServiceAccountToken { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa8 - } - if len(m.InitContainers) > 0 { - for iNdEx := len(m.InitContainers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.InitContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - } - i -= len(m.SchedulerName) - copy(dAtA[i:], m.SchedulerName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SchedulerName))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - if m.Affinity != nil { - { - size, err := m.Affinity.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - i -= len(m.Subdomain) - copy(dAtA[i:], m.Subdomain) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subdomain))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - i -= len(m.Hostname) - copy(dAtA[i:], m.Hostname) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - if len(m.ImagePullSecrets) > 0 { - for iNdEx := len(m.ImagePullSecrets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ImagePullSecrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - } - if m.SecurityContext != nil { - { - size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - i-- - if m.HostIPC { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - i-- - if m.HostPID { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - i-- - if m.HostNetwork { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x52 - i -= len(m.DeprecatedServiceAccount) - copy(dAtA[i:], m.DeprecatedServiceAccount) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DeprecatedServiceAccount))) - i-- - dAtA[i] = 0x4a - i -= len(m.ServiceAccountName) - copy(dAtA[i:], m.ServiceAccountName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) - i-- - dAtA[i] = 0x42 - if len(m.NodeSelector) > 0 { - keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) - for k := range m.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.NodeSelector[string(keysForNodeSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForNodeSelector[iNdEx]) - copy(dAtA[i:], keysForNodeSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - i -= len(m.DNSPolicy) - copy(dAtA[i:], m.DNSPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DNSPolicy))) - i-- - dAtA[i] = 0x32 - if m.ActiveDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ActiveDeadlineSeconds)) - i-- - dAtA[i] = 0x28 - } - if m.TerminationGracePeriodSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TerminationGracePeriodSeconds)) - i-- - dAtA[i] = 0x20 - } - i -= len(m.RestartPolicy) - copy(dAtA[i:], m.RestartPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RestartPolicy))) - i-- - dAtA[i] = 0x1a - if len(m.Containers) > 0 { - for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PodStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EphemeralContainerStatuses) > 0 { - for iNdEx := len(m.EphemeralContainerStatuses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EphemeralContainerStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - } - if len(m.PodIPs) > 0 { - for iNdEx := len(m.PodIPs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PodIPs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - } - i -= len(m.NominatedNodeName) - copy(dAtA[i:], m.NominatedNodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NominatedNodeName))) - i-- - dAtA[i] = 0x5a - if len(m.InitContainerStatuses) > 0 { - for iNdEx := len(m.InitContainerStatuses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.InitContainerStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - i -= len(m.QOSClass) - copy(dAtA[i:], m.QOSClass) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.QOSClass))) - i-- - dAtA[i] = 0x4a - if len(m.ContainerStatuses) > 0 { - for iNdEx := len(m.ContainerStatuses) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ContainerStatuses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - if m.StartTime != nil { - { - size, err := m.StartTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - i -= len(m.PodIP) - copy(dAtA[i:], m.PodIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodIP))) - i-- - dAtA[i] = 0x32 - i -= len(m.HostIP) - copy(dAtA[i:], m.HostIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.HostIP))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodStatusResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodStatusResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodStatusResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodTemplate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodTemplateList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodTemplateList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodTemplateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodTemplateSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodTemplateSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PortworxVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PortworxVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PortworxVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumeID) - copy(dAtA[i:], m.VolumeID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeID))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Preconditions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Preconditions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Preconditions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.UID != nil { - i -= len(*m.UID) - copy(dAtA[i:], *m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.UID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PreferAvoidPodsEntry) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PreferAvoidPodsEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PreferAvoidPodsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x22 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x1a - { - size, err := m.EvictionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.PodSignature.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PreferredSchedulingTerm) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PreferredSchedulingTerm) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PreferredSchedulingTerm) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Preference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i = encodeVarintGenerated(dAtA, i, uint64(m.Weight)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *Probe) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Probe) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Probe) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.FailureThreshold)) - i-- - dAtA[i] = 0x30 - i = encodeVarintGenerated(dAtA, i, uint64(m.SuccessThreshold)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.PeriodSeconds)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.TimeoutSeconds)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.InitialDelaySeconds)) - i-- - dAtA[i] = 0x10 - { - size, err := m.Handler.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ProjectedVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProjectedVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ProjectedVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DefaultMode != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.DefaultMode)) - i-- - dAtA[i] = 0x10 - } - if len(m.Sources) > 0 { - for iNdEx := len(m.Sources) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Sources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QuobyteVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QuobyteVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QuobyteVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Tenant) - copy(dAtA[i:], m.Tenant) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tenant))) - i-- - dAtA[i] = 0x32 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x2a - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0x22 - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.Volume) - copy(dAtA[i:], m.Volume) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Volume))) - i-- - dAtA[i] = 0x12 - i -= len(m.Registry) - copy(dAtA[i:], m.Registry) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Registry))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RBDPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RBDPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RBDPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - i -= len(m.Keyring) - copy(dAtA[i:], m.Keyring) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Keyring))) - i-- - dAtA[i] = 0x32 - i -= len(m.RadosUser) - copy(dAtA[i:], m.RadosUser) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RadosUser))) - i-- - dAtA[i] = 0x2a - i -= len(m.RBDPool) - copy(dAtA[i:], m.RBDPool) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RBDPool))) - i-- - dAtA[i] = 0x22 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x1a - i -= len(m.RBDImage) - copy(dAtA[i:], m.RBDImage) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RBDImage))) - i-- - dAtA[i] = 0x12 - if len(m.CephMonitors) > 0 { - for iNdEx := len(m.CephMonitors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.CephMonitors[iNdEx]) - copy(dAtA[i:], m.CephMonitors[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CephMonitors[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RBDVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RBDVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RBDVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - i -= len(m.Keyring) - copy(dAtA[i:], m.Keyring) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Keyring))) - i-- - dAtA[i] = 0x32 - i -= len(m.RadosUser) - copy(dAtA[i:], m.RadosUser) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RadosUser))) - i-- - dAtA[i] = 0x2a - i -= len(m.RBDPool) - copy(dAtA[i:], m.RBDPool) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RBDPool))) - i-- - dAtA[i] = 0x22 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x1a - i -= len(m.RBDImage) - copy(dAtA[i:], m.RBDImage) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RBDImage))) - i-- - dAtA[i] = 0x12 - if len(m.CephMonitors) > 0 { - for iNdEx := len(m.CephMonitors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.CephMonitors[iNdEx]) - copy(dAtA[i:], m.CephMonitors[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CephMonitors[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RangeAllocation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RangeAllocation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RangeAllocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Data != nil { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x1a - } - i -= len(m.Range) - copy(dAtA[i:], m.Range) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Range))) - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicationController) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationController) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationController) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicationControllerCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationControllerCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationControllerCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicationControllerList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationControllerList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationControllerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicationControllerSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationControllerSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationControllerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - if m.Template != nil { - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Selector) > 0 { - keysForSelector := make([]string, 0, len(m.Selector)) - for k := range m.Selector { - keysForSelector = append(keysForSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.Selector[string(keysForSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForSelector[iNdEx]) - copy(dAtA[i:], keysForSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReplicationControllerStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationControllerStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationControllerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.FullyLabeledReplicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ResourceFieldSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceFieldSelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceFieldSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Divisor.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Resource) - copy(dAtA[i:], m.Resource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i-- - dAtA[i] = 0x12 - i -= len(m.ContainerName) - copy(dAtA[i:], m.ContainerName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContainerName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceQuota) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceQuota) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceQuota) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceQuotaList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceQuotaList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceQuotaList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ResourceQuotaSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceQuotaSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceQuotaSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ScopeSelector != nil { - { - size, err := m.ScopeSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Scopes) > 0 { - for iNdEx := len(m.Scopes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Scopes[iNdEx]) - copy(dAtA[i:], m.Scopes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scopes[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Hard) > 0 { - keysForHard := make([]string, 0, len(m.Hard)) - for k := range m.Hard { - keysForHard = append(keysForHard, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForHard) - for iNdEx := len(keysForHard) - 1; iNdEx >= 0; iNdEx-- { - v := m.Hard[ResourceName(keysForHard[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForHard[iNdEx]) - copy(dAtA[i:], keysForHard[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForHard[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ResourceQuotaStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceQuotaStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceQuotaStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Used) > 0 { - keysForUsed := make([]string, 0, len(m.Used)) - for k := range m.Used { - keysForUsed = append(keysForUsed, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUsed) - for iNdEx := len(keysForUsed) - 1; iNdEx >= 0; iNdEx-- { - v := m.Used[ResourceName(keysForUsed[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForUsed[iNdEx]) - copy(dAtA[i:], keysForUsed[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForUsed[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Hard) > 0 { - keysForHard := make([]string, 0, len(m.Hard)) - for k := range m.Hard { - keysForHard = append(keysForHard, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForHard) - for iNdEx := len(keysForHard) - 1; iNdEx >= 0; iNdEx-- { - v := m.Hard[ResourceName(keysForHard[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForHard[iNdEx]) - copy(dAtA[i:], keysForHard[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForHard[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ResourceRequirements) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResourceRequirements) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResourceRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Requests) > 0 { - keysForRequests := make([]string, 0, len(m.Requests)) - for k := range m.Requests { - keysForRequests = append(keysForRequests, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForRequests) - for iNdEx := len(keysForRequests) - 1; iNdEx >= 0; iNdEx-- { - v := m.Requests[ResourceName(keysForRequests[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForRequests[iNdEx]) - copy(dAtA[i:], keysForRequests[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForRequests[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Limits) > 0 { - keysForLimits := make([]string, 0, len(m.Limits)) - for k := range m.Limits { - keysForLimits = append(keysForLimits, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLimits) - for iNdEx := len(keysForLimits) - 1; iNdEx >= 0; iNdEx-- { - v := m.Limits[ResourceName(keysForLimits[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForLimits[iNdEx]) - copy(dAtA[i:], keysForLimits[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLimits[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SELinuxOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SELinuxOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SELinuxOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Level) - copy(dAtA[i:], m.Level) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Level))) - i-- - dAtA[i] = 0x22 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x1a - i -= len(m.Role) - copy(dAtA[i:], m.Role) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Role))) - i-- - dAtA[i] = 0x12 - i -= len(m.User) - copy(dAtA[i:], m.User) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.User))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScaleIOPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleIOPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleIOPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x4a - i -= len(m.VolumeName) - copy(dAtA[i:], m.VolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeName))) - i-- - dAtA[i] = 0x42 - i -= len(m.StorageMode) - copy(dAtA[i:], m.StorageMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageMode))) - i-- - dAtA[i] = 0x3a - i -= len(m.StoragePool) - copy(dAtA[i:], m.StoragePool) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StoragePool))) - i-- - dAtA[i] = 0x32 - i -= len(m.ProtectionDomain) - copy(dAtA[i:], m.ProtectionDomain) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProtectionDomain))) - i-- - dAtA[i] = 0x2a - i-- - if m.SSLEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.System) - copy(dAtA[i:], m.System) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.System))) - i-- - dAtA[i] = 0x12 - i -= len(m.Gateway) - copy(dAtA[i:], m.Gateway) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Gateway))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScaleIOVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleIOVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleIOVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x50 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x4a - i -= len(m.VolumeName) - copy(dAtA[i:], m.VolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeName))) - i-- - dAtA[i] = 0x42 - i -= len(m.StorageMode) - copy(dAtA[i:], m.StorageMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageMode))) - i-- - dAtA[i] = 0x3a - i -= len(m.StoragePool) - copy(dAtA[i:], m.StoragePool) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StoragePool))) - i-- - dAtA[i] = 0x32 - i -= len(m.ProtectionDomain) - copy(dAtA[i:], m.ProtectionDomain) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProtectionDomain))) - i-- - dAtA[i] = 0x2a - i-- - if m.SSLEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.System) - copy(dAtA[i:], m.System) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.System))) - i-- - dAtA[i] = 0x12 - i -= len(m.Gateway) - copy(dAtA[i:], m.Gateway) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Gateway))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScopeSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScopeSelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScopeSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MatchExpressions) > 0 { - for iNdEx := len(m.MatchExpressions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchExpressions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ScopedResourceSelectorRequirement) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScopedResourceSelectorRequirement) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScopedResourceSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Values[iNdEx]) - copy(dAtA[i:], m.Values[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Values[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - i -= len(m.ScopeName) - copy(dAtA[i:], m.ScopeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ScopeName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Secret) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Secret) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Secret) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.StringData) > 0 { - keysForStringData := make([]string, 0, len(m.StringData)) - for k := range m.StringData { - keysForStringData = append(keysForStringData, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForStringData) - for iNdEx := len(keysForStringData) - 1; iNdEx >= 0; iNdEx-- { - v := m.StringData[string(keysForStringData[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForStringData[iNdEx]) - copy(dAtA[i:], keysForStringData[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForStringData[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x1a - if len(m.Data) > 0 { - keysForData := make([]string, 0, len(m.Data)) - for k := range m.Data { - keysForData = append(keysForData, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - for iNdEx := len(keysForData) - 1; iNdEx >= 0; iNdEx-- { - v := m.Data[string(keysForData[iNdEx])] - baseI := i - if v != nil { - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - } - i -= len(keysForData[iNdEx]) - copy(dAtA[i:], keysForData[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForData[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretEnvSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretEnvSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretEnvSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretKeySelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretKeySelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretKeySelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretProjection) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretProjection) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.LocalObjectReference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecretVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecretVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecretVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Optional != nil { - i-- - if *m.Optional { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.DefaultMode != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.DefaultMode)) - i-- - dAtA[i] = 0x18 - } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.SecretName) - copy(dAtA[i:], m.SecretName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SecurityContext) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SecurityContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SecurityContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.WindowsOptions != nil { - { - size, err := m.WindowsOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.ProcMount != nil { - i -= len(*m.ProcMount) - copy(dAtA[i:], *m.ProcMount) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ProcMount))) - i-- - dAtA[i] = 0x4a - } - if m.RunAsGroup != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RunAsGroup)) - i-- - dAtA[i] = 0x40 - } - if m.AllowPrivilegeEscalation != nil { - i-- - if *m.AllowPrivilegeEscalation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.ReadOnlyRootFilesystem != nil { - i-- - if *m.ReadOnlyRootFilesystem { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.RunAsNonRoot != nil { - i-- - if *m.RunAsNonRoot { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.RunAsUser != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RunAsUser)) - i-- - dAtA[i] = 0x20 - } - if m.SELinuxOptions != nil { - { - size, err := m.SELinuxOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Privileged != nil { - i-- - if *m.Privileged { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.Capabilities != nil { - { - size, err := m.Capabilities.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SerializedReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SerializedReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SerializedReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Reference.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Service) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Service) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceAccount) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AutomountServiceAccountToken != nil { - i-- - if *m.AutomountServiceAccountToken { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.ImagePullSecrets) > 0 { - for iNdEx := len(m.ImagePullSecrets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ImagePullSecrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Secrets) > 0 { - for iNdEx := len(m.Secrets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Secrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceAccountList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceAccountList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceAccountList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceAccountTokenProjection) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceAccountTokenProjection) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceAccountTokenProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x1a - if m.ExpirationSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ExpirationSeconds)) - i-- - dAtA[i] = 0x10 - } - i -= len(m.Audience) - copy(dAtA[i:], m.Audience) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Audience))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServicePort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServicePort) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServicePort) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.NodePort)) - i-- - dAtA[i] = 0x28 - { - size, err := m.TargetPort.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) - i-- - dAtA[i] = 0x18 - i -= len(m.Protocol) - copy(dAtA[i:], m.Protocol) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Protocol))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceProxyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceProxyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceProxyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ServiceSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IPFamily != nil { - i -= len(*m.IPFamily) - copy(dAtA[i:], *m.IPFamily) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.IPFamily))) - i-- - dAtA[i] = 0x7a - } - if m.SessionAffinityConfig != nil { - { - size, err := m.SessionAffinityConfig.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - i-- - if m.PublishNotReadyAddresses { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - i = encodeVarintGenerated(dAtA, i, uint64(m.HealthCheckNodePort)) - i-- - dAtA[i] = 0x60 - i -= len(m.ExternalTrafficPolicy) - copy(dAtA[i:], m.ExternalTrafficPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExternalTrafficPolicy))) - i-- - dAtA[i] = 0x5a - i -= len(m.ExternalName) - copy(dAtA[i:], m.ExternalName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExternalName))) - i-- - dAtA[i] = 0x52 - if len(m.LoadBalancerSourceRanges) > 0 { - for iNdEx := len(m.LoadBalancerSourceRanges) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.LoadBalancerSourceRanges[iNdEx]) - copy(dAtA[i:], m.LoadBalancerSourceRanges[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LoadBalancerSourceRanges[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - i -= len(m.LoadBalancerIP) - copy(dAtA[i:], m.LoadBalancerIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LoadBalancerIP))) - i-- - dAtA[i] = 0x42 - i -= len(m.SessionAffinity) - copy(dAtA[i:], m.SessionAffinity) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SessionAffinity))) - i-- - dAtA[i] = 0x3a - if len(m.ExternalIPs) > 0 { - for iNdEx := len(m.ExternalIPs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ExternalIPs[iNdEx]) - copy(dAtA[i:], m.ExternalIPs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExternalIPs[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x22 - i -= len(m.ClusterIP) - copy(dAtA[i:], m.ClusterIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterIP))) - i-- - dAtA[i] = 0x1a - if len(m.Selector) > 0 { - keysForSelector := make([]string, 0, len(m.Selector)) - for k := range m.Selector { - keysForSelector = append(keysForSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.Selector[string(keysForSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForSelector[iNdEx]) - copy(dAtA[i:], keysForSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ServiceStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SessionAffinityConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SessionAffinityConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SessionAffinityConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ClientIP != nil { - { - size, err := m.ClientIP.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StorageOSPersistentVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StorageOSPersistentVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageOSPersistentVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x1a - i -= len(m.VolumeNamespace) - copy(dAtA[i:], m.VolumeNamespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeNamespace))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumeName) - copy(dAtA[i:], m.VolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StorageOSVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StorageOSVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageOSVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SecretRef != nil { - { - size, err := m.SecretRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x1a - i -= len(m.VolumeNamespace) - copy(dAtA[i:], m.VolumeNamespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeNamespace))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumeName) - copy(dAtA[i:], m.VolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Sysctl) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Sysctl) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Sysctl) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TCPSocketAction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TCPSocketAction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TCPSocketAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Host) - copy(dAtA[i:], m.Host) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Taint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Taint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Taint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TimeAdded != nil { - { - size, err := m.TimeAdded.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i -= len(m.Effect) - copy(dAtA[i:], m.Effect) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Effect))) - i-- - dAtA[i] = 0x1a - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Toleration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Toleration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Toleration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TolerationSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TolerationSeconds)) - i-- - dAtA[i] = 0x28 - } - i -= len(m.Effect) - copy(dAtA[i:], m.Effect) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Effect))) - i-- - dAtA[i] = 0x22 - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x1a - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TopologySelectorLabelRequirement) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TopologySelectorLabelRequirement) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TopologySelectorLabelRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Values[iNdEx]) - copy(dAtA[i:], m.Values[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Values[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TopologySelectorTerm) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TopologySelectorTerm) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TopologySelectorTerm) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MatchLabelExpressions) > 0 { - for iNdEx := len(m.MatchLabelExpressions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchLabelExpressions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *TopologySpreadConstraint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TopologySpreadConstraint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TopologySpreadConstraint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LabelSelector != nil { - { - size, err := m.LabelSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i -= len(m.WhenUnsatisfiable) - copy(dAtA[i:], m.WhenUnsatisfiable) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenUnsatisfiable))) - i-- - dAtA[i] = 0x1a - i -= len(m.TopologyKey) - copy(dAtA[i:], m.TopologyKey) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TopologyKey))) - i-- - dAtA[i] = 0x12 - i = encodeVarintGenerated(dAtA, i, uint64(m.MaxSkew)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *TypedLocalObjectReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TypedLocalObjectReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TypedLocalObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - if m.APIGroup != nil { - i -= len(*m.APIGroup) - copy(dAtA[i:], *m.APIGroup) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.APIGroup))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Volume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Volume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Volume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.VolumeSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeDevice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeDevice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.DevicePath) - copy(dAtA[i:], m.DevicePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DevicePath))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeMount) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeMount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeMount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.SubPathExpr) - copy(dAtA[i:], m.SubPathExpr) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubPathExpr))) - i-- - dAtA[i] = 0x32 - if m.MountPropagation != nil { - i -= len(*m.MountPropagation) - copy(dAtA[i:], *m.MountPropagation) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MountPropagation))) - i-- - dAtA[i] = 0x2a - } - i -= len(m.SubPath) - copy(dAtA[i:], m.SubPath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubPath))) - i-- - dAtA[i] = 0x22 - i -= len(m.MountPath) - copy(dAtA[i:], m.MountPath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MountPath))) - i-- - dAtA[i] = 0x1a - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeNodeAffinity) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeNodeAffinity) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeNodeAffinity) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Required != nil { - { - size, err := m.Required.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeProjection) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeProjection) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeProjection) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ServiceAccountToken != nil { - { - size, err := m.ServiceAccountToken.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.ConfigMap != nil { - { - size, err := m.ConfigMap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.DownwardAPI != nil { - { - size, err := m.DownwardAPI.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Secret != nil { - { - size, err := m.Secret.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CSI != nil { - { - size, err := m.CSI.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 - } - if m.StorageOS != nil { - { - size, err := m.StorageOS.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xda - } - if m.Projected != nil { - { - size, err := m.Projected.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 - } - if m.ScaleIO != nil { - { - size, err := m.ScaleIO.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } - if m.PortworxVolume != nil { - { - size, err := m.PortworxVolume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - } - if m.PhotonPersistentDisk != nil { - { - size, err := m.PhotonPersistentDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if m.AzureDisk != nil { - { - size, err := m.AzureDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if m.Quobyte != nil { - { - size, err := m.Quobyte.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - if m.VsphereVolume != nil { - { - size, err := m.VsphereVolume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - if m.ConfigMap != nil { - { - size, err := m.ConfigMap.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if m.AzureFile != nil { - { - size, err := m.AzureFile.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if m.FC != nil { - { - size, err := m.FC.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if m.DownwardAPI != nil { - { - size, err := m.DownwardAPI.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.Flocker != nil { - { - size, err := m.Flocker.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if m.CephFS != nil { - { - size, err := m.CephFS.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.Cinder != nil { - { - size, err := m.Cinder.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.FlexVolume != nil { - { - size, err := m.FlexVolume.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.RBD != nil { - { - size, err := m.RBD.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.PersistentVolumeClaim != nil { - { - size, err := m.PersistentVolumeClaim.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.Glusterfs != nil { - { - size, err := m.Glusterfs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.ISCSI != nil { - { - size, err := m.ISCSI.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.NFS != nil { - { - size, err := m.NFS.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Secret != nil { - { - size, err := m.Secret.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.GitRepo != nil { - { - size, err := m.GitRepo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.AWSElasticBlockStore != nil { - { - size, err := m.AWSElasticBlockStore.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.GCEPersistentDisk != nil { - { - size, err := m.GCEPersistentDisk.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.EmptyDir != nil { - { - size, err := m.EmptyDir.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.HostPath != nil { - { - size, err := m.HostPath.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VsphereVirtualDiskVolumeSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VsphereVirtualDiskVolumeSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VsphereVirtualDiskVolumeSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.StoragePolicyID) - copy(dAtA[i:], m.StoragePolicyID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StoragePolicyID))) - i-- - dAtA[i] = 0x22 - i -= len(m.StoragePolicyName) - copy(dAtA[i:], m.StoragePolicyName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StoragePolicyName))) - i-- - dAtA[i] = 0x1a - i -= len(m.FSType) - copy(dAtA[i:], m.FSType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FSType))) - i-- - dAtA[i] = 0x12 - i -= len(m.VolumePath) - copy(dAtA[i:], m.VolumePath) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumePath))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *WeightedPodAffinityTerm) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WeightedPodAffinityTerm) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WeightedPodAffinityTerm) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.PodAffinityTerm.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i = encodeVarintGenerated(dAtA, i, uint64(m.Weight)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *WindowsSecurityContextOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WindowsSecurityContextOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WindowsSecurityContextOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RunAsUserName != nil { - i -= len(*m.RunAsUserName) - copy(dAtA[i:], *m.RunAsUserName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.RunAsUserName))) - i-- - dAtA[i] = 0x1a - } - if m.GMSACredentialSpec != nil { - i -= len(*m.GMSACredentialSpec) - copy(dAtA[i:], *m.GMSACredentialSpec) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.GMSACredentialSpec))) - i-- - dAtA[i] = 0x12 - } - if m.GMSACredentialSpecName != nil { - i -= len(*m.GMSACredentialSpecName) - copy(dAtA[i:], *m.GMSACredentialSpecName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.GMSACredentialSpecName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AWSElasticBlockStoreVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Partition)) - n += 2 - return n -} - -func (m *Affinity) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NodeAffinity != nil { - l = m.NodeAffinity.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PodAffinity != nil { - l = m.PodAffinity.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PodAntiAffinity != nil { - l = m.PodAntiAffinity.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *AttachedVolume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DevicePath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AvoidPods) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PreferAvoidPods) > 0 { - for _, e := range m.PreferAvoidPods { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *AzureDiskVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DiskName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DataDiskURI) - n += 1 + l + sovGenerated(uint64(l)) - if m.CachingMode != nil { - l = len(*m.CachingMode) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.FSType != nil { - l = len(*m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ReadOnly != nil { - n += 2 - } - if m.Kind != nil { - l = len(*m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *AzureFilePersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SecretName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ShareName) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.SecretNamespace != nil { - l = len(*m.SecretNamespace) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *AzureFileVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SecretName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ShareName) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *Binding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Target.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CSIPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.VolumeHandle) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.VolumeAttributes) > 0 { - for k, v := range m.VolumeAttributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.ControllerPublishSecretRef != nil { - l = m.ControllerPublishSecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NodeStageSecretRef != nil { - l = m.NodeStageSecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NodePublishSecretRef != nil { - l = m.NodePublishSecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ControllerExpandSecretRef != nil { - l = m.ControllerExpandSecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *CSIVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - n += 1 + l + sovGenerated(uint64(l)) - if m.ReadOnly != nil { - n += 2 - } - if m.FSType != nil { - l = len(*m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.VolumeAttributes) > 0 { - for k, v := range m.VolumeAttributes { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.NodePublishSecretRef != nil { - l = m.NodePublishSecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Capabilities) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Add) > 0 { - for _, s := range m.Add { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Drop) > 0 { - for _, s := range m.Drop { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CephFSPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Monitors) > 0 { - for _, s := range m.Monitors { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SecretFile) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - return n -} - -func (m *CephFSVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Monitors) > 0 { - for _, s := range m.Monitors { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SecretFile) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - return n -} - -func (m *CinderPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *CinderVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ClientIPConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - return n -} - -func (m *ComponentCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Error) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ComponentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ComponentStatusList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ConfigMap) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Data) > 0 { - for k, v := range m.Data { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.BinaryData) > 0 { - for k, v := range m.BinaryData { - _ = k - _ = v - l = 0 - if v != nil { - l = 1 + len(v) + sovGenerated(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + l - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *ConfigMapEnvSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *ConfigMapKeySelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *ConfigMapList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ConfigMapNodeConfigSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.KubeletConfigKey) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ConfigMapProjection) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *ConfigMapVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DefaultMode != nil { - n += 1 + sovGenerated(uint64(*m.DefaultMode)) - } - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *Container) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Image) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.WorkingDir) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Resources.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.VolumeMounts) > 0 { - for _, e := range m.VolumeMounts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.LivenessProbe != nil { - l = m.LivenessProbe.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ReadinessProbe != nil { - l = m.ReadinessProbe.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Lifecycle != nil { - l = m.Lifecycle.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.TerminationMessagePath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ImagePullPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecurityContext != nil { - l = m.SecurityContext.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 3 - n += 3 - n += 3 - if len(m.EnvFrom) > 0 { - for _, e := range m.EnvFrom { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - l = len(m.TerminationMessagePolicy) - n += 2 + l + sovGenerated(uint64(l)) - if len(m.VolumeDevices) > 0 { - for _, e := range m.VolumeDevices { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.StartupProbe != nil { - l = m.StartupProbe.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ContainerImage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Names) > 0 { - for _, s := range m.Names { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.SizeBytes)) - return n -} - -func (m *ContainerPort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.HostPort)) - n += 1 + sovGenerated(uint64(m.ContainerPort)) - l = len(m.Protocol) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.HostIP) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ContainerState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Waiting != nil { - l = m.Waiting.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Running != nil { - l = m.Running.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Terminated != nil { - l = m.Terminated.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ContainerStateRunning) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.StartedAt.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ContainerStateTerminated) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ExitCode)) - n += 1 + sovGenerated(uint64(m.Signal)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.StartedAt.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.FinishedAt.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ContainerID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ContainerStateWaiting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ContainerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.State.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTerminationState.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 1 + sovGenerated(uint64(m.RestartCount)) - l = len(m.Image) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ImageID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ContainerID) - n += 1 + l + sovGenerated(uint64(l)) - if m.Started != nil { - n += 2 - } - return n -} - -func (m *DaemonEndpoint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Port)) - return n -} - -func (m *DownwardAPIProjection) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DownwardAPIVolumeFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - if m.FieldRef != nil { - l = m.FieldRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ResourceFieldRef != nil { - l = m.ResourceFieldRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Mode != nil { - n += 1 + sovGenerated(uint64(*m.Mode)) - } - return n -} - -func (m *DownwardAPIVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DefaultMode != nil { - n += 1 + sovGenerated(uint64(*m.DefaultMode)) - } - return n -} - -func (m *EmptyDirVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Medium) - n += 1 + l + sovGenerated(uint64(l)) - if m.SizeLimit != nil { - l = m.SizeLimit.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EndpointAddress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.IP) - n += 1 + l + sovGenerated(uint64(l)) - if m.TargetRef != nil { - l = m.TargetRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Hostname) - n += 1 + l + sovGenerated(uint64(l)) - if m.NodeName != nil { - l = len(*m.NodeName) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EndpointPort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Port)) - l = len(m.Protocol) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EndpointSubset) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Addresses) > 0 { - for _, e := range m.Addresses { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NotReadyAddresses) > 0 { - for _, e := range m.NotReadyAddresses { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Endpoints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subsets) > 0 { - for _, e := range m.Subsets { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *EndpointsList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *EnvFromSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Prefix) - n += 1 + l + sovGenerated(uint64(l)) - if m.ConfigMapRef != nil { - l = m.ConfigMapRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EnvVar) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - if m.ValueFrom != nil { - l = m.ValueFrom.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EnvVarSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.FieldRef != nil { - l = m.FieldRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ResourceFieldRef != nil { - l = m.ResourceFieldRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ConfigMapKeyRef != nil { - l = m.ConfigMapKeyRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.SecretKeyRef != nil { - l = m.SecretKeyRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EphemeralContainer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.EphemeralContainerCommon.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.TargetContainerName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EphemeralContainerCommon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Image) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.WorkingDir) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Resources.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.VolumeMounts) > 0 { - for _, e := range m.VolumeMounts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.LivenessProbe != nil { - l = m.LivenessProbe.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ReadinessProbe != nil { - l = m.ReadinessProbe.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Lifecycle != nil { - l = m.Lifecycle.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.TerminationMessagePath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ImagePullPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecurityContext != nil { - l = m.SecurityContext.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 3 - n += 3 - n += 3 - if len(m.EnvFrom) > 0 { - for _, e := range m.EnvFrom { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - l = len(m.TerminationMessagePolicy) - n += 2 + l + sovGenerated(uint64(l)) - if len(m.VolumeDevices) > 0 { - for _, e := range m.VolumeDevices { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.StartupProbe != nil { - l = m.StartupProbe.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EphemeralContainers) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.EphemeralContainers) > 0 { - for _, e := range m.EphemeralContainers { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Event) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.InvolvedObject.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Source.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.FirstTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Count)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.EventTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Series != nil { - l = m.Series.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Action) - n += 1 + l + sovGenerated(uint64(l)) - if m.Related != nil { - l = m.Related.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.ReportingController) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ReportingInstance) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EventList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *EventSeries) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Count)) - l = m.LastObservedTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.State) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *EventSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Component) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ExecAction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *FCVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TargetWWNs) > 0 { - for _, s := range m.TargetWWNs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Lun != nil { - n += 1 + sovGenerated(uint64(*m.Lun)) - } - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if len(m.WWIDs) > 0 { - for _, s := range m.WWIDs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *FlexPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if len(m.Options) > 0 { - for k, v := range m.Options { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *FlexVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if len(m.Options) > 0 { - for k, v := range m.Options { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *FlockerVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DatasetName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DatasetUUID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GCEPersistentDiskVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PDName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Partition)) - n += 2 - return n -} - -func (m *GitRepoVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Repository) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Revision) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Directory) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GlusterfsPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EndpointsName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.EndpointsNamespace != nil { - l = len(*m.EndpointsNamespace) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *GlusterfsVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EndpointsName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *HTTPGetAction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Port.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Scheme) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.HTTPHeaders) > 0 { - for _, e := range m.HTTPHeaders { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HTTPHeader) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Handler) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Exec != nil { - l = m.Exec.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.HTTPGet != nil { - l = m.HTTPGet.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TCPSocket != nil { - l = m.TCPSocket.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *HostAlias) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.IP) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Hostnames) > 0 { - for _, s := range m.Hostnames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HostPathVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - if m.Type != nil { - l = len(*m.Type) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ISCSIPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TargetPortal) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.IQN) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Lun)) - l = len(m.ISCSIInterface) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if len(m.Portals) > 0 { - for _, s := range m.Portals { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.InitiatorName != nil { - l = len(*m.InitiatorName) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ISCSIVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TargetPortal) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.IQN) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Lun)) - l = len(m.ISCSIInterface) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if len(m.Portals) > 0 { - for _, s := range m.Portals { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.InitiatorName != nil { - l = len(*m.InitiatorName) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *KeyToPath) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - if m.Mode != nil { - n += 1 + sovGenerated(uint64(*m.Mode)) - } - return n -} - -func (m *Lifecycle) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PostStart != nil { - l = m.PostStart.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PreStop != nil { - l = m.PreStop.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *LimitRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LimitRangeItem) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Max) > 0 { - for k, v := range m.Max { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Min) > 0 { - for k, v := range m.Min { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Default) > 0 { - for k, v := range m.Default { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.DefaultRequest) > 0 { - for k, v := range m.DefaultRequest { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.MaxLimitRequestRatio) > 0 { - for k, v := range m.MaxLimitRequestRatio { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *LimitRangeList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LimitRangeSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Limits) > 0 { - for _, e := range m.Limits { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *List) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LoadBalancerIngress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.IP) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Hostname) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LoadBalancerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LocalObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LocalVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - if m.FSType != nil { - l = len(*m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NFSVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Server) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *Namespace) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NamespaceCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NamespaceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NamespaceSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NamespaceStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Node) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NodeAddress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Address) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NodeAffinity) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequiredDuringSchedulingIgnoredDuringExecution != nil { - l = m.RequiredDuringSchedulingIgnoredDuringExecution.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { - for _, e := range m.PreferredDuringSchedulingIgnoredDuringExecution { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NodeCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastHeartbeatTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NodeConfigSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ConfigMap != nil { - l = m.ConfigMap.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NodeConfigStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Assigned != nil { - l = m.Assigned.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Active != nil { - l = m.Active.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.LastKnownGood != nil { - l = m.LastKnownGood.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Error) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NodeDaemonEndpoints) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.KubeletEndpoint.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NodeList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NodeProxyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NodeResources) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *NodeSelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NodeSelectorTerms) > 0 { - for _, e := range m.NodeSelectorTerms { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NodeSelectorRequirement) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operator) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NodeSelectorTerm) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MatchExpressions) > 0 { - for _, e := range m.MatchExpressions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.MatchFields) > 0 { - for _, e := range m.MatchFields { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NodeSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PodCIDR) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DoNotUse_ExternalID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ProviderID) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if len(m.Taints) > 0 { - for _, e := range m.Taints { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.ConfigSource != nil { - l = m.ConfigSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.PodCIDRs) > 0 { - for _, s := range m.PodCIDRs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NodeStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Allocatable) > 0 { - for k, v := range m.Allocatable { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Addresses) > 0 { - for _, e := range m.Addresses { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.DaemonEndpoints.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.NodeInfo.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.VolumesInUse) > 0 { - for _, s := range m.VolumesInUse { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.VolumesAttached) > 0 { - for _, e := range m.VolumesAttached { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Config != nil { - l = m.Config.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NodeSystemInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MachineID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SystemUUID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.BootID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.KernelVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.OSImage) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ContainerRuntimeVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.KubeletVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.KubeProxyVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.OperatingSystem) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Architecture) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ObjectFieldSelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FieldPath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FieldPath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PersistentVolume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PersistentVolumeClaim) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PersistentVolumeClaimCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastProbeTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PersistentVolumeClaimList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PersistentVolumeClaimSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Resources.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.VolumeName) - n += 1 + l + sovGenerated(uint64(l)) - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.StorageClassName != nil { - l = len(*m.StorageClassName) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.VolumeMode != nil { - l = len(*m.VolumeMode) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DataSource != nil { - l = m.DataSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PersistentVolumeClaimStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PersistentVolumeClaimVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ClaimName) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *PersistentVolumeList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GCEPersistentDisk != nil { - l = m.GCEPersistentDisk.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AWSElasticBlockStore != nil { - l = m.AWSElasticBlockStore.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.HostPath != nil { - l = m.HostPath.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Glusterfs != nil { - l = m.Glusterfs.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NFS != nil { - l = m.NFS.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RBD != nil { - l = m.RBD.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ISCSI != nil { - l = m.ISCSI.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Cinder != nil { - l = m.Cinder.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CephFS != nil { - l = m.CephFS.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.FC != nil { - l = m.FC.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Flocker != nil { - l = m.Flocker.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.FlexVolume != nil { - l = m.FlexVolume.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AzureFile != nil { - l = m.AzureFile.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.VsphereVolume != nil { - l = m.VsphereVolume.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Quobyte != nil { - l = m.Quobyte.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AzureDisk != nil { - l = m.AzureDisk.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.PhotonPersistentDisk != nil { - l = m.PhotonPersistentDisk.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.PortworxVolume != nil { - l = m.PortworxVolume.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.ScaleIO != nil { - l = m.ScaleIO.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.Local != nil { - l = m.Local.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.StorageOS != nil { - l = m.StorageOS.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.CSI != nil { - l = m.CSI.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PersistentVolumeSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Capacity) > 0 { - for k, v := range m.Capacity { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = m.PersistentVolumeSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.AccessModes) > 0 { - for _, s := range m.AccessModes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.ClaimRef != nil { - l = m.ClaimRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.PersistentVolumeReclaimPolicy) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StorageClassName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.MountOptions) > 0 { - for _, s := range m.MountOptions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.VolumeMode != nil { - l = len(*m.VolumeMode) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NodeAffinity != nil { - l = m.NodeAffinity.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PersistentVolumeStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PhotonPersistentDiskVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PdID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Pod) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodAffinity) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { - for _, e := range m.RequiredDuringSchedulingIgnoredDuringExecution { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { - for _, e := range m.PreferredDuringSchedulingIgnoredDuringExecution { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodAffinityTerm) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.LabelSelector != nil { - l = m.LabelSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Namespaces) > 0 { - for _, s := range m.Namespaces { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.TopologyKey) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodAntiAffinity) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.RequiredDuringSchedulingIgnoredDuringExecution) > 0 { - for _, e := range m.RequiredDuringSchedulingIgnoredDuringExecution { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.PreferredDuringSchedulingIgnoredDuringExecution) > 0 { - for _, e := range m.PreferredDuringSchedulingIgnoredDuringExecution { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodAttachOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - n += 2 - n += 2 - n += 2 - l = len(m.Container) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastProbeTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodDNSConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Nameservers) > 0 { - for _, s := range m.Nameservers { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Searches) > 0 { - for _, s := range m.Searches { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Options) > 0 { - for _, e := range m.Options { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodDNSConfigOption) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if m.Value != nil { - l = len(*m.Value) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodExecOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - n += 2 - n += 2 - n += 2 - l = len(m.Container) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Command) > 0 { - for _, s := range m.Command { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodIP) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.IP) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodLogOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Container) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - if m.SinceSeconds != nil { - n += 1 + sovGenerated(uint64(*m.SinceSeconds)) - } - if m.SinceTime != nil { - l = m.SinceTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - if m.TailLines != nil { - n += 1 + sovGenerated(uint64(*m.TailLines)) - } - if m.LimitBytes != nil { - n += 1 + sovGenerated(uint64(*m.LimitBytes)) - } - return n -} - -func (m *PodPortForwardOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - n += 1 + sovGenerated(uint64(e)) - } - } - return n -} - -func (m *PodProxyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodReadinessGate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ConditionType) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityContext) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SELinuxOptions != nil { - l = m.SELinuxOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RunAsUser != nil { - n += 1 + sovGenerated(uint64(*m.RunAsUser)) - } - if m.RunAsNonRoot != nil { - n += 2 - } - if len(m.SupplementalGroups) > 0 { - for _, e := range m.SupplementalGroups { - n += 1 + sovGenerated(uint64(e)) - } - } - if m.FSGroup != nil { - n += 1 + sovGenerated(uint64(*m.FSGroup)) - } - if m.RunAsGroup != nil { - n += 1 + sovGenerated(uint64(*m.RunAsGroup)) - } - if len(m.Sysctls) > 0 { - for _, e := range m.Sysctls { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.WindowsOptions != nil { - l = m.WindowsOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodSignature) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodController != nil { - l = m.PodController.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Volumes) > 0 { - for _, e := range m.Volumes { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Containers) > 0 { - for _, e := range m.Containers { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.RestartPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.TerminationGracePeriodSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TerminationGracePeriodSeconds)) - } - if m.ActiveDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) - } - l = len(m.DNSPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.NodeSelector) > 0 { - for k, v := range m.NodeSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.ServiceAccountName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DeprecatedServiceAccount) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NodeName) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - n += 2 - if m.SecurityContext != nil { - l = m.SecurityContext.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.ImagePullSecrets) > 0 { - for _, e := range m.ImagePullSecrets { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Hostname) - n += 2 + l + sovGenerated(uint64(l)) - l = len(m.Subdomain) - n += 2 + l + sovGenerated(uint64(l)) - if m.Affinity != nil { - l = m.Affinity.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - l = len(m.SchedulerName) - n += 2 + l + sovGenerated(uint64(l)) - if len(m.InitContainers) > 0 { - for _, e := range m.InitContainers { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.AutomountServiceAccountToken != nil { - n += 3 - } - if len(m.Tolerations) > 0 { - for _, e := range m.Tolerations { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.HostAliases) > 0 { - for _, e := range m.HostAliases { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - l = len(m.PriorityClassName) - n += 2 + l + sovGenerated(uint64(l)) - if m.Priority != nil { - n += 2 + sovGenerated(uint64(*m.Priority)) - } - if m.DNSConfig != nil { - l = m.DNSConfig.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.ShareProcessNamespace != nil { - n += 3 - } - if len(m.ReadinessGates) > 0 { - for _, e := range m.ReadinessGates { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.RuntimeClassName != nil { - l = len(*m.RuntimeClassName) - n += 2 + l + sovGenerated(uint64(l)) - } - if m.EnableServiceLinks != nil { - n += 3 - } - if m.PreemptionPolicy != nil { - l = len(*m.PreemptionPolicy) - n += 2 + l + sovGenerated(uint64(l)) - } - if len(m.Overhead) > 0 { - for k, v := range m.Overhead { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 2 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.TopologySpreadConstraints) > 0 { - for _, e := range m.TopologySpreadConstraints { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.EphemeralContainers) > 0 { - for _, e := range m.EphemeralContainers { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.HostIP) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.PodIP) - n += 1 + l + sovGenerated(uint64(l)) - if m.StartTime != nil { - l = m.StartTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.ContainerStatuses) > 0 { - for _, e := range m.ContainerStatuses { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.QOSClass) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.InitContainerStatuses) > 0 { - for _, e := range m.InitContainerStatuses { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.NominatedNodeName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.PodIPs) > 0 { - for _, e := range m.PodIPs { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.EphemeralContainerStatuses) > 0 { - for _, e := range m.EphemeralContainerStatuses { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodStatusResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodTemplateList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodTemplateSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PortworxVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *Preconditions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UID != nil { - l = len(*m.UID) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PreferAvoidPodsEntry) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.PodSignature.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.EvictionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PreferredSchedulingTerm) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Weight)) - l = m.Preference.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Probe) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Handler.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.InitialDelaySeconds)) - n += 1 + sovGenerated(uint64(m.TimeoutSeconds)) - n += 1 + sovGenerated(uint64(m.PeriodSeconds)) - n += 1 + sovGenerated(uint64(m.SuccessThreshold)) - n += 1 + sovGenerated(uint64(m.FailureThreshold)) - return n -} - -func (m *ProjectedVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Sources) > 0 { - for _, e := range m.Sources { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DefaultMode != nil { - n += 1 + sovGenerated(uint64(*m.DefaultMode)) - } - return n -} - -func (m *QuobyteVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Registry) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Volume) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Tenant) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RBDPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CephMonitors) > 0 { - for _, s := range m.CephMonitors { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.RBDImage) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RBDPool) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RadosUser) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Keyring) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - return n -} - -func (m *RBDVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CephMonitors) > 0 { - for _, s := range m.CephMonitors { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.RBDImage) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RBDPool) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.RadosUser) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Keyring) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - return n -} - -func (m *RangeAllocation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Range) - n += 1 + l + sovGenerated(uint64(l)) - if m.Data != nil { - l = len(m.Data) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ReplicationController) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicationControllerCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicationControllerList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ReplicationControllerSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if len(m.Selector) > 0 { - for k, v := range m.Selector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.Template != nil { - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - return n -} - -func (m *ReplicationControllerStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ResourceFieldSelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContainerName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Divisor.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceQuota) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ResourceQuotaList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ResourceQuotaSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Hard) > 0 { - for k, v := range m.Hard { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Scopes) > 0 { - for _, s := range m.Scopes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.ScopeSelector != nil { - l = m.ScopeSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ResourceQuotaStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Hard) > 0 { - for k, v := range m.Hard { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Used) > 0 { - for k, v := range m.Used { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *ResourceRequirements) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Limits) > 0 { - for k, v := range m.Limits { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Requests) > 0 { - for k, v := range m.Requests { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *SELinuxOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.User) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Role) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Level) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScaleIOPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Gateway) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.System) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - l = len(m.ProtectionDomain) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StoragePool) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StorageMode) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.VolumeName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *ScaleIOVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Gateway) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.System) - n += 1 + l + sovGenerated(uint64(l)) - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 2 - l = len(m.ProtectionDomain) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StoragePool) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StorageMode) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.VolumeName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *ScopeSelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MatchExpressions) > 0 { - for _, e := range m.MatchExpressions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ScopedResourceSelectorRequirement) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ScopeName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operator) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Secret) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Data) > 0 { - for k, v := range m.Data { - _ = k - _ = v - l = 0 - if v != nil { - l = 1 + len(v) + sovGenerated(uint64(len(v))) - } - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + l - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.StringData) > 0 { - for k, v := range m.StringData { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *SecretEnvSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *SecretKeySelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *SecretList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *SecretProjection) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocalObjectReference.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *SecretReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SecretVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SecretName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DefaultMode != nil { - n += 1 + sovGenerated(uint64(*m.DefaultMode)) - } - if m.Optional != nil { - n += 2 - } - return n -} - -func (m *SecurityContext) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Capabilities != nil { - l = m.Capabilities.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Privileged != nil { - n += 2 - } - if m.SELinuxOptions != nil { - l = m.SELinuxOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RunAsUser != nil { - n += 1 + sovGenerated(uint64(*m.RunAsUser)) - } - if m.RunAsNonRoot != nil { - n += 2 - } - if m.ReadOnlyRootFilesystem != nil { - n += 2 - } - if m.AllowPrivilegeEscalation != nil { - n += 2 - } - if m.RunAsGroup != nil { - n += 1 + sovGenerated(uint64(*m.RunAsGroup)) - } - if m.ProcMount != nil { - l = len(*m.ProcMount) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.WindowsOptions != nil { - l = m.WindowsOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SerializedReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Reference.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Service) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Secrets) > 0 { - for _, e := range m.Secrets { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ImagePullSecrets) > 0 { - for _, e := range m.ImagePullSecrets { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AutomountServiceAccountToken != nil { - n += 2 - } - return n -} - -func (m *ServiceAccountList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServiceAccountTokenProjection) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Audience) - n += 1 + l + sovGenerated(uint64(l)) - if m.ExpirationSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ExpirationSeconds)) - } - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServicePort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Protocol) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Port)) - l = m.TargetPort.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.NodePort)) - return n -} - -func (m *ServiceProxyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ServiceSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Selector) > 0 { - for k, v := range m.Selector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.ClusterIP) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.ExternalIPs) > 0 { - for _, s := range m.ExternalIPs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.SessionAffinity) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.LoadBalancerIP) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.LoadBalancerSourceRanges) > 0 { - for _, s := range m.LoadBalancerSourceRanges { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ExternalName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ExternalTrafficPolicy) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.HealthCheckNodePort)) - n += 2 - if m.SessionAffinityConfig != nil { - l = m.SessionAffinityConfig.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.IPFamily != nil { - l = len(*m.IPFamily) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ServiceStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LoadBalancer.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SessionAffinityConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ClientIP != nil { - l = m.ClientIP.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *StorageOSPersistentVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.VolumeNamespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *StorageOSVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumeName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.VolumeNamespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.SecretRef != nil { - l = m.SecretRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Sysctl) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TCPSocketAction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Port.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Taint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Effect) - n += 1 + l + sovGenerated(uint64(l)) - if m.TimeAdded != nil { - l = m.TimeAdded.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Toleration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operator) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Value) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Effect) - n += 1 + l + sovGenerated(uint64(l)) - if m.TolerationSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TolerationSeconds)) - } - return n -} - -func (m *TopologySelectorLabelRequirement) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TopologySelectorTerm) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MatchLabelExpressions) > 0 { - for _, e := range m.MatchLabelExpressions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *TopologySpreadConstraint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.MaxSkew)) - l = len(m.TopologyKey) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.WhenUnsatisfiable) - n += 1 + l + sovGenerated(uint64(l)) - if m.LabelSelector != nil { - l = m.LabelSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *TypedLocalObjectReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.APIGroup != nil { - l = len(*m.APIGroup) - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Volume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = m.VolumeSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeDevice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DevicePath) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeMount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.MountPath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SubPath) - n += 1 + l + sovGenerated(uint64(l)) - if m.MountPropagation != nil { - l = len(*m.MountPropagation) - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.SubPathExpr) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeNodeAffinity) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Required != nil { - l = m.Required.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeProjection) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Secret != nil { - l = m.Secret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DownwardAPI != nil { - l = m.DownwardAPI.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ConfigMap != nil { - l = m.ConfigMap.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ServiceAccountToken != nil { - l = m.ServiceAccountToken.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HostPath != nil { - l = m.HostPath.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.EmptyDir != nil { - l = m.EmptyDir.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GCEPersistentDisk != nil { - l = m.GCEPersistentDisk.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.AWSElasticBlockStore != nil { - l = m.AWSElasticBlockStore.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GitRepo != nil { - l = m.GitRepo.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Secret != nil { - l = m.Secret.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NFS != nil { - l = m.NFS.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ISCSI != nil { - l = m.ISCSI.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Glusterfs != nil { - l = m.Glusterfs.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.PersistentVolumeClaim != nil { - l = m.PersistentVolumeClaim.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RBD != nil { - l = m.RBD.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.FlexVolume != nil { - l = m.FlexVolume.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Cinder != nil { - l = m.Cinder.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.CephFS != nil { - l = m.CephFS.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Flocker != nil { - l = m.Flocker.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DownwardAPI != nil { - l = m.DownwardAPI.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.FC != nil { - l = m.FC.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.AzureFile != nil { - l = m.AzureFile.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.ConfigMap != nil { - l = m.ConfigMap.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.VsphereVolume != nil { - l = m.VsphereVolume.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.Quobyte != nil { - l = m.Quobyte.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.AzureDisk != nil { - l = m.AzureDisk.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.PhotonPersistentDisk != nil { - l = m.PhotonPersistentDisk.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.PortworxVolume != nil { - l = m.PortworxVolume.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.ScaleIO != nil { - l = m.ScaleIO.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.Projected != nil { - l = m.Projected.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.StorageOS != nil { - l = m.StorageOS.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if m.CSI != nil { - l = m.CSI.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VsphereVirtualDiskVolumeSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VolumePath) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FSType) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StoragePolicyName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StoragePolicyID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *WeightedPodAffinityTerm) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Weight)) - l = m.PodAffinityTerm.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *WindowsSecurityContextOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GMSACredentialSpecName != nil { - l = len(*m.GMSACredentialSpecName) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.GMSACredentialSpec != nil { - l = len(*m.GMSACredentialSpec) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.RunAsUserName != nil { - l = len(*m.RunAsUserName) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AWSElasticBlockStoreVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AWSElasticBlockStoreVolumeSource{`, - `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *Affinity) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Affinity{`, - `NodeAffinity:` + strings.Replace(this.NodeAffinity.String(), "NodeAffinity", "NodeAffinity", 1) + `,`, - `PodAffinity:` + strings.Replace(this.PodAffinity.String(), "PodAffinity", "PodAffinity", 1) + `,`, - `PodAntiAffinity:` + strings.Replace(this.PodAntiAffinity.String(), "PodAntiAffinity", "PodAntiAffinity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AttachedVolume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AttachedVolume{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `DevicePath:` + fmt.Sprintf("%v", this.DevicePath) + `,`, - `}`, - }, "") - return s -} -func (this *AvoidPods) String() string { - if this == nil { - return "nil" - } - repeatedStringForPreferAvoidPods := "[]PreferAvoidPodsEntry{" - for _, f := range this.PreferAvoidPods { - repeatedStringForPreferAvoidPods += strings.Replace(strings.Replace(f.String(), "PreferAvoidPodsEntry", "PreferAvoidPodsEntry", 1), `&`, ``, 1) + "," - } - repeatedStringForPreferAvoidPods += "}" - s := strings.Join([]string{`&AvoidPods{`, - `PreferAvoidPods:` + repeatedStringForPreferAvoidPods + `,`, - `}`, - }, "") - return s -} -func (this *AzureDiskVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AzureDiskVolumeSource{`, - `DiskName:` + fmt.Sprintf("%v", this.DiskName) + `,`, - `DataDiskURI:` + fmt.Sprintf("%v", this.DataDiskURI) + `,`, - `CachingMode:` + valueToStringGenerated(this.CachingMode) + `,`, - `FSType:` + valueToStringGenerated(this.FSType) + `,`, - `ReadOnly:` + valueToStringGenerated(this.ReadOnly) + `,`, - `Kind:` + valueToStringGenerated(this.Kind) + `,`, - `}`, - }, "") - return s -} -func (this *AzureFilePersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AzureFilePersistentVolumeSource{`, - `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, - `ShareName:` + fmt.Sprintf("%v", this.ShareName) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `SecretNamespace:` + valueToStringGenerated(this.SecretNamespace) + `,`, - `}`, - }, "") - return s -} -func (this *AzureFileVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AzureFileVolumeSource{`, - `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, - `ShareName:` + fmt.Sprintf("%v", this.ShareName) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *Binding) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Binding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Target:` + strings.Replace(strings.Replace(this.Target.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CSIPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - keysForVolumeAttributes := make([]string, 0, len(this.VolumeAttributes)) - for k := range this.VolumeAttributes { - keysForVolumeAttributes = append(keysForVolumeAttributes, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForVolumeAttributes) - mapStringForVolumeAttributes := "map[string]string{" - for _, k := range keysForVolumeAttributes { - mapStringForVolumeAttributes += fmt.Sprintf("%v: %v,", k, this.VolumeAttributes[k]) - } - mapStringForVolumeAttributes += "}" - s := strings.Join([]string{`&CSIPersistentVolumeSource{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `VolumeHandle:` + fmt.Sprintf("%v", this.VolumeHandle) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `VolumeAttributes:` + mapStringForVolumeAttributes + `,`, - `ControllerPublishSecretRef:` + strings.Replace(this.ControllerPublishSecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `NodeStageSecretRef:` + strings.Replace(this.NodeStageSecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `NodePublishSecretRef:` + strings.Replace(this.NodePublishSecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `ControllerExpandSecretRef:` + strings.Replace(this.ControllerExpandSecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CSIVolumeSource) String() string { - if this == nil { - return "nil" - } - keysForVolumeAttributes := make([]string, 0, len(this.VolumeAttributes)) - for k := range this.VolumeAttributes { - keysForVolumeAttributes = append(keysForVolumeAttributes, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForVolumeAttributes) - mapStringForVolumeAttributes := "map[string]string{" - for _, k := range keysForVolumeAttributes { - mapStringForVolumeAttributes += fmt.Sprintf("%v: %v,", k, this.VolumeAttributes[k]) - } - mapStringForVolumeAttributes += "}" - s := strings.Join([]string{`&CSIVolumeSource{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `ReadOnly:` + valueToStringGenerated(this.ReadOnly) + `,`, - `FSType:` + valueToStringGenerated(this.FSType) + `,`, - `VolumeAttributes:` + mapStringForVolumeAttributes + `,`, - `NodePublishSecretRef:` + strings.Replace(this.NodePublishSecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Capabilities) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Capabilities{`, - `Add:` + fmt.Sprintf("%v", this.Add) + `,`, - `Drop:` + fmt.Sprintf("%v", this.Drop) + `,`, - `}`, - }, "") - return s -} -func (this *CephFSPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CephFSPersistentVolumeSource{`, - `Monitors:` + fmt.Sprintf("%v", this.Monitors) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `SecretFile:` + fmt.Sprintf("%v", this.SecretFile) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *CephFSVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CephFSVolumeSource{`, - `Monitors:` + fmt.Sprintf("%v", this.Monitors) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `SecretFile:` + fmt.Sprintf("%v", this.SecretFile) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *CinderPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CinderPersistentVolumeSource{`, - `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CinderVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CinderVolumeSource{`, - `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClientIPConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ClientIPConfig{`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *ComponentCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ComponentCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Error:` + fmt.Sprintf("%v", this.Error) + `,`, - `}`, - }, "") - return s -} -func (this *ComponentStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]ComponentCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ComponentCondition", "ComponentCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ComponentStatus{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *ComponentStatusList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ComponentStatus{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ComponentStatus", "ComponentStatus", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ComponentStatusList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMap) String() string { - if this == nil { - return "nil" - } - keysForData := make([]string, 0, len(this.Data)) - for k := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string]string{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) - } - mapStringForData += "}" - keysForBinaryData := make([]string, 0, len(this.BinaryData)) - for k := range this.BinaryData { - keysForBinaryData = append(keysForBinaryData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForBinaryData) - mapStringForBinaryData := "map[string][]byte{" - for _, k := range keysForBinaryData { - mapStringForBinaryData += fmt.Sprintf("%v: %v,", k, this.BinaryData[k]) - } - mapStringForBinaryData += "}" - s := strings.Join([]string{`&ConfigMap{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Data:` + mapStringForData + `,`, - `BinaryData:` + mapStringForBinaryData + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMapEnvSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ConfigMapEnvSource{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMapKeySelector) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ConfigMapKeySelector{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMapList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ConfigMap{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ConfigMap", "ConfigMap", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ConfigMapList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMapNodeConfigSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ConfigMapNodeConfigSource{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `KubeletConfigKey:` + fmt.Sprintf("%v", this.KubeletConfigKey) + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMapProjection) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]KeyToPath{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "KeyToPath", "KeyToPath", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ConfigMapProjection{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *ConfigMapVolumeSource) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]KeyToPath{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "KeyToPath", "KeyToPath", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ConfigMapVolumeSource{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *Container) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]ContainerPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "ContainerPort", "ContainerPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - repeatedStringForEnv := "[]EnvVar{" - for _, f := range this.Env { - repeatedStringForEnv += strings.Replace(strings.Replace(f.String(), "EnvVar", "EnvVar", 1), `&`, ``, 1) + "," - } - repeatedStringForEnv += "}" - repeatedStringForVolumeMounts := "[]VolumeMount{" - for _, f := range this.VolumeMounts { - repeatedStringForVolumeMounts += strings.Replace(strings.Replace(f.String(), "VolumeMount", "VolumeMount", 1), `&`, ``, 1) + "," - } - repeatedStringForVolumeMounts += "}" - repeatedStringForEnvFrom := "[]EnvFromSource{" - for _, f := range this.EnvFrom { - repeatedStringForEnvFrom += strings.Replace(strings.Replace(f.String(), "EnvFromSource", "EnvFromSource", 1), `&`, ``, 1) + "," - } - repeatedStringForEnvFrom += "}" - repeatedStringForVolumeDevices := "[]VolumeDevice{" - for _, f := range this.VolumeDevices { - repeatedStringForVolumeDevices += strings.Replace(strings.Replace(f.String(), "VolumeDevice", "VolumeDevice", 1), `&`, ``, 1) + "," - } - repeatedStringForVolumeDevices += "}" - s := strings.Join([]string{`&Container{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `Args:` + fmt.Sprintf("%v", this.Args) + `,`, - `WorkingDir:` + fmt.Sprintf("%v", this.WorkingDir) + `,`, - `Ports:` + repeatedStringForPorts + `,`, - `Env:` + repeatedStringForEnv + `,`, - `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, - `VolumeMounts:` + repeatedStringForVolumeMounts + `,`, - `LivenessProbe:` + strings.Replace(this.LivenessProbe.String(), "Probe", "Probe", 1) + `,`, - `ReadinessProbe:` + strings.Replace(this.ReadinessProbe.String(), "Probe", "Probe", 1) + `,`, - `Lifecycle:` + strings.Replace(this.Lifecycle.String(), "Lifecycle", "Lifecycle", 1) + `,`, - `TerminationMessagePath:` + fmt.Sprintf("%v", this.TerminationMessagePath) + `,`, - `ImagePullPolicy:` + fmt.Sprintf("%v", this.ImagePullPolicy) + `,`, - `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "SecurityContext", "SecurityContext", 1) + `,`, - `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, - `StdinOnce:` + fmt.Sprintf("%v", this.StdinOnce) + `,`, - `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, - `EnvFrom:` + repeatedStringForEnvFrom + `,`, - `TerminationMessagePolicy:` + fmt.Sprintf("%v", this.TerminationMessagePolicy) + `,`, - `VolumeDevices:` + repeatedStringForVolumeDevices + `,`, - `StartupProbe:` + strings.Replace(this.StartupProbe.String(), "Probe", "Probe", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerImage) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerImage{`, - `Names:` + fmt.Sprintf("%v", this.Names) + `,`, - `SizeBytes:` + fmt.Sprintf("%v", this.SizeBytes) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerPort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerPort{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `HostPort:` + fmt.Sprintf("%v", this.HostPort) + `,`, - `ContainerPort:` + fmt.Sprintf("%v", this.ContainerPort) + `,`, - `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, - `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerState) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerState{`, - `Waiting:` + strings.Replace(this.Waiting.String(), "ContainerStateWaiting", "ContainerStateWaiting", 1) + `,`, - `Running:` + strings.Replace(this.Running.String(), "ContainerStateRunning", "ContainerStateRunning", 1) + `,`, - `Terminated:` + strings.Replace(this.Terminated.String(), "ContainerStateTerminated", "ContainerStateTerminated", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerStateRunning) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerStateRunning{`, - `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerStateTerminated) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerStateTerminated{`, - `ExitCode:` + fmt.Sprintf("%v", this.ExitCode) + `,`, - `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `FinishedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.FinishedAt), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerStateWaiting) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerStateWaiting{`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *ContainerStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ContainerStatus{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `State:` + strings.Replace(strings.Replace(this.State.String(), "ContainerState", "ContainerState", 1), `&`, ``, 1) + `,`, - `LastTerminationState:` + strings.Replace(strings.Replace(this.LastTerminationState.String(), "ContainerState", "ContainerState", 1), `&`, ``, 1) + `,`, - `Ready:` + fmt.Sprintf("%v", this.Ready) + `,`, - `RestartCount:` + fmt.Sprintf("%v", this.RestartCount) + `,`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `ImageID:` + fmt.Sprintf("%v", this.ImageID) + `,`, - `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, - `Started:` + valueToStringGenerated(this.Started) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonEndpoint) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonEndpoint{`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *DownwardAPIProjection) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]DownwardAPIVolumeFile{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DownwardAPIVolumeFile", "DownwardAPIVolumeFile", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DownwardAPIProjection{`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DownwardAPIVolumeFile) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DownwardAPIVolumeFile{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `FieldRef:` + strings.Replace(this.FieldRef.String(), "ObjectFieldSelector", "ObjectFieldSelector", 1) + `,`, - `ResourceFieldRef:` + strings.Replace(this.ResourceFieldRef.String(), "ResourceFieldSelector", "ResourceFieldSelector", 1) + `,`, - `Mode:` + valueToStringGenerated(this.Mode) + `,`, - `}`, - }, "") - return s -} -func (this *DownwardAPIVolumeSource) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]DownwardAPIVolumeFile{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DownwardAPIVolumeFile", "DownwardAPIVolumeFile", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DownwardAPIVolumeSource{`, - `Items:` + repeatedStringForItems + `,`, - `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, - `}`, - }, "") - return s -} -func (this *EmptyDirVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EmptyDirVolumeSource{`, - `Medium:` + fmt.Sprintf("%v", this.Medium) + `,`, - `SizeLimit:` + strings.Replace(fmt.Sprintf("%v", this.SizeLimit), "Quantity", "resource.Quantity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *EndpointAddress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EndpointAddress{`, - `IP:` + fmt.Sprintf("%v", this.IP) + `,`, - `TargetRef:` + strings.Replace(this.TargetRef.String(), "ObjectReference", "ObjectReference", 1) + `,`, - `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, - `NodeName:` + valueToStringGenerated(this.NodeName) + `,`, - `}`, - }, "") - return s -} -func (this *EndpointPort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EndpointPort{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, - `}`, - }, "") - return s -} -func (this *EndpointSubset) String() string { - if this == nil { - return "nil" - } - repeatedStringForAddresses := "[]EndpointAddress{" - for _, f := range this.Addresses { - repeatedStringForAddresses += strings.Replace(strings.Replace(f.String(), "EndpointAddress", "EndpointAddress", 1), `&`, ``, 1) + "," - } - repeatedStringForAddresses += "}" - repeatedStringForNotReadyAddresses := "[]EndpointAddress{" - for _, f := range this.NotReadyAddresses { - repeatedStringForNotReadyAddresses += strings.Replace(strings.Replace(f.String(), "EndpointAddress", "EndpointAddress", 1), `&`, ``, 1) + "," - } - repeatedStringForNotReadyAddresses += "}" - repeatedStringForPorts := "[]EndpointPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "EndpointPort", "EndpointPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - s := strings.Join([]string{`&EndpointSubset{`, - `Addresses:` + repeatedStringForAddresses + `,`, - `NotReadyAddresses:` + repeatedStringForNotReadyAddresses + `,`, - `Ports:` + repeatedStringForPorts + `,`, - `}`, - }, "") - return s -} -func (this *Endpoints) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubsets := "[]EndpointSubset{" - for _, f := range this.Subsets { - repeatedStringForSubsets += strings.Replace(strings.Replace(f.String(), "EndpointSubset", "EndpointSubset", 1), `&`, ``, 1) + "," - } - repeatedStringForSubsets += "}" - s := strings.Join([]string{`&Endpoints{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subsets:` + repeatedStringForSubsets + `,`, - `}`, - }, "") - return s -} -func (this *EndpointsList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Endpoints{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Endpoints", "Endpoints", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&EndpointsList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *EnvFromSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EnvFromSource{`, - `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`, - `ConfigMapRef:` + strings.Replace(this.ConfigMapRef.String(), "ConfigMapEnvSource", "ConfigMapEnvSource", 1) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretEnvSource", "SecretEnvSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *EnvVar) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EnvVar{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `ValueFrom:` + strings.Replace(this.ValueFrom.String(), "EnvVarSource", "EnvVarSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *EnvVarSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EnvVarSource{`, - `FieldRef:` + strings.Replace(this.FieldRef.String(), "ObjectFieldSelector", "ObjectFieldSelector", 1) + `,`, - `ResourceFieldRef:` + strings.Replace(this.ResourceFieldRef.String(), "ResourceFieldSelector", "ResourceFieldSelector", 1) + `,`, - `ConfigMapKeyRef:` + strings.Replace(this.ConfigMapKeyRef.String(), "ConfigMapKeySelector", "ConfigMapKeySelector", 1) + `,`, - `SecretKeyRef:` + strings.Replace(this.SecretKeyRef.String(), "SecretKeySelector", "SecretKeySelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *EphemeralContainer) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EphemeralContainer{`, - `EphemeralContainerCommon:` + strings.Replace(strings.Replace(this.EphemeralContainerCommon.String(), "EphemeralContainerCommon", "EphemeralContainerCommon", 1), `&`, ``, 1) + `,`, - `TargetContainerName:` + fmt.Sprintf("%v", this.TargetContainerName) + `,`, - `}`, - }, "") - return s -} -func (this *EphemeralContainerCommon) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]ContainerPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "ContainerPort", "ContainerPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - repeatedStringForEnv := "[]EnvVar{" - for _, f := range this.Env { - repeatedStringForEnv += strings.Replace(strings.Replace(f.String(), "EnvVar", "EnvVar", 1), `&`, ``, 1) + "," - } - repeatedStringForEnv += "}" - repeatedStringForVolumeMounts := "[]VolumeMount{" - for _, f := range this.VolumeMounts { - repeatedStringForVolumeMounts += strings.Replace(strings.Replace(f.String(), "VolumeMount", "VolumeMount", 1), `&`, ``, 1) + "," - } - repeatedStringForVolumeMounts += "}" - repeatedStringForEnvFrom := "[]EnvFromSource{" - for _, f := range this.EnvFrom { - repeatedStringForEnvFrom += strings.Replace(strings.Replace(f.String(), "EnvFromSource", "EnvFromSource", 1), `&`, ``, 1) + "," - } - repeatedStringForEnvFrom += "}" - repeatedStringForVolumeDevices := "[]VolumeDevice{" - for _, f := range this.VolumeDevices { - repeatedStringForVolumeDevices += strings.Replace(strings.Replace(f.String(), "VolumeDevice", "VolumeDevice", 1), `&`, ``, 1) + "," - } - repeatedStringForVolumeDevices += "}" - s := strings.Join([]string{`&EphemeralContainerCommon{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `Args:` + fmt.Sprintf("%v", this.Args) + `,`, - `WorkingDir:` + fmt.Sprintf("%v", this.WorkingDir) + `,`, - `Ports:` + repeatedStringForPorts + `,`, - `Env:` + repeatedStringForEnv + `,`, - `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, - `VolumeMounts:` + repeatedStringForVolumeMounts + `,`, - `LivenessProbe:` + strings.Replace(this.LivenessProbe.String(), "Probe", "Probe", 1) + `,`, - `ReadinessProbe:` + strings.Replace(this.ReadinessProbe.String(), "Probe", "Probe", 1) + `,`, - `Lifecycle:` + strings.Replace(this.Lifecycle.String(), "Lifecycle", "Lifecycle", 1) + `,`, - `TerminationMessagePath:` + fmt.Sprintf("%v", this.TerminationMessagePath) + `,`, - `ImagePullPolicy:` + fmt.Sprintf("%v", this.ImagePullPolicy) + `,`, - `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "SecurityContext", "SecurityContext", 1) + `,`, - `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, - `StdinOnce:` + fmt.Sprintf("%v", this.StdinOnce) + `,`, - `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, - `EnvFrom:` + repeatedStringForEnvFrom + `,`, - `TerminationMessagePolicy:` + fmt.Sprintf("%v", this.TerminationMessagePolicy) + `,`, - `VolumeDevices:` + repeatedStringForVolumeDevices + `,`, - `StartupProbe:` + strings.Replace(this.StartupProbe.String(), "Probe", "Probe", 1) + `,`, - `}`, - }, "") - return s -} -func (this *EphemeralContainers) String() string { - if this == nil { - return "nil" - } - repeatedStringForEphemeralContainers := "[]EphemeralContainer{" - for _, f := range this.EphemeralContainers { - repeatedStringForEphemeralContainers += strings.Replace(strings.Replace(f.String(), "EphemeralContainer", "EphemeralContainer", 1), `&`, ``, 1) + "," - } - repeatedStringForEphemeralContainers += "}" - s := strings.Join([]string{`&EphemeralContainers{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `EphemeralContainers:` + repeatedStringForEphemeralContainers + `,`, - `}`, - }, "") - return s -} -func (this *Event) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Event{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `InvolvedObject:` + strings.Replace(strings.Replace(this.InvolvedObject.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Source:` + strings.Replace(strings.Replace(this.Source.String(), "EventSource", "EventSource", 1), `&`, ``, 1) + `,`, - `FirstTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.FirstTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Count:` + fmt.Sprintf("%v", this.Count) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `EventTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EventTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`, - `Series:` + strings.Replace(this.Series.String(), "EventSeries", "EventSeries", 1) + `,`, - `Action:` + fmt.Sprintf("%v", this.Action) + `,`, - `Related:` + strings.Replace(this.Related.String(), "ObjectReference", "ObjectReference", 1) + `,`, - `ReportingController:` + fmt.Sprintf("%v", this.ReportingController) + `,`, - `ReportingInstance:` + fmt.Sprintf("%v", this.ReportingInstance) + `,`, - `}`, - }, "") - return s -} -func (this *EventList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Event{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Event", "Event", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&EventList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *EventSeries) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventSeries{`, - `Count:` + fmt.Sprintf("%v", this.Count) + `,`, - `LastObservedTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastObservedTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `}`, - }, "") - return s -} -func (this *EventSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventSource{`, - `Component:` + fmt.Sprintf("%v", this.Component) + `,`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `}`, - }, "") - return s -} -func (this *ExecAction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExecAction{`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `}`, - }, "") - return s -} -func (this *FCVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FCVolumeSource{`, - `TargetWWNs:` + fmt.Sprintf("%v", this.TargetWWNs) + `,`, - `Lun:` + valueToStringGenerated(this.Lun) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `WWIDs:` + fmt.Sprintf("%v", this.WWIDs) + `,`, - `}`, - }, "") - return s -} -func (this *FlexPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - keysForOptions := make([]string, 0, len(this.Options)) - for k := range this.Options { - keysForOptions = append(keysForOptions, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) - mapStringForOptions := "map[string]string{" - for _, k := range keysForOptions { - mapStringForOptions += fmt.Sprintf("%v: %v,", k, this.Options[k]) - } - mapStringForOptions += "}" - s := strings.Join([]string{`&FlexPersistentVolumeSource{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `Options:` + mapStringForOptions + `,`, - `}`, - }, "") - return s -} -func (this *FlexVolumeSource) String() string { - if this == nil { - return "nil" - } - keysForOptions := make([]string, 0, len(this.Options)) - for k := range this.Options { - keysForOptions = append(keysForOptions, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForOptions) - mapStringForOptions := "map[string]string{" - for _, k := range keysForOptions { - mapStringForOptions += fmt.Sprintf("%v: %v,", k, this.Options[k]) - } - mapStringForOptions += "}" - s := strings.Join([]string{`&FlexVolumeSource{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `Options:` + mapStringForOptions + `,`, - `}`, - }, "") - return s -} -func (this *FlockerVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FlockerVolumeSource{`, - `DatasetName:` + fmt.Sprintf("%v", this.DatasetName) + `,`, - `DatasetUUID:` + fmt.Sprintf("%v", this.DatasetUUID) + `,`, - `}`, - }, "") - return s -} -func (this *GCEPersistentDiskVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GCEPersistentDiskVolumeSource{`, - `PDName:` + fmt.Sprintf("%v", this.PDName) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `Partition:` + fmt.Sprintf("%v", this.Partition) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *GitRepoVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GitRepoVolumeSource{`, - `Repository:` + fmt.Sprintf("%v", this.Repository) + `,`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `Directory:` + fmt.Sprintf("%v", this.Directory) + `,`, - `}`, - }, "") - return s -} -func (this *GlusterfsPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GlusterfsPersistentVolumeSource{`, - `EndpointsName:` + fmt.Sprintf("%v", this.EndpointsName) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `EndpointsNamespace:` + valueToStringGenerated(this.EndpointsNamespace) + `,`, - `}`, - }, "") - return s -} -func (this *GlusterfsVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GlusterfsVolumeSource{`, - `EndpointsName:` + fmt.Sprintf("%v", this.EndpointsName) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *HTTPGetAction) String() string { - if this == nil { - return "nil" - } - repeatedStringForHTTPHeaders := "[]HTTPHeader{" - for _, f := range this.HTTPHeaders { - repeatedStringForHTTPHeaders += strings.Replace(strings.Replace(f.String(), "HTTPHeader", "HTTPHeader", 1), `&`, ``, 1) + "," - } - repeatedStringForHTTPHeaders += "}" - s := strings.Join([]string{`&HTTPGetAction{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Port:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "intstr.IntOrString", 1), `&`, ``, 1) + `,`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `Scheme:` + fmt.Sprintf("%v", this.Scheme) + `,`, - `HTTPHeaders:` + repeatedStringForHTTPHeaders + `,`, - `}`, - }, "") - return s -} -func (this *HTTPHeader) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HTTPHeader{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `}`, - }, "") - return s -} -func (this *Handler) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Handler{`, - `Exec:` + strings.Replace(this.Exec.String(), "ExecAction", "ExecAction", 1) + `,`, - `HTTPGet:` + strings.Replace(this.HTTPGet.String(), "HTTPGetAction", "HTTPGetAction", 1) + `,`, - `TCPSocket:` + strings.Replace(this.TCPSocket.String(), "TCPSocketAction", "TCPSocketAction", 1) + `,`, - `}`, - }, "") - return s -} -func (this *HostAlias) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostAlias{`, - `IP:` + fmt.Sprintf("%v", this.IP) + `,`, - `Hostnames:` + fmt.Sprintf("%v", this.Hostnames) + `,`, - `}`, - }, "") - return s -} -func (this *HostPathVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostPathVolumeSource{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Type:` + valueToStringGenerated(this.Type) + `,`, - `}`, - }, "") - return s -} -func (this *ISCSIPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ISCSIPersistentVolumeSource{`, - `TargetPortal:` + fmt.Sprintf("%v", this.TargetPortal) + `,`, - `IQN:` + fmt.Sprintf("%v", this.IQN) + `,`, - `Lun:` + fmt.Sprintf("%v", this.Lun) + `,`, - `ISCSIInterface:` + fmt.Sprintf("%v", this.ISCSIInterface) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `Portals:` + fmt.Sprintf("%v", this.Portals) + `,`, - `DiscoveryCHAPAuth:` + fmt.Sprintf("%v", this.DiscoveryCHAPAuth) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `SessionCHAPAuth:` + fmt.Sprintf("%v", this.SessionCHAPAuth) + `,`, - `InitiatorName:` + valueToStringGenerated(this.InitiatorName) + `,`, - `}`, - }, "") - return s -} -func (this *ISCSIVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ISCSIVolumeSource{`, - `TargetPortal:` + fmt.Sprintf("%v", this.TargetPortal) + `,`, - `IQN:` + fmt.Sprintf("%v", this.IQN) + `,`, - `Lun:` + fmt.Sprintf("%v", this.Lun) + `,`, - `ISCSIInterface:` + fmt.Sprintf("%v", this.ISCSIInterface) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `Portals:` + fmt.Sprintf("%v", this.Portals) + `,`, - `DiscoveryCHAPAuth:` + fmt.Sprintf("%v", this.DiscoveryCHAPAuth) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `SessionCHAPAuth:` + fmt.Sprintf("%v", this.SessionCHAPAuth) + `,`, - `InitiatorName:` + valueToStringGenerated(this.InitiatorName) + `,`, - `}`, - }, "") - return s -} -func (this *KeyToPath) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&KeyToPath{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Mode:` + valueToStringGenerated(this.Mode) + `,`, - `}`, - }, "") - return s -} -func (this *Lifecycle) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Lifecycle{`, - `PostStart:` + strings.Replace(this.PostStart.String(), "Handler", "Handler", 1) + `,`, - `PreStop:` + strings.Replace(this.PreStop.String(), "Handler", "Handler", 1) + `,`, - `}`, - }, "") - return s -} -func (this *LimitRange) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LimitRange{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LimitRangeSpec", "LimitRangeSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *LimitRangeItem) String() string { - if this == nil { - return "nil" - } - keysForMax := make([]string, 0, len(this.Max)) - for k := range this.Max { - keysForMax = append(keysForMax, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMax) - mapStringForMax := "ResourceList{" - for _, k := range keysForMax { - mapStringForMax += fmt.Sprintf("%v: %v,", k, this.Max[ResourceName(k)]) - } - mapStringForMax += "}" - keysForMin := make([]string, 0, len(this.Min)) - for k := range this.Min { - keysForMin = append(keysForMin, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMin) - mapStringForMin := "ResourceList{" - for _, k := range keysForMin { - mapStringForMin += fmt.Sprintf("%v: %v,", k, this.Min[ResourceName(k)]) - } - mapStringForMin += "}" - keysForDefault := make([]string, 0, len(this.Default)) - for k := range this.Default { - keysForDefault = append(keysForDefault, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForDefault) - mapStringForDefault := "ResourceList{" - for _, k := range keysForDefault { - mapStringForDefault += fmt.Sprintf("%v: %v,", k, this.Default[ResourceName(k)]) - } - mapStringForDefault += "}" - keysForDefaultRequest := make([]string, 0, len(this.DefaultRequest)) - for k := range this.DefaultRequest { - keysForDefaultRequest = append(keysForDefaultRequest, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForDefaultRequest) - mapStringForDefaultRequest := "ResourceList{" - for _, k := range keysForDefaultRequest { - mapStringForDefaultRequest += fmt.Sprintf("%v: %v,", k, this.DefaultRequest[ResourceName(k)]) - } - mapStringForDefaultRequest += "}" - keysForMaxLimitRequestRatio := make([]string, 0, len(this.MaxLimitRequestRatio)) - for k := range this.MaxLimitRequestRatio { - keysForMaxLimitRequestRatio = append(keysForMaxLimitRequestRatio, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMaxLimitRequestRatio) - mapStringForMaxLimitRequestRatio := "ResourceList{" - for _, k := range keysForMaxLimitRequestRatio { - mapStringForMaxLimitRequestRatio += fmt.Sprintf("%v: %v,", k, this.MaxLimitRequestRatio[ResourceName(k)]) - } - mapStringForMaxLimitRequestRatio += "}" - s := strings.Join([]string{`&LimitRangeItem{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Max:` + mapStringForMax + `,`, - `Min:` + mapStringForMin + `,`, - `Default:` + mapStringForDefault + `,`, - `DefaultRequest:` + mapStringForDefaultRequest + `,`, - `MaxLimitRequestRatio:` + mapStringForMaxLimitRequestRatio + `,`, - `}`, - }, "") - return s -} -func (this *LimitRangeList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]LimitRange{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "LimitRange", "LimitRange", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&LimitRangeList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *LimitRangeSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForLimits := "[]LimitRangeItem{" - for _, f := range this.Limits { - repeatedStringForLimits += strings.Replace(strings.Replace(f.String(), "LimitRangeItem", "LimitRangeItem", 1), `&`, ``, 1) + "," - } - repeatedStringForLimits += "}" - s := strings.Join([]string{`&LimitRangeSpec{`, - `Limits:` + repeatedStringForLimits + `,`, - `}`, - }, "") - return s -} -func (this *List) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RawExtension{" - for _, f := range this.Items { - repeatedStringForItems += fmt.Sprintf("%v", f) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&List{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *LoadBalancerIngress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LoadBalancerIngress{`, - `IP:` + fmt.Sprintf("%v", this.IP) + `,`, - `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, - `}`, - }, "") - return s -} -func (this *LoadBalancerStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForIngress := "[]LoadBalancerIngress{" - for _, f := range this.Ingress { - repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "LoadBalancerIngress", "LoadBalancerIngress", 1), `&`, ``, 1) + "," - } - repeatedStringForIngress += "}" - s := strings.Join([]string{`&LoadBalancerStatus{`, - `Ingress:` + repeatedStringForIngress + `,`, - `}`, - }, "") - return s -} -func (this *LocalObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LocalObjectReference{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *LocalVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LocalVolumeSource{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `FSType:` + valueToStringGenerated(this.FSType) + `,`, - `}`, - }, "") - return s -} -func (this *NFSVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NFSVolumeSource{`, - `Server:` + fmt.Sprintf("%v", this.Server) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *Namespace) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Namespace{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NamespaceSpec", "NamespaceSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "NamespaceStatus", "NamespaceStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NamespaceCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamespaceCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *NamespaceList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Namespace{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Namespace", "Namespace", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&NamespaceList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *NamespaceSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NamespaceSpec{`, - `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, - `}`, - }, "") - return s -} -func (this *NamespaceStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]NamespaceCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "NamespaceCondition", "NamespaceCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&NamespaceStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *Node) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Node{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NodeSpec", "NodeSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "NodeStatus", "NodeStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NodeAddress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeAddress{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Address:` + fmt.Sprintf("%v", this.Address) + `,`, - `}`, - }, "") - return s -} -func (this *NodeAffinity) String() string { - if this == nil { - return "nil" - } - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution := "[]PreferredSchedulingTerm{" - for _, f := range this.PreferredDuringSchedulingIgnoredDuringExecution { - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution += strings.Replace(strings.Replace(f.String(), "PreferredSchedulingTerm", "PreferredSchedulingTerm", 1), `&`, ``, 1) + "," - } - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution += "}" - s := strings.Join([]string{`&NodeAffinity{`, - `RequiredDuringSchedulingIgnoredDuringExecution:` + strings.Replace(this.RequiredDuringSchedulingIgnoredDuringExecution.String(), "NodeSelector", "NodeSelector", 1) + `,`, - `PreferredDuringSchedulingIgnoredDuringExecution:` + repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution + `,`, - `}`, - }, "") - return s -} -func (this *NodeCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastHeartbeatTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastHeartbeatTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *NodeConfigSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeConfigSource{`, - `ConfigMap:` + strings.Replace(this.ConfigMap.String(), "ConfigMapNodeConfigSource", "ConfigMapNodeConfigSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NodeConfigStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeConfigStatus{`, - `Assigned:` + strings.Replace(this.Assigned.String(), "NodeConfigSource", "NodeConfigSource", 1) + `,`, - `Active:` + strings.Replace(this.Active.String(), "NodeConfigSource", "NodeConfigSource", 1) + `,`, - `LastKnownGood:` + strings.Replace(this.LastKnownGood.String(), "NodeConfigSource", "NodeConfigSource", 1) + `,`, - `Error:` + fmt.Sprintf("%v", this.Error) + `,`, - `}`, - }, "") - return s -} -func (this *NodeDaemonEndpoints) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeDaemonEndpoints{`, - `KubeletEndpoint:` + strings.Replace(strings.Replace(this.KubeletEndpoint.String(), "DaemonEndpoint", "DaemonEndpoint", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NodeList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Node{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Node", "Node", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&NodeList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *NodeProxyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeProxyOptions{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `}`, - }, "") - return s -} -func (this *NodeResources) String() string { - if this == nil { - return "nil" - } - keysForCapacity := make([]string, 0, len(this.Capacity)) - for k := range this.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - mapStringForCapacity := "ResourceList{" - for _, k := range keysForCapacity { - mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) - } - mapStringForCapacity += "}" - s := strings.Join([]string{`&NodeResources{`, - `Capacity:` + mapStringForCapacity + `,`, - `}`, - }, "") - return s -} -func (this *NodeSelector) String() string { - if this == nil { - return "nil" - } - repeatedStringForNodeSelectorTerms := "[]NodeSelectorTerm{" - for _, f := range this.NodeSelectorTerms { - repeatedStringForNodeSelectorTerms += strings.Replace(strings.Replace(f.String(), "NodeSelectorTerm", "NodeSelectorTerm", 1), `&`, ``, 1) + "," - } - repeatedStringForNodeSelectorTerms += "}" - s := strings.Join([]string{`&NodeSelector{`, - `NodeSelectorTerms:` + repeatedStringForNodeSelectorTerms + `,`, - `}`, - }, "") - return s -} -func (this *NodeSelectorRequirement) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeSelectorRequirement{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, - `Values:` + fmt.Sprintf("%v", this.Values) + `,`, - `}`, - }, "") - return s -} -func (this *NodeSelectorTerm) String() string { - if this == nil { - return "nil" - } - repeatedStringForMatchExpressions := "[]NodeSelectorRequirement{" - for _, f := range this.MatchExpressions { - repeatedStringForMatchExpressions += strings.Replace(strings.Replace(f.String(), "NodeSelectorRequirement", "NodeSelectorRequirement", 1), `&`, ``, 1) + "," - } - repeatedStringForMatchExpressions += "}" - repeatedStringForMatchFields := "[]NodeSelectorRequirement{" - for _, f := range this.MatchFields { - repeatedStringForMatchFields += strings.Replace(strings.Replace(f.String(), "NodeSelectorRequirement", "NodeSelectorRequirement", 1), `&`, ``, 1) + "," - } - repeatedStringForMatchFields += "}" - s := strings.Join([]string{`&NodeSelectorTerm{`, - `MatchExpressions:` + repeatedStringForMatchExpressions + `,`, - `MatchFields:` + repeatedStringForMatchFields + `,`, - `}`, - }, "") - return s -} -func (this *NodeSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForTaints := "[]Taint{" - for _, f := range this.Taints { - repeatedStringForTaints += strings.Replace(strings.Replace(f.String(), "Taint", "Taint", 1), `&`, ``, 1) + "," - } - repeatedStringForTaints += "}" - s := strings.Join([]string{`&NodeSpec{`, - `PodCIDR:` + fmt.Sprintf("%v", this.PodCIDR) + `,`, - `DoNotUse_ExternalID:` + fmt.Sprintf("%v", this.DoNotUse_ExternalID) + `,`, - `ProviderID:` + fmt.Sprintf("%v", this.ProviderID) + `,`, - `Unschedulable:` + fmt.Sprintf("%v", this.Unschedulable) + `,`, - `Taints:` + repeatedStringForTaints + `,`, - `ConfigSource:` + strings.Replace(this.ConfigSource.String(), "NodeConfigSource", "NodeConfigSource", 1) + `,`, - `PodCIDRs:` + fmt.Sprintf("%v", this.PodCIDRs) + `,`, - `}`, - }, "") - return s -} -func (this *NodeStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]NodeCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "NodeCondition", "NodeCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - repeatedStringForAddresses := "[]NodeAddress{" - for _, f := range this.Addresses { - repeatedStringForAddresses += strings.Replace(strings.Replace(f.String(), "NodeAddress", "NodeAddress", 1), `&`, ``, 1) + "," - } - repeatedStringForAddresses += "}" - repeatedStringForImages := "[]ContainerImage{" - for _, f := range this.Images { - repeatedStringForImages += strings.Replace(strings.Replace(f.String(), "ContainerImage", "ContainerImage", 1), `&`, ``, 1) + "," - } - repeatedStringForImages += "}" - repeatedStringForVolumesAttached := "[]AttachedVolume{" - for _, f := range this.VolumesAttached { - repeatedStringForVolumesAttached += strings.Replace(strings.Replace(f.String(), "AttachedVolume", "AttachedVolume", 1), `&`, ``, 1) + "," - } - repeatedStringForVolumesAttached += "}" - keysForCapacity := make([]string, 0, len(this.Capacity)) - for k := range this.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - mapStringForCapacity := "ResourceList{" - for _, k := range keysForCapacity { - mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) - } - mapStringForCapacity += "}" - keysForAllocatable := make([]string, 0, len(this.Allocatable)) - for k := range this.Allocatable { - keysForAllocatable = append(keysForAllocatable, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAllocatable) - mapStringForAllocatable := "ResourceList{" - for _, k := range keysForAllocatable { - mapStringForAllocatable += fmt.Sprintf("%v: %v,", k, this.Allocatable[ResourceName(k)]) - } - mapStringForAllocatable += "}" - s := strings.Join([]string{`&NodeStatus{`, - `Capacity:` + mapStringForCapacity + `,`, - `Allocatable:` + mapStringForAllocatable + `,`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `Addresses:` + repeatedStringForAddresses + `,`, - `DaemonEndpoints:` + strings.Replace(strings.Replace(this.DaemonEndpoints.String(), "NodeDaemonEndpoints", "NodeDaemonEndpoints", 1), `&`, ``, 1) + `,`, - `NodeInfo:` + strings.Replace(strings.Replace(this.NodeInfo.String(), "NodeSystemInfo", "NodeSystemInfo", 1), `&`, ``, 1) + `,`, - `Images:` + repeatedStringForImages + `,`, - `VolumesInUse:` + fmt.Sprintf("%v", this.VolumesInUse) + `,`, - `VolumesAttached:` + repeatedStringForVolumesAttached + `,`, - `Config:` + strings.Replace(this.Config.String(), "NodeConfigStatus", "NodeConfigStatus", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NodeSystemInfo) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NodeSystemInfo{`, - `MachineID:` + fmt.Sprintf("%v", this.MachineID) + `,`, - `SystemUUID:` + fmt.Sprintf("%v", this.SystemUUID) + `,`, - `BootID:` + fmt.Sprintf("%v", this.BootID) + `,`, - `KernelVersion:` + fmt.Sprintf("%v", this.KernelVersion) + `,`, - `OSImage:` + fmt.Sprintf("%v", this.OSImage) + `,`, - `ContainerRuntimeVersion:` + fmt.Sprintf("%v", this.ContainerRuntimeVersion) + `,`, - `KubeletVersion:` + fmt.Sprintf("%v", this.KubeletVersion) + `,`, - `KubeProxyVersion:` + fmt.Sprintf("%v", this.KubeProxyVersion) + `,`, - `OperatingSystem:` + fmt.Sprintf("%v", this.OperatingSystem) + `,`, - `Architecture:` + fmt.Sprintf("%v", this.Architecture) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectFieldSelector) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectFieldSelector{`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `FieldPath:` + fmt.Sprintf("%v", this.FieldPath) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ObjectReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `FieldPath:` + fmt.Sprintf("%v", this.FieldPath) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolume{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PersistentVolumeSpec", "PersistentVolumeSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PersistentVolumeStatus", "PersistentVolumeStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeClaim) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolumeClaim{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PersistentVolumeClaimSpec", "PersistentVolumeClaimSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PersistentVolumeClaimStatus", "PersistentVolumeClaimStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeClaimCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolumeClaimCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastProbeTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastProbeTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeClaimList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PersistentVolumeClaim{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PersistentVolumeClaim", "PersistentVolumeClaim", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PersistentVolumeClaimList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeClaimSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolumeClaimSpec{`, - `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, - `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "ResourceRequirements", 1), `&`, ``, 1) + `,`, - `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `StorageClassName:` + valueToStringGenerated(this.StorageClassName) + `,`, - `VolumeMode:` + valueToStringGenerated(this.VolumeMode) + `,`, - `DataSource:` + strings.Replace(this.DataSource.String(), "TypedLocalObjectReference", "TypedLocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeClaimStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]PersistentVolumeClaimCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PersistentVolumeClaimCondition", "PersistentVolumeClaimCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - keysForCapacity := make([]string, 0, len(this.Capacity)) - for k := range this.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - mapStringForCapacity := "ResourceList{" - for _, k := range keysForCapacity { - mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) - } - mapStringForCapacity += "}" - s := strings.Join([]string{`&PersistentVolumeClaimStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, - `Capacity:` + mapStringForCapacity + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeClaimVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolumeClaimVolumeSource{`, - `ClaimName:` + fmt.Sprintf("%v", this.ClaimName) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PersistentVolume{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PersistentVolume", "PersistentVolume", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PersistentVolumeList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolumeSource{`, - `GCEPersistentDisk:` + strings.Replace(this.GCEPersistentDisk.String(), "GCEPersistentDiskVolumeSource", "GCEPersistentDiskVolumeSource", 1) + `,`, - `AWSElasticBlockStore:` + strings.Replace(this.AWSElasticBlockStore.String(), "AWSElasticBlockStoreVolumeSource", "AWSElasticBlockStoreVolumeSource", 1) + `,`, - `HostPath:` + strings.Replace(this.HostPath.String(), "HostPathVolumeSource", "HostPathVolumeSource", 1) + `,`, - `Glusterfs:` + strings.Replace(this.Glusterfs.String(), "GlusterfsPersistentVolumeSource", "GlusterfsPersistentVolumeSource", 1) + `,`, - `NFS:` + strings.Replace(this.NFS.String(), "NFSVolumeSource", "NFSVolumeSource", 1) + `,`, - `RBD:` + strings.Replace(this.RBD.String(), "RBDPersistentVolumeSource", "RBDPersistentVolumeSource", 1) + `,`, - `ISCSI:` + strings.Replace(this.ISCSI.String(), "ISCSIPersistentVolumeSource", "ISCSIPersistentVolumeSource", 1) + `,`, - `Cinder:` + strings.Replace(this.Cinder.String(), "CinderPersistentVolumeSource", "CinderPersistentVolumeSource", 1) + `,`, - `CephFS:` + strings.Replace(this.CephFS.String(), "CephFSPersistentVolumeSource", "CephFSPersistentVolumeSource", 1) + `,`, - `FC:` + strings.Replace(this.FC.String(), "FCVolumeSource", "FCVolumeSource", 1) + `,`, - `Flocker:` + strings.Replace(this.Flocker.String(), "FlockerVolumeSource", "FlockerVolumeSource", 1) + `,`, - `FlexVolume:` + strings.Replace(this.FlexVolume.String(), "FlexPersistentVolumeSource", "FlexPersistentVolumeSource", 1) + `,`, - `AzureFile:` + strings.Replace(this.AzureFile.String(), "AzureFilePersistentVolumeSource", "AzureFilePersistentVolumeSource", 1) + `,`, - `VsphereVolume:` + strings.Replace(this.VsphereVolume.String(), "VsphereVirtualDiskVolumeSource", "VsphereVirtualDiskVolumeSource", 1) + `,`, - `Quobyte:` + strings.Replace(this.Quobyte.String(), "QuobyteVolumeSource", "QuobyteVolumeSource", 1) + `,`, - `AzureDisk:` + strings.Replace(this.AzureDisk.String(), "AzureDiskVolumeSource", "AzureDiskVolumeSource", 1) + `,`, - `PhotonPersistentDisk:` + strings.Replace(this.PhotonPersistentDisk.String(), "PhotonPersistentDiskVolumeSource", "PhotonPersistentDiskVolumeSource", 1) + `,`, - `PortworxVolume:` + strings.Replace(this.PortworxVolume.String(), "PortworxVolumeSource", "PortworxVolumeSource", 1) + `,`, - `ScaleIO:` + strings.Replace(this.ScaleIO.String(), "ScaleIOPersistentVolumeSource", "ScaleIOPersistentVolumeSource", 1) + `,`, - `Local:` + strings.Replace(this.Local.String(), "LocalVolumeSource", "LocalVolumeSource", 1) + `,`, - `StorageOS:` + strings.Replace(this.StorageOS.String(), "StorageOSPersistentVolumeSource", "StorageOSPersistentVolumeSource", 1) + `,`, - `CSI:` + strings.Replace(this.CSI.String(), "CSIPersistentVolumeSource", "CSIPersistentVolumeSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeSpec) String() string { - if this == nil { - return "nil" - } - keysForCapacity := make([]string, 0, len(this.Capacity)) - for k := range this.Capacity { - keysForCapacity = append(keysForCapacity, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForCapacity) - mapStringForCapacity := "ResourceList{" - for _, k := range keysForCapacity { - mapStringForCapacity += fmt.Sprintf("%v: %v,", k, this.Capacity[ResourceName(k)]) - } - mapStringForCapacity += "}" - s := strings.Join([]string{`&PersistentVolumeSpec{`, - `Capacity:` + mapStringForCapacity + `,`, - `PersistentVolumeSource:` + strings.Replace(strings.Replace(this.PersistentVolumeSource.String(), "PersistentVolumeSource", "PersistentVolumeSource", 1), `&`, ``, 1) + `,`, - `AccessModes:` + fmt.Sprintf("%v", this.AccessModes) + `,`, - `ClaimRef:` + strings.Replace(this.ClaimRef.String(), "ObjectReference", "ObjectReference", 1) + `,`, - `PersistentVolumeReclaimPolicy:` + fmt.Sprintf("%v", this.PersistentVolumeReclaimPolicy) + `,`, - `StorageClassName:` + fmt.Sprintf("%v", this.StorageClassName) + `,`, - `MountOptions:` + fmt.Sprintf("%v", this.MountOptions) + `,`, - `VolumeMode:` + valueToStringGenerated(this.VolumeMode) + `,`, - `NodeAffinity:` + strings.Replace(this.NodeAffinity.String(), "VolumeNodeAffinity", "VolumeNodeAffinity", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PersistentVolumeStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PersistentVolumeStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `}`, - }, "") - return s -} -func (this *PhotonPersistentDiskVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PhotonPersistentDiskVolumeSource{`, - `PdID:` + fmt.Sprintf("%v", this.PdID) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `}`, - }, "") - return s -} -func (this *Pod) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Pod{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodStatus", "PodStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodAffinity) String() string { - if this == nil { - return "nil" - } - repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution := "[]PodAffinityTerm{" - for _, f := range this.RequiredDuringSchedulingIgnoredDuringExecution { - repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution += strings.Replace(strings.Replace(f.String(), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + "," - } - repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution += "}" - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution := "[]WeightedPodAffinityTerm{" - for _, f := range this.PreferredDuringSchedulingIgnoredDuringExecution { - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution += strings.Replace(strings.Replace(f.String(), "WeightedPodAffinityTerm", "WeightedPodAffinityTerm", 1), `&`, ``, 1) + "," - } - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution += "}" - s := strings.Join([]string{`&PodAffinity{`, - `RequiredDuringSchedulingIgnoredDuringExecution:` + repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution + `,`, - `PreferredDuringSchedulingIgnoredDuringExecution:` + repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution + `,`, - `}`, - }, "") - return s -} -func (this *PodAffinityTerm) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodAffinityTerm{`, - `LabelSelector:` + strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Namespaces:` + fmt.Sprintf("%v", this.Namespaces) + `,`, - `TopologyKey:` + fmt.Sprintf("%v", this.TopologyKey) + `,`, - `}`, - }, "") - return s -} -func (this *PodAntiAffinity) String() string { - if this == nil { - return "nil" - } - repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution := "[]PodAffinityTerm{" - for _, f := range this.RequiredDuringSchedulingIgnoredDuringExecution { - repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution += strings.Replace(strings.Replace(f.String(), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + "," - } - repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution += "}" - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution := "[]WeightedPodAffinityTerm{" - for _, f := range this.PreferredDuringSchedulingIgnoredDuringExecution { - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution += strings.Replace(strings.Replace(f.String(), "WeightedPodAffinityTerm", "WeightedPodAffinityTerm", 1), `&`, ``, 1) + "," - } - repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution += "}" - s := strings.Join([]string{`&PodAntiAffinity{`, - `RequiredDuringSchedulingIgnoredDuringExecution:` + repeatedStringForRequiredDuringSchedulingIgnoredDuringExecution + `,`, - `PreferredDuringSchedulingIgnoredDuringExecution:` + repeatedStringForPreferredDuringSchedulingIgnoredDuringExecution + `,`, - `}`, - }, "") - return s -} -func (this *PodAttachOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodAttachOptions{`, - `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, - `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, - `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, - `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, - `Container:` + fmt.Sprintf("%v", this.Container) + `,`, - `}`, - }, "") - return s -} -func (this *PodCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastProbeTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastProbeTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *PodDNSConfig) String() string { - if this == nil { - return "nil" - } - repeatedStringForOptions := "[]PodDNSConfigOption{" - for _, f := range this.Options { - repeatedStringForOptions += strings.Replace(strings.Replace(f.String(), "PodDNSConfigOption", "PodDNSConfigOption", 1), `&`, ``, 1) + "," - } - repeatedStringForOptions += "}" - s := strings.Join([]string{`&PodDNSConfig{`, - `Nameservers:` + fmt.Sprintf("%v", this.Nameservers) + `,`, - `Searches:` + fmt.Sprintf("%v", this.Searches) + `,`, - `Options:` + repeatedStringForOptions + `,`, - `}`, - }, "") - return s -} -func (this *PodDNSConfigOption) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodDNSConfigOption{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + valueToStringGenerated(this.Value) + `,`, - `}`, - }, "") - return s -} -func (this *PodExecOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodExecOptions{`, - `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, - `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, - `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, - `TTY:` + fmt.Sprintf("%v", this.TTY) + `,`, - `Container:` + fmt.Sprintf("%v", this.Container) + `,`, - `Command:` + fmt.Sprintf("%v", this.Command) + `,`, - `}`, - }, "") - return s -} -func (this *PodIP) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodIP{`, - `IP:` + fmt.Sprintf("%v", this.IP) + `,`, - `}`, - }, "") - return s -} -func (this *PodList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Pod{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Pod", "Pod", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PodList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PodLogOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodLogOptions{`, - `Container:` + fmt.Sprintf("%v", this.Container) + `,`, - `Follow:` + fmt.Sprintf("%v", this.Follow) + `,`, - `Previous:` + fmt.Sprintf("%v", this.Previous) + `,`, - `SinceSeconds:` + valueToStringGenerated(this.SinceSeconds) + `,`, - `SinceTime:` + strings.Replace(fmt.Sprintf("%v", this.SinceTime), "Time", "v1.Time", 1) + `,`, - `Timestamps:` + fmt.Sprintf("%v", this.Timestamps) + `,`, - `TailLines:` + valueToStringGenerated(this.TailLines) + `,`, - `LimitBytes:` + valueToStringGenerated(this.LimitBytes) + `,`, - `}`, - }, "") - return s -} -func (this *PodPortForwardOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodPortForwardOptions{`, - `Ports:` + fmt.Sprintf("%v", this.Ports) + `,`, - `}`, - }, "") - return s -} -func (this *PodProxyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodProxyOptions{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `}`, - }, "") - return s -} -func (this *PodReadinessGate) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodReadinessGate{`, - `ConditionType:` + fmt.Sprintf("%v", this.ConditionType) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityContext) String() string { - if this == nil { - return "nil" - } - repeatedStringForSysctls := "[]Sysctl{" - for _, f := range this.Sysctls { - repeatedStringForSysctls += strings.Replace(strings.Replace(f.String(), "Sysctl", "Sysctl", 1), `&`, ``, 1) + "," - } - repeatedStringForSysctls += "}" - s := strings.Join([]string{`&PodSecurityContext{`, - `SELinuxOptions:` + strings.Replace(this.SELinuxOptions.String(), "SELinuxOptions", "SELinuxOptions", 1) + `,`, - `RunAsUser:` + valueToStringGenerated(this.RunAsUser) + `,`, - `RunAsNonRoot:` + valueToStringGenerated(this.RunAsNonRoot) + `,`, - `SupplementalGroups:` + fmt.Sprintf("%v", this.SupplementalGroups) + `,`, - `FSGroup:` + valueToStringGenerated(this.FSGroup) + `,`, - `RunAsGroup:` + valueToStringGenerated(this.RunAsGroup) + `,`, - `Sysctls:` + repeatedStringForSysctls + `,`, - `WindowsOptions:` + strings.Replace(this.WindowsOptions.String(), "WindowsSecurityContextOptions", "WindowsSecurityContextOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSignature) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSignature{`, - `PodController:` + strings.Replace(fmt.Sprintf("%v", this.PodController), "OwnerReference", "v1.OwnerReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForVolumes := "[]Volume{" - for _, f := range this.Volumes { - repeatedStringForVolumes += strings.Replace(strings.Replace(f.String(), "Volume", "Volume", 1), `&`, ``, 1) + "," - } - repeatedStringForVolumes += "}" - repeatedStringForContainers := "[]Container{" - for _, f := range this.Containers { - repeatedStringForContainers += strings.Replace(strings.Replace(f.String(), "Container", "Container", 1), `&`, ``, 1) + "," - } - repeatedStringForContainers += "}" - repeatedStringForImagePullSecrets := "[]LocalObjectReference{" - for _, f := range this.ImagePullSecrets { - repeatedStringForImagePullSecrets += strings.Replace(strings.Replace(f.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + "," - } - repeatedStringForImagePullSecrets += "}" - repeatedStringForInitContainers := "[]Container{" - for _, f := range this.InitContainers { - repeatedStringForInitContainers += strings.Replace(strings.Replace(f.String(), "Container", "Container", 1), `&`, ``, 1) + "," - } - repeatedStringForInitContainers += "}" - repeatedStringForTolerations := "[]Toleration{" - for _, f := range this.Tolerations { - repeatedStringForTolerations += strings.Replace(strings.Replace(f.String(), "Toleration", "Toleration", 1), `&`, ``, 1) + "," - } - repeatedStringForTolerations += "}" - repeatedStringForHostAliases := "[]HostAlias{" - for _, f := range this.HostAliases { - repeatedStringForHostAliases += strings.Replace(strings.Replace(f.String(), "HostAlias", "HostAlias", 1), `&`, ``, 1) + "," - } - repeatedStringForHostAliases += "}" - repeatedStringForReadinessGates := "[]PodReadinessGate{" - for _, f := range this.ReadinessGates { - repeatedStringForReadinessGates += strings.Replace(strings.Replace(f.String(), "PodReadinessGate", "PodReadinessGate", 1), `&`, ``, 1) + "," - } - repeatedStringForReadinessGates += "}" - repeatedStringForTopologySpreadConstraints := "[]TopologySpreadConstraint{" - for _, f := range this.TopologySpreadConstraints { - repeatedStringForTopologySpreadConstraints += strings.Replace(strings.Replace(f.String(), "TopologySpreadConstraint", "TopologySpreadConstraint", 1), `&`, ``, 1) + "," - } - repeatedStringForTopologySpreadConstraints += "}" - repeatedStringForEphemeralContainers := "[]EphemeralContainer{" - for _, f := range this.EphemeralContainers { - repeatedStringForEphemeralContainers += strings.Replace(strings.Replace(f.String(), "EphemeralContainer", "EphemeralContainer", 1), `&`, ``, 1) + "," - } - repeatedStringForEphemeralContainers += "}" - keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) - for k := range this.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - mapStringForNodeSelector := "map[string]string{" - for _, k := range keysForNodeSelector { - mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) - } - mapStringForNodeSelector += "}" - keysForOverhead := make([]string, 0, len(this.Overhead)) - for k := range this.Overhead { - keysForOverhead = append(keysForOverhead, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForOverhead) - mapStringForOverhead := "ResourceList{" - for _, k := range keysForOverhead { - mapStringForOverhead += fmt.Sprintf("%v: %v,", k, this.Overhead[ResourceName(k)]) - } - mapStringForOverhead += "}" - s := strings.Join([]string{`&PodSpec{`, - `Volumes:` + repeatedStringForVolumes + `,`, - `Containers:` + repeatedStringForContainers + `,`, - `RestartPolicy:` + fmt.Sprintf("%v", this.RestartPolicy) + `,`, - `TerminationGracePeriodSeconds:` + valueToStringGenerated(this.TerminationGracePeriodSeconds) + `,`, - `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `DNSPolicy:` + fmt.Sprintf("%v", this.DNSPolicy) + `,`, - `NodeSelector:` + mapStringForNodeSelector + `,`, - `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, - `DeprecatedServiceAccount:` + fmt.Sprintf("%v", this.DeprecatedServiceAccount) + `,`, - `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, - `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, - `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, - `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, - `SecurityContext:` + strings.Replace(this.SecurityContext.String(), "PodSecurityContext", "PodSecurityContext", 1) + `,`, - `ImagePullSecrets:` + repeatedStringForImagePullSecrets + `,`, - `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, - `Subdomain:` + fmt.Sprintf("%v", this.Subdomain) + `,`, - `Affinity:` + strings.Replace(this.Affinity.String(), "Affinity", "Affinity", 1) + `,`, - `SchedulerName:` + fmt.Sprintf("%v", this.SchedulerName) + `,`, - `InitContainers:` + repeatedStringForInitContainers + `,`, - `AutomountServiceAccountToken:` + valueToStringGenerated(this.AutomountServiceAccountToken) + `,`, - `Tolerations:` + repeatedStringForTolerations + `,`, - `HostAliases:` + repeatedStringForHostAliases + `,`, - `PriorityClassName:` + fmt.Sprintf("%v", this.PriorityClassName) + `,`, - `Priority:` + valueToStringGenerated(this.Priority) + `,`, - `DNSConfig:` + strings.Replace(this.DNSConfig.String(), "PodDNSConfig", "PodDNSConfig", 1) + `,`, - `ShareProcessNamespace:` + valueToStringGenerated(this.ShareProcessNamespace) + `,`, - `ReadinessGates:` + repeatedStringForReadinessGates + `,`, - `RuntimeClassName:` + valueToStringGenerated(this.RuntimeClassName) + `,`, - `EnableServiceLinks:` + valueToStringGenerated(this.EnableServiceLinks) + `,`, - `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`, - `Overhead:` + mapStringForOverhead + `,`, - `TopologySpreadConstraints:` + repeatedStringForTopologySpreadConstraints + `,`, - `EphemeralContainers:` + repeatedStringForEphemeralContainers + `,`, - `}`, - }, "") - return s -} -func (this *PodStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]PodCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "PodCondition", "PodCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - repeatedStringForContainerStatuses := "[]ContainerStatus{" - for _, f := range this.ContainerStatuses { - repeatedStringForContainerStatuses += strings.Replace(strings.Replace(f.String(), "ContainerStatus", "ContainerStatus", 1), `&`, ``, 1) + "," - } - repeatedStringForContainerStatuses += "}" - repeatedStringForInitContainerStatuses := "[]ContainerStatus{" - for _, f := range this.InitContainerStatuses { - repeatedStringForInitContainerStatuses += strings.Replace(strings.Replace(f.String(), "ContainerStatus", "ContainerStatus", 1), `&`, ``, 1) + "," - } - repeatedStringForInitContainerStatuses += "}" - repeatedStringForPodIPs := "[]PodIP{" - for _, f := range this.PodIPs { - repeatedStringForPodIPs += strings.Replace(strings.Replace(f.String(), "PodIP", "PodIP", 1), `&`, ``, 1) + "," - } - repeatedStringForPodIPs += "}" - repeatedStringForEphemeralContainerStatuses := "[]ContainerStatus{" - for _, f := range this.EphemeralContainerStatuses { - repeatedStringForEphemeralContainerStatuses += strings.Replace(strings.Replace(f.String(), "ContainerStatus", "ContainerStatus", 1), `&`, ``, 1) + "," - } - repeatedStringForEphemeralContainerStatuses += "}" - s := strings.Join([]string{`&PodStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, - `PodIP:` + fmt.Sprintf("%v", this.PodIP) + `,`, - `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "v1.Time", 1) + `,`, - `ContainerStatuses:` + repeatedStringForContainerStatuses + `,`, - `QOSClass:` + fmt.Sprintf("%v", this.QOSClass) + `,`, - `InitContainerStatuses:` + repeatedStringForInitContainerStatuses + `,`, - `NominatedNodeName:` + fmt.Sprintf("%v", this.NominatedNodeName) + `,`, - `PodIPs:` + repeatedStringForPodIPs + `,`, - `EphemeralContainerStatuses:` + repeatedStringForEphemeralContainerStatuses + `,`, - `}`, - }, "") - return s -} -func (this *PodStatusResult) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodStatusResult{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodStatus", "PodStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodTemplate) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodTemplate{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Template:` + strings.Replace(strings.Replace(this.Template.String(), "PodTemplateSpec", "PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodTemplateList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PodTemplate{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodTemplate", "PodTemplate", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PodTemplateList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PodTemplateSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodTemplateSpec{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PortworxVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PortworxVolumeSource{`, - `VolumeID:` + fmt.Sprintf("%v", this.VolumeID) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *Preconditions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Preconditions{`, - `UID:` + valueToStringGenerated(this.UID) + `,`, - `}`, - }, "") - return s -} -func (this *PreferAvoidPodsEntry) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PreferAvoidPodsEntry{`, - `PodSignature:` + strings.Replace(strings.Replace(this.PodSignature.String(), "PodSignature", "PodSignature", 1), `&`, ``, 1) + `,`, - `EvictionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EvictionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *PreferredSchedulingTerm) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PreferredSchedulingTerm{`, - `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, - `Preference:` + strings.Replace(strings.Replace(this.Preference.String(), "NodeSelectorTerm", "NodeSelectorTerm", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Probe) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Probe{`, - `Handler:` + strings.Replace(strings.Replace(this.Handler.String(), "Handler", "Handler", 1), `&`, ``, 1) + `,`, - `InitialDelaySeconds:` + fmt.Sprintf("%v", this.InitialDelaySeconds) + `,`, - `TimeoutSeconds:` + fmt.Sprintf("%v", this.TimeoutSeconds) + `,`, - `PeriodSeconds:` + fmt.Sprintf("%v", this.PeriodSeconds) + `,`, - `SuccessThreshold:` + fmt.Sprintf("%v", this.SuccessThreshold) + `,`, - `FailureThreshold:` + fmt.Sprintf("%v", this.FailureThreshold) + `,`, - `}`, - }, "") - return s -} -func (this *ProjectedVolumeSource) String() string { - if this == nil { - return "nil" - } - repeatedStringForSources := "[]VolumeProjection{" - for _, f := range this.Sources { - repeatedStringForSources += strings.Replace(strings.Replace(f.String(), "VolumeProjection", "VolumeProjection", 1), `&`, ``, 1) + "," - } - repeatedStringForSources += "}" - s := strings.Join([]string{`&ProjectedVolumeSource{`, - `Sources:` + repeatedStringForSources + `,`, - `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, - `}`, - }, "") - return s -} -func (this *QuobyteVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&QuobyteVolumeSource{`, - `Registry:` + fmt.Sprintf("%v", this.Registry) + `,`, - `Volume:` + fmt.Sprintf("%v", this.Volume) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Tenant:` + fmt.Sprintf("%v", this.Tenant) + `,`, - `}`, - }, "") - return s -} -func (this *RBDPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RBDPersistentVolumeSource{`, - `CephMonitors:` + fmt.Sprintf("%v", this.CephMonitors) + `,`, - `RBDImage:` + fmt.Sprintf("%v", this.RBDImage) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `RBDPool:` + fmt.Sprintf("%v", this.RBDPool) + `,`, - `RadosUser:` + fmt.Sprintf("%v", this.RadosUser) + `,`, - `Keyring:` + fmt.Sprintf("%v", this.Keyring) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *RBDVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RBDVolumeSource{`, - `CephMonitors:` + fmt.Sprintf("%v", this.CephMonitors) + `,`, - `RBDImage:` + fmt.Sprintf("%v", this.RBDImage) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `RBDPool:` + fmt.Sprintf("%v", this.RBDPool) + `,`, - `RadosUser:` + fmt.Sprintf("%v", this.RadosUser) + `,`, - `Keyring:` + fmt.Sprintf("%v", this.Keyring) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *RangeAllocation) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RangeAllocation{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Range:` + fmt.Sprintf("%v", this.Range) + `,`, - `Data:` + valueToStringGenerated(this.Data) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationController) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationController{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicationControllerSpec", "ReplicationControllerSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicationControllerStatus", "ReplicationControllerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationControllerCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationControllerCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationControllerList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ReplicationController{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ReplicationController", "ReplicationController", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ReplicationControllerList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationControllerSpec) String() string { - if this == nil { - return "nil" - } - keysForSelector := make([]string, 0, len(this.Selector)) - for k := range this.Selector { - keysForSelector = append(keysForSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - mapStringForSelector := "map[string]string{" - for _, k := range keysForSelector { - mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) - } - mapStringForSelector += "}" - s := strings.Join([]string{`&ReplicationControllerSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + mapStringForSelector + `,`, - `Template:` + strings.Replace(this.Template.String(), "PodTemplateSpec", "PodTemplateSpec", 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationControllerStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]ReplicationControllerCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ReplicationControllerCondition", "ReplicationControllerCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ReplicationControllerStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *ResourceFieldSelector) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceFieldSelector{`, - `ContainerName:` + fmt.Sprintf("%v", this.ContainerName) + `,`, - `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, - `Divisor:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Divisor), "Quantity", "resource.Quantity", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceQuota) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ResourceQuota{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResourceQuotaSpec", "ResourceQuotaSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ResourceQuotaStatus", "ResourceQuotaStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceQuotaList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ResourceQuota{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ResourceQuota", "ResourceQuota", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ResourceQuotaList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ResourceQuotaSpec) String() string { - if this == nil { - return "nil" - } - keysForHard := make([]string, 0, len(this.Hard)) - for k := range this.Hard { - keysForHard = append(keysForHard, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForHard) - mapStringForHard := "ResourceList{" - for _, k := range keysForHard { - mapStringForHard += fmt.Sprintf("%v: %v,", k, this.Hard[ResourceName(k)]) - } - mapStringForHard += "}" - s := strings.Join([]string{`&ResourceQuotaSpec{`, - `Hard:` + mapStringForHard + `,`, - `Scopes:` + fmt.Sprintf("%v", this.Scopes) + `,`, - `ScopeSelector:` + strings.Replace(this.ScopeSelector.String(), "ScopeSelector", "ScopeSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ResourceQuotaStatus) String() string { - if this == nil { - return "nil" - } - keysForHard := make([]string, 0, len(this.Hard)) - for k := range this.Hard { - keysForHard = append(keysForHard, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForHard) - mapStringForHard := "ResourceList{" - for _, k := range keysForHard { - mapStringForHard += fmt.Sprintf("%v: %v,", k, this.Hard[ResourceName(k)]) - } - mapStringForHard += "}" - keysForUsed := make([]string, 0, len(this.Used)) - for k := range this.Used { - keysForUsed = append(keysForUsed, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUsed) - mapStringForUsed := "ResourceList{" - for _, k := range keysForUsed { - mapStringForUsed += fmt.Sprintf("%v: %v,", k, this.Used[ResourceName(k)]) - } - mapStringForUsed += "}" - s := strings.Join([]string{`&ResourceQuotaStatus{`, - `Hard:` + mapStringForHard + `,`, - `Used:` + mapStringForUsed + `,`, - `}`, - }, "") - return s -} -func (this *ResourceRequirements) String() string { - if this == nil { - return "nil" - } - keysForLimits := make([]string, 0, len(this.Limits)) - for k := range this.Limits { - keysForLimits = append(keysForLimits, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLimits) - mapStringForLimits := "ResourceList{" - for _, k := range keysForLimits { - mapStringForLimits += fmt.Sprintf("%v: %v,", k, this.Limits[ResourceName(k)]) - } - mapStringForLimits += "}" - keysForRequests := make([]string, 0, len(this.Requests)) - for k := range this.Requests { - keysForRequests = append(keysForRequests, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForRequests) - mapStringForRequests := "ResourceList{" - for _, k := range keysForRequests { - mapStringForRequests += fmt.Sprintf("%v: %v,", k, this.Requests[ResourceName(k)]) - } - mapStringForRequests += "}" - s := strings.Join([]string{`&ResourceRequirements{`, - `Limits:` + mapStringForLimits + `,`, - `Requests:` + mapStringForRequests + `,`, - `}`, - }, "") - return s -} -func (this *SELinuxOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SELinuxOptions{`, - `User:` + fmt.Sprintf("%v", this.User) + `,`, - `Role:` + fmt.Sprintf("%v", this.Role) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Level:` + fmt.Sprintf("%v", this.Level) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleIOPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleIOPersistentVolumeSource{`, - `Gateway:` + fmt.Sprintf("%v", this.Gateway) + `,`, - `System:` + fmt.Sprintf("%v", this.System) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "SecretReference", "SecretReference", 1) + `,`, - `SSLEnabled:` + fmt.Sprintf("%v", this.SSLEnabled) + `,`, - `ProtectionDomain:` + fmt.Sprintf("%v", this.ProtectionDomain) + `,`, - `StoragePool:` + fmt.Sprintf("%v", this.StoragePool) + `,`, - `StorageMode:` + fmt.Sprintf("%v", this.StorageMode) + `,`, - `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleIOVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleIOVolumeSource{`, - `Gateway:` + fmt.Sprintf("%v", this.Gateway) + `,`, - `System:` + fmt.Sprintf("%v", this.System) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `SSLEnabled:` + fmt.Sprintf("%v", this.SSLEnabled) + `,`, - `ProtectionDomain:` + fmt.Sprintf("%v", this.ProtectionDomain) + `,`, - `StoragePool:` + fmt.Sprintf("%v", this.StoragePool) + `,`, - `StorageMode:` + fmt.Sprintf("%v", this.StorageMode) + `,`, - `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *ScopeSelector) String() string { - if this == nil { - return "nil" - } - repeatedStringForMatchExpressions := "[]ScopedResourceSelectorRequirement{" - for _, f := range this.MatchExpressions { - repeatedStringForMatchExpressions += strings.Replace(strings.Replace(f.String(), "ScopedResourceSelectorRequirement", "ScopedResourceSelectorRequirement", 1), `&`, ``, 1) + "," - } - repeatedStringForMatchExpressions += "}" - s := strings.Join([]string{`&ScopeSelector{`, - `MatchExpressions:` + repeatedStringForMatchExpressions + `,`, - `}`, - }, "") - return s -} -func (this *ScopedResourceSelectorRequirement) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScopedResourceSelectorRequirement{`, - `ScopeName:` + fmt.Sprintf("%v", this.ScopeName) + `,`, - `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, - `Values:` + fmt.Sprintf("%v", this.Values) + `,`, - `}`, - }, "") - return s -} -func (this *Secret) String() string { - if this == nil { - return "nil" - } - keysForData := make([]string, 0, len(this.Data)) - for k := range this.Data { - keysForData = append(keysForData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForData) - mapStringForData := "map[string][]byte{" - for _, k := range keysForData { - mapStringForData += fmt.Sprintf("%v: %v,", k, this.Data[k]) - } - mapStringForData += "}" - keysForStringData := make([]string, 0, len(this.StringData)) - for k := range this.StringData { - keysForStringData = append(keysForStringData, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForStringData) - mapStringForStringData := "map[string]string{" - for _, k := range keysForStringData { - mapStringForStringData += fmt.Sprintf("%v: %v,", k, this.StringData[k]) - } - mapStringForStringData += "}" - s := strings.Join([]string{`&Secret{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Data:` + mapStringForData + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `StringData:` + mapStringForStringData + `,`, - `}`, - }, "") - return s -} -func (this *SecretEnvSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecretEnvSource{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *SecretKeySelector) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecretKeySelector{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *SecretList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Secret{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Secret", "Secret", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&SecretList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *SecretProjection) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]KeyToPath{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "KeyToPath", "KeyToPath", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&SecretProjection{`, - `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *SecretReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecretReference{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func (this *SecretVolumeSource) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]KeyToPath{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "KeyToPath", "KeyToPath", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&SecretVolumeSource{`, - `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, - `Items:` + repeatedStringForItems + `,`, - `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, - `Optional:` + valueToStringGenerated(this.Optional) + `,`, - `}`, - }, "") - return s -} -func (this *SecurityContext) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SecurityContext{`, - `Capabilities:` + strings.Replace(this.Capabilities.String(), "Capabilities", "Capabilities", 1) + `,`, - `Privileged:` + valueToStringGenerated(this.Privileged) + `,`, - `SELinuxOptions:` + strings.Replace(this.SELinuxOptions.String(), "SELinuxOptions", "SELinuxOptions", 1) + `,`, - `RunAsUser:` + valueToStringGenerated(this.RunAsUser) + `,`, - `RunAsNonRoot:` + valueToStringGenerated(this.RunAsNonRoot) + `,`, - `ReadOnlyRootFilesystem:` + valueToStringGenerated(this.ReadOnlyRootFilesystem) + `,`, - `AllowPrivilegeEscalation:` + valueToStringGenerated(this.AllowPrivilegeEscalation) + `,`, - `RunAsGroup:` + valueToStringGenerated(this.RunAsGroup) + `,`, - `ProcMount:` + valueToStringGenerated(this.ProcMount) + `,`, - `WindowsOptions:` + strings.Replace(this.WindowsOptions.String(), "WindowsSecurityContextOptions", "WindowsSecurityContextOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SerializedReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SerializedReference{`, - `Reference:` + strings.Replace(strings.Replace(this.Reference.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *Service) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Service{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ServiceSpec", "ServiceSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ServiceStatus", "ServiceStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceAccount) String() string { - if this == nil { - return "nil" - } - repeatedStringForSecrets := "[]ObjectReference{" - for _, f := range this.Secrets { - repeatedStringForSecrets += strings.Replace(strings.Replace(f.String(), "ObjectReference", "ObjectReference", 1), `&`, ``, 1) + "," - } - repeatedStringForSecrets += "}" - repeatedStringForImagePullSecrets := "[]LocalObjectReference{" - for _, f := range this.ImagePullSecrets { - repeatedStringForImagePullSecrets += strings.Replace(strings.Replace(f.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + "," - } - repeatedStringForImagePullSecrets += "}" - s := strings.Join([]string{`&ServiceAccount{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Secrets:` + repeatedStringForSecrets + `,`, - `ImagePullSecrets:` + repeatedStringForImagePullSecrets + `,`, - `AutomountServiceAccountToken:` + valueToStringGenerated(this.AutomountServiceAccountToken) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceAccountList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ServiceAccount{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ServiceAccount", "ServiceAccount", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ServiceAccountList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ServiceAccountTokenProjection) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceAccountTokenProjection{`, - `Audience:` + fmt.Sprintf("%v", this.Audience) + `,`, - `ExpirationSeconds:` + valueToStringGenerated(this.ExpirationSeconds) + `,`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Service{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Service", "Service", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ServiceList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ServicePort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServicePort{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Protocol:` + fmt.Sprintf("%v", this.Protocol) + `,`, - `Port:` + fmt.Sprintf("%v", this.Port) + `,`, - `TargetPort:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.TargetPort), "IntOrString", "intstr.IntOrString", 1), `&`, ``, 1) + `,`, - `NodePort:` + fmt.Sprintf("%v", this.NodePort) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceProxyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceProxyOptions{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]ServicePort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "ServicePort", "ServicePort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - keysForSelector := make([]string, 0, len(this.Selector)) - for k := range this.Selector { - keysForSelector = append(keysForSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - mapStringForSelector := "map[string]string{" - for _, k := range keysForSelector { - mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) - } - mapStringForSelector += "}" - s := strings.Join([]string{`&ServiceSpec{`, - `Ports:` + repeatedStringForPorts + `,`, - `Selector:` + mapStringForSelector + `,`, - `ClusterIP:` + fmt.Sprintf("%v", this.ClusterIP) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `ExternalIPs:` + fmt.Sprintf("%v", this.ExternalIPs) + `,`, - `SessionAffinity:` + fmt.Sprintf("%v", this.SessionAffinity) + `,`, - `LoadBalancerIP:` + fmt.Sprintf("%v", this.LoadBalancerIP) + `,`, - `LoadBalancerSourceRanges:` + fmt.Sprintf("%v", this.LoadBalancerSourceRanges) + `,`, - `ExternalName:` + fmt.Sprintf("%v", this.ExternalName) + `,`, - `ExternalTrafficPolicy:` + fmt.Sprintf("%v", this.ExternalTrafficPolicy) + `,`, - `HealthCheckNodePort:` + fmt.Sprintf("%v", this.HealthCheckNodePort) + `,`, - `PublishNotReadyAddresses:` + fmt.Sprintf("%v", this.PublishNotReadyAddresses) + `,`, - `SessionAffinityConfig:` + strings.Replace(this.SessionAffinityConfig.String(), "SessionAffinityConfig", "SessionAffinityConfig", 1) + `,`, - `IPFamily:` + valueToStringGenerated(this.IPFamily) + `,`, - `}`, - }, "") - return s -} -func (this *ServiceStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServiceStatus{`, - `LoadBalancer:` + strings.Replace(strings.Replace(this.LoadBalancer.String(), "LoadBalancerStatus", "LoadBalancerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *SessionAffinityConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SessionAffinityConfig{`, - `ClientIP:` + strings.Replace(this.ClientIP.String(), "ClientIPConfig", "ClientIPConfig", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StorageOSPersistentVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StorageOSPersistentVolumeSource{`, - `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, - `VolumeNamespace:` + fmt.Sprintf("%v", this.VolumeNamespace) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "ObjectReference", "ObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *StorageOSVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StorageOSVolumeSource{`, - `VolumeName:` + fmt.Sprintf("%v", this.VolumeName) + `,`, - `VolumeNamespace:` + fmt.Sprintf("%v", this.VolumeNamespace) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `SecretRef:` + strings.Replace(this.SecretRef.String(), "LocalObjectReference", "LocalObjectReference", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Sysctl) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Sysctl{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `}`, - }, "") - return s -} -func (this *TCPSocketAction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TCPSocketAction{`, - `Port:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "intstr.IntOrString", 1), `&`, ``, 1) + `,`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `}`, - }, "") - return s -} -func (this *Taint) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Taint{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, - `TimeAdded:` + strings.Replace(fmt.Sprintf("%v", this.TimeAdded), "Time", "v1.Time", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Toleration) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Toleration{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `Effect:` + fmt.Sprintf("%v", this.Effect) + `,`, - `TolerationSeconds:` + valueToStringGenerated(this.TolerationSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *TopologySelectorLabelRequirement) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TopologySelectorLabelRequirement{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Values:` + fmt.Sprintf("%v", this.Values) + `,`, - `}`, - }, "") - return s -} -func (this *TopologySelectorTerm) String() string { - if this == nil { - return "nil" - } - repeatedStringForMatchLabelExpressions := "[]TopologySelectorLabelRequirement{" - for _, f := range this.MatchLabelExpressions { - repeatedStringForMatchLabelExpressions += strings.Replace(strings.Replace(f.String(), "TopologySelectorLabelRequirement", "TopologySelectorLabelRequirement", 1), `&`, ``, 1) + "," - } - repeatedStringForMatchLabelExpressions += "}" - s := strings.Join([]string{`&TopologySelectorTerm{`, - `MatchLabelExpressions:` + repeatedStringForMatchLabelExpressions + `,`, - `}`, - }, "") - return s -} -func (this *TopologySpreadConstraint) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TopologySpreadConstraint{`, - `MaxSkew:` + fmt.Sprintf("%v", this.MaxSkew) + `,`, - `TopologyKey:` + fmt.Sprintf("%v", this.TopologyKey) + `,`, - `WhenUnsatisfiable:` + fmt.Sprintf("%v", this.WhenUnsatisfiable) + `,`, - `LabelSelector:` + strings.Replace(fmt.Sprintf("%v", this.LabelSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *TypedLocalObjectReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TypedLocalObjectReference{`, - `APIGroup:` + valueToStringGenerated(this.APIGroup) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Volume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Volume{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `VolumeSource:` + strings.Replace(strings.Replace(this.VolumeSource.String(), "VolumeSource", "VolumeSource", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeDevice) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeDevice{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `DevicePath:` + fmt.Sprintf("%v", this.DevicePath) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeMount) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeMount{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `MountPath:` + fmt.Sprintf("%v", this.MountPath) + `,`, - `SubPath:` + fmt.Sprintf("%v", this.SubPath) + `,`, - `MountPropagation:` + valueToStringGenerated(this.MountPropagation) + `,`, - `SubPathExpr:` + fmt.Sprintf("%v", this.SubPathExpr) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeNodeAffinity) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeNodeAffinity{`, - `Required:` + strings.Replace(this.Required.String(), "NodeSelector", "NodeSelector", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeProjection) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeProjection{`, - `Secret:` + strings.Replace(this.Secret.String(), "SecretProjection", "SecretProjection", 1) + `,`, - `DownwardAPI:` + strings.Replace(this.DownwardAPI.String(), "DownwardAPIProjection", "DownwardAPIProjection", 1) + `,`, - `ConfigMap:` + strings.Replace(this.ConfigMap.String(), "ConfigMapProjection", "ConfigMapProjection", 1) + `,`, - `ServiceAccountToken:` + strings.Replace(this.ServiceAccountToken.String(), "ServiceAccountTokenProjection", "ServiceAccountTokenProjection", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeSource{`, - `HostPath:` + strings.Replace(this.HostPath.String(), "HostPathVolumeSource", "HostPathVolumeSource", 1) + `,`, - `EmptyDir:` + strings.Replace(this.EmptyDir.String(), "EmptyDirVolumeSource", "EmptyDirVolumeSource", 1) + `,`, - `GCEPersistentDisk:` + strings.Replace(this.GCEPersistentDisk.String(), "GCEPersistentDiskVolumeSource", "GCEPersistentDiskVolumeSource", 1) + `,`, - `AWSElasticBlockStore:` + strings.Replace(this.AWSElasticBlockStore.String(), "AWSElasticBlockStoreVolumeSource", "AWSElasticBlockStoreVolumeSource", 1) + `,`, - `GitRepo:` + strings.Replace(this.GitRepo.String(), "GitRepoVolumeSource", "GitRepoVolumeSource", 1) + `,`, - `Secret:` + strings.Replace(this.Secret.String(), "SecretVolumeSource", "SecretVolumeSource", 1) + `,`, - `NFS:` + strings.Replace(this.NFS.String(), "NFSVolumeSource", "NFSVolumeSource", 1) + `,`, - `ISCSI:` + strings.Replace(this.ISCSI.String(), "ISCSIVolumeSource", "ISCSIVolumeSource", 1) + `,`, - `Glusterfs:` + strings.Replace(this.Glusterfs.String(), "GlusterfsVolumeSource", "GlusterfsVolumeSource", 1) + `,`, - `PersistentVolumeClaim:` + strings.Replace(this.PersistentVolumeClaim.String(), "PersistentVolumeClaimVolumeSource", "PersistentVolumeClaimVolumeSource", 1) + `,`, - `RBD:` + strings.Replace(this.RBD.String(), "RBDVolumeSource", "RBDVolumeSource", 1) + `,`, - `FlexVolume:` + strings.Replace(this.FlexVolume.String(), "FlexVolumeSource", "FlexVolumeSource", 1) + `,`, - `Cinder:` + strings.Replace(this.Cinder.String(), "CinderVolumeSource", "CinderVolumeSource", 1) + `,`, - `CephFS:` + strings.Replace(this.CephFS.String(), "CephFSVolumeSource", "CephFSVolumeSource", 1) + `,`, - `Flocker:` + strings.Replace(this.Flocker.String(), "FlockerVolumeSource", "FlockerVolumeSource", 1) + `,`, - `DownwardAPI:` + strings.Replace(this.DownwardAPI.String(), "DownwardAPIVolumeSource", "DownwardAPIVolumeSource", 1) + `,`, - `FC:` + strings.Replace(this.FC.String(), "FCVolumeSource", "FCVolumeSource", 1) + `,`, - `AzureFile:` + strings.Replace(this.AzureFile.String(), "AzureFileVolumeSource", "AzureFileVolumeSource", 1) + `,`, - `ConfigMap:` + strings.Replace(this.ConfigMap.String(), "ConfigMapVolumeSource", "ConfigMapVolumeSource", 1) + `,`, - `VsphereVolume:` + strings.Replace(this.VsphereVolume.String(), "VsphereVirtualDiskVolumeSource", "VsphereVirtualDiskVolumeSource", 1) + `,`, - `Quobyte:` + strings.Replace(this.Quobyte.String(), "QuobyteVolumeSource", "QuobyteVolumeSource", 1) + `,`, - `AzureDisk:` + strings.Replace(this.AzureDisk.String(), "AzureDiskVolumeSource", "AzureDiskVolumeSource", 1) + `,`, - `PhotonPersistentDisk:` + strings.Replace(this.PhotonPersistentDisk.String(), "PhotonPersistentDiskVolumeSource", "PhotonPersistentDiskVolumeSource", 1) + `,`, - `PortworxVolume:` + strings.Replace(this.PortworxVolume.String(), "PortworxVolumeSource", "PortworxVolumeSource", 1) + `,`, - `ScaleIO:` + strings.Replace(this.ScaleIO.String(), "ScaleIOVolumeSource", "ScaleIOVolumeSource", 1) + `,`, - `Projected:` + strings.Replace(this.Projected.String(), "ProjectedVolumeSource", "ProjectedVolumeSource", 1) + `,`, - `StorageOS:` + strings.Replace(this.StorageOS.String(), "StorageOSVolumeSource", "StorageOSVolumeSource", 1) + `,`, - `CSI:` + strings.Replace(this.CSI.String(), "CSIVolumeSource", "CSIVolumeSource", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VsphereVirtualDiskVolumeSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VsphereVirtualDiskVolumeSource{`, - `VolumePath:` + fmt.Sprintf("%v", this.VolumePath) + `,`, - `FSType:` + fmt.Sprintf("%v", this.FSType) + `,`, - `StoragePolicyName:` + fmt.Sprintf("%v", this.StoragePolicyName) + `,`, - `StoragePolicyID:` + fmt.Sprintf("%v", this.StoragePolicyID) + `,`, - `}`, - }, "") - return s -} -func (this *WeightedPodAffinityTerm) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WeightedPodAffinityTerm{`, - `Weight:` + fmt.Sprintf("%v", this.Weight) + `,`, - `PodAffinityTerm:` + strings.Replace(strings.Replace(this.PodAffinityTerm.String(), "PodAffinityTerm", "PodAffinityTerm", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *WindowsSecurityContextOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WindowsSecurityContextOptions{`, - `GMSACredentialSpecName:` + valueToStringGenerated(this.GMSACredentialSpecName) + `,`, - `GMSACredentialSpec:` + valueToStringGenerated(this.GMSACredentialSpec) + `,`, - `RunAsUserName:` + valueToStringGenerated(this.RunAsUserName) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AWSElasticBlockStoreVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AWSElasticBlockStoreVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AWSElasticBlockStoreVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - m.Partition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Partition |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Affinity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Affinity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Affinity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeAffinity == nil { - m.NodeAffinity = &NodeAffinity{} - } - if err := m.NodeAffinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodAffinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodAffinity == nil { - m.PodAffinity = &PodAffinity{} - } - if err := m.PodAffinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodAntiAffinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodAntiAffinity == nil { - m.PodAntiAffinity = &PodAntiAffinity{} - } - if err := m.PodAntiAffinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AttachedVolume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AttachedVolume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AttachedVolume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = UniqueVolumeName(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AvoidPods) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AvoidPods: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AvoidPods: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreferAvoidPods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreferAvoidPods = append(m.PreferAvoidPods, PreferAvoidPodsEntry{}) - if err := m.PreferAvoidPods[len(m.PreferAvoidPods)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AzureDiskVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AzureDiskVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AzureDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DiskName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DiskName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DataDiskURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DataDiskURI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CachingMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := AzureDataDiskCachingMode(dAtA[iNdEx:postIndex]) - m.CachingMode = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.FSType = &s - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.ReadOnly = &b - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := AzureDataDiskKind(dAtA[iNdEx:postIndex]) - m.Kind = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AzureFilePersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AzureFilePersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AzureFilePersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShareName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShareName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.SecretNamespace = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AzureFileVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AzureFileVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AzureFileVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShareName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShareName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Binding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Binding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Binding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSIPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSIPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSIPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeHandle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeHandle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VolumeAttributes == nil { - m.VolumeAttributes = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.VolumeAttributes[mapkey] = mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControllerPublishSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ControllerPublishSecretRef == nil { - m.ControllerPublishSecretRef = &SecretReference{} - } - if err := m.ControllerPublishSecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeStageSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeStageSecretRef == nil { - m.NodeStageSecretRef = &SecretReference{} - } - if err := m.NodeStageSecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodePublishSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodePublishSecretRef == nil { - m.NodePublishSecretRef = &SecretReference{} - } - if err := m.NodePublishSecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControllerExpandSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ControllerExpandSecretRef == nil { - m.ControllerExpandSecretRef = &SecretReference{} - } - if err := m.ControllerExpandSecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSIVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSIVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.ReadOnly = &b - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.FSType = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VolumeAttributes == nil { - m.VolumeAttributes = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.VolumeAttributes[mapkey] = mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodePublishSecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodePublishSecretRef == nil { - m.NodePublishSecretRef = &LocalObjectReference{} - } - if err := m.NodePublishSecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Capabilities) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Capabilities: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Capabilities: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Add", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Add = append(m.Add, Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Drop", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Drop = append(m.Drop, Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CephFSPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CephFSPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CephFSPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Monitors", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Monitors = append(m.Monitors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CephFSVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CephFSVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CephFSVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Monitors", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Monitors = append(m.Monitors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretFile", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretFile = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CinderPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CinderPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CinderPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CinderVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CinderVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CinderVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClientIPConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClientIPConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClientIPConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ComponentCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComponentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComponentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = ComponentConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ComponentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComponentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComponentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, ComponentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ComponentStatusList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ComponentStatusList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ComponentStatusList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ComponentStatus{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMap) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Data[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BinaryData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.BinaryData == nil { - m.BinaryData = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthGenerated - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthGenerated - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.BinaryData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMapEnvSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMapEnvSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMapEnvSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMapKeySelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMapKeySelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMapKeySelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMapList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMapList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMapList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ConfigMap{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMapNodeConfigSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMapNodeConfigSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMapNodeConfigSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeletConfigKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubeletConfigKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMapProjection) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMapProjection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMapProjection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, KeyToPath{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ConfigMapVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ConfigMapVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConfigMapVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, KeyToPath{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DefaultMode = &v - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Container) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Container: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Container: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkingDir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkingDir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, ContainerPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeMounts = append(m.VolumeMounts, VolumeMount{}) - if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LivenessProbe", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LivenessProbe == nil { - m.LivenessProbe = &Probe{} - } - if err := m.LivenessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadinessProbe", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReadinessProbe == nil { - m.ReadinessProbe = &Probe{} - } - if err := m.ReadinessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lifecycle", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Lifecycle == nil { - m.Lifecycle = &Lifecycle{} - } - if err := m.Lifecycle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TerminationMessagePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImagePullPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImagePullPolicy = PullPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecurityContext == nil { - m.SecurityContext = &SecurityContext{} - } - if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdin = bool(v != 0) - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StdinOnce", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StdinOnce = bool(v != 0) - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TTY = bool(v != 0) - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EnvFrom = append(m.EnvFrom, EnvFromSource{}) - if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TerminationMessagePolicy = TerminationMessagePolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeDevices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeDevices = append(m.VolumeDevices, VolumeDevice{}) - if err := m.VolumeDevices[len(m.VolumeDevices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartupProbe", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartupProbe == nil { - m.StartupProbe = &Probe{} - } - if err := m.StartupProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerImage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerImage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerImage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Names = append(m.Names, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType) - } - m.SizeBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SizeBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerPort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerPort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerPort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPort", wireType) - } - m.HostPort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HostPort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerPort", wireType) - } - m.ContainerPort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ContainerPort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Protocol = Protocol(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Waiting", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Waiting == nil { - m.Waiting = &ContainerStateWaiting{} - } - if err := m.Waiting.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Running", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Running == nil { - m.Running = &ContainerStateRunning{} - } - if err := m.Running.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Terminated", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Terminated == nil { - m.Terminated = &ContainerStateTerminated{} - } - if err := m.Terminated.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerStateRunning) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerStateRunning: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStateRunning: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerStateTerminated) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerStateTerminated: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStateTerminated: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExitCode", wireType) - } - m.ExitCode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExitCode |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) - } - m.Signal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Signal |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FinishedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.FinishedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerStateWaiting) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerStateWaiting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStateWaiting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContainerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContainerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContainerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTerminationState", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTerminationState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ready", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ready = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType) - } - m.RestartCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RestartCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImageID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImageID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Started = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonEndpoint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonEndpoint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonEndpoint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DownwardAPIProjection) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DownwardAPIProjection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DownwardAPIProjection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, DownwardAPIVolumeFile{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DownwardAPIVolumeFile) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DownwardAPIVolumeFile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DownwardAPIVolumeFile: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FieldRef == nil { - m.FieldRef = &ObjectFieldSelector{} - } - if err := m.FieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceFieldRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceFieldRef == nil { - m.ResourceFieldRef = &ResourceFieldSelector{} - } - if err := m.ResourceFieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Mode = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DownwardAPIVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DownwardAPIVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DownwardAPIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, DownwardAPIVolumeFile{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DefaultMode = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EmptyDirVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EmptyDirVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EmptyDirVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Medium", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Medium = StorageMedium(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeLimit", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SizeLimit == nil { - m.SizeLimit = &resource.Quantity{} - } - if err := m.SizeLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointAddress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointAddress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointAddress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetRef == nil { - m.TargetRef = &ObjectReference{} - } - if err := m.TargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.NodeName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointPort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointPort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointPort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Protocol = Protocol(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointSubset) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointSubset: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointSubset: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addresses = append(m.Addresses, EndpointAddress{}) - if err := m.Addresses[len(m.Addresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NotReadyAddresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NotReadyAddresses = append(m.NotReadyAddresses, EndpointAddress{}) - if err := m.NotReadyAddresses[len(m.NotReadyAddresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, EndpointPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Endpoints) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Endpoints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Endpoints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subsets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subsets = append(m.Subsets, EndpointSubset{}) - if err := m.Subsets[len(m.Subsets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointsList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointsList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointsList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Endpoints{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EnvFromSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EnvFromSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EnvFromSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Prefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConfigMapRef == nil { - m.ConfigMapRef = &ConfigMapEnvSource{} - } - if err := m.ConfigMapRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretEnvSource{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EnvVar) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EnvVar: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EnvVar: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueFrom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ValueFrom == nil { - m.ValueFrom = &EnvVarSource{} - } - if err := m.ValueFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EnvVarSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EnvVarSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EnvVarSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FieldRef == nil { - m.FieldRef = &ObjectFieldSelector{} - } - if err := m.FieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceFieldRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ResourceFieldRef == nil { - m.ResourceFieldRef = &ResourceFieldSelector{} - } - if err := m.ResourceFieldRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMapKeyRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConfigMapKeyRef == nil { - m.ConfigMapKeyRef = &ConfigMapKeySelector{} - } - if err := m.ConfigMapKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretKeyRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretKeyRef == nil { - m.SecretKeyRef = &SecretKeySelector{} - } - if err := m.SecretKeyRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EphemeralContainer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EphemeralContainer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EphemeralContainer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainerCommon", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EphemeralContainerCommon.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetContainerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetContainerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EphemeralContainerCommon) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EphemeralContainerCommon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EphemeralContainerCommon: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkingDir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkingDir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, ContainerPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeMounts = append(m.VolumeMounts, VolumeMount{}) - if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LivenessProbe", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LivenessProbe == nil { - m.LivenessProbe = &Probe{} - } - if err := m.LivenessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadinessProbe", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReadinessProbe == nil { - m.ReadinessProbe = &Probe{} - } - if err := m.ReadinessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Lifecycle", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Lifecycle == nil { - m.Lifecycle = &Lifecycle{} - } - if err := m.Lifecycle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TerminationMessagePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImagePullPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImagePullPolicy = PullPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecurityContext == nil { - m.SecurityContext = &SecurityContext{} - } - if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdin = bool(v != 0) - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StdinOnce", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StdinOnce = bool(v != 0) - case 18: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TTY = bool(v != 0) - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EnvFrom = append(m.EnvFrom, EnvFromSource{}) - if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationMessagePolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TerminationMessagePolicy = TerminationMessagePolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeDevices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeDevices = append(m.VolumeDevices, VolumeDevice{}) - if err := m.VolumeDevices[len(m.VolumeDevices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartupProbe", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartupProbe == nil { - m.StartupProbe = &Probe{} - } - if err := m.StartupProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EphemeralContainers) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EphemeralContainers: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EphemeralContainers: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EphemeralContainers = append(m.EphemeralContainers, EphemeralContainer{}) - if err := m.EphemeralContainers[len(m.EphemeralContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Event) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Event: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InvolvedObject", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.InvolvedObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.FirstTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EventTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Series == nil { - m.Series = &EventSeries{} - } - if err := m.Series.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Action = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Related", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Related == nil { - m.Related = &ObjectReference{} - } - if err := m.Related.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReportingController", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReportingController = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReportingInstance", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReportingInstance = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Event{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventSeries) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSeries: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSeries: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastObservedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastObservedTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = EventSeriesState(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Component = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExecAction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExecAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FCVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FCVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FCVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetWWNs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetWWNs = append(m.TargetWWNs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lun", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Lun = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WWIDs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WWIDs = append(m.WWIDs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FlexPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FlexPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FlexPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Options == nil { - m.Options = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Options[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FlexVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FlexVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FlexVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Options == nil { - m.Options = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Options[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FlockerVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FlockerVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FlockerVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DatasetName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DatasetName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DatasetUUID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DatasetUUID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GCEPersistentDiskVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GCEPersistentDiskVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GCEPersistentDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PDName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PDName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) - } - m.Partition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Partition |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GitRepoVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GitRepoVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GitRepoVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Repository = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Revision = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Directory", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Directory = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GlusterfsPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GlusterfsPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GlusterfsPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointsName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EndpointsName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointsNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.EndpointsNamespace = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GlusterfsVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GlusterfsVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GlusterfsVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointsName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EndpointsName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HTTPGetAction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HTTPGetAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPGetAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheme", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scheme = URIScheme(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HTTPHeaders", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HTTPHeaders = append(m.HTTPHeaders, HTTPHeader{}) - if err := m.HTTPHeaders[len(m.HTTPHeaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HTTPHeader) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HTTPHeader: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPHeader: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Handler) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Handler: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Handler: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Exec == nil { - m.Exec = &ExecAction{} - } - if err := m.Exec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HTTPGet", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HTTPGet == nil { - m.HTTPGet = &HTTPGetAction{} - } - if err := m.HTTPGet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TCPSocket", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TCPSocket == nil { - m.TCPSocket = &TCPSocketAction{} - } - if err := m.TCPSocket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostAlias) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostAlias: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostAlias: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostnames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostnames = append(m.Hostnames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostPathVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostPathVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostPathVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := HostPathType(dAtA[iNdEx:postIndex]) - m.Type = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ISCSIPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ISCSIPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ISCSIPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPortal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetPortal = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IQN", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IQN = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lun", wireType) - } - m.Lun = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Lun |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ISCSIInterface", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ISCSIInterface = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Portals", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Portals = append(m.Portals, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DiscoveryCHAPAuth", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DiscoveryCHAPAuth = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionCHAPAuth", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SessionCHAPAuth = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatorName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.InitiatorName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ISCSIVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ISCSIVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ISCSIVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPortal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetPortal = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IQN", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IQN = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Lun", wireType) - } - m.Lun = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Lun |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ISCSIInterface", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ISCSIInterface = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Portals", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Portals = append(m.Portals, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DiscoveryCHAPAuth", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DiscoveryCHAPAuth = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionCHAPAuth", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SessionCHAPAuth = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitiatorName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.InitiatorName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *KeyToPath) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: KeyToPath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: KeyToPath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Mode = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Lifecycle) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Lifecycle: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Lifecycle: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PostStart", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PostStart == nil { - m.PostStart = &Handler{} - } - if err := m.PostStart.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreStop", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PreStop == nil { - m.PreStop = &Handler{} - } - if err := m.PreStop.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LimitRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LimitRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LimitRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LimitRangeItem) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LimitRangeItem: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LimitRangeItem: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = LimitType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Max == nil { - m.Max = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Max[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Min == nil { - m.Min = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Min[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Default", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Default == nil { - m.Default = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Default[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultRequest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DefaultRequest == nil { - m.DefaultRequest = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.DefaultRequest[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxLimitRequestRatio", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxLimitRequestRatio == nil { - m.MaxLimitRequestRatio = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MaxLimitRequestRatio[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LimitRangeList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LimitRangeList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LimitRangeList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, LimitRange{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LimitRangeSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LimitRangeSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LimitRangeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Limits = append(m.Limits, LimitRangeItem{}) - if err := m.Limits[len(m.Limits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *List) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: List: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, runtime.RawExtension{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoadBalancerIngress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LoadBalancerIngress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LoadBalancerIngress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LoadBalancerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LoadBalancerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LoadBalancerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, LoadBalancerIngress{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LocalObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LocalObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LocalObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LocalVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LocalVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LocalVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.FSType = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NFSVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NFSVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NFSVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Server", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Server = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Namespace) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Namespace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Namespace: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamespaceCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamespaceCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamespaceCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = NamespaceConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamespaceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamespaceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamespaceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Namespace{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamespaceSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamespaceSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamespaceSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Finalizers = append(m.Finalizers, FinalizerName(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NamespaceStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NamespaceStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NamespaceStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = NamespacePhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, NamespaceCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Node) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Node: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Node: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeAddress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeAddress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeAddress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = NodeAddressType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeAffinity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeAffinity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeAffinity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RequiredDuringSchedulingIgnoredDuringExecution == nil { - m.RequiredDuringSchedulingIgnoredDuringExecution = &NodeSelector{} - } - if err := m.RequiredDuringSchedulingIgnoredDuringExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreferredDuringSchedulingIgnoredDuringExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, PreferredSchedulingTerm{}) - if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = NodeConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastHeartbeatTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastHeartbeatTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeConfigSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeConfigSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeConfigSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConfigMap == nil { - m.ConfigMap = &ConfigMapNodeConfigSource{} - } - if err := m.ConfigMap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeConfigStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeConfigStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeConfigStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Assigned", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Assigned == nil { - m.Assigned = &NodeConfigSource{} - } - if err := m.Assigned.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Active == nil { - m.Active = &NodeConfigSource{} - } - if err := m.Active.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastKnownGood", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LastKnownGood == nil { - m.LastKnownGood = &NodeConfigSource{} - } - if err := m.LastKnownGood.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Error = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeDaemonEndpoints) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeDaemonEndpoints: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeDaemonEndpoints: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeletEndpoint", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.KubeletEndpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Node{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeProxyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeProxyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeProxyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeResources) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeResources: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeResources: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capacity == nil { - m.Capacity = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Capacity[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelectorTerms", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeSelectorTerms = append(m.NodeSelectorTerms, NodeSelectorTerm{}) - if err := m.NodeSelectorTerms[len(m.NodeSelectorTerms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeSelectorRequirement) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeSelectorRequirement: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = NodeSelectorOperator(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeSelectorTerm) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeSelectorTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeSelectorTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchExpressions = append(m.MatchExpressions, NodeSelectorRequirement{}) - if err := m.MatchExpressions[len(m.MatchExpressions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchFields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchFields = append(m.MatchFields, NodeSelectorRequirement{}) - if err := m.MatchFields[len(m.MatchFields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodCIDR", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodCIDR = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DoNotUse_ExternalID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DoNotUse_ExternalID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProviderID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProviderID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Unschedulable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Unschedulable = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taints = append(m.Taints, Taint{}) - if err := m.Taints[len(m.Taints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConfigSource == nil { - m.ConfigSource = &NodeConfigSource{} - } - if err := m.ConfigSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodCIDRs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodCIDRs = append(m.PodCIDRs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capacity == nil { - m.Capacity = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Capacity[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allocatable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Allocatable == nil { - m.Allocatable = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Allocatable[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = NodePhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, NodeCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addresses = append(m.Addresses, NodeAddress{}) - if err := m.Addresses[len(m.Addresses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DaemonEndpoints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DaemonEndpoints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.NodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Images = append(m.Images, ContainerImage{}) - if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumesInUse", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumesInUse = append(m.VolumesInUse, UniqueVolumeName(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumesAttached", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumesAttached = append(m.VolumesAttached, AttachedVolume{}) - if err := m.VolumesAttached[len(m.VolumesAttached)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Config == nil { - m.Config = &NodeConfigStatus{} - } - if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NodeSystemInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NodeSystemInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NodeSystemInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MachineID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MachineID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemUUID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SystemUUID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BootID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BootID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KernelVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KernelVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OSImage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OSImage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerRuntimeVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerRuntimeVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeletVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubeletVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KubeProxyVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KubeProxyVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OperatingSystem", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OperatingSystem = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Architecture", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Architecture = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectFieldSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectFieldSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectFieldSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeClaim) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeClaim: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaim: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeClaimCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeClaimCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = PersistentVolumeClaimConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastProbeTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeClaimList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeClaimList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PersistentVolumeClaim{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeClaimSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeClaimSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessModes = append(m.AccessModes, PersistentVolumeAccessMode(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.StorageClassName = &s - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := PersistentVolumeMode(dAtA[iNdEx:postIndex]) - m.VolumeMode = &s - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DataSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DataSource == nil { - m.DataSource = &TypedLocalObjectReference{} - } - if err := m.DataSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeClaimStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeClaimStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = PersistentVolumeClaimPhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessModes = append(m.AccessModes, PersistentVolumeAccessMode(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capacity == nil { - m.Capacity = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Capacity[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, PersistentVolumeClaimCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeClaimVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeClaimVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeClaimVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClaimName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PersistentVolume{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GCEPersistentDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GCEPersistentDisk == nil { - m.GCEPersistentDisk = &GCEPersistentDiskVolumeSource{} - } - if err := m.GCEPersistentDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AWSElasticBlockStore", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AWSElasticBlockStore == nil { - m.AWSElasticBlockStore = &AWSElasticBlockStoreVolumeSource{} - } - if err := m.AWSElasticBlockStore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HostPath == nil { - m.HostPath = &HostPathVolumeSource{} - } - if err := m.HostPath.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Glusterfs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Glusterfs == nil { - m.Glusterfs = &GlusterfsPersistentVolumeSource{} - } - if err := m.Glusterfs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NFS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NFS == nil { - m.NFS = &NFSVolumeSource{} - } - if err := m.NFS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBD", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RBD == nil { - m.RBD = &RBDPersistentVolumeSource{} - } - if err := m.RBD.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ISCSI", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ISCSI == nil { - m.ISCSI = &ISCSIPersistentVolumeSource{} - } - if err := m.ISCSI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cinder", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cinder == nil { - m.Cinder = &CinderPersistentVolumeSource{} - } - if err := m.Cinder.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CephFS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CephFS == nil { - m.CephFS = &CephFSPersistentVolumeSource{} - } - if err := m.CephFS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FC", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FC == nil { - m.FC = &FCVolumeSource{} - } - if err := m.FC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Flocker", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Flocker == nil { - m.Flocker = &FlockerVolumeSource{} - } - if err := m.Flocker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FlexVolume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FlexVolume == nil { - m.FlexVolume = &FlexPersistentVolumeSource{} - } - if err := m.FlexVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AzureFile == nil { - m.AzureFile = &AzureFilePersistentVolumeSource{} - } - if err := m.AzureFile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VsphereVolume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VsphereVolume == nil { - m.VsphereVolume = &VsphereVirtualDiskVolumeSource{} - } - if err := m.VsphereVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Quobyte", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Quobyte == nil { - m.Quobyte = &QuobyteVolumeSource{} - } - if err := m.Quobyte.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AzureDisk == nil { - m.AzureDisk = &AzureDiskVolumeSource{} - } - if err := m.AzureDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PhotonPersistentDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PhotonPersistentDisk == nil { - m.PhotonPersistentDisk = &PhotonPersistentDiskVolumeSource{} - } - if err := m.PhotonPersistentDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortworxVolume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PortworxVolume == nil { - m.PortworxVolume = &PortworxVolumeSource{} - } - if err := m.PortworxVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScaleIO", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScaleIO == nil { - m.ScaleIO = &ScaleIOPersistentVolumeSource{} - } - if err := m.ScaleIO.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Local", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Local == nil { - m.Local = &LocalVolumeSource{} - } - if err := m.Local.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageOS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StorageOS == nil { - m.StorageOS = &StorageOSPersistentVolumeSource{} - } - if err := m.StorageOS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CSI", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CSI == nil { - m.CSI = &CSIPersistentVolumeSource{} - } - if err := m.CSI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capacity == nil { - m.Capacity = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Capacity[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PersistentVolumeSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccessModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccessModes = append(m.AccessModes, PersistentVolumeAccessMode(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClaimRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ClaimRef == nil { - m.ClaimRef = &ObjectReference{} - } - if err := m.ClaimRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeReclaimPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageClassName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MountOptions = append(m.MountOptions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := PersistentVolumeMode(dAtA[iNdEx:postIndex]) - m.VolumeMode = &s - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeAffinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeAffinity == nil { - m.NodeAffinity = &VolumeNodeAffinity{} - } - if err := m.NodeAffinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersistentVolumeStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersistentVolumeStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersistentVolumeStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = PersistentVolumePhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PhotonPersistentDiskVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PhotonPersistentDiskVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PhotonPersistentDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PdID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PdID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Pod) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Pod: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Pod: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodAffinity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodAffinity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodAffinity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequiredDuringSchedulingIgnoredDuringExecution = append(m.RequiredDuringSchedulingIgnoredDuringExecution, PodAffinityTerm{}) - if err := m.RequiredDuringSchedulingIgnoredDuringExecution[len(m.RequiredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreferredDuringSchedulingIgnoredDuringExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, WeightedPodAffinityTerm{}) - if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodAffinityTerm) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodAffinityTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodAffinityTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = &v1.LabelSelector{} - } - if err := m.LabelSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespaces = append(m.Namespaces, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopologyKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TopologyKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodAntiAffinity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodAntiAffinity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodAntiAffinity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDuringSchedulingIgnoredDuringExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequiredDuringSchedulingIgnoredDuringExecution = append(m.RequiredDuringSchedulingIgnoredDuringExecution, PodAffinityTerm{}) - if err := m.RequiredDuringSchedulingIgnoredDuringExecution[len(m.RequiredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreferredDuringSchedulingIgnoredDuringExecution", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PreferredDuringSchedulingIgnoredDuringExecution = append(m.PreferredDuringSchedulingIgnoredDuringExecution, WeightedPodAffinityTerm{}) - if err := m.PreferredDuringSchedulingIgnoredDuringExecution[len(m.PreferredDuringSchedulingIgnoredDuringExecution)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodAttachOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodAttachOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodAttachOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdin = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdout = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stderr = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TTY = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Container = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = PodConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastProbeTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodDNSConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodDNSConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodDNSConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nameservers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nameservers = append(m.Nameservers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Searches", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Searches = append(m.Searches, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Options = append(m.Options, PodDNSConfigOption{}) - if err := m.Options[len(m.Options)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodDNSConfigOption) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodDNSConfigOption: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodDNSConfigOption: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Value = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodExecOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodExecOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodExecOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdin = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stdout = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Stderr = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TTY", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TTY = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Container = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodIP) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodIP: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodIP: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Pod{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodLogOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodLogOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodLogOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Container = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Follow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Follow = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Previous", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Previous = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SinceSeconds = &v - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SinceTime == nil { - m.SinceTime = &v1.Time{} - } - if err := m.SinceTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamps", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Timestamps = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TailLines", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TailLines = &v - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LimitBytes", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LimitBytes = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodPortForwardOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodPortForwardOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodPortForwardOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ports = append(m.Ports, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.Ports) == 0 { - m.Ports = make([]int32, 0, elementCount) - } - for iNdEx < postIndex { - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Ports = append(m.Ports, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodProxyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodProxyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodProxyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodReadinessGate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodReadinessGate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodReadinessGate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConditionType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConditionType = PodConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityContext) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityContext: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityContext: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SELinuxOptions == nil { - m.SELinuxOptions = &SELinuxOptions{} - } - if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunAsUser = &v - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsNonRoot", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.RunAsNonRoot = &b - case 4: - if wireType == 0 { - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SupplementalGroups = append(m.SupplementalGroups, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.SupplementalGroups) == 0 { - m.SupplementalGroups = make([]int64, 0, elementCount) - } - for iNdEx < postIndex { - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SupplementalGroups = append(m.SupplementalGroups, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType) - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.FSGroup = &v - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunAsGroup = &v - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sysctls", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sysctls = append(m.Sysctls, Sysctl{}) - if err := m.Sysctls[len(m.Sysctls)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WindowsOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WindowsOptions == nil { - m.WindowsOptions = &WindowsSecurityContextOptions{} - } - if err := m.WindowsOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSignature) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSignature: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSignature: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodController", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodController == nil { - m.PodController = &v1.OwnerReference{} - } - if err := m.PodController.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, Volume{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Containers = append(m.Containers, Container{}) - if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RestartPolicy = RestartPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationGracePeriodSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TerminationGracePeriodSeconds = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveDeadlineSeconds = &v - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DNSPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DNSPolicy = DNSPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeSelector == nil { - m.NodeSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NodeSelector[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedServiceAccount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeprecatedServiceAccount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostNetwork = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPID", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostPID = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostIPC = bool(v != 0) - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecurityContext == nil { - m.SecurityContext = &PodSecurityContext{} - } - if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImagePullSecrets = append(m.ImagePullSecrets, LocalObjectReference{}) - if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subdomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subdomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Affinity == nil { - m.Affinity = &Affinity{} - } - if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchedulerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SchedulerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitContainers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InitContainers = append(m.InitContainers, Container{}) - if err := m.InitContainers[len(m.InitContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 21: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AutomountServiceAccountToken = &b - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tolerations = append(m.Tolerations, Toleration{}) - if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostAliases", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostAliases = append(m.HostAliases, HostAlias{}) - if err := m.HostAliases[len(m.HostAliases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PriorityClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PriorityClassName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 25: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Priority = &v - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DNSConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DNSConfig == nil { - m.DNSConfig = &PodDNSConfig{} - } - if err := m.DNSConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 27: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ShareProcessNamespace", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.ShareProcessNamespace = &b - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadinessGates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReadinessGates = append(m.ReadinessGates, PodReadinessGate{}) - if err := m.ReadinessGates[len(m.ReadinessGates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 29: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.RuntimeClassName = &s - iNdEx = postIndex - case 30: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EnableServiceLinks", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.EnableServiceLinks = &b - case 31: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := PreemptionPolicy(dAtA[iNdEx:postIndex]) - m.PreemptionPolicy = &s - iNdEx = postIndex - case 32: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Overhead", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Overhead == nil { - m.Overhead = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Overhead[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 33: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopologySpreadConstraints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TopologySpreadConstraints = append(m.TopologySpreadConstraints, TopologySpreadConstraint{}) - if err := m.TopologySpreadConstraints[len(m.TopologySpreadConstraints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 34: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EphemeralContainers = append(m.EphemeralContainers, EphemeralContainer{}) - if err := m.EphemeralContainers[len(m.EphemeralContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = PodPhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, PodCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTime == nil { - m.StartTime = &v1.Time{} - } - if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerStatuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerStatuses = append(m.ContainerStatuses, ContainerStatus{}) - if err := m.ContainerStatuses[len(m.ContainerStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QOSClass", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.QOSClass = PodQOSClass(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InitContainerStatuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InitContainerStatuses = append(m.InitContainerStatuses, ContainerStatus{}) - if err := m.InitContainerStatuses[len(m.InitContainerStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NominatedNodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NominatedNodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodIPs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PodIPs = append(m.PodIPs, PodIP{}) - if err := m.PodIPs[len(m.PodIPs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EphemeralContainerStatuses", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EphemeralContainerStatuses = append(m.EphemeralContainerStatuses, ContainerStatus{}) - if err := m.EphemeralContainerStatuses[len(m.EphemeralContainerStatuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodStatusResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodStatusResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodStatusResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodTemplate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodTemplate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodTemplateList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodTemplateList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodTemplateList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PodTemplate{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodTemplateSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodTemplateSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PortworxVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PortworxVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PortworxVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Preconditions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Preconditions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Preconditions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - m.UID = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PreferAvoidPodsEntry) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PreferAvoidPodsEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PreferAvoidPodsEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSignature", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PodSignature.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EvictionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EvictionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PreferredSchedulingTerm) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PreferredSchedulingTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PreferredSchedulingTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - m.Weight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Weight |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Preference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Preference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Probe) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Probe: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Probe: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handler", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Handler.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitialDelaySeconds", wireType) - } - m.InitialDelaySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitialDelaySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - m.TimeoutSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TimeoutSeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PeriodSeconds", wireType) - } - m.PeriodSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PeriodSeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SuccessThreshold", wireType) - } - m.SuccessThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SuccessThreshold |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FailureThreshold", wireType) - } - m.FailureThreshold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FailureThreshold |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProjectedVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProjectedVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProjectedVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sources = append(m.Sources, VolumeProjection{}) - if err := m.Sources[len(m.Sources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DefaultMode = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QuobyteVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QuobyteVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QuobyteVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Registry", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Registry = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volume = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tenant", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tenant = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RBDPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RBDPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RBDPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CephMonitors", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CephMonitors = append(m.CephMonitors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBDImage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RBDImage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBDPool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RBDPool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RadosUser", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RadosUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyring", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyring = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RBDVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RBDVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RBDVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CephMonitors", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CephMonitors = append(m.CephMonitors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBDImage", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RBDImage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBDPool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RBDPool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RadosUser", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RadosUser = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyring", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Keyring = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RangeAllocation) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RangeAllocation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RangeAllocation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Range = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationController) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationController: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationController: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationControllerCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationControllerCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationControllerCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = ReplicationControllerConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationControllerList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationControllerList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationControllerList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ReplicationController{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationControllerSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationControllerSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationControllerSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Selector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Template == nil { - m.Template = &PodTemplateSpec{} - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationControllerStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationControllerStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationControllerStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) - } - m.FullyLabeledReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FullyLabeledReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, ReplicationControllerCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceFieldSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceFieldSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceFieldSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Divisor", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Divisor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceQuota) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceQuota: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceQuota: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceQuotaList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceQuotaList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceQuotaList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ResourceQuota{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceQuotaSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceQuotaSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceQuotaSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Hard == nil { - m.Hard = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Hard[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Scopes = append(m.Scopes, ResourceQuotaScope(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScopeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScopeSelector == nil { - m.ScopeSelector = &ScopeSelector{} - } - if err := m.ScopeSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceQuotaStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceQuotaStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceQuotaStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hard", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Hard == nil { - m.Hard = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Hard[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Used", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Used == nil { - m.Used = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Used[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResourceRequirements) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResourceRequirements: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResourceRequirements: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Limits", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Limits == nil { - m.Limits = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Limits[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Requests == nil { - m.Requests = make(ResourceList) - } - var mapkey ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Requests[ResourceName(mapkey)] = *mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SELinuxOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SELinuxOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SELinuxOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.User = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Role = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Level = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleIOPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleIOPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleIOPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gateway", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Gateway = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.System = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &SecretReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SSLEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SSLEnabled = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProtectionDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProtectionDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StoragePool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StoragePool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageMode = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleIOVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleIOVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleIOVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gateway", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Gateway = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field System", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.System = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SSLEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SSLEnabled = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProtectionDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProtectionDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StoragePool", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StoragePool = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageMode = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScopeSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScopeSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScopeSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchExpressions = append(m.MatchExpressions, ScopedResourceSelectorRequirement{}) - if err := m.MatchExpressions[len(m.MatchExpressions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScopedResourceSelectorRequirement) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScopedResourceSelectorRequirement: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScopedResourceSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScopeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ScopeName = ResourceQuotaScope(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = ScopeSelectorOperator(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Secret) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Secret: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Secret: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Data == nil { - m.Data = make(map[string][]byte) - } - var mapkey string - mapvalue := []byte{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapbyteLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapbyteLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intMapbyteLen := int(mapbyteLen) - if intMapbyteLen < 0 { - return ErrInvalidLengthGenerated - } - postbytesIndex := iNdEx + intMapbyteLen - if postbytesIndex < 0 { - return ErrInvalidLengthGenerated - } - if postbytesIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = make([]byte, mapbyteLen) - copy(mapvalue, dAtA[iNdEx:postbytesIndex]) - iNdEx = postbytesIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Data[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = SecretType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StringData == nil { - m.StringData = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.StringData[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretEnvSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretEnvSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretEnvSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretKeySelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretKeySelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretKeySelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Secret{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretProjection) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretProjection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretProjection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalObjectReference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocalObjectReference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, KeyToPath{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecretVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecretVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecretVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, KeyToPath{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DefaultMode = &v - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Optional = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SecurityContext) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SecurityContext: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SecurityContext: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Capabilities", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Capabilities == nil { - m.Capabilities = &Capabilities{} - } - if err := m.Capabilities.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Privileged = &b - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SELinuxOptions == nil { - m.SELinuxOptions = &SELinuxOptions{} - } - if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunAsUser = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsNonRoot", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.RunAsNonRoot = &b - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.ReadOnlyRootFilesystem = &b - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrivilegeEscalation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AllowPrivilegeEscalation = &b - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RunAsGroup = &v - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcMount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := ProcMountType(dAtA[iNdEx:postIndex]) - m.ProcMount = &s - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WindowsOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.WindowsOptions == nil { - m.WindowsOptions = &WindowsSecurityContextOptions{} - } - if err := m.WindowsOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SerializedReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SerializedReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SerializedReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Reference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Service) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Service: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Service: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceAccount) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secrets = append(m.Secrets, ObjectReference{}) - if err := m.Secrets[len(m.Secrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImagePullSecrets = append(m.ImagePullSecrets, LocalObjectReference{}) - if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AutomountServiceAccountToken = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceAccountList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceAccountList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccountList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ServiceAccount{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceAccountTokenProjection) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceAccountTokenProjection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceAccountTokenProjection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Audience", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Audience = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpirationSeconds = &v - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Service{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServicePort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServicePort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Protocol = Protocol(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetPort", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TargetPort.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodePort", wireType) - } - m.NodePort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NodePort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceProxyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceProxyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceProxyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, ServicePort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Selector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = ServiceType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalIPs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalIPs = append(m.ExternalIPs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SessionAffinity = ServiceAffinity(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LoadBalancerIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerSourceRanges", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LoadBalancerSourceRanges = append(m.LoadBalancerSourceRanges, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExternalTrafficPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExternalTrafficPolicy = ServiceExternalTrafficPolicyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HealthCheckNodePort", wireType) - } - m.HealthCheckNodePort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.HealthCheckNodePort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PublishNotReadyAddresses", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PublishNotReadyAddresses = bool(v != 0) - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinityConfig", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SessionAffinityConfig == nil { - m.SessionAffinityConfig = &SessionAffinityConfig{} - } - if err := m.SessionAffinityConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IPFamily", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := IPFamily(dAtA[iNdEx:postIndex]) - m.IPFamily = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SessionAffinityConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SessionAffinityConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SessionAffinityConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientIP", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ClientIP == nil { - m.ClientIP = &ClientIPConfig{} - } - if err := m.ClientIP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StorageOSPersistentVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StorageOSPersistentVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StorageOSPersistentVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &ObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StorageOSVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StorageOSVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StorageOSVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeNamespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeNamespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SecretRef == nil { - m.SecretRef = &LocalObjectReference{} - } - if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Sysctl) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Sysctl: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Sysctl: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TCPSocketAction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TCPSocketAction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TCPSocketAction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Taint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Taint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Taint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Effect", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Effect = TaintEffect(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeAdded", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TimeAdded == nil { - m.TimeAdded = &v1.Time{} - } - if err := m.TimeAdded.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Toleration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Toleration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Toleration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = TolerationOperator(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Effect", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Effect = TaintEffect(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TolerationSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TolerationSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TopologySelectorLabelRequirement) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TopologySelectorLabelRequirement: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TopologySelectorLabelRequirement: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TopologySelectorTerm) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TopologySelectorTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TopologySelectorTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchLabelExpressions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchLabelExpressions = append(m.MatchLabelExpressions, TopologySelectorLabelRequirement{}) - if err := m.MatchLabelExpressions[len(m.MatchLabelExpressions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TopologySpreadConstraint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TopologySpreadConstraint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TopologySpreadConstraint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSkew", wireType) - } - m.MaxSkew = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxSkew |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopologyKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TopologyKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WhenUnsatisfiable", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WhenUnsatisfiable = UnsatisfiableConstraintAction(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.LabelSelector == nil { - m.LabelSelector = &v1.LabelSelector{} - } - if err := m.LabelSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TypedLocalObjectReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TypedLocalObjectReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TypedLocalObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.APIGroup = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Volume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Volume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Volume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.VolumeSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeDevice) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeDevice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeDevice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeMount) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeMount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeMount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MountPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubPath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SubPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountPropagation", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := MountPropagationMode(dAtA[iNdEx:postIndex]) - m.MountPropagation = &s - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubPathExpr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SubPathExpr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeNodeAffinity) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeNodeAffinity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeNodeAffinity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Required == nil { - m.Required = &NodeSelector{} - } - if err := m.Required.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeProjection) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeProjection: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeProjection: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Secret == nil { - m.Secret = &SecretProjection{} - } - if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DownwardAPI", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DownwardAPI == nil { - m.DownwardAPI = &DownwardAPIProjection{} - } - if err := m.DownwardAPI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConfigMap == nil { - m.ConfigMap = &ConfigMapProjection{} - } - if err := m.ConfigMap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountToken", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ServiceAccountToken == nil { - m.ServiceAccountToken = &ServiceAccountTokenProjection{} - } - if err := m.ServiceAccountToken.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HostPath == nil { - m.HostPath = &HostPathVolumeSource{} - } - if err := m.HostPath.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EmptyDir", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EmptyDir == nil { - m.EmptyDir = &EmptyDirVolumeSource{} - } - if err := m.EmptyDir.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GCEPersistentDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GCEPersistentDisk == nil { - m.GCEPersistentDisk = &GCEPersistentDiskVolumeSource{} - } - if err := m.GCEPersistentDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AWSElasticBlockStore", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AWSElasticBlockStore == nil { - m.AWSElasticBlockStore = &AWSElasticBlockStoreVolumeSource{} - } - if err := m.AWSElasticBlockStore.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GitRepo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.GitRepo == nil { - m.GitRepo = &GitRepoVolumeSource{} - } - if err := m.GitRepo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Secret == nil { - m.Secret = &SecretVolumeSource{} - } - if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NFS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NFS == nil { - m.NFS = &NFSVolumeSource{} - } - if err := m.NFS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ISCSI", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ISCSI == nil { - m.ISCSI = &ISCSIVolumeSource{} - } - if err := m.ISCSI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Glusterfs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Glusterfs == nil { - m.Glusterfs = &GlusterfsVolumeSource{} - } - if err := m.Glusterfs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaim", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PersistentVolumeClaim == nil { - m.PersistentVolumeClaim = &PersistentVolumeClaimVolumeSource{} - } - if err := m.PersistentVolumeClaim.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RBD", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RBD == nil { - m.RBD = &RBDVolumeSource{} - } - if err := m.RBD.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FlexVolume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FlexVolume == nil { - m.FlexVolume = &FlexVolumeSource{} - } - if err := m.FlexVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cinder", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Cinder == nil { - m.Cinder = &CinderVolumeSource{} - } - if err := m.Cinder.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CephFS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CephFS == nil { - m.CephFS = &CephFSVolumeSource{} - } - if err := m.CephFS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Flocker", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Flocker == nil { - m.Flocker = &FlockerVolumeSource{} - } - if err := m.Flocker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DownwardAPI", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DownwardAPI == nil { - m.DownwardAPI = &DownwardAPIVolumeSource{} - } - if err := m.DownwardAPI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FC", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FC == nil { - m.FC = &FCVolumeSource{} - } - if err := m.FC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureFile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AzureFile == nil { - m.AzureFile = &AzureFileVolumeSource{} - } - if err := m.AzureFile.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ConfigMap == nil { - m.ConfigMap = &ConfigMapVolumeSource{} - } - if err := m.ConfigMap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VsphereVolume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VsphereVolume == nil { - m.VsphereVolume = &VsphereVirtualDiskVolumeSource{} - } - if err := m.VsphereVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Quobyte", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Quobyte == nil { - m.Quobyte = &QuobyteVolumeSource{} - } - if err := m.Quobyte.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AzureDisk == nil { - m.AzureDisk = &AzureDiskVolumeSource{} - } - if err := m.AzureDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PhotonPersistentDisk", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PhotonPersistentDisk == nil { - m.PhotonPersistentDisk = &PhotonPersistentDiskVolumeSource{} - } - if err := m.PhotonPersistentDisk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortworxVolume", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PortworxVolume == nil { - m.PortworxVolume = &PortworxVolumeSource{} - } - if err := m.PortworxVolume.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScaleIO", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ScaleIO == nil { - m.ScaleIO = &ScaleIOVolumeSource{} - } - if err := m.ScaleIO.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Projected", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Projected == nil { - m.Projected = &ProjectedVolumeSource{} - } - if err := m.Projected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageOS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StorageOS == nil { - m.StorageOS = &StorageOSVolumeSource{} - } - if err := m.StorageOS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CSI", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CSI == nil { - m.CSI = &CSIVolumeSource{} - } - if err := m.CSI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VsphereVirtualDiskVolumeSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VsphereVirtualDiskVolumeSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VsphereVirtualDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumePath", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FSType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StoragePolicyName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StoragePolicyName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StoragePolicyID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StoragePolicyID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WeightedPodAffinityTerm) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WeightedPodAffinityTerm: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WeightedPodAffinityTerm: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - m.Weight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Weight |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodAffinityTerm", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PodAffinityTerm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WindowsSecurityContextOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WindowsSecurityContextOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WindowsSecurityContextOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GMSACredentialSpecName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.GMSACredentialSpecName = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GMSACredentialSpec", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.GMSACredentialSpec = &s - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsUserName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.RunAsUserName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/core/v1/generated.proto b/pseudo/k8s/api/core/v1/generated.proto deleted file mode 100644 index 2c93351af..000000000 --- a/pseudo/k8s/api/core/v1/generated.proto +++ /dev/null @@ -1,5256 +0,0 @@ -/* -Copyright 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.core.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// Represents a Persistent Disk resource in AWS. -// -// An AWS EBS disk must exist before mounting to a container. The disk -// must also be in the same AWS zone as the kubelet. An AWS EBS disk -// can only be mounted as read/write once. AWS EBS volumes support -// ownership management and SELinux relabeling. -message AWSElasticBlockStoreVolumeSource { - // Unique ID of the persistent disk resource in AWS (Amazon EBS volume). - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - optional string volumeID = 1; - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 2; - - // The partition in the volume that you want to mount. - // If omitted, the default is to mount by volume name. - // Examples: For volume /dev/sda1, you specify the partition as "1". - // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - // +optional - optional int32 partition = 3; - - // Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". - // If omitted, the default is "false". - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - optional bool readOnly = 4; -} - -// Affinity is a group of affinity scheduling rules. -message Affinity { - // Describes node affinity scheduling rules for the pod. - // +optional - optional NodeAffinity nodeAffinity = 1; - - // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - // +optional - optional PodAffinity podAffinity = 2; - - // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - // +optional - optional PodAntiAffinity podAntiAffinity = 3; -} - -// AttachedVolume describes a volume attached to a node -message AttachedVolume { - // Name of the attached volume - optional string name = 1; - - // DevicePath represents the device path where the volume should be available - optional string devicePath = 2; -} - -// AvoidPods describes pods that should avoid this node. This is the value for a -// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and -// will eventually become a field of NodeStatus. -message AvoidPods { - // Bounded-sized list of signatures of pods that should avoid this node, sorted - // in timestamp order from oldest to newest. Size of the slice is unspecified. - // +optional - repeated PreferAvoidPodsEntry preferAvoidPods = 1; -} - -// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. -message AzureDiskVolumeSource { - // The Name of the data disk in the blob storage - optional string diskName = 1; - - // The URI the data disk in the blob storage - optional string diskURI = 2; - - // Host Caching mode: None, Read Only, Read Write. - // +optional - optional string cachingMode = 3; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - optional string fsType = 4; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 5; - - // Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - optional string kind = 6; -} - -// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. -message AzureFilePersistentVolumeSource { - // the name of secret that contains Azure Storage Account Name and Key - optional string secretName = 1; - - // Share Name - optional string shareName = 2; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 3; - - // the namespace of the secret that contains Azure Storage Account Name and Key - // default is the same as the Pod - // +optional - optional string secretNamespace = 4; -} - -// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. -message AzureFileVolumeSource { - // the name of secret that contains Azure Storage Account Name and Key - optional string secretName = 1; - - // Share Name - optional string shareName = 2; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 3; -} - -// Binding ties one object to another; for example, a pod is bound to a node by a scheduler. -// Deprecated in 1.7, please use the bindings subresource of pods instead. -message Binding { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The target object that you want to bind to the standard object. - optional ObjectReference target = 2; -} - -// Represents storage that is managed by an external CSI volume driver (Beta feature) -message CSIPersistentVolumeSource { - // Driver is the name of the driver to use for this volume. - // Required. - optional string driver = 1; - - // VolumeHandle is the unique volume name returned by the CSI volume - // plugin’s CreateVolume to refer to the volume on all subsequent calls. - // Required. - optional string volumeHandle = 2; - - // Optional: The value to pass to ControllerPublishVolumeRequest. - // Defaults to false (read/write). - // +optional - optional bool readOnly = 3; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // +optional - optional string fsType = 4; - - // Attributes of the volume to publish. - // +optional - map volumeAttributes = 5; - - // ControllerPublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // ControllerPublishVolume and ControllerUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - optional SecretReference controllerPublishSecretRef = 6; - - // NodeStageSecretRef is a reference to the secret object containing sensitive - // information to pass to the CSI driver to complete the CSI NodeStageVolume - // and NodeStageVolume and NodeUnstageVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - optional SecretReference nodeStageSecretRef = 7; - - // NodePublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // NodePublishVolume and NodeUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - optional SecretReference nodePublishSecretRef = 8; - - // ControllerExpandSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // ControllerExpandVolume call. - // This is an alpha field and requires enabling ExpandCSIVolumes feature gate. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - optional SecretReference controllerExpandSecretRef = 9; -} - -// Represents a source location of a volume to mount, managed by an external CSI driver -message CSIVolumeSource { - // Driver is the name of the CSI driver that handles this volume. - // Consult with your admin for the correct name as registered in the cluster. - optional string driver = 1; - - // Specifies a read-only configuration for the volume. - // Defaults to false (read/write). - // +optional - optional bool readOnly = 2; - - // Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". - // If not provided, the empty value is passed to the associated CSI driver - // which will determine the default filesystem to apply. - // +optional - optional string fsType = 3; - - // VolumeAttributes stores driver-specific properties that are passed to the CSI - // driver. Consult your driver's documentation for supported values. - // +optional - map volumeAttributes = 4; - - // NodePublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // NodePublishVolume and NodeUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secret references are passed. - // +optional - optional LocalObjectReference nodePublishSecretRef = 5; -} - -// Adds and removes POSIX capabilities from running containers. -message Capabilities { - // Added capabilities - // +optional - repeated string add = 1; - - // Removed capabilities - // +optional - repeated string drop = 2; -} - -// Represents a Ceph Filesystem mount that lasts the lifetime of a pod -// Cephfs volumes do not support ownership management or SELinux relabeling. -message CephFSPersistentVolumeSource { - // Required: Monitors is a collection of Ceph monitors - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - repeated string monitors = 1; - - // Optional: Used as the mounted root, rather than the full Ceph tree, default is / - // +optional - optional string path = 2; - - // Optional: User is the rados user name, default is admin - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional string user = 3; - - // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional string secretFile = 4; - - // Optional: SecretRef is reference to the authentication secret for User, default is empty. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional SecretReference secretRef = 5; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional bool readOnly = 6; -} - -// Represents a Ceph Filesystem mount that lasts the lifetime of a pod -// Cephfs volumes do not support ownership management or SELinux relabeling. -message CephFSVolumeSource { - // Required: Monitors is a collection of Ceph monitors - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - repeated string monitors = 1; - - // Optional: Used as the mounted root, rather than the full Ceph tree, default is / - // +optional - optional string path = 2; - - // Optional: User is the rados user name, default is admin - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional string user = 3; - - // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional string secretFile = 4; - - // Optional: SecretRef is reference to the authentication secret for User, default is empty. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional LocalObjectReference secretRef = 5; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - optional bool readOnly = 6; -} - -// Represents a cinder volume resource in Openstack. -// A Cinder volume must exist before mounting to a container. -// The volume must also be in the same region as the kubelet. -// Cinder volumes support ownership management and SELinux relabeling. -message CinderPersistentVolumeSource { - // volume id used to identify the volume in cinder. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - optional string volumeID = 1; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - optional string fsType = 2; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - optional bool readOnly = 3; - - // Optional: points to a secret object containing parameters used to connect - // to OpenStack. - // +optional - optional SecretReference secretRef = 4; -} - -// Represents a cinder volume resource in Openstack. -// A Cinder volume must exist before mounting to a container. -// The volume must also be in the same region as the kubelet. -// Cinder volumes support ownership management and SELinux relabeling. -message CinderVolumeSource { - // volume id used to identify the volume in cinder. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - optional string volumeID = 1; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - optional string fsType = 2; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - optional bool readOnly = 3; - - // Optional: points to a secret object containing parameters used to connect - // to OpenStack. - // +optional - optional LocalObjectReference secretRef = 4; -} - -// ClientIPConfig represents the configurations of Client IP based session affinity. -message ClientIPConfig { - // timeoutSeconds specifies the seconds of ClientIP type session sticky time. - // The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". - // Default value is 10800(for 3 hours). - // +optional - optional int32 timeoutSeconds = 1; -} - -// Information about the condition of a component. -message ComponentCondition { - // Type of condition for a component. - // Valid value: "Healthy" - optional string type = 1; - - // Status of the condition for a component. - // Valid values for "Healthy": "True", "False", or "Unknown". - optional string status = 2; - - // Message about the condition for a component. - // For example, information about a health check. - // +optional - optional string message = 3; - - // Condition error code for a component. - // For example, a health check error code. - // +optional - optional string error = 4; -} - -// ComponentStatus (and ComponentStatusList) holds the cluster validation info. -message ComponentStatus { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // List of component conditions observed - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated ComponentCondition conditions = 2; -} - -// Status of all the conditions for the component as a list of ComponentStatus objects. -message ComponentStatusList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ComponentStatus objects. - repeated ComponentStatus items = 2; -} - -// ConfigMap holds configuration data for pods to consume. -message ConfigMap { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Data contains the configuration data. - // Each key must consist of alphanumeric characters, '-', '_' or '.'. - // Values with non-UTF-8 byte sequences must use the BinaryData field. - // The keys stored in Data must not overlap with the keys in - // the BinaryData field, this is enforced during validation process. - // +optional - map data = 2; - - // BinaryData contains the binary data. - // Each key must consist of alphanumeric characters, '-', '_' or '.'. - // BinaryData can contain byte sequences that are not in the UTF-8 range. - // The keys stored in BinaryData must not overlap with the ones in - // the Data field, this is enforced during validation process. - // Using this field will require 1.10+ apiserver and - // kubelet. - // +optional - map binaryData = 3; -} - -// ConfigMapEnvSource selects a ConfigMap to populate the environment -// variables with. -// -// The contents of the target ConfigMap's Data field will represent the -// key-value pairs as environment variables. -message ConfigMapEnvSource { - // The ConfigMap to select from. - optional LocalObjectReference localObjectReference = 1; - - // Specify whether the ConfigMap must be defined - // +optional - optional bool optional = 2; -} - -// Selects a key from a ConfigMap. -message ConfigMapKeySelector { - // The ConfigMap to select from. - optional LocalObjectReference localObjectReference = 1; - - // The key to select. - optional string key = 2; - - // Specify whether the ConfigMap or its key must be defined - // +optional - optional bool optional = 3; -} - -// ConfigMapList is a resource containing a list of ConfigMap objects. -message ConfigMapList { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of ConfigMaps. - repeated ConfigMap items = 2; -} - -// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. -message ConfigMapNodeConfigSource { - // Namespace is the metadata.namespace of the referenced ConfigMap. - // This field is required in all cases. - optional string namespace = 1; - - // Name is the metadata.name of the referenced ConfigMap. - // This field is required in all cases. - optional string name = 2; - - // UID is the metadata.UID of the referenced ConfigMap. - // This field is forbidden in Node.Spec, and required in Node.Status. - // +optional - optional string uid = 3; - - // ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. - // This field is forbidden in Node.Spec, and required in Node.Status. - // +optional - optional string resourceVersion = 4; - - // KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure - // This field is required in all cases. - optional string kubeletConfigKey = 5; -} - -// Adapts a ConfigMap into a projected volume. -// -// The contents of the target ConfigMap's Data field will be presented in a -// projected volume as files using the keys in the Data field as the file names, -// unless the items element is populated with specific mappings of keys to paths. -// Note that this is identical to a configmap volume source without the default -// mode. -message ConfigMapProjection { - optional LocalObjectReference localObjectReference = 1; - - // If unspecified, each key-value pair in the Data field of the referenced - // ConfigMap will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the ConfigMap, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - repeated KeyToPath items = 2; - - // Specify whether the ConfigMap or its keys must be defined - // +optional - optional bool optional = 4; -} - -// Adapts a ConfigMap into a volume. -// -// The contents of the target ConfigMap's Data field will be presented in a -// volume as files using the keys in the Data field as the file names, unless -// the items element is populated with specific mappings of keys to paths. -// ConfigMap volumes support ownership management and SELinux relabeling. -message ConfigMapVolumeSource { - optional LocalObjectReference localObjectReference = 1; - - // If unspecified, each key-value pair in the Data field of the referenced - // ConfigMap will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the ConfigMap, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - repeated KeyToPath items = 2; - - // Optional: mode bits to use on created files by default. Must be a - // value between 0 and 0777. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - optional int32 defaultMode = 3; - - // Specify whether the ConfigMap or its keys must be defined - // +optional - optional bool optional = 4; -} - -// A single application container that you want to run within a pod. -message Container { - // Name of the container specified as a DNS_LABEL. - // Each container in a pod must have a unique name (DNS_LABEL). - // Cannot be updated. - optional string name = 1; - - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - optional string image = 2; - - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - repeated string command = 3; - - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - repeated string args = 4; - - // Container's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - optional string workingDir = 5; - - // List of ports to expose from the container. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - repeated ContainerPort ports = 6; - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - repeated EnvFromSource envFrom = 19; - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated EnvVar env = 7; - - // Compute Resources required by this container. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - optional ResourceRequirements resources = 8; - - // Pod volumes to mount into the container's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - repeated VolumeMount volumeMounts = 9; - - // volumeDevices is the list of block devices to be used by the container. - // This is a beta feature. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - repeated VolumeDevice volumeDevices = 21; - - // Periodic probe of container liveness. - // Container will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - optional Probe livenessProbe = 10; - - // Periodic probe of container service readiness. - // Container will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - optional Probe readinessProbe = 11; - - // StartupProbe indicates that the Pod has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // This is an alpha feature enabled by the StartupProbe feature flag. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - optional Probe startupProbe = 22; - - // Actions that the management system should take in response to container lifecycle events. - // Cannot be updated. - // +optional - optional Lifecycle lifecycle = 12; - - // Optional: Path at which the file to which the container's termination message - // will be written is mounted into the container's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - optional string terminationMessagePath = 13; - - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of container log output if the termination - // message file is empty and the container exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - optional string terminationMessagePolicy = 20; - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - optional string imagePullPolicy = 14; - - // Security options the pod should run with. - // More info: https://kubernetes.io/docs/concepts/policy/security-context/ - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - optional SecurityContext securityContext = 15; - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // +optional - optional bool stdin = 16; - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - optional bool stdinOnce = 17; - - // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - optional bool tty = 18; -} - -// Describe a container image -message ContainerImage { - // Names by which this image is known. - // e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] - repeated string names = 1; - - // The size of the image in bytes. - // +optional - optional int64 sizeBytes = 2; -} - -// ContainerPort represents a network port in a single container. -message ContainerPort { - // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each - // named port in a pod must have a unique name. Name for the port that can be - // referred to by services. - // +optional - optional string name = 1; - - // Number of port to expose on the host. - // If specified, this must be a valid port number, 0 < x < 65536. - // If HostNetwork is specified, this must match ContainerPort. - // Most containers do not need this. - // +optional - optional int32 hostPort = 2; - - // Number of port to expose on the pod's IP address. - // This must be a valid port number, 0 < x < 65536. - optional int32 containerPort = 3; - - // Protocol for port. Must be UDP, TCP, or SCTP. - // Defaults to "TCP". - // +optional - optional string protocol = 4; - - // What host IP to bind the external port to. - // +optional - optional string hostIP = 5; -} - -// ContainerState holds a possible state of container. -// Only one of its members may be specified. -// If none of them is specified, the default one is ContainerStateWaiting. -message ContainerState { - // Details about a waiting container - // +optional - optional ContainerStateWaiting waiting = 1; - - // Details about a running container - // +optional - optional ContainerStateRunning running = 2; - - // Details about a terminated container - // +optional - optional ContainerStateTerminated terminated = 3; -} - -// ContainerStateRunning is a running state of a container. -message ContainerStateRunning { - // Time at which the container was last (re-)started - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; -} - -// ContainerStateTerminated is a terminated state of a container. -message ContainerStateTerminated { - // Exit status from the last termination of the container - optional int32 exitCode = 1; - - // Signal from the last termination of the container - // +optional - optional int32 signal = 2; - - // (brief) reason from the last termination of the container - // +optional - optional string reason = 3; - - // Message regarding the last termination of the container - // +optional - optional string message = 4; - - // Time at which previous execution of the container started - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; - - // Time at which the container last terminated - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; - - // Container's ID in the format 'docker://' - // +optional - optional string containerID = 7; -} - -// ContainerStateWaiting is a waiting state of a container. -message ContainerStateWaiting { - // (brief) reason the container is not yet running. - // +optional - optional string reason = 1; - - // Message regarding why the container is not yet running. - // +optional - optional string message = 2; -} - -// ContainerStatus contains details for the current status of this container. -message ContainerStatus { - // This must be a DNS_LABEL. Each container in a pod must have a unique name. - // Cannot be updated. - optional string name = 1; - - // Details about the container's current condition. - // +optional - optional ContainerState state = 2; - - // Details about the container's last termination condition. - // +optional - optional ContainerState lastState = 3; - - // Specifies whether the container has passed its readiness probe. - optional bool ready = 4; - - // The number of times the container has been restarted, currently based on - // the number of dead containers that have not yet been removed. - // Note that this is calculated from dead containers. But those containers are subject to - // garbage collection. This value will get capped at 5 by GC. - optional int32 restartCount = 5; - - // The image the container is running. - // More info: https://kubernetes.io/docs/concepts/containers/images - // TODO(dchen1107): Which image the container is running with? - optional string image = 6; - - // ImageID of the container's image. - optional string imageID = 7; - - // Container's ID in the format 'docker://'. - // +optional - optional string containerID = 8; - - // Specifies whether the container has passed its startup probe. - // Initialized as false, becomes true after startupProbe is considered successful. - // Resets to false when the container is restarted, or if kubelet loses state temporarily. - // Is always true when no startupProbe is defined. - // +optional - optional bool started = 9; -} - -// DaemonEndpoint contains information about a single Daemon endpoint. -message DaemonEndpoint { - // Port number of the given endpoint. - optional int32 Port = 1; -} - -// Represents downward API info for projecting into a projected volume. -// Note that this is identical to a downwardAPI volume source without the default -// mode. -message DownwardAPIProjection { - // Items is a list of DownwardAPIVolume file - // +optional - repeated DownwardAPIVolumeFile items = 1; -} - -// DownwardAPIVolumeFile represents information to create the file containing the pod field -message DownwardAPIVolumeFile { - // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - optional string path = 1; - - // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - // +optional - optional ObjectFieldSelector fieldRef = 2; - - // Selects a resource of the container: only resources limits and requests - // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - // +optional - optional ResourceFieldSelector resourceFieldRef = 3; - - // Optional: mode bits to use on this file, must be a value between 0 - // and 0777. If not specified, the volume defaultMode will be used. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - optional int32 mode = 4; -} - -// DownwardAPIVolumeSource represents a volume containing downward API info. -// Downward API volumes support ownership management and SELinux relabeling. -message DownwardAPIVolumeSource { - // Items is a list of downward API volume file - // +optional - repeated DownwardAPIVolumeFile items = 1; - - // Optional: mode bits to use on created files by default. Must be a - // value between 0 and 0777. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - optional int32 defaultMode = 2; -} - -// Represents an empty directory for a pod. -// Empty directory volumes support ownership management and SELinux relabeling. -message EmptyDirVolumeSource { - // What type of storage medium should back this directory. - // The default is "" which means to use the node's default medium. - // Must be an empty string (default) or Memory. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // +optional - optional string medium = 1; - - // Total amount of local storage required for this EmptyDir volume. - // The size limit is also applicable for memory medium. - // The maximum usage on memory medium EmptyDir would be the minimum value between - // the SizeLimit specified here and the sum of memory limits of all containers in a pod. - // The default is nil which means that the limit is undefined. - // More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; -} - -// EndpointAddress is a tuple that describes single IP address. -message EndpointAddress { - // The IP of this endpoint. - // May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), - // or link-local multicast ((224.0.0.0/24). - // IPv6 is also accepted but not fully supported on all platforms. Also, certain - // kubernetes components, like kube-proxy, are not IPv6 ready. - // TODO: This should allow hostname or IP, See #4447. - optional string ip = 1; - - // The Hostname of this endpoint - // +optional - optional string hostname = 3; - - // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - // +optional - optional string nodeName = 4; - - // Reference to object providing the endpoint. - // +optional - optional ObjectReference targetRef = 2; -} - -// EndpointPort is a tuple that describes a single port. -message EndpointPort { - // The name of this port. This must match the 'name' field in the - // corresponding ServicePort. - // Must be a DNS_LABEL. - // Optional only if one port is defined. - // +optional - optional string name = 1; - - // The port number of the endpoint. - optional int32 port = 2; - - // The IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - // +optional - optional string protocol = 3; -} - -// EndpointSubset is a group of addresses with a common set of ports. The -// expanded set of endpoints is the Cartesian product of Addresses x Ports. -// For example, given: -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// } -// The resulting set of endpoints can be viewed as: -// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], -// b: [ 10.10.1.1:309, 10.10.2.2:309 ] -message EndpointSubset { - // IP addresses which offer the related ports that are marked as ready. These endpoints - // should be considered safe for load balancers and clients to utilize. - // +optional - repeated EndpointAddress addresses = 1; - - // IP addresses which offer the related ports but are not currently marked as ready - // because they have not yet finished starting, have recently failed a readiness check, - // or have recently failed a liveness check. - // +optional - repeated EndpointAddress notReadyAddresses = 2; - - // Port numbers available on the related IP addresses. - // +optional - repeated EndpointPort ports = 3; -} - -// Endpoints is a collection of endpoints that implement the actual service. Example: -// Name: "mysvc", -// Subsets: [ -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// }, -// { -// Addresses: [{"ip": "10.10.3.3"}], -// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] -// }, -// ] -message Endpoints { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The set of all endpoints is the union of all subsets. Addresses are placed into - // subsets according to the IPs they share. A single address with multiple ports, - // some of which are ready and some of which are not (because they come from - // different containers) will result in the address being displayed in different - // subsets for the different ports. No address will appear in both Addresses and - // NotReadyAddresses in the same subset. - // Sets of addresses and ports that comprise a service. - // +optional - repeated EndpointSubset subsets = 2; -} - -// EndpointsList is a list of endpoints. -message EndpointsList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of endpoints. - repeated Endpoints items = 2; -} - -// EnvFromSource represents the source of a set of ConfigMaps -message EnvFromSource { - // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - // +optional - optional string prefix = 1; - - // The ConfigMap to select from - // +optional - optional ConfigMapEnvSource configMapRef = 2; - - // The Secret to select from - // +optional - optional SecretEnvSource secretRef = 3; -} - -// EnvVar represents an environment variable present in a Container. -message EnvVar { - // Name of the environment variable. Must be a C_IDENTIFIER. - optional string name = 1; - - // Variable references $(VAR_NAME) are expanded - // using the previous defined environment variables in the container and - // any service environment variables. If a variable cannot be resolved, - // the reference in the input string will be unchanged. The $(VAR_NAME) - // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - // references will never be expanded, regardless of whether the variable - // exists or not. - // Defaults to "". - // +optional - optional string value = 2; - - // Source for the environment variable's value. Cannot be used if value is not empty. - // +optional - optional EnvVarSource valueFrom = 3; -} - -// EnvVarSource represents a source for the value of an EnvVar. -message EnvVarSource { - // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, - // spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. - // +optional - optional ObjectFieldSelector fieldRef = 1; - - // Selects a resource of the container: only resources limits and requests - // (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - // +optional - optional ResourceFieldSelector resourceFieldRef = 2; - - // Selects a key of a ConfigMap. - // +optional - optional ConfigMapKeySelector configMapKeyRef = 3; - - // Selects a key of a secret in the pod's namespace - // +optional - optional SecretKeySelector secretKeyRef = 4; -} - -// An EphemeralContainer is a container that may be added temporarily to an existing pod for -// user-initiated activities such as debugging. Ephemeral containers have no resource or -// scheduling guarantees, and they will not be restarted when they exit or when a pod is -// removed or restarted. If an ephemeral container causes a pod to exceed its resource -// allocation, the pod may be evicted. -// Ephemeral containers may not be added by directly updating the pod spec. They must be added -// via the pod's ephemeralcontainers subresource, and they will appear in the pod spec -// once added. -// This is an alpha feature enabled by the EphemeralContainers feature flag. -message EphemeralContainer { - // Ephemeral containers have all of the fields of Container, plus additional fields - // specific to ephemeral containers. Fields in common with Container are in the - // following inlined struct so than an EphemeralContainer may easily be converted - // to a Container. - optional EphemeralContainerCommon ephemeralContainerCommon = 1; - - // If set, the name of the container from PodSpec that this ephemeral container targets. - // The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. - // If not set then the ephemeral container is run in whatever namespaces are shared - // for the pod. Note that the container runtime must support this feature. - // +optional - optional string targetContainerName = 2; -} - -// EphemeralContainerCommon is a copy of all fields in Container to be inlined in -// EphemeralContainer. This separate type allows easy conversion from EphemeralContainer -// to Container and allows separate documentation for the fields of EphemeralContainer. -// When a new field is added to Container it must be added here as well. -message EphemeralContainerCommon { - // Name of the ephemeral container specified as a DNS_LABEL. - // This name must be unique among all containers, init containers and ephemeral containers. - optional string name = 1; - - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - optional string image = 2; - - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - repeated string command = 3; - - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - repeated string args = 4; - - // Container's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - optional string workingDir = 5; - - // Ports are not allowed for ephemeral containers. - repeated ContainerPort ports = 6; - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - repeated EnvFromSource envFrom = 19; - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated EnvVar env = 7; - - // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources - // already allocated to the pod. - // +optional - optional ResourceRequirements resources = 8; - - // Pod volumes to mount into the container's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - repeated VolumeMount volumeMounts = 9; - - // volumeDevices is the list of block devices to be used by the container. - // This is a beta feature. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - repeated VolumeDevice volumeDevices = 21; - - // Probes are not allowed for ephemeral containers. - // +optional - optional Probe livenessProbe = 10; - - // Probes are not allowed for ephemeral containers. - // +optional - optional Probe readinessProbe = 11; - - // Probes are not allowed for ephemeral containers. - // +optional - optional Probe startupProbe = 22; - - // Lifecycle is not allowed for ephemeral containers. - // +optional - optional Lifecycle lifecycle = 12; - - // Optional: Path at which the file to which the container's termination message - // will be written is mounted into the container's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - optional string terminationMessagePath = 13; - - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of container log output if the termination - // message file is empty and the container exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - optional string terminationMessagePolicy = 20; - - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - optional string imagePullPolicy = 14; - - // SecurityContext is not allowed for ephemeral containers. - // +optional - optional SecurityContext securityContext = 15; - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // +optional - optional bool stdin = 16; - - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - optional bool stdinOnce = 17; - - // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - optional bool tty = 18; -} - -// A list of ephemeral containers used with the Pod ephemeralcontainers subresource. -message EphemeralContainers { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // A list of ephemeral containers associated with this pod. New ephemeral containers - // may be appended to this list, but existing ephemeral containers may not be removed - // or modified. - // +patchMergeKey=name - // +patchStrategy=merge - repeated EphemeralContainer ephemeralContainers = 2; -} - -// Event is a report of an event somewhere in the cluster. -message Event { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The object that this event is about. - optional ObjectReference involvedObject = 2; - - // This should be a short, machine understandable string that gives the reason - // for the transition into the object's current status. - // TODO: provide exact specification for format. - // +optional - optional string reason = 3; - - // A human-readable description of the status of this operation. - // TODO: decide on maximum length. - // +optional - optional string message = 4; - - // The component reporting this event. Should be a short machine understandable string. - // +optional - optional EventSource source = 5; - - // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; - - // The time at which the most recent occurrence of this event was recorded. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; - - // The number of times this event has occurred. - // +optional - optional int32 count = 8; - - // 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. -message EventList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of events - repeated Event items = 2; -} - -// EventSeries contain information on series of events, i.e. thing that was/is happening -// continuously for some time. -message EventSeries { - // Number of occurrences in this series up to the last heartbeat time - optional int32 count = 1; - - // Time of the last occurrence observed - optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; - - // State of this Series: Ongoing or Finished - // Deprecated. Planned removal for 1.18 - optional string state = 3; -} - -// EventSource contains information for an event. -message EventSource { - // Component from which the event is generated. - // +optional - optional string component = 1; - - // Node name on which the event is generated. - // +optional - optional string host = 2; -} - -// ExecAction describes a "run in container" action. -message ExecAction { - // Command is the command line to execute inside the container, the working directory for the - // command is root ('/') in the container's filesystem. The command is simply exec'd, it is - // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - // a shell, you need to explicitly call out to that shell. - // Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - // +optional - repeated string command = 1; -} - -// Represents a Fibre Channel volume. -// Fibre Channel volumes can only be mounted as read/write once. -// Fibre Channel volumes support ownership management and SELinux relabeling. -message FCVolumeSource { - // Optional: FC target worldwide names (WWNs) - // +optional - repeated string targetWWNs = 1; - - // Optional: FC target lun number - // +optional - optional int32 lun = 2; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 3; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 4; - - // Optional: FC volume world wide identifiers (wwids) - // Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - // +optional - repeated string wwids = 5; -} - -// FlexPersistentVolumeSource represents a generic persistent volume resource that is -// provisioned/attached using an exec based plugin. -message FlexPersistentVolumeSource { - // Driver is the name of the driver to use for this volume. - optional string driver = 1; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - // +optional - optional string fsType = 2; - - // Optional: SecretRef is reference to the secret object containing - // sensitive information to pass to the plugin scripts. This may be - // empty if no secret object is specified. If the secret object - // contains more than one secret, all secrets are passed to the plugin - // scripts. - // +optional - optional SecretReference secretRef = 3; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 4; - - // Optional: Extra command options if any. - // +optional - map options = 5; -} - -// FlexVolume represents a generic volume resource that is -// provisioned/attached using an exec based plugin. -message FlexVolumeSource { - // Driver is the name of the driver to use for this volume. - optional string driver = 1; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - // +optional - optional string fsType = 2; - - // Optional: SecretRef is reference to the secret object containing - // sensitive information to pass to the plugin scripts. This may be - // empty if no secret object is specified. If the secret object - // contains more than one secret, all secrets are passed to the plugin - // scripts. - // +optional - optional LocalObjectReference secretRef = 3; - - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 4; - - // Optional: Extra command options if any. - // +optional - map options = 5; -} - -// Represents a Flocker volume mounted by the Flocker agent. -// One and only one of datasetName and datasetUUID should be set. -// Flocker volumes do not support ownership management or SELinux relabeling. -message FlockerVolumeSource { - // Name of the dataset stored as metadata -> name on the dataset for Flocker - // should be considered as deprecated - // +optional - optional string datasetName = 1; - - // UUID of the dataset. This is unique identifier of a Flocker dataset - // +optional - optional string datasetUUID = 2; -} - -// Represents a Persistent Disk resource in Google Compute Engine. -// -// A GCE PD must exist before mounting to a container. The disk must -// also be in the same GCE project and zone as the kubelet. A GCE PD -// can only be mounted as read/write once or read-only many times. GCE -// PDs support ownership management and SELinux relabeling. -message GCEPersistentDiskVolumeSource { - // Unique name of the PD resource in GCE. Used to identify the disk in GCE. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - optional string pdName = 1; - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 2; - - // The partition in the volume that you want to mount. - // If omitted, the default is to mount by volume name. - // Examples: For volume /dev/sda1, you specify the partition as "1". - // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - optional int32 partition = 3; - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - optional bool readOnly = 4; -} - -// Represents a volume that is populated with the contents of a git repository. -// Git repo volumes do not support ownership management. -// Git repo volumes support SELinux relabeling. -// -// DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an -// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir -// into the Pod's container. -message GitRepoVolumeSource { - // Repository URL - optional string repository = 1; - - // Commit hash for the specified revision. - // +optional - optional string revision = 2; - - // Target directory name. - // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the - // git repository. Otherwise, if specified, the volume will contain the git repository in - // the subdirectory with the given name. - // +optional - optional string directory = 3; -} - -// Represents a Glusterfs mount that lasts the lifetime of a pod. -// Glusterfs volumes do not support ownership management or SELinux relabeling. -message GlusterfsPersistentVolumeSource { - // EndpointsName is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - optional string endpoints = 1; - - // Path is the Glusterfs volume path. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - optional string path = 2; - - // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - optional bool readOnly = 3; - - // EndpointsNamespace is the namespace that contains Glusterfs endpoint. - // If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - optional string endpointsNamespace = 4; -} - -// Represents a Glusterfs mount that lasts the lifetime of a pod. -// Glusterfs volumes do not support ownership management or SELinux relabeling. -message GlusterfsVolumeSource { - // EndpointsName is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - optional string endpoints = 1; - - // Path is the Glusterfs volume path. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - optional string path = 2; - - // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - optional bool readOnly = 3; -} - -// HTTPGetAction describes an action based on HTTP Get requests. -message HTTPGetAction { - // Path to access on the HTTP server. - // +optional - optional string path = 1; - - // Name or number of the port to access on the container. - // Number must be in the range 1 to 65535. - // Name must be an IANA_SVC_NAME. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; - - // Host name to connect to, defaults to the pod IP. You probably want to set - // "Host" in httpHeaders instead. - // +optional - optional string host = 3; - - // Scheme to use for connecting to the host. - // Defaults to HTTP. - // +optional - optional string scheme = 4; - - // Custom headers to set in the request. HTTP allows repeated headers. - // +optional - repeated HTTPHeader httpHeaders = 5; -} - -// HTTPHeader describes a custom header to be used in HTTP probes -message HTTPHeader { - // The header field name - optional string name = 1; - - // The header field value - optional string value = 2; -} - -// Handler defines a specific action that should be taken -// TODO: pass structured data to these actions, and document that data here. -message Handler { - // One and only one of the following should be specified. - // Exec specifies the action to take. - // +optional - optional ExecAction exec = 1; - - // HTTPGet specifies the http request to perform. - // +optional - optional HTTPGetAction httpGet = 2; - - // TCPSocket specifies an action involving a TCP port. - // TCP hooks not yet supported - // TODO: implement a realistic TCP lifecycle hook - // +optional - optional TCPSocketAction tcpSocket = 3; -} - -// HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the -// pod's hosts file. -message HostAlias { - // IP address of the host file entry. - optional string ip = 1; - - // Hostnames for the above IP address. - repeated string hostnames = 2; -} - -// Represents a host path mapped into a pod. -// Host path volumes do not support ownership management or SELinux relabeling. -message HostPathVolumeSource { - // Path of the directory on the host. - // If the path is a symlink, it will follow the link to the real path. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - optional string path = 1; - - // Type for HostPath Volume - // Defaults to "" - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // +optional - optional string type = 2; -} - -// ISCSIPersistentVolumeSource represents an ISCSI disk. -// ISCSI volumes can only be mounted as read/write once. -// ISCSI volumes support ownership management and SELinux relabeling. -message ISCSIPersistentVolumeSource { - // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - optional string targetPortal = 1; - - // Target iSCSI Qualified Name. - optional string iqn = 2; - - // iSCSI Target Lun number. - optional int32 lun = 3; - - // iSCSI Interface Name that uses an iSCSI transport. - // Defaults to 'default' (tcp). - // +optional - optional string iscsiInterface = 4; - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 5; - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // +optional - optional bool readOnly = 6; - - // iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - // +optional - repeated string portals = 7; - - // whether support iSCSI Discovery CHAP authentication - // +optional - optional bool chapAuthDiscovery = 8; - - // whether support iSCSI Session CHAP authentication - // +optional - optional bool chapAuthSession = 11; - - // CHAP Secret for iSCSI target and initiator authentication - // +optional - optional SecretReference secretRef = 10; - - // Custom iSCSI Initiator Name. - // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - // : will be created for the connection. - // +optional - optional string initiatorName = 12; -} - -// Represents an ISCSI disk. -// ISCSI volumes can only be mounted as read/write once. -// ISCSI volumes support ownership management and SELinux relabeling. -message ISCSIVolumeSource { - // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - optional string targetPortal = 1; - - // Target iSCSI Qualified Name. - optional string iqn = 2; - - // iSCSI Target Lun number. - optional int32 lun = 3; - - // iSCSI Interface Name that uses an iSCSI transport. - // Defaults to 'default' (tcp). - // +optional - optional string iscsiInterface = 4; - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 5; - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // +optional - optional bool readOnly = 6; - - // iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - // +optional - repeated string portals = 7; - - // whether support iSCSI Discovery CHAP authentication - // +optional - optional bool chapAuthDiscovery = 8; - - // whether support iSCSI Session CHAP authentication - // +optional - optional bool chapAuthSession = 11; - - // CHAP Secret for iSCSI target and initiator authentication - // +optional - optional LocalObjectReference secretRef = 10; - - // Custom iSCSI Initiator Name. - // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - // : will be created for the connection. - // +optional - optional string initiatorName = 12; -} - -// Maps a string key to a path within a volume. -message KeyToPath { - // The key to project. - optional string key = 1; - - // The relative path of the file to map the key to. - // May not be an absolute path. - // May not contain the path element '..'. - // May not start with the string '..'. - optional string path = 2; - - // Optional: mode bits to use on this file, must be a value between 0 - // and 0777. If not specified, the volume defaultMode will be used. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - optional int32 mode = 3; -} - -// Lifecycle describes actions that the management system should take in response to container lifecycle -// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks -// until the action is complete, unless the container process fails, in which case the handler is aborted. -message Lifecycle { - // PostStart is called immediately after a container is created. If the handler fails, - // the container is terminated and restarted according to its restart policy. - // Other management of the container blocks until the hook completes. - // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - // +optional - optional Handler postStart = 1; - - // PreStop is called immediately before a container is terminated due to an - // API request or management event such as liveness/startup probe failure, - // preemption, resource contention, etc. The handler is not called if the - // container crashes or exits. The reason for termination is passed to the - // handler. The Pod's termination grace period countdown begins before the - // PreStop hooked is executed. Regardless of the outcome of the handler, the - // container will eventually terminate within the Pod's termination grace - // period. Other management of the container blocks until the hook completes - // or until the termination grace period is reached. - // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - // +optional - optional Handler preStop = 2; -} - -// LimitRange sets resource usage limits for each kind of resource in a Namespace. -message LimitRange { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the limits enforced. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional LimitRangeSpec spec = 2; -} - -// LimitRangeItem defines a min/max usage limit for any resource that matches on kind. -message LimitRangeItem { - // Type of resource that this limit applies to. - // +optional - optional string type = 1; - - // Max usage constraints on this kind by resource name. - // +optional - map max = 2; - - // Min usage constraints on this kind by resource name. - // +optional - map min = 3; - - // Default resource requirement limit value by resource name if resource limit is omitted. - // +optional - map default = 4; - - // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - // +optional - map defaultRequest = 5; - - // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - // +optional - map maxLimitRequestRatio = 6; -} - -// LimitRangeList is a list of LimitRange items. -message LimitRangeList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of LimitRange objects. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - repeated LimitRange items = 2; -} - -// LimitRangeSpec defines a min/max usage limit for resources that match on kind. -message LimitRangeSpec { - // Limits is the list of LimitRangeItem objects that are enforced. - repeated LimitRangeItem limits = 1; -} - -// List holds a list of objects, which may not be known by the server. -message List { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of objects - repeated k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; -} - -// LoadBalancerIngress represents the status of a load-balancer ingress point: -// traffic intended for the service should be sent to an ingress point. -message LoadBalancerIngress { - // IP is set for load-balancer ingress points that are IP based - // (typically GCE or OpenStack load-balancers) - // +optional - optional string ip = 1; - - // Hostname is set for load-balancer ingress points that are DNS based - // (typically AWS load-balancers) - // +optional - optional string hostname = 2; -} - -// LoadBalancerStatus represents the status of a load-balancer. -message LoadBalancerStatus { - // Ingress is a list containing ingress points for the load-balancer. - // Traffic intended for the service should be sent to these ingress points. - // +optional - repeated LoadBalancerIngress ingress = 1; -} - -// LocalObjectReference contains enough information to let you locate the -// referenced object inside the same namespace. -message LocalObjectReference { - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // TODO: Add other useful fields. apiVersion, kind, uid? - // +optional - optional string name = 1; -} - -// Local represents directly-attached storage with node affinity (Beta feature) -message LocalVolumeSource { - // The full path to the volume on the node. - // It can be either a directory or block device (disk, partition, ...). - optional string path = 1; - - // Filesystem type to mount. - // It applies only when the Path is a block device. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - // +optional - optional string fsType = 2; -} - -// Represents an NFS mount that lasts the lifetime of a pod. -// NFS volumes do not support ownership management or SELinux relabeling. -message NFSVolumeSource { - // Server is the hostname or IP address of the NFS server. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - optional string server = 1; - - // Path that is exported by the NFS server. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - optional string path = 2; - - // ReadOnly here will force - // the NFS export to be mounted with read-only permissions. - // Defaults to false. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - optional bool readOnly = 3; -} - -// Namespace provides a scope for Names. -// Use of multiple namespaces is optional. -message Namespace { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the behavior of the Namespace. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional NamespaceSpec spec = 2; - - // Status describes the current status of a Namespace. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional NamespaceStatus status = 3; -} - -// NamespaceCondition contains details about state of namespace. -message NamespaceCondition { - // Type of namespace controller condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // +optional - optional string reason = 5; - - // +optional - optional string message = 6; -} - -// NamespaceList is a list of Namespaces. -message NamespaceList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Namespace objects in the list. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - repeated Namespace items = 2; -} - -// NamespaceSpec describes the attributes on a Namespace. -message NamespaceSpec { - // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. - // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // +optional - repeated string finalizers = 1; -} - -// NamespaceStatus is information about the current status of a Namespace. -message NamespaceStatus { - // Phase is the current lifecycle phase of the namespace. - // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // +optional - optional string phase = 1; - - // Represents the latest available observations of a namespace's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated NamespaceCondition conditions = 2; -} - -// Node is a worker node in Kubernetes. -// Each node will have a unique identifier in the cache (i.e. in etcd). -message Node { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the behavior of a node. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional NodeSpec spec = 2; - - // Most recently observed status of the node. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional NodeStatus status = 3; -} - -// NodeAddress contains information for the node's address. -message NodeAddress { - // Node address type, one of Hostname, ExternalIP or InternalIP. - optional string type = 1; - - // The node address. - optional string address = 2; -} - -// Node affinity is a group of node affinity scheduling rules. -message NodeAffinity { - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to an update), the system - // may or may not try to eventually evict the pod from its node. - // +optional - optional NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; - - // The scheduler will prefer to schedule pods to nodes that satisfy - // the affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node matches the corresponding matchExpressions; the - // node(s) with the highest sum are the most preferred. - // +optional - repeated PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; -} - -// NodeCondition contains condition information for a node. -message NodeCondition { - // Type of node condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time we got an update on a given condition. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; - - // Last time the condition transit from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // (brief) reason for the condition's last transition. - // +optional - optional string reason = 5; - - // Human readable message indicating details about last transition. - // +optional - optional string message = 6; -} - -// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. -message NodeConfigSource { - // ConfigMap is a reference to a Node's ConfigMap - optional ConfigMapNodeConfigSource configMap = 2; -} - -// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. -message NodeConfigStatus { - // Assigned reports the checkpointed config the node will try to use. - // When Node.Spec.ConfigSource is updated, the node checkpoints the associated - // config payload to local disk, along with a record indicating intended - // config. The node refers to this record to choose its config checkpoint, and - // reports this record in Assigned. Assigned only updates in the status after - // the record has been checkpointed to disk. When the Kubelet is restarted, - // it tries to make the Assigned config the Active config by loading and - // validating the checkpointed payload identified by Assigned. - // +optional - optional NodeConfigSource assigned = 1; - - // Active reports the checkpointed config the node is actively using. - // Active will represent either the current version of the Assigned config, - // or the current LastKnownGood config, depending on whether attempting to use the - // Assigned config results in an error. - // +optional - optional NodeConfigSource active = 2; - - // LastKnownGood reports the checkpointed config the node will fall back to - // when it encounters an error attempting to use the Assigned config. - // The Assigned config becomes the LastKnownGood config when the node determines - // that the Assigned config is stable and correct. - // This is currently implemented as a 10-minute soak period starting when the local - // record of Assigned config is updated. If the Assigned config is Active at the end - // of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is - // reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, - // because the local default config is always assumed good. - // You should not make assumptions about the node's method of determining config stability - // and correctness, as this may change or become configurable in the future. - // +optional - optional NodeConfigSource lastKnownGood = 3; - - // Error describes any problems reconciling the Spec.ConfigSource to the Active config. - // Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned - // record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting - // to load or validate the Assigned config, etc. - // Errors may occur at different points while syncing config. Earlier errors (e.g. download or - // checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across - // Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in - // a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error - // by fixing the config assigned in Spec.ConfigSource. - // You can find additional information for debugging by searching the error message in the Kubelet log. - // Error is a human-readable description of the error state; machines can check whether or not Error - // is empty, but should not rely on the stability of the Error text across Kubelet versions. - // +optional - optional string error = 4; -} - -// NodeDaemonEndpoints lists ports opened by daemons running on the Node. -message NodeDaemonEndpoints { - // Endpoint on which Kubelet is listening. - // +optional - optional DaemonEndpoint kubeletEndpoint = 1; -} - -// NodeList is the whole list of all Nodes which have been registered with master. -message NodeList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of nodes - repeated Node items = 2; -} - -// NodeProxyOptions is the query options to a Node's proxy call. -message NodeProxyOptions { - // Path is the URL path to use for the current proxy request to node. - // +optional - optional string path = 1; -} - -// NodeResources is an object for conveying resource information about a node. -// see http://releases.k8s.io/HEAD/docs/design/resources.md for more details. -message NodeResources { - // Capacity represents the available resources of a node - map capacity = 1; -} - -// A node selector represents the union of the results of one or more label queries -// over a set of nodes; that is, it represents the OR of the selectors represented -// by the node selector terms. -message NodeSelector { - // Required. A list of node selector terms. The terms are ORed. - repeated NodeSelectorTerm nodeSelectorTerms = 1; -} - -// A node selector requirement is a selector that contains values, a key, and an operator -// that relates the key and values. -message NodeSelectorRequirement { - // The label key that the selector applies to. - optional string key = 1; - - // Represents a key's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - optional string operator = 2; - - // An array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. If the operator is Gt or Lt, the values - // array must have a single element, which will be interpreted as an integer. - // This array is replaced during a strategic merge patch. - // +optional - repeated string values = 3; -} - -// A null or empty node selector term matches no objects. The requirements of -// them are ANDed. -// The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. -message NodeSelectorTerm { - // A list of node selector requirements by node's labels. - // +optional - repeated NodeSelectorRequirement matchExpressions = 1; - - // A list of node selector requirements by node's fields. - // +optional - repeated NodeSelectorRequirement matchFields = 2; -} - -// NodeSpec describes the attributes that a node is created with. -message NodeSpec { - // PodCIDR represents the pod IP range assigned to the node. - // +optional - optional string podCIDR = 1; - - // podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this - // field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for - // each of IPv4 and IPv6. - // +optional - // +patchStrategy=merge - repeated string podCIDRs = 7; - - // ID of the node assigned by the cloud provider in the format: :// - // +optional - optional string providerID = 3; - - // Unschedulable controls node schedulability of new pods. By default, node is schedulable. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - // +optional - optional bool unschedulable = 4; - - // If specified, the node's taints. - // +optional - repeated Taint taints = 5; - - // If specified, the source to get node configuration from - // The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field - // +optional - optional NodeConfigSource configSource = 6; - - // Deprecated. Not all kubelets will set this field. Remove field after 1.13. - // see: https://issues.k8s.io/61966 - // +optional - optional string externalID = 2; -} - -// NodeStatus is information about the current status of a node. -message NodeStatus { - // Capacity represents the total resources of a node. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - // +optional - map capacity = 1; - - // Allocatable represents the resources of a node that are available for scheduling. - // Defaults to Capacity. - // +optional - map allocatable = 2; - - // NodePhase is the recently observed lifecycle phase of the node. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#phase - // The field is never populated, and now is deprecated. - // +optional - optional string phase = 3; - - // Conditions is an array of current observed node conditions. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated NodeCondition conditions = 4; - - // List of addresses reachable to the node. - // Queried from cloud provider, if available. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses - // Note: This field is declared as mergeable, but the merge key is not sufficiently - // unique, which can cause data corruption when it is merged. Callers should instead - // use a full-replacement patch. See http://pr.k8s.io/79391 for an example. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated NodeAddress addresses = 5; - - // Endpoints of daemons running on the Node. - // +optional - optional NodeDaemonEndpoints daemonEndpoints = 6; - - // Set of ids/uuids to uniquely identify the node. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#info - // +optional - optional NodeSystemInfo nodeInfo = 7; - - // List of container images on this node - // +optional - repeated ContainerImage images = 8; - - // List of attachable volumes in use (mounted) by the node. - // +optional - repeated string volumesInUse = 9; - - // List of volumes that are attached to the node. - // +optional - repeated AttachedVolume volumesAttached = 10; - - // Status of the config assigned to the node via the dynamic Kubelet config feature. - // +optional - optional NodeConfigStatus config = 11; -} - -// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. -message NodeSystemInfo { - // MachineID reported by the node. For unique machine identification - // in the cluster this field is preferred. Learn more from man(5) - // machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - optional string machineID = 1; - - // SystemUUID reported by the node. For unique machine identification - // MachineID is preferred. This field is specific to Red Hat hosts - // https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html - optional string systemUUID = 2; - - // Boot ID reported by the node. - optional string bootID = 3; - - // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - optional string kernelVersion = 4; - - // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - optional string osImage = 5; - - // ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - optional string containerRuntimeVersion = 6; - - // Kubelet Version reported by the node. - optional string kubeletVersion = 7; - - // KubeProxy Version reported by the node. - optional string kubeProxyVersion = 8; - - // The Operating System reported by the node - optional string operatingSystem = 9; - - // The Architecture reported by the node - optional string architecture = 10; -} - -// ObjectFieldSelector selects an APIVersioned field of an object. -message ObjectFieldSelector { - // Version of the schema the FieldPath is written in terms of, defaults to "v1". - // +optional - optional string apiVersion = 1; - - // Path of the field to select in the specified API version. - optional string fieldPath = 2; -} - -// ObjectReference contains enough information to let you inspect or modify the referred object. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message ObjectReference { - // Kind of the referent. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional string kind = 1; - - // Namespace of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - // +optional - optional string namespace = 2; - - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // +optional - optional string name = 3; - - // UID of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - // +optional - optional string uid = 4; - - // API version of the referent. - // +optional - optional string apiVersion = 5; - - // Specific resourceVersion to which this reference is made, if any. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - optional string resourceVersion = 6; - - // If referring to a piece of an object instead of an entire object, this string - // should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. - // For example, if the object reference is to a container within a pod, this would take on a value like: - // "spec.containers{name}" (where "name" refers to the name of the container that triggered - // the event) or if no container name is specified "spec.containers[2]" (container with - // index 2 in this pod). This syntax is chosen only to have some well-defined way of - // referencing a part of an object. - // TODO: this design is not final and this field is subject to change in the future. - // +optional - optional string fieldPath = 7; -} - -// PersistentVolume (PV) is a storage resource provisioned by an administrator. -// It is analogous to a node. -// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes -message PersistentVolume { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines a specification of a persistent volume owned by the cluster. - // Provisioned by an administrator. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - // +optional - optional PersistentVolumeSpec spec = 2; - - // Status represents the current information/status for the persistent volume. - // Populated by the system. - // Read-only. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - // +optional - optional PersistentVolumeStatus status = 3; -} - -// PersistentVolumeClaim is a user's request for and claim to a persistent volume -message PersistentVolumeClaim { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the desired characteristics of a volume requested by a pod author. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - optional PersistentVolumeClaimSpec spec = 2; - - // Status represents the current information/status of a persistent volume claim. - // Read-only. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - optional PersistentVolumeClaimStatus status = 3; -} - -// PersistentVolumeClaimCondition contails details about state of pvc -message PersistentVolumeClaimCondition { - optional string type = 1; - - optional string status = 2; - - // Last time we probed the condition. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // Unique, this should be a short, machine understandable string that gives the reason - // for condition's last transition. If it reports "ResizeStarted" that means the underlying - // persistent volume is being resized. - // +optional - optional string reason = 5; - - // Human-readable message indicating details about last transition. - // +optional - optional string message = 6; -} - -// PersistentVolumeClaimList is a list of PersistentVolumeClaim items. -message PersistentVolumeClaimList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // A list of persistent volume claims. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - repeated PersistentVolumeClaim items = 2; -} - -// PersistentVolumeClaimSpec describes the common attributes of storage devices -// and allows a Source for provider-specific attributes -message PersistentVolumeClaimSpec { - // AccessModes contains the desired access modes the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - repeated string accessModes = 1; - - // A label query over volumes to consider for binding. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; - - // Resources represents the minimum resources the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - // +optional - optional ResourceRequirements resources = 2; - - // VolumeName is the binding reference to the PersistentVolume backing this claim. - // +optional - optional string volumeName = 3; - - // Name of the StorageClass required by the claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - // +optional - optional string storageClassName = 5; - - // volumeMode defines what type of volume is required by the claim. - // Value of Filesystem is implied when not included in claim spec. - // This is a beta feature. - // +optional - optional string volumeMode = 6; - - // This field requires the VolumeSnapshotDataSource alpha feature gate to be - // enabled and currently VolumeSnapshot is the only supported data source. - // If the provisioner can support VolumeSnapshot data source, it will create - // a new volume and data will be restored to the volume at the same time. - // If the provisioner does not support VolumeSnapshot data source, volume will - // not be created and the failure will be reported as an event. - // In the future, we plan to support more data source types and the behavior - // of the provisioner may change. - // +optional - optional TypedLocalObjectReference dataSource = 7; -} - -// PersistentVolumeClaimStatus is the current status of a persistent volume claim. -message PersistentVolumeClaimStatus { - // Phase represents the current phase of PersistentVolumeClaim. - // +optional - optional string phase = 1; - - // AccessModes contains the actual access modes the volume backing the PVC has. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - repeated string accessModes = 2; - - // Represents the actual resources of the underlying volume. - // +optional - map capacity = 3; - - // Current Condition of persistent volume claim. If underlying persistent volume is being - // resized then the Condition will be set to 'ResizeStarted'. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated PersistentVolumeClaimCondition conditions = 4; -} - -// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. -// This volume finds the bound PV and mounts that volume for the pod. A -// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another -// type of volume that is owned by someone else (the system). -message PersistentVolumeClaimVolumeSource { - // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - optional string claimName = 1; - - // Will force the ReadOnly setting in VolumeMounts. - // Default false. - // +optional - optional bool readOnly = 2; -} - -// PersistentVolumeList is a list of PersistentVolume items. -message PersistentVolumeList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of persistent volumes. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - repeated PersistentVolume items = 2; -} - -// PersistentVolumeSource is similar to VolumeSource but meant for the -// administrator who creates PVs. Exactly one of its members must be set. -message PersistentVolumeSource { - // GCEPersistentDisk represents a GCE Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. Provisioned by an admin. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - optional GCEPersistentDiskVolumeSource gcePersistentDisk = 1; - - // AWSElasticBlockStore represents an AWS Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - optional AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; - - // HostPath represents a directory on the host. - // Provisioned by a developer or tester. - // This is useful for single-node development and testing only! - // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // +optional - optional HostPathVolumeSource hostPath = 3; - - // Glusterfs represents a Glusterfs volume that is attached to a host and - // exposed to the pod. Provisioned by an admin. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md - // +optional - optional GlusterfsPersistentVolumeSource glusterfs = 4; - - // NFS represents an NFS mount on the host. Provisioned by an admin. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - optional NFSVolumeSource nfs = 5; - - // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/rbd/README.md - // +optional - optional RBDPersistentVolumeSource rbd = 6; - - // ISCSI represents an ISCSI Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. Provisioned by an admin. - // +optional - optional ISCSIPersistentVolumeSource iscsi = 7; - - // Cinder represents a cinder volume attached and mounted on kubelets host machine. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - optional CinderPersistentVolumeSource cinder = 8; - - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - // +optional - optional CephFSPersistentVolumeSource cephfs = 9; - - // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - // +optional - optional FCVolumeSource fc = 10; - - // Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - // +optional - optional FlockerVolumeSource flocker = 11; - - // FlexVolume represents a generic volume resource that is - // provisioned/attached using an exec based plugin. - // +optional - optional FlexPersistentVolumeSource flexVolume = 12; - - // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - // +optional - optional AzureFilePersistentVolumeSource azureFile = 13; - - // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - // +optional - optional VsphereVirtualDiskVolumeSource vsphereVolume = 14; - - // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - // +optional - optional QuobyteVolumeSource quobyte = 15; - - // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - // +optional - optional AzureDiskVolumeSource azureDisk = 16; - - // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - optional PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; - - // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - // +optional - optional PortworxVolumeSource portworxVolume = 18; - - // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - // +optional - optional ScaleIOPersistentVolumeSource scaleIO = 19; - - // Local represents directly-attached storage with node affinity - // +optional - optional LocalVolumeSource local = 20; - - // StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod - // More info: https://examples.k8s.io/volumes/storageos/README.md - // +optional - optional StorageOSPersistentVolumeSource storageos = 21; - - // CSI represents storage that is handled by an external CSI driver (Beta feature). - // +optional - optional CSIPersistentVolumeSource csi = 22; -} - -// PersistentVolumeSpec is the specification of a persistent volume. -message PersistentVolumeSpec { - // A description of the persistent volume's resources and capacity. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - // +optional - map capacity = 1; - - // The actual volume backing the persistent volume. - optional PersistentVolumeSource persistentVolumeSource = 2; - - // AccessModes contains all ways the volume can be mounted. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - // +optional - repeated string accessModes = 3; - - // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. - // Expected to be non-nil when bound. - // claim.VolumeName is the authoritative bind between PV and PVC. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - // +optional - optional ObjectReference claimRef = 4; - - // What happens to a persistent volume when released from its claim. - // Valid options are Retain (default for manually created PersistentVolumes), Delete (default - // for dynamically provisioned PersistentVolumes), and Recycle (deprecated). - // Recycle must be supported by the volume plugin underlying this PersistentVolume. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - // +optional - optional string persistentVolumeReclaimPolicy = 5; - - // Name of StorageClass to which this persistent volume belongs. Empty value - // means that this volume does not belong to any StorageClass. - // +optional - optional string storageClassName = 6; - - // A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will - // simply fail if one is invalid. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - // +optional - repeated string mountOptions = 7; - - // volumeMode defines if a volume is intended to be used with a formatted filesystem - // or to remain in raw block state. Value of Filesystem is implied when not included in spec. - // This is a beta feature. - // +optional - optional string volumeMode = 8; - - // NodeAffinity defines constraints that limit what nodes this volume can be accessed from. - // This field influences the scheduling of pods that use this volume. - // +optional - optional VolumeNodeAffinity nodeAffinity = 9; -} - -// PersistentVolumeStatus is the current status of a persistent volume. -message PersistentVolumeStatus { - // Phase indicates if a volume is available, bound to a claim, or released by a claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - // +optional - optional string phase = 1; - - // A human-readable message indicating details about why the volume is in this state. - // +optional - optional string message = 2; - - // Reason is a brief CamelCase string that describes any failure and is meant - // for machine parsing and tidy display in the CLI. - // +optional - optional string reason = 3; -} - -// Represents a Photon Controller persistent disk resource. -message PhotonPersistentDiskVolumeSource { - // ID that identifies Photon Controller persistent disk - optional string pdID = 1; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - optional string fsType = 2; -} - -// Pod is a collection of containers that can run on a host. This resource is created -// by clients and scheduled onto hosts. -message Pod { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the pod. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional PodSpec spec = 2; - - // Most recently observed status of the pod. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional PodStatus status = 3; -} - -// Pod affinity is a group of inter pod affinity scheduling rules. -message PodAffinity { - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system may or may not try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - repeated PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; - - // The scheduler will prefer to schedule pods to nodes that satisfy - // the affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - // node(s) with the highest sum are the most preferred. - // +optional - repeated WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; -} - -// Defines a set of pods (namely those matching the labelSelector -// relative to the given namespace(s)) that this pod should be -// co-located (affinity) or not co-located (anti-affinity) with, -// where co-located is defined as running on a node whose value of -// the label with key matches that of any node on which -// a pod of the set of pods is running -message PodAffinityTerm { - // A label query over a set of resources, in this case pods. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; - - // namespaces specifies which namespaces the labelSelector applies to (matches against); - // null or empty list means "this pod's namespace" - // +optional - repeated string namespaces = 2; - - // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - // the labelSelector in the specified namespaces, where co-located is defined as running on a node - // whose value of the label with key topologyKey matches that of any node on which any of the - // selected pods is running. - // Empty topologyKey is not allowed. - optional string topologyKey = 3; -} - -// Pod anti affinity is a group of inter pod anti affinity scheduling rules. -message PodAntiAffinity { - // If the anti-affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the anti-affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system may or may not try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - repeated PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; - - // The scheduler will prefer to schedule pods to nodes that satisfy - // the anti-affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling anti-affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - // node(s) with the highest sum are the most preferred. - // +optional - repeated WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; -} - -// PodAttachOptions is the query options to a Pod's remote attach call. -// --- -// TODO: merge w/ PodExecOptions below for stdin, stdout, etc -// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY -message PodAttachOptions { - // Stdin if true, redirects the standard input stream of the pod for this call. - // Defaults to false. - // +optional - optional bool stdin = 1; - - // Stdout if true indicates that stdout is to be redirected for the attach call. - // Defaults to true. - // +optional - optional bool stdout = 2; - - // Stderr if true indicates that stderr is to be redirected for the attach call. - // Defaults to true. - // +optional - optional bool stderr = 3; - - // TTY if true indicates that a tty will be allocated for the attach call. - // This is passed through the container runtime so the tty - // is allocated on the worker node by the container runtime. - // Defaults to false. - // +optional - optional bool tty = 4; - - // The container in which to execute the command. - // Defaults to only container if there is only one container in the pod. - // +optional - optional string container = 5; -} - -// PodCondition contains details for the current condition of this pod. -message PodCondition { - // Type is the type of the condition. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - optional string type = 1; - - // Status is the status of the condition. - // Can be True, False, Unknown. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - optional string status = 2; - - // Last time we probed the condition. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // Unique, one-word, CamelCase reason for the condition's last transition. - // +optional - optional string reason = 5; - - // Human-readable message indicating details about last transition. - // +optional - optional string message = 6; -} - -// PodDNSConfig defines the DNS parameters of a pod in addition to -// those generated from DNSPolicy. -message PodDNSConfig { - // A list of DNS name server IP addresses. - // This will be appended to the base nameservers generated from DNSPolicy. - // Duplicated nameservers will be removed. - // +optional - repeated string nameservers = 1; - - // A list of DNS search domains for host-name lookup. - // This will be appended to the base search paths generated from DNSPolicy. - // Duplicated search paths will be removed. - // +optional - repeated string searches = 2; - - // A list of DNS resolver options. - // This will be merged with the base options generated from DNSPolicy. - // Duplicated entries will be removed. Resolution options given in Options - // will override those that appear in the base DNSPolicy. - // +optional - repeated PodDNSConfigOption options = 3; -} - -// PodDNSConfigOption defines DNS resolver options of a pod. -message PodDNSConfigOption { - // Required. - optional string name = 1; - - // +optional - optional string value = 2; -} - -// PodExecOptions is the query options to a Pod's remote exec call. -// --- -// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging -// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY -message PodExecOptions { - // Redirect the standard input stream of the pod for this call. - // Defaults to false. - // +optional - optional bool stdin = 1; - - // Redirect the standard output stream of the pod for this call. - // Defaults to true. - // +optional - optional bool stdout = 2; - - // Redirect the standard error stream of the pod for this call. - // Defaults to true. - // +optional - optional bool stderr = 3; - - // TTY if true indicates that a tty will be allocated for the exec call. - // Defaults to false. - // +optional - optional bool tty = 4; - - // Container in which to execute the command. - // Defaults to only container if there is only one container in the pod. - // +optional - optional string container = 5; - - // Command is the remote command to execute. argv array. Not executed within a shell. - repeated string command = 6; -} - -// IP address information for entries in the (plural) PodIPs field. -// Each entry includes: -// IP: An IP address allocated to the pod. Routable at least within the cluster. -message PodIP { - // ip is an IP address (IPv4 or IPv6) assigned to the pod - optional string ip = 1; -} - -// PodList is a list of Pods. -message PodList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of pods. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - repeated Pod items = 2; -} - -// PodLogOptions is the query options for a Pod's logs REST call. -message PodLogOptions { - // The container for which to stream logs. Defaults to only container if there is one container in the pod. - // +optional - optional string container = 1; - - // Follow the log stream of the pod. Defaults to false. - // +optional - optional bool follow = 2; - - // Return previous terminated container logs. Defaults to false. - // +optional - optional bool previous = 3; - - // A relative time in seconds before the current time from which to show logs. If this value - // precedes the time a pod was started, only logs since the pod start will be returned. - // If this value is in the future, no logs will be returned. - // Only one of sinceSeconds or sinceTime may be specified. - // +optional - optional int64 sinceSeconds = 4; - - // An RFC3339 timestamp from which to show logs. If this value - // precedes the time a pod was started, only logs since the pod start will be returned. - // If this value is in the future, no logs will be returned. - // Only one of sinceSeconds or sinceTime may be specified. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; - - // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line - // of log output. Defaults to false. - // +optional - optional bool timestamps = 6; - - // If set, the number of lines from the end of the logs to show. If not specified, - // logs are shown from the creation of the container or sinceSeconds or sinceTime - // +optional - optional int64 tailLines = 7; - - // If set, the number of bytes to read from the server before terminating the - // log output. This may not display a complete final line of logging, and may return - // slightly more or slightly less than the specified limit. - // +optional - optional int64 limitBytes = 8; -} - -// PodPortForwardOptions is the query options to a Pod's port forward call -// when using WebSockets. -// The `port` query parameter must specify the port or -// ports (comma separated) to forward over. -// Port forwarding over SPDY does not use these options. It requires the port -// to be passed in the `port` header as part of request. -message PodPortForwardOptions { - // List of ports to forward - // Required when using WebSockets - // +optional - repeated int32 ports = 1; -} - -// PodProxyOptions is the query options to a Pod's proxy call. -message PodProxyOptions { - // Path is the URL path to use for the current proxy request to pod. - // +optional - optional string path = 1; -} - -// PodReadinessGate contains the reference to a pod condition -message PodReadinessGate { - // ConditionType refers to a condition in the pod's condition list with matching type. - optional string conditionType = 1; -} - -// PodSecurityContext holds pod-level security attributes and common container settings. -// Some fields are also present in container.securityContext. Field values of -// container.securityContext take precedence over field values of PodSecurityContext. -message PodSecurityContext { - // The SELinux context to be applied to all containers. - // If unspecified, the container runtime will allocate a random SELinux context for each - // container. May also be set in SecurityContext. If set in - // both SecurityContext and PodSecurityContext, the value specified in SecurityContext - // takes precedence for that container. - // +optional - optional SELinuxOptions seLinuxOptions = 1; - - // The Windows specific settings applied to all containers. - // If unspecified, the options within a container's SecurityContext will be used. - // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional WindowsSecurityContextOptions windowsOptions = 8; - - // The UID to run the entrypoint of the container process. - // Defaults to user specified in image metadata if unspecified. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence - // for that container. - // +optional - optional int64 runAsUser = 2; - - // The GID to run the entrypoint of the container process. - // Uses runtime default if unset. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence - // for that container. - // +optional - optional int64 runAsGroup = 6; - - // Indicates that the container must run as a non-root user. - // If true, the Kubelet will validate the image at runtime to ensure that it - // does not run as UID 0 (root) and fail to start the container if it does. - // If unset or false, no such validation will be performed. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional bool runAsNonRoot = 3; - - // A list of groups applied to the first process run in each container, in addition - // to the container's primary GID. If unspecified, no groups will be added to - // any container. - // +optional - repeated int64 supplementalGroups = 4; - - // A special supplemental group that applies to all containers in a pod. - // Some volume types allow the Kubelet to change the ownership of that volume - // to be owned by the pod: - // - // 1. The owning GID will be the FSGroup - // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) - // 3. The permission bits are OR'd with rw-rw---- - // - // If unset, the Kubelet will not modify the ownership and permissions of any volume. - // +optional - optional int64 fsGroup = 5; - - // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported - // sysctls (by the container runtime) might fail to launch. - // +optional - repeated Sysctl sysctls = 7; -} - -// Describes the class of pods that should avoid this node. -// Exactly one field should be set. -message PodSignature { - // Reference to controller whose pods should avoid this node. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; -} - -// PodSpec is a description of a pod. -message PodSpec { - // List of volumes that can be mounted by containers belonging to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes - // +optional - // +patchMergeKey=name - // +patchStrategy=merge,retainKeys - repeated Volume volumes = 1; - - // List of initialization containers belonging to the pod. - // Init containers are executed in order prior to containers being started. If any - // init container fails, the pod is considered to have failed and is handled according - // to its restartPolicy. The name for an init container or normal container must be - // unique among all containers. - // Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. - // The resourceRequirements of an init container are taken into account during scheduling - // by finding the highest request/limit for each resource type, and then using the max of - // of that value or the sum of the normal containers. Limits are applied to init containers - // in a similar fashion. - // Init containers cannot currently be added or removed. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - // +patchMergeKey=name - // +patchStrategy=merge - repeated Container initContainers = 20; - - // List of containers belonging to the pod. - // Containers cannot currently be added or removed. - // There must be at least one container in a Pod. - // Cannot be updated. - // +patchMergeKey=name - // +patchStrategy=merge - repeated Container containers = 2; - - // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing - // pod to perform user-initiated actions such as debugging. This list cannot be specified when - // creating a pod, and it cannot be modified by updating the pod spec. In order to add an - // ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. - // This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated EphemeralContainer ephemeralContainers = 34; - - // Restart policy for all containers within the pod. - // One of Always, OnFailure, Never. - // Default to Always. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - // +optional - optional string restartPolicy = 3; - - // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. - // Value must be non-negative integer. The value zero indicates delete immediately. - // If this value is nil, the default grace period will be used instead. - // The grace period is the duration in seconds after the processes running in the pod are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // Defaults to 30 seconds. - // +optional - optional int64 terminationGracePeriodSeconds = 4; - - // Optional duration in seconds the pod may be active on the node relative to - // StartTime before the system will actively try to mark it failed and kill associated containers. - // Value must be a positive integer. - // +optional - optional int64 activeDeadlineSeconds = 5; - - // Set DNS policy for the pod. - // Defaults to "ClusterFirst". - // Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. - // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. - // To have DNS options set along with hostNetwork, you have to specify DNS policy - // explicitly to 'ClusterFirstWithHostNet'. - // +optional - optional string dnsPolicy = 6; - - // NodeSelector is a selector which must be true for the pod to fit on a node. - // Selector which must match a node's labels for the pod to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - map nodeSelector = 7; - - // ServiceAccountName is the name of the ServiceAccount to use to run this pod. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - // +optional - optional string serviceAccountName = 8; - - // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - // Deprecated: Use serviceAccountName instead. - // +k8s:conversion-gen=false - // +optional - optional string serviceAccount = 9; - - // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - // +optional - optional bool automountServiceAccountToken = 21; - - // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - // the scheduler simply schedules this pod onto that node, assuming that it fits resource - // requirements. - // +optional - optional string nodeName = 10; - - // Host networking requested for this pod. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. - // Default to false. - // +k8s:conversion-gen=false - // +optional - optional bool hostNetwork = 11; - - // Use the host's pid namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - optional bool hostPID = 12; - - // Use the host's ipc namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - optional bool hostIPC = 13; - - // Share a single process namespace between all of the containers in a pod. - // When this is set containers will be able to view and signal processes from other containers - // in the same pod, and the first process in each container will not be assigned PID 1. - // HostPID and ShareProcessNamespace cannot both be set. - // Optional: Default to false. - // This field is beta-level and may be disabled with the PodShareProcessNamespace feature. - // +k8s:conversion-gen=false - // +optional - optional bool shareProcessNamespace = 27; - - // SecurityContext holds pod-level security attributes and common container settings. - // Optional: Defaults to empty. See type description for default values of each field. - // +optional - optional PodSecurityContext securityContext = 14; - - // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. - // If specified, these secrets will be passed to individual puller implementations for them to use. For example, - // in the case of docker, only DockerConfig type secrets are honored. - // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated LocalObjectReference imagePullSecrets = 15; - - // Specifies the hostname of the Pod - // If not specified, the pod's hostname will be set to a system-defined value. - // +optional - optional string hostname = 16; - - // If specified, the fully qualified Pod hostname will be "...svc.". - // If not specified, the pod will not have a domainname at all. - // +optional - optional string subdomain = 17; - - // If specified, the pod's scheduling constraints - // +optional - optional Affinity affinity = 18; - - // If specified, the pod will be dispatched by specified scheduler. - // If not specified, the pod will be dispatched by default scheduler. - // +optional - optional string schedulerName = 19; - - // If specified, the pod's tolerations. - // +optional - repeated Toleration tolerations = 22; - - // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts - // file if specified. This is only valid for non-hostNetwork pods. - // +optional - // +patchMergeKey=ip - // +patchStrategy=merge - repeated HostAlias hostAliases = 23; - - // If specified, indicates the pod's priority. "system-node-critical" and - // "system-cluster-critical" are two special keywords which indicate the - // highest priorities with the former being the highest priority. Any other - // name must be defined by creating a PriorityClass object with that name. - // If not specified, the pod priority will be default or zero if there is no - // default. - // +optional - optional string priorityClassName = 24; - - // The priority value. Various system components use this field to find the - // priority of the pod. When Priority Admission Controller is enabled, it - // prevents users from setting this field. The admission controller populates - // this field from PriorityClassName. - // The higher the value, the higher the priority. - // +optional - optional int32 priority = 25; - - // Specifies the DNS parameters of a pod. - // Parameters specified here will be merged to the generated DNS - // configuration based on DNSPolicy. - // +optional - optional PodDNSConfig dnsConfig = 26; - - // If specified, all readiness gates will be evaluated for pod readiness. - // A pod is ready when all its containers are ready AND - // all conditions specified in the readiness gates have status equal to "True" - // More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - // +optional - repeated PodReadinessGate readinessGates = 28; - - // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used - // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. - // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an - // empty definition that uses the default runtime handler. - // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - // This is a beta feature as of Kubernetes v1.14. - // +optional - optional string runtimeClassName = 29; - - // EnableServiceLinks indicates whether information about services should be injected into pod's - // environment variables, matching the syntax of Docker links. - // Optional: Defaults to true. - // +optional - optional bool enableServiceLinks = 30; - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - optional string preemptionPolicy = 31; - - // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. - // This field will be autopopulated at admission time by the RuntimeClass admission controller. If - // the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. - // The RuntimeClass admission controller will reject Pod create requests which have the overhead already - // set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value - // defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. - // More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md - // This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - // +optional - map overhead = 32; - - // TopologySpreadConstraints describes how a group of pods ought to spread across topology - // domains. Scheduler will schedule pods in a way which abides by the constraints. - // This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread - // feature. - // All topologySpreadConstraints are ANDed. - // +optional - // +patchMergeKey=topologyKey - // +patchStrategy=merge - // +listType=map - // +listMapKey=topologyKey - // +listMapKey=whenUnsatisfiable - repeated TopologySpreadConstraint topologySpreadConstraints = 33; -} - -// PodStatus represents information about the status of a pod. Status may trail the actual -// state of a system, especially if the node that hosts the pod cannot contact the control -// plane. -message PodStatus { - // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. - // The conditions array, the reason and message fields, and the individual container status - // arrays contain more detail about the pod's status. - // There are five possible phase values: - // - // Pending: The pod has been accepted by the Kubernetes system, but one or more of the - // container images has not been created. This includes time before being scheduled as - // well as time spent downloading images over the network, which could take a while. - // Running: The pod has been bound to a node, and all of the containers have been created. - // At least one container is still running, or is in the process of starting or restarting. - // Succeeded: All containers in the pod have terminated in success, and will not be restarted. - // Failed: All containers in the pod have terminated, and at least one container has - // terminated in failure. The container either exited with non-zero status or was terminated - // by the system. - // Unknown: For some reason the state of the pod could not be obtained, typically due to an - // error in communicating with the host of the pod. - // - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - // +optional - optional string phase = 1; - - // Current service state of pod. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated PodCondition conditions = 2; - - // A human readable message indicating details about why the pod is in this condition. - // +optional - optional string message = 3; - - // A brief CamelCase message indicating details about why the pod is in this state. - // e.g. 'Evicted' - // +optional - optional string reason = 4; - - // nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be - // scheduled right away as preemption victims receive their graceful termination periods. - // This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide - // to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to - // give the resources on this node to a higher priority pod that is created after preemption. - // As a result, this field may be different than PodSpec.nodeName when the pod is - // scheduled. - // +optional - optional string nominatedNodeName = 11; - - // IP address of the host to which the pod is assigned. Empty if not yet scheduled. - // +optional - optional string hostIP = 5; - - // IP address allocated to the pod. Routable at least within the cluster. - // Empty if not yet allocated. - // +optional - optional string podIP = 6; - - // podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must - // match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list - // is empty if no IPs have been allocated yet. - // +optional - // +patchStrategy=merge - // +patchMergeKey=ip - repeated PodIP podIPs = 12; - - // RFC 3339 date and time at which the object was acknowledged by the Kubelet. - // This is before the Kubelet pulled the container image(s) for the pod. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; - - // The list has one entry per init container in the manifest. The most recent successful - // init container will have ready = true, the most recently started container will have - // startTime set. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - repeated ContainerStatus initContainerStatuses = 10; - - // The list has one entry per container in the manifest. Each entry is currently the output - // of `docker inspect`. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - // +optional - repeated ContainerStatus containerStatuses = 8; - - // The Quality of Service (QOS) classification assigned to the pod based on resource requirements - // See PodQOSClass type for available QOS classes - // More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - // +optional - optional string qosClass = 9; - - // Status for any ephemeral containers that have run in this pod. - // This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. - // +optional - repeated ContainerStatus ephemeralContainerStatuses = 13; -} - -// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded -message PodStatusResult { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Most recently observed status of the pod. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional PodStatus status = 2; -} - -// PodTemplate describes a template for creating copies of a predefined pod. -message PodTemplate { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Template defines the pods that will be created from this pod template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional PodTemplateSpec template = 2; -} - -// PodTemplateList is a list of PodTemplates. -message PodTemplateList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of pod templates - repeated PodTemplate items = 2; -} - -// PodTemplateSpec describes the data a pod should have when created from a template -message PodTemplateSpec { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the pod. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional PodSpec spec = 2; -} - -// PortworxVolumeSource represents a Portworx volume resource. -message PortworxVolumeSource { - // VolumeID uniquely identifies a Portworx volume - optional string volumeID = 1; - - // FSType represents the filesystem type to mount - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - optional string fsType = 2; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 3; -} - -// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. -// +k8s:openapi-gen=false -message Preconditions { - // Specifies the target UID. - // +optional - optional string uid = 1; -} - -// Describes a class of pods that should avoid this node. -message PreferAvoidPodsEntry { - // The class of pods. - optional PodSignature podSignature = 1; - - // Time at which this entry was added to the list. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; - - // (brief) reason why this entry was added to the list. - // +optional - optional string reason = 3; - - // Human readable message indicating why this entry was added to the list. - // +optional - optional string message = 4; -} - -// An empty preferred scheduling term matches all objects with implicit weight 0 -// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). -message PreferredSchedulingTerm { - // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - optional int32 weight = 1; - - // A node selector term, associated with the corresponding weight. - optional NodeSelectorTerm preference = 2; -} - -// Probe describes a health check to be performed against a container to determine whether it is -// alive or ready to receive traffic. -message Probe { - // The action taken to determine the health of a container - optional Handler handler = 1; - - // Number of seconds after the container has started before liveness probes are initiated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - optional int32 initialDelaySeconds = 2; - - // Number of seconds after which the probe times out. - // Defaults to 1 second. Minimum value is 1. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - optional int32 timeoutSeconds = 3; - - // How often (in seconds) to perform the probe. - // Default to 10 seconds. Minimum value is 1. - // +optional - optional int32 periodSeconds = 4; - - // Minimum consecutive successes for the probe to be considered successful after having failed. - // Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - // +optional - optional int32 successThreshold = 5; - - // Minimum consecutive failures for the probe to be considered failed after having succeeded. - // Defaults to 3. Minimum value is 1. - // +optional - optional int32 failureThreshold = 6; -} - -// Represents a projected volume source -message ProjectedVolumeSource { - // list of volume projections - repeated VolumeProjection sources = 1; - - // Mode bits to use on created files by default. Must be a value between - // 0 and 0777. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - optional int32 defaultMode = 2; -} - -// Represents a Quobyte mount that lasts the lifetime of a pod. -// Quobyte volumes do not support ownership management or SELinux relabeling. -message QuobyteVolumeSource { - // Registry represents a single or multiple Quobyte Registry services - // specified as a string as host:port pair (multiple entries are separated with commas) - // which acts as the central registry for volumes - optional string registry = 1; - - // Volume is a string that references an already created Quobyte volume by name. - optional string volume = 2; - - // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. - // Defaults to false. - // +optional - optional bool readOnly = 3; - - // User to map volume access to - // Defaults to serivceaccount user - // +optional - optional string user = 4; - - // Group to map volume access to - // Default is no group - // +optional - optional string group = 5; - - // Tenant owning the given Quobyte volume in the Backend - // Used with dynamically provisioned Quobyte volumes, value is set by the plugin - // +optional - optional string tenant = 6; -} - -// Represents a Rados Block Device mount that lasts the lifetime of a pod. -// RBD volumes support ownership management and SELinux relabeling. -message RBDPersistentVolumeSource { - // A collection of Ceph monitors. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - repeated string monitors = 1; - - // The rados image name. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - optional string image = 2; - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 3; - - // The rados pool name. - // Default is rbd. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional string pool = 4; - - // The rados user name. - // Default is admin. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional string user = 5; - - // Keyring is the path to key ring for RBDUser. - // Default is /etc/ceph/keyring. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional string keyring = 6; - - // SecretRef is name of the authentication secret for RBDUser. If provided - // overrides keyring. - // Default is nil. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional SecretReference secretRef = 7; - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional bool readOnly = 8; -} - -// Represents a Rados Block Device mount that lasts the lifetime of a pod. -// RBD volumes support ownership management and SELinux relabeling. -message RBDVolumeSource { - // A collection of Ceph monitors. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - repeated string monitors = 1; - - // The rados image name. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - optional string image = 2; - - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - optional string fsType = 3; - - // The rados pool name. - // Default is rbd. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional string pool = 4; - - // The rados user name. - // Default is admin. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional string user = 5; - - // Keyring is the path to key ring for RBDUser. - // Default is /etc/ceph/keyring. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional string keyring = 6; - - // SecretRef is name of the authentication secret for RBDUser. If provided - // overrides keyring. - // Default is nil. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional LocalObjectReference secretRef = 7; - - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - optional bool readOnly = 8; -} - -// RangeAllocation is not a public type. -message RangeAllocation { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Range is string that identifies the range represented by 'data'. - optional string range = 2; - - // Data is a bit array containing all allocated addresses in the previous segment. - optional bytes data = 3; -} - -// ReplicationController represents the configuration of a replication controller. -message ReplicationController { - // If the Labels of a ReplicationController are empty, they are defaulted to - // be the same as the Pod(s) that the replication controller manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the specification of the desired behavior of the replication controller. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicationControllerSpec spec = 2; - - // Status is the most recently observed status of the replication controller. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicationControllerStatus status = 3; -} - -// ReplicationControllerCondition describes the state of a replication controller at a certain point. -message ReplicationControllerCondition { - // Type of replication controller condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// ReplicationControllerList is a collection of replication controllers. -message ReplicationControllerList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of replication controllers. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - repeated ReplicationController items = 2; -} - -// ReplicationControllerSpec is the specification of a replication controller. -message ReplicationControllerSpec { - // 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 - // +optional - optional int32 replicas = 1; - - // 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) - // +optional - optional int32 minReadySeconds = 4; - - // Selector is a label query over pods that should match the Replicas count. - // If 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 replication - // controller, if empty defaulted to labels on Pod template. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - map selector = 2; - - // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. This takes precedence over a TemplateRef. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - optional PodTemplateSpec template = 3; -} - -// ReplicationControllerStatus represents the current status of a replication -// controller. -message ReplicationControllerStatus { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - optional int32 replicas = 1; - - // The number of pods that have labels matching the labels of the pod template of the replication controller. - // +optional - optional int32 fullyLabeledReplicas = 2; - - // The number of ready replicas for this replication controller. - // +optional - optional int32 readyReplicas = 4; - - // The number of available replicas (ready for at least minReadySeconds) for this replication controller. - // +optional - optional int32 availableReplicas = 5; - - // ObservedGeneration reflects the generation of the most recently observed replication controller. - // +optional - optional int64 observedGeneration = 3; - - // Represents the latest available observations of a replication controller's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated ReplicationControllerCondition conditions = 6; -} - -// ResourceFieldSelector represents container resources (cpu, memory) and their output format -message ResourceFieldSelector { - // Container name: required for volumes, optional for env vars - // +optional - optional string containerName = 1; - - // Required: resource to select - optional string resource = 2; - - // Specifies the output format of the exposed resources, defaults to "1" - // +optional - optional k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; -} - -// ResourceQuota sets aggregate quota restrictions enforced per namespace -message ResourceQuota { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the desired quota. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ResourceQuotaSpec spec = 2; - - // Status defines the actual enforced quota and its current usage. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ResourceQuotaStatus status = 3; -} - -// ResourceQuotaList is a list of ResourceQuota items. -message ResourceQuotaList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ResourceQuota objects. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - repeated ResourceQuota items = 2; -} - -// ResourceQuotaSpec defines the desired hard limits to enforce for Quota. -message ResourceQuotaSpec { - // hard is the set of desired hard limits for each named resource. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - // +optional - map hard = 1; - - // A collection of filters that must match each object tracked by a quota. - // If not specified, the quota matches all objects. - // +optional - repeated string scopes = 2; - - // scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota - // but expressed using ScopeSelectorOperator in combination with possible values. - // For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - // +optional - optional ScopeSelector scopeSelector = 3; -} - -// ResourceQuotaStatus defines the enforced hard limits and observed use. -message ResourceQuotaStatus { - // Hard is the set of enforced hard limits for each named resource. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - // +optional - map hard = 1; - - // Used is the current observed total usage of the resource in the namespace. - // +optional - map used = 2; -} - -// ResourceRequirements describes the compute resource requirements. -message ResourceRequirements { - // Limits describes the maximum amount of compute resources allowed. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - map limits = 1; - - // Requests describes the minimum amount of compute resources required. - // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, - // otherwise to an implementation-defined value. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - map requests = 2; -} - -// SELinuxOptions are the labels to be applied to the container -message SELinuxOptions { - // User is a SELinux user label that applies to the container. - // +optional - optional string user = 1; - - // Role is a SELinux role label that applies to the container. - // +optional - optional string role = 2; - - // Type is a SELinux type label that applies to the container. - // +optional - optional string type = 3; - - // Level is SELinux level label that applies to the container. - // +optional - optional string level = 4; -} - -// ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume -message ScaleIOPersistentVolumeSource { - // The host address of the ScaleIO API Gateway. - optional string gateway = 1; - - // The name of the storage system as configured in ScaleIO. - optional string system = 2; - - // SecretRef references to the secret for ScaleIO user and other - // sensitive information. If this is not provided, Login operation will fail. - optional SecretReference secretRef = 3; - - // Flag to enable/disable SSL communication with Gateway, default false - // +optional - optional bool sslEnabled = 4; - - // The name of the ScaleIO Protection Domain for the configured storage. - // +optional - optional string protectionDomain = 5; - - // The ScaleIO Storage Pool associated with the protection domain. - // +optional - optional string storagePool = 6; - - // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - // Default is ThinProvisioned. - // +optional - optional string storageMode = 7; - - // The name of a volume already created in the ScaleIO system - // that is associated with this volume source. - optional string volumeName = 8; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // Default is "xfs" - // +optional - optional string fsType = 9; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 10; -} - -// ScaleIOVolumeSource represents a persistent ScaleIO volume -message ScaleIOVolumeSource { - // The host address of the ScaleIO API Gateway. - optional string gateway = 1; - - // The name of the storage system as configured in ScaleIO. - optional string system = 2; - - // SecretRef references to the secret for ScaleIO user and other - // sensitive information. If this is not provided, Login operation will fail. - optional LocalObjectReference secretRef = 3; - - // Flag to enable/disable SSL communication with Gateway, default false - // +optional - optional bool sslEnabled = 4; - - // The name of the ScaleIO Protection Domain for the configured storage. - // +optional - optional string protectionDomain = 5; - - // The ScaleIO Storage Pool associated with the protection domain. - // +optional - optional string storagePool = 6; - - // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - // Default is ThinProvisioned. - // +optional - optional string storageMode = 7; - - // The name of a volume already created in the ScaleIO system - // that is associated with this volume source. - optional string volumeName = 8; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // Default is "xfs". - // +optional - optional string fsType = 9; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 10; -} - -// A scope selector represents the AND of the selectors represented -// by the scoped-resource selector requirements. -message ScopeSelector { - // A list of scope selector requirements by scope of the resources. - // +optional - repeated ScopedResourceSelectorRequirement matchExpressions = 1; -} - -// A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator -// that relates the scope name and values. -message ScopedResourceSelectorRequirement { - // The name of the scope that the selector applies to. - optional string scopeName = 1; - - // Represents a scope's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. - optional string operator = 2; - - // An array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. - // This array is replaced during a strategic merge patch. - // +optional - repeated string values = 3; -} - -// Secret holds secret data of a certain type. The total bytes of the values in -// the Data field must be less than MaxSecretSize bytes. -message Secret { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Data contains the secret data. Each key must consist of alphanumeric - // characters, '-', '_' or '.'. The serialized form of the secret data is a - // base64 encoded string, representing the arbitrary (possibly non-string) - // data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - // +optional - map data = 2; - - // stringData allows specifying non-binary secret data in string form. - // It is provided as a write-only convenience method. - // All keys and values are merged into the data field on write, overwriting any existing values. - // It is never output when reading from the API. - // +k8s:conversion-gen=false - // +optional - map stringData = 4; - - // Used to facilitate programmatic handling of secret data. - // +optional - optional string type = 3; -} - -// SecretEnvSource selects a Secret to populate the environment -// variables with. -// -// The contents of the target Secret's Data field will represent the -// key-value pairs as environment variables. -message SecretEnvSource { - // The Secret to select from. - optional LocalObjectReference localObjectReference = 1; - - // Specify whether the Secret must be defined - // +optional - optional bool optional = 2; -} - -// SecretKeySelector selects a key of a Secret. -message SecretKeySelector { - // The name of the secret in the pod's namespace to select from. - optional LocalObjectReference localObjectReference = 1; - - // The key of the secret to select from. Must be a valid secret key. - optional string key = 2; - - // Specify whether the Secret or its key must be defined - // +optional - optional bool optional = 3; -} - -// SecretList is a list of Secret. -message SecretList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of secret objects. - // More info: https://kubernetes.io/docs/concepts/configuration/secret - repeated Secret items = 2; -} - -// Adapts a secret into a projected volume. -// -// The contents of the target Secret's Data field will be presented in a -// projected volume as files using the keys in the Data field as the file names. -// Note that this is identical to a secret volume source without the default -// mode. -message SecretProjection { - optional LocalObjectReference localObjectReference = 1; - - // If unspecified, each key-value pair in the Data field of the referenced - // Secret will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the Secret, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - repeated KeyToPath items = 2; - - // Specify whether the Secret or its key must be defined - // +optional - optional bool optional = 4; -} - -// SecretReference represents a Secret Reference. It has enough information to retrieve secret -// in any namespace -message SecretReference { - // Name is unique within a namespace to reference a secret resource. - // +optional - optional string name = 1; - - // Namespace defines the space within which the secret name must be unique. - // +optional - optional string namespace = 2; -} - -// Adapts a Secret into a volume. -// -// The contents of the target Secret's Data field will be presented in a volume -// as files using the keys in the Data field as the file names. -// Secret volumes support ownership management and SELinux relabeling. -message SecretVolumeSource { - // Name of the secret in the pod's namespace to use. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - // +optional - optional string secretName = 1; - - // If unspecified, each key-value pair in the Data field of the referenced - // Secret will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the Secret, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - repeated KeyToPath items = 2; - - // Optional: mode bits to use on created files by default. Must be a - // value between 0 and 0777. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - optional int32 defaultMode = 3; - - // Specify whether the Secret or its keys must be defined - // +optional - optional bool optional = 4; -} - -// SecurityContext holds security configuration that will be applied to a container. -// Some fields are present in both SecurityContext and PodSecurityContext. When both -// are set, the values in SecurityContext take precedence. -message SecurityContext { - // The capabilities to add/drop when running containers. - // Defaults to the default set of capabilities granted by the container runtime. - // +optional - optional Capabilities capabilities = 1; - - // Run container in privileged mode. - // Processes in privileged containers are essentially equivalent to root on the host. - // Defaults to false. - // +optional - optional bool privileged = 2; - - // The SELinux context to be applied to the container. - // If unspecified, the container runtime will allocate a random SELinux context for each - // container. May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional SELinuxOptions seLinuxOptions = 3; - - // The Windows specific settings applied to all containers. - // If unspecified, the options from the PodSecurityContext will be used. - // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional WindowsSecurityContextOptions windowsOptions = 10; - - // The UID to run the entrypoint of the container process. - // Defaults to user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional int64 runAsUser = 4; - - // The GID to run the entrypoint of the container process. - // Uses runtime default if unset. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional int64 runAsGroup = 8; - - // Indicates that the container must run as a non-root user. - // If true, the Kubelet will validate the image at runtime to ensure that it - // does not run as UID 0 (root) and fail to start the container if it does. - // If unset or false, no such validation will be performed. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - optional bool runAsNonRoot = 5; - - // Whether this container has a read-only root filesystem. - // Default is false. - // +optional - optional bool readOnlyRootFilesystem = 6; - - // AllowPrivilegeEscalation controls whether a process can gain more - // privileges than its parent process. This bool directly controls if - // the no_new_privs flag will be set on the container process. - // AllowPrivilegeEscalation is true always when the container is: - // 1) run as Privileged - // 2) has CAP_SYS_ADMIN - // +optional - optional bool allowPrivilegeEscalation = 7; - - // procMount denotes the type of proc mount to use for the containers. - // The default is DefaultProcMount which uses the container runtime defaults for - // readonly paths and masked paths. - // This requires the ProcMountType feature flag to be enabled. - // +optional - optional string procMount = 9; -} - -// SerializedReference is a reference to serialized object. -message SerializedReference { - // The reference to an object in the system. - // +optional - optional ObjectReference reference = 1; -} - -// Service is a named abstraction of software service (for example, mysql) consisting of local port -// (for example 3306) that the proxy listens on, and the selector that determines which pods -// will answer requests sent through the proxy. -message Service { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the behavior of a service. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ServiceSpec spec = 2; - - // Most recently observed status of the service. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ServiceStatus status = 3; -} - -// ServiceAccount binds together: -// * a name, understood by users, and perhaps by peripheral systems, for an identity -// * a principal that can be authenticated and authorized -// * a set of secrets -message ServiceAccount { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. - // More info: https://kubernetes.io/docs/concepts/configuration/secret - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - repeated ObjectReference secrets = 2; - - // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images - // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets - // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. - // More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - // +optional - repeated LocalObjectReference imagePullSecrets = 3; - - // AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. - // Can be overridden at the pod level. - // +optional - optional bool automountServiceAccountToken = 4; -} - -// ServiceAccountList is a list of ServiceAccount objects -message ServiceAccountList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ServiceAccounts. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - repeated ServiceAccount items = 2; -} - -// ServiceAccountTokenProjection represents a projected service account token -// volume. This projection can be used to insert a service account token into -// the pods runtime filesystem for use against APIs (Kubernetes API Server or -// otherwise). -message ServiceAccountTokenProjection { - // Audience is the intended audience of the token. A recipient of a token - // must identify itself with an identifier specified in the audience of the - // token, and otherwise should reject the token. The audience defaults to the - // identifier of the apiserver. - // +optional - optional string audience = 1; - - // ExpirationSeconds is the requested duration of validity of the service - // account token. As the token approaches expiration, the kubelet volume - // plugin will proactively rotate the service account token. The kubelet will - // start trying to rotate the token if the token is older than 80 percent of - // its time to live or if the token is older than 24 hours.Defaults to 1 hour - // and must be at least 10 minutes. - // +optional - optional int64 expirationSeconds = 2; - - // Path is the path relative to the mount point of the file to project the - // token into. - optional string path = 3; -} - -// ServiceList holds a list of services. -message ServiceList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of services - repeated Service items = 2; -} - -// ServicePort contains information on service's port. -message ServicePort { - // The name of this port within the service. This must be a DNS_LABEL. - // All ports within a ServiceSpec must have unique names. When considering - // the endpoints for a Service, this must match the 'name' field in the - // EndpointPort. - // Optional if only one ServicePort is defined on this service. - // +optional - optional string name = 1; - - // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". - // Default is TCP. - // +optional - optional string protocol = 2; - - // The port that will be exposed by this service. - optional int32 port = 3; - - // Number or name of the port to access on the pods targeted by the service. - // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - // If this is a string, it will be looked up as a named port in the - // target Pod's container ports. If this is not specified, the value - // of the 'port' field is used (an identity map). - // This field is ignored for services with clusterIP=None, and should be - // omitted or set equal to the 'port' field. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; - - // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. - // Usually assigned by the system. If specified, it will be allocated to the service - // if unused or else creation of the service will fail. - // Default is to auto-allocate a port if the ServiceType of this Service requires one. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - // +optional - optional int32 nodePort = 5; -} - -// ServiceProxyOptions is the query options to a Service's proxy call. -message ServiceProxyOptions { - // Path is the part of URLs that include service endpoints, suffixes, - // and parameters to use for the current proxy request to service. - // For example, the whole request URL is - // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - // Path is _search?q=user:kimchy. - // +optional - optional string path = 1; -} - -// ServiceSpec describes the attributes that a user creates on a service. -message ServiceSpec { - // The list of ports that are exposed by this service. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +patchMergeKey=port - // +patchStrategy=merge - // +listType=map - // +listMapKey=port - // +listMapKey=protocol - repeated ServicePort ports = 1; - - // Route service traffic to pods with label keys and values matching this - // selector. If empty or not present, the service is assumed to have an - // external process managing its endpoints, which Kubernetes will not - // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. - // Ignored if type is ExternalName. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/ - // +optional - map selector = 2; - - // clusterIP is the IP address of the service and is usually assigned - // randomly by the master. If an address is specified manually and is not in - // use by others, it will be allocated to the service; otherwise, creation - // of the service will fail. This field can not be changed through updates. - // Valid values are "None", empty string (""), or a valid IP address. "None" - // can be specified for headless services when proxying is not required. - // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if - // type is ExternalName. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +optional - optional string clusterIP = 3; - - // type determines how the Service is exposed. Defaults to ClusterIP. Valid - // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. - // "ExternalName" maps to the specified externalName. - // "ClusterIP" allocates a cluster-internal IP address for load-balancing to - // endpoints. Endpoints are determined by the selector or if that is not - // specified, by manual construction of an Endpoints object. If clusterIP is - // "None", no virtual IP is allocated and the endpoints are published as a - // set of endpoints rather than a stable IP. - // "NodePort" builds on ClusterIP and allocates a port on every node which - // routes to the clusterIP. - // "LoadBalancer" builds on NodePort and creates an - // external load-balancer (if supported in the current cloud) which routes - // to the clusterIP. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - // +optional - optional string type = 4; - - // externalIPs is a list of IP addresses for which nodes in the cluster - // will also accept traffic for this service. These IPs are not managed by - // Kubernetes. The user is responsible for ensuring that traffic arrives - // at a node with this IP. A common example is external load-balancers - // that are not part of the Kubernetes system. - // +optional - repeated string externalIPs = 5; - - // Supports "ClientIP" and "None". Used to maintain session affinity. - // Enable client IP based session affinity. - // Must be ClientIP or None. - // Defaults to None. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +optional - optional string sessionAffinity = 7; - - // Only applies to Service Type: LoadBalancer - // LoadBalancer will get created with the IP specified in this field. - // This feature depends on whether the underlying cloud-provider supports specifying - // the loadBalancerIP when a load balancer is created. - // This field will be ignored if the cloud-provider does not support the feature. - // +optional - optional string loadBalancerIP = 8; - - // If specified and supported by the platform, this will restrict traffic through the cloud-provider - // load-balancer will be restricted to the specified client IPs. This field will be ignored if the - // cloud-provider does not support the feature." - // More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ - // +optional - repeated string loadBalancerSourceRanges = 9; - - // externalName is the external reference that kubedns or equivalent will - // return as a CNAME record for this service. No proxying will be involved. - // Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) - // and requires Type to be ExternalName. - // +optional - optional string externalName = 10; - - // externalTrafficPolicy denotes if this Service desires to route external - // traffic to node-local or cluster-wide endpoints. "Local" preserves the - // client source IP and avoids a second hop for LoadBalancer and Nodeport - // type services, but risks potentially imbalanced traffic spreading. - // "Cluster" obscures the client source IP and may cause a second hop to - // another node, but should have good overall load-spreading. - // +optional - optional string externalTrafficPolicy = 11; - - // healthCheckNodePort specifies the healthcheck nodePort for the service. - // If not specified, HealthCheckNodePort is created by the service api - // backend with the allocated nodePort. Will use user-specified nodePort value - // if specified by the client. Only effects when Type is set to LoadBalancer - // and ExternalTrafficPolicy is set to Local. - // +optional - optional int32 healthCheckNodePort = 12; - - // publishNotReadyAddresses, when set to true, indicates that DNS implementations - // must publish the notReadyAddresses of subsets for the Endpoints associated with - // the Service. The default value is false. - // The primary use case for setting this field is to use a StatefulSet's Headless Service - // to propagate SRV records for its Pods without respect to their readiness for purpose - // of peer discovery. - // +optional - optional bool publishNotReadyAddresses = 13; - - // sessionAffinityConfig contains the configurations of session affinity. - // +optional - optional SessionAffinityConfig sessionAffinityConfig = 14; - - // ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. - // IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is - // available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. - // Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which - // allocate external load-balancers should use the same IP family. Endpoints for this Service will be of - // this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the - // cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. - // +optional - optional string ipFamily = 15; -} - -// ServiceStatus represents the current status of a service. -message ServiceStatus { - // LoadBalancer contains the current status of the load-balancer, - // if one is present. - // +optional - optional LoadBalancerStatus loadBalancer = 1; -} - -// SessionAffinityConfig represents the configurations of session affinity. -message SessionAffinityConfig { - // clientIP contains the configurations of Client IP based session affinity. - // +optional - optional ClientIPConfig clientIP = 1; -} - -// Represents a StorageOS persistent volume resource. -message StorageOSPersistentVolumeSource { - // VolumeName is the human-readable name of the StorageOS volume. Volume - // names are only unique within a namespace. - optional string volumeName = 1; - - // VolumeNamespace specifies the scope of the volume within StorageOS. If no - // namespace is specified then the Pod's namespace will be used. This allows the - // Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - // Set VolumeName to any name to override the default behaviour. - // Set to "default" if you are not using namespaces within StorageOS. - // Namespaces that do not pre-exist within StorageOS will be created. - // +optional - optional string volumeNamespace = 2; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - optional string fsType = 3; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 4; - - // SecretRef specifies the secret to use for obtaining the StorageOS API - // credentials. If not specified, default values will be attempted. - // +optional - optional ObjectReference secretRef = 5; -} - -// Represents a StorageOS persistent volume resource. -message StorageOSVolumeSource { - // VolumeName is the human-readable name of the StorageOS volume. Volume - // names are only unique within a namespace. - optional string volumeName = 1; - - // VolumeNamespace specifies the scope of the volume within StorageOS. If no - // namespace is specified then the Pod's namespace will be used. This allows the - // Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - // Set VolumeName to any name to override the default behaviour. - // Set to "default" if you are not using namespaces within StorageOS. - // Namespaces that do not pre-exist within StorageOS will be created. - // +optional - optional string volumeNamespace = 2; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - optional string fsType = 3; - - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - optional bool readOnly = 4; - - // SecretRef specifies the secret to use for obtaining the StorageOS API - // credentials. If not specified, default values will be attempted. - // +optional - optional LocalObjectReference secretRef = 5; -} - -// Sysctl defines a kernel parameter to be set -message Sysctl { - // Name of a property to set - optional string name = 1; - - // Value of a property to set - optional string value = 2; -} - -// TCPSocketAction describes an action based on opening a socket -message TCPSocketAction { - // Number or name of the port to access on the container. - // Number must be in the range 1 to 65535. - // Name must be an IANA_SVC_NAME. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; - - // Optional: Host name to connect to, defaults to the pod IP. - // +optional - optional string host = 2; -} - -// The node this Taint is attached to has the "effect" on -// any pod that does not tolerate the Taint. -message Taint { - // Required. The taint key to be applied to a node. - optional string key = 1; - - // Required. The taint value corresponding to the taint key. - // +optional - optional string value = 2; - - // Required. The effect of the taint on pods - // that do not tolerate the taint. - // Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - optional string effect = 3; - - // TimeAdded represents the time at which the taint was added. - // It is only written for NoExecute taints. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; -} - -// The pod this Toleration is attached to tolerates any taint that matches -// the triple using the matching operator . -message Toleration { - // Key is the taint key that the toleration applies to. Empty means match all taint keys. - // If the key is empty, operator must be Exists; this combination means to match all values and all keys. - // +optional - optional string key = 1; - - // Operator represents a key's relationship to the value. - // Valid operators are Exists and Equal. Defaults to Equal. - // Exists is equivalent to wildcard for value, so that a pod can - // tolerate all taints of a particular category. - // +optional - optional string operator = 2; - - // Value is the taint value the toleration matches to. - // If the operator is Exists, the value should be empty, otherwise just a regular string. - // +optional - optional string value = 3; - - // Effect indicates the taint effect to match. Empty means match all taint effects. - // When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - // +optional - optional string effect = 4; - - // TolerationSeconds represents the period of time the toleration (which must be - // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - // it is not set, which means tolerate the taint forever (do not evict). Zero and - // negative values will be treated as 0 (evict immediately) by the system. - // +optional - optional int64 tolerationSeconds = 5; -} - -// A topology selector requirement is a selector that matches given label. -// This is an alpha feature and may change in the future. -message TopologySelectorLabelRequirement { - // The label key that the selector applies to. - optional string key = 1; - - // An array of string values. One value must match the label to be selected. - // Each entry in Values is ORed. - repeated string values = 2; -} - -// A topology selector term represents the result of label queries. -// A null or empty topology selector term matches no objects. -// The requirements of them are ANDed. -// It provides a subset of functionality as NodeSelectorTerm. -// This is an alpha feature and may change in the future. -message TopologySelectorTerm { - // A list of topology selector requirements by labels. - // +optional - repeated TopologySelectorLabelRequirement matchLabelExpressions = 1; -} - -// TopologySpreadConstraint specifies how to spread matching pods among the given topology. -message TopologySpreadConstraint { - // MaxSkew describes the degree to which pods may be unevenly distributed. - // It's the maximum permitted difference between the number of matching pods in - // any two topology domains of a given topology type. - // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - // labelSelector spread as 1/1/0: - // +-------+-------+-------+ - // | zone1 | zone2 | zone3 | - // +-------+-------+-------+ - // | P | P | | - // +-------+-------+-------+ - // - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; - // scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) - // violate MaxSkew(1). - // - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - // It's a required field. Default value is 1 and 0 is not allowed. - optional int32 maxSkew = 1; - - // TopologyKey is the key of node labels. Nodes that have a label with this key - // and identical values are considered to be in the same topology. - // We consider each as a "bucket", and try to put balanced number - // of pods into each bucket. - // It's a required field. - optional string topologyKey = 2; - - // WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - // the spread constraint. - // - DoNotSchedule (default) tells the scheduler not to schedule it - // - ScheduleAnyway tells the scheduler to still schedule it - // It's considered as "Unsatisfiable" if and only if placing incoming pod on any - // topology violates "MaxSkew". - // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - // labelSelector spread as 3/1/1: - // +-------+-------+-------+ - // | zone1 | zone2 | zone3 | - // +-------+-------+-------+ - // | P P P | P | P | - // +-------+-------+-------+ - // If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - // to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - // MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - // won't make it *more* imbalanced. - // It's a required field. - optional string whenUnsatisfiable = 3; - - // LabelSelector is used to find matching pods. - // Pods that match this label selector are counted to determine the number of pods - // in their corresponding topology domain. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; -} - -// TypedLocalObjectReference contains enough information to let you locate the -// typed referenced object inside the same namespace. -message TypedLocalObjectReference { - // APIGroup is the group for the resource being referenced. - // If APIGroup is not specified, the specified Kind must be in the core API group. - // For any other third-party types, APIGroup is required. - // +optional - optional string apiGroup = 1; - - // Kind is the type of resource being referenced - optional string kind = 2; - - // Name is the name of resource being referenced - optional string name = 3; -} - -// Volume represents a named volume in a pod that may be accessed by any container in the pod. -message Volume { - // Volume's name. - // Must be a DNS_LABEL and unique within the pod. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - optional string name = 1; - - // VolumeSource represents the location and type of the mounted volume. - // If not specified, the Volume is implied to be an EmptyDir. - // This implied behavior is deprecated and will be removed in a future version. - optional VolumeSource volumeSource = 2; -} - -// volumeDevice describes a mapping of a raw block device within a container. -message VolumeDevice { - // name must match the name of a persistentVolumeClaim in the pod - optional string name = 1; - - // devicePath is the path inside of the container that the device will be mapped to. - optional string devicePath = 2; -} - -// VolumeMount describes a mounting of a Volume within a container. -message VolumeMount { - // This must match the Name of a Volume. - optional string name = 1; - - // Mounted read-only if true, read-write otherwise (false or unspecified). - // Defaults to false. - // +optional - optional bool readOnly = 2; - - // Path within the container at which the volume should be mounted. Must - // not contain ':'. - optional string mountPath = 3; - - // Path within the volume from which the container's volume should be mounted. - // Defaults to "" (volume's root). - // +optional - optional string subPath = 4; - - // mountPropagation determines how mounts are propagated from the host - // to container and the other way around. - // When not set, MountPropagationNone is used. - // This field is beta in 1.10. - // +optional - optional string mountPropagation = 5; - - // Expanded path within the volume from which the container's volume should be mounted. - // Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. - // Defaults to "" (volume's root). - // SubPathExpr and SubPath are mutually exclusive. - // This field is beta in 1.15. - // +optional - optional string subPathExpr = 6; -} - -// VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. -message VolumeNodeAffinity { - // Required specifies hard node constraints that must be met. - optional NodeSelector required = 1; -} - -// Projection that may be projected along with other supported volume types -message VolumeProjection { - // information about the secret data to project - // +optional - optional SecretProjection secret = 1; - - // information about the downwardAPI data to project - // +optional - optional DownwardAPIProjection downwardAPI = 2; - - // information about the configMap data to project - // +optional - optional ConfigMapProjection configMap = 3; - - // information about the serviceAccountToken data to project - // +optional - optional ServiceAccountTokenProjection serviceAccountToken = 4; -} - -// Represents the source of a volume to mount. -// Only one of its members may be specified. -message VolumeSource { - // HostPath represents a pre-existing file or directory on the host - // machine that is directly exposed to the container. This is generally - // used for system agents or other privileged things that are allowed - // to see the host machine. Most containers will NOT need this. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // --- - // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not - // mount host directories as read/write. - // +optional - optional HostPathVolumeSource hostPath = 1; - - // EmptyDir represents a temporary directory that shares a pod's lifetime. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // +optional - optional EmptyDirVolumeSource emptyDir = 2; - - // GCEPersistentDisk represents a GCE Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - optional GCEPersistentDiskVolumeSource gcePersistentDisk = 3; - - // AWSElasticBlockStore represents an AWS Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - optional AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; - - // GitRepo represents a git repository at a particular revision. - // DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an - // EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir - // into the Pod's container. - // +optional - optional GitRepoVolumeSource gitRepo = 5; - - // Secret represents a secret that should populate this volume. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - // +optional - optional SecretVolumeSource secret = 6; - - // NFS represents an NFS mount on the host that shares a pod's lifetime - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - optional NFSVolumeSource nfs = 7; - - // ISCSI represents an ISCSI Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://examples.k8s.io/volumes/iscsi/README.md - // +optional - optional ISCSIVolumeSource iscsi = 8; - - // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md - // +optional - optional GlusterfsVolumeSource glusterfs = 9; - - // PersistentVolumeClaimVolumeSource represents a reference to a - // PersistentVolumeClaim in the same namespace. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - optional PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; - - // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/rbd/README.md - // +optional - optional RBDVolumeSource rbd = 11; - - // FlexVolume represents a generic volume resource that is - // provisioned/attached using an exec based plugin. - // +optional - optional FlexVolumeSource flexVolume = 12; - - // Cinder represents a cinder volume attached and mounted on kubelets host machine. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - optional CinderVolumeSource cinder = 13; - - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - // +optional - optional CephFSVolumeSource cephfs = 14; - - // Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - // +optional - optional FlockerVolumeSource flocker = 15; - - // DownwardAPI represents downward API about the pod that should populate this volume - // +optional - optional DownwardAPIVolumeSource downwardAPI = 16; - - // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - // +optional - optional FCVolumeSource fc = 17; - - // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - // +optional - optional AzureFileVolumeSource azureFile = 18; - - // ConfigMap represents a configMap that should populate this volume - // +optional - optional ConfigMapVolumeSource configMap = 19; - - // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - // +optional - optional VsphereVirtualDiskVolumeSource vsphereVolume = 20; - - // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - // +optional - optional QuobyteVolumeSource quobyte = 21; - - // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - // +optional - optional AzureDiskVolumeSource azureDisk = 22; - - // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - optional PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; - - // Items for all in one resources secrets, configmaps, and downward API - optional ProjectedVolumeSource projected = 26; - - // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - // +optional - optional PortworxVolumeSource portworxVolume = 24; - - // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - // +optional - optional ScaleIOVolumeSource scaleIO = 25; - - // StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - // +optional - optional StorageOSVolumeSource storageos = 27; - - // CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - // +optional - optional CSIVolumeSource csi = 28; -} - -// Represents a vSphere volume resource. -message VsphereVirtualDiskVolumeSource { - // Path that identifies vSphere volume vmdk - optional string volumePath = 1; - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - optional string fsType = 2; - - // Storage Policy Based Management (SPBM) profile name. - // +optional - optional string storagePolicyName = 3; - - // Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - // +optional - optional string storagePolicyID = 4; -} - -// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) -message WeightedPodAffinityTerm { - // weight associated with matching the corresponding podAffinityTerm, - // in the range 1-100. - optional int32 weight = 1; - - // Required. A pod affinity term, associated with the corresponding weight. - optional PodAffinityTerm podAffinityTerm = 2; -} - -// WindowsSecurityContextOptions contain Windows-specific options and credentials. -message WindowsSecurityContextOptions { - // GMSACredentialSpecName is the name of the GMSA credential spec to use. - // This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. - // +optional - optional string gmsaCredentialSpecName = 1; - - // GMSACredentialSpec is where the GMSA admission webhook - // (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the - // GMSA credential spec named by the GMSACredentialSpecName field. - // This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. - // +optional - optional string gmsaCredentialSpec = 2; - - // The UserName in Windows to run the entrypoint of the container process. - // Defaults to the user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // This field is alpha-level and it is only honored by servers that enable the WindowsRunAsUserName feature flag. - // +optional - optional string runAsUserName = 3; -} - diff --git a/pseudo/k8s/api/core/v1/objectreference.go b/pseudo/k8s/api/core/v1/objectreference.go deleted file mode 100644 index 65c4451bc..000000000 --- a/pseudo/k8s/api/core/v1/objectreference.go +++ /dev/null @@ -1,33 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// IsAnAPIObject allows clients to preemptively get a reference to an API object and pass it to places that -// intend only to get a reference to that object. This simplifies the event recording interface. -func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) { - obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() -} - -func (obj *ObjectReference) GroupVersionKind() schema.GroupVersionKind { - return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) -} - -func (obj *ObjectReference) GetObjectKind() schema.ObjectKind { return obj } diff --git a/pseudo/k8s/api/core/v1/register.go b/pseudo/k8s/api/core/v1/register.go deleted file mode 100644 index 4bcb214bf..000000000 --- a/pseudo/k8s/api/core/v1/register.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2015 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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - AddToScheme = SchemeBuilder.AddToScheme -) - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Pod{}, - &PodList{}, - &PodStatusResult{}, - &PodTemplate{}, - &PodTemplateList{}, - &ReplicationController{}, - &ReplicationControllerList{}, - &Service{}, - &ServiceProxyOptions{}, - &ServiceList{}, - &Endpoints{}, - &EndpointsList{}, - &Node{}, - &NodeList{}, - &NodeProxyOptions{}, - &Binding{}, - &Event{}, - &EventList{}, - &List{}, - &LimitRange{}, - &LimitRangeList{}, - &ResourceQuota{}, - &ResourceQuotaList{}, - &Namespace{}, - &NamespaceList{}, - &Secret{}, - &SecretList{}, - &ServiceAccount{}, - &ServiceAccountList{}, - &PersistentVolume{}, - &PersistentVolumeList{}, - &PersistentVolumeClaim{}, - &PersistentVolumeClaimList{}, - &PodAttachOptions{}, - &PodLogOptions{}, - &PodExecOptions{}, - &PodPortForwardOptions{}, - &PodProxyOptions{}, - &ComponentStatus{}, - &ComponentStatusList{}, - &SerializedReference{}, - &RangeAllocation{}, - &ConfigMap{}, - &ConfigMapList{}, - &EphemeralContainers{}, - ) - - // Add common types - scheme.AddKnownTypes(SchemeGroupVersion, &metav1.Status{}) - - // Add the watch version that applies - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/core/v1/resource.go b/pseudo/k8s/api/core/v1/resource.go deleted file mode 100644 index 2f1f384c0..000000000 --- a/pseudo/k8s/api/core/v1/resource.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" -) - -// Returns string version of ResourceName. -func (self ResourceName) String() string { - return string(self) -} - -// Returns the CPU limit if specified. -func (self *ResourceList) Cpu() *resource.Quantity { - if val, ok := (*self)[ResourceCPU]; ok { - return &val - } - return &resource.Quantity{Format: resource.DecimalSI} -} - -// Returns the Memory limit if specified. -func (self *ResourceList) Memory() *resource.Quantity { - if val, ok := (*self)[ResourceMemory]; ok { - return &val - } - return &resource.Quantity{Format: resource.BinarySI} -} - -func (self *ResourceList) Pods() *resource.Quantity { - if val, ok := (*self)[ResourcePods]; ok { - return &val - } - return &resource.Quantity{} -} - -func (self *ResourceList) StorageEphemeral() *resource.Quantity { - if val, ok := (*self)[ResourceEphemeralStorage]; ok { - return &val - } - return &resource.Quantity{} -} diff --git a/pseudo/k8s/api/core/v1/taint.go b/pseudo/k8s/api/core/v1/taint.go deleted file mode 100644 index db71bd2fd..000000000 --- a/pseudo/k8s/api/core/v1/taint.go +++ /dev/null @@ -1,39 +0,0 @@ -/* -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 v1 - -import "fmt" - -// MatchTaint checks if the taint matches taintToMatch. Taints are unique by key:effect, -// if the two taints have same key:effect, regard as they match. -func (t *Taint) MatchTaint(taintToMatch *Taint) bool { - return t.Key == taintToMatch.Key && t.Effect == taintToMatch.Effect -} - -// taint.ToString() converts taint struct to string in format '=:', '=:', ':', or ''. -func (t *Taint) ToString() string { - if len(t.Effect) == 0 { - if len(t.Value) == 0 { - return fmt.Sprintf("%v", t.Key) - } - return fmt.Sprintf("%v=%v:", t.Key, t.Value) - } - if len(t.Value) == 0 { - return fmt.Sprintf("%v:%v", t.Key, t.Effect) - } - return fmt.Sprintf("%v=%v:%v", t.Key, t.Value, t.Effect) -} diff --git a/pseudo/k8s/api/core/v1/taint_test.go b/pseudo/k8s/api/core/v1/taint_test.go deleted file mode 100644 index 6a4171829..000000000 --- a/pseudo/k8s/api/core/v1/taint_test.go +++ /dev/null @@ -1,135 +0,0 @@ -/* -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 v1 - -import ( - "testing" -) - -func TestTaintToString(t *testing.T) { - testCases := []struct { - taint *Taint - expectedString string - }{ - { - taint: &Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - expectedString: "foo=bar:NoSchedule", - }, - { - taint: &Taint{ - Key: "foo", - Effect: TaintEffectNoSchedule, - }, - expectedString: "foo:NoSchedule", - }, - { - taint: &Taint{ - Key: "foo", - }, - expectedString: "foo", - }, - { - taint: &Taint{ - Key: "foo", - Value: "bar", - }, - expectedString: "foo=bar:", - }, - } - - for i, tc := range testCases { - if tc.expectedString != tc.taint.ToString() { - t.Errorf("[%v] expected taint %v converted to %s, got %s", i, tc.taint, tc.expectedString, tc.taint.ToString()) - } - } -} - -func TestMatchTaint(t *testing.T) { - testCases := []struct { - description string - taint *Taint - taintToMatch Taint - expectMatch bool - }{ - { - description: "two taints with the same key,value,effect should match", - taint: &Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - taintToMatch: Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - expectMatch: true, - }, - { - description: "two taints with the same key,effect but different value should match", - taint: &Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - taintToMatch: Taint{ - Key: "foo", - Value: "different-value", - Effect: TaintEffectNoSchedule, - }, - expectMatch: true, - }, - { - description: "two taints with the different key cannot match", - taint: &Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - taintToMatch: Taint{ - Key: "different-key", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - expectMatch: false, - }, - { - description: "two taints with the different effect cannot match", - taint: &Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - taintToMatch: Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectPreferNoSchedule, - }, - expectMatch: false, - }, - } - - for _, tc := range testCases { - if tc.expectMatch != tc.taint.MatchTaint(&tc.taintToMatch) { - t.Errorf("[%s] expect taint %s match taint %s", tc.description, tc.taint.ToString(), tc.taintToMatch.ToString()) - } - } -} diff --git a/pseudo/k8s/api/core/v1/toleration.go b/pseudo/k8s/api/core/v1/toleration.go deleted file mode 100644 index b203d335b..000000000 --- a/pseudo/k8s/api/core/v1/toleration.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -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 v1 - -// MatchToleration checks if the toleration matches tolerationToMatch. Tolerations are unique by , -// if the two tolerations have same combination, regard as they match. -// TODO: uniqueness check for tolerations in api validations. -func (t *Toleration) MatchToleration(tolerationToMatch *Toleration) bool { - return t.Key == tolerationToMatch.Key && - t.Effect == tolerationToMatch.Effect && - t.Operator == tolerationToMatch.Operator && - t.Value == tolerationToMatch.Value -} - -// ToleratesTaint checks if the toleration tolerates the taint. -// The matching follows the rules below: -// (1) Empty toleration.effect means to match all taint effects, -// otherwise taint effect must equal to toleration.effect. -// (2) If toleration.operator is 'Exists', it means to match all taint values. -// (3) Empty toleration.key means to match all taint keys. -// If toleration.key is empty, toleration.operator must be 'Exists'; -// this combination means to match all taint values and all taint keys. -func (t *Toleration) ToleratesTaint(taint *Taint) bool { - if len(t.Effect) > 0 && t.Effect != taint.Effect { - return false - } - - if len(t.Key) > 0 && t.Key != taint.Key { - return false - } - - // TODO: Use proper defaulting when Toleration becomes a field of PodSpec - switch t.Operator { - // empty operator means Equal - case "", TolerationOpEqual: - return t.Value == taint.Value - case TolerationOpExists: - return true - default: - return false - } -} diff --git a/pseudo/k8s/api/core/v1/toleration_test.go b/pseudo/k8s/api/core/v1/toleration_test.go deleted file mode 100644 index 3dd48f087..000000000 --- a/pseudo/k8s/api/core/v1/toleration_test.go +++ /dev/null @@ -1,123 +0,0 @@ -/* -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 v1 - -import ( - "testing" -) - -func TestTolerationToleratesTaint(t *testing.T) { - - testCases := []struct { - description string - toleration Toleration - taint Taint - expectTolerated bool - }{ - { - description: "toleration and taint have the same key and effect, and operator is Exists, and taint has no value, expect tolerated", - toleration: Toleration{ - Key: "foo", - Operator: TolerationOpExists, - Effect: TaintEffectNoSchedule, - }, - taint: Taint{ - Key: "foo", - Effect: TaintEffectNoSchedule, - }, - expectTolerated: true, - }, - { - description: "toleration and taint have the same key and effect, and operator is Exists, and taint has some value, expect tolerated", - toleration: Toleration{ - Key: "foo", - Operator: TolerationOpExists, - Effect: TaintEffectNoSchedule, - }, - taint: Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - expectTolerated: true, - }, - { - description: "toleration and taint have the same effect, toleration has empty key and operator is Exists, means match all taints, expect tolerated", - toleration: Toleration{ - Key: "", - Operator: TolerationOpExists, - Effect: TaintEffectNoSchedule, - }, - taint: Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - expectTolerated: true, - }, - { - description: "toleration and taint have the same key, effect and value, and operator is Equal, expect tolerated", - toleration: Toleration{ - Key: "foo", - Operator: TolerationOpEqual, - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - taint: Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - expectTolerated: true, - }, - { - description: "toleration and taint have the same key and effect, but different values, and operator is Equal, expect not tolerated", - toleration: Toleration{ - Key: "foo", - Operator: TolerationOpEqual, - Value: "value1", - Effect: TaintEffectNoSchedule, - }, - taint: Taint{ - Key: "foo", - Value: "value2", - Effect: TaintEffectNoSchedule, - }, - expectTolerated: false, - }, - { - description: "toleration and taint have the same key and value, but different effects, and operator is Equal, expect not tolerated", - toleration: Toleration{ - Key: "foo", - Operator: TolerationOpEqual, - Value: "bar", - Effect: TaintEffectNoSchedule, - }, - taint: Taint{ - Key: "foo", - Value: "bar", - Effect: TaintEffectNoExecute, - }, - expectTolerated: false, - }, - } - for _, tc := range testCases { - if tolerated := tc.toleration.ToleratesTaint(&tc.taint); tc.expectTolerated != tolerated { - t.Errorf("[%s] expect %v, got %v: toleration %+v, taint %s", tc.description, tc.expectTolerated, tolerated, tc.toleration, tc.taint.ToString()) - } - } -} diff --git a/pseudo/k8s/api/core/v1/types.go b/pseudo/k8s/api/core/v1/types.go deleted file mode 100644 index c5668a6ae..000000000 --- a/pseudo/k8s/api/core/v1/types.go +++ /dev/null @@ -1,5846 +0,0 @@ -/* -Copyright 2015 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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -const ( - // NamespaceDefault means the object is in the default namespace which is applied when not specified by clients - NamespaceDefault string = "default" - // NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces - NamespaceAll string = "" - // NamespaceNodeLease is the namespace where we place node lease objects (used for node heartbeats) - NamespaceNodeLease string = "kube-node-lease" -) - -// Volume represents a named volume in a pod that may be accessed by any container in the pod. -type Volume struct { - // Volume's name. - // Must be a DNS_LABEL and unique within the pod. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // VolumeSource represents the location and type of the mounted volume. - // If not specified, the Volume is implied to be an EmptyDir. - // This implied behavior is deprecated and will be removed in a future version. - VolumeSource `json:",inline" protobuf:"bytes,2,opt,name=volumeSource"` -} - -// Represents the source of a volume to mount. -// Only one of its members may be specified. -type VolumeSource struct { - // HostPath represents a pre-existing file or directory on the host - // machine that is directly exposed to the container. This is generally - // used for system agents or other privileged things that are allowed - // to see the host machine. Most containers will NOT need this. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // --- - // TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not - // mount host directories as read/write. - // +optional - HostPath *HostPathVolumeSource `json:"hostPath,omitempty" protobuf:"bytes,1,opt,name=hostPath"` - // EmptyDir represents a temporary directory that shares a pod's lifetime. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // +optional - EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty" protobuf:"bytes,2,opt,name=emptyDir"` - // GCEPersistentDisk represents a GCE Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" protobuf:"bytes,3,opt,name=gcePersistentDisk"` - // AWSElasticBlockStore represents an AWS Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" protobuf:"bytes,4,opt,name=awsElasticBlockStore"` - // GitRepo represents a git repository at a particular revision. - // DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an - // EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir - // into the Pod's container. - // +optional - GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty" protobuf:"bytes,5,opt,name=gitRepo"` - // Secret represents a secret that should populate this volume. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - // +optional - Secret *SecretVolumeSource `json:"secret,omitempty" protobuf:"bytes,6,opt,name=secret"` - // NFS represents an NFS mount on the host that shares a pod's lifetime - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - NFS *NFSVolumeSource `json:"nfs,omitempty" protobuf:"bytes,7,opt,name=nfs"` - // ISCSI represents an ISCSI Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://examples.k8s.io/volumes/iscsi/README.md - // +optional - ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" protobuf:"bytes,8,opt,name=iscsi"` - // Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md - // +optional - Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" protobuf:"bytes,9,opt,name=glusterfs"` - // PersistentVolumeClaimVolumeSource represents a reference to a - // PersistentVolumeClaim in the same namespace. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty" protobuf:"bytes,10,opt,name=persistentVolumeClaim"` - // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/rbd/README.md - // +optional - RBD *RBDVolumeSource `json:"rbd,omitempty" protobuf:"bytes,11,opt,name=rbd"` - // FlexVolume represents a generic volume resource that is - // provisioned/attached using an exec based plugin. - // +optional - FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty" protobuf:"bytes,12,opt,name=flexVolume"` - // Cinder represents a cinder volume attached and mounted on kubelets host machine. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - Cinder *CinderVolumeSource `json:"cinder,omitempty" protobuf:"bytes,13,opt,name=cinder"` - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - // +optional - CephFS *CephFSVolumeSource `json:"cephfs,omitempty" protobuf:"bytes,14,opt,name=cephfs"` - // Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - // +optional - Flocker *FlockerVolumeSource `json:"flocker,omitempty" protobuf:"bytes,15,opt,name=flocker"` - // DownwardAPI represents downward API about the pod that should populate this volume - // +optional - DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty" protobuf:"bytes,16,opt,name=downwardAPI"` - // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - // +optional - FC *FCVolumeSource `json:"fc,omitempty" protobuf:"bytes,17,opt,name=fc"` - // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - // +optional - AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty" protobuf:"bytes,18,opt,name=azureFile"` - // ConfigMap represents a configMap that should populate this volume - // +optional - ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty" protobuf:"bytes,19,opt,name=configMap"` - // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - // +optional - VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" protobuf:"bytes,20,opt,name=vsphereVolume"` - // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - // +optional - Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" protobuf:"bytes,21,opt,name=quobyte"` - // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - // +optional - AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" protobuf:"bytes,22,opt,name=azureDisk"` - // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" protobuf:"bytes,23,opt,name=photonPersistentDisk"` - // Items for all in one resources secrets, configmaps, and downward API - Projected *ProjectedVolumeSource `json:"projected,omitempty" protobuf:"bytes,26,opt,name=projected"` - // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - // +optional - PortworxVolume *PortworxVolumeSource `json:"portworxVolume,omitempty" protobuf:"bytes,24,opt,name=portworxVolume"` - // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - // +optional - ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty" protobuf:"bytes,25,opt,name=scaleIO"` - // StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - // +optional - StorageOS *StorageOSVolumeSource `json:"storageos,omitempty" protobuf:"bytes,27,opt,name=storageos"` - // CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - // +optional - CSI *CSIVolumeSource `json:"csi,omitempty" protobuf:"bytes,28,opt,name=csi"` -} - -// PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. -// This volume finds the bound PV and mounts that volume for the pod. A -// PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another -// type of volume that is owned by someone else (the system). -type PersistentVolumeClaimVolumeSource struct { - // ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - ClaimName string `json:"claimName" protobuf:"bytes,1,opt,name=claimName"` - // Will force the ReadOnly setting in VolumeMounts. - // Default false. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` -} - -// PersistentVolumeSource is similar to VolumeSource but meant for the -// administrator who creates PVs. Exactly one of its members must be set. -type PersistentVolumeSource struct { - // GCEPersistentDisk represents a GCE Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. Provisioned by an admin. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" protobuf:"bytes,1,opt,name=gcePersistentDisk"` - // AWSElasticBlockStore represents an AWS Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" protobuf:"bytes,2,opt,name=awsElasticBlockStore"` - // HostPath represents a directory on the host. - // Provisioned by a developer or tester. - // This is useful for single-node development and testing only! - // On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // +optional - HostPath *HostPathVolumeSource `json:"hostPath,omitempty" protobuf:"bytes,3,opt,name=hostPath"` - // Glusterfs represents a Glusterfs volume that is attached to a host and - // exposed to the pod. Provisioned by an admin. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md - // +optional - Glusterfs *GlusterfsPersistentVolumeSource `json:"glusterfs,omitempty" protobuf:"bytes,4,opt,name=glusterfs"` - // NFS represents an NFS mount on the host. Provisioned by an admin. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - NFS *NFSVolumeSource `json:"nfs,omitempty" protobuf:"bytes,5,opt,name=nfs"` - // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. - // More info: https://examples.k8s.io/volumes/rbd/README.md - // +optional - RBD *RBDPersistentVolumeSource `json:"rbd,omitempty" protobuf:"bytes,6,opt,name=rbd"` - // ISCSI represents an ISCSI Disk resource that is attached to a - // kubelet's host machine and then exposed to the pod. Provisioned by an admin. - // +optional - ISCSI *ISCSIPersistentVolumeSource `json:"iscsi,omitempty" protobuf:"bytes,7,opt,name=iscsi"` - // Cinder represents a cinder volume attached and mounted on kubelets host machine. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - Cinder *CinderPersistentVolumeSource `json:"cinder,omitempty" protobuf:"bytes,8,opt,name=cinder"` - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - // +optional - CephFS *CephFSPersistentVolumeSource `json:"cephfs,omitempty" protobuf:"bytes,9,opt,name=cephfs"` - // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - // +optional - FC *FCVolumeSource `json:"fc,omitempty" protobuf:"bytes,10,opt,name=fc"` - // Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - // +optional - Flocker *FlockerVolumeSource `json:"flocker,omitempty" protobuf:"bytes,11,opt,name=flocker"` - // FlexVolume represents a generic volume resource that is - // provisioned/attached using an exec based plugin. - // +optional - FlexVolume *FlexPersistentVolumeSource `json:"flexVolume,omitempty" protobuf:"bytes,12,opt,name=flexVolume"` - // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - // +optional - AzureFile *AzureFilePersistentVolumeSource `json:"azureFile,omitempty" protobuf:"bytes,13,opt,name=azureFile"` - // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - // +optional - VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" protobuf:"bytes,14,opt,name=vsphereVolume"` - // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - // +optional - Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" protobuf:"bytes,15,opt,name=quobyte"` - // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - // +optional - AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" protobuf:"bytes,16,opt,name=azureDisk"` - // PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" protobuf:"bytes,17,opt,name=photonPersistentDisk"` - // PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - // +optional - PortworxVolume *PortworxVolumeSource `json:"portworxVolume,omitempty" protobuf:"bytes,18,opt,name=portworxVolume"` - // ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - // +optional - ScaleIO *ScaleIOPersistentVolumeSource `json:"scaleIO,omitempty" protobuf:"bytes,19,opt,name=scaleIO"` - // Local represents directly-attached storage with node affinity - // +optional - Local *LocalVolumeSource `json:"local,omitempty" protobuf:"bytes,20,opt,name=local"` - // StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod - // More info: https://examples.k8s.io/volumes/storageos/README.md - // +optional - StorageOS *StorageOSPersistentVolumeSource `json:"storageos,omitempty" protobuf:"bytes,21,opt,name=storageos"` - // CSI represents storage that is handled by an external CSI driver (Beta feature). - // +optional - CSI *CSIPersistentVolumeSource `json:"csi,omitempty" protobuf:"bytes,22,opt,name=csi"` -} - -const ( - // BetaStorageClassAnnotation represents the beta/previous StorageClass annotation. - // It's currently still used and will be held for backwards compatibility - BetaStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class" - - // MountOptionAnnotation defines mount option annotation used in PVs - MountOptionAnnotation = "volume.beta.kubernetes.io/mount-options" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PersistentVolume (PV) is a storage resource provisioned by an administrator. -// It is analogous to a node. -// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes -type PersistentVolume struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines a specification of a persistent volume owned by the cluster. - // Provisioned by an administrator. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - // +optional - Spec PersistentVolumeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status represents the current information/status for the persistent volume. - // Populated by the system. - // Read-only. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - // +optional - Status PersistentVolumeStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// PersistentVolumeSpec is the specification of a persistent volume. -type PersistentVolumeSpec struct { - // A description of the persistent volume's resources and capacity. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - // +optional - Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` - // The actual volume backing the persistent volume. - PersistentVolumeSource `json:",inline" protobuf:"bytes,2,opt,name=persistentVolumeSource"` - // AccessModes contains all ways the volume can be mounted. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - // +optional - AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,3,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` - // ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. - // Expected to be non-nil when bound. - // claim.VolumeName is the authoritative bind between PV and PVC. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - // +optional - ClaimRef *ObjectReference `json:"claimRef,omitempty" protobuf:"bytes,4,opt,name=claimRef"` - // What happens to a persistent volume when released from its claim. - // Valid options are Retain (default for manually created PersistentVolumes), Delete (default - // for dynamically provisioned PersistentVolumes), and Recycle (deprecated). - // Recycle must be supported by the volume plugin underlying this PersistentVolume. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - // +optional - PersistentVolumeReclaimPolicy PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty" protobuf:"bytes,5,opt,name=persistentVolumeReclaimPolicy,casttype=PersistentVolumeReclaimPolicy"` - // Name of StorageClass to which this persistent volume belongs. Empty value - // means that this volume does not belong to any StorageClass. - // +optional - StorageClassName string `json:"storageClassName,omitempty" protobuf:"bytes,6,opt,name=storageClassName"` - // A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will - // simply fail if one is invalid. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - // +optional - MountOptions []string `json:"mountOptions,omitempty" protobuf:"bytes,7,opt,name=mountOptions"` - // volumeMode defines if a volume is intended to be used with a formatted filesystem - // or to remain in raw block state. Value of Filesystem is implied when not included in spec. - // This is a beta feature. - // +optional - VolumeMode *PersistentVolumeMode `json:"volumeMode,omitempty" protobuf:"bytes,8,opt,name=volumeMode,casttype=PersistentVolumeMode"` - // NodeAffinity defines constraints that limit what nodes this volume can be accessed from. - // This field influences the scheduling of pods that use this volume. - // +optional - NodeAffinity *VolumeNodeAffinity `json:"nodeAffinity,omitempty" protobuf:"bytes,9,opt,name=nodeAffinity"` -} - -// VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. -type VolumeNodeAffinity struct { - // Required specifies hard node constraints that must be met. - Required *NodeSelector `json:"required,omitempty" protobuf:"bytes,1,opt,name=required"` -} - -// PersistentVolumeReclaimPolicy describes a policy for end-of-life maintenance of persistent volumes. -type PersistentVolumeReclaimPolicy string - -const ( - // PersistentVolumeReclaimRecycle means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. - // The volume plugin must support Recycling. - PersistentVolumeReclaimRecycle PersistentVolumeReclaimPolicy = "Recycle" - // PersistentVolumeReclaimDelete means the volume will be deleted from Kubernetes on release from its claim. - // The volume plugin must support Deletion. - PersistentVolumeReclaimDelete PersistentVolumeReclaimPolicy = "Delete" - // PersistentVolumeReclaimRetain means the volume will be left in its current phase (Released) for manual reclamation by the administrator. - // The default policy is Retain. - PersistentVolumeReclaimRetain PersistentVolumeReclaimPolicy = "Retain" -) - -// PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem. -type PersistentVolumeMode string - -const ( - // PersistentVolumeBlock means the volume will not be formatted with a filesystem and will remain a raw block device. - PersistentVolumeBlock PersistentVolumeMode = "Block" - // PersistentVolumeFilesystem means the volume will be or is formatted with a filesystem. - PersistentVolumeFilesystem PersistentVolumeMode = "Filesystem" -) - -// PersistentVolumeStatus is the current status of a persistent volume. -type PersistentVolumeStatus struct { - // Phase indicates if a volume is available, bound to a claim, or released by a claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - // +optional - Phase PersistentVolumePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumePhase"` - // A human-readable message indicating details about why the volume is in this state. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` - // Reason is a brief CamelCase string that describes any failure and is meant - // for machine parsing and tidy display in the CLI. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PersistentVolumeList is a list of PersistentVolume items. -type PersistentVolumeList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // List of persistent volumes. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - Items []PersistentVolume `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PersistentVolumeClaim is a user's request for and claim to a persistent volume -type PersistentVolumeClaim struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the desired characteristics of a volume requested by a pod author. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - Spec PersistentVolumeClaimSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status represents the current information/status of a persistent volume claim. - // Read-only. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - // +optional - Status PersistentVolumeClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PersistentVolumeClaimList is a list of PersistentVolumeClaim items. -type PersistentVolumeClaimList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // A list of persistent volume claims. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - Items []PersistentVolumeClaim `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// PersistentVolumeClaimSpec describes the common attributes of storage devices -// and allows a Source for provider-specific attributes -type PersistentVolumeClaimSpec struct { - // AccessModes contains the desired access modes the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,1,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` - // A label query over volumes to consider for binding. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"` - // Resources represents the minimum resources the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - // +optional - Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,2,opt,name=resources"` - // VolumeName is the binding reference to the PersistentVolume backing this claim. - // +optional - VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,3,opt,name=volumeName"` - // Name of the StorageClass required by the claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - // +optional - StorageClassName *string `json:"storageClassName,omitempty" protobuf:"bytes,5,opt,name=storageClassName"` - // volumeMode defines what type of volume is required by the claim. - // Value of Filesystem is implied when not included in claim spec. - // This is a beta feature. - // +optional - VolumeMode *PersistentVolumeMode `json:"volumeMode,omitempty" protobuf:"bytes,6,opt,name=volumeMode,casttype=PersistentVolumeMode"` - // This field requires the VolumeSnapshotDataSource alpha feature gate to be - // enabled and currently VolumeSnapshot is the only supported data source. - // If the provisioner can support VolumeSnapshot data source, it will create - // a new volume and data will be restored to the volume at the same time. - // If the provisioner does not support VolumeSnapshot data source, volume will - // not be created and the failure will be reported as an event. - // In the future, we plan to support more data source types and the behavior - // of the provisioner may change. - // +optional - DataSource *TypedLocalObjectReference `json:"dataSource,omitempty" protobuf:"bytes,7,opt,name=dataSource"` -} - -// PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type -type PersistentVolumeClaimConditionType string - -const ( - // PersistentVolumeClaimResizing - a user trigger resize of pvc has been started - PersistentVolumeClaimResizing PersistentVolumeClaimConditionType = "Resizing" - // PersistentVolumeClaimFileSystemResizePending - controller resize is finished and a file system resize is pending on node - PersistentVolumeClaimFileSystemResizePending PersistentVolumeClaimConditionType = "FileSystemResizePending" -) - -// PersistentVolumeClaimCondition contails details about state of pvc -type PersistentVolumeClaimCondition struct { - Type PersistentVolumeClaimConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PersistentVolumeClaimConditionType"` - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // Last time we probed the condition. - // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` - // Unique, this should be a short, machine understandable string that gives the reason - // for condition's last transition. If it reports "ResizeStarted" that means the underlying - // persistent volume is being resized. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` - // Human-readable message indicating details about last transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` -} - -// PersistentVolumeClaimStatus is the current status of a persistent volume claim. -type PersistentVolumeClaimStatus struct { - // Phase represents the current phase of PersistentVolumeClaim. - // +optional - Phase PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` - // AccessModes contains the actual access modes the volume backing the PVC has. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,2,rep,name=accessModes,casttype=PersistentVolumeAccessMode"` - // Represents the actual resources of the underlying volume. - // +optional - Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` - // Current Condition of persistent volume claim. If underlying persistent volume is being - // resized then the Condition will be set to 'ResizeStarted'. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` -} - -type PersistentVolumeAccessMode string - -const ( - // can be mounted in read/write mode to exactly 1 host - ReadWriteOnce PersistentVolumeAccessMode = "ReadWriteOnce" - // can be mounted in read-only mode to many hosts - ReadOnlyMany PersistentVolumeAccessMode = "ReadOnlyMany" - // can be mounted in read/write mode to many hosts - ReadWriteMany PersistentVolumeAccessMode = "ReadWriteMany" -) - -type PersistentVolumePhase string - -const ( - // used for PersistentVolumes that are not available - VolumePending PersistentVolumePhase = "Pending" - // used for PersistentVolumes that are not yet bound - // Available volumes are held by the binder and matched to PersistentVolumeClaims - VolumeAvailable PersistentVolumePhase = "Available" - // used for PersistentVolumes that are bound - VolumeBound PersistentVolumePhase = "Bound" - // used for PersistentVolumes where the bound PersistentVolumeClaim was deleted - // released volumes must be recycled before becoming available again - // this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource - VolumeReleased PersistentVolumePhase = "Released" - // used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim - VolumeFailed PersistentVolumePhase = "Failed" -) - -type PersistentVolumeClaimPhase string - -const ( - // used for PersistentVolumeClaims that are not yet bound - ClaimPending PersistentVolumeClaimPhase = "Pending" - // used for PersistentVolumeClaims that are bound - ClaimBound PersistentVolumeClaimPhase = "Bound" - // used for PersistentVolumeClaims that lost their underlying - // PersistentVolume. The claim was bound to a PersistentVolume and this - // volume does not exist any longer and all data on it was lost. - ClaimLost PersistentVolumeClaimPhase = "Lost" -) - -type HostPathType string - -const ( - // For backwards compatible, leave it empty if unset - HostPathUnset HostPathType = "" - // If nothing exists at the given path, an empty directory will be created there - // as needed with file mode 0755, having the same group and ownership with Kubelet. - HostPathDirectoryOrCreate HostPathType = "DirectoryOrCreate" - // A directory must exist at the given path - HostPathDirectory HostPathType = "Directory" - // If nothing exists at the given path, an empty file will be created there - // as needed with file mode 0644, having the same group and ownership with Kubelet. - HostPathFileOrCreate HostPathType = "FileOrCreate" - // A file must exist at the given path - HostPathFile HostPathType = "File" - // A UNIX socket must exist at the given path - HostPathSocket HostPathType = "Socket" - // A character device must exist at the given path - HostPathCharDev HostPathType = "CharDevice" - // A block device must exist at the given path - HostPathBlockDev HostPathType = "BlockDevice" -) - -// Represents a host path mapped into a pod. -// Host path volumes do not support ownership management or SELinux relabeling. -type HostPathVolumeSource struct { - // Path of the directory on the host. - // If the path is a symlink, it will follow the link to the real path. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - Path string `json:"path" protobuf:"bytes,1,opt,name=path"` - // Type for HostPath Volume - // Defaults to "" - // More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - // +optional - Type *HostPathType `json:"type,omitempty" protobuf:"bytes,2,opt,name=type"` -} - -// Represents an empty directory for a pod. -// Empty directory volumes support ownership management and SELinux relabeling. -type EmptyDirVolumeSource struct { - // What type of storage medium should back this directory. - // The default is "" which means to use the node's default medium. - // Must be an empty string (default) or Memory. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - // +optional - Medium StorageMedium `json:"medium,omitempty" protobuf:"bytes,1,opt,name=medium,casttype=StorageMedium"` - // Total amount of local storage required for this EmptyDir volume. - // The size limit is also applicable for memory medium. - // The maximum usage on memory medium EmptyDir would be the minimum value between - // the SizeLimit specified here and the sum of memory limits of all containers in a pod. - // The default is nil which means that the limit is undefined. - // More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - // +optional - SizeLimit *resource.Quantity `json:"sizeLimit,omitempty" protobuf:"bytes,2,opt,name=sizeLimit"` -} - -// Represents a Glusterfs mount that lasts the lifetime of a pod. -// Glusterfs volumes do not support ownership management or SELinux relabeling. -type GlusterfsVolumeSource struct { - // EndpointsName is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - EndpointsName string `json:"endpoints" protobuf:"bytes,1,opt,name=endpoints"` - - // Path is the Glusterfs volume path. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - Path string `json:"path" protobuf:"bytes,2,opt,name=path"` - - // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` -} - -// Represents a Glusterfs mount that lasts the lifetime of a pod. -// Glusterfs volumes do not support ownership management or SELinux relabeling. -type GlusterfsPersistentVolumeSource struct { - // EndpointsName is the endpoint name that details Glusterfs topology. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - EndpointsName string `json:"endpoints" protobuf:"bytes,1,opt,name=endpoints"` - - // Path is the Glusterfs volume path. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - Path string `json:"path" protobuf:"bytes,2,opt,name=path"` - - // ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` - - // EndpointsNamespace is the namespace that contains Glusterfs endpoint. - // If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. - // More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - // +optional - EndpointsNamespace *string `json:"endpointsNamespace,omitempty" protobuf:"bytes,4,opt,name=endpointsNamespace"` -} - -// Represents a Rados Block Device mount that lasts the lifetime of a pod. -// RBD volumes support ownership management and SELinux relabeling. -type RBDVolumeSource struct { - // A collection of Ceph monitors. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - CephMonitors []string `json:"monitors" protobuf:"bytes,1,rep,name=monitors"` - // The rados image name. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - RBDImage string `json:"image" protobuf:"bytes,2,opt,name=image"` - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` - // The rados pool name. - // Default is rbd. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - RBDPool string `json:"pool,omitempty" protobuf:"bytes,4,opt,name=pool"` - // The rados user name. - // Default is admin. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - RadosUser string `json:"user,omitempty" protobuf:"bytes,5,opt,name=user"` - // Keyring is the path to key ring for RBDUser. - // Default is /etc/ceph/keyring. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - Keyring string `json:"keyring,omitempty" protobuf:"bytes,6,opt,name=keyring"` - // SecretRef is name of the authentication secret for RBDUser. If provided - // overrides keyring. - // Default is nil. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,7,opt,name=secretRef"` - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,8,opt,name=readOnly"` -} - -// Represents a Rados Block Device mount that lasts the lifetime of a pod. -// RBD volumes support ownership management and SELinux relabeling. -type RBDPersistentVolumeSource struct { - // A collection of Ceph monitors. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - CephMonitors []string `json:"monitors" protobuf:"bytes,1,rep,name=monitors"` - // The rados image name. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - RBDImage string `json:"image" protobuf:"bytes,2,opt,name=image"` - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` - // The rados pool name. - // Default is rbd. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - RBDPool string `json:"pool,omitempty" protobuf:"bytes,4,opt,name=pool"` - // The rados user name. - // Default is admin. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - RadosUser string `json:"user,omitempty" protobuf:"bytes,5,opt,name=user"` - // Keyring is the path to key ring for RBDUser. - // Default is /etc/ceph/keyring. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - Keyring string `json:"keyring,omitempty" protobuf:"bytes,6,opt,name=keyring"` - // SecretRef is name of the authentication secret for RBDUser. If provided - // overrides keyring. - // Default is nil. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - SecretRef *SecretReference `json:"secretRef,omitempty" protobuf:"bytes,7,opt,name=secretRef"` - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,8,opt,name=readOnly"` -} - -// Represents a cinder volume resource in Openstack. -// A Cinder volume must exist before mounting to a container. -// The volume must also be in the same region as the kubelet. -// Cinder volumes support ownership management and SELinux relabeling. -type CinderVolumeSource struct { - // volume id used to identify the volume in cinder. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - VolumeID string `json:"volumeID" protobuf:"bytes,1,opt,name=volumeID"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` - // Optional: points to a secret object containing parameters used to connect - // to OpenStack. - // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,4,opt,name=secretRef"` -} - -// Represents a cinder volume resource in Openstack. -// A Cinder volume must exist before mounting to a container. -// The volume must also be in the same region as the kubelet. -// Cinder volumes support ownership management and SELinux relabeling. -type CinderPersistentVolumeSource struct { - // volume id used to identify the volume in cinder. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - VolumeID string `json:"volumeID" protobuf:"bytes,1,opt,name=volumeID"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/mysql-cinder-pd/README.md - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` - // Optional: points to a secret object containing parameters used to connect - // to OpenStack. - // +optional - SecretRef *SecretReference `json:"secretRef,omitempty" protobuf:"bytes,4,opt,name=secretRef"` -} - -// Represents a Ceph Filesystem mount that lasts the lifetime of a pod -// Cephfs volumes do not support ownership management or SELinux relabeling. -type CephFSVolumeSource struct { - // Required: Monitors is a collection of Ceph monitors - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - Monitors []string `json:"monitors" protobuf:"bytes,1,rep,name=monitors"` - // Optional: Used as the mounted root, rather than the full Ceph tree, default is / - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` - // Optional: User is the rados user name, default is admin - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"` - // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - SecretFile string `json:"secretFile,omitempty" protobuf:"bytes,4,opt,name=secretFile"` - // Optional: SecretRef is reference to the authentication secret for User, default is empty. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,5,opt,name=secretRef"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` -} - -// SecretReference represents a Secret Reference. It has enough information to retrieve secret -// in any namespace -type SecretReference struct { - // Name is unique within a namespace to reference a secret resource. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` - // Namespace defines the space within which the secret name must be unique. - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"` -} - -// Represents a Ceph Filesystem mount that lasts the lifetime of a pod -// Cephfs volumes do not support ownership management or SELinux relabeling. -type CephFSPersistentVolumeSource struct { - // Required: Monitors is a collection of Ceph monitors - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - Monitors []string `json:"monitors" protobuf:"bytes,1,rep,name=monitors"` - // Optional: Used as the mounted root, rather than the full Ceph tree, default is / - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` - // Optional: User is the rados user name, default is admin - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - User string `json:"user,omitempty" protobuf:"bytes,3,opt,name=user"` - // Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - SecretFile string `json:"secretFile,omitempty" protobuf:"bytes,4,opt,name=secretFile"` - // Optional: SecretRef is reference to the authentication secret for User, default is empty. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - SecretRef *SecretReference `json:"secretRef,omitempty" protobuf:"bytes,5,opt,name=secretRef"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` -} - -// Represents a Flocker volume mounted by the Flocker agent. -// One and only one of datasetName and datasetUUID should be set. -// Flocker volumes do not support ownership management or SELinux relabeling. -type FlockerVolumeSource struct { - // Name of the dataset stored as metadata -> name on the dataset for Flocker - // should be considered as deprecated - // +optional - DatasetName string `json:"datasetName,omitempty" protobuf:"bytes,1,opt,name=datasetName"` - // UUID of the dataset. This is unique identifier of a Flocker dataset - // +optional - DatasetUUID string `json:"datasetUUID,omitempty" protobuf:"bytes,2,opt,name=datasetUUID"` -} - -// StorageMedium defines ways that storage can be allocated to a volume. -type StorageMedium string - -const ( - StorageMediumDefault StorageMedium = "" // use whatever the default is for the node, assume anything we don't explicitly handle is this - StorageMediumMemory StorageMedium = "Memory" // use memory (e.g. tmpfs on linux) - StorageMediumHugePages StorageMedium = "HugePages" // use hugepages -) - -// Protocol defines network protocols supported for things like container ports. -type Protocol string - -const ( - // ProtocolTCP is the TCP protocol. - ProtocolTCP Protocol = "TCP" - // ProtocolUDP is the UDP protocol. - ProtocolUDP Protocol = "UDP" - // ProtocolSCTP is the SCTP protocol. - ProtocolSCTP Protocol = "SCTP" -) - -// Represents a Persistent Disk resource in Google Compute Engine. -// -// A GCE PD must exist before mounting to a container. The disk must -// also be in the same GCE project and zone as the kubelet. A GCE PD -// can only be mounted as read/write once or read-only many times. GCE -// PDs support ownership management and SELinux relabeling. -type GCEPersistentDiskVolumeSource struct { - // Unique name of the PD resource in GCE. Used to identify the disk in GCE. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - PDName string `json:"pdName" protobuf:"bytes,1,opt,name=pdName"` - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // The partition in the volume that you want to mount. - // If omitted, the default is to mount by volume name. - // Examples: For volume /dev/sda1, you specify the partition as "1". - // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - Partition int32 `json:"partition,omitempty" protobuf:"varint,3,opt,name=partition"` - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` -} - -// Represents a Quobyte mount that lasts the lifetime of a pod. -// Quobyte volumes do not support ownership management or SELinux relabeling. -type QuobyteVolumeSource struct { - // Registry represents a single or multiple Quobyte Registry services - // specified as a string as host:port pair (multiple entries are separated with commas) - // which acts as the central registry for volumes - Registry string `json:"registry" protobuf:"bytes,1,opt,name=registry"` - - // Volume is a string that references an already created Quobyte volume by name. - Volume string `json:"volume" protobuf:"bytes,2,opt,name=volume"` - - // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. - // Defaults to false. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` - - // User to map volume access to - // Defaults to serivceaccount user - // +optional - User string `json:"user,omitempty" protobuf:"bytes,4,opt,name=user"` - - // Group to map volume access to - // Default is no group - // +optional - Group string `json:"group,omitempty" protobuf:"bytes,5,opt,name=group"` - - // Tenant owning the given Quobyte volume in the Backend - // Used with dynamically provisioned Quobyte volumes, value is set by the plugin - // +optional - Tenant string `json:"tenant,omitempty" protobuf:"bytes,6,opt,name=tenant"` -} - -// FlexPersistentVolumeSource represents a generic persistent volume resource that is -// provisioned/attached using an exec based plugin. -type FlexPersistentVolumeSource struct { - // Driver is the name of the driver to use for this volume. - Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // Optional: SecretRef is reference to the secret object containing - // sensitive information to pass to the plugin scripts. This may be - // empty if no secret object is specified. If the secret object - // contains more than one secret, all secrets are passed to the plugin - // scripts. - // +optional - SecretRef *SecretReference `json:"secretRef,omitempty" protobuf:"bytes,3,opt,name=secretRef"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` - // Optional: Extra command options if any. - // +optional - Options map[string]string `json:"options,omitempty" protobuf:"bytes,5,rep,name=options"` -} - -// FlexVolume represents a generic volume resource that is -// provisioned/attached using an exec based plugin. -type FlexVolumeSource struct { - // Driver is the name of the driver to use for this volume. - Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // Optional: SecretRef is reference to the secret object containing - // sensitive information to pass to the plugin scripts. This may be - // empty if no secret object is specified. If the secret object - // contains more than one secret, all secrets are passed to the plugin - // scripts. - // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,3,opt,name=secretRef"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` - // Optional: Extra command options if any. - // +optional - Options map[string]string `json:"options,omitempty" protobuf:"bytes,5,rep,name=options"` -} - -// Represents a Persistent Disk resource in AWS. -// -// An AWS EBS disk must exist before mounting to a container. The disk -// must also be in the same AWS zone as the kubelet. An AWS EBS disk -// can only be mounted as read/write once. AWS EBS volumes support -// ownership management and SELinux relabeling. -type AWSElasticBlockStoreVolumeSource struct { - // Unique ID of the persistent disk resource in AWS (Amazon EBS volume). - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - VolumeID string `json:"volumeID" protobuf:"bytes,1,opt,name=volumeID"` - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // The partition in the volume that you want to mount. - // If omitted, the default is to mount by volume name. - // Examples: For volume /dev/sda1, you specify the partition as "1". - // Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - // +optional - Partition int32 `json:"partition,omitempty" protobuf:"varint,3,opt,name=partition"` - // Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". - // If omitted, the default is "false". - // More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` -} - -// Represents a volume that is populated with the contents of a git repository. -// Git repo volumes do not support ownership management. -// Git repo volumes support SELinux relabeling. -// -// DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an -// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir -// into the Pod's container. -type GitRepoVolumeSource struct { - // Repository URL - Repository string `json:"repository" protobuf:"bytes,1,opt,name=repository"` - // Commit hash for the specified revision. - // +optional - Revision string `json:"revision,omitempty" protobuf:"bytes,2,opt,name=revision"` - // Target directory name. - // Must not contain or start with '..'. If '.' is supplied, the volume directory will be the - // git repository. Otherwise, if specified, the volume will contain the git repository in - // the subdirectory with the given name. - // +optional - Directory string `json:"directory,omitempty" protobuf:"bytes,3,opt,name=directory"` -} - -// Adapts a Secret into a volume. -// -// The contents of the target Secret's Data field will be presented in a volume -// as files using the keys in the Data field as the file names. -// Secret volumes support ownership management and SELinux relabeling. -type SecretVolumeSource struct { - // Name of the secret in the pod's namespace to use. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - // +optional - SecretName string `json:"secretName,omitempty" protobuf:"bytes,1,opt,name=secretName"` - // If unspecified, each key-value pair in the Data field of the referenced - // Secret will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the Secret, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` - // Optional: mode bits to use on created files by default. Must be a - // value between 0 and 0777. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"bytes,3,opt,name=defaultMode"` - // Specify whether the Secret or its keys must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,4,opt,name=optional"` -} - -const ( - SecretVolumeSourceDefaultMode int32 = 0644 -) - -// Adapts a secret into a projected volume. -// -// The contents of the target Secret's Data field will be presented in a -// projected volume as files using the keys in the Data field as the file names. -// Note that this is identical to a secret volume source without the default -// mode. -type SecretProjection struct { - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // If unspecified, each key-value pair in the Data field of the referenced - // Secret will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the Secret, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` - // Specify whether the Secret or its key must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,4,opt,name=optional"` -} - -// Represents an NFS mount that lasts the lifetime of a pod. -// NFS volumes do not support ownership management or SELinux relabeling. -type NFSVolumeSource struct { - // Server is the hostname or IP address of the NFS server. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - Server string `json:"server" protobuf:"bytes,1,opt,name=server"` - - // Path that is exported by the NFS server. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - Path string `json:"path" protobuf:"bytes,2,opt,name=path"` - - // ReadOnly here will force - // the NFS export to be mounted with read-only permissions. - // Defaults to false. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` -} - -// Represents an ISCSI disk. -// ISCSI volumes can only be mounted as read/write once. -// ISCSI volumes support ownership management and SELinux relabeling. -type ISCSIVolumeSource struct { - // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - TargetPortal string `json:"targetPortal" protobuf:"bytes,1,opt,name=targetPortal"` - // Target iSCSI Qualified Name. - IQN string `json:"iqn" protobuf:"bytes,2,opt,name=iqn"` - // iSCSI Target Lun number. - Lun int32 `json:"lun" protobuf:"varint,3,opt,name=lun"` - // iSCSI Interface Name that uses an iSCSI transport. - // Defaults to 'default' (tcp). - // +optional - ISCSIInterface string `json:"iscsiInterface,omitempty" protobuf:"bytes,4,opt,name=iscsiInterface"` - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,5,opt,name=fsType"` - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` - // iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - // +optional - Portals []string `json:"portals,omitempty" protobuf:"bytes,7,opt,name=portals"` - // whether support iSCSI Discovery CHAP authentication - // +optional - DiscoveryCHAPAuth bool `json:"chapAuthDiscovery,omitempty" protobuf:"varint,8,opt,name=chapAuthDiscovery"` - // whether support iSCSI Session CHAP authentication - // +optional - SessionCHAPAuth bool `json:"chapAuthSession,omitempty" protobuf:"varint,11,opt,name=chapAuthSession"` - // CHAP Secret for iSCSI target and initiator authentication - // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,10,opt,name=secretRef"` - // Custom iSCSI Initiator Name. - // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - // : will be created for the connection. - // +optional - InitiatorName *string `json:"initiatorName,omitempty" protobuf:"bytes,12,opt,name=initiatorName"` -} - -// ISCSIPersistentVolumeSource represents an ISCSI disk. -// ISCSI volumes can only be mounted as read/write once. -// ISCSI volumes support ownership management and SELinux relabeling. -type ISCSIPersistentVolumeSource struct { - // iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - TargetPortal string `json:"targetPortal" protobuf:"bytes,1,opt,name=targetPortal"` - // Target iSCSI Qualified Name. - IQN string `json:"iqn" protobuf:"bytes,2,opt,name=iqn"` - // iSCSI Target Lun number. - Lun int32 `json:"lun" protobuf:"varint,3,opt,name=lun"` - // iSCSI Interface Name that uses an iSCSI transport. - // Defaults to 'default' (tcp). - // +optional - ISCSIInterface string `json:"iscsiInterface,omitempty" protobuf:"bytes,4,opt,name=iscsiInterface"` - // Filesystem type of the volume that you want to mount. - // Tip: Ensure that the filesystem type is supported by the host operating system. - // Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,5,opt,name=fsType"` - // ReadOnly here will force the ReadOnly setting in VolumeMounts. - // Defaults to false. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,6,opt,name=readOnly"` - // iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port - // is other than default (typically TCP ports 860 and 3260). - // +optional - Portals []string `json:"portals,omitempty" protobuf:"bytes,7,opt,name=portals"` - // whether support iSCSI Discovery CHAP authentication - // +optional - DiscoveryCHAPAuth bool `json:"chapAuthDiscovery,omitempty" protobuf:"varint,8,opt,name=chapAuthDiscovery"` - // whether support iSCSI Session CHAP authentication - // +optional - SessionCHAPAuth bool `json:"chapAuthSession,omitempty" protobuf:"varint,11,opt,name=chapAuthSession"` - // CHAP Secret for iSCSI target and initiator authentication - // +optional - SecretRef *SecretReference `json:"secretRef,omitempty" protobuf:"bytes,10,opt,name=secretRef"` - // Custom iSCSI Initiator Name. - // If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - // : will be created for the connection. - // +optional - InitiatorName *string `json:"initiatorName,omitempty" protobuf:"bytes,12,opt,name=initiatorName"` -} - -// Represents a Fibre Channel volume. -// Fibre Channel volumes can only be mounted as read/write once. -// Fibre Channel volumes support ownership management and SELinux relabeling. -type FCVolumeSource struct { - // Optional: FC target worldwide names (WWNs) - // +optional - TargetWWNs []string `json:"targetWWNs,omitempty" protobuf:"bytes,1,rep,name=targetWWNs"` - // Optional: FC target lun number - // +optional - Lun *int32 `json:"lun,omitempty" protobuf:"varint,2,opt,name=lun"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // TODO: how do we prevent errors in the filesystem from compromising the machine - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` - // Optional: Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` - // Optional: FC volume world wide identifiers (wwids) - // Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - // +optional - WWIDs []string `json:"wwids,omitempty" protobuf:"bytes,5,rep,name=wwids"` -} - -// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. -type AzureFileVolumeSource struct { - // the name of secret that contains Azure Storage Account Name and Key - SecretName string `json:"secretName" protobuf:"bytes,1,opt,name=secretName"` - // Share Name - ShareName string `json:"shareName" protobuf:"bytes,2,opt,name=shareName"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` -} - -// AzureFile represents an Azure File Service mount on the host and bind mount to the pod. -type AzureFilePersistentVolumeSource struct { - // the name of secret that contains Azure Storage Account Name and Key - SecretName string `json:"secretName" protobuf:"bytes,1,opt,name=secretName"` - // Share Name - ShareName string `json:"shareName" protobuf:"bytes,2,opt,name=shareName"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` - // the namespace of the secret that contains Azure Storage Account Name and Key - // default is the same as the Pod - // +optional - SecretNamespace *string `json:"secretNamespace" protobuf:"bytes,4,opt,name=secretNamespace"` -} - -// Represents a vSphere volume resource. -type VsphereVirtualDiskVolumeSource struct { - // Path that identifies vSphere volume vmdk - VolumePath string `json:"volumePath" protobuf:"bytes,1,opt,name=volumePath"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // Storage Policy Based Management (SPBM) profile name. - // +optional - StoragePolicyName string `json:"storagePolicyName,omitempty" protobuf:"bytes,3,opt,name=storagePolicyName"` - // Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - // +optional - StoragePolicyID string `json:"storagePolicyID,omitempty" protobuf:"bytes,4,opt,name=storagePolicyID"` -} - -// Represents a Photon Controller persistent disk resource. -type PhotonPersistentDiskVolumeSource struct { - // ID that identifies Photon Controller persistent disk - PdID string `json:"pdID" protobuf:"bytes,1,opt,name=pdID"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` -} - -type AzureDataDiskCachingMode string -type AzureDataDiskKind string - -const ( - AzureDataDiskCachingNone AzureDataDiskCachingMode = "None" - AzureDataDiskCachingReadOnly AzureDataDiskCachingMode = "ReadOnly" - AzureDataDiskCachingReadWrite AzureDataDiskCachingMode = "ReadWrite" - - AzureSharedBlobDisk AzureDataDiskKind = "Shared" - AzureDedicatedBlobDisk AzureDataDiskKind = "Dedicated" - AzureManagedDisk AzureDataDiskKind = "Managed" -) - -// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. -type AzureDiskVolumeSource struct { - // The Name of the data disk in the blob storage - DiskName string `json:"diskName" protobuf:"bytes,1,opt,name=diskName"` - // The URI the data disk in the blob storage - DataDiskURI string `json:"diskURI" protobuf:"bytes,2,opt,name=diskURI"` - // Host Caching mode: None, Read Only, Read Write. - // +optional - CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty" protobuf:"bytes,3,opt,name=cachingMode,casttype=AzureDataDiskCachingMode"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - FSType *string `json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,5,opt,name=readOnly"` - // Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - Kind *AzureDataDiskKind `json:"kind,omitempty" protobuf:"bytes,6,opt,name=kind,casttype=AzureDataDiskKind"` -} - -// PortworxVolumeSource represents a Portworx volume resource. -type PortworxVolumeSource struct { - // VolumeID uniquely identifies a Portworx volume - VolumeID string `json:"volumeID" protobuf:"bytes,1,opt,name=volumeID"` - // FSType represents the filesystem type to mount - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` -} - -// ScaleIOVolumeSource represents a persistent ScaleIO volume -type ScaleIOVolumeSource struct { - // The host address of the ScaleIO API Gateway. - Gateway string `json:"gateway" protobuf:"bytes,1,opt,name=gateway"` - // The name of the storage system as configured in ScaleIO. - System string `json:"system" protobuf:"bytes,2,opt,name=system"` - // SecretRef references to the secret for ScaleIO user and other - // sensitive information. If this is not provided, Login operation will fail. - SecretRef *LocalObjectReference `json:"secretRef" protobuf:"bytes,3,opt,name=secretRef"` - // Flag to enable/disable SSL communication with Gateway, default false - // +optional - SSLEnabled bool `json:"sslEnabled,omitempty" protobuf:"varint,4,opt,name=sslEnabled"` - // The name of the ScaleIO Protection Domain for the configured storage. - // +optional - ProtectionDomain string `json:"protectionDomain,omitempty" protobuf:"bytes,5,opt,name=protectionDomain"` - // The ScaleIO Storage Pool associated with the protection domain. - // +optional - StoragePool string `json:"storagePool,omitempty" protobuf:"bytes,6,opt,name=storagePool"` - // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - // Default is ThinProvisioned. - // +optional - StorageMode string `json:"storageMode,omitempty" protobuf:"bytes,7,opt,name=storageMode"` - // The name of a volume already created in the ScaleIO system - // that is associated with this volume source. - VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,8,opt,name=volumeName"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // Default is "xfs". - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,9,opt,name=fsType"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,10,opt,name=readOnly"` -} - -// ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume -type ScaleIOPersistentVolumeSource struct { - // The host address of the ScaleIO API Gateway. - Gateway string `json:"gateway" protobuf:"bytes,1,opt,name=gateway"` - // The name of the storage system as configured in ScaleIO. - System string `json:"system" protobuf:"bytes,2,opt,name=system"` - // SecretRef references to the secret for ScaleIO user and other - // sensitive information. If this is not provided, Login operation will fail. - SecretRef *SecretReference `json:"secretRef" protobuf:"bytes,3,opt,name=secretRef"` - // Flag to enable/disable SSL communication with Gateway, default false - // +optional - SSLEnabled bool `json:"sslEnabled,omitempty" protobuf:"varint,4,opt,name=sslEnabled"` - // The name of the ScaleIO Protection Domain for the configured storage. - // +optional - ProtectionDomain string `json:"protectionDomain,omitempty" protobuf:"bytes,5,opt,name=protectionDomain"` - // The ScaleIO Storage Pool associated with the protection domain. - // +optional - StoragePool string `json:"storagePool,omitempty" protobuf:"bytes,6,opt,name=storagePool"` - // Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - // Default is ThinProvisioned. - // +optional - StorageMode string `json:"storageMode,omitempty" protobuf:"bytes,7,opt,name=storageMode"` - // The name of a volume already created in the ScaleIO system - // that is associated with this volume source. - VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,8,opt,name=volumeName"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // Default is "xfs" - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,9,opt,name=fsType"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,10,opt,name=readOnly"` -} - -// Represents a StorageOS persistent volume resource. -type StorageOSVolumeSource struct { - // VolumeName is the human-readable name of the StorageOS volume. Volume - // names are only unique within a namespace. - VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,1,opt,name=volumeName"` - // VolumeNamespace specifies the scope of the volume within StorageOS. If no - // namespace is specified then the Pod's namespace will be used. This allows the - // Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - // Set VolumeName to any name to override the default behaviour. - // Set to "default" if you are not using namespaces within StorageOS. - // Namespaces that do not pre-exist within StorageOS will be created. - // +optional - VolumeNamespace string `json:"volumeNamespace,omitempty" protobuf:"bytes,2,opt,name=volumeNamespace"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` - // SecretRef specifies the secret to use for obtaining the StorageOS API - // credentials. If not specified, default values will be attempted. - // +optional - SecretRef *LocalObjectReference `json:"secretRef,omitempty" protobuf:"bytes,5,opt,name=secretRef"` -} - -// Represents a StorageOS persistent volume resource. -type StorageOSPersistentVolumeSource struct { - // VolumeName is the human-readable name of the StorageOS volume. Volume - // names are only unique within a namespace. - VolumeName string `json:"volumeName,omitempty" protobuf:"bytes,1,opt,name=volumeName"` - // VolumeNamespace specifies the scope of the volume within StorageOS. If no - // namespace is specified then the Pod's namespace will be used. This allows the - // Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - // Set VolumeName to any name to override the default behaviour. - // Set to "default" if you are not using namespaces within StorageOS. - // Namespaces that do not pre-exist within StorageOS will be created. - // +optional - VolumeNamespace string `json:"volumeNamespace,omitempty" protobuf:"bytes,2,opt,name=volumeNamespace"` - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` - // Defaults to false (read/write). ReadOnly here will force - // the ReadOnly setting in VolumeMounts. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` - // SecretRef specifies the secret to use for obtaining the StorageOS API - // credentials. If not specified, default values will be attempted. - // +optional - SecretRef *ObjectReference `json:"secretRef,omitempty" protobuf:"bytes,5,opt,name=secretRef"` -} - -// Adapts a ConfigMap into a volume. -// -// The contents of the target ConfigMap's Data field will be presented in a -// volume as files using the keys in the Data field as the file names, unless -// the items element is populated with specific mappings of keys to paths. -// ConfigMap volumes support ownership management and SELinux relabeling. -type ConfigMapVolumeSource struct { - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // If unspecified, each key-value pair in the Data field of the referenced - // ConfigMap will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the ConfigMap, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` - // Optional: mode bits to use on created files by default. Must be a - // value between 0 and 0777. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,3,opt,name=defaultMode"` - // Specify whether the ConfigMap or its keys must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,4,opt,name=optional"` -} - -const ( - ConfigMapVolumeSourceDefaultMode int32 = 0644 -) - -// Adapts a ConfigMap into a projected volume. -// -// The contents of the target ConfigMap's Data field will be presented in a -// projected volume as files using the keys in the Data field as the file names, -// unless the items element is populated with specific mappings of keys to paths. -// Note that this is identical to a configmap volume source without the default -// mode. -type ConfigMapProjection struct { - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // If unspecified, each key-value pair in the Data field of the referenced - // ConfigMap will be projected into the volume as a file whose name is the - // key and content is the value. If specified, the listed keys will be - // projected into the specified paths, and unlisted keys will not be - // present. If a key is specified which is not present in the ConfigMap, - // the volume setup will error unless it is marked optional. Paths must be - // relative and may not contain the '..' path or start with '..'. - // +optional - Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` - // Specify whether the ConfigMap or its keys must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,4,opt,name=optional"` -} - -// ServiceAccountTokenProjection represents a projected service account token -// volume. This projection can be used to insert a service account token into -// the pods runtime filesystem for use against APIs (Kubernetes API Server or -// otherwise). -type ServiceAccountTokenProjection struct { - // Audience is the intended audience of the token. A recipient of a token - // must identify itself with an identifier specified in the audience of the - // token, and otherwise should reject the token. The audience defaults to the - // identifier of the apiserver. - //+optional - Audience string `json:"audience,omitempty" protobuf:"bytes,1,rep,name=audience"` - // ExpirationSeconds is the requested duration of validity of the service - // account token. As the token approaches expiration, the kubelet volume - // plugin will proactively rotate the service account token. The kubelet will - // start trying to rotate the token if the token is older than 80 percent of - // its time to live or if the token is older than 24 hours.Defaults to 1 hour - // and must be at least 10 minutes. - //+optional - ExpirationSeconds *int64 `json:"expirationSeconds,omitempty" protobuf:"varint,2,opt,name=expirationSeconds"` - // Path is the path relative to the mount point of the file to project the - // token into. - Path string `json:"path" protobuf:"bytes,3,opt,name=path"` -} - -// Represents a projected volume source -type ProjectedVolumeSource struct { - // list of volume projections - Sources []VolumeProjection `json:"sources" protobuf:"bytes,1,rep,name=sources"` - // Mode bits to use on created files by default. Must be a value between - // 0 and 0777. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,2,opt,name=defaultMode"` -} - -// Projection that may be projected along with other supported volume types -type VolumeProjection struct { - // all types below are the supported types for projection into the same volume - - // information about the secret data to project - // +optional - Secret *SecretProjection `json:"secret,omitempty" protobuf:"bytes,1,opt,name=secret"` - // information about the downwardAPI data to project - // +optional - DownwardAPI *DownwardAPIProjection `json:"downwardAPI,omitempty" protobuf:"bytes,2,opt,name=downwardAPI"` - // information about the configMap data to project - // +optional - ConfigMap *ConfigMapProjection `json:"configMap,omitempty" protobuf:"bytes,3,opt,name=configMap"` - // information about the serviceAccountToken data to project - // +optional - ServiceAccountToken *ServiceAccountTokenProjection `json:"serviceAccountToken,omitempty" protobuf:"bytes,4,opt,name=serviceAccountToken"` -} - -const ( - ProjectedVolumeSourceDefaultMode int32 = 0644 -) - -// Maps a string key to a path within a volume. -type KeyToPath struct { - // The key to project. - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` - - // The relative path of the file to map the key to. - // May not be an absolute path. - // May not contain the path element '..'. - // May not start with the string '..'. - Path string `json:"path" protobuf:"bytes,2,opt,name=path"` - // Optional: mode bits to use on this file, must be a value between 0 - // and 0777. If not specified, the volume defaultMode will be used. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - Mode *int32 `json:"mode,omitempty" protobuf:"varint,3,opt,name=mode"` -} - -// Local represents directly-attached storage with node affinity (Beta feature) -type LocalVolumeSource struct { - // The full path to the volume on the node. - // It can be either a directory or block device (disk, partition, ...). - Path string `json:"path" protobuf:"bytes,1,opt,name=path"` - - // Filesystem type to mount. - // It applies only when the Path is a block device. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - // +optional - FSType *string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` -} - -// Represents storage that is managed by an external CSI volume driver (Beta feature) -type CSIPersistentVolumeSource struct { - // Driver is the name of the driver to use for this volume. - // Required. - Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` - - // VolumeHandle is the unique volume name returned by the CSI volume - // plugin’s CreateVolume to refer to the volume on all subsequent calls. - // Required. - VolumeHandle string `json:"volumeHandle" protobuf:"bytes,2,opt,name=volumeHandle"` - - // Optional: The value to pass to ControllerPublishVolumeRequest. - // Defaults to false (read/write). - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` - - // Filesystem type to mount. - // Must be a filesystem type supported by the host operating system. - // Ex. "ext4", "xfs", "ntfs". - // +optional - FSType string `json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"` - - // Attributes of the volume to publish. - // +optional - VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" protobuf:"bytes,5,rep,name=volumeAttributes"` - - // ControllerPublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // ControllerPublishVolume and ControllerUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - ControllerPublishSecretRef *SecretReference `json:"controllerPublishSecretRef,omitempty" protobuf:"bytes,6,opt,name=controllerPublishSecretRef"` - - // NodeStageSecretRef is a reference to the secret object containing sensitive - // information to pass to the CSI driver to complete the CSI NodeStageVolume - // and NodeStageVolume and NodeUnstageVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - NodeStageSecretRef *SecretReference `json:"nodeStageSecretRef,omitempty" protobuf:"bytes,7,opt,name=nodeStageSecretRef"` - - // NodePublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // NodePublishVolume and NodeUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - NodePublishSecretRef *SecretReference `json:"nodePublishSecretRef,omitempty" protobuf:"bytes,8,opt,name=nodePublishSecretRef"` - - // ControllerExpandSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // ControllerExpandVolume call. - // This is an alpha field and requires enabling ExpandCSIVolumes feature gate. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secrets are passed. - // +optional - ControllerExpandSecretRef *SecretReference `json:"controllerExpandSecretRef,omitempty" protobuf:"bytes,9,opt,name=controllerExpandSecretRef"` -} - -// Represents a source location of a volume to mount, managed by an external CSI driver -type CSIVolumeSource struct { - // Driver is the name of the CSI driver that handles this volume. - // Consult with your admin for the correct name as registered in the cluster. - Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` - - // Specifies a read-only configuration for the volume. - // Defaults to false (read/write). - // +optional - ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` - - // Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". - // If not provided, the empty value is passed to the associated CSI driver - // which will determine the default filesystem to apply. - // +optional - FSType *string `json:"fsType,omitempty" protobuf:"bytes,3,opt,name=fsType"` - - // VolumeAttributes stores driver-specific properties that are passed to the CSI - // driver. Consult your driver's documentation for supported values. - // +optional - VolumeAttributes map[string]string `json:"volumeAttributes,omitempty" protobuf:"bytes,4,rep,name=volumeAttributes"` - - // NodePublishSecretRef is a reference to the secret object containing - // sensitive information to pass to the CSI driver to complete the CSI - // NodePublishVolume and NodeUnpublishVolume calls. - // This field is optional, and may be empty if no secret is required. If the - // secret object contains more than one secret, all secret references are passed. - // +optional - NodePublishSecretRef *LocalObjectReference `json:"nodePublishSecretRef,omitempty" protobuf:"bytes,5,opt,name=nodePublishSecretRef"` -} - -// ContainerPort represents a network port in a single container. -type ContainerPort struct { - // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each - // named port in a pod must have a unique name. Name for the port that can be - // referred to by services. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` - // Number of port to expose on the host. - // If specified, this must be a valid port number, 0 < x < 65536. - // If HostNetwork is specified, this must match ContainerPort. - // Most containers do not need this. - // +optional - HostPort int32 `json:"hostPort,omitempty" protobuf:"varint,2,opt,name=hostPort"` - // Number of port to expose on the pod's IP address. - // This must be a valid port number, 0 < x < 65536. - ContainerPort int32 `json:"containerPort" protobuf:"varint,3,opt,name=containerPort"` - // Protocol for port. Must be UDP, TCP, or SCTP. - // Defaults to "TCP". - // +optional - Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,4,opt,name=protocol,casttype=Protocol"` - // What host IP to bind the external port to. - // +optional - HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` -} - -// VolumeMount describes a mounting of a Volume within a container. -type VolumeMount struct { - // This must match the Name of a Volume. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // Mounted read-only if true, read-write otherwise (false or unspecified). - // Defaults to false. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` - // Path within the container at which the volume should be mounted. Must - // not contain ':'. - MountPath string `json:"mountPath" protobuf:"bytes,3,opt,name=mountPath"` - // Path within the volume from which the container's volume should be mounted. - // Defaults to "" (volume's root). - // +optional - SubPath string `json:"subPath,omitempty" protobuf:"bytes,4,opt,name=subPath"` - // mountPropagation determines how mounts are propagated from the host - // to container and the other way around. - // When not set, MountPropagationNone is used. - // This field is beta in 1.10. - // +optional - MountPropagation *MountPropagationMode `json:"mountPropagation,omitempty" protobuf:"bytes,5,opt,name=mountPropagation,casttype=MountPropagationMode"` - // Expanded path within the volume from which the container's volume should be mounted. - // Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. - // Defaults to "" (volume's root). - // SubPathExpr and SubPath are mutually exclusive. - // This field is beta in 1.15. - // +optional - SubPathExpr string `json:"subPathExpr,omitempty" protobuf:"bytes,6,opt,name=subPathExpr"` -} - -// MountPropagationMode describes mount propagation. -type MountPropagationMode string - -const ( - // MountPropagationNone means that the volume in a container will - // not receive new mounts from the host or other containers, and filesystems - // mounted inside the container won't be propagated to the host or other - // containers. - // Note that this mode corresponds to "private" in Linux terminology. - MountPropagationNone MountPropagationMode = "None" - // MountPropagationHostToContainer means that the volume in a container will - // receive new mounts from the host or other containers, but filesystems - // mounted inside the container won't be propagated to the host or other - // containers. - // Note that this mode is recursively applied to all mounts in the volume - // ("rslave" in Linux terminology). - MountPropagationHostToContainer MountPropagationMode = "HostToContainer" - // MountPropagationBidirectional means that the volume in a container will - // receive new mounts from the host or other containers, and its own mounts - // will be propagated from the container to the host or other containers. - // Note that this mode is recursively applied to all mounts in the volume - // ("rshared" in Linux terminology). - MountPropagationBidirectional MountPropagationMode = "Bidirectional" -) - -// volumeDevice describes a mapping of a raw block device within a container. -type VolumeDevice struct { - // name must match the name of a persistentVolumeClaim in the pod - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // devicePath is the path inside of the container that the device will be mapped to. - DevicePath string `json:"devicePath" protobuf:"bytes,2,opt,name=devicePath"` -} - -// EnvVar represents an environment variable present in a Container. -type EnvVar struct { - // Name of the environment variable. Must be a C_IDENTIFIER. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - - // Optional: no more than one of the following may be specified. - - // Variable references $(VAR_NAME) are expanded - // using the previous defined environment variables in the container and - // any service environment variables. If a variable cannot be resolved, - // the reference in the input string will be unchanged. The $(VAR_NAME) - // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - // references will never be expanded, regardless of whether the variable - // exists or not. - // Defaults to "". - // +optional - Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` - // Source for the environment variable's value. Cannot be used if value is not empty. - // +optional - ValueFrom *EnvVarSource `json:"valueFrom,omitempty" protobuf:"bytes,3,opt,name=valueFrom"` -} - -// EnvVarSource represents a source for the value of an EnvVar. -type EnvVarSource struct { - // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, - // spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. - // +optional - FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,1,opt,name=fieldRef"` - // Selects a resource of the container: only resources limits and requests - // (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - // +optional - ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,2,opt,name=resourceFieldRef"` - // Selects a key of a ConfigMap. - // +optional - ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"` - // Selects a key of a secret in the pod's namespace - // +optional - SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"` -} - -// ObjectFieldSelector selects an APIVersioned field of an object. -type ObjectFieldSelector struct { - // Version of the schema the FieldPath is written in terms of, defaults to "v1". - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"` - // Path of the field to select in the specified API version. - FieldPath string `json:"fieldPath" protobuf:"bytes,2,opt,name=fieldPath"` -} - -// ResourceFieldSelector represents container resources (cpu, memory) and their output format -type ResourceFieldSelector struct { - // Container name: required for volumes, optional for env vars - // +optional - ContainerName string `json:"containerName,omitempty" protobuf:"bytes,1,opt,name=containerName"` - // Required: resource to select - Resource string `json:"resource" protobuf:"bytes,2,opt,name=resource"` - // Specifies the output format of the exposed resources, defaults to "1" - // +optional - Divisor resource.Quantity `json:"divisor,omitempty" protobuf:"bytes,3,opt,name=divisor"` -} - -// Selects a key from a ConfigMap. -type ConfigMapKeySelector struct { - // The ConfigMap to select from. - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // The key to select. - Key string `json:"key" protobuf:"bytes,2,opt,name=key"` - // Specify whether the ConfigMap or its key must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,3,opt,name=optional"` -} - -// SecretKeySelector selects a key of a Secret. -type SecretKeySelector struct { - // The name of the secret in the pod's namespace to select from. - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // The key of the secret to select from. Must be a valid secret key. - Key string `json:"key" protobuf:"bytes,2,opt,name=key"` - // Specify whether the Secret or its key must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,3,opt,name=optional"` -} - -// EnvFromSource represents the source of a set of ConfigMaps -type EnvFromSource struct { - // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - // +optional - Prefix string `json:"prefix,omitempty" protobuf:"bytes,1,opt,name=prefix"` - // The ConfigMap to select from - // +optional - ConfigMapRef *ConfigMapEnvSource `json:"configMapRef,omitempty" protobuf:"bytes,2,opt,name=configMapRef"` - // The Secret to select from - // +optional - SecretRef *SecretEnvSource `json:"secretRef,omitempty" protobuf:"bytes,3,opt,name=secretRef"` -} - -// ConfigMapEnvSource selects a ConfigMap to populate the environment -// variables with. -// -// The contents of the target ConfigMap's Data field will represent the -// key-value pairs as environment variables. -type ConfigMapEnvSource struct { - // The ConfigMap to select from. - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // Specify whether the ConfigMap must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,2,opt,name=optional"` -} - -// SecretEnvSource selects a Secret to populate the environment -// variables with. -// -// The contents of the target Secret's Data field will represent the -// key-value pairs as environment variables. -type SecretEnvSource struct { - // The Secret to select from. - LocalObjectReference `json:",inline" protobuf:"bytes,1,opt,name=localObjectReference"` - // Specify whether the Secret must be defined - // +optional - Optional *bool `json:"optional,omitempty" protobuf:"varint,2,opt,name=optional"` -} - -// HTTPHeader describes a custom header to be used in HTTP probes -type HTTPHeader struct { - // The header field name - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // The header field value - Value string `json:"value" protobuf:"bytes,2,opt,name=value"` -} - -// HTTPGetAction describes an action based on HTTP Get requests. -type HTTPGetAction struct { - // Path to access on the HTTP server. - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` - // Name or number of the port to access on the container. - // Number must be in the range 1 to 65535. - // Name must be an IANA_SVC_NAME. - Port intstr.IntOrString `json:"port" protobuf:"bytes,2,opt,name=port"` - // Host name to connect to, defaults to the pod IP. You probably want to set - // "Host" in httpHeaders instead. - // +optional - Host string `json:"host,omitempty" protobuf:"bytes,3,opt,name=host"` - // Scheme to use for connecting to the host. - // Defaults to HTTP. - // +optional - Scheme URIScheme `json:"scheme,omitempty" protobuf:"bytes,4,opt,name=scheme,casttype=URIScheme"` - // Custom headers to set in the request. HTTP allows repeated headers. - // +optional - HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty" protobuf:"bytes,5,rep,name=httpHeaders"` -} - -// URIScheme identifies the scheme used for connection to a host for Get actions -type URIScheme string - -const ( - // URISchemeHTTP means that the scheme used will be http:// - URISchemeHTTP URIScheme = "HTTP" - // URISchemeHTTPS means that the scheme used will be https:// - URISchemeHTTPS URIScheme = "HTTPS" -) - -// TCPSocketAction describes an action based on opening a socket -type TCPSocketAction struct { - // Number or name of the port to access on the container. - // Number must be in the range 1 to 65535. - // Name must be an IANA_SVC_NAME. - Port intstr.IntOrString `json:"port" protobuf:"bytes,1,opt,name=port"` - // Optional: Host name to connect to, defaults to the pod IP. - // +optional - Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"` -} - -// ExecAction describes a "run in container" action. -type ExecAction struct { - // Command is the command line to execute inside the container, the working directory for the - // command is root ('/') in the container's filesystem. The command is simply exec'd, it is - // not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - // a shell, you need to explicitly call out to that shell. - // Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - // +optional - Command []string `json:"command,omitempty" protobuf:"bytes,1,rep,name=command"` -} - -// Probe describes a health check to be performed against a container to determine whether it is -// alive or ready to receive traffic. -type Probe struct { - // The action taken to determine the health of a container - Handler `json:",inline" protobuf:"bytes,1,opt,name=handler"` - // Number of seconds after the container has started before liveness probes are initiated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty" protobuf:"varint,2,opt,name=initialDelaySeconds"` - // Number of seconds after which the probe times out. - // Defaults to 1 second. Minimum value is 1. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - TimeoutSeconds int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,3,opt,name=timeoutSeconds"` - // How often (in seconds) to perform the probe. - // Default to 10 seconds. Minimum value is 1. - // +optional - PeriodSeconds int32 `json:"periodSeconds,omitempty" protobuf:"varint,4,opt,name=periodSeconds"` - // Minimum consecutive successes for the probe to be considered successful after having failed. - // Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - // +optional - SuccessThreshold int32 `json:"successThreshold,omitempty" protobuf:"varint,5,opt,name=successThreshold"` - // Minimum consecutive failures for the probe to be considered failed after having succeeded. - // Defaults to 3. Minimum value is 1. - // +optional - FailureThreshold int32 `json:"failureThreshold,omitempty" protobuf:"varint,6,opt,name=failureThreshold"` -} - -// PullPolicy describes a policy for if/when to pull a container image -type PullPolicy string - -const ( - // PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - PullAlways PullPolicy = "Always" - // PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present - PullNever PullPolicy = "Never" - // PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - PullIfNotPresent PullPolicy = "IfNotPresent" -) - -// PreemptionPolicy describes a policy for if/when to preempt a pod. -type PreemptionPolicy string - -const ( - // PreemptLowerPriority means that pod can preempt other pods with lower priority. - PreemptLowerPriority PreemptionPolicy = "PreemptLowerPriority" - // PreemptNever means that pod never preempts other pods with lower priority. - PreemptNever PreemptionPolicy = "Never" -) - -// TerminationMessagePolicy describes how termination messages are retrieved from a container. -type TerminationMessagePolicy string - -const ( - // TerminationMessageReadFile is the default behavior and will set the container status message to - // the contents of the container's terminationMessagePath when the container exits. - TerminationMessageReadFile TerminationMessagePolicy = "File" - // TerminationMessageFallbackToLogsOnError will read the most recent contents of the container logs - // for the container status message when the container exits with an error and the - // terminationMessagePath has no contents. - TerminationMessageFallbackToLogsOnError TerminationMessagePolicy = "FallbackToLogsOnError" -) - -// Capability represent POSIX capabilities type -type Capability string - -// Adds and removes POSIX capabilities from running containers. -type Capabilities struct { - // Added capabilities - // +optional - Add []Capability `json:"add,omitempty" protobuf:"bytes,1,rep,name=add,casttype=Capability"` - // Removed capabilities - // +optional - Drop []Capability `json:"drop,omitempty" protobuf:"bytes,2,rep,name=drop,casttype=Capability"` -} - -// ResourceRequirements describes the compute resource requirements. -type ResourceRequirements struct { - // Limits describes the maximum amount of compute resources allowed. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - Limits ResourceList `json:"limits,omitempty" protobuf:"bytes,1,rep,name=limits,casttype=ResourceList,castkey=ResourceName"` - // Requests describes the minimum amount of compute resources required. - // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, - // otherwise to an implementation-defined value. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"` -} - -const ( - // TerminationMessagePathDefault means the default path to capture the application termination message running in a container - TerminationMessagePathDefault string = "/dev/termination-log" -) - -// A single application container that you want to run within a pod. -type Container struct { - // Name of the container specified as a DNS_LABEL. - // Each container in a pod must have a unique name (DNS_LABEL). - // Cannot be updated. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - // This field is optional to allow higher level config management to default or override - // container images in workload controllers like Deployments and StatefulSets. - // +optional - Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"` - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - Command []string `json:"command,omitempty" protobuf:"bytes,3,rep,name=command"` - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - Args []string `json:"args,omitempty" protobuf:"bytes,4,rep,name=args"` - // Container's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - WorkingDir string `json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"` - // List of ports to expose from the container. Exposing a port here gives - // the system additional information about the network connections a - // container uses, but is primarily informational. Not specifying a port here - // DOES NOT prevent that port from being exposed. Any port which is - // listening on the default "0.0.0.0" address inside a container will be - // accessible from the network. - // Cannot be updated. - // +optional - // +patchMergeKey=containerPort - // +patchStrategy=merge - // +listType=map - // +listMapKey=containerPort - // +listMapKey=protocol - Ports []ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"` - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - EnvFrom []EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,19,rep,name=envFrom"` - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Env []EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"` - // Compute Resources required by this container. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - // +optional - Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` - // Pod volumes to mount into the container's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - VolumeMounts []VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,9,rep,name=volumeMounts"` - // volumeDevices is the list of block devices to be used by the container. - // This is a beta feature. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - VolumeDevices []VolumeDevice `json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,21,rep,name=volumeDevices"` - // Periodic probe of container liveness. - // Container will be restarted if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - LivenessProbe *Probe `json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"` - // Periodic probe of container service readiness. - // Container will be removed from service endpoints if the probe fails. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - ReadinessProbe *Probe `json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"` - // StartupProbe indicates that the Pod has successfully initialized. - // If specified, no other probes are executed until this completes successfully. - // If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. - // This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, - // when it might take a long time to load data or warm a cache, than during steady-state operation. - // This cannot be updated. - // This is an alpha feature enabled by the StartupProbe feature flag. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - // +optional - StartupProbe *Probe `json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"` - // Actions that the management system should take in response to container lifecycle events. - // Cannot be updated. - // +optional - Lifecycle *Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"` - // Optional: Path at which the file to which the container's termination message - // will be written is mounted into the container's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - TerminationMessagePath string `json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"` - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of container log output if the termination - // message file is empty and the container exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - TerminationMessagePolicy TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty" protobuf:"bytes,20,opt,name=terminationMessagePolicy,casttype=TerminationMessagePolicy"` - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"` - // Security options the pod should run with. - // More info: https://kubernetes.io/docs/concepts/policy/security-context/ - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - SecurityContext *SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"` - - // Variables for interactive containers, these have very specialized use-cases (e.g. debugging) - // and shouldn't be used for general purpose containers. - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // +optional - Stdin bool `json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"` - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - StdinOnce bool `json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"` - // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - TTY bool `json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"` -} - -// Handler defines a specific action that should be taken -// TODO: pass structured data to these actions, and document that data here. -type Handler struct { - // One and only one of the following should be specified. - // Exec specifies the action to take. - // +optional - Exec *ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"` - // HTTPGet specifies the http request to perform. - // +optional - HTTPGet *HTTPGetAction `json:"httpGet,omitempty" protobuf:"bytes,2,opt,name=httpGet"` - // TCPSocket specifies an action involving a TCP port. - // TCP hooks not yet supported - // TODO: implement a realistic TCP lifecycle hook - // +optional - TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"` -} - -// Lifecycle describes actions that the management system should take in response to container lifecycle -// events. For the PostStart and PreStop lifecycle handlers, management of the container blocks -// until the action is complete, unless the container process fails, in which case the handler is aborted. -type Lifecycle struct { - // PostStart is called immediately after a container is created. If the handler fails, - // the container is terminated and restarted according to its restart policy. - // Other management of the container blocks until the hook completes. - // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - // +optional - PostStart *Handler `json:"postStart,omitempty" protobuf:"bytes,1,opt,name=postStart"` - // PreStop is called immediately before a container is terminated due to an - // API request or management event such as liveness/startup probe failure, - // preemption, resource contention, etc. The handler is not called if the - // container crashes or exits. The reason for termination is passed to the - // handler. The Pod's termination grace period countdown begins before the - // PreStop hooked is executed. Regardless of the outcome of the handler, the - // container will eventually terminate within the Pod's termination grace - // period. Other management of the container blocks until the hook completes - // or until the termination grace period is reached. - // More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - // +optional - PreStop *Handler `json:"preStop,omitempty" protobuf:"bytes,2,opt,name=preStop"` -} - -type ConditionStatus string - -// These are valid condition statuses. "ConditionTrue" means a resource is in the condition. -// "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means kubernetes -// can't decide if a resource is in the condition or not. In the future, we could add other -// intermediate conditions, e.g. ConditionDegraded. -const ( - ConditionTrue ConditionStatus = "True" - ConditionFalse ConditionStatus = "False" - ConditionUnknown ConditionStatus = "Unknown" -) - -// ContainerStateWaiting is a waiting state of a container. -type ContainerStateWaiting struct { - // (brief) reason the container is not yet running. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason"` - // Message regarding why the container is not yet running. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` -} - -// ContainerStateRunning is a running state of a container. -type ContainerStateRunning struct { - // Time at which the container was last (re-)started - // +optional - StartedAt metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,1,opt,name=startedAt"` -} - -// ContainerStateTerminated is a terminated state of a container. -type ContainerStateTerminated struct { - // Exit status from the last termination of the container - ExitCode int32 `json:"exitCode" protobuf:"varint,1,opt,name=exitCode"` - // Signal from the last termination of the container - // +optional - Signal int32 `json:"signal,omitempty" protobuf:"varint,2,opt,name=signal"` - // (brief) reason from the last termination of the container - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` - // Message regarding the last termination of the container - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` - // Time at which previous execution of the container started - // +optional - StartedAt metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,5,opt,name=startedAt"` - // Time at which the container last terminated - // +optional - FinishedAt metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,6,opt,name=finishedAt"` - // Container's ID in the format 'docker://' - // +optional - ContainerID string `json:"containerID,omitempty" protobuf:"bytes,7,opt,name=containerID"` -} - -// ContainerState holds a possible state of container. -// Only one of its members may be specified. -// If none of them is specified, the default one is ContainerStateWaiting. -type ContainerState struct { - // Details about a waiting container - // +optional - Waiting *ContainerStateWaiting `json:"waiting,omitempty" protobuf:"bytes,1,opt,name=waiting"` - // Details about a running container - // +optional - Running *ContainerStateRunning `json:"running,omitempty" protobuf:"bytes,2,opt,name=running"` - // Details about a terminated container - // +optional - Terminated *ContainerStateTerminated `json:"terminated,omitempty" protobuf:"bytes,3,opt,name=terminated"` -} - -// ContainerStatus contains details for the current status of this container. -type ContainerStatus struct { - // This must be a DNS_LABEL. Each container in a pod must have a unique name. - // Cannot be updated. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // Details about the container's current condition. - // +optional - State ContainerState `json:"state,omitempty" protobuf:"bytes,2,opt,name=state"` - // Details about the container's last termination condition. - // +optional - LastTerminationState ContainerState `json:"lastState,omitempty" protobuf:"bytes,3,opt,name=lastState"` - // Specifies whether the container has passed its readiness probe. - Ready bool `json:"ready" protobuf:"varint,4,opt,name=ready"` - // The number of times the container has been restarted, currently based on - // the number of dead containers that have not yet been removed. - // Note that this is calculated from dead containers. But those containers are subject to - // garbage collection. This value will get capped at 5 by GC. - RestartCount int32 `json:"restartCount" protobuf:"varint,5,opt,name=restartCount"` - // The image the container is running. - // More info: https://kubernetes.io/docs/concepts/containers/images - // TODO(dchen1107): Which image the container is running with? - Image string `json:"image" protobuf:"bytes,6,opt,name=image"` - // ImageID of the container's image. - ImageID string `json:"imageID" protobuf:"bytes,7,opt,name=imageID"` - // Container's ID in the format 'docker://'. - // +optional - ContainerID string `json:"containerID,omitempty" protobuf:"bytes,8,opt,name=containerID"` - // Specifies whether the container has passed its startup probe. - // Initialized as false, becomes true after startupProbe is considered successful. - // Resets to false when the container is restarted, or if kubelet loses state temporarily. - // Is always true when no startupProbe is defined. - // +optional - Started *bool `json:"started,omitempty" protobuf:"varint,9,opt,name=started"` -} - -// PodPhase is a label for the condition of a pod at the current time. -type PodPhase string - -// These are the valid statuses of pods. -const ( - // PodPending means the pod has been accepted by the system, but one or more of the containers - // has not been started. This includes time before being bound to a node, as well as time spent - // pulling images onto the host. - PodPending PodPhase = "Pending" - // PodRunning means the pod has been bound to a node and all of the containers have been started. - // At least one container is still running or is in the process of being restarted. - PodRunning PodPhase = "Running" - // PodSucceeded means that all containers in the pod have voluntarily terminated - // with a container exit code of 0, and the system is not going to restart any of these containers. - PodSucceeded PodPhase = "Succeeded" - // PodFailed means that all containers in the pod have terminated, and at least one container has - // terminated in a failure (exited with a non-zero exit code or was stopped by the system). - PodFailed PodPhase = "Failed" - // PodUnknown means that for some reason the state of the pod could not be obtained, typically due - // to an error in communicating with the host of the pod. - PodUnknown PodPhase = "Unknown" -) - -// PodConditionType is a valid value for PodCondition.Type -type PodConditionType string - -// These are valid conditions of pod. -const ( - // ContainersReady indicates whether all containers in the pod are ready. - ContainersReady PodConditionType = "ContainersReady" - // PodInitialized means that all init containers in the pod have started successfully. - PodInitialized PodConditionType = "Initialized" - // PodReady means the pod is able to service requests and should be added to the - // load balancing pools of all matching services. - PodReady PodConditionType = "Ready" - // PodScheduled represents status of the scheduling process for this pod. - PodScheduled PodConditionType = "PodScheduled" -) - -// These are reasons for a pod's transition to a condition. -const ( - // PodReasonUnschedulable reason in PodScheduled PodCondition means that the scheduler - // can't schedule the pod right now, for example due to insufficient resources in the cluster. - PodReasonUnschedulable = "Unschedulable" -) - -// PodCondition contains details for the current condition of this pod. -type PodCondition struct { - // Type is the type of the condition. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - Type PodConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PodConditionType"` - // Status is the status of the condition. - // Can be True, False, Unknown. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // Last time we probed the condition. - // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` - // Unique, one-word, CamelCase reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` - // Human-readable message indicating details about last transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` -} - -// RestartPolicy describes how the container should be restarted. -// Only one of the following restart policies may be specified. -// If none of the following policies is specified, the default one -// is RestartPolicyAlways. -type RestartPolicy string - -const ( - RestartPolicyAlways RestartPolicy = "Always" - RestartPolicyOnFailure RestartPolicy = "OnFailure" - RestartPolicyNever RestartPolicy = "Never" -) - -// DNSPolicy defines how a pod's DNS will be configured. -type DNSPolicy string - -const ( - // DNSClusterFirstWithHostNet indicates that the pod should use cluster DNS - // first, if it is available, then fall back on the default - // (as determined by kubelet) DNS settings. - DNSClusterFirstWithHostNet DNSPolicy = "ClusterFirstWithHostNet" - - // DNSClusterFirst indicates that the pod should use cluster DNS - // first unless hostNetwork is true, if it is available, then - // fall back on the default (as determined by kubelet) DNS settings. - DNSClusterFirst DNSPolicy = "ClusterFirst" - - // DNSDefault indicates that the pod should use the default (as - // determined by kubelet) DNS settings. - DNSDefault DNSPolicy = "Default" - - // DNSNone indicates that the pod should use empty DNS settings. DNS - // parameters such as nameservers and search paths should be defined via - // DNSConfig. - DNSNone DNSPolicy = "None" -) - -const ( - // DefaultTerminationGracePeriodSeconds indicates the default duration in - // seconds a pod needs to terminate gracefully. - DefaultTerminationGracePeriodSeconds = 30 -) - -// A node selector represents the union of the results of one or more label queries -// over a set of nodes; that is, it represents the OR of the selectors represented -// by the node selector terms. -type NodeSelector struct { - //Required. A list of node selector terms. The terms are ORed. - NodeSelectorTerms []NodeSelectorTerm `json:"nodeSelectorTerms" protobuf:"bytes,1,rep,name=nodeSelectorTerms"` -} - -// A null or empty node selector term matches no objects. The requirements of -// them are ANDed. -// The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. -type NodeSelectorTerm struct { - // A list of node selector requirements by node's labels. - // +optional - MatchExpressions []NodeSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,1,rep,name=matchExpressions"` - // A list of node selector requirements by node's fields. - // +optional - MatchFields []NodeSelectorRequirement `json:"matchFields,omitempty" protobuf:"bytes,2,rep,name=matchFields"` -} - -// A node selector requirement is a selector that contains values, a key, and an operator -// that relates the key and values. -type NodeSelectorRequirement struct { - // The label key that the selector applies to. - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` - // Represents a key's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - Operator NodeSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=NodeSelectorOperator"` - // An array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. If the operator is Gt or Lt, the values - // array must have a single element, which will be interpreted as an integer. - // This array is replaced during a strategic merge patch. - // +optional - Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` -} - -// A node selector operator is the set of operators that can be used in -// a node selector requirement. -type NodeSelectorOperator string - -const ( - NodeSelectorOpIn NodeSelectorOperator = "In" - NodeSelectorOpNotIn NodeSelectorOperator = "NotIn" - NodeSelectorOpExists NodeSelectorOperator = "Exists" - NodeSelectorOpDoesNotExist NodeSelectorOperator = "DoesNotExist" - NodeSelectorOpGt NodeSelectorOperator = "Gt" - NodeSelectorOpLt NodeSelectorOperator = "Lt" -) - -// A topology selector term represents the result of label queries. -// A null or empty topology selector term matches no objects. -// The requirements of them are ANDed. -// It provides a subset of functionality as NodeSelectorTerm. -// This is an alpha feature and may change in the future. -type TopologySelectorTerm struct { - // A list of topology selector requirements by labels. - // +optional - MatchLabelExpressions []TopologySelectorLabelRequirement `json:"matchLabelExpressions,omitempty" protobuf:"bytes,1,rep,name=matchLabelExpressions"` -} - -// A topology selector requirement is a selector that matches given label. -// This is an alpha feature and may change in the future. -type TopologySelectorLabelRequirement struct { - // The label key that the selector applies to. - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` - // An array of string values. One value must match the label to be selected. - // Each entry in Values is ORed. - Values []string `json:"values" protobuf:"bytes,2,rep,name=values"` -} - -// Affinity is a group of affinity scheduling rules. -type Affinity struct { - // Describes node affinity scheduling rules for the pod. - // +optional - NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty" protobuf:"bytes,1,opt,name=nodeAffinity"` - // Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - // +optional - PodAffinity *PodAffinity `json:"podAffinity,omitempty" protobuf:"bytes,2,opt,name=podAffinity"` - // Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - // +optional - PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty" protobuf:"bytes,3,opt,name=podAntiAffinity"` -} - -// Pod affinity is a group of inter pod affinity scheduling rules. -type PodAffinity struct { - // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system will try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` - - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system may or may not try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,1,rep,name=requiredDuringSchedulingIgnoredDuringExecution"` - // The scheduler will prefer to schedule pods to nodes that satisfy - // the affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - // node(s) with the highest sum are the most preferred. - // +optional - PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` -} - -// Pod anti affinity is a group of inter pod anti affinity scheduling rules. -type PodAntiAffinity struct { - // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. - // If the anti-affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the anti-affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system will try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - // RequiredDuringSchedulingRequiredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` - - // If the anti-affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the anti-affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to a pod label update), the - // system may or may not try to eventually evict the pod from its node. - // When there are multiple elements, the lists of nodes corresponding to each - // podAffinityTerm are intersected, i.e. all terms must be satisfied. - // +optional - RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,1,rep,name=requiredDuringSchedulingIgnoredDuringExecution"` - // The scheduler will prefer to schedule pods to nodes that satisfy - // the anti-affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling anti-affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - // node(s) with the highest sum are the most preferred. - // +optional - PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` -} - -// The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) -type WeightedPodAffinityTerm struct { - // weight associated with matching the corresponding podAffinityTerm, - // in the range 1-100. - Weight int32 `json:"weight" protobuf:"varint,1,opt,name=weight"` - // Required. A pod affinity term, associated with the corresponding weight. - PodAffinityTerm PodAffinityTerm `json:"podAffinityTerm" protobuf:"bytes,2,opt,name=podAffinityTerm"` -} - -// Defines a set of pods (namely those matching the labelSelector -// relative to the given namespace(s)) that this pod should be -// co-located (affinity) or not co-located (anti-affinity) with, -// where co-located is defined as running on a node whose value of -// the label with key matches that of any node on which -// a pod of the set of pods is running -type PodAffinityTerm struct { - // A label query over a set of resources, in this case pods. - // +optional - LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"` - // namespaces specifies which namespaces the labelSelector applies to (matches against); - // null or empty list means "this pod's namespace" - // +optional - Namespaces []string `json:"namespaces,omitempty" protobuf:"bytes,2,rep,name=namespaces"` - // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - // the labelSelector in the specified namespaces, where co-located is defined as running on a node - // whose value of the label with key topologyKey matches that of any node on which any of the - // selected pods is running. - // Empty topologyKey is not allowed. - TopologyKey string `json:"topologyKey" protobuf:"bytes,3,opt,name=topologyKey"` -} - -// Node affinity is a group of node affinity scheduling rules. -type NodeAffinity struct { - // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to an update), the system - // will try to eventually evict the pod from its node. - // +optional - // RequiredDuringSchedulingRequiredDuringExecution *NodeSelector `json:"requiredDuringSchedulingRequiredDuringExecution,omitempty"` - - // If the affinity requirements specified by this field are not met at - // scheduling time, the pod will not be scheduled onto the node. - // If the affinity requirements specified by this field cease to be met - // at some point during pod execution (e.g. due to an update), the system - // may or may not try to eventually evict the pod from its node. - // +optional - RequiredDuringSchedulingIgnoredDuringExecution *NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,1,opt,name=requiredDuringSchedulingIgnoredDuringExecution"` - // The scheduler will prefer to schedule pods to nodes that satisfy - // the affinity expressions specified by this field, but it may choose - // a node that violates one or more of the expressions. The node that is - // most preferred is the one with the greatest sum of weights, i.e. - // for each node that meets all of the scheduling requirements (resource - // request, requiredDuringScheduling affinity expressions, etc.), - // compute a sum by iterating through the elements of this field and adding - // "weight" to the sum if the node matches the corresponding matchExpressions; the - // node(s) with the highest sum are the most preferred. - // +optional - PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty" protobuf:"bytes,2,rep,name=preferredDuringSchedulingIgnoredDuringExecution"` -} - -// An empty preferred scheduling term matches all objects with implicit weight 0 -// (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). -type PreferredSchedulingTerm struct { - // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - Weight int32 `json:"weight" protobuf:"varint,1,opt,name=weight"` - // A node selector term, associated with the corresponding weight. - Preference NodeSelectorTerm `json:"preference" protobuf:"bytes,2,opt,name=preference"` -} - -// The node this Taint is attached to has the "effect" on -// any pod that does not tolerate the Taint. -type Taint struct { - // Required. The taint key to be applied to a node. - Key string `json:"key" protobuf:"bytes,1,opt,name=key"` - // Required. The taint value corresponding to the taint key. - // +optional - Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` - // Required. The effect of the taint on pods - // that do not tolerate the taint. - // Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - Effect TaintEffect `json:"effect" protobuf:"bytes,3,opt,name=effect,casttype=TaintEffect"` - // TimeAdded represents the time at which the taint was added. - // It is only written for NoExecute taints. - // +optional - TimeAdded *metav1.Time `json:"timeAdded,omitempty" protobuf:"bytes,4,opt,name=timeAdded"` -} - -type TaintEffect string - -const ( - // Do not allow new pods to schedule onto the node unless they tolerate the taint, - // but allow all pods submitted to Kubelet without going through the scheduler - // to start, and allow all already-running pods to continue running. - // Enforced by the scheduler. - TaintEffectNoSchedule TaintEffect = "NoSchedule" - // Like TaintEffectNoSchedule, but the scheduler tries not to schedule - // new pods onto the node, rather than prohibiting new pods from scheduling - // onto the node entirely. Enforced by the scheduler. - TaintEffectPreferNoSchedule TaintEffect = "PreferNoSchedule" - // NOT YET IMPLEMENTED. TODO: Uncomment field once it is implemented. - // Like TaintEffectNoSchedule, but additionally do not allow pods submitted to - // Kubelet without going through the scheduler to start. - // Enforced by Kubelet and the scheduler. - // TaintEffectNoScheduleNoAdmit TaintEffect = "NoScheduleNoAdmit" - - // Evict any already-running pods that do not tolerate the taint. - // Currently enforced by NodeController. - TaintEffectNoExecute TaintEffect = "NoExecute" -) - -// The pod this Toleration is attached to tolerates any taint that matches -// the triple using the matching operator . -type Toleration struct { - // Key is the taint key that the toleration applies to. Empty means match all taint keys. - // If the key is empty, operator must be Exists; this combination means to match all values and all keys. - // +optional - Key string `json:"key,omitempty" protobuf:"bytes,1,opt,name=key"` - // Operator represents a key's relationship to the value. - // Valid operators are Exists and Equal. Defaults to Equal. - // Exists is equivalent to wildcard for value, so that a pod can - // tolerate all taints of a particular category. - // +optional - Operator TolerationOperator `json:"operator,omitempty" protobuf:"bytes,2,opt,name=operator,casttype=TolerationOperator"` - // Value is the taint value the toleration matches to. - // If the operator is Exists, the value should be empty, otherwise just a regular string. - // +optional - Value string `json:"value,omitempty" protobuf:"bytes,3,opt,name=value"` - // Effect indicates the taint effect to match. Empty means match all taint effects. - // When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - // +optional - Effect TaintEffect `json:"effect,omitempty" protobuf:"bytes,4,opt,name=effect,casttype=TaintEffect"` - // TolerationSeconds represents the period of time the toleration (which must be - // of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - // it is not set, which means tolerate the taint forever (do not evict). Zero and - // negative values will be treated as 0 (evict immediately) by the system. - // +optional - TolerationSeconds *int64 `json:"tolerationSeconds,omitempty" protobuf:"varint,5,opt,name=tolerationSeconds"` -} - -// A toleration operator is the set of operators that can be used in a toleration. -type TolerationOperator string - -const ( - TolerationOpExists TolerationOperator = "Exists" - TolerationOpEqual TolerationOperator = "Equal" -) - -// PodReadinessGate contains the reference to a pod condition -type PodReadinessGate struct { - // ConditionType refers to a condition in the pod's condition list with matching type. - ConditionType PodConditionType `json:"conditionType" protobuf:"bytes,1,opt,name=conditionType,casttype=PodConditionType"` -} - -// PodSpec is a description of a pod. -type PodSpec struct { - // List of volumes that can be mounted by containers belonging to the pod. - // More info: https://kubernetes.io/docs/concepts/storage/volumes - // +optional - // +patchMergeKey=name - // +patchStrategy=merge,retainKeys - Volumes []Volume `json:"volumes,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"` - // List of initialization containers belonging to the pod. - // Init containers are executed in order prior to containers being started. If any - // init container fails, the pod is considered to have failed and is handled according - // to its restartPolicy. The name for an init container or normal container must be - // unique among all containers. - // Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. - // The resourceRequirements of an init container are taken into account during scheduling - // by finding the highest request/limit for each resource type, and then using the max of - // of that value or the sum of the normal containers. Limits are applied to init containers - // in a similar fashion. - // Init containers cannot currently be added or removed. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - // +patchMergeKey=name - // +patchStrategy=merge - InitContainers []Container `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,20,rep,name=initContainers"` - // List of containers belonging to the pod. - // Containers cannot currently be added or removed. - // There must be at least one container in a Pod. - // Cannot be updated. - // +patchMergeKey=name - // +patchStrategy=merge - Containers []Container `json:"containers" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=containers"` - // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing - // pod to perform user-initiated actions such as debugging. This list cannot be specified when - // creating a pod, and it cannot be modified by updating the pod spec. In order to add an - // ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. - // This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - EphemeralContainers []EphemeralContainer `json:"ephemeralContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,34,rep,name=ephemeralContainers"` - // Restart policy for all containers within the pod. - // One of Always, OnFailure, Never. - // Default to Always. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - // +optional - RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,3,opt,name=restartPolicy,casttype=RestartPolicy"` - // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. - // Value must be non-negative integer. The value zero indicates delete immediately. - // If this value is nil, the default grace period will be used instead. - // The grace period is the duration in seconds after the processes running in the pod are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // Defaults to 30 seconds. - // +optional - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,4,opt,name=terminationGracePeriodSeconds"` - // Optional duration in seconds the pod may be active on the node relative to - // StartTime before the system will actively try to mark it failed and kill associated containers. - // Value must be a positive integer. - // +optional - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,5,opt,name=activeDeadlineSeconds"` - // Set DNS policy for the pod. - // Defaults to "ClusterFirst". - // Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. - // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. - // To have DNS options set along with hostNetwork, you have to specify DNS policy - // explicitly to 'ClusterFirstWithHostNet'. - // +optional - DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"` - // NodeSelector is a selector which must be true for the pod to fit on a node. - // Selector which must match a node's labels for the pod to be scheduled on that node. - // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` - - // ServiceAccountName is the name of the ServiceAccount to use to run this pod. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - // +optional - ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"` - // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - // Deprecated: Use serviceAccountName instead. - // +k8s:conversion-gen=false - // +optional - DeprecatedServiceAccount string `json:"serviceAccount,omitempty" protobuf:"bytes,9,opt,name=serviceAccount"` - // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - // +optional - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,21,opt,name=automountServiceAccountToken"` - - // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - // the scheduler simply schedules this pod onto that node, assuming that it fits resource - // requirements. - // +optional - NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` - // Host networking requested for this pod. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. - // Default to false. - // +k8s:conversion-gen=false - // +optional - HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,11,opt,name=hostNetwork"` - // Use the host's pid namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - HostPID bool `json:"hostPID,omitempty" protobuf:"varint,12,opt,name=hostPID"` - // Use the host's ipc namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"` - // Share a single process namespace between all of the containers in a pod. - // When this is set containers will be able to view and signal processes from other containers - // in the same pod, and the first process in each container will not be assigned PID 1. - // HostPID and ShareProcessNamespace cannot both be set. - // Optional: Default to false. - // This field is beta-level and may be disabled with the PodShareProcessNamespace feature. - // +k8s:conversion-gen=false - // +optional - ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty" protobuf:"varint,27,opt,name=shareProcessNamespace"` - // SecurityContext holds pod-level security attributes and common container settings. - // Optional: Defaults to empty. See type description for default values of each field. - // +optional - SecurityContext *PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,14,opt,name=securityContext"` - // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. - // If specified, these secrets will be passed to individual puller implementations for them to use. For example, - // in the case of docker, only DockerConfig type secrets are honored. - // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` - // Specifies the hostname of the Pod - // If not specified, the pod's hostname will be set to a system-defined value. - // +optional - Hostname string `json:"hostname,omitempty" protobuf:"bytes,16,opt,name=hostname"` - // If specified, the fully qualified Pod hostname will be "...svc.". - // If not specified, the pod will not have a domainname at all. - // +optional - Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"` - // If specified, the pod's scheduling constraints - // +optional - Affinity *Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` - // If specified, the pod will be dispatched by specified scheduler. - // If not specified, the pod will be dispatched by default scheduler. - // +optional - SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,19,opt,name=schedulerName"` - // If specified, the pod's tolerations. - // +optional - Tolerations []Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` - // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts - // file if specified. This is only valid for non-hostNetwork pods. - // +optional - // +patchMergeKey=ip - // +patchStrategy=merge - HostAliases []HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"ip" protobuf:"bytes,23,rep,name=hostAliases"` - // If specified, indicates the pod's priority. "system-node-critical" and - // "system-cluster-critical" are two special keywords which indicate the - // highest priorities with the former being the highest priority. Any other - // name must be defined by creating a PriorityClass object with that name. - // If not specified, the pod priority will be default or zero if there is no - // default. - // +optional - PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,24,opt,name=priorityClassName"` - // The priority value. Various system components use this field to find the - // priority of the pod. When Priority Admission Controller is enabled, it - // prevents users from setting this field. The admission controller populates - // this field from PriorityClassName. - // The higher the value, the higher the priority. - // +optional - Priority *int32 `json:"priority,omitempty" protobuf:"bytes,25,opt,name=priority"` - // Specifies the DNS parameters of a pod. - // Parameters specified here will be merged to the generated DNS - // configuration based on DNSPolicy. - // +optional - DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,26,opt,name=dnsConfig"` - // If specified, all readiness gates will be evaluated for pod readiness. - // A pod is ready when all its containers are ready AND - // all conditions specified in the readiness gates have status equal to "True" - // More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - // +optional - ReadinessGates []PodReadinessGate `json:"readinessGates,omitempty" protobuf:"bytes,28,opt,name=readinessGates"` - // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used - // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. - // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an - // empty definition that uses the default runtime handler. - // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - // This is a beta feature as of Kubernetes v1.14. - // +optional - RuntimeClassName *string `json:"runtimeClassName,omitempty" protobuf:"bytes,29,opt,name=runtimeClassName"` - // EnableServiceLinks indicates whether information about services should be injected into pod's - // environment variables, matching the syntax of Docker links. - // Optional: Defaults to true. - // +optional - EnableServiceLinks *bool `json:"enableServiceLinks,omitempty" protobuf:"varint,30,opt,name=enableServiceLinks"` - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - PreemptionPolicy *PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,31,opt,name=preemptionPolicy"` - // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. - // This field will be autopopulated at admission time by the RuntimeClass admission controller. If - // the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. - // The RuntimeClass admission controller will reject Pod create requests which have the overhead already - // set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value - // defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. - // More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md - // This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - // +optional - Overhead ResourceList `json:"overhead,omitempty" protobuf:"bytes,32,opt,name=overhead"` - // TopologySpreadConstraints describes how a group of pods ought to spread across topology - // domains. Scheduler will schedule pods in a way which abides by the constraints. - // This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread - // feature. - // All topologySpreadConstraints are ANDed. - // +optional - // +patchMergeKey=topologyKey - // +patchStrategy=merge - // +listType=map - // +listMapKey=topologyKey - // +listMapKey=whenUnsatisfiable - TopologySpreadConstraints []TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty" patchStrategy:"merge" patchMergeKey:"topologyKey" protobuf:"bytes,33,opt,name=topologySpreadConstraints"` -} - -type UnsatisfiableConstraintAction string - -const ( - // DoNotSchedule instructs the scheduler not to schedule the pod - // when constraints are not satisfied. - DoNotSchedule UnsatisfiableConstraintAction = "DoNotSchedule" - // ScheduleAnyway instructs the scheduler to schedule the pod - // even if constraints are not satisfied. - ScheduleAnyway UnsatisfiableConstraintAction = "ScheduleAnyway" -) - -// TopologySpreadConstraint specifies how to spread matching pods among the given topology. -type TopologySpreadConstraint struct { - // MaxSkew describes the degree to which pods may be unevenly distributed. - // It's the maximum permitted difference between the number of matching pods in - // any two topology domains of a given topology type. - // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - // labelSelector spread as 1/1/0: - // +-------+-------+-------+ - // | zone1 | zone2 | zone3 | - // +-------+-------+-------+ - // | P | P | | - // +-------+-------+-------+ - // - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; - // scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) - // violate MaxSkew(1). - // - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - // It's a required field. Default value is 1 and 0 is not allowed. - MaxSkew int32 `json:"maxSkew" protobuf:"varint,1,opt,name=maxSkew"` - // TopologyKey is the key of node labels. Nodes that have a label with this key - // and identical values are considered to be in the same topology. - // We consider each as a "bucket", and try to put balanced number - // of pods into each bucket. - // It's a required field. - TopologyKey string `json:"topologyKey" protobuf:"bytes,2,opt,name=topologyKey"` - // WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - // the spread constraint. - // - DoNotSchedule (default) tells the scheduler not to schedule it - // - ScheduleAnyway tells the scheduler to still schedule it - // It's considered as "Unsatisfiable" if and only if placing incoming pod on any - // topology violates "MaxSkew". - // For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - // labelSelector spread as 3/1/1: - // +-------+-------+-------+ - // | zone1 | zone2 | zone3 | - // +-------+-------+-------+ - // | P P P | P | P | - // +-------+-------+-------+ - // If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - // to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - // MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - // won't make it *more* imbalanced. - // It's a required field. - WhenUnsatisfiable UnsatisfiableConstraintAction `json:"whenUnsatisfiable" protobuf:"bytes,3,opt,name=whenUnsatisfiable,casttype=UnsatisfiableConstraintAction"` - // LabelSelector is used to find matching pods. - // Pods that match this label selector are counted to determine the number of pods - // in their corresponding topology domain. - // +optional - LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,4,opt,name=labelSelector"` -} - -const ( - // The default value for enableServiceLinks attribute. - DefaultEnableServiceLinks = true -) - -// HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the -// pod's hosts file. -type HostAlias struct { - // IP address of the host file entry. - IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` - // Hostnames for the above IP address. - Hostnames []string `json:"hostnames,omitempty" protobuf:"bytes,2,rep,name=hostnames"` -} - -// PodSecurityContext holds pod-level security attributes and common container settings. -// Some fields are also present in container.securityContext. Field values of -// container.securityContext take precedence over field values of PodSecurityContext. -type PodSecurityContext struct { - // The SELinux context to be applied to all containers. - // If unspecified, the container runtime will allocate a random SELinux context for each - // container. May also be set in SecurityContext. If set in - // both SecurityContext and PodSecurityContext, the value specified in SecurityContext - // takes precedence for that container. - // +optional - SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,1,opt,name=seLinuxOptions"` - // The Windows specific settings applied to all containers. - // If unspecified, the options within a container's SecurityContext will be used. - // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - WindowsOptions *WindowsSecurityContextOptions `json:"windowsOptions,omitempty" protobuf:"bytes,8,opt,name=windowsOptions"` - // The UID to run the entrypoint of the container process. - // Defaults to user specified in image metadata if unspecified. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence - // for that container. - // +optional - RunAsUser *int64 `json:"runAsUser,omitempty" protobuf:"varint,2,opt,name=runAsUser"` - // The GID to run the entrypoint of the container process. - // Uses runtime default if unset. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence - // for that container. - // +optional - RunAsGroup *int64 `json:"runAsGroup,omitempty" protobuf:"varint,6,opt,name=runAsGroup"` - // Indicates that the container must run as a non-root user. - // If true, the Kubelet will validate the image at runtime to ensure that it - // does not run as UID 0 (root) and fail to start the container if it does. - // If unset or false, no such validation will be performed. - // May also be set in SecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" protobuf:"varint,3,opt,name=runAsNonRoot"` - // A list of groups applied to the first process run in each container, in addition - // to the container's primary GID. If unspecified, no groups will be added to - // any container. - // +optional - SupplementalGroups []int64 `json:"supplementalGroups,omitempty" protobuf:"varint,4,rep,name=supplementalGroups"` - // A special supplemental group that applies to all containers in a pod. - // Some volume types allow the Kubelet to change the ownership of that volume - // to be owned by the pod: - // - // 1. The owning GID will be the FSGroup - // 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) - // 3. The permission bits are OR'd with rw-rw---- - // - // If unset, the Kubelet will not modify the ownership and permissions of any volume. - // +optional - FSGroup *int64 `json:"fsGroup,omitempty" protobuf:"varint,5,opt,name=fsGroup"` - // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported - // sysctls (by the container runtime) might fail to launch. - // +optional - Sysctls []Sysctl `json:"sysctls,omitempty" protobuf:"bytes,7,rep,name=sysctls"` -} - -// PodQOSClass defines the supported qos classes of Pods. -type PodQOSClass string - -const ( - // PodQOSGuaranteed is the Guaranteed qos class. - PodQOSGuaranteed PodQOSClass = "Guaranteed" - // PodQOSBurstable is the Burstable qos class. - PodQOSBurstable PodQOSClass = "Burstable" - // PodQOSBestEffort is the BestEffort qos class. - PodQOSBestEffort PodQOSClass = "BestEffort" -) - -// PodDNSConfig defines the DNS parameters of a pod in addition to -// those generated from DNSPolicy. -type PodDNSConfig struct { - // A list of DNS name server IP addresses. - // This will be appended to the base nameservers generated from DNSPolicy. - // Duplicated nameservers will be removed. - // +optional - Nameservers []string `json:"nameservers,omitempty" protobuf:"bytes,1,rep,name=nameservers"` - // A list of DNS search domains for host-name lookup. - // This will be appended to the base search paths generated from DNSPolicy. - // Duplicated search paths will be removed. - // +optional - Searches []string `json:"searches,omitempty" protobuf:"bytes,2,rep,name=searches"` - // A list of DNS resolver options. - // This will be merged with the base options generated from DNSPolicy. - // Duplicated entries will be removed. Resolution options given in Options - // will override those that appear in the base DNSPolicy. - // +optional - Options []PodDNSConfigOption `json:"options,omitempty" protobuf:"bytes,3,rep,name=options"` -} - -// PodDNSConfigOption defines DNS resolver options of a pod. -type PodDNSConfigOption struct { - // Required. - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` - // +optional - Value *string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` -} - -// IP address information for entries in the (plural) PodIPs field. -// Each entry includes: -// IP: An IP address allocated to the pod. Routable at least within the cluster. -type PodIP struct { - // ip is an IP address (IPv4 or IPv6) assigned to the pod - IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` -} - -// EphemeralContainerCommon is a copy of all fields in Container to be inlined in -// EphemeralContainer. This separate type allows easy conversion from EphemeralContainer -// to Container and allows separate documentation for the fields of EphemeralContainer. -// When a new field is added to Container it must be added here as well. -type EphemeralContainerCommon struct { - // Name of the ephemeral container specified as a DNS_LABEL. - // This name must be unique among all containers, init containers and ephemeral containers. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // Docker image name. - // More info: https://kubernetes.io/docs/concepts/containers/images - Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"` - // Entrypoint array. Not executed within a shell. - // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - Command []string `json:"command,omitempty" protobuf:"bytes,3,rep,name=command"` - // Arguments to the entrypoint. - // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // Cannot be updated. - // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - // +optional - Args []string `json:"args,omitempty" protobuf:"bytes,4,rep,name=args"` - // Container's working directory. - // If not specified, the container runtime's default will be used, which - // might be configured in the container image. - // Cannot be updated. - // +optional - WorkingDir string `json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"` - // Ports are not allowed for ephemeral containers. - Ports []ContainerPort `json:"ports,omitempty" protobuf:"bytes,6,rep,name=ports"` - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - EnvFrom []EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,19,rep,name=envFrom"` - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Env []EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"` - // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources - // already allocated to the pod. - // +optional - Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"` - // Pod volumes to mount into the container's filesystem. - // Cannot be updated. - // +optional - // +patchMergeKey=mountPath - // +patchStrategy=merge - VolumeMounts []VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,9,rep,name=volumeMounts"` - // volumeDevices is the list of block devices to be used by the container. - // This is a beta feature. - // +patchMergeKey=devicePath - // +patchStrategy=merge - // +optional - VolumeDevices []VolumeDevice `json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,21,rep,name=volumeDevices"` - // Probes are not allowed for ephemeral containers. - // +optional - LivenessProbe *Probe `json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"` - // Probes are not allowed for ephemeral containers. - // +optional - ReadinessProbe *Probe `json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"` - // Probes are not allowed for ephemeral containers. - // +optional - StartupProbe *Probe `json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"` - // Lifecycle is not allowed for ephemeral containers. - // +optional - Lifecycle *Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"` - // Optional: Path at which the file to which the container's termination message - // will be written is mounted into the container's filesystem. - // Message written is intended to be brief final status, such as an assertion failure message. - // Will be truncated by the node if greater than 4096 bytes. The total message length across - // all containers will be limited to 12kb. - // Defaults to /dev/termination-log. - // Cannot be updated. - // +optional - TerminationMessagePath string `json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"` - // Indicate how the termination message should be populated. File will use the contents of - // terminationMessagePath to populate the container status message on both success and failure. - // FallbackToLogsOnError will use the last chunk of container log output if the termination - // message file is empty and the container exited with an error. - // The log output is limited to 2048 bytes or 80 lines, whichever is smaller. - // Defaults to File. - // Cannot be updated. - // +optional - TerminationMessagePolicy TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty" protobuf:"bytes,20,opt,name=terminationMessagePolicy,casttype=TerminationMessagePolicy"` - // Image pull policy. - // One of Always, Never, IfNotPresent. - // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - // Cannot be updated. - // More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // +optional - ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"` - // SecurityContext is not allowed for ephemeral containers. - // +optional - SecurityContext *SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"` - - // Variables for interactive containers, these have very specialized use-cases (e.g. debugging) - // and shouldn't be used for general purpose containers. - - // Whether this container should allocate a buffer for stdin in the container runtime. If this - // is not set, reads from stdin in the container will always result in EOF. - // Default is false. - // +optional - Stdin bool `json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"` - // Whether the container runtime should close the stdin channel after it has been opened by - // a single attach. When stdin is true the stdin stream will remain open across multiple attach - // sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the - // first client attaches to stdin, and then remains open and accepts data until the client disconnects, - // at which time stdin is closed and remains closed until the container is restarted. If this - // flag is false, a container processes that reads from stdin will never receive an EOF. - // Default is false - // +optional - StdinOnce bool `json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"` - // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. - // Default is false. - // +optional - TTY bool `json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"` -} - -// EphemeralContainerCommon converts to Container. All fields must be kept in sync between -// these two types. -var _ = Container(EphemeralContainerCommon{}) - -// An EphemeralContainer is a container that may be added temporarily to an existing pod for -// user-initiated activities such as debugging. Ephemeral containers have no resource or -// scheduling guarantees, and they will not be restarted when they exit or when a pod is -// removed or restarted. If an ephemeral container causes a pod to exceed its resource -// allocation, the pod may be evicted. -// Ephemeral containers may not be added by directly updating the pod spec. They must be added -// via the pod's ephemeralcontainers subresource, and they will appear in the pod spec -// once added. -// This is an alpha feature enabled by the EphemeralContainers feature flag. -type EphemeralContainer struct { - // Ephemeral containers have all of the fields of Container, plus additional fields - // specific to ephemeral containers. Fields in common with Container are in the - // following inlined struct so than an EphemeralContainer may easily be converted - // to a Container. - EphemeralContainerCommon `json:",inline" protobuf:"bytes,1,req"` - - // If set, the name of the container from PodSpec that this ephemeral container targets. - // The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. - // If not set then the ephemeral container is run in whatever namespaces are shared - // for the pod. Note that the container runtime must support this feature. - // +optional - TargetContainerName string `json:"targetContainerName,omitempty" protobuf:"bytes,2,opt,name=targetContainerName"` -} - -// PodStatus represents information about the status of a pod. Status may trail the actual -// state of a system, especially if the node that hosts the pod cannot contact the control -// plane. -type PodStatus struct { - // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. - // The conditions array, the reason and message fields, and the individual container status - // arrays contain more detail about the pod's status. - // There are five possible phase values: - // - // Pending: The pod has been accepted by the Kubernetes system, but one or more of the - // container images has not been created. This includes time before being scheduled as - // well as time spent downloading images over the network, which could take a while. - // Running: The pod has been bound to a node, and all of the containers have been created. - // At least one container is still running, or is in the process of starting or restarting. - // Succeeded: All containers in the pod have terminated in success, and will not be restarted. - // Failed: All containers in the pod have terminated, and at least one container has - // terminated in failure. The container either exited with non-zero status or was terminated - // by the system. - // Unknown: For some reason the state of the pod could not be obtained, typically due to an - // error in communicating with the host of the pod. - // - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - // +optional - Phase PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` - // Current service state of pod. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` - // A human readable message indicating details about why the pod is in this condition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - // A brief CamelCase message indicating details about why the pod is in this state. - // e.g. 'Evicted' - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be - // scheduled right away as preemption victims receive their graceful termination periods. - // This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide - // to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to - // give the resources on this node to a higher priority pod that is created after preemption. - // As a result, this field may be different than PodSpec.nodeName when the pod is - // scheduled. - // +optional - NominatedNodeName string `json:"nominatedNodeName,omitempty" protobuf:"bytes,11,opt,name=nominatedNodeName"` - - // IP address of the host to which the pod is assigned. Empty if not yet scheduled. - // +optional - HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` - // IP address allocated to the pod. Routable at least within the cluster. - // Empty if not yet allocated. - // +optional - PodIP string `json:"podIP,omitempty" protobuf:"bytes,6,opt,name=podIP"` - - // podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must - // match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list - // is empty if no IPs have been allocated yet. - // +optional - // +patchStrategy=merge - // +patchMergeKey=ip - PodIPs []PodIP `json:"podIPs,omitempty" protobuf:"bytes,12,rep,name=podIPs" patchStrategy:"merge" patchMergeKey:"ip"` - - // RFC 3339 date and time at which the object was acknowledged by the Kubelet. - // This is before the Kubelet pulled the container image(s) for the pod. - // +optional - StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,7,opt,name=startTime"` - - // The list has one entry per init container in the manifest. The most recent successful - // init container will have ready = true, the most recently started container will have - // startTime set. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - InitContainerStatuses []ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` - - // The list has one entry per container in the manifest. Each entry is currently the output - // of `docker inspect`. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - // +optional - ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` - // The Quality of Service (QOS) classification assigned to the pod based on resource requirements - // See PodQOSClass type for available QOS classes - // More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - // +optional - QOSClass PodQOSClass `json:"qosClass,omitempty" protobuf:"bytes,9,rep,name=qosClass"` - // Status for any ephemeral containers that have run in this pod. - // This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. - // +optional - EphemeralContainerStatuses []ContainerStatus `json:"ephemeralContainerStatuses,omitempty" protobuf:"bytes,13,rep,name=ephemeralContainerStatuses"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded -type PodStatusResult struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // Most recently observed status of the pod. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status PodStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` -} - -// +genclient -// +genclient:method=GetEphemeralContainers,verb=get,subresource=ephemeralcontainers,result=EphemeralContainers -// +genclient:method=UpdateEphemeralContainers,verb=update,subresource=ephemeralcontainers,input=EphemeralContainers,result=EphemeralContainers -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Pod is a collection of containers that can run on a host. This resource is created -// by clients and scheduled onto hosts. -type Pod struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the pod. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the pod. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status PodStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodList is a list of Pods. -type PodList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of pods. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - Items []Pod `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// PodTemplateSpec describes the data a pod should have when created from a template -type PodTemplateSpec struct { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the pod. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodTemplate describes a template for creating copies of a predefined pod. -type PodTemplate struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Template defines the pods that will be created from this pod template. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Template PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodTemplateList is a list of PodTemplates. -type PodTemplateList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of pod templates - Items []PodTemplate `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// ReplicationControllerSpec is the specification of a replication controller. -type ReplicationControllerSpec struct { - // 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 - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` - - // Selector is a label query over pods that should match the Replicas count. - // If 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 replication - // controller, if empty defaulted to labels on Pod template. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` - - // TemplateRef is a reference to an object that describes the pod that will be created if - // insufficient replicas are detected. - // Reference to an object that describes the pod that will be created if insufficient replicas are detected. - // +optional - // TemplateRef *ObjectReference `json:"templateRef,omitempty"` - - // Template is the object that describes the pod that will be created if - // insufficient replicas are detected. This takes precedence over a TemplateRef. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - Template *PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` -} - -// ReplicationControllerStatus represents the current status of a replication -// controller. -type ReplicationControllerStatus struct { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // The number of pods that have labels matching the labels of the pod template of the replication controller. - // +optional - FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` - - // The number of ready replicas for this replication controller. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` - - // The number of available replicas (ready for at least minReadySeconds) for this replication controller. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` - - // ObservedGeneration reflects the generation of the most recently observed replication controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` - - // Represents the latest available observations of a replication controller's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []ReplicationControllerCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` -} - -type ReplicationControllerConditionType string - -// These are valid conditions of a replication controller. -const ( - // ReplicationControllerReplicaFailure is added in a replication controller when one of its pods - // fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors, - // etc. or deleted due to kubelet being down or finalizers are failing. - ReplicationControllerReplicaFailure ReplicationControllerConditionType = "ReplicaFailure" -) - -// ReplicationControllerCondition describes the state of a replication controller at a certain point. -type ReplicationControllerCondition struct { - // Type of replication controller condition. - Type ReplicationControllerConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicationControllerConditionType"` - // Status of the condition, one of True, False, Unknown. - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // The last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale,result=sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1.Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ReplicationController represents the configuration of a replication controller. -type ReplicationController struct { - metav1.TypeMeta `json:",inline"` - - // If the Labels of a ReplicationController are empty, they are defaulted to - // be the same as the Pod(s) that the replication controller manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the specification of the desired behavior of the replication controller. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ReplicationControllerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the most recently observed status of the replication controller. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ReplicationControllerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ReplicationControllerList is a collection of replication controllers. -type ReplicationControllerList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of replication controllers. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - Items []ReplicationController `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// Session Affinity Type string -type ServiceAffinity string - -const ( - // ServiceAffinityClientIP is the Client IP based. - ServiceAffinityClientIP ServiceAffinity = "ClientIP" - - // ServiceAffinityNone - no session affinity. - ServiceAffinityNone ServiceAffinity = "None" -) - -const DefaultClientIPServiceAffinitySeconds int32 = 10800 - -// SessionAffinityConfig represents the configurations of session affinity. -type SessionAffinityConfig struct { - // clientIP contains the configurations of Client IP based session affinity. - // +optional - ClientIP *ClientIPConfig `json:"clientIP,omitempty" protobuf:"bytes,1,opt,name=clientIP"` -} - -// ClientIPConfig represents the configurations of Client IP based session affinity. -type ClientIPConfig struct { - // timeoutSeconds specifies the seconds of ClientIP type session sticky time. - // The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". - // Default value is 10800(for 3 hours). - // +optional - TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,1,opt,name=timeoutSeconds"` -} - -// Service Type string describes ingress methods for a service -type ServiceType string - -const ( - // ServiceTypeClusterIP means a service will only be accessible inside the - // cluster, via the cluster IP. - ServiceTypeClusterIP ServiceType = "ClusterIP" - - // ServiceTypeNodePort means a service will be exposed on one port of - // every node, in addition to 'ClusterIP' type. - ServiceTypeNodePort ServiceType = "NodePort" - - // ServiceTypeLoadBalancer means a service will be exposed via an - // external load balancer (if the cloud provider supports it), in addition - // to 'NodePort' type. - ServiceTypeLoadBalancer ServiceType = "LoadBalancer" - - // ServiceTypeExternalName means a service consists of only a reference to - // an external name that kubedns or equivalent will return as a CNAME - // record, with no exposing or proxying of any pods involved. - ServiceTypeExternalName ServiceType = "ExternalName" -) - -// Service External Traffic Policy Type string -type ServiceExternalTrafficPolicyType string - -const ( - // ServiceExternalTrafficPolicyTypeLocal specifies node-local endpoints behavior. - ServiceExternalTrafficPolicyTypeLocal ServiceExternalTrafficPolicyType = "Local" - // ServiceExternalTrafficPolicyTypeCluster specifies node-global (legacy) behavior. - ServiceExternalTrafficPolicyTypeCluster ServiceExternalTrafficPolicyType = "Cluster" -) - -// ServiceStatus represents the current status of a service. -type ServiceStatus struct { - // LoadBalancer contains the current status of the load-balancer, - // if one is present. - // +optional - LoadBalancer LoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` -} - -// LoadBalancerStatus represents the status of a load-balancer. -type LoadBalancerStatus struct { - // Ingress is a list containing ingress points for the load-balancer. - // Traffic intended for the service should be sent to these ingress points. - // +optional - Ingress []LoadBalancerIngress `json:"ingress,omitempty" protobuf:"bytes,1,rep,name=ingress"` -} - -// LoadBalancerIngress represents the status of a load-balancer ingress point: -// traffic intended for the service should be sent to an ingress point. -type LoadBalancerIngress struct { - // IP is set for load-balancer ingress points that are IP based - // (typically GCE or OpenStack load-balancers) - // +optional - IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` - - // Hostname is set for load-balancer ingress points that are DNS based - // (typically AWS load-balancers) - // +optional - Hostname string `json:"hostname,omitempty" protobuf:"bytes,2,opt,name=hostname"` -} - -// IPFamily represents the IP Family (IPv4 or IPv6). This type is used -// to express the family of an IP expressed by a type (i.e. service.Spec.IPFamily) -type IPFamily string - -const ( - // IPv4Protocol indicates that this IP is IPv4 protocol - IPv4Protocol IPFamily = "IPv4" - // IPv6Protocol indicates that this IP is IPv6 protocol - IPv6Protocol IPFamily = "IPv6" -) - -// ServiceSpec describes the attributes that a user creates on a service. -type ServiceSpec struct { - // The list of ports that are exposed by this service. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +patchMergeKey=port - // +patchStrategy=merge - // +listType=map - // +listMapKey=port - // +listMapKey=protocol - Ports []ServicePort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"port" protobuf:"bytes,1,rep,name=ports"` - - // Route service traffic to pods with label keys and values matching this - // selector. If empty or not present, the service is assumed to have an - // external process managing its endpoints, which Kubernetes will not - // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. - // Ignored if type is ExternalName. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/ - // +optional - Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` - - // clusterIP is the IP address of the service and is usually assigned - // randomly by the master. If an address is specified manually and is not in - // use by others, it will be allocated to the service; otherwise, creation - // of the service will fail. This field can not be changed through updates. - // Valid values are "None", empty string (""), or a valid IP address. "None" - // can be specified for headless services when proxying is not required. - // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if - // type is ExternalName. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +optional - ClusterIP string `json:"clusterIP,omitempty" protobuf:"bytes,3,opt,name=clusterIP"` - - // type determines how the Service is exposed. Defaults to ClusterIP. Valid - // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. - // "ExternalName" maps to the specified externalName. - // "ClusterIP" allocates a cluster-internal IP address for load-balancing to - // endpoints. Endpoints are determined by the selector or if that is not - // specified, by manual construction of an Endpoints object. If clusterIP is - // "None", no virtual IP is allocated and the endpoints are published as a - // set of endpoints rather than a stable IP. - // "NodePort" builds on ClusterIP and allocates a port on every node which - // routes to the clusterIP. - // "LoadBalancer" builds on NodePort and creates an - // external load-balancer (if supported in the current cloud) which routes - // to the clusterIP. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - // +optional - Type ServiceType `json:"type,omitempty" protobuf:"bytes,4,opt,name=type,casttype=ServiceType"` - - // externalIPs is a list of IP addresses for which nodes in the cluster - // will also accept traffic for this service. These IPs are not managed by - // Kubernetes. The user is responsible for ensuring that traffic arrives - // at a node with this IP. A common example is external load-balancers - // that are not part of the Kubernetes system. - // +optional - ExternalIPs []string `json:"externalIPs,omitempty" protobuf:"bytes,5,rep,name=externalIPs"` - - // Supports "ClientIP" and "None". Used to maintain session affinity. - // Enable client IP based session affinity. - // Must be ClientIP or None. - // Defaults to None. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // +optional - SessionAffinity ServiceAffinity `json:"sessionAffinity,omitempty" protobuf:"bytes,7,opt,name=sessionAffinity,casttype=ServiceAffinity"` - - // Only applies to Service Type: LoadBalancer - // LoadBalancer will get created with the IP specified in this field. - // This feature depends on whether the underlying cloud-provider supports specifying - // the loadBalancerIP when a load balancer is created. - // This field will be ignored if the cloud-provider does not support the feature. - // +optional - LoadBalancerIP string `json:"loadBalancerIP,omitempty" protobuf:"bytes,8,opt,name=loadBalancerIP"` - - // If specified and supported by the platform, this will restrict traffic through the cloud-provider - // load-balancer will be restricted to the specified client IPs. This field will be ignored if the - // cloud-provider does not support the feature." - // More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ - // +optional - LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty" protobuf:"bytes,9,opt,name=loadBalancerSourceRanges"` - - // externalName is the external reference that kubedns or equivalent will - // return as a CNAME record for this service. No proxying will be involved. - // Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) - // and requires Type to be ExternalName. - // +optional - ExternalName string `json:"externalName,omitempty" protobuf:"bytes,10,opt,name=externalName"` - - // externalTrafficPolicy denotes if this Service desires to route external - // traffic to node-local or cluster-wide endpoints. "Local" preserves the - // client source IP and avoids a second hop for LoadBalancer and Nodeport - // type services, but risks potentially imbalanced traffic spreading. - // "Cluster" obscures the client source IP and may cause a second hop to - // another node, but should have good overall load-spreading. - // +optional - ExternalTrafficPolicy ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty" protobuf:"bytes,11,opt,name=externalTrafficPolicy"` - - // healthCheckNodePort specifies the healthcheck nodePort for the service. - // If not specified, HealthCheckNodePort is created by the service api - // backend with the allocated nodePort. Will use user-specified nodePort value - // if specified by the client. Only effects when Type is set to LoadBalancer - // and ExternalTrafficPolicy is set to Local. - // +optional - HealthCheckNodePort int32 `json:"healthCheckNodePort,omitempty" protobuf:"bytes,12,opt,name=healthCheckNodePort"` - - // publishNotReadyAddresses, when set to true, indicates that DNS implementations - // must publish the notReadyAddresses of subsets for the Endpoints associated with - // the Service. The default value is false. - // The primary use case for setting this field is to use a StatefulSet's Headless Service - // to propagate SRV records for its Pods without respect to their readiness for purpose - // of peer discovery. - // +optional - PublishNotReadyAddresses bool `json:"publishNotReadyAddresses,omitempty" protobuf:"varint,13,opt,name=publishNotReadyAddresses"` - // sessionAffinityConfig contains the configurations of session affinity. - // +optional - SessionAffinityConfig *SessionAffinityConfig `json:"sessionAffinityConfig,omitempty" protobuf:"bytes,14,opt,name=sessionAffinityConfig"` - - // ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. - // IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is - // available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. - // Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which - // allocate external load-balancers should use the same IP family. Endpoints for this Service will be of - // this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the - // cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. - // +optional - IPFamily *IPFamily `json:"ipFamily,omitempty" protobuf:"bytes,15,opt,name=ipFamily,Configcasttype=IPFamily"` -} - -// ServicePort contains information on service's port. -type ServicePort struct { - // The name of this port within the service. This must be a DNS_LABEL. - // All ports within a ServiceSpec must have unique names. When considering - // the endpoints for a Service, this must match the 'name' field in the - // EndpointPort. - // Optional if only one ServicePort is defined on this service. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` - - // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". - // Default is TCP. - // +optional - Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"` - - // The port that will be exposed by this service. - Port int32 `json:"port" protobuf:"varint,3,opt,name=port"` - - // Number or name of the port to access on the pods targeted by the service. - // Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - // If this is a string, it will be looked up as a named port in the - // target Pod's container ports. If this is not specified, the value - // of the 'port' field is used (an identity map). - // This field is ignored for services with clusterIP=None, and should be - // omitted or set equal to the 'port' field. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - // +optional - TargetPort intstr.IntOrString `json:"targetPort,omitempty" protobuf:"bytes,4,opt,name=targetPort"` - - // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. - // Usually assigned by the system. If specified, it will be allocated to the service - // if unused or else creation of the service will fail. - // Default is to auto-allocate a port if the ServiceType of this Service requires one. - // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - // +optional - NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,5,opt,name=nodePort"` -} - -// +genclient -// +genclient:skipVerbs=deleteCollection -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Service is a named abstraction of software service (for example, mysql) consisting of local port -// (for example 3306) that the proxy listens on, and the selector that determines which pods -// will answer requests sent through the proxy. -type Service struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the behavior of a service. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ServiceSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the service. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ServiceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -const ( - // ClusterIPNone - do not assign a cluster IP - // no proxying required and no environment variables should be created for pods - ClusterIPNone = "None" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ServiceList holds a list of services. -type ServiceList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of services - Items []Service `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ServiceAccount binds together: -// * a name, understood by users, and perhaps by peripheral systems, for an identity -// * a principal that can be authenticated and authorized -// * a set of secrets -type ServiceAccount struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. - // More info: https://kubernetes.io/docs/concepts/configuration/secret - // +optional - // +patchMergeKey=name - // +patchStrategy=merge - Secrets []ObjectReference `json:"secrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=secrets"` - - // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images - // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets - // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. - // More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - // +optional - ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,3,rep,name=imagePullSecrets"` - - // AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. - // Can be overridden at the pod level. - // +optional - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,4,opt,name=automountServiceAccountToken"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ServiceAccountList is a list of ServiceAccount objects -type ServiceAccountList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of ServiceAccounts. - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - Items []ServiceAccount `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Endpoints is a collection of endpoints that implement the actual service. Example: -// Name: "mysvc", -// Subsets: [ -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// }, -// { -// Addresses: [{"ip": "10.10.3.3"}], -// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] -// }, -// ] -type Endpoints struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The set of all endpoints is the union of all subsets. Addresses are placed into - // subsets according to the IPs they share. A single address with multiple ports, - // some of which are ready and some of which are not (because they come from - // different containers) will result in the address being displayed in different - // subsets for the different ports. No address will appear in both Addresses and - // NotReadyAddresses in the same subset. - // Sets of addresses and ports that comprise a service. - // +optional - Subsets []EndpointSubset `json:"subsets,omitempty" protobuf:"bytes,2,rep,name=subsets"` -} - -// EndpointSubset is a group of addresses with a common set of ports. The -// expanded set of endpoints is the Cartesian product of Addresses x Ports. -// For example, given: -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// } -// The resulting set of endpoints can be viewed as: -// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], -// b: [ 10.10.1.1:309, 10.10.2.2:309 ] -type EndpointSubset struct { - // IP addresses which offer the related ports that are marked as ready. These endpoints - // should be considered safe for load balancers and clients to utilize. - // +optional - Addresses []EndpointAddress `json:"addresses,omitempty" protobuf:"bytes,1,rep,name=addresses"` - // IP addresses which offer the related ports but are not currently marked as ready - // because they have not yet finished starting, have recently failed a readiness check, - // or have recently failed a liveness check. - // +optional - NotReadyAddresses []EndpointAddress `json:"notReadyAddresses,omitempty" protobuf:"bytes,2,rep,name=notReadyAddresses"` - // Port numbers available on the related IP addresses. - // +optional - Ports []EndpointPort `json:"ports,omitempty" protobuf:"bytes,3,rep,name=ports"` -} - -// EndpointAddress is a tuple that describes single IP address. -type EndpointAddress struct { - // The IP of this endpoint. - // May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), - // or link-local multicast ((224.0.0.0/24). - // IPv6 is also accepted but not fully supported on all platforms. Also, certain - // kubernetes components, like kube-proxy, are not IPv6 ready. - // TODO: This should allow hostname or IP, See #4447. - IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"` - // The Hostname of this endpoint - // +optional - Hostname string `json:"hostname,omitempty" protobuf:"bytes,3,opt,name=hostname"` - // Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - // +optional - NodeName *string `json:"nodeName,omitempty" protobuf:"bytes,4,opt,name=nodeName"` - // Reference to object providing the endpoint. - // +optional - TargetRef *ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,2,opt,name=targetRef"` -} - -// EndpointPort is a tuple that describes a single port. -type EndpointPort struct { - // The name of this port. This must match the 'name' field in the - // corresponding ServicePort. - // Must be a DNS_LABEL. - // Optional only if one port is defined. - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` - - // The port number of the endpoint. - Port int32 `json:"port" protobuf:"varint,2,opt,name=port"` - - // The IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - // +optional - Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,3,opt,name=protocol,casttype=Protocol"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// EndpointsList is a list of endpoints. -type EndpointsList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of endpoints. - Items []Endpoints `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// NodeSpec describes the attributes that a node is created with. -type NodeSpec struct { - // PodCIDR represents the pod IP range assigned to the node. - // +optional - PodCIDR string `json:"podCIDR,omitempty" protobuf:"bytes,1,opt,name=podCIDR"` - - // podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this - // field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for - // each of IPv4 and IPv6. - // +optional - // +patchStrategy=merge - PodCIDRs []string `json:"podCIDRs,omitempty" protobuf:"bytes,7,opt,name=podCIDRs" patchStrategy:"merge"` - - // ID of the node assigned by the cloud provider in the format: :// - // +optional - ProviderID string `json:"providerID,omitempty" protobuf:"bytes,3,opt,name=providerID"` - // Unschedulable controls node schedulability of new pods. By default, node is schedulable. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - // +optional - Unschedulable bool `json:"unschedulable,omitempty" protobuf:"varint,4,opt,name=unschedulable"` - // If specified, the node's taints. - // +optional - Taints []Taint `json:"taints,omitempty" protobuf:"bytes,5,opt,name=taints"` - // If specified, the source to get node configuration from - // The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field - // +optional - ConfigSource *NodeConfigSource `json:"configSource,omitempty" protobuf:"bytes,6,opt,name=configSource"` - - // Deprecated. Not all kubelets will set this field. Remove field after 1.13. - // see: https://issues.k8s.io/61966 - // +optional - DoNotUse_ExternalID string `json:"externalID,omitempty" protobuf:"bytes,2,opt,name=externalID"` -} - -// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. -type NodeConfigSource struct { - // For historical context, regarding the below kind, apiVersion, and configMapRef deprecation tags: - // 1. kind/apiVersion were used by the kubelet to persist this struct to disk (they had no protobuf tags) - // 2. configMapRef and proto tag 1 were used by the API to refer to a configmap, - // but used a generic ObjectReference type that didn't really have the fields we needed - // All uses/persistence of the NodeConfigSource struct prior to 1.11 were gated by alpha feature flags, - // so there was no persisted data for these fields that needed to be migrated/handled. - - // +k8s:deprecated=kind - // +k8s:deprecated=apiVersion - // +k8s:deprecated=configMapRef,protobuf=1 - - // ConfigMap is a reference to a Node's ConfigMap - ConfigMap *ConfigMapNodeConfigSource `json:"configMap,omitempty" protobuf:"bytes,2,opt,name=configMap"` -} - -// ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. -type ConfigMapNodeConfigSource struct { - // Namespace is the metadata.namespace of the referenced ConfigMap. - // This field is required in all cases. - Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` - - // Name is the metadata.name of the referenced ConfigMap. - // This field is required in all cases. - Name string `json:"name" protobuf:"bytes,2,opt,name=name"` - - // UID is the metadata.UID of the referenced ConfigMap. - // This field is forbidden in Node.Spec, and required in Node.Status. - // +optional - UID types.UID `json:"uid,omitempty" protobuf:"bytes,3,opt,name=uid"` - - // ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. - // This field is forbidden in Node.Spec, and required in Node.Status. - // +optional - ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"` - - // KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure - // This field is required in all cases. - KubeletConfigKey string `json:"kubeletConfigKey" protobuf:"bytes,5,opt,name=kubeletConfigKey"` -} - -// DaemonEndpoint contains information about a single Daemon endpoint. -type DaemonEndpoint struct { - /* - The port tag was not properly in quotes in earlier releases, so it must be - uppercased for backwards compat (since it was falling back to var name of - 'Port'). - */ - - // Port number of the given endpoint. - Port int32 `json:"Port" protobuf:"varint,1,opt,name=Port"` -} - -// NodeDaemonEndpoints lists ports opened by daemons running on the Node. -type NodeDaemonEndpoints struct { - // Endpoint on which Kubelet is listening. - // +optional - KubeletEndpoint DaemonEndpoint `json:"kubeletEndpoint,omitempty" protobuf:"bytes,1,opt,name=kubeletEndpoint"` -} - -// NodeSystemInfo is a set of ids/uuids to uniquely identify the node. -type NodeSystemInfo struct { - // MachineID reported by the node. For unique machine identification - // in the cluster this field is preferred. Learn more from man(5) - // machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - MachineID string `json:"machineID" protobuf:"bytes,1,opt,name=machineID"` - // SystemUUID reported by the node. For unique machine identification - // MachineID is preferred. This field is specific to Red Hat hosts - // https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html - SystemUUID string `json:"systemUUID" protobuf:"bytes,2,opt,name=systemUUID"` - // Boot ID reported by the node. - BootID string `json:"bootID" protobuf:"bytes,3,opt,name=bootID"` - // Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - KernelVersion string `json:"kernelVersion" protobuf:"bytes,4,opt,name=kernelVersion"` - // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - OSImage string `json:"osImage" protobuf:"bytes,5,opt,name=osImage"` - // ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - ContainerRuntimeVersion string `json:"containerRuntimeVersion" protobuf:"bytes,6,opt,name=containerRuntimeVersion"` - // Kubelet Version reported by the node. - KubeletVersion string `json:"kubeletVersion" protobuf:"bytes,7,opt,name=kubeletVersion"` - // KubeProxy Version reported by the node. - KubeProxyVersion string `json:"kubeProxyVersion" protobuf:"bytes,8,opt,name=kubeProxyVersion"` - // The Operating System reported by the node - OperatingSystem string `json:"operatingSystem" protobuf:"bytes,9,opt,name=operatingSystem"` - // The Architecture reported by the node - Architecture string `json:"architecture" protobuf:"bytes,10,opt,name=architecture"` -} - -// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. -type NodeConfigStatus struct { - // Assigned reports the checkpointed config the node will try to use. - // When Node.Spec.ConfigSource is updated, the node checkpoints the associated - // config payload to local disk, along with a record indicating intended - // config. The node refers to this record to choose its config checkpoint, and - // reports this record in Assigned. Assigned only updates in the status after - // the record has been checkpointed to disk. When the Kubelet is restarted, - // it tries to make the Assigned config the Active config by loading and - // validating the checkpointed payload identified by Assigned. - // +optional - Assigned *NodeConfigSource `json:"assigned,omitempty" protobuf:"bytes,1,opt,name=assigned"` - // Active reports the checkpointed config the node is actively using. - // Active will represent either the current version of the Assigned config, - // or the current LastKnownGood config, depending on whether attempting to use the - // Assigned config results in an error. - // +optional - Active *NodeConfigSource `json:"active,omitempty" protobuf:"bytes,2,opt,name=active"` - // LastKnownGood reports the checkpointed config the node will fall back to - // when it encounters an error attempting to use the Assigned config. - // The Assigned config becomes the LastKnownGood config when the node determines - // that the Assigned config is stable and correct. - // This is currently implemented as a 10-minute soak period starting when the local - // record of Assigned config is updated. If the Assigned config is Active at the end - // of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is - // reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, - // because the local default config is always assumed good. - // You should not make assumptions about the node's method of determining config stability - // and correctness, as this may change or become configurable in the future. - // +optional - LastKnownGood *NodeConfigSource `json:"lastKnownGood,omitempty" protobuf:"bytes,3,opt,name=lastKnownGood"` - // Error describes any problems reconciling the Spec.ConfigSource to the Active config. - // Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned - // record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting - // to load or validate the Assigned config, etc. - // Errors may occur at different points while syncing config. Earlier errors (e.g. download or - // checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across - // Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in - // a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error - // by fixing the config assigned in Spec.ConfigSource. - // You can find additional information for debugging by searching the error message in the Kubelet log. - // Error is a human-readable description of the error state; machines can check whether or not Error - // is empty, but should not rely on the stability of the Error text across Kubelet versions. - // +optional - Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"` -} - -// NodeStatus is information about the current status of a node. -type NodeStatus struct { - // Capacity represents the total resources of a node. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - // +optional - Capacity ResourceList `json:"capacity,omitempty" protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` - // Allocatable represents the resources of a node that are available for scheduling. - // Defaults to Capacity. - // +optional - Allocatable ResourceList `json:"allocatable,omitempty" protobuf:"bytes,2,rep,name=allocatable,casttype=ResourceList,castkey=ResourceName"` - // NodePhase is the recently observed lifecycle phase of the node. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#phase - // The field is never populated, and now is deprecated. - // +optional - Phase NodePhase `json:"phase,omitempty" protobuf:"bytes,3,opt,name=phase,casttype=NodePhase"` - // Conditions is an array of current observed node conditions. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []NodeCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` - // List of addresses reachable to the node. - // Queried from cloud provider, if available. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses - // Note: This field is declared as mergeable, but the merge key is not sufficiently - // unique, which can cause data corruption when it is merged. Callers should instead - // use a full-replacement patch. See http://pr.k8s.io/79391 for an example. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Addresses []NodeAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,5,rep,name=addresses"` - // Endpoints of daemons running on the Node. - // +optional - DaemonEndpoints NodeDaemonEndpoints `json:"daemonEndpoints,omitempty" protobuf:"bytes,6,opt,name=daemonEndpoints"` - // Set of ids/uuids to uniquely identify the node. - // More info: https://kubernetes.io/docs/concepts/nodes/node/#info - // +optional - NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty" protobuf:"bytes,7,opt,name=nodeInfo"` - // List of container images on this node - // +optional - Images []ContainerImage `json:"images,omitempty" protobuf:"bytes,8,rep,name=images"` - // List of attachable volumes in use (mounted) by the node. - // +optional - VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty" protobuf:"bytes,9,rep,name=volumesInUse"` - // List of volumes that are attached to the node. - // +optional - VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty" protobuf:"bytes,10,rep,name=volumesAttached"` - // Status of the config assigned to the node via the dynamic Kubelet config feature. - // +optional - Config *NodeConfigStatus `json:"config,omitempty" protobuf:"bytes,11,opt,name=config"` -} - -type UniqueVolumeName string - -// AttachedVolume describes a volume attached to a node -type AttachedVolume struct { - // Name of the attached volume - Name UniqueVolumeName `json:"name" protobuf:"bytes,1,rep,name=name"` - - // DevicePath represents the device path where the volume should be available - DevicePath string `json:"devicePath" protobuf:"bytes,2,rep,name=devicePath"` -} - -// AvoidPods describes pods that should avoid this node. This is the value for a -// Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and -// will eventually become a field of NodeStatus. -type AvoidPods struct { - // Bounded-sized list of signatures of pods that should avoid this node, sorted - // in timestamp order from oldest to newest. Size of the slice is unspecified. - // +optional - PreferAvoidPods []PreferAvoidPodsEntry `json:"preferAvoidPods,omitempty" protobuf:"bytes,1,rep,name=preferAvoidPods"` -} - -// Describes a class of pods that should avoid this node. -type PreferAvoidPodsEntry struct { - // The class of pods. - PodSignature PodSignature `json:"podSignature" protobuf:"bytes,1,opt,name=podSignature"` - // Time at which this entry was added to the list. - // +optional - EvictionTime metav1.Time `json:"evictionTime,omitempty" protobuf:"bytes,2,opt,name=evictionTime"` - // (brief) reason why this entry was added to the list. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` - // Human readable message indicating why this entry was added to the list. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` -} - -// Describes the class of pods that should avoid this node. -// Exactly one field should be set. -type PodSignature struct { - // Reference to controller whose pods should avoid this node. - // +optional - PodController *metav1.OwnerReference `json:"podController,omitempty" protobuf:"bytes,1,opt,name=podController"` -} - -// Describe a container image -type ContainerImage struct { - // Names by which this image is known. - // e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] - Names []string `json:"names" protobuf:"bytes,1,rep,name=names"` - // The size of the image in bytes. - // +optional - SizeBytes int64 `json:"sizeBytes,omitempty" protobuf:"varint,2,opt,name=sizeBytes"` -} - -type NodePhase string - -// These are the valid phases of node. -const ( - // NodePending means the node has been created/added by the system, but not configured. - NodePending NodePhase = "Pending" - // NodeRunning means the node has been configured and has Kubernetes components running. - NodeRunning NodePhase = "Running" - // NodeTerminated means the node has been removed from the cluster. - NodeTerminated NodePhase = "Terminated" -) - -type NodeConditionType string - -// These are valid conditions of node. Currently, we don't have enough information to decide -// node condition. In the future, we will add more. The proposed set of conditions are: -// NodeReachable, NodeLive, NodeReady, NodeSchedulable, NodeRunnable. -const ( - // NodeReady means kubelet is healthy and ready to accept pods. - NodeReady NodeConditionType = "Ready" - // NodeMemoryPressure means the kubelet is under pressure due to insufficient available memory. - NodeMemoryPressure NodeConditionType = "MemoryPressure" - // NodeDiskPressure means the kubelet is under pressure due to insufficient available disk. - NodeDiskPressure NodeConditionType = "DiskPressure" - // NodePIDPressure means the kubelet is under pressure due to insufficient available PID. - NodePIDPressure NodeConditionType = "PIDPressure" - // NodeNetworkUnavailable means that network for the node is not correctly configured. - NodeNetworkUnavailable NodeConditionType = "NetworkUnavailable" -) - -// NodeCondition contains condition information for a node. -type NodeCondition struct { - // Type of node condition. - Type NodeConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=NodeConditionType"` - // Status of the condition, one of True, False, Unknown. - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // Last time we got an update on a given condition. - // +optional - LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime,omitempty" protobuf:"bytes,3,opt,name=lastHeartbeatTime"` - // Last time the condition transit from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` - // (brief) reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` - // Human readable message indicating details about last transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` -} - -type NodeAddressType string - -// These are valid address type of node. -const ( - NodeHostName NodeAddressType = "Hostname" - NodeExternalIP NodeAddressType = "ExternalIP" - NodeInternalIP NodeAddressType = "InternalIP" - NodeExternalDNS NodeAddressType = "ExternalDNS" - NodeInternalDNS NodeAddressType = "InternalDNS" -) - -// NodeAddress contains information for the node's address. -type NodeAddress struct { - // Node address type, one of Hostname, ExternalIP or InternalIP. - Type NodeAddressType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=NodeAddressType"` - // The node address. - Address string `json:"address" protobuf:"bytes,2,opt,name=address"` -} - -// ResourceName is the name identifying various resources in a ResourceList. -type ResourceName string - -// Resource names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters, -// with the -, _, and . characters allowed anywhere, except the first or last character. -// The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than -// camel case, separating compound words. -// Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name. -const ( - // CPU, in cores. (500m = .5 cores) - ResourceCPU ResourceName = "cpu" - // Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - ResourceMemory ResourceName = "memory" - // Volume size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024) - ResourceStorage ResourceName = "storage" - // Local ephemeral storage, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - // The resource name for ResourceEphemeralStorage is alpha and it can change across releases. - ResourceEphemeralStorage ResourceName = "ephemeral-storage" -) - -const ( - // Default namespace prefix. - ResourceDefaultNamespacePrefix = "kubernetes.io/" - // Name prefix for huge page resources (alpha). - ResourceHugePagesPrefix = "hugepages-" - // Name prefix for storage resource limits - ResourceAttachableVolumesPrefix = "attachable-volumes-" -) - -// ResourceList is a set of (resource name, quantity) pairs. -type ResourceList map[ResourceName]resource.Quantity - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Node is a worker node in Kubernetes. -// Each node will have a unique identifier in the cache (i.e. in etcd). -type Node struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the behavior of a node. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec NodeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the node. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status NodeStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// NodeList is the whole list of all Nodes which have been registered with master. -type NodeList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of nodes - Items []Node `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// FinalizerName is the name identifying a finalizer during namespace lifecycle. -type FinalizerName string - -// These are internal finalizer values to Kubernetes, must be qualified name unless defined here or -// in metav1. -const ( - FinalizerKubernetes FinalizerName = "kubernetes" -) - -// NamespaceSpec describes the attributes on a Namespace. -type NamespaceSpec struct { - // Finalizers is an opaque list of values that must be empty to permanently remove object from storage. - // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // +optional - Finalizers []FinalizerName `json:"finalizers,omitempty" protobuf:"bytes,1,rep,name=finalizers,casttype=FinalizerName"` -} - -// NamespaceStatus is information about the current status of a Namespace. -type NamespaceStatus struct { - // Phase is the current lifecycle phase of the namespace. - // More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // +optional - Phase NamespacePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=NamespacePhase"` - - // Represents the latest available observations of a namespace's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []NamespaceCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` -} - -type NamespacePhase string - -// These are the valid phases of a namespace. -const ( - // NamespaceActive means the namespace is available for use in the system - NamespaceActive NamespacePhase = "Active" - // NamespaceTerminating means the namespace is undergoing graceful termination - NamespaceTerminating NamespacePhase = "Terminating" -) - -type NamespaceConditionType string - -// These are valid conditions of a namespace. -const ( - // NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery. - NamespaceDeletionDiscoveryFailure NamespaceConditionType = "NamespaceDeletionDiscoveryFailure" - // NamespaceDeletionContentFailure contains information about namespace deleter errors during deletion of resources. - NamespaceDeletionContentFailure NamespaceConditionType = "NamespaceDeletionContentFailure" - // NamespaceDeletionGVParsingFailure contains information about namespace deleter errors parsing GV for legacy types. - NamespaceDeletionGVParsingFailure NamespaceConditionType = "NamespaceDeletionGroupVersionParsingFailure" -) - -// NamespaceCondition contains details about state of namespace. -type NamespaceCondition struct { - // Type of namespace controller condition. - Type NamespaceConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=NamespaceConditionType"` - // Status of the condition, one of True, False, Unknown. - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` -} - -// +genclient -// +genclient:nonNamespaced -// +genclient:skipVerbs=deleteCollection -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Namespace provides a scope for Names. -// Use of multiple namespaces is optional. -type Namespace struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the behavior of the Namespace. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec NamespaceSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status describes the current status of a Namespace. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status NamespaceStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// NamespaceList is a list of Namespaces. -type NamespaceList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Namespace objects in the list. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - Items []Namespace `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Binding ties one object to another; for example, a pod is bound to a node by a scheduler. -// Deprecated in 1.7, please use the bindings subresource of pods instead. -type Binding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The target object that you want to bind to the standard object. - Target ObjectReference `json:"target" protobuf:"bytes,2,opt,name=target"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// A list of ephemeral containers used with the Pod ephemeralcontainers subresource. -type EphemeralContainers struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // A list of ephemeral containers associated with this pod. New ephemeral containers - // may be appended to this list, but existing ephemeral containers may not be removed - // or modified. - // +patchMergeKey=name - // +patchStrategy=merge - EphemeralContainers []EphemeralContainer `json:"ephemeralContainers" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=ephemeralContainers"` -} - -// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. -// +k8s:openapi-gen=false -type Preconditions struct { - // Specifies the target UID. - // +optional - UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types.UID"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodLogOptions is the query options for a Pod's logs REST call. -type PodLogOptions struct { - metav1.TypeMeta `json:",inline"` - - // The container for which to stream logs. Defaults to only container if there is one container in the pod. - // +optional - Container string `json:"container,omitempty" protobuf:"bytes,1,opt,name=container"` - // Follow the log stream of the pod. Defaults to false. - // +optional - Follow bool `json:"follow,omitempty" protobuf:"varint,2,opt,name=follow"` - // Return previous terminated container logs. Defaults to false. - // +optional - Previous bool `json:"previous,omitempty" protobuf:"varint,3,opt,name=previous"` - // A relative time in seconds before the current time from which to show logs. If this value - // precedes the time a pod was started, only logs since the pod start will be returned. - // If this value is in the future, no logs will be returned. - // Only one of sinceSeconds or sinceTime may be specified. - // +optional - SinceSeconds *int64 `json:"sinceSeconds,omitempty" protobuf:"varint,4,opt,name=sinceSeconds"` - // An RFC3339 timestamp from which to show logs. If this value - // precedes the time a pod was started, only logs since the pod start will be returned. - // If this value is in the future, no logs will be returned. - // Only one of sinceSeconds or sinceTime may be specified. - // +optional - SinceTime *metav1.Time `json:"sinceTime,omitempty" protobuf:"bytes,5,opt,name=sinceTime"` - // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line - // of log output. Defaults to false. - // +optional - Timestamps bool `json:"timestamps,omitempty" protobuf:"varint,6,opt,name=timestamps"` - // If set, the number of lines from the end of the logs to show. If not specified, - // logs are shown from the creation of the container or sinceSeconds or sinceTime - // +optional - TailLines *int64 `json:"tailLines,omitempty" protobuf:"varint,7,opt,name=tailLines"` - // If set, the number of bytes to read from the server before terminating the - // log output. This may not display a complete final line of logging, and may return - // slightly more or slightly less than the specified limit. - // +optional - LimitBytes *int64 `json:"limitBytes,omitempty" protobuf:"varint,8,opt,name=limitBytes"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodAttachOptions is the query options to a Pod's remote attach call. -// --- -// TODO: merge w/ PodExecOptions below for stdin, stdout, etc -// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY -type PodAttachOptions struct { - metav1.TypeMeta `json:",inline"` - - // Stdin if true, redirects the standard input stream of the pod for this call. - // Defaults to false. - // +optional - Stdin bool `json:"stdin,omitempty" protobuf:"varint,1,opt,name=stdin"` - - // Stdout if true indicates that stdout is to be redirected for the attach call. - // Defaults to true. - // +optional - Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` - - // Stderr if true indicates that stderr is to be redirected for the attach call. - // Defaults to true. - // +optional - Stderr bool `json:"stderr,omitempty" protobuf:"varint,3,opt,name=stderr"` - - // TTY if true indicates that a tty will be allocated for the attach call. - // This is passed through the container runtime so the tty - // is allocated on the worker node by the container runtime. - // Defaults to false. - // +optional - TTY bool `json:"tty,omitempty" protobuf:"varint,4,opt,name=tty"` - - // The container in which to execute the command. - // Defaults to only container if there is only one container in the pod. - // +optional - Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodExecOptions is the query options to a Pod's remote exec call. -// --- -// TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging -// and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY -type PodExecOptions struct { - metav1.TypeMeta `json:",inline"` - - // Redirect the standard input stream of the pod for this call. - // Defaults to false. - // +optional - Stdin bool `json:"stdin,omitempty" protobuf:"varint,1,opt,name=stdin"` - - // Redirect the standard output stream of the pod for this call. - // Defaults to true. - // +optional - Stdout bool `json:"stdout,omitempty" protobuf:"varint,2,opt,name=stdout"` - - // Redirect the standard error stream of the pod for this call. - // Defaults to true. - // +optional - Stderr bool `json:"stderr,omitempty" protobuf:"varint,3,opt,name=stderr"` - - // TTY if true indicates that a tty will be allocated for the exec call. - // Defaults to false. - // +optional - TTY bool `json:"tty,omitempty" protobuf:"varint,4,opt,name=tty"` - - // Container in which to execute the command. - // Defaults to only container if there is only one container in the pod. - // +optional - Container string `json:"container,omitempty" protobuf:"bytes,5,opt,name=container"` - - // Command is the remote command to execute. argv array. Not executed within a shell. - Command []string `json:"command" protobuf:"bytes,6,rep,name=command"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodPortForwardOptions is the query options to a Pod's port forward call -// when using WebSockets. -// The `port` query parameter must specify the port or -// ports (comma separated) to forward over. -// Port forwarding over SPDY does not use these options. It requires the port -// to be passed in the `port` header as part of request. -type PodPortForwardOptions struct { - metav1.TypeMeta `json:",inline"` - - // List of ports to forward - // Required when using WebSockets - // +optional - Ports []int32 `json:"ports,omitempty" protobuf:"varint,1,rep,name=ports"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodProxyOptions is the query options to a Pod's proxy call. -type PodProxyOptions struct { - metav1.TypeMeta `json:",inline"` - - // Path is the URL path to use for the current proxy request to pod. - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// NodeProxyOptions is the query options to a Node's proxy call. -type NodeProxyOptions struct { - metav1.TypeMeta `json:",inline"` - - // Path is the URL path to use for the current proxy request to node. - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ServiceProxyOptions is the query options to a Service's proxy call. -type ServiceProxyOptions struct { - metav1.TypeMeta `json:",inline"` - - // Path is the part of URLs that include service endpoints, suffixes, - // and parameters to use for the current proxy request to service. - // For example, the whole request URL is - // http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. - // Path is _search?q=user:kimchy. - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` -} - -// ObjectReference contains enough information to let you inspect or modify the referred object. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ObjectReference struct { - // Kind of the referent. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` - // Namespace of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"` - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"` - // UID of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - // +optional - UID types.UID `json:"uid,omitempty" protobuf:"bytes,4,opt,name=uid,casttype=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types.UID"` - // API version of the referent. - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,5,opt,name=apiVersion"` - // Specific resourceVersion to which this reference is made, if any. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"` - - // If referring to a piece of an object instead of an entire object, this string - // should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. - // For example, if the object reference is to a container within a pod, this would take on a value like: - // "spec.containers{name}" (where "name" refers to the name of the container that triggered - // the event) or if no container name is specified "spec.containers[2]" (container with - // index 2 in this pod). This syntax is chosen only to have some well-defined way of - // referencing a part of an object. - // TODO: this design is not final and this field is subject to change in the future. - // +optional - FieldPath string `json:"fieldPath,omitempty" protobuf:"bytes,7,opt,name=fieldPath"` -} - -// LocalObjectReference contains enough information to let you locate the -// referenced object inside the same namespace. -type LocalObjectReference struct { - // Name of the referent. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - // TODO: Add other useful fields. apiVersion, kind, uid? - // +optional - Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` -} - -// TypedLocalObjectReference contains enough information to let you locate the -// typed referenced object inside the same namespace. -type TypedLocalObjectReference struct { - // APIGroup is the group for the resource being referenced. - // If APIGroup is not specified, the specified Kind must be in the core API group. - // For any other third-party types, APIGroup is required. - // +optional - APIGroup *string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"` - // Kind is the type of resource being referenced - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` - // Name is the name of resource being referenced - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SerializedReference is a reference to serialized object. -type SerializedReference struct { - metav1.TypeMeta `json:",inline"` - // The reference to an object in the system. - // +optional - Reference ObjectReference `json:"reference,omitempty" protobuf:"bytes,1,opt,name=reference"` -} - -// EventSource contains information for an event. -type EventSource struct { - // Component from which the event is generated. - // +optional - Component string `json:"component,omitempty" protobuf:"bytes,1,opt,name=component"` - // Node name on which the event is generated. - // +optional - Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"` -} - -// Valid values for event types (new types could be added in future) -const ( - // Information only and will not cause any problems - EventTypeNormal string = "Normal" - // These events are to warn that something might go wrong - EventTypeWarning string = "Warning" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Event is a report of an event somewhere in the cluster. -type Event struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` - - // The object that this event is about. - InvolvedObject ObjectReference `json:"involvedObject" protobuf:"bytes,2,opt,name=involvedObject"` - - // This should be a short, machine understandable string that gives the reason - // for the transition into the object's current status. - // TODO: provide exact specification for format. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` - - // A human-readable description of the status of this operation. - // TODO: decide on maximum length. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` - - // The component reporting this event. Should be a short machine understandable string. - // +optional - Source EventSource `json:"source,omitempty" protobuf:"bytes,5,opt,name=source"` - - // The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - // +optional - FirstTimestamp metav1.Time `json:"firstTimestamp,omitempty" protobuf:"bytes,6,opt,name=firstTimestamp"` - - // The time at which the most recent occurrence of this event was recorded. - // +optional - LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` - - // The number of times this event has occurred. - // +optional - Count int32 `json:"count,omitempty" protobuf:"varint,8,opt,name=count"` - - // 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 -// continuously for some time. -type EventSeries struct { - // Number of occurrences in this series up to the last heartbeat time - Count int32 `json:"count,omitempty" protobuf:"varint,1,name=count"` - // Time of the last occurrence observed - LastObservedTime metav1.MicroTime `json:"lastObservedTime,omitempty" protobuf:"bytes,2,name=lastObservedTime"` - // State of this Series: Ongoing or Finished - // Deprecated. Planned removal for 1.18 - 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=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// EventList is a list of events. -type EventList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of events - Items []Event `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// List holds a list of objects, which may not be known by the server. -type List metav1.List - -// LimitType is a type of object that is limited -type LimitType string - -const ( - // Limit that applies to all pods in a namespace - LimitTypePod LimitType = "Pod" - // Limit that applies to all containers in a namespace - LimitTypeContainer LimitType = "Container" - // Limit that applies to all persistent volume claims in a namespace - LimitTypePersistentVolumeClaim LimitType = "PersistentVolumeClaim" -) - -// LimitRangeItem defines a min/max usage limit for any resource that matches on kind. -type LimitRangeItem struct { - // Type of resource that this limit applies to. - // +optional - Type LimitType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=LimitType"` - // Max usage constraints on this kind by resource name. - // +optional - Max ResourceList `json:"max,omitempty" protobuf:"bytes,2,rep,name=max,casttype=ResourceList,castkey=ResourceName"` - // Min usage constraints on this kind by resource name. - // +optional - Min ResourceList `json:"min,omitempty" protobuf:"bytes,3,rep,name=min,casttype=ResourceList,castkey=ResourceName"` - // Default resource requirement limit value by resource name if resource limit is omitted. - // +optional - Default ResourceList `json:"default,omitempty" protobuf:"bytes,4,rep,name=default,casttype=ResourceList,castkey=ResourceName"` - // DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - // +optional - DefaultRequest ResourceList `json:"defaultRequest,omitempty" protobuf:"bytes,5,rep,name=defaultRequest,casttype=ResourceList,castkey=ResourceName"` - // MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - // +optional - MaxLimitRequestRatio ResourceList `json:"maxLimitRequestRatio,omitempty" protobuf:"bytes,6,rep,name=maxLimitRequestRatio,casttype=ResourceList,castkey=ResourceName"` -} - -// LimitRangeSpec defines a min/max usage limit for resources that match on kind. -type LimitRangeSpec struct { - // Limits is the list of LimitRangeItem objects that are enforced. - Limits []LimitRangeItem `json:"limits" protobuf:"bytes,1,rep,name=limits"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// LimitRange sets resource usage limits for each kind of resource in a Namespace. -type LimitRange struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the limits enforced. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec LimitRangeSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// LimitRangeList is a list of LimitRange items. -type LimitRangeList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of LimitRange objects. - // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - Items []LimitRange `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// The following identify resource constants for Kubernetes object types -const ( - // Pods, number - ResourcePods ResourceName = "pods" - // Services, number - ResourceServices ResourceName = "services" - // ReplicationControllers, number - ResourceReplicationControllers ResourceName = "replicationcontrollers" - // ResourceQuotas, number - ResourceQuotas ResourceName = "resourcequotas" - // ResourceSecrets, number - ResourceSecrets ResourceName = "secrets" - // ResourceConfigMaps, number - ResourceConfigMaps ResourceName = "configmaps" - // ResourcePersistentVolumeClaims, number - ResourcePersistentVolumeClaims ResourceName = "persistentvolumeclaims" - // ResourceServicesNodePorts, number - ResourceServicesNodePorts ResourceName = "services.nodeports" - // ResourceServicesLoadBalancers, number - ResourceServicesLoadBalancers ResourceName = "services.loadbalancers" - // CPU request, in cores. (500m = .5 cores) - ResourceRequestsCPU ResourceName = "requests.cpu" - // Memory request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - ResourceRequestsMemory ResourceName = "requests.memory" - // Storage request, in bytes - ResourceRequestsStorage ResourceName = "requests.storage" - // Local ephemeral storage request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - ResourceRequestsEphemeralStorage ResourceName = "requests.ephemeral-storage" - // CPU limit, in cores. (500m = .5 cores) - ResourceLimitsCPU ResourceName = "limits.cpu" - // Memory limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - ResourceLimitsMemory ResourceName = "limits.memory" - // Local ephemeral storage limit, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - ResourceLimitsEphemeralStorage ResourceName = "limits.ephemeral-storage" -) - -// The following identify resource prefix for Kubernetes object types -const ( - // HugePages request, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024) - // As burst is not supported for HugePages, we would only quota its request, and ignore the limit. - ResourceRequestsHugePagesPrefix = "requests.hugepages-" - // Default resource requests prefix - DefaultResourceRequestsPrefix = "requests." -) - -// A ResourceQuotaScope defines a filter that must match each object tracked by a quota -type ResourceQuotaScope string - -const ( - // Match all pod objects where spec.activeDeadlineSeconds - ResourceQuotaScopeTerminating ResourceQuotaScope = "Terminating" - // Match all pod objects where !spec.activeDeadlineSeconds - ResourceQuotaScopeNotTerminating ResourceQuotaScope = "NotTerminating" - // Match all pod objects that have best effort quality of service - ResourceQuotaScopeBestEffort ResourceQuotaScope = "BestEffort" - // Match all pod objects that do not have best effort quality of service - ResourceQuotaScopeNotBestEffort ResourceQuotaScope = "NotBestEffort" - // Match all pod objects that have priority class mentioned - ResourceQuotaScopePriorityClass ResourceQuotaScope = "PriorityClass" -) - -// ResourceQuotaSpec defines the desired hard limits to enforce for Quota. -type ResourceQuotaSpec struct { - // hard is the set of desired hard limits for each named resource. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - // +optional - Hard ResourceList `json:"hard,omitempty" protobuf:"bytes,1,rep,name=hard,casttype=ResourceList,castkey=ResourceName"` - // A collection of filters that must match each object tracked by a quota. - // If not specified, the quota matches all objects. - // +optional - Scopes []ResourceQuotaScope `json:"scopes,omitempty" protobuf:"bytes,2,rep,name=scopes,casttype=ResourceQuotaScope"` - // scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota - // but expressed using ScopeSelectorOperator in combination with possible values. - // For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - // +optional - ScopeSelector *ScopeSelector `json:"scopeSelector,omitempty" protobuf:"bytes,3,opt,name=scopeSelector"` -} - -// A scope selector represents the AND of the selectors represented -// by the scoped-resource selector requirements. -type ScopeSelector struct { - // A list of scope selector requirements by scope of the resources. - // +optional - MatchExpressions []ScopedResourceSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,1,rep,name=matchExpressions"` -} - -// A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator -// that relates the scope name and values. -type ScopedResourceSelectorRequirement struct { - // The name of the scope that the selector applies to. - ScopeName ResourceQuotaScope `json:"scopeName" protobuf:"bytes,1,opt,name=scopeName"` - // Represents a scope's relationship to a set of values. - // Valid operators are In, NotIn, Exists, DoesNotExist. - Operator ScopeSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=ScopedResourceSelectorOperator"` - // An array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. - // This array is replaced during a strategic merge patch. - // +optional - Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` -} - -// A scope selector operator is the set of operators that can be used in -// a scope selector requirement. -type ScopeSelectorOperator string - -const ( - ScopeSelectorOpIn ScopeSelectorOperator = "In" - ScopeSelectorOpNotIn ScopeSelectorOperator = "NotIn" - ScopeSelectorOpExists ScopeSelectorOperator = "Exists" - ScopeSelectorOpDoesNotExist ScopeSelectorOperator = "DoesNotExist" -) - -// ResourceQuotaStatus defines the enforced hard limits and observed use. -type ResourceQuotaStatus struct { - // Hard is the set of enforced hard limits for each named resource. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - // +optional - Hard ResourceList `json:"hard,omitempty" protobuf:"bytes,1,rep,name=hard,casttype=ResourceList,castkey=ResourceName"` - // Used is the current observed total usage of the resource in the namespace. - // +optional - Used ResourceList `json:"used,omitempty" protobuf:"bytes,2,rep,name=used,casttype=ResourceList,castkey=ResourceName"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ResourceQuota sets aggregate quota restrictions enforced per namespace -type ResourceQuota struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the desired quota. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ResourceQuotaSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status defines the actual enforced quota and its current usage. - // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ResourceQuotaStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ResourceQuotaList is a list of ResourceQuota items. -type ResourceQuotaList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ResourceQuota objects. - // More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - Items []ResourceQuota `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Secret holds secret data of a certain type. The total bytes of the values in -// the Data field must be less than MaxSecretSize bytes. -type Secret struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Data contains the secret data. Each key must consist of alphanumeric - // characters, '-', '_' or '.'. The serialized form of the secret data is a - // base64 encoded string, representing the arbitrary (possibly non-string) - // data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - // +optional - Data map[string][]byte `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` - - // stringData allows specifying non-binary secret data in string form. - // It is provided as a write-only convenience method. - // All keys and values are merged into the data field on write, overwriting any existing values. - // It is never output when reading from the API. - // +k8s:conversion-gen=false - // +optional - StringData map[string]string `json:"stringData,omitempty" protobuf:"bytes,4,rep,name=stringData"` - - // Used to facilitate programmatic handling of secret data. - // +optional - Type SecretType `json:"type,omitempty" protobuf:"bytes,3,opt,name=type,casttype=SecretType"` -} - -const MaxSecretSize = 1 * 1024 * 1024 - -type SecretType string - -const ( - // SecretTypeOpaque is the default. Arbitrary user-defined data - SecretTypeOpaque SecretType = "Opaque" - - // SecretTypeServiceAccountToken contains a token that identifies a service account to the API - // - // Required fields: - // - Secret.Annotations["kubernetes.io/service-account.name"] - the name of the ServiceAccount the token identifies - // - Secret.Annotations["kubernetes.io/service-account.uid"] - the UID of the ServiceAccount the token identifies - // - Secret.Data["token"] - a token that identifies the service account to the API - SecretTypeServiceAccountToken SecretType = "kubernetes.io/service-account-token" - - // ServiceAccountNameKey is the key of the required annotation for SecretTypeServiceAccountToken secrets - ServiceAccountNameKey = "kubernetes.io/service-account.name" - // ServiceAccountUIDKey is the key of the required annotation for SecretTypeServiceAccountToken secrets - ServiceAccountUIDKey = "kubernetes.io/service-account.uid" - // ServiceAccountTokenKey is the key of the required data for SecretTypeServiceAccountToken secrets - ServiceAccountTokenKey = "token" - // ServiceAccountKubeconfigKey is the key of the optional kubeconfig data for SecretTypeServiceAccountToken secrets - ServiceAccountKubeconfigKey = "kubernetes.kubeconfig" - // ServiceAccountRootCAKey is the key of the optional root certificate authority for SecretTypeServiceAccountToken secrets - ServiceAccountRootCAKey = "ca.crt" - // ServiceAccountNamespaceKey is the key of the optional namespace to use as the default for namespaced API calls - ServiceAccountNamespaceKey = "namespace" - - // SecretTypeDockercfg contains a dockercfg file that follows the same format rules as ~/.dockercfg - // - // Required fields: - // - Secret.Data[".dockercfg"] - a serialized ~/.dockercfg file - SecretTypeDockercfg SecretType = "kubernetes.io/dockercfg" - - // DockerConfigKey is the key of the required data for SecretTypeDockercfg secrets - DockerConfigKey = ".dockercfg" - - // SecretTypeDockerConfigJson contains a dockercfg file that follows the same format rules as ~/.docker/config.json - // - // Required fields: - // - Secret.Data[".dockerconfigjson"] - a serialized ~/.docker/config.json file - SecretTypeDockerConfigJson SecretType = "kubernetes.io/dockerconfigjson" - - // DockerConfigJsonKey is the key of the required data for SecretTypeDockerConfigJson secrets - DockerConfigJsonKey = ".dockerconfigjson" - - // SecretTypeBasicAuth contains data needed for basic authentication. - // - // Required at least one of fields: - // - Secret.Data["username"] - username used for authentication - // - Secret.Data["password"] - password or token needed for authentication - SecretTypeBasicAuth SecretType = "kubernetes.io/basic-auth" - - // BasicAuthUsernameKey is the key of the username for SecretTypeBasicAuth secrets - BasicAuthUsernameKey = "username" - // BasicAuthPasswordKey is the key of the password or token for SecretTypeBasicAuth secrets - BasicAuthPasswordKey = "password" - - // SecretTypeSSHAuth contains data needed for SSH authetication. - // - // Required field: - // - Secret.Data["ssh-privatekey"] - private SSH key needed for authentication - SecretTypeSSHAuth SecretType = "kubernetes.io/ssh-auth" - - // SSHAuthPrivateKey is the key of the required SSH private key for SecretTypeSSHAuth secrets - SSHAuthPrivateKey = "ssh-privatekey" - // SecretTypeTLS contains information about a TLS client or server secret. It - // is primarily used with TLS termination of the Ingress resource, but may be - // used in other types. - // - // Required fields: - // - Secret.Data["tls.key"] - TLS private key. - // Secret.Data["tls.crt"] - TLS certificate. - // TODO: Consider supporting different formats, specifying CA/destinationCA. - SecretTypeTLS SecretType = "kubernetes.io/tls" - - // TLSCertKey is the key for tls certificates in a TLS secert. - TLSCertKey = "tls.crt" - // TLSPrivateKeyKey is the key for the private key field in a TLS secret. - TLSPrivateKeyKey = "tls.key" - // SecretTypeBootstrapToken is used during the automated bootstrap process (first - // implemented by kubeadm). It stores tokens that are used to sign well known - // ConfigMaps. They are used for authn. - SecretTypeBootstrapToken SecretType = "bootstrap.kubernetes.io/token" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// SecretList is a list of Secret. -type SecretList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of secret objects. - // More info: https://kubernetes.io/docs/concepts/configuration/secret - Items []Secret `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ConfigMap holds configuration data for pods to consume. -type ConfigMap struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Data contains the configuration data. - // Each key must consist of alphanumeric characters, '-', '_' or '.'. - // Values with non-UTF-8 byte sequences must use the BinaryData field. - // The keys stored in Data must not overlap with the keys in - // the BinaryData field, this is enforced during validation process. - // +optional - Data map[string]string `json:"data,omitempty" protobuf:"bytes,2,rep,name=data"` - - // BinaryData contains the binary data. - // Each key must consist of alphanumeric characters, '-', '_' or '.'. - // BinaryData can contain byte sequences that are not in the UTF-8 range. - // The keys stored in BinaryData must not overlap with the ones in - // the Data field, this is enforced during validation process. - // Using this field will require 1.10+ apiserver and - // kubelet. - // +optional - BinaryData map[string][]byte `json:"binaryData,omitempty" protobuf:"bytes,3,rep,name=binaryData"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ConfigMapList is a resource containing a list of ConfigMap objects. -type ConfigMapList struct { - metav1.TypeMeta `json:",inline"` - - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of ConfigMaps. - Items []ConfigMap `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// Type and constants for component health validation. -type ComponentConditionType string - -// These are the valid conditions for the component. -const ( - ComponentHealthy ComponentConditionType = "Healthy" -) - -// Information about the condition of a component. -type ComponentCondition struct { - // Type of condition for a component. - // Valid value: "Healthy" - Type ComponentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ComponentConditionType"` - // Status of the condition for a component. - // Valid values for "Healthy": "True", "False", or "Unknown". - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // Message about the condition for a component. - // For example, information about a health check. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - // Condition error code for a component. - // For example, a health check error code. - // +optional - Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ComponentStatus (and ComponentStatusList) holds the cluster validation info. -type ComponentStatus struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of component conditions observed - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []ComponentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Status of all the conditions for the component as a list of ComponentStatus objects. -type ComponentStatusList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of ComponentStatus objects. - Items []ComponentStatus `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// DownwardAPIVolumeSource represents a volume containing downward API info. -// Downward API volumes support ownership management and SELinux relabeling. -type DownwardAPIVolumeSource struct { - // Items is a list of downward API volume file - // +optional - Items []DownwardAPIVolumeFile `json:"items,omitempty" protobuf:"bytes,1,rep,name=items"` - // Optional: mode bits to use on created files by default. Must be a - // value between 0 and 0777. Defaults to 0644. - // Directories within the path are not affected by this setting. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,2,opt,name=defaultMode"` -} - -const ( - DownwardAPIVolumeSourceDefaultMode int32 = 0644 -) - -// DownwardAPIVolumeFile represents information to create the file containing the pod field -type DownwardAPIVolumeFile struct { - // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - Path string `json:"path" protobuf:"bytes,1,opt,name=path"` - // Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - // +optional - FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,2,opt,name=fieldRef"` - // Selects a resource of the container: only resources limits and requests - // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - // +optional - ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,3,opt,name=resourceFieldRef"` - // Optional: mode bits to use on this file, must be a value between 0 - // and 0777. If not specified, the volume defaultMode will be used. - // This might be in conflict with other options that affect the file - // mode, like fsGroup, and the result can be other mode bits set. - // +optional - Mode *int32 `json:"mode,omitempty" protobuf:"varint,4,opt,name=mode"` -} - -// Represents downward API info for projecting into a projected volume. -// Note that this is identical to a downwardAPI volume source without the default -// mode. -type DownwardAPIProjection struct { - // Items is a list of DownwardAPIVolume file - // +optional - Items []DownwardAPIVolumeFile `json:"items,omitempty" protobuf:"bytes,1,rep,name=items"` -} - -// SecurityContext holds security configuration that will be applied to a container. -// Some fields are present in both SecurityContext and PodSecurityContext. When both -// are set, the values in SecurityContext take precedence. -type SecurityContext struct { - // The capabilities to add/drop when running containers. - // Defaults to the default set of capabilities granted by the container runtime. - // +optional - Capabilities *Capabilities `json:"capabilities,omitempty" protobuf:"bytes,1,opt,name=capabilities"` - // Run container in privileged mode. - // Processes in privileged containers are essentially equivalent to root on the host. - // Defaults to false. - // +optional - Privileged *bool `json:"privileged,omitempty" protobuf:"varint,2,opt,name=privileged"` - // The SELinux context to be applied to the container. - // If unspecified, the container runtime will allocate a random SELinux context for each - // container. May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,3,opt,name=seLinuxOptions"` - // The Windows specific settings applied to all containers. - // If unspecified, the options from the PodSecurityContext will be used. - // If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - WindowsOptions *WindowsSecurityContextOptions `json:"windowsOptions,omitempty" protobuf:"bytes,10,opt,name=windowsOptions"` - // The UID to run the entrypoint of the container process. - // Defaults to user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - RunAsUser *int64 `json:"runAsUser,omitempty" protobuf:"varint,4,opt,name=runAsUser"` - // The GID to run the entrypoint of the container process. - // Uses runtime default if unset. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - RunAsGroup *int64 `json:"runAsGroup,omitempty" protobuf:"varint,8,opt,name=runAsGroup"` - // Indicates that the container must run as a non-root user. - // If true, the Kubelet will validate the image at runtime to ensure that it - // does not run as UID 0 (root) and fail to start the container if it does. - // If unset or false, no such validation will be performed. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // +optional - RunAsNonRoot *bool `json:"runAsNonRoot,omitempty" protobuf:"varint,5,opt,name=runAsNonRoot"` - // Whether this container has a read-only root filesystem. - // Default is false. - // +optional - ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty" protobuf:"varint,6,opt,name=readOnlyRootFilesystem"` - // AllowPrivilegeEscalation controls whether a process can gain more - // privileges than its parent process. This bool directly controls if - // the no_new_privs flag will be set on the container process. - // AllowPrivilegeEscalation is true always when the container is: - // 1) run as Privileged - // 2) has CAP_SYS_ADMIN - // +optional - AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" protobuf:"varint,7,opt,name=allowPrivilegeEscalation"` - // procMount denotes the type of proc mount to use for the containers. - // The default is DefaultProcMount which uses the container runtime defaults for - // readonly paths and masked paths. - // This requires the ProcMountType feature flag to be enabled. - // +optional - ProcMount *ProcMountType `json:"procMount,omitempty" protobuf:"bytes,9,opt,name=procMount"` -} - -type ProcMountType string - -const ( - // DefaultProcMount uses the container runtime defaults for readonly and masked - // paths for /proc. Most container runtimes mask certain paths in /proc to avoid - // accidental security exposure of special devices or information. - DefaultProcMount ProcMountType = "Default" - - // UnmaskedProcMount bypasses the default masking behavior of the container - // runtime and ensures the newly created /proc the container stays in tact with - // no modifications. - UnmaskedProcMount ProcMountType = "Unmasked" -) - -// SELinuxOptions are the labels to be applied to the container -type SELinuxOptions struct { - // User is a SELinux user label that applies to the container. - // +optional - User string `json:"user,omitempty" protobuf:"bytes,1,opt,name=user"` - // Role is a SELinux role label that applies to the container. - // +optional - Role string `json:"role,omitempty" protobuf:"bytes,2,opt,name=role"` - // Type is a SELinux type label that applies to the container. - // +optional - Type string `json:"type,omitempty" protobuf:"bytes,3,opt,name=type"` - // Level is SELinux level label that applies to the container. - // +optional - Level string `json:"level,omitempty" protobuf:"bytes,4,opt,name=level"` -} - -// WindowsSecurityContextOptions contain Windows-specific options and credentials. -type WindowsSecurityContextOptions struct { - // GMSACredentialSpecName is the name of the GMSA credential spec to use. - // This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. - // +optional - GMSACredentialSpecName *string `json:"gmsaCredentialSpecName,omitempty" protobuf:"bytes,1,opt,name=gmsaCredentialSpecName"` - - // GMSACredentialSpec is where the GMSA admission webhook - // (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the - // GMSA credential spec named by the GMSACredentialSpecName field. - // This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. - // +optional - GMSACredentialSpec *string `json:"gmsaCredentialSpec,omitempty" protobuf:"bytes,2,opt,name=gmsaCredentialSpec"` - - // The UserName in Windows to run the entrypoint of the container process. - // Defaults to the user specified in image metadata if unspecified. - // May also be set in PodSecurityContext. If set in both SecurityContext and - // PodSecurityContext, the value specified in SecurityContext takes precedence. - // This field is alpha-level and it is only honored by servers that enable the WindowsRunAsUserName feature flag. - // +optional - RunAsUserName *string `json:"runAsUserName,omitempty" protobuf:"bytes,3,opt,name=runAsUserName"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RangeAllocation is not a public type. -type RangeAllocation struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Range is string that identifies the range represented by 'data'. - Range string `json:"range" protobuf:"bytes,2,opt,name=range"` - // Data is a bit array containing all allocated addresses in the previous segment. - Data []byte `json:"data" protobuf:"bytes,3,opt,name=data"` -} - -const ( - // "default-scheduler" is the name of default scheduler. - DefaultSchedulerName = "default-scheduler" - - // RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule - // corresponding to every RequiredDuringScheduling affinity rule. - // When the --hard-pod-affinity-weight scheduler flag is not specified, - // DefaultHardPodAffinityWeight defines the weight of the implicit PreferredDuringScheduling affinity rule. - DefaultHardPodAffinitySymmetricWeight int32 = 1 -) - -// Sysctl defines a kernel parameter to be set -type Sysctl struct { - // Name of a property to set - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // Value of a property to set - Value string `json:"value" protobuf:"bytes,2,opt,name=value"` -} - -// NodeResources is an object for conveying resource information about a node. -// see http://releases.k8s.io/HEAD/docs/design/resources.md for more details. -type NodeResources struct { - // Capacity represents the available resources of a node - Capacity ResourceList `protobuf:"bytes,1,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` -} - -const ( - // Enable stdin for remote command execution - ExecStdinParam = "input" - // Enable stdout for remote command execution - ExecStdoutParam = "output" - // Enable stderr for remote command execution - ExecStderrParam = "error" - // Enable TTY for remote command execution - ExecTTYParam = "tty" - // Command to run for remote command execution - ExecCommandParam = "command" - - // Name of header that specifies stream type - StreamType = "streamType" - // Value for streamType header for stdin stream - StreamTypeStdin = "stdin" - // Value for streamType header for stdout stream - StreamTypeStdout = "stdout" - // Value for streamType header for stderr stream - StreamTypeStderr = "stderr" - // Value for streamType header for data stream - StreamTypeData = "data" - // Value for streamType header for error stream - StreamTypeError = "error" - // Value for streamType header for terminal resize stream - StreamTypeResize = "resize" - - // Name of header that specifies the port being forwarded - PortHeader = "port" - // Name of header that specifies a request ID used to associate the error - // and data streams for a single forwarded connection - PortForwardRequestIDHeader = "requestID" -) diff --git a/pseudo/k8s/api/core/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/core/v1/types_swagger_doc_generated.go deleted file mode 100644 index 35b8389a7..000000000 --- a/pseudo/k8s/api/core/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,2466 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_AWSElasticBlockStoreVolumeSource = map[string]string{ - "": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", - "volumeID": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "partition": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "readOnly": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", -} - -func (AWSElasticBlockStoreVolumeSource) SwaggerDoc() map[string]string { - return map_AWSElasticBlockStoreVolumeSource -} - -var map_Affinity = map[string]string{ - "": "Affinity is a group of affinity scheduling rules.", - "nodeAffinity": "Describes node affinity scheduling rules for the pod.", - "podAffinity": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "podAntiAffinity": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", -} - -func (Affinity) SwaggerDoc() map[string]string { - return map_Affinity -} - -var map_AttachedVolume = map[string]string{ - "": "AttachedVolume describes a volume attached to a node", - "name": "Name of the attached volume", - "devicePath": "DevicePath represents the device path where the volume should be available", -} - -func (AttachedVolume) SwaggerDoc() map[string]string { - return map_AttachedVolume -} - -var map_AvoidPods = map[string]string{ - "": "AvoidPods describes pods that should avoid this node. This is the value for a Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and will eventually become a field of NodeStatus.", - "preferAvoidPods": "Bounded-sized list of signatures of pods that should avoid this node, sorted in timestamp order from oldest to newest. Size of the slice is unspecified.", -} - -func (AvoidPods) SwaggerDoc() map[string]string { - return map_AvoidPods -} - -var map_AzureDiskVolumeSource = map[string]string{ - "": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "diskName": "The Name of the data disk in the blob storage", - "diskURI": "The URI the data disk in the blob storage", - "cachingMode": "Host Caching mode: None, Read Only, Read Write.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "kind": "Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", -} - -func (AzureDiskVolumeSource) SwaggerDoc() map[string]string { - return map_AzureDiskVolumeSource -} - -var map_AzureFilePersistentVolumeSource = map[string]string{ - "": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "secretName": "the name of secret that contains Azure Storage Account Name and Key", - "shareName": "Share Name", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "secretNamespace": "the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", -} - -func (AzureFilePersistentVolumeSource) SwaggerDoc() map[string]string { - return map_AzureFilePersistentVolumeSource -} - -var map_AzureFileVolumeSource = map[string]string{ - "": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "secretName": "the name of secret that contains Azure Storage Account Name and Key", - "shareName": "Share Name", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", -} - -func (AzureFileVolumeSource) SwaggerDoc() map[string]string { - return map_AzureFileVolumeSource -} - -var map_Binding = map[string]string{ - "": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "target": "The target object that you want to bind to the standard object.", -} - -func (Binding) SwaggerDoc() map[string]string { - return map_Binding -} - -var map_CSIPersistentVolumeSource = map[string]string{ - "": "Represents storage that is managed by an external CSI volume driver (Beta feature)", - "driver": "Driver is the name of the driver to use for this volume. Required.", - "volumeHandle": "VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.", - "readOnly": "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", - "volumeAttributes": "Attributes of the volume to publish.", - "controllerPublishSecretRef": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - "nodeStageSecretRef": "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - "nodePublishSecretRef": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", - "controllerExpandSecretRef": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.", -} - -func (CSIPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_CSIPersistentVolumeSource -} - -var map_CSIVolumeSource = map[string]string{ - "": "Represents a source location of a volume to mount, managed by an external CSI driver", - "driver": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", - "readOnly": "Specifies a read-only configuration for the volume. Defaults to false (read/write).", - "fsType": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", - "volumeAttributes": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", - "nodePublishSecretRef": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.", -} - -func (CSIVolumeSource) SwaggerDoc() map[string]string { - return map_CSIVolumeSource -} - -var map_Capabilities = map[string]string{ - "": "Adds and removes POSIX capabilities from running containers.", - "add": "Added capabilities", - "drop": "Removed capabilities", -} - -func (Capabilities) SwaggerDoc() map[string]string { - return map_Capabilities -} - -var map_CephFSPersistentVolumeSource = map[string]string{ - "": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", - "monitors": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "path": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "user": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "secretFile": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "secretRef": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", -} - -func (CephFSPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_CephFSPersistentVolumeSource -} - -var map_CephFSVolumeSource = map[string]string{ - "": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", - "monitors": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "path": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "user": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "secretFile": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "secretRef": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", -} - -func (CephFSVolumeSource) SwaggerDoc() map[string]string { - return map_CephFSVolumeSource -} - -var map_CinderPersistentVolumeSource = map[string]string{ - "": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", - "volumeID": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "secretRef": "Optional: points to a secret object containing parameters used to connect to OpenStack.", -} - -func (CinderPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_CinderPersistentVolumeSource -} - -var map_CinderVolumeSource = map[string]string{ - "": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", - "volumeID": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "secretRef": "Optional: points to a secret object containing parameters used to connect to OpenStack.", -} - -func (CinderVolumeSource) SwaggerDoc() map[string]string { - return map_CinderVolumeSource -} - -var map_ClientIPConfig = map[string]string{ - "": "ClientIPConfig represents the configurations of Client IP based session affinity.", - "timeoutSeconds": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", -} - -func (ClientIPConfig) SwaggerDoc() map[string]string { - return map_ClientIPConfig -} - -var map_ComponentCondition = map[string]string{ - "": "Information about the condition of a component.", - "type": "Type of condition for a component. Valid value: \"Healthy\"", - "status": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", - "message": "Message about the condition for a component. For example, information about a health check.", - "error": "Condition error code for a component. For example, a health check error code.", -} - -func (ComponentCondition) SwaggerDoc() map[string]string { - return map_ComponentCondition -} - -var map_ComponentStatus = map[string]string{ - "": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "conditions": "List of component conditions observed", -} - -func (ComponentStatus) SwaggerDoc() map[string]string { - return map_ComponentStatus -} - -var map_ComponentStatusList = map[string]string{ - "": "Status of all the conditions for the component as a list of ComponentStatus objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ComponentStatus objects.", -} - -func (ComponentStatusList) SwaggerDoc() map[string]string { - return map_ComponentStatusList -} - -var map_ConfigMap = map[string]string{ - "": "ConfigMap holds configuration data for pods to consume.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "data": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", - "binaryData": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", -} - -func (ConfigMap) SwaggerDoc() map[string]string { - return map_ConfigMap -} - -var map_ConfigMapEnvSource = map[string]string{ - "": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", - "optional": "Specify whether the ConfigMap must be defined", -} - -func (ConfigMapEnvSource) SwaggerDoc() map[string]string { - return map_ConfigMapEnvSource -} - -var map_ConfigMapKeySelector = map[string]string{ - "": "Selects a key from a ConfigMap.", - "key": "The key to select.", - "optional": "Specify whether the ConfigMap or its key must be defined", -} - -func (ConfigMapKeySelector) SwaggerDoc() map[string]string { - return map_ConfigMapKeySelector -} - -var map_ConfigMapList = map[string]string{ - "": "ConfigMapList is a resource containing a list of ConfigMap objects.", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of ConfigMaps.", -} - -func (ConfigMapList) SwaggerDoc() map[string]string { - return map_ConfigMapList -} - -var map_ConfigMapNodeConfigSource = map[string]string{ - "": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.", - "namespace": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", - "name": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", - "uid": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", - "resourceVersion": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", - "kubeletConfigKey": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", -} - -func (ConfigMapNodeConfigSource) SwaggerDoc() map[string]string { - return map_ConfigMapNodeConfigSource -} - -var map_ConfigMapProjection = map[string]string{ - "": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", - "items": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "optional": "Specify whether the ConfigMap or its keys must be defined", -} - -func (ConfigMapProjection) SwaggerDoc() map[string]string { - return map_ConfigMapProjection -} - -var map_ConfigMapVolumeSource = map[string]string{ - "": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", - "items": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "defaultMode": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "optional": "Specify whether the ConfigMap or its keys must be defined", -} - -func (ConfigMapVolumeSource) SwaggerDoc() map[string]string { - return map_ConfigMapVolumeSource -} - -var map_Container = map[string]string{ - "": "A single application container that you want to run within a pod.", - "name": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", - "image": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", - "command": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "args": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "workingDir": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "ports": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", - "envFrom": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "env": "List of environment variables to set in the container. Cannot be updated.", - "resources": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", - "volumeMounts": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "volumeDevices": "volumeDevices is the list of block devices to be used by the container. This is a beta feature.", - "livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "readinessProbe": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "startupProbe": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "lifecycle": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", - "terminationMessagePath": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", - "terminationMessagePolicy": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", - "imagePullPolicy": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "securityContext": "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "stdin": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "stdinOnce": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "tty": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", -} - -func (Container) SwaggerDoc() map[string]string { - return map_Container -} - -var map_ContainerImage = map[string]string{ - "": "Describe a container image", - "names": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", - "sizeBytes": "The size of the image in bytes.", -} - -func (ContainerImage) SwaggerDoc() map[string]string { - return map_ContainerImage -} - -var map_ContainerPort = map[string]string{ - "": "ContainerPort represents a network port in a single container.", - "name": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", - "hostPort": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", - "containerPort": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", - "protocol": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", - "hostIP": "What host IP to bind the external port to.", -} - -func (ContainerPort) SwaggerDoc() map[string]string { - return map_ContainerPort -} - -var map_ContainerState = map[string]string{ - "": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", - "waiting": "Details about a waiting container", - "running": "Details about a running container", - "terminated": "Details about a terminated container", -} - -func (ContainerState) SwaggerDoc() map[string]string { - return map_ContainerState -} - -var map_ContainerStateRunning = map[string]string{ - "": "ContainerStateRunning is a running state of a container.", - "startedAt": "Time at which the container was last (re-)started", -} - -func (ContainerStateRunning) SwaggerDoc() map[string]string { - return map_ContainerStateRunning -} - -var map_ContainerStateTerminated = map[string]string{ - "": "ContainerStateTerminated is a terminated state of a container.", - "exitCode": "Exit status from the last termination of the container", - "signal": "Signal from the last termination of the container", - "reason": "(brief) reason from the last termination of the container", - "message": "Message regarding the last termination of the container", - "startedAt": "Time at which previous execution of the container started", - "finishedAt": "Time at which the container last terminated", - "containerID": "Container's ID in the format 'docker://'", -} - -func (ContainerStateTerminated) SwaggerDoc() map[string]string { - return map_ContainerStateTerminated -} - -var map_ContainerStateWaiting = map[string]string{ - "": "ContainerStateWaiting is a waiting state of a container.", - "reason": "(brief) reason the container is not yet running.", - "message": "Message regarding why the container is not yet running.", -} - -func (ContainerStateWaiting) SwaggerDoc() map[string]string { - return map_ContainerStateWaiting -} - -var map_ContainerStatus = map[string]string{ - "": "ContainerStatus contains details for the current status of this container.", - "name": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", - "state": "Details about the container's current condition.", - "lastState": "Details about the container's last termination condition.", - "ready": "Specifies whether the container has passed its readiness probe.", - "restartCount": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.", - "image": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images", - "imageID": "ImageID of the container's image.", - "containerID": "Container's ID in the format 'docker://'.", - "started": "Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.", -} - -func (ContainerStatus) SwaggerDoc() map[string]string { - return map_ContainerStatus -} - -var map_DaemonEndpoint = map[string]string{ - "": "DaemonEndpoint contains information about a single Daemon endpoint.", - "Port": "Port number of the given endpoint.", -} - -func (DaemonEndpoint) SwaggerDoc() map[string]string { - return map_DaemonEndpoint -} - -var map_DownwardAPIProjection = map[string]string{ - "": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", - "items": "Items is a list of DownwardAPIVolume file", -} - -func (DownwardAPIProjection) SwaggerDoc() map[string]string { - return map_DownwardAPIProjection -} - -var map_DownwardAPIVolumeFile = map[string]string{ - "": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "path": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "fieldRef": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", - "resourceFieldRef": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "mode": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", -} - -func (DownwardAPIVolumeFile) SwaggerDoc() map[string]string { - return map_DownwardAPIVolumeFile -} - -var map_DownwardAPIVolumeSource = map[string]string{ - "": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", - "items": "Items is a list of downward API volume file", - "defaultMode": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", -} - -func (DownwardAPIVolumeSource) SwaggerDoc() map[string]string { - return map_DownwardAPIVolumeSource -} - -var map_EmptyDirVolumeSource = map[string]string{ - "": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", - "medium": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "sizeLimit": "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir", -} - -func (EmptyDirVolumeSource) SwaggerDoc() map[string]string { - return map_EmptyDirVolumeSource -} - -var map_EndpointAddress = map[string]string{ - "": "EndpointAddress is a tuple that describes single IP address.", - "ip": "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", - "hostname": "The Hostname of this endpoint", - "nodeName": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", - "targetRef": "Reference to object providing the endpoint.", -} - -func (EndpointAddress) SwaggerDoc() map[string]string { - return map_EndpointAddress -} - -var map_EndpointPort = map[string]string{ - "": "EndpointPort is a tuple that describes a single port.", - "name": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", - "port": "The port number of the endpoint.", - "protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", -} - -func (EndpointPort) SwaggerDoc() map[string]string { - return map_EndpointPort -} - -var map_EndpointSubset = map[string]string{ - "": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", - "addresses": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", - "notReadyAddresses": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", - "ports": "Port numbers available on the related IP addresses.", -} - -func (EndpointSubset) SwaggerDoc() map[string]string { - return map_EndpointSubset -} - -var map_Endpoints = map[string]string{ - "": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "subsets": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", -} - -func (Endpoints) SwaggerDoc() map[string]string { - return map_Endpoints -} - -var map_EndpointsList = map[string]string{ - "": "EndpointsList is a list of endpoints.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of endpoints.", -} - -func (EndpointsList) SwaggerDoc() map[string]string { - return map_EndpointsList -} - -var map_EnvFromSource = map[string]string{ - "": "EnvFromSource represents the source of a set of ConfigMaps", - "prefix": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "configMapRef": "The ConfigMap to select from", - "secretRef": "The Secret to select from", -} - -func (EnvFromSource) SwaggerDoc() map[string]string { - return map_EnvFromSource -} - -var map_EnvVar = map[string]string{ - "": "EnvVar represents an environment variable present in a Container.", - "name": "Name of the environment variable. Must be a C_IDENTIFIER.", - "value": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", - "valueFrom": "Source for the environment variable's value. Cannot be used if value is not empty.", -} - -func (EnvVar) SwaggerDoc() map[string]string { - return map_EnvVar -} - -var map_EnvVarSource = map[string]string{ - "": "EnvVarSource represents a source for the value of an EnvVar.", - "fieldRef": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.", - "resourceFieldRef": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "configMapKeyRef": "Selects a key of a ConfigMap.", - "secretKeyRef": "Selects a key of a secret in the pod's namespace", -} - -func (EnvVarSource) SwaggerDoc() map[string]string { - return map_EnvVarSource -} - -var map_EphemeralContainer = map[string]string{ - "": "An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag.", - "targetContainerName": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature.", -} - -func (EphemeralContainer) SwaggerDoc() map[string]string { - return map_EphemeralContainer -} - -var map_EphemeralContainerCommon = map[string]string{ - "": "EphemeralContainerCommon is a copy of all fields in Container to be inlined in EphemeralContainer. This separate type allows easy conversion from EphemeralContainer to Container and allows separate documentation for the fields of EphemeralContainer. When a new field is added to Container it must be added here as well.", - "name": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", - "image": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images", - "command": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "args": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "workingDir": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", - "ports": "Ports are not allowed for ephemeral containers.", - "envFrom": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - "env": "List of environment variables to set in the container. Cannot be updated.", - "resources": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", - "volumeMounts": "Pod volumes to mount into the container's filesystem. Cannot be updated.", - "volumeDevices": "volumeDevices is the list of block devices to be used by the container. This is a beta feature.", - "livenessProbe": "Probes are not allowed for ephemeral containers.", - "readinessProbe": "Probes are not allowed for ephemeral containers.", - "startupProbe": "Probes are not allowed for ephemeral containers.", - "lifecycle": "Lifecycle is not allowed for ephemeral containers.", - "terminationMessagePath": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", - "terminationMessagePolicy": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", - "imagePullPolicy": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "securityContext": "SecurityContext is not allowed for ephemeral containers.", - "stdin": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", - "stdinOnce": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", - "tty": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", -} - -func (EphemeralContainerCommon) SwaggerDoc() map[string]string { - return map_EphemeralContainerCommon -} - -var map_EphemeralContainers = map[string]string{ - "": "A list of ephemeral containers used with the Pod ephemeralcontainers subresource.", - "ephemeralContainers": "A list of ephemeral containers associated with this pod. New ephemeral containers may be appended to this list, but existing ephemeral containers may not be removed or modified.", -} - -func (EphemeralContainers) SwaggerDoc() map[string]string { - return map_EphemeralContainers -} - -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/sig-architecture/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 { - return map_Event -} - -var map_EventList = map[string]string{ - "": "EventList is a list of events.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of events", -} - -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 continuously for some time.", - "count": "Number of occurrences in this series up to the last heartbeat time", - "lastObservedTime": "Time of the last occurrence observed", - "state": "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18", -} - -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.", - "host": "Node name on which the event is generated.", -} - -func (EventSource) SwaggerDoc() map[string]string { - return map_EventSource -} - -var map_ExecAction = map[string]string{ - "": "ExecAction describes a \"run in container\" action.", - "command": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", -} - -func (ExecAction) SwaggerDoc() map[string]string { - return map_ExecAction -} - -var map_FCVolumeSource = map[string]string{ - "": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", - "targetWWNs": "Optional: FC target worldwide names (WWNs)", - "lun": "Optional: FC target lun number", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "wwids": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", -} - -func (FCVolumeSource) SwaggerDoc() map[string]string { - return map_FCVolumeSource -} - -var map_FlexPersistentVolumeSource = map[string]string{ - "": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", - "driver": "Driver is the name of the driver to use for this volume.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "secretRef": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "options": "Optional: Extra command options if any.", -} - -func (FlexPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_FlexPersistentVolumeSource -} - -var map_FlexVolumeSource = map[string]string{ - "": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - "driver": "Driver is the name of the driver to use for this volume.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "secretRef": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.", - "readOnly": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "options": "Optional: Extra command options if any.", -} - -func (FlexVolumeSource) SwaggerDoc() map[string]string { - return map_FlexVolumeSource -} - -var map_FlockerVolumeSource = map[string]string{ - "": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", - "datasetName": "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", - "datasetUUID": "UUID of the dataset. This is unique identifier of a Flocker dataset", -} - -func (FlockerVolumeSource) SwaggerDoc() map[string]string { - return map_FlockerVolumeSource -} - -var map_GCEPersistentDiskVolumeSource = map[string]string{ - "": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", - "pdName": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "partition": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", -} - -func (GCEPersistentDiskVolumeSource) SwaggerDoc() map[string]string { - return map_GCEPersistentDiskVolumeSource -} - -var map_GitRepoVolumeSource = map[string]string{ - "": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", - "repository": "Repository URL", - "revision": "Commit hash for the specified revision.", - "directory": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", -} - -func (GitRepoVolumeSource) SwaggerDoc() map[string]string { - return map_GitRepoVolumeSource -} - -var map_GlusterfsPersistentVolumeSource = map[string]string{ - "": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "endpoints": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "path": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "readOnly": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "endpointsNamespace": "EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", -} - -func (GlusterfsPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_GlusterfsPersistentVolumeSource -} - -var map_GlusterfsVolumeSource = map[string]string{ - "": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", - "endpoints": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "path": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "readOnly": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", -} - -func (GlusterfsVolumeSource) SwaggerDoc() map[string]string { - return map_GlusterfsVolumeSource -} - -var map_HTTPGetAction = map[string]string{ - "": "HTTPGetAction describes an action based on HTTP Get requests.", - "path": "Path to access on the HTTP server.", - "port": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "host": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", - "scheme": "Scheme to use for connecting to the host. Defaults to HTTP.", - "httpHeaders": "Custom headers to set in the request. HTTP allows repeated headers.", -} - -func (HTTPGetAction) SwaggerDoc() map[string]string { - return map_HTTPGetAction -} - -var map_HTTPHeader = map[string]string{ - "": "HTTPHeader describes a custom header to be used in HTTP probes", - "name": "The header field name", - "value": "The header field value", -} - -func (HTTPHeader) SwaggerDoc() map[string]string { - return map_HTTPHeader -} - -var map_Handler = map[string]string{ - "": "Handler defines a specific action that should be taken", - "exec": "One and only one of the following should be specified. Exec specifies the action to take.", - "httpGet": "HTTPGet specifies the http request to perform.", - "tcpSocket": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", -} - -func (Handler) SwaggerDoc() map[string]string { - return map_Handler -} - -var map_HostAlias = map[string]string{ - "": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", - "ip": "IP address of the host file entry.", - "hostnames": "Hostnames for the above IP address.", -} - -func (HostAlias) SwaggerDoc() map[string]string { - return map_HostAlias -} - -var map_HostPathVolumeSource = map[string]string{ - "": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", - "path": "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", -} - -func (HostPathVolumeSource) SwaggerDoc() map[string]string { - return map_HostPathVolumeSource -} - -var map_ISCSIPersistentVolumeSource = map[string]string{ - "": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", - "targetPortal": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "iqn": "Target iSCSI Qualified Name.", - "lun": "iSCSI Target Lun number.", - "iscsiInterface": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", - "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "portals": "iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "chapAuthDiscovery": "whether support iSCSI Discovery CHAP authentication", - "chapAuthSession": "whether support iSCSI Session CHAP authentication", - "secretRef": "CHAP Secret for iSCSI target and initiator authentication", - "initiatorName": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", -} - -func (ISCSIPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_ISCSIPersistentVolumeSource -} - -var map_ISCSIVolumeSource = map[string]string{ - "": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", - "targetPortal": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "iqn": "Target iSCSI Qualified Name.", - "lun": "iSCSI Target Lun number.", - "iscsiInterface": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", - "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", - "portals": "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", - "chapAuthDiscovery": "whether support iSCSI Discovery CHAP authentication", - "chapAuthSession": "whether support iSCSI Session CHAP authentication", - "secretRef": "CHAP Secret for iSCSI target and initiator authentication", - "initiatorName": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", -} - -func (ISCSIVolumeSource) SwaggerDoc() map[string]string { - return map_ISCSIVolumeSource -} - -var map_KeyToPath = map[string]string{ - "": "Maps a string key to a path within a volume.", - "key": "The key to project.", - "path": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", - "mode": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", -} - -func (KeyToPath) SwaggerDoc() map[string]string { - return map_KeyToPath -} - -var map_Lifecycle = map[string]string{ - "": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", - "postStart": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "preStop": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", -} - -func (Lifecycle) SwaggerDoc() map[string]string { - return map_Lifecycle -} - -var map_LimitRange = map[string]string{ - "": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (LimitRange) SwaggerDoc() map[string]string { - return map_LimitRange -} - -var map_LimitRangeItem = map[string]string{ - "": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", - "type": "Type of resource that this limit applies to.", - "max": "Max usage constraints on this kind by resource name.", - "min": "Min usage constraints on this kind by resource name.", - "default": "Default resource requirement limit value by resource name if resource limit is omitted.", - "defaultRequest": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", - "maxLimitRequestRatio": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", -} - -func (LimitRangeItem) SwaggerDoc() map[string]string { - return map_LimitRangeItem -} - -var map_LimitRangeList = map[string]string{ - "": "LimitRangeList is a list of LimitRange items.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", -} - -func (LimitRangeList) SwaggerDoc() map[string]string { - return map_LimitRangeList -} - -var map_LimitRangeSpec = map[string]string{ - "": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", - "limits": "Limits is the list of LimitRangeItem objects that are enforced.", -} - -func (LimitRangeSpec) SwaggerDoc() map[string]string { - return map_LimitRangeSpec -} - -var map_LoadBalancerIngress = map[string]string{ - "": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", - "ip": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", - "hostname": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", -} - -func (LoadBalancerIngress) SwaggerDoc() map[string]string { - return map_LoadBalancerIngress -} - -var map_LoadBalancerStatus = map[string]string{ - "": "LoadBalancerStatus represents the status of a load-balancer.", - "ingress": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", -} - -func (LoadBalancerStatus) SwaggerDoc() map[string]string { - return map_LoadBalancerStatus -} - -var map_LocalObjectReference = map[string]string{ - "": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "name": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", -} - -func (LocalObjectReference) SwaggerDoc() map[string]string { - return map_LocalObjectReference -} - -var map_LocalVolumeSource = map[string]string{ - "": "Local represents directly-attached storage with node affinity (Beta feature)", - "path": "The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", - "fsType": "Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified.", -} - -func (LocalVolumeSource) SwaggerDoc() map[string]string { - return map_LocalVolumeSource -} - -var map_NFSVolumeSource = map[string]string{ - "": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", - "server": "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "path": "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "readOnly": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", -} - -func (NFSVolumeSource) SwaggerDoc() map[string]string { - return map_NFSVolumeSource -} - -var map_Namespace = map[string]string{ - "": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Namespace) SwaggerDoc() map[string]string { - return map_Namespace -} - -var map_NamespaceCondition = map[string]string{ - "": "NamespaceCondition contains details about state of namespace.", - "type": "Type of namespace controller condition.", - "status": "Status of the condition, one of True, False, Unknown.", -} - -func (NamespaceCondition) SwaggerDoc() map[string]string { - return map_NamespaceCondition -} - -var map_NamespaceList = map[string]string{ - "": "NamespaceList is a list of Namespaces.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", -} - -func (NamespaceList) SwaggerDoc() map[string]string { - return map_NamespaceList -} - -var map_NamespaceSpec = map[string]string{ - "": "NamespaceSpec describes the attributes on a Namespace.", - "finalizers": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", -} - -func (NamespaceSpec) SwaggerDoc() map[string]string { - return map_NamespaceSpec -} - -var map_NamespaceStatus = map[string]string{ - "": "NamespaceStatus is information about the current status of a Namespace.", - "phase": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "conditions": "Represents the latest available observations of a namespace's current state.", -} - -func (NamespaceStatus) SwaggerDoc() map[string]string { - return map_NamespaceStatus -} - -var map_Node = map[string]string{ - "": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Node) SwaggerDoc() map[string]string { - return map_Node -} - -var map_NodeAddress = map[string]string{ - "": "NodeAddress contains information for the node's address.", - "type": "Node address type, one of Hostname, ExternalIP or InternalIP.", - "address": "The node address.", -} - -func (NodeAddress) SwaggerDoc() map[string]string { - return map_NodeAddress -} - -var map_NodeAffinity = map[string]string{ - "": "Node affinity is a group of node affinity scheduling rules.", - "requiredDuringSchedulingIgnoredDuringExecution": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", - "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", -} - -func (NodeAffinity) SwaggerDoc() map[string]string { - return map_NodeAffinity -} - -var map_NodeCondition = map[string]string{ - "": "NodeCondition contains condition information for a node.", - "type": "Type of node condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastHeartbeatTime": "Last time we got an update on a given condition.", - "lastTransitionTime": "Last time the condition transit from one status to another.", - "reason": "(brief) reason for the condition's last transition.", - "message": "Human readable message indicating details about last transition.", -} - -func (NodeCondition) SwaggerDoc() map[string]string { - return map_NodeCondition -} - -var map_NodeConfigSource = map[string]string{ - "": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.", - "configMap": "ConfigMap is a reference to a Node's ConfigMap", -} - -func (NodeConfigSource) SwaggerDoc() map[string]string { - return map_NodeConfigSource -} - -var map_NodeConfigStatus = map[string]string{ - "": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", - "assigned": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned.", - "active": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.", - "lastKnownGood": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future.", - "error": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", -} - -func (NodeConfigStatus) SwaggerDoc() map[string]string { - return map_NodeConfigStatus -} - -var map_NodeDaemonEndpoints = map[string]string{ - "": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", - "kubeletEndpoint": "Endpoint on which Kubelet is listening.", -} - -func (NodeDaemonEndpoints) SwaggerDoc() map[string]string { - return map_NodeDaemonEndpoints -} - -var map_NodeList = map[string]string{ - "": "NodeList is the whole list of all Nodes which have been registered with master.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of nodes", -} - -func (NodeList) SwaggerDoc() map[string]string { - return map_NodeList -} - -var map_NodeProxyOptions = map[string]string{ - "": "NodeProxyOptions is the query options to a Node's proxy call.", - "path": "Path is the URL path to use for the current proxy request to node.", -} - -func (NodeProxyOptions) SwaggerDoc() map[string]string { - return map_NodeProxyOptions -} - -var map_NodeResources = map[string]string{ - "": "NodeResources is an object for conveying resource information about a node. see http://releases.k8s.io/HEAD/docs/design/resources.md for more details.", - "Capacity": "Capacity represents the available resources of a node", -} - -func (NodeResources) SwaggerDoc() map[string]string { - return map_NodeResources -} - -var map_NodeSelector = map[string]string{ - "": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", - "nodeSelectorTerms": "Required. A list of node selector terms. The terms are ORed.", -} - -func (NodeSelector) SwaggerDoc() map[string]string { - return map_NodeSelector -} - -var map_NodeSelectorRequirement = map[string]string{ - "": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "key": "The label key that the selector applies to.", - "operator": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "values": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", -} - -func (NodeSelectorRequirement) SwaggerDoc() map[string]string { - return map_NodeSelectorRequirement -} - -var map_NodeSelectorTerm = map[string]string{ - "": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "matchExpressions": "A list of node selector requirements by node's labels.", - "matchFields": "A list of node selector requirements by node's fields.", -} - -func (NodeSelectorTerm) SwaggerDoc() map[string]string { - return map_NodeSelectorTerm -} - -var map_NodeSpec = map[string]string{ - "": "NodeSpec describes the attributes that a node is created with.", - "podCIDR": "PodCIDR represents the pod IP range assigned to the node.", - "podCIDRs": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", - "providerID": "ID of the node assigned by the cloud provider in the format: ://", - "unschedulable": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", - "taints": "If specified, the node's taints.", - "configSource": "If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field", - "externalID": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", -} - -func (NodeSpec) SwaggerDoc() map[string]string { - return map_NodeSpec -} - -var map_NodeStatus = map[string]string{ - "": "NodeStatus is information about the current status of a node.", - "capacity": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "allocatable": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", - "phase": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", - "conditions": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", - "addresses": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", - "daemonEndpoints": "Endpoints of daemons running on the Node.", - "nodeInfo": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", - "images": "List of container images on this node", - "volumesInUse": "List of attachable volumes in use (mounted) by the node.", - "volumesAttached": "List of volumes that are attached to the node.", - "config": "Status of the config assigned to the node via the dynamic Kubelet config feature.", -} - -func (NodeStatus) SwaggerDoc() map[string]string { - return map_NodeStatus -} - -var map_NodeSystemInfo = map[string]string{ - "": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", - "machineID": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", - "systemUUID": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html", - "bootID": "Boot ID reported by the node.", - "kernelVersion": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", - "osImage": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", - "containerRuntimeVersion": "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).", - "kubeletVersion": "Kubelet Version reported by the node.", - "kubeProxyVersion": "KubeProxy Version reported by the node.", - "operatingSystem": "The Operating System reported by the node", - "architecture": "The Architecture reported by the node", -} - -func (NodeSystemInfo) SwaggerDoc() map[string]string { - return map_NodeSystemInfo -} - -var map_ObjectFieldSelector = map[string]string{ - "": "ObjectFieldSelector selects an APIVersioned field of an object.", - "apiVersion": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "fieldPath": "Path of the field to select in the specified API version.", -} - -func (ObjectFieldSelector) SwaggerDoc() map[string]string { - return map_ObjectFieldSelector -} - -var map_ObjectReference = map[string]string{ - "": "ObjectReference contains enough information to let you inspect or modify the referred object.", - "kind": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "namespace": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "name": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "uid": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", - "apiVersion": "API version of the referent.", - "resourceVersion": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "fieldPath": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", -} - -func (ObjectReference) SwaggerDoc() map[string]string { - return map_ObjectReference -} - -var map_PersistentVolume = map[string]string{ - "": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes", - "status": "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes", -} - -func (PersistentVolume) SwaggerDoc() map[string]string { - return map_PersistentVolume -} - -var map_PersistentVolumeClaim = map[string]string{ - "": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "status": "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", -} - -func (PersistentVolumeClaim) SwaggerDoc() map[string]string { - return map_PersistentVolumeClaim -} - -var map_PersistentVolumeClaimCondition = map[string]string{ - "": "PersistentVolumeClaimCondition contails details about state of pvc", - "lastProbeTime": "Last time we probed the condition.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.", - "message": "Human-readable message indicating details about last transition.", -} - -func (PersistentVolumeClaimCondition) SwaggerDoc() map[string]string { - return map_PersistentVolumeClaimCondition -} - -var map_PersistentVolumeClaimList = map[string]string{ - "": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", -} - -func (PersistentVolumeClaimList) SwaggerDoc() map[string]string { - return map_PersistentVolumeClaimList -} - -var map_PersistentVolumeClaimSpec = map[string]string{ - "": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", - "accessModes": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "selector": "A label query over volumes to consider for binding.", - "resources": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "volumeName": "VolumeName is the binding reference to the PersistentVolume backing this claim.", - "storageClassName": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "volumeMode": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature.", - "dataSource": "This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.", -} - -func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string { - return map_PersistentVolumeClaimSpec -} - -var map_PersistentVolumeClaimStatus = map[string]string{ - "": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", - "phase": "Phase represents the current phase of PersistentVolumeClaim.", - "accessModes": "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "capacity": "Represents the actual resources of the underlying volume.", - "conditions": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", -} - -func (PersistentVolumeClaimStatus) SwaggerDoc() map[string]string { - return map_PersistentVolumeClaimStatus -} - -var map_PersistentVolumeClaimVolumeSource = map[string]string{ - "": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", - "claimName": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "readOnly": "Will force the ReadOnly setting in VolumeMounts. Default false.", -} - -func (PersistentVolumeClaimVolumeSource) SwaggerDoc() map[string]string { - return map_PersistentVolumeClaimVolumeSource -} - -var map_PersistentVolumeList = map[string]string{ - "": "PersistentVolumeList is a list of PersistentVolume items.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", -} - -func (PersistentVolumeList) SwaggerDoc() map[string]string { - return map_PersistentVolumeList -} - -var map_PersistentVolumeSource = map[string]string{ - "": "PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.", - "gcePersistentDisk": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "awsElasticBlockStore": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "hostPath": "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "glusterfs": "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", - "nfs": "NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "rbd": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", - "iscsi": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.", - "cinder": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "cephfs": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "fc": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "flocker": "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", - "flexVolume": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - "azureFile": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "vsphereVolume": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "quobyte": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "azureDisk": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "photonPersistentDisk": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "portworxVolume": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "scaleIO": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "local": "Local represents directly-attached storage with node affinity", - "storageos": "StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", - "csi": "CSI represents storage that is handled by an external CSI driver (Beta feature).", -} - -func (PersistentVolumeSource) SwaggerDoc() map[string]string { - return map_PersistentVolumeSource -} - -var map_PersistentVolumeSpec = map[string]string{ - "": "PersistentVolumeSpec is the specification of a persistent volume.", - "capacity": "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", - "accessModes": "AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", - "claimRef": "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", - "persistentVolumeReclaimPolicy": "What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", - "storageClassName": "Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", - "mountOptions": "A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", - "volumeMode": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature.", - "nodeAffinity": "NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.", -} - -func (PersistentVolumeSpec) SwaggerDoc() map[string]string { - return map_PersistentVolumeSpec -} - -var map_PersistentVolumeStatus = map[string]string{ - "": "PersistentVolumeStatus is the current status of a persistent volume.", - "phase": "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", - "message": "A human-readable message indicating details about why the volume is in this state.", - "reason": "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", -} - -func (PersistentVolumeStatus) SwaggerDoc() map[string]string { - return map_PersistentVolumeStatus -} - -var map_PhotonPersistentDiskVolumeSource = map[string]string{ - "": "Represents a Photon Controller persistent disk resource.", - "pdID": "ID that identifies Photon Controller persistent disk", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", -} - -func (PhotonPersistentDiskVolumeSource) SwaggerDoc() map[string]string { - return map_PhotonPersistentDiskVolumeSource -} - -var map_Pod = map[string]string{ - "": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Pod) SwaggerDoc() map[string]string { - return map_Pod -} - -var map_PodAffinity = map[string]string{ - "": "Pod affinity is a group of inter pod affinity scheduling rules.", - "requiredDuringSchedulingIgnoredDuringExecution": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", -} - -func (PodAffinity) SwaggerDoc() map[string]string { - return map_PodAffinity -} - -var map_PodAffinityTerm = map[string]string{ - "": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", - "labelSelector": "A label query over a set of resources, in this case pods.", - "namespaces": "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"", - "topologyKey": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", -} - -func (PodAffinityTerm) SwaggerDoc() map[string]string { - return map_PodAffinityTerm -} - -var map_PodAntiAffinity = map[string]string{ - "": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", - "requiredDuringSchedulingIgnoredDuringExecution": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", - "preferredDuringSchedulingIgnoredDuringExecution": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", -} - -func (PodAntiAffinity) SwaggerDoc() map[string]string { - return map_PodAntiAffinity -} - -var map_PodAttachOptions = map[string]string{ - "": "PodAttachOptions is the query options to a Pod's remote attach call.", - "stdin": "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", - "stdout": "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", - "stderr": "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", - "tty": "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", - "container": "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", -} - -func (PodAttachOptions) SwaggerDoc() map[string]string { - return map_PodAttachOptions -} - -var map_PodCondition = map[string]string{ - "": "PodCondition contains details for the current condition of this pod.", - "type": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "status": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "lastProbeTime": "Last time we probed the condition.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "Unique, one-word, CamelCase reason for the condition's last transition.", - "message": "Human-readable message indicating details about last transition.", -} - -func (PodCondition) SwaggerDoc() map[string]string { - return map_PodCondition -} - -var map_PodDNSConfig = map[string]string{ - "": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", - "nameservers": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", - "searches": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", - "options": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", -} - -func (PodDNSConfig) SwaggerDoc() map[string]string { - return map_PodDNSConfig -} - -var map_PodDNSConfigOption = map[string]string{ - "": "PodDNSConfigOption defines DNS resolver options of a pod.", - "name": "Required.", -} - -func (PodDNSConfigOption) SwaggerDoc() map[string]string { - return map_PodDNSConfigOption -} - -var map_PodExecOptions = map[string]string{ - "": "PodExecOptions is the query options to a Pod's remote exec call.", - "stdin": "Redirect the standard input stream of the pod for this call. Defaults to false.", - "stdout": "Redirect the standard output stream of the pod for this call. Defaults to true.", - "stderr": "Redirect the standard error stream of the pod for this call. Defaults to true.", - "tty": "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", - "container": "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", - "command": "Command is the remote command to execute. argv array. Not executed within a shell.", -} - -func (PodExecOptions) SwaggerDoc() map[string]string { - return map_PodExecOptions -} - -var map_PodIP = map[string]string{ - "": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.", - "ip": "ip is an IP address (IPv4 or IPv6) assigned to the pod", -} - -func (PodIP) SwaggerDoc() map[string]string { - return map_PodIP -} - -var map_PodList = map[string]string{ - "": "PodList is a list of Pods.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", -} - -func (PodList) SwaggerDoc() map[string]string { - return map_PodList -} - -var map_PodLogOptions = map[string]string{ - "": "PodLogOptions is the query options for a Pod's logs REST call.", - "container": "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - "follow": "Follow the log stream of the pod. Defaults to false.", - "previous": "Return previous terminated container logs. Defaults to false.", - "sinceSeconds": "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - "sinceTime": "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - "timestamps": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - "tailLines": "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - "limitBytes": "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", -} - -func (PodLogOptions) SwaggerDoc() map[string]string { - return map_PodLogOptions -} - -var map_PodPortForwardOptions = map[string]string{ - "": "PodPortForwardOptions is the query options to a Pod's port forward call when using WebSockets. The `port` query parameter must specify the port or ports (comma separated) to forward over. Port forwarding over SPDY does not use these options. It requires the port to be passed in the `port` header as part of request.", - "ports": "List of ports to forward Required when using WebSockets", -} - -func (PodPortForwardOptions) SwaggerDoc() map[string]string { - return map_PodPortForwardOptions -} - -var map_PodProxyOptions = map[string]string{ - "": "PodProxyOptions is the query options to a Pod's proxy call.", - "path": "Path is the URL path to use for the current proxy request to pod.", -} - -func (PodProxyOptions) SwaggerDoc() map[string]string { - return map_PodProxyOptions -} - -var map_PodReadinessGate = map[string]string{ - "": "PodReadinessGate contains the reference to a pod condition", - "conditionType": "ConditionType refers to a condition in the pod's condition list with matching type.", -} - -func (PodReadinessGate) SwaggerDoc() map[string]string { - return map_PodReadinessGate -} - -var map_PodSecurityContext = map[string]string{ - "": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", - "seLinuxOptions": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "windowsOptions": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "runAsUser": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "runAsGroup": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.", - "runAsNonRoot": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "supplementalGroups": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.", - "fsGroup": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw ", - "sysctls": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.", -} - -func (PodSecurityContext) SwaggerDoc() map[string]string { - return map_PodSecurityContext -} - -var map_PodSignature = map[string]string{ - "": "Describes the class of pods that should avoid this node. Exactly one field should be set.", - "podController": "Reference to controller whose pods should avoid this node.", -} - -func (PodSignature) SwaggerDoc() map[string]string { - return map_PodSignature -} - -var map_PodSpec = map[string]string{ - "": "PodSpec is a description of a pod.", - "volumes": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", - "initContainers": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", - "containers": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", - "ephemeralContainers": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature.", - "restartPolicy": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", - "terminationGracePeriodSeconds": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", - "activeDeadlineSeconds": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", - "dnsPolicy": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", - "nodeSelector": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", - "serviceAccountName": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", - "serviceAccount": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", - "automountServiceAccountToken": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - "nodeName": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", - "hostNetwork": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", - "hostPID": "Use the host's pid namespace. Optional: Default to false.", - "hostIPC": "Use the host's ipc namespace. Optional: Default to false.", - "shareProcessNamespace": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature.", - "securityContext": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - "imagePullSecrets": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", - "hostname": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", - "subdomain": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", - "affinity": "If specified, the pod's scheduling constraints", - "schedulerName": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", - "tolerations": "If specified, the pod's tolerations.", - "hostAliases": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", - "priorityClassName": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", - "priority": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", - "dnsConfig": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", - "readinessGates": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md", - "runtimeClassName": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.", - "enableServiceLinks": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", - "preemptionPolicy": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", - "overhead": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature.", - "topologySpreadConstraints": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread feature. All topologySpreadConstraints are ANDed.", -} - -func (PodSpec) SwaggerDoc() map[string]string { - return map_PodSpec -} - -var map_PodStatus = map[string]string{ - "": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", - "phase": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", - "conditions": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - "message": "A human readable message indicating details about why the pod is in this condition.", - "reason": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", - "nominatedNodeName": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", - "hostIP": "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", - "podIP": "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", - "podIPs": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", - "startTime": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - "initContainerStatuses": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "containerStatuses": "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - "qosClass": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md", - "ephemeralContainerStatuses": "Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature.", -} - -func (PodStatus) SwaggerDoc() map[string]string { - return map_PodStatus -} - -var map_PodStatusResult = map[string]string{ - "": "PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "status": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (PodStatusResult) SwaggerDoc() map[string]string { - return map_PodStatusResult -} - -var map_PodTemplate = map[string]string{ - "": "PodTemplate describes a template for creating copies of a predefined pod.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "template": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (PodTemplate) SwaggerDoc() map[string]string { - return map_PodTemplate -} - -var map_PodTemplateList = map[string]string{ - "": "PodTemplateList is a list of PodTemplates.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of pod templates", -} - -func (PodTemplateList) SwaggerDoc() map[string]string { - return map_PodTemplateList -} - -var map_PodTemplateSpec = map[string]string{ - "": "PodTemplateSpec describes the data a pod should have when created from a template", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (PodTemplateSpec) SwaggerDoc() map[string]string { - return map_PodTemplateSpec -} - -var map_PortworxVolumeSource = map[string]string{ - "": "PortworxVolumeSource represents a Portworx volume resource.", - "volumeID": "VolumeID uniquely identifies a Portworx volume", - "fsType": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", -} - -func (PortworxVolumeSource) SwaggerDoc() map[string]string { - return map_PortworxVolumeSource -} - -var map_Preconditions = map[string]string{ - "": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "uid": "Specifies the target UID.", -} - -func (Preconditions) SwaggerDoc() map[string]string { - return map_Preconditions -} - -var map_PreferAvoidPodsEntry = map[string]string{ - "": "Describes a class of pods that should avoid this node.", - "podSignature": "The class of pods.", - "evictionTime": "Time at which this entry was added to the list.", - "reason": "(brief) reason why this entry was added to the list.", - "message": "Human readable message indicating why this entry was added to the list.", -} - -func (PreferAvoidPodsEntry) SwaggerDoc() map[string]string { - return map_PreferAvoidPodsEntry -} - -var map_PreferredSchedulingTerm = map[string]string{ - "": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "weight": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "preference": "A node selector term, associated with the corresponding weight.", -} - -func (PreferredSchedulingTerm) SwaggerDoc() map[string]string { - return map_PreferredSchedulingTerm -} - -var map_Probe = map[string]string{ - "": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", - "initialDelaySeconds": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "timeoutSeconds": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "periodSeconds": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", - "successThreshold": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "failureThreshold": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", -} - -func (Probe) SwaggerDoc() map[string]string { - return map_Probe -} - -var map_ProjectedVolumeSource = map[string]string{ - "": "Represents a projected volume source", - "sources": "list of volume projections", - "defaultMode": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", -} - -func (ProjectedVolumeSource) SwaggerDoc() map[string]string { - return map_ProjectedVolumeSource -} - -var map_QuobyteVolumeSource = map[string]string{ - "": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", - "registry": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", - "volume": "Volume is a string that references an already created Quobyte volume by name.", - "readOnly": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", - "user": "User to map volume access to Defaults to serivceaccount user", - "group": "Group to map volume access to Default is no group", - "tenant": "Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", -} - -func (QuobyteVolumeSource) SwaggerDoc() map[string]string { - return map_QuobyteVolumeSource -} - -var map_RBDPersistentVolumeSource = map[string]string{ - "": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", - "monitors": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "image": "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", - "pool": "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "user": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "keyring": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "secretRef": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", -} - -func (RBDPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_RBDPersistentVolumeSource -} - -var map_RBDVolumeSource = map[string]string{ - "": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", - "monitors": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "image": "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "fsType": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", - "pool": "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "user": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "keyring": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "secretRef": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "readOnly": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", -} - -func (RBDVolumeSource) SwaggerDoc() map[string]string { - return map_RBDVolumeSource -} - -var map_RangeAllocation = map[string]string{ - "": "RangeAllocation is not a public type.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "range": "Range is string that identifies the range represented by 'data'.", - "data": "Data is a bit array containing all allocated addresses in the previous segment.", -} - -func (RangeAllocation) SwaggerDoc() map[string]string { - return map_RangeAllocation -} - -var map_ReplicationController = map[string]string{ - "": "ReplicationController represents the configuration of a replication controller.", - "metadata": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (ReplicationController) SwaggerDoc() map[string]string { - return map_ReplicationController -} - -var map_ReplicationControllerCondition = map[string]string{ - "": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", - "type": "Type of replication controller condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "The last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (ReplicationControllerCondition) SwaggerDoc() map[string]string { - return map_ReplicationControllerCondition -} - -var map_ReplicationControllerList = map[string]string{ - "": "ReplicationControllerList is a collection of replication controllers.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", -} - -func (ReplicationControllerList) SwaggerDoc() map[string]string { - return map_ReplicationControllerList -} - -var map_ReplicationControllerSpec = map[string]string{ - "": "ReplicationControllerSpec is the specification of a replication controller.", - "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 Replicas count. If 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 replication controller, if empty defaulted to labels on Pod template. 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. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", -} - -func (ReplicationControllerSpec) SwaggerDoc() map[string]string { - return map_ReplicationControllerSpec -} - -var map_ReplicationControllerStatus = map[string]string{ - "": "ReplicationControllerStatus represents the current status of a replication controller.", - "replicas": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", - "fullyLabeledReplicas": "The number of pods that have labels matching the labels of the pod template of the replication controller.", - "readyReplicas": "The number of ready replicas for this replication controller.", - "availableReplicas": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", - "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed replication controller.", - "conditions": "Represents the latest available observations of a replication controller's current state.", -} - -func (ReplicationControllerStatus) SwaggerDoc() map[string]string { - return map_ReplicationControllerStatus -} - -var map_ResourceFieldSelector = map[string]string{ - "": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", - "containerName": "Container name: required for volumes, optional for env vars", - "resource": "Required: resource to select", - "divisor": "Specifies the output format of the exposed resources, defaults to \"1\"", -} - -func (ResourceFieldSelector) SwaggerDoc() map[string]string { - return map_ResourceFieldSelector -} - -var map_ResourceQuota = map[string]string{ - "": "ResourceQuota sets aggregate quota restrictions enforced per namespace", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (ResourceQuota) SwaggerDoc() map[string]string { - return map_ResourceQuota -} - -var map_ResourceQuotaList = map[string]string{ - "": "ResourceQuotaList is a list of ResourceQuota items.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", -} - -func (ResourceQuotaList) SwaggerDoc() map[string]string { - return map_ResourceQuotaList -} - -var map_ResourceQuotaSpec = map[string]string{ - "": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", - "hard": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", - "scopes": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", - "scopeSelector": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.", -} - -func (ResourceQuotaSpec) SwaggerDoc() map[string]string { - return map_ResourceQuotaSpec -} - -var map_ResourceQuotaStatus = map[string]string{ - "": "ResourceQuotaStatus defines the enforced hard limits and observed use.", - "hard": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", - "used": "Used is the current observed total usage of the resource in the namespace.", -} - -func (ResourceQuotaStatus) SwaggerDoc() map[string]string { - return map_ResourceQuotaStatus -} - -var map_ResourceRequirements = map[string]string{ - "": "ResourceRequirements describes the compute resource requirements.", - "limits": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", - "requests": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/", -} - -func (ResourceRequirements) SwaggerDoc() map[string]string { - return map_ResourceRequirements -} - -var map_SELinuxOptions = map[string]string{ - "": "SELinuxOptions are the labels to be applied to the container", - "user": "User is a SELinux user label that applies to the container.", - "role": "Role is a SELinux role label that applies to the container.", - "type": "Type is a SELinux type label that applies to the container.", - "level": "Level is SELinux level label that applies to the container.", -} - -func (SELinuxOptions) SwaggerDoc() map[string]string { - return map_SELinuxOptions -} - -var map_ScaleIOPersistentVolumeSource = map[string]string{ - "": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", - "gateway": "The host address of the ScaleIO API Gateway.", - "system": "The name of the storage system as configured in ScaleIO.", - "secretRef": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "sslEnabled": "Flag to enable/disable SSL communication with Gateway, default false", - "protectionDomain": "The name of the ScaleIO Protection Domain for the configured storage.", - "storagePool": "The ScaleIO Storage Pool associated with the protection domain.", - "storageMode": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - "volumeName": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", -} - -func (ScaleIOPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_ScaleIOPersistentVolumeSource -} - -var map_ScaleIOVolumeSource = map[string]string{ - "": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "gateway": "The host address of the ScaleIO API Gateway.", - "system": "The name of the storage system as configured in ScaleIO.", - "secretRef": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - "sslEnabled": "Flag to enable/disable SSL communication with Gateway, default false", - "protectionDomain": "The name of the ScaleIO Protection Domain for the configured storage.", - "storagePool": "The ScaleIO Storage Pool associated with the protection domain.", - "storageMode": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - "volumeName": "The name of a volume already created in the ScaleIO system that is associated with this volume source.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", -} - -func (ScaleIOVolumeSource) SwaggerDoc() map[string]string { - return map_ScaleIOVolumeSource -} - -var map_ScopeSelector = map[string]string{ - "": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", - "matchExpressions": "A list of scope selector requirements by scope of the resources.", -} - -func (ScopeSelector) SwaggerDoc() map[string]string { - return map_ScopeSelector -} - -var map_ScopedResourceSelectorRequirement = map[string]string{ - "": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", - "scopeName": "The name of the scope that the selector applies to.", - "operator": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", - "values": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", -} - -func (ScopedResourceSelectorRequirement) SwaggerDoc() map[string]string { - return map_ScopedResourceSelectorRequirement -} - -var map_Secret = map[string]string{ - "": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "data": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - "stringData": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.", - "type": "Used to facilitate programmatic handling of secret data.", -} - -func (Secret) SwaggerDoc() map[string]string { - return map_Secret -} - -var map_SecretEnvSource = map[string]string{ - "": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", - "optional": "Specify whether the Secret must be defined", -} - -func (SecretEnvSource) SwaggerDoc() map[string]string { - return map_SecretEnvSource -} - -var map_SecretKeySelector = map[string]string{ - "": "SecretKeySelector selects a key of a Secret.", - "key": "The key of the secret to select from. Must be a valid secret key.", - "optional": "Specify whether the Secret or its key must be defined", -} - -func (SecretKeySelector) SwaggerDoc() map[string]string { - return map_SecretKeySelector -} - -var map_SecretList = map[string]string{ - "": "SecretList is a list of Secret.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", -} - -func (SecretList) SwaggerDoc() map[string]string { - return map_SecretList -} - -var map_SecretProjection = map[string]string{ - "": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", - "items": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "optional": "Specify whether the Secret or its key must be defined", -} - -func (SecretProjection) SwaggerDoc() map[string]string { - return map_SecretProjection -} - -var map_SecretReference = map[string]string{ - "": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", - "name": "Name is unique within a namespace to reference a secret resource.", - "namespace": "Namespace defines the space within which the secret name must be unique.", -} - -func (SecretReference) SwaggerDoc() map[string]string { - return map_SecretReference -} - -var map_SecretVolumeSource = map[string]string{ - "": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", - "secretName": "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "items": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", - "defaultMode": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - "optional": "Specify whether the Secret or its keys must be defined", -} - -func (SecretVolumeSource) SwaggerDoc() map[string]string { - return map_SecretVolumeSource -} - -var map_SecurityContext = map[string]string{ - "": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", - "capabilities": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.", - "privileged": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.", - "seLinuxOptions": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "windowsOptions": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "runAsUser": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "runAsGroup": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "runAsNonRoot": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - "readOnlyRootFilesystem": "Whether this container has a read-only root filesystem. Default is false.", - "allowPrivilegeEscalation": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN", - "procMount": "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled.", -} - -func (SecurityContext) SwaggerDoc() map[string]string { - return map_SecurityContext -} - -var map_SerializedReference = map[string]string{ - "": "SerializedReference is a reference to serialized object.", - "reference": "The reference to an object in the system.", -} - -func (SerializedReference) SwaggerDoc() map[string]string { - return map_SerializedReference -} - -var map_Service = map[string]string{ - "": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Service) SwaggerDoc() map[string]string { - return map_Service -} - -var map_ServiceAccount = map[string]string{ - "": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "secrets": "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret", - "imagePullSecrets": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", - "automountServiceAccountToken": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", -} - -func (ServiceAccount) SwaggerDoc() map[string]string { - return map_ServiceAccount -} - -var map_ServiceAccountList = map[string]string{ - "": "ServiceAccountList is a list of ServiceAccount objects", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", -} - -func (ServiceAccountList) SwaggerDoc() map[string]string { - return map_ServiceAccountList -} - -var map_ServiceAccountTokenProjection = map[string]string{ - "": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", - "audience": "Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", - "expirationSeconds": "ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", - "path": "Path is the path relative to the mount point of the file to project the token into.", -} - -func (ServiceAccountTokenProjection) SwaggerDoc() map[string]string { - return map_ServiceAccountTokenProjection -} - -var map_ServiceList = map[string]string{ - "": "ServiceList holds a list of services.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of services", -} - -func (ServiceList) SwaggerDoc() map[string]string { - return map_ServiceList -} - -var map_ServicePort = map[string]string{ - "": "ServicePort contains information on service's port.", - "name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", - "protocol": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", - "port": "The port that will be exposed by this service.", - "targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service", - "nodePort": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", -} - -func (ServicePort) SwaggerDoc() map[string]string { - return map_ServicePort -} - -var map_ServiceProxyOptions = map[string]string{ - "": "ServiceProxyOptions is the query options to a Service's proxy call.", - "path": "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", -} - -func (ServiceProxyOptions) SwaggerDoc() map[string]string { - return map_ServiceProxyOptions -} - -var map_ServiceSpec = map[string]string{ - "": "ServiceSpec describes the attributes that a user creates on a service.", - "ports": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - "selector": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", - "clusterIP": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - "type": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", - "externalIPs": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", - "sessionAffinity": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - "loadBalancerIP": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.", - "loadBalancerSourceRanges": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/", - "externalName": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName.", - "externalTrafficPolicy": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.", - "healthCheckNodePort": "healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local.", - "publishNotReadyAddresses": "publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery.", - "sessionAffinityConfig": "sessionAffinityConfig contains the configurations of session affinity.", - "ipFamily": "ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment.", -} - -func (ServiceSpec) SwaggerDoc() map[string]string { - return map_ServiceSpec -} - -var map_ServiceStatus = map[string]string{ - "": "ServiceStatus represents the current status of a service.", - "loadBalancer": "LoadBalancer contains the current status of the load-balancer, if one is present.", -} - -func (ServiceStatus) SwaggerDoc() map[string]string { - return map_ServiceStatus -} - -var map_SessionAffinityConfig = map[string]string{ - "": "SessionAffinityConfig represents the configurations of session affinity.", - "clientIP": "clientIP contains the configurations of Client IP based session affinity.", -} - -func (SessionAffinityConfig) SwaggerDoc() map[string]string { - return map_SessionAffinityConfig -} - -var map_StorageOSPersistentVolumeSource = map[string]string{ - "": "Represents a StorageOS persistent volume resource.", - "volumeName": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "volumeNamespace": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "secretRef": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", -} - -func (StorageOSPersistentVolumeSource) SwaggerDoc() map[string]string { - return map_StorageOSPersistentVolumeSource -} - -var map_StorageOSVolumeSource = map[string]string{ - "": "Represents a StorageOS persistent volume resource.", - "volumeName": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - "volumeNamespace": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - "secretRef": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", -} - -func (StorageOSVolumeSource) SwaggerDoc() map[string]string { - return map_StorageOSVolumeSource -} - -var map_Sysctl = map[string]string{ - "": "Sysctl defines a kernel parameter to be set", - "name": "Name of a property to set", - "value": "Value of a property to set", -} - -func (Sysctl) SwaggerDoc() map[string]string { - return map_Sysctl -} - -var map_TCPSocketAction = map[string]string{ - "": "TCPSocketAction describes an action based on opening a socket", - "port": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "host": "Optional: Host name to connect to, defaults to the pod IP.", -} - -func (TCPSocketAction) SwaggerDoc() map[string]string { - return map_TCPSocketAction -} - -var map_Taint = map[string]string{ - "": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", - "key": "Required. The taint key to be applied to a node.", - "value": "Required. The taint value corresponding to the taint key.", - "effect": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", - "timeAdded": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", -} - -func (Taint) SwaggerDoc() map[string]string { - return map_Taint -} - -var map_Toleration = map[string]string{ - "": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", - "key": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "operator": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", - "value": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", - "effect": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "tolerationSeconds": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", -} - -func (Toleration) SwaggerDoc() map[string]string { - return map_Toleration -} - -var map_TopologySelectorLabelRequirement = map[string]string{ - "": "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", - "key": "The label key that the selector applies to.", - "values": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", -} - -func (TopologySelectorLabelRequirement) SwaggerDoc() map[string]string { - return map_TopologySelectorLabelRequirement -} - -var map_TopologySelectorTerm = map[string]string{ - "": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", - "matchLabelExpressions": "A list of topology selector requirements by labels.", -} - -func (TopologySelectorTerm) SwaggerDoc() map[string]string { - return map_TopologySelectorTerm -} - -var map_TopologySpreadConstraint = map[string]string{ - "": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", - "maxSkew": "MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: ", - "topologyKey": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field.", - "whenUnsatisfiable": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as \"Unsatisfiable\" if and only if placing incoming pod on any topology violates \"MaxSkew\". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: ", - "labelSelector": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.", -} - -func (TopologySpreadConstraint) SwaggerDoc() map[string]string { - return map_TopologySpreadConstraint -} - -var map_TypedLocalObjectReference = map[string]string{ - "": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", - "apiGroup": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", - "kind": "Kind is the type of resource being referenced", - "name": "Name is the name of resource being referenced", -} - -func (TypedLocalObjectReference) SwaggerDoc() map[string]string { - return map_TypedLocalObjectReference -} - -var map_Volume = map[string]string{ - "": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "name": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", -} - -func (Volume) SwaggerDoc() map[string]string { - return map_Volume -} - -var map_VolumeDevice = map[string]string{ - "": "volumeDevice describes a mapping of a raw block device within a container.", - "name": "name must match the name of a persistentVolumeClaim in the pod", - "devicePath": "devicePath is the path inside of the container that the device will be mapped to.", -} - -func (VolumeDevice) SwaggerDoc() map[string]string { - return map_VolumeDevice -} - -var map_VolumeMount = map[string]string{ - "": "VolumeMount describes a mounting of a Volume within a container.", - "name": "This must match the Name of a Volume.", - "readOnly": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - "mountPath": "Path within the container at which the volume should be mounted. Must not contain ':'.", - "subPath": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", - "mountPropagation": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", - "subPathExpr": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15.", -} - -func (VolumeMount) SwaggerDoc() map[string]string { - return map_VolumeMount -} - -var map_VolumeNodeAffinity = map[string]string{ - "": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", - "required": "Required specifies hard node constraints that must be met.", -} - -func (VolumeNodeAffinity) SwaggerDoc() map[string]string { - return map_VolumeNodeAffinity -} - -var map_VolumeProjection = map[string]string{ - "": "Projection that may be projected along with other supported volume types", - "secret": "information about the secret data to project", - "downwardAPI": "information about the downwardAPI data to project", - "configMap": "information about the configMap data to project", - "serviceAccountToken": "information about the serviceAccountToken data to project", -} - -func (VolumeProjection) SwaggerDoc() map[string]string { - return map_VolumeProjection -} - -var map_VolumeSource = map[string]string{ - "": "Represents the source of a volume to mount. Only one of its members may be specified.", - "hostPath": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "emptyDir": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "gcePersistentDisk": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "awsElasticBlockStore": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "gitRepo": "GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", - "secret": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "nfs": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "iscsi": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", - "glusterfs": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", - "persistentVolumeClaim": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "rbd": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", - "flexVolume": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", - "cinder": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "cephfs": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "flocker": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "downwardAPI": "DownwardAPI represents downward API about the pod that should populate this volume", - "fc": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "azureFile": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "configMap": "ConfigMap represents a configMap that should populate this volume", - "vsphereVolume": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "quobyte": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "azureDisk": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "photonPersistentDisk": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "projected": "Items for all in one resources secrets, configmaps, and downward API", - "portworxVolume": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "scaleIO": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "storageos": "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "csi": "CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature).", -} - -func (VolumeSource) SwaggerDoc() map[string]string { - return map_VolumeSource -} - -var map_VsphereVirtualDiskVolumeSource = map[string]string{ - "": "Represents a vSphere volume resource.", - "volumePath": "Path that identifies vSphere volume vmdk", - "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "storagePolicyName": "Storage Policy Based Management (SPBM) profile name.", - "storagePolicyID": "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", -} - -func (VsphereVirtualDiskVolumeSource) SwaggerDoc() map[string]string { - return map_VsphereVirtualDiskVolumeSource -} - -var map_WeightedPodAffinityTerm = map[string]string{ - "": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "weight": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - "podAffinityTerm": "Required. A pod affinity term, associated with the corresponding weight.", -} - -func (WeightedPodAffinityTerm) SwaggerDoc() map[string]string { - return map_WeightedPodAffinityTerm -} - -var map_WindowsSecurityContextOptions = map[string]string{ - "": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", - "gmsaCredentialSpecName": "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", - "gmsaCredentialSpec": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", - "runAsUserName": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. This field is alpha-level and it is only honored by servers that enable the WindowsRunAsUserName feature flag.", -} - -func (WindowsSecurityContextOptions) SwaggerDoc() map[string]string { - return map_WindowsSecurityContextOptions -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/core/v1/well_known_labels.go b/pseudo/k8s/api/core/v1/well_known_labels.go deleted file mode 100644 index 3287fb51f..000000000 --- a/pseudo/k8s/api/core/v1/well_known_labels.go +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 2019 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 v1 - -const ( - LabelHostname = "kubernetes.io/hostname" - LabelZoneFailureDomain = "failure-domain.beta.kubernetes.io/zone" - LabelZoneRegion = "failure-domain.beta.kubernetes.io/region" - - LabelInstanceType = "beta.kubernetes.io/instance-type" - - LabelOSStable = "kubernetes.io/os" - LabelArchStable = "kubernetes.io/arch" - - // LabelNamespaceSuffixKubelet is an allowed label namespace suffix kubelets can self-set ([*.]kubelet.kubernetes.io/*) - LabelNamespaceSuffixKubelet = "kubelet.kubernetes.io" - // LabelNamespaceSuffixNode is an allowed label namespace suffix kubelets can self-set ([*.]node.kubernetes.io/*) - LabelNamespaceSuffixNode = "node.kubernetes.io" - - // LabelNamespaceNodeRestriction is a forbidden label namespace that kubelets may not self-set when the NodeRestriction admission plugin is enabled - LabelNamespaceNodeRestriction = "node-restriction.kubernetes.io" - - // IsHeadlessService is added by Controller to an Endpoint denoting if its parent - // Service is Headless. The existence of this label can be used further by other - // controllers and kube-proxy to check if the Endpoint objects should be replicated when - // using Headless Services - IsHeadlessService = "service.kubernetes.io/headless" -) diff --git a/pseudo/k8s/api/core/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/core/v1/zz_generated.deepcopy.go deleted file mode 100644 index 47874df04..000000000 --- a/pseudo/k8s/api/core/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,5771 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSElasticBlockStoreVolumeSource) DeepCopyInto(out *AWSElasticBlockStoreVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSElasticBlockStoreVolumeSource. -func (in *AWSElasticBlockStoreVolumeSource) DeepCopy() *AWSElasticBlockStoreVolumeSource { - if in == nil { - return nil - } - out := new(AWSElasticBlockStoreVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Affinity) DeepCopyInto(out *Affinity) { - *out = *in - if in.NodeAffinity != nil { - in, out := &in.NodeAffinity, &out.NodeAffinity - *out = new(NodeAffinity) - (*in).DeepCopyInto(*out) - } - if in.PodAffinity != nil { - in, out := &in.PodAffinity, &out.PodAffinity - *out = new(PodAffinity) - (*in).DeepCopyInto(*out) - } - if in.PodAntiAffinity != nil { - in, out := &in.PodAntiAffinity, &out.PodAntiAffinity - *out = new(PodAntiAffinity) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Affinity. -func (in *Affinity) DeepCopy() *Affinity { - if in == nil { - return nil - } - out := new(Affinity) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AttachedVolume) DeepCopyInto(out *AttachedVolume) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachedVolume. -func (in *AttachedVolume) DeepCopy() *AttachedVolume { - if in == nil { - return nil - } - out := new(AttachedVolume) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AvoidPods) DeepCopyInto(out *AvoidPods) { - *out = *in - if in.PreferAvoidPods != nil { - in, out := &in.PreferAvoidPods, &out.PreferAvoidPods - *out = make([]PreferAvoidPodsEntry, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AvoidPods. -func (in *AvoidPods) DeepCopy() *AvoidPods { - if in == nil { - return nil - } - out := new(AvoidPods) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AzureDiskVolumeSource) DeepCopyInto(out *AzureDiskVolumeSource) { - *out = *in - if in.CachingMode != nil { - in, out := &in.CachingMode, &out.CachingMode - *out = new(AzureDataDiskCachingMode) - **out = **in - } - if in.FSType != nil { - in, out := &in.FSType, &out.FSType - *out = new(string) - **out = **in - } - if in.ReadOnly != nil { - in, out := &in.ReadOnly, &out.ReadOnly - *out = new(bool) - **out = **in - } - if in.Kind != nil { - in, out := &in.Kind, &out.Kind - *out = new(AzureDataDiskKind) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureDiskVolumeSource. -func (in *AzureDiskVolumeSource) DeepCopy() *AzureDiskVolumeSource { - if in == nil { - return nil - } - out := new(AzureDiskVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AzureFilePersistentVolumeSource) DeepCopyInto(out *AzureFilePersistentVolumeSource) { - *out = *in - if in.SecretNamespace != nil { - in, out := &in.SecretNamespace, &out.SecretNamespace - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureFilePersistentVolumeSource. -func (in *AzureFilePersistentVolumeSource) DeepCopy() *AzureFilePersistentVolumeSource { - if in == nil { - return nil - } - out := new(AzureFilePersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AzureFileVolumeSource) DeepCopyInto(out *AzureFileVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureFileVolumeSource. -func (in *AzureFileVolumeSource) DeepCopy() *AzureFileVolumeSource { - if in == nil { - return nil - } - out := new(AzureFileVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Binding) DeepCopyInto(out *Binding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Target = in.Target - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding. -func (in *Binding) DeepCopy() *Binding { - if in == nil { - return nil - } - out := new(Binding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Binding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSIPersistentVolumeSource) DeepCopyInto(out *CSIPersistentVolumeSource) { - *out = *in - if in.VolumeAttributes != nil { - in, out := &in.VolumeAttributes, &out.VolumeAttributes - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.ControllerPublishSecretRef != nil { - in, out := &in.ControllerPublishSecretRef, &out.ControllerPublishSecretRef - *out = new(SecretReference) - **out = **in - } - if in.NodeStageSecretRef != nil { - in, out := &in.NodeStageSecretRef, &out.NodeStageSecretRef - *out = new(SecretReference) - **out = **in - } - if in.NodePublishSecretRef != nil { - in, out := &in.NodePublishSecretRef, &out.NodePublishSecretRef - *out = new(SecretReference) - **out = **in - } - if in.ControllerExpandSecretRef != nil { - in, out := &in.ControllerExpandSecretRef, &out.ControllerExpandSecretRef - *out = new(SecretReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIPersistentVolumeSource. -func (in *CSIPersistentVolumeSource) DeepCopy() *CSIPersistentVolumeSource { - if in == nil { - return nil - } - out := new(CSIPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSIVolumeSource) DeepCopyInto(out *CSIVolumeSource) { - *out = *in - if in.ReadOnly != nil { - in, out := &in.ReadOnly, &out.ReadOnly - *out = new(bool) - **out = **in - } - if in.FSType != nil { - in, out := &in.FSType, &out.FSType - *out = new(string) - **out = **in - } - if in.VolumeAttributes != nil { - in, out := &in.VolumeAttributes, &out.VolumeAttributes - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.NodePublishSecretRef != nil { - in, out := &in.NodePublishSecretRef, &out.NodePublishSecretRef - *out = new(LocalObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIVolumeSource. -func (in *CSIVolumeSource) DeepCopy() *CSIVolumeSource { - if in == nil { - return nil - } - out := new(CSIVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Capabilities) DeepCopyInto(out *Capabilities) { - *out = *in - if in.Add != nil { - in, out := &in.Add, &out.Add - *out = make([]Capability, len(*in)) - copy(*out, *in) - } - if in.Drop != nil { - in, out := &in.Drop, &out.Drop - *out = make([]Capability, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Capabilities. -func (in *Capabilities) DeepCopy() *Capabilities { - if in == nil { - return nil - } - out := new(Capabilities) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CephFSPersistentVolumeSource) DeepCopyInto(out *CephFSPersistentVolumeSource) { - *out = *in - if in.Monitors != nil { - in, out := &in.Monitors, &out.Monitors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephFSPersistentVolumeSource. -func (in *CephFSPersistentVolumeSource) DeepCopy() *CephFSPersistentVolumeSource { - if in == nil { - return nil - } - out := new(CephFSPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CephFSVolumeSource) DeepCopyInto(out *CephFSVolumeSource) { - *out = *in - if in.Monitors != nil { - in, out := &in.Monitors, &out.Monitors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephFSVolumeSource. -func (in *CephFSVolumeSource) DeepCopy() *CephFSVolumeSource { - if in == nil { - return nil - } - out := new(CephFSVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CinderPersistentVolumeSource) DeepCopyInto(out *CinderPersistentVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CinderPersistentVolumeSource. -func (in *CinderPersistentVolumeSource) DeepCopy() *CinderPersistentVolumeSource { - if in == nil { - return nil - } - out := new(CinderPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CinderVolumeSource) DeepCopyInto(out *CinderVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CinderVolumeSource. -func (in *CinderVolumeSource) DeepCopy() *CinderVolumeSource { - if in == nil { - return nil - } - out := new(CinderVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClientIPConfig) DeepCopyInto(out *ClientIPConfig) { - *out = *in - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientIPConfig. -func (in *ClientIPConfig) DeepCopy() *ClientIPConfig { - if in == nil { - return nil - } - out := new(ClientIPConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ComponentCondition) DeepCopyInto(out *ComponentCondition) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentCondition. -func (in *ComponentCondition) DeepCopy() *ComponentCondition { - if in == nil { - return nil - } - out := new(ComponentCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]ComponentCondition, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus. -func (in *ComponentStatus) DeepCopy() *ComponentStatus { - if in == nil { - return nil - } - out := new(ComponentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ComponentStatus) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ComponentStatusList) DeepCopyInto(out *ComponentStatusList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ComponentStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatusList. -func (in *ComponentStatusList) DeepCopy() *ComponentStatusList { - if in == nil { - return nil - } - out := new(ComponentStatusList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ComponentStatusList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMap) DeepCopyInto(out *ConfigMap) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Data != nil { - in, out := &in.Data, &out.Data - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.BinaryData != nil { - in, out := &in.BinaryData, &out.BinaryData - *out = make(map[string][]byte, len(*in)) - for key, val := range *in { - var outVal []byte - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]byte, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMap. -func (in *ConfigMap) DeepCopy() *ConfigMap { - if in == nil { - return nil - } - out := new(ConfigMap) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ConfigMap) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMapEnvSource) DeepCopyInto(out *ConfigMapEnvSource) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapEnvSource. -func (in *ConfigMapEnvSource) DeepCopy() *ConfigMapEnvSource { - if in == nil { - return nil - } - out := new(ConfigMapEnvSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMapKeySelector) DeepCopyInto(out *ConfigMapKeySelector) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapKeySelector. -func (in *ConfigMapKeySelector) DeepCopy() *ConfigMapKeySelector { - if in == nil { - return nil - } - out := new(ConfigMapKeySelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMapList) DeepCopyInto(out *ConfigMapList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ConfigMap, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapList. -func (in *ConfigMapList) DeepCopy() *ConfigMapList { - if in == nil { - return nil - } - out := new(ConfigMapList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ConfigMapList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMapNodeConfigSource) DeepCopyInto(out *ConfigMapNodeConfigSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapNodeConfigSource. -func (in *ConfigMapNodeConfigSource) DeepCopy() *ConfigMapNodeConfigSource { - if in == nil { - return nil - } - out := new(ConfigMapNodeConfigSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMapProjection) DeepCopyInto(out *ConfigMapProjection) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]KeyToPath, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapProjection. -func (in *ConfigMapProjection) DeepCopy() *ConfigMapProjection { - if in == nil { - return nil - } - out := new(ConfigMapProjection) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigMapVolumeSource) DeepCopyInto(out *ConfigMapVolumeSource) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]KeyToPath, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DefaultMode != nil { - in, out := &in.DefaultMode, &out.DefaultMode - *out = new(int32) - **out = **in - } - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapVolumeSource. -func (in *ConfigMapVolumeSource) DeepCopy() *ConfigMapVolumeSource { - if in == nil { - return nil - } - out := new(ConfigMapVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Container) DeepCopyInto(out *Container) { - *out = *in - if in.Command != nil { - in, out := &in.Command, &out.Command - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Args != nil { - in, out := &in.Args, &out.Args - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]ContainerPort, len(*in)) - copy(*out, *in) - } - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]EnvFromSource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.Resources.DeepCopyInto(&out.Resources) - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]VolumeMount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeDevices != nil { - in, out := &in.VolumeDevices, &out.VolumeDevices - *out = make([]VolumeDevice, len(*in)) - copy(*out, *in) - } - if in.LivenessProbe != nil { - in, out := &in.LivenessProbe, &out.LivenessProbe - *out = new(Probe) - (*in).DeepCopyInto(*out) - } - if in.ReadinessProbe != nil { - in, out := &in.ReadinessProbe, &out.ReadinessProbe - *out = new(Probe) - (*in).DeepCopyInto(*out) - } - if in.StartupProbe != nil { - in, out := &in.StartupProbe, &out.StartupProbe - *out = new(Probe) - (*in).DeepCopyInto(*out) - } - if in.Lifecycle != nil { - in, out := &in.Lifecycle, &out.Lifecycle - *out = new(Lifecycle) - (*in).DeepCopyInto(*out) - } - if in.SecurityContext != nil { - in, out := &in.SecurityContext, &out.SecurityContext - *out = new(SecurityContext) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Container. -func (in *Container) DeepCopy() *Container { - if in == nil { - return nil - } - out := new(Container) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerImage) DeepCopyInto(out *ContainerImage) { - *out = *in - if in.Names != nil { - in, out := &in.Names, &out.Names - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImage. -func (in *ContainerImage) DeepCopy() *ContainerImage { - if in == nil { - return nil - } - out := new(ContainerImage) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerPort) DeepCopyInto(out *ContainerPort) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerPort. -func (in *ContainerPort) DeepCopy() *ContainerPort { - if in == nil { - return nil - } - out := new(ContainerPort) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerState) DeepCopyInto(out *ContainerState) { - *out = *in - if in.Waiting != nil { - in, out := &in.Waiting, &out.Waiting - *out = new(ContainerStateWaiting) - **out = **in - } - if in.Running != nil { - in, out := &in.Running, &out.Running - *out = new(ContainerStateRunning) - (*in).DeepCopyInto(*out) - } - if in.Terminated != nil { - in, out := &in.Terminated, &out.Terminated - *out = new(ContainerStateTerminated) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerState. -func (in *ContainerState) DeepCopy() *ContainerState { - if in == nil { - return nil - } - out := new(ContainerState) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerStateRunning) DeepCopyInto(out *ContainerStateRunning) { - *out = *in - in.StartedAt.DeepCopyInto(&out.StartedAt) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerStateRunning. -func (in *ContainerStateRunning) DeepCopy() *ContainerStateRunning { - if in == nil { - return nil - } - out := new(ContainerStateRunning) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerStateTerminated) DeepCopyInto(out *ContainerStateTerminated) { - *out = *in - in.StartedAt.DeepCopyInto(&out.StartedAt) - in.FinishedAt.DeepCopyInto(&out.FinishedAt) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerStateTerminated. -func (in *ContainerStateTerminated) DeepCopy() *ContainerStateTerminated { - if in == nil { - return nil - } - out := new(ContainerStateTerminated) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerStateWaiting) DeepCopyInto(out *ContainerStateWaiting) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerStateWaiting. -func (in *ContainerStateWaiting) DeepCopy() *ContainerStateWaiting { - if in == nil { - return nil - } - out := new(ContainerStateWaiting) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus) { - *out = *in - in.State.DeepCopyInto(&out.State) - in.LastTerminationState.DeepCopyInto(&out.LastTerminationState) - if in.Started != nil { - in, out := &in.Started, &out.Started - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerStatus. -func (in *ContainerStatus) DeepCopy() *ContainerStatus { - if in == nil { - return nil - } - out := new(ContainerStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonEndpoint) DeepCopyInto(out *DaemonEndpoint) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonEndpoint. -func (in *DaemonEndpoint) DeepCopy() *DaemonEndpoint { - if in == nil { - return nil - } - out := new(DaemonEndpoint) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DownwardAPIProjection) DeepCopyInto(out *DownwardAPIProjection) { - *out = *in - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DownwardAPIVolumeFile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownwardAPIProjection. -func (in *DownwardAPIProjection) DeepCopy() *DownwardAPIProjection { - if in == nil { - return nil - } - out := new(DownwardAPIProjection) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DownwardAPIVolumeFile) DeepCopyInto(out *DownwardAPIVolumeFile) { - *out = *in - if in.FieldRef != nil { - in, out := &in.FieldRef, &out.FieldRef - *out = new(ObjectFieldSelector) - **out = **in - } - if in.ResourceFieldRef != nil { - in, out := &in.ResourceFieldRef, &out.ResourceFieldRef - *out = new(ResourceFieldSelector) - (*in).DeepCopyInto(*out) - } - if in.Mode != nil { - in, out := &in.Mode, &out.Mode - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownwardAPIVolumeFile. -func (in *DownwardAPIVolumeFile) DeepCopy() *DownwardAPIVolumeFile { - if in == nil { - return nil - } - out := new(DownwardAPIVolumeFile) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DownwardAPIVolumeSource) DeepCopyInto(out *DownwardAPIVolumeSource) { - *out = *in - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DownwardAPIVolumeFile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DefaultMode != nil { - in, out := &in.DefaultMode, &out.DefaultMode - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownwardAPIVolumeSource. -func (in *DownwardAPIVolumeSource) DeepCopy() *DownwardAPIVolumeSource { - if in == nil { - return nil - } - out := new(DownwardAPIVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EmptyDirVolumeSource) DeepCopyInto(out *EmptyDirVolumeSource) { - *out = *in - if in.SizeLimit != nil { - in, out := &in.SizeLimit, &out.SizeLimit - x := (*in).DeepCopy() - *out = &x - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmptyDirVolumeSource. -func (in *EmptyDirVolumeSource) DeepCopy() *EmptyDirVolumeSource { - if in == nil { - return nil - } - out := new(EmptyDirVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointAddress) DeepCopyInto(out *EndpointAddress) { - *out = *in - if in.NodeName != nil { - in, out := &in.NodeName, &out.NodeName - *out = new(string) - **out = **in - } - if in.TargetRef != nil { - in, out := &in.TargetRef, &out.TargetRef - *out = new(ObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointAddress. -func (in *EndpointAddress) DeepCopy() *EndpointAddress { - if in == nil { - return nil - } - out := new(EndpointAddress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointPort) DeepCopyInto(out *EndpointPort) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPort. -func (in *EndpointPort) DeepCopy() *EndpointPort { - if in == nil { - return nil - } - out := new(EndpointPort) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointSubset) DeepCopyInto(out *EndpointSubset) { - *out = *in - if in.Addresses != nil { - in, out := &in.Addresses, &out.Addresses - *out = make([]EndpointAddress, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NotReadyAddresses != nil { - in, out := &in.NotReadyAddresses, &out.NotReadyAddresses - *out = make([]EndpointAddress, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]EndpointPort, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSubset. -func (in *EndpointSubset) DeepCopy() *EndpointSubset { - if in == nil { - return nil - } - out := new(EndpointSubset) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Endpoints) DeepCopyInto(out *Endpoints) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subsets != nil { - in, out := &in.Subsets, &out.Subsets - *out = make([]EndpointSubset, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoints. -func (in *Endpoints) DeepCopy() *Endpoints { - if in == nil { - return nil - } - out := new(Endpoints) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Endpoints) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointsList) DeepCopyInto(out *EndpointsList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Endpoints, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointsList. -func (in *EndpointsList) DeepCopy() *EndpointsList { - if in == nil { - return nil - } - out := new(EndpointsList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EndpointsList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvFromSource) DeepCopyInto(out *EnvFromSource) { - *out = *in - if in.ConfigMapRef != nil { - in, out := &in.ConfigMapRef, &out.ConfigMapRef - *out = new(ConfigMapEnvSource) - (*in).DeepCopyInto(*out) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretEnvSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvFromSource. -func (in *EnvFromSource) DeepCopy() *EnvFromSource { - if in == nil { - return nil - } - out := new(EnvFromSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvVar) DeepCopyInto(out *EnvVar) { - *out = *in - if in.ValueFrom != nil { - in, out := &in.ValueFrom, &out.ValueFrom - *out = new(EnvVarSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar. -func (in *EnvVar) DeepCopy() *EnvVar { - if in == nil { - return nil - } - out := new(EnvVar) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnvVarSource) DeepCopyInto(out *EnvVarSource) { - *out = *in - if in.FieldRef != nil { - in, out := &in.FieldRef, &out.FieldRef - *out = new(ObjectFieldSelector) - **out = **in - } - if in.ResourceFieldRef != nil { - in, out := &in.ResourceFieldRef, &out.ResourceFieldRef - *out = new(ResourceFieldSelector) - (*in).DeepCopyInto(*out) - } - if in.ConfigMapKeyRef != nil { - in, out := &in.ConfigMapKeyRef, &out.ConfigMapKeyRef - *out = new(ConfigMapKeySelector) - (*in).DeepCopyInto(*out) - } - if in.SecretKeyRef != nil { - in, out := &in.SecretKeyRef, &out.SecretKeyRef - *out = new(SecretKeySelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVarSource. -func (in *EnvVarSource) DeepCopy() *EnvVarSource { - if in == nil { - return nil - } - out := new(EnvVarSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EphemeralContainer) DeepCopyInto(out *EphemeralContainer) { - *out = *in - in.EphemeralContainerCommon.DeepCopyInto(&out.EphemeralContainerCommon) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralContainer. -func (in *EphemeralContainer) DeepCopy() *EphemeralContainer { - if in == nil { - return nil - } - out := new(EphemeralContainer) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EphemeralContainerCommon) DeepCopyInto(out *EphemeralContainerCommon) { - *out = *in - if in.Command != nil { - in, out := &in.Command, &out.Command - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Args != nil { - in, out := &in.Args, &out.Args - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]ContainerPort, len(*in)) - copy(*out, *in) - } - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]EnvFromSource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.Resources.DeepCopyInto(&out.Resources) - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]VolumeMount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeDevices != nil { - in, out := &in.VolumeDevices, &out.VolumeDevices - *out = make([]VolumeDevice, len(*in)) - copy(*out, *in) - } - if in.LivenessProbe != nil { - in, out := &in.LivenessProbe, &out.LivenessProbe - *out = new(Probe) - (*in).DeepCopyInto(*out) - } - if in.ReadinessProbe != nil { - in, out := &in.ReadinessProbe, &out.ReadinessProbe - *out = new(Probe) - (*in).DeepCopyInto(*out) - } - if in.StartupProbe != nil { - in, out := &in.StartupProbe, &out.StartupProbe - *out = new(Probe) - (*in).DeepCopyInto(*out) - } - if in.Lifecycle != nil { - in, out := &in.Lifecycle, &out.Lifecycle - *out = new(Lifecycle) - (*in).DeepCopyInto(*out) - } - if in.SecurityContext != nil { - in, out := &in.SecurityContext, &out.SecurityContext - *out = new(SecurityContext) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralContainerCommon. -func (in *EphemeralContainerCommon) DeepCopy() *EphemeralContainerCommon { - if in == nil { - return nil - } - out := new(EphemeralContainerCommon) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EphemeralContainers) DeepCopyInto(out *EphemeralContainers) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.EphemeralContainers != nil { - in, out := &in.EphemeralContainers, &out.EphemeralContainers - *out = make([]EphemeralContainer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralContainers. -func (in *EphemeralContainers) DeepCopy() *EphemeralContainers { - if in == nil { - return nil - } - out := new(EphemeralContainers) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EphemeralContainers) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// 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) - out.InvolvedObject = in.InvolvedObject - 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 - *out = new(EventSeries) - (*in).DeepCopyInto(*out) - } - if in.Related != nil { - in, out := &in.Related, &out.Related - *out = new(ObjectReference) - **out = **in - } - 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 - } - 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 - in.ListMeta.DeepCopyInto(&out.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 - } - 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 -} - -// 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 - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSource. -func (in *EventSource) DeepCopy() *EventSource { - if in == nil { - return nil - } - out := new(EventSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExecAction) DeepCopyInto(out *ExecAction) { - *out = *in - if in.Command != nil { - in, out := &in.Command, &out.Command - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecAction. -func (in *ExecAction) DeepCopy() *ExecAction { - if in == nil { - return nil - } - out := new(ExecAction) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FCVolumeSource) DeepCopyInto(out *FCVolumeSource) { - *out = *in - if in.TargetWWNs != nil { - in, out := &in.TargetWWNs, &out.TargetWWNs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Lun != nil { - in, out := &in.Lun, &out.Lun - *out = new(int32) - **out = **in - } - if in.WWIDs != nil { - in, out := &in.WWIDs, &out.WWIDs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FCVolumeSource. -func (in *FCVolumeSource) DeepCopy() *FCVolumeSource { - if in == nil { - return nil - } - out := new(FCVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FlexPersistentVolumeSource) DeepCopyInto(out *FlexPersistentVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretReference) - **out = **in - } - if in.Options != nil { - in, out := &in.Options, &out.Options - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlexPersistentVolumeSource. -func (in *FlexPersistentVolumeSource) DeepCopy() *FlexPersistentVolumeSource { - if in == nil { - return nil - } - out := new(FlexPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FlexVolumeSource) DeepCopyInto(out *FlexVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - if in.Options != nil { - in, out := &in.Options, &out.Options - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlexVolumeSource. -func (in *FlexVolumeSource) DeepCopy() *FlexVolumeSource { - if in == nil { - return nil - } - out := new(FlexVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FlockerVolumeSource) DeepCopyInto(out *FlockerVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlockerVolumeSource. -func (in *FlockerVolumeSource) DeepCopy() *FlockerVolumeSource { - if in == nil { - return nil - } - out := new(FlockerVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GCEPersistentDiskVolumeSource) DeepCopyInto(out *GCEPersistentDiskVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCEPersistentDiskVolumeSource. -func (in *GCEPersistentDiskVolumeSource) DeepCopy() *GCEPersistentDiskVolumeSource { - if in == nil { - return nil - } - out := new(GCEPersistentDiskVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitRepoVolumeSource) DeepCopyInto(out *GitRepoVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoVolumeSource. -func (in *GitRepoVolumeSource) DeepCopy() *GitRepoVolumeSource { - if in == nil { - return nil - } - out := new(GitRepoVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GlusterfsPersistentVolumeSource) DeepCopyInto(out *GlusterfsPersistentVolumeSource) { - *out = *in - if in.EndpointsNamespace != nil { - in, out := &in.EndpointsNamespace, &out.EndpointsNamespace - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlusterfsPersistentVolumeSource. -func (in *GlusterfsPersistentVolumeSource) DeepCopy() *GlusterfsPersistentVolumeSource { - if in == nil { - return nil - } - out := new(GlusterfsPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GlusterfsVolumeSource) DeepCopyInto(out *GlusterfsVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlusterfsVolumeSource. -func (in *GlusterfsVolumeSource) DeepCopy() *GlusterfsVolumeSource { - if in == nil { - return nil - } - out := new(GlusterfsVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPGetAction) DeepCopyInto(out *HTTPGetAction) { - *out = *in - out.Port = in.Port - if in.HTTPHeaders != nil { - in, out := &in.HTTPHeaders, &out.HTTPHeaders - *out = make([]HTTPHeader, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPGetAction. -func (in *HTTPGetAction) DeepCopy() *HTTPGetAction { - if in == nil { - return nil - } - out := new(HTTPGetAction) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPHeader) DeepCopyInto(out *HTTPHeader) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHeader. -func (in *HTTPHeader) DeepCopy() *HTTPHeader { - if in == nil { - return nil - } - out := new(HTTPHeader) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Handler) DeepCopyInto(out *Handler) { - *out = *in - if in.Exec != nil { - in, out := &in.Exec, &out.Exec - *out = new(ExecAction) - (*in).DeepCopyInto(*out) - } - if in.HTTPGet != nil { - in, out := &in.HTTPGet, &out.HTTPGet - *out = new(HTTPGetAction) - (*in).DeepCopyInto(*out) - } - if in.TCPSocket != nil { - in, out := &in.TCPSocket, &out.TCPSocket - *out = new(TCPSocketAction) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Handler. -func (in *Handler) DeepCopy() *Handler { - if in == nil { - return nil - } - out := new(Handler) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostAlias) DeepCopyInto(out *HostAlias) { - *out = *in - if in.Hostnames != nil { - in, out := &in.Hostnames, &out.Hostnames - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostAlias. -func (in *HostAlias) DeepCopy() *HostAlias { - if in == nil { - return nil - } - out := new(HostAlias) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostPathVolumeSource) DeepCopyInto(out *HostPathVolumeSource) { - *out = *in - if in.Type != nil { - in, out := &in.Type, &out.Type - *out = new(HostPathType) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathVolumeSource. -func (in *HostPathVolumeSource) DeepCopy() *HostPathVolumeSource { - if in == nil { - return nil - } - out := new(HostPathVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ISCSIPersistentVolumeSource) DeepCopyInto(out *ISCSIPersistentVolumeSource) { - *out = *in - if in.Portals != nil { - in, out := &in.Portals, &out.Portals - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretReference) - **out = **in - } - if in.InitiatorName != nil { - in, out := &in.InitiatorName, &out.InitiatorName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ISCSIPersistentVolumeSource. -func (in *ISCSIPersistentVolumeSource) DeepCopy() *ISCSIPersistentVolumeSource { - if in == nil { - return nil - } - out := new(ISCSIPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ISCSIVolumeSource) DeepCopyInto(out *ISCSIVolumeSource) { - *out = *in - if in.Portals != nil { - in, out := &in.Portals, &out.Portals - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - if in.InitiatorName != nil { - in, out := &in.InitiatorName, &out.InitiatorName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ISCSIVolumeSource. -func (in *ISCSIVolumeSource) DeepCopy() *ISCSIVolumeSource { - if in == nil { - return nil - } - out := new(ISCSIVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeyToPath) DeepCopyInto(out *KeyToPath) { - *out = *in - if in.Mode != nil { - in, out := &in.Mode, &out.Mode - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeyToPath. -func (in *KeyToPath) DeepCopy() *KeyToPath { - if in == nil { - return nil - } - out := new(KeyToPath) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Lifecycle) DeepCopyInto(out *Lifecycle) { - *out = *in - if in.PostStart != nil { - in, out := &in.PostStart, &out.PostStart - *out = new(Handler) - (*in).DeepCopyInto(*out) - } - if in.PreStop != nil { - in, out := &in.PreStop, &out.PreStop - *out = new(Handler) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Lifecycle. -func (in *Lifecycle) DeepCopy() *Lifecycle { - if in == nil { - return nil - } - out := new(Lifecycle) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LimitRange) DeepCopyInto(out *LimitRange) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRange. -func (in *LimitRange) DeepCopy() *LimitRange { - if in == nil { - return nil - } - out := new(LimitRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LimitRange) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LimitRangeItem) DeepCopyInto(out *LimitRangeItem) { - *out = *in - if in.Max != nil { - in, out := &in.Max, &out.Max - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Min != nil { - in, out := &in.Min, &out.Min - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Default != nil { - in, out := &in.Default, &out.Default - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.DefaultRequest != nil { - in, out := &in.DefaultRequest, &out.DefaultRequest - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.MaxLimitRequestRatio != nil { - in, out := &in.MaxLimitRequestRatio, &out.MaxLimitRequestRatio - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRangeItem. -func (in *LimitRangeItem) DeepCopy() *LimitRangeItem { - if in == nil { - return nil - } - out := new(LimitRangeItem) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LimitRangeList) DeepCopyInto(out *LimitRangeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]LimitRange, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRangeList. -func (in *LimitRangeList) DeepCopy() *LimitRangeList { - if in == nil { - return nil - } - out := new(LimitRangeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LimitRangeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LimitRangeSpec) DeepCopyInto(out *LimitRangeSpec) { - *out = *in - if in.Limits != nil { - in, out := &in.Limits, &out.Limits - *out = make([]LimitRangeItem, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitRangeSpec. -func (in *LimitRangeSpec) DeepCopy() *LimitRangeSpec { - if in == nil { - return nil - } - out := new(LimitRangeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *List) DeepCopyInto(out *List) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.RawExtension, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List. -func (in *List) DeepCopy() *List { - if in == nil { - return nil - } - out := new(List) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *List) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerIngress) DeepCopyInto(out *LoadBalancerIngress) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerIngress. -func (in *LoadBalancerIngress) DeepCopy() *LoadBalancerIngress { - if in == nil { - return nil - } - out := new(LoadBalancerIngress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus) { - *out = *in - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = make([]LoadBalancerIngress, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerStatus. -func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus { - if in == nil { - return nil - } - out := new(LoadBalancerStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalObjectReference) DeepCopyInto(out *LocalObjectReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalObjectReference. -func (in *LocalObjectReference) DeepCopy() *LocalObjectReference { - if in == nil { - return nil - } - out := new(LocalObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LocalVolumeSource) DeepCopyInto(out *LocalVolumeSource) { - *out = *in - if in.FSType != nil { - in, out := &in.FSType, &out.FSType - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalVolumeSource. -func (in *LocalVolumeSource) DeepCopy() *LocalVolumeSource { - if in == nil { - return nil - } - out := new(LocalVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NFSVolumeSource) DeepCopyInto(out *NFSVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NFSVolumeSource. -func (in *NFSVolumeSource) DeepCopy() *NFSVolumeSource { - if in == nil { - return nil - } - out := new(NFSVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Namespace) DeepCopyInto(out *Namespace) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespace. -func (in *Namespace) DeepCopy() *Namespace { - if in == nil { - return nil - } - out := new(Namespace) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Namespace) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NamespaceCondition) DeepCopyInto(out *NamespaceCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceCondition. -func (in *NamespaceCondition) DeepCopy() *NamespaceCondition { - if in == nil { - return nil - } - out := new(NamespaceCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NamespaceList) DeepCopyInto(out *NamespaceList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Namespace, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceList. -func (in *NamespaceList) DeepCopy() *NamespaceList { - if in == nil { - return nil - } - out := new(NamespaceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NamespaceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NamespaceSpec) DeepCopyInto(out *NamespaceSpec) { - *out = *in - if in.Finalizers != nil { - in, out := &in.Finalizers, &out.Finalizers - *out = make([]FinalizerName, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSpec. -func (in *NamespaceSpec) DeepCopy() *NamespaceSpec { - if in == nil { - return nil - } - out := new(NamespaceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]NamespaceCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceStatus. -func (in *NamespaceStatus) DeepCopy() *NamespaceStatus { - if in == nil { - return nil - } - out := new(NamespaceStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Node) DeepCopyInto(out *Node) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node. -func (in *Node) DeepCopy() *Node { - if in == nil { - return nil - } - out := new(Node) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Node) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeAddress) DeepCopyInto(out *NodeAddress) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAddress. -func (in *NodeAddress) DeepCopy() *NodeAddress { - if in == nil { - return nil - } - out := new(NodeAddress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeAffinity) DeepCopyInto(out *NodeAffinity) { - *out = *in - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = new(NodeSelector) - (*in).DeepCopyInto(*out) - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]PreferredSchedulingTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeAffinity. -func (in *NodeAffinity) DeepCopy() *NodeAffinity { - if in == nil { - return nil - } - out := new(NodeAffinity) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeCondition) DeepCopyInto(out *NodeCondition) { - *out = *in - in.LastHeartbeatTime.DeepCopyInto(&out.LastHeartbeatTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeCondition. -func (in *NodeCondition) DeepCopy() *NodeCondition { - if in == nil { - return nil - } - out := new(NodeCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeConfigSource) DeepCopyInto(out *NodeConfigSource) { - *out = *in - if in.ConfigMap != nil { - in, out := &in.ConfigMap, &out.ConfigMap - *out = new(ConfigMapNodeConfigSource) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigSource. -func (in *NodeConfigSource) DeepCopy() *NodeConfigSource { - if in == nil { - return nil - } - out := new(NodeConfigSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeConfigStatus) DeepCopyInto(out *NodeConfigStatus) { - *out = *in - if in.Assigned != nil { - in, out := &in.Assigned, &out.Assigned - *out = new(NodeConfigSource) - (*in).DeepCopyInto(*out) - } - if in.Active != nil { - in, out := &in.Active, &out.Active - *out = new(NodeConfigSource) - (*in).DeepCopyInto(*out) - } - if in.LastKnownGood != nil { - in, out := &in.LastKnownGood, &out.LastKnownGood - *out = new(NodeConfigSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfigStatus. -func (in *NodeConfigStatus) DeepCopy() *NodeConfigStatus { - if in == nil { - return nil - } - out := new(NodeConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeDaemonEndpoints) DeepCopyInto(out *NodeDaemonEndpoints) { - *out = *in - out.KubeletEndpoint = in.KubeletEndpoint - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeDaemonEndpoints. -func (in *NodeDaemonEndpoints) DeepCopy() *NodeDaemonEndpoints { - if in == nil { - return nil - } - out := new(NodeDaemonEndpoints) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeList) DeepCopyInto(out *NodeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Node, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList. -func (in *NodeList) DeepCopy() *NodeList { - if in == nil { - return nil - } - out := new(NodeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NodeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeProxyOptions) DeepCopyInto(out *NodeProxyOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProxyOptions. -func (in *NodeProxyOptions) DeepCopy() *NodeProxyOptions { - if in == nil { - return nil - } - out := new(NodeProxyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NodeProxyOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeResources) DeepCopyInto(out *NodeResources) { - *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResources. -func (in *NodeResources) DeepCopy() *NodeResources { - if in == nil { - return nil - } - out := new(NodeResources) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeSelector) DeepCopyInto(out *NodeSelector) { - *out = *in - if in.NodeSelectorTerms != nil { - in, out := &in.NodeSelectorTerms, &out.NodeSelectorTerms - *out = make([]NodeSelectorTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelector. -func (in *NodeSelector) DeepCopy() *NodeSelector { - if in == nil { - return nil - } - out := new(NodeSelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeSelectorRequirement) DeepCopyInto(out *NodeSelectorRequirement) { - *out = *in - if in.Values != nil { - in, out := &in.Values, &out.Values - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectorRequirement. -func (in *NodeSelectorRequirement) DeepCopy() *NodeSelectorRequirement { - if in == nil { - return nil - } - out := new(NodeSelectorRequirement) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeSelectorTerm) DeepCopyInto(out *NodeSelectorTerm) { - *out = *in - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]NodeSelectorRequirement, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.MatchFields != nil { - in, out := &in.MatchFields, &out.MatchFields - *out = make([]NodeSelectorRequirement, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSelectorTerm. -func (in *NodeSelectorTerm) DeepCopy() *NodeSelectorTerm { - if in == nil { - return nil - } - out := new(NodeSelectorTerm) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeSpec) DeepCopyInto(out *NodeSpec) { - *out = *in - if in.PodCIDRs != nil { - in, out := &in.PodCIDRs, &out.PodCIDRs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Taints != nil { - in, out := &in.Taints, &out.Taints - *out = make([]Taint, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ConfigSource != nil { - in, out := &in.ConfigSource, &out.ConfigSource - *out = new(NodeConfigSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec. -func (in *NodeSpec) DeepCopy() *NodeSpec { - if in == nil { - return nil - } - out := new(NodeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeStatus) DeepCopyInto(out *NodeStatus) { - *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Allocatable != nil { - in, out := &in.Allocatable, &out.Allocatable - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]NodeCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Addresses != nil { - in, out := &in.Addresses, &out.Addresses - *out = make([]NodeAddress, len(*in)) - copy(*out, *in) - } - out.DaemonEndpoints = in.DaemonEndpoints - out.NodeInfo = in.NodeInfo - if in.Images != nil { - in, out := &in.Images, &out.Images - *out = make([]ContainerImage, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumesInUse != nil { - in, out := &in.VolumesInUse, &out.VolumesInUse - *out = make([]UniqueVolumeName, len(*in)) - copy(*out, *in) - } - if in.VolumesAttached != nil { - in, out := &in.VolumesAttached, &out.VolumesAttached - *out = make([]AttachedVolume, len(*in)) - copy(*out, *in) - } - if in.Config != nil { - in, out := &in.Config, &out.Config - *out = new(NodeConfigStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus. -func (in *NodeStatus) DeepCopy() *NodeStatus { - if in == nil { - return nil - } - out := new(NodeStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeSystemInfo) DeepCopyInto(out *NodeSystemInfo) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSystemInfo. -func (in *NodeSystemInfo) DeepCopy() *NodeSystemInfo { - if in == nil { - return nil - } - out := new(NodeSystemInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectFieldSelector) DeepCopyInto(out *ObjectFieldSelector) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectFieldSelector. -func (in *ObjectFieldSelector) DeepCopy() *ObjectFieldSelector { - if in == nil { - return nil - } - out := new(ObjectFieldSelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectReference) DeepCopyInto(out *ObjectReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference. -func (in *ObjectReference) DeepCopy() *ObjectReference { - if in == nil { - return nil - } - out := new(ObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ObjectReference) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolume) DeepCopyInto(out *PersistentVolume) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolume. -func (in *PersistentVolume) DeepCopy() *PersistentVolume { - if in == nil { - return nil - } - out := new(PersistentVolume) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PersistentVolume) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaim) DeepCopyInto(out *PersistentVolumeClaim) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaim. -func (in *PersistentVolumeClaim) DeepCopy() *PersistentVolumeClaim { - if in == nil { - return nil - } - out := new(PersistentVolumeClaim) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PersistentVolumeClaim) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaimCondition) DeepCopyInto(out *PersistentVolumeClaimCondition) { - *out = *in - in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimCondition. -func (in *PersistentVolumeClaimCondition) DeepCopy() *PersistentVolumeClaimCondition { - if in == nil { - return nil - } - out := new(PersistentVolumeClaimCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaimList) DeepCopyInto(out *PersistentVolumeClaimList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimList. -func (in *PersistentVolumeClaimList) DeepCopy() *PersistentVolumeClaimList { - if in == nil { - return nil - } - out := new(PersistentVolumeClaimList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PersistentVolumeClaimList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaimSpec) DeepCopyInto(out *PersistentVolumeClaimSpec) { - *out = *in - if in.AccessModes != nil { - in, out := &in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(*in)) - copy(*out, *in) - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Resources.DeepCopyInto(&out.Resources) - if in.StorageClassName != nil { - in, out := &in.StorageClassName, &out.StorageClassName - *out = new(string) - **out = **in - } - if in.VolumeMode != nil { - in, out := &in.VolumeMode, &out.VolumeMode - *out = new(PersistentVolumeMode) - **out = **in - } - if in.DataSource != nil { - in, out := &in.DataSource, &out.DataSource - *out = new(TypedLocalObjectReference) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimSpec. -func (in *PersistentVolumeClaimSpec) DeepCopy() *PersistentVolumeClaimSpec { - if in == nil { - return nil - } - out := new(PersistentVolumeClaimSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaimStatus) DeepCopyInto(out *PersistentVolumeClaimStatus) { - *out = *in - if in.AccessModes != nil { - in, out := &in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(*in)) - copy(*out, *in) - } - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]PersistentVolumeClaimCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimStatus. -func (in *PersistentVolumeClaimStatus) DeepCopy() *PersistentVolumeClaimStatus { - if in == nil { - return nil - } - out := new(PersistentVolumeClaimStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeClaimVolumeSource) DeepCopyInto(out *PersistentVolumeClaimVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimVolumeSource. -func (in *PersistentVolumeClaimVolumeSource) DeepCopy() *PersistentVolumeClaimVolumeSource { - if in == nil { - return nil - } - out := new(PersistentVolumeClaimVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeList) DeepCopyInto(out *PersistentVolumeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PersistentVolume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeList. -func (in *PersistentVolumeList) DeepCopy() *PersistentVolumeList { - if in == nil { - return nil - } - out := new(PersistentVolumeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PersistentVolumeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeSource) DeepCopyInto(out *PersistentVolumeSource) { - *out = *in - if in.GCEPersistentDisk != nil { - in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk - *out = new(GCEPersistentDiskVolumeSource) - **out = **in - } - if in.AWSElasticBlockStore != nil { - in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore - *out = new(AWSElasticBlockStoreVolumeSource) - **out = **in - } - if in.HostPath != nil { - in, out := &in.HostPath, &out.HostPath - *out = new(HostPathVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Glusterfs != nil { - in, out := &in.Glusterfs, &out.Glusterfs - *out = new(GlusterfsPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.NFS != nil { - in, out := &in.NFS, &out.NFS - *out = new(NFSVolumeSource) - **out = **in - } - if in.RBD != nil { - in, out := &in.RBD, &out.RBD - *out = new(RBDPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.ISCSI != nil { - in, out := &in.ISCSI, &out.ISCSI - *out = new(ISCSIPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Cinder != nil { - in, out := &in.Cinder, &out.Cinder - *out = new(CinderPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.CephFS != nil { - in, out := &in.CephFS, &out.CephFS - *out = new(CephFSPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.FC != nil { - in, out := &in.FC, &out.FC - *out = new(FCVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Flocker != nil { - in, out := &in.Flocker, &out.Flocker - *out = new(FlockerVolumeSource) - **out = **in - } - if in.FlexVolume != nil { - in, out := &in.FlexVolume, &out.FlexVolume - *out = new(FlexPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.AzureFile != nil { - in, out := &in.AzureFile, &out.AzureFile - *out = new(AzureFilePersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.VsphereVolume != nil { - in, out := &in.VsphereVolume, &out.VsphereVolume - *out = new(VsphereVirtualDiskVolumeSource) - **out = **in - } - if in.Quobyte != nil { - in, out := &in.Quobyte, &out.Quobyte - *out = new(QuobyteVolumeSource) - **out = **in - } - if in.AzureDisk != nil { - in, out := &in.AzureDisk, &out.AzureDisk - *out = new(AzureDiskVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.PhotonPersistentDisk != nil { - in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk - *out = new(PhotonPersistentDiskVolumeSource) - **out = **in - } - if in.PortworxVolume != nil { - in, out := &in.PortworxVolume, &out.PortworxVolume - *out = new(PortworxVolumeSource) - **out = **in - } - if in.ScaleIO != nil { - in, out := &in.ScaleIO, &out.ScaleIO - *out = new(ScaleIOPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Local != nil { - in, out := &in.Local, &out.Local - *out = new(LocalVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.StorageOS != nil { - in, out := &in.StorageOS, &out.StorageOS - *out = new(StorageOSPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.CSI != nil { - in, out := &in.CSI, &out.CSI - *out = new(CSIPersistentVolumeSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeSource. -func (in *PersistentVolumeSource) DeepCopy() *PersistentVolumeSource { - if in == nil { - return nil - } - out := new(PersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeSpec) DeepCopyInto(out *PersistentVolumeSpec) { - *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - in.PersistentVolumeSource.DeepCopyInto(&out.PersistentVolumeSource) - if in.AccessModes != nil { - in, out := &in.AccessModes, &out.AccessModes - *out = make([]PersistentVolumeAccessMode, len(*in)) - copy(*out, *in) - } - if in.ClaimRef != nil { - in, out := &in.ClaimRef, &out.ClaimRef - *out = new(ObjectReference) - **out = **in - } - if in.MountOptions != nil { - in, out := &in.MountOptions, &out.MountOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.VolumeMode != nil { - in, out := &in.VolumeMode, &out.VolumeMode - *out = new(PersistentVolumeMode) - **out = **in - } - if in.NodeAffinity != nil { - in, out := &in.NodeAffinity, &out.NodeAffinity - *out = new(VolumeNodeAffinity) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeSpec. -func (in *PersistentVolumeSpec) DeepCopy() *PersistentVolumeSpec { - if in == nil { - return nil - } - out := new(PersistentVolumeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PersistentVolumeStatus) DeepCopyInto(out *PersistentVolumeStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeStatus. -func (in *PersistentVolumeStatus) DeepCopy() *PersistentVolumeStatus { - if in == nil { - return nil - } - out := new(PersistentVolumeStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PhotonPersistentDiskVolumeSource) DeepCopyInto(out *PhotonPersistentDiskVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PhotonPersistentDiskVolumeSource. -func (in *PhotonPersistentDiskVolumeSource) DeepCopy() *PhotonPersistentDiskVolumeSource { - if in == nil { - return nil - } - out := new(PhotonPersistentDiskVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Pod) DeepCopyInto(out *Pod) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod. -func (in *Pod) DeepCopy() *Pod { - if in == nil { - return nil - } - out := new(Pod) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Pod) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodAffinity) DeepCopyInto(out *PodAffinity) { - *out = *in - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = make([]PodAffinityTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]WeightedPodAffinityTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodAffinity. -func (in *PodAffinity) DeepCopy() *PodAffinity { - if in == nil { - return nil - } - out := new(PodAffinity) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodAffinityTerm) DeepCopyInto(out *PodAffinityTerm) { - *out = *in - if in.LabelSelector != nil { - in, out := &in.LabelSelector, &out.LabelSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.Namespaces != nil { - in, out := &in.Namespaces, &out.Namespaces - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodAffinityTerm. -func (in *PodAffinityTerm) DeepCopy() *PodAffinityTerm { - if in == nil { - return nil - } - out := new(PodAffinityTerm) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodAntiAffinity) DeepCopyInto(out *PodAntiAffinity) { - *out = *in - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - in, out := &in.RequiredDuringSchedulingIgnoredDuringExecution, &out.RequiredDuringSchedulingIgnoredDuringExecution - *out = make([]PodAffinityTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PreferredDuringSchedulingIgnoredDuringExecution != nil { - in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution - *out = make([]WeightedPodAffinityTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodAntiAffinity. -func (in *PodAntiAffinity) DeepCopy() *PodAntiAffinity { - if in == nil { - return nil - } - out := new(PodAntiAffinity) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodAttachOptions) DeepCopyInto(out *PodAttachOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodAttachOptions. -func (in *PodAttachOptions) DeepCopy() *PodAttachOptions { - if in == nil { - return nil - } - out := new(PodAttachOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodAttachOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodCondition) DeepCopyInto(out *PodCondition) { - *out = *in - in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCondition. -func (in *PodCondition) DeepCopy() *PodCondition { - if in == nil { - return nil - } - out := new(PodCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodDNSConfig) DeepCopyInto(out *PodDNSConfig) { - *out = *in - if in.Nameservers != nil { - in, out := &in.Nameservers, &out.Nameservers - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Searches != nil { - in, out := &in.Searches, &out.Searches - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Options != nil { - in, out := &in.Options, &out.Options - *out = make([]PodDNSConfigOption, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDNSConfig. -func (in *PodDNSConfig) DeepCopy() *PodDNSConfig { - if in == nil { - return nil - } - out := new(PodDNSConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodDNSConfigOption) DeepCopyInto(out *PodDNSConfigOption) { - *out = *in - if in.Value != nil { - in, out := &in.Value, &out.Value - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDNSConfigOption. -func (in *PodDNSConfigOption) DeepCopy() *PodDNSConfigOption { - if in == nil { - return nil - } - out := new(PodDNSConfigOption) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodExecOptions) DeepCopyInto(out *PodExecOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Command != nil { - in, out := &in.Command, &out.Command - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodExecOptions. -func (in *PodExecOptions) DeepCopy() *PodExecOptions { - if in == nil { - return nil - } - out := new(PodExecOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodExecOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodIP) DeepCopyInto(out *PodIP) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodIP. -func (in *PodIP) DeepCopy() *PodIP { - if in == nil { - return nil - } - out := new(PodIP) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodList) DeepCopyInto(out *PodList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Pod, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodList. -func (in *PodList) DeepCopy() *PodList { - if in == nil { - return nil - } - out := new(PodList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodLogOptions) DeepCopyInto(out *PodLogOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.SinceSeconds != nil { - in, out := &in.SinceSeconds, &out.SinceSeconds - *out = new(int64) - **out = **in - } - if in.SinceTime != nil { - in, out := &in.SinceTime, &out.SinceTime - *out = (*in).DeepCopy() - } - if in.TailLines != nil { - in, out := &in.TailLines, &out.TailLines - *out = new(int64) - **out = **in - } - if in.LimitBytes != nil { - in, out := &in.LimitBytes, &out.LimitBytes - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodLogOptions. -func (in *PodLogOptions) DeepCopy() *PodLogOptions { - if in == nil { - return nil - } - out := new(PodLogOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodLogOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodPortForwardOptions) DeepCopyInto(out *PodPortForwardOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]int32, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPortForwardOptions. -func (in *PodPortForwardOptions) DeepCopy() *PodPortForwardOptions { - if in == nil { - return nil - } - out := new(PodPortForwardOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodPortForwardOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodProxyOptions) DeepCopyInto(out *PodProxyOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodProxyOptions. -func (in *PodProxyOptions) DeepCopy() *PodProxyOptions { - if in == nil { - return nil - } - out := new(PodProxyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodProxyOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodReadinessGate) DeepCopyInto(out *PodReadinessGate) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodReadinessGate. -func (in *PodReadinessGate) DeepCopy() *PodReadinessGate { - if in == nil { - return nil - } - out := new(PodReadinessGate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityContext) DeepCopyInto(out *PodSecurityContext) { - *out = *in - if in.SELinuxOptions != nil { - in, out := &in.SELinuxOptions, &out.SELinuxOptions - *out = new(SELinuxOptions) - **out = **in - } - if in.WindowsOptions != nil { - in, out := &in.WindowsOptions, &out.WindowsOptions - *out = new(WindowsSecurityContextOptions) - (*in).DeepCopyInto(*out) - } - if in.RunAsUser != nil { - in, out := &in.RunAsUser, &out.RunAsUser - *out = new(int64) - **out = **in - } - if in.RunAsGroup != nil { - in, out := &in.RunAsGroup, &out.RunAsGroup - *out = new(int64) - **out = **in - } - if in.RunAsNonRoot != nil { - in, out := &in.RunAsNonRoot, &out.RunAsNonRoot - *out = new(bool) - **out = **in - } - if in.SupplementalGroups != nil { - in, out := &in.SupplementalGroups, &out.SupplementalGroups - *out = make([]int64, len(*in)) - copy(*out, *in) - } - if in.FSGroup != nil { - in, out := &in.FSGroup, &out.FSGroup - *out = new(int64) - **out = **in - } - if in.Sysctls != nil { - in, out := &in.Sysctls, &out.Sysctls - *out = make([]Sysctl, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityContext. -func (in *PodSecurityContext) DeepCopy() *PodSecurityContext { - if in == nil { - return nil - } - out := new(PodSecurityContext) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSignature) DeepCopyInto(out *PodSignature) { - *out = *in - if in.PodController != nil { - in, out := &in.PodController, &out.PodController - *out = new(metav1.OwnerReference) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSignature. -func (in *PodSignature) DeepCopy() *PodSignature { - if in == nil { - return nil - } - out := new(PodSignature) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSpec) DeepCopyInto(out *PodSpec) { - *out = *in - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainers != nil { - in, out := &in.InitContainers, &out.InitContainers - *out = make([]Container, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Containers != nil { - in, out := &in.Containers, &out.Containers - *out = make([]Container, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.EphemeralContainers != nil { - in, out := &in.EphemeralContainers, &out.EphemeralContainers - *out = make([]EphemeralContainer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.TerminationGracePeriodSeconds != nil { - in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds - *out = new(int64) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.AutomountServiceAccountToken != nil { - in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken - *out = new(bool) - **out = **in - } - if in.ShareProcessNamespace != nil { - in, out := &in.ShareProcessNamespace, &out.ShareProcessNamespace - *out = new(bool) - **out = **in - } - if in.SecurityContext != nil { - in, out := &in.SecurityContext, &out.SecurityContext - *out = new(PodSecurityContext) - (*in).DeepCopyInto(*out) - } - if in.ImagePullSecrets != nil { - in, out := &in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]LocalObjectReference, len(*in)) - copy(*out, *in) - } - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity - *out = new(Affinity) - (*in).DeepCopyInto(*out) - } - if in.Tolerations != nil { - in, out := &in.Tolerations, &out.Tolerations - *out = make([]Toleration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.HostAliases != nil { - in, out := &in.HostAliases, &out.HostAliases - *out = make([]HostAlias, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Priority != nil { - in, out := &in.Priority, &out.Priority - *out = new(int32) - **out = **in - } - if in.DNSConfig != nil { - in, out := &in.DNSConfig, &out.DNSConfig - *out = new(PodDNSConfig) - (*in).DeepCopyInto(*out) - } - if in.ReadinessGates != nil { - in, out := &in.ReadinessGates, &out.ReadinessGates - *out = make([]PodReadinessGate, len(*in)) - copy(*out, *in) - } - if in.RuntimeClassName != nil { - in, out := &in.RuntimeClassName, &out.RuntimeClassName - *out = new(string) - **out = **in - } - if in.EnableServiceLinks != nil { - in, out := &in.EnableServiceLinks, &out.EnableServiceLinks - *out = new(bool) - **out = **in - } - if in.PreemptionPolicy != nil { - in, out := &in.PreemptionPolicy, &out.PreemptionPolicy - *out = new(PreemptionPolicy) - **out = **in - } - if in.Overhead != nil { - in, out := &in.Overhead, &out.Overhead - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.TopologySpreadConstraints != nil { - in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints - *out = make([]TopologySpreadConstraint, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpec. -func (in *PodSpec) DeepCopy() *PodSpec { - if in == nil { - return nil - } - out := new(PodSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodStatus) DeepCopyInto(out *PodStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]PodCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PodIPs != nil { - in, out := &in.PodIPs, &out.PodIPs - *out = make([]PodIP, len(*in)) - copy(*out, *in) - } - if in.StartTime != nil { - in, out := &in.StartTime, &out.StartTime - *out = (*in).DeepCopy() - } - if in.InitContainerStatuses != nil { - in, out := &in.InitContainerStatuses, &out.InitContainerStatuses - *out = make([]ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerStatuses != nil { - in, out := &in.ContainerStatuses, &out.ContainerStatuses - *out = make([]ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.EphemeralContainerStatuses != nil { - in, out := &in.EphemeralContainerStatuses, &out.EphemeralContainerStatuses - *out = make([]ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus. -func (in *PodStatus) DeepCopy() *PodStatus { - if in == nil { - return nil - } - out := new(PodStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodStatusResult) DeepCopyInto(out *PodStatusResult) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatusResult. -func (in *PodStatusResult) DeepCopy() *PodStatusResult { - if in == nil { - return nil - } - out := new(PodStatusResult) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodStatusResult) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodTemplate) DeepCopyInto(out *PodTemplate) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplate. -func (in *PodTemplate) DeepCopy() *PodTemplate { - if in == nil { - return nil - } - out := new(PodTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodTemplate) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodTemplateList) DeepCopyInto(out *PodTemplateList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PodTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateList. -func (in *PodTemplateList) DeepCopy() *PodTemplateList { - if in == nil { - return nil - } - out := new(PodTemplateList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodTemplateList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodTemplateSpec. -func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec { - if in == nil { - return nil - } - out := new(PodTemplateSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PortworxVolumeSource) DeepCopyInto(out *PortworxVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortworxVolumeSource. -func (in *PortworxVolumeSource) DeepCopy() *PortworxVolumeSource { - if in == nil { - return nil - } - out := new(PortworxVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Preconditions) DeepCopyInto(out *Preconditions) { - *out = *in - if in.UID != nil { - in, out := &in.UID, &out.UID - *out = new(types.UID) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preconditions. -func (in *Preconditions) DeepCopy() *Preconditions { - if in == nil { - return nil - } - out := new(Preconditions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PreferAvoidPodsEntry) DeepCopyInto(out *PreferAvoidPodsEntry) { - *out = *in - in.PodSignature.DeepCopyInto(&out.PodSignature) - in.EvictionTime.DeepCopyInto(&out.EvictionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreferAvoidPodsEntry. -func (in *PreferAvoidPodsEntry) DeepCopy() *PreferAvoidPodsEntry { - if in == nil { - return nil - } - out := new(PreferAvoidPodsEntry) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PreferredSchedulingTerm) DeepCopyInto(out *PreferredSchedulingTerm) { - *out = *in - in.Preference.DeepCopyInto(&out.Preference) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreferredSchedulingTerm. -func (in *PreferredSchedulingTerm) DeepCopy() *PreferredSchedulingTerm { - if in == nil { - return nil - } - out := new(PreferredSchedulingTerm) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Probe) DeepCopyInto(out *Probe) { - *out = *in - in.Handler.DeepCopyInto(&out.Handler) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probe. -func (in *Probe) DeepCopy() *Probe { - if in == nil { - return nil - } - out := new(Probe) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectedVolumeSource) DeepCopyInto(out *ProjectedVolumeSource) { - *out = *in - if in.Sources != nil { - in, out := &in.Sources, &out.Sources - *out = make([]VolumeProjection, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DefaultMode != nil { - in, out := &in.DefaultMode, &out.DefaultMode - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectedVolumeSource. -func (in *ProjectedVolumeSource) DeepCopy() *ProjectedVolumeSource { - if in == nil { - return nil - } - out := new(ProjectedVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *QuobyteVolumeSource) DeepCopyInto(out *QuobyteVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuobyteVolumeSource. -func (in *QuobyteVolumeSource) DeepCopy() *QuobyteVolumeSource { - if in == nil { - return nil - } - out := new(QuobyteVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RBDPersistentVolumeSource) DeepCopyInto(out *RBDPersistentVolumeSource) { - *out = *in - if in.CephMonitors != nil { - in, out := &in.CephMonitors, &out.CephMonitors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RBDPersistentVolumeSource. -func (in *RBDPersistentVolumeSource) DeepCopy() *RBDPersistentVolumeSource { - if in == nil { - return nil - } - out := new(RBDPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RBDVolumeSource) DeepCopyInto(out *RBDVolumeSource) { - *out = *in - if in.CephMonitors != nil { - in, out := &in.CephMonitors, &out.CephMonitors - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RBDVolumeSource. -func (in *RBDVolumeSource) DeepCopy() *RBDVolumeSource { - if in == nil { - return nil - } - out := new(RBDVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RangeAllocation) DeepCopyInto(out *RangeAllocation) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Data != nil { - in, out := &in.Data, &out.Data - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RangeAllocation. -func (in *RangeAllocation) DeepCopy() *RangeAllocation { - if in == nil { - return nil - } - out := new(RangeAllocation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RangeAllocation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicationController) DeepCopyInto(out *ReplicationController) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicationController. -func (in *ReplicationController) DeepCopy() *ReplicationController { - if in == nil { - return nil - } - out := new(ReplicationController) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicationController) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicationControllerCondition) DeepCopyInto(out *ReplicationControllerCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicationControllerCondition. -func (in *ReplicationControllerCondition) DeepCopy() *ReplicationControllerCondition { - if in == nil { - return nil - } - out := new(ReplicationControllerCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicationControllerList) DeepCopyInto(out *ReplicationControllerList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ReplicationController, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicationControllerList. -func (in *ReplicationControllerList) DeepCopy() *ReplicationControllerList { - if in == nil { - return nil - } - out := new(ReplicationControllerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicationControllerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicationControllerSpec) DeepCopyInto(out *ReplicationControllerSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = new(PodTemplateSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicationControllerSpec. -func (in *ReplicationControllerSpec) DeepCopy() *ReplicationControllerSpec { - if in == nil { - return nil - } - out := new(ReplicationControllerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicationControllerStatus) DeepCopyInto(out *ReplicationControllerStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]ReplicationControllerCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicationControllerStatus. -func (in *ReplicationControllerStatus) DeepCopy() *ReplicationControllerStatus { - if in == nil { - return nil - } - out := new(ReplicationControllerStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceFieldSelector) DeepCopyInto(out *ResourceFieldSelector) { - *out = *in - out.Divisor = in.Divisor.DeepCopy() - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFieldSelector. -func (in *ResourceFieldSelector) DeepCopy() *ResourceFieldSelector { - if in == nil { - return nil - } - out := new(ResourceFieldSelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in ResourceList) DeepCopyInto(out *ResourceList) { - { - in := &in - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList. -func (in ResourceList) DeepCopy() ResourceList { - if in == nil { - return nil - } - out := new(ResourceList) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceQuota) DeepCopyInto(out *ResourceQuota) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuota. -func (in *ResourceQuota) DeepCopy() *ResourceQuota { - if in == nil { - return nil - } - out := new(ResourceQuota) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResourceQuota) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceQuotaList) DeepCopyInto(out *ResourceQuotaList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResourceQuota, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaList. -func (in *ResourceQuotaList) DeepCopy() *ResourceQuotaList { - if in == nil { - return nil - } - out := new(ResourceQuotaList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResourceQuotaList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceQuotaSpec) DeepCopyInto(out *ResourceQuotaSpec) { - *out = *in - if in.Hard != nil { - in, out := &in.Hard, &out.Hard - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Scopes != nil { - in, out := &in.Scopes, &out.Scopes - *out = make([]ResourceQuotaScope, len(*in)) - copy(*out, *in) - } - if in.ScopeSelector != nil { - in, out := &in.ScopeSelector, &out.ScopeSelector - *out = new(ScopeSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaSpec. -func (in *ResourceQuotaSpec) DeepCopy() *ResourceQuotaSpec { - if in == nil { - return nil - } - out := new(ResourceQuotaSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceQuotaStatus) DeepCopyInto(out *ResourceQuotaStatus) { - *out = *in - if in.Hard != nil { - in, out := &in.Hard, &out.Hard - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Used != nil { - in, out := &in.Used, &out.Used - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceQuotaStatus. -func (in *ResourceQuotaStatus) DeepCopy() *ResourceQuotaStatus { - if in == nil { - return nil - } - out := new(ResourceQuotaStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements) { - *out = *in - if in.Limits != nil { - in, out := &in.Limits, &out.Limits - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Requests != nil { - in, out := &in.Requests, &out.Requests - *out = make(ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirements. -func (in *ResourceRequirements) DeepCopy() *ResourceRequirements { - if in == nil { - return nil - } - out := new(ResourceRequirements) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SELinuxOptions) DeepCopyInto(out *SELinuxOptions) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SELinuxOptions. -func (in *SELinuxOptions) DeepCopy() *SELinuxOptions { - if in == nil { - return nil - } - out := new(SELinuxOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleIOPersistentVolumeSource) DeepCopyInto(out *ScaleIOPersistentVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(SecretReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleIOPersistentVolumeSource. -func (in *ScaleIOPersistentVolumeSource) DeepCopy() *ScaleIOPersistentVolumeSource { - if in == nil { - return nil - } - out := new(ScaleIOPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleIOVolumeSource) DeepCopyInto(out *ScaleIOVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleIOVolumeSource. -func (in *ScaleIOVolumeSource) DeepCopy() *ScaleIOVolumeSource { - if in == nil { - return nil - } - out := new(ScaleIOVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScopeSelector) DeepCopyInto(out *ScopeSelector) { - *out = *in - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]ScopedResourceSelectorRequirement, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopeSelector. -func (in *ScopeSelector) DeepCopy() *ScopeSelector { - if in == nil { - return nil - } - out := new(ScopeSelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScopedResourceSelectorRequirement) DeepCopyInto(out *ScopedResourceSelectorRequirement) { - *out = *in - if in.Values != nil { - in, out := &in.Values, &out.Values - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedResourceSelectorRequirement. -func (in *ScopedResourceSelectorRequirement) DeepCopy() *ScopedResourceSelectorRequirement { - if in == nil { - return nil - } - out := new(ScopedResourceSelectorRequirement) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Secret) DeepCopyInto(out *Secret) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Data != nil { - in, out := &in.Data, &out.Data - *out = make(map[string][]byte, len(*in)) - for key, val := range *in { - var outVal []byte - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]byte, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - if in.StringData != nil { - in, out := &in.StringData, &out.StringData - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret. -func (in *Secret) DeepCopy() *Secret { - if in == nil { - return nil - } - out := new(Secret) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Secret) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecretEnvSource) DeepCopyInto(out *SecretEnvSource) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretEnvSource. -func (in *SecretEnvSource) DeepCopy() *SecretEnvSource { - if in == nil { - return nil - } - out := new(SecretEnvSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector. -func (in *SecretKeySelector) DeepCopy() *SecretKeySelector { - if in == nil { - return nil - } - out := new(SecretKeySelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecretList) DeepCopyInto(out *SecretList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Secret, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretList. -func (in *SecretList) DeepCopy() *SecretList { - if in == nil { - return nil - } - out := new(SecretList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecretList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecretProjection) DeepCopyInto(out *SecretProjection) { - *out = *in - out.LocalObjectReference = in.LocalObjectReference - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]KeyToPath, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretProjection. -func (in *SecretProjection) DeepCopy() *SecretProjection { - if in == nil { - return nil - } - out := new(SecretProjection) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecretReference) DeepCopyInto(out *SecretReference) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference. -func (in *SecretReference) DeepCopy() *SecretReference { - if in == nil { - return nil - } - out := new(SecretReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecretVolumeSource) DeepCopyInto(out *SecretVolumeSource) { - *out = *in - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]KeyToPath, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DefaultMode != nil { - in, out := &in.DefaultMode, &out.DefaultMode - *out = new(int32) - **out = **in - } - if in.Optional != nil { - in, out := &in.Optional, &out.Optional - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretVolumeSource. -func (in *SecretVolumeSource) DeepCopy() *SecretVolumeSource { - if in == nil { - return nil - } - out := new(SecretVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityContext) DeepCopyInto(out *SecurityContext) { - *out = *in - if in.Capabilities != nil { - in, out := &in.Capabilities, &out.Capabilities - *out = new(Capabilities) - (*in).DeepCopyInto(*out) - } - if in.Privileged != nil { - in, out := &in.Privileged, &out.Privileged - *out = new(bool) - **out = **in - } - if in.SELinuxOptions != nil { - in, out := &in.SELinuxOptions, &out.SELinuxOptions - *out = new(SELinuxOptions) - **out = **in - } - if in.WindowsOptions != nil { - in, out := &in.WindowsOptions, &out.WindowsOptions - *out = new(WindowsSecurityContextOptions) - (*in).DeepCopyInto(*out) - } - if in.RunAsUser != nil { - in, out := &in.RunAsUser, &out.RunAsUser - *out = new(int64) - **out = **in - } - if in.RunAsGroup != nil { - in, out := &in.RunAsGroup, &out.RunAsGroup - *out = new(int64) - **out = **in - } - if in.RunAsNonRoot != nil { - in, out := &in.RunAsNonRoot, &out.RunAsNonRoot - *out = new(bool) - **out = **in - } - if in.ReadOnlyRootFilesystem != nil { - in, out := &in.ReadOnlyRootFilesystem, &out.ReadOnlyRootFilesystem - *out = new(bool) - **out = **in - } - if in.AllowPrivilegeEscalation != nil { - in, out := &in.AllowPrivilegeEscalation, &out.AllowPrivilegeEscalation - *out = new(bool) - **out = **in - } - if in.ProcMount != nil { - in, out := &in.ProcMount, &out.ProcMount - *out = new(ProcMountType) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityContext. -func (in *SecurityContext) DeepCopy() *SecurityContext { - if in == nil { - return nil - } - out := new(SecurityContext) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SerializedReference) DeepCopyInto(out *SerializedReference) { - *out = *in - out.TypeMeta = in.TypeMeta - out.Reference = in.Reference - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerializedReference. -func (in *SerializedReference) DeepCopy() *SerializedReference { - if in == nil { - return nil - } - out := new(SerializedReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SerializedReference) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Service) DeepCopyInto(out *Service) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. -func (in *Service) DeepCopy() *Service { - if in == nil { - return nil - } - out := new(Service) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Service) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Secrets != nil { - in, out := &in.Secrets, &out.Secrets - *out = make([]ObjectReference, len(*in)) - copy(*out, *in) - } - if in.ImagePullSecrets != nil { - in, out := &in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]LocalObjectReference, len(*in)) - copy(*out, *in) - } - if in.AutomountServiceAccountToken != nil { - in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccount. -func (in *ServiceAccount) DeepCopy() *ServiceAccount { - if in == nil { - return nil - } - out := new(ServiceAccount) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceAccount) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAccountList) DeepCopyInto(out *ServiceAccountList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ServiceAccount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountList. -func (in *ServiceAccountList) DeepCopy() *ServiceAccountList { - if in == nil { - return nil - } - out := new(ServiceAccountList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceAccountList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceAccountTokenProjection) DeepCopyInto(out *ServiceAccountTokenProjection) { - *out = *in - if in.ExpirationSeconds != nil { - in, out := &in.ExpirationSeconds, &out.ExpirationSeconds - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountTokenProjection. -func (in *ServiceAccountTokenProjection) DeepCopy() *ServiceAccountTokenProjection { - if in == nil { - return nil - } - out := new(ServiceAccountTokenProjection) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceList) DeepCopyInto(out *ServiceList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Service, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceList. -func (in *ServiceList) DeepCopy() *ServiceList { - if in == nil { - return nil - } - out := new(ServiceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServicePort) DeepCopyInto(out *ServicePort) { - *out = *in - out.TargetPort = in.TargetPort - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort. -func (in *ServicePort) DeepCopy() *ServicePort { - if in == nil { - return nil - } - out := new(ServicePort) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceProxyOptions) DeepCopyInto(out *ServiceProxyOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProxyOptions. -func (in *ServiceProxyOptions) DeepCopy() *ServiceProxyOptions { - if in == nil { - return nil - } - out := new(ServiceProxyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ServiceProxyOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec) { - *out = *in - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]ServicePort, len(*in)) - copy(*out, *in) - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.ExternalIPs != nil { - in, out := &in.ExternalIPs, &out.ExternalIPs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.LoadBalancerSourceRanges != nil { - in, out := &in.LoadBalancerSourceRanges, &out.LoadBalancerSourceRanges - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.SessionAffinityConfig != nil { - in, out := &in.SessionAffinityConfig, &out.SessionAffinityConfig - *out = new(SessionAffinityConfig) - (*in).DeepCopyInto(*out) - } - if in.IPFamily != nil { - in, out := &in.IPFamily, &out.IPFamily - *out = new(IPFamily) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec. -func (in *ServiceSpec) DeepCopy() *ServiceSpec { - if in == nil { - return nil - } - out := new(ServiceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus) { - *out = *in - in.LoadBalancer.DeepCopyInto(&out.LoadBalancer) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus. -func (in *ServiceStatus) DeepCopy() *ServiceStatus { - if in == nil { - return nil - } - out := new(ServiceStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SessionAffinityConfig) DeepCopyInto(out *SessionAffinityConfig) { - *out = *in - if in.ClientIP != nil { - in, out := &in.ClientIP, &out.ClientIP - *out = new(ClientIPConfig) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionAffinityConfig. -func (in *SessionAffinityConfig) DeepCopy() *SessionAffinityConfig { - if in == nil { - return nil - } - out := new(SessionAffinityConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageOSPersistentVolumeSource) DeepCopyInto(out *StorageOSPersistentVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(ObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageOSPersistentVolumeSource. -func (in *StorageOSPersistentVolumeSource) DeepCopy() *StorageOSPersistentVolumeSource { - if in == nil { - return nil - } - out := new(StorageOSPersistentVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageOSVolumeSource) DeepCopyInto(out *StorageOSVolumeSource) { - *out = *in - if in.SecretRef != nil { - in, out := &in.SecretRef, &out.SecretRef - *out = new(LocalObjectReference) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageOSVolumeSource. -func (in *StorageOSVolumeSource) DeepCopy() *StorageOSVolumeSource { - if in == nil { - return nil - } - out := new(StorageOSVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Sysctl) DeepCopyInto(out *Sysctl) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sysctl. -func (in *Sysctl) DeepCopy() *Sysctl { - if in == nil { - return nil - } - out := new(Sysctl) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TCPSocketAction) DeepCopyInto(out *TCPSocketAction) { - *out = *in - out.Port = in.Port - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPSocketAction. -func (in *TCPSocketAction) DeepCopy() *TCPSocketAction { - if in == nil { - return nil - } - out := new(TCPSocketAction) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Taint) DeepCopyInto(out *Taint) { - *out = *in - if in.TimeAdded != nil { - in, out := &in.TimeAdded, &out.TimeAdded - *out = (*in).DeepCopy() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Taint. -func (in *Taint) DeepCopy() *Taint { - if in == nil { - return nil - } - out := new(Taint) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Toleration) DeepCopyInto(out *Toleration) { - *out = *in - if in.TolerationSeconds != nil { - in, out := &in.TolerationSeconds, &out.TolerationSeconds - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Toleration. -func (in *Toleration) DeepCopy() *Toleration { - if in == nil { - return nil - } - out := new(Toleration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TopologySelectorLabelRequirement) DeepCopyInto(out *TopologySelectorLabelRequirement) { - *out = *in - if in.Values != nil { - in, out := &in.Values, &out.Values - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TopologySelectorLabelRequirement. -func (in *TopologySelectorLabelRequirement) DeepCopy() *TopologySelectorLabelRequirement { - if in == nil { - return nil - } - out := new(TopologySelectorLabelRequirement) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TopologySelectorTerm) DeepCopyInto(out *TopologySelectorTerm) { - *out = *in - if in.MatchLabelExpressions != nil { - in, out := &in.MatchLabelExpressions, &out.MatchLabelExpressions - *out = make([]TopologySelectorLabelRequirement, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TopologySelectorTerm. -func (in *TopologySelectorTerm) DeepCopy() *TopologySelectorTerm { - if in == nil { - return nil - } - out := new(TopologySelectorTerm) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TopologySpreadConstraint) DeepCopyInto(out *TopologySpreadConstraint) { - *out = *in - if in.LabelSelector != nil { - in, out := &in.LabelSelector, &out.LabelSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TopologySpreadConstraint. -func (in *TopologySpreadConstraint) DeepCopy() *TopologySpreadConstraint { - if in == nil { - return nil - } - out := new(TopologySpreadConstraint) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TypedLocalObjectReference) DeepCopyInto(out *TypedLocalObjectReference) { - *out = *in - if in.APIGroup != nil { - in, out := &in.APIGroup, &out.APIGroup - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypedLocalObjectReference. -func (in *TypedLocalObjectReference) DeepCopy() *TypedLocalObjectReference { - if in == nil { - return nil - } - out := new(TypedLocalObjectReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Volume) DeepCopyInto(out *Volume) { - *out = *in - in.VolumeSource.DeepCopyInto(&out.VolumeSource) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume. -func (in *Volume) DeepCopy() *Volume { - if in == nil { - return nil - } - out := new(Volume) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeDevice) DeepCopyInto(out *VolumeDevice) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeDevice. -func (in *VolumeDevice) DeepCopy() *VolumeDevice { - if in == nil { - return nil - } - out := new(VolumeDevice) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeMount) DeepCopyInto(out *VolumeMount) { - *out = *in - if in.MountPropagation != nil { - in, out := &in.MountPropagation, &out.MountPropagation - *out = new(MountPropagationMode) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeMount. -func (in *VolumeMount) DeepCopy() *VolumeMount { - if in == nil { - return nil - } - out := new(VolumeMount) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeNodeAffinity) DeepCopyInto(out *VolumeNodeAffinity) { - *out = *in - if in.Required != nil { - in, out := &in.Required, &out.Required - *out = new(NodeSelector) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeNodeAffinity. -func (in *VolumeNodeAffinity) DeepCopy() *VolumeNodeAffinity { - if in == nil { - return nil - } - out := new(VolumeNodeAffinity) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeProjection) DeepCopyInto(out *VolumeProjection) { - *out = *in - if in.Secret != nil { - in, out := &in.Secret, &out.Secret - *out = new(SecretProjection) - (*in).DeepCopyInto(*out) - } - if in.DownwardAPI != nil { - in, out := &in.DownwardAPI, &out.DownwardAPI - *out = new(DownwardAPIProjection) - (*in).DeepCopyInto(*out) - } - if in.ConfigMap != nil { - in, out := &in.ConfigMap, &out.ConfigMap - *out = new(ConfigMapProjection) - (*in).DeepCopyInto(*out) - } - if in.ServiceAccountToken != nil { - in, out := &in.ServiceAccountToken, &out.ServiceAccountToken - *out = new(ServiceAccountTokenProjection) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeProjection. -func (in *VolumeProjection) DeepCopy() *VolumeProjection { - if in == nil { - return nil - } - out := new(VolumeProjection) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSource) DeepCopyInto(out *VolumeSource) { - *out = *in - if in.HostPath != nil { - in, out := &in.HostPath, &out.HostPath - *out = new(HostPathVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.EmptyDir != nil { - in, out := &in.EmptyDir, &out.EmptyDir - *out = new(EmptyDirVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.GCEPersistentDisk != nil { - in, out := &in.GCEPersistentDisk, &out.GCEPersistentDisk - *out = new(GCEPersistentDiskVolumeSource) - **out = **in - } - if in.AWSElasticBlockStore != nil { - in, out := &in.AWSElasticBlockStore, &out.AWSElasticBlockStore - *out = new(AWSElasticBlockStoreVolumeSource) - **out = **in - } - if in.GitRepo != nil { - in, out := &in.GitRepo, &out.GitRepo - *out = new(GitRepoVolumeSource) - **out = **in - } - if in.Secret != nil { - in, out := &in.Secret, &out.Secret - *out = new(SecretVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.NFS != nil { - in, out := &in.NFS, &out.NFS - *out = new(NFSVolumeSource) - **out = **in - } - if in.ISCSI != nil { - in, out := &in.ISCSI, &out.ISCSI - *out = new(ISCSIVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Glusterfs != nil { - in, out := &in.Glusterfs, &out.Glusterfs - *out = new(GlusterfsVolumeSource) - **out = **in - } - if in.PersistentVolumeClaim != nil { - in, out := &in.PersistentVolumeClaim, &out.PersistentVolumeClaim - *out = new(PersistentVolumeClaimVolumeSource) - **out = **in - } - if in.RBD != nil { - in, out := &in.RBD, &out.RBD - *out = new(RBDVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.FlexVolume != nil { - in, out := &in.FlexVolume, &out.FlexVolume - *out = new(FlexVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Cinder != nil { - in, out := &in.Cinder, &out.Cinder - *out = new(CinderVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.CephFS != nil { - in, out := &in.CephFS, &out.CephFS - *out = new(CephFSVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.Flocker != nil { - in, out := &in.Flocker, &out.Flocker - *out = new(FlockerVolumeSource) - **out = **in - } - if in.DownwardAPI != nil { - in, out := &in.DownwardAPI, &out.DownwardAPI - *out = new(DownwardAPIVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.FC != nil { - in, out := &in.FC, &out.FC - *out = new(FCVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.AzureFile != nil { - in, out := &in.AzureFile, &out.AzureFile - *out = new(AzureFileVolumeSource) - **out = **in - } - if in.ConfigMap != nil { - in, out := &in.ConfigMap, &out.ConfigMap - *out = new(ConfigMapVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.VsphereVolume != nil { - in, out := &in.VsphereVolume, &out.VsphereVolume - *out = new(VsphereVirtualDiskVolumeSource) - **out = **in - } - if in.Quobyte != nil { - in, out := &in.Quobyte, &out.Quobyte - *out = new(QuobyteVolumeSource) - **out = **in - } - if in.AzureDisk != nil { - in, out := &in.AzureDisk, &out.AzureDisk - *out = new(AzureDiskVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.PhotonPersistentDisk != nil { - in, out := &in.PhotonPersistentDisk, &out.PhotonPersistentDisk - *out = new(PhotonPersistentDiskVolumeSource) - **out = **in - } - if in.Projected != nil { - in, out := &in.Projected, &out.Projected - *out = new(ProjectedVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.PortworxVolume != nil { - in, out := &in.PortworxVolume, &out.PortworxVolume - *out = new(PortworxVolumeSource) - **out = **in - } - if in.ScaleIO != nil { - in, out := &in.ScaleIO, &out.ScaleIO - *out = new(ScaleIOVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.StorageOS != nil { - in, out := &in.StorageOS, &out.StorageOS - *out = new(StorageOSVolumeSource) - (*in).DeepCopyInto(*out) - } - if in.CSI != nil { - in, out := &in.CSI, &out.CSI - *out = new(CSIVolumeSource) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSource. -func (in *VolumeSource) DeepCopy() *VolumeSource { - if in == nil { - return nil - } - out := new(VolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VsphereVirtualDiskVolumeSource) DeepCopyInto(out *VsphereVirtualDiskVolumeSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VsphereVirtualDiskVolumeSource. -func (in *VsphereVirtualDiskVolumeSource) DeepCopy() *VsphereVirtualDiskVolumeSource { - if in == nil { - return nil - } - out := new(VsphereVirtualDiskVolumeSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WeightedPodAffinityTerm) DeepCopyInto(out *WeightedPodAffinityTerm) { - *out = *in - in.PodAffinityTerm.DeepCopyInto(&out.PodAffinityTerm) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeightedPodAffinityTerm. -func (in *WeightedPodAffinityTerm) DeepCopy() *WeightedPodAffinityTerm { - if in == nil { - return nil - } - out := new(WeightedPodAffinityTerm) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WindowsSecurityContextOptions) DeepCopyInto(out *WindowsSecurityContextOptions) { - *out = *in - if in.GMSACredentialSpecName != nil { - in, out := &in.GMSACredentialSpecName, &out.GMSACredentialSpecName - *out = new(string) - **out = **in - } - if in.GMSACredentialSpec != nil { - in, out := &in.GMSACredentialSpec, &out.GMSACredentialSpec - *out = new(string) - **out = **in - } - if in.RunAsUserName != nil { - in, out := &in.RunAsUserName, &out.RunAsUserName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WindowsSecurityContextOptions. -func (in *WindowsSecurityContextOptions) DeepCopy() *WindowsSecurityContextOptions { - if in == nil { - return nil - } - out := new(WindowsSecurityContextOptions) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/discovery/v1alpha1/doc.go b/pseudo/k8s/api/discovery/v1alpha1/doc.go deleted file mode 100644 index c72467135..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2019 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:protobuf-gen=package -// +k8s:openapi-gen=true -// +groupName=discovery.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/discovery/v1alpha1" diff --git a/pseudo/k8s/api/discovery/v1alpha1/generated.pb.go b/pseudo/k8s/api/discovery/v1alpha1/generated.pb.go deleted file mode 100644 index aef601dce..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/generated.pb.go +++ /dev/null @@ -1,1689 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/discovery/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_772f83c5b34e07a5, []int{0} -} -func (m *Endpoint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Endpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Endpoint.Merge(m, src) -} -func (m *Endpoint) XXX_Size() int { - return m.Size() -} -func (m *Endpoint) XXX_DiscardUnknown() { - xxx_messageInfo_Endpoint.DiscardUnknown(m) -} - -var xxx_messageInfo_Endpoint proto.InternalMessageInfo - -func (m *EndpointConditions) Reset() { *m = EndpointConditions{} } -func (*EndpointConditions) ProtoMessage() {} -func (*EndpointConditions) Descriptor() ([]byte, []int) { - return fileDescriptor_772f83c5b34e07a5, []int{1} -} -func (m *EndpointConditions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointConditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointConditions) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointConditions.Merge(m, src) -} -func (m *EndpointConditions) XXX_Size() int { - return m.Size() -} -func (m *EndpointConditions) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointConditions.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointConditions proto.InternalMessageInfo - -func (m *EndpointPort) Reset() { *m = EndpointPort{} } -func (*EndpointPort) ProtoMessage() {} -func (*EndpointPort) Descriptor() ([]byte, []int) { - return fileDescriptor_772f83c5b34e07a5, []int{2} -} -func (m *EndpointPort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointPort.Merge(m, src) -} -func (m *EndpointPort) XXX_Size() int { - return m.Size() -} -func (m *EndpointPort) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointPort.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointPort proto.InternalMessageInfo - -func (m *EndpointSlice) Reset() { *m = EndpointSlice{} } -func (*EndpointSlice) ProtoMessage() {} -func (*EndpointSlice) Descriptor() ([]byte, []int) { - return fileDescriptor_772f83c5b34e07a5, []int{3} -} -func (m *EndpointSlice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointSlice) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointSlice.Merge(m, src) -} -func (m *EndpointSlice) XXX_Size() int { - return m.Size() -} -func (m *EndpointSlice) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointSlice.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointSlice proto.InternalMessageInfo - -func (m *EndpointSliceList) Reset() { *m = EndpointSliceList{} } -func (*EndpointSliceList) ProtoMessage() {} -func (*EndpointSliceList) Descriptor() ([]byte, []int) { - return fileDescriptor_772f83c5b34e07a5, []int{4} -} -func (m *EndpointSliceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EndpointSliceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EndpointSliceList) XXX_Merge(src proto.Message) { - xxx_messageInfo_EndpointSliceList.Merge(m, src) -} -func (m *EndpointSliceList) XXX_Size() int { - return m.Size() -} -func (m *EndpointSliceList) XXX_DiscardUnknown() { - xxx_messageInfo_EndpointSliceList.DiscardUnknown(m) -} - -var xxx_messageInfo_EndpointSliceList proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Endpoint)(nil), "k8s.io.api.discovery.v1alpha1.Endpoint") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.discovery.v1alpha1.Endpoint.TopologyEntry") - proto.RegisterType((*EndpointConditions)(nil), "k8s.io.api.discovery.v1alpha1.EndpointConditions") - proto.RegisterType((*EndpointPort)(nil), "k8s.io.api.discovery.v1alpha1.EndpointPort") - proto.RegisterType((*EndpointSlice)(nil), "k8s.io.api.discovery.v1alpha1.EndpointSlice") - proto.RegisterType((*EndpointSliceList)(nil), "k8s.io.api.discovery.v1alpha1.EndpointSliceList") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/discovery/v1alpha1/generated.proto", fileDescriptor_772f83c5b34e07a5) -} - -var fileDescriptor_772f83c5b34e07a5 = []byte{ - // 728 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4b, 0x6f, 0xd3, 0x4a, - 0x14, 0x8e, 0x9b, 0x5a, 0xb2, 0x27, 0x8d, 0xd4, 0x8e, 0xee, 0x22, 0xca, 0xbd, 0xd7, 0x8e, 0xc2, - 0x82, 0x48, 0x85, 0x31, 0xa9, 0x28, 0xaa, 0x60, 0x43, 0x8d, 0xca, 0x43, 0xe2, 0x11, 0x86, 0x2e, - 0x10, 0x62, 0xc1, 0xc4, 0x9e, 0x3a, 0x26, 0x89, 0xc7, 0xb2, 0x27, 0x91, 0xb2, 0xe3, 0x27, 0x20, - 0xf1, 0x77, 0x58, 0xb2, 0xe8, 0xb2, 0xcb, 0xae, 0x0c, 0x35, 0xff, 0xa2, 0x2b, 0x34, 0xe3, 0x57, - 0x4a, 0x78, 0x64, 0x37, 0xe7, 0x9b, 0xf3, 0x7d, 0xe7, 0x9c, 0x6f, 0xce, 0x80, 0x87, 0xe3, 0x83, - 0x18, 0xf9, 0xcc, 0x1a, 0xcf, 0x86, 0x34, 0x0a, 0x28, 0xa7, 0xb1, 0x35, 0xa7, 0x81, 0xcb, 0x22, - 0x2b, 0xbf, 0x20, 0xa1, 0x6f, 0xb9, 0x7e, 0xec, 0xb0, 0x39, 0x8d, 0x16, 0xd6, 0xbc, 0x4f, 0x26, - 0xe1, 0x88, 0xf4, 0x2d, 0x8f, 0x06, 0x34, 0x22, 0x9c, 0xba, 0x28, 0x8c, 0x18, 0x67, 0xf0, 0xff, - 0x2c, 0x1d, 0x91, 0xd0, 0x47, 0x65, 0x3a, 0x2a, 0xd2, 0xdb, 0x37, 0x3d, 0x9f, 0x8f, 0x66, 0x43, - 0xe4, 0xb0, 0xa9, 0xe5, 0x31, 0x8f, 0x59, 0x92, 0x35, 0x9c, 0x9d, 0xc8, 0x48, 0x06, 0xf2, 0x94, - 0xa9, 0xb5, 0xbb, 0x4b, 0xc5, 0x1d, 0x16, 0x51, 0x6b, 0xbe, 0x52, 0xb1, 0x7d, 0xbb, 0xca, 0x99, - 0x12, 0x67, 0xe4, 0x07, 0xa2, 0xbf, 0x70, 0xec, 0x09, 0x20, 0xb6, 0xa6, 0x94, 0x93, 0x5f, 0xb1, - 0xac, 0xdf, 0xb1, 0xa2, 0x59, 0xc0, 0xfd, 0x29, 0x5d, 0x21, 0xdc, 0xf9, 0x1b, 0x21, 0x76, 0x46, - 0x74, 0x4a, 0x7e, 0xe6, 0x75, 0x3f, 0xd7, 0x81, 0x76, 0x14, 0xb8, 0x21, 0xf3, 0x03, 0x0e, 0x77, - 0x81, 0x4e, 0x5c, 0x37, 0xa2, 0x71, 0x4c, 0xe3, 0x96, 0xd2, 0xa9, 0xf7, 0x74, 0xbb, 0x99, 0x26, - 0xa6, 0x7e, 0x58, 0x80, 0xb8, 0xba, 0x87, 0x14, 0x00, 0x87, 0x05, 0xae, 0xcf, 0x7d, 0x16, 0xc4, - 0xad, 0x8d, 0x8e, 0xd2, 0x6b, 0xec, 0xf5, 0xd1, 0x1f, 0xfd, 0x45, 0x45, 0xa5, 0x07, 0x25, 0xd1, - 0x86, 0xa7, 0x89, 0x59, 0x4b, 0x13, 0x13, 0x54, 0x18, 0x5e, 0x12, 0x86, 0x3d, 0xa0, 0x8d, 0x58, - 0xcc, 0x03, 0x32, 0xa5, 0xad, 0x7a, 0x47, 0xe9, 0xe9, 0xf6, 0x56, 0x9a, 0x98, 0xda, 0xe3, 0x1c, - 0xc3, 0xe5, 0x2d, 0x1c, 0x00, 0x9d, 0x93, 0xc8, 0xa3, 0x1c, 0xd3, 0x93, 0xd6, 0xa6, 0xec, 0xe7, - 0xda, 0x72, 0x3f, 0xe2, 0x85, 0xd0, 0xbc, 0x8f, 0x5e, 0x0c, 0xdf, 0x53, 0x47, 0x24, 0xd1, 0x88, - 0x06, 0x0e, 0xcd, 0x46, 0x3c, 0x2e, 0x98, 0xb8, 0x12, 0x81, 0x0e, 0xd0, 0x38, 0x0b, 0xd9, 0x84, - 0x79, 0x8b, 0x96, 0xda, 0xa9, 0xf7, 0x1a, 0x7b, 0xfb, 0x6b, 0x0e, 0x88, 0x8e, 0x73, 0xde, 0x51, - 0xc0, 0xa3, 0x85, 0xbd, 0x9d, 0x0f, 0xa9, 0x15, 0x30, 0x2e, 0x85, 0xdb, 0xf7, 0x40, 0xf3, 0x4a, - 0x32, 0xdc, 0x06, 0xf5, 0x31, 0x5d, 0xb4, 0x14, 0x31, 0x2c, 0x16, 0x47, 0xf8, 0x0f, 0x50, 0xe7, - 0x64, 0x32, 0xa3, 0xd2, 0x65, 0x1d, 0x67, 0xc1, 0xdd, 0x8d, 0x03, 0xa5, 0xbb, 0x0f, 0xe0, 0xaa, - 0xa7, 0xd0, 0x04, 0x6a, 0x44, 0x89, 0x9b, 0x69, 0x68, 0xb6, 0x9e, 0x26, 0xa6, 0x8a, 0x05, 0x80, - 0x33, 0xbc, 0xfb, 0x49, 0x01, 0x5b, 0x05, 0x6f, 0xc0, 0x22, 0x0e, 0xff, 0x03, 0x9b, 0xd2, 0x61, - 0x59, 0xd4, 0xd6, 0xd2, 0xc4, 0xdc, 0x7c, 0x2e, 0xdc, 0x95, 0x28, 0x7c, 0x04, 0x34, 0xb9, 0x2d, - 0x0e, 0x9b, 0x64, 0x2d, 0xd8, 0xbb, 0x62, 0x98, 0x41, 0x8e, 0x5d, 0x26, 0xe6, 0xbf, 0xab, 0x3f, - 0x01, 0x15, 0xd7, 0xb8, 0x24, 0x8b, 0x32, 0x21, 0x8b, 0xb8, 0x7c, 0x48, 0x35, 0x2b, 0x23, 0xca, - 0x63, 0x89, 0x76, 0xbf, 0x6e, 0x80, 0x66, 0xd1, 0xd5, 0xab, 0x89, 0xef, 0x50, 0xf8, 0x0e, 0x68, - 0xe2, 0x87, 0xb8, 0x84, 0x13, 0xd9, 0x5a, 0x63, 0xef, 0xd6, 0xd2, 0x03, 0x94, 0x8b, 0x8e, 0xc2, - 0xb1, 0x27, 0x80, 0x18, 0x89, 0xec, 0xea, 0x8d, 0x9f, 0x51, 0x4e, 0xaa, 0x05, 0xab, 0x30, 0x5c, - 0xaa, 0xc2, 0xfb, 0xa0, 0x91, 0xaf, 0xf4, 0xf1, 0x22, 0xa4, 0x72, 0x6d, 0x74, 0xdb, 0x48, 0x13, - 0xb3, 0x71, 0x58, 0xc1, 0x97, 0x57, 0x43, 0xbc, 0x4c, 0x81, 0xaf, 0x81, 0x4e, 0xf3, 0xa6, 0xc5, - 0x37, 0x10, 0x5b, 0x72, 0x7d, 0xcd, 0x2d, 0xb1, 0x77, 0xf2, 0xde, 0xf4, 0x02, 0x89, 0x71, 0x25, - 0x06, 0x07, 0x40, 0x15, 0xbe, 0xc4, 0xad, 0xba, 0x54, 0xdd, 0x5d, 0x53, 0x55, 0x38, 0x6a, 0x37, - 0x73, 0x65, 0x55, 0x44, 0x31, 0xce, 0x84, 0xba, 0x5f, 0x14, 0xb0, 0x73, 0xc5, 0xe1, 0xa7, 0x7e, - 0xcc, 0xe1, 0xdb, 0x15, 0x97, 0xd1, 0x7a, 0x2e, 0x0b, 0xb6, 0xf4, 0xb8, 0xdc, 0xef, 0x02, 0x59, - 0x72, 0xf8, 0x25, 0x50, 0x7d, 0x4e, 0xa7, 0x85, 0x37, 0x37, 0xd6, 0x9c, 0x42, 0xb6, 0x57, 0x8d, - 0xf1, 0x44, 0x48, 0xe0, 0x4c, 0xc9, 0x46, 0xa7, 0x17, 0x46, 0xed, 0xec, 0xc2, 0xa8, 0x9d, 0x5f, - 0x18, 0xb5, 0x0f, 0xa9, 0xa1, 0x9c, 0xa6, 0x86, 0x72, 0x96, 0x1a, 0xca, 0x79, 0x6a, 0x28, 0xdf, - 0x52, 0x43, 0xf9, 0xf8, 0xdd, 0xa8, 0xbd, 0xd1, 0x0a, 0xcd, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x04, 0x9d, 0x1a, 0x33, 0x3e, 0x06, 0x00, 0x00, -} - -func (m *Endpoint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Endpoint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Topology) > 0 { - keysForTopology := make([]string, 0, len(m.Topology)) - for k := range m.Topology { - keysForTopology = append(keysForTopology, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForTopology) - for iNdEx := len(keysForTopology) - 1; iNdEx >= 0; iNdEx-- { - v := m.Topology[string(keysForTopology[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForTopology[iNdEx]) - copy(dAtA[i:], keysForTopology[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForTopology[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x2a - } - } - if m.TargetRef != nil { - { - size, err := m.TargetRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Hostname != nil { - i -= len(*m.Hostname) - copy(dAtA[i:], *m.Hostname) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Hostname))) - i-- - dAtA[i] = 0x1a - } - { - size, err := m.Conditions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Addresses) > 0 { - for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Addresses[iNdEx]) - copy(dAtA[i:], m.Addresses[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Addresses[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *EndpointConditions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointConditions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointConditions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Ready != nil { - i-- - if *m.Ready { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *EndpointPort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointPort) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) - i-- - dAtA[i] = 0x18 - } - if m.Protocol != nil { - i -= len(*m.Protocol) - copy(dAtA[i:], *m.Protocol) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol))) - i-- - dAtA[i] = 0x12 - } - if m.Name != nil { - i -= len(*m.Name) - copy(dAtA[i:], *m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Name))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EndpointSlice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointSlice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AddressType != nil { - i -= len(*m.AddressType) - copy(dAtA[i:], *m.AddressType) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.AddressType))) - i-- - dAtA[i] = 0x22 - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Endpoints) > 0 { - for iNdEx := len(m.Endpoints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Endpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EndpointSliceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EndpointSliceList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EndpointSliceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Endpoint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Addresses) > 0 { - for _, s := range m.Addresses { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.Conditions.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Hostname != nil { - l = len(*m.Hostname) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.TargetRef != nil { - l = m.TargetRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.Topology) > 0 { - for k, v := range m.Topology { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *EndpointConditions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Ready != nil { - n += 2 - } - return n -} - -func (m *EndpointPort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Name != nil { - l = len(*m.Name) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Protocol != nil { - l = len(*m.Protocol) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - n += 1 + sovGenerated(uint64(*m.Port)) - } - return n -} - -func (m *EndpointSlice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Endpoints) > 0 { - for _, e := range m.Endpoints { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AddressType != nil { - l = len(*m.AddressType) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *EndpointSliceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Endpoint) String() string { - if this == nil { - return "nil" - } - keysForTopology := make([]string, 0, len(this.Topology)) - for k := range this.Topology { - keysForTopology = append(keysForTopology, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForTopology) - mapStringForTopology := "map[string]string{" - for _, k := range keysForTopology { - mapStringForTopology += fmt.Sprintf("%v: %v,", k, this.Topology[k]) - } - mapStringForTopology += "}" - s := strings.Join([]string{`&Endpoint{`, - `Addresses:` + fmt.Sprintf("%v", this.Addresses) + `,`, - `Conditions:` + strings.Replace(strings.Replace(this.Conditions.String(), "EndpointConditions", "EndpointConditions", 1), `&`, ``, 1) + `,`, - `Hostname:` + valueToStringGenerated(this.Hostname) + `,`, - `TargetRef:` + strings.Replace(fmt.Sprintf("%v", this.TargetRef), "ObjectReference", "v1.ObjectReference", 1) + `,`, - `Topology:` + mapStringForTopology + `,`, - `}`, - }, "") - return s -} -func (this *EndpointConditions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EndpointConditions{`, - `Ready:` + valueToStringGenerated(this.Ready) + `,`, - `}`, - }, "") - return s -} -func (this *EndpointPort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EndpointPort{`, - `Name:` + valueToStringGenerated(this.Name) + `,`, - `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, - `Port:` + valueToStringGenerated(this.Port) + `,`, - `}`, - }, "") - return s -} -func (this *EndpointSlice) String() string { - if this == nil { - return "nil" - } - repeatedStringForEndpoints := "[]Endpoint{" - for _, f := range this.Endpoints { - repeatedStringForEndpoints += strings.Replace(strings.Replace(f.String(), "Endpoint", "Endpoint", 1), `&`, ``, 1) + "," - } - repeatedStringForEndpoints += "}" - repeatedStringForPorts := "[]EndpointPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "EndpointPort", "EndpointPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - s := strings.Join([]string{`&EndpointSlice{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Endpoints:` + repeatedStringForEndpoints + `,`, - `Ports:` + repeatedStringForPorts + `,`, - `AddressType:` + valueToStringGenerated(this.AddressType) + `,`, - `}`, - }, "") - return s -} -func (this *EndpointSliceList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]EndpointSlice{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "EndpointSlice", "EndpointSlice", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&EndpointSliceList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Endpoint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Endpoint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Endpoint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Conditions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Hostname = &s - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TargetRef == nil { - m.TargetRef = &v1.ObjectReference{} - } - if err := m.TargetRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topology", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Topology == nil { - m.Topology = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Topology[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointConditions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointConditions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointConditions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Ready", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Ready = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointPort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointPort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointPort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.Name = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) - m.Protocol = &s - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Port = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointSlice) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointSlice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointSlice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoints", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Endpoints = append(m.Endpoints, Endpoint{}) - if err := m.Endpoints[len(m.Endpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, EndpointPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := AddressType(dAtA[iNdEx:postIndex]) - m.AddressType = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EndpointSliceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EndpointSliceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EndpointSliceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, EndpointSlice{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/discovery/v1alpha1/generated.proto b/pseudo/k8s/api/discovery/v1alpha1/generated.proto deleted file mode 100644 index 6a8e0c250..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/generated.proto +++ /dev/null @@ -1,148 +0,0 @@ -/* -Copyright 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.discovery.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// Endpoint represents a single logical "backend" implementing a service. -message Endpoint { - // addresses of this endpoint. The contents of this field are interpreted - // according to the corresponding EndpointSlice addressType field. This - // allows for cases like dual-stack (IPv4 and IPv6) networking. Consumers - // (e.g. kube-proxy) must handle different types of addresses in the context - // of their own capabilities. This must contain at least one address but no - // more than 100. - // +listType=set - repeated string addresses = 1; - - // conditions contains information about the current status of the endpoint. - optional EndpointConditions conditions = 2; - - // hostname of this endpoint. This field may be used by consumers of - // endpoints to distinguish endpoints from each other (e.g. in DNS names). - // Multiple endpoints which use the same hostname should be considered - // fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) - // validation. - // +optional - optional string hostname = 3; - - // targetRef is a reference to a Kubernetes object that represents this - // endpoint. - // +optional - optional k8s.io.api.core.v1.ObjectReference targetRef = 4; - - // topology contains arbitrary topology information associated with the - // endpoint. These key/value pairs must conform with the label format. - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // Topology may include a maximum of 16 key/value pairs. This includes, but - // is not limited to the following well known keys: - // * kubernetes.io/hostname: the value indicates the hostname of the node - // where the endpoint is located. This should match the corresponding - // node label. - // * topology.kubernetes.io/zone: the value indicates the zone where the - // endpoint is located. This should match the corresponding node label. - // * topology.kubernetes.io/region: the value indicates the region where the - // endpoint is located. This should match the corresponding node label. - // +optional - map topology = 5; -} - -// EndpointConditions represents the current condition of an endpoint. -message EndpointConditions { - // ready indicates that this endpoint is prepared to receive traffic, - // according to whatever system is managing the endpoint. A nil value - // indicates an unknown state. In most cases consumers should interpret this - // unknown state as ready. - // +optional - optional bool ready = 1; -} - -// EndpointPort represents a Port used by an EndpointSlice -message EndpointPort { - // The name of this port. All ports in an EndpointSlice must have a unique - // name. If the EndpointSlice is dervied from a Kubernetes service, this - // corresponds to the Service.ports[].name. - // Name must either be an empty string or pass IANA_SVC_NAME validation: - // * must be no more than 15 characters long - // * may contain only [-a-z0-9] - // * must contain at least one letter [a-z] - // * it must not start or end with a hyphen, nor contain adjacent hyphens - // Default is empty string. - optional string name = 1; - - // The IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - optional string protocol = 2; - - // The port number of the endpoint. - // If this is not specified, ports are not restricted and must be - // interpreted in the context of the specific consumer. - optional int32 port = 3; -} - -// EndpointSlice represents a subset of the endpoints that implement a service. -// For a given service there may be multiple EndpointSlice objects, selected by -// labels, which must be joined to produce the full set of endpoints. -message EndpointSlice { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // addressType specifies the type of address carried by this EndpointSlice. - // All addresses in this slice must be the same type. - // Default is IP - // +optional - optional string addressType = 4; - - // endpoints is a list of unique endpoints in this slice. Each slice may - // include a maximum of 1000 endpoints. - // +listType=atomic - repeated Endpoint endpoints = 2; - - // ports specifies the list of network ports exposed by each endpoint in - // this slice. Each port must have a unique name. When ports is empty, it - // indicates that there are no defined ports. When a port is defined with a - // nil port value, it indicates "all ports". Each slice may include a - // maximum of 100 ports. - // +optional - // +listType=atomic - repeated EndpointPort ports = 3; -} - -// EndpointSliceList represents a list of endpoint slices -message EndpointSliceList { - // Standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of endpoint slices - // +listType=set - repeated EndpointSlice items = 2; -} - diff --git a/pseudo/k8s/api/discovery/v1alpha1/register.go b/pseudo/k8s/api/discovery/v1alpha1/register.go deleted file mode 100644 index 889381d2c..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/register.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2019 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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name used in this package -const GroupName = "discovery.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - // SchemeBuilder is the scheme builder with scheme init functions to run for this API package - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme - AddToScheme = SchemeBuilder.AddToScheme -) - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &EndpointSlice{}, - &EndpointSliceList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/discovery/v1alpha1/types.go b/pseudo/k8s/api/discovery/v1alpha1/types.go deleted file mode 100644 index 3a5fdfeba..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/types.go +++ /dev/null @@ -1,144 +0,0 @@ -/* -Copyright 2019 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 v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// EndpointSlice represents a subset of the endpoints that implement a service. -// For a given service there may be multiple EndpointSlice objects, selected by -// labels, which must be joined to produce the full set of endpoints. -type EndpointSlice struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // addressType specifies the type of address carried by this EndpointSlice. - // All addresses in this slice must be the same type. - // Default is IP - // +optional - AddressType *AddressType `json:"addressType" protobuf:"bytes,4,rep,name=addressType"` - // endpoints is a list of unique endpoints in this slice. Each slice may - // include a maximum of 1000 endpoints. - // +listType=atomic - Endpoints []Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"` - // ports specifies the list of network ports exposed by each endpoint in - // this slice. Each port must have a unique name. When ports is empty, it - // indicates that there are no defined ports. When a port is defined with a - // nil port value, it indicates "all ports". Each slice may include a - // maximum of 100 ports. - // +optional - // +listType=atomic - Ports []EndpointPort `json:"ports" protobuf:"bytes,3,rep,name=ports"` -} - -// AddressType represents the type of address referred to by an endpoint. -type AddressType string - -const ( - // AddressTypeIP represents an IP Address. - AddressTypeIP = AddressType("IP") -) - -// Endpoint represents a single logical "backend" implementing a service. -type Endpoint struct { - // addresses of this endpoint. The contents of this field are interpreted - // according to the corresponding EndpointSlice addressType field. This - // allows for cases like dual-stack (IPv4 and IPv6) networking. Consumers - // (e.g. kube-proxy) must handle different types of addresses in the context - // of their own capabilities. This must contain at least one address but no - // more than 100. - // +listType=set - Addresses []string `json:"addresses" protobuf:"bytes,1,rep,name=addresses"` - // conditions contains information about the current status of the endpoint. - Conditions EndpointConditions `json:"conditions,omitempty" protobuf:"bytes,2,opt,name=conditions"` - // hostname of this endpoint. This field may be used by consumers of - // endpoints to distinguish endpoints from each other (e.g. in DNS names). - // Multiple endpoints which use the same hostname should be considered - // fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) - // validation. - // +optional - Hostname *string `json:"hostname,omitempty" protobuf:"bytes,3,opt,name=hostname"` - // targetRef is a reference to a Kubernetes object that represents this - // endpoint. - // +optional - TargetRef *v1.ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,4,opt,name=targetRef"` - // topology contains arbitrary topology information associated with the - // endpoint. These key/value pairs must conform with the label format. - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - // Topology may include a maximum of 16 key/value pairs. This includes, but - // is not limited to the following well known keys: - // * kubernetes.io/hostname: the value indicates the hostname of the node - // where the endpoint is located. This should match the corresponding - // node label. - // * topology.kubernetes.io/zone: the value indicates the zone where the - // endpoint is located. This should match the corresponding node label. - // * topology.kubernetes.io/region: the value indicates the region where the - // endpoint is located. This should match the corresponding node label. - // +optional - Topology map[string]string `json:"topology,omitempty" protobuf:"bytes,5,opt,name=topology"` -} - -// EndpointConditions represents the current condition of an endpoint. -type EndpointConditions struct { - // ready indicates that this endpoint is prepared to receive traffic, - // according to whatever system is managing the endpoint. A nil value - // indicates an unknown state. In most cases consumers should interpret this - // unknown state as ready. - // +optional - Ready *bool `json:"ready,omitempty" protobuf:"bytes,1,name=ready"` -} - -// EndpointPort represents a Port used by an EndpointSlice -type EndpointPort struct { - // The name of this port. All ports in an EndpointSlice must have a unique - // name. If the EndpointSlice is dervied from a Kubernetes service, this - // corresponds to the Service.ports[].name. - // Name must either be an empty string or pass IANA_SVC_NAME validation: - // * must be no more than 15 characters long - // * may contain only [-a-z0-9] - // * must contain at least one letter [a-z] - // * it must not start or end with a hyphen, nor contain adjacent hyphens - // Default is empty string. - Name *string `json:"name,omitempty" protobuf:"bytes,1,name=name"` - // The IP protocol for this port. - // Must be UDP, TCP, or SCTP. - // Default is TCP. - Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,2,name=protocol"` - // The port number of the endpoint. - // If this is not specified, ports are not restricted and must be - // interpreted in the context of the specific consumer. - Port *int32 `json:"port,omitempty" protobuf:"bytes,3,opt,name=port"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// EndpointSliceList represents a list of endpoint slices -type EndpointSliceList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // List of endpoint slices - // +listType=set - Items []EndpointSlice `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/discovery/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/discovery/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index a524bcd68..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,85 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_Endpoint = map[string]string{ - "": "Endpoint represents a single logical \"backend\" implementing a service.", - "addresses": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. This allows for cases like dual-stack (IPv4 and IPv6) networking. Consumers (e.g. kube-proxy) must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100.", - "conditions": "conditions contains information about the current status of the endpoint.", - "hostname": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation.", - "targetRef": "targetRef is a reference to a Kubernetes object that represents this endpoint.", - "topology": "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node\n where the endpoint is located. This should match the corresponding\n node label.\n* topology.kubernetes.io/zone: the value indicates the zone where the\n endpoint is located. This should match the corresponding node label.\n* topology.kubernetes.io/region: the value indicates the region where the\n endpoint is located. This should match the corresponding node label.", -} - -func (Endpoint) SwaggerDoc() map[string]string { - return map_Endpoint -} - -var map_EndpointConditions = map[string]string{ - "": "EndpointConditions represents the current condition of an endpoint.", - "ready": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready.", -} - -func (EndpointConditions) SwaggerDoc() map[string]string { - return map_EndpointConditions -} - -var map_EndpointPort = map[string]string{ - "": "EndpointPort represents a Port used by an EndpointSlice", - "name": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass IANA_SVC_NAME validation: * must be no more than 15 characters long * may contain only [-a-z0-9] * must contain at least one letter [a-z] * it must not start or end with a hyphen, nor contain adjacent hyphens Default is empty string.", - "protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "port": "The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", -} - -func (EndpointPort) SwaggerDoc() map[string]string { - return map_EndpointPort -} - -var map_EndpointSlice = map[string]string{ - "": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", - "metadata": "Standard object's metadata.", - "addressType": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. Default is IP", - "endpoints": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", - "ports": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", -} - -func (EndpointSlice) SwaggerDoc() map[string]string { - return map_EndpointSlice -} - -var map_EndpointSliceList = map[string]string{ - "": "EndpointSliceList represents a list of endpoint slices", - "metadata": "Standard list metadata.", - "items": "List of endpoint slices", -} - -func (EndpointSliceList) SwaggerDoc() map[string]string { - return map_EndpointSliceList -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/discovery/v1alpha1/well_known_labels.go b/pseudo/k8s/api/discovery/v1alpha1/well_known_labels.go deleted file mode 100644 index 850cd2059..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/well_known_labels.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2019 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 v1alpha1 - -const ( - // LabelServiceName is used to indicate the name of a Kubernetes service. - LabelServiceName = "kubernetes.io/service-name" -) diff --git a/pseudo/k8s/api/discovery/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/discovery/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index a9c405b68..000000000 --- a/pseudo/k8s/api/discovery/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,195 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Endpoint) DeepCopyInto(out *Endpoint) { - *out = *in - if in.Addresses != nil { - in, out := &in.Addresses, &out.Addresses - *out = make([]string, len(*in)) - copy(*out, *in) - } - in.Conditions.DeepCopyInto(&out.Conditions) - if in.Hostname != nil { - in, out := &in.Hostname, &out.Hostname - *out = new(string) - **out = **in - } - if in.TargetRef != nil { - in, out := &in.TargetRef, &out.TargetRef - *out = new(v1.ObjectReference) - **out = **in - } - if in.Topology != nil { - in, out := &in.Topology, &out.Topology - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint. -func (in *Endpoint) DeepCopy() *Endpoint { - if in == nil { - return nil - } - out := new(Endpoint) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions) { - *out = *in - if in.Ready != nil { - in, out := &in.Ready, &out.Ready - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointConditions. -func (in *EndpointConditions) DeepCopy() *EndpointConditions { - if in == nil { - return nil - } - out := new(EndpointConditions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointPort) DeepCopyInto(out *EndpointPort) { - *out = *in - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(v1.Protocol) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointPort. -func (in *EndpointPort) DeepCopy() *EndpointPort { - if in == nil { - return nil - } - out := new(EndpointPort) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.AddressType != nil { - in, out := &in.AddressType, &out.AddressType - *out = new(AddressType) - **out = **in - } - if in.Endpoints != nil { - in, out := &in.Endpoints, &out.Endpoints - *out = make([]Endpoint, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]EndpointPort, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSlice. -func (in *EndpointSlice) DeepCopy() *EndpointSlice { - if in == nil { - return nil - } - out := new(EndpointSlice) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EndpointSlice) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]EndpointSlice, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSliceList. -func (in *EndpointSliceList) DeepCopy() *EndpointSliceList { - if in == nil { - return nil - } - out := new(EndpointSliceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EndpointSliceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/api/events/v1beta1/doc.go b/pseudo/k8s/api/events/v1beta1/doc.go deleted file mode 100644 index 4d9b53d91..000000000 --- a/pseudo/k8s/api/events/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=events.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/events/v1beta1" diff --git a/pseudo/k8s/api/events/v1beta1/generated.pb.go b/pseudo/k8s/api/events/v1beta1/generated.pb.go deleted file mode 100644 index ad6e6d218..000000000 --- a/pseudo/k8s/api/events/v1beta1/generated.pb.go +++ /dev/null @@ -1,1474 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/events/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Event) Reset() { *m = Event{} } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_4f97f691c32a5ac8, []int{0} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) -} - -var xxx_messageInfo_Event proto.InternalMessageInfo - -func (m *EventList) Reset() { *m = EventList{} } -func (*EventList) ProtoMessage() {} -func (*EventList) Descriptor() ([]byte, []int) { - return fileDescriptor_4f97f691c32a5ac8, []int{1} -} -func (m *EventList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EventList) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventList.Merge(m, src) -} -func (m *EventList) XXX_Size() int { - return m.Size() -} -func (m *EventList) XXX_DiscardUnknown() { - xxx_messageInfo_EventList.DiscardUnknown(m) -} - -var xxx_messageInfo_EventList proto.InternalMessageInfo - -func (m *EventSeries) Reset() { *m = EventSeries{} } -func (*EventSeries) ProtoMessage() {} -func (*EventSeries) Descriptor() ([]byte, []int) { - return fileDescriptor_4f97f691c32a5ac8, []int{2} -} -func (m *EventSeries) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EventSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *EventSeries) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventSeries.Merge(m, src) -} -func (m *EventSeries) XXX_Size() int { - return m.Size() -} -func (m *EventSeries) XXX_DiscardUnknown() { - xxx_messageInfo_EventSeries.DiscardUnknown(m) -} - -var xxx_messageInfo_EventSeries proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Event)(nil), "k8s.io.api.events.v1beta1.Event") - proto.RegisterType((*EventList)(nil), "k8s.io.api.events.v1beta1.EventList") - proto.RegisterType((*EventSeries)(nil), "k8s.io.api.events.v1beta1.EventSeries") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/events/v1beta1/generated.proto", fileDescriptor_4f97f691c32a5ac8) -} - -var fileDescriptor_4f97f691c32a5ac8 = []byte{ - // 801 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0x16, 0x13, 0x4b, 0xb2, 0x56, 0x49, 0x2c, 0x6f, 0x0e, 0xde, 0xb8, 0x00, 0xa5, 0x2a, 0x40, - 0x20, 0x14, 0x08, 0x59, 0x07, 0x45, 0xdb, 0x6b, 0x18, 0xb9, 0x45, 0x02, 0xbb, 0x01, 0xd6, 0x3e, - 0x15, 0x3d, 0x64, 0x45, 0x4d, 0x68, 0x56, 0xe2, 0x2e, 0xb1, 0xbb, 0x12, 0xe0, 0x5b, 0x2f, 0x05, - 0x7a, 0xec, 0x33, 0xf4, 0x09, 0xfa, 0x18, 0x3e, 0xe6, 0x98, 0x93, 0x50, 0xb3, 0x6f, 0xd1, 0x53, - 0xc1, 0xe5, 0x4a, 0x94, 0xf5, 0x83, 0xa8, 0xe8, 0x4d, 0x9c, 0xf9, 0x7e, 0x66, 0x66, 0x47, 0x83, - 0x82, 0xd1, 0xb7, 0xca, 0x8b, 0x85, 0x3f, 0x9a, 0x0c, 0x40, 0x72, 0xd0, 0xa0, 0xfc, 0x29, 0xf0, - 0xa1, 0x90, 0xbe, 0x4d, 0xb0, 0x34, 0xf6, 0x61, 0x0a, 0x5c, 0x2b, 0x7f, 0x7a, 0x32, 0x00, 0xcd, - 0x4e, 0xfc, 0x08, 0x38, 0x48, 0xa6, 0x61, 0xe8, 0xa5, 0x52, 0x68, 0x81, 0x9f, 0x14, 0x50, 0x8f, - 0xa5, 0xb1, 0x57, 0x40, 0x3d, 0x0b, 0x3d, 0x7e, 0x1e, 0xc5, 0xfa, 0x6a, 0x32, 0xf0, 0x42, 0x91, - 0xf8, 0x91, 0x88, 0x84, 0x6f, 0x18, 0x83, 0xc9, 0x7b, 0xf3, 0x65, 0x3e, 0xcc, 0xaf, 0x42, 0xe9, - 0xb8, 0xbb, 0x64, 0x1a, 0x0a, 0x09, 0xfe, 0x74, 0xcd, 0xed, 0xf8, 0xab, 0x12, 0x93, 0xb0, 0xf0, - 0x2a, 0xe6, 0x20, 0xaf, 0xfd, 0x74, 0x14, 0xe5, 0x01, 0xe5, 0x27, 0xa0, 0xd9, 0x26, 0x96, 0xbf, - 0x8d, 0x25, 0x27, 0x5c, 0xc7, 0x09, 0xac, 0x11, 0xbe, 0xfe, 0x14, 0x41, 0x85, 0x57, 0x90, 0xb0, - 0x55, 0x5e, 0xf7, 0x8f, 0x06, 0xaa, 0x9e, 0xe6, 0x43, 0xc0, 0xef, 0xd0, 0x7e, 0x5e, 0xcd, 0x90, - 0x69, 0x46, 0x9c, 0x8e, 0xd3, 0x6b, 0xbe, 0xf8, 0xd2, 0x2b, 0x27, 0xb5, 0x10, 0xf5, 0xd2, 0x51, - 0x94, 0x07, 0x94, 0x97, 0xa3, 0xbd, 0xe9, 0x89, 0xf7, 0x76, 0xf0, 0x33, 0x84, 0xfa, 0x1c, 0x34, - 0x0b, 0xf0, 0xcd, 0xac, 0x5d, 0xc9, 0x66, 0x6d, 0x54, 0xc6, 0xe8, 0x42, 0x15, 0xbf, 0x43, 0x0d, - 0x33, 0xef, 0xcb, 0x38, 0x01, 0x72, 0xcf, 0x58, 0xf8, 0xbb, 0x59, 0x9c, 0xc7, 0xa1, 0x14, 0x39, - 0x2d, 0x38, 0xb4, 0x0e, 0x8d, 0xd3, 0xb9, 0x12, 0x2d, 0x45, 0xf1, 0x1b, 0x54, 0x53, 0x20, 0x63, - 0x50, 0xe4, 0xbe, 0x91, 0x7f, 0xe6, 0x6d, 0x7d, 0x6b, 0xcf, 0x08, 0x5c, 0x18, 0x74, 0x80, 0xb2, - 0x59, 0xbb, 0x56, 0xfc, 0xa6, 0x56, 0x01, 0x9f, 0xa3, 0xc7, 0x12, 0x52, 0x21, 0x75, 0xcc, 0xa3, - 0x57, 0x82, 0x6b, 0x29, 0xc6, 0x63, 0x90, 0x64, 0xaf, 0xe3, 0xf4, 0x1a, 0xc1, 0x67, 0xb6, 0x8c, - 0xc7, 0x74, 0x1d, 0x42, 0x37, 0xf1, 0xf0, 0xf7, 0xe8, 0x70, 0x11, 0x7e, 0xcd, 0x95, 0x66, 0x3c, - 0x04, 0x52, 0x35, 0x62, 0x4f, 0xac, 0xd8, 0x21, 0x5d, 0x05, 0xd0, 0x75, 0x0e, 0x7e, 0x86, 0x6a, - 0x2c, 0xd4, 0xb1, 0xe0, 0xa4, 0x66, 0xd8, 0x8f, 0x2c, 0xbb, 0xf6, 0xd2, 0x44, 0xa9, 0xcd, 0xe6, - 0x38, 0x09, 0x4c, 0x09, 0x4e, 0xea, 0x77, 0x71, 0xd4, 0x44, 0xa9, 0xcd, 0xe2, 0x4b, 0xd4, 0x90, - 0x10, 0x31, 0x39, 0x8c, 0x79, 0x44, 0xf6, 0xcd, 0xd8, 0x9e, 0x2e, 0x8f, 0x2d, 0x5f, 0xec, 0xf2, - 0x99, 0x29, 0xbc, 0x07, 0x09, 0x3c, 0x5c, 0x7a, 0x09, 0x3a, 0x67, 0xd3, 0x52, 0x08, 0xbf, 0x41, - 0x75, 0x09, 0xe3, 0x7c, 0xd1, 0x48, 0x63, 0x77, 0xcd, 0x66, 0x36, 0x6b, 0xd7, 0x69, 0xc1, 0xa3, - 0x73, 0x01, 0xdc, 0x41, 0x7b, 0x5c, 0x68, 0x20, 0xc8, 0xf4, 0xf1, 0xc0, 0xfa, 0xee, 0xfd, 0x20, - 0x34, 0x50, 0x93, 0xc9, 0x11, 0xfa, 0x3a, 0x05, 0xd2, 0xbc, 0x8b, 0xb8, 0xbc, 0x4e, 0x81, 0x9a, - 0x0c, 0x06, 0xd4, 0x1a, 0x42, 0x2a, 0x21, 0xcc, 0x15, 0x2f, 0xc4, 0x44, 0x86, 0x40, 0x1e, 0x98, - 0xc2, 0xda, 0x9b, 0x0a, 0x2b, 0x96, 0xc3, 0xc0, 0x02, 0x62, 0xe5, 0x5a, 0xfd, 0x15, 0x01, 0xba, - 0x26, 0x89, 0x7f, 0x73, 0x10, 0x29, 0x83, 0xdf, 0xc5, 0x52, 0x99, 0xc5, 0x54, 0x9a, 0x25, 0x29, - 0x79, 0x68, 0xfc, 0xbe, 0xd8, 0x6d, 0xe5, 0xcd, 0xb6, 0x77, 0xac, 0x35, 0xe9, 0x6f, 0xd1, 0xa4, - 0x5b, 0xdd, 0xf0, 0xaf, 0x0e, 0x3a, 0x2a, 0x93, 0x67, 0x6c, 0xb9, 0x92, 0x47, 0xff, 0xb9, 0x92, - 0xb6, 0xad, 0xe4, 0xa8, 0xbf, 0x59, 0x92, 0x6e, 0xf3, 0xc2, 0x2f, 0xd1, 0x41, 0x99, 0x7a, 0x25, - 0x26, 0x5c, 0x93, 0x83, 0x8e, 0xd3, 0xab, 0x06, 0x47, 0x56, 0xf2, 0xa0, 0x7f, 0x37, 0x4d, 0x57, - 0xf1, 0xdd, 0x3f, 0x1d, 0x54, 0xfc, 0xdf, 0xcf, 0x62, 0xa5, 0xf1, 0x4f, 0x6b, 0x87, 0xca, 0xdb, - 0xad, 0x91, 0x9c, 0x6d, 0xce, 0x54, 0xcb, 0x3a, 0xef, 0xcf, 0x23, 0x4b, 0x47, 0xea, 0x14, 0x55, - 0x63, 0x0d, 0x89, 0x22, 0xf7, 0x3a, 0xf7, 0x7b, 0xcd, 0x17, 0x9d, 0x4f, 0x5d, 0x90, 0xe0, 0xa1, - 0x15, 0xab, 0xbe, 0xce, 0x69, 0xb4, 0x60, 0x77, 0x33, 0x07, 0x35, 0x97, 0x2e, 0x0c, 0x7e, 0x8a, - 0xaa, 0xa1, 0xe9, 0xdd, 0x31, 0xbd, 0x2f, 0x48, 0x45, 0xc7, 0x45, 0x0e, 0x4f, 0x50, 0x6b, 0xcc, - 0x94, 0x7e, 0x3b, 0x50, 0x20, 0xa7, 0x30, 0xfc, 0x3f, 0x77, 0x72, 0xb1, 0xb4, 0x67, 0x2b, 0x82, - 0x74, 0xcd, 0x02, 0x7f, 0x83, 0xaa, 0x4a, 0x33, 0x0d, 0xe6, 0x68, 0x36, 0x82, 0xcf, 0xe7, 0xb5, - 0x5d, 0xe4, 0xc1, 0x7f, 0x66, 0xed, 0xd6, 0x52, 0x23, 0x26, 0x46, 0x0b, 0x7c, 0xf0, 0xfc, 0xe6, - 0xd6, 0xad, 0x7c, 0xb8, 0x75, 0x2b, 0x1f, 0x6f, 0xdd, 0xca, 0x2f, 0x99, 0xeb, 0xdc, 0x64, 0xae, - 0xf3, 0x21, 0x73, 0x9d, 0x8f, 0x99, 0xeb, 0xfc, 0x95, 0xb9, 0xce, 0xef, 0x7f, 0xbb, 0x95, 0x1f, - 0xeb, 0x76, 0x5e, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x25, 0x9b, 0x14, 0x4d, 0xbd, 0x07, 0x00, - 0x00, -} - -func (m *Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.DeprecatedCount)) - i-- - dAtA[i] = 0x78 - { - size, err := m.DeprecatedLastTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - { - size, err := m.DeprecatedFirstTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - { - size, err := m.DeprecatedSource.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0x5a - i -= len(m.Note) - copy(dAtA[i:], m.Note) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Note))) - i-- - dAtA[i] = 0x52 - if m.Related != nil { - { - size, err := m.Related.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - { - size, err := m.Regarding.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x3a - i -= len(m.Action) - copy(dAtA[i:], m.Action) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) - i-- - dAtA[i] = 0x32 - i -= len(m.ReportingInstance) - copy(dAtA[i:], m.ReportingInstance) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingInstance))) - i-- - dAtA[i] = 0x2a - i -= len(m.ReportingController) - copy(dAtA[i:], m.ReportingController) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ReportingController))) - i-- - dAtA[i] = 0x22 - if m.Series != nil { - { - size, err := m.Series.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - { - size, err := m.EventTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EventList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *EventSeries) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventSeries) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.State))) - i-- - dAtA[i] = 0x1a - { - size, err := m.LastObservedTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i = encodeVarintGenerated(dAtA, i, uint64(m.Count)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Event) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.EventTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Series != nil { - l = m.Series.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.ReportingController) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ReportingInstance) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Action) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Regarding.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Related != nil { - l = m.Related.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.Note) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.DeprecatedSource.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.DeprecatedFirstTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.DeprecatedLastTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.DeprecatedCount)) - return n -} - -func (m *EventList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *EventSeries) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Count)) - l = m.LastObservedTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.State) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Event) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Event{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `EventTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EventTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`, - `Series:` + strings.Replace(this.Series.String(), "EventSeries", "EventSeries", 1) + `,`, - `ReportingController:` + fmt.Sprintf("%v", this.ReportingController) + `,`, - `ReportingInstance:` + fmt.Sprintf("%v", this.ReportingInstance) + `,`, - `Action:` + fmt.Sprintf("%v", this.Action) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Regarding:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Regarding), "ObjectReference", "v11.ObjectReference", 1), `&`, ``, 1) + `,`, - `Related:` + strings.Replace(fmt.Sprintf("%v", this.Related), "ObjectReference", "v11.ObjectReference", 1) + `,`, - `Note:` + fmt.Sprintf("%v", this.Note) + `,`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `DeprecatedSource:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DeprecatedSource), "EventSource", "v11.EventSource", 1), `&`, ``, 1) + `,`, - `DeprecatedFirstTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DeprecatedFirstTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `DeprecatedLastTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.DeprecatedLastTimestamp), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `DeprecatedCount:` + fmt.Sprintf("%v", this.DeprecatedCount) + `,`, - `}`, - }, "") - return s -} -func (this *EventList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Event{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Event", "Event", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&EventList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *EventSeries) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&EventSeries{`, - `Count:` + fmt.Sprintf("%v", this.Count) + `,`, - `LastObservedTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastObservedTime), "MicroTime", "v1.MicroTime", 1), `&`, ``, 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Event) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Event: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.EventTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Series == nil { - m.Series = &EventSeries{} - } - if err := m.Series.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReportingController", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReportingController = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReportingInstance", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReportingInstance = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Action = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regarding", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Regarding.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Related", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Related == nil { - m.Related = &v11.ObjectReference{} - } - if err := m.Related.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Note", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Note = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedSource", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DeprecatedSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedFirstTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DeprecatedFirstTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedLastTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.DeprecatedLastTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedCount", wireType) - } - m.DeprecatedCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DeprecatedCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Event{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventSeries) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventSeries: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventSeries: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastObservedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastObservedTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = EventSeriesState(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/events/v1beta1/generated.proto b/pseudo/k8s/api/events/v1beta1/generated.proto deleted file mode 100644 index a9cfb1f76..000000000 --- a/pseudo/k8s/api/events/v1beta1/generated.proto +++ /dev/null @@ -1,122 +0,0 @@ -/* -Copyright 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 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/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/sig-architecture/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 -// continuously 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. - // Deprecated. Planned removal for 1.18 - optional string state = 3; -} - diff --git a/pseudo/k8s/api/events/v1beta1/register.go b/pseudo/k8s/api/events/v1beta1/register.go deleted file mode 100644 index 060759164..000000000 --- a/pseudo/k8s/api/events/v1beta1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/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 sigs.k8s.io/kustomize/pseudo/k8s/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 -} diff --git a/pseudo/k8s/api/events/v1beta1/types.go b/pseudo/k8s/api/events/v1beta1/types.go deleted file mode 100644 index 19305b905..000000000 --- a/pseudo/k8s/api/events/v1beta1/types.go +++ /dev/null @@ -1,123 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/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,omitempty" protobuf:"bytes,5,opt,name=reportingInstance"` - - // What action was taken/failed regarding to the regarding object. - // +optional - Action string `json:"action,omitempty" 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 -// continuously for some time. -type EventSeries struct { - // Number of occurrences in this series up to the last heartbeat time - Count int32 `json:"count" protobuf:"varint,1,opt,name=count"` - // 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. - // Deprecated. Planned removal for 1.18 - 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=sigs.k8s.io/kustomize/pseudo/k8s/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/sig-architecture/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"` -} diff --git a/pseudo/k8s/api/events/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/events/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 639daca6d..000000000 --- a/pseudo/k8s/api/events/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,73 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -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/sig-architecture/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 continuously for some time.", - "count": "Number of occurrences in this series up to the last heartbeat time", - "lastObservedTime": "Time when last Event from the series was seen before last heartbeat.", - "state": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18", -} - -func (EventSeries) SwaggerDoc() map[string]string { - return map_EventSeries -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/events/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/events/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 3b9aa78c7..000000000 --- a/pseudo/k8s/api/events/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,117 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/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 - *out = new(EventSeries) - (*in).DeepCopyInto(*out) - } - out.Regarding = in.Regarding - if in.Related != nil { - in, out := &in.Related, &out.Related - *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 - } - 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 - in.ListMeta.DeepCopyInto(&out.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 - } - 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 -} diff --git a/pseudo/k8s/api/extensions/v1beta1/doc.go b/pseudo/k8s/api/extensions/v1beta1/doc.go deleted file mode 100644 index 32070e52c..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/extensions/v1beta1" diff --git a/pseudo/k8s/api/extensions/v1beta1/generated.pb.go b/pseudo/k8s/api/extensions/v1beta1/generated.pb.go deleted file mode 100644 index f45bd1b0d..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/generated.pb.go +++ /dev/null @@ -1,15318 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/extensions/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AllowedCSIDriver) Reset() { *m = AllowedCSIDriver{} } -func (*AllowedCSIDriver) ProtoMessage() {} -func (*AllowedCSIDriver) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{0} -} -func (m *AllowedCSIDriver) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllowedCSIDriver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AllowedCSIDriver) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllowedCSIDriver.Merge(m, src) -} -func (m *AllowedCSIDriver) XXX_Size() int { - return m.Size() -} -func (m *AllowedCSIDriver) XXX_DiscardUnknown() { - xxx_messageInfo_AllowedCSIDriver.DiscardUnknown(m) -} - -var xxx_messageInfo_AllowedCSIDriver proto.InternalMessageInfo - -func (m *AllowedFlexVolume) Reset() { *m = AllowedFlexVolume{} } -func (*AllowedFlexVolume) ProtoMessage() {} -func (*AllowedFlexVolume) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{1} -} -func (m *AllowedFlexVolume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllowedFlexVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AllowedFlexVolume) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllowedFlexVolume.Merge(m, src) -} -func (m *AllowedFlexVolume) XXX_Size() int { - return m.Size() -} -func (m *AllowedFlexVolume) XXX_DiscardUnknown() { - xxx_messageInfo_AllowedFlexVolume.DiscardUnknown(m) -} - -var xxx_messageInfo_AllowedFlexVolume proto.InternalMessageInfo - -func (m *AllowedHostPath) Reset() { *m = AllowedHostPath{} } -func (*AllowedHostPath) ProtoMessage() {} -func (*AllowedHostPath) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{2} -} -func (m *AllowedHostPath) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllowedHostPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AllowedHostPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllowedHostPath.Merge(m, src) -} -func (m *AllowedHostPath) XXX_Size() int { - return m.Size() -} -func (m *AllowedHostPath) XXX_DiscardUnknown() { - xxx_messageInfo_AllowedHostPath.DiscardUnknown(m) -} - -var xxx_messageInfo_AllowedHostPath proto.InternalMessageInfo - -func (m *DaemonSet) Reset() { *m = DaemonSet{} } -func (*DaemonSet) ProtoMessage() {} -func (*DaemonSet) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{3} -} -func (m *DaemonSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSet.Merge(m, src) -} -func (m *DaemonSet) XXX_Size() int { - return m.Size() -} -func (m *DaemonSet) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSet.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSet proto.InternalMessageInfo - -func (m *DaemonSetCondition) Reset() { *m = DaemonSetCondition{} } -func (*DaemonSetCondition) ProtoMessage() {} -func (*DaemonSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{4} -} -func (m *DaemonSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetCondition.Merge(m, src) -} -func (m *DaemonSetCondition) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetCondition proto.InternalMessageInfo - -func (m *DaemonSetList) Reset() { *m = DaemonSetList{} } -func (*DaemonSetList) ProtoMessage() {} -func (*DaemonSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{5} -} -func (m *DaemonSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetList.Merge(m, src) -} -func (m *DaemonSetList) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetList) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetList proto.InternalMessageInfo - -func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} } -func (*DaemonSetSpec) ProtoMessage() {} -func (*DaemonSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{6} -} -func (m *DaemonSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetSpec.Merge(m, src) -} -func (m *DaemonSetSpec) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetSpec proto.InternalMessageInfo - -func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} } -func (*DaemonSetStatus) ProtoMessage() {} -func (*DaemonSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{7} -} -func (m *DaemonSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetStatus.Merge(m, src) -} -func (m *DaemonSetStatus) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetStatus proto.InternalMessageInfo - -func (m *DaemonSetUpdateStrategy) Reset() { *m = DaemonSetUpdateStrategy{} } -func (*DaemonSetUpdateStrategy) ProtoMessage() {} -func (*DaemonSetUpdateStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{8} -} -func (m *DaemonSetUpdateStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DaemonSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DaemonSetUpdateStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaemonSetUpdateStrategy.Merge(m, src) -} -func (m *DaemonSetUpdateStrategy) XXX_Size() int { - return m.Size() -} -func (m *DaemonSetUpdateStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DaemonSetUpdateStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DaemonSetUpdateStrategy proto.InternalMessageInfo - -func (m *Deployment) Reset() { *m = Deployment{} } -func (*Deployment) ProtoMessage() {} -func (*Deployment) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{9} -} -func (m *Deployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Deployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_Deployment.Merge(m, src) -} -func (m *Deployment) XXX_Size() int { - return m.Size() -} -func (m *Deployment) XXX_DiscardUnknown() { - xxx_messageInfo_Deployment.DiscardUnknown(m) -} - -var xxx_messageInfo_Deployment proto.InternalMessageInfo - -func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } -func (*DeploymentCondition) ProtoMessage() {} -func (*DeploymentCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{10} -} -func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentCondition.Merge(m, src) -} -func (m *DeploymentCondition) XXX_Size() int { - return m.Size() -} -func (m *DeploymentCondition) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo - -func (m *DeploymentList) Reset() { *m = DeploymentList{} } -func (*DeploymentList) ProtoMessage() {} -func (*DeploymentList) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{11} -} -func (m *DeploymentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentList.Merge(m, src) -} -func (m *DeploymentList) XXX_Size() int { - return m.Size() -} -func (m *DeploymentList) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentList.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentList proto.InternalMessageInfo - -func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} } -func (*DeploymentRollback) ProtoMessage() {} -func (*DeploymentRollback) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{12} -} -func (m *DeploymentRollback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentRollback) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentRollback.Merge(m, src) -} -func (m *DeploymentRollback) XXX_Size() int { - return m.Size() -} -func (m *DeploymentRollback) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentRollback.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentRollback proto.InternalMessageInfo - -func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } -func (*DeploymentSpec) ProtoMessage() {} -func (*DeploymentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{13} -} -func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentSpec.Merge(m, src) -} -func (m *DeploymentSpec) XXX_Size() int { - return m.Size() -} -func (m *DeploymentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo - -func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } -func (*DeploymentStatus) ProtoMessage() {} -func (*DeploymentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{14} -} -func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStatus.Merge(m, src) -} -func (m *DeploymentStatus) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo - -func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } -func (*DeploymentStrategy) ProtoMessage() {} -func (*DeploymentStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{15} -} -func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeploymentStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeploymentStrategy.Merge(m, src) -} -func (m *DeploymentStrategy) XXX_Size() int { - return m.Size() -} -func (m *DeploymentStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo - -func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} } -func (*FSGroupStrategyOptions) ProtoMessage() {} -func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{16} -} -func (m *FSGroupStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FSGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FSGroupStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_FSGroupStrategyOptions.Merge(m, src) -} -func (m *FSGroupStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *FSGroupStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_FSGroupStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_FSGroupStrategyOptions proto.InternalMessageInfo - -func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } -func (*HTTPIngressPath) ProtoMessage() {} -func (*HTTPIngressPath) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{17} -} -func (m *HTTPIngressPath) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HTTPIngressPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HTTPIngressPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_HTTPIngressPath.Merge(m, src) -} -func (m *HTTPIngressPath) XXX_Size() int { - return m.Size() -} -func (m *HTTPIngressPath) XXX_DiscardUnknown() { - xxx_messageInfo_HTTPIngressPath.DiscardUnknown(m) -} - -var xxx_messageInfo_HTTPIngressPath proto.InternalMessageInfo - -func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } -func (*HTTPIngressRuleValue) ProtoMessage() {} -func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{18} -} -func (m *HTTPIngressRuleValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HTTPIngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HTTPIngressRuleValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_HTTPIngressRuleValue.Merge(m, src) -} -func (m *HTTPIngressRuleValue) XXX_Size() int { - return m.Size() -} -func (m *HTTPIngressRuleValue) XXX_DiscardUnknown() { - xxx_messageInfo_HTTPIngressRuleValue.DiscardUnknown(m) -} - -var xxx_messageInfo_HTTPIngressRuleValue proto.InternalMessageInfo - -func (m *HostPortRange) Reset() { *m = HostPortRange{} } -func (*HostPortRange) ProtoMessage() {} -func (*HostPortRange) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{19} -} -func (m *HostPortRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostPortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HostPortRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostPortRange.Merge(m, src) -} -func (m *HostPortRange) XXX_Size() int { - return m.Size() -} -func (m *HostPortRange) XXX_DiscardUnknown() { - xxx_messageInfo_HostPortRange.DiscardUnknown(m) -} - -var xxx_messageInfo_HostPortRange proto.InternalMessageInfo - -func (m *IDRange) Reset() { *m = IDRange{} } -func (*IDRange) ProtoMessage() {} -func (*IDRange) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{20} -} -func (m *IDRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IDRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IDRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_IDRange.Merge(m, src) -} -func (m *IDRange) XXX_Size() int { - return m.Size() -} -func (m *IDRange) XXX_DiscardUnknown() { - xxx_messageInfo_IDRange.DiscardUnknown(m) -} - -var xxx_messageInfo_IDRange proto.InternalMessageInfo - -func (m *IPBlock) Reset() { *m = IPBlock{} } -func (*IPBlock) ProtoMessage() {} -func (*IPBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{21} -} -func (m *IPBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IPBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IPBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPBlock.Merge(m, src) -} -func (m *IPBlock) XXX_Size() int { - return m.Size() -} -func (m *IPBlock) XXX_DiscardUnknown() { - xxx_messageInfo_IPBlock.DiscardUnknown(m) -} - -var xxx_messageInfo_IPBlock proto.InternalMessageInfo - -func (m *Ingress) Reset() { *m = Ingress{} } -func (*Ingress) ProtoMessage() {} -func (*Ingress) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{22} -} -func (m *Ingress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Ingress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Ingress) XXX_Merge(src proto.Message) { - xxx_messageInfo_Ingress.Merge(m, src) -} -func (m *Ingress) XXX_Size() int { - return m.Size() -} -func (m *Ingress) XXX_DiscardUnknown() { - xxx_messageInfo_Ingress.DiscardUnknown(m) -} - -var xxx_messageInfo_Ingress proto.InternalMessageInfo - -func (m *IngressBackend) Reset() { *m = IngressBackend{} } -func (*IngressBackend) ProtoMessage() {} -func (*IngressBackend) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{23} -} -func (m *IngressBackend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressBackend) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressBackend.Merge(m, src) -} -func (m *IngressBackend) XXX_Size() int { - return m.Size() -} -func (m *IngressBackend) XXX_DiscardUnknown() { - xxx_messageInfo_IngressBackend.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressBackend proto.InternalMessageInfo - -func (m *IngressList) Reset() { *m = IngressList{} } -func (*IngressList) ProtoMessage() {} -func (*IngressList) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{24} -} -func (m *IngressList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressList) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressList.Merge(m, src) -} -func (m *IngressList) XXX_Size() int { - return m.Size() -} -func (m *IngressList) XXX_DiscardUnknown() { - xxx_messageInfo_IngressList.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressList proto.InternalMessageInfo - -func (m *IngressRule) Reset() { *m = IngressRule{} } -func (*IngressRule) ProtoMessage() {} -func (*IngressRule) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{25} -} -func (m *IngressRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressRule.Merge(m, src) -} -func (m *IngressRule) XXX_Size() int { - return m.Size() -} -func (m *IngressRule) XXX_DiscardUnknown() { - xxx_messageInfo_IngressRule.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressRule proto.InternalMessageInfo - -func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } -func (*IngressRuleValue) ProtoMessage() {} -func (*IngressRuleValue) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{26} -} -func (m *IngressRuleValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressRuleValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressRuleValue.Merge(m, src) -} -func (m *IngressRuleValue) XXX_Size() int { - return m.Size() -} -func (m *IngressRuleValue) XXX_DiscardUnknown() { - xxx_messageInfo_IngressRuleValue.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressRuleValue proto.InternalMessageInfo - -func (m *IngressSpec) Reset() { *m = IngressSpec{} } -func (*IngressSpec) ProtoMessage() {} -func (*IngressSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{27} -} -func (m *IngressSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressSpec.Merge(m, src) -} -func (m *IngressSpec) XXX_Size() int { - return m.Size() -} -func (m *IngressSpec) XXX_DiscardUnknown() { - xxx_messageInfo_IngressSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressSpec proto.InternalMessageInfo - -func (m *IngressStatus) Reset() { *m = IngressStatus{} } -func (*IngressStatus) ProtoMessage() {} -func (*IngressStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{28} -} -func (m *IngressStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressStatus.Merge(m, src) -} -func (m *IngressStatus) XXX_Size() int { - return m.Size() -} -func (m *IngressStatus) XXX_DiscardUnknown() { - xxx_messageInfo_IngressStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressStatus proto.InternalMessageInfo - -func (m *IngressTLS) Reset() { *m = IngressTLS{} } -func (*IngressTLS) ProtoMessage() {} -func (*IngressTLS) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{29} -} -func (m *IngressTLS) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressTLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressTLS) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressTLS.Merge(m, src) -} -func (m *IngressTLS) XXX_Size() int { - return m.Size() -} -func (m *IngressTLS) XXX_DiscardUnknown() { - xxx_messageInfo_IngressTLS.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressTLS proto.InternalMessageInfo - -func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } -func (*NetworkPolicy) ProtoMessage() {} -func (*NetworkPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{30} -} -func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicy.Merge(m, src) -} -func (m *NetworkPolicy) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicy proto.InternalMessageInfo - -func (m *NetworkPolicyEgressRule) Reset() { *m = NetworkPolicyEgressRule{} } -func (*NetworkPolicyEgressRule) ProtoMessage() {} -func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{31} -} -func (m *NetworkPolicyEgressRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyEgressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyEgressRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyEgressRule.Merge(m, src) -} -func (m *NetworkPolicyEgressRule) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyEgressRule) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyEgressRule.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyEgressRule proto.InternalMessageInfo - -func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } -func (*NetworkPolicyIngressRule) ProtoMessage() {} -func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{32} -} -func (m *NetworkPolicyIngressRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyIngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyIngressRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyIngressRule.Merge(m, src) -} -func (m *NetworkPolicyIngressRule) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyIngressRule) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyIngressRule.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyIngressRule proto.InternalMessageInfo - -func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } -func (*NetworkPolicyList) ProtoMessage() {} -func (*NetworkPolicyList) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{33} -} -func (m *NetworkPolicyList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyList.Merge(m, src) -} -func (m *NetworkPolicyList) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyList) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyList.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyList proto.InternalMessageInfo - -func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } -func (*NetworkPolicyPeer) ProtoMessage() {} -func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{34} -} -func (m *NetworkPolicyPeer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyPeer.Merge(m, src) -} -func (m *NetworkPolicyPeer) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyPeer) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyPeer.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyPeer proto.InternalMessageInfo - -func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } -func (*NetworkPolicyPort) ProtoMessage() {} -func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{35} -} -func (m *NetworkPolicyPort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyPort.Merge(m, src) -} -func (m *NetworkPolicyPort) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyPort) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyPort.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyPort proto.InternalMessageInfo - -func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } -func (*NetworkPolicySpec) ProtoMessage() {} -func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{36} -} -func (m *NetworkPolicySpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicySpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicySpec.Merge(m, src) -} -func (m *NetworkPolicySpec) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicySpec) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicySpec.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicySpec proto.InternalMessageInfo - -func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} } -func (*PodSecurityPolicy) ProtoMessage() {} -func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{37} -} -func (m *PodSecurityPolicy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityPolicy.Merge(m, src) -} -func (m *PodSecurityPolicy) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityPolicy proto.InternalMessageInfo - -func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} } -func (*PodSecurityPolicyList) ProtoMessage() {} -func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{38} -} -func (m *PodSecurityPolicyList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityPolicyList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityPolicyList.Merge(m, src) -} -func (m *PodSecurityPolicyList) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityPolicyList) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityPolicyList.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityPolicyList proto.InternalMessageInfo - -func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} } -func (*PodSecurityPolicySpec) ProtoMessage() {} -func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{39} -} -func (m *PodSecurityPolicySpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityPolicySpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityPolicySpec.Merge(m, src) -} -func (m *PodSecurityPolicySpec) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityPolicySpec) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityPolicySpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityPolicySpec proto.InternalMessageInfo - -func (m *ReplicaSet) Reset() { *m = ReplicaSet{} } -func (*ReplicaSet) ProtoMessage() {} -func (*ReplicaSet) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{40} -} -func (m *ReplicaSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSet.Merge(m, src) -} -func (m *ReplicaSet) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSet) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSet.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSet proto.InternalMessageInfo - -func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} } -func (*ReplicaSetCondition) ProtoMessage() {} -func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{41} -} -func (m *ReplicaSetCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetCondition.Merge(m, src) -} -func (m *ReplicaSetCondition) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetCondition) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetCondition proto.InternalMessageInfo - -func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} } -func (*ReplicaSetList) ProtoMessage() {} -func (*ReplicaSetList) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{42} -} -func (m *ReplicaSetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetList.Merge(m, src) -} -func (m *ReplicaSetList) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetList) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetList.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetList proto.InternalMessageInfo - -func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} } -func (*ReplicaSetSpec) ProtoMessage() {} -func (*ReplicaSetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{43} -} -func (m *ReplicaSetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetSpec.Merge(m, src) -} -func (m *ReplicaSetSpec) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetSpec proto.InternalMessageInfo - -func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} } -func (*ReplicaSetStatus) ProtoMessage() {} -func (*ReplicaSetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{44} -} -func (m *ReplicaSetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicaSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicaSetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicaSetStatus.Merge(m, src) -} -func (m *ReplicaSetStatus) XXX_Size() int { - return m.Size() -} -func (m *ReplicaSetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicaSetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicaSetStatus proto.InternalMessageInfo - -func (m *ReplicationControllerDummy) Reset() { *m = ReplicationControllerDummy{} } -func (*ReplicationControllerDummy) ProtoMessage() {} -func (*ReplicationControllerDummy) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{45} -} -func (m *ReplicationControllerDummy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationControllerDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationControllerDummy) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationControllerDummy.Merge(m, src) -} -func (m *ReplicationControllerDummy) XXX_Size() int { - return m.Size() -} -func (m *ReplicationControllerDummy) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationControllerDummy.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationControllerDummy proto.InternalMessageInfo - -func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } -func (*RollbackConfig) ProtoMessage() {} -func (*RollbackConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{46} -} -func (m *RollbackConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollbackConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollbackConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollbackConfig.Merge(m, src) -} -func (m *RollbackConfig) XXX_Size() int { - return m.Size() -} -func (m *RollbackConfig) XXX_DiscardUnknown() { - xxx_messageInfo_RollbackConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_RollbackConfig proto.InternalMessageInfo - -func (m *RollingUpdateDaemonSet) Reset() { *m = RollingUpdateDaemonSet{} } -func (*RollingUpdateDaemonSet) ProtoMessage() {} -func (*RollingUpdateDaemonSet) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{47} -} -func (m *RollingUpdateDaemonSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDaemonSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDaemonSet.Merge(m, src) -} -func (m *RollingUpdateDaemonSet) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDaemonSet) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDaemonSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDaemonSet proto.InternalMessageInfo - -func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } -func (*RollingUpdateDeployment) ProtoMessage() {} -func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{48} -} -func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) { - xxx_messageInfo_RollingUpdateDeployment.Merge(m, src) -} -func (m *RollingUpdateDeployment) XXX_Size() int { - return m.Size() -} -func (m *RollingUpdateDeployment) XXX_DiscardUnknown() { - xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m) -} - -var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo - -func (m *RunAsGroupStrategyOptions) Reset() { *m = RunAsGroupStrategyOptions{} } -func (*RunAsGroupStrategyOptions) ProtoMessage() {} -func (*RunAsGroupStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{49} -} -func (m *RunAsGroupStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunAsGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RunAsGroupStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunAsGroupStrategyOptions.Merge(m, src) -} -func (m *RunAsGroupStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *RunAsGroupStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_RunAsGroupStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_RunAsGroupStrategyOptions proto.InternalMessageInfo - -func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } -func (*RunAsUserStrategyOptions) ProtoMessage() {} -func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{50} -} -func (m *RunAsUserStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunAsUserStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RunAsUserStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunAsUserStrategyOptions.Merge(m, src) -} -func (m *RunAsUserStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *RunAsUserStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_RunAsUserStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_RunAsUserStrategyOptions proto.InternalMessageInfo - -func (m *RuntimeClassStrategyOptions) Reset() { *m = RuntimeClassStrategyOptions{} } -func (*RuntimeClassStrategyOptions) ProtoMessage() {} -func (*RuntimeClassStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{51} -} -func (m *RuntimeClassStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClassStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClassStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClassStrategyOptions.Merge(m, src) -} -func (m *RuntimeClassStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClassStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClassStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClassStrategyOptions proto.InternalMessageInfo - -func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} } -func (*SELinuxStrategyOptions) ProtoMessage() {} -func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{52} -} -func (m *SELinuxStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SELinuxStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SELinuxStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SELinuxStrategyOptions.Merge(m, src) -} -func (m *SELinuxStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *SELinuxStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SELinuxStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SELinuxStrategyOptions proto.InternalMessageInfo - -func (m *Scale) Reset() { *m = Scale{} } -func (*Scale) ProtoMessage() {} -func (*Scale) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{53} -} -func (m *Scale) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Scale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Scale) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scale.Merge(m, src) -} -func (m *Scale) XXX_Size() int { - return m.Size() -} -func (m *Scale) XXX_DiscardUnknown() { - xxx_messageInfo_Scale.DiscardUnknown(m) -} - -var xxx_messageInfo_Scale proto.InternalMessageInfo - -func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } -func (*ScaleSpec) ProtoMessage() {} -func (*ScaleSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{54} -} -func (m *ScaleSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleSpec.Merge(m, src) -} -func (m *ScaleSpec) XXX_Size() int { - return m.Size() -} -func (m *ScaleSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleSpec proto.InternalMessageInfo - -func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } -func (*ScaleStatus) ProtoMessage() {} -func (*ScaleStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{55} -} -func (m *ScaleStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScaleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ScaleStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScaleStatus.Merge(m, src) -} -func (m *ScaleStatus) XXX_Size() int { - return m.Size() -} -func (m *ScaleStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ScaleStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ScaleStatus proto.InternalMessageInfo - -func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } -func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} -func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cdc93917efc28165, []int{56} -} -func (m *SupplementalGroupsStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SupplementalGroupsStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SupplementalGroupsStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SupplementalGroupsStrategyOptions.Merge(m, src) -} -func (m *SupplementalGroupsStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *SupplementalGroupsStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SupplementalGroupsStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SupplementalGroupsStrategyOptions proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AllowedCSIDriver)(nil), "k8s.io.api.extensions.v1beta1.AllowedCSIDriver") - proto.RegisterType((*AllowedFlexVolume)(nil), "k8s.io.api.extensions.v1beta1.AllowedFlexVolume") - proto.RegisterType((*AllowedHostPath)(nil), "k8s.io.api.extensions.v1beta1.AllowedHostPath") - proto.RegisterType((*DaemonSet)(nil), "k8s.io.api.extensions.v1beta1.DaemonSet") - proto.RegisterType((*DaemonSetCondition)(nil), "k8s.io.api.extensions.v1beta1.DaemonSetCondition") - proto.RegisterType((*DaemonSetList)(nil), "k8s.io.api.extensions.v1beta1.DaemonSetList") - proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.api.extensions.v1beta1.DaemonSetSpec") - proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.api.extensions.v1beta1.DaemonSetStatus") - proto.RegisterType((*DaemonSetUpdateStrategy)(nil), "k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy") - proto.RegisterType((*Deployment)(nil), "k8s.io.api.extensions.v1beta1.Deployment") - proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.extensions.v1beta1.DeploymentCondition") - proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.extensions.v1beta1.DeploymentList") - proto.RegisterType((*DeploymentRollback)(nil), "k8s.io.api.extensions.v1beta1.DeploymentRollback") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.extensions.v1beta1.DeploymentRollback.UpdatedAnnotationsEntry") - proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.extensions.v1beta1.DeploymentSpec") - proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.extensions.v1beta1.DeploymentStatus") - proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.extensions.v1beta1.DeploymentStrategy") - proto.RegisterType((*FSGroupStrategyOptions)(nil), "k8s.io.api.extensions.v1beta1.FSGroupStrategyOptions") - proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.api.extensions.v1beta1.HTTPIngressPath") - proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.api.extensions.v1beta1.HTTPIngressRuleValue") - proto.RegisterType((*HostPortRange)(nil), "k8s.io.api.extensions.v1beta1.HostPortRange") - proto.RegisterType((*IDRange)(nil), "k8s.io.api.extensions.v1beta1.IDRange") - proto.RegisterType((*IPBlock)(nil), "k8s.io.api.extensions.v1beta1.IPBlock") - proto.RegisterType((*Ingress)(nil), "k8s.io.api.extensions.v1beta1.Ingress") - proto.RegisterType((*IngressBackend)(nil), "k8s.io.api.extensions.v1beta1.IngressBackend") - proto.RegisterType((*IngressList)(nil), "k8s.io.api.extensions.v1beta1.IngressList") - proto.RegisterType((*IngressRule)(nil), "k8s.io.api.extensions.v1beta1.IngressRule") - proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.api.extensions.v1beta1.IngressRuleValue") - proto.RegisterType((*IngressSpec)(nil), "k8s.io.api.extensions.v1beta1.IngressSpec") - proto.RegisterType((*IngressStatus)(nil), "k8s.io.api.extensions.v1beta1.IngressStatus") - proto.RegisterType((*IngressTLS)(nil), "k8s.io.api.extensions.v1beta1.IngressTLS") - proto.RegisterType((*NetworkPolicy)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicy") - proto.RegisterType((*NetworkPolicyEgressRule)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule") - proto.RegisterType((*NetworkPolicyIngressRule)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule") - proto.RegisterType((*NetworkPolicyList)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicyList") - proto.RegisterType((*NetworkPolicyPeer)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicyPeer") - proto.RegisterType((*NetworkPolicyPort)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicyPort") - proto.RegisterType((*NetworkPolicySpec)(nil), "k8s.io.api.extensions.v1beta1.NetworkPolicySpec") - proto.RegisterType((*PodSecurityPolicy)(nil), "k8s.io.api.extensions.v1beta1.PodSecurityPolicy") - proto.RegisterType((*PodSecurityPolicyList)(nil), "k8s.io.api.extensions.v1beta1.PodSecurityPolicyList") - proto.RegisterType((*PodSecurityPolicySpec)(nil), "k8s.io.api.extensions.v1beta1.PodSecurityPolicySpec") - proto.RegisterType((*ReplicaSet)(nil), "k8s.io.api.extensions.v1beta1.ReplicaSet") - proto.RegisterType((*ReplicaSetCondition)(nil), "k8s.io.api.extensions.v1beta1.ReplicaSetCondition") - proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.api.extensions.v1beta1.ReplicaSetList") - proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.api.extensions.v1beta1.ReplicaSetSpec") - proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.api.extensions.v1beta1.ReplicaSetStatus") - proto.RegisterType((*ReplicationControllerDummy)(nil), "k8s.io.api.extensions.v1beta1.ReplicationControllerDummy") - proto.RegisterType((*RollbackConfig)(nil), "k8s.io.api.extensions.v1beta1.RollbackConfig") - proto.RegisterType((*RollingUpdateDaemonSet)(nil), "k8s.io.api.extensions.v1beta1.RollingUpdateDaemonSet") - proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.extensions.v1beta1.RollingUpdateDeployment") - proto.RegisterType((*RunAsGroupStrategyOptions)(nil), "k8s.io.api.extensions.v1beta1.RunAsGroupStrategyOptions") - proto.RegisterType((*RunAsUserStrategyOptions)(nil), "k8s.io.api.extensions.v1beta1.RunAsUserStrategyOptions") - proto.RegisterType((*RuntimeClassStrategyOptions)(nil), "k8s.io.api.extensions.v1beta1.RuntimeClassStrategyOptions") - proto.RegisterType((*SELinuxStrategyOptions)(nil), "k8s.io.api.extensions.v1beta1.SELinuxStrategyOptions") - proto.RegisterType((*Scale)(nil), "k8s.io.api.extensions.v1beta1.Scale") - proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.extensions.v1beta1.ScaleSpec") - proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.extensions.v1beta1.ScaleStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.extensions.v1beta1.ScaleStatus.SelectorEntry") - proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.api.extensions.v1beta1.SupplementalGroupsStrategyOptions") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/extensions/v1beta1/generated.proto", fileDescriptor_cdc93917efc28165) -} - -var fileDescriptor_cdc93917efc28165 = []byte{ - // 3684 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x4f, 0x6c, 0x1b, 0x47, - 0x77, 0xf7, 0x92, 0x94, 0x48, 0x3d, 0xfd, 0x1f, 0xc9, 0x12, 0x3f, 0x3b, 0x16, 0xfd, 0x6d, 0x00, - 0xd7, 0x49, 0x6d, 0x32, 0x76, 0x6c, 0x7f, 0xae, 0x8d, 0x7e, 0x89, 0x28, 0x59, 0xb6, 0x52, 0xfd, - 0x61, 0x86, 0x92, 0x1b, 0x04, 0x4d, 0x9a, 0x15, 0x39, 0xa2, 0xd6, 0x5a, 0xee, 0x6e, 0x76, 0x87, - 0x8a, 0x08, 0xf4, 0xd0, 0x43, 0x51, 0xa0, 0x40, 0x8b, 0xf6, 0x92, 0xb6, 0xc7, 0x06, 0x05, 0x7a, - 0x6a, 0xd1, 0xde, 0xda, 0x43, 0x10, 0xa0, 0x40, 0x0a, 0x18, 0x45, 0x5a, 0xe4, 0xd6, 0x9c, 0x84, - 0x46, 0x39, 0x15, 0x3d, 0xf5, 0x56, 0xf8, 0x50, 0x14, 0x33, 0x3b, 0xfb, 0x7f, 0x57, 0x5c, 0x29, - 0xb6, 0xd0, 0x00, 0xbd, 0x89, 0xf3, 0xde, 0xfb, 0xbd, 0x37, 0x33, 0x6f, 0xde, 0x7b, 0x33, 0xfb, - 0x04, 0x2b, 0xfb, 0xf7, 0xed, 0xaa, 0x6a, 0xd4, 0xf6, 0x7b, 0x3b, 0xc4, 0xd2, 0x09, 0x25, 0x76, - 0xed, 0x80, 0xe8, 0x6d, 0xc3, 0xaa, 0x09, 0x82, 0x62, 0xaa, 0x35, 0x72, 0x48, 0x89, 0x6e, 0xab, - 0x86, 0x6e, 0xd7, 0x0e, 0x6e, 0xed, 0x10, 0xaa, 0xdc, 0xaa, 0x75, 0x88, 0x4e, 0x2c, 0x85, 0x92, - 0x76, 0xd5, 0xb4, 0x0c, 0x6a, 0xa0, 0x2b, 0x0e, 0x7b, 0x55, 0x31, 0xd5, 0xaa, 0xcf, 0x5e, 0x15, - 0xec, 0x97, 0x6e, 0x76, 0x54, 0xba, 0xd7, 0xdb, 0xa9, 0xb6, 0x8c, 0x6e, 0xad, 0x63, 0x74, 0x8c, - 0x1a, 0x97, 0xda, 0xe9, 0xed, 0xf2, 0x5f, 0xfc, 0x07, 0xff, 0xcb, 0x41, 0xbb, 0x24, 0x07, 0x94, - 0xb7, 0x0c, 0x8b, 0xd4, 0x0e, 0x62, 0x1a, 0x2f, 0xdd, 0xf1, 0x79, 0xba, 0x4a, 0x6b, 0x4f, 0xd5, - 0x89, 0xd5, 0xaf, 0x99, 0xfb, 0x1d, 0x36, 0x60, 0xd7, 0xba, 0x84, 0x2a, 0x49, 0x52, 0xb5, 0x34, - 0x29, 0xab, 0xa7, 0x53, 0xb5, 0x4b, 0x62, 0x02, 0xf7, 0x06, 0x09, 0xd8, 0xad, 0x3d, 0xd2, 0x55, - 0x62, 0x72, 0x6f, 0xa7, 0xc9, 0xf5, 0xa8, 0xaa, 0xd5, 0x54, 0x9d, 0xda, 0xd4, 0x8a, 0x0a, 0xc9, - 0x77, 0x60, 0x6a, 0x51, 0xd3, 0x8c, 0xcf, 0x48, 0x7b, 0xa9, 0xb9, 0xba, 0x6c, 0xa9, 0x07, 0xc4, - 0x42, 0x57, 0xa1, 0xa0, 0x2b, 0x5d, 0x52, 0x96, 0xae, 0x4a, 0xd7, 0x47, 0xea, 0x63, 0xcf, 0x8f, - 0x2a, 0x17, 0x8e, 0x8f, 0x2a, 0x85, 0x0d, 0xa5, 0x4b, 0x30, 0xa7, 0xc8, 0x0f, 0x61, 0x5a, 0x48, - 0xad, 0x68, 0xe4, 0xf0, 0xa9, 0xa1, 0xf5, 0xba, 0x04, 0x5d, 0x83, 0xe1, 0x36, 0x07, 0x10, 0x82, - 0x13, 0x42, 0x70, 0xd8, 0x81, 0xc5, 0x82, 0x2a, 0xdb, 0x30, 0x29, 0x84, 0x9f, 0x18, 0x36, 0x6d, - 0x28, 0x74, 0x0f, 0xdd, 0x06, 0x30, 0x15, 0xba, 0xd7, 0xb0, 0xc8, 0xae, 0x7a, 0x28, 0xc4, 0x91, - 0x10, 0x87, 0x86, 0x47, 0xc1, 0x01, 0x2e, 0x74, 0x03, 0x4a, 0x16, 0x51, 0xda, 0x9b, 0xba, 0xd6, - 0x2f, 0xe7, 0xae, 0x4a, 0xd7, 0x4b, 0xf5, 0x29, 0x21, 0x51, 0xc2, 0x62, 0x1c, 0x7b, 0x1c, 0xf2, - 0xe7, 0x39, 0x18, 0x59, 0x56, 0x48, 0xd7, 0xd0, 0x9b, 0x84, 0xa2, 0x4f, 0xa0, 0xc4, 0xb6, 0xab, - 0xad, 0x50, 0x85, 0x6b, 0x1b, 0xbd, 0xfd, 0x56, 0xd5, 0x77, 0x27, 0x6f, 0xf5, 0xaa, 0xe6, 0x7e, - 0x87, 0x0d, 0xd8, 0x55, 0xc6, 0x5d, 0x3d, 0xb8, 0x55, 0xdd, 0xdc, 0x79, 0x46, 0x5a, 0x74, 0x9d, - 0x50, 0xc5, 0xb7, 0xcf, 0x1f, 0xc3, 0x1e, 0x2a, 0xda, 0x80, 0x82, 0x6d, 0x92, 0x16, 0xb7, 0x6c, - 0xf4, 0xf6, 0x8d, 0xea, 0x89, 0xce, 0x5a, 0xf5, 0x2c, 0x6b, 0x9a, 0xa4, 0xe5, 0xaf, 0x38, 0xfb, - 0x85, 0x39, 0x0e, 0x7a, 0x0a, 0xc3, 0x36, 0x55, 0x68, 0xcf, 0x2e, 0xe7, 0x39, 0x62, 0x35, 0x33, - 0x22, 0x97, 0xf2, 0x37, 0xc3, 0xf9, 0x8d, 0x05, 0x9a, 0xfc, 0x1f, 0x39, 0x40, 0x1e, 0xef, 0x92, - 0xa1, 0xb7, 0x55, 0xaa, 0x1a, 0x3a, 0x7a, 0x00, 0x05, 0xda, 0x37, 0x5d, 0x17, 0xb8, 0xe6, 0x1a, - 0xb4, 0xd5, 0x37, 0xc9, 0x8b, 0xa3, 0xca, 0x5c, 0x5c, 0x82, 0x51, 0x30, 0x97, 0x41, 0x6b, 0x9e, - 0xa9, 0x39, 0x2e, 0x7d, 0x27, 0xac, 0xfa, 0xc5, 0x51, 0x25, 0xe1, 0xb0, 0x55, 0x3d, 0xa4, 0xb0, - 0x81, 0xe8, 0x00, 0x90, 0xa6, 0xd8, 0x74, 0xcb, 0x52, 0x74, 0xdb, 0xd1, 0xa4, 0x76, 0x89, 0x58, - 0x84, 0x37, 0xb3, 0x6d, 0x1a, 0x93, 0xa8, 0x5f, 0x12, 0x56, 0xa0, 0xb5, 0x18, 0x1a, 0x4e, 0xd0, - 0xc0, 0xbc, 0xd9, 0x22, 0x8a, 0x6d, 0xe8, 0xe5, 0x42, 0xd8, 0x9b, 0x31, 0x1f, 0xc5, 0x82, 0x8a, - 0xde, 0x80, 0x62, 0x97, 0xd8, 0xb6, 0xd2, 0x21, 0xe5, 0x21, 0xce, 0x38, 0x29, 0x18, 0x8b, 0xeb, - 0xce, 0x30, 0x76, 0xe9, 0xf2, 0x97, 0x12, 0x8c, 0x7b, 0x2b, 0xb7, 0xa6, 0xda, 0x14, 0xfd, 0x56, - 0xcc, 0x0f, 0xab, 0xd9, 0xa6, 0xc4, 0xa4, 0xb9, 0x17, 0x7a, 0x3e, 0xef, 0x8e, 0x04, 0x7c, 0x70, - 0x1d, 0x86, 0x54, 0x4a, 0xba, 0x6c, 0x1f, 0xf2, 0xd7, 0x47, 0x6f, 0x5f, 0xcf, 0xea, 0x32, 0xf5, - 0x71, 0x01, 0x3a, 0xb4, 0xca, 0xc4, 0xb1, 0x83, 0x22, 0xff, 0x69, 0x21, 0x60, 0x3e, 0x73, 0x4d, - 0xf4, 0x11, 0x94, 0x6c, 0xa2, 0x91, 0x16, 0x35, 0x2c, 0x61, 0xfe, 0xdb, 0x19, 0xcd, 0x57, 0x76, - 0x88, 0xd6, 0x14, 0xa2, 0xf5, 0x31, 0x66, 0xbf, 0xfb, 0x0b, 0x7b, 0x90, 0xe8, 0x7d, 0x28, 0x51, - 0xd2, 0x35, 0x35, 0x85, 0x12, 0x71, 0x8e, 0x5e, 0x0f, 0x4e, 0x81, 0x79, 0x0e, 0x03, 0x6b, 0x18, - 0xed, 0x2d, 0xc1, 0xc6, 0x8f, 0x8f, 0xb7, 0x24, 0xee, 0x28, 0xf6, 0x60, 0xd0, 0x01, 0x4c, 0xf4, - 0xcc, 0x36, 0xe3, 0xa4, 0x2c, 0x0a, 0x76, 0xfa, 0xc2, 0x93, 0xee, 0x65, 0x5d, 0x9b, 0xed, 0x90, - 0x74, 0x7d, 0x4e, 0xe8, 0x9a, 0x08, 0x8f, 0xe3, 0x88, 0x16, 0xb4, 0x08, 0x93, 0x5d, 0x55, 0x67, - 0x71, 0xa9, 0xdf, 0x24, 0x2d, 0x43, 0x6f, 0xdb, 0xdc, 0xad, 0x86, 0xea, 0xf3, 0x02, 0x60, 0x72, - 0x3d, 0x4c, 0xc6, 0x51, 0x7e, 0xf4, 0x1e, 0x20, 0x77, 0x1a, 0x8f, 0x9d, 0x20, 0xae, 0x1a, 0x3a, - 0xf7, 0xb9, 0xbc, 0xef, 0xdc, 0x5b, 0x31, 0x0e, 0x9c, 0x20, 0x85, 0xd6, 0x60, 0xd6, 0x22, 0x07, - 0x2a, 0x9b, 0xe3, 0x13, 0xd5, 0xa6, 0x86, 0xd5, 0x5f, 0x53, 0xbb, 0x2a, 0x2d, 0x0f, 0x73, 0x9b, - 0xca, 0xc7, 0x47, 0x95, 0x59, 0x9c, 0x40, 0xc7, 0x89, 0x52, 0xf2, 0x9f, 0x0d, 0xc3, 0x64, 0x24, - 0xde, 0xa0, 0xa7, 0x30, 0xd7, 0xea, 0x59, 0x16, 0xd1, 0xe9, 0x46, 0xaf, 0xbb, 0x43, 0xac, 0x66, - 0x6b, 0x8f, 0xb4, 0x7b, 0x1a, 0x69, 0x73, 0x47, 0x19, 0xaa, 0x2f, 0x08, 0x8b, 0xe7, 0x96, 0x12, - 0xb9, 0x70, 0x8a, 0x34, 0x5b, 0x05, 0x9d, 0x0f, 0xad, 0xab, 0xb6, 0xed, 0x61, 0xe6, 0x38, 0xa6, - 0xb7, 0x0a, 0x1b, 0x31, 0x0e, 0x9c, 0x20, 0xc5, 0x6c, 0x6c, 0x13, 0x5b, 0xb5, 0x48, 0x3b, 0x6a, - 0x63, 0x3e, 0x6c, 0xe3, 0x72, 0x22, 0x17, 0x4e, 0x91, 0x46, 0x77, 0x61, 0xd4, 0xd1, 0xc6, 0xf7, - 0x4f, 0x6c, 0xf4, 0x8c, 0x00, 0x1b, 0xdd, 0xf0, 0x49, 0x38, 0xc8, 0xc7, 0xa6, 0x66, 0xec, 0xd8, - 0xc4, 0x3a, 0x20, 0xed, 0xf4, 0x0d, 0xde, 0x8c, 0x71, 0xe0, 0x04, 0x29, 0x36, 0x35, 0xc7, 0x03, - 0x63, 0x53, 0x1b, 0x0e, 0x4f, 0x6d, 0x3b, 0x91, 0x0b, 0xa7, 0x48, 0x33, 0x3f, 0x76, 0x4c, 0x5e, - 0x3c, 0x50, 0x54, 0x4d, 0xd9, 0xd1, 0x48, 0xb9, 0x18, 0xf6, 0xe3, 0x8d, 0x30, 0x19, 0x47, 0xf9, - 0xd1, 0x63, 0x98, 0x76, 0x86, 0xb6, 0x75, 0xc5, 0x03, 0x29, 0x71, 0x90, 0x9f, 0x09, 0x90, 0xe9, - 0x8d, 0x28, 0x03, 0x8e, 0xcb, 0xa0, 0x07, 0x30, 0xd1, 0x32, 0x34, 0x8d, 0xfb, 0xe3, 0x92, 0xd1, - 0xd3, 0x69, 0x79, 0x84, 0xa3, 0x20, 0x76, 0x1e, 0x97, 0x42, 0x14, 0x1c, 0xe1, 0x44, 0x04, 0xa0, - 0xe5, 0x26, 0x1c, 0xbb, 0x0c, 0x3c, 0x3e, 0xde, 0xca, 0x1a, 0x03, 0xbc, 0x54, 0xe5, 0xd7, 0x00, - 0xde, 0x90, 0x8d, 0x03, 0xc0, 0xf2, 0x3f, 0x4b, 0x30, 0x9f, 0x12, 0x3a, 0xd0, 0x3b, 0xa1, 0x14, - 0xfb, 0xab, 0x91, 0x14, 0x7b, 0x39, 0x45, 0x2c, 0x90, 0x67, 0x75, 0x18, 0xb7, 0xd8, 0xac, 0xf4, - 0x8e, 0xc3, 0x22, 0x62, 0xe4, 0xdd, 0x01, 0xd3, 0xc0, 0x41, 0x19, 0x3f, 0xe6, 0x4f, 0x1f, 0x1f, - 0x55, 0xc6, 0x43, 0x34, 0x1c, 0x86, 0x97, 0xff, 0x3c, 0x07, 0xb0, 0x4c, 0x4c, 0xcd, 0xe8, 0x77, - 0x89, 0x7e, 0x1e, 0x35, 0xd4, 0x66, 0xa8, 0x86, 0xba, 0x39, 0x68, 0x7b, 0x3c, 0xd3, 0x52, 0x8b, - 0xa8, 0xdf, 0x8c, 0x14, 0x51, 0xb5, 0xec, 0x90, 0x27, 0x57, 0x51, 0xff, 0x96, 0x87, 0x19, 0x9f, - 0xd9, 0x2f, 0xa3, 0x1e, 0x86, 0xf6, 0xf8, 0x57, 0x22, 0x7b, 0x3c, 0x9f, 0x20, 0xf2, 0xca, 0xea, - 0xa8, 0x67, 0x30, 0xc1, 0xaa, 0x1c, 0x67, 0x2f, 0x79, 0x0d, 0x35, 0x7c, 0xea, 0x1a, 0xca, 0xcb, - 0x76, 0x6b, 0x21, 0x24, 0x1c, 0x41, 0x4e, 0xa9, 0xd9, 0x8a, 0x3f, 0xc5, 0x9a, 0xed, 0x2b, 0x09, - 0x26, 0xfc, 0x6d, 0x3a, 0x87, 0xa2, 0x6d, 0x23, 0x5c, 0xb4, 0xbd, 0x91, 0xd9, 0x45, 0x53, 0xaa, - 0xb6, 0xff, 0x66, 0x05, 0xbe, 0xc7, 0xc4, 0x0e, 0xf8, 0x8e, 0xd2, 0xda, 0x1f, 0x7c, 0xc7, 0x43, - 0x9f, 0x4b, 0x80, 0x44, 0x16, 0x58, 0xd4, 0x75, 0x83, 0x2a, 0x4e, 0xac, 0x74, 0xcc, 0x5a, 0xcd, - 0x6c, 0x96, 0xab, 0xb1, 0xba, 0x1d, 0xc3, 0x7a, 0xa4, 0x53, 0xab, 0xef, 0x6f, 0x72, 0x9c, 0x01, - 0x27, 0x18, 0x80, 0x14, 0x00, 0x4b, 0x60, 0x6e, 0x19, 0xe2, 0x20, 0xdf, 0xcc, 0x10, 0xf3, 0x98, - 0xc0, 0x92, 0xa1, 0xef, 0xaa, 0x1d, 0x3f, 0xec, 0x60, 0x0f, 0x08, 0x07, 0x40, 0x2f, 0x3d, 0x82, - 0xf9, 0x14, 0x6b, 0xd1, 0x14, 0xe4, 0xf7, 0x49, 0xdf, 0x59, 0x36, 0xcc, 0xfe, 0x44, 0xb3, 0x30, - 0x74, 0xa0, 0x68, 0x3d, 0x27, 0xfc, 0x8e, 0x60, 0xe7, 0xc7, 0x83, 0xdc, 0x7d, 0x49, 0xfe, 0x72, - 0x28, 0xe8, 0x3b, 0xbc, 0x62, 0xbe, 0xce, 0x2e, 0xad, 0xa6, 0xa6, 0xb6, 0x14, 0x5b, 0x14, 0x42, - 0x63, 0xce, 0x85, 0xd5, 0x19, 0xc3, 0x1e, 0x35, 0x54, 0x5b, 0xe7, 0x5e, 0x6d, 0x6d, 0x9d, 0x7f, - 0x39, 0xb5, 0xf5, 0x6f, 0x43, 0xc9, 0x76, 0xab, 0xea, 0x02, 0x87, 0xbc, 0x75, 0x8a, 0xf8, 0x2a, - 0x0a, 0x6a, 0x4f, 0x81, 0x57, 0x4a, 0x7b, 0xa0, 0x49, 0x45, 0xf4, 0xd0, 0x29, 0x8b, 0xe8, 0x97, - 0x5a, 0xf8, 0xb2, 0x78, 0x63, 0x2a, 0x3d, 0x9b, 0xb4, 0x79, 0x6c, 0x2b, 0xf9, 0xf1, 0xa6, 0xc1, - 0x47, 0xb1, 0xa0, 0xa2, 0x8f, 0x42, 0x2e, 0x5b, 0x3a, 0x8b, 0xcb, 0x4e, 0xa4, 0xbb, 0x2b, 0xda, - 0x86, 0x79, 0xd3, 0x32, 0x3a, 0x16, 0xb1, 0xed, 0x65, 0xa2, 0xb4, 0x35, 0x55, 0x27, 0xee, 0xfa, - 0x38, 0x15, 0xd1, 0xe5, 0xe3, 0xa3, 0xca, 0x7c, 0x23, 0x99, 0x05, 0xa7, 0xc9, 0xca, 0xcf, 0x0b, - 0x30, 0x15, 0xcd, 0x80, 0x29, 0x45, 0xaa, 0x74, 0xa6, 0x22, 0xf5, 0x46, 0xe0, 0x30, 0x38, 0x15, - 0x7c, 0xe0, 0x05, 0x27, 0x76, 0x20, 0x16, 0x61, 0x52, 0x44, 0x03, 0x97, 0x28, 0xca, 0x74, 0x6f, - 0xf7, 0xb7, 0xc3, 0x64, 0x1c, 0xe5, 0x47, 0x0f, 0x61, 0xdc, 0xe2, 0x75, 0xb7, 0x0b, 0xe0, 0xd4, - 0xae, 0x17, 0x05, 0xc0, 0x38, 0x0e, 0x12, 0x71, 0x98, 0x97, 0xd5, 0xad, 0x7e, 0x39, 0xea, 0x02, - 0x14, 0xc2, 0x75, 0xeb, 0x62, 0x94, 0x01, 0xc7, 0x65, 0xd0, 0x3a, 0xcc, 0xf4, 0xf4, 0x38, 0x94, - 0xe3, 0xca, 0x97, 0x05, 0xd4, 0xcc, 0x76, 0x9c, 0x05, 0x27, 0xc9, 0xa1, 0xdd, 0x50, 0x29, 0x3b, - 0xcc, 0xc3, 0xf3, 0xed, 0xcc, 0x07, 0x2f, 0x73, 0x2d, 0x9b, 0x50, 0x6e, 0x97, 0xb2, 0x96, 0xdb, - 0xf2, 0x3f, 0x4a, 0xc1, 0x24, 0xe4, 0x95, 0xc0, 0x83, 0x5e, 0x99, 0x62, 0x12, 0x81, 0xea, 0xc8, - 0x48, 0xae, 0x7e, 0xef, 0x9d, 0xaa, 0xfa, 0xf5, 0x93, 0xe7, 0xe0, 0xf2, 0xf7, 0x0b, 0x09, 0xe6, - 0x56, 0x9a, 0x8f, 0x2d, 0xa3, 0x67, 0xba, 0xe6, 0x6c, 0x9a, 0xce, 0xd2, 0xfc, 0x02, 0x0a, 0x56, - 0x4f, 0x73, 0xe7, 0xf1, 0xba, 0x3b, 0x0f, 0xdc, 0xd3, 0xd8, 0x3c, 0x66, 0x22, 0x52, 0xce, 0x24, - 0x98, 0x00, 0xda, 0x80, 0x61, 0x4b, 0xd1, 0x3b, 0xc4, 0x4d, 0xab, 0xd7, 0x06, 0x58, 0xbf, 0xba, - 0x8c, 0x19, 0x7b, 0xa0, 0xb0, 0xe1, 0xd2, 0x58, 0xa0, 0xc8, 0x7f, 0x24, 0xc1, 0xe4, 0x93, 0xad, - 0xad, 0xc6, 0xaa, 0xce, 0x4f, 0x34, 0x7f, 0x5b, 0xbd, 0x0a, 0x05, 0x53, 0xa1, 0x7b, 0xd1, 0x4c, - 0xcf, 0x68, 0x98, 0x53, 0xd0, 0x07, 0x50, 0x64, 0x91, 0x84, 0xe8, 0xed, 0x8c, 0xa5, 0xb6, 0x80, - 0xaf, 0x3b, 0x42, 0x7e, 0xf5, 0x24, 0x06, 0xb0, 0x0b, 0x27, 0xef, 0xc3, 0x6c, 0xc0, 0x1c, 0xb6, - 0x1e, 0x4f, 0x59, 0x76, 0x44, 0x4d, 0x18, 0x62, 0x9a, 0x59, 0x0e, 0xcc, 0x67, 0x78, 0xcc, 0x8c, - 0x4c, 0xc9, 0xaf, 0x74, 0xd8, 0x2f, 0x1b, 0x3b, 0x58, 0xf2, 0x3a, 0x8c, 0xf3, 0x07, 0x65, 0xc3, - 0xa2, 0x7c, 0x59, 0xd0, 0x15, 0xc8, 0x77, 0x55, 0x5d, 0xe4, 0xd9, 0x51, 0x21, 0x93, 0x67, 0x39, - 0x82, 0x8d, 0x73, 0xb2, 0x72, 0x28, 0x22, 0x8f, 0x4f, 0x56, 0x0e, 0x31, 0x1b, 0x97, 0x1f, 0x43, - 0x51, 0x2c, 0x77, 0x10, 0x28, 0x7f, 0x32, 0x50, 0x3e, 0x01, 0x68, 0x13, 0x8a, 0xab, 0x8d, 0xba, - 0x66, 0x38, 0x55, 0x57, 0x4b, 0x6d, 0x5b, 0xd1, 0xbd, 0x58, 0x5a, 0x5d, 0xc6, 0x98, 0x53, 0x90, - 0x0c, 0xc3, 0xe4, 0xb0, 0x45, 0x4c, 0xca, 0x3d, 0x62, 0xa4, 0x0e, 0x6c, 0x97, 0x1f, 0xf1, 0x11, - 0x2c, 0x28, 0xf2, 0x1f, 0xe7, 0xa0, 0x28, 0x96, 0xe3, 0x1c, 0x6e, 0x61, 0x6b, 0xa1, 0x5b, 0xd8, - 0x9b, 0xd9, 0x5c, 0x23, 0xf5, 0x0a, 0xb6, 0x15, 0xb9, 0x82, 0xdd, 0xc8, 0x88, 0x77, 0xf2, 0xfd, - 0xeb, 0xef, 0x24, 0x98, 0x08, 0x3b, 0x25, 0xba, 0x0b, 0xa3, 0x2c, 0xe1, 0xa8, 0x2d, 0xb2, 0xe1, - 0xd7, 0xb9, 0xde, 0x23, 0x4c, 0xd3, 0x27, 0xe1, 0x20, 0x1f, 0xea, 0x78, 0x62, 0xcc, 0x8f, 0xc4, - 0xa4, 0xd3, 0x97, 0xb4, 0x47, 0x55, 0xad, 0xea, 0x7c, 0x5a, 0xa9, 0xae, 0xea, 0x74, 0xd3, 0x6a, - 0x52, 0x4b, 0xd5, 0x3b, 0x31, 0x45, 0xdc, 0x29, 0x83, 0xc8, 0xf2, 0x3f, 0x48, 0x30, 0x2a, 0x4c, - 0x3e, 0x87, 0x5b, 0xc5, 0x6f, 0x84, 0x6f, 0x15, 0xd7, 0x32, 0x1e, 0xf0, 0xe4, 0x2b, 0xc5, 0x5f, - 0xf9, 0xa6, 0xb3, 0x23, 0xcd, 0xbc, 0x7a, 0xcf, 0xb0, 0x69, 0xd4, 0xab, 0xd9, 0x61, 0xc4, 0x9c, - 0x82, 0x7a, 0x30, 0xa5, 0x46, 0x62, 0x80, 0x58, 0xda, 0x5a, 0x36, 0x4b, 0x3c, 0xb1, 0x7a, 0x59, - 0xc0, 0x4f, 0x45, 0x29, 0x38, 0xa6, 0x42, 0x26, 0x10, 0xe3, 0x42, 0xef, 0x43, 0x61, 0x8f, 0x52, - 0x33, 0xe1, 0xbd, 0x7a, 0x40, 0xe4, 0xf1, 0x4d, 0x28, 0xf1, 0xd9, 0x6d, 0x6d, 0x35, 0x30, 0x87, - 0x92, 0xff, 0xc7, 0x5f, 0x8f, 0xa6, 0xe3, 0xe3, 0x5e, 0x3c, 0x95, 0xce, 0x12, 0x4f, 0x47, 0x93, - 0x62, 0x29, 0x7a, 0x02, 0x79, 0xaa, 0x65, 0xbd, 0x16, 0x0a, 0xc4, 0xad, 0xb5, 0xa6, 0x1f, 0x90, - 0xb6, 0xd6, 0x9a, 0x98, 0x41, 0xa0, 0x4d, 0x18, 0x62, 0xd9, 0x87, 0x1d, 0xc1, 0x7c, 0xf6, 0x23, - 0xcd, 0xe6, 0xef, 0x3b, 0x04, 0xfb, 0x65, 0x63, 0x07, 0x47, 0xfe, 0x14, 0xc6, 0x43, 0xe7, 0x14, - 0x7d, 0x02, 0x63, 0x9a, 0xa1, 0xb4, 0xeb, 0x8a, 0xa6, 0xe8, 0x2d, 0xe2, 0x7e, 0x1c, 0xb8, 0x96, - 0x74, 0xc3, 0x58, 0x0b, 0xf0, 0x89, 0x53, 0x3e, 0x2b, 0x94, 0x8c, 0x05, 0x69, 0x38, 0x84, 0x28, - 0x2b, 0x00, 0xfe, 0x1c, 0x51, 0x05, 0x86, 0x98, 0x9f, 0x39, 0xf9, 0x64, 0xa4, 0x3e, 0xc2, 0x2c, - 0x64, 0xee, 0x67, 0x63, 0x67, 0x1c, 0xdd, 0x06, 0xb0, 0x49, 0xcb, 0x22, 0x94, 0x07, 0x83, 0x5c, - 0xf8, 0x03, 0x63, 0xd3, 0xa3, 0xe0, 0x00, 0x97, 0xfc, 0x4f, 0x12, 0x8c, 0x6f, 0x10, 0xfa, 0x99, - 0x61, 0xed, 0x37, 0x0c, 0x4d, 0x6d, 0xf5, 0xcf, 0x21, 0xd8, 0xe2, 0x50, 0xb0, 0x7d, 0x6b, 0xc0, - 0xce, 0x84, 0xac, 0x4b, 0x0b, 0xb9, 0xf2, 0x57, 0x12, 0xcc, 0x87, 0x38, 0x1f, 0xf9, 0x47, 0x77, - 0x1b, 0x86, 0x4c, 0xc3, 0xa2, 0x6e, 0x22, 0x3e, 0x95, 0x42, 0x16, 0xc6, 0x02, 0xa9, 0x98, 0xc1, - 0x60, 0x07, 0x0d, 0xad, 0x41, 0x8e, 0x1a, 0xc2, 0x55, 0x4f, 0x87, 0x49, 0x88, 0x55, 0x07, 0x81, - 0x99, 0xdb, 0x32, 0x70, 0x8e, 0x1a, 0x6c, 0x23, 0xca, 0x21, 0xae, 0x60, 0xf0, 0x79, 0x45, 0x33, - 0xc0, 0x50, 0xd8, 0xb5, 0x8c, 0xee, 0x99, 0xe7, 0xe0, 0x6d, 0xc4, 0x8a, 0x65, 0x74, 0x31, 0xc7, - 0x92, 0xbf, 0x96, 0x60, 0x3a, 0xc4, 0x79, 0x0e, 0x81, 0xff, 0xfd, 0x70, 0xe0, 0xbf, 0x71, 0x9a, - 0x89, 0xa4, 0x84, 0xff, 0xaf, 0x73, 0x91, 0x69, 0xb0, 0x09, 0xa3, 0x5d, 0x18, 0x35, 0x8d, 0x76, - 0xf3, 0x25, 0x7c, 0x0e, 0x9c, 0x64, 0x79, 0xb3, 0xe1, 0x63, 0xe1, 0x20, 0x30, 0x3a, 0x84, 0x69, - 0x5d, 0xe9, 0x12, 0xdb, 0x54, 0x5a, 0xa4, 0xf9, 0x12, 0x1e, 0x48, 0x2e, 0xf2, 0xef, 0x0d, 0x51, - 0x44, 0x1c, 0x57, 0x82, 0xd6, 0xa1, 0xa8, 0x9a, 0xbc, 0x8e, 0x13, 0xb5, 0xcb, 0xc0, 0x2c, 0xea, - 0x54, 0x7d, 0x4e, 0x3c, 0x17, 0x3f, 0xb0, 0x8b, 0x21, 0xff, 0x75, 0xd4, 0x1b, 0x98, 0xff, 0xa1, - 0xc7, 0x50, 0xe2, 0x8d, 0x19, 0x2d, 0x43, 0x73, 0xbf, 0x0c, 0xb0, 0x9d, 0x6d, 0x88, 0xb1, 0x17, - 0x47, 0x95, 0xcb, 0x09, 0x8f, 0xbe, 0x2e, 0x19, 0x7b, 0xc2, 0x68, 0x03, 0x0a, 0xe6, 0x8f, 0xa9, - 0x60, 0x78, 0x92, 0xe3, 0x65, 0x0b, 0xc7, 0x91, 0x7f, 0x2f, 0x1f, 0x31, 0x97, 0xa7, 0xba, 0x67, - 0x2f, 0x6d, 0xd7, 0xbd, 0x8a, 0x29, 0x75, 0xe7, 0x77, 0xa0, 0x28, 0x32, 0xbc, 0x70, 0xe6, 0x5f, - 0x9c, 0xc6, 0x99, 0x83, 0x59, 0xcc, 0xbb, 0xb0, 0xb8, 0x83, 0x2e, 0x30, 0xfa, 0x18, 0x86, 0x89, - 0xa3, 0xc2, 0xc9, 0x8d, 0xf7, 0x4e, 0xa3, 0xc2, 0x8f, 0xab, 0x7e, 0xa1, 0x2a, 0xc6, 0x04, 0x2a, - 0x7a, 0x87, 0xad, 0x17, 0xe3, 0x65, 0x97, 0x40, 0xbb, 0x5c, 0xe0, 0xe9, 0xea, 0x8a, 0x33, 0x6d, - 0x6f, 0xf8, 0xc5, 0x51, 0x05, 0xfc, 0x9f, 0x38, 0x28, 0x21, 0xff, 0x8b, 0x04, 0xd3, 0x7c, 0x85, - 0x5a, 0x3d, 0x4b, 0xa5, 0xfd, 0x73, 0x4b, 0x4c, 0x4f, 0x43, 0x89, 0xe9, 0xce, 0x80, 0x65, 0x89, - 0x59, 0x98, 0x9a, 0x9c, 0xbe, 0x91, 0xe0, 0x62, 0x8c, 0xfb, 0x1c, 0xe2, 0xe2, 0x76, 0x38, 0x2e, - 0xbe, 0x75, 0xda, 0x09, 0xa5, 0xc4, 0xc6, 0xff, 0x9a, 0x4e, 0x98, 0x0e, 0x3f, 0x29, 0xb7, 0x01, - 0x4c, 0x4b, 0x3d, 0x50, 0x35, 0xd2, 0x11, 0x1f, 0xc1, 0x4b, 0x81, 0x16, 0x27, 0x8f, 0x82, 0x03, - 0x5c, 0xc8, 0x86, 0xb9, 0x36, 0xd9, 0x55, 0x7a, 0x1a, 0x5d, 0x6c, 0xb7, 0x97, 0x14, 0x53, 0xd9, - 0x51, 0x35, 0x95, 0xaa, 0xe2, 0xb9, 0x60, 0xa4, 0xfe, 0xd0, 0xf9, 0x38, 0x9d, 0xc4, 0xf1, 0xe2, - 0xa8, 0x72, 0x25, 0xe9, 0xeb, 0x90, 0xcb, 0xd2, 0xc7, 0x29, 0xd0, 0xa8, 0x0f, 0x65, 0x8b, 0x7c, - 0xda, 0x53, 0x2d, 0xd2, 0x5e, 0xb6, 0x0c, 0x33, 0xa4, 0x36, 0xcf, 0xd5, 0xfe, 0xfa, 0xf1, 0x51, - 0xa5, 0x8c, 0x53, 0x78, 0x06, 0x2b, 0x4e, 0x85, 0x47, 0xcf, 0x60, 0x46, 0x11, 0xcd, 0x68, 0x41, - 0xad, 0xce, 0x29, 0xb9, 0x7f, 0x7c, 0x54, 0x99, 0x59, 0x8c, 0x93, 0x07, 0x2b, 0x4c, 0x02, 0x45, - 0x35, 0x28, 0x1e, 0xf0, 0xbe, 0x35, 0xbb, 0x3c, 0xc4, 0xf1, 0x59, 0x22, 0x28, 0x3a, 0xad, 0x6c, - 0x0c, 0x73, 0x78, 0xa5, 0xc9, 0x4f, 0x9f, 0xcb, 0xc5, 0x2e, 0x94, 0xac, 0x96, 0x14, 0x27, 0x9e, - 0xbf, 0x18, 0x97, 0xfc, 0xa8, 0xf5, 0xc4, 0x27, 0xe1, 0x20, 0x1f, 0xfa, 0x08, 0x46, 0xf6, 0xc4, - 0xab, 0x84, 0x5d, 0x2e, 0x66, 0x4a, 0xc2, 0xa1, 0x57, 0x8c, 0xfa, 0xb4, 0x50, 0x31, 0xe2, 0x0e, - 0xdb, 0xd8, 0x47, 0x44, 0x6f, 0x40, 0x91, 0xff, 0x58, 0x5d, 0xe6, 0xcf, 0x71, 0x25, 0x3f, 0xb6, - 0x3d, 0x71, 0x86, 0xb1, 0x4b, 0x77, 0x59, 0x57, 0x1b, 0x4b, 0xfc, 0x59, 0x38, 0xc2, 0xba, 0xda, - 0x58, 0xc2, 0x2e, 0x1d, 0x7d, 0x02, 0x45, 0x9b, 0xac, 0xa9, 0x7a, 0xef, 0xb0, 0x0c, 0x99, 0x3e, - 0x2a, 0x37, 0x1f, 0x71, 0xee, 0xc8, 0xc3, 0x98, 0xaf, 0x41, 0xd0, 0xb1, 0x0b, 0x8b, 0xf6, 0x60, - 0xc4, 0xea, 0xe9, 0x8b, 0xf6, 0xb6, 0x4d, 0xac, 0xf2, 0x28, 0xd7, 0x31, 0x28, 0x9c, 0x63, 0x97, - 0x3f, 0xaa, 0xc5, 0x5b, 0x21, 0x8f, 0x03, 0xfb, 0xe0, 0x68, 0x0f, 0x80, 0xff, 0xe0, 0x6f, 0x70, - 0xe5, 0x39, 0xae, 0xea, 0x7e, 0x16, 0x55, 0x49, 0x4f, 0x7d, 0xe2, 0x1d, 0xde, 0x23, 0xe3, 0x00, - 0x36, 0xfa, 0x43, 0x09, 0x90, 0xdd, 0x33, 0x4d, 0x8d, 0x74, 0x89, 0x4e, 0x15, 0x8d, 0x8f, 0xda, - 0xe5, 0x31, 0xae, 0xf2, 0xdd, 0x41, 0x2b, 0x18, 0x13, 0x8c, 0xaa, 0xf6, 0x9e, 0xd7, 0xe3, 0xac, - 0x38, 0x41, 0x2f, 0xdb, 0xc4, 0x5d, 0x31, 0xeb, 0xf1, 0x4c, 0x9b, 0x98, 0xfc, 0xba, 0xe9, 0x6f, - 0xa2, 0xa0, 0x63, 0x17, 0x16, 0x3d, 0x85, 0x39, 0xb7, 0xc1, 0x12, 0x1b, 0x06, 0x5d, 0x51, 0x35, - 0x62, 0xf7, 0x6d, 0x4a, 0xba, 0xe5, 0x09, 0xee, 0x60, 0x5e, 0x97, 0x09, 0x4e, 0xe4, 0xc2, 0x29, - 0xd2, 0xa8, 0x0b, 0x15, 0x37, 0x38, 0xb1, 0x93, 0xeb, 0x45, 0xc7, 0x47, 0x76, 0x4b, 0xd1, 0x9c, - 0x2f, 0x0e, 0x93, 0x5c, 0xc1, 0xeb, 0xc7, 0x47, 0x95, 0xca, 0xf2, 0xc9, 0xac, 0x78, 0x10, 0x16, - 0xfa, 0x00, 0xca, 0x4a, 0x9a, 0x9e, 0x29, 0xae, 0xe7, 0x35, 0x16, 0xf1, 0x52, 0x15, 0xa4, 0x4a, - 0x23, 0x0a, 0x53, 0x4a, 0xb8, 0xd5, 0xd5, 0x2e, 0x4f, 0x67, 0x7a, 0xf2, 0x8c, 0x74, 0xc8, 0xfa, - 0xcf, 0x1e, 0x11, 0x82, 0x8d, 0x63, 0x1a, 0xd0, 0xef, 0x00, 0x52, 0xa2, 0xdd, 0xb9, 0x76, 0x19, - 0x65, 0x4a, 0x74, 0xb1, 0xb6, 0x5e, 0xdf, 0xed, 0x62, 0x24, 0x1b, 0x27, 0xe8, 0x61, 0x05, 0xba, - 0x12, 0xe9, 0x28, 0xb6, 0xcb, 0xf3, 0x5c, 0x79, 0x2d, 0x9b, 0x72, 0x4f, 0x2e, 0xf0, 0x61, 0x25, - 0x8a, 0x88, 0xe3, 0x4a, 0xd0, 0x1a, 0xcc, 0x8a, 0xc1, 0x6d, 0xdd, 0x56, 0x76, 0x49, 0xb3, 0x6f, - 0xb7, 0xa8, 0x66, 0x97, 0x67, 0x78, 0x7c, 0xe7, 0x1f, 0xf7, 0x16, 0x13, 0xe8, 0x38, 0x51, 0x0a, - 0xbd, 0x0b, 0x53, 0xbb, 0x86, 0xb5, 0xa3, 0xb6, 0xdb, 0x44, 0x77, 0x91, 0x66, 0x39, 0xd2, 0x2c, - 0xdb, 0x87, 0x95, 0x08, 0x0d, 0xc7, 0xb8, 0x91, 0x0d, 0x17, 0x05, 0x72, 0xc3, 0x32, 0x5a, 0xeb, - 0x46, 0x4f, 0xa7, 0x4e, 0xd9, 0x77, 0xd1, 0x4b, 0xa3, 0x17, 0x17, 0x93, 0x18, 0x5e, 0x1c, 0x55, - 0xae, 0x26, 0x57, 0xf9, 0x3e, 0x13, 0x4e, 0xc6, 0x46, 0x26, 0x8c, 0x89, 0x3e, 0xf1, 0x25, 0x4d, - 0xb1, 0xed, 0x72, 0x99, 0x1f, 0xfd, 0x07, 0x83, 0x03, 0x9e, 0x27, 0x12, 0x3d, 0xff, 0x53, 0xc7, - 0x47, 0x95, 0xb1, 0x20, 0x03, 0x0e, 0x69, 0xe0, 0x7d, 0x41, 0xe2, 0x6b, 0xd4, 0xf9, 0xf4, 0x56, - 0x9f, 0xae, 0x2f, 0xc8, 0x37, 0xed, 0xa5, 0xf5, 0x05, 0x05, 0x20, 0x4f, 0x7e, 0x97, 0xfe, 0xcf, - 0x1c, 0xcc, 0xf8, 0xcc, 0x99, 0xfb, 0x82, 0x12, 0x44, 0xfe, 0xbf, 0xbf, 0x3a, 0x5b, 0xaf, 0x8e, - 0xbf, 0x74, 0xff, 0xf7, 0x7a, 0x75, 0x7c, 0xdb, 0x52, 0x6e, 0x0f, 0x7f, 0x9b, 0x0b, 0x4e, 0xe0, - 0x94, 0x0d, 0x23, 0x2f, 0xa1, 0xc5, 0xf8, 0x27, 0xd7, 0x73, 0x22, 0x7f, 0x93, 0x87, 0xa9, 0xe8, - 0x69, 0x0c, 0xf5, 0x15, 0x48, 0x03, 0xfb, 0x0a, 0x1a, 0x30, 0xbb, 0xdb, 0xd3, 0xb4, 0x3e, 0x9f, - 0x43, 0xa0, 0xb9, 0xc0, 0xf9, 0x2e, 0xf8, 0x9a, 0x90, 0x9c, 0x5d, 0x49, 0xe0, 0xc1, 0x89, 0x92, - 0xf1, 0x36, 0x83, 0xc2, 0x8f, 0x6d, 0x33, 0x18, 0x3a, 0x43, 0x9b, 0x41, 0x72, 0xa7, 0x46, 0xfe, - 0x4c, 0x9d, 0x1a, 0x67, 0xe9, 0x31, 0x48, 0x08, 0x62, 0x03, 0xfb, 0x65, 0x5f, 0x83, 0x4b, 0x42, - 0x8c, 0xf2, 0xde, 0x01, 0x9d, 0x5a, 0x86, 0xa6, 0x11, 0x6b, 0xb9, 0xd7, 0xed, 0xf6, 0xe5, 0x5f, - 0xc2, 0x44, 0xb8, 0x2b, 0xc6, 0xd9, 0x69, 0xa7, 0x31, 0x47, 0x7c, 0x9d, 0x0d, 0xec, 0xb4, 0x33, - 0x8e, 0x3d, 0x0e, 0xf9, 0xf7, 0x25, 0x98, 0x4b, 0xee, 0x7e, 0x45, 0x1a, 0x4c, 0x74, 0x95, 0xc3, - 0x60, 0x47, 0xb2, 0x74, 0xc6, 0x77, 0x33, 0xde, 0x0e, 0xb1, 0x1e, 0xc2, 0xc2, 0x11, 0x6c, 0xf9, - 0x07, 0x09, 0xe6, 0x53, 0x1a, 0x11, 0xce, 0xd7, 0x12, 0xf4, 0x21, 0x94, 0xba, 0xca, 0x61, 0xb3, - 0x67, 0x75, 0xc8, 0x99, 0x5f, 0x0a, 0xf9, 0x71, 0x5f, 0x17, 0x28, 0xd8, 0xc3, 0x93, 0xff, 0x52, - 0x82, 0x9f, 0xa5, 0x5e, 0xa4, 0xd0, 0xbd, 0x50, 0xcf, 0x84, 0x1c, 0xe9, 0x99, 0x40, 0x71, 0xc1, - 0x57, 0xd4, 0x32, 0xf1, 0x85, 0x04, 0xe5, 0xb4, 0x9b, 0x25, 0xba, 0x1b, 0x32, 0xf2, 0xe7, 0x11, - 0x23, 0xa7, 0x63, 0x72, 0xaf, 0xc8, 0xc6, 0x7f, 0x95, 0xe0, 0xf2, 0x09, 0x15, 0x9a, 0x77, 0x81, - 0x21, 0xed, 0x20, 0x17, 0x7f, 0xd4, 0x16, 0x5f, 0xc4, 0xfc, 0x0b, 0x4c, 0x02, 0x0f, 0x4e, 0x95, - 0x46, 0xdb, 0x30, 0x2f, 0x6e, 0x4f, 0x51, 0x9a, 0x28, 0x3e, 0x78, 0x6b, 0xd9, 0x72, 0x32, 0x0b, - 0x4e, 0x93, 0x95, 0xff, 0x46, 0x82, 0xb9, 0xe4, 0x27, 0x03, 0xf4, 0x76, 0x68, 0xc9, 0x2b, 0x91, - 0x25, 0x9f, 0x8c, 0x48, 0x89, 0x05, 0xff, 0x18, 0x26, 0xc4, 0xc3, 0x82, 0x80, 0x11, 0xce, 0x2c, - 0x27, 0xe5, 0x17, 0x01, 0xe1, 0x96, 0xb7, 0xfc, 0x98, 0x84, 0xc7, 0x70, 0x04, 0x4d, 0xfe, 0x83, - 0x1c, 0x0c, 0x35, 0x5b, 0x8a, 0x46, 0xce, 0xa1, 0xba, 0x7d, 0x2f, 0x54, 0xdd, 0x0e, 0xfa, 0xa7, - 0x2d, 0x6e, 0x55, 0x6a, 0x61, 0x8b, 0x23, 0x85, 0xed, 0x9b, 0x99, 0xd0, 0x4e, 0xae, 0x69, 0x7f, - 0x0d, 0x46, 0x3c, 0xa5, 0xa7, 0x4b, 0xb5, 0xf2, 0x5f, 0xe4, 0x60, 0x34, 0xa0, 0xe2, 0x94, 0x89, - 0x7a, 0x37, 0x54, 0x9d, 0xe4, 0x33, 0x3c, 0xe3, 0x04, 0x74, 0x55, 0xdd, 0x7a, 0xc4, 0x69, 0x3a, - 0xf6, 0xdb, 0x4c, 0xe3, 0x65, 0xca, 0x2f, 0x61, 0x82, 0x2a, 0x56, 0x87, 0x50, 0xef, 0xb3, 0x46, - 0x9e, 0xfb, 0xa2, 0xd7, 0xfd, 0xbe, 0x15, 0xa2, 0xe2, 0x08, 0xf7, 0xa5, 0x87, 0x30, 0x1e, 0x52, - 0x76, 0xaa, 0x9e, 0xe1, 0xbf, 0x97, 0xe0, 0xe7, 0x03, 0x9f, 0x82, 0x50, 0x3d, 0x74, 0x48, 0xaa, - 0x91, 0x43, 0xb2, 0x90, 0x0e, 0xf0, 0xea, 0x7a, 0xcf, 0xea, 0x37, 0x9f, 0x7f, 0xbf, 0x70, 0xe1, - 0xdb, 0xef, 0x17, 0x2e, 0x7c, 0xf7, 0xfd, 0xc2, 0x85, 0xdf, 0x3d, 0x5e, 0x90, 0x9e, 0x1f, 0x2f, - 0x48, 0xdf, 0x1e, 0x2f, 0x48, 0xdf, 0x1d, 0x2f, 0x48, 0xff, 0x7e, 0xbc, 0x20, 0xfd, 0xc9, 0x0f, - 0x0b, 0x17, 0x3e, 0x2c, 0x0a, 0xb8, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x62, 0xda, 0xf9, - 0x07, 0x3e, 0x00, 0x00, -} - -func (m *AllowedCSIDriver) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllowedCSIDriver) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllowedCSIDriver) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AllowedFlexVolume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllowedFlexVolume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllowedFlexVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AllowedHostPath) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllowedHostPath) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllowedHostPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.PathPrefix) - copy(dAtA[i:], m.PathPrefix) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PathPrefix))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DaemonSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.TemplateGeneration)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - { - size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DaemonSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - } - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x48 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberUnavailable)) - i-- - dAtA[i] = 0x40 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberAvailable)) - i-- - dAtA[i] = 0x38 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedNumberScheduled)) - i-- - dAtA[i] = 0x30 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberReady)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredNumberScheduled)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.NumberMisscheduled)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentNumberScheduled)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DaemonSetUpdateStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DaemonSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DaemonSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Deployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Deployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - { - size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentRollback) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentRollback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RollbackTo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.UpdatedAnnotations) > 0 { - keysForUpdatedAnnotations := make([]string, 0, len(m.UpdatedAnnotations)) - for k := range m.UpdatedAnnotations { - keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) - for iNdEx := len(keysForUpdatedAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.UpdatedAnnotations[string(keysForUpdatedAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForUpdatedAnnotations[iNdEx]) - copy(dAtA[i:], keysForUpdatedAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForUpdatedAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ProgressDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds)) - i-- - dAtA[i] = 0x48 - } - if m.RollbackTo != nil { - { - size, err := m.RollbackTo.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - i-- - if m.Paused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - if m.RevisionHistoryLimit != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) - i-- - dAtA[i] = 0x30 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x28 - { - size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CollisionCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) - i-- - dAtA[i] = 0x40 - } - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x38 - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RollingUpdate != nil { - { - size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *FSGroupStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FSGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FSGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HTTPIngressPath) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HTTPIngressPath) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HTTPIngressPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HTTPIngressRuleValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HTTPIngressRuleValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HTTPIngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Paths) > 0 { - for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *HostPortRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostPortRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostPortRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Max)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Min)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *IDRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IDRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IDRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Max)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Min)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *IPBlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IPBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IPBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Except) > 0 { - for iNdEx := len(m.Except) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Except[iNdEx]) - copy(dAtA[i:], m.Except[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Except[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.CIDR) - copy(dAtA[i:], m.CIDR) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDR))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Ingress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Ingress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Ingress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressBackend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressBackend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ServicePort.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.ServiceName) - copy(dAtA[i:], m.ServiceName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.IngressRuleValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Host) - copy(dAtA[i:], m.Host) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressRuleValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressRuleValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.HTTP != nil { - { - size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IngressSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.TLS) > 0 { - for iNdEx := len(m.TLS) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TLS[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Backend != nil { - { - size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IngressStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressTLS) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressTLS) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressTLS) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.SecretName) - copy(dAtA[i:], m.SecretName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) - i-- - dAtA[i] = 0x12 - if len(m.Hosts) > 0 { - for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Hosts[iNdEx]) - copy(dAtA[i:], m.Hosts[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hosts[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyEgressRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyEgressRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyEgressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.To) > 0 { - for iNdEx := len(m.To) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.To[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyIngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.From) > 0 { - for iNdEx := len(m.From) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.From[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IPBlock != nil { - { - size, err := m.IPBlock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PodSelector != nil { - { - size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - { - size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Protocol != nil { - i -= len(*m.Protocol) - copy(dAtA[i:], *m.Protocol) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PolicyTypes) > 0 { - for iNdEx := len(m.PolicyTypes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PolicyTypes[iNdEx]) - copy(dAtA[i:], m.PolicyTypes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyTypes[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Egress) > 0 { - for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Ingress) > 0 { - for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodSecurityPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodSecurityPolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicyList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodSecurityPolicySpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RuntimeClass != nil { - { - size, err := m.RuntimeClass.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - } - if len(m.AllowedCSIDrivers) > 0 { - for iNdEx := len(m.AllowedCSIDrivers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedCSIDrivers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - } - if m.RunAsGroup != nil { - { - size, err := m.RunAsGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if len(m.AllowedProcMountTypes) > 0 { - for iNdEx := len(m.AllowedProcMountTypes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedProcMountTypes[iNdEx]) - copy(dAtA[i:], m.AllowedProcMountTypes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedProcMountTypes[iNdEx]))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - } - if len(m.ForbiddenSysctls) > 0 { - for iNdEx := len(m.ForbiddenSysctls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ForbiddenSysctls[iNdEx]) - copy(dAtA[i:], m.ForbiddenSysctls[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ForbiddenSysctls[iNdEx]))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - } - if len(m.AllowedUnsafeSysctls) > 0 { - for iNdEx := len(m.AllowedUnsafeSysctls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedUnsafeSysctls[iNdEx]) - copy(dAtA[i:], m.AllowedUnsafeSysctls[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedUnsafeSysctls[iNdEx]))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - } - if len(m.AllowedFlexVolumes) > 0 { - for iNdEx := len(m.AllowedFlexVolumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedFlexVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - } - if len(m.AllowedHostPaths) > 0 { - for iNdEx := len(m.AllowedHostPaths) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedHostPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - if m.AllowPrivilegeEscalation != nil { - i-- - if *m.AllowPrivilegeEscalation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.DefaultAllowPrivilegeEscalation != nil { - i-- - if *m.DefaultAllowPrivilegeEscalation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x78 - } - i-- - if m.ReadOnlyRootFilesystem { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 - { - size, err := m.FSGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - { - size, err := m.SupplementalGroups.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - { - size, err := m.RunAsUser.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - { - size, err := m.SELinux.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - i-- - if m.HostIPC { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - i-- - if m.HostPID { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - if len(m.HostPorts) > 0 { - for iNdEx := len(m.HostPorts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostPorts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - i-- - if m.HostNetwork { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Volumes[iNdEx]) - copy(dAtA[i:], m.Volumes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Volumes[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.AllowedCapabilities) > 0 { - for iNdEx := len(m.AllowedCapabilities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedCapabilities[iNdEx]) - copy(dAtA[i:], m.AllowedCapabilities[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedCapabilities[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.RequiredDropCapabilities) > 0 { - for iNdEx := len(m.RequiredDropCapabilities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RequiredDropCapabilities[iNdEx]) - copy(dAtA[i:], m.RequiredDropCapabilities[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequiredDropCapabilities[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.DefaultAddCapabilities) > 0 { - for iNdEx := len(m.DefaultAddCapabilities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DefaultAddCapabilities[iNdEx]) - copy(dAtA[i:], m.DefaultAddCapabilities[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DefaultAddCapabilities[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i-- - if m.Privileged { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ReplicaSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ReplicaSetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) - i-- - dAtA[i] = 0x20 - { - size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Replicas != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReplicaSetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicaSetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicaSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.FullyLabeledReplicas)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ReplicationControllerDummy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationControllerDummy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationControllerDummy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RollbackConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollbackConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollbackConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDaemonSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDaemonSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxSurge != nil { - { - size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RunAsGroupStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RunAsGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunAsGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RunAsUserStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RunAsUserStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunAsUserStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RuntimeClassStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClassStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClassStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DefaultRuntimeClassName != nil { - i -= len(*m.DefaultRuntimeClassName) - copy(dAtA[i:], *m.DefaultRuntimeClassName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.DefaultRuntimeClassName))) - i-- - dAtA[i] = 0x12 - } - if len(m.AllowedRuntimeClassNames) > 0 { - for iNdEx := len(m.AllowedRuntimeClassNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedRuntimeClassNames[iNdEx]) - copy(dAtA[i:], m.AllowedRuntimeClassNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedRuntimeClassNames[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SELinuxStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SELinuxStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SELinuxStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SELinuxOptions != nil { - { - size, err := m.SELinuxOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Scale) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Scale) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Scale) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ScaleSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ScaleStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScaleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.TargetSelector) - copy(dAtA[i:], m.TargetSelector) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetSelector))) - i-- - dAtA[i] = 0x1a - if len(m.Selector) > 0 { - keysForSelector := make([]string, 0, len(m.Selector)) - for k := range m.Selector { - keysForSelector = append(keysForSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.Selector[string(keysForSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForSelector[iNdEx]) - copy(dAtA[i:], keysForSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *SupplementalGroupsStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SupplementalGroupsStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SupplementalGroupsStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AllowedCSIDriver) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AllowedFlexVolume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AllowedHostPath) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PathPrefix) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *DaemonSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DaemonSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DaemonSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.UpdateStrategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - n += 1 + sovGenerated(uint64(m.TemplateGeneration)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - return n -} - -func (m *DaemonSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.CurrentNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberMisscheduled)) - n += 1 + sovGenerated(uint64(m.DesiredNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberReady)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.UpdatedNumberScheduled)) - n += 1 + sovGenerated(uint64(m.NumberAvailable)) - n += 1 + sovGenerated(uint64(m.NumberUnavailable)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DaemonSetUpdateStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Deployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastUpdateTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *DeploymentRollback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.UpdatedAnnotations) > 0 { - for k, v := range m.UpdatedAnnotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = m.RollbackTo.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeploymentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Strategy.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - if m.RevisionHistoryLimit != nil { - n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) - } - n += 2 - if m.RollbackTo != nil { - l = m.RollbackTo.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ProgressDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds)) - } - return n -} - -func (m *DeploymentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - if m.CollisionCount != nil { - n += 1 + sovGenerated(uint64(*m.CollisionCount)) - } - return n -} - -func (m *DeploymentStrategy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - if m.RollingUpdate != nil { - l = m.RollingUpdate.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *FSGroupStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HTTPIngressPath) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Backend.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HTTPIngressRuleValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Paths) > 0 { - for _, e := range m.Paths { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HostPortRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Min)) - n += 1 + sovGenerated(uint64(m.Max)) - return n -} - -func (m *IDRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Min)) - n += 1 + sovGenerated(uint64(m.Max)) - return n -} - -func (m *IPBlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CIDR) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Except) > 0 { - for _, s := range m.Except { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Ingress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressBackend) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ServicePort.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IngressRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - l = m.IngressRuleValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressRuleValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HTTP != nil { - l = m.HTTP.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *IngressSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Backend != nil { - l = m.Backend.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.TLS) > 0 { - for _, e := range m.TLS { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IngressStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LoadBalancer.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressTLS) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Hosts) > 0 { - for _, s := range m.Hosts { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.SecretName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NetworkPolicy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NetworkPolicyEgressRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.To) > 0 { - for _, e := range m.To { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicyIngressRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.From) > 0 { - for _, e := range m.From { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicyList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicyPeer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodSelector != nil { - l = m.PodSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.IPBlock != nil { - l = m.IPBlock.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NetworkPolicyPort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Protocol != nil { - l = len(*m.Protocol) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - l = m.Port.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NetworkPolicySpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.PodSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Egress) > 0 { - for _, e := range m.Egress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.PolicyTypes) > 0 { - for _, s := range m.PolicyTypes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodSecurityPolicy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityPolicyList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodSecurityPolicySpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - if len(m.DefaultAddCapabilities) > 0 { - for _, s := range m.DefaultAddCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.RequiredDropCapabilities) > 0 { - for _, s := range m.RequiredDropCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedCapabilities) > 0 { - for _, s := range m.AllowedCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Volumes) > 0 { - for _, s := range m.Volumes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - if len(m.HostPorts) > 0 { - for _, e := range m.HostPorts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - n += 2 - l = m.SELinux.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.RunAsUser.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.SupplementalGroups.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.FSGroup.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.DefaultAllowPrivilegeEscalation != nil { - n += 2 - } - if m.AllowPrivilegeEscalation != nil { - n += 3 - } - if len(m.AllowedHostPaths) > 0 { - for _, e := range m.AllowedHostPaths { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedFlexVolumes) > 0 { - for _, e := range m.AllowedFlexVolumes { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedUnsafeSysctls) > 0 { - for _, s := range m.AllowedUnsafeSysctls { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.ForbiddenSysctls) > 0 { - for _, s := range m.ForbiddenSysctls { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedProcMountTypes) > 0 { - for _, s := range m.AllowedProcMountTypes { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.RunAsGroup != nil { - l = m.RunAsGroup.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if len(m.AllowedCSIDrivers) > 0 { - for _, e := range m.AllowedCSIDrivers { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.RuntimeClass != nil { - l = m.RuntimeClass.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ReplicaSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicaSetCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ReplicaSetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ReplicaSetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Replicas != nil { - n += 1 + sovGenerated(uint64(*m.Replicas)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = m.Template.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.MinReadySeconds)) - return n -} - -func (m *ReplicaSetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - n += 1 + sovGenerated(uint64(m.ReadyReplicas)) - n += 1 + sovGenerated(uint64(m.AvailableReplicas)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ReplicationControllerDummy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RollbackConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Revision)) - return n -} - -func (m *RollingUpdateDaemonSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RollingUpdateDeployment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.MaxSurge != nil { - l = m.MaxSurge.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RunAsGroupStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RunAsUserStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RuntimeClassStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.AllowedRuntimeClassNames) > 0 { - for _, s := range m.AllowedRuntimeClassNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DefaultRuntimeClassName != nil { - l = len(*m.DefaultRuntimeClassName) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SELinuxStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if m.SELinuxOptions != nil { - l = m.SELinuxOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Scale) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ScaleSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - return n -} - -func (m *ScaleStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Replicas)) - if len(m.Selector) > 0 { - for k, v := range m.Selector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.TargetSelector) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *SupplementalGroupsStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AllowedCSIDriver) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AllowedCSIDriver{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *AllowedFlexVolume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AllowedFlexVolume{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `}`, - }, "") - return s -} -func (this *AllowedHostPath) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AllowedHostPath{`, - `PathPrefix:` + fmt.Sprintf("%v", this.PathPrefix) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DaemonSetSpec", "DaemonSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DaemonSetStatus", "DaemonSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]DaemonSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DaemonSet", "DaemonSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DaemonSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetSpec{`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "DaemonSetUpdateStrategy", "DaemonSetUpdateStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `TemplateGeneration:` + fmt.Sprintf("%v", this.TemplateGeneration) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DaemonSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DaemonSetCondition", "DaemonSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DaemonSetStatus{`, - `CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`, - `NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`, - `DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`, - `NumberReady:` + fmt.Sprintf("%v", this.NumberReady) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `UpdatedNumberScheduled:` + fmt.Sprintf("%v", this.UpdatedNumberScheduled) + `,`, - `NumberAvailable:` + fmt.Sprintf("%v", this.NumberAvailable) + `,`, - `NumberUnavailable:` + fmt.Sprintf("%v", this.NumberUnavailable) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *DaemonSetUpdateStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DaemonSetUpdateStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDaemonSet", "RollingUpdateDaemonSet", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Deployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Deployment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Deployment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&DeploymentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentRollback) String() string { - if this == nil { - return "nil" - } - keysForUpdatedAnnotations := make([]string, 0, len(this.UpdatedAnnotations)) - for k := range this.UpdatedAnnotations { - keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) - mapStringForUpdatedAnnotations := "map[string]string{" - for _, k := range keysForUpdatedAnnotations { - mapStringForUpdatedAnnotations += fmt.Sprintf("%v: %v,", k, this.UpdatedAnnotations[k]) - } - mapStringForUpdatedAnnotations += "}" - s := strings.Join([]string{`&DeploymentRollback{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UpdatedAnnotations:` + mapStringForUpdatedAnnotations + `,`, - `RollbackTo:` + strings.Replace(strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, - `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, - `RollbackTo:` + strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1) + `,`, - `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]DeploymentCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&DeploymentStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, - `}`, - }, "") - return s -} -func (this *DeploymentStrategy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeploymentStrategy{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`, - `}`, - }, "") - return s -} -func (this *FSGroupStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&FSGroupStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func (this *HTTPIngressPath) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HTTPIngressPath{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HTTPIngressRuleValue) String() string { - if this == nil { - return "nil" - } - repeatedStringForPaths := "[]HTTPIngressPath{" - for _, f := range this.Paths { - repeatedStringForPaths += strings.Replace(strings.Replace(f.String(), "HTTPIngressPath", "HTTPIngressPath", 1), `&`, ``, 1) + "," - } - repeatedStringForPaths += "}" - s := strings.Join([]string{`&HTTPIngressRuleValue{`, - `Paths:` + repeatedStringForPaths + `,`, - `}`, - }, "") - return s -} -func (this *HostPortRange) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostPortRange{`, - `Min:` + fmt.Sprintf("%v", this.Min) + `,`, - `Max:` + fmt.Sprintf("%v", this.Max) + `,`, - `}`, - }, "") - return s -} -func (this *IDRange) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IDRange{`, - `Min:` + fmt.Sprintf("%v", this.Min) + `,`, - `Max:` + fmt.Sprintf("%v", this.Max) + `,`, - `}`, - }, "") - return s -} -func (this *IPBlock) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IPBlock{`, - `CIDR:` + fmt.Sprintf("%v", this.CIDR) + `,`, - `Except:` + fmt.Sprintf("%v", this.Except) + `,`, - `}`, - }, "") - return s -} -func (this *Ingress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Ingress{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressSpec", "IngressSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "IngressStatus", "IngressStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressBackend) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressBackend{`, - `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, - `ServicePort:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ServicePort), "IntOrString", "intstr.IntOrString", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Ingress{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Ingress", "Ingress", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&IngressList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *IngressRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressRule{`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `IngressRuleValue:` + strings.Replace(strings.Replace(this.IngressRuleValue.String(), "IngressRuleValue", "IngressRuleValue", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressRuleValue) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressRuleValue{`, - `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPIngressRuleValue", "HTTPIngressRuleValue", 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForTLS := "[]IngressTLS{" - for _, f := range this.TLS { - repeatedStringForTLS += strings.Replace(strings.Replace(f.String(), "IngressTLS", "IngressTLS", 1), `&`, ``, 1) + "," - } - repeatedStringForTLS += "}" - repeatedStringForRules := "[]IngressRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "IngressRule", "IngressRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&IngressSpec{`, - `Backend:` + strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1) + `,`, - `TLS:` + repeatedStringForTLS + `,`, - `Rules:` + repeatedStringForRules + `,`, - `}`, - }, "") - return s -} -func (this *IngressStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressStatus{`, - `LoadBalancer:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LoadBalancer), "LoadBalancerStatus", "v11.LoadBalancerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressTLS) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressTLS{`, - `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`, - `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkPolicySpec", "NetworkPolicySpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyEgressRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]NetworkPolicyPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - repeatedStringForTo := "[]NetworkPolicyPeer{" - for _, f := range this.To { - repeatedStringForTo += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," - } - repeatedStringForTo += "}" - s := strings.Join([]string{`&NetworkPolicyEgressRule{`, - `Ports:` + repeatedStringForPorts + `,`, - `To:` + repeatedStringForTo + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyIngressRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]NetworkPolicyPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - repeatedStringForFrom := "[]NetworkPolicyPeer{" - for _, f := range this.From { - repeatedStringForFrom += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," - } - repeatedStringForFrom += "}" - s := strings.Join([]string{`&NetworkPolicyIngressRule{`, - `Ports:` + repeatedStringForPorts + `,`, - `From:` + repeatedStringForFrom + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]NetworkPolicy{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&NetworkPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyPeer) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkPolicyPeer{`, - `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `IPBlock:` + strings.Replace(this.IPBlock.String(), "IPBlock", "IPBlock", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyPort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkPolicyPort{`, - `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, - `Port:` + strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicySpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForIngress := "[]NetworkPolicyIngressRule{" - for _, f := range this.Ingress { - repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + "," - } - repeatedStringForIngress += "}" - repeatedStringForEgress := "[]NetworkPolicyEgressRule{" - for _, f := range this.Egress { - repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyEgressRule", "NetworkPolicyEgressRule", 1), `&`, ``, 1) + "," - } - repeatedStringForEgress += "}" - s := strings.Join([]string{`&NetworkPolicySpec{`, - `PodSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, - `Ingress:` + repeatedStringForIngress + `,`, - `Egress:` + repeatedStringForEgress + `,`, - `PolicyTypes:` + fmt.Sprintf("%v", this.PolicyTypes) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicySpec", "PodSecurityPolicySpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicyList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PodSecurityPolicy{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodSecurityPolicy", "PodSecurityPolicy", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PodSecurityPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForHostPorts := "[]HostPortRange{" - for _, f := range this.HostPorts { - repeatedStringForHostPorts += strings.Replace(strings.Replace(f.String(), "HostPortRange", "HostPortRange", 1), `&`, ``, 1) + "," - } - repeatedStringForHostPorts += "}" - repeatedStringForAllowedHostPaths := "[]AllowedHostPath{" - for _, f := range this.AllowedHostPaths { - repeatedStringForAllowedHostPaths += strings.Replace(strings.Replace(f.String(), "AllowedHostPath", "AllowedHostPath", 1), `&`, ``, 1) + "," - } - repeatedStringForAllowedHostPaths += "}" - repeatedStringForAllowedFlexVolumes := "[]AllowedFlexVolume{" - for _, f := range this.AllowedFlexVolumes { - repeatedStringForAllowedFlexVolumes += strings.Replace(strings.Replace(f.String(), "AllowedFlexVolume", "AllowedFlexVolume", 1), `&`, ``, 1) + "," - } - repeatedStringForAllowedFlexVolumes += "}" - repeatedStringForAllowedCSIDrivers := "[]AllowedCSIDriver{" - for _, f := range this.AllowedCSIDrivers { - repeatedStringForAllowedCSIDrivers += strings.Replace(strings.Replace(f.String(), "AllowedCSIDriver", "AllowedCSIDriver", 1), `&`, ``, 1) + "," - } - repeatedStringForAllowedCSIDrivers += "}" - s := strings.Join([]string{`&PodSecurityPolicySpec{`, - `Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`, - `DefaultAddCapabilities:` + fmt.Sprintf("%v", this.DefaultAddCapabilities) + `,`, - `RequiredDropCapabilities:` + fmt.Sprintf("%v", this.RequiredDropCapabilities) + `,`, - `AllowedCapabilities:` + fmt.Sprintf("%v", this.AllowedCapabilities) + `,`, - `Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`, - `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, - `HostPorts:` + repeatedStringForHostPorts + `,`, - `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, - `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, - `SELinux:` + strings.Replace(strings.Replace(this.SELinux.String(), "SELinuxStrategyOptions", "SELinuxStrategyOptions", 1), `&`, ``, 1) + `,`, - `RunAsUser:` + strings.Replace(strings.Replace(this.RunAsUser.String(), "RunAsUserStrategyOptions", "RunAsUserStrategyOptions", 1), `&`, ``, 1) + `,`, - `SupplementalGroups:` + strings.Replace(strings.Replace(this.SupplementalGroups.String(), "SupplementalGroupsStrategyOptions", "SupplementalGroupsStrategyOptions", 1), `&`, ``, 1) + `,`, - `FSGroup:` + strings.Replace(strings.Replace(this.FSGroup.String(), "FSGroupStrategyOptions", "FSGroupStrategyOptions", 1), `&`, ``, 1) + `,`, - `ReadOnlyRootFilesystem:` + fmt.Sprintf("%v", this.ReadOnlyRootFilesystem) + `,`, - `DefaultAllowPrivilegeEscalation:` + valueToStringGenerated(this.DefaultAllowPrivilegeEscalation) + `,`, - `AllowPrivilegeEscalation:` + valueToStringGenerated(this.AllowPrivilegeEscalation) + `,`, - `AllowedHostPaths:` + repeatedStringForAllowedHostPaths + `,`, - `AllowedFlexVolumes:` + repeatedStringForAllowedFlexVolumes + `,`, - `AllowedUnsafeSysctls:` + fmt.Sprintf("%v", this.AllowedUnsafeSysctls) + `,`, - `ForbiddenSysctls:` + fmt.Sprintf("%v", this.ForbiddenSysctls) + `,`, - `AllowedProcMountTypes:` + fmt.Sprintf("%v", this.AllowedProcMountTypes) + `,`, - `RunAsGroup:` + strings.Replace(this.RunAsGroup.String(), "RunAsGroupStrategyOptions", "RunAsGroupStrategyOptions", 1) + `,`, - `AllowedCSIDrivers:` + repeatedStringForAllowedCSIDrivers + `,`, - `RuntimeClass:` + strings.Replace(this.RuntimeClass.String(), "RuntimeClassStrategyOptions", "RuntimeClassStrategyOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSet{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicaSetSpec", "ReplicaSetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicaSetStatus", "ReplicaSetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSetCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ReplicaSet{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ReplicaSet", "ReplicaSet", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ReplicaSetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicaSetSpec{`, - `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, - `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, - `}`, - }, "") - return s -} -func (this *ReplicaSetStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]ReplicaSetCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ReplicaSetCondition", "ReplicaSetCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&ReplicaSetStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, - `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `}`, - }, "") - return s -} -func (this *ReplicationControllerDummy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ReplicationControllerDummy{`, - `}`, - }, "") - return s -} -func (this *RollbackConfig) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollbackConfig{`, - `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDaemonSet) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDaemonSet{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RollingUpdateDeployment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RollingUpdateDeployment{`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RunAsGroupStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&RunAsGroupStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func (this *RunAsUserStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&RunAsUserStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClassStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuntimeClassStrategyOptions{`, - `AllowedRuntimeClassNames:` + fmt.Sprintf("%v", this.AllowedRuntimeClassNames) + `,`, - `DefaultRuntimeClassName:` + valueToStringGenerated(this.DefaultRuntimeClassName) + `,`, - `}`, - }, "") - return s -} -func (this *SELinuxStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SELinuxStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "v11.SELinuxOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Scale) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Scale{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ScaleSpec{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `}`, - }, "") - return s -} -func (this *ScaleStatus) String() string { - if this == nil { - return "nil" - } - keysForSelector := make([]string, 0, len(this.Selector)) - for k := range this.Selector { - keysForSelector = append(keysForSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) - mapStringForSelector := "map[string]string{" - for _, k := range keysForSelector { - mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) - } - mapStringForSelector += "}" - s := strings.Join([]string{`&ScaleStatus{`, - `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, - `Selector:` + mapStringForSelector + `,`, - `TargetSelector:` + fmt.Sprintf("%v", this.TargetSelector) + `,`, - `}`, - }, "") - return s -} -func (this *SupplementalGroupsStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&SupplementalGroupsStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AllowedCSIDriver) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllowedCSIDriver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllowedCSIDriver: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AllowedFlexVolume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllowedFlexVolume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllowedFlexVolume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AllowedHostPath) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllowedHostPath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllowedHostPath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PathPrefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PathPrefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DaemonSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, DaemonSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateGeneration", wireType) - } - m.TemplateGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TemplateGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType) - } - m.CurrentNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType) - } - m.NumberMisscheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberMisscheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType) - } - m.DesiredNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType) - } - m.NumberReady = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberReady |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType) - } - m.UpdatedNumberScheduled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedNumberScheduled |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType) - } - m.NumberAvailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberAvailable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType) - } - m.NumberUnavailable = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberUnavailable |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DaemonSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DaemonSetUpdateStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DaemonSetUpdateStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DaemonSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DaemonSetUpdateStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDaemonSet{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Deployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Deployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Deployment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentRollback) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentRollback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentRollback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAnnotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UpdatedAnnotations == nil { - m.UpdatedAnnotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.UpdatedAnnotations[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevisionHistoryLimit = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollbackTo == nil { - m.RollbackTo = &RollbackConfig{} - } - if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ProgressDeadlineSeconds = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) - } - m.UpdatedReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) - } - m.UnavailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UnavailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, DeploymentCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CollisionCount = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RollingUpdate == nil { - m.RollingUpdate = &RollingUpdateDeployment{} - } - if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FSGroupStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FSGroupStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FSGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = FSGroupStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HTTPIngressPath) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HTTPIngressPath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HTTPIngressRuleValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HTTPIngressRuleValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPIngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Paths = append(m.Paths, HTTPIngressPath{}) - if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostPortRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostPortRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostPortRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - m.Min = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Min |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - m.Max = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Max |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IDRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IDRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IDRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - m.Min = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Min |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - m.Max = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Max |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IPBlock) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IPBlock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IPBlock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CIDR", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CIDR = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Except", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Except = append(m.Except, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Ingress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Ingress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressBackend) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressBackend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServicePort", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ServicePort.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Ingress{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressRuleValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.IngressRuleValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressRuleValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressRuleValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HTTP == nil { - m.HTTP = &HTTPIngressRuleValue{} - } - if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Backend == nil { - m.Backend = &IngressBackend{} - } - if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TLS = append(m.TLS, IngressTLS{}) - if err := m.TLS[len(m.TLS)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, IngressRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressTLS) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressTLS: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyEgressRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyEgressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyEgressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, NetworkPolicyPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.To = append(m.To, NetworkPolicyPeer{}) - if err := m.To[len(m.To)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyIngressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyIngressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, NetworkPolicyPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = append(m.From, NetworkPolicyPeer{}) - if err := m.From[len(m.From)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, NetworkPolicy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyPeer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyPeer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodSelector == nil { - m.PodSelector = &v1.LabelSelector{} - } - if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} - } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IPBlock == nil { - m.IPBlock = &IPBlock{} - } - if err := m.IPBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyPort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyPort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) - m.Protocol = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Port == nil { - m.Port = &intstr.IntOrString{} - } - if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicySpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, NetworkPolicyIngressRule{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Egress = append(m.Egress, NetworkPolicyEgressRule{}) - if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PolicyTypes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PolicyTypes = append(m.PolicyTypes, PolicyType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PodSecurityPolicy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Privileged = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultAddCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultAddCapabilities = append(m.DefaultAddCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDropCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequiredDropCapabilities = append(m.RequiredDropCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedCapabilities = append(m.AllowedCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, FSType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostNetwork = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPorts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostPorts = append(m.HostPorts, HostPortRange{}) - if err := m.HostPorts[len(m.HostPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPID", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostPID = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostIPC = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinux", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SELinux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SupplementalGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.FSGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnlyRootFilesystem = bool(v != 0) - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultAllowPrivilegeEscalation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.DefaultAllowPrivilegeEscalation = &b - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrivilegeEscalation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AllowPrivilegeEscalation = &b - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedHostPaths", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedHostPaths = append(m.AllowedHostPaths, AllowedHostPath{}) - if err := m.AllowedHostPaths[len(m.AllowedHostPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedFlexVolumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedFlexVolumes = append(m.AllowedFlexVolumes, AllowedFlexVolume{}) - if err := m.AllowedFlexVolumes[len(m.AllowedFlexVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedUnsafeSysctls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedUnsafeSysctls = append(m.AllowedUnsafeSysctls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForbiddenSysctls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForbiddenSysctls = append(m.ForbiddenSysctls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedProcMountTypes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedProcMountTypes = append(m.AllowedProcMountTypes, k8s_io_api_core_v1.ProcMountType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RunAsGroup == nil { - m.RunAsGroup = &RunAsGroupStrategyOptions{} - } - if err := m.RunAsGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedCSIDrivers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedCSIDrivers = append(m.AllowedCSIDrivers, AllowedCSIDriver{}) - if err := m.AllowedCSIDrivers[len(m.AllowedCSIDrivers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeClass", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RuntimeClass == nil { - m.RuntimeClass = &RuntimeClassStrategyOptions{} - } - if err := m.RuntimeClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = ReplicaSetConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ReplicaSet{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Replicas = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) - } - m.MinReadySeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinReadySeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicaSetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicaSetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType) - } - m.FullyLabeledReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FullyLabeledReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) - } - m.ReadyReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReadyReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) - } - m.AvailableReplicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.AvailableReplicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, ReplicaSetCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationControllerDummy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationControllerDummy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationControllerDummy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollbackConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollbackConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollbackConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) - } - m.Revision = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Revision |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDaemonSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDaemonSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxSurge == nil { - m.MaxSurge = &intstr.IntOrString{} - } - if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RunAsGroupStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RunAsGroupStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RunAsGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = RunAsGroupStrategy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RunAsUserStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RunAsUserStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RunAsUserStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = RunAsUserStrategy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClassStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClassStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClassStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedRuntimeClassNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedRuntimeClassNames = append(m.AllowedRuntimeClassNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultRuntimeClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.DefaultRuntimeClassName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SELinuxStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SELinuxStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SELinuxStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = SELinuxStrategy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SELinuxOptions == nil { - m.SELinuxOptions = &v11.SELinuxOptions{} - } - if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Scale) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Scale: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScaleStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) - } - m.Replicas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Replicas |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Selector[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SupplementalGroupsStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = SupplementalGroupsStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/extensions/v1beta1/generated.proto b/pseudo/k8s/api/extensions/v1beta1/generated.proto deleted file mode 100644 index 1bb62bb55..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/generated.proto +++ /dev/null @@ -1,1193 +0,0 @@ -/* -Copyright 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.extensions.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. -message AllowedCSIDriver { - // Name is the registered name of the CSI driver - optional string name = 1; -} - -// AllowedFlexVolume represents a single Flexvolume that is allowed to be used. -// Deprecated: use AllowedFlexVolume from policy API Group instead. -message AllowedFlexVolume { - // driver is the name of the Flexvolume driver. - optional string driver = 1; -} - -// AllowedHostPath defines the host volume conditions that will be enabled by a policy -// for pods to use. It requires the path prefix to be defined. -// Deprecated: use AllowedHostPath from policy API Group instead. -message AllowedHostPath { - // pathPrefix is the path prefix that the host volume must match. - // It does not support `*`. - // Trailing slashes are trimmed when validating the path prefix with a host path. - // - // Examples: - // `/foo` would allow `/foo`, `/foo/` and `/foo/bar` - // `/foo` would not allow `/food` or `/etc/foo` - optional string pathPrefix = 1; - - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - // +optional - optional bool readOnly = 2; -} - -// DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for -// more information. -// DaemonSet represents the configuration of a daemon set. -message DaemonSet { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional DaemonSetSpec spec = 2; - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional DaemonSetStatus status = 3; -} - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -message DaemonSetCondition { - // Type of DaemonSet condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// DaemonSetList is a collection of daemon sets. -message DaemonSetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // A list of daemon sets. - repeated DaemonSet items = 2; -} - -// DaemonSetSpec is the specification of a daemon set. -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. - // 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. - // 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 - optional k8s.io.api.core.v1.PodTemplateSpec template = 2; - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - optional DaemonSetUpdateStrategy updateStrategy = 3; - - // 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). - // +optional - optional int32 minReadySeconds = 4; - - // DEPRECATED. - // A sequence number representing a specific generation of the template. - // Populated by the system. It can be set only during the creation. - // +optional - optional int64 templateGeneration = 5; - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - optional int32 revisionHistoryLimit = 6; -} - -// DaemonSetStatus represents the current status of a daemon set. -message DaemonSetStatus { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 currentNumberScheduled = 1; - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 numberMisscheduled = 2; - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - optional int32 desiredNumberScheduled = 3; - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - optional int32 numberReady = 4; - - // The most recent generation observed by the daemon set controller. - // +optional - optional int64 observedGeneration = 5; - - // The total number of nodes that are running updated daemon pod - // +optional - optional int32 updatedNumberScheduled = 6; - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - optional int32 numberAvailable = 7; - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - optional int32 numberUnavailable = 8; - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - optional int32 collisionCount = 9; - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated DaemonSetCondition conditions = 10; -} - -message DaemonSetUpdateStrategy { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". - // Default is OnDelete. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if type = "RollingUpdate". - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - optional RollingUpdateDaemonSet rollingUpdate = 2; -} - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -message Deployment { - // Standard object metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the Deployment. - // +optional - optional DeploymentSpec spec = 2; - - // Most recently observed status of the Deployment. - // +optional - optional DeploymentStatus status = 3; -} - -// DeploymentCondition describes the state of a deployment at a certain point. -message DeploymentCondition { - // Type of deployment condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time this condition was updated. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; - - // Last time the condition transitioned from one status to another. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; - - // The reason for the condition's last transition. - optional string reason = 4; - - // A human readable message indicating details about the transition. - optional string message = 5; -} - -// DeploymentList is a list of Deployments. -message DeploymentList { - // Standard list metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Deployments. - repeated Deployment items = 2; -} - -// DEPRECATED. -// DeploymentRollback stores the information required to rollback a deployment. -message DeploymentRollback { - // Required: This must match the Name of a deployment. - optional string name = 1; - - // The annotations to be updated to a deployment - // +optional - map updatedAnnotations = 2; - - // The config of this deployment rollback. - optional RollbackConfig rollbackTo = 3; -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -message DeploymentSpec { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - optional int32 replicas = 1; - - // Label selector for pods. Existing ReplicaSets whose pods are - // selected by this will be the ones affected by this deployment. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // Template describes the pods that will be created. - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - optional DeploymentStrategy strategy = 4; - - // 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) - // +optional - optional int32 minReadySeconds = 5; - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // This is set to the max value of int32 (i.e. 2147483647) by default, which - // means "retaining all old RelicaSets". - // +optional - optional int32 revisionHistoryLimit = 6; - - // Indicates that the deployment is paused and will not be processed by the - // deployment controller. - // +optional - optional bool paused = 7; - - // DEPRECATED. - // The config this deployment is rolling back to. Will be cleared after rollback is done. - // +optional - optional RollbackConfig rollbackTo = 8; - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. This is set to - // the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - // +optional - optional int32 progressDeadlineSeconds = 9; -} - -// DeploymentStatus is the most recently observed status of the Deployment. -message DeploymentStatus { - // The generation observed by the deployment controller. - // +optional - optional int64 observedGeneration = 1; - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - optional int32 replicas = 2; - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - optional int32 updatedReplicas = 3; - - // Total number of ready pods targeted by this deployment. - // +optional - optional int32 readyReplicas = 7; - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - optional int32 availableReplicas = 4; - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - optional int32 unavailableReplicas = 5; - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - repeated DeploymentCondition conditions = 6; - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - optional int32 collisionCount = 8; -} - -// DeploymentStrategy describes how to replace existing pods with new ones. -message DeploymentStrategy { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - optional string type = 1; - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - // --- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - optional RollingUpdateDeployment rollingUpdate = 2; -} - -// FSGroupStrategyOptions defines the strategy type and options used to create the strategy. -// Deprecated: use FSGroupStrategyOptions from policy API Group instead. -message FSGroupStrategyOptions { - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - // +optional - optional string rule = 1; - - // ranges are the allowed ranges of fs groups. If you would like to force a single - // fs group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - -// HTTPIngressPath associates a path regex with a backend. Incoming urls matching -// the path are forwarded to the backend. -message HTTPIngressPath { - // Path is an extended POSIX regex as defined by IEEE Std 1003.1, - // (i.e this follows the egrep/unix syntax, not the perl syntax) - // matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" - // part of a URL as defined by RFC 3986. Paths must begin with - // a '/'. If unspecified, the path defaults to a catch all sending - // traffic to the backend. - // +optional - optional string path = 1; - - // Backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - optional IngressBackend backend = 2; -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -message HTTPIngressRuleValue { - // A collection of paths that map requests to backends. - repeated HTTPIngressPath paths = 1; -} - -// HostPortRange defines a range of host ports that will be enabled by a policy -// for pods to use. It requires both the start and end to be defined. -// Deprecated: use HostPortRange from policy API Group instead. -message HostPortRange { - // min is the start of the range, inclusive. - optional int32 min = 1; - - // max is the end of the range, inclusive. - optional int32 max = 2; -} - -// IDRange provides a min/max of an allowed range of IDs. -// Deprecated: use IDRange from policy API Group instead. -message IDRange { - // min is the start of the range, inclusive. - optional int64 min = 1; - - // max is the end of the range, inclusive. - optional int64 max = 2; -} - -// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. -// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should -// not be included within this rule. -message IPBlock { - // CIDR is a string representing the IP Block - // Valid examples are "192.168.1.1/24" - optional string cidr = 1; - - // Except is a slice of CIDRs that should not be included within an IP Block - // Valid examples are "192.168.1.1/24" - // Except values will be rejected if they are outside the CIDR range - // +optional - repeated string except = 2; -} - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -// DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. -message Ingress { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional IngressSpec spec = 2; - - // Status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional IngressStatus status = 3; -} - -// IngressBackend describes all endpoints for a given service and port. -message IngressBackend { - // Specifies the name of the referenced service. - optional string serviceName = 1; - - // Specifies the port of the referenced service. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2; -} - -// IngressList is a collection of Ingress. -message IngressList { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Ingress. - repeated Ingress items = 2; -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -message IngressRule { - // Host is the fully qualified domain name of a network host, as defined - // by RFC 3986. Note the following deviations from the "host" part of the - // URI as defined in the RFC: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the - // IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the IngressRuleValue. - // If the host is unspecified, the Ingress routes all traffic based on the - // specified IngressRuleValue. - // +optional - optional string host = 1; - - // IngressRuleValue represents a rule to route requests for this IngressRule. - // If unspecified, the rule defaults to a http catch-all. Whether that sends - // just traffic matching the host to the default backend or all traffic to the - // default backend, is left to the controller fulfilling the Ingress. Http is - // currently the only supported IngressRuleValue. - // +optional - optional IngressRuleValue ingressRuleValue = 2; -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -message IngressRuleValue { - // +optional - optional HTTPIngressRuleValue http = 1; -} - -// IngressSpec describes the Ingress the user wishes to exist. -message IngressSpec { - // A default backend capable of servicing requests that don't match any - // rule. At least one of 'backend' or 'rules' must be specified. This field - // is optional to allow the loadbalancer controller or defaulting logic to - // specify a global default. - // +optional - optional IngressBackend backend = 1; - - // TLS configuration. Currently the Ingress only supports a single TLS - // port, 443. If multiple members of this list specify different hosts, they - // will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +optional - repeated IngressTLS tls = 2; - - // A list of host rules used to configure the Ingress. If unspecified, or - // no rule matches, all traffic is sent to the default backend. - // +optional - repeated IngressRule rules = 3; -} - -// IngressStatus describe the current state of the Ingress. -message IngressStatus { - // LoadBalancer contains the current status of the load-balancer. - // +optional - optional k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; -} - -// IngressTLS describes the transport layer security associated with an Ingress. -message IngressTLS { - // Hosts are a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +optional - repeated string hosts = 1; - - // SecretName is the name of the secret used to terminate SSL traffic on 443. - // Field is left optional to allow SSL routing based on SNI hostname alone. - // If the SNI host in a listener conflicts with the "Host" header field used - // by an IngressRule, the SNI host is used for termination and value of the - // Host header is used for routing. - // +optional - optional string secretName = 2; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. -// NetworkPolicy describes what network traffic is allowed for a set of Pods -message NetworkPolicy { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior for this NetworkPolicy. - // +optional - optional NetworkPolicySpec spec = 2; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. -// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. -// This type is beta-level in 1.8 -message NetworkPolicyEgressRule { - // List of destination ports for outgoing traffic. - // Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - repeated NetworkPolicyPort ports = 1; - - // List of destinations for outgoing traffic of pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all destinations (traffic not restricted by - // destination). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the to list. - // +optional - repeated NetworkPolicyPeer to = 2; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. -// This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. -message NetworkPolicyIngressRule { - // List of ports which should be made accessible on the pods selected for this rule. - // Each item in this list is combined using a logical OR. - // If this field is empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows traffic - // only if the traffic matches at least one port in the list. - // +optional - repeated NetworkPolicyPort ports = 1; - - // List of sources which should be able to access the pods selected for this rule. - // Items in this list are combined using a logical OR operation. - // If this field is empty or missing, this rule matches all sources (traffic not restricted by source). - // If this field is present and contains at least one item, this rule allows traffic only if the - // traffic matches at least one item in the from list. - // +optional - repeated NetworkPolicyPeer from = 2; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. -// Network Policy List is a list of NetworkPolicy objects. -message NetworkPolicyList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated NetworkPolicy items = 2; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer. -message NetworkPolicyPeer { - // This is a label selector which selects Pods. This field follows standard label - // selector semantics; if present but empty, it selects all pods. - // - // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; - - // Selects Namespaces using cluster-scoped labels. This field follows standard label - // selector semantics; if present but empty, it selects all namespaces. - // - // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2; - - // IPBlock defines policy on a particular IPBlock. If this field is set then - // neither of the other fields can be. - // +optional - optional IPBlock ipBlock = 3; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort. -message NetworkPolicyPort { - // Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. - // If not specified, this field defaults to TCP. - // +optional - optional string protocol = 1; - - // If specified, the port on the given protocol. This can - // either be a numerical or named port on a pod. If this field is not provided, - // this matches all port names and numbers. - // If present, only traffic on the specified protocol AND port - // will be matched. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; -} - -// DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec. -message NetworkPolicySpec { - // Selects the pods to which this NetworkPolicy object applies. The array of ingress rules - // is applied to any pods selected by this field. Multiple network policies can select the - // same set of pods. In this case, the ingress rules for each are combined additively. - // This field is NOT optional and follows standard label selector semantics. - // An empty podSelector matches all pods in this namespace. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; - - // List of ingress rules to be applied to the selected pods. - // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod - // OR if the traffic source is the pod's local node, - // OR if the traffic matches at least one ingress rule across all of the NetworkPolicy - // objects whose podSelector matches the pod. - // If this field is empty then this NetworkPolicy does not allow any traffic - // (and serves solely to ensure that the pods it selects are isolated by default). - // +optional - repeated NetworkPolicyIngressRule ingress = 2; - - // List of egress rules to be applied to the selected pods. Outgoing traffic is - // allowed if there are no NetworkPolicies selecting the pod (and cluster policy - // otherwise allows the traffic), OR if the traffic matches at least one egress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves - // solely to ensure that the pods it selects are isolated by default). - // This field is beta-level in 1.8 - // +optional - repeated NetworkPolicyEgressRule egress = 3; - - // List of rule types that the NetworkPolicy relates to. - // Valid options are "Ingress", "Egress", or "Ingress,Egress". - // If this field is not specified, it will default based on the existence of Ingress or Egress rules; - // policies that contain an Egress section are assumed to affect Egress, and all policies - // (whether or not they contain an Ingress section) are assumed to affect Ingress. - // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. - // Likewise, if you want to write a policy that specifies that no egress is allowed, - // you must specify a policyTypes value that include "Egress" (since such a policy would not include - // an Egress section and would otherwise default to just [ "Ingress" ]). - // This field is beta-level in 1.8 - // +optional - repeated string policyTypes = 4; -} - -// PodSecurityPolicy governs the ability to make requests that affect the Security Context -// that will be applied to a pod and container. -// Deprecated: use PodSecurityPolicy from policy API Group instead. -message PodSecurityPolicy { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec defines the policy enforced. - // +optional - optional PodSecurityPolicySpec spec = 2; -} - -// PodSecurityPolicyList is a list of PodSecurityPolicy objects. -// Deprecated: use PodSecurityPolicyList from policy API Group instead. -message PodSecurityPolicyList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is a list of schema objects. - repeated PodSecurityPolicy items = 2; -} - -// PodSecurityPolicySpec defines the policy enforced. -// Deprecated: use PodSecurityPolicySpec from policy API Group instead. -message PodSecurityPolicySpec { - // privileged determines if a pod can request to be run as privileged. - // +optional - optional bool privileged = 1; - - // defaultAddCapabilities is the default set of capabilities that will be added to the container - // unless the pod spec specifically drops the capability. You may not list a capability in both - // defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly - // allowed, and need not be included in the allowedCapabilities list. - // +optional - repeated string defaultAddCapabilities = 2; - - // requiredDropCapabilities are the capabilities that will be dropped from the container. These - // are required to be dropped and cannot be added. - // +optional - repeated string requiredDropCapabilities = 3; - - // allowedCapabilities is a list of capabilities that can be requested to add to the container. - // Capabilities in this field may be added at the pod author's discretion. - // You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - // +optional - repeated string allowedCapabilities = 4; - - // volumes is a white list of allowed volume plugins. Empty indicates that - // no volumes may be used. To allow all volumes you may use '*'. - // +optional - repeated string volumes = 5; - - // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - // +optional - optional bool hostNetwork = 6; - - // hostPorts determines which host port ranges are allowed to be exposed. - // +optional - repeated HostPortRange hostPorts = 7; - - // hostPID determines if the policy allows the use of HostPID in the pod spec. - // +optional - optional bool hostPID = 8; - - // hostIPC determines if the policy allows the use of HostIPC in the pod spec. - // +optional - optional bool hostIPC = 9; - - // seLinux is the strategy that will dictate the allowable labels that may be set. - optional SELinuxStrategyOptions seLinux = 10; - - // runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - optional RunAsUserStrategyOptions runAsUser = 11; - - // RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. - // If this field is omitted, the pod's RunAsGroup can take any value. This field requires the - // RunAsGroup feature gate to be enabled. - // +optional - optional RunAsGroupStrategyOptions runAsGroup = 22; - - // supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - optional SupplementalGroupsStrategyOptions supplementalGroups = 12; - - // fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - optional FSGroupStrategyOptions fsGroup = 13; - - // readOnlyRootFilesystem when set to true will force containers to run with a read only root file - // system. If the container specifically requests to run with a non-read only root file system - // the PSP should deny the pod. - // If set to false the container may run with a read only root file system if it wishes but it - // will not be forced to. - // +optional - optional bool readOnlyRootFilesystem = 14; - - // defaultAllowPrivilegeEscalation controls the default setting for whether a - // process can gain more privileges than its parent process. - // +optional - optional bool defaultAllowPrivilegeEscalation = 15; - - // allowPrivilegeEscalation determines if a pod can request to allow - // privilege escalation. If unspecified, defaults to true. - // +optional - optional bool allowPrivilegeEscalation = 16; - - // allowedHostPaths is a white list of allowed host paths. Empty indicates - // that all host paths may be used. - // +optional - repeated AllowedHostPath allowedHostPaths = 17; - - // allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all - // Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes - // is allowed in the "volumes" field. - // +optional - repeated AllowedFlexVolume allowedFlexVolumes = 18; - - // AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. - // An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - // +optional - repeated AllowedCSIDriver allowedCSIDrivers = 23; - - // allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. - // Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - // - // Examples: - // e.g. "foo/*" allows "foo/bar", "foo/baz", etc. - // e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - // +optional - repeated string allowedUnsafeSysctls = 19; - - // forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - // - // Examples: - // e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. - // e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - // +optional - repeated string forbiddenSysctls = 20; - - // AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. - // Empty or nil indicates that only the DefaultProcMountType may be used. - // This requires the ProcMountType feature flag to be enabled. - // +optional - repeated string allowedProcMountTypes = 21; - - // runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. - // If this field is omitted, the pod's runtimeClassName field is unrestricted. - // Enforcement of this field depends on the RuntimeClass feature gate being enabled. - // +optional - optional RuntimeClassStrategyOptions runtimeClass = 24; -} - -// DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for -// more information. -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -message ReplicaSet { - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicaSetSpec spec = 2; - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional ReplicaSetStatus status = 3; -} - -// ReplicaSetCondition describes the state of a replica set at a certain point. -message ReplicaSetCondition { - // Type of replica set condition. - optional string type = 1; - - // Status of the condition, one of True, False, Unknown. - optional string status = 2; - - // The last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; - - // The reason for the condition's last transition. - // +optional - optional string reason = 4; - - // A human readable message indicating details about the transition. - // +optional - optional string message = 5; -} - -// ReplicaSetList is a collection of ReplicaSets. -message ReplicaSetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - repeated ReplicaSet items = 2; -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -message ReplicaSetSpec { - // 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 - // +optional - optional int32 replicas = 1; - - // 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) - // +optional - 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. - // 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 - // insufficient replicas are detected. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - // +optional - optional k8s.io.api.core.v1.PodTemplateSpec template = 3; -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -message ReplicaSetStatus { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - optional int32 replicas = 1; - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - optional int32 fullyLabeledReplicas = 2; - - // The number of ready replicas for this replica set. - // +optional - optional int32 readyReplicas = 4; - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - optional int32 availableReplicas = 5; - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - optional int64 observedGeneration = 3; - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - repeated ReplicaSetCondition conditions = 6; -} - -// Dummy definition -message ReplicationControllerDummy { -} - -// DEPRECATED. -message RollbackConfig { - // The revision to rollback to. If set to 0, rollback to the last revision. - // +optional - optional int64 revision = 1; -} - -// Spec to control the desired behavior of daemon set rolling update. -message RollingUpdateDaemonSet { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0. - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given - // time. The update starts by stopping at most 30% of those DaemonSet pods - // and then brings up new DaemonSet pods in their place. Once the new pods - // are available, it then proceeds onto other DaemonSet pods, thus ensuring - // that at least 70% of original number of DaemonSet pods are available at - // all times during the update. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; -} - -// Spec to control the desired behavior of rolling update. -message RollingUpdateDeployment { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // By default, a fixed value of 1 is used. - // Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old RC - // can be scaled down further, followed by scaling up the new RC, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // By default, a value of 1 is used. - // Example: when this is set to 30%, the new RC can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new RC can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; -} - -// RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. -// Deprecated: use RunAsGroupStrategyOptions from policy API Group instead. -message RunAsGroupStrategyOptions { - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - optional string rule = 1; - - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - -// RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. -// Deprecated: use RunAsUserStrategyOptions from policy API Group instead. -message RunAsUserStrategyOptions { - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - optional string rule = 1; - - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - -// RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses -// for a pod. -message RuntimeClassStrategyOptions { - // allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. - // A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the - // list. An empty list requires the RuntimeClassName field to be unset. - repeated string allowedRuntimeClassNames = 1; - - // defaultRuntimeClassName is the default RuntimeClassName to set on the pod. - // The default MUST be allowed by the allowedRuntimeClassNames list. - // A value of nil does not mutate the Pod. - // +optional - optional string defaultRuntimeClassName = 2; -} - -// SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. -// Deprecated: use SELinuxStrategyOptions from policy API Group instead. -message SELinuxStrategyOptions { - // rule is the strategy that will dictate the allowable labels that may be set. - optional string rule = 1; - - // seLinuxOptions required to run as; required for MustRunAs - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - optional k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; -} - -// represents a scaling request for a resource. -message Scale { - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - optional ScaleSpec spec = 2; - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - optional ScaleStatus status = 3; -} - -// describes the attributes of a scale subresource -message ScaleSpec { - // desired number of instances for the scaled object. - // +optional - optional int32 replicas = 1; -} - -// represents the current status of a scale subresource. -message ScaleStatus { - // actual number of observed instances of the scaled object. - optional int32 replicas = 1; - - // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - map selector = 2; - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - optional string targetSelector = 3; -} - -// SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. -// Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead. -message SupplementalGroupsStrategyOptions { - // rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - // +optional - optional string rule = 1; - - // ranges are the allowed ranges of supplemental groups. If you would like to force a single - // supplemental group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - diff --git a/pseudo/k8s/api/extensions/v1beta1/register.go b/pseudo/k8s/api/extensions/v1beta1/register.go deleted file mode 100644 index 5457d532d..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/register.go +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright 2015 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "extensions" - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Deployment{}, - &DeploymentList{}, - &DeploymentRollback{}, - &ReplicationControllerDummy{}, - &Scale{}, - &DaemonSetList{}, - &DaemonSet{}, - &Ingress{}, - &IngressList{}, - &ReplicaSet{}, - &ReplicaSetList{}, - &PodSecurityPolicy{}, - &PodSecurityPolicyList{}, - &NetworkPolicy{}, - &NetworkPolicyList{}, - ) - // Add the watch version that applies - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/extensions/v1beta1/types.go b/pseudo/k8s/api/extensions/v1beta1/types.go deleted file mode 100644 index a02f17ad1..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/types.go +++ /dev/null @@ -1,1397 +0,0 @@ -/* -Copyright 2015 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 ( - appsv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// describes the attributes of a scale subresource -type ScaleSpec struct { - // desired number of instances for the scaled object. - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` -} - -// represents the current status of a scale subresource. -type ScaleStatus struct { - // actual number of observed instances of the scaled object. - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors - // +optional - Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` - - // label selector for pods that should match the replicas count. This is a serializated - // version of both map-based and more expressive set-based selectors. This is done to - // avoid introspection in the clients. The string will be in the same format as the - // query-param syntax. If the target type only supports map-based selectors, both this - // field and map-based selector field are populated. - // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - // +optional - TargetSelector string `json:"targetSelector,omitempty" protobuf:"bytes,3,opt,name=targetSelector"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// represents a scaling request for a resource. -type Scale struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - // +optional - Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. - // +optional - Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Dummy definition -type ReplicationControllerDummy struct { - metav1.TypeMeta `json:",inline"` -} - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=Scale,result=Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for -// more information. -// Deployment enables declarative updates for Pods and ReplicaSets. -type Deployment struct { - metav1.TypeMeta `json:",inline"` - // Standard object metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the Deployment. - // +optional - Spec DeploymentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the Deployment. - // +optional - Status DeploymentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// DeploymentSpec is the specification of the desired behavior of the Deployment. -type DeploymentSpec struct { - // Number of desired pods. This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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"` - - // Template describes the pods that will be created. - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"` - - // The deployment strategy to use to replace existing pods with new ones. - // +optional - // +patchStrategy=retainKeys - Strategy DeploymentStrategy `json:"strategy,omitempty" patchStrategy:"retainKeys" protobuf:"bytes,4,opt,name=strategy"` - - // 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) - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,5,opt,name=minReadySeconds"` - - // The number of old ReplicaSets to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // This is set to the max value of int32 (i.e. 2147483647) by default, which - // means "retaining all old RelicaSets". - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` - - // Indicates that the deployment is paused and will not be processed by the - // deployment controller. - // +optional - Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` - - // DEPRECATED. - // The config this deployment is rolling back to. Will be cleared after rollback is done. - // +optional - RollbackTo *RollbackConfig `json:"rollbackTo,omitempty" protobuf:"bytes,8,opt,name=rollbackTo"` - - // The maximum time in seconds for a deployment to make progress before it - // is considered to be failed. The deployment controller will continue to - // process failed deployments and a condition with a ProgressDeadlineExceeded - // reason will be surfaced in the deployment status. Note that progress will - // not be estimated during the time a deployment is paused. This is set to - // the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - // +optional - ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty" protobuf:"varint,9,opt,name=progressDeadlineSeconds"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED. -// DeploymentRollback stores the information required to rollback a deployment. -type DeploymentRollback struct { - metav1.TypeMeta `json:",inline"` - // Required: This must match the Name of a deployment. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - // The annotations to be updated to a deployment - // +optional - UpdatedAnnotations map[string]string `json:"updatedAnnotations,omitempty" protobuf:"bytes,2,rep,name=updatedAnnotations"` - // The config of this deployment rollback. - RollbackTo RollbackConfig `json:"rollbackTo" protobuf:"bytes,3,opt,name=rollbackTo"` -} - -// DEPRECATED. -type RollbackConfig struct { - // The revision to rollback to. If set to 0, rollback to the last revision. - // +optional - Revision int64 `json:"revision,omitempty" protobuf:"varint,1,opt,name=revision"` -} - -const ( - // DefaultDeploymentUniqueLabelKey is the default key of the selector that is added - // to existing RCs (and label key that is added to its pods) to prevent the existing RCs - // to select new pods (and old pods being select by new RC). - DefaultDeploymentUniqueLabelKey string = "pod-template-hash" -) - -// DeploymentStrategy describes how to replace existing pods with new ones. -type DeploymentStrategy struct { - // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // +optional - Type DeploymentStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=DeploymentStrategyType"` - - // Rolling update config params. Present only if DeploymentStrategyType = - // RollingUpdate. - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. - // +optional - RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DeploymentStrategyType string - -const ( - // Kill all existing pods before creating new ones. - RecreateDeploymentStrategyType DeploymentStrategyType = "Recreate" - - // Replace the old RCs by new one using rolling update i.e gradually scale down the old RCs and scale up the new one. - RollingUpdateDeploymentStrategyType DeploymentStrategyType = "RollingUpdate" -) - -// Spec to control the desired behavior of rolling update. -type RollingUpdateDeployment struct { - // The maximum number of pods that can be unavailable during the update. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // Absolute number is calculated from percentage by rounding down. - // This can not be 0 if MaxSurge is 0. - // By default, a fixed value of 1 is used. - // Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods - // immediately when the rolling update starts. Once new pods are ready, old RC - // can be scaled down further, followed by scaling up the new RC, ensuring - // that the total number of pods available at all times during the update is at - // least 70% of desired pods. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` - - // The maximum number of pods that can be scheduled above the desired number of - // pods. - // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). - // This can not be 0 if MaxUnavailable is 0. - // Absolute number is calculated from percentage by rounding up. - // By default, a value of 1 is used. - // Example: when this is set to 30%, the new RC can be scaled up immediately when - // the rolling update starts, such that the total number of old and new pods do not exceed - // 130% of desired pods. Once old pods have been killed, - // new RC can be scaled up further, ensuring that total number of pods running - // at any time during the update is at most 130% of desired pods. - // +optional - MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty" protobuf:"bytes,2,opt,name=maxSurge"` -} - -// DeploymentStatus is the most recently observed status of the Deployment. -type DeploymentStatus struct { - // The generation observed by the deployment controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // Total number of non-terminated pods targeted by this deployment (their labels match the selector). - // +optional - Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"` - - // Total number of non-terminated pods targeted by this deployment that have the desired template spec. - // +optional - UpdatedReplicas int32 `json:"updatedReplicas,omitempty" protobuf:"varint,3,opt,name=updatedReplicas"` - - // Total number of ready pods targeted by this deployment. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"` - - // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"` - - // Total number of unavailable pods targeted by this deployment. This is the total number of - // pods that are still required for the deployment to have 100% available capacity. They may - // either be pods that are running but not yet available or pods that still have not been created. - // +optional - UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"` - - // Represents the latest available observations of a deployment's current state. - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DeploymentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` - - // Count of hash collisions for the Deployment. The Deployment controller uses this - // field as a collision avoidance mechanism when it needs to create the name for the - // newest ReplicaSet. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,8,opt,name=collisionCount"` -} - -type DeploymentConditionType string - -// These are valid conditions of a deployment. -const ( - // Available means the deployment is available, ie. at least the minimum available - // replicas required are up and running for at least minReadySeconds. - DeploymentAvailable DeploymentConditionType = "Available" - // Progressing means the deployment is progressing. Progress for a deployment is - // considered when a new replica set is created or adopted, and when new pods scale - // up or old pods scale down. Progress is not estimated for paused deployments or - // when progressDeadlineSeconds is not specified. - DeploymentProgressing DeploymentConditionType = "Progressing" - // ReplicaFailure is added in a deployment when one of its pods fails to be created - // or deleted. - DeploymentReplicaFailure DeploymentConditionType = "ReplicaFailure" -) - -// DeploymentCondition describes the state of a deployment at a certain point. -type DeploymentCondition struct { - // Type of deployment condition. - Type DeploymentConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DeploymentConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time this condition was updated. - LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` - // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DeploymentList is a list of Deployments. -type DeploymentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Deployments. - Items []Deployment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -type DaemonSetUpdateStrategy struct { - // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". - // Default is OnDelete. - // +optional - Type DaemonSetUpdateStrategyType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type"` - - // Rolling update config params. Present only if type = "RollingUpdate". - //--- - // TODO: Update this to follow our convention for oneOf, whatever we decide it - // to be. Same as Deployment `strategy.rollingUpdate`. - // See https://github.com/kubernetes/kubernetes/issues/35345 - // +optional - RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty" protobuf:"bytes,2,opt,name=rollingUpdate"` -} - -type DaemonSetUpdateStrategyType string - -const ( - // Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. - RollingUpdateDaemonSetStrategyType DaemonSetUpdateStrategyType = "RollingUpdate" - - // Replace the old daemons only when it's killed - OnDeleteDaemonSetStrategyType DaemonSetUpdateStrategyType = "OnDelete" -) - -// Spec to control the desired behavior of daemon set rolling update. -type RollingUpdateDaemonSet struct { - // The maximum number of DaemonSet pods that can be unavailable during the - // update. Value can be an absolute number (ex: 5) or a percentage of total - // number of DaemonSet pods at the start of the update (ex: 10%). Absolute - // number is calculated from percentage by rounding up. - // This cannot be 0. - // Default value is 1. - // Example: when this is set to 30%, at most 30% of the total number of nodes - // that should be running the daemon pod (i.e. status.desiredNumberScheduled) - // can have their pods stopped for an update at any given - // time. The update starts by stopping at most 30% of those DaemonSet pods - // and then brings up new DaemonSet pods in their place. Once the new pods - // are available, it then proceeds onto other DaemonSet pods, thus ensuring - // that at least 70% of original number of DaemonSet pods are available at - // all times during the update. - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,1,opt,name=maxUnavailable"` -} - -// DaemonSetSpec is the specification of a daemon set. -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. - // 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"` - - // 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 - Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,2,opt,name=template"` - - // An update strategy to replace existing DaemonSet pods with new pods. - // +optional - UpdateStrategy DaemonSetUpdateStrategy `json:"updateStrategy,omitempty" protobuf:"bytes,3,opt,name=updateStrategy"` - - // 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). - // +optional - MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,4,opt,name=minReadySeconds"` - - // DEPRECATED. - // A sequence number representing a specific generation of the template. - // Populated by the system. It can be set only during the creation. - // +optional - TemplateGeneration int64 `json:"templateGeneration,omitempty" protobuf:"varint,5,opt,name=templateGeneration"` - - // The number of old history to retain to allow rollback. - // This is a pointer to distinguish between explicit zero and not specified. - // Defaults to 10. - // +optional - RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty" protobuf:"varint,6,opt,name=revisionHistoryLimit"` -} - -// DaemonSetStatus represents the current status of a daemon set. -type DaemonSetStatus struct { - // The number of nodes that are running at least 1 - // daemon pod and are supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - CurrentNumberScheduled int32 `json:"currentNumberScheduled" protobuf:"varint,1,opt,name=currentNumberScheduled"` - - // The number of nodes that are running the daemon pod, but are - // not supposed to run the daemon pod. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - NumberMisscheduled int32 `json:"numberMisscheduled" protobuf:"varint,2,opt,name=numberMisscheduled"` - - // The total number of nodes that should be running the daemon - // pod (including nodes correctly running the daemon pod). - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - DesiredNumberScheduled int32 `json:"desiredNumberScheduled" protobuf:"varint,3,opt,name=desiredNumberScheduled"` - - // The number of nodes that should be running the daemon pod and have one - // or more of the daemon pod running and ready. - NumberReady int32 `json:"numberReady" protobuf:"varint,4,opt,name=numberReady"` - - // The most recent generation observed by the daemon set controller. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,5,opt,name=observedGeneration"` - - // The total number of nodes that are running updated daemon pod - // +optional - UpdatedNumberScheduled int32 `json:"updatedNumberScheduled,omitempty" protobuf:"varint,6,opt,name=updatedNumberScheduled"` - - // The number of nodes that should be running the - // daemon pod and have one or more of the daemon pod running and - // available (ready for at least spec.minReadySeconds) - // +optional - NumberAvailable int32 `json:"numberAvailable,omitempty" protobuf:"varint,7,opt,name=numberAvailable"` - - // The number of nodes that should be running the - // daemon pod and have none of the daemon pod running and available - // (ready for at least spec.minReadySeconds) - // +optional - NumberUnavailable int32 `json:"numberUnavailable,omitempty" protobuf:"varint,8,opt,name=numberUnavailable"` - - // Count of hash collisions for the DaemonSet. The DaemonSet controller - // uses this field as a collision avoidance mechanism when it needs to - // create the name for the newest ControllerRevision. - // +optional - CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"` - - // Represents the latest available observations of a DaemonSet's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []DaemonSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` -} - -type DaemonSetConditionType string - -// TODO: Add valid condition types of a DaemonSet. - -// DaemonSetCondition describes the state of a DaemonSet at a certain point. -type DaemonSetCondition struct { - // Type of DaemonSet condition. - Type DaemonSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=DaemonSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for -// more information. -// DaemonSet represents the configuration of a daemon set. -type DaemonSet struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The desired behavior of this daemon set. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec DaemonSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // The current status of this daemon set. This data may be - // out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status DaemonSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -const ( - // DEPRECATED: DefaultDaemonSetUniqueLabelKey is used instead. - // DaemonSetTemplateGenerationKey is the key of the labels that is added - // to daemon set pods to distinguish between old and new pod templates - // during DaemonSet template update. - DaemonSetTemplateGenerationKey string = "pod-template-generation" - - // DefaultDaemonSetUniqueLabelKey is the default label key that is added - // to existing DaemonSet pods to distinguish between old and new - // DaemonSet pods during DaemonSet template updates. - DefaultDaemonSetUniqueLabelKey = appsv1beta1.ControllerRevisionHashLabelKey -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DaemonSetList is a collection of daemon sets. -type DaemonSetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // A list of daemon sets. - Items []DaemonSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -// DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. -type Ingress struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec IngressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status IngressStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// IngressList is a collection of Ingress. -type IngressList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Ingress. - Items []Ingress `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// IngressSpec describes the Ingress the user wishes to exist. -type IngressSpec struct { - // A default backend capable of servicing requests that don't match any - // rule. At least one of 'backend' or 'rules' must be specified. This field - // is optional to allow the loadbalancer controller or defaulting logic to - // specify a global default. - // +optional - Backend *IngressBackend `json:"backend,omitempty" protobuf:"bytes,1,opt,name=backend"` - - // TLS configuration. Currently the Ingress only supports a single TLS - // port, 443. If multiple members of this list specify different hosts, they - // will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +optional - TLS []IngressTLS `json:"tls,omitempty" protobuf:"bytes,2,rep,name=tls"` - - // A list of host rules used to configure the Ingress. If unspecified, or - // no rule matches, all traffic is sent to the default backend. - // +optional - Rules []IngressRule `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` - // TODO: Add the ability to specify load-balancer IP through claims -} - -// IngressTLS describes the transport layer security associated with an Ingress. -type IngressTLS struct { - // Hosts are a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +optional - Hosts []string `json:"hosts,omitempty" protobuf:"bytes,1,rep,name=hosts"` - // SecretName is the name of the secret used to terminate SSL traffic on 443. - // Field is left optional to allow SSL routing based on SNI hostname alone. - // If the SNI host in a listener conflicts with the "Host" header field used - // by an IngressRule, the SNI host is used for termination and value of the - // Host header is used for routing. - // +optional - SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"` - // TODO: Consider specifying different modes of termination, protocols etc. -} - -// IngressStatus describe the current state of the Ingress. -type IngressStatus struct { - // LoadBalancer contains the current status of the load-balancer. - // +optional - LoadBalancer v1.LoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -type IngressRule struct { - // Host is the fully qualified domain name of a network host, as defined - // by RFC 3986. Note the following deviations from the "host" part of the - // URI as defined in the RFC: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the - // IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the IngressRuleValue. - // If the host is unspecified, the Ingress routes all traffic based on the - // specified IngressRuleValue. - // +optional - Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"` - // IngressRuleValue represents a rule to route requests for this IngressRule. - // If unspecified, the rule defaults to a http catch-all. Whether that sends - // just traffic matching the host to the default backend or all traffic to the - // default backend, is left to the controller fulfilling the Ingress. Http is - // currently the only supported IngressRuleValue. - // +optional - IngressRuleValue `json:",inline,omitempty" protobuf:"bytes,2,opt,name=ingressRuleValue"` -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -type IngressRuleValue struct { - //TODO: - // 1. Consider renaming this resource and the associated rules so they - // aren't tied to Ingress. They can be used to route intra-cluster traffic. - // 2. Consider adding fields for ingress-type specific global options - // usable by a loadbalancer, like http keep-alive. - - // +optional - HTTP *HTTPIngressRuleValue `json:"http,omitempty" protobuf:"bytes,1,opt,name=http"` -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -type HTTPIngressRuleValue struct { - // A collection of paths that map requests to backends. - Paths []HTTPIngressPath `json:"paths" protobuf:"bytes,1,rep,name=paths"` - // TODO: Consider adding fields for ingress-type specific global - // options usable by a loadbalancer, like http keep-alive. -} - -// HTTPIngressPath associates a path regex with a backend. Incoming urls matching -// the path are forwarded to the backend. -type HTTPIngressPath struct { - // Path is an extended POSIX regex as defined by IEEE Std 1003.1, - // (i.e this follows the egrep/unix syntax, not the perl syntax) - // matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" - // part of a URL as defined by RFC 3986. Paths must begin with - // a '/'. If unspecified, the path defaults to a catch all sending - // traffic to the backend. - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` - - // Backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - Backend IngressBackend `json:"backend" protobuf:"bytes,2,opt,name=backend"` -} - -// IngressBackend describes all endpoints for a given service and port. -type IngressBackend struct { - // Specifies the name of the referenced service. - ServiceName string `json:"serviceName" protobuf:"bytes,1,opt,name=serviceName"` - - // Specifies the port of the referenced service. - ServicePort intstr.IntOrString `json:"servicePort" protobuf:"bytes,2,opt,name=servicePort"` -} - -// +genclient -// +genclient:method=GetScale,verb=get,subresource=scale,result=Scale -// +genclient:method=UpdateScale,verb=update,subresource=scale,input=Scale,result=Scale -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for -// more information. -// ReplicaSet ensures that a specified number of pod replicas are running at any given time. -type ReplicaSet struct { - metav1.TypeMeta `json:",inline"` - - // If the Labels of a ReplicaSet are empty, they are defaulted to - // be the same as the Pod(s) that the ReplicaSet manages. - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec defines the specification of the desired behavior of the ReplicaSet. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec ReplicaSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the most recently observed status of the ReplicaSet. - // This data may be out of date by some window of time. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status ReplicaSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ReplicaSetList is a collection of ReplicaSets. -type ReplicaSetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of ReplicaSets. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - Items []ReplicaSet `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// ReplicaSetSpec is the specification of a ReplicaSet. -type ReplicaSetSpec struct { - // 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 - // +optional - Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` - - // 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) - // +optional - 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. - // 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"` - - // 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 - // +optional - Template v1.PodTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"` -} - -// ReplicaSetStatus represents the current status of a ReplicaSet. -type ReplicaSetStatus struct { - // Replicas is the most recently oberved number of replicas. - // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` - - // The number of pods that have labels matching the labels of the pod template of the replicaset. - // +optional - FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` - - // The number of ready replicas for this replica set. - // +optional - ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` - - // The number of available replicas (ready for at least minReadySeconds) for this replica set. - // +optional - AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,5,opt,name=availableReplicas"` - - // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` - - // Represents the latest available observations of a replica set's current state. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - Conditions []ReplicaSetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,6,rep,name=conditions"` -} - -type ReplicaSetConditionType string - -// These are valid conditions of a replica set. -const ( - // ReplicaSetReplicaFailure is added in a replica set when one of its pods fails to be created - // due to insufficient quota, limit ranges, pod security policy, node selectors, etc. or deleted - // due to kubelet being down or finalizers are failing. - ReplicaSetReplicaFailure ReplicaSetConditionType = "ReplicaFailure" -) - -// ReplicaSetCondition describes the state of a replica set at a certain point. -type ReplicaSetCondition struct { - // Type of replica set condition. - Type ReplicaSetConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicaSetConditionType"` - // Status of the condition, one of True, False, Unknown. - Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ConditionStatus"` - // The last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"` - // The reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // A human readable message indicating details about the transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodSecurityPolicy governs the ability to make requests that affect the Security Context -// that will be applied to a pod and container. -// Deprecated: use PodSecurityPolicy from policy API Group instead. -type PodSecurityPolicy struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec defines the policy enforced. - // +optional - Spec PodSecurityPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// PodSecurityPolicySpec defines the policy enforced. -// Deprecated: use PodSecurityPolicySpec from policy API Group instead. -type PodSecurityPolicySpec struct { - // privileged determines if a pod can request to be run as privileged. - // +optional - Privileged bool `json:"privileged,omitempty" protobuf:"varint,1,opt,name=privileged"` - // defaultAddCapabilities is the default set of capabilities that will be added to the container - // unless the pod spec specifically drops the capability. You may not list a capability in both - // defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly - // allowed, and need not be included in the allowedCapabilities list. - // +optional - DefaultAddCapabilities []v1.Capability `json:"defaultAddCapabilities,omitempty" protobuf:"bytes,2,rep,name=defaultAddCapabilities,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Capability"` - // requiredDropCapabilities are the capabilities that will be dropped from the container. These - // are required to be dropped and cannot be added. - // +optional - RequiredDropCapabilities []v1.Capability `json:"requiredDropCapabilities,omitempty" protobuf:"bytes,3,rep,name=requiredDropCapabilities,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Capability"` - // allowedCapabilities is a list of capabilities that can be requested to add to the container. - // Capabilities in this field may be added at the pod author's discretion. - // You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - // +optional - AllowedCapabilities []v1.Capability `json:"allowedCapabilities,omitempty" protobuf:"bytes,4,rep,name=allowedCapabilities,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Capability"` - // volumes is a white list of allowed volume plugins. Empty indicates that - // no volumes may be used. To allow all volumes you may use '*'. - // +optional - Volumes []FSType `json:"volumes,omitempty" protobuf:"bytes,5,rep,name=volumes,casttype=FSType"` - // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - // +optional - HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,6,opt,name=hostNetwork"` - // hostPorts determines which host port ranges are allowed to be exposed. - // +optional - HostPorts []HostPortRange `json:"hostPorts,omitempty" protobuf:"bytes,7,rep,name=hostPorts"` - // hostPID determines if the policy allows the use of HostPID in the pod spec. - // +optional - HostPID bool `json:"hostPID,omitempty" protobuf:"varint,8,opt,name=hostPID"` - // hostIPC determines if the policy allows the use of HostIPC in the pod spec. - // +optional - HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,9,opt,name=hostIPC"` - // seLinux is the strategy that will dictate the allowable labels that may be set. - SELinux SELinuxStrategyOptions `json:"seLinux" protobuf:"bytes,10,opt,name=seLinux"` - // runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - RunAsUser RunAsUserStrategyOptions `json:"runAsUser" protobuf:"bytes,11,opt,name=runAsUser"` - // RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. - // If this field is omitted, the pod's RunAsGroup can take any value. This field requires the - // RunAsGroup feature gate to be enabled. - // +optional - RunAsGroup *RunAsGroupStrategyOptions `json:"runAsGroup,omitempty" protobuf:"bytes,22,opt,name=runAsGroup"` - // supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - SupplementalGroups SupplementalGroupsStrategyOptions `json:"supplementalGroups" protobuf:"bytes,12,opt,name=supplementalGroups"` - // fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - FSGroup FSGroupStrategyOptions `json:"fsGroup" protobuf:"bytes,13,opt,name=fsGroup"` - // readOnlyRootFilesystem when set to true will force containers to run with a read only root file - // system. If the container specifically requests to run with a non-read only root file system - // the PSP should deny the pod. - // If set to false the container may run with a read only root file system if it wishes but it - // will not be forced to. - // +optional - ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty" protobuf:"varint,14,opt,name=readOnlyRootFilesystem"` - // defaultAllowPrivilegeEscalation controls the default setting for whether a - // process can gain more privileges than its parent process. - // +optional - DefaultAllowPrivilegeEscalation *bool `json:"defaultAllowPrivilegeEscalation,omitempty" protobuf:"varint,15,opt,name=defaultAllowPrivilegeEscalation"` - // allowPrivilegeEscalation determines if a pod can request to allow - // privilege escalation. If unspecified, defaults to true. - // +optional - AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" protobuf:"varint,16,opt,name=allowPrivilegeEscalation"` - // allowedHostPaths is a white list of allowed host paths. Empty indicates - // that all host paths may be used. - // +optional - AllowedHostPaths []AllowedHostPath `json:"allowedHostPaths,omitempty" protobuf:"bytes,17,rep,name=allowedHostPaths"` - // allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all - // Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes - // is allowed in the "volumes" field. - // +optional - AllowedFlexVolumes []AllowedFlexVolume `json:"allowedFlexVolumes,omitempty" protobuf:"bytes,18,rep,name=allowedFlexVolumes"` - // AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. - // An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - // +optional - AllowedCSIDrivers []AllowedCSIDriver `json:"allowedCSIDrivers,omitempty" protobuf:"bytes,23,rep,name=allowedCSIDrivers"` - // allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. - // Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - // - // Examples: - // e.g. "foo/*" allows "foo/bar", "foo/baz", etc. - // e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - // +optional - AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty" protobuf:"bytes,19,rep,name=allowedUnsafeSysctls"` - // forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - // - // Examples: - // e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. - // e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - // +optional - ForbiddenSysctls []string `json:"forbiddenSysctls,omitempty" protobuf:"bytes,20,rep,name=forbiddenSysctls"` - // AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. - // Empty or nil indicates that only the DefaultProcMountType may be used. - // This requires the ProcMountType feature flag to be enabled. - // +optional - AllowedProcMountTypes []v1.ProcMountType `json:"allowedProcMountTypes,omitempty" protobuf:"bytes,21,opt,name=allowedProcMountTypes"` - // runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. - // If this field is omitted, the pod's runtimeClassName field is unrestricted. - // Enforcement of this field depends on the RuntimeClass feature gate being enabled. - // +optional - RuntimeClass *RuntimeClassStrategyOptions `json:"runtimeClass,omitempty" protobuf:"bytes,24,opt,name=runtimeClass"` -} - -// AllowedHostPath defines the host volume conditions that will be enabled by a policy -// for pods to use. It requires the path prefix to be defined. -// Deprecated: use AllowedHostPath from policy API Group instead. -type AllowedHostPath struct { - // pathPrefix is the path prefix that the host volume must match. - // It does not support `*`. - // Trailing slashes are trimmed when validating the path prefix with a host path. - // - // Examples: - // `/foo` would allow `/foo`, `/foo/` and `/foo/bar` - // `/foo` would not allow `/food` or `/etc/foo` - PathPrefix string `json:"pathPrefix,omitempty" protobuf:"bytes,1,rep,name=pathPrefix"` - - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` -} - -// FSType gives strong typing to different file systems that are used by volumes. -// Deprecated: use FSType from policy API Group instead. -type FSType string - -var ( - AzureFile FSType = "azureFile" - Flocker FSType = "flocker" - FlexVolume FSType = "flexVolume" - HostPath FSType = "hostPath" - EmptyDir FSType = "emptyDir" - GCEPersistentDisk FSType = "gcePersistentDisk" - AWSElasticBlockStore FSType = "awsElasticBlockStore" - GitRepo FSType = "gitRepo" - Secret FSType = "secret" - NFS FSType = "nfs" - ISCSI FSType = "iscsi" - Glusterfs FSType = "glusterfs" - PersistentVolumeClaim FSType = "persistentVolumeClaim" - RBD FSType = "rbd" - Cinder FSType = "cinder" - CephFS FSType = "cephFS" - DownwardAPI FSType = "downwardAPI" - FC FSType = "fc" - ConfigMap FSType = "configMap" - Quobyte FSType = "quobyte" - AzureDisk FSType = "azureDisk" - CSI FSType = "csi" - All FSType = "*" -) - -// AllowedFlexVolume represents a single Flexvolume that is allowed to be used. -// Deprecated: use AllowedFlexVolume from policy API Group instead. -type AllowedFlexVolume struct { - // driver is the name of the Flexvolume driver. - Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` -} - -// AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. -type AllowedCSIDriver struct { - // Name is the registered name of the CSI driver - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` -} - -// HostPortRange defines a range of host ports that will be enabled by a policy -// for pods to use. It requires both the start and end to be defined. -// Deprecated: use HostPortRange from policy API Group instead. -type HostPortRange struct { - // min is the start of the range, inclusive. - Min int32 `json:"min" protobuf:"varint,1,opt,name=min"` - // max is the end of the range, inclusive. - Max int32 `json:"max" protobuf:"varint,2,opt,name=max"` -} - -// SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. -// Deprecated: use SELinuxStrategyOptions from policy API Group instead. -type SELinuxStrategyOptions struct { - // rule is the strategy that will dictate the allowable labels that may be set. - Rule SELinuxStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=SELinuxStrategy"` - // seLinuxOptions required to run as; required for MustRunAs - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - SELinuxOptions *v1.SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,2,opt,name=seLinuxOptions"` -} - -// SELinuxStrategy denotes strategy types for generating SELinux options for a -// Security Context. -// Deprecated: use SELinuxStrategy from policy API Group instead. -type SELinuxStrategy string - -const ( - // SELinuxStrategyMustRunAs means that container must have SELinux labels of X applied. - // Deprecated: use SELinuxStrategyMustRunAs from policy API Group instead. - SELinuxStrategyMustRunAs SELinuxStrategy = "MustRunAs" - // SELinuxStrategyRunAsAny means that container may make requests for any SELinux context labels. - // Deprecated: use SELinuxStrategyRunAsAny from policy API Group instead. - SELinuxStrategyRunAsAny SELinuxStrategy = "RunAsAny" -) - -// RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. -// Deprecated: use RunAsUserStrategyOptions from policy API Group instead. -type RunAsUserStrategyOptions struct { - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - Rule RunAsUserStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=RunAsUserStrategy"` - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. -// Deprecated: use RunAsGroupStrategyOptions from policy API Group instead. -type RunAsGroupStrategyOptions struct { - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - Rule RunAsGroupStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=RunAsGroupStrategy"` - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// IDRange provides a min/max of an allowed range of IDs. -// Deprecated: use IDRange from policy API Group instead. -type IDRange struct { - // min is the start of the range, inclusive. - Min int64 `json:"min" protobuf:"varint,1,opt,name=min"` - // max is the end of the range, inclusive. - Max int64 `json:"max" protobuf:"varint,2,opt,name=max"` -} - -// RunAsUserStrategy denotes strategy types for generating RunAsUser values for a -// Security Context. -// Deprecated: use RunAsUserStrategy from policy API Group instead. -type RunAsUserStrategy string - -const ( - // RunAsUserStrategyMustRunAs means that container must run as a particular uid. - // Deprecated: use RunAsUserStrategyMustRunAs from policy API Group instead. - RunAsUserStrategyMustRunAs RunAsUserStrategy = "MustRunAs" - // RunAsUserStrategyMustRunAsNonRoot means that container must run as a non-root uid. - // Deprecated: use RunAsUserStrategyMustRunAsNonRoot from policy API Group instead. - RunAsUserStrategyMustRunAsNonRoot RunAsUserStrategy = "MustRunAsNonRoot" - // RunAsUserStrategyRunAsAny means that container may make requests for any uid. - // Deprecated: use RunAsUserStrategyRunAsAny from policy API Group instead. - RunAsUserStrategyRunAsAny RunAsUserStrategy = "RunAsAny" -) - -// RunAsGroupStrategy denotes strategy types for generating RunAsGroup values for a -// Security Context. -// Deprecated: use RunAsGroupStrategy from policy API Group instead. -type RunAsGroupStrategy string - -const ( - // RunAsGroupStrategyMayRunAs means that container does not need to run with a particular gid. - // However, when RunAsGroup are specified, they have to fall in the defined range. - RunAsGroupStrategyMayRunAs RunAsGroupStrategy = "MayRunAs" - // RunAsGroupStrategyMustRunAs means that container must run as a particular gid. - // Deprecated: use RunAsGroupStrategyMustRunAs from policy API Group instead. - RunAsGroupStrategyMustRunAs RunAsGroupStrategy = "MustRunAs" - // RunAsGroupStrategyRunAsAny means that container may make requests for any gid. - // Deprecated: use RunAsGroupStrategyRunAsAny from policy API Group instead. - RunAsGroupStrategyRunAsAny RunAsGroupStrategy = "RunAsAny" -) - -// FSGroupStrategyOptions defines the strategy type and options used to create the strategy. -// Deprecated: use FSGroupStrategyOptions from policy API Group instead. -type FSGroupStrategyOptions struct { - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - // +optional - Rule FSGroupStrategyType `json:"rule,omitempty" protobuf:"bytes,1,opt,name=rule,casttype=FSGroupStrategyType"` - // ranges are the allowed ranges of fs groups. If you would like to force a single - // fs group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// FSGroupStrategyType denotes strategy types for generating FSGroup values for a -// SecurityContext -// Deprecated: use FSGroupStrategyType from policy API Group instead. -type FSGroupStrategyType string - -const ( - // FSGroupStrategyMustRunAs meant that container must have FSGroup of X applied. - // Deprecated: use FSGroupStrategyMustRunAs from policy API Group instead. - FSGroupStrategyMustRunAs FSGroupStrategyType = "MustRunAs" - // FSGroupStrategyRunAsAny means that container may make requests for any FSGroup labels. - // Deprecated: use FSGroupStrategyRunAsAny from policy API Group instead. - FSGroupStrategyRunAsAny FSGroupStrategyType = "RunAsAny" -) - -// SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. -// Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead. -type SupplementalGroupsStrategyOptions struct { - // rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - // +optional - Rule SupplementalGroupsStrategyType `json:"rule,omitempty" protobuf:"bytes,1,opt,name=rule,casttype=SupplementalGroupsStrategyType"` - // ranges are the allowed ranges of supplemental groups. If you would like to force a single - // supplemental group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// SupplementalGroupsStrategyType denotes strategy types for determining valid supplemental -// groups for a SecurityContext. -// Deprecated: use SupplementalGroupsStrategyType from policy API Group instead. -type SupplementalGroupsStrategyType string - -const ( - // SupplementalGroupsStrategyMustRunAs means that container must run as a particular gid. - // Deprecated: use SupplementalGroupsStrategyMustRunAs from policy API Group instead. - SupplementalGroupsStrategyMustRunAs SupplementalGroupsStrategyType = "MustRunAs" - // SupplementalGroupsStrategyRunAsAny means that container may make requests for any gid. - // Deprecated: use SupplementalGroupsStrategyRunAsAny from policy API Group instead. - SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny" -) - -// RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses -// for a pod. -type RuntimeClassStrategyOptions struct { - // allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. - // A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the - // list. An empty list requires the RuntimeClassName field to be unset. - AllowedRuntimeClassNames []string `json:"allowedRuntimeClassNames" protobuf:"bytes,1,rep,name=allowedRuntimeClassNames"` - // defaultRuntimeClassName is the default RuntimeClassName to set on the pod. - // The default MUST be allowed by the allowedRuntimeClassNames list. - // A value of nil does not mutate the Pod. - // +optional - DefaultRuntimeClassName *string `json:"defaultRuntimeClassName,omitempty" protobuf:"bytes,2,opt,name=defaultRuntimeClassName"` -} - -// AllowAllRuntimeClassNames can be used as a value for the -// RuntimeClassStrategyOptions.AllowedRuntimeClassNames field and means that any RuntimeClassName is -// allowed. -const AllowAllRuntimeClassNames = "*" - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodSecurityPolicyList is a list of PodSecurityPolicy objects. -// Deprecated: use PodSecurityPolicyList from policy API Group instead. -type PodSecurityPolicyList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is a list of schema objects. - Items []PodSecurityPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. -// NetworkPolicy describes what network traffic is allowed for a set of Pods -type NetworkPolicy struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior for this NetworkPolicy. - // +optional - Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// DEPRECATED 1.9 - This group version of PolicyType is deprecated by networking/v1/PolicyType. -// Policy Type string describes the NetworkPolicy type -// This type is beta-level in 1.8 -type PolicyType string - -const ( - // PolicyTypeIngress is a NetworkPolicy that affects ingress traffic on selected pods - PolicyTypeIngress PolicyType = "Ingress" - // PolicyTypeEgress is a NetworkPolicy that affects egress traffic on selected pods - PolicyTypeEgress PolicyType = "Egress" -) - -// DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec. -type NetworkPolicySpec struct { - // Selects the pods to which this NetworkPolicy object applies. The array of ingress rules - // is applied to any pods selected by this field. Multiple network policies can select the - // same set of pods. In this case, the ingress rules for each are combined additively. - // This field is NOT optional and follows standard label selector semantics. - // An empty podSelector matches all pods in this namespace. - PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` - - // List of ingress rules to be applied to the selected pods. - // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod - // OR if the traffic source is the pod's local node, - // OR if the traffic matches at least one ingress rule across all of the NetworkPolicy - // objects whose podSelector matches the pod. - // If this field is empty then this NetworkPolicy does not allow any traffic - // (and serves solely to ensure that the pods it selects are isolated by default). - // +optional - Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty" protobuf:"bytes,2,rep,name=ingress"` - - // List of egress rules to be applied to the selected pods. Outgoing traffic is - // allowed if there are no NetworkPolicies selecting the pod (and cluster policy - // otherwise allows the traffic), OR if the traffic matches at least one egress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves - // solely to ensure that the pods it selects are isolated by default). - // This field is beta-level in 1.8 - // +optional - Egress []NetworkPolicyEgressRule `json:"egress,omitempty" protobuf:"bytes,3,rep,name=egress"` - - // List of rule types that the NetworkPolicy relates to. - // Valid options are "Ingress", "Egress", or "Ingress,Egress". - // If this field is not specified, it will default based on the existence of Ingress or Egress rules; - // policies that contain an Egress section are assumed to affect Egress, and all policies - // (whether or not they contain an Ingress section) are assumed to affect Ingress. - // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. - // Likewise, if you want to write a policy that specifies that no egress is allowed, - // you must specify a policyTypes value that include "Egress" (since such a policy would not include - // an Egress section and would otherwise default to just [ "Ingress" ]). - // This field is beta-level in 1.8 - // +optional - PolicyTypes []PolicyType `json:"policyTypes,omitempty" protobuf:"bytes,4,rep,name=policyTypes,casttype=PolicyType"` -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. -// This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. -type NetworkPolicyIngressRule struct { - // List of ports which should be made accessible on the pods selected for this rule. - // Each item in this list is combined using a logical OR. - // If this field is empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows traffic - // only if the traffic matches at least one port in the list. - // +optional - Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` - - // List of sources which should be able to access the pods selected for this rule. - // Items in this list are combined using a logical OR operation. - // If this field is empty or missing, this rule matches all sources (traffic not restricted by source). - // If this field is present and contains at least one item, this rule allows traffic only if the - // traffic matches at least one item in the from list. - // +optional - From []NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,rep,name=from"` -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. -// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. -// This type is beta-level in 1.8 -type NetworkPolicyEgressRule struct { - // List of destination ports for outgoing traffic. - // Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` - - // List of destinations for outgoing traffic of pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all destinations (traffic not restricted by - // destination). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the to list. - // +optional - To []NetworkPolicyPeer `json:"to,omitempty" protobuf:"bytes,2,rep,name=to"` -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort. -type NetworkPolicyPort struct { - // Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. - // If not specified, this field defaults to TCP. - // +optional - Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Protocol"` - - // If specified, the port on the given protocol. This can - // either be a numerical or named port on a pod. If this field is not provided, - // this matches all port names and numbers. - // If present, only traffic on the specified protocol AND port - // will be matched. - // +optional - Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` -} - -// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. -// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should -// not be included within this rule. -type IPBlock struct { - // CIDR is a string representing the IP Block - // Valid examples are "192.168.1.1/24" - CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"` - // Except is a slice of CIDRs that should not be included within an IP Block - // Valid examples are "192.168.1.1/24" - // Except values will be rejected if they are outside the CIDR range - // +optional - Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"` -} - -// DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer. -type NetworkPolicyPeer struct { - // This is a label selector which selects Pods. This field follows standard label - // selector semantics; if present but empty, it selects all pods. - // - // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - // +optional - PodSelector *metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` - - // Selects Namespaces using cluster-scoped labels. This field follows standard label - // selector semantics; if present but empty, it selects all namespaces. - // - // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` - - // IPBlock defines policy on a particular IPBlock. If this field is set then - // neither of the other fields can be. - // +optional - IPBlock *IPBlock `json:"ipBlock,omitempty" protobuf:"bytes,3,rep,name=ipBlock"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. -// Network Policy List is a list of NetworkPolicy objects. -type NetworkPolicyList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []NetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/extensions/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/extensions/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index a7eb2ec90..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,661 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_AllowedCSIDriver = map[string]string{ - "": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", - "name": "Name is the registered name of the CSI driver", -} - -func (AllowedCSIDriver) SwaggerDoc() map[string]string { - return map_AllowedCSIDriver -} - -var map_AllowedFlexVolume = map[string]string{ - "": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used. Deprecated: use AllowedFlexVolume from policy API Group instead.", - "driver": "driver is the name of the Flexvolume driver.", -} - -func (AllowedFlexVolume) SwaggerDoc() map[string]string { - return map_AllowedFlexVolume -} - -var map_AllowedHostPath = map[string]string{ - "": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.", - "pathPrefix": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", - "readOnly": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", -} - -func (AllowedHostPath) SwaggerDoc() map[string]string { - return map_AllowedHostPath -} - -var map_DaemonSet = map[string]string{ - "": "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (DaemonSet) SwaggerDoc() map[string]string { - return map_DaemonSet -} - -var map_DaemonSetCondition = map[string]string{ - "": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", - "type": "Type of DaemonSet condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DaemonSetCondition) SwaggerDoc() map[string]string { - return map_DaemonSetCondition -} - -var map_DaemonSetList = map[string]string{ - "": "DaemonSetList is a collection of daemon sets.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "A list of daemon sets.", -} - -func (DaemonSetList) SwaggerDoc() map[string]string { - return map_DaemonSetList -} - -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", - "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).", - "templateGeneration": "DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.", - "revisionHistoryLimit": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", -} - -func (DaemonSetSpec) SwaggerDoc() map[string]string { - return map_DaemonSetSpec -} - -var map_DaemonSetStatus = map[string]string{ - "": "DaemonSetStatus represents the current status of a daemon set.", - "currentNumberScheduled": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "numberMisscheduled": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "desiredNumberScheduled": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", - "numberReady": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.", - "observedGeneration": "The most recent generation observed by the daemon set controller.", - "updatedNumberScheduled": "The total number of nodes that are running updated daemon pod", - "numberAvailable": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "numberUnavailable": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", - "collisionCount": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", - "conditions": "Represents the latest available observations of a DaemonSet's current state.", -} - -func (DaemonSetStatus) SwaggerDoc() map[string]string { - return map_DaemonSetStatus -} - -var map_DaemonSetUpdateStrategy = map[string]string{ - "type": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.", - "rollingUpdate": "Rolling update config params. Present only if type = \"RollingUpdate\".", -} - -func (DaemonSetUpdateStrategy) SwaggerDoc() map[string]string { - return map_DaemonSetUpdateStrategy -} - -var map_Deployment = map[string]string{ - "": "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.", - "metadata": "Standard object metadata.", - "spec": "Specification of the desired behavior of the Deployment.", - "status": "Most recently observed status of the Deployment.", -} - -func (Deployment) SwaggerDoc() map[string]string { - return map_Deployment -} - -var map_DeploymentCondition = map[string]string{ - "": "DeploymentCondition describes the state of a deployment at a certain point.", - "type": "Type of deployment condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastUpdateTime": "The last time this condition was updated.", - "lastTransitionTime": "Last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (DeploymentCondition) SwaggerDoc() map[string]string { - return map_DeploymentCondition -} - -var map_DeploymentList = map[string]string{ - "": "DeploymentList is a list of Deployments.", - "metadata": "Standard list metadata.", - "items": "Items is the list of Deployments.", -} - -func (DeploymentList) SwaggerDoc() map[string]string { - return map_DeploymentList -} - -var map_DeploymentRollback = map[string]string{ - "": "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.", - "name": "Required: This must match the Name of a deployment.", - "updatedAnnotations": "The annotations to be updated to a deployment", - "rollbackTo": "The config of this deployment rollback.", -} - -func (DeploymentRollback) SwaggerDoc() map[string]string { - return map_DeploymentRollback -} - -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.", - "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)", - "revisionHistoryLimit": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\".", - "paused": "Indicates that the deployment is paused and will not be processed by the deployment controller.", - "rollbackTo": "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.", - "progressDeadlineSeconds": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\".", -} - -func (DeploymentSpec) SwaggerDoc() map[string]string { - return map_DeploymentSpec -} - -var map_DeploymentStatus = map[string]string{ - "": "DeploymentStatus is the most recently observed status of the Deployment.", - "observedGeneration": "The generation observed by the deployment controller.", - "replicas": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", - "updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", - "readyReplicas": "Total number of ready pods targeted by this deployment.", - "availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", - "unavailableReplicas": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", - "conditions": "Represents the latest available observations of a deployment's current state.", - "collisionCount": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", -} - -func (DeploymentStatus) SwaggerDoc() map[string]string { - return map_DeploymentStatus -} - -var map_DeploymentStrategy = map[string]string{ - "": "DeploymentStrategy describes how to replace existing pods with new ones.", - "type": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", - "rollingUpdate": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", -} - -func (DeploymentStrategy) SwaggerDoc() map[string]string { - return map_DeploymentStrategy -} - -var map_FSGroupStrategyOptions = map[string]string{ - "": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use FSGroupStrategyOptions from policy API Group instead.", - "rule": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "ranges": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (FSGroupStrategyOptions) SwaggerDoc() map[string]string { - return map_FSGroupStrategyOptions -} - -var map_HTTPIngressPath = map[string]string{ - "": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "path": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", - "backend": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", -} - -func (HTTPIngressPath) SwaggerDoc() map[string]string { - return map_HTTPIngressPath -} - -var map_HTTPIngressRuleValue = map[string]string{ - "": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", - "paths": "A collection of paths that map requests to backends.", -} - -func (HTTPIngressRuleValue) SwaggerDoc() map[string]string { - return map_HTTPIngressRuleValue -} - -var map_HostPortRange = map[string]string{ - "": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. Deprecated: use HostPortRange from policy API Group instead.", - "min": "min is the start of the range, inclusive.", - "max": "max is the end of the range, inclusive.", -} - -func (HostPortRange) SwaggerDoc() map[string]string { - return map_HostPortRange -} - -var map_IDRange = map[string]string{ - "": "IDRange provides a min/max of an allowed range of IDs. Deprecated: use IDRange from policy API Group instead.", - "min": "min is the start of the range, inclusive.", - "max": "max is the end of the range, inclusive.", -} - -func (IDRange) SwaggerDoc() map[string]string { - return map_IDRange -} - -var map_IPBlock = map[string]string{ - "": "DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", - "cidr": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"", - "except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range", -} - -func (IPBlock) SwaggerDoc() map[string]string { - return map_IPBlock -} - -var map_Ingress = map[string]string{ - "": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Ingress) SwaggerDoc() map[string]string { - return map_Ingress -} - -var map_IngressBackend = map[string]string{ - "": "IngressBackend describes all endpoints for a given service and port.", - "serviceName": "Specifies the name of the referenced service.", - "servicePort": "Specifies the port of the referenced service.", -} - -func (IngressBackend) SwaggerDoc() map[string]string { - return map_IngressBackend -} - -var map_IngressList = map[string]string{ - "": "IngressList is a collection of Ingress.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of Ingress.", -} - -func (IngressList) SwaggerDoc() map[string]string { - return map_IngressList -} - -var map_IngressRule = map[string]string{ - "": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", - "host": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.", -} - -func (IngressRule) SwaggerDoc() map[string]string { - return map_IngressRule -} - -var map_IngressRuleValue = map[string]string{ - "": "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", -} - -func (IngressRuleValue) SwaggerDoc() map[string]string { - return map_IngressRuleValue -} - -var map_IngressSpec = map[string]string{ - "": "IngressSpec describes the Ingress the user wishes to exist.", - "backend": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - "tls": "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", - "rules": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", -} - -func (IngressSpec) SwaggerDoc() map[string]string { - return map_IngressSpec -} - -var map_IngressStatus = map[string]string{ - "": "IngressStatus describe the current state of the Ingress.", - "loadBalancer": "LoadBalancer contains the current status of the load-balancer.", -} - -func (IngressStatus) SwaggerDoc() map[string]string { - return map_IngressStatus -} - -var map_IngressTLS = map[string]string{ - "": "IngressTLS describes the transport layer security associated with an Ingress.", - "hosts": "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", - "secretName": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", -} - -func (IngressTLS) SwaggerDoc() map[string]string { - return map_IngressTLS -} - -var map_NetworkPolicy = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior for this NetworkPolicy.", -} - -func (NetworkPolicy) SwaggerDoc() map[string]string { - return map_NetworkPolicy -} - -var map_NetworkPolicyEgressRule = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", - "ports": "List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", - "to": "List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", -} - -func (NetworkPolicyEgressRule) SwaggerDoc() map[string]string { - return map_NetworkPolicyEgressRule -} - -var map_NetworkPolicyIngressRule = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.", - "ports": "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", - "from": "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", -} - -func (NetworkPolicyIngressRule) SwaggerDoc() map[string]string { - return map_NetworkPolicyIngressRule -} - -var map_NetworkPolicyList = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (NetworkPolicyList) SwaggerDoc() map[string]string { - return map_NetworkPolicyList -} - -var map_NetworkPolicyPeer = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer.", - "podSelector": "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.", - "namespaceSelector": "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.", - "ipBlock": "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", -} - -func (NetworkPolicyPeer) SwaggerDoc() map[string]string { - return map_NetworkPolicyPeer -} - -var map_NetworkPolicyPort = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.", - "protocol": "Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", - "port": "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", -} - -func (NetworkPolicyPort) SwaggerDoc() map[string]string { - return map_NetworkPolicyPort -} - -var map_NetworkPolicySpec = map[string]string{ - "": "DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.", - "podSelector": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", - "ingress": "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default).", - "egress": "List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", - "policyTypes": "List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", -} - -func (NetworkPolicySpec) SwaggerDoc() map[string]string { - return map_NetworkPolicySpec -} - -var map_PodSecurityPolicy = map[string]string{ - "": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "spec defines the policy enforced.", -} - -func (PodSecurityPolicy) SwaggerDoc() map[string]string { - return map_PodSecurityPolicy -} - -var map_PodSecurityPolicyList = map[string]string{ - "": "PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is a list of schema objects.", -} - -func (PodSecurityPolicyList) SwaggerDoc() map[string]string { - return map_PodSecurityPolicyList -} - -var map_PodSecurityPolicySpec = map[string]string{ - "": "PodSecurityPolicySpec defines the policy enforced. Deprecated: use PodSecurityPolicySpec from policy API Group instead.", - "privileged": "privileged determines if a pod can request to be run as privileged.", - "defaultAddCapabilities": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", - "requiredDropCapabilities": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "allowedCapabilities": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "volumes": "volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", - "hostNetwork": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "hostPorts": "hostPorts determines which host port ranges are allowed to be exposed.", - "hostPID": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "hostIPC": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "seLinux": "seLinux is the strategy that will dictate the allowable labels that may be set.", - "runAsUser": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", - "runAsGroup": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled.", - "supplementalGroups": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", - "fsGroup": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.", - "readOnlyRootFilesystem": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "defaultAllowPrivilegeEscalation": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "allowPrivilegeEscalation": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "allowedHostPaths": "allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.", - "allowedFlexVolumes": "allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", - "allowedCSIDrivers": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes.", - "allowedUnsafeSysctls": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "forbiddenSysctls": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", - "allowedProcMountTypes": "AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", - "runtimeClass": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled.", -} - -func (PodSecurityPolicySpec) SwaggerDoc() map[string]string { - return map_PodSecurityPolicySpec -} - -var map_ReplicaSet = map[string]string{ - "": "DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time.", - "metadata": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (ReplicaSet) SwaggerDoc() map[string]string { - return map_ReplicaSet -} - -var map_ReplicaSetCondition = map[string]string{ - "": "ReplicaSetCondition describes the state of a replica set at a certain point.", - "type": "Type of replica set condition.", - "status": "Status of the condition, one of True, False, Unknown.", - "lastTransitionTime": "The last time the condition transitioned from one status to another.", - "reason": "The reason for the condition's last transition.", - "message": "A human readable message indicating details about the transition.", -} - -func (ReplicaSetCondition) SwaggerDoc() map[string]string { - return map_ReplicaSetCondition -} - -var map_ReplicaSetList = map[string]string{ - "": "ReplicaSetList is a collection of ReplicaSets.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", -} - -func (ReplicaSetList) SwaggerDoc() map[string]string { - return map_ReplicaSetList -} - -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", - "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", -} - -func (ReplicaSetSpec) SwaggerDoc() map[string]string { - return map_ReplicaSetSpec -} - -var map_ReplicaSetStatus = map[string]string{ - "": "ReplicaSetStatus represents the current status of a ReplicaSet.", - "replicas": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", - "fullyLabeledReplicas": "The number of pods that have labels matching the labels of the pod template of the replicaset.", - "readyReplicas": "The number of ready replicas for this replica set.", - "availableReplicas": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", - "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", - "conditions": "Represents the latest available observations of a replica set's current state.", -} - -func (ReplicaSetStatus) SwaggerDoc() map[string]string { - return map_ReplicaSetStatus -} - -var map_ReplicationControllerDummy = map[string]string{ - "": "Dummy definition", -} - -func (ReplicationControllerDummy) SwaggerDoc() map[string]string { - return map_ReplicationControllerDummy -} - -var map_RollbackConfig = map[string]string{ - "": "DEPRECATED.", - "revision": "The revision to rollback to. If set to 0, rollback to the last revision.", -} - -func (RollbackConfig) SwaggerDoc() map[string]string { - return map_RollbackConfig -} - -var map_RollingUpdateDaemonSet = map[string]string{ - "": "Spec to control the desired behavior of daemon set rolling update.", - "maxUnavailable": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", -} - -func (RollingUpdateDaemonSet) SwaggerDoc() map[string]string { - return map_RollingUpdateDaemonSet -} - -var map_RollingUpdateDeployment = map[string]string{ - "": "Spec to control the desired behavior of rolling update.", - "maxUnavailable": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "maxSurge": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", -} - -func (RollingUpdateDeployment) SwaggerDoc() map[string]string { - return map_RollingUpdateDeployment -} - -var map_RunAsGroupStrategyOptions = map[string]string{ - "": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsGroupStrategyOptions from policy API Group instead.", - "rule": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", - "ranges": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (RunAsGroupStrategyOptions) SwaggerDoc() map[string]string { - return map_RunAsGroupStrategyOptions -} - -var map_RunAsUserStrategyOptions = map[string]string{ - "": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsUserStrategyOptions from policy API Group instead.", - "rule": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "ranges": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (RunAsUserStrategyOptions) SwaggerDoc() map[string]string { - return map_RunAsUserStrategyOptions -} - -var map_RuntimeClassStrategyOptions = map[string]string{ - "": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "allowedRuntimeClassNames": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "defaultRuntimeClassName": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", -} - -func (RuntimeClassStrategyOptions) SwaggerDoc() map[string]string { - return map_RuntimeClassStrategyOptions -} - -var map_SELinuxStrategyOptions = map[string]string{ - "": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use SELinuxStrategyOptions from policy API Group instead.", - "rule": "rule is the strategy that will dictate the allowable labels that may be set.", - "seLinuxOptions": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", -} - -func (SELinuxStrategyOptions) SwaggerDoc() map[string]string { - return map_SELinuxStrategyOptions -} - -var map_Scale = map[string]string{ - "": "represents a scaling request for a resource.", - "metadata": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", - "spec": "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.", - "status": "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.", -} - -func (Scale) SwaggerDoc() map[string]string { - return map_Scale -} - -var map_ScaleSpec = map[string]string{ - "": "describes the attributes of a scale subresource", - "replicas": "desired number of instances for the scaled object.", -} - -func (ScaleSpec) SwaggerDoc() map[string]string { - return map_ScaleSpec -} - -var map_ScaleStatus = map[string]string{ - "": "represents the current status of a scale subresource.", - "replicas": "actual number of observed instances of the scaled object.", - "selector": "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors", - "targetSelector": "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", -} - -func (ScaleStatus) SwaggerDoc() map[string]string { - return map_ScaleStatus -} - -var map_SupplementalGroupsStrategyOptions = map[string]string{ - "": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead.", - "rule": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "ranges": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (SupplementalGroupsStrategyOptions) SwaggerDoc() map[string]string { - return map_SupplementalGroupsStrategyOptions -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/extensions/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/extensions/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index f64e40232..000000000 --- a/pseudo/k8s/api/extensions/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,1497 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AllowedCSIDriver) DeepCopyInto(out *AllowedCSIDriver) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedCSIDriver. -func (in *AllowedCSIDriver) DeepCopy() *AllowedCSIDriver { - if in == nil { - return nil - } - out := new(AllowedCSIDriver) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AllowedFlexVolume) DeepCopyInto(out *AllowedFlexVolume) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedFlexVolume. -func (in *AllowedFlexVolume) DeepCopy() *AllowedFlexVolume { - if in == nil { - return nil - } - out := new(AllowedFlexVolume) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AllowedHostPath) DeepCopyInto(out *AllowedHostPath) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedHostPath. -func (in *AllowedHostPath) DeepCopy() *AllowedHostPath { - if in == nil { - return nil - } - out := new(AllowedHostPath) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSet) DeepCopyInto(out *DaemonSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSet. -func (in *DaemonSet) DeepCopy() *DaemonSet { - if in == nil { - return nil - } - out := new(DaemonSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DaemonSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetCondition) DeepCopyInto(out *DaemonSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetCondition. -func (in *DaemonSetCondition) DeepCopy() *DaemonSetCondition { - if in == nil { - return nil - } - out := new(DaemonSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetList) DeepCopyInto(out *DaemonSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DaemonSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetList. -func (in *DaemonSetList) DeepCopy() *DaemonSetList { - if in == nil { - return nil - } - out := new(DaemonSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DaemonSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetSpec) DeepCopyInto(out *DaemonSetSpec) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetSpec. -func (in *DaemonSetSpec) DeepCopy() *DaemonSetSpec { - if in == nil { - return nil - } - out := new(DaemonSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetStatus) DeepCopyInto(out *DaemonSetStatus) { - *out = *in - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DaemonSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetStatus. -func (in *DaemonSetStatus) DeepCopy() *DaemonSetStatus { - if in == nil { - return nil - } - out := new(DaemonSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DaemonSetUpdateStrategy) DeepCopyInto(out *DaemonSetUpdateStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDaemonSet) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DaemonSetUpdateStrategy. -func (in *DaemonSetUpdateStrategy) DeepCopy() *DaemonSetUpdateStrategy { - if in == nil { - return nil - } - out := new(DaemonSetUpdateStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Deployment) DeepCopyInto(out *Deployment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment. -func (in *Deployment) DeepCopy() *Deployment { - if in == nil { - return nil - } - out := new(Deployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Deployment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentCondition) DeepCopyInto(out *DeploymentCondition) { - *out = *in - in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentCondition. -func (in *DeploymentCondition) DeepCopy() *DeploymentCondition { - if in == nil { - return nil - } - out := new(DeploymentCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentList) DeepCopyInto(out *DeploymentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Deployment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentList. -func (in *DeploymentList) DeepCopy() *DeploymentList { - if in == nil { - return nil - } - out := new(DeploymentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeploymentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentRollback) DeepCopyInto(out *DeploymentRollback) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.UpdatedAnnotations != nil { - in, out := &in.UpdatedAnnotations, &out.UpdatedAnnotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - out.RollbackTo = in.RollbackTo - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentRollback. -func (in *DeploymentRollback) DeepCopy() *DeploymentRollback { - if in == nil { - return nil - } - out := new(DeploymentRollback) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeploymentRollback) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - in.Strategy.DeepCopyInto(&out.Strategy) - if in.RevisionHistoryLimit != nil { - in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit - *out = new(int32) - **out = **in - } - if in.RollbackTo != nil { - in, out := &in.RollbackTo, &out.RollbackTo - *out = new(RollbackConfig) - **out = **in - } - if in.ProgressDeadlineSeconds != nil { - in, out := &in.ProgressDeadlineSeconds, &out.ProgressDeadlineSeconds - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec. -func (in *DeploymentSpec) DeepCopy() *DeploymentSpec { - if in == nil { - return nil - } - out := new(DeploymentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]DeploymentCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CollisionCount != nil { - in, out := &in.CollisionCount, &out.CollisionCount - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus. -func (in *DeploymentStatus) DeepCopy() *DeploymentStatus { - if in == nil { - return nil - } - out := new(DeploymentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeploymentStrategy) DeepCopyInto(out *DeploymentStrategy) { - *out = *in - if in.RollingUpdate != nil { - in, out := &in.RollingUpdate, &out.RollingUpdate - *out = new(RollingUpdateDeployment) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStrategy. -func (in *DeploymentStrategy) DeepCopy() *DeploymentStrategy { - if in == nil { - return nil - } - out := new(DeploymentStrategy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FSGroupStrategyOptions) DeepCopyInto(out *FSGroupStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSGroupStrategyOptions. -func (in *FSGroupStrategyOptions) DeepCopy() *FSGroupStrategyOptions { - if in == nil { - return nil - } - out := new(FSGroupStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) { - *out = *in - out.Backend = in.Backend - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressPath. -func (in *HTTPIngressPath) DeepCopy() *HTTPIngressPath { - if in == nil { - return nil - } - out := new(HTTPIngressPath) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPIngressRuleValue) DeepCopyInto(out *HTTPIngressRuleValue) { - *out = *in - if in.Paths != nil { - in, out := &in.Paths, &out.Paths - *out = make([]HTTPIngressPath, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressRuleValue. -func (in *HTTPIngressRuleValue) DeepCopy() *HTTPIngressRuleValue { - if in == nil { - return nil - } - out := new(HTTPIngressRuleValue) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostPortRange) DeepCopyInto(out *HostPortRange) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPortRange. -func (in *HostPortRange) DeepCopy() *HostPortRange { - if in == nil { - return nil - } - out := new(HostPortRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IDRange) DeepCopyInto(out *IDRange) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDRange. -func (in *IDRange) DeepCopy() *IDRange { - if in == nil { - return nil - } - out := new(IDRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPBlock) DeepCopyInto(out *IPBlock) { - *out = *in - if in.Except != nil { - in, out := &in.Except, &out.Except - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock. -func (in *IPBlock) DeepCopy() *IPBlock { - if in == nil { - return nil - } - out := new(IPBlock) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Ingress) DeepCopyInto(out *Ingress) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress. -func (in *Ingress) DeepCopy() *Ingress { - if in == nil { - return nil - } - out := new(Ingress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Ingress) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressBackend) DeepCopyInto(out *IngressBackend) { - *out = *in - out.ServicePort = in.ServicePort - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend. -func (in *IngressBackend) DeepCopy() *IngressBackend { - if in == nil { - return nil - } - out := new(IngressBackend) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressList) DeepCopyInto(out *IngressList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Ingress, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList. -func (in *IngressList) DeepCopy() *IngressList { - if in == nil { - return nil - } - out := new(IngressList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressRule) DeepCopyInto(out *IngressRule) { - *out = *in - in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule. -func (in *IngressRule) DeepCopy() *IngressRule { - if in == nil { - return nil - } - out := new(IngressRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) { - *out = *in - if in.HTTP != nil { - in, out := &in.HTTP, &out.HTTP - *out = new(HTTPIngressRuleValue) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue. -func (in *IngressRuleValue) DeepCopy() *IngressRuleValue { - if in == nil { - return nil - } - out := new(IngressRuleValue) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressSpec) DeepCopyInto(out *IngressSpec) { - *out = *in - if in.Backend != nil { - in, out := &in.Backend, &out.Backend - *out = new(IngressBackend) - **out = **in - } - if in.TLS != nil { - in, out := &in.TLS, &out.TLS - *out = make([]IngressTLS, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]IngressRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec. -func (in *IngressSpec) DeepCopy() *IngressSpec { - if in == nil { - return nil - } - out := new(IngressSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressStatus) DeepCopyInto(out *IngressStatus) { - *out = *in - in.LoadBalancer.DeepCopyInto(&out.LoadBalancer) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus. -func (in *IngressStatus) DeepCopy() *IngressStatus { - if in == nil { - return nil - } - out := new(IngressStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressTLS) DeepCopyInto(out *IngressTLS) { - *out = *in - if in.Hosts != nil { - in, out := &in.Hosts, &out.Hosts - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS. -func (in *IngressTLS) DeepCopy() *IngressTLS { - if in == nil { - return nil - } - out := new(IngressTLS) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy. -func (in *NetworkPolicy) DeepCopy() *NetworkPolicy { - if in == nil { - return nil - } - out := new(NetworkPolicy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NetworkPolicy) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) { - *out = *in - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.To != nil { - in, out := &in.To, &out.To - *out = make([]NetworkPolicyPeer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule. -func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule { - if in == nil { - return nil - } - out := new(NetworkPolicyEgressRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) { - *out = *in - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.From != nil { - in, out := &in.From, &out.From - *out = make([]NetworkPolicyPeer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule. -func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule { - if in == nil { - return nil - } - out := new(NetworkPolicyIngressRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]NetworkPolicy, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList. -func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList { - if in == nil { - return nil - } - out := new(NetworkPolicyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NetworkPolicyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) { - *out = *in - if in.PodSelector != nil { - in, out := &in.PodSelector, &out.PodSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.IPBlock != nil { - in, out := &in.IPBlock, &out.IPBlock - *out = new(IPBlock) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer. -func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer { - if in == nil { - return nil - } - out := new(NetworkPolicyPeer) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) { - *out = *in - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(corev1.Protocol) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort. -func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort { - if in == nil { - return nil - } - out := new(NetworkPolicyPort) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) { - *out = *in - in.PodSelector.DeepCopyInto(&out.PodSelector) - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = make([]NetworkPolicyIngressRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Egress != nil { - in, out := &in.Egress, &out.Egress - *out = make([]NetworkPolicyEgressRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PolicyTypes != nil { - in, out := &in.PolicyTypes, &out.PolicyTypes - *out = make([]PolicyType, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec. -func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec { - if in == nil { - return nil - } - out := new(NetworkPolicySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicy) DeepCopyInto(out *PodSecurityPolicy) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicy. -func (in *PodSecurityPolicy) DeepCopy() *PodSecurityPolicy { - if in == nil { - return nil - } - out := new(PodSecurityPolicy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodSecurityPolicy) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PodSecurityPolicy, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList. -func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList { - if in == nil { - return nil - } - out := new(PodSecurityPolicyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicySpec) DeepCopyInto(out *PodSecurityPolicySpec) { - *out = *in - if in.DefaultAddCapabilities != nil { - in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities - *out = make([]corev1.Capability, len(*in)) - copy(*out, *in) - } - if in.RequiredDropCapabilities != nil { - in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities - *out = make([]corev1.Capability, len(*in)) - copy(*out, *in) - } - if in.AllowedCapabilities != nil { - in, out := &in.AllowedCapabilities, &out.AllowedCapabilities - *out = make([]corev1.Capability, len(*in)) - copy(*out, *in) - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]FSType, len(*in)) - copy(*out, *in) - } - if in.HostPorts != nil { - in, out := &in.HostPorts, &out.HostPorts - *out = make([]HostPortRange, len(*in)) - copy(*out, *in) - } - in.SELinux.DeepCopyInto(&out.SELinux) - in.RunAsUser.DeepCopyInto(&out.RunAsUser) - if in.RunAsGroup != nil { - in, out := &in.RunAsGroup, &out.RunAsGroup - *out = new(RunAsGroupStrategyOptions) - (*in).DeepCopyInto(*out) - } - in.SupplementalGroups.DeepCopyInto(&out.SupplementalGroups) - in.FSGroup.DeepCopyInto(&out.FSGroup) - if in.DefaultAllowPrivilegeEscalation != nil { - in, out := &in.DefaultAllowPrivilegeEscalation, &out.DefaultAllowPrivilegeEscalation - *out = new(bool) - **out = **in - } - if in.AllowPrivilegeEscalation != nil { - in, out := &in.AllowPrivilegeEscalation, &out.AllowPrivilegeEscalation - *out = new(bool) - **out = **in - } - if in.AllowedHostPaths != nil { - in, out := &in.AllowedHostPaths, &out.AllowedHostPaths - *out = make([]AllowedHostPath, len(*in)) - copy(*out, *in) - } - if in.AllowedFlexVolumes != nil { - in, out := &in.AllowedFlexVolumes, &out.AllowedFlexVolumes - *out = make([]AllowedFlexVolume, len(*in)) - copy(*out, *in) - } - if in.AllowedCSIDrivers != nil { - in, out := &in.AllowedCSIDrivers, &out.AllowedCSIDrivers - *out = make([]AllowedCSIDriver, len(*in)) - copy(*out, *in) - } - if in.AllowedUnsafeSysctls != nil { - in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ForbiddenSysctls != nil { - in, out := &in.ForbiddenSysctls, &out.ForbiddenSysctls - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AllowedProcMountTypes != nil { - in, out := &in.AllowedProcMountTypes, &out.AllowedProcMountTypes - *out = make([]corev1.ProcMountType, len(*in)) - copy(*out, *in) - } - if in.RuntimeClass != nil { - in, out := &in.RuntimeClass, &out.RuntimeClass - *out = new(RuntimeClassStrategyOptions) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicySpec. -func (in *PodSecurityPolicySpec) DeepCopy() *PodSecurityPolicySpec { - if in == nil { - return nil - } - out := new(PodSecurityPolicySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSet) DeepCopyInto(out *ReplicaSet) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSet. -func (in *ReplicaSet) DeepCopy() *ReplicaSet { - if in == nil { - return nil - } - out := new(ReplicaSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicaSet) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetCondition) DeepCopyInto(out *ReplicaSetCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetCondition. -func (in *ReplicaSetCondition) DeepCopy() *ReplicaSetCondition { - if in == nil { - return nil - } - out := new(ReplicaSetCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetList) DeepCopyInto(out *ReplicaSetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ReplicaSet, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetList. -func (in *ReplicaSetList) DeepCopy() *ReplicaSetList { - if in == nil { - return nil - } - out := new(ReplicaSetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicaSetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetSpec) DeepCopyInto(out *ReplicaSetSpec) { - *out = *in - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetSpec. -func (in *ReplicaSetSpec) DeepCopy() *ReplicaSetSpec { - if in == nil { - return nil - } - out := new(ReplicaSetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicaSetStatus) DeepCopyInto(out *ReplicaSetStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]ReplicaSetCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaSetStatus. -func (in *ReplicaSetStatus) DeepCopy() *ReplicaSetStatus { - if in == nil { - return nil - } - out := new(ReplicaSetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ReplicationControllerDummy) DeepCopyInto(out *ReplicationControllerDummy) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplicationControllerDummy. -func (in *ReplicationControllerDummy) DeepCopy() *ReplicationControllerDummy { - if in == nil { - return nil - } - out := new(ReplicationControllerDummy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ReplicationControllerDummy) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollbackConfig) DeepCopyInto(out *RollbackConfig) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollbackConfig. -func (in *RollbackConfig) DeepCopy() *RollbackConfig { - if in == nil { - return nil - } - out := new(RollbackConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDaemonSet) DeepCopyInto(out *RollingUpdateDaemonSet) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDaemonSet. -func (in *RollingUpdateDaemonSet) DeepCopy() *RollingUpdateDaemonSet { - if in == nil { - return nil - } - out := new(RollingUpdateDaemonSet) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RollingUpdateDeployment) DeepCopyInto(out *RollingUpdateDeployment) { - *out = *in - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - if in.MaxSurge != nil { - in, out := &in.MaxSurge, &out.MaxSurge - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateDeployment. -func (in *RollingUpdateDeployment) DeepCopy() *RollingUpdateDeployment { - if in == nil { - return nil - } - out := new(RollingUpdateDeployment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunAsGroupStrategyOptions) DeepCopyInto(out *RunAsGroupStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsGroupStrategyOptions. -func (in *RunAsGroupStrategyOptions) DeepCopy() *RunAsGroupStrategyOptions { - if in == nil { - return nil - } - out := new(RunAsGroupStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunAsUserStrategyOptions) DeepCopyInto(out *RunAsUserStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsUserStrategyOptions. -func (in *RunAsUserStrategyOptions) DeepCopy() *RunAsUserStrategyOptions { - if in == nil { - return nil - } - out := new(RunAsUserStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClassStrategyOptions) DeepCopyInto(out *RuntimeClassStrategyOptions) { - *out = *in - if in.AllowedRuntimeClassNames != nil { - in, out := &in.AllowedRuntimeClassNames, &out.AllowedRuntimeClassNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.DefaultRuntimeClassName != nil { - in, out := &in.DefaultRuntimeClassName, &out.DefaultRuntimeClassName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassStrategyOptions. -func (in *RuntimeClassStrategyOptions) DeepCopy() *RuntimeClassStrategyOptions { - if in == nil { - return nil - } - out := new(RuntimeClassStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SELinuxStrategyOptions) DeepCopyInto(out *SELinuxStrategyOptions) { - *out = *in - if in.SELinuxOptions != nil { - in, out := &in.SELinuxOptions, &out.SELinuxOptions - *out = new(corev1.SELinuxOptions) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SELinuxStrategyOptions. -func (in *SELinuxStrategyOptions) DeepCopy() *SELinuxStrategyOptions { - if in == nil { - return nil - } - out := new(SELinuxStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Scale) DeepCopyInto(out *Scale) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale. -func (in *Scale) DeepCopy() *Scale { - if in == nil { - return nil - } - out := new(Scale) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Scale) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec. -func (in *ScaleSpec) DeepCopy() *ScaleSpec { - if in == nil { - return nil - } - out := new(ScaleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) { - *out = *in - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus. -func (in *ScaleStatus) DeepCopy() *ScaleStatus { - if in == nil { - return nil - } - out := new(ScaleStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SupplementalGroupsStrategyOptions) DeepCopyInto(out *SupplementalGroupsStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplementalGroupsStrategyOptions. -func (in *SupplementalGroupsStrategyOptions) DeepCopy() *SupplementalGroupsStrategyOptions { - if in == nil { - return nil - } - out := new(SupplementalGroupsStrategyOptions) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/doc.go b/pseudo/k8s/api/imagepolicy/v1alpha1/doc.go deleted file mode 100644 index 2b0379ca7..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=imagepolicy.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/imagepolicy/v1alpha1" diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/generated.pb.go b/pseudo/k8s/api/imagepolicy/v1alpha1/generated.pb.go deleted file mode 100644 index 89f5922d4..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/generated.pb.go +++ /dev/null @@ -1,1412 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/imagepolicy/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *ImageReview) Reset() { *m = ImageReview{} } -func (*ImageReview) ProtoMessage() {} -func (*ImageReview) Descriptor() ([]byte, []int) { - return fileDescriptor_834793af728657a5, []int{0} -} -func (m *ImageReview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ImageReview) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageReview.Merge(m, src) -} -func (m *ImageReview) XXX_Size() int { - return m.Size() -} -func (m *ImageReview) XXX_DiscardUnknown() { - xxx_messageInfo_ImageReview.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageReview proto.InternalMessageInfo - -func (m *ImageReviewContainerSpec) Reset() { *m = ImageReviewContainerSpec{} } -func (*ImageReviewContainerSpec) ProtoMessage() {} -func (*ImageReviewContainerSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_834793af728657a5, []int{1} -} -func (m *ImageReviewContainerSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageReviewContainerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ImageReviewContainerSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageReviewContainerSpec.Merge(m, src) -} -func (m *ImageReviewContainerSpec) XXX_Size() int { - return m.Size() -} -func (m *ImageReviewContainerSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ImageReviewContainerSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageReviewContainerSpec proto.InternalMessageInfo - -func (m *ImageReviewSpec) Reset() { *m = ImageReviewSpec{} } -func (*ImageReviewSpec) ProtoMessage() {} -func (*ImageReviewSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_834793af728657a5, []int{2} -} -func (m *ImageReviewSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ImageReviewSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageReviewSpec.Merge(m, src) -} -func (m *ImageReviewSpec) XXX_Size() int { - return m.Size() -} -func (m *ImageReviewSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ImageReviewSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageReviewSpec proto.InternalMessageInfo - -func (m *ImageReviewStatus) Reset() { *m = ImageReviewStatus{} } -func (*ImageReviewStatus) ProtoMessage() {} -func (*ImageReviewStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_834793af728657a5, []int{3} -} -func (m *ImageReviewStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ImageReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ImageReviewStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ImageReviewStatus.Merge(m, src) -} -func (m *ImageReviewStatus) XXX_Size() int { - return m.Size() -} -func (m *ImageReviewStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ImageReviewStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ImageReviewStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ImageReview)(nil), "k8s.io.api.imagepolicy.v1alpha1.ImageReview") - proto.RegisterType((*ImageReviewContainerSpec)(nil), "k8s.io.api.imagepolicy.v1alpha1.ImageReviewContainerSpec") - proto.RegisterType((*ImageReviewSpec)(nil), "k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec.AnnotationsEntry") - proto.RegisterType((*ImageReviewStatus)(nil), "k8s.io.api.imagepolicy.v1alpha1.ImageReviewStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.imagepolicy.v1alpha1.ImageReviewStatus.AuditAnnotationsEntry") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/imagepolicy/v1alpha1/generated.proto", fileDescriptor_834793af728657a5) -} - -var fileDescriptor_834793af728657a5 = []byte{ - // 607 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x6e, 0xd3, 0x4c, - 0x14, 0xc5, 0xe3, 0xa4, 0xff, 0x32, 0xf9, 0x3e, 0x9a, 0x0e, 0x20, 0x59, 0x59, 0xb8, 0x55, 0x90, - 0x50, 0x59, 0x30, 0x43, 0x2b, 0x84, 0x0a, 0x0b, 0x50, 0x5c, 0x21, 0x95, 0x05, 0x20, 0x0d, 0xbb, - 0xae, 0x98, 0x38, 0x17, 0xc7, 0x24, 0x9e, 0xb1, 0x3c, 0xe3, 0x94, 0xec, 0x78, 0x02, 0xc4, 0x1b, - 0xf0, 0x22, 0x3c, 0x40, 0x97, 0x5d, 0x76, 0x55, 0x51, 0xb3, 0xe4, 0x25, 0x90, 0xc7, 0x4e, 0x6c, - 0x92, 0x22, 0x94, 0x9d, 0xef, 0xbd, 0x73, 0x7e, 0xf7, 0xcc, 0xf1, 0xa0, 0x93, 0xd1, 0x91, 0x22, - 0x81, 0xa4, 0xa3, 0xa4, 0x0f, 0xb1, 0x00, 0x0d, 0x8a, 0x4e, 0x40, 0x0c, 0x64, 0x4c, 0x8b, 0x01, - 0x8f, 0x02, 0x1a, 0x84, 0xdc, 0x87, 0x48, 0x8e, 0x03, 0x6f, 0x4a, 0x27, 0x07, 0x7c, 0x1c, 0x0d, - 0xf9, 0x01, 0xf5, 0x41, 0x40, 0xcc, 0x35, 0x0c, 0x48, 0x14, 0x4b, 0x2d, 0xf1, 0x6e, 0x2e, 0x20, - 0x3c, 0x0a, 0x48, 0x45, 0x40, 0x66, 0x82, 0xce, 0x43, 0x3f, 0xd0, 0xc3, 0xa4, 0x4f, 0x3c, 0x19, - 0x52, 0x5f, 0xfa, 0x92, 0x1a, 0x5d, 0x3f, 0xf9, 0x60, 0x2a, 0x53, 0x98, 0xaf, 0x9c, 0xd7, 0x79, - 0x5c, 0x1a, 0x08, 0xb9, 0x37, 0x0c, 0x04, 0xc4, 0x53, 0x1a, 0x8d, 0xfc, 0xac, 0xa1, 0x68, 0x08, - 0x9a, 0xd3, 0xc9, 0x92, 0x8b, 0x0e, 0xfd, 0x9b, 0x2a, 0x4e, 0x84, 0x0e, 0x42, 0x58, 0x12, 0x3c, - 0xf9, 0x97, 0x40, 0x79, 0x43, 0x08, 0xf9, 0xa2, 0xae, 0xfb, 0xad, 0x8e, 0x5a, 0xaf, 0xb2, 0x6b, - 0x32, 0x98, 0x04, 0x70, 0x86, 0xdf, 0xa3, 0xad, 0xcc, 0xd3, 0x80, 0x6b, 0x6e, 0x5b, 0x7b, 0xd6, - 0x7e, 0xeb, 0xf0, 0x11, 0x29, 0x13, 0x99, 0xa3, 0x49, 0x34, 0xf2, 0xb3, 0x86, 0x22, 0xd9, 0x69, - 0x32, 0x39, 0x20, 0x6f, 0xfb, 0x1f, 0xc1, 0xd3, 0xaf, 0x41, 0x73, 0x17, 0x9f, 0x5f, 0xed, 0xd6, - 0xd2, 0xab, 0x5d, 0x54, 0xf6, 0xd8, 0x9c, 0x8a, 0x19, 0x5a, 0x53, 0x11, 0x78, 0x76, 0x7d, 0x89, - 0x7e, 0x63, 0xde, 0xa4, 0xe2, 0xee, 0x5d, 0x04, 0x9e, 0xfb, 0x5f, 0x41, 0x5f, 0xcb, 0x2a, 0x66, - 0x58, 0xf8, 0x14, 0x6d, 0x28, 0xcd, 0x75, 0xa2, 0xec, 0x86, 0xa1, 0x1e, 0xae, 0x44, 0x35, 0x4a, - 0xf7, 0x56, 0xc1, 0xdd, 0xc8, 0x6b, 0x56, 0x10, 0xbb, 0x2f, 0x90, 0x5d, 0x39, 0x7c, 0x2c, 0x85, - 0xe6, 0x59, 0x04, 0xd9, 0x76, 0x7c, 0x0f, 0xad, 0x1b, 0xba, 0x89, 0xaa, 0xe9, 0xfe, 0x5f, 0x20, - 0xd6, 0x73, 0x41, 0x3e, 0xeb, 0xfe, 0xaa, 0xa3, 0xed, 0x85, 0x4b, 0xe0, 0x10, 0x21, 0x6f, 0x46, - 0x52, 0xb6, 0xb5, 0xd7, 0xd8, 0x6f, 0x1d, 0x3e, 0x5d, 0xc5, 0xf4, 0x1f, 0x3e, 0xca, 0xc4, 0xe7, - 0x6d, 0xc5, 0x2a, 0x0b, 0xf0, 0x27, 0xd4, 0xe2, 0x42, 0x48, 0xcd, 0x75, 0x20, 0x85, 0xb2, 0xeb, - 0x66, 0x5f, 0x6f, 0xd5, 0xe8, 0x49, 0xaf, 0x64, 0xbc, 0x14, 0x3a, 0x9e, 0xba, 0xb7, 0x8b, 0xbd, - 0xad, 0xca, 0x84, 0x55, 0x57, 0x61, 0x8a, 0x9a, 0x82, 0x87, 0xa0, 0x22, 0xee, 0x81, 0xf9, 0x39, - 0x4d, 0x77, 0xa7, 0x10, 0x35, 0xdf, 0xcc, 0x06, 0xac, 0x3c, 0xd3, 0x79, 0x8e, 0xda, 0x8b, 0x6b, - 0x70, 0x1b, 0x35, 0x46, 0x30, 0xcd, 0x43, 0x66, 0xd9, 0x27, 0xbe, 0x83, 0xd6, 0x27, 0x7c, 0x9c, - 0x80, 0x79, 0x45, 0x4d, 0x96, 0x17, 0xcf, 0xea, 0x47, 0x56, 0xf7, 0x7b, 0x1d, 0xed, 0x2c, 0xfd, - 0x5c, 0xfc, 0x00, 0x6d, 0xf2, 0xf1, 0x58, 0x9e, 0xc1, 0xc0, 0x50, 0xb6, 0xdc, 0xed, 0xc2, 0xc4, - 0x66, 0x2f, 0x6f, 0xb3, 0xd9, 0x1c, 0xdf, 0x47, 0x1b, 0x31, 0x70, 0x25, 0x45, 0xce, 0x2e, 0xdf, - 0x05, 0x33, 0x5d, 0x56, 0x4c, 0xf1, 0x17, 0x0b, 0xb5, 0x79, 0x32, 0x08, 0x74, 0xc5, 0xae, 0xdd, - 0x30, 0xc9, 0x9e, 0xac, 0xfe, 0xfc, 0x48, 0x6f, 0x01, 0x95, 0x07, 0x6c, 0x17, 0xcb, 0xdb, 0x8b, - 0x63, 0xb6, 0xb4, 0xbb, 0x73, 0x8c, 0xee, 0xde, 0x08, 0x59, 0x25, 0x3e, 0x97, 0x9c, 0x5f, 0x3b, - 0xb5, 0x8b, 0x6b, 0xa7, 0x76, 0x79, 0xed, 0xd4, 0x3e, 0xa7, 0x8e, 0x75, 0x9e, 0x3a, 0xd6, 0x45, - 0xea, 0x58, 0x97, 0xa9, 0x63, 0xfd, 0x48, 0x1d, 0xeb, 0xeb, 0x4f, 0xa7, 0x76, 0xba, 0x35, 0xbb, - 0xc8, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x44, 0x16, 0x48, 0xa2, 0x79, 0x05, 0x00, 0x00, -} - -func (m *ImageReview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageReview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageReview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ImageReviewContainerSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageReviewContainerSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageReviewContainerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ImageReviewSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageReviewSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - if len(m.Annotations) > 0 { - keysForAnnotations := make([]string, 0, len(m.Annotations)) - for k := range m.Annotations { - keysForAnnotations = append(keysForAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - for iNdEx := len(keysForAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.Annotations[string(keysForAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAnnotations[iNdEx]) - copy(dAtA[i:], keysForAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Containers) > 0 { - for iNdEx := len(m.Containers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Containers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ImageReviewStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImageReviewStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ImageReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AuditAnnotations) > 0 { - keysForAuditAnnotations := make([]string, 0, len(m.AuditAnnotations)) - for k := range m.AuditAnnotations { - keysForAuditAnnotations = append(keysForAuditAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations) - for iNdEx := len(keysForAuditAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.AuditAnnotations[string(keysForAuditAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAuditAnnotations[iNdEx]) - copy(dAtA[i:], keysForAuditAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAuditAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x12 - i-- - if m.Allowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ImageReview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageReviewContainerSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Image) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageReviewSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Containers) > 0 { - for _, e := range m.Containers { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ImageReviewStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.AuditAnnotations) > 0 { - for k, v := range m.AuditAnnotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *ImageReview) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageReview{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ImageReviewSpec", "ImageReviewSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ImageReviewStatus", "ImageReviewStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ImageReviewContainerSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ImageReviewContainerSpec{`, - `Image:` + fmt.Sprintf("%v", this.Image) + `,`, - `}`, - }, "") - return s -} -func (this *ImageReviewSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForContainers := "[]ImageReviewContainerSpec{" - for _, f := range this.Containers { - repeatedStringForContainers += strings.Replace(strings.Replace(f.String(), "ImageReviewContainerSpec", "ImageReviewContainerSpec", 1), `&`, ``, 1) + "," - } - repeatedStringForContainers += "}" - keysForAnnotations := make([]string, 0, len(this.Annotations)) - for k := range this.Annotations { - keysForAnnotations = append(keysForAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - mapStringForAnnotations := "map[string]string{" - for _, k := range keysForAnnotations { - mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) - } - mapStringForAnnotations += "}" - s := strings.Join([]string{`&ImageReviewSpec{`, - `Containers:` + repeatedStringForContainers + `,`, - `Annotations:` + mapStringForAnnotations + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func (this *ImageReviewStatus) String() string { - if this == nil { - return "nil" - } - keysForAuditAnnotations := make([]string, 0, len(this.AuditAnnotations)) - for k := range this.AuditAnnotations { - keysForAuditAnnotations = append(keysForAuditAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations) - mapStringForAuditAnnotations := "map[string]string{" - for _, k := range keysForAuditAnnotations { - mapStringForAuditAnnotations += fmt.Sprintf("%v: %v,", k, this.AuditAnnotations[k]) - } - mapStringForAuditAnnotations += "}" - s := strings.Join([]string{`&ImageReviewStatus{`, - `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `AuditAnnotations:` + mapStringForAuditAnnotations + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *ImageReview) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageReview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageReview: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageReviewContainerSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageReviewContainerSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageReviewContainerSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageReviewSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageReviewSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Containers = append(m.Containers, ImageReviewContainerSpec{}) - if err := m.Containers[len(m.Containers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ImageReviewStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ImageReviewStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImageReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Allowed = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuditAnnotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AuditAnnotations == nil { - m.AuditAnnotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AuditAnnotations[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/generated.proto b/pseudo/k8s/api/imagepolicy/v1alpha1/generated.proto deleted file mode 100644 index 956f75f4e..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/generated.proto +++ /dev/null @@ -1,86 +0,0 @@ -/* -Copyright 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.imagepolicy.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// ImageReview checks if the set of images in a pod are allowed. -message ImageReview { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec holds information about the pod being evaluated - optional ImageReviewSpec spec = 2; - - // Status is filled in by the backend and indicates whether the pod should be allowed. - // +optional - optional ImageReviewStatus status = 3; -} - -// ImageReviewContainerSpec is a description of a container within the pod creation request. -message ImageReviewContainerSpec { - // This can be in the form image:tag or image@SHA:012345679abcdef. - // +optional - optional string image = 1; -} - -// ImageReviewSpec is a description of the pod creation request. -message ImageReviewSpec { - // Containers is a list of a subset of the information in each container of the Pod being created. - // +optional - repeated ImageReviewContainerSpec containers = 1; - - // Annotations is a list of key-value pairs extracted from the Pod's annotations. - // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. - // It is up to each webhook backend to determine how to interpret these annotations, if at all. - // +optional - map annotations = 2; - - // Namespace is the namespace the pod is being created in. - // +optional - optional string namespace = 3; -} - -// ImageReviewStatus is the result of the review for the pod creation request. -message ImageReviewStatus { - // Allowed indicates that all images were allowed to be run. - optional bool allowed = 1; - - // Reason should be empty unless Allowed is false in which case it - // may contain a short description of what is wrong. Kubernetes - // may truncate excessively long errors when displaying to the user. - // +optional - optional string reason = 2; - - // AuditAnnotations will be added to the attributes object of the - // admission controller request using 'AddAnnotation'. The keys should - // be prefix-less (i.e., the admission controller will add an - // appropriate prefix). - // +optional - map auditAnnotations = 3; -} - diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/register.go b/pseudo/k8s/api/imagepolicy/v1alpha1/register.go deleted file mode 100644 index 29eca5a24..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/register.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name for this API. -const GroupName = "imagepolicy.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &ImageReview{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/types.go b/pseudo/k8s/api/imagepolicy/v1alpha1/types.go deleted file mode 100644 index 09f361471..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/types.go +++ /dev/null @@ -1,80 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ImageReview checks if the set of images in a pod are allowed. -type ImageReview struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec holds information about the pod being evaluated - Spec ImageReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status is filled in by the backend and indicates whether the pod should be allowed. - // +optional - Status ImageReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// ImageReviewSpec is a description of the pod creation request. -type ImageReviewSpec struct { - // Containers is a list of a subset of the information in each container of the Pod being created. - // +optional - Containers []ImageReviewContainerSpec `json:"containers,omitempty" protobuf:"bytes,1,rep,name=containers"` - // Annotations is a list of key-value pairs extracted from the Pod's annotations. - // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. - // It is up to each webhook backend to determine how to interpret these annotations, if at all. - // +optional - Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,2,rep,name=annotations"` - // Namespace is the namespace the pod is being created in. - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` -} - -// ImageReviewContainerSpec is a description of a container within the pod creation request. -type ImageReviewContainerSpec struct { - // This can be in the form image:tag or image@SHA:012345679abcdef. - // +optional - Image string `json:"image,omitempty" protobuf:"bytes,1,opt,name=image"` - // In future, we may add command line overrides, exec health check command lines, and so on. -} - -// ImageReviewStatus is the result of the review for the pod creation request. -type ImageReviewStatus struct { - // Allowed indicates that all images were allowed to be run. - Allowed bool `json:"allowed" protobuf:"varint,1,opt,name=allowed"` - // Reason should be empty unless Allowed is false in which case it - // may contain a short description of what is wrong. Kubernetes - // may truncate excessively long errors when displaying to the user. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` - // AuditAnnotations will be added to the attributes object of the - // admission controller request using 'AddAnnotation'. The keys should - // be prefix-less (i.e., the admission controller will add an - // appropriate prefix). - // +optional - AuditAnnotations map[string]string `json:"auditAnnotations,omitempty" protobuf:"bytes,3,rep,name=auditAnnotations"` -} diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 0211d94af..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,71 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_ImageReview = map[string]string{ - "": "ImageReview checks if the set of images in a pod are allowed.", - "spec": "Spec holds information about the pod being evaluated", - "status": "Status is filled in by the backend and indicates whether the pod should be allowed.", -} - -func (ImageReview) SwaggerDoc() map[string]string { - return map_ImageReview -} - -var map_ImageReviewContainerSpec = map[string]string{ - "": "ImageReviewContainerSpec is a description of a container within the pod creation request.", - "image": "This can be in the form image:tag or image@SHA:012345679abcdef.", -} - -func (ImageReviewContainerSpec) SwaggerDoc() map[string]string { - return map_ImageReviewContainerSpec -} - -var map_ImageReviewSpec = map[string]string{ - "": "ImageReviewSpec is a description of the pod creation request.", - "containers": "Containers is a list of a subset of the information in each container of the Pod being created.", - "annotations": "Annotations is a list of key-value pairs extracted from the Pod's annotations. It only includes keys which match the pattern `*.image-policy.k8s.io/*`. It is up to each webhook backend to determine how to interpret these annotations, if at all.", - "namespace": "Namespace is the namespace the pod is being created in.", -} - -func (ImageReviewSpec) SwaggerDoc() map[string]string { - return map_ImageReviewSpec -} - -var map_ImageReviewStatus = map[string]string{ - "": "ImageReviewStatus is the result of the review for the pod creation request.", - "allowed": "Allowed indicates that all images were allowed to be run.", - "reason": "Reason should be empty unless Allowed is false in which case it may contain a short description of what is wrong. Kubernetes may truncate excessively long errors when displaying to the user.", - "auditAnnotations": "AuditAnnotations will be added to the attributes object of the admission controller request using 'AddAnnotation'. The keys should be prefix-less (i.e., the admission controller will add an appropriate prefix).", -} - -func (ImageReviewStatus) SwaggerDoc() map[string]string { - return map_ImageReviewStatus -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/imagepolicy/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/imagepolicy/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index ee3d73f8c..000000000 --- a/pseudo/k8s/api/imagepolicy/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,120 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ImageReview) DeepCopyInto(out *ImageReview) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageReview. -func (in *ImageReview) DeepCopy() *ImageReview { - if in == nil { - return nil - } - out := new(ImageReview) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ImageReview) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ImageReviewContainerSpec) DeepCopyInto(out *ImageReviewContainerSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewContainerSpec. -func (in *ImageReviewContainerSpec) DeepCopy() *ImageReviewContainerSpec { - if in == nil { - return nil - } - out := new(ImageReviewContainerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ImageReviewSpec) DeepCopyInto(out *ImageReviewSpec) { - *out = *in - if in.Containers != nil { - in, out := &in.Containers, &out.Containers - *out = make([]ImageReviewContainerSpec, len(*in)) - copy(*out, *in) - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewSpec. -func (in *ImageReviewSpec) DeepCopy() *ImageReviewSpec { - if in == nil { - return nil - } - out := new(ImageReviewSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ImageReviewStatus) DeepCopyInto(out *ImageReviewStatus) { - *out = *in - if in.AuditAnnotations != nil { - in, out := &in.AuditAnnotations, &out.AuditAnnotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewStatus. -func (in *ImageReviewStatus) DeepCopy() *ImageReviewStatus { - if in == nil { - return nil - } - out := new(ImageReviewStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/networking/v1/doc.go b/pseudo/k8s/api/networking/v1/doc.go deleted file mode 100644 index e78050614..000000000 --- a/pseudo/k8s/api/networking/v1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true -// +groupName=networking.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1" diff --git a/pseudo/k8s/api/networking/v1/generated.pb.go b/pseudo/k8s/api/networking/v1/generated.pb.go deleted file mode 100644 index 4d52fd499..000000000 --- a/pseudo/k8s/api/networking/v1/generated.pb.go +++ /dev/null @@ -1,2228 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *IPBlock) Reset() { *m = IPBlock{} } -func (*IPBlock) ProtoMessage() {} -func (*IPBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{0} -} -func (m *IPBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IPBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IPBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_IPBlock.Merge(m, src) -} -func (m *IPBlock) XXX_Size() int { - return m.Size() -} -func (m *IPBlock) XXX_DiscardUnknown() { - xxx_messageInfo_IPBlock.DiscardUnknown(m) -} - -var xxx_messageInfo_IPBlock proto.InternalMessageInfo - -func (m *NetworkPolicy) Reset() { *m = NetworkPolicy{} } -func (*NetworkPolicy) ProtoMessage() {} -func (*NetworkPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{1} -} -func (m *NetworkPolicy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicy.Merge(m, src) -} -func (m *NetworkPolicy) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicy proto.InternalMessageInfo - -func (m *NetworkPolicyEgressRule) Reset() { *m = NetworkPolicyEgressRule{} } -func (*NetworkPolicyEgressRule) ProtoMessage() {} -func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{2} -} -func (m *NetworkPolicyEgressRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyEgressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyEgressRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyEgressRule.Merge(m, src) -} -func (m *NetworkPolicyEgressRule) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyEgressRule) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyEgressRule.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyEgressRule proto.InternalMessageInfo - -func (m *NetworkPolicyIngressRule) Reset() { *m = NetworkPolicyIngressRule{} } -func (*NetworkPolicyIngressRule) ProtoMessage() {} -func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{3} -} -func (m *NetworkPolicyIngressRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyIngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyIngressRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyIngressRule.Merge(m, src) -} -func (m *NetworkPolicyIngressRule) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyIngressRule) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyIngressRule.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyIngressRule proto.InternalMessageInfo - -func (m *NetworkPolicyList) Reset() { *m = NetworkPolicyList{} } -func (*NetworkPolicyList) ProtoMessage() {} -func (*NetworkPolicyList) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{4} -} -func (m *NetworkPolicyList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyList.Merge(m, src) -} -func (m *NetworkPolicyList) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyList) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyList.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyList proto.InternalMessageInfo - -func (m *NetworkPolicyPeer) Reset() { *m = NetworkPolicyPeer{} } -func (*NetworkPolicyPeer) ProtoMessage() {} -func (*NetworkPolicyPeer) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{5} -} -func (m *NetworkPolicyPeer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyPeer) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyPeer.Merge(m, src) -} -func (m *NetworkPolicyPeer) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyPeer) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyPeer.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyPeer proto.InternalMessageInfo - -func (m *NetworkPolicyPort) Reset() { *m = NetworkPolicyPort{} } -func (*NetworkPolicyPort) ProtoMessage() {} -func (*NetworkPolicyPort) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{6} -} -func (m *NetworkPolicyPort) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicyPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicyPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicyPort.Merge(m, src) -} -func (m *NetworkPolicyPort) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicyPort) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicyPort.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicyPort proto.InternalMessageInfo - -func (m *NetworkPolicySpec) Reset() { *m = NetworkPolicySpec{} } -func (*NetworkPolicySpec) ProtoMessage() {} -func (*NetworkPolicySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_1c72867a70a7cc90, []int{7} -} -func (m *NetworkPolicySpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NetworkPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *NetworkPolicySpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_NetworkPolicySpec.Merge(m, src) -} -func (m *NetworkPolicySpec) XXX_Size() int { - return m.Size() -} -func (m *NetworkPolicySpec) XXX_DiscardUnknown() { - xxx_messageInfo_NetworkPolicySpec.DiscardUnknown(m) -} - -var xxx_messageInfo_NetworkPolicySpec proto.InternalMessageInfo - -func init() { - proto.RegisterType((*IPBlock)(nil), "k8s.io.api.networking.v1.IPBlock") - proto.RegisterType((*NetworkPolicy)(nil), "k8s.io.api.networking.v1.NetworkPolicy") - proto.RegisterType((*NetworkPolicyEgressRule)(nil), "k8s.io.api.networking.v1.NetworkPolicyEgressRule") - proto.RegisterType((*NetworkPolicyIngressRule)(nil), "k8s.io.api.networking.v1.NetworkPolicyIngressRule") - proto.RegisterType((*NetworkPolicyList)(nil), "k8s.io.api.networking.v1.NetworkPolicyList") - proto.RegisterType((*NetworkPolicyPeer)(nil), "k8s.io.api.networking.v1.NetworkPolicyPeer") - proto.RegisterType((*NetworkPolicyPort)(nil), "k8s.io.api.networking.v1.NetworkPolicyPort") - proto.RegisterType((*NetworkPolicySpec)(nil), "k8s.io.api.networking.v1.NetworkPolicySpec") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1/generated.proto", fileDescriptor_1c72867a70a7cc90) -} - -var fileDescriptor_1c72867a70a7cc90 = []byte{ - // 804 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x8f, 0xdb, 0x44, - 0x14, 0x8e, 0x9d, 0x6c, 0x92, 0x4e, 0x28, 0x65, 0x07, 0x21, 0xac, 0x45, 0xd8, 0xc1, 0x17, 0x56, - 0xaa, 0x18, 0x93, 0x16, 0x21, 0x6e, 0x08, 0x43, 0x29, 0x91, 0xba, 0xbb, 0xd1, 0x6c, 0x2f, 0x20, - 0x90, 0x70, 0x9c, 0x59, 0xef, 0x34, 0xb1, 0xc7, 0x1a, 0x4f, 0x42, 0xf7, 0xc6, 0x9f, 0xc0, 0x1f, - 0xc2, 0x91, 0x1b, 0x87, 0x72, 0xdc, 0x63, 0x8f, 0x3d, 0x59, 0xac, 0xf9, 0x2f, 0xf6, 0x84, 0x66, - 0x3c, 0x89, 0xf3, 0xa3, 0x11, 0xd9, 0x15, 0xbd, 0x65, 0xde, 0xbc, 0xef, 0x7b, 0xf3, 0xde, 0xfb, - 0xf2, 0x19, 0x7c, 0x35, 0xfe, 0x22, 0x43, 0x94, 0x79, 0xe3, 0xe9, 0x90, 0xf0, 0x84, 0x08, 0x92, - 0x79, 0x33, 0x92, 0x8c, 0x18, 0xf7, 0xf4, 0x45, 0x90, 0x52, 0x2f, 0x21, 0xe2, 0x17, 0xc6, 0xc7, - 0x34, 0x89, 0xbc, 0x59, 0xcf, 0x8b, 0x48, 0x42, 0x78, 0x20, 0xc8, 0x08, 0xa5, 0x9c, 0x09, 0x06, - 0xad, 0x32, 0x13, 0x05, 0x29, 0x45, 0x55, 0x26, 0x9a, 0xf5, 0x0e, 0x3e, 0x89, 0xa8, 0x38, 0x9f, - 0x0e, 0x51, 0xc8, 0x62, 0x2f, 0x62, 0x11, 0xf3, 0x14, 0x60, 0x38, 0x3d, 0x53, 0x27, 0x75, 0x50, - 0xbf, 0x4a, 0xa2, 0x03, 0x77, 0xa9, 0x64, 0xc8, 0x38, 0x79, 0x4d, 0xb1, 0x83, 0xcf, 0xaa, 0x9c, - 0x38, 0x08, 0xcf, 0x69, 0x42, 0xf8, 0x85, 0x97, 0x8e, 0x23, 0x19, 0xc8, 0xbc, 0x98, 0x88, 0xe0, - 0x75, 0x28, 0x6f, 0x1b, 0x8a, 0x4f, 0x13, 0x41, 0x63, 0xb2, 0x01, 0xf8, 0xfc, 0xbf, 0x00, 0x59, - 0x78, 0x4e, 0xe2, 0x60, 0x03, 0xf7, 0x70, 0x1b, 0x6e, 0x2a, 0xe8, 0xc4, 0xa3, 0x89, 0xc8, 0x04, - 0x5f, 0x07, 0xb9, 0x27, 0xa0, 0xd5, 0x1f, 0xf8, 0x13, 0x16, 0x8e, 0x61, 0x17, 0x34, 0x42, 0x3a, - 0xe2, 0x96, 0xd1, 0x35, 0x0e, 0xef, 0xf8, 0x6f, 0x5d, 0xe6, 0x4e, 0xad, 0xc8, 0x9d, 0xc6, 0xd7, - 0xfd, 0x6f, 0x30, 0x56, 0x37, 0xd0, 0x05, 0x4d, 0xf2, 0x3c, 0x24, 0xa9, 0xb0, 0xcc, 0x6e, 0xfd, - 0xf0, 0x8e, 0x0f, 0x8a, 0xdc, 0x69, 0x3e, 0x52, 0x11, 0xac, 0x6f, 0xdc, 0xbf, 0x0c, 0x70, 0xf7, - 0xb8, 0xdc, 0xc4, 0x80, 0x4d, 0x68, 0x78, 0x01, 0x7f, 0x06, 0x6d, 0x39, 0x9b, 0x51, 0x20, 0x02, - 0xc5, 0xdd, 0x79, 0xf0, 0x29, 0xaa, 0xd6, 0xb6, 0x78, 0x2a, 0x4a, 0xc7, 0x91, 0x0c, 0x64, 0x48, - 0x66, 0xa3, 0x59, 0x0f, 0x9d, 0x0c, 0x9f, 0x91, 0x50, 0x1c, 0x11, 0x11, 0xf8, 0x50, 0xbf, 0x06, - 0x54, 0x31, 0xbc, 0x60, 0x85, 0x47, 0xa0, 0x91, 0xa5, 0x24, 0xb4, 0x4c, 0xc5, 0x7e, 0x1f, 0x6d, - 0x13, 0x05, 0x5a, 0x79, 0xd8, 0x69, 0x4a, 0xc2, 0xaa, 0x4d, 0x79, 0xc2, 0x8a, 0xc6, 0xfd, 0xc3, - 0x00, 0xef, 0xaf, 0x64, 0x3e, 0x8a, 0x38, 0xc9, 0x32, 0x3c, 0x9d, 0x10, 0x38, 0x00, 0x7b, 0x29, - 0xe3, 0x22, 0xb3, 0x8c, 0x6e, 0xfd, 0x06, 0xb5, 0x06, 0x8c, 0x0b, 0xff, 0xae, 0xae, 0xb5, 0x27, - 0x4f, 0x19, 0x2e, 0x89, 0xe0, 0x63, 0x60, 0x0a, 0xa6, 0x06, 0x7a, 0x03, 0x3a, 0x42, 0xb8, 0x0f, - 0x34, 0x9d, 0xf9, 0x94, 0x61, 0x53, 0x30, 0xf7, 0x4f, 0x03, 0x58, 0x2b, 0x59, 0xfd, 0xe4, 0x4d, - 0xbe, 0xfb, 0x08, 0x34, 0xce, 0x38, 0x8b, 0x6f, 0xf3, 0xf2, 0xc5, 0xd0, 0xbf, 0xe5, 0x2c, 0xc6, - 0x8a, 0xc6, 0x7d, 0x61, 0x80, 0xfd, 0x95, 0xcc, 0x27, 0x34, 0x13, 0xf0, 0xc7, 0x0d, 0xed, 0xa0, - 0xdd, 0xb4, 0x23, 0xd1, 0x4a, 0x39, 0xef, 0xe8, 0x5a, 0xed, 0x79, 0x64, 0x49, 0x37, 0x4f, 0xc0, - 0x1e, 0x15, 0x24, 0xce, 0x74, 0x0f, 0x1f, 0xef, 0xd8, 0x43, 0x35, 0x90, 0xbe, 0x44, 0xe3, 0x92, - 0xc4, 0x7d, 0x61, 0xae, 0x75, 0x20, 0x7b, 0x85, 0x67, 0xa0, 0x93, 0xb2, 0xd1, 0x29, 0x99, 0x90, - 0x50, 0x30, 0xae, 0x9b, 0x78, 0xb8, 0x63, 0x13, 0xc1, 0x90, 0x4c, 0xe6, 0x50, 0xff, 0x5e, 0x91, - 0x3b, 0x9d, 0x41, 0xc5, 0x85, 0x97, 0x89, 0xe1, 0x73, 0xb0, 0x9f, 0x04, 0x31, 0xc9, 0xd2, 0x20, - 0x24, 0x8b, 0x6a, 0xe6, 0xed, 0xab, 0xbd, 0x57, 0xe4, 0xce, 0xfe, 0xf1, 0x3a, 0x23, 0xde, 0x2c, - 0x02, 0xbf, 0x03, 0x2d, 0x9a, 0x2a, 0x0b, 0xb1, 0xea, 0xaa, 0xde, 0x47, 0xdb, 0xe7, 0xa8, 0xbd, - 0xc6, 0xef, 0x14, 0xb9, 0x33, 0x37, 0x1e, 0x3c, 0x87, 0xbb, 0xbf, 0xaf, 0x6b, 0x40, 0x0a, 0x0e, - 0x3e, 0x06, 0x6d, 0xe5, 0x55, 0x21, 0x9b, 0x68, 0x6f, 0xba, 0x2f, 0xf7, 0x39, 0xd0, 0xb1, 0xeb, - 0xdc, 0xf9, 0x60, 0xd3, 0xbc, 0xd1, 0xfc, 0x1a, 0x2f, 0xc0, 0xf0, 0x18, 0x34, 0xa4, 0x74, 0xf5, - 0x54, 0xb6, 0x9b, 0x90, 0xf4, 0x4b, 0x54, 0xfa, 0x25, 0xea, 0x27, 0xe2, 0x84, 0x9f, 0x0a, 0x4e, - 0x93, 0xc8, 0x6f, 0x4b, 0xc9, 0xca, 0x27, 0x61, 0xc5, 0xe3, 0x5e, 0xaf, 0x2f, 0x5c, 0x7a, 0x08, - 0x7c, 0xf6, 0xbf, 0x2d, 0xfc, 0x5d, 0x2d, 0xb3, 0xed, 0x4b, 0xff, 0x09, 0xb4, 0x68, 0xf9, 0x27, - 0xd7, 0x12, 0x7e, 0xb0, 0xa3, 0x84, 0x97, 0xac, 0xc1, 0xbf, 0xa7, 0xcb, 0xb4, 0xe6, 0xc1, 0x39, - 0x27, 0xfc, 0x1e, 0x34, 0x49, 0xc9, 0x5e, 0x57, 0xec, 0xbd, 0x1d, 0xd9, 0x2b, 0xbf, 0xf4, 0xdf, - 0xd6, 0xe4, 0x4d, 0x1d, 0xd3, 0x84, 0xf0, 0x4b, 0x39, 0x25, 0x99, 0xfb, 0xf4, 0x22, 0x25, 0x99, - 0xd5, 0x50, 0xdf, 0x93, 0x0f, 0xcb, 0x66, 0x17, 0xe1, 0xeb, 0xdc, 0x01, 0xd5, 0x11, 0x2f, 0x23, - 0xfc, 0xc3, 0xcb, 0x2b, 0xbb, 0xf6, 0xf2, 0xca, 0xae, 0xbd, 0xba, 0xb2, 0x6b, 0xbf, 0x16, 0xb6, - 0x71, 0x59, 0xd8, 0xc6, 0xcb, 0xc2, 0x36, 0x5e, 0x15, 0xb6, 0xf1, 0x77, 0x61, 0x1b, 0xbf, 0xfd, - 0x63, 0xd7, 0x7e, 0x30, 0x67, 0xbd, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x7b, 0xc9, 0x59, - 0x67, 0x08, 0x00, 0x00, -} - -func (m *IPBlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IPBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IPBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Except) > 0 { - for iNdEx := len(m.Except) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Except[iNdEx]) - copy(dAtA[i:], m.Except[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Except[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.CIDR) - copy(dAtA[i:], m.CIDR) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CIDR))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NetworkPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyEgressRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyEgressRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyEgressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.To) > 0 { - for iNdEx := len(m.To) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.To[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyIngressRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyIngressRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyIngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.From) > 0 { - for iNdEx := len(m.From) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.From[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Ports) > 0 { - for iNdEx := len(m.Ports) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyPeer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyPeer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyPeer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IPBlock != nil { - { - size, err := m.IPBlock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.NamespaceSelector != nil { - { - size, err := m.NamespaceSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PodSelector != nil { - { - size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicyPort) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicyPort) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicyPort) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Port != nil { - { - size, err := m.Port.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Protocol != nil { - i -= len(*m.Protocol) - copy(dAtA[i:], *m.Protocol) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Protocol))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NetworkPolicySpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NetworkPolicySpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NetworkPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PolicyTypes) > 0 { - for iNdEx := len(m.PolicyTypes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PolicyTypes[iNdEx]) - copy(dAtA[i:], m.PolicyTypes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PolicyTypes[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Egress) > 0 { - for iNdEx := len(m.Egress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Egress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Ingress) > 0 { - for iNdEx := len(m.Ingress) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ingress[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.PodSelector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *IPBlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CIDR) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Except) > 0 { - for _, s := range m.Except { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *NetworkPolicyEgressRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.To) > 0 { - for _, e := range m.To { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicyIngressRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Ports) > 0 { - for _, e := range m.Ports { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.From) > 0 { - for _, e := range m.From { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicyList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *NetworkPolicyPeer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PodSelector != nil { - l = m.PodSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.NamespaceSelector != nil { - l = m.NamespaceSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.IPBlock != nil { - l = m.IPBlock.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NetworkPolicyPort) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Protocol != nil { - l = len(*m.Protocol) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Port != nil { - l = m.Port.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *NetworkPolicySpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.PodSelector.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ingress) > 0 { - for _, e := range m.Ingress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Egress) > 0 { - for _, e := range m.Egress { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.PolicyTypes) > 0 { - for _, s := range m.PolicyTypes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *IPBlock) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IPBlock{`, - `CIDR:` + fmt.Sprintf("%v", this.CIDR) + `,`, - `Except:` + fmt.Sprintf("%v", this.Except) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "NetworkPolicySpec", "NetworkPolicySpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyEgressRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]NetworkPolicyPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - repeatedStringForTo := "[]NetworkPolicyPeer{" - for _, f := range this.To { - repeatedStringForTo += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," - } - repeatedStringForTo += "}" - s := strings.Join([]string{`&NetworkPolicyEgressRule{`, - `Ports:` + repeatedStringForPorts + `,`, - `To:` + repeatedStringForTo + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyIngressRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForPorts := "[]NetworkPolicyPort{" - for _, f := range this.Ports { - repeatedStringForPorts += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPort", "NetworkPolicyPort", 1), `&`, ``, 1) + "," - } - repeatedStringForPorts += "}" - repeatedStringForFrom := "[]NetworkPolicyPeer{" - for _, f := range this.From { - repeatedStringForFrom += strings.Replace(strings.Replace(f.String(), "NetworkPolicyPeer", "NetworkPolicyPeer", 1), `&`, ``, 1) + "," - } - repeatedStringForFrom += "}" - s := strings.Join([]string{`&NetworkPolicyIngressRule{`, - `Ports:` + repeatedStringForPorts + `,`, - `From:` + repeatedStringForFrom + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]NetworkPolicy{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "NetworkPolicy", "NetworkPolicy", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&NetworkPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyPeer) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkPolicyPeer{`, - `PodSelector:` + strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `IPBlock:` + strings.Replace(this.IPBlock.String(), "IPBlock", "IPBlock", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicyPort) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&NetworkPolicyPort{`, - `Protocol:` + valueToStringGenerated(this.Protocol) + `,`, - `Port:` + strings.Replace(fmt.Sprintf("%v", this.Port), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *NetworkPolicySpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForIngress := "[]NetworkPolicyIngressRule{" - for _, f := range this.Ingress { - repeatedStringForIngress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyIngressRule", "NetworkPolicyIngressRule", 1), `&`, ``, 1) + "," - } - repeatedStringForIngress += "}" - repeatedStringForEgress := "[]NetworkPolicyEgressRule{" - for _, f := range this.Egress { - repeatedStringForEgress += strings.Replace(strings.Replace(f.String(), "NetworkPolicyEgressRule", "NetworkPolicyEgressRule", 1), `&`, ``, 1) + "," - } - repeatedStringForEgress += "}" - s := strings.Join([]string{`&NetworkPolicySpec{`, - `PodSelector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.PodSelector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, - `Ingress:` + repeatedStringForIngress + `,`, - `Egress:` + repeatedStringForEgress + `,`, - `PolicyTypes:` + fmt.Sprintf("%v", this.PolicyTypes) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *IPBlock) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IPBlock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IPBlock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CIDR", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CIDR = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Except", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Except = append(m.Except, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyEgressRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyEgressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyEgressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, NetworkPolicyPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.To = append(m.To, NetworkPolicyPeer{}) - if err := m.To[len(m.To)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyIngressRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyIngressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyIngressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ports = append(m.Ports, NetworkPolicyPort{}) - if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = append(m.From, NetworkPolicyPeer{}) - if err := m.From[len(m.From)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, NetworkPolicy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyPeer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyPeer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyPeer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodSelector == nil { - m.PodSelector = &v1.LabelSelector{} - } - if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NamespaceSelector == nil { - m.NamespaceSelector = &v1.LabelSelector{} - } - if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IPBlock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.IPBlock == nil { - m.IPBlock = &IPBlock{} - } - if err := m.IPBlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicyPort) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicyPort: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicyPort: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Protocol", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.Protocol(dAtA[iNdEx:postIndex]) - m.Protocol = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Port == nil { - m.Port = &intstr.IntOrString{} - } - if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NetworkPolicySpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NetworkPolicySpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NetworkPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PodSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ingress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ingress = append(m.Ingress, NetworkPolicyIngressRule{}) - if err := m.Ingress[len(m.Ingress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Egress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Egress = append(m.Egress, NetworkPolicyEgressRule{}) - if err := m.Egress[len(m.Egress)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PolicyTypes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PolicyTypes = append(m.PolicyTypes, PolicyType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/networking/v1/generated.proto b/pseudo/k8s/api/networking/v1/generated.proto deleted file mode 100644 index 9e2158ae3..000000000 --- a/pseudo/k8s/api/networking/v1/generated.proto +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 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.networking.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should -// not be included within this rule. -message IPBlock { - // CIDR is a string representing the IP Block - // Valid examples are "192.168.1.1/24" - optional string cidr = 1; - - // Except is a slice of CIDRs that should not be included within an IP Block - // Valid examples are "192.168.1.1/24" - // Except values will be rejected if they are outside the CIDR range - // +optional - repeated string except = 2; -} - -// NetworkPolicy describes what network traffic is allowed for a set of Pods -message NetworkPolicy { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior for this NetworkPolicy. - // +optional - optional NetworkPolicySpec spec = 2; -} - -// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. -// This type is beta-level in 1.8 -message NetworkPolicyEgressRule { - // List of destination ports for outgoing traffic. - // Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - repeated NetworkPolicyPort ports = 1; - - // List of destinations for outgoing traffic of pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all destinations (traffic not restricted by - // destination). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the to list. - // +optional - repeated NetworkPolicyPeer to = 2; -} - -// NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. -message NetworkPolicyIngressRule { - // List of ports which should be made accessible on the pods selected for this - // rule. Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - repeated NetworkPolicyPort ports = 1; - - // List of sources which should be able to access the pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all sources (traffic not restricted by - // source). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the from list. - // +optional - repeated NetworkPolicyPeer from = 2; -} - -// NetworkPolicyList is a list of NetworkPolicy objects. -message NetworkPolicyList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated NetworkPolicy items = 2; -} - -// NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of -// fields are allowed -message NetworkPolicyPeer { - // This is a label selector which selects Pods. This field follows standard label - // selector semantics; if present but empty, it selects all pods. - // - // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; - - // Selects Namespaces using cluster-scoped labels. This field follows standard label - // selector semantics; if present but empty, it selects all namespaces. - // - // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2; - - // IPBlock defines policy on a particular IPBlock. If this field is set then - // neither of the other fields can be. - // +optional - optional IPBlock ipBlock = 3; -} - -// NetworkPolicyPort describes a port to allow traffic on -message NetworkPolicyPort { - // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this - // field defaults to TCP. - // +optional - optional string protocol = 1; - - // The port on the given protocol. This can either be a numerical or named port on - // a pod. If this field is not provided, this matches all port names and numbers. - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; -} - -// NetworkPolicySpec provides the specification of a NetworkPolicy -message NetworkPolicySpec { - // Selects the pods to which this NetworkPolicy object applies. The array of - // ingress rules is applied to any pods selected by this field. Multiple network - // policies can select the same set of pods. In this case, the ingress rules for - // each are combined additively. This field is NOT optional and follows standard - // label selector semantics. An empty podSelector matches all pods in this - // namespace. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; - - // List of ingress rules to be applied to the selected pods. Traffic is allowed to - // a pod if there are no NetworkPolicies selecting the pod - // (and cluster policy otherwise allows the traffic), OR if the traffic source is - // the pod's local node, OR if the traffic matches at least one ingress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy does not allow any traffic (and serves - // solely to ensure that the pods it selects are isolated by default) - // +optional - repeated NetworkPolicyIngressRule ingress = 2; - - // List of egress rules to be applied to the selected pods. Outgoing traffic is - // allowed if there are no NetworkPolicies selecting the pod (and cluster policy - // otherwise allows the traffic), OR if the traffic matches at least one egress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves - // solely to ensure that the pods it selects are isolated by default). - // This field is beta-level in 1.8 - // +optional - repeated NetworkPolicyEgressRule egress = 3; - - // List of rule types that the NetworkPolicy relates to. - // Valid options are "Ingress", "Egress", or "Ingress,Egress". - // If this field is not specified, it will default based on the existence of Ingress or Egress rules; - // policies that contain an Egress section are assumed to affect Egress, and all policies - // (whether or not they contain an Ingress section) are assumed to affect Ingress. - // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. - // Likewise, if you want to write a policy that specifies that no egress is allowed, - // you must specify a policyTypes value that include "Egress" (since such a policy would not include - // an Egress section and would otherwise default to just [ "Ingress" ]). - // This field is beta-level in 1.8 - // +optional - repeated string policyTypes = 4; -} - diff --git a/pseudo/k8s/api/networking/v1/register.go b/pseudo/k8s/api/networking/v1/register.go deleted file mode 100644 index 882fc2eb4..000000000 --- a/pseudo/k8s/api/networking/v1/register.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "networking.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &NetworkPolicy{}, - &NetworkPolicyList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/networking/v1/types.go b/pseudo/k8s/api/networking/v1/types.go deleted file mode 100644 index c29da5303..000000000 --- a/pseudo/k8s/api/networking/v1/types.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// NetworkPolicy describes what network traffic is allowed for a set of Pods -type NetworkPolicy struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior for this NetworkPolicy. - // +optional - Spec NetworkPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// Policy Type string describes the NetworkPolicy type -// This type is beta-level in 1.8 -type PolicyType string - -const ( - // PolicyTypeIngress is a NetworkPolicy that affects ingress traffic on selected pods - PolicyTypeIngress PolicyType = "Ingress" - // PolicyTypeEgress is a NetworkPolicy that affects egress traffic on selected pods - PolicyTypeEgress PolicyType = "Egress" -) - -// NetworkPolicySpec provides the specification of a NetworkPolicy -type NetworkPolicySpec struct { - // Selects the pods to which this NetworkPolicy object applies. The array of - // ingress rules is applied to any pods selected by this field. Multiple network - // policies can select the same set of pods. In this case, the ingress rules for - // each are combined additively. This field is NOT optional and follows standard - // label selector semantics. An empty podSelector matches all pods in this - // namespace. - PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"` - - // List of ingress rules to be applied to the selected pods. Traffic is allowed to - // a pod if there are no NetworkPolicies selecting the pod - // (and cluster policy otherwise allows the traffic), OR if the traffic source is - // the pod's local node, OR if the traffic matches at least one ingress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy does not allow any traffic (and serves - // solely to ensure that the pods it selects are isolated by default) - // +optional - Ingress []NetworkPolicyIngressRule `json:"ingress,omitempty" protobuf:"bytes,2,rep,name=ingress"` - - // List of egress rules to be applied to the selected pods. Outgoing traffic is - // allowed if there are no NetworkPolicies selecting the pod (and cluster policy - // otherwise allows the traffic), OR if the traffic matches at least one egress rule - // across all of the NetworkPolicy objects whose podSelector matches the pod. If - // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves - // solely to ensure that the pods it selects are isolated by default). - // This field is beta-level in 1.8 - // +optional - Egress []NetworkPolicyEgressRule `json:"egress,omitempty" protobuf:"bytes,3,rep,name=egress"` - - // List of rule types that the NetworkPolicy relates to. - // Valid options are "Ingress", "Egress", or "Ingress,Egress". - // If this field is not specified, it will default based on the existence of Ingress or Egress rules; - // policies that contain an Egress section are assumed to affect Egress, and all policies - // (whether or not they contain an Ingress section) are assumed to affect Ingress. - // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. - // Likewise, if you want to write a policy that specifies that no egress is allowed, - // you must specify a policyTypes value that include "Egress" (since such a policy would not include - // an Egress section and would otherwise default to just [ "Ingress" ]). - // This field is beta-level in 1.8 - // +optional - PolicyTypes []PolicyType `json:"policyTypes,omitempty" protobuf:"bytes,4,rep,name=policyTypes,casttype=PolicyType"` -} - -// NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. -type NetworkPolicyIngressRule struct { - // List of ports which should be made accessible on the pods selected for this - // rule. Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` - - // List of sources which should be able to access the pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all sources (traffic not restricted by - // source). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the from list. - // +optional - From []NetworkPolicyPeer `json:"from,omitempty" protobuf:"bytes,2,rep,name=from"` -} - -// NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods -// matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. -// This type is beta-level in 1.8 -type NetworkPolicyEgressRule struct { - // List of destination ports for outgoing traffic. - // Each item in this list is combined using a logical OR. If this field is - // empty or missing, this rule matches all ports (traffic not restricted by port). - // If this field is present and contains at least one item, then this rule allows - // traffic only if the traffic matches at least one port in the list. - // +optional - Ports []NetworkPolicyPort `json:"ports,omitempty" protobuf:"bytes,1,rep,name=ports"` - - // List of destinations for outgoing traffic of pods selected for this rule. - // Items in this list are combined using a logical OR operation. If this field is - // empty or missing, this rule matches all destinations (traffic not restricted by - // destination). If this field is present and contains at least one item, this rule - // allows traffic only if the traffic matches at least one item in the to list. - // +optional - To []NetworkPolicyPeer `json:"to,omitempty" protobuf:"bytes,2,rep,name=to"` -} - -// NetworkPolicyPort describes a port to allow traffic on -type NetworkPolicyPort struct { - // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this - // field defaults to TCP. - // +optional - Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,1,opt,name=protocol,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Protocol"` - - // The port on the given protocol. This can either be a numerical or named port on - // a pod. If this field is not provided, this matches all port names and numbers. - // +optional - Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"` -} - -// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods -// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should -// not be included within this rule. -type IPBlock struct { - // CIDR is a string representing the IP Block - // Valid examples are "192.168.1.1/24" - CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"` - // Except is a slice of CIDRs that should not be included within an IP Block - // Valid examples are "192.168.1.1/24" - // Except values will be rejected if they are outside the CIDR range - // +optional - Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"` -} - -// NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of -// fields are allowed -type NetworkPolicyPeer struct { - // This is a label selector which selects Pods. This field follows standard label - // selector semantics; if present but empty, it selects all pods. - // - // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - // +optional - PodSelector *metav1.LabelSelector `json:"podSelector,omitempty" protobuf:"bytes,1,opt,name=podSelector"` - - // Selects Namespaces using cluster-scoped labels. This field follows standard label - // selector semantics; if present but empty, it selects all namespaces. - // - // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects - // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. - // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - // +optional - NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"` - - // IPBlock defines policy on a particular IPBlock. If this field is set then - // neither of the other fields can be. - // +optional - IPBlock *IPBlock `json:"ipBlock,omitempty" protobuf:"bytes,3,rep,name=ipBlock"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// NetworkPolicyList is a list of NetworkPolicy objects. -type NetworkPolicyList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []NetworkPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/networking/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/networking/v1/types_swagger_doc_generated.go deleted file mode 100644 index 188b72a1c..000000000 --- a/pseudo/k8s/api/networking/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_IPBlock = map[string]string{ - "": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", - "cidr": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"", - "except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range", -} - -func (IPBlock) SwaggerDoc() map[string]string { - return map_IPBlock -} - -var map_NetworkPolicy = map[string]string{ - "": "NetworkPolicy describes what network traffic is allowed for a set of Pods", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired behavior for this NetworkPolicy.", -} - -func (NetworkPolicy) SwaggerDoc() map[string]string { - return map_NetworkPolicy -} - -var map_NetworkPolicyEgressRule = map[string]string{ - "": "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", - "ports": "List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", - "to": "List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", -} - -func (NetworkPolicyEgressRule) SwaggerDoc() map[string]string { - return map_NetworkPolicyEgressRule -} - -var map_NetworkPolicyIngressRule = map[string]string{ - "": "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", - "ports": "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", - "from": "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", -} - -func (NetworkPolicyIngressRule) SwaggerDoc() map[string]string { - return map_NetworkPolicyIngressRule -} - -var map_NetworkPolicyList = map[string]string{ - "": "NetworkPolicyList is a list of NetworkPolicy objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (NetworkPolicyList) SwaggerDoc() map[string]string { - return map_NetworkPolicyList -} - -var map_NetworkPolicyPeer = map[string]string{ - "": "NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed", - "podSelector": "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.", - "namespaceSelector": "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.", - "ipBlock": "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", -} - -func (NetworkPolicyPeer) SwaggerDoc() map[string]string { - return map_NetworkPolicyPeer -} - -var map_NetworkPolicyPort = map[string]string{ - "": "NetworkPolicyPort describes a port to allow traffic on", - "protocol": "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", - "port": "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers.", -} - -func (NetworkPolicyPort) SwaggerDoc() map[string]string { - return map_NetworkPolicyPort -} - -var map_NetworkPolicySpec = map[string]string{ - "": "NetworkPolicySpec provides the specification of a NetworkPolicy", - "podSelector": "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", - "ingress": "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", - "egress": "List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", - "policyTypes": "List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", -} - -func (NetworkPolicySpec) SwaggerDoc() map[string]string { - return map_NetworkPolicySpec -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/networking/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/networking/v1/zz_generated.deepcopy.go deleted file mode 100644 index 21e82561d..000000000 --- a/pseudo/k8s/api/networking/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,262 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPBlock) DeepCopyInto(out *IPBlock) { - *out = *in - if in.Except != nil { - in, out := &in.Except, &out.Except - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPBlock. -func (in *IPBlock) DeepCopy() *IPBlock { - if in == nil { - return nil - } - out := new(IPBlock) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy. -func (in *NetworkPolicy) DeepCopy() *NetworkPolicy { - if in == nil { - return nil - } - out := new(NetworkPolicy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NetworkPolicy) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyEgressRule) DeepCopyInto(out *NetworkPolicyEgressRule) { - *out = *in - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.To != nil { - in, out := &in.To, &out.To - *out = make([]NetworkPolicyPeer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyEgressRule. -func (in *NetworkPolicyEgressRule) DeepCopy() *NetworkPolicyEgressRule { - if in == nil { - return nil - } - out := new(NetworkPolicyEgressRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) { - *out = *in - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]NetworkPolicyPort, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.From != nil { - in, out := &in.From, &out.From - *out = make([]NetworkPolicyPeer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule. -func (in *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule { - if in == nil { - return nil - } - out := new(NetworkPolicyIngressRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]NetworkPolicy, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList. -func (in *NetworkPolicyList) DeepCopy() *NetworkPolicyList { - if in == nil { - return nil - } - out := new(NetworkPolicyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *NetworkPolicyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) { - *out = *in - if in.PodSelector != nil { - in, out := &in.PodSelector, &out.PodSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.NamespaceSelector != nil { - in, out := &in.NamespaceSelector, &out.NamespaceSelector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.IPBlock != nil { - in, out := &in.IPBlock, &out.IPBlock - *out = new(IPBlock) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer. -func (in *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer { - if in == nil { - return nil - } - out := new(NetworkPolicyPeer) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) { - *out = *in - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(corev1.Protocol) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort. -func (in *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort { - if in == nil { - return nil - } - out := new(NetworkPolicyPort) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) { - *out = *in - in.PodSelector.DeepCopyInto(&out.PodSelector) - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = make([]NetworkPolicyIngressRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Egress != nil { - in, out := &in.Egress, &out.Egress - *out = make([]NetworkPolicyEgressRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PolicyTypes != nil { - in, out := &in.PolicyTypes, &out.PolicyTypes - *out = make([]PolicyType, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec. -func (in *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec { - if in == nil { - return nil - } - out := new(NetworkPolicySpec) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/networking/v1beta1/doc.go b/pseudo/k8s/api/networking/v1beta1/doc.go deleted file mode 100644 index 5484d679a..000000000 --- a/pseudo/k8s/api/networking/v1beta1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2019 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:protobuf-gen=package -// +k8s:openapi-gen=true -// +groupName=networking.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1beta1" diff --git a/pseudo/k8s/api/networking/v1beta1/generated.pb.go b/pseudo/k8s/api/networking/v1beta1/generated.pb.go deleted file mode 100644 index 6d04c687d..000000000 --- a/pseudo/k8s/api/networking/v1beta1/generated.pb.go +++ /dev/null @@ -1,2394 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *HTTPIngressPath) Reset() { *m = HTTPIngressPath{} } -func (*HTTPIngressPath) ProtoMessage() {} -func (*HTTPIngressPath) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{0} -} -func (m *HTTPIngressPath) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HTTPIngressPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HTTPIngressPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_HTTPIngressPath.Merge(m, src) -} -func (m *HTTPIngressPath) XXX_Size() int { - return m.Size() -} -func (m *HTTPIngressPath) XXX_DiscardUnknown() { - xxx_messageInfo_HTTPIngressPath.DiscardUnknown(m) -} - -var xxx_messageInfo_HTTPIngressPath proto.InternalMessageInfo - -func (m *HTTPIngressRuleValue) Reset() { *m = HTTPIngressRuleValue{} } -func (*HTTPIngressRuleValue) ProtoMessage() {} -func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{1} -} -func (m *HTTPIngressRuleValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HTTPIngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HTTPIngressRuleValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_HTTPIngressRuleValue.Merge(m, src) -} -func (m *HTTPIngressRuleValue) XXX_Size() int { - return m.Size() -} -func (m *HTTPIngressRuleValue) XXX_DiscardUnknown() { - xxx_messageInfo_HTTPIngressRuleValue.DiscardUnknown(m) -} - -var xxx_messageInfo_HTTPIngressRuleValue proto.InternalMessageInfo - -func (m *Ingress) Reset() { *m = Ingress{} } -func (*Ingress) ProtoMessage() {} -func (*Ingress) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{2} -} -func (m *Ingress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Ingress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Ingress) XXX_Merge(src proto.Message) { - xxx_messageInfo_Ingress.Merge(m, src) -} -func (m *Ingress) XXX_Size() int { - return m.Size() -} -func (m *Ingress) XXX_DiscardUnknown() { - xxx_messageInfo_Ingress.DiscardUnknown(m) -} - -var xxx_messageInfo_Ingress proto.InternalMessageInfo - -func (m *IngressBackend) Reset() { *m = IngressBackend{} } -func (*IngressBackend) ProtoMessage() {} -func (*IngressBackend) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{3} -} -func (m *IngressBackend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressBackend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressBackend) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressBackend.Merge(m, src) -} -func (m *IngressBackend) XXX_Size() int { - return m.Size() -} -func (m *IngressBackend) XXX_DiscardUnknown() { - xxx_messageInfo_IngressBackend.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressBackend proto.InternalMessageInfo - -func (m *IngressList) Reset() { *m = IngressList{} } -func (*IngressList) ProtoMessage() {} -func (*IngressList) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{4} -} -func (m *IngressList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressList) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressList.Merge(m, src) -} -func (m *IngressList) XXX_Size() int { - return m.Size() -} -func (m *IngressList) XXX_DiscardUnknown() { - xxx_messageInfo_IngressList.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressList proto.InternalMessageInfo - -func (m *IngressRule) Reset() { *m = IngressRule{} } -func (*IngressRule) ProtoMessage() {} -func (*IngressRule) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{5} -} -func (m *IngressRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressRule.Merge(m, src) -} -func (m *IngressRule) XXX_Size() int { - return m.Size() -} -func (m *IngressRule) XXX_DiscardUnknown() { - xxx_messageInfo_IngressRule.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressRule proto.InternalMessageInfo - -func (m *IngressRuleValue) Reset() { *m = IngressRuleValue{} } -func (*IngressRuleValue) ProtoMessage() {} -func (*IngressRuleValue) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{6} -} -func (m *IngressRuleValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressRuleValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressRuleValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressRuleValue.Merge(m, src) -} -func (m *IngressRuleValue) XXX_Size() int { - return m.Size() -} -func (m *IngressRuleValue) XXX_DiscardUnknown() { - xxx_messageInfo_IngressRuleValue.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressRuleValue proto.InternalMessageInfo - -func (m *IngressSpec) Reset() { *m = IngressSpec{} } -func (*IngressSpec) ProtoMessage() {} -func (*IngressSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{7} -} -func (m *IngressSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressSpec.Merge(m, src) -} -func (m *IngressSpec) XXX_Size() int { - return m.Size() -} -func (m *IngressSpec) XXX_DiscardUnknown() { - xxx_messageInfo_IngressSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressSpec proto.InternalMessageInfo - -func (m *IngressStatus) Reset() { *m = IngressStatus{} } -func (*IngressStatus) ProtoMessage() {} -func (*IngressStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{8} -} -func (m *IngressStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressStatus.Merge(m, src) -} -func (m *IngressStatus) XXX_Size() int { - return m.Size() -} -func (m *IngressStatus) XXX_DiscardUnknown() { - xxx_messageInfo_IngressStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressStatus proto.InternalMessageInfo - -func (m *IngressTLS) Reset() { *m = IngressTLS{} } -func (*IngressTLS) ProtoMessage() {} -func (*IngressTLS) Descriptor() ([]byte, []int) { - return fileDescriptor_5bea11de0ceb8f53, []int{9} -} -func (m *IngressTLS) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IngressTLS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IngressTLS) XXX_Merge(src proto.Message) { - xxx_messageInfo_IngressTLS.Merge(m, src) -} -func (m *IngressTLS) XXX_Size() int { - return m.Size() -} -func (m *IngressTLS) XXX_DiscardUnknown() { - xxx_messageInfo_IngressTLS.DiscardUnknown(m) -} - -var xxx_messageInfo_IngressTLS proto.InternalMessageInfo - -func init() { - proto.RegisterType((*HTTPIngressPath)(nil), "k8s.io.api.networking.v1beta1.HTTPIngressPath") - proto.RegisterType((*HTTPIngressRuleValue)(nil), "k8s.io.api.networking.v1beta1.HTTPIngressRuleValue") - proto.RegisterType((*Ingress)(nil), "k8s.io.api.networking.v1beta1.Ingress") - proto.RegisterType((*IngressBackend)(nil), "k8s.io.api.networking.v1beta1.IngressBackend") - proto.RegisterType((*IngressList)(nil), "k8s.io.api.networking.v1beta1.IngressList") - proto.RegisterType((*IngressRule)(nil), "k8s.io.api.networking.v1beta1.IngressRule") - proto.RegisterType((*IngressRuleValue)(nil), "k8s.io.api.networking.v1beta1.IngressRuleValue") - proto.RegisterType((*IngressSpec)(nil), "k8s.io.api.networking.v1beta1.IngressSpec") - proto.RegisterType((*IngressStatus)(nil), "k8s.io.api.networking.v1beta1.IngressStatus") - proto.RegisterType((*IngressTLS)(nil), "k8s.io.api.networking.v1beta1.IngressTLS") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1beta1/generated.proto", fileDescriptor_5bea11de0ceb8f53) -} - -var fileDescriptor_5bea11de0ceb8f53 = []byte{ - // 812 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x6e, 0xfb, 0x44, - 0x10, 0x8e, 0xf3, 0xa7, 0x69, 0xd7, 0xfd, 0xa7, 0xa5, 0x87, 0xa8, 0x12, 0x6e, 0xe4, 0x03, 0x2a, - 0x88, 0xae, 0x69, 0x0a, 0x88, 0xb3, 0x0f, 0xa8, 0x15, 0x81, 0x86, 0x75, 0x84, 0x10, 0xe2, 0xd0, - 0x8d, 0xb3, 0x38, 0x26, 0x89, 0x6d, 0x76, 0xd7, 0x41, 0xdc, 0x78, 0x01, 0x04, 0x4f, 0xc1, 0x99, - 0x23, 0x8f, 0xd0, 0x63, 0x8f, 0x3d, 0x55, 0x34, 0xbc, 0x07, 0x42, 0xbb, 0xde, 0xda, 0x4e, 0xd2, - 0xfe, 0x6a, 0xfd, 0x6e, 0xde, 0x9d, 0xf9, 0xbe, 0xd9, 0x99, 0xf9, 0x66, 0x0c, 0x3e, 0x9f, 0x7e, - 0xc6, 0x51, 0x18, 0x3b, 0xd3, 0x74, 0x44, 0x59, 0x44, 0x05, 0xe5, 0xce, 0x82, 0x46, 0xe3, 0x98, - 0x39, 0xda, 0x40, 0x92, 0xd0, 0x89, 0xa8, 0xf8, 0x39, 0x66, 0xd3, 0x30, 0x0a, 0x9c, 0xc5, 0xf9, - 0x88, 0x0a, 0x72, 0xee, 0x04, 0x34, 0xa2, 0x8c, 0x08, 0x3a, 0x46, 0x09, 0x8b, 0x45, 0x0c, 0xdf, - 0xcd, 0xdc, 0x11, 0x49, 0x42, 0x54, 0xb8, 0x23, 0xed, 0x7e, 0x7c, 0x16, 0x84, 0x62, 0x92, 0x8e, - 0x90, 0x1f, 0xcf, 0x9d, 0x20, 0x0e, 0x62, 0x47, 0xa1, 0x46, 0xe9, 0x0f, 0xea, 0xa4, 0x0e, 0xea, - 0x2b, 0x63, 0x3b, 0xb6, 0x4b, 0xc1, 0xfd, 0x98, 0x51, 0x67, 0xb1, 0x11, 0xf1, 0xf8, 0xe3, 0xc2, - 0x67, 0x4e, 0xfc, 0x49, 0x18, 0x51, 0xf6, 0x8b, 0x93, 0x4c, 0x03, 0x79, 0xc1, 0x9d, 0x39, 0x15, - 0xe4, 0x39, 0x94, 0xf3, 0x12, 0x8a, 0xa5, 0x91, 0x08, 0xe7, 0x74, 0x03, 0xf0, 0xe9, 0x6b, 0x00, - 0xee, 0x4f, 0xe8, 0x9c, 0x6c, 0xe0, 0x2e, 0x5e, 0xc2, 0xa5, 0x22, 0x9c, 0x39, 0x61, 0x24, 0xb8, - 0x60, 0xeb, 0x20, 0xfb, 0x37, 0x03, 0x1c, 0x5c, 0x0e, 0x87, 0x83, 0xab, 0x28, 0x60, 0x94, 0xf3, - 0x01, 0x11, 0x13, 0xd8, 0x05, 0xcd, 0x84, 0x88, 0x49, 0xc7, 0xe8, 0x1a, 0xa7, 0x3b, 0xee, 0xee, - 0xed, 0xc3, 0x49, 0x6d, 0xf9, 0x70, 0xd2, 0x94, 0x36, 0xac, 0x2c, 0xf0, 0x5b, 0xd0, 0x1e, 0x11, - 0x7f, 0x4a, 0xa3, 0x71, 0xa7, 0xde, 0x35, 0x4e, 0xcd, 0xde, 0x19, 0x7a, 0x63, 0x37, 0x90, 0xa6, - 0x77, 0x33, 0x90, 0x7b, 0xa0, 0x39, 0xdb, 0xfa, 0x02, 0x3f, 0xd1, 0xd9, 0x53, 0x70, 0x54, 0x7a, - 0x0e, 0x4e, 0x67, 0xf4, 0x1b, 0x32, 0x4b, 0x29, 0xf4, 0x40, 0x4b, 0x46, 0xe6, 0x1d, 0xa3, 0xdb, - 0x38, 0x35, 0x7b, 0xe8, 0x95, 0x78, 0x6b, 0x29, 0xb9, 0x7b, 0x3a, 0x60, 0x4b, 0x9e, 0x38, 0xce, - 0xb8, 0xec, 0xdf, 0xeb, 0xa0, 0xad, 0xbd, 0xe0, 0x0d, 0xd8, 0x96, 0x1d, 0x1c, 0x13, 0x41, 0x54, - 0xe2, 0x66, 0xef, 0xa3, 0x52, 0x8c, 0xbc, 0xa0, 0x28, 0x99, 0x06, 0xf2, 0x82, 0x23, 0xe9, 0x8d, - 0x16, 0xe7, 0xe8, 0x7a, 0xf4, 0x23, 0xf5, 0xc5, 0x97, 0x54, 0x10, 0x17, 0xea, 0x28, 0xa0, 0xb8, - 0xc3, 0x39, 0x2b, 0xec, 0x83, 0x26, 0x4f, 0xa8, 0xaf, 0x2b, 0xf6, 0x41, 0xb5, 0x8a, 0x79, 0x09, - 0xf5, 0x8b, 0x16, 0xc8, 0x13, 0x56, 0x2c, 0x70, 0x08, 0xb6, 0xb8, 0x20, 0x22, 0xe5, 0x9d, 0x86, - 0xe2, 0xfb, 0xb0, 0x22, 0x9f, 0xc2, 0xb8, 0xfb, 0x9a, 0x71, 0x2b, 0x3b, 0x63, 0xcd, 0x65, 0xff, - 0x65, 0x80, 0xfd, 0xd5, 0x5e, 0xc1, 0x4f, 0x80, 0xc9, 0x29, 0x5b, 0x84, 0x3e, 0xfd, 0x8a, 0xcc, - 0xa9, 0x16, 0xc5, 0x3b, 0x1a, 0x6f, 0x7a, 0x85, 0x09, 0x97, 0xfd, 0x60, 0x90, 0xc3, 0x06, 0x31, - 0x13, 0x3a, 0xe9, 0x97, 0x4b, 0x2a, 0x35, 0x8a, 0x32, 0x8d, 0xa2, 0xab, 0x48, 0x5c, 0x33, 0x4f, - 0xb0, 0x30, 0x0a, 0x36, 0x02, 0x49, 0x32, 0x5c, 0x66, 0xb6, 0xff, 0x36, 0x80, 0xa9, 0x9f, 0xdc, - 0x0f, 0xb9, 0x80, 0xdf, 0x6f, 0x34, 0x12, 0x55, 0x6b, 0xa4, 0x44, 0xab, 0x36, 0x1e, 0xea, 0x98, - 0xdb, 0x4f, 0x37, 0xa5, 0x26, 0x7e, 0x01, 0x5a, 0xa1, 0xa0, 0x73, 0xde, 0xa9, 0x2b, 0x1d, 0xbe, - 0x57, 0x51, 0xf7, 0xb9, 0xfe, 0xae, 0x24, 0x18, 0x67, 0x1c, 0xf6, 0x9f, 0xc5, 0xd3, 0xa5, 0xd2, - 0xe5, 0xe0, 0x4d, 0x62, 0x2e, 0xd6, 0x07, 0xef, 0x32, 0xe6, 0x02, 0x2b, 0x0b, 0x4c, 0xc1, 0x61, - 0xb8, 0x36, 0x1a, 0xba, 0xb4, 0x4e, 0xb5, 0x97, 0xe4, 0x30, 0xb7, 0xa3, 0xe9, 0x0f, 0xd7, 0x2d, - 0x78, 0x23, 0x84, 0x4d, 0xc1, 0x86, 0x17, 0xfc, 0x1a, 0x34, 0x27, 0x42, 0x24, 0xba, 0xc6, 0x17, - 0xd5, 0x07, 0xb2, 0x78, 0xc2, 0xb6, 0xca, 0x6e, 0x38, 0x1c, 0x60, 0x45, 0x65, 0xff, 0x57, 0xd4, - 0xc3, 0xcb, 0x34, 0x9e, 0xaf, 0x19, 0xe3, 0x6d, 0xd6, 0x8c, 0xf9, 0xdc, 0x8a, 0x81, 0x97, 0xa0, - 0x21, 0x66, 0x4f, 0x0d, 0x7c, 0xbf, 0x1a, 0xe3, 0xb0, 0xef, 0xb9, 0xa6, 0x2e, 0x58, 0x63, 0xd8, - 0xf7, 0xb0, 0xa4, 0x80, 0xd7, 0xa0, 0xc5, 0xd2, 0x19, 0x95, 0x23, 0xd8, 0xa8, 0x3e, 0xd2, 0x32, - 0xff, 0x42, 0x10, 0xf2, 0xc4, 0x71, 0xc6, 0x63, 0xff, 0x04, 0xf6, 0x56, 0xe6, 0x14, 0xde, 0x80, - 0xdd, 0x59, 0x4c, 0xc6, 0x2e, 0x99, 0x91, 0xc8, 0xa7, 0x4c, 0x97, 0x61, 0x45, 0x75, 0xf2, 0x6f, - 0xa5, 0xe4, 0x5b, 0xf2, 0xd3, 0x53, 0x7e, 0xa4, 0x83, 0xec, 0x96, 0x6d, 0x78, 0x85, 0xd1, 0x26, - 0x00, 0x14, 0x39, 0xc2, 0x13, 0xd0, 0x92, 0x3a, 0xcb, 0xd6, 0xec, 0x8e, 0xbb, 0x23, 0x5f, 0x28, - 0xe5, 0xc7, 0x71, 0x76, 0x0f, 0x7b, 0x00, 0x70, 0xea, 0x33, 0x2a, 0xd4, 0x32, 0xa8, 0x2b, 0xa1, - 0xe6, 0x6b, 0xcf, 0xcb, 0x2d, 0xb8, 0xe4, 0xe5, 0x9e, 0xdd, 0x3e, 0x5a, 0xb5, 0xbb, 0x47, 0xab, - 0x76, 0xff, 0x68, 0xd5, 0x7e, 0x5d, 0x5a, 0xc6, 0xed, 0xd2, 0x32, 0xee, 0x96, 0x96, 0x71, 0xbf, - 0xb4, 0x8c, 0x7f, 0x96, 0x96, 0xf1, 0xc7, 0xbf, 0x56, 0xed, 0xbb, 0xb6, 0x2e, 0xd3, 0xff, 0x01, - 0x00, 0x00, 0xff, 0xff, 0xdb, 0x8a, 0xe4, 0xd8, 0x21, 0x08, 0x00, 0x00, -} - -func (m *HTTPIngressPath) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HTTPIngressPath) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HTTPIngressPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HTTPIngressRuleValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HTTPIngressRuleValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HTTPIngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Paths) > 0 { - for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Paths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Ingress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Ingress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Ingress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressBackend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressBackend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressBackend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ServicePort.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.ServiceName) - copy(dAtA[i:], m.ServiceName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.IngressRuleValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Host) - copy(dAtA[i:], m.Host) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressRuleValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressRuleValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressRuleValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.HTTP != nil { - { - size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IngressSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.TLS) > 0 { - for iNdEx := len(m.TLS) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TLS[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Backend != nil { - { - size, err := m.Backend.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *IngressStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.LoadBalancer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *IngressTLS) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IngressTLS) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IngressTLS) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.SecretName) - copy(dAtA[i:], m.SecretName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SecretName))) - i-- - dAtA[i] = 0x12 - if len(m.Hosts) > 0 { - for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Hosts[iNdEx]) - copy(dAtA[i:], m.Hosts[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hosts[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *HTTPIngressPath) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Backend.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *HTTPIngressRuleValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Paths) > 0 { - for _, e := range m.Paths { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Ingress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressBackend) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceName) - n += 1 + l + sovGenerated(uint64(l)) - l = m.ServicePort.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IngressRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Host) - n += 1 + l + sovGenerated(uint64(l)) - l = m.IngressRuleValue.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressRuleValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.HTTP != nil { - l = m.HTTP.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *IngressSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Backend != nil { - l = m.Backend.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.TLS) > 0 { - for _, e := range m.TLS { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *IngressStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LoadBalancer.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *IngressTLS) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Hosts) > 0 { - for _, s := range m.Hosts { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.SecretName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *HTTPIngressPath) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HTTPIngressPath{`, - `Path:` + fmt.Sprintf("%v", this.Path) + `,`, - `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *HTTPIngressRuleValue) String() string { - if this == nil { - return "nil" - } - repeatedStringForPaths := "[]HTTPIngressPath{" - for _, f := range this.Paths { - repeatedStringForPaths += strings.Replace(strings.Replace(f.String(), "HTTPIngressPath", "HTTPIngressPath", 1), `&`, ``, 1) + "," - } - repeatedStringForPaths += "}" - s := strings.Join([]string{`&HTTPIngressRuleValue{`, - `Paths:` + repeatedStringForPaths + `,`, - `}`, - }, "") - return s -} -func (this *Ingress) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Ingress{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "IngressSpec", "IngressSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "IngressStatus", "IngressStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressBackend) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressBackend{`, - `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, - `ServicePort:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ServicePort), "IntOrString", "intstr.IntOrString", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Ingress{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Ingress", "Ingress", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&IngressList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *IngressRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressRule{`, - `Host:` + fmt.Sprintf("%v", this.Host) + `,`, - `IngressRuleValue:` + strings.Replace(strings.Replace(this.IngressRuleValue.String(), "IngressRuleValue", "IngressRuleValue", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressRuleValue) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressRuleValue{`, - `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPIngressRuleValue", "HTTPIngressRuleValue", 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForTLS := "[]IngressTLS{" - for _, f := range this.TLS { - repeatedStringForTLS += strings.Replace(strings.Replace(f.String(), "IngressTLS", "IngressTLS", 1), `&`, ``, 1) + "," - } - repeatedStringForTLS += "}" - repeatedStringForRules := "[]IngressRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "IngressRule", "IngressRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&IngressSpec{`, - `Backend:` + strings.Replace(this.Backend.String(), "IngressBackend", "IngressBackend", 1) + `,`, - `TLS:` + repeatedStringForTLS + `,`, - `Rules:` + repeatedStringForRules + `,`, - `}`, - }, "") - return s -} -func (this *IngressStatus) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressStatus{`, - `LoadBalancer:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LoadBalancer), "LoadBalancerStatus", "v11.LoadBalancerStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *IngressTLS) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IngressTLS{`, - `Hosts:` + fmt.Sprintf("%v", this.Hosts) + `,`, - `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *HTTPIngressPath) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HTTPIngressPath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPIngressPath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HTTPIngressRuleValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HTTPIngressRuleValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HTTPIngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Paths = append(m.Paths, HTTPIngressPath{}) - if err := m.Paths[len(m.Paths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Ingress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Ingress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Ingress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressBackend) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressBackend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressBackend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServicePort", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ServicePort.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Ingress{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Host = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IngressRuleValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.IngressRuleValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressRuleValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressRuleValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressRuleValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.HTTP == nil { - m.HTTP = &HTTPIngressRuleValue{} - } - if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Backend == nil { - m.Backend = &IngressBackend{} - } - if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TLS", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TLS = append(m.TLS, IngressTLS{}) - if err := m.TLS[len(m.TLS)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, IngressRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LoadBalancer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IngressTLS) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IngressTLS: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IngressTLS: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/networking/v1beta1/generated.proto b/pseudo/k8s/api/networking/v1beta1/generated.proto deleted file mode 100644 index 738571809..000000000 --- a/pseudo/k8s/api/networking/v1beta1/generated.proto +++ /dev/null @@ -1,186 +0,0 @@ -/* -Copyright 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.networking.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// HTTPIngressPath associates a path regex with a backend. Incoming urls matching -// the path are forwarded to the backend. -message HTTPIngressPath { - // Path is an extended POSIX regex as defined by IEEE Std 1003.1, - // (i.e this follows the egrep/unix syntax, not the perl syntax) - // matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" - // part of a URL as defined by RFC 3986. Paths must begin with - // a '/'. If unspecified, the path defaults to a catch all sending - // traffic to the backend. - // +optional - optional string path = 1; - - // Backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - optional IngressBackend backend = 2; -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -message HTTPIngressRuleValue { - // A collection of paths that map requests to backends. - repeated HTTPIngressPath paths = 1; -} - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -message Ingress { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional IngressSpec spec = 2; - - // Status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional IngressStatus status = 3; -} - -// IngressBackend describes all endpoints for a given service and port. -message IngressBackend { - // Specifies the name of the referenced service. - optional string serviceName = 1; - - // Specifies the port of the referenced service. - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2; -} - -// IngressList is a collection of Ingress. -message IngressList { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of Ingress. - repeated Ingress items = 2; -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -message IngressRule { - // Host is the fully qualified domain name of a network host, as defined - // by RFC 3986. Note the following deviations from the "host" part of the - // URI as defined in the RFC: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the - // IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the IngressRuleValue. - // If the host is unspecified, the Ingress routes all traffic based on the - // specified IngressRuleValue. - // +optional - optional string host = 1; - - // IngressRuleValue represents a rule to route requests for this IngressRule. - // If unspecified, the rule defaults to a http catch-all. Whether that sends - // just traffic matching the host to the default backend or all traffic to the - // default backend, is left to the controller fulfilling the Ingress. Http is - // currently the only supported IngressRuleValue. - // +optional - optional IngressRuleValue ingressRuleValue = 2; -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -message IngressRuleValue { - // +optional - optional HTTPIngressRuleValue http = 1; -} - -// IngressSpec describes the Ingress the user wishes to exist. -message IngressSpec { - // A default backend capable of servicing requests that don't match any - // rule. At least one of 'backend' or 'rules' must be specified. This field - // is optional to allow the loadbalancer controller or defaulting logic to - // specify a global default. - // +optional - optional IngressBackend backend = 1; - - // TLS configuration. Currently the Ingress only supports a single TLS - // port, 443. If multiple members of this list specify different hosts, they - // will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +optional - repeated IngressTLS tls = 2; - - // A list of host rules used to configure the Ingress. If unspecified, or - // no rule matches, all traffic is sent to the default backend. - // +optional - repeated IngressRule rules = 3; -} - -// IngressStatus describe the current state of the Ingress. -message IngressStatus { - // LoadBalancer contains the current status of the load-balancer. - // +optional - optional k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; -} - -// IngressTLS describes the transport layer security associated with an Ingress. -message IngressTLS { - // Hosts are a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +optional - repeated string hosts = 1; - - // SecretName is the name of the secret used to terminate SSL traffic on 443. - // Field is left optional to allow SSL routing based on SNI hostname alone. - // If the SNI host in a listener conflicts with the "Host" header field used - // by an IngressRule, the SNI host is used for termination and value of the - // Host header is used for routing. - // +optional - optional string secretName = 2; -} - diff --git a/pseudo/k8s/api/networking/v1beta1/register.go b/pseudo/k8s/api/networking/v1beta1/register.go deleted file mode 100644 index 7ccf853e9..000000000 --- a/pseudo/k8s/api/networking/v1beta1/register.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2019 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "networking.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 ( - // SchemeBuilder holds functions that add things to a scheme - // TODO: move SchemeBuilder with zz_generated.deepcopy.go to sigs.k8s.io/kustomize/pseudo/k8s/api. - // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - localSchemeBuilder = &SchemeBuilder - - // AddToScheme adds the types of this group into the given scheme. - AddToScheme = localSchemeBuilder.AddToScheme -) - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Ingress{}, - &IngressList{}, - ) - // Add the watch version that applies - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/networking/v1beta1/types.go b/pseudo/k8s/api/networking/v1beta1/types.go deleted file mode 100644 index 98ebf4eb0..000000000 --- a/pseudo/k8s/api/networking/v1beta1/types.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Copyright 2019 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 ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Ingress is a collection of rules that allow inbound connections to reach the -// endpoints defined by a backend. An Ingress can be configured to give services -// externally-reachable urls, load balance traffic, terminate SSL, offer name -// based virtual hosting etc. -type Ingress struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Spec is the desired state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec IngressSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Status is the current state of the Ingress. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status IngressStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// IngressList is a collection of Ingress. -type IngressList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of Ingress. - Items []Ingress `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// IngressSpec describes the Ingress the user wishes to exist. -type IngressSpec struct { - // A default backend capable of servicing requests that don't match any - // rule. At least one of 'backend' or 'rules' must be specified. This field - // is optional to allow the loadbalancer controller or defaulting logic to - // specify a global default. - // +optional - Backend *IngressBackend `json:"backend,omitempty" protobuf:"bytes,1,opt,name=backend"` - - // TLS configuration. Currently the Ingress only supports a single TLS - // port, 443. If multiple members of this list specify different hosts, they - // will be multiplexed on the same port according to the hostname specified - // through the SNI TLS extension, if the ingress controller fulfilling the - // ingress supports SNI. - // +optional - TLS []IngressTLS `json:"tls,omitempty" protobuf:"bytes,2,rep,name=tls"` - - // A list of host rules used to configure the Ingress. If unspecified, or - // no rule matches, all traffic is sent to the default backend. - // +optional - Rules []IngressRule `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"` - // TODO: Add the ability to specify load-balancer IP through claims -} - -// IngressTLS describes the transport layer security associated with an Ingress. -type IngressTLS struct { - // Hosts are a list of hosts included in the TLS certificate. The values in - // this list must match the name/s used in the tlsSecret. Defaults to the - // wildcard host setting for the loadbalancer controller fulfilling this - // Ingress, if left unspecified. - // +optional - Hosts []string `json:"hosts,omitempty" protobuf:"bytes,1,rep,name=hosts"` - // SecretName is the name of the secret used to terminate SSL traffic on 443. - // Field is left optional to allow SSL routing based on SNI hostname alone. - // If the SNI host in a listener conflicts with the "Host" header field used - // by an IngressRule, the SNI host is used for termination and value of the - // Host header is used for routing. - // +optional - SecretName string `json:"secretName,omitempty" protobuf:"bytes,2,opt,name=secretName"` - // TODO: Consider specifying different modes of termination, protocols etc. -} - -// IngressStatus describe the current state of the Ingress. -type IngressStatus struct { - // LoadBalancer contains the current status of the load-balancer. - // +optional - LoadBalancer v1.LoadBalancerStatus `json:"loadBalancer,omitempty" protobuf:"bytes,1,opt,name=loadBalancer"` -} - -// IngressRule represents the rules mapping the paths under a specified host to -// the related backend services. Incoming requests are first evaluated for a host -// match, then routed to the backend associated with the matching IngressRuleValue. -type IngressRule struct { - // Host is the fully qualified domain name of a network host, as defined - // by RFC 3986. Note the following deviations from the "host" part of the - // URI as defined in the RFC: - // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the - // IP in the Spec of the parent Ingress. - // 2. The `:` delimiter is not respected because ports are not allowed. - // Currently the port of an Ingress is implicitly :80 for http and - // :443 for https. - // Both these may change in the future. - // Incoming requests are matched against the host before the IngressRuleValue. - // If the host is unspecified, the Ingress routes all traffic based on the - // specified IngressRuleValue. - // +optional - Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"` - // IngressRuleValue represents a rule to route requests for this IngressRule. - // If unspecified, the rule defaults to a http catch-all. Whether that sends - // just traffic matching the host to the default backend or all traffic to the - // default backend, is left to the controller fulfilling the Ingress. Http is - // currently the only supported IngressRuleValue. - // +optional - IngressRuleValue `json:",inline,omitempty" protobuf:"bytes,2,opt,name=ingressRuleValue"` -} - -// IngressRuleValue represents a rule to apply against incoming requests. If the -// rule is satisfied, the request is routed to the specified backend. Currently -// mixing different types of rules in a single Ingress is disallowed, so exactly -// one of the following must be set. -type IngressRuleValue struct { - //TODO: - // 1. Consider renaming this resource and the associated rules so they - // aren't tied to Ingress. They can be used to route intra-cluster traffic. - // 2. Consider adding fields for ingress-type specific global options - // usable by a loadbalancer, like http keep-alive. - - // +optional - HTTP *HTTPIngressRuleValue `json:"http,omitempty" protobuf:"bytes,1,opt,name=http"` -} - -// HTTPIngressRuleValue is a list of http selectors pointing to backends. -// In the example: http:///? -> backend where -// where parts of the url correspond to RFC 3986, this resource will be used -// to match against everything after the last '/' and before the first '?' -// or '#'. -type HTTPIngressRuleValue struct { - // A collection of paths that map requests to backends. - Paths []HTTPIngressPath `json:"paths" protobuf:"bytes,1,rep,name=paths"` - // TODO: Consider adding fields for ingress-type specific global - // options usable by a loadbalancer, like http keep-alive. -} - -// HTTPIngressPath associates a path regex with a backend. Incoming urls matching -// the path are forwarded to the backend. -type HTTPIngressPath struct { - // Path is an extended POSIX regex as defined by IEEE Std 1003.1, - // (i.e this follows the egrep/unix syntax, not the perl syntax) - // matched against the path of an incoming request. Currently it can - // contain characters disallowed from the conventional "path" - // part of a URL as defined by RFC 3986. Paths must begin with - // a '/'. If unspecified, the path defaults to a catch all sending - // traffic to the backend. - // +optional - Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` - - // Backend defines the referenced service endpoint to which the traffic - // will be forwarded to. - Backend IngressBackend `json:"backend" protobuf:"bytes,2,opt,name=backend"` -} - -// IngressBackend describes all endpoints for a given service and port. -type IngressBackend struct { - // Specifies the name of the referenced service. - ServiceName string `json:"serviceName" protobuf:"bytes,1,opt,name=serviceName"` - - // Specifies the port of the referenced service. - ServicePort intstr.IntOrString `json:"servicePort" protobuf:"bytes,2,opt,name=servicePort"` -} diff --git a/pseudo/k8s/api/networking/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/networking/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 4ae5e32d0..000000000 --- a/pseudo/k8s/api/networking/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_HTTPIngressPath = map[string]string{ - "": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "path": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", - "backend": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", -} - -func (HTTPIngressPath) SwaggerDoc() map[string]string { - return map_HTTPIngressPath -} - -var map_HTTPIngressRuleValue = map[string]string{ - "": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", - "paths": "A collection of paths that map requests to backends.", -} - -func (HTTPIngressRuleValue) SwaggerDoc() map[string]string { - return map_HTTPIngressRuleValue -} - -var map_Ingress = map[string]string{ - "": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "status": "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (Ingress) SwaggerDoc() map[string]string { - return map_Ingress -} - -var map_IngressBackend = map[string]string{ - "": "IngressBackend describes all endpoints for a given service and port.", - "serviceName": "Specifies the name of the referenced service.", - "servicePort": "Specifies the port of the referenced service.", -} - -func (IngressBackend) SwaggerDoc() map[string]string { - return map_IngressBackend -} - -var map_IngressList = map[string]string{ - "": "IngressList is a collection of Ingress.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of Ingress.", -} - -func (IngressList) SwaggerDoc() map[string]string { - return map_IngressList -} - -var map_IngressRule = map[string]string{ - "": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", - "host": "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the\n\t IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.", -} - -func (IngressRule) SwaggerDoc() map[string]string { - return map_IngressRule -} - -var map_IngressRuleValue = map[string]string{ - "": "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", -} - -func (IngressRuleValue) SwaggerDoc() map[string]string { - return map_IngressRuleValue -} - -var map_IngressSpec = map[string]string{ - "": "IngressSpec describes the Ingress the user wishes to exist.", - "backend": "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.", - "tls": "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", - "rules": "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", -} - -func (IngressSpec) SwaggerDoc() map[string]string { - return map_IngressSpec -} - -var map_IngressStatus = map[string]string{ - "": "IngressStatus describe the current state of the Ingress.", - "loadBalancer": "LoadBalancer contains the current status of the load-balancer.", -} - -func (IngressStatus) SwaggerDoc() map[string]string { - return map_IngressStatus -} - -var map_IngressTLS = map[string]string{ - "": "IngressTLS describes the transport layer security associated with an Ingress.", - "hosts": "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", - "secretName": "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.", -} - -func (IngressTLS) SwaggerDoc() map[string]string { - return map_IngressTLS -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/networking/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/networking/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 67d1d6af6..000000000 --- a/pseudo/k8s/api/networking/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,252 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPIngressPath) DeepCopyInto(out *HTTPIngressPath) { - *out = *in - out.Backend = in.Backend - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressPath. -func (in *HTTPIngressPath) DeepCopy() *HTTPIngressPath { - if in == nil { - return nil - } - out := new(HTTPIngressPath) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HTTPIngressRuleValue) DeepCopyInto(out *HTTPIngressRuleValue) { - *out = *in - if in.Paths != nil { - in, out := &in.Paths, &out.Paths - *out = make([]HTTPIngressPath, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPIngressRuleValue. -func (in *HTTPIngressRuleValue) DeepCopy() *HTTPIngressRuleValue { - if in == nil { - return nil - } - out := new(HTTPIngressRuleValue) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Ingress) DeepCopyInto(out *Ingress) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress. -func (in *Ingress) DeepCopy() *Ingress { - if in == nil { - return nil - } - out := new(Ingress) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Ingress) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressBackend) DeepCopyInto(out *IngressBackend) { - *out = *in - out.ServicePort = in.ServicePort - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressBackend. -func (in *IngressBackend) DeepCopy() *IngressBackend { - if in == nil { - return nil - } - out := new(IngressBackend) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressList) DeepCopyInto(out *IngressList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Ingress, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressList. -func (in *IngressList) DeepCopy() *IngressList { - if in == nil { - return nil - } - out := new(IngressList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IngressList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressRule) DeepCopyInto(out *IngressRule) { - *out = *in - in.IngressRuleValue.DeepCopyInto(&out.IngressRuleValue) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRule. -func (in *IngressRule) DeepCopy() *IngressRule { - if in == nil { - return nil - } - out := new(IngressRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressRuleValue) DeepCopyInto(out *IngressRuleValue) { - *out = *in - if in.HTTP != nil { - in, out := &in.HTTP, &out.HTTP - *out = new(HTTPIngressRuleValue) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRuleValue. -func (in *IngressRuleValue) DeepCopy() *IngressRuleValue { - if in == nil { - return nil - } - out := new(IngressRuleValue) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressSpec) DeepCopyInto(out *IngressSpec) { - *out = *in - if in.Backend != nil { - in, out := &in.Backend, &out.Backend - *out = new(IngressBackend) - **out = **in - } - if in.TLS != nil { - in, out := &in.TLS, &out.TLS - *out = make([]IngressTLS, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]IngressRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec. -func (in *IngressSpec) DeepCopy() *IngressSpec { - if in == nil { - return nil - } - out := new(IngressSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressStatus) DeepCopyInto(out *IngressStatus) { - *out = *in - in.LoadBalancer.DeepCopyInto(&out.LoadBalancer) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressStatus. -func (in *IngressStatus) DeepCopy() *IngressStatus { - if in == nil { - return nil - } - out := new(IngressStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressTLS) DeepCopyInto(out *IngressTLS) { - *out = *in - if in.Hosts != nil { - in, out := &in.Hosts, &out.Hosts - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressTLS. -func (in *IngressTLS) DeepCopy() *IngressTLS { - if in == nil { - return nil - } - out := new(IngressTLS) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/node/v1alpha1/doc.go b/pseudo/k8s/api/node/v1alpha1/doc.go deleted file mode 100644 index 3be0171e2..000000000 --- a/pseudo/k8s/api/node/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=node.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1alpha1" diff --git a/pseudo/k8s/api/node/v1alpha1/generated.pb.go b/pseudo/k8s/api/node/v1alpha1/generated.pb.go deleted file mode 100644 index 9288273e9..000000000 --- a/pseudo/k8s/api/node/v1alpha1/generated.pb.go +++ /dev/null @@ -1,1609 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - k8s_io_apimachinery_pkg_api_resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Overhead) Reset() { *m = Overhead{} } -func (*Overhead) ProtoMessage() {} -func (*Overhead) Descriptor() ([]byte, []int) { - return fileDescriptor_82a78945ab308218, []int{0} -} -func (m *Overhead) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Overhead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Overhead) XXX_Merge(src proto.Message) { - xxx_messageInfo_Overhead.Merge(m, src) -} -func (m *Overhead) XXX_Size() int { - return m.Size() -} -func (m *Overhead) XXX_DiscardUnknown() { - xxx_messageInfo_Overhead.DiscardUnknown(m) -} - -var xxx_messageInfo_Overhead proto.InternalMessageInfo - -func (m *RuntimeClass) Reset() { *m = RuntimeClass{} } -func (*RuntimeClass) ProtoMessage() {} -func (*RuntimeClass) Descriptor() ([]byte, []int) { - return fileDescriptor_82a78945ab308218, []int{1} -} -func (m *RuntimeClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClass.Merge(m, src) -} -func (m *RuntimeClass) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClass) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClass.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClass proto.InternalMessageInfo - -func (m *RuntimeClassList) Reset() { *m = RuntimeClassList{} } -func (*RuntimeClassList) ProtoMessage() {} -func (*RuntimeClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_82a78945ab308218, []int{2} -} -func (m *RuntimeClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClassList.Merge(m, src) -} -func (m *RuntimeClassList) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClassList) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClassList proto.InternalMessageInfo - -func (m *RuntimeClassSpec) Reset() { *m = RuntimeClassSpec{} } -func (*RuntimeClassSpec) ProtoMessage() {} -func (*RuntimeClassSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_82a78945ab308218, []int{3} -} -func (m *RuntimeClassSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClassSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClassSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClassSpec.Merge(m, src) -} -func (m *RuntimeClassSpec) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClassSpec) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClassSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClassSpec proto.InternalMessageInfo - -func (m *Scheduling) Reset() { *m = Scheduling{} } -func (*Scheduling) ProtoMessage() {} -func (*Scheduling) Descriptor() ([]byte, []int) { - return fileDescriptor_82a78945ab308218, []int{4} -} -func (m *Scheduling) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Scheduling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Scheduling) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scheduling.Merge(m, src) -} -func (m *Scheduling) XXX_Size() int { - return m.Size() -} -func (m *Scheduling) XXX_DiscardUnknown() { - xxx_messageInfo_Scheduling.DiscardUnknown(m) -} - -var xxx_messageInfo_Scheduling proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Overhead)(nil), "k8s.io.api.node.v1alpha1.Overhead") - proto.RegisterMapType((k8s_io_api_core_v1.ResourceList)(nil), "k8s.io.api.node.v1alpha1.Overhead.PodFixedEntry") - proto.RegisterType((*RuntimeClass)(nil), "k8s.io.api.node.v1alpha1.RuntimeClass") - proto.RegisterType((*RuntimeClassList)(nil), "k8s.io.api.node.v1alpha1.RuntimeClassList") - proto.RegisterType((*RuntimeClassSpec)(nil), "k8s.io.api.node.v1alpha1.RuntimeClassSpec") - proto.RegisterType((*Scheduling)(nil), "k8s.io.api.node.v1alpha1.Scheduling") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.node.v1alpha1.Scheduling.NodeSelectorEntry") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1alpha1/generated.proto", fileDescriptor_82a78945ab308218) -} - -var fileDescriptor_82a78945ab308218 = []byte{ - // 698 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xbf, 0x6f, 0xd3, 0x4e, - 0x14, 0xcf, 0xa5, 0xad, 0x94, 0x5e, 0xd2, 0xaa, 0x5f, 0x7f, 0x2b, 0x14, 0x65, 0x70, 0x2a, 0x0b, - 0xa1, 0x0a, 0xa9, 0x67, 0x5a, 0xa1, 0xaa, 0x62, 0x00, 0x61, 0x7e, 0x08, 0x44, 0x69, 0xc1, 0x2d, - 0x0b, 0x62, 0xe0, 0x62, 0x3f, 0x1c, 0x13, 0xdb, 0x67, 0xd9, 0xe7, 0x88, 0x6c, 0x88, 0x05, 0x89, - 0x89, 0x89, 0xff, 0x06, 0xe6, 0x8e, 0x9d, 0x50, 0xa7, 0x96, 0x86, 0xff, 0x81, 0x81, 0x09, 0x9d, - 0x7d, 0x4e, 0x9c, 0xa4, 0xa1, 0x61, 0xf3, 0xdd, 0x7d, 0x7e, 0xdc, 0xfb, 0xbc, 0x7b, 0xc6, 0x77, - 0x3b, 0x3b, 0x31, 0x71, 0x99, 0xde, 0x49, 0x5a, 0x10, 0x05, 0xc0, 0x21, 0xd6, 0xbb, 0x10, 0xd8, - 0x2c, 0xd2, 0xe5, 0x01, 0x0d, 0x5d, 0x3d, 0x60, 0x36, 0xe8, 0xdd, 0x4d, 0xea, 0x85, 0x6d, 0xba, - 0xa9, 0x3b, 0x10, 0x40, 0x44, 0x39, 0xd8, 0x24, 0x8c, 0x18, 0x67, 0x4a, 0x3d, 0x43, 0x12, 0x1a, - 0xba, 0x44, 0x20, 0x49, 0x8e, 0x6c, 0x6c, 0x38, 0x2e, 0x6f, 0x27, 0x2d, 0x62, 0x31, 0x5f, 0x77, - 0x98, 0xc3, 0xf4, 0x94, 0xd0, 0x4a, 0xde, 0xa4, 0xab, 0x74, 0x91, 0x7e, 0x65, 0x42, 0x0d, 0xad, - 0x60, 0x69, 0xb1, 0x48, 0x58, 0x8e, 0x9b, 0x35, 0x6e, 0x0e, 0x31, 0x3e, 0xb5, 0xda, 0x6e, 0x00, - 0x51, 0x4f, 0x0f, 0x3b, 0x4e, 0x4a, 0x8a, 0x20, 0x66, 0x49, 0x64, 0xc1, 0x3f, 0xb1, 0x62, 0xdd, - 0x07, 0x4e, 0x2f, 0xf2, 0xd2, 0xa7, 0xb1, 0xa2, 0x24, 0xe0, 0xae, 0x3f, 0x69, 0xb3, 0x7d, 0x19, - 0x21, 0xb6, 0xda, 0xe0, 0xd3, 0x71, 0x9e, 0x76, 0x5c, 0xc6, 0x95, 0xfd, 0x2e, 0x44, 0x6d, 0xa0, - 0xb6, 0xf2, 0x1d, 0xe1, 0x4a, 0xc8, 0xec, 0x87, 0xee, 0x3b, 0xb0, 0xeb, 0x68, 0x6d, 0x6e, 0xbd, - 0xba, 0x75, 0x83, 0x4c, 0x8b, 0x98, 0xe4, 0x34, 0xf2, 0x4c, 0x52, 0x1e, 0x04, 0x3c, 0xea, 0x19, - 0x1f, 0xd1, 0xd1, 0x69, 0xb3, 0xd4, 0x3f, 0x6d, 0x56, 0xf2, 0xfd, 0xdf, 0xa7, 0xcd, 0xe6, 0x64, - 0xbe, 0xc4, 0x94, 0x91, 0xed, 0xba, 0x31, 0xff, 0x70, 0xf6, 0x57, 0xc8, 0x1e, 0xf5, 0xe1, 0xd3, - 0x59, 0x73, 0x63, 0x96, 0x0e, 0x90, 0xe7, 0x09, 0x0d, 0xb8, 0xcb, 0x7b, 0xe6, 0xa0, 0x96, 0x46, - 0x07, 0x2f, 0x8d, 0x5c, 0x52, 0x59, 0xc1, 0x73, 0x1d, 0xe8, 0xd5, 0xd1, 0x1a, 0x5a, 0x5f, 0x34, - 0xc5, 0xa7, 0x72, 0x1f, 0x2f, 0x74, 0xa9, 0x97, 0x40, 0xbd, 0xbc, 0x86, 0xd6, 0xab, 0x5b, 0xa4, - 0x50, 0xf7, 0xc0, 0x8b, 0x84, 0x1d, 0x27, 0x0d, 0x62, 0xd2, 0x2b, 0x23, 0xdf, 0x2a, 0xef, 0x20, - 0xed, 0x1b, 0xc2, 0x35, 0x33, 0x4b, 0xfd, 0x9e, 0x47, 0xe3, 0x58, 0x79, 0x8d, 0x2b, 0xa2, 0xcf, - 0x36, 0xe5, 0x34, 0x75, 0x1c, 0x4d, 0x75, 0x42, 0x3d, 0x26, 0x02, 0x4d, 0xba, 0x9b, 0x64, 0xbf, - 0xf5, 0x16, 0x2c, 0xfe, 0x14, 0x38, 0x35, 0x14, 0x19, 0x2a, 0x1e, 0xee, 0x99, 0x03, 0x55, 0x65, - 0x17, 0xcf, 0xc7, 0x21, 0x58, 0xf2, 0xee, 0xd7, 0xa7, 0xf7, 0xac, 0x78, 0xaf, 0x83, 0x10, 0x2c, - 0xa3, 0x26, 0x75, 0xe7, 0xc5, 0xca, 0x4c, 0x55, 0xb4, 0xaf, 0x08, 0xaf, 0x14, 0x81, 0xa2, 0x41, - 0xca, 0xab, 0x89, 0x22, 0xc8, 0x6c, 0x45, 0x08, 0x76, 0x5a, 0xc2, 0x4a, 0xfe, 0x2e, 0xf2, 0x9d, - 0x42, 0x01, 0x4f, 0xf0, 0x82, 0xcb, 0xc1, 0x8f, 0xeb, 0xe5, 0xf4, 0xd5, 0x5d, 0x9b, 0xad, 0x02, - 0x63, 0x49, 0x4a, 0x2e, 0x3c, 0x16, 0x64, 0x33, 0xd3, 0xd0, 0x7e, 0x8d, 0xdd, 0x5f, 0x94, 0xa6, - 0xdc, 0xc6, 0xcb, 0x72, 0x14, 0x1e, 0xd1, 0xc0, 0xf6, 0x20, 0xca, 0x9a, 0x6f, 0x5c, 0x91, 0x12, - 0xcb, 0xe6, 0xc8, 0xa9, 0x39, 0x86, 0x56, 0x76, 0x71, 0x85, 0xc9, 0x07, 0x2f, 0x63, 0xd6, 0x2e, - 0x1f, 0x0d, 0xa3, 0x26, 0xea, 0xcd, 0x57, 0xe6, 0x40, 0x41, 0x39, 0xc4, 0x58, 0x0c, 0xa4, 0x9d, - 0x78, 0x6e, 0xe0, 0xd4, 0xe7, 0x52, 0xbd, 0xab, 0xd3, 0xf5, 0x0e, 0x06, 0x58, 0x63, 0x59, 0x3c, - 0x82, 0xe1, 0xda, 0x2c, 0xe8, 0x68, 0x5f, 0xca, 0xb8, 0x70, 0xa4, 0x84, 0xb8, 0x26, 0x64, 0x0e, - 0xc0, 0x03, 0x8b, 0xb3, 0x48, 0x4e, 0xf4, 0xf6, 0x2c, 0x36, 0x64, 0xaf, 0x40, 0xcc, 0xe6, 0x7a, - 0x55, 0x06, 0x55, 0x2b, 0x1e, 0x99, 0x23, 0x0e, 0xca, 0x0b, 0x5c, 0xe5, 0xcc, 0x13, 0x3f, 0x18, - 0x97, 0x05, 0x79, 0x33, 0xd5, 0xa2, 0xa1, 0x98, 0x6c, 0xf1, 0x2a, 0x0e, 0x07, 0x30, 0xe3, 0x7f, - 0x29, 0x5c, 0x1d, 0xee, 0xc5, 0x66, 0x51, 0xa7, 0x71, 0x07, 0xff, 0x37, 0x71, 0x9f, 0x0b, 0x46, - 0x78, 0xb5, 0x38, 0xc2, 0x8b, 0x85, 0x91, 0x34, 0xc8, 0xd1, 0xb9, 0x5a, 0x3a, 0x3e, 0x57, 0x4b, - 0x27, 0xe7, 0x6a, 0xe9, 0x7d, 0x5f, 0x45, 0x47, 0x7d, 0x15, 0x1d, 0xf7, 0x55, 0x74, 0xd2, 0x57, - 0xd1, 0x8f, 0xbe, 0x8a, 0x3e, 0xff, 0x54, 0x4b, 0x2f, 0x2b, 0x79, 0x10, 0x7f, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xa8, 0x77, 0xef, 0x80, 0x9b, 0x06, 0x00, 0x00, -} - -func (m *Overhead) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Overhead) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Overhead) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodFixed) > 0 { - keysForPodFixed := make([]string, 0, len(m.PodFixed)) - for k := range m.PodFixed { - keysForPodFixed = append(keysForPodFixed, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForPodFixed) - for iNdEx := len(keysForPodFixed) - 1; iNdEx >= 0; iNdEx-- { - v := m.PodFixed[k8s_io_api_core_v1.ResourceName(keysForPodFixed[iNdEx])] - baseI := i - { - size, err := ((*resource.Quantity)(&v)).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForPodFixed[iNdEx]) - copy(dAtA[i:], keysForPodFixed[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForPodFixed[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RuntimeClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RuntimeClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RuntimeClassSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClassSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClassSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Scheduling != nil { - { - size, err := m.Scheduling.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Overhead != nil { - { - size, err := m.Overhead.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.RuntimeHandler) - copy(dAtA[i:], m.RuntimeHandler) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RuntimeHandler))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Scheduling) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Scheduling) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Scheduling) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Tolerations) > 0 { - for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.NodeSelector) > 0 { - keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) - for k := range m.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.NodeSelector[string(keysForNodeSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForNodeSelector[iNdEx]) - copy(dAtA[i:], keysForNodeSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Overhead) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PodFixed) > 0 { - for k, v := range m.PodFixed { - _ = k - _ = v - l = ((*resource.Quantity)(&v)).Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RuntimeClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RuntimeClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RuntimeClassSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RuntimeHandler) - n += 1 + l + sovGenerated(uint64(l)) - if m.Overhead != nil { - l = m.Overhead.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Scheduling != nil { - l = m.Scheduling.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *Scheduling) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NodeSelector) > 0 { - for k, v := range m.NodeSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Tolerations) > 0 { - for _, e := range m.Tolerations { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Overhead) String() string { - if this == nil { - return "nil" - } - keysForPodFixed := make([]string, 0, len(this.PodFixed)) - for k := range this.PodFixed { - keysForPodFixed = append(keysForPodFixed, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForPodFixed) - mapStringForPodFixed := "k8s_io_api_core_v1.ResourceList{" - for _, k := range keysForPodFixed { - mapStringForPodFixed += fmt.Sprintf("%v: %v,", k, this.PodFixed[k8s_io_api_core_v1.ResourceName(k)]) - } - mapStringForPodFixed += "}" - s := strings.Join([]string{`&Overhead{`, - `PodFixed:` + mapStringForPodFixed + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuntimeClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RuntimeClassSpec", "RuntimeClassSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RuntimeClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RuntimeClass", "RuntimeClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RuntimeClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClassSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuntimeClassSpec{`, - `RuntimeHandler:` + fmt.Sprintf("%v", this.RuntimeHandler) + `,`, - `Overhead:` + strings.Replace(this.Overhead.String(), "Overhead", "Overhead", 1) + `,`, - `Scheduling:` + strings.Replace(this.Scheduling.String(), "Scheduling", "Scheduling", 1) + `,`, - `}`, - }, "") - return s -} -func (this *Scheduling) String() string { - if this == nil { - return "nil" - } - repeatedStringForTolerations := "[]Toleration{" - for _, f := range this.Tolerations { - repeatedStringForTolerations += fmt.Sprintf("%v", f) + "," - } - repeatedStringForTolerations += "}" - keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) - for k := range this.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - mapStringForNodeSelector := "map[string]string{" - for _, k := range keysForNodeSelector { - mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) - } - mapStringForNodeSelector += "}" - s := strings.Join([]string{`&Scheduling{`, - `NodeSelector:` + mapStringForNodeSelector + `,`, - `Tolerations:` + repeatedStringForTolerations + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Overhead) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Overhead: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Overhead: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodFixed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodFixed == nil { - m.PodFixed = make(k8s_io_api_core_v1.ResourceList) - } - var mapkey k8s_io_api_core_v1.ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.PodFixed[k8s_io_api_core_v1.ResourceName(mapkey)] = ((k8s_io_apimachinery_pkg_api_resource.Quantity)(*mapvalue)) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RuntimeClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClassSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClassSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClassSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeHandler", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuntimeHandler = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Overhead", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Overhead == nil { - m.Overhead = &Overhead{} - } - if err := m.Overhead.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheduling", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scheduling == nil { - m.Scheduling = &Scheduling{} - } - if err := m.Scheduling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Scheduling) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Scheduling: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scheduling: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeSelector == nil { - m.NodeSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NodeSelector[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tolerations = append(m.Tolerations, v11.Toleration{}) - if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/node/v1alpha1/generated.proto b/pseudo/k8s/api/node/v1alpha1/generated.proto deleted file mode 100644 index d10435c75..000000000 --- a/pseudo/k8s/api/node/v1alpha1/generated.proto +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 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.node.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// Overhead structure represents the resource overhead associated with running a pod. -message Overhead { - // PodFixed represents the fixed resource overhead associated with running a pod. - // +optional - map podFixed = 1; -} - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are (currently) manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md -message RuntimeClass { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the RuntimeClass - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - optional RuntimeClassSpec spec = 2; -} - -// RuntimeClassList is a list of RuntimeClass objects. -message RuntimeClassList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated RuntimeClass items = 2; -} - -// RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters -// that are required to describe the RuntimeClass to the Container Runtime -// Interface (CRI) implementation, as well as any other components that need to -// understand how the pod will be run. The RuntimeClassSpec is immutable. -message RuntimeClassSpec { - // RuntimeHandler specifies the underlying runtime and configuration that the - // CRI implementation will use to handle pods of this class. The possible - // values are specific to the node & CRI configuration. It is assumed that - // all handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements - // and is immutable. - optional string runtimeHandler = 1; - - // Overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md - // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - // +optional - optional Overhead overhead = 2; - - // Scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - optional Scheduling scheduling = 3; -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -message Scheduling { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - map nodeSelector = 1; - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - repeated k8s.io.api.core.v1.Toleration tolerations = 2; -} - diff --git a/pseudo/k8s/api/node/v1alpha1/register.go b/pseudo/k8s/api/node/v1alpha1/register.go deleted file mode 100644 index b6a2702c4..000000000 --- a/pseudo/k8s/api/node/v1alpha1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "node.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - // SchemeBuilder is the scheme builder with scheme init functions to run for this API package - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme - AddToScheme = SchemeBuilder.AddToScheme -) - -// addKnownTypes adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &RuntimeClass{}, - &RuntimeClassList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/node/v1alpha1/types.go b/pseudo/k8s/api/node/v1alpha1/types.go deleted file mode 100644 index f8781953e..000000000 --- a/pseudo/k8s/api/node/v1alpha1/types.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 v1alpha1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are (currently) manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md -type RuntimeClass struct { - metav1.TypeMeta `json:",inline"` - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the RuntimeClass - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - Spec RuntimeClassSpec `json:"spec" protobuf:"bytes,2,name=spec"` -} - -// RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters -// that are required to describe the RuntimeClass to the Container Runtime -// Interface (CRI) implementation, as well as any other components that need to -// understand how the pod will be run. The RuntimeClassSpec is immutable. -type RuntimeClassSpec struct { - // RuntimeHandler specifies the underlying runtime and configuration that the - // CRI implementation will use to handle pods of this class. The possible - // values are specific to the node & CRI configuration. It is assumed that - // all handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements - // and is immutable. - RuntimeHandler string `json:"runtimeHandler" protobuf:"bytes,1,opt,name=runtimeHandler"` - - // Overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md - // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - // +optional - Overhead *Overhead `json:"overhead,omitempty" protobuf:"bytes,2,opt,name=overhead"` - - // Scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - Scheduling *Scheduling `json:"scheduling,omitempty" protobuf:"bytes,3,opt,name=scheduling"` -} - -// Overhead structure represents the resource overhead associated with running a pod. -type Overhead struct { - // PodFixed represents the fixed resource overhead associated with running a pod. - // +optional - PodFixed corev1.ResourceList `json:"podFixed,omitempty" protobuf:"bytes,1,opt,name=podFixed,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ResourceList,castkey=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ResourceName,castvalue=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource.Quantity"` -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -type Scheduling struct { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,1,opt,name=nodeSelector"` - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,2,rep,name=tolerations"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RuntimeClassList is a list of RuntimeClass objects. -type RuntimeClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []RuntimeClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/node/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/node/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 390000172..000000000 --- a/pseudo/k8s/api/node/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_Overhead = map[string]string{ - "": "Overhead structure represents the resource overhead associated with running a pod.", - "podFixed": "PodFixed represents the fixed resource overhead associated with running a pod.", -} - -func (Overhead) SwaggerDoc() map[string]string { - return map_Overhead -} - -var map_RuntimeClass = map[string]string{ - "": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", -} - -func (RuntimeClass) SwaggerDoc() map[string]string { - return map_RuntimeClass -} - -var map_RuntimeClassList = map[string]string{ - "": "RuntimeClassList is a list of RuntimeClass objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (RuntimeClassList) SwaggerDoc() map[string]string { - return map_RuntimeClassList -} - -var map_RuntimeClassSpec = map[string]string{ - "": "RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.", - "runtimeHandler": "RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable.", - "overhead": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature.", - "scheduling": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.", -} - -func (RuntimeClassSpec) SwaggerDoc() map[string]string { - return map_RuntimeClassSpec -} - -var map_Scheduling = map[string]string{ - "": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "nodeSelector": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "tolerations": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", -} - -func (Scheduling) SwaggerDoc() map[string]string { - return map_Scheduling -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/node/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/node/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 42459831e..000000000 --- a/pseudo/k8s/api/node/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,165 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Overhead) DeepCopyInto(out *Overhead) { - *out = *in - if in.PodFixed != nil { - in, out := &in.PodFixed, &out.PodFixed - *out = make(v1.ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overhead. -func (in *Overhead) DeepCopy() *Overhead { - if in == nil { - return nil - } - out := new(Overhead) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClass. -func (in *RuntimeClass) DeepCopy() *RuntimeClass { - if in == nil { - return nil - } - out := new(RuntimeClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RuntimeClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RuntimeClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassList. -func (in *RuntimeClassList) DeepCopy() *RuntimeClassList { - if in == nil { - return nil - } - out := new(RuntimeClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RuntimeClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClassSpec) DeepCopyInto(out *RuntimeClassSpec) { - *out = *in - if in.Overhead != nil { - in, out := &in.Overhead, &out.Overhead - *out = new(Overhead) - (*in).DeepCopyInto(*out) - } - if in.Scheduling != nil { - in, out := &in.Scheduling, &out.Scheduling - *out = new(Scheduling) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassSpec. -func (in *RuntimeClassSpec) DeepCopy() *RuntimeClassSpec { - if in == nil { - return nil - } - out := new(RuntimeClassSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Scheduling) DeepCopyInto(out *Scheduling) { - *out = *in - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Tolerations != nil { - in, out := &in.Tolerations, &out.Tolerations - *out = make([]v1.Toleration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling. -func (in *Scheduling) DeepCopy() *Scheduling { - if in == nil { - return nil - } - out := new(Scheduling) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/node/v1beta1/doc.go b/pseudo/k8s/api/node/v1beta1/doc.go deleted file mode 100644 index f6a259096..000000000 --- a/pseudo/k8s/api/node/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2019 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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=node.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1beta1" diff --git a/pseudo/k8s/api/node/v1beta1/generated.pb.go b/pseudo/k8s/api/node/v1beta1/generated.pb.go deleted file mode 100644 index 6bee06fc3..000000000 --- a/pseudo/k8s/api/node/v1beta1/generated.pb.go +++ /dev/null @@ -1,1438 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - k8s_io_apimachinery_pkg_api_resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - resource "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Overhead) Reset() { *m = Overhead{} } -func (*Overhead) ProtoMessage() {} -func (*Overhead) Descriptor() ([]byte, []int) { - return fileDescriptor_f977b0dddc93b4ec, []int{0} -} -func (m *Overhead) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Overhead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Overhead) XXX_Merge(src proto.Message) { - xxx_messageInfo_Overhead.Merge(m, src) -} -func (m *Overhead) XXX_Size() int { - return m.Size() -} -func (m *Overhead) XXX_DiscardUnknown() { - xxx_messageInfo_Overhead.DiscardUnknown(m) -} - -var xxx_messageInfo_Overhead proto.InternalMessageInfo - -func (m *RuntimeClass) Reset() { *m = RuntimeClass{} } -func (*RuntimeClass) ProtoMessage() {} -func (*RuntimeClass) Descriptor() ([]byte, []int) { - return fileDescriptor_f977b0dddc93b4ec, []int{1} -} -func (m *RuntimeClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClass.Merge(m, src) -} -func (m *RuntimeClass) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClass) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClass.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClass proto.InternalMessageInfo - -func (m *RuntimeClassList) Reset() { *m = RuntimeClassList{} } -func (*RuntimeClassList) ProtoMessage() {} -func (*RuntimeClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_f977b0dddc93b4ec, []int{2} -} -func (m *RuntimeClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClassList.Merge(m, src) -} -func (m *RuntimeClassList) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClassList) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClassList proto.InternalMessageInfo - -func (m *Scheduling) Reset() { *m = Scheduling{} } -func (*Scheduling) ProtoMessage() {} -func (*Scheduling) Descriptor() ([]byte, []int) { - return fileDescriptor_f977b0dddc93b4ec, []int{3} -} -func (m *Scheduling) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Scheduling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Scheduling) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scheduling.Merge(m, src) -} -func (m *Scheduling) XXX_Size() int { - return m.Size() -} -func (m *Scheduling) XXX_DiscardUnknown() { - xxx_messageInfo_Scheduling.DiscardUnknown(m) -} - -var xxx_messageInfo_Scheduling proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Overhead)(nil), "k8s.io.api.node.v1beta1.Overhead") - proto.RegisterMapType((k8s_io_api_core_v1.ResourceList)(nil), "k8s.io.api.node.v1beta1.Overhead.PodFixedEntry") - proto.RegisterType((*RuntimeClass)(nil), "k8s.io.api.node.v1beta1.RuntimeClass") - proto.RegisterType((*RuntimeClassList)(nil), "k8s.io.api.node.v1beta1.RuntimeClassList") - proto.RegisterType((*Scheduling)(nil), "k8s.io.api.node.v1beta1.Scheduling") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.node.v1beta1.Scheduling.NodeSelectorEntry") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1beta1/generated.proto", fileDescriptor_f977b0dddc93b4ec) -} - -var fileDescriptor_f977b0dddc93b4ec = []byte{ - // 666 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xbd, 0x6f, 0xd3, 0x40, - 0x14, 0xcf, 0xa5, 0x54, 0x4d, 0x2f, 0x29, 0x14, 0x53, 0x89, 0x28, 0x83, 0x53, 0x82, 0x90, 0xca, - 0xd0, 0x33, 0xad, 0x00, 0x55, 0x2c, 0x20, 0xf3, 0x21, 0x3e, 0x5b, 0x70, 0x61, 0x41, 0x0c, 0x5c, - 0xec, 0x87, 0x63, 0x12, 0xfb, 0xa2, 0xf3, 0x39, 0x22, 0x1b, 0x62, 0x41, 0x62, 0x62, 0xe1, 0xbf, - 0x81, 0xbd, 0x1b, 0x5d, 0x90, 0x3a, 0xb5, 0x34, 0xfc, 0x17, 0x4c, 0xe8, 0xec, 0x73, 0x72, 0x6d, - 0x9a, 0xb6, 0x6c, 0xbe, 0xf3, 0xef, 0xe3, 0xbd, 0xdf, 0xbb, 0x87, 0xef, 0xb4, 0xd7, 0x62, 0x12, - 0x30, 0xab, 0x9d, 0x34, 0x81, 0x47, 0x20, 0x20, 0xb6, 0x7a, 0x10, 0x79, 0x8c, 0x5b, 0xea, 0x07, - 0xed, 0x06, 0x56, 0xc4, 0x3c, 0xb0, 0x7a, 0x2b, 0x4d, 0x10, 0x74, 0xc5, 0xf2, 0x21, 0x02, 0x4e, - 0x05, 0x78, 0xa4, 0xcb, 0x99, 0x60, 0xc6, 0xc5, 0x0c, 0x48, 0x68, 0x37, 0x20, 0x12, 0x48, 0x14, - 0xb0, 0xb6, 0xec, 0x07, 0xa2, 0x95, 0x34, 0x89, 0xcb, 0x42, 0xcb, 0x67, 0x3e, 0xb3, 0x52, 0x7c, - 0x33, 0x79, 0x97, 0x9e, 0xd2, 0x43, 0xfa, 0x95, 0xe9, 0xd4, 0x1a, 0x9a, 0xa1, 0xcb, 0xb8, 0x34, - 0x3c, 0xec, 0x55, 0xbb, 0x3e, 0xc2, 0x84, 0xd4, 0x6d, 0x05, 0x11, 0xf0, 0xbe, 0xd5, 0x6d, 0xfb, - 0x29, 0x89, 0x43, 0xcc, 0x12, 0xee, 0xc2, 0x7f, 0xb1, 0x62, 0x2b, 0x04, 0x41, 0x8f, 0xf2, 0xb2, - 0x26, 0xb1, 0x78, 0x12, 0x89, 0x20, 0x1c, 0xb7, 0xb9, 0x79, 0x12, 0x21, 0x76, 0x5b, 0x10, 0xd2, - 0xc3, 0xbc, 0xc6, 0xcf, 0x22, 0x2e, 0x6d, 0xf4, 0x80, 0xb7, 0x80, 0x7a, 0xc6, 0x2f, 0x84, 0x4b, - 0x5d, 0xe6, 0x3d, 0x08, 0x3e, 0x80, 0x57, 0x45, 0x8b, 0x53, 0x4b, 0xe5, 0x55, 0x8b, 0x4c, 0x48, - 0x98, 0xe4, 0x2c, 0xf2, 0x5c, 0x31, 0xee, 0x47, 0x82, 0xf7, 0xed, 0xcf, 0x68, 0x6b, 0xb7, 0x5e, - 0x18, 0xec, 0xd6, 0x4b, 0xf9, 0xfd, 0xdf, 0xdd, 0x7a, 0x7d, 0x3c, 0x5e, 0xe2, 0xa8, 0xc4, 0x9e, - 0x06, 0xb1, 0xf8, 0xb4, 0x77, 0x2c, 0x64, 0x9d, 0x86, 0xf0, 0x65, 0xaf, 0xbe, 0x7c, 0x9a, 0x01, - 0x90, 0x17, 0x09, 0x8d, 0x44, 0x20, 0xfa, 0xce, 0xb0, 0x95, 0x5a, 0x1b, 0xcf, 0x1d, 0x28, 0xd2, - 0x98, 0xc7, 0x53, 0x6d, 0xe8, 0x57, 0xd1, 0x22, 0x5a, 0x9a, 0x75, 0xe4, 0xa7, 0x71, 0x0f, 0x4f, - 0xf7, 0x68, 0x27, 0x81, 0x6a, 0x71, 0x11, 0x2d, 0x95, 0x57, 0x89, 0xd6, 0xf6, 0xd0, 0x8b, 0x74, - 0xdb, 0x7e, 0x9a, 0xc3, 0xb8, 0x57, 0x46, 0xbe, 0x55, 0x5c, 0x43, 0x8d, 0x1f, 0x45, 0x5c, 0x71, - 0xb2, 0xd0, 0xef, 0x76, 0x68, 0x1c, 0x1b, 0x6f, 0x71, 0x49, 0x8e, 0xd9, 0xa3, 0x82, 0xa6, 0x8e, - 0xe5, 0xd5, 0x6b, 0xc7, 0xa9, 0xc7, 0x44, 0xa2, 0x49, 0x6f, 0x85, 0x6c, 0x34, 0xdf, 0x83, 0x2b, - 0x9e, 0x81, 0xa0, 0xb6, 0xa1, 0x42, 0xc5, 0xa3, 0x3b, 0x67, 0xa8, 0x6a, 0x5c, 0xc5, 0x33, 0x2d, - 0x1a, 0x79, 0x1d, 0xe0, 0x69, 0xf9, 0xb3, 0xf6, 0x39, 0x05, 0x9f, 0x79, 0x98, 0x5d, 0x3b, 0xf9, - 0x7f, 0xe3, 0x09, 0x2e, 0x31, 0x35, 0xb8, 0xea, 0x54, 0x5a, 0xcc, 0xa5, 0x13, 0x27, 0x6c, 0x57, - 0xe4, 0x38, 0xf3, 0x93, 0x33, 0x14, 0x30, 0x36, 0x31, 0x96, 0xcf, 0xca, 0x4b, 0x3a, 0x41, 0xe4, - 0x57, 0xcf, 0xa4, 0x72, 0x97, 0x27, 0xca, 0x6d, 0x0e, 0xa1, 0xf6, 0x59, 0xd9, 0xca, 0xe8, 0xec, - 0x68, 0x32, 0x8d, 0xef, 0x08, 0xcf, 0xeb, 0xf9, 0xc9, 0xf7, 0x61, 0xbc, 0x19, 0xcb, 0x90, 0x9c, - 0x2e, 0x43, 0xc9, 0x4e, 0x13, 0x9c, 0xcf, 0x9f, 0x65, 0x7e, 0xa3, 0xe5, 0xf7, 0x18, 0x4f, 0x07, - 0x02, 0xc2, 0xb8, 0x5a, 0x4c, 0xdf, 0xfc, 0x95, 0x89, 0x2d, 0xe8, 0x75, 0xd9, 0x73, 0x4a, 0x71, - 0xfa, 0x91, 0xe4, 0x3a, 0x99, 0x44, 0xe3, 0x5b, 0x11, 0x6b, 0x9d, 0x19, 0x0c, 0x57, 0xa4, 0xc2, - 0x26, 0x74, 0xc0, 0x15, 0x8c, 0xab, 0xad, 0xba, 0x71, 0x8a, 0x90, 0xc8, 0xba, 0xc6, 0xcb, 0x76, - 0x6b, 0x41, 0x39, 0x56, 0xf4, 0x5f, 0xce, 0x01, 0x03, 0xe3, 0x15, 0x2e, 0x0b, 0xd6, 0x91, 0x3b, - 0x1e, 0xb0, 0x28, 0xef, 0xc8, 0xd4, 0xfd, 0xe4, 0x76, 0xc9, 0x68, 0x5e, 0x0e, 0x61, 0xf6, 0x05, - 0x25, 0x5c, 0x1e, 0xdd, 0xc5, 0x8e, 0xae, 0x53, 0xbb, 0x8d, 0xcf, 0x8f, 0xd5, 0x73, 0xc4, 0x1a, - 0x2d, 0xe8, 0x6b, 0x34, 0xab, 0xad, 0x85, 0xbd, 0xbc, 0xb5, 0x6f, 0x16, 0xb6, 0xf7, 0xcd, 0xc2, - 0xce, 0xbe, 0x59, 0xf8, 0x38, 0x30, 0xd1, 0xd6, 0xc0, 0x44, 0xdb, 0x03, 0x13, 0xed, 0x0c, 0x4c, - 0xf4, 0x7b, 0x60, 0xa2, 0xaf, 0x7f, 0xcc, 0xc2, 0xeb, 0x19, 0x95, 0xc3, 0xbf, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x5b, 0xcf, 0x13, 0x0c, 0x1b, 0x06, 0x00, 0x00, -} - -func (m *Overhead) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Overhead) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Overhead) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PodFixed) > 0 { - keysForPodFixed := make([]string, 0, len(m.PodFixed)) - for k := range m.PodFixed { - keysForPodFixed = append(keysForPodFixed, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForPodFixed) - for iNdEx := len(keysForPodFixed) - 1; iNdEx >= 0; iNdEx-- { - v := m.PodFixed[k8s_io_api_core_v1.ResourceName(keysForPodFixed[iNdEx])] - baseI := i - { - size, err := ((*resource.Quantity)(&v)).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForPodFixed[iNdEx]) - copy(dAtA[i:], keysForPodFixed[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForPodFixed[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RuntimeClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Scheduling != nil { - { - size, err := m.Scheduling.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Overhead != nil { - { - size, err := m.Overhead.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - i -= len(m.Handler) - copy(dAtA[i:], m.Handler) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Handler))) - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RuntimeClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Scheduling) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Scheduling) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Scheduling) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Tolerations) > 0 { - for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.NodeSelector) > 0 { - keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) - for k := range m.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.NodeSelector[string(keysForNodeSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForNodeSelector[iNdEx]) - copy(dAtA[i:], keysForNodeSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Overhead) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PodFixed) > 0 { - for k, v := range m.PodFixed { - _ = k - _ = v - l = ((*resource.Quantity)(&v)).Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - return n -} - -func (m *RuntimeClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Handler) - n += 1 + l + sovGenerated(uint64(l)) - if m.Overhead != nil { - l = m.Overhead.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Scheduling != nil { - l = m.Scheduling.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RuntimeClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Scheduling) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NodeSelector) > 0 { - for k, v := range m.NodeSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Tolerations) > 0 { - for _, e := range m.Tolerations { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Overhead) String() string { - if this == nil { - return "nil" - } - keysForPodFixed := make([]string, 0, len(this.PodFixed)) - for k := range this.PodFixed { - keysForPodFixed = append(keysForPodFixed, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForPodFixed) - mapStringForPodFixed := "k8s_io_api_core_v1.ResourceList{" - for _, k := range keysForPodFixed { - mapStringForPodFixed += fmt.Sprintf("%v: %v,", k, this.PodFixed[k8s_io_api_core_v1.ResourceName(k)]) - } - mapStringForPodFixed += "}" - s := strings.Join([]string{`&Overhead{`, - `PodFixed:` + mapStringForPodFixed + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuntimeClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Handler:` + fmt.Sprintf("%v", this.Handler) + `,`, - `Overhead:` + strings.Replace(this.Overhead.String(), "Overhead", "Overhead", 1) + `,`, - `Scheduling:` + strings.Replace(this.Scheduling.String(), "Scheduling", "Scheduling", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RuntimeClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RuntimeClass", "RuntimeClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RuntimeClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *Scheduling) String() string { - if this == nil { - return "nil" - } - repeatedStringForTolerations := "[]Toleration{" - for _, f := range this.Tolerations { - repeatedStringForTolerations += fmt.Sprintf("%v", f) + "," - } - repeatedStringForTolerations += "}" - keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) - for k := range this.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - mapStringForNodeSelector := "map[string]string{" - for _, k := range keysForNodeSelector { - mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) - } - mapStringForNodeSelector += "}" - s := strings.Join([]string{`&Scheduling{`, - `NodeSelector:` + mapStringForNodeSelector + `,`, - `Tolerations:` + repeatedStringForTolerations + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Overhead) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Overhead: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Overhead: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PodFixed", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PodFixed == nil { - m.PodFixed = make(k8s_io_api_core_v1.ResourceList) - } - var mapkey k8s_io_api_core_v1.ResourceName - mapvalue := &resource.Quantity{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = k8s_io_api_core_v1.ResourceName(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &resource.Quantity{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.PodFixed[k8s_io_api_core_v1.ResourceName(mapkey)] = ((k8s_io_apimachinery_pkg_api_resource.Quantity)(*mapvalue)) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Handler", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Handler = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Overhead", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Overhead == nil { - m.Overhead = &Overhead{} - } - if err := m.Overhead.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Scheduling", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Scheduling == nil { - m.Scheduling = &Scheduling{} - } - if err := m.Scheduling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RuntimeClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Scheduling) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Scheduling: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Scheduling: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeSelector == nil { - m.NodeSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NodeSelector[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tolerations = append(m.Tolerations, v11.Toleration{}) - if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/node/v1beta1/generated.proto b/pseudo/k8s/api/node/v1beta1/generated.proto deleted file mode 100644 index 55c1c521b..000000000 --- a/pseudo/k8s/api/node/v1beta1/generated.proto +++ /dev/null @@ -1,108 +0,0 @@ -/* -Copyright 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.node.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// Overhead structure represents the resource overhead associated with running a pod. -message Overhead { - // PodFixed represents the fixed resource overhead associated with running a pod. - // +optional - map podFixed = 1; -} - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are (currently) manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md -message RuntimeClass { - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Handler specifies the underlying runtime and configuration that the CRI - // implementation will use to handle pods of this class. The possible values - // are specific to the node & CRI configuration. It is assumed that all - // handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The Handler must conform to the DNS Label (RFC 1123) requirements, and is - // immutable. - optional string handler = 2; - - // Overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md - // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - // +optional - optional Overhead overhead = 3; - - // Scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - optional Scheduling scheduling = 4; -} - -// RuntimeClassList is a list of RuntimeClass objects. -message RuntimeClassList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated RuntimeClass items = 2; -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -message Scheduling { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - map nodeSelector = 1; - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - repeated k8s.io.api.core.v1.Toleration tolerations = 2; -} - diff --git a/pseudo/k8s/api/node/v1beta1/register.go b/pseudo/k8s/api/node/v1beta1/register.go deleted file mode 100644 index 5257e6aec..000000000 --- a/pseudo/k8s/api/node/v1beta1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2019 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "node.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 ( - // SchemeBuilder is the scheme builder with scheme init functions to run for this API package - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme - AddToScheme = SchemeBuilder.AddToScheme -) - -// addKnownTypes adds the list of known types to api.Scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &RuntimeClass{}, - &RuntimeClassList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/node/v1beta1/types.go b/pseudo/k8s/api/node/v1beta1/types.go deleted file mode 100644 index 69cb0d6bc..000000000 --- a/pseudo/k8s/api/node/v1beta1/types.go +++ /dev/null @@ -1,106 +0,0 @@ -/* -Copyright 2019 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 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RuntimeClass defines a class of container runtime supported in the cluster. -// The RuntimeClass is used to determine which container runtime is used to run -// all containers in a pod. RuntimeClasses are (currently) manually defined by a -// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is -// responsible for resolving the RuntimeClassName reference before running the -// pod. For more details, see -// https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md -type RuntimeClass struct { - metav1.TypeMeta `json:",inline"` - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Handler specifies the underlying runtime and configuration that the CRI - // implementation will use to handle pods of this class. The possible values - // are specific to the node & CRI configuration. It is assumed that all - // handlers are available on every node, and handlers of the same name are - // equivalent on every node. - // For example, a handler called "runc" might specify that the runc OCI - // runtime (using native Linux containers) will be used to run the containers - // in a pod. - // The Handler must conform to the DNS Label (RFC 1123) requirements, and is - // immutable. - Handler string `json:"handler" protobuf:"bytes,2,opt,name=handler"` - - // Overhead represents the resource overhead associated with running a pod for a - // given RuntimeClass. For more details, see - // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md - // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - // +optional - Overhead *Overhead `json:"overhead,omitempty" protobuf:"bytes,3,opt,name=overhead"` - - // Scheduling holds the scheduling constraints to ensure that pods running - // with this RuntimeClass are scheduled to nodes that support it. - // If scheduling is nil, this RuntimeClass is assumed to be supported by all - // nodes. - // +optional - Scheduling *Scheduling `json:"scheduling,omitempty" protobuf:"bytes,4,opt,name=scheduling"` -} - -// Overhead structure represents the resource overhead associated with running a pod. -type Overhead struct { - // PodFixed represents the fixed resource overhead associated with running a pod. - // +optional - PodFixed corev1.ResourceList `json:"podFixed,omitempty" protobuf:"bytes,1,opt,name=podFixed,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ResourceList,castkey=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.ResourceName,castvalue=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource.Quantity"` -} - -// Scheduling specifies the scheduling constraints for nodes supporting a -// RuntimeClass. -type Scheduling struct { - // nodeSelector lists labels that must be present on nodes that support this - // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a - // node matched by this selector. The RuntimeClass nodeSelector is merged - // with a pod's existing nodeSelector. Any conflicts will cause the pod to - // be rejected in admission. - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,1,opt,name=nodeSelector"` - - // tolerations are appended (excluding duplicates) to pods running with this - // RuntimeClass during admission, effectively unioning the set of nodes - // tolerated by the pod and the RuntimeClass. - // +optional - // +listType=atomic - Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,2,rep,name=tolerations"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RuntimeClassList is a list of RuntimeClass objects. -type RuntimeClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []RuntimeClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/node/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/node/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 681f73f23..000000000 --- a/pseudo/k8s/api/node/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,71 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_Overhead = map[string]string{ - "": "Overhead structure represents the resource overhead associated with running a pod.", - "podFixed": "PodFixed represents the fixed resource overhead associated with running a pod.", -} - -func (Overhead) SwaggerDoc() map[string]string { - return map_Overhead -} - -var map_RuntimeClass = map[string]string{ - "": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md", - "metadata": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "handler": "Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable.", - "overhead": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature.", - "scheduling": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.", -} - -func (RuntimeClass) SwaggerDoc() map[string]string { - return map_RuntimeClass -} - -var map_RuntimeClassList = map[string]string{ - "": "RuntimeClassList is a list of RuntimeClass objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (RuntimeClassList) SwaggerDoc() map[string]string { - return map_RuntimeClassList -} - -var map_Scheduling = map[string]string{ - "": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", - "nodeSelector": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "tolerations": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", -} - -func (Scheduling) SwaggerDoc() map[string]string { - return map_Scheduling -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/node/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/node/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index e6b098f9f..000000000 --- a/pseudo/k8s/api/node/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,148 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Overhead) DeepCopyInto(out *Overhead) { - *out = *in - if in.PodFixed != nil { - in, out := &in.PodFixed, &out.PodFixed - *out = make(v1.ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Overhead. -func (in *Overhead) DeepCopy() *Overhead { - if in == nil { - return nil - } - out := new(Overhead) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Overhead != nil { - in, out := &in.Overhead, &out.Overhead - *out = new(Overhead) - (*in).DeepCopyInto(*out) - } - if in.Scheduling != nil { - in, out := &in.Scheduling, &out.Scheduling - *out = new(Scheduling) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClass. -func (in *RuntimeClass) DeepCopy() *RuntimeClass { - if in == nil { - return nil - } - out := new(RuntimeClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RuntimeClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RuntimeClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassList. -func (in *RuntimeClassList) DeepCopy() *RuntimeClassList { - if in == nil { - return nil - } - out := new(RuntimeClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RuntimeClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Scheduling) DeepCopyInto(out *Scheduling) { - *out = *in - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Tolerations != nil { - in, out := &in.Tolerations, &out.Tolerations - *out = make([]v1.Toleration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scheduling. -func (in *Scheduling) DeepCopy() *Scheduling { - if in == nil { - return nil - } - out := new(Scheduling) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/policy/v1beta1/doc.go b/pseudo/k8s/api/policy/v1beta1/doc.go deleted file mode 100644 index 51c2db4d8..000000000 --- a/pseudo/k8s/api/policy/v1beta1/doc.go +++ /dev/null @@ -1,24 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -// Package policy is for any kind of policy object. Suitable examples, even if -// they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, -// NetworkPolicy, etc. -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/policy/v1beta1" diff --git a/pseudo/k8s/api/policy/v1beta1/generated.pb.go b/pseudo/k8s/api/policy/v1beta1/generated.pb.go deleted file mode 100644 index 0b7de153d..000000000 --- a/pseudo/k8s/api/policy/v1beta1/generated.pb.go +++ /dev/null @@ -1,5587 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/policy/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AllowedCSIDriver) Reset() { *m = AllowedCSIDriver{} } -func (*AllowedCSIDriver) ProtoMessage() {} -func (*AllowedCSIDriver) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{0} -} -func (m *AllowedCSIDriver) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllowedCSIDriver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AllowedCSIDriver) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllowedCSIDriver.Merge(m, src) -} -func (m *AllowedCSIDriver) XXX_Size() int { - return m.Size() -} -func (m *AllowedCSIDriver) XXX_DiscardUnknown() { - xxx_messageInfo_AllowedCSIDriver.DiscardUnknown(m) -} - -var xxx_messageInfo_AllowedCSIDriver proto.InternalMessageInfo - -func (m *AllowedFlexVolume) Reset() { *m = AllowedFlexVolume{} } -func (*AllowedFlexVolume) ProtoMessage() {} -func (*AllowedFlexVolume) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{1} -} -func (m *AllowedFlexVolume) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllowedFlexVolume) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AllowedFlexVolume) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllowedFlexVolume.Merge(m, src) -} -func (m *AllowedFlexVolume) XXX_Size() int { - return m.Size() -} -func (m *AllowedFlexVolume) XXX_DiscardUnknown() { - xxx_messageInfo_AllowedFlexVolume.DiscardUnknown(m) -} - -var xxx_messageInfo_AllowedFlexVolume proto.InternalMessageInfo - -func (m *AllowedHostPath) Reset() { *m = AllowedHostPath{} } -func (*AllowedHostPath) ProtoMessage() {} -func (*AllowedHostPath) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{2} -} -func (m *AllowedHostPath) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AllowedHostPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AllowedHostPath) XXX_Merge(src proto.Message) { - xxx_messageInfo_AllowedHostPath.Merge(m, src) -} -func (m *AllowedHostPath) XXX_Size() int { - return m.Size() -} -func (m *AllowedHostPath) XXX_DiscardUnknown() { - xxx_messageInfo_AllowedHostPath.DiscardUnknown(m) -} - -var xxx_messageInfo_AllowedHostPath proto.InternalMessageInfo - -func (m *Eviction) Reset() { *m = Eviction{} } -func (*Eviction) ProtoMessage() {} -func (*Eviction) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{3} -} -func (m *Eviction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Eviction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Eviction) XXX_Merge(src proto.Message) { - xxx_messageInfo_Eviction.Merge(m, src) -} -func (m *Eviction) XXX_Size() int { - return m.Size() -} -func (m *Eviction) XXX_DiscardUnknown() { - xxx_messageInfo_Eviction.DiscardUnknown(m) -} - -var xxx_messageInfo_Eviction proto.InternalMessageInfo - -func (m *FSGroupStrategyOptions) Reset() { *m = FSGroupStrategyOptions{} } -func (*FSGroupStrategyOptions) ProtoMessage() {} -func (*FSGroupStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{4} -} -func (m *FSGroupStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FSGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FSGroupStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_FSGroupStrategyOptions.Merge(m, src) -} -func (m *FSGroupStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *FSGroupStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_FSGroupStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_FSGroupStrategyOptions proto.InternalMessageInfo - -func (m *HostPortRange) Reset() { *m = HostPortRange{} } -func (*HostPortRange) ProtoMessage() {} -func (*HostPortRange) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{5} -} -func (m *HostPortRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostPortRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *HostPortRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostPortRange.Merge(m, src) -} -func (m *HostPortRange) XXX_Size() int { - return m.Size() -} -func (m *HostPortRange) XXX_DiscardUnknown() { - xxx_messageInfo_HostPortRange.DiscardUnknown(m) -} - -var xxx_messageInfo_HostPortRange proto.InternalMessageInfo - -func (m *IDRange) Reset() { *m = IDRange{} } -func (*IDRange) ProtoMessage() {} -func (*IDRange) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{6} -} -func (m *IDRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IDRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IDRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_IDRange.Merge(m, src) -} -func (m *IDRange) XXX_Size() int { - return m.Size() -} -func (m *IDRange) XXX_DiscardUnknown() { - xxx_messageInfo_IDRange.DiscardUnknown(m) -} - -var xxx_messageInfo_IDRange proto.InternalMessageInfo - -func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} } -func (*PodDisruptionBudget) ProtoMessage() {} -func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{7} -} -func (m *PodDisruptionBudget) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodDisruptionBudget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodDisruptionBudget) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodDisruptionBudget.Merge(m, src) -} -func (m *PodDisruptionBudget) XXX_Size() int { - return m.Size() -} -func (m *PodDisruptionBudget) XXX_DiscardUnknown() { - xxx_messageInfo_PodDisruptionBudget.DiscardUnknown(m) -} - -var xxx_messageInfo_PodDisruptionBudget proto.InternalMessageInfo - -func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} } -func (*PodDisruptionBudgetList) ProtoMessage() {} -func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{8} -} -func (m *PodDisruptionBudgetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodDisruptionBudgetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodDisruptionBudgetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodDisruptionBudgetList.Merge(m, src) -} -func (m *PodDisruptionBudgetList) XXX_Size() int { - return m.Size() -} -func (m *PodDisruptionBudgetList) XXX_DiscardUnknown() { - xxx_messageInfo_PodDisruptionBudgetList.DiscardUnknown(m) -} - -var xxx_messageInfo_PodDisruptionBudgetList proto.InternalMessageInfo - -func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} } -func (*PodDisruptionBudgetSpec) ProtoMessage() {} -func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{9} -} -func (m *PodDisruptionBudgetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodDisruptionBudgetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodDisruptionBudgetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodDisruptionBudgetSpec.Merge(m, src) -} -func (m *PodDisruptionBudgetSpec) XXX_Size() int { - return m.Size() -} -func (m *PodDisruptionBudgetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_PodDisruptionBudgetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PodDisruptionBudgetSpec proto.InternalMessageInfo - -func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} } -func (*PodDisruptionBudgetStatus) ProtoMessage() {} -func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{10} -} -func (m *PodDisruptionBudgetStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodDisruptionBudgetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodDisruptionBudgetStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodDisruptionBudgetStatus.Merge(m, src) -} -func (m *PodDisruptionBudgetStatus) XXX_Size() int { - return m.Size() -} -func (m *PodDisruptionBudgetStatus) XXX_DiscardUnknown() { - xxx_messageInfo_PodDisruptionBudgetStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_PodDisruptionBudgetStatus proto.InternalMessageInfo - -func (m *PodSecurityPolicy) Reset() { *m = PodSecurityPolicy{} } -func (*PodSecurityPolicy) ProtoMessage() {} -func (*PodSecurityPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{11} -} -func (m *PodSecurityPolicy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityPolicy.Merge(m, src) -} -func (m *PodSecurityPolicy) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityPolicy proto.InternalMessageInfo - -func (m *PodSecurityPolicyList) Reset() { *m = PodSecurityPolicyList{} } -func (*PodSecurityPolicyList) ProtoMessage() {} -func (*PodSecurityPolicyList) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{12} -} -func (m *PodSecurityPolicyList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityPolicyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityPolicyList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityPolicyList.Merge(m, src) -} -func (m *PodSecurityPolicyList) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityPolicyList) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityPolicyList.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityPolicyList proto.InternalMessageInfo - -func (m *PodSecurityPolicySpec) Reset() { *m = PodSecurityPolicySpec{} } -func (*PodSecurityPolicySpec) ProtoMessage() {} -func (*PodSecurityPolicySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{13} -} -func (m *PodSecurityPolicySpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodSecurityPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodSecurityPolicySpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodSecurityPolicySpec.Merge(m, src) -} -func (m *PodSecurityPolicySpec) XXX_Size() int { - return m.Size() -} -func (m *PodSecurityPolicySpec) XXX_DiscardUnknown() { - xxx_messageInfo_PodSecurityPolicySpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PodSecurityPolicySpec proto.InternalMessageInfo - -func (m *RunAsGroupStrategyOptions) Reset() { *m = RunAsGroupStrategyOptions{} } -func (*RunAsGroupStrategyOptions) ProtoMessage() {} -func (*RunAsGroupStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{14} -} -func (m *RunAsGroupStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunAsGroupStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RunAsGroupStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunAsGroupStrategyOptions.Merge(m, src) -} -func (m *RunAsGroupStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *RunAsGroupStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_RunAsGroupStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_RunAsGroupStrategyOptions proto.InternalMessageInfo - -func (m *RunAsUserStrategyOptions) Reset() { *m = RunAsUserStrategyOptions{} } -func (*RunAsUserStrategyOptions) ProtoMessage() {} -func (*RunAsUserStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{15} -} -func (m *RunAsUserStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RunAsUserStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RunAsUserStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunAsUserStrategyOptions.Merge(m, src) -} -func (m *RunAsUserStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *RunAsUserStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_RunAsUserStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_RunAsUserStrategyOptions proto.InternalMessageInfo - -func (m *RuntimeClassStrategyOptions) Reset() { *m = RuntimeClassStrategyOptions{} } -func (*RuntimeClassStrategyOptions) ProtoMessage() {} -func (*RuntimeClassStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{16} -} -func (m *RuntimeClassStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RuntimeClassStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RuntimeClassStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeClassStrategyOptions.Merge(m, src) -} -func (m *RuntimeClassStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *RuntimeClassStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeClassStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeClassStrategyOptions proto.InternalMessageInfo - -func (m *SELinuxStrategyOptions) Reset() { *m = SELinuxStrategyOptions{} } -func (*SELinuxStrategyOptions) ProtoMessage() {} -func (*SELinuxStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{17} -} -func (m *SELinuxStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SELinuxStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SELinuxStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SELinuxStrategyOptions.Merge(m, src) -} -func (m *SELinuxStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *SELinuxStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SELinuxStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SELinuxStrategyOptions proto.InternalMessageInfo - -func (m *SupplementalGroupsStrategyOptions) Reset() { *m = SupplementalGroupsStrategyOptions{} } -func (*SupplementalGroupsStrategyOptions) ProtoMessage() {} -func (*SupplementalGroupsStrategyOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_014060e454a820dc, []int{18} -} -func (m *SupplementalGroupsStrategyOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SupplementalGroupsStrategyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *SupplementalGroupsStrategyOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SupplementalGroupsStrategyOptions.Merge(m, src) -} -func (m *SupplementalGroupsStrategyOptions) XXX_Size() int { - return m.Size() -} -func (m *SupplementalGroupsStrategyOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SupplementalGroupsStrategyOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SupplementalGroupsStrategyOptions proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AllowedCSIDriver)(nil), "k8s.io.api.policy.v1beta1.AllowedCSIDriver") - proto.RegisterType((*AllowedFlexVolume)(nil), "k8s.io.api.policy.v1beta1.AllowedFlexVolume") - proto.RegisterType((*AllowedHostPath)(nil), "k8s.io.api.policy.v1beta1.AllowedHostPath") - proto.RegisterType((*Eviction)(nil), "k8s.io.api.policy.v1beta1.Eviction") - proto.RegisterType((*FSGroupStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.FSGroupStrategyOptions") - proto.RegisterType((*HostPortRange)(nil), "k8s.io.api.policy.v1beta1.HostPortRange") - proto.RegisterType((*IDRange)(nil), "k8s.io.api.policy.v1beta1.IDRange") - proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudget") - proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetList") - proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec") - proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus") - proto.RegisterMapType((map[string]v1.Time)(nil), "k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus.DisruptedPodsEntry") - proto.RegisterType((*PodSecurityPolicy)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicy") - proto.RegisterType((*PodSecurityPolicyList)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicyList") - proto.RegisterType((*PodSecurityPolicySpec)(nil), "k8s.io.api.policy.v1beta1.PodSecurityPolicySpec") - proto.RegisterType((*RunAsGroupStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions") - proto.RegisterType((*RunAsUserStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions") - proto.RegisterType((*RuntimeClassStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions") - proto.RegisterType((*SELinuxStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.SELinuxStrategyOptions") - proto.RegisterType((*SupplementalGroupsStrategyOptions)(nil), "k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/policy/v1beta1/generated.proto", fileDescriptor_014060e454a820dc) -} - -var fileDescriptor_014060e454a820dc = []byte{ - // 1883 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xdd, 0x6e, 0x1b, 0xc7, - 0x15, 0xd6, 0x9a, 0xfa, 0xa1, 0x46, 0x3f, 0x16, 0x47, 0x3f, 0x5e, 0x2b, 0x35, 0xd7, 0xd9, 0x00, - 0x85, 0x9b, 0x26, 0xcb, 0x58, 0x76, 0x5c, 0xa3, 0x69, 0x8b, 0x68, 0x45, 0xc9, 0x56, 0x60, 0x59, - 0xec, 0xd0, 0x0e, 0xda, 0xc2, 0x2d, 0x3a, 0xe4, 0x8e, 0xa8, 0x8d, 0x96, 0xbb, 0xdb, 0x99, 0x59, - 0x46, 0xbc, 0xeb, 0x45, 0x2f, 0x7a, 0xd9, 0x17, 0x08, 0xfa, 0x00, 0x45, 0xaf, 0xfa, 0x12, 0x0e, - 0x50, 0x04, 0xb9, 0x0c, 0x7a, 0x41, 0xd4, 0x2c, 0xfa, 0x12, 0xbe, 0x0a, 0x76, 0x38, 0xbb, 0xe4, - 0xfe, 0x91, 0x76, 0x00, 0xfb, 0x8e, 0x3b, 0xe7, 0xfb, 0xbe, 0x33, 0x73, 0xe6, 0xcc, 0x99, 0xc3, - 0x01, 0xe6, 0xc5, 0x7d, 0x66, 0xd8, 0x5e, 0xed, 0x22, 0x68, 0x11, 0xea, 0x12, 0x4e, 0x58, 0xad, - 0x47, 0x5c, 0xcb, 0xa3, 0x35, 0x69, 0xc0, 0xbe, 0x5d, 0xf3, 0x3d, 0xc7, 0x6e, 0xf7, 0x6b, 0xbd, - 0xdb, 0x2d, 0xc2, 0xf1, 0xed, 0x5a, 0x87, 0xb8, 0x84, 0x62, 0x4e, 0x2c, 0xc3, 0xa7, 0x1e, 0xf7, - 0xe0, 0xf5, 0x11, 0xd4, 0xc0, 0xbe, 0x6d, 0x8c, 0xa0, 0x86, 0x84, 0xee, 0x7e, 0xd8, 0xb1, 0xf9, - 0x79, 0xd0, 0x32, 0xda, 0x5e, 0xb7, 0xd6, 0xf1, 0x3a, 0x5e, 0x4d, 0x30, 0x5a, 0xc1, 0x99, 0xf8, - 0x12, 0x1f, 0xe2, 0xd7, 0x48, 0x69, 0x57, 0x9f, 0x70, 0xda, 0xf6, 0x28, 0xa9, 0xf5, 0x32, 0xde, - 0x76, 0xef, 0x8e, 0x31, 0x5d, 0xdc, 0x3e, 0xb7, 0x5d, 0x42, 0xfb, 0x35, 0xff, 0xa2, 0x13, 0x0e, - 0xb0, 0x5a, 0x97, 0x70, 0x9c, 0xc7, 0xaa, 0x15, 0xb1, 0x68, 0xe0, 0x72, 0xbb, 0x4b, 0x32, 0x84, - 0x7b, 0xb3, 0x08, 0xac, 0x7d, 0x4e, 0xba, 0x38, 0xc3, 0xbb, 0x53, 0xc4, 0x0b, 0xb8, 0xed, 0xd4, - 0x6c, 0x97, 0x33, 0x4e, 0xd3, 0x24, 0xfd, 0x2e, 0xd8, 0xd8, 0x77, 0x1c, 0xef, 0x4b, 0x62, 0x1d, - 0x34, 0x8f, 0xeb, 0xd4, 0xee, 0x11, 0x0a, 0x6f, 0x82, 0x79, 0x17, 0x77, 0x89, 0xaa, 0xdc, 0x54, - 0x6e, 0x2d, 0x9b, 0xab, 0xcf, 0x07, 0xda, 0xdc, 0x70, 0xa0, 0xcd, 0x3f, 0xc6, 0x5d, 0x82, 0x84, - 0x45, 0xff, 0x04, 0x54, 0x24, 0xeb, 0xc8, 0x21, 0x97, 0x9f, 0x7b, 0x4e, 0xd0, 0x25, 0xf0, 0xc7, - 0x60, 0xd1, 0x12, 0x02, 0x92, 0xb8, 0x2e, 0x89, 0x8b, 0x23, 0x59, 0x24, 0xad, 0x3a, 0x03, 0x57, - 0x25, 0xf9, 0xa1, 0xc7, 0x78, 0x03, 0xf3, 0x73, 0xb8, 0x07, 0x80, 0x8f, 0xf9, 0x79, 0x83, 0x92, - 0x33, 0xfb, 0x52, 0xd2, 0xa1, 0xa4, 0x83, 0x46, 0x6c, 0x41, 0x13, 0x28, 0xf8, 0x01, 0x28, 0x53, - 0x82, 0xad, 0x53, 0xd7, 0xe9, 0xab, 0x57, 0x6e, 0x2a, 0xb7, 0xca, 0xe6, 0x86, 0x64, 0x94, 0x91, - 0x1c, 0x47, 0x31, 0x42, 0xff, 0x8f, 0x02, 0xca, 0x87, 0x3d, 0xbb, 0xcd, 0x6d, 0xcf, 0x85, 0x7f, - 0x04, 0xe5, 0x70, 0xb7, 0x2c, 0xcc, 0xb1, 0x70, 0xb6, 0xb2, 0xf7, 0x91, 0x31, 0xce, 0xa4, 0x38, - 0x78, 0x86, 0x7f, 0xd1, 0x09, 0x07, 0x98, 0x11, 0xa2, 0x8d, 0xde, 0x6d, 0xe3, 0xb4, 0xf5, 0x05, - 0x69, 0xf3, 0x13, 0xc2, 0xf1, 0x78, 0x7a, 0xe3, 0x31, 0x14, 0xab, 0x42, 0x07, 0xac, 0x59, 0xc4, - 0x21, 0x9c, 0x9c, 0xfa, 0xa1, 0x47, 0x26, 0x66, 0xb8, 0xb2, 0x77, 0xe7, 0xd5, 0xdc, 0xd4, 0x27, - 0xa9, 0x66, 0x65, 0x38, 0xd0, 0xd6, 0x12, 0x43, 0x28, 0x29, 0xae, 0x7f, 0xa5, 0x80, 0x9d, 0xa3, - 0xe6, 0x03, 0xea, 0x05, 0x7e, 0x93, 0x87, 0xbb, 0xdb, 0xe9, 0x4b, 0x13, 0xfc, 0x19, 0x98, 0xa7, - 0x81, 0x13, 0xed, 0xe5, 0x7b, 0xd1, 0x5e, 0xa2, 0xc0, 0x21, 0x2f, 0x07, 0xda, 0x66, 0x8a, 0xf5, - 0xa4, 0xef, 0x13, 0x24, 0x08, 0xf0, 0x33, 0xb0, 0x48, 0xb1, 0xdb, 0x21, 0xe1, 0xd4, 0x4b, 0xb7, - 0x56, 0xf6, 0x74, 0xa3, 0xf0, 0xac, 0x19, 0xc7, 0x75, 0x14, 0x42, 0xc7, 0x3b, 0x2e, 0x3e, 0x19, - 0x92, 0x0a, 0xfa, 0x09, 0x58, 0x13, 0x5b, 0xed, 0x51, 0x2e, 0x2c, 0xf0, 0x06, 0x28, 0x75, 0x6d, - 0x57, 0x4c, 0x6a, 0xc1, 0x5c, 0x91, 0xac, 0xd2, 0x89, 0xed, 0xa2, 0x70, 0x5c, 0x98, 0xf1, 0xa5, - 0x88, 0xd9, 0xa4, 0x19, 0x5f, 0xa2, 0x70, 0x5c, 0x7f, 0x00, 0x96, 0xa4, 0xc7, 0x49, 0xa1, 0xd2, - 0x74, 0xa1, 0x52, 0x8e, 0xd0, 0x3f, 0xae, 0x80, 0xcd, 0x86, 0x67, 0xd5, 0x6d, 0x46, 0x03, 0x11, - 0x2f, 0x33, 0xb0, 0x3a, 0x84, 0xbf, 0x85, 0xfc, 0x78, 0x02, 0xe6, 0x99, 0x4f, 0xda, 0x32, 0x2d, - 0xf6, 0xa6, 0xc4, 0x36, 0x67, 0x7e, 0x4d, 0x9f, 0xb4, 0xc7, 0xc7, 0x32, 0xfc, 0x42, 0x42, 0x0d, - 0x3e, 0x03, 0x8b, 0x8c, 0x63, 0x1e, 0x30, 0xb5, 0x24, 0x74, 0xef, 0xbe, 0xa6, 0xae, 0xe0, 0x8e, - 0x77, 0x71, 0xf4, 0x8d, 0xa4, 0xa6, 0xfe, 0x6f, 0x05, 0x5c, 0xcb, 0x61, 0x3d, 0xb2, 0x19, 0x87, - 0xcf, 0x32, 0x11, 0x33, 0x5e, 0x2d, 0x62, 0x21, 0x5b, 0xc4, 0x2b, 0x3e, 0xbc, 0xd1, 0xc8, 0x44, - 0xb4, 0x9a, 0x60, 0xc1, 0xe6, 0xa4, 0x1b, 0xa5, 0xa2, 0xf1, 0x7a, 0xcb, 0x32, 0xd7, 0xa4, 0xf4, - 0xc2, 0x71, 0x28, 0x82, 0x46, 0x5a, 0xfa, 0x37, 0x57, 0x72, 0x97, 0x13, 0x86, 0x13, 0x9e, 0x81, - 0xd5, 0xae, 0xed, 0xee, 0xf7, 0xb0, 0xed, 0xe0, 0x96, 0x3c, 0x3d, 0xd3, 0x92, 0x20, 0xac, 0xb0, - 0xc6, 0xa8, 0xc2, 0x1a, 0xc7, 0x2e, 0x3f, 0xa5, 0x4d, 0x4e, 0x6d, 0xb7, 0x63, 0x6e, 0x0c, 0x07, - 0xda, 0xea, 0xc9, 0x84, 0x12, 0x4a, 0xe8, 0xc2, 0xdf, 0x83, 0x32, 0x23, 0x0e, 0x69, 0x73, 0x8f, - 0xbe, 0x5e, 0x85, 0x78, 0x84, 0x5b, 0xc4, 0x69, 0x4a, 0xaa, 0xb9, 0x1a, 0xc6, 0x2d, 0xfa, 0x42, - 0xb1, 0x24, 0x74, 0xc0, 0x7a, 0x17, 0x5f, 0x3e, 0x75, 0x71, 0xbc, 0x90, 0xd2, 0x0f, 0x5c, 0x08, - 0x1c, 0x0e, 0xb4, 0xf5, 0x93, 0x84, 0x16, 0x4a, 0x69, 0xeb, 0xff, 0x9f, 0x07, 0xd7, 0x0b, 0xb3, - 0x0a, 0x7e, 0x06, 0xa0, 0xd7, 0x62, 0x84, 0xf6, 0x88, 0xf5, 0x60, 0x74, 0x07, 0xd9, 0x5e, 0x74, - 0x70, 0x77, 0xe5, 0x06, 0xc1, 0xd3, 0x0c, 0x02, 0xe5, 0xb0, 0xe0, 0x5f, 0x14, 0xb0, 0x66, 0x8d, - 0xdc, 0x10, 0xab, 0xe1, 0x59, 0x51, 0x62, 0x3c, 0xf8, 0x21, 0xf9, 0x6e, 0xd4, 0x27, 0x95, 0x0e, - 0x5d, 0x4e, 0xfb, 0xe6, 0xb6, 0x9c, 0xd0, 0x5a, 0xc2, 0x86, 0x92, 0x4e, 0xe1, 0x09, 0x80, 0x56, - 0x2c, 0xc9, 0xe4, 0x9d, 0x26, 0x42, 0xbc, 0x60, 0xde, 0x90, 0x0a, 0xdb, 0x09, 0xbf, 0x11, 0x08, - 0xe5, 0x10, 0xe1, 0xaf, 0xc0, 0x7a, 0x3b, 0xa0, 0x94, 0xb8, 0xfc, 0x21, 0xc1, 0x0e, 0x3f, 0xef, - 0xab, 0xf3, 0x42, 0x6a, 0x47, 0x4a, 0xad, 0x1f, 0x24, 0xac, 0x28, 0x85, 0x0e, 0xf9, 0x16, 0x61, - 0x36, 0x25, 0x56, 0xc4, 0x5f, 0x48, 0xf2, 0xeb, 0x09, 0x2b, 0x4a, 0xa1, 0xe1, 0x7d, 0xb0, 0x4a, - 0x2e, 0x7d, 0xd2, 0x8e, 0x62, 0xba, 0x28, 0xd8, 0x5b, 0x92, 0xbd, 0x7a, 0x38, 0x61, 0x43, 0x09, - 0xe4, 0xae, 0x03, 0x60, 0x36, 0x88, 0x70, 0x03, 0x94, 0x2e, 0x48, 0x7f, 0x74, 0xf3, 0xa0, 0xf0, - 0x27, 0xfc, 0x14, 0x2c, 0xf4, 0xb0, 0x13, 0x10, 0x99, 0xeb, 0xef, 0xbf, 0x5a, 0xae, 0x3f, 0xb1, - 0xbb, 0x04, 0x8d, 0x88, 0x3f, 0xbf, 0x72, 0x5f, 0xd1, 0xbf, 0x56, 0x40, 0xa5, 0xe1, 0x59, 0x4d, - 0xd2, 0x0e, 0xa8, 0xcd, 0xfb, 0x0d, 0xb1, 0xcf, 0x6f, 0xa1, 0x66, 0xa3, 0x44, 0xcd, 0xfe, 0x68, - 0x7a, 0xae, 0x25, 0x67, 0x57, 0x54, 0xb1, 0xf5, 0xe7, 0x0a, 0xd8, 0xce, 0xa0, 0xdf, 0x42, 0x45, - 0xfd, 0x75, 0xb2, 0xa2, 0x7e, 0xf0, 0x3a, 0x8b, 0x29, 0xa8, 0xa7, 0x5f, 0x57, 0x72, 0x96, 0x22, - 0xaa, 0x69, 0xd8, 0xdd, 0x51, 0xbb, 0x67, 0x3b, 0xa4, 0x43, 0x2c, 0xb1, 0x98, 0xf2, 0x44, 0x77, - 0x17, 0x5b, 0xd0, 0x04, 0x0a, 0x32, 0xb0, 0x63, 0x91, 0x33, 0x1c, 0x38, 0x7c, 0xdf, 0xb2, 0x0e, - 0xb0, 0x8f, 0x5b, 0xb6, 0x63, 0x73, 0x5b, 0xb6, 0x23, 0xcb, 0xe6, 0x27, 0xc3, 0x81, 0xb6, 0x53, - 0xcf, 0x45, 0xbc, 0x1c, 0x68, 0x37, 0xb2, 0xdd, 0xbc, 0x11, 0x43, 0xfa, 0xa8, 0x40, 0x1a, 0xf6, - 0x81, 0x4a, 0xc9, 0x9f, 0x82, 0xf0, 0x50, 0xd4, 0xa9, 0xe7, 0x27, 0xdc, 0x96, 0x84, 0xdb, 0x5f, - 0x0e, 0x07, 0x9a, 0x8a, 0x0a, 0x30, 0xb3, 0x1d, 0x17, 0xca, 0xc3, 0x2f, 0xc0, 0x26, 0x96, 0x7d, - 0xf8, 0xa4, 0xd7, 0x79, 0xe1, 0xf5, 0xfe, 0x70, 0xa0, 0x6d, 0xee, 0x67, 0xcd, 0xb3, 0x1d, 0xe6, - 0x89, 0xc2, 0x1a, 0x58, 0xea, 0x89, 0x96, 0x9d, 0xa9, 0x0b, 0x42, 0x7f, 0x7b, 0x38, 0xd0, 0x96, - 0x46, 0x5d, 0x7c, 0xa8, 0xb9, 0x78, 0xd4, 0x14, 0x8d, 0x60, 0x84, 0x82, 0x1f, 0x83, 0x95, 0x73, - 0x8f, 0xf1, 0xc7, 0x84, 0x7f, 0xe9, 0xd1, 0x0b, 0x51, 0x18, 0xca, 0xe6, 0xa6, 0xdc, 0xc1, 0x95, - 0x87, 0x63, 0x13, 0x9a, 0xc4, 0xc1, 0xdf, 0x82, 0xe5, 0x73, 0xd9, 0xf6, 0x31, 0x75, 0x49, 0x24, - 0xda, 0xad, 0x29, 0x89, 0x96, 0x68, 0x11, 0xcd, 0x8a, 0x94, 0x5f, 0x8e, 0x86, 0x19, 0x1a, 0xab, - 0xc1, 0x9f, 0x80, 0x25, 0xf1, 0x71, 0x5c, 0x57, 0xcb, 0x62, 0x36, 0x57, 0x25, 0x7c, 0xe9, 0xe1, - 0x68, 0x18, 0x45, 0xf6, 0x08, 0x7a, 0xdc, 0x38, 0x50, 0x97, 0xb3, 0xd0, 0xe3, 0xc6, 0x01, 0x8a, - 0xec, 0xf0, 0x19, 0x58, 0x62, 0xe4, 0x91, 0xed, 0x06, 0x97, 0x2a, 0x10, 0x47, 0xee, 0xf6, 0x94, - 0xe9, 0x36, 0x0f, 0x05, 0x32, 0xd5, 0x70, 0x8f, 0xd5, 0xa5, 0x1d, 0x45, 0x92, 0xd0, 0x02, 0xcb, - 0x34, 0x70, 0xf7, 0xd9, 0x53, 0x46, 0xa8, 0xba, 0x92, 0xb9, 0xed, 0xd3, 0xfa, 0x28, 0xc2, 0xa6, - 0x3d, 0xc4, 0x91, 0x89, 0x11, 0x68, 0x2c, 0x0c, 0x2d, 0x00, 0xc4, 0x87, 0xe8, 0xeb, 0xd5, 0x9d, - 0x99, 0x7d, 0x20, 0x8a, 0xc1, 0x69, 0x3f, 0xeb, 0xe1, 0xf1, 0x1c, 0x9b, 0xd1, 0x84, 0x2e, 0xfc, - 0xab, 0x02, 0x20, 0x0b, 0x7c, 0xdf, 0x21, 0x5d, 0xe2, 0x72, 0xec, 0x88, 0x51, 0xa6, 0xae, 0x0a, - 0x77, 0xbf, 0x98, 0x16, 0xb5, 0x0c, 0x29, 0xed, 0x36, 0x6e, 0x06, 0xb2, 0x50, 0x94, 0xe3, 0x33, - 0xdc, 0xb4, 0x33, 0xb9, 0xda, 0xb5, 0x99, 0x9b, 0x96, 0xff, 0x2f, 0x69, 0xbc, 0x69, 0xd2, 0x8e, - 0x22, 0x49, 0xf8, 0x39, 0xd8, 0x89, 0xfe, 0x43, 0x22, 0xcf, 0xe3, 0x47, 0xb6, 0x43, 0x58, 0x9f, - 0x71, 0xd2, 0x55, 0xd7, 0x45, 0x32, 0x55, 0x25, 0x73, 0x07, 0xe5, 0xa2, 0x50, 0x01, 0x1b, 0x76, - 0x81, 0x16, 0x15, 0xa1, 0xf0, 0x84, 0xc6, 0x55, 0xf0, 0x90, 0xb5, 0xb1, 0x33, 0xea, 0x8d, 0xae, - 0x0a, 0x07, 0xef, 0x0d, 0x07, 0x9a, 0x56, 0x9f, 0x0e, 0x45, 0xb3, 0xb4, 0xe0, 0x6f, 0x80, 0x8a, - 0x8b, 0xfc, 0x6c, 0x08, 0x3f, 0x3f, 0x0a, 0x2b, 0x5b, 0xa1, 0x83, 0x42, 0x36, 0xf4, 0xc1, 0x06, - 0x4e, 0xfe, 0x9b, 0x67, 0x6a, 0x45, 0x9c, 0xf5, 0xf7, 0xa7, 0xec, 0x43, 0xea, 0x01, 0xc0, 0x54, - 0x65, 0x18, 0x37, 0x52, 0x06, 0x86, 0x32, 0xea, 0xf0, 0x12, 0x40, 0x9c, 0x7e, 0x7c, 0x60, 0x2a, - 0x9c, 0x79, 0x91, 0x65, 0x5e, 0x2c, 0xc6, 0xa9, 0x96, 0x31, 0x31, 0x94, 0xe3, 0x03, 0x72, 0x50, - 0xc1, 0xa9, 0xc7, 0x12, 0xa6, 0x5e, 0x13, 0x8e, 0x7f, 0x3a, 0xdb, 0x71, 0xcc, 0x31, 0xaf, 0x4b, - 0xbf, 0x95, 0xb4, 0x85, 0xa1, 0xac, 0x03, 0xf8, 0x08, 0x6c, 0xc9, 0xc1, 0xa7, 0x2e, 0xc3, 0x67, - 0xa4, 0xd9, 0x67, 0x6d, 0xee, 0x30, 0x75, 0x53, 0xd4, 0x6e, 0x75, 0x38, 0xd0, 0xb6, 0xf6, 0x73, - 0xec, 0x28, 0x97, 0x05, 0x3f, 0x05, 0x1b, 0x67, 0x1e, 0x6d, 0xd9, 0x96, 0x45, 0xdc, 0x48, 0x69, - 0x4b, 0x28, 0x6d, 0x85, 0xf1, 0x3f, 0x4a, 0xd9, 0x50, 0x06, 0x0d, 0x19, 0xd8, 0x96, 0xca, 0x0d, - 0xea, 0xb5, 0x4f, 0xbc, 0xc0, 0xe5, 0xe1, 0x75, 0xc1, 0xd4, 0xed, 0xf8, 0x8a, 0xdc, 0xde, 0xcf, - 0x03, 0xbc, 0x1c, 0x68, 0x37, 0x73, 0xae, 0xab, 0x04, 0x08, 0xe5, 0x6b, 0x43, 0x07, 0xac, 0xca, - 0xe7, 0xaf, 0x03, 0x07, 0x33, 0xa6, 0xaa, 0xe2, 0xa8, 0xdf, 0x9b, 0x5e, 0xd8, 0x62, 0x78, 0xfa, - 0xbc, 0x8b, 0xff, 0x65, 0x93, 0x00, 0x94, 0x50, 0xd7, 0xff, 0xae, 0x80, 0xeb, 0x85, 0x85, 0x11, - 0xde, 0x4b, 0xbc, 0xa9, 0xe8, 0xa9, 0x37, 0x15, 0x98, 0x25, 0xbe, 0x81, 0x27, 0x95, 0xaf, 0x14, - 0xa0, 0x16, 0xdd, 0x10, 0xf0, 0xe3, 0xc4, 0x04, 0xdf, 0x4d, 0x4d, 0xb0, 0x92, 0xe1, 0xbd, 0x81, - 0xf9, 0x7d, 0xa3, 0x80, 0x77, 0xa6, 0xec, 0x40, 0x5c, 0x90, 0x88, 0x35, 0x89, 0x7a, 0x8c, 0xc3, - 0xa3, 0xac, 0x88, 0x3c, 0x1a, 0x17, 0xa4, 0x1c, 0x0c, 0x2a, 0x64, 0xc3, 0xa7, 0xe0, 0x9a, 0xac, - 0x86, 0x69, 0x9b, 0xe8, 0xdc, 0x97, 0xcd, 0x77, 0x86, 0x03, 0xed, 0x5a, 0x3d, 0x1f, 0x82, 0x8a, - 0xb8, 0xfa, 0x3f, 0x15, 0xb0, 0x93, 0x7f, 0xe5, 0xc3, 0x3b, 0x89, 0x70, 0x6b, 0xa9, 0x70, 0x5f, - 0x4d, 0xb1, 0x64, 0xb0, 0xff, 0x00, 0xd6, 0x65, 0x63, 0x90, 0x7c, 0x22, 0x4c, 0x04, 0x3d, 0x3c, - 0x22, 0x61, 0x4f, 0x2f, 0x25, 0xa2, 0xf4, 0x15, 0xff, 0xc6, 0x93, 0x63, 0x28, 0xa5, 0xa6, 0xff, - 0x4b, 0x01, 0xef, 0xce, 0xbc, 0x6c, 0xa1, 0x99, 0x98, 0xba, 0x91, 0x9a, 0x7a, 0xb5, 0x58, 0xe0, - 0xcd, 0xbc, 0x14, 0x9a, 0x1f, 0x3e, 0x7f, 0x51, 0x9d, 0xfb, 0xf6, 0x45, 0x75, 0xee, 0xbb, 0x17, - 0xd5, 0xb9, 0x3f, 0x0f, 0xab, 0xca, 0xf3, 0x61, 0x55, 0xf9, 0x76, 0x58, 0x55, 0xbe, 0x1b, 0x56, - 0x95, 0xff, 0x0e, 0xab, 0xca, 0xdf, 0xfe, 0x57, 0x9d, 0xfb, 0xdd, 0x92, 0x94, 0xfb, 0x3e, 0x00, - 0x00, 0xff, 0xff, 0x48, 0x23, 0x7b, 0x0e, 0x44, 0x18, 0x00, 0x00, -} - -func (m *AllowedCSIDriver) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllowedCSIDriver) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllowedCSIDriver) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AllowedFlexVolume) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllowedFlexVolume) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllowedFlexVolume) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Driver) - copy(dAtA[i:], m.Driver) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AllowedHostPath) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AllowedHostPath) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AllowedHostPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.ReadOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.PathPrefix) - copy(dAtA[i:], m.PathPrefix) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.PathPrefix))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Eviction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Eviction) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Eviction) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DeleteOptions != nil { - { - size, err := m.DeleteOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *FSGroupStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FSGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FSGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *HostPortRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostPortRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostPortRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Max)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Min)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *IDRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IDRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IDRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Max)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Min)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *PodDisruptionBudget) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodDisruptionBudget) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodDisruptionBudget) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodDisruptionBudgetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodDisruptionBudgetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodDisruptionBudgetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodDisruptionBudgetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodDisruptionBudgetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodDisruptionBudgetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MaxUnavailable != nil { - { - size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Selector != nil { - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.MinAvailable != nil { - { - size, err := m.MinAvailable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PodDisruptionBudgetStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodDisruptionBudgetStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodDisruptionBudgetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.ExpectedPods)) - i-- - dAtA[i] = 0x30 - i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredHealthy)) - i-- - dAtA[i] = 0x28 - i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentHealthy)) - i-- - dAtA[i] = 0x20 - i = encodeVarintGenerated(dAtA, i, uint64(m.PodDisruptionsAllowed)) - i-- - dAtA[i] = 0x18 - if len(m.DisruptedPods) > 0 { - keysForDisruptedPods := make([]string, 0, len(m.DisruptedPods)) - for k := range m.DisruptedPods { - keysForDisruptedPods = append(keysForDisruptedPods, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods) - for iNdEx := len(keysForDisruptedPods) - 1; iNdEx >= 0; iNdEx-- { - v := m.DisruptedPods[string(keysForDisruptedPods[iNdEx])] - baseI := i - { - size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(keysForDisruptedPods[iNdEx]) - copy(dAtA[i:], keysForDisruptedPods[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForDisruptedPods[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *PodSecurityPolicy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodSecurityPolicyList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicyList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityPolicyList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodSecurityPolicySpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodSecurityPolicySpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodSecurityPolicySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RuntimeClass != nil { - { - size, err := m.RuntimeClass.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - } - if len(m.AllowedCSIDrivers) > 0 { - for iNdEx := len(m.AllowedCSIDrivers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedCSIDrivers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - } - if m.RunAsGroup != nil { - { - size, err := m.RunAsGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - if len(m.AllowedProcMountTypes) > 0 { - for iNdEx := len(m.AllowedProcMountTypes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedProcMountTypes[iNdEx]) - copy(dAtA[i:], m.AllowedProcMountTypes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedProcMountTypes[iNdEx]))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - } - if len(m.ForbiddenSysctls) > 0 { - for iNdEx := len(m.ForbiddenSysctls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ForbiddenSysctls[iNdEx]) - copy(dAtA[i:], m.ForbiddenSysctls[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ForbiddenSysctls[iNdEx]))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - } - if len(m.AllowedUnsafeSysctls) > 0 { - for iNdEx := len(m.AllowedUnsafeSysctls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedUnsafeSysctls[iNdEx]) - copy(dAtA[i:], m.AllowedUnsafeSysctls[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedUnsafeSysctls[iNdEx]))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - } - if len(m.AllowedFlexVolumes) > 0 { - for iNdEx := len(m.AllowedFlexVolumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedFlexVolumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - } - if len(m.AllowedHostPaths) > 0 { - for iNdEx := len(m.AllowedHostPaths) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedHostPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - if m.AllowPrivilegeEscalation != nil { - i-- - if *m.AllowPrivilegeEscalation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.DefaultAllowPrivilegeEscalation != nil { - i-- - if *m.DefaultAllowPrivilegeEscalation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x78 - } - i-- - if m.ReadOnlyRootFilesystem { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x70 - { - size, err := m.FSGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - { - size, err := m.SupplementalGroups.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - { - size, err := m.RunAsUser.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - { - size, err := m.SELinux.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - i-- - if m.HostIPC { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - i-- - if m.HostPID { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - if len(m.HostPorts) > 0 { - for iNdEx := len(m.HostPorts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.HostPorts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - i-- - if m.HostNetwork { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Volumes[iNdEx]) - copy(dAtA[i:], m.Volumes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Volumes[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.AllowedCapabilities) > 0 { - for iNdEx := len(m.AllowedCapabilities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedCapabilities[iNdEx]) - copy(dAtA[i:], m.AllowedCapabilities[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedCapabilities[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.RequiredDropCapabilities) > 0 { - for iNdEx := len(m.RequiredDropCapabilities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RequiredDropCapabilities[iNdEx]) - copy(dAtA[i:], m.RequiredDropCapabilities[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RequiredDropCapabilities[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.DefaultAddCapabilities) > 0 { - for iNdEx := len(m.DefaultAddCapabilities) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DefaultAddCapabilities[iNdEx]) - copy(dAtA[i:], m.DefaultAddCapabilities[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DefaultAddCapabilities[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - i-- - if m.Privileged { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *RunAsGroupStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RunAsGroupStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunAsGroupStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RunAsUserStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RunAsUserStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RunAsUserStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RuntimeClassStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RuntimeClassStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RuntimeClassStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DefaultRuntimeClassName != nil { - i -= len(*m.DefaultRuntimeClassName) - copy(dAtA[i:], *m.DefaultRuntimeClassName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.DefaultRuntimeClassName))) - i-- - dAtA[i] = 0x12 - } - if len(m.AllowedRuntimeClassNames) > 0 { - for iNdEx := len(m.AllowedRuntimeClassNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AllowedRuntimeClassNames[iNdEx]) - copy(dAtA[i:], m.AllowedRuntimeClassNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.AllowedRuntimeClassNames[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SELinuxStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SELinuxStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SELinuxStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SELinuxOptions != nil { - { - size, err := m.SELinuxOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *SupplementalGroupsStrategyOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SupplementalGroupsStrategyOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SupplementalGroupsStrategyOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ranges) > 0 { - for iNdEx := len(m.Ranges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Ranges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Rule) - copy(dAtA[i:], m.Rule) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Rule))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AllowedCSIDriver) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AllowedFlexVolume) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Driver) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *AllowedHostPath) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PathPrefix) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *Eviction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.DeleteOptions != nil { - l = m.DeleteOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *FSGroupStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *HostPortRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Min)) - n += 1 + sovGenerated(uint64(m.Max)) - return n -} - -func (m *IDRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Min)) - n += 1 + sovGenerated(uint64(m.Max)) - return n -} - -func (m *PodDisruptionBudget) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodDisruptionBudgetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodDisruptionBudgetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MinAvailable != nil { - l = m.MinAvailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.Selector != nil { - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.MaxUnavailable != nil { - l = m.MaxUnavailable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PodDisruptionBudgetStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.ObservedGeneration)) - if len(m.DisruptedPods) > 0 { - for k, v := range m.DisruptedPods { - _ = k - _ = v - l = v.Size() - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - n += 1 + sovGenerated(uint64(m.PodDisruptionsAllowed)) - n += 1 + sovGenerated(uint64(m.CurrentHealthy)) - n += 1 + sovGenerated(uint64(m.DesiredHealthy)) - n += 1 + sovGenerated(uint64(m.ExpectedPods)) - return n -} - -func (m *PodSecurityPolicy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodSecurityPolicyList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodSecurityPolicySpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - if len(m.DefaultAddCapabilities) > 0 { - for _, s := range m.DefaultAddCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.RequiredDropCapabilities) > 0 { - for _, s := range m.RequiredDropCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedCapabilities) > 0 { - for _, s := range m.AllowedCapabilities { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Volumes) > 0 { - for _, s := range m.Volumes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - if len(m.HostPorts) > 0 { - for _, e := range m.HostPorts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 2 - n += 2 - l = m.SELinux.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.RunAsUser.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.SupplementalGroups.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.FSGroup.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - if m.DefaultAllowPrivilegeEscalation != nil { - n += 2 - } - if m.AllowPrivilegeEscalation != nil { - n += 3 - } - if len(m.AllowedHostPaths) > 0 { - for _, e := range m.AllowedHostPaths { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedFlexVolumes) > 0 { - for _, e := range m.AllowedFlexVolumes { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedUnsafeSysctls) > 0 { - for _, s := range m.AllowedUnsafeSysctls { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.ForbiddenSysctls) > 0 { - for _, s := range m.ForbiddenSysctls { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if len(m.AllowedProcMountTypes) > 0 { - for _, s := range m.AllowedProcMountTypes { - l = len(s) - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.RunAsGroup != nil { - l = m.RunAsGroup.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - if len(m.AllowedCSIDrivers) > 0 { - for _, e := range m.AllowedCSIDrivers { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - if m.RuntimeClass != nil { - l = m.RuntimeClass.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RunAsGroupStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RunAsUserStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RuntimeClassStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.AllowedRuntimeClassNames) > 0 { - for _, s := range m.AllowedRuntimeClassNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.DefaultRuntimeClassName != nil { - l = len(*m.DefaultRuntimeClassName) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SELinuxStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if m.SELinuxOptions != nil { - l = m.SELinuxOptions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *SupplementalGroupsStrategyOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Rule) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Ranges) > 0 { - for _, e := range m.Ranges { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AllowedCSIDriver) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AllowedCSIDriver{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *AllowedFlexVolume) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AllowedFlexVolume{`, - `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, - `}`, - }, "") - return s -} -func (this *AllowedHostPath) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&AllowedHostPath{`, - `PathPrefix:` + fmt.Sprintf("%v", this.PathPrefix) + `,`, - `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, - `}`, - }, "") - return s -} -func (this *Eviction) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Eviction{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `DeleteOptions:` + strings.Replace(fmt.Sprintf("%v", this.DeleteOptions), "DeleteOptions", "v1.DeleteOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *FSGroupStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&FSGroupStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func (this *HostPortRange) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&HostPortRange{`, - `Min:` + fmt.Sprintf("%v", this.Min) + `,`, - `Max:` + fmt.Sprintf("%v", this.Max) + `,`, - `}`, - }, "") - return s -} -func (this *IDRange) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&IDRange{`, - `Min:` + fmt.Sprintf("%v", this.Min) + `,`, - `Max:` + fmt.Sprintf("%v", this.Max) + `,`, - `}`, - }, "") - return s -} -func (this *PodDisruptionBudget) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodDisruptionBudget{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodDisruptionBudgetSpec", "PodDisruptionBudgetSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "PodDisruptionBudgetStatus", "PodDisruptionBudgetStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodDisruptionBudgetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PodDisruptionBudget{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodDisruptionBudget", "PodDisruptionBudget", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PodDisruptionBudgetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PodDisruptionBudgetSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodDisruptionBudgetSpec{`, - `MinAvailable:` + strings.Replace(fmt.Sprintf("%v", this.MinAvailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, - `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodDisruptionBudgetStatus) String() string { - if this == nil { - return "nil" - } - keysForDisruptedPods := make([]string, 0, len(this.DisruptedPods)) - for k := range this.DisruptedPods { - keysForDisruptedPods = append(keysForDisruptedPods, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForDisruptedPods) - mapStringForDisruptedPods := "map[string]v1.Time{" - for _, k := range keysForDisruptedPods { - mapStringForDisruptedPods += fmt.Sprintf("%v: %v,", k, this.DisruptedPods[k]) - } - mapStringForDisruptedPods += "}" - s := strings.Join([]string{`&PodDisruptionBudgetStatus{`, - `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, - `DisruptedPods:` + mapStringForDisruptedPods + `,`, - `PodDisruptionsAllowed:` + fmt.Sprintf("%v", this.PodDisruptionsAllowed) + `,`, - `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`, - `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`, - `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicy) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodSecurityPolicy{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSecurityPolicySpec", "PodSecurityPolicySpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicyList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PodSecurityPolicy{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodSecurityPolicy", "PodSecurityPolicy", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PodSecurityPolicyList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PodSecurityPolicySpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForHostPorts := "[]HostPortRange{" - for _, f := range this.HostPorts { - repeatedStringForHostPorts += strings.Replace(strings.Replace(f.String(), "HostPortRange", "HostPortRange", 1), `&`, ``, 1) + "," - } - repeatedStringForHostPorts += "}" - repeatedStringForAllowedHostPaths := "[]AllowedHostPath{" - for _, f := range this.AllowedHostPaths { - repeatedStringForAllowedHostPaths += strings.Replace(strings.Replace(f.String(), "AllowedHostPath", "AllowedHostPath", 1), `&`, ``, 1) + "," - } - repeatedStringForAllowedHostPaths += "}" - repeatedStringForAllowedFlexVolumes := "[]AllowedFlexVolume{" - for _, f := range this.AllowedFlexVolumes { - repeatedStringForAllowedFlexVolumes += strings.Replace(strings.Replace(f.String(), "AllowedFlexVolume", "AllowedFlexVolume", 1), `&`, ``, 1) + "," - } - repeatedStringForAllowedFlexVolumes += "}" - repeatedStringForAllowedCSIDrivers := "[]AllowedCSIDriver{" - for _, f := range this.AllowedCSIDrivers { - repeatedStringForAllowedCSIDrivers += strings.Replace(strings.Replace(f.String(), "AllowedCSIDriver", "AllowedCSIDriver", 1), `&`, ``, 1) + "," - } - repeatedStringForAllowedCSIDrivers += "}" - s := strings.Join([]string{`&PodSecurityPolicySpec{`, - `Privileged:` + fmt.Sprintf("%v", this.Privileged) + `,`, - `DefaultAddCapabilities:` + fmt.Sprintf("%v", this.DefaultAddCapabilities) + `,`, - `RequiredDropCapabilities:` + fmt.Sprintf("%v", this.RequiredDropCapabilities) + `,`, - `AllowedCapabilities:` + fmt.Sprintf("%v", this.AllowedCapabilities) + `,`, - `Volumes:` + fmt.Sprintf("%v", this.Volumes) + `,`, - `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, - `HostPorts:` + repeatedStringForHostPorts + `,`, - `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, - `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, - `SELinux:` + strings.Replace(strings.Replace(this.SELinux.String(), "SELinuxStrategyOptions", "SELinuxStrategyOptions", 1), `&`, ``, 1) + `,`, - `RunAsUser:` + strings.Replace(strings.Replace(this.RunAsUser.String(), "RunAsUserStrategyOptions", "RunAsUserStrategyOptions", 1), `&`, ``, 1) + `,`, - `SupplementalGroups:` + strings.Replace(strings.Replace(this.SupplementalGroups.String(), "SupplementalGroupsStrategyOptions", "SupplementalGroupsStrategyOptions", 1), `&`, ``, 1) + `,`, - `FSGroup:` + strings.Replace(strings.Replace(this.FSGroup.String(), "FSGroupStrategyOptions", "FSGroupStrategyOptions", 1), `&`, ``, 1) + `,`, - `ReadOnlyRootFilesystem:` + fmt.Sprintf("%v", this.ReadOnlyRootFilesystem) + `,`, - `DefaultAllowPrivilegeEscalation:` + valueToStringGenerated(this.DefaultAllowPrivilegeEscalation) + `,`, - `AllowPrivilegeEscalation:` + valueToStringGenerated(this.AllowPrivilegeEscalation) + `,`, - `AllowedHostPaths:` + repeatedStringForAllowedHostPaths + `,`, - `AllowedFlexVolumes:` + repeatedStringForAllowedFlexVolumes + `,`, - `AllowedUnsafeSysctls:` + fmt.Sprintf("%v", this.AllowedUnsafeSysctls) + `,`, - `ForbiddenSysctls:` + fmt.Sprintf("%v", this.ForbiddenSysctls) + `,`, - `AllowedProcMountTypes:` + fmt.Sprintf("%v", this.AllowedProcMountTypes) + `,`, - `RunAsGroup:` + strings.Replace(this.RunAsGroup.String(), "RunAsGroupStrategyOptions", "RunAsGroupStrategyOptions", 1) + `,`, - `AllowedCSIDrivers:` + repeatedStringForAllowedCSIDrivers + `,`, - `RuntimeClass:` + strings.Replace(this.RuntimeClass.String(), "RuntimeClassStrategyOptions", "RuntimeClassStrategyOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RunAsGroupStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&RunAsGroupStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func (this *RunAsUserStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&RunAsUserStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func (this *RuntimeClassStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RuntimeClassStrategyOptions{`, - `AllowedRuntimeClassNames:` + fmt.Sprintf("%v", this.AllowedRuntimeClassNames) + `,`, - `DefaultRuntimeClassName:` + valueToStringGenerated(this.DefaultRuntimeClassName) + `,`, - `}`, - }, "") - return s -} -func (this *SELinuxStrategyOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SELinuxStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `SELinuxOptions:` + strings.Replace(fmt.Sprintf("%v", this.SELinuxOptions), "SELinuxOptions", "v11.SELinuxOptions", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SupplementalGroupsStrategyOptions) String() string { - if this == nil { - return "nil" - } - repeatedStringForRanges := "[]IDRange{" - for _, f := range this.Ranges { - repeatedStringForRanges += strings.Replace(strings.Replace(f.String(), "IDRange", "IDRange", 1), `&`, ``, 1) + "," - } - repeatedStringForRanges += "}" - s := strings.Join([]string{`&SupplementalGroupsStrategyOptions{`, - `Rule:` + fmt.Sprintf("%v", this.Rule) + `,`, - `Ranges:` + repeatedStringForRanges + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AllowedCSIDriver) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllowedCSIDriver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllowedCSIDriver: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AllowedFlexVolume) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllowedFlexVolume: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllowedFlexVolume: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Driver = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AllowedHostPath) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AllowedHostPath: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AllowedHostPath: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PathPrefix", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PathPrefix = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Eviction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Eviction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Eviction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteOptions == nil { - m.DeleteOptions = &v1.DeleteOptions{} - } - if err := m.DeleteOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FSGroupStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FSGroupStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FSGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = FSGroupStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostPortRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HostPortRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostPortRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - m.Min = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Min |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - m.Max = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Max |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *IDRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IDRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IDRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) - } - m.Min = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Min |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) - } - m.Max = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Max |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodDisruptionBudget) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodDisruptionBudget: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodDisruptionBudget: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodDisruptionBudgetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodDisruptionBudgetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodDisruptionBudgetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PodDisruptionBudget{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodDisruptionBudgetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodDisruptionBudgetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodDisruptionBudgetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinAvailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MinAvailable == nil { - m.MinAvailable = &intstr.IntOrString{} - } - if err := m.MinAvailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Selector == nil { - m.Selector = &v1.LabelSelector{} - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaxUnavailable == nil { - m.MaxUnavailable = &intstr.IntOrString{} - } - if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodDisruptionBudgetStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodDisruptionBudgetStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodDisruptionBudgetStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) - } - m.ObservedGeneration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ObservedGeneration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DisruptedPods == nil { - m.DisruptedPods = make(map[string]v1.Time) - } - var mapkey string - mapvalue := &v1.Time{} - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return ErrInvalidLengthGenerated - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return ErrInvalidLengthGenerated - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &v1.Time{} - if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.DisruptedPods[mapkey] = *mapvalue - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodDisruptionsAllowed", wireType) - } - m.PodDisruptionsAllowed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PodDisruptionsAllowed |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType) - } - m.CurrentHealthy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CurrentHealthy |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType) - } - m.DesiredHealthy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DesiredHealthy |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType) - } - m.ExpectedPods = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpectedPods |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicy) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicy: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicyList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicyList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicyList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PodSecurityPolicy{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodSecurityPolicySpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodSecurityPolicySpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodSecurityPolicySpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Privileged", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Privileged = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultAddCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultAddCapabilities = append(m.DefaultAddCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequiredDropCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequiredDropCapabilities = append(m.RequiredDropCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedCapabilities", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedCapabilities = append(m.AllowedCapabilities, k8s_io_api_core_v1.Capability(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, FSType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostNetwork = bool(v != 0) - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPorts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostPorts = append(m.HostPorts, HostPortRange{}) - if err := m.HostPorts[len(m.HostPorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPID", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostPID = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostIPC = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinux", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SELinux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsUser", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RunAsUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupplementalGroups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SupplementalGroups.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FSGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.FSGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReadOnlyRootFilesystem", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReadOnlyRootFilesystem = bool(v != 0) - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultAllowPrivilegeEscalation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.DefaultAllowPrivilegeEscalation = &b - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowPrivilegeEscalation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AllowPrivilegeEscalation = &b - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedHostPaths", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedHostPaths = append(m.AllowedHostPaths, AllowedHostPath{}) - if err := m.AllowedHostPaths[len(m.AllowedHostPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedFlexVolumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedFlexVolumes = append(m.AllowedFlexVolumes, AllowedFlexVolume{}) - if err := m.AllowedFlexVolumes[len(m.AllowedFlexVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedUnsafeSysctls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedUnsafeSysctls = append(m.AllowedUnsafeSysctls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ForbiddenSysctls", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ForbiddenSysctls = append(m.ForbiddenSysctls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedProcMountTypes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedProcMountTypes = append(m.AllowedProcMountTypes, k8s_io_api_core_v1.ProcMountType(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunAsGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RunAsGroup == nil { - m.RunAsGroup = &RunAsGroupStrategyOptions{} - } - if err := m.RunAsGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedCSIDrivers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedCSIDrivers = append(m.AllowedCSIDrivers, AllowedCSIDriver{}) - if err := m.AllowedCSIDrivers[len(m.AllowedCSIDrivers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuntimeClass", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.RuntimeClass == nil { - m.RuntimeClass = &RuntimeClassStrategyOptions{} - } - if err := m.RuntimeClass.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RunAsGroupStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RunAsGroupStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RunAsGroupStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = RunAsGroupStrategy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RunAsUserStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RunAsUserStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RunAsUserStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = RunAsUserStrategy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuntimeClassStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuntimeClassStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuntimeClassStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedRuntimeClassNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedRuntimeClassNames = append(m.AllowedRuntimeClassNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultRuntimeClassName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.DefaultRuntimeClassName = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SELinuxStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SELinuxStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SELinuxStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = SELinuxStrategy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SELinuxOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SELinuxOptions == nil { - m.SELinuxOptions = &v11.SELinuxOptions{} - } - if err := m.SELinuxOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SupplementalGroupsStrategyOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SupplementalGroupsStrategyOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rule = SupplementalGroupsStrategyType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ranges", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ranges = append(m.Ranges, IDRange{}) - if err := m.Ranges[len(m.Ranges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/policy/v1beta1/generated.proto b/pseudo/k8s/api/policy/v1beta1/generated.proto deleted file mode 100644 index cbbeb3252..000000000 --- a/pseudo/k8s/api/policy/v1beta1/generated.proto +++ /dev/null @@ -1,400 +0,0 @@ -/* -Copyright 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.policy.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. -message AllowedCSIDriver { - // Name is the registered name of the CSI driver - optional string name = 1; -} - -// AllowedFlexVolume represents a single Flexvolume that is allowed to be used. -message AllowedFlexVolume { - // driver is the name of the Flexvolume driver. - optional string driver = 1; -} - -// AllowedHostPath defines the host volume conditions that will be enabled by a policy -// for pods to use. It requires the path prefix to be defined. -message AllowedHostPath { - // pathPrefix is the path prefix that the host volume must match. - // It does not support `*`. - // Trailing slashes are trimmed when validating the path prefix with a host path. - // - // Examples: - // `/foo` would allow `/foo`, `/foo/` and `/foo/bar` - // `/foo` would not allow `/food` or `/etc/foo` - optional string pathPrefix = 1; - - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - // +optional - optional bool readOnly = 2; -} - -// Eviction evicts a pod from its node subject to certain policies and safety constraints. -// This is a subresource of Pod. A request to cause such an eviction is -// created by POSTing to .../pods//evictions. -message Eviction { - // ObjectMeta describes the pod that is being evicted. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // DeleteOptions may be provided - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; -} - -// FSGroupStrategyOptions defines the strategy type and options used to create the strategy. -message FSGroupStrategyOptions { - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - // +optional - optional string rule = 1; - - // ranges are the allowed ranges of fs groups. If you would like to force a single - // fs group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - -// HostPortRange defines a range of host ports that will be enabled by a policy -// for pods to use. It requires both the start and end to be defined. -message HostPortRange { - // min is the start of the range, inclusive. - optional int32 min = 1; - - // max is the end of the range, inclusive. - optional int32 max = 2; -} - -// IDRange provides a min/max of an allowed range of IDs. -message IDRange { - // min is the start of the range, inclusive. - optional int64 min = 1; - - // max is the end of the range, inclusive. - optional int64 max = 2; -} - -// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods -message PodDisruptionBudget { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the PodDisruptionBudget. - // +optional - optional PodDisruptionBudgetSpec spec = 2; - - // Most recently observed status of the PodDisruptionBudget. - // +optional - optional PodDisruptionBudgetStatus status = 3; -} - -// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. -message PodDisruptionBudgetList { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - repeated PodDisruptionBudget items = 2; -} - -// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. -message PodDisruptionBudgetSpec { - // An eviction is allowed if at least "minAvailable" pods selected by - // "selector" will still be available after the eviction, i.e. even in the - // absence of the evicted pod. So for example you can prevent all voluntary - // evictions by specifying "100%". - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; - - // Label query over pods whose evictions are managed by the disruption - // budget. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; - - // An eviction is allowed if at most "maxUnavailable" pods selected by - // "selector" are unavailable after the eviction, i.e. even in absence of - // the evicted pod. For example, one can prevent all voluntary evictions - // by specifying 0. This is a mutually exclusive setting with "minAvailable". - // +optional - optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; -} - -// PodDisruptionBudgetStatus represents information about the status of a -// PodDisruptionBudget. Status may trail the actual state of a system. -message PodDisruptionBudgetStatus { - // Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other - // status informatio is valid only if observedGeneration equals to PDB's object generation. - // +optional - optional int64 observedGeneration = 1; - - // DisruptedPods contains information about pods whose eviction was - // processed by the API server eviction subresource handler but has not - // yet been observed by the PodDisruptionBudget controller. - // A pod will be in this map from the time when the API server processed the - // eviction request to the time when the pod is seen by PDB controller - // as having been marked for deletion (or after a timeout). The key in the map is the name of the pod - // and the value is the time when the API server processed the eviction request. If - // the deletion didn't occur and a pod is still there it will be removed from - // the list automatically by PodDisruptionBudget controller after some time. - // If everything goes smooth this map should be empty for the most of the time. - // Large number of entries in the map may indicate problems with pod deletions. - // +optional - map disruptedPods = 2; - - // Number of pod disruptions that are currently allowed. - optional int32 disruptionsAllowed = 3; - - // current number of healthy pods - optional int32 currentHealthy = 4; - - // minimum desired number of healthy pods - optional int32 desiredHealthy = 5; - - // total number of pods counted by this disruption budget - optional int32 expectedPods = 6; -} - -// PodSecurityPolicy governs the ability to make requests that affect the Security Context -// that will be applied to a pod and container. -message PodSecurityPolicy { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec defines the policy enforced. - // +optional - optional PodSecurityPolicySpec spec = 2; -} - -// PodSecurityPolicyList is a list of PodSecurityPolicy objects. -message PodSecurityPolicyList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is a list of schema objects. - repeated PodSecurityPolicy items = 2; -} - -// PodSecurityPolicySpec defines the policy enforced. -message PodSecurityPolicySpec { - // privileged determines if a pod can request to be run as privileged. - // +optional - optional bool privileged = 1; - - // defaultAddCapabilities is the default set of capabilities that will be added to the container - // unless the pod spec specifically drops the capability. You may not list a capability in both - // defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly - // allowed, and need not be included in the allowedCapabilities list. - // +optional - repeated string defaultAddCapabilities = 2; - - // requiredDropCapabilities are the capabilities that will be dropped from the container. These - // are required to be dropped and cannot be added. - // +optional - repeated string requiredDropCapabilities = 3; - - // allowedCapabilities is a list of capabilities that can be requested to add to the container. - // Capabilities in this field may be added at the pod author's discretion. - // You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - // +optional - repeated string allowedCapabilities = 4; - - // volumes is a white list of allowed volume plugins. Empty indicates that - // no volumes may be used. To allow all volumes you may use '*'. - // +optional - repeated string volumes = 5; - - // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - // +optional - optional bool hostNetwork = 6; - - // hostPorts determines which host port ranges are allowed to be exposed. - // +optional - repeated HostPortRange hostPorts = 7; - - // hostPID determines if the policy allows the use of HostPID in the pod spec. - // +optional - optional bool hostPID = 8; - - // hostIPC determines if the policy allows the use of HostIPC in the pod spec. - // +optional - optional bool hostIPC = 9; - - // seLinux is the strategy that will dictate the allowable labels that may be set. - optional SELinuxStrategyOptions seLinux = 10; - - // runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - optional RunAsUserStrategyOptions runAsUser = 11; - - // RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. - // If this field is omitted, the pod's RunAsGroup can take any value. This field requires the - // RunAsGroup feature gate to be enabled. - // +optional - optional RunAsGroupStrategyOptions runAsGroup = 22; - - // supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - optional SupplementalGroupsStrategyOptions supplementalGroups = 12; - - // fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - optional FSGroupStrategyOptions fsGroup = 13; - - // readOnlyRootFilesystem when set to true will force containers to run with a read only root file - // system. If the container specifically requests to run with a non-read only root file system - // the PSP should deny the pod. - // If set to false the container may run with a read only root file system if it wishes but it - // will not be forced to. - // +optional - optional bool readOnlyRootFilesystem = 14; - - // defaultAllowPrivilegeEscalation controls the default setting for whether a - // process can gain more privileges than its parent process. - // +optional - optional bool defaultAllowPrivilegeEscalation = 15; - - // allowPrivilegeEscalation determines if a pod can request to allow - // privilege escalation. If unspecified, defaults to true. - // +optional - optional bool allowPrivilegeEscalation = 16; - - // allowedHostPaths is a white list of allowed host paths. Empty indicates - // that all host paths may be used. - // +optional - repeated AllowedHostPath allowedHostPaths = 17; - - // allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all - // Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes - // is allowed in the "volumes" field. - // +optional - repeated AllowedFlexVolume allowedFlexVolumes = 18; - - // AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. - // An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - // This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. - // +optional - repeated AllowedCSIDriver allowedCSIDrivers = 23; - - // allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. - // Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - // - // Examples: - // e.g. "foo/*" allows "foo/bar", "foo/baz", etc. - // e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - // +optional - repeated string allowedUnsafeSysctls = 19; - - // forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - // - // Examples: - // e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. - // e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - // +optional - repeated string forbiddenSysctls = 20; - - // AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. - // Empty or nil indicates that only the DefaultProcMountType may be used. - // This requires the ProcMountType feature flag to be enabled. - // +optional - repeated string allowedProcMountTypes = 21; - - // runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. - // If this field is omitted, the pod's runtimeClassName field is unrestricted. - // Enforcement of this field depends on the RuntimeClass feature gate being enabled. - // +optional - optional RuntimeClassStrategyOptions runtimeClass = 24; -} - -// RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. -message RunAsGroupStrategyOptions { - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - optional string rule = 1; - - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - -// RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. -message RunAsUserStrategyOptions { - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - optional string rule = 1; - - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - -// RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses -// for a pod. -message RuntimeClassStrategyOptions { - // allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. - // A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the - // list. An empty list requires the RuntimeClassName field to be unset. - repeated string allowedRuntimeClassNames = 1; - - // defaultRuntimeClassName is the default RuntimeClassName to set on the pod. - // The default MUST be allowed by the allowedRuntimeClassNames list. - // A value of nil does not mutate the Pod. - // +optional - optional string defaultRuntimeClassName = 2; -} - -// SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. -message SELinuxStrategyOptions { - // rule is the strategy that will dictate the allowable labels that may be set. - optional string rule = 1; - - // seLinuxOptions required to run as; required for MustRunAs - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - optional k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; -} - -// SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. -message SupplementalGroupsStrategyOptions { - // rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - // +optional - optional string rule = 1; - - // ranges are the allowed ranges of supplemental groups. If you would like to force a single - // supplemental group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - repeated IDRange ranges = 2; -} - diff --git a/pseudo/k8s/api/policy/v1beta1/register.go b/pseudo/k8s/api/policy/v1beta1/register.go deleted file mode 100644 index 979703e65..000000000 --- a/pseudo/k8s/api/policy/v1beta1/register.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2015 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "policy" - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &PodDisruptionBudget{}, - &PodDisruptionBudgetList{}, - &PodSecurityPolicy{}, - &PodSecurityPolicyList{}, - &Eviction{}, - ) - // Add the watch version that applies - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/policy/v1beta1/types.go b/pseudo/k8s/api/policy/v1beta1/types.go deleted file mode 100644 index 3e3a016a8..000000000 --- a/pseudo/k8s/api/policy/v1beta1/types.go +++ /dev/null @@ -1,489 +0,0 @@ -/* -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 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. -type PodDisruptionBudgetSpec struct { - // An eviction is allowed if at least "minAvailable" pods selected by - // "selector" will still be available after the eviction, i.e. even in the - // absence of the evicted pod. So for example you can prevent all voluntary - // evictions by specifying "100%". - // +optional - MinAvailable *intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"` - - // Label query over pods whose evictions are managed by the disruption - // budget. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` - - // An eviction is allowed if at most "maxUnavailable" pods selected by - // "selector" are unavailable after the eviction, i.e. even in absence of - // the evicted pod. For example, one can prevent all voluntary evictions - // by specifying 0. This is a mutually exclusive setting with "minAvailable". - // +optional - MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty" protobuf:"bytes,3,opt,name=maxUnavailable"` -} - -// PodDisruptionBudgetStatus represents information about the status of a -// PodDisruptionBudget. Status may trail the actual state of a system. -type PodDisruptionBudgetStatus struct { - // Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other - // status informatio is valid only if observedGeneration equals to PDB's object generation. - // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` - - // DisruptedPods contains information about pods whose eviction was - // processed by the API server eviction subresource handler but has not - // yet been observed by the PodDisruptionBudget controller. - // A pod will be in this map from the time when the API server processed the - // eviction request to the time when the pod is seen by PDB controller - // as having been marked for deletion (or after a timeout). The key in the map is the name of the pod - // and the value is the time when the API server processed the eviction request. If - // the deletion didn't occur and a pod is still there it will be removed from - // the list automatically by PodDisruptionBudget controller after some time. - // If everything goes smooth this map should be empty for the most of the time. - // Large number of entries in the map may indicate problems with pod deletions. - // +optional - DisruptedPods map[string]metav1.Time `json:"disruptedPods,omitempty" protobuf:"bytes,2,rep,name=disruptedPods"` - - // Number of pod disruptions that are currently allowed. - PodDisruptionsAllowed int32 `json:"disruptionsAllowed" protobuf:"varint,3,opt,name=disruptionsAllowed"` - - // current number of healthy pods - CurrentHealthy int32 `json:"currentHealthy" protobuf:"varint,4,opt,name=currentHealthy"` - - // minimum desired number of healthy pods - DesiredHealthy int32 `json:"desiredHealthy" protobuf:"varint,5,opt,name=desiredHealthy"` - - // total number of pods counted by this disruption budget - ExpectedPods int32 `json:"expectedPods" protobuf:"varint,6,opt,name=expectedPods"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods -type PodDisruptionBudget struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the PodDisruptionBudget. - // +optional - Spec PodDisruptionBudgetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - // Most recently observed status of the PodDisruptionBudget. - // +optional - Status PodDisruptionBudgetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. -type PodDisruptionBudgetList struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:noVerbs -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Eviction evicts a pod from its node subject to certain policies and safety constraints. -// This is a subresource of Pod. A request to cause such an eviction is -// created by POSTing to .../pods//evictions. -type Eviction struct { - metav1.TypeMeta `json:",inline"` - - // ObjectMeta describes the pod that is being evicted. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // DeleteOptions may be provided - // +optional - DeleteOptions *metav1.DeleteOptions `json:"deleteOptions,omitempty" protobuf:"bytes,2,opt,name=deleteOptions"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodSecurityPolicy governs the ability to make requests that affect the Security Context -// that will be applied to a pod and container. -type PodSecurityPolicy struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec defines the policy enforced. - // +optional - Spec PodSecurityPolicySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// PodSecurityPolicySpec defines the policy enforced. -type PodSecurityPolicySpec struct { - // privileged determines if a pod can request to be run as privileged. - // +optional - Privileged bool `json:"privileged,omitempty" protobuf:"varint,1,opt,name=privileged"` - // defaultAddCapabilities is the default set of capabilities that will be added to the container - // unless the pod spec specifically drops the capability. You may not list a capability in both - // defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly - // allowed, and need not be included in the allowedCapabilities list. - // +optional - DefaultAddCapabilities []v1.Capability `json:"defaultAddCapabilities,omitempty" protobuf:"bytes,2,rep,name=defaultAddCapabilities,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Capability"` - // requiredDropCapabilities are the capabilities that will be dropped from the container. These - // are required to be dropped and cannot be added. - // +optional - RequiredDropCapabilities []v1.Capability `json:"requiredDropCapabilities,omitempty" protobuf:"bytes,3,rep,name=requiredDropCapabilities,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Capability"` - // allowedCapabilities is a list of capabilities that can be requested to add to the container. - // Capabilities in this field may be added at the pod author's discretion. - // You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - // +optional - AllowedCapabilities []v1.Capability `json:"allowedCapabilities,omitempty" protobuf:"bytes,4,rep,name=allowedCapabilities,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.Capability"` - // volumes is a white list of allowed volume plugins. Empty indicates that - // no volumes may be used. To allow all volumes you may use '*'. - // +optional - Volumes []FSType `json:"volumes,omitempty" protobuf:"bytes,5,rep,name=volumes,casttype=FSType"` - // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - // +optional - HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,6,opt,name=hostNetwork"` - // hostPorts determines which host port ranges are allowed to be exposed. - // +optional - HostPorts []HostPortRange `json:"hostPorts,omitempty" protobuf:"bytes,7,rep,name=hostPorts"` - // hostPID determines if the policy allows the use of HostPID in the pod spec. - // +optional - HostPID bool `json:"hostPID,omitempty" protobuf:"varint,8,opt,name=hostPID"` - // hostIPC determines if the policy allows the use of HostIPC in the pod spec. - // +optional - HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,9,opt,name=hostIPC"` - // seLinux is the strategy that will dictate the allowable labels that may be set. - SELinux SELinuxStrategyOptions `json:"seLinux" protobuf:"bytes,10,opt,name=seLinux"` - // runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - RunAsUser RunAsUserStrategyOptions `json:"runAsUser" protobuf:"bytes,11,opt,name=runAsUser"` - // RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. - // If this field is omitted, the pod's RunAsGroup can take any value. This field requires the - // RunAsGroup feature gate to be enabled. - // +optional - RunAsGroup *RunAsGroupStrategyOptions `json:"runAsGroup,omitempty" protobuf:"bytes,22,opt,name=runAsGroup"` - // supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - SupplementalGroups SupplementalGroupsStrategyOptions `json:"supplementalGroups" protobuf:"bytes,12,opt,name=supplementalGroups"` - // fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - FSGroup FSGroupStrategyOptions `json:"fsGroup" protobuf:"bytes,13,opt,name=fsGroup"` - // readOnlyRootFilesystem when set to true will force containers to run with a read only root file - // system. If the container specifically requests to run with a non-read only root file system - // the PSP should deny the pod. - // If set to false the container may run with a read only root file system if it wishes but it - // will not be forced to. - // +optional - ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty" protobuf:"varint,14,opt,name=readOnlyRootFilesystem"` - // defaultAllowPrivilegeEscalation controls the default setting for whether a - // process can gain more privileges than its parent process. - // +optional - DefaultAllowPrivilegeEscalation *bool `json:"defaultAllowPrivilegeEscalation,omitempty" protobuf:"varint,15,opt,name=defaultAllowPrivilegeEscalation"` - // allowPrivilegeEscalation determines if a pod can request to allow - // privilege escalation. If unspecified, defaults to true. - // +optional - AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty" protobuf:"varint,16,opt,name=allowPrivilegeEscalation"` - // allowedHostPaths is a white list of allowed host paths. Empty indicates - // that all host paths may be used. - // +optional - AllowedHostPaths []AllowedHostPath `json:"allowedHostPaths,omitempty" protobuf:"bytes,17,rep,name=allowedHostPaths"` - // allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all - // Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes - // is allowed in the "volumes" field. - // +optional - AllowedFlexVolumes []AllowedFlexVolume `json:"allowedFlexVolumes,omitempty" protobuf:"bytes,18,rep,name=allowedFlexVolumes"` - // AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. - // An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - // This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. - // +optional - AllowedCSIDrivers []AllowedCSIDriver `json:"allowedCSIDrivers,omitempty" protobuf:"bytes,23,rep,name=allowedCSIDrivers"` - // allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. - // Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - // - // Examples: - // e.g. "foo/*" allows "foo/bar", "foo/baz", etc. - // e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - // +optional - AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty" protobuf:"bytes,19,rep,name=allowedUnsafeSysctls"` - // forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. - // Each entry is either a plain sysctl name or ends in "*" in which case it is considered - // as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - // - // Examples: - // e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. - // e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - // +optional - ForbiddenSysctls []string `json:"forbiddenSysctls,omitempty" protobuf:"bytes,20,rep,name=forbiddenSysctls"` - // AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. - // Empty or nil indicates that only the DefaultProcMountType may be used. - // This requires the ProcMountType feature flag to be enabled. - // +optional - AllowedProcMountTypes []v1.ProcMountType `json:"allowedProcMountTypes,omitempty" protobuf:"bytes,21,opt,name=allowedProcMountTypes"` - // runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. - // If this field is omitted, the pod's runtimeClassName field is unrestricted. - // Enforcement of this field depends on the RuntimeClass feature gate being enabled. - // +optional - RuntimeClass *RuntimeClassStrategyOptions `json:"runtimeClass,omitempty" protobuf:"bytes,24,opt,name=runtimeClass"` -} - -// AllowedHostPath defines the host volume conditions that will be enabled by a policy -// for pods to use. It requires the path prefix to be defined. -type AllowedHostPath struct { - // pathPrefix is the path prefix that the host volume must match. - // It does not support `*`. - // Trailing slashes are trimmed when validating the path prefix with a host path. - // - // Examples: - // `/foo` would allow `/foo`, `/foo/` and `/foo/bar` - // `/foo` would not allow `/food` or `/etc/foo` - PathPrefix string `json:"pathPrefix,omitempty" protobuf:"bytes,1,rep,name=pathPrefix"` - - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - // +optional - ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,2,opt,name=readOnly"` -} - -// AllowAllCapabilities can be used as a value for the PodSecurityPolicy.AllowAllCapabilities -// field and means that any capabilities are allowed to be requested. -var AllowAllCapabilities v1.Capability = "*" - -// FSType gives strong typing to different file systems that are used by volumes. -type FSType string - -var ( - AzureFile FSType = "azureFile" - Flocker FSType = "flocker" - FlexVolume FSType = "flexVolume" - HostPath FSType = "hostPath" - EmptyDir FSType = "emptyDir" - GCEPersistentDisk FSType = "gcePersistentDisk" - AWSElasticBlockStore FSType = "awsElasticBlockStore" - GitRepo FSType = "gitRepo" - Secret FSType = "secret" - NFS FSType = "nfs" - ISCSI FSType = "iscsi" - Glusterfs FSType = "glusterfs" - PersistentVolumeClaim FSType = "persistentVolumeClaim" - RBD FSType = "rbd" - Cinder FSType = "cinder" - CephFS FSType = "cephFS" - DownwardAPI FSType = "downwardAPI" - FC FSType = "fc" - ConfigMap FSType = "configMap" - VsphereVolume FSType = "vsphereVolume" - Quobyte FSType = "quobyte" - AzureDisk FSType = "azureDisk" - PhotonPersistentDisk FSType = "photonPersistentDisk" - StorageOS FSType = "storageos" - Projected FSType = "projected" - PortworxVolume FSType = "portworxVolume" - ScaleIO FSType = "scaleIO" - CSI FSType = "csi" - All FSType = "*" -) - -// AllowedFlexVolume represents a single Flexvolume that is allowed to be used. -type AllowedFlexVolume struct { - // driver is the name of the Flexvolume driver. - Driver string `json:"driver" protobuf:"bytes,1,opt,name=driver"` -} - -// AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. -type AllowedCSIDriver struct { - // Name is the registered name of the CSI driver - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` -} - -// HostPortRange defines a range of host ports that will be enabled by a policy -// for pods to use. It requires both the start and end to be defined. -type HostPortRange struct { - // min is the start of the range, inclusive. - Min int32 `json:"min" protobuf:"varint,1,opt,name=min"` - // max is the end of the range, inclusive. - Max int32 `json:"max" protobuf:"varint,2,opt,name=max"` -} - -// SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. -type SELinuxStrategyOptions struct { - // rule is the strategy that will dictate the allowable labels that may be set. - Rule SELinuxStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=SELinuxStrategy"` - // seLinuxOptions required to run as; required for MustRunAs - // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - // +optional - SELinuxOptions *v1.SELinuxOptions `json:"seLinuxOptions,omitempty" protobuf:"bytes,2,opt,name=seLinuxOptions"` -} - -// SELinuxStrategy denotes strategy types for generating SELinux options for a -// Security Context. -type SELinuxStrategy string - -const ( - // SELinuxStrategyMustRunAs means that container must have SELinux labels of X applied. - SELinuxStrategyMustRunAs SELinuxStrategy = "MustRunAs" - // SELinuxStrategyRunAsAny means that container may make requests for any SELinux context labels. - SELinuxStrategyRunAsAny SELinuxStrategy = "RunAsAny" -) - -// RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. -type RunAsUserStrategyOptions struct { - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - Rule RunAsUserStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=RunAsUserStrategy"` - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. -type RunAsGroupStrategyOptions struct { - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - Rule RunAsGroupStrategy `json:"rule" protobuf:"bytes,1,opt,name=rule,casttype=RunAsGroupStrategy"` - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid - // then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// IDRange provides a min/max of an allowed range of IDs. -type IDRange struct { - // min is the start of the range, inclusive. - Min int64 `json:"min" protobuf:"varint,1,opt,name=min"` - // max is the end of the range, inclusive. - Max int64 `json:"max" protobuf:"varint,2,opt,name=max"` -} - -// RunAsUserStrategy denotes strategy types for generating RunAsUser values for a -// Security Context. -type RunAsUserStrategy string - -const ( - // RunAsUserStrategyMustRunAs means that container must run as a particular uid. - RunAsUserStrategyMustRunAs RunAsUserStrategy = "MustRunAs" - // RunAsUserStrategyMustRunAsNonRoot means that container must run as a non-root uid. - RunAsUserStrategyMustRunAsNonRoot RunAsUserStrategy = "MustRunAsNonRoot" - // RunAsUserStrategyRunAsAny means that container may make requests for any uid. - RunAsUserStrategyRunAsAny RunAsUserStrategy = "RunAsAny" -) - -// RunAsGroupStrategy denotes strategy types for generating RunAsGroup values for a -// Security Context. -type RunAsGroupStrategy string - -const ( - // RunAsGroupStrategyMayRunAs means that container does not need to run with a particular gid. - // However, when RunAsGroup are specified, they have to fall in the defined range. - RunAsGroupStrategyMayRunAs RunAsGroupStrategy = "MayRunAs" - // RunAsGroupStrategyMustRunAs means that container must run as a particular gid. - RunAsGroupStrategyMustRunAs RunAsGroupStrategy = "MustRunAs" - // RunAsUserStrategyRunAsAny means that container may make requests for any gid. - RunAsGroupStrategyRunAsAny RunAsGroupStrategy = "RunAsAny" -) - -// FSGroupStrategyOptions defines the strategy type and options used to create the strategy. -type FSGroupStrategyOptions struct { - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - // +optional - Rule FSGroupStrategyType `json:"rule,omitempty" protobuf:"bytes,1,opt,name=rule,casttype=FSGroupStrategyType"` - // ranges are the allowed ranges of fs groups. If you would like to force a single - // fs group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// FSGroupStrategyType denotes strategy types for generating FSGroup values for a -// SecurityContext -type FSGroupStrategyType string - -const ( - // FSGroupStrategyMayRunAs means that container does not need to have FSGroup of X applied. - // However, when FSGroups are specified, they have to fall in the defined range. - FSGroupStrategyMayRunAs FSGroupStrategyType = "MayRunAs" - // FSGroupStrategyMustRunAs meant that container must have FSGroup of X applied. - FSGroupStrategyMustRunAs FSGroupStrategyType = "MustRunAs" - // FSGroupStrategyRunAsAny means that container may make requests for any FSGroup labels. - FSGroupStrategyRunAsAny FSGroupStrategyType = "RunAsAny" -) - -// SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. -type SupplementalGroupsStrategyOptions struct { - // rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - // +optional - Rule SupplementalGroupsStrategyType `json:"rule,omitempty" protobuf:"bytes,1,opt,name=rule,casttype=SupplementalGroupsStrategyType"` - // ranges are the allowed ranges of supplemental groups. If you would like to force a single - // supplemental group then supply a single range with the same start and end. Required for MustRunAs. - // +optional - Ranges []IDRange `json:"ranges,omitempty" protobuf:"bytes,2,rep,name=ranges"` -} - -// SupplementalGroupsStrategyType denotes strategy types for determining valid supplemental -// groups for a SecurityContext. -type SupplementalGroupsStrategyType string - -const ( - // SupplementalGroupsStrategyMayRunAs means that container does not need to run with a particular gid. - // However, when gids are specified, they have to fall in the defined range. - SupplementalGroupsStrategyMayRunAs SupplementalGroupsStrategyType = "MayRunAs" - // SupplementalGroupsStrategyMustRunAs means that container must run as a particular gid. - SupplementalGroupsStrategyMustRunAs SupplementalGroupsStrategyType = "MustRunAs" - // SupplementalGroupsStrategyRunAsAny means that container may make requests for any gid. - SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny" -) - -// RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses -// for a pod. -type RuntimeClassStrategyOptions struct { - // allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. - // A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the - // list. An empty list requires the RuntimeClassName field to be unset. - AllowedRuntimeClassNames []string `json:"allowedRuntimeClassNames" protobuf:"bytes,1,rep,name=allowedRuntimeClassNames"` - // defaultRuntimeClassName is the default RuntimeClassName to set on the pod. - // The default MUST be allowed by the allowedRuntimeClassNames list. - // A value of nil does not mutate the Pod. - // +optional - DefaultRuntimeClassName *string `json:"defaultRuntimeClassName,omitempty" protobuf:"bytes,2,opt,name=defaultRuntimeClassName"` -} - -// AllowAllRuntimeClassNames can be used as a value for the -// RuntimeClassStrategyOptions.AllowedRuntimeClassNames field and means that any RuntimeClassName is -// allowed. -const AllowAllRuntimeClassNames = "*" - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodSecurityPolicyList is a list of PodSecurityPolicy objects. -type PodSecurityPolicyList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is a list of schema objects. - Items []PodSecurityPolicy `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/policy/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/policy/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index 0bbc48f9f..000000000 --- a/pseudo/k8s/api/policy/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,243 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_AllowedCSIDriver = map[string]string{ - "": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", - "name": "Name is the registered name of the CSI driver", -} - -func (AllowedCSIDriver) SwaggerDoc() map[string]string { - return map_AllowedCSIDriver -} - -var map_AllowedFlexVolume = map[string]string{ - "": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.", - "driver": "driver is the name of the Flexvolume driver.", -} - -func (AllowedFlexVolume) SwaggerDoc() map[string]string { - return map_AllowedFlexVolume -} - -var map_AllowedHostPath = map[string]string{ - "": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.", - "pathPrefix": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", - "readOnly": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", -} - -func (AllowedHostPath) SwaggerDoc() map[string]string { - return map_AllowedHostPath -} - -var map_Eviction = map[string]string{ - "": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", - "metadata": "ObjectMeta describes the pod that is being evicted.", - "deleteOptions": "DeleteOptions may be provided", -} - -func (Eviction) SwaggerDoc() map[string]string { - return map_Eviction -} - -var map_FSGroupStrategyOptions = map[string]string{ - "": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", - "rule": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "ranges": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (FSGroupStrategyOptions) SwaggerDoc() map[string]string { - return map_FSGroupStrategyOptions -} - -var map_HostPortRange = map[string]string{ - "": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", - "min": "min is the start of the range, inclusive.", - "max": "max is the end of the range, inclusive.", -} - -func (HostPortRange) SwaggerDoc() map[string]string { - return map_HostPortRange -} - -var map_IDRange = map[string]string{ - "": "IDRange provides a min/max of an allowed range of IDs.", - "min": "min is the start of the range, inclusive.", - "max": "max is the end of the range, inclusive.", -} - -func (IDRange) SwaggerDoc() map[string]string { - return map_IDRange -} - -var map_PodDisruptionBudget = map[string]string{ - "": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "spec": "Specification of the desired behavior of the PodDisruptionBudget.", - "status": "Most recently observed status of the PodDisruptionBudget.", -} - -func (PodDisruptionBudget) SwaggerDoc() map[string]string { - return map_PodDisruptionBudget -} - -var map_PodDisruptionBudgetList = map[string]string{ - "": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", -} - -func (PodDisruptionBudgetList) SwaggerDoc() map[string]string { - return map_PodDisruptionBudgetList -} - -var map_PodDisruptionBudgetSpec = map[string]string{ - "": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "minAvailable": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".", - "selector": "Label query over pods whose evictions are managed by the disruption budget.", - "maxUnavailable": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".", -} - -func (PodDisruptionBudgetSpec) SwaggerDoc() map[string]string { - return map_PodDisruptionBudgetSpec -} - -var map_PodDisruptionBudgetStatus = map[string]string{ - "": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", - "observedGeneration": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.", - "disruptedPods": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "disruptionsAllowed": "Number of pod disruptions that are currently allowed.", - "currentHealthy": "current number of healthy pods", - "desiredHealthy": "minimum desired number of healthy pods", - "expectedPods": "total number of pods counted by this disruption budget", -} - -func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string { - return map_PodDisruptionBudgetStatus -} - -var map_PodSecurityPolicy = map[string]string{ - "": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "spec defines the policy enforced.", -} - -func (PodSecurityPolicy) SwaggerDoc() map[string]string { - return map_PodSecurityPolicy -} - -var map_PodSecurityPolicyList = map[string]string{ - "": "PodSecurityPolicyList is a list of PodSecurityPolicy objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is a list of schema objects.", -} - -func (PodSecurityPolicyList) SwaggerDoc() map[string]string { - return map_PodSecurityPolicyList -} - -var map_PodSecurityPolicySpec = map[string]string{ - "": "PodSecurityPolicySpec defines the policy enforced.", - "privileged": "privileged determines if a pod can request to be run as privileged.", - "defaultAddCapabilities": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", - "requiredDropCapabilities": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "allowedCapabilities": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "volumes": "volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", - "hostNetwork": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "hostPorts": "hostPorts determines which host port ranges are allowed to be exposed.", - "hostPID": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "hostIPC": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "seLinux": "seLinux is the strategy that will dictate the allowable labels that may be set.", - "runAsUser": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.", - "runAsGroup": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled.", - "supplementalGroups": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.", - "fsGroup": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.", - "readOnlyRootFilesystem": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "defaultAllowPrivilegeEscalation": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "allowPrivilegeEscalation": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "allowedHostPaths": "allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.", - "allowedFlexVolumes": "allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", - "allowedCSIDrivers": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", - "allowedUnsafeSysctls": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "forbiddenSysctls": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", - "allowedProcMountTypes": "AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", - "runtimeClass": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled.", -} - -func (PodSecurityPolicySpec) SwaggerDoc() map[string]string { - return map_PodSecurityPolicySpec -} - -var map_RunAsGroupStrategyOptions = map[string]string{ - "": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.", - "rule": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", - "ranges": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (RunAsGroupStrategyOptions) SwaggerDoc() map[string]string { - return map_RunAsGroupStrategyOptions -} - -var map_RunAsUserStrategyOptions = map[string]string{ - "": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", - "rule": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "ranges": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (RunAsUserStrategyOptions) SwaggerDoc() map[string]string { - return map_RunAsUserStrategyOptions -} - -var map_RuntimeClassStrategyOptions = map[string]string{ - "": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "allowedRuntimeClassNames": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "defaultRuntimeClassName": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", -} - -func (RuntimeClassStrategyOptions) SwaggerDoc() map[string]string { - return map_RuntimeClassStrategyOptions -} - -var map_SELinuxStrategyOptions = map[string]string{ - "": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", - "rule": "rule is the strategy that will dictate the allowable labels that may be set.", - "seLinuxOptions": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", -} - -func (SELinuxStrategyOptions) SwaggerDoc() map[string]string { - return map_SELinuxStrategyOptions -} - -var map_SupplementalGroupsStrategyOptions = map[string]string{ - "": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", - "rule": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "ranges": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", -} - -func (SupplementalGroupsStrategyOptions) SwaggerDoc() map[string]string { - return map_SupplementalGroupsStrategyOptions -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/policy/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/policy/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 9929ad253..000000000 --- a/pseudo/k8s/api/policy/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,540 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - intstr "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AllowedCSIDriver) DeepCopyInto(out *AllowedCSIDriver) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedCSIDriver. -func (in *AllowedCSIDriver) DeepCopy() *AllowedCSIDriver { - if in == nil { - return nil - } - out := new(AllowedCSIDriver) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AllowedFlexVolume) DeepCopyInto(out *AllowedFlexVolume) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedFlexVolume. -func (in *AllowedFlexVolume) DeepCopy() *AllowedFlexVolume { - if in == nil { - return nil - } - out := new(AllowedFlexVolume) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AllowedHostPath) DeepCopyInto(out *AllowedHostPath) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllowedHostPath. -func (in *AllowedHostPath) DeepCopy() *AllowedHostPath { - if in == nil { - return nil - } - out := new(AllowedHostPath) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Eviction) DeepCopyInto(out *Eviction) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.DeleteOptions != nil { - in, out := &in.DeleteOptions, &out.DeleteOptions - *out = new(v1.DeleteOptions) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Eviction. -func (in *Eviction) DeepCopy() *Eviction { - if in == nil { - return nil - } - out := new(Eviction) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Eviction) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FSGroupStrategyOptions) DeepCopyInto(out *FSGroupStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSGroupStrategyOptions. -func (in *FSGroupStrategyOptions) DeepCopy() *FSGroupStrategyOptions { - if in == nil { - return nil - } - out := new(FSGroupStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostPortRange) DeepCopyInto(out *HostPortRange) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPortRange. -func (in *HostPortRange) DeepCopy() *HostPortRange { - if in == nil { - return nil - } - out := new(HostPortRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IDRange) DeepCopyInto(out *IDRange) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDRange. -func (in *IDRange) DeepCopy() *IDRange { - if in == nil { - return nil - } - out := new(IDRange) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget. -func (in *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget { - if in == nil { - return nil - } - out := new(PodDisruptionBudget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodDisruptionBudget) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PodDisruptionBudget, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList. -func (in *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList { - if in == nil { - return nil - } - out := new(PodDisruptionBudgetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodDisruptionBudgetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) { - *out = *in - if in.MinAvailable != nil { - in, out := &in.MinAvailable, &out.MinAvailable - *out = new(intstr.IntOrString) - **out = **in - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(v1.LabelSelector) - (*in).DeepCopyInto(*out) - } - if in.MaxUnavailable != nil { - in, out := &in.MaxUnavailable, &out.MaxUnavailable - *out = new(intstr.IntOrString) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec. -func (in *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec { - if in == nil { - return nil - } - out := new(PodDisruptionBudgetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) { - *out = *in - if in.DisruptedPods != nil { - in, out := &in.DisruptedPods, &out.DisruptedPods - *out = make(map[string]v1.Time, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus. -func (in *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus { - if in == nil { - return nil - } - out := new(PodDisruptionBudgetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicy) DeepCopyInto(out *PodSecurityPolicy) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicy. -func (in *PodSecurityPolicy) DeepCopy() *PodSecurityPolicy { - if in == nil { - return nil - } - out := new(PodSecurityPolicy) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodSecurityPolicy) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PodSecurityPolicy, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList. -func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList { - if in == nil { - return nil - } - out := new(PodSecurityPolicyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicySpec) DeepCopyInto(out *PodSecurityPolicySpec) { - *out = *in - if in.DefaultAddCapabilities != nil { - in, out := &in.DefaultAddCapabilities, &out.DefaultAddCapabilities - *out = make([]corev1.Capability, len(*in)) - copy(*out, *in) - } - if in.RequiredDropCapabilities != nil { - in, out := &in.RequiredDropCapabilities, &out.RequiredDropCapabilities - *out = make([]corev1.Capability, len(*in)) - copy(*out, *in) - } - if in.AllowedCapabilities != nil { - in, out := &in.AllowedCapabilities, &out.AllowedCapabilities - *out = make([]corev1.Capability, len(*in)) - copy(*out, *in) - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]FSType, len(*in)) - copy(*out, *in) - } - if in.HostPorts != nil { - in, out := &in.HostPorts, &out.HostPorts - *out = make([]HostPortRange, len(*in)) - copy(*out, *in) - } - in.SELinux.DeepCopyInto(&out.SELinux) - in.RunAsUser.DeepCopyInto(&out.RunAsUser) - if in.RunAsGroup != nil { - in, out := &in.RunAsGroup, &out.RunAsGroup - *out = new(RunAsGroupStrategyOptions) - (*in).DeepCopyInto(*out) - } - in.SupplementalGroups.DeepCopyInto(&out.SupplementalGroups) - in.FSGroup.DeepCopyInto(&out.FSGroup) - if in.DefaultAllowPrivilegeEscalation != nil { - in, out := &in.DefaultAllowPrivilegeEscalation, &out.DefaultAllowPrivilegeEscalation - *out = new(bool) - **out = **in - } - if in.AllowPrivilegeEscalation != nil { - in, out := &in.AllowPrivilegeEscalation, &out.AllowPrivilegeEscalation - *out = new(bool) - **out = **in - } - if in.AllowedHostPaths != nil { - in, out := &in.AllowedHostPaths, &out.AllowedHostPaths - *out = make([]AllowedHostPath, len(*in)) - copy(*out, *in) - } - if in.AllowedFlexVolumes != nil { - in, out := &in.AllowedFlexVolumes, &out.AllowedFlexVolumes - *out = make([]AllowedFlexVolume, len(*in)) - copy(*out, *in) - } - if in.AllowedCSIDrivers != nil { - in, out := &in.AllowedCSIDrivers, &out.AllowedCSIDrivers - *out = make([]AllowedCSIDriver, len(*in)) - copy(*out, *in) - } - if in.AllowedUnsafeSysctls != nil { - in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ForbiddenSysctls != nil { - in, out := &in.ForbiddenSysctls, &out.ForbiddenSysctls - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AllowedProcMountTypes != nil { - in, out := &in.AllowedProcMountTypes, &out.AllowedProcMountTypes - *out = make([]corev1.ProcMountType, len(*in)) - copy(*out, *in) - } - if in.RuntimeClass != nil { - in, out := &in.RuntimeClass, &out.RuntimeClass - *out = new(RuntimeClassStrategyOptions) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicySpec. -func (in *PodSecurityPolicySpec) DeepCopy() *PodSecurityPolicySpec { - if in == nil { - return nil - } - out := new(PodSecurityPolicySpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunAsGroupStrategyOptions) DeepCopyInto(out *RunAsGroupStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsGroupStrategyOptions. -func (in *RunAsGroupStrategyOptions) DeepCopy() *RunAsGroupStrategyOptions { - if in == nil { - return nil - } - out := new(RunAsGroupStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunAsUserStrategyOptions) DeepCopyInto(out *RunAsUserStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunAsUserStrategyOptions. -func (in *RunAsUserStrategyOptions) DeepCopy() *RunAsUserStrategyOptions { - if in == nil { - return nil - } - out := new(RunAsUserStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RuntimeClassStrategyOptions) DeepCopyInto(out *RuntimeClassStrategyOptions) { - *out = *in - if in.AllowedRuntimeClassNames != nil { - in, out := &in.AllowedRuntimeClassNames, &out.AllowedRuntimeClassNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.DefaultRuntimeClassName != nil { - in, out := &in.DefaultRuntimeClassName, &out.DefaultRuntimeClassName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuntimeClassStrategyOptions. -func (in *RuntimeClassStrategyOptions) DeepCopy() *RuntimeClassStrategyOptions { - if in == nil { - return nil - } - out := new(RuntimeClassStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SELinuxStrategyOptions) DeepCopyInto(out *SELinuxStrategyOptions) { - *out = *in - if in.SELinuxOptions != nil { - in, out := &in.SELinuxOptions, &out.SELinuxOptions - *out = new(corev1.SELinuxOptions) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SELinuxStrategyOptions. -func (in *SELinuxStrategyOptions) DeepCopy() *SELinuxStrategyOptions { - if in == nil { - return nil - } - out := new(SELinuxStrategyOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SupplementalGroupsStrategyOptions) DeepCopyInto(out *SupplementalGroupsStrategyOptions) { - *out = *in - if in.Ranges != nil { - in, out := &in.Ranges, &out.Ranges - *out = make([]IDRange, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplementalGroupsStrategyOptions. -func (in *SupplementalGroupsStrategyOptions) DeepCopy() *SupplementalGroupsStrategyOptions { - if in == nil { - return nil - } - out := new(SupplementalGroupsStrategyOptions) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/rbac/v1/doc.go b/pseudo/k8s/api/rbac/v1/doc.go deleted file mode 100644 index b957c8159..000000000 --- a/pseudo/k8s/api/rbac/v1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=rbac.authorization.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1" diff --git a/pseudo/k8s/api/rbac/v1/generated.pb.go b/pseudo/k8s/api/rbac/v1/generated.pb.go deleted file mode 100644 index c3fe294b9..000000000 --- a/pseudo/k8s/api/rbac/v1/generated.pb.go +++ /dev/null @@ -1,3292 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AggregationRule) Reset() { *m = AggregationRule{} } -func (*AggregationRule) ProtoMessage() {} -func (*AggregationRule) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{0} -} -func (m *AggregationRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AggregationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AggregationRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggregationRule.Merge(m, src) -} -func (m *AggregationRule) XXX_Size() int { - return m.Size() -} -func (m *AggregationRule) XXX_DiscardUnknown() { - xxx_messageInfo_AggregationRule.DiscardUnknown(m) -} - -var xxx_messageInfo_AggregationRule proto.InternalMessageInfo - -func (m *ClusterRole) Reset() { *m = ClusterRole{} } -func (*ClusterRole) ProtoMessage() {} -func (*ClusterRole) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{1} -} -func (m *ClusterRole) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRole) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRole.Merge(m, src) -} -func (m *ClusterRole) XXX_Size() int { - return m.Size() -} -func (m *ClusterRole) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRole.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRole proto.InternalMessageInfo - -func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } -func (*ClusterRoleBinding) ProtoMessage() {} -func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{2} -} -func (m *ClusterRoleBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleBinding.Merge(m, src) -} -func (m *ClusterRoleBinding) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleBinding) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleBinding proto.InternalMessageInfo - -func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} } -func (*ClusterRoleBindingList) ProtoMessage() {} -func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{3} -} -func (m *ClusterRoleBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleBindingList.Merge(m, src) -} -func (m *ClusterRoleBindingList) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleBindingList proto.InternalMessageInfo - -func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} } -func (*ClusterRoleList) ProtoMessage() {} -func (*ClusterRoleList) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{4} -} -func (m *ClusterRoleList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleList.Merge(m, src) -} -func (m *ClusterRoleList) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleList) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleList.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleList proto.InternalMessageInfo - -func (m *PolicyRule) Reset() { *m = PolicyRule{} } -func (*PolicyRule) ProtoMessage() {} -func (*PolicyRule) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{5} -} -func (m *PolicyRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PolicyRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_PolicyRule.Merge(m, src) -} -func (m *PolicyRule) XXX_Size() int { - return m.Size() -} -func (m *PolicyRule) XXX_DiscardUnknown() { - xxx_messageInfo_PolicyRule.DiscardUnknown(m) -} - -var xxx_messageInfo_PolicyRule proto.InternalMessageInfo - -func (m *Role) Reset() { *m = Role{} } -func (*Role) ProtoMessage() {} -func (*Role) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{6} -} -func (m *Role) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Role) XXX_Merge(src proto.Message) { - xxx_messageInfo_Role.Merge(m, src) -} -func (m *Role) XXX_Size() int { - return m.Size() -} -func (m *Role) XXX_DiscardUnknown() { - xxx_messageInfo_Role.DiscardUnknown(m) -} - -var xxx_messageInfo_Role proto.InternalMessageInfo - -func (m *RoleBinding) Reset() { *m = RoleBinding{} } -func (*RoleBinding) ProtoMessage() {} -func (*RoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{7} -} -func (m *RoleBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleBinding.Merge(m, src) -} -func (m *RoleBinding) XXX_Size() int { - return m.Size() -} -func (m *RoleBinding) XXX_DiscardUnknown() { - xxx_messageInfo_RoleBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleBinding proto.InternalMessageInfo - -func (m *RoleBindingList) Reset() { *m = RoleBindingList{} } -func (*RoleBindingList) ProtoMessage() {} -func (*RoleBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{8} -} -func (m *RoleBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleBindingList.Merge(m, src) -} -func (m *RoleBindingList) XXX_Size() int { - return m.Size() -} -func (m *RoleBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_RoleBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleBindingList proto.InternalMessageInfo - -func (m *RoleList) Reset() { *m = RoleList{} } -func (*RoleList) ProtoMessage() {} -func (*RoleList) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{9} -} -func (m *RoleList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleList.Merge(m, src) -} -func (m *RoleList) XXX_Size() int { - return m.Size() -} -func (m *RoleList) XXX_DiscardUnknown() { - xxx_messageInfo_RoleList.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleList proto.InternalMessageInfo - -func (m *RoleRef) Reset() { *m = RoleRef{} } -func (*RoleRef) ProtoMessage() {} -func (*RoleRef) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{10} -} -func (m *RoleRef) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleRef) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleRef.Merge(m, src) -} -func (m *RoleRef) XXX_Size() int { - return m.Size() -} -func (m *RoleRef) XXX_DiscardUnknown() { - xxx_messageInfo_RoleRef.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleRef proto.InternalMessageInfo - -func (m *Subject) Reset() { *m = Subject{} } -func (*Subject) ProtoMessage() {} -func (*Subject) Descriptor() ([]byte, []int) { - return fileDescriptor_979ffd7b30c07419, []int{11} -} -func (m *Subject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Subject) XXX_Merge(src proto.Message) { - xxx_messageInfo_Subject.Merge(m, src) -} -func (m *Subject) XXX_Size() int { - return m.Size() -} -func (m *Subject) XXX_DiscardUnknown() { - xxx_messageInfo_Subject.DiscardUnknown(m) -} - -var xxx_messageInfo_Subject proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AggregationRule)(nil), "k8s.io.api.rbac.v1.AggregationRule") - proto.RegisterType((*ClusterRole)(nil), "k8s.io.api.rbac.v1.ClusterRole") - proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.api.rbac.v1.ClusterRoleBinding") - proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.api.rbac.v1.ClusterRoleBindingList") - proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.api.rbac.v1.ClusterRoleList") - proto.RegisterType((*PolicyRule)(nil), "k8s.io.api.rbac.v1.PolicyRule") - proto.RegisterType((*Role)(nil), "k8s.io.api.rbac.v1.Role") - proto.RegisterType((*RoleBinding)(nil), "k8s.io.api.rbac.v1.RoleBinding") - proto.RegisterType((*RoleBindingList)(nil), "k8s.io.api.rbac.v1.RoleBindingList") - proto.RegisterType((*RoleList)(nil), "k8s.io.api.rbac.v1.RoleList") - proto.RegisterType((*RoleRef)(nil), "k8s.io.api.rbac.v1.RoleRef") - proto.RegisterType((*Subject)(nil), "k8s.io.api.rbac.v1.Subject") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1/generated.proto", fileDescriptor_979ffd7b30c07419) -} - -var fileDescriptor_979ffd7b30c07419 = []byte{ - // 807 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0xcf, 0x6f, 0xe3, 0x44, - 0x14, 0xce, 0xa4, 0x89, 0x1a, 0x4f, 0x88, 0x42, 0x87, 0x0a, 0x59, 0x05, 0x39, 0x95, 0x91, 0x50, - 0x25, 0xc0, 0x26, 0x05, 0x01, 0x12, 0xea, 0xa1, 0x2e, 0x02, 0x55, 0x2d, 0xa5, 0x9a, 0x0a, 0x0e, - 0x88, 0x03, 0x63, 0x67, 0xea, 0x0e, 0xf1, 0x2f, 0xcd, 0xd8, 0x91, 0x2a, 0x2e, 0x08, 0x89, 0x03, - 0xb7, 0x3d, 0xee, 0xfe, 0x05, 0x7b, 0xd9, 0x3d, 0xee, 0x5f, 0xb0, 0x97, 0x1e, 0x7b, 0xec, 0x29, - 0xda, 0x7a, 0xff, 0x90, 0x5d, 0xf9, 0x57, 0x9c, 0x1f, 0xee, 0x36, 0xa7, 0x48, 0xab, 0x3d, 0xb5, - 0xf3, 0xde, 0xf7, 0xbe, 0xf7, 0xcd, 0xe7, 0x79, 0x2f, 0xf0, 0xfb, 0xe1, 0x77, 0x42, 0x63, 0xbe, - 0x3e, 0x8c, 0x4c, 0xca, 0x3d, 0x1a, 0x52, 0xa1, 0x8f, 0xa8, 0x37, 0xf0, 0xb9, 0x9e, 0x27, 0x48, - 0xc0, 0x74, 0x6e, 0x12, 0x4b, 0x1f, 0xf5, 0x75, 0x9b, 0x7a, 0x94, 0x93, 0x90, 0x0e, 0xb4, 0x80, - 0xfb, 0xa1, 0x8f, 0x50, 0x86, 0xd1, 0x48, 0xc0, 0xb4, 0x04, 0xa3, 0x8d, 0xfa, 0x5b, 0x5f, 0xd8, - 0x2c, 0xbc, 0x88, 0x4c, 0xcd, 0xf2, 0x5d, 0xdd, 0xf6, 0x6d, 0x5f, 0x4f, 0xa1, 0x66, 0x74, 0x9e, - 0x9e, 0xd2, 0x43, 0xfa, 0x5f, 0x46, 0xb1, 0xf5, 0x75, 0xd9, 0xc6, 0x25, 0xd6, 0x05, 0xf3, 0x28, - 0xbf, 0xd4, 0x83, 0xa1, 0x9d, 0x04, 0x84, 0xee, 0xd2, 0x90, 0x54, 0x34, 0xde, 0xd2, 0xef, 0xaa, - 0xe2, 0x91, 0x17, 0x32, 0x97, 0x2e, 0x14, 0x7c, 0x73, 0x5f, 0x81, 0xb0, 0x2e, 0xa8, 0x4b, 0xe6, - 0xeb, 0xd4, 0x47, 0x00, 0x76, 0xf7, 0x6d, 0x9b, 0x53, 0x9b, 0x84, 0xcc, 0xf7, 0x70, 0xe4, 0x50, - 0xf4, 0x1f, 0x80, 0x9b, 0x96, 0x13, 0x89, 0x90, 0x72, 0xec, 0x3b, 0xf4, 0x8c, 0x3a, 0xd4, 0x0a, - 0x7d, 0x2e, 0x64, 0xb0, 0xbd, 0xb6, 0xd3, 0xde, 0xfd, 0x4a, 0x2b, 0x5d, 0x99, 0xf4, 0xd2, 0x82, - 0xa1, 0x9d, 0x04, 0x84, 0x96, 0x5c, 0x49, 0x1b, 0xf5, 0xb5, 0x63, 0x62, 0x52, 0xa7, 0xa8, 0x35, - 0x3e, 0xbe, 0x1a, 0xf7, 0x6a, 0xf1, 0xb8, 0xb7, 0x79, 0x50, 0x41, 0x8c, 0x2b, 0xdb, 0xa9, 0x0f, - 0xeb, 0xb0, 0x3d, 0x05, 0x47, 0x7f, 0xc2, 0x56, 0x42, 0x3e, 0x20, 0x21, 0x91, 0xc1, 0x36, 0xd8, - 0x69, 0xef, 0x7e, 0xb9, 0x9c, 0x94, 0x5f, 0xcc, 0xbf, 0xa8, 0x15, 0xfe, 0x4c, 0x43, 0x62, 0xa0, - 0x5c, 0x07, 0x2c, 0x63, 0x78, 0xc2, 0x8a, 0x0e, 0x60, 0x93, 0x47, 0x0e, 0x15, 0x72, 0x3d, 0xbd, - 0xa9, 0xa2, 0x2d, 0x7e, 0x7f, 0xed, 0xd4, 0x77, 0x98, 0x75, 0x99, 0x18, 0x65, 0x74, 0x72, 0xb2, - 0x66, 0x72, 0x12, 0x38, 0xab, 0x45, 0x26, 0xec, 0x92, 0x59, 0x47, 0xe5, 0xb5, 0x54, 0xed, 0x27, - 0x55, 0x74, 0x73, 0xe6, 0x1b, 0x1f, 0xc4, 0xe3, 0xde, 0xfc, 0x17, 0xc1, 0xf3, 0x84, 0xea, 0xff, - 0x75, 0x88, 0xa6, 0xac, 0x31, 0x98, 0x37, 0x60, 0x9e, 0xbd, 0x02, 0x87, 0x0e, 0x61, 0x4b, 0x44, - 0x69, 0xa2, 0x30, 0xe9, 0xa3, 0xaa, 0x5b, 0x9d, 0x65, 0x18, 0xe3, 0xfd, 0x9c, 0xac, 0x95, 0x07, - 0x04, 0x9e, 0x94, 0xa3, 0x1f, 0xe1, 0x3a, 0xf7, 0x1d, 0x8a, 0xe9, 0x79, 0xee, 0x4f, 0x25, 0x13, - 0xce, 0x20, 0x46, 0x37, 0x67, 0x5a, 0xcf, 0x03, 0xb8, 0x28, 0x56, 0x9f, 0x03, 0xf8, 0xe1, 0xa2, - 0x17, 0xc7, 0x4c, 0x84, 0xe8, 0x8f, 0x05, 0x3f, 0xb4, 0x25, 0x1f, 0x2f, 0x13, 0x99, 0x1b, 0x93, - 0x0b, 0x14, 0x91, 0x29, 0x2f, 0x8e, 0x60, 0x93, 0x85, 0xd4, 0x2d, 0x8c, 0xf8, 0xb4, 0x4a, 0xfe, - 0xa2, 0xb0, 0xf2, 0xd5, 0x1c, 0x26, 0xc5, 0x38, 0xe3, 0x50, 0x9f, 0x01, 0xd8, 0x9d, 0x02, 0xaf, - 0x40, 0xfe, 0x0f, 0xb3, 0xf2, 0x7b, 0xf7, 0xc9, 0xaf, 0xd6, 0xfd, 0x0a, 0x40, 0x58, 0x8e, 0x04, - 0xea, 0xc1, 0xe6, 0x88, 0x72, 0x33, 0xdb, 0x15, 0x92, 0x21, 0x25, 0xf8, 0xdf, 0x92, 0x00, 0xce, - 0xe2, 0xe8, 0x33, 0x28, 0x91, 0x80, 0xfd, 0xc4, 0xfd, 0x28, 0xc8, 0x3a, 0x4b, 0x46, 0x27, 0x1e, - 0xf7, 0xa4, 0xfd, 0xd3, 0xc3, 0x2c, 0x88, 0xcb, 0x7c, 0x02, 0xe6, 0x54, 0xf8, 0x11, 0xb7, 0xa8, - 0x90, 0xd7, 0x4a, 0x30, 0x2e, 0x82, 0xb8, 0xcc, 0xa3, 0x6f, 0x61, 0xa7, 0x38, 0x9c, 0x10, 0x97, - 0x0a, 0xb9, 0x91, 0x16, 0x6c, 0xc4, 0xe3, 0x5e, 0x07, 0x4f, 0x27, 0xf0, 0x2c, 0x0e, 0xed, 0xc1, - 0xae, 0xe7, 0x7b, 0x05, 0xe4, 0x57, 0x7c, 0x2c, 0xe4, 0x66, 0x5a, 0x9a, 0xce, 0xe2, 0xc9, 0x6c, - 0x0a, 0xcf, 0x63, 0xd5, 0xa7, 0x00, 0x36, 0xde, 0xa2, 0xfd, 0xa4, 0xfe, 0x5b, 0x87, 0xed, 0x77, - 0x7e, 0x69, 0x24, 0xe3, 0xb6, 0xda, 0x6d, 0xb1, 0xcc, 0xb8, 0xdd, 0xbf, 0x26, 0x1e, 0x03, 0xd8, - 0x5a, 0xd1, 0x7e, 0xd8, 0x9b, 0x15, 0x2c, 0xdf, 0x29, 0xb8, 0x5a, 0xe9, 0xdf, 0xb0, 0x70, 0x1d, - 0x7d, 0x0e, 0x5b, 0xc5, 0x4c, 0xa7, 0x3a, 0xa5, 0xb2, 0x6f, 0x31, 0xf6, 0x78, 0x82, 0x40, 0xdb, - 0xb0, 0x31, 0x64, 0xde, 0x40, 0xae, 0xa7, 0xc8, 0xf7, 0x72, 0x64, 0xe3, 0x88, 0x79, 0x03, 0x9c, - 0x66, 0x12, 0x84, 0x47, 0xdc, 0xec, 0x67, 0x75, 0x0a, 0x91, 0x4c, 0x33, 0x4e, 0x33, 0xea, 0x13, - 0x00, 0xd7, 0xf3, 0xd7, 0x33, 0xe1, 0x03, 0x77, 0xf2, 0x4d, 0xeb, 0xab, 0x2f, 0xa3, 0xef, 0xcd, - 0xdd, 0x91, 0x0e, 0xa5, 0xe4, 0xaf, 0x08, 0x88, 0x45, 0xe5, 0x46, 0x0a, 0xdb, 0xc8, 0x61, 0xd2, - 0x49, 0x91, 0xc0, 0x25, 0xc6, 0xd8, 0xb9, 0xba, 0x55, 0x6a, 0xd7, 0xb7, 0x4a, 0xed, 0xe6, 0x56, - 0xa9, 0xfd, 0x13, 0x2b, 0xe0, 0x2a, 0x56, 0xc0, 0x75, 0xac, 0x80, 0x9b, 0x58, 0x01, 0x2f, 0x62, - 0x05, 0x3c, 0x78, 0xa9, 0xd4, 0x7e, 0xaf, 0x8f, 0xfa, 0xaf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x24, - 0xa1, 0x47, 0x98, 0xcf, 0x0a, 0x00, 0x00, -} - -func (m *AggregationRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AggregationRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterRoleSelectors) > 0 { - for iNdEx := len(m.ClusterRoleSelectors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ClusterRoleSelectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ClusterRole) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AggregationRule != nil { - { - size, err := m.AggregationRule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PolicyRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NonResourceURLs) > 0 { - for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NonResourceURLs[iNdEx]) - copy(dAtA[i:], m.NonResourceURLs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.ResourceNames) > 0 { - for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ResourceNames[iNdEx]) - copy(dAtA[i:], m.ResourceNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Role) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Role) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleRef) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleRef) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIGroup) - copy(dAtA[i:], m.APIGroup) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Subject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Subject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x22 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.APIGroup) - copy(dAtA[i:], m.APIGroup) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AggregationRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ClusterRoleSelectors) > 0 { - for _, e := range m.ClusterRoleSelectors { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRole) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AggregationRule != nil { - l = m.AggregationRule.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ClusterRoleBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterRoleBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRoleList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Role) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RoleBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleRef) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIGroup) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Subject) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIGroup) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AggregationRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForClusterRoleSelectors := "[]LabelSelector{" - for _, f := range this.ClusterRoleSelectors { - repeatedStringForClusterRoleSelectors += fmt.Sprintf("%v", f) + "," - } - repeatedStringForClusterRoleSelectors += "}" - s := strings.Join([]string{`&AggregationRule{`, - `ClusterRoleSelectors:` + repeatedStringForClusterRoleSelectors + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRole) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]PolicyRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&ClusterRole{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `AggregationRule:` + strings.Replace(this.AggregationRule.String(), "AggregationRule", "AggregationRule", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBinding) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubjects := "[]Subject{" - for _, f := range this.Subjects { - repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," - } - repeatedStringForSubjects += "}" - s := strings.Join([]string{`&ClusterRoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subjects:` + repeatedStringForSubjects + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ClusterRoleBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ClusterRoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ClusterRole{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ClusterRoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PolicyRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, - `}`, - }, "") - return s -} -func (this *Role) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]PolicyRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&Role{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `}`, - }, "") - return s -} -func (this *RoleBinding) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubjects := "[]Subject{" - for _, f := range this.Subjects { - repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," - } - repeatedStringForSubjects += "}" - s := strings.Join([]string{`&RoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subjects:` + repeatedStringForSubjects + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RoleBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RoleList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Role{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Role", "Role", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RoleRef) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleRef{`, - `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Subject) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Subject{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AggregationRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AggregationRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AggregationRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleSelectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterRoleSelectors = append(m.ClusterRoleSelectors, v1.LabelSelector{}) - if err := m.ClusterRoleSelectors[len(m.ClusterRoleSelectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRole) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationRule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AggregationRule == nil { - m.AggregationRule = &AggregationRule{} - } - if err := m.AggregationRule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRole{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Role) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Role: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Role{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleRef) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleRef: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleRef: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroup = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Subject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Subject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroup = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/rbac/v1/generated.proto b/pseudo/k8s/api/rbac/v1/generated.proto deleted file mode 100644 index 5a3fcc1c1..000000000 --- a/pseudo/k8s/api/rbac/v1/generated.proto +++ /dev/null @@ -1,199 +0,0 @@ -/* -Copyright 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.rbac.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -message AggregationRule { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector clusterRoleSelectors = 1; -} - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -message ClusterRole { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - repeated PolicyRule rules = 2; - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - optional AggregationRule aggregationRule = 3; -} - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -message ClusterRoleBinding { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Subjects holds references to the objects the role applies to. - // +optional - repeated Subject subjects = 2; - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - optional RoleRef roleRef = 3; -} - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -message ClusterRoleBindingList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ClusterRoleBindings - repeated ClusterRoleBinding items = 2; -} - -// ClusterRoleList is a collection of ClusterRoles -message ClusterRoleList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ClusterRoles - repeated ClusterRole items = 2; -} - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -message PolicyRule { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - repeated string verbs = 1; - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - repeated string apiGroups = 2; - - // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - // +optional - repeated string resources = 3; - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - repeated string resourceNames = 4; - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - repeated string nonResourceURLs = 5; -} - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -message Role { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Rules holds all the PolicyRules for this Role - // +optional - repeated PolicyRule rules = 2; -} - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -message RoleBinding { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Subjects holds references to the objects the role applies to. - // +optional - repeated Subject subjects = 2; - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - optional RoleRef roleRef = 3; -} - -// RoleBindingList is a collection of RoleBindings -message RoleBindingList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of RoleBindings - repeated RoleBinding items = 2; -} - -// RoleList is a collection of Roles -message RoleList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of Roles - repeated Role items = 2; -} - -// RoleRef contains information that points to the role being used -message RoleRef { - // APIGroup is the group for the resource being referenced - optional string apiGroup = 1; - - // Kind is the type of resource being referenced - optional string kind = 2; - - // Name is the name of resource being referenced - optional string name = 3; -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -message Subject { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - optional string kind = 1; - - // APIGroup holds the API group of the referenced subject. - // Defaults to "" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - // +optional - optional string apiGroup = 2; - - // Name of the object being referenced. - optional string name = 3; - - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - optional string namespace = 4; -} - diff --git a/pseudo/k8s/api/rbac/v1/register.go b/pseudo/k8s/api/rbac/v1/register.go deleted file mode 100644 index 0934db0ef..000000000 --- a/pseudo/k8s/api/rbac/v1/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const GroupName = "rbac.authorization.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Role{}, - &RoleBinding{}, - &RoleBindingList{}, - &RoleList{}, - - &ClusterRole{}, - &ClusterRoleBinding{}, - &ClusterRoleBindingList{}, - &ClusterRoleList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/rbac/v1/types.go b/pseudo/k8s/api/rbac/v1/types.go deleted file mode 100644 index 98e4fc13b..000000000 --- a/pseudo/k8s/api/rbac/v1/types.go +++ /dev/null @@ -1,237 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Authorization is calculated against -// 1. evaluation of ClusterRoleBindings - short circuit on match -// 2. evaluation of RoleBindings in the namespace requested - short circuit on match -// 3. deny by default - -const ( - APIGroupAll = "*" - ResourceAll = "*" - VerbAll = "*" - NonResourceAll = "*" - - GroupKind = "Group" - ServiceAccountKind = "ServiceAccount" - UserKind = "User" - - // AutoUpdateAnnotationKey is the name of an annotation which prevents reconciliation if set to "false" - AutoUpdateAnnotationKey = "rbac.authorization.kubernetes.io/autoupdate" -) - -// Authorization is calculated against -// 1. evaluation of ClusterRoleBindings - short circuit on match -// 2. evaluation of RoleBindings in the namespace requested - short circuit on match -// 3. deny by default - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -type PolicyRule struct { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,2,rep,name=apiGroups"` - // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - // +optional - Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,4,rep,name=resourceNames"` - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,5,rep,name=nonResourceURLs"` -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -type Subject struct { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` - // APIGroup holds the API group of the referenced subject. - // Defaults to "" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - // +optional - APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,2,opt.name=apiGroup"` - // Name of the object being referenced. - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` -} - -// RoleRef contains information that points to the role being used -type RoleRef struct { - // APIGroup is the group for the resource being referenced - APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"` - // Kind is the type of resource being referenced - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` - // Name is the name of resource being referenced - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -type Role struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Rules holds all the PolicyRules for this Role - // +optional - Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -type RoleBinding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Subjects holds references to the objects the role applies to. - // +optional - Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleBindingList is a collection of RoleBindings -type RoleBindingList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of RoleBindings - Items []RoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleList is a collection of Roles -type RoleList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of Roles - Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -type ClusterRole struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - AggregationRule *AggregationRule `json:"aggregationRule,omitempty" protobuf:"bytes,3,opt,name=aggregationRule"` -} - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -type AggregationRule struct { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - ClusterRoleSelectors []metav1.LabelSelector `json:"clusterRoleSelectors,omitempty" protobuf:"bytes,1,rep,name=clusterRoleSelectors"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -type ClusterRoleBinding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Subjects holds references to the objects the role applies to. - // +optional - Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -type ClusterRoleBindingList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ClusterRoleBindings - Items []ClusterRoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleList is a collection of ClusterRoles -type ClusterRoleList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ClusterRoles - Items []ClusterRole `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/rbac/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/rbac/v1/types_swagger_doc_generated.go deleted file mode 100644 index 83ce310e6..000000000 --- a/pseudo/k8s/api/rbac/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_AggregationRule = map[string]string{ - "": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "clusterRoleSelectors": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", -} - -func (AggregationRule) SwaggerDoc() map[string]string { - return map_AggregationRule -} - -var map_ClusterRole = map[string]string{ - "": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "metadata": "Standard object's metadata.", - "rules": "Rules holds all the PolicyRules for this ClusterRole", - "aggregationRule": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", -} - -func (ClusterRole) SwaggerDoc() map[string]string { - return map_ClusterRole -} - -var map_ClusterRoleBinding = map[string]string{ - "": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "metadata": "Standard object's metadata.", - "subjects": "Subjects holds references to the objects the role applies to.", - "roleRef": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", -} - -func (ClusterRoleBinding) SwaggerDoc() map[string]string { - return map_ClusterRoleBinding -} - -var map_ClusterRoleBindingList = map[string]string{ - "": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "metadata": "Standard object's metadata.", - "items": "Items is a list of ClusterRoleBindings", -} - -func (ClusterRoleBindingList) SwaggerDoc() map[string]string { - return map_ClusterRoleBindingList -} - -var map_ClusterRoleList = map[string]string{ - "": "ClusterRoleList is a collection of ClusterRoles", - "metadata": "Standard object's metadata.", - "items": "Items is a list of ClusterRoles", -} - -func (ClusterRoleList) SwaggerDoc() map[string]string { - return map_ClusterRoleList -} - -var map_PolicyRule = map[string]string{ - "": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "verbs": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "apiGroups": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "resources": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "nonResourceURLs": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", -} - -func (PolicyRule) SwaggerDoc() map[string]string { - return map_PolicyRule -} - -var map_Role = map[string]string{ - "": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "metadata": "Standard object's metadata.", - "rules": "Rules holds all the PolicyRules for this Role", -} - -func (Role) SwaggerDoc() map[string]string { - return map_Role -} - -var map_RoleBinding = map[string]string{ - "": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "metadata": "Standard object's metadata.", - "subjects": "Subjects holds references to the objects the role applies to.", - "roleRef": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", -} - -func (RoleBinding) SwaggerDoc() map[string]string { - return map_RoleBinding -} - -var map_RoleBindingList = map[string]string{ - "": "RoleBindingList is a collection of RoleBindings", - "metadata": "Standard object's metadata.", - "items": "Items is a list of RoleBindings", -} - -func (RoleBindingList) SwaggerDoc() map[string]string { - return map_RoleBindingList -} - -var map_RoleList = map[string]string{ - "": "RoleList is a collection of Roles", - "metadata": "Standard object's metadata.", - "items": "Items is a list of Roles", -} - -func (RoleList) SwaggerDoc() map[string]string { - return map_RoleList -} - -var map_RoleRef = map[string]string{ - "": "RoleRef contains information that points to the role being used", - "apiGroup": "APIGroup is the group for the resource being referenced", - "kind": "Kind is the type of resource being referenced", - "name": "Name is the name of resource being referenced", -} - -func (RoleRef) SwaggerDoc() map[string]string { - return map_RoleRef -} - -var map_Subject = map[string]string{ - "": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", - "kind": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", - "apiGroup": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", - "name": "Name of the object being referenced.", - "namespace": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", -} - -func (Subject) SwaggerDoc() map[string]string { - return map_Subject -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/rbac/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/rbac/v1/zz_generated.deepcopy.go deleted file mode 100644 index b41e8105b..000000000 --- a/pseudo/k8s/api/rbac/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,389 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AggregationRule) DeepCopyInto(out *AggregationRule) { - *out = *in - if in.ClusterRoleSelectors != nil { - in, out := &in.ClusterRoleSelectors, &out.ClusterRoleSelectors - *out = make([]metav1.LabelSelector, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AggregationRule. -func (in *AggregationRule) DeepCopy() *AggregationRule { - if in == nil { - return nil - } - out := new(AggregationRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRole) DeepCopyInto(out *ClusterRole) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]PolicyRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.AggregationRule != nil { - in, out := &in.AggregationRule, &out.AggregationRule - *out = new(AggregationRule) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole. -func (in *ClusterRole) DeepCopy() *ClusterRole { - if in == nil { - return nil - } - out := new(ClusterRole) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRole) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - copy(*out, *in) - } - out.RoleRef = in.RoleRef - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding. -func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding { - if in == nil { - return nil - } - out := new(ClusterRoleBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterRoleBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList. -func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList { - if in == nil { - return nil - } - out := new(ClusterRoleBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList. -func (in *ClusterRoleList) DeepCopy() *ClusterRoleList { - if in == nil { - return nil - } - out := new(ClusterRoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PolicyRule) DeepCopyInto(out *PolicyRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.NonResourceURLs != nil { - in, out := &in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule. -func (in *PolicyRule) DeepCopy() *PolicyRule { - if in == nil { - return nil - } - out := new(PolicyRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Role) DeepCopyInto(out *Role) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]PolicyRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role. -func (in *Role) DeepCopy() *Role { - if in == nil { - return nil - } - out := new(Role) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Role) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleBinding) DeepCopyInto(out *RoleBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - copy(*out, *in) - } - out.RoleRef = in.RoleRef - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding. -func (in *RoleBinding) DeepCopy() *RoleBinding { - if in == nil { - return nil - } - out := new(RoleBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RoleBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList. -func (in *RoleBindingList) DeepCopy() *RoleBindingList { - if in == nil { - return nil - } - out := new(RoleBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleList) DeepCopyInto(out *RoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Role, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList. -func (in *RoleList) DeepCopy() *RoleList { - if in == nil { - return nil - } - out := new(RoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleRef) DeepCopyInto(out *RoleRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef. -func (in *RoleRef) DeepCopy() *RoleRef { - if in == nil { - return nil - } - out := new(RoleRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Subject) DeepCopyInto(out *Subject) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject. -func (in *Subject) DeepCopy() *Subject { - if in == nil { - return nil - } - out := new(Subject) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/rbac/v1alpha1/doc.go b/pseudo/k8s/api/rbac/v1alpha1/doc.go deleted file mode 100644 index 44d3ffbff..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=rbac.authorization.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1alpha1" diff --git a/pseudo/k8s/api/rbac/v1alpha1/generated.pb.go b/pseudo/k8s/api/rbac/v1alpha1/generated.pb.go deleted file mode 100644 index 3e883bfd8..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/generated.pb.go +++ /dev/null @@ -1,3293 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AggregationRule) Reset() { *m = AggregationRule{} } -func (*AggregationRule) ProtoMessage() {} -func (*AggregationRule) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{0} -} -func (m *AggregationRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AggregationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AggregationRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggregationRule.Merge(m, src) -} -func (m *AggregationRule) XXX_Size() int { - return m.Size() -} -func (m *AggregationRule) XXX_DiscardUnknown() { - xxx_messageInfo_AggregationRule.DiscardUnknown(m) -} - -var xxx_messageInfo_AggregationRule proto.InternalMessageInfo - -func (m *ClusterRole) Reset() { *m = ClusterRole{} } -func (*ClusterRole) ProtoMessage() {} -func (*ClusterRole) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{1} -} -func (m *ClusterRole) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRole) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRole.Merge(m, src) -} -func (m *ClusterRole) XXX_Size() int { - return m.Size() -} -func (m *ClusterRole) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRole.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRole proto.InternalMessageInfo - -func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } -func (*ClusterRoleBinding) ProtoMessage() {} -func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{2} -} -func (m *ClusterRoleBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleBinding.Merge(m, src) -} -func (m *ClusterRoleBinding) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleBinding) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleBinding proto.InternalMessageInfo - -func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} } -func (*ClusterRoleBindingList) ProtoMessage() {} -func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{3} -} -func (m *ClusterRoleBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleBindingList.Merge(m, src) -} -func (m *ClusterRoleBindingList) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleBindingList proto.InternalMessageInfo - -func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} } -func (*ClusterRoleList) ProtoMessage() {} -func (*ClusterRoleList) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{4} -} -func (m *ClusterRoleList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleList.Merge(m, src) -} -func (m *ClusterRoleList) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleList) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleList.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleList proto.InternalMessageInfo - -func (m *PolicyRule) Reset() { *m = PolicyRule{} } -func (*PolicyRule) ProtoMessage() {} -func (*PolicyRule) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{5} -} -func (m *PolicyRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PolicyRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_PolicyRule.Merge(m, src) -} -func (m *PolicyRule) XXX_Size() int { - return m.Size() -} -func (m *PolicyRule) XXX_DiscardUnknown() { - xxx_messageInfo_PolicyRule.DiscardUnknown(m) -} - -var xxx_messageInfo_PolicyRule proto.InternalMessageInfo - -func (m *Role) Reset() { *m = Role{} } -func (*Role) ProtoMessage() {} -func (*Role) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{6} -} -func (m *Role) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Role) XXX_Merge(src proto.Message) { - xxx_messageInfo_Role.Merge(m, src) -} -func (m *Role) XXX_Size() int { - return m.Size() -} -func (m *Role) XXX_DiscardUnknown() { - xxx_messageInfo_Role.DiscardUnknown(m) -} - -var xxx_messageInfo_Role proto.InternalMessageInfo - -func (m *RoleBinding) Reset() { *m = RoleBinding{} } -func (*RoleBinding) ProtoMessage() {} -func (*RoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{7} -} -func (m *RoleBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleBinding.Merge(m, src) -} -func (m *RoleBinding) XXX_Size() int { - return m.Size() -} -func (m *RoleBinding) XXX_DiscardUnknown() { - xxx_messageInfo_RoleBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleBinding proto.InternalMessageInfo - -func (m *RoleBindingList) Reset() { *m = RoleBindingList{} } -func (*RoleBindingList) ProtoMessage() {} -func (*RoleBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{8} -} -func (m *RoleBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleBindingList.Merge(m, src) -} -func (m *RoleBindingList) XXX_Size() int { - return m.Size() -} -func (m *RoleBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_RoleBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleBindingList proto.InternalMessageInfo - -func (m *RoleList) Reset() { *m = RoleList{} } -func (*RoleList) ProtoMessage() {} -func (*RoleList) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{9} -} -func (m *RoleList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleList.Merge(m, src) -} -func (m *RoleList) XXX_Size() int { - return m.Size() -} -func (m *RoleList) XXX_DiscardUnknown() { - xxx_messageInfo_RoleList.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleList proto.InternalMessageInfo - -func (m *RoleRef) Reset() { *m = RoleRef{} } -func (*RoleRef) ProtoMessage() {} -func (*RoleRef) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{10} -} -func (m *RoleRef) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleRef) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleRef.Merge(m, src) -} -func (m *RoleRef) XXX_Size() int { - return m.Size() -} -func (m *RoleRef) XXX_DiscardUnknown() { - xxx_messageInfo_RoleRef.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleRef proto.InternalMessageInfo - -func (m *Subject) Reset() { *m = Subject{} } -func (*Subject) ProtoMessage() {} -func (*Subject) Descriptor() ([]byte, []int) { - return fileDescriptor_b59b0bd5e7cb9590, []int{11} -} -func (m *Subject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Subject) XXX_Merge(src proto.Message) { - xxx_messageInfo_Subject.Merge(m, src) -} -func (m *Subject) XXX_Size() int { - return m.Size() -} -func (m *Subject) XXX_DiscardUnknown() { - xxx_messageInfo_Subject.DiscardUnknown(m) -} - -var xxx_messageInfo_Subject proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AggregationRule)(nil), "k8s.io.api.rbac.v1alpha1.AggregationRule") - proto.RegisterType((*ClusterRole)(nil), "k8s.io.api.rbac.v1alpha1.ClusterRole") - proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.api.rbac.v1alpha1.ClusterRoleBinding") - proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.api.rbac.v1alpha1.ClusterRoleBindingList") - proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.api.rbac.v1alpha1.ClusterRoleList") - proto.RegisterType((*PolicyRule)(nil), "k8s.io.api.rbac.v1alpha1.PolicyRule") - proto.RegisterType((*Role)(nil), "k8s.io.api.rbac.v1alpha1.Role") - proto.RegisterType((*RoleBinding)(nil), "k8s.io.api.rbac.v1alpha1.RoleBinding") - proto.RegisterType((*RoleBindingList)(nil), "k8s.io.api.rbac.v1alpha1.RoleBindingList") - proto.RegisterType((*RoleList)(nil), "k8s.io.api.rbac.v1alpha1.RoleList") - proto.RegisterType((*RoleRef)(nil), "k8s.io.api.rbac.v1alpha1.RoleRef") - proto.RegisterType((*Subject)(nil), "k8s.io.api.rbac.v1alpha1.Subject") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1alpha1/generated.proto", fileDescriptor_b59b0bd5e7cb9590) -} - -var fileDescriptor_b59b0bd5e7cb9590 = []byte{ - // 830 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xbf, 0x8f, 0xe3, 0x44, - 0x14, 0xce, 0x64, 0x13, 0x36, 0x99, 0x25, 0x0a, 0x37, 0x9c, 0x90, 0xb5, 0x42, 0xce, 0x62, 0x81, - 0x74, 0x88, 0xc3, 0x66, 0x17, 0x04, 0x34, 0x14, 0xf1, 0x15, 0x28, 0x10, 0xf6, 0x96, 0x39, 0x71, - 0x05, 0xa2, 0x60, 0xe2, 0xcc, 0x39, 0x43, 0x6c, 0x8f, 0x35, 0x63, 0x47, 0x3a, 0xd1, 0xd0, 0xd0, - 0x22, 0x1a, 0x0a, 0x7a, 0x5a, 0x1a, 0x28, 0xf9, 0x07, 0x96, 0xee, 0xca, 0xad, 0x22, 0xd6, 0xfc, - 0x21, 0x20, 0x8f, 0xed, 0xd8, 0xf9, 0x45, 0x52, 0x45, 0x42, 0xba, 0x2a, 0x99, 0xf7, 0xbe, 0xf7, - 0xbd, 0xf7, 0xbe, 0x99, 0xf7, 0x0c, 0xfb, 0xd3, 0x0f, 0xa5, 0xc9, 0xb8, 0x35, 0x8d, 0x47, 0x54, - 0x04, 0x34, 0xa2, 0xd2, 0x9a, 0xd1, 0x60, 0xcc, 0x85, 0x95, 0x3b, 0x48, 0xc8, 0x2c, 0x31, 0x22, - 0x8e, 0x35, 0x3b, 0x27, 0x5e, 0x38, 0x21, 0xe7, 0x96, 0x4b, 0x03, 0x2a, 0x48, 0x44, 0xc7, 0x66, - 0x28, 0x78, 0xc4, 0x91, 0x96, 0x21, 0x4d, 0x12, 0x32, 0x33, 0x45, 0x9a, 0x05, 0xf2, 0xf4, 0x6d, - 0x97, 0x45, 0x93, 0x78, 0x64, 0x3a, 0xdc, 0xb7, 0x5c, 0xee, 0x72, 0x4b, 0x05, 0x8c, 0xe2, 0x27, - 0xea, 0xa4, 0x0e, 0xea, 0x5f, 0x46, 0x74, 0xfa, 0x5e, 0x99, 0xd2, 0x27, 0xce, 0x84, 0x05, 0x54, - 0x3c, 0xb5, 0xc2, 0xa9, 0x9b, 0x1a, 0xa4, 0xe5, 0xd3, 0x88, 0x58, 0xb3, 0xb5, 0xf4, 0xa7, 0xd6, - 0xb6, 0x28, 0x11, 0x07, 0x11, 0xf3, 0xe9, 0x5a, 0xc0, 0xfb, 0xbb, 0x02, 0xa4, 0x33, 0xa1, 0x3e, - 0x59, 0x8d, 0x33, 0x7e, 0x06, 0xb0, 0xdb, 0x77, 0x5d, 0x41, 0x5d, 0x12, 0x31, 0x1e, 0xe0, 0xd8, - 0xa3, 0xe8, 0x7b, 0x00, 0xef, 0x3a, 0x5e, 0x2c, 0x23, 0x2a, 0x30, 0xf7, 0xe8, 0x23, 0xea, 0x51, - 0x27, 0xe2, 0x42, 0x6a, 0xe0, 0xec, 0xe8, 0xde, 0xc9, 0xc5, 0xbb, 0x66, 0xa9, 0xcd, 0x22, 0x97, - 0x19, 0x4e, 0xdd, 0xd4, 0x20, 0xcd, 0xb4, 0x25, 0x73, 0x76, 0x6e, 0x0e, 0xc9, 0x88, 0x7a, 0x45, - 0xac, 0xfd, 0xea, 0xf5, 0xbc, 0x57, 0x4b, 0xe6, 0xbd, 0xbb, 0x0f, 0x36, 0x10, 0xe3, 0x8d, 0xe9, - 0x8c, 0x5f, 0xea, 0xf0, 0xa4, 0x02, 0x47, 0x5f, 0xc3, 0x56, 0x4a, 0x3e, 0x26, 0x11, 0xd1, 0xc0, - 0x19, 0xb8, 0x77, 0x72, 0xf1, 0xce, 0x7e, 0xa5, 0x3c, 0x1c, 0x7d, 0x43, 0x9d, 0xe8, 0x33, 0x1a, - 0x11, 0x1b, 0xe5, 0x75, 0xc0, 0xd2, 0x86, 0x17, 0xac, 0x68, 0x00, 0x9b, 0x22, 0xf6, 0xa8, 0xd4, - 0xea, 0xaa, 0xd3, 0xd7, 0xcd, 0x6d, 0xaf, 0xc0, 0xbc, 0xe2, 0x1e, 0x73, 0x9e, 0xa6, 0x72, 0xd9, - 0x9d, 0x9c, 0xb2, 0x99, 0x9e, 0x24, 0xce, 0x18, 0xd0, 0x04, 0x76, 0xc9, 0xb2, 0xae, 0xda, 0x91, - 0xaa, 0xf9, 0xcd, 0xed, 0xa4, 0x2b, 0x17, 0x61, 0xbf, 0x9c, 0xcc, 0x7b, 0xab, 0xb7, 0x83, 0x57, - 0x69, 0x8d, 0x9f, 0xea, 0x10, 0x55, 0x64, 0xb2, 0x59, 0x30, 0x66, 0x81, 0x7b, 0x00, 0xb5, 0x1e, - 0xc2, 0x96, 0x8c, 0x95, 0xa3, 0x10, 0xec, 0xb5, 0xed, 0xbd, 0x3d, 0xca, 0x90, 0xf6, 0x4b, 0x39, - 0x65, 0x2b, 0x37, 0x48, 0xbc, 0x20, 0x41, 0x43, 0x78, 0x2c, 0xb8, 0x47, 0x31, 0x7d, 0x92, 0x6b, - 0xf5, 0x1f, 0x7c, 0x38, 0x03, 0xda, 0xdd, 0x9c, 0xef, 0x38, 0x37, 0xe0, 0x82, 0xc2, 0xf8, 0x13, - 0xc0, 0x57, 0xd6, 0x75, 0x19, 0x32, 0x19, 0xa1, 0xaf, 0xd6, 0xb4, 0x31, 0xf7, 0x7c, 0xd4, 0x4c, - 0x66, 0xca, 0x2c, 0xda, 0x28, 0x2c, 0x15, 0x5d, 0x3e, 0x87, 0x4d, 0x16, 0x51, 0xbf, 0x10, 0xe5, - 0xfe, 0xf6, 0x26, 0xd6, 0xcb, 0x2b, 0x5f, 0xd3, 0x20, 0xa5, 0xc0, 0x19, 0x93, 0xf1, 0x07, 0x80, - 0xdd, 0x0a, 0xf8, 0x00, 0x4d, 0x7c, 0xb2, 0xdc, 0xc4, 0x1b, 0xfb, 0x35, 0xb1, 0xb9, 0xfa, 0x7f, - 0x00, 0x84, 0xe5, 0xc0, 0xa0, 0x1e, 0x6c, 0xce, 0xa8, 0x18, 0x65, 0xfb, 0xa4, 0x6d, 0xb7, 0x53, - 0xfc, 0xe3, 0xd4, 0x80, 0x33, 0x3b, 0x7a, 0x0b, 0xb6, 0x49, 0xc8, 0x3e, 0x16, 0x3c, 0x0e, 0xa5, - 0x76, 0xa4, 0x40, 0x9d, 0x64, 0xde, 0x6b, 0xf7, 0xaf, 0x06, 0x99, 0x11, 0x97, 0xfe, 0x14, 0x2c, - 0xa8, 0xe4, 0xb1, 0x70, 0xa8, 0xd4, 0x1a, 0x25, 0x18, 0x17, 0x46, 0x5c, 0xfa, 0xd1, 0x07, 0xb0, - 0x53, 0x1c, 0x2e, 0x89, 0x4f, 0xa5, 0xd6, 0x54, 0x01, 0x77, 0x92, 0x79, 0xaf, 0x83, 0xab, 0x0e, - 0xbc, 0x8c, 0x43, 0x1f, 0xc1, 0x6e, 0xc0, 0x83, 0x02, 0xf2, 0x05, 0x1e, 0x4a, 0xed, 0x05, 0x15, - 0xaa, 0x66, 0xf4, 0x72, 0xd9, 0x85, 0x57, 0xb1, 0xc6, 0xef, 0x00, 0x36, 0xfe, 0x77, 0x3b, 0xcc, - 0xf8, 0xa1, 0x0e, 0x4f, 0x9e, 0xaf, 0x94, 0xca, 0x4a, 0x49, 0xc7, 0xf0, 0xb0, 0xbb, 0x64, 0xff, - 0x31, 0xdc, 0xbd, 0x44, 0x7e, 0x05, 0xb0, 0x75, 0xa0, 0xed, 0xf1, 0x60, 0xb9, 0x6c, 0x7d, 0x47, - 0xd9, 0x9b, 0xeb, 0xfd, 0x16, 0x16, 0x37, 0x80, 0xee, 0xc3, 0x56, 0x31, 0xf1, 0xaa, 0xda, 0x76, - 0x99, 0xbd, 0x58, 0x0a, 0x78, 0x81, 0x40, 0x67, 0xb0, 0x31, 0x65, 0xc1, 0x58, 0xab, 0x2b, 0xe4, - 0x8b, 0x39, 0xb2, 0xf1, 0x29, 0x0b, 0xc6, 0x58, 0x79, 0x52, 0x44, 0x40, 0xfc, 0xec, 0x93, 0x5c, - 0x41, 0xa4, 0xb3, 0x8e, 0x95, 0xc7, 0xf8, 0x0d, 0xc0, 0xe3, 0xfc, 0x3d, 0x2d, 0xf8, 0xc0, 0x56, - 0xbe, 0x0b, 0x08, 0x49, 0xc8, 0x1e, 0x53, 0x21, 0x19, 0x0f, 0xf2, 0xbc, 0x8b, 0x97, 0xde, 0xbf, - 0x1a, 0xe4, 0x1e, 0x5c, 0x41, 0xed, 0xae, 0x01, 0x59, 0xb0, 0x9d, 0xfe, 0xca, 0x90, 0x38, 0x54, - 0x6b, 0x28, 0xd8, 0x9d, 0x1c, 0xd6, 0xbe, 0x2c, 0x1c, 0xb8, 0xc4, 0xd8, 0xe6, 0xf5, 0xad, 0x5e, - 0x7b, 0x76, 0xab, 0xd7, 0x6e, 0x6e, 0xf5, 0xda, 0x77, 0x89, 0x0e, 0xae, 0x13, 0x1d, 0x3c, 0x4b, - 0x74, 0x70, 0x93, 0xe8, 0xe0, 0xaf, 0x44, 0x07, 0x3f, 0xfe, 0xad, 0xd7, 0xbe, 0x6c, 0x15, 0xe2, - 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x73, 0x15, 0x10, 0x29, 0x0b, 0x00, 0x00, -} - -func (m *AggregationRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AggregationRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterRoleSelectors) > 0 { - for iNdEx := len(m.ClusterRoleSelectors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ClusterRoleSelectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ClusterRole) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AggregationRule != nil { - { - size, err := m.AggregationRule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PolicyRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NonResourceURLs) > 0 { - for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NonResourceURLs[iNdEx]) - copy(dAtA[i:], m.NonResourceURLs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(m.ResourceNames) > 0 { - for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ResourceNames[iNdEx]) - copy(dAtA[i:], m.ResourceNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Role) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Role) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleRef) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleRef) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIGroup) - copy(dAtA[i:], m.APIGroup) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Subject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Subject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x22 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AggregationRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ClusterRoleSelectors) > 0 { - for _, e := range m.ClusterRoleSelectors { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRole) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AggregationRule != nil { - l = m.AggregationRule.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ClusterRoleBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterRoleBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRoleList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Role) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RoleBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleRef) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIGroup) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Subject) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AggregationRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForClusterRoleSelectors := "[]LabelSelector{" - for _, f := range this.ClusterRoleSelectors { - repeatedStringForClusterRoleSelectors += fmt.Sprintf("%v", f) + "," - } - repeatedStringForClusterRoleSelectors += "}" - s := strings.Join([]string{`&AggregationRule{`, - `ClusterRoleSelectors:` + repeatedStringForClusterRoleSelectors + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRole) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]PolicyRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&ClusterRole{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `AggregationRule:` + strings.Replace(this.AggregationRule.String(), "AggregationRule", "AggregationRule", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBinding) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubjects := "[]Subject{" - for _, f := range this.Subjects { - repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," - } - repeatedStringForSubjects += "}" - s := strings.Join([]string{`&ClusterRoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subjects:` + repeatedStringForSubjects + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ClusterRoleBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ClusterRoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ClusterRole{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ClusterRoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PolicyRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, - `}`, - }, "") - return s -} -func (this *Role) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]PolicyRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&Role{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `}`, - }, "") - return s -} -func (this *RoleBinding) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubjects := "[]Subject{" - for _, f := range this.Subjects { - repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," - } - repeatedStringForSubjects += "}" - s := strings.Join([]string{`&RoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subjects:` + repeatedStringForSubjects + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RoleBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RoleList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Role{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Role", "Role", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RoleRef) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleRef{`, - `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Subject) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Subject{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AggregationRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AggregationRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AggregationRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleSelectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterRoleSelectors = append(m.ClusterRoleSelectors, v1.LabelSelector{}) - if err := m.ClusterRoleSelectors[len(m.ClusterRoleSelectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRole) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationRule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AggregationRule == nil { - m.AggregationRule = &AggregationRule{} - } - if err := m.AggregationRule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRole{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Role) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Role: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Role{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleRef) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleRef: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleRef: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroup = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Subject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Subject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/rbac/v1alpha1/generated.proto b/pseudo/k8s/api/rbac/v1alpha1/generated.proto deleted file mode 100644 index c0aff8bdc..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/generated.proto +++ /dev/null @@ -1,201 +0,0 @@ -/* -Copyright 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.rbac.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -message AggregationRule { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector clusterRoleSelectors = 1; -} - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -message ClusterRole { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - repeated PolicyRule rules = 2; - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - optional AggregationRule aggregationRule = 3; -} - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -message ClusterRoleBinding { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Subjects holds references to the objects the role applies to. - // +optional - repeated Subject subjects = 2; - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - optional RoleRef roleRef = 3; -} - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -message ClusterRoleBindingList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ClusterRoleBindings - repeated ClusterRoleBinding items = 2; -} - -// ClusterRoleList is a collection of ClusterRoles -message ClusterRoleList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ClusterRoles - repeated ClusterRole items = 2; -} - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -message PolicyRule { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - repeated string verbs = 1; - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - repeated string apiGroups = 3; - - // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - // +optional - repeated string resources = 4; - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - repeated string resourceNames = 5; - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - repeated string nonResourceURLs = 6; -} - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -message Role { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Rules holds all the PolicyRules for this Role - // +optional - repeated PolicyRule rules = 2; -} - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -message RoleBinding { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Subjects holds references to the objects the role applies to. - // +optional - repeated Subject subjects = 2; - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - optional RoleRef roleRef = 3; -} - -// RoleBindingList is a collection of RoleBindings -message RoleBindingList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of RoleBindings - repeated RoleBinding items = 2; -} - -// RoleList is a collection of Roles -message RoleList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of Roles - repeated Role items = 2; -} - -// RoleRef contains information that points to the role being used -message RoleRef { - // APIGroup is the group for the resource being referenced - optional string apiGroup = 1; - - // Kind is the type of resource being referenced - optional string kind = 2; - - // Name is the name of resource being referenced - optional string name = 3; -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -message Subject { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - optional string kind = 1; - - // APIVersion holds the API group and version of the referenced subject. - // Defaults to "v1" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - // +k8s:conversion-gen=false - // +optional - optional string apiVersion = 2; - - // Name of the object being referenced. - optional string name = 3; - - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - optional string namespace = 4; -} - diff --git a/pseudo/k8s/api/rbac/v1alpha1/register.go b/pseudo/k8s/api/rbac/v1alpha1/register.go deleted file mode 100644 index 698c33d72..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const GroupName = "rbac.authorization.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Role{}, - &RoleBinding{}, - &RoleBindingList{}, - &RoleList{}, - - &ClusterRole{}, - &ClusterRoleBinding{}, - &ClusterRoleBindingList{}, - &ClusterRoleList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/rbac/v1alpha1/types.go b/pseudo/k8s/api/rbac/v1alpha1/types.go deleted file mode 100644 index 5b1ea598c..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/types.go +++ /dev/null @@ -1,239 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Authorization is calculated against -// 1. evaluation of ClusterRoleBindings - short circuit on match -// 2. evaluation of RoleBindings in the namespace requested - short circuit on match -// 3. deny by default - -const ( - APIGroupAll = "*" - ResourceAll = "*" - VerbAll = "*" - NonResourceAll = "*" - - GroupKind = "Group" - ServiceAccountKind = "ServiceAccount" - UserKind = "User" - - // AutoUpdateAnnotationKey is the name of an annotation which prevents reconciliation if set to "false" - AutoUpdateAnnotationKey = "rbac.authorization.kubernetes.io/autoupdate" -) - -// Authorization is calculated against -// 1. evaluation of ClusterRoleBindings - short circuit on match -// 2. evaluation of RoleBindings in the namespace requested - short circuit on match -// 3. deny by default - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -type PolicyRule struct { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,3,rep,name=apiGroups"` - // Resources is a list of resources this rule applies to. ResourceAll represents all resources. - // +optional - Resources []string `json:"resources,omitempty" protobuf:"bytes,4,rep,name=resources"` - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,5,rep,name=resourceNames"` - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,6,rep,name=nonResourceURLs"` -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -type Subject struct { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` - // APIVersion holds the API group and version of the referenced subject. - // Defaults to "v1" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - // +k8s:conversion-gen=false - // +optional - APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt.name=apiVersion"` - // Name of the object being referenced. - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` -} - -// RoleRef contains information that points to the role being used -type RoleRef struct { - // APIGroup is the group for the resource being referenced - APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"` - // Kind is the type of resource being referenced - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` - // Name is the name of resource being referenced - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -type Role struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Rules holds all the PolicyRules for this Role - // +optional - Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -type RoleBinding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Subjects holds references to the objects the role applies to. - // +optional - Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleBindingList is a collection of RoleBindings -type RoleBindingList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of RoleBindings - Items []RoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleList is a collection of Roles -type RoleList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of Roles - Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -type ClusterRole struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - AggregationRule *AggregationRule `json:"aggregationRule,omitempty" protobuf:"bytes,3,opt,name=aggregationRule"` -} - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -type AggregationRule struct { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - ClusterRoleSelectors []metav1.LabelSelector `json:"clusterRoleSelectors,omitempty" protobuf:"bytes,1,rep,name=clusterRoleSelectors"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -type ClusterRoleBinding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Subjects holds references to the objects the role applies to. - // +optional - Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -type ClusterRoleBindingList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ClusterRoleBindings - Items []ClusterRoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleList is a collection of ClusterRoles -type ClusterRoleList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ClusterRoles - Items []ClusterRole `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/rbac/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/rbac/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index d7b194ae4..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_AggregationRule = map[string]string{ - "": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "clusterRoleSelectors": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", -} - -func (AggregationRule) SwaggerDoc() map[string]string { - return map_AggregationRule -} - -var map_ClusterRole = map[string]string{ - "": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "metadata": "Standard object's metadata.", - "rules": "Rules holds all the PolicyRules for this ClusterRole", - "aggregationRule": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", -} - -func (ClusterRole) SwaggerDoc() map[string]string { - return map_ClusterRole -} - -var map_ClusterRoleBinding = map[string]string{ - "": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "metadata": "Standard object's metadata.", - "subjects": "Subjects holds references to the objects the role applies to.", - "roleRef": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", -} - -func (ClusterRoleBinding) SwaggerDoc() map[string]string { - return map_ClusterRoleBinding -} - -var map_ClusterRoleBindingList = map[string]string{ - "": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "metadata": "Standard object's metadata.", - "items": "Items is a list of ClusterRoleBindings", -} - -func (ClusterRoleBindingList) SwaggerDoc() map[string]string { - return map_ClusterRoleBindingList -} - -var map_ClusterRoleList = map[string]string{ - "": "ClusterRoleList is a collection of ClusterRoles", - "metadata": "Standard object's metadata.", - "items": "Items is a list of ClusterRoles", -} - -func (ClusterRoleList) SwaggerDoc() map[string]string { - return map_ClusterRoleList -} - -var map_PolicyRule = map[string]string{ - "": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "verbs": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "apiGroups": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "resources": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.", - "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "nonResourceURLs": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", -} - -func (PolicyRule) SwaggerDoc() map[string]string { - return map_PolicyRule -} - -var map_Role = map[string]string{ - "": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "metadata": "Standard object's metadata.", - "rules": "Rules holds all the PolicyRules for this Role", -} - -func (Role) SwaggerDoc() map[string]string { - return map_Role -} - -var map_RoleBinding = map[string]string{ - "": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "metadata": "Standard object's metadata.", - "subjects": "Subjects holds references to the objects the role applies to.", - "roleRef": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", -} - -func (RoleBinding) SwaggerDoc() map[string]string { - return map_RoleBinding -} - -var map_RoleBindingList = map[string]string{ - "": "RoleBindingList is a collection of RoleBindings", - "metadata": "Standard object's metadata.", - "items": "Items is a list of RoleBindings", -} - -func (RoleBindingList) SwaggerDoc() map[string]string { - return map_RoleBindingList -} - -var map_RoleList = map[string]string{ - "": "RoleList is a collection of Roles", - "metadata": "Standard object's metadata.", - "items": "Items is a list of Roles", -} - -func (RoleList) SwaggerDoc() map[string]string { - return map_RoleList -} - -var map_RoleRef = map[string]string{ - "": "RoleRef contains information that points to the role being used", - "apiGroup": "APIGroup is the group for the resource being referenced", - "kind": "Kind is the type of resource being referenced", - "name": "Name is the name of resource being referenced", -} - -func (RoleRef) SwaggerDoc() map[string]string { - return map_RoleRef -} - -var map_Subject = map[string]string{ - "": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", - "kind": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", - "apiVersion": "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects.", - "name": "Name of the object being referenced.", - "namespace": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", -} - -func (Subject) SwaggerDoc() map[string]string { - return map_Subject -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/rbac/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/rbac/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index d84fe5425..000000000 --- a/pseudo/k8s/api/rbac/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,389 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AggregationRule) DeepCopyInto(out *AggregationRule) { - *out = *in - if in.ClusterRoleSelectors != nil { - in, out := &in.ClusterRoleSelectors, &out.ClusterRoleSelectors - *out = make([]v1.LabelSelector, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AggregationRule. -func (in *AggregationRule) DeepCopy() *AggregationRule { - if in == nil { - return nil - } - out := new(AggregationRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRole) DeepCopyInto(out *ClusterRole) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]PolicyRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.AggregationRule != nil { - in, out := &in.AggregationRule, &out.AggregationRule - *out = new(AggregationRule) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole. -func (in *ClusterRole) DeepCopy() *ClusterRole { - if in == nil { - return nil - } - out := new(ClusterRole) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRole) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - copy(*out, *in) - } - out.RoleRef = in.RoleRef - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding. -func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding { - if in == nil { - return nil - } - out := new(ClusterRoleBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterRoleBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList. -func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList { - if in == nil { - return nil - } - out := new(ClusterRoleBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList. -func (in *ClusterRoleList) DeepCopy() *ClusterRoleList { - if in == nil { - return nil - } - out := new(ClusterRoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PolicyRule) DeepCopyInto(out *PolicyRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.NonResourceURLs != nil { - in, out := &in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule. -func (in *PolicyRule) DeepCopy() *PolicyRule { - if in == nil { - return nil - } - out := new(PolicyRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Role) DeepCopyInto(out *Role) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]PolicyRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role. -func (in *Role) DeepCopy() *Role { - if in == nil { - return nil - } - out := new(Role) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Role) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleBinding) DeepCopyInto(out *RoleBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - copy(*out, *in) - } - out.RoleRef = in.RoleRef - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding. -func (in *RoleBinding) DeepCopy() *RoleBinding { - if in == nil { - return nil - } - out := new(RoleBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RoleBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList. -func (in *RoleBindingList) DeepCopy() *RoleBindingList { - if in == nil { - return nil - } - out := new(RoleBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleList) DeepCopyInto(out *RoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Role, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList. -func (in *RoleList) DeepCopy() *RoleList { - if in == nil { - return nil - } - out := new(RoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleRef) DeepCopyInto(out *RoleRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef. -func (in *RoleRef) DeepCopy() *RoleRef { - if in == nil { - return nil - } - out := new(RoleRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Subject) DeepCopyInto(out *Subject) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject. -func (in *Subject) DeepCopy() *Subject { - if in == nil { - return nil - } - out := new(Subject) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/rbac/v1beta1/doc.go b/pseudo/k8s/api/rbac/v1beta1/doc.go deleted file mode 100644 index 893d01c10..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=rbac.authorization.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1beta1" diff --git a/pseudo/k8s/api/rbac/v1beta1/generated.pb.go b/pseudo/k8s/api/rbac/v1beta1/generated.pb.go deleted file mode 100644 index 393edda8a..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/generated.pb.go +++ /dev/null @@ -1,3292 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *AggregationRule) Reset() { *m = AggregationRule{} } -func (*AggregationRule) ProtoMessage() {} -func (*AggregationRule) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{0} -} -func (m *AggregationRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AggregationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *AggregationRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggregationRule.Merge(m, src) -} -func (m *AggregationRule) XXX_Size() int { - return m.Size() -} -func (m *AggregationRule) XXX_DiscardUnknown() { - xxx_messageInfo_AggregationRule.DiscardUnknown(m) -} - -var xxx_messageInfo_AggregationRule proto.InternalMessageInfo - -func (m *ClusterRole) Reset() { *m = ClusterRole{} } -func (*ClusterRole) ProtoMessage() {} -func (*ClusterRole) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{1} -} -func (m *ClusterRole) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRole) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRole.Merge(m, src) -} -func (m *ClusterRole) XXX_Size() int { - return m.Size() -} -func (m *ClusterRole) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRole.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRole proto.InternalMessageInfo - -func (m *ClusterRoleBinding) Reset() { *m = ClusterRoleBinding{} } -func (*ClusterRoleBinding) ProtoMessage() {} -func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{2} -} -func (m *ClusterRoleBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleBinding.Merge(m, src) -} -func (m *ClusterRoleBinding) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleBinding) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleBinding proto.InternalMessageInfo - -func (m *ClusterRoleBindingList) Reset() { *m = ClusterRoleBindingList{} } -func (*ClusterRoleBindingList) ProtoMessage() {} -func (*ClusterRoleBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{3} -} -func (m *ClusterRoleBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleBindingList.Merge(m, src) -} -func (m *ClusterRoleBindingList) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleBindingList proto.InternalMessageInfo - -func (m *ClusterRoleList) Reset() { *m = ClusterRoleList{} } -func (*ClusterRoleList) ProtoMessage() {} -func (*ClusterRoleList) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{4} -} -func (m *ClusterRoleList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClusterRoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ClusterRoleList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterRoleList.Merge(m, src) -} -func (m *ClusterRoleList) XXX_Size() int { - return m.Size() -} -func (m *ClusterRoleList) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterRoleList.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterRoleList proto.InternalMessageInfo - -func (m *PolicyRule) Reset() { *m = PolicyRule{} } -func (*PolicyRule) ProtoMessage() {} -func (*PolicyRule) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{5} -} -func (m *PolicyRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PolicyRule) XXX_Merge(src proto.Message) { - xxx_messageInfo_PolicyRule.Merge(m, src) -} -func (m *PolicyRule) XXX_Size() int { - return m.Size() -} -func (m *PolicyRule) XXX_DiscardUnknown() { - xxx_messageInfo_PolicyRule.DiscardUnknown(m) -} - -var xxx_messageInfo_PolicyRule proto.InternalMessageInfo - -func (m *Role) Reset() { *m = Role{} } -func (*Role) ProtoMessage() {} -func (*Role) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{6} -} -func (m *Role) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Role) XXX_Merge(src proto.Message) { - xxx_messageInfo_Role.Merge(m, src) -} -func (m *Role) XXX_Size() int { - return m.Size() -} -func (m *Role) XXX_DiscardUnknown() { - xxx_messageInfo_Role.DiscardUnknown(m) -} - -var xxx_messageInfo_Role proto.InternalMessageInfo - -func (m *RoleBinding) Reset() { *m = RoleBinding{} } -func (*RoleBinding) ProtoMessage() {} -func (*RoleBinding) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{7} -} -func (m *RoleBinding) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleBinding) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleBinding.Merge(m, src) -} -func (m *RoleBinding) XXX_Size() int { - return m.Size() -} -func (m *RoleBinding) XXX_DiscardUnknown() { - xxx_messageInfo_RoleBinding.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleBinding proto.InternalMessageInfo - -func (m *RoleBindingList) Reset() { *m = RoleBindingList{} } -func (*RoleBindingList) ProtoMessage() {} -func (*RoleBindingList) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{8} -} -func (m *RoleBindingList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleBindingList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleBindingList.Merge(m, src) -} -func (m *RoleBindingList) XXX_Size() int { - return m.Size() -} -func (m *RoleBindingList) XXX_DiscardUnknown() { - xxx_messageInfo_RoleBindingList.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleBindingList proto.InternalMessageInfo - -func (m *RoleList) Reset() { *m = RoleList{} } -func (*RoleList) ProtoMessage() {} -func (*RoleList) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{9} -} -func (m *RoleList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleList.Merge(m, src) -} -func (m *RoleList) XXX_Size() int { - return m.Size() -} -func (m *RoleList) XXX_DiscardUnknown() { - xxx_messageInfo_RoleList.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleList proto.InternalMessageInfo - -func (m *RoleRef) Reset() { *m = RoleRef{} } -func (*RoleRef) ProtoMessage() {} -func (*RoleRef) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{10} -} -func (m *RoleRef) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RoleRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RoleRef) XXX_Merge(src proto.Message) { - xxx_messageInfo_RoleRef.Merge(m, src) -} -func (m *RoleRef) XXX_Size() int { - return m.Size() -} -func (m *RoleRef) XXX_DiscardUnknown() { - xxx_messageInfo_RoleRef.DiscardUnknown(m) -} - -var xxx_messageInfo_RoleRef proto.InternalMessageInfo - -func (m *Subject) Reset() { *m = Subject{} } -func (*Subject) ProtoMessage() {} -func (*Subject) Descriptor() ([]byte, []int) { - return fileDescriptor_99f6bec96facc83d, []int{11} -} -func (m *Subject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Subject) XXX_Merge(src proto.Message) { - xxx_messageInfo_Subject.Merge(m, src) -} -func (m *Subject) XXX_Size() int { - return m.Size() -} -func (m *Subject) XXX_DiscardUnknown() { - xxx_messageInfo_Subject.DiscardUnknown(m) -} - -var xxx_messageInfo_Subject proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AggregationRule)(nil), "k8s.io.api.rbac.v1beta1.AggregationRule") - proto.RegisterType((*ClusterRole)(nil), "k8s.io.api.rbac.v1beta1.ClusterRole") - proto.RegisterType((*ClusterRoleBinding)(nil), "k8s.io.api.rbac.v1beta1.ClusterRoleBinding") - proto.RegisterType((*ClusterRoleBindingList)(nil), "k8s.io.api.rbac.v1beta1.ClusterRoleBindingList") - proto.RegisterType((*ClusterRoleList)(nil), "k8s.io.api.rbac.v1beta1.ClusterRoleList") - proto.RegisterType((*PolicyRule)(nil), "k8s.io.api.rbac.v1beta1.PolicyRule") - proto.RegisterType((*Role)(nil), "k8s.io.api.rbac.v1beta1.Role") - proto.RegisterType((*RoleBinding)(nil), "k8s.io.api.rbac.v1beta1.RoleBinding") - proto.RegisterType((*RoleBindingList)(nil), "k8s.io.api.rbac.v1beta1.RoleBindingList") - proto.RegisterType((*RoleList)(nil), "k8s.io.api.rbac.v1beta1.RoleList") - proto.RegisterType((*RoleRef)(nil), "k8s.io.api.rbac.v1beta1.RoleRef") - proto.RegisterType((*Subject)(nil), "k8s.io.api.rbac.v1beta1.Subject") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1beta1/generated.proto", fileDescriptor_99f6bec96facc83d) -} - -var fileDescriptor_99f6bec96facc83d = []byte{ - // 808 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xbd, 0x6f, 0xfb, 0x44, - 0x18, 0xce, 0xa5, 0x89, 0x12, 0x5f, 0x88, 0xc2, 0xef, 0xa8, 0xc0, 0xaa, 0xc0, 0x89, 0x02, 0x43, - 0xa5, 0x52, 0x9b, 0x16, 0x04, 0x2c, 0x48, 0xd4, 0x0c, 0x50, 0xb5, 0x84, 0xea, 0x2a, 0x18, 0x10, - 0x03, 0x67, 0xe7, 0xea, 0x1e, 0xf1, 0x97, 0xee, 0xec, 0x48, 0x15, 0x0b, 0x0b, 0x1b, 0x03, 0x12, - 0x13, 0x2b, 0x33, 0x13, 0x23, 0x7f, 0x41, 0xc6, 0x8e, 0x9d, 0x22, 0x6a, 0xfe, 0x10, 0xd0, 0xf9, - 0x23, 0xce, 0x67, 0x9b, 0x29, 0x12, 0x12, 0x53, 0x7b, 0xef, 0xfb, 0xbc, 0xcf, 0xfb, 0xbc, 0x8f, - 0xef, 0xde, 0xc0, 0x8f, 0x47, 0x1f, 0x0a, 0x9d, 0x05, 0xc6, 0x28, 0xb6, 0x28, 0xf7, 0x69, 0x44, - 0x85, 0x31, 0xa6, 0xfe, 0x30, 0xe0, 0x46, 0x9e, 0x20, 0x21, 0x33, 0xb8, 0x45, 0x6c, 0x63, 0x7c, - 0x62, 0xd1, 0x88, 0x9c, 0x18, 0x0e, 0xf5, 0x29, 0x27, 0x11, 0x1d, 0xea, 0x21, 0x0f, 0xa2, 0x00, - 0xbd, 0x96, 0x01, 0x75, 0x12, 0x32, 0x5d, 0x02, 0xf5, 0x1c, 0x78, 0x70, 0xec, 0xb0, 0xe8, 0x36, - 0xb6, 0x74, 0x3b, 0xf0, 0x0c, 0x27, 0x70, 0x02, 0x23, 0xc5, 0x5b, 0xf1, 0x4d, 0x7a, 0x4a, 0x0f, - 0xe9, 0x7f, 0x19, 0xcf, 0xc1, 0x7b, 0x65, 0x43, 0x8f, 0xd8, 0xb7, 0xcc, 0xa7, 0xfc, 0xce, 0x08, - 0x47, 0x8e, 0x0c, 0x08, 0xc3, 0xa3, 0x11, 0x31, 0xc6, 0x2b, 0xdd, 0x0f, 0x8c, 0x4d, 0x55, 0x3c, - 0xf6, 0x23, 0xe6, 0xd1, 0x95, 0x82, 0xf7, 0x9f, 0x2b, 0x10, 0xf6, 0x2d, 0xf5, 0xc8, 0x72, 0x5d, - 0xff, 0x57, 0x00, 0x3b, 0x67, 0x8e, 0xc3, 0xa9, 0x43, 0x22, 0x16, 0xf8, 0x38, 0x76, 0x29, 0xfa, - 0x11, 0xc0, 0x7d, 0xdb, 0x8d, 0x45, 0x44, 0x39, 0x0e, 0x5c, 0x7a, 0x4d, 0x5d, 0x6a, 0x47, 0x01, - 0x17, 0x2a, 0xe8, 0xed, 0x1d, 0xb6, 0x4e, 0xdf, 0xd5, 0x4b, 0x6b, 0x66, 0xbd, 0xf4, 0x70, 0xe4, - 0xc8, 0x80, 0xd0, 0xe5, 0x48, 0xfa, 0xf8, 0x44, 0xbf, 0x24, 0x16, 0x75, 0x8b, 0x5a, 0xf3, 0xf5, - 0xc9, 0xb4, 0x5b, 0x49, 0xa6, 0xdd, 0xfd, 0x4f, 0xd6, 0x10, 0xe3, 0xb5, 0xed, 0xfa, 0xbf, 0x55, - 0x61, 0x6b, 0x0e, 0x8e, 0xbe, 0x85, 0x4d, 0x49, 0x3e, 0x24, 0x11, 0x51, 0x41, 0x0f, 0x1c, 0xb6, - 0x4e, 0xdf, 0xd9, 0x4e, 0xca, 0x17, 0xd6, 0x77, 0xd4, 0x8e, 0x3e, 0xa7, 0x11, 0x31, 0x51, 0xae, - 0x03, 0x96, 0x31, 0x3c, 0x63, 0x45, 0x9f, 0xc1, 0x3a, 0x8f, 0x5d, 0x2a, 0xd4, 0x6a, 0x3a, 0xe9, - 0x9b, 0xfa, 0x86, 0x4b, 0xa0, 0x5f, 0x05, 0x2e, 0xb3, 0xef, 0xa4, 0x5b, 0x66, 0x3b, 0x67, 0xac, - 0xcb, 0x93, 0xc0, 0x19, 0x01, 0x72, 0x60, 0x87, 0x2c, 0xda, 0xaa, 0xee, 0xa5, 0x92, 0x0f, 0x37, - 0x72, 0x2e, 0x7d, 0x06, 0xf3, 0x95, 0x64, 0xda, 0x5d, 0xfe, 0x36, 0x78, 0x99, 0xb5, 0xff, 0x4b, - 0x15, 0xa2, 0x39, 0x93, 0x4c, 0xe6, 0x0f, 0x99, 0xef, 0xec, 0xc0, 0xab, 0x01, 0x6c, 0x8a, 0x38, - 0x4d, 0x14, 0x76, 0xf5, 0x36, 0x8e, 0x76, 0x9d, 0x01, 0xcd, 0x97, 0x73, 0xc6, 0x66, 0x1e, 0x10, - 0x78, 0xc6, 0x81, 0x2e, 0x60, 0x83, 0x07, 0x2e, 0xc5, 0xf4, 0x26, 0x77, 0x6a, 0x33, 0x1d, 0xce, - 0x70, 0x66, 0x27, 0xa7, 0x6b, 0xe4, 0x01, 0x5c, 0x30, 0xf4, 0x27, 0x00, 0xbe, 0xba, 0xea, 0xca, - 0x25, 0x13, 0x11, 0xfa, 0x66, 0xc5, 0x19, 0x7d, 0xcb, 0x0b, 0xcd, 0x44, 0xe6, 0xcb, 0x6c, 0x8a, - 0x22, 0x32, 0xe7, 0xca, 0x15, 0xac, 0xb3, 0x88, 0x7a, 0x85, 0x25, 0x47, 0x1b, 0x67, 0x58, 0x55, - 0x57, 0xde, 0xa4, 0x73, 0xc9, 0x80, 0x33, 0xa2, 0xfe, 0x9f, 0x00, 0x76, 0xe6, 0xc0, 0x3b, 0x98, - 0xe1, 0x7c, 0x71, 0x86, 0xb7, 0xb6, 0x9a, 0x61, 0xbd, 0xf8, 0x7f, 0x00, 0x84, 0xe5, 0x5b, 0x41, - 0x5d, 0x58, 0x1f, 0x53, 0x6e, 0x65, 0x9b, 0x44, 0x31, 0x15, 0x89, 0xff, 0x4a, 0x06, 0x70, 0x16, - 0x47, 0x47, 0x50, 0x21, 0x21, 0xfb, 0x94, 0x07, 0x71, 0x98, 0xb5, 0x57, 0xcc, 0x76, 0x32, 0xed, - 0x2a, 0x67, 0x57, 0xe7, 0x59, 0x10, 0x97, 0x79, 0x09, 0xe6, 0x54, 0x04, 0x31, 0xb7, 0xa9, 0x50, - 0xf7, 0x4a, 0x30, 0x2e, 0x82, 0xb8, 0xcc, 0xa3, 0x0f, 0x60, 0xbb, 0x38, 0x0c, 0x88, 0x47, 0x85, - 0x5a, 0x4b, 0x0b, 0x5e, 0x24, 0xd3, 0x6e, 0x1b, 0xcf, 0x27, 0xf0, 0x22, 0x0e, 0x7d, 0x04, 0x3b, - 0x7e, 0xe0, 0x17, 0x90, 0x2f, 0xf1, 0xa5, 0x50, 0xeb, 0x69, 0x69, 0xfa, 0x3e, 0x07, 0x8b, 0x29, - 0xbc, 0x8c, 0xed, 0xff, 0x01, 0x60, 0xed, 0xbf, 0xb6, 0xbd, 0xfa, 0x3f, 0x55, 0x61, 0xeb, 0xff, - 0x6d, 0x32, 0xdb, 0x26, 0xf2, 0x09, 0xee, 0x76, 0x8d, 0x6c, 0xfd, 0x04, 0x9f, 0xdf, 0x1f, 0xbf, - 0x03, 0xd8, 0xdc, 0xd1, 0xe2, 0x30, 0x17, 0x55, 0xbf, 0xf1, 0xb4, 0xea, 0xf5, 0x72, 0xbf, 0x87, - 0x85, 0xff, 0xe8, 0x6d, 0xd8, 0x2c, 0x1e, 0x7b, 0x2a, 0x56, 0x29, 0x9b, 0x17, 0xfb, 0x00, 0xcf, - 0x10, 0xa8, 0x07, 0x6b, 0x23, 0xe6, 0x0f, 0xd5, 0x6a, 0x8a, 0x7c, 0x29, 0x47, 0xd6, 0x2e, 0x98, - 0x3f, 0xc4, 0x69, 0x46, 0x22, 0x7c, 0xe2, 0x65, 0x3f, 0xc4, 0x73, 0x08, 0xf9, 0xcc, 0x71, 0x9a, - 0x91, 0x5e, 0x35, 0xf2, 0xcb, 0x34, 0xe3, 0x03, 0x1b, 0xf9, 0xe6, 0xf5, 0x55, 0xb7, 0xd1, 0xf7, - 0x74, 0x77, 0x64, 0x40, 0x45, 0xfe, 0x15, 0x21, 0xb1, 0xa9, 0x5a, 0x4b, 0x61, 0x2f, 0x72, 0x98, - 0x32, 0x28, 0x12, 0xb8, 0xc4, 0x98, 0xc7, 0x93, 0x47, 0xad, 0x72, 0xff, 0xa8, 0x55, 0x1e, 0x1e, - 0xb5, 0xca, 0x0f, 0x89, 0x06, 0x26, 0x89, 0x06, 0xee, 0x13, 0x0d, 0x3c, 0x24, 0x1a, 0xf8, 0x2b, - 0xd1, 0xc0, 0xcf, 0x7f, 0x6b, 0x95, 0xaf, 0x1b, 0xb9, 0xeb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, - 0x37, 0x8f, 0x77, 0xcd, 0x15, 0x0b, 0x00, 0x00, -} - -func (m *AggregationRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AggregationRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ClusterRoleSelectors) > 0 { - for iNdEx := len(m.ClusterRoleSelectors) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ClusterRoleSelectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ClusterRole) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AggregationRule != nil { - { - size, err := m.AggregationRule.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ClusterRoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClusterRoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PolicyRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NonResourceURLs) > 0 { - for iNdEx := len(m.NonResourceURLs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.NonResourceURLs[iNdEx]) - copy(dAtA[i:], m.NonResourceURLs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NonResourceURLs[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.ResourceNames) > 0 { - for iNdEx := len(m.ResourceNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ResourceNames[iNdEx]) - copy(dAtA[i:], m.ResourceNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceNames[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Resources) > 0 { - for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Resources[iNdEx]) - copy(dAtA[i:], m.Resources[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resources[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.APIGroups) > 0 { - for iNdEx := len(m.APIGroups) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.APIGroups[iNdEx]) - copy(dAtA[i:], m.APIGroups[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroups[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Verbs) > 0 { - for iNdEx := len(m.Verbs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Verbs[iNdEx]) - copy(dAtA[i:], m.Verbs[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Verbs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Role) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Role) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Rules[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleBinding) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.RoleRef.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Subjects) > 0 { - for iNdEx := len(m.Subjects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Subjects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleBindingList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *RoleRef) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RoleRef) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RoleRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIGroup) - copy(dAtA[i:], m.APIGroup) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Subject) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Subject) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x22 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.APIGroup) - copy(dAtA[i:], m.APIGroup) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AggregationRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ClusterRoleSelectors) > 0 { - for _, e := range m.ClusterRoleSelectors { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRole) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AggregationRule != nil { - l = m.AggregationRule.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ClusterRoleBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *ClusterRoleBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ClusterRoleList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PolicyRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Verbs) > 0 { - for _, s := range m.Verbs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.APIGroups) > 0 { - for _, s := range m.APIGroups { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Resources) > 0 { - for _, s := range m.Resources { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ResourceNames) > 0 { - for _, s := range m.ResourceNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.NonResourceURLs) > 0 { - for _, s := range m.NonResourceURLs { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Role) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleBinding) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Subjects) > 0 { - for _, e := range m.Subjects { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.RoleRef.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *RoleBindingList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *RoleRef) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIGroup) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Subject) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIGroup) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *AggregationRule) String() string { - if this == nil { - return "nil" - } - repeatedStringForClusterRoleSelectors := "[]LabelSelector{" - for _, f := range this.ClusterRoleSelectors { - repeatedStringForClusterRoleSelectors += fmt.Sprintf("%v", f) + "," - } - repeatedStringForClusterRoleSelectors += "}" - s := strings.Join([]string{`&AggregationRule{`, - `ClusterRoleSelectors:` + repeatedStringForClusterRoleSelectors + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRole) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]PolicyRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&ClusterRole{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `AggregationRule:` + strings.Replace(this.AggregationRule.String(), "AggregationRule", "AggregationRule", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBinding) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubjects := "[]Subject{" - for _, f := range this.Subjects { - repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," - } - repeatedStringForSubjects += "}" - s := strings.Join([]string{`&ClusterRoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subjects:` + repeatedStringForSubjects + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ClusterRoleBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRoleBinding", "ClusterRoleBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ClusterRoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ClusterRoleList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]ClusterRole{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ClusterRole", "ClusterRole", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&ClusterRoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PolicyRule) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PolicyRule{`, - `Verbs:` + fmt.Sprintf("%v", this.Verbs) + `,`, - `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, - `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, - `ResourceNames:` + fmt.Sprintf("%v", this.ResourceNames) + `,`, - `NonResourceURLs:` + fmt.Sprintf("%v", this.NonResourceURLs) + `,`, - `}`, - }, "") - return s -} -func (this *Role) String() string { - if this == nil { - return "nil" - } - repeatedStringForRules := "[]PolicyRule{" - for _, f := range this.Rules { - repeatedStringForRules += strings.Replace(strings.Replace(f.String(), "PolicyRule", "PolicyRule", 1), `&`, ``, 1) + "," - } - repeatedStringForRules += "}" - s := strings.Join([]string{`&Role{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Rules:` + repeatedStringForRules + `,`, - `}`, - }, "") - return s -} -func (this *RoleBinding) String() string { - if this == nil { - return "nil" - } - repeatedStringForSubjects := "[]Subject{" - for _, f := range this.Subjects { - repeatedStringForSubjects += strings.Replace(strings.Replace(f.String(), "Subject", "Subject", 1), `&`, ``, 1) + "," - } - repeatedStringForSubjects += "}" - s := strings.Join([]string{`&RoleBinding{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Subjects:` + repeatedStringForSubjects + `,`, - `RoleRef:` + strings.Replace(strings.Replace(this.RoleRef.String(), "RoleRef", "RoleRef", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *RoleBindingList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RoleBinding{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "RoleBinding", "RoleBinding", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RoleBindingList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RoleList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Role{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Role", "Role", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&RoleList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *RoleRef) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RoleRef{`, - `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *Subject) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Subject{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *AggregationRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AggregationRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AggregationRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterRoleSelectors", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterRoleSelectors = append(m.ClusterRoleSelectors, v1.LabelSelector{}) - if err := m.ClusterRoleSelectors[len(m.ClusterRoleSelectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRole) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRole: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRole: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregationRule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AggregationRule == nil { - m.AggregationRule = &AggregationRule{} - } - if err := m.AggregationRule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClusterRoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ClusterRoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClusterRoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, ClusterRole{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PolicyRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PolicyRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PolicyRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Verbs = append(m.Verbs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceNames = append(m.ResourceNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NonResourceURLs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NonResourceURLs = append(m.NonResourceURLs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Role) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Role: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Role: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, PolicyRule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBinding) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBinding: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBinding: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subjects", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subjects = append(m.Subjects, Subject{}) - if err := m.Subjects[len(m.Subjects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RoleRef", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RoleRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleBindingList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleBindingList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleBindingList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, RoleBinding{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Role{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RoleRef) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RoleRef: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RoleRef: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroup = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Subject) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Subject: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Subject: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIGroup = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/rbac/v1beta1/generated.proto b/pseudo/k8s/api/rbac/v1beta1/generated.proto deleted file mode 100644 index 723eef92c..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/generated.proto +++ /dev/null @@ -1,200 +0,0 @@ -/* -Copyright 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.rbac.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -message AggregationRule { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector clusterRoleSelectors = 1; -} - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -message ClusterRole { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - repeated PolicyRule rules = 2; - - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - optional AggregationRule aggregationRule = 3; -} - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -message ClusterRoleBinding { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Subjects holds references to the objects the role applies to. - // +optional - repeated Subject subjects = 2; - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - optional RoleRef roleRef = 3; -} - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -message ClusterRoleBindingList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ClusterRoleBindings - repeated ClusterRoleBinding items = 2; -} - -// ClusterRoleList is a collection of ClusterRoles -message ClusterRoleList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of ClusterRoles - repeated ClusterRole items = 2; -} - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -message PolicyRule { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - repeated string verbs = 1; - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - repeated string apiGroups = 2; - - // Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. - // '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - repeated string resources = 3; - - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - repeated string resourceNames = 4; - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - repeated string nonResourceURLs = 5; -} - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -message Role { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Rules holds all the PolicyRules for this Role - // +optional - repeated PolicyRule rules = 2; -} - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -message RoleBinding { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Subjects holds references to the objects the role applies to. - // +optional - repeated Subject subjects = 2; - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - optional RoleRef roleRef = 3; -} - -// RoleBindingList is a collection of RoleBindings -message RoleBindingList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of RoleBindings - repeated RoleBinding items = 2; -} - -// RoleList is a collection of Roles -message RoleList { - // Standard object's metadata. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of Roles - repeated Role items = 2; -} - -// RoleRef contains information that points to the role being used -message RoleRef { - // APIGroup is the group for the resource being referenced - optional string apiGroup = 1; - - // Kind is the type of resource being referenced - optional string kind = 2; - - // Name is the name of resource being referenced - optional string name = 3; -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -message Subject { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - optional string kind = 1; - - // APIGroup holds the API group of the referenced subject. - // Defaults to "" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - // +optional - optional string apiGroup = 2; - - // Name of the object being referenced. - optional string name = 3; - - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - optional string namespace = 4; -} - diff --git a/pseudo/k8s/api/rbac/v1beta1/register.go b/pseudo/k8s/api/rbac/v1beta1/register.go deleted file mode 100644 index be479145a..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/register.go +++ /dev/null @@ -1,58 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const GroupName = "rbac.authorization.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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Role{}, - &RoleBinding{}, - &RoleBindingList{}, - &RoleList{}, - - &ClusterRole{}, - &ClusterRoleBinding{}, - &ClusterRoleBindingList{}, - &ClusterRoleList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/rbac/v1beta1/types.go b/pseudo/k8s/api/rbac/v1beta1/types.go deleted file mode 100644 index a5f77b1c0..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/types.go +++ /dev/null @@ -1,237 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Authorization is calculated against -// 1. evaluation of ClusterRoleBindings - short circuit on match -// 2. evaluation of RoleBindings in the namespace requested - short circuit on match -// 3. deny by default - -const ( - APIGroupAll = "*" - ResourceAll = "*" - VerbAll = "*" - NonResourceAll = "*" - - GroupKind = "Group" - ServiceAccountKind = "ServiceAccount" - UserKind = "User" - - // AutoUpdateAnnotationKey is the name of an annotation which prevents reconciliation if set to "false" - AutoUpdateAnnotationKey = "rbac.authorization.kubernetes.io/autoupdate" -) - -// Authorization is calculated against -// 1. evaluation of ClusterRoleBindings - short circuit on match -// 2. evaluation of RoleBindings in the namespace requested - short circuit on match -// 3. deny by default - -// PolicyRule holds information that describes a policy rule, but does not contain information -// about who the rule applies to or which namespace the rule applies to. -type PolicyRule struct { - // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` - - // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - // the enumerated resources in any API group will be allowed. - // +optional - APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,2,rep,name=apiGroups"` - // Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. - // '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - // +optional - Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"` - // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - // +optional - ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,4,rep,name=resourceNames"` - - // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path - // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. - // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - // +optional - NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,5,rep,name=nonResourceURLs"` -} - -// Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, -// or a value for non-objects such as user and group names. -type Subject struct { - // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". - // If the Authorizer does not recognized the kind value, the Authorizer should report an error. - Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` - // APIGroup holds the API group of the referenced subject. - // Defaults to "" for ServiceAccount subjects. - // Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - // +optional - APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,2,opt.name=apiGroup"` - // Name of the object being referenced. - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` - // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty - // the Authorizer should report an error. - // +optional - Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` -} - -// RoleRef contains information that points to the role being used -type RoleRef struct { - // APIGroup is the group for the resource being referenced - APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"` - // Kind is the type of resource being referenced - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` - // Name is the name of resource being referenced - Name string `json:"name" protobuf:"bytes,3,opt,name=name"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. -type Role struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Rules holds all the PolicyRules for this Role - // +optional - Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. -// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given -// namespace only have effect in that namespace. -type RoleBinding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Subjects holds references to the objects the role applies to. - // +optional - Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` - - // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleBindingList is a collection of RoleBindings -type RoleBindingList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of RoleBindings - Items []RoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// RoleList is a collection of Roles -type RoleList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of Roles - Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. -type ClusterRole struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Rules holds all the PolicyRules for this ClusterRole - // +optional - Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` - // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be - // stomped by the controller. - // +optional - AggregationRule *AggregationRule `json:"aggregationRule,omitempty" protobuf:"bytes,3,opt,name=aggregationRule"` -} - -// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole -type AggregationRule struct { - // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. - // If any of the selectors match, then the ClusterRole's permissions will be added - // +optional - ClusterRoleSelectors []metav1.LabelSelector `json:"clusterRoleSelectors,omitempty" protobuf:"bytes,1,rep,name=clusterRoleSelectors"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, -// and adds who information via Subject. -type ClusterRoleBinding struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Subjects holds references to the objects the role applies to. - // +optional - Subjects []Subject `json:"subjects,omitempty" protobuf:"bytes,2,rep,name=subjects"` - - // RoleRef can only reference a ClusterRole in the global namespace. - // If the RoleRef cannot be resolved, the Authorizer must return an error. - RoleRef RoleRef `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleBindingList is a collection of ClusterRoleBindings -type ClusterRoleBindingList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ClusterRoleBindings - Items []ClusterRoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ClusterRoleList is a collection of ClusterRoles -type ClusterRoleList struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of ClusterRoles - Items []ClusterRole `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/rbac/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/rbac/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index c80327593..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_AggregationRule = map[string]string{ - "": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "clusterRoleSelectors": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", -} - -func (AggregationRule) SwaggerDoc() map[string]string { - return map_AggregationRule -} - -var map_ClusterRole = map[string]string{ - "": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "metadata": "Standard object's metadata.", - "rules": "Rules holds all the PolicyRules for this ClusterRole", - "aggregationRule": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", -} - -func (ClusterRole) SwaggerDoc() map[string]string { - return map_ClusterRole -} - -var map_ClusterRoleBinding = map[string]string{ - "": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "metadata": "Standard object's metadata.", - "subjects": "Subjects holds references to the objects the role applies to.", - "roleRef": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", -} - -func (ClusterRoleBinding) SwaggerDoc() map[string]string { - return map_ClusterRoleBinding -} - -var map_ClusterRoleBindingList = map[string]string{ - "": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "metadata": "Standard object's metadata.", - "items": "Items is a list of ClusterRoleBindings", -} - -func (ClusterRoleBindingList) SwaggerDoc() map[string]string { - return map_ClusterRoleBindingList -} - -var map_ClusterRoleList = map[string]string{ - "": "ClusterRoleList is a collection of ClusterRoles", - "metadata": "Standard object's metadata.", - "items": "Items is a list of ClusterRoles", -} - -func (ClusterRoleList) SwaggerDoc() map[string]string { - return map_ClusterRoleList -} - -var map_PolicyRule = map[string]string{ - "": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "verbs": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", - "apiGroups": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "resources": "Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups.", - "resourceNames": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", - "nonResourceURLs": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", -} - -func (PolicyRule) SwaggerDoc() map[string]string { - return map_PolicyRule -} - -var map_Role = map[string]string{ - "": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "metadata": "Standard object's metadata.", - "rules": "Rules holds all the PolicyRules for this Role", -} - -func (Role) SwaggerDoc() map[string]string { - return map_Role -} - -var map_RoleBinding = map[string]string{ - "": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "metadata": "Standard object's metadata.", - "subjects": "Subjects holds references to the objects the role applies to.", - "roleRef": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.", -} - -func (RoleBinding) SwaggerDoc() map[string]string { - return map_RoleBinding -} - -var map_RoleBindingList = map[string]string{ - "": "RoleBindingList is a collection of RoleBindings", - "metadata": "Standard object's metadata.", - "items": "Items is a list of RoleBindings", -} - -func (RoleBindingList) SwaggerDoc() map[string]string { - return map_RoleBindingList -} - -var map_RoleList = map[string]string{ - "": "RoleList is a collection of Roles", - "metadata": "Standard object's metadata.", - "items": "Items is a list of Roles", -} - -func (RoleList) SwaggerDoc() map[string]string { - return map_RoleList -} - -var map_RoleRef = map[string]string{ - "": "RoleRef contains information that points to the role being used", - "apiGroup": "APIGroup is the group for the resource being referenced", - "kind": "Kind is the type of resource being referenced", - "name": "Name is the name of resource being referenced", -} - -func (RoleRef) SwaggerDoc() map[string]string { - return map_RoleRef -} - -var map_Subject = map[string]string{ - "": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", - "kind": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", - "apiGroup": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", - "name": "Name of the object being referenced.", - "namespace": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", -} - -func (Subject) SwaggerDoc() map[string]string { - return map_Subject -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/rbac/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/rbac/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 31917e45e..000000000 --- a/pseudo/k8s/api/rbac/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,389 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AggregationRule) DeepCopyInto(out *AggregationRule) { - *out = *in - if in.ClusterRoleSelectors != nil { - in, out := &in.ClusterRoleSelectors, &out.ClusterRoleSelectors - *out = make([]v1.LabelSelector, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AggregationRule. -func (in *AggregationRule) DeepCopy() *AggregationRule { - if in == nil { - return nil - } - out := new(AggregationRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRole) DeepCopyInto(out *ClusterRole) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]PolicyRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.AggregationRule != nil { - in, out := &in.AggregationRule, &out.AggregationRule - *out = new(AggregationRule) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole. -func (in *ClusterRole) DeepCopy() *ClusterRole { - if in == nil { - return nil - } - out := new(ClusterRole) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRole) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - copy(*out, *in) - } - out.RoleRef = in.RoleRef - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding. -func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding { - if in == nil { - return nil - } - out := new(ClusterRoleBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterRoleBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList. -func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList { - if in == nil { - return nil - } - out := new(ClusterRoleBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterRole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList. -func (in *ClusterRoleList) DeepCopy() *ClusterRoleList { - if in == nil { - return nil - } - out := new(ClusterRoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterRoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PolicyRule) DeepCopyInto(out *PolicyRule) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.APIGroups != nil { - in, out := &in.APIGroups, &out.APIGroups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.NonResourceURLs != nil { - in, out := &in.NonResourceURLs, &out.NonResourceURLs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule. -func (in *PolicyRule) DeepCopy() *PolicyRule { - if in == nil { - return nil - } - out := new(PolicyRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Role) DeepCopyInto(out *Role) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Rules != nil { - in, out := &in.Rules, &out.Rules - *out = make([]PolicyRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role. -func (in *Role) DeepCopy() *Role { - if in == nil { - return nil - } - out := new(Role) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Role) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleBinding) DeepCopyInto(out *RoleBinding) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Subjects != nil { - in, out := &in.Subjects, &out.Subjects - *out = make([]Subject, len(*in)) - copy(*out, *in) - } - out.RoleRef = in.RoleRef - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding. -func (in *RoleBinding) DeepCopy() *RoleBinding { - if in == nil { - return nil - } - out := new(RoleBinding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleBinding) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RoleBinding, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList. -func (in *RoleBindingList) DeepCopy() *RoleBindingList { - if in == nil { - return nil - } - out := new(RoleBindingList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleBindingList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleList) DeepCopyInto(out *RoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Role, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList. -func (in *RoleList) DeepCopy() *RoleList { - if in == nil { - return nil - } - out := new(RoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RoleRef) DeepCopyInto(out *RoleRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef. -func (in *RoleRef) DeepCopy() *RoleRef { - if in == nil { - return nil - } - out := new(RoleRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Subject) DeepCopyInto(out *Subject) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject. -func (in *Subject) DeepCopy() *Subject { - if in == nil { - return nil - } - out := new(Subject) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/roundtrip_test.go b/pseudo/k8s/api/roundtrip_test.go deleted file mode 100644 index 6f1eb06c1..000000000 --- a/pseudo/k8s/api/roundtrip_test.go +++ /dev/null @@ -1,133 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 testing - -import ( - "math/rand" - "testing" - - admissionv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1" - admissionv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/admission/v1beta1" - admissionregv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1" - admissionregv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/admissionregistration/v1beta1" - appsv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1" - appsv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta1" - appsv1beta2 "sigs.k8s.io/kustomize/pseudo/k8s/api/apps/v1beta2" - authenticationv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1" - authenticationv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/authentication/v1beta1" - authorizationv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1" - authorizationv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/authorization/v1beta1" - autoscalingv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v1" - autoscalingv2beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta1" - autoscalingv2beta2 "sigs.k8s.io/kustomize/pseudo/k8s/api/autoscaling/v2beta2" - batchv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1" - batchv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v1beta1" - batchv2alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/batch/v2alpha1" - certificatesv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/certificates/v1beta1" - coordinationv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1" - coordinationv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/coordination/v1beta1" - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - eventsv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/events/v1beta1" - extensionsv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/extensions/v1beta1" - imagepolicyv1alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/imagepolicy/v1alpha1" - networkingv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1" - networkingv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/networking/v1beta1" - nodev1alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1alpha1" - nodev1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/node/v1beta1" - policyv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/policy/v1beta1" - rbacv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1" - rbacv1alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1alpha1" - rbacv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/rbac/v1beta1" - schedulingv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1" - schedulingv1alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1alpha1" - schedulingv1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1beta1" - settingsv1alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/settings/v1alpha1" - storagev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1" - storagev1alpha1 "sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1alpha1" - storagev1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1beta1" - - "github.com/stretchr/testify/require" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip" - genericfuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" -) - -var groups = []runtime.SchemeBuilder{ - admissionv1beta1.SchemeBuilder, - admissionv1.SchemeBuilder, - admissionregv1beta1.SchemeBuilder, - admissionregv1.SchemeBuilder, - appsv1beta1.SchemeBuilder, - appsv1beta2.SchemeBuilder, - appsv1.SchemeBuilder, - authenticationv1beta1.SchemeBuilder, - authenticationv1.SchemeBuilder, - authorizationv1beta1.SchemeBuilder, - authorizationv1.SchemeBuilder, - autoscalingv1.SchemeBuilder, - autoscalingv2beta1.SchemeBuilder, - autoscalingv2beta2.SchemeBuilder, - batchv2alpha1.SchemeBuilder, - batchv1beta1.SchemeBuilder, - batchv1.SchemeBuilder, - certificatesv1beta1.SchemeBuilder, - coordinationv1.SchemeBuilder, - coordinationv1beta1.SchemeBuilder, - corev1.SchemeBuilder, - eventsv1beta1.SchemeBuilder, - extensionsv1beta1.SchemeBuilder, - imagepolicyv1alpha1.SchemeBuilder, - networkingv1.SchemeBuilder, - networkingv1beta1.SchemeBuilder, - nodev1alpha1.SchemeBuilder, - nodev1beta1.SchemeBuilder, - policyv1beta1.SchemeBuilder, - rbacv1alpha1.SchemeBuilder, - rbacv1beta1.SchemeBuilder, - rbacv1.SchemeBuilder, - schedulingv1alpha1.SchemeBuilder, - schedulingv1beta1.SchemeBuilder, - schedulingv1.SchemeBuilder, - settingsv1alpha1.SchemeBuilder, - storagev1alpha1.SchemeBuilder, - storagev1beta1.SchemeBuilder, - storagev1.SchemeBuilder, -} - -func TestRoundTripExternalTypes(t *testing.T) { - scheme := runtime.NewScheme() - codecs := serializer.NewCodecFactory(scheme) - for _, builder := range groups { - require.NoError(t, builder.AddToScheme(scheme)) - } - seed := rand.Int63() - // I'm only using the generic fuzzer funcs, but at some point in time we might need to - // switch to specialized. For now we're happy with the current serialization test. - fuzzer := fuzzer.FuzzerFor(genericfuzzer.Funcs, rand.NewSource(seed), codecs) - - roundtrip.RoundTripExternalTypes(t, scheme, codecs, fuzzer, nil) -} - -func TestCompatibility(t *testing.T) { - scheme := runtime.NewScheme() - for _, builder := range groups { - require.NoError(t, builder.AddToScheme(scheme)) - } - roundtrip.NewCompatibilityTestOptions(scheme).Complete(t).Run(t) -} diff --git a/pseudo/k8s/api/scheduling/v1/doc.go b/pseudo/k8s/api/scheduling/v1/doc.go deleted file mode 100644 index adb698820..000000000 --- a/pseudo/k8s/api/scheduling/v1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2019 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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=scheduling.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1" diff --git a/pseudo/k8s/api/scheduling/v1/generated.pb.go b/pseudo/k8s/api/scheduling/v1/generated.pb.go deleted file mode 100644 index 812edeb09..000000000 --- a/pseudo/k8s/api/scheduling/v1/generated.pb.go +++ /dev/null @@ -1,761 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *PriorityClass) Reset() { *m = PriorityClass{} } -func (*PriorityClass) ProtoMessage() {} -func (*PriorityClass) Descriptor() ([]byte, []int) { - return fileDescriptor_277b2f43b72fffd5, []int{0} -} -func (m *PriorityClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PriorityClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClass.Merge(m, src) -} -func (m *PriorityClass) XXX_Size() int { - return m.Size() -} -func (m *PriorityClass) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClass.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClass proto.InternalMessageInfo - -func (m *PriorityClassList) Reset() { *m = PriorityClassList{} } -func (*PriorityClassList) ProtoMessage() {} -func (*PriorityClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_277b2f43b72fffd5, []int{1} -} -func (m *PriorityClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PriorityClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClassList.Merge(m, src) -} -func (m *PriorityClassList) XXX_Size() int { - return m.Size() -} -func (m *PriorityClassList) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClassList proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1.PriorityClass") - proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1.PriorityClassList") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1/generated.proto", fileDescriptor_277b2f43b72fffd5) -} - -var fileDescriptor_277b2f43b72fffd5 = []byte{ - // 488 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x3f, 0x8f, 0xd3, 0x30, - 0x18, 0xc6, 0xeb, 0x1e, 0x95, 0x0e, 0x57, 0x95, 0x4a, 0x10, 0x52, 0xd4, 0x21, 0xad, 0x7a, 0x03, - 0x59, 0xb0, 0xe9, 0x09, 0x10, 0xd2, 0x4d, 0x84, 0x93, 0x10, 0xd2, 0x21, 0xaa, 0x0c, 0x0c, 0x88, - 0x01, 0x27, 0x79, 0x2f, 0x35, 0x4d, 0xe2, 0xc8, 0x76, 0x22, 0x75, 0xe3, 0x23, 0xf0, 0x8d, 0x58, - 0x3b, 0xde, 0x78, 0x53, 0x45, 0xc3, 0x47, 0x60, 0x63, 0x42, 0x49, 0xc3, 0xa5, 0x7f, 0xee, 0x04, - 0x5b, 0xfc, 0x3e, 0xcf, 0xef, 0xb1, 0xfd, 0x24, 0xc1, 0xaf, 0xe6, 0x2f, 0x15, 0xe1, 0x82, 0xce, - 0x33, 0x0f, 0x64, 0x02, 0x1a, 0x14, 0xcd, 0x21, 0x09, 0x84, 0xa4, 0xb5, 0xc0, 0x52, 0x4e, 0x95, - 0x3f, 0x83, 0x20, 0x8b, 0x78, 0x12, 0xd2, 0x7c, 0x42, 0x43, 0x48, 0x40, 0x32, 0x0d, 0x01, 0x49, - 0xa5, 0xd0, 0xc2, 0x30, 0x37, 0x4e, 0xc2, 0x52, 0x4e, 0x1a, 0x27, 0xc9, 0x27, 0x83, 0x27, 0x21, - 0xd7, 0xb3, 0xcc, 0x23, 0xbe, 0x88, 0x69, 0x28, 0x42, 0x41, 0x2b, 0xc0, 0xcb, 0x2e, 0xab, 0x55, - 0xb5, 0xa8, 0x9e, 0x36, 0x41, 0x83, 0xf1, 0xd6, 0x96, 0xbe, 0x90, 0x70, 0xcb, 0x66, 0x83, 0x67, - 0x8d, 0x27, 0x66, 0xfe, 0x8c, 0x27, 0x20, 0x17, 0x34, 0x9d, 0x87, 0xe5, 0x40, 0xd1, 0x18, 0x34, - 0xbb, 0x8d, 0xa2, 0x77, 0x51, 0x32, 0x4b, 0x34, 0x8f, 0xe1, 0x00, 0x78, 0xf1, 0x2f, 0xa0, 0xbc, - 0x68, 0xcc, 0xf6, 0xb9, 0xf1, 0xaf, 0x36, 0xee, 0x4d, 0x25, 0x17, 0x92, 0xeb, 0xc5, 0xeb, 0x88, - 0x29, 0x65, 0x7c, 0xc6, 0xc7, 0xe5, 0xa9, 0x02, 0xa6, 0x99, 0x89, 0x46, 0xc8, 0xee, 0x9e, 0x3e, - 0x25, 0x4d, 0x61, 0x37, 0xe1, 0x24, 0x9d, 0x87, 0xe5, 0x40, 0x91, 0xd2, 0x4d, 0xf2, 0x09, 0x79, - 0xef, 0x7d, 0x01, 0x5f, 0xbf, 0x03, 0xcd, 0x1c, 0x63, 0xb9, 0x1a, 0xb6, 0x8a, 0xd5, 0x10, 0x37, - 0x33, 0xf7, 0x26, 0xd5, 0x38, 0xc1, 0x9d, 0x9c, 0x45, 0x19, 0x98, 0xed, 0x11, 0xb2, 0x3b, 0x4e, - 0xaf, 0x36, 0x77, 0x3e, 0x94, 0x43, 0x77, 0xa3, 0x19, 0x67, 0xb8, 0x17, 0x46, 0xc2, 0x63, 0xd1, - 0x39, 0x5c, 0xb2, 0x2c, 0xd2, 0xe6, 0xd1, 0x08, 0xd9, 0xc7, 0xce, 0xa3, 0xda, 0xdc, 0x7b, 0xb3, - 0x2d, 0xba, 0xbb, 0x5e, 0xe3, 0x39, 0xee, 0x06, 0xa0, 0x7c, 0xc9, 0x53, 0xcd, 0x45, 0x62, 0xde, - 0x1b, 0x21, 0xfb, 0xbe, 0xf3, 0xb0, 0x46, 0xbb, 0xe7, 0x8d, 0xe4, 0x6e, 0xfb, 0x8c, 0x10, 0xf7, - 0x53, 0x09, 0x10, 0x57, 0xab, 0xa9, 0x88, 0xb8, 0xbf, 0x30, 0x3b, 0x15, 0x7b, 0x56, 0xac, 0x86, - 0xfd, 0xe9, 0x9e, 0xf6, 0x7b, 0x35, 0x3c, 0x39, 0xfc, 0x02, 0xc8, 0xbe, 0xcd, 0x3d, 0x08, 0x1d, - 0x7f, 0x47, 0xf8, 0xc1, 0x4e, 0xeb, 0x17, 0x5c, 0x69, 0xe3, 0xd3, 0x41, 0xf3, 0xe4, 0xff, 0x9a, - 0x2f, 0xe9, 0xaa, 0xf7, 0x7e, 0x7d, 0xc5, 0xe3, 0xbf, 0x93, 0xad, 0xd6, 0x2f, 0x70, 0x87, 0x6b, - 0x88, 0x95, 0xd9, 0x1e, 0x1d, 0xd9, 0xdd, 0xd3, 0xc7, 0xe4, 0xae, 0xbf, 0x80, 0xec, 0x9c, 0xac, - 0x79, 0x3d, 0x6f, 0x4b, 0xda, 0xdd, 0x84, 0x38, 0xf6, 0x72, 0x6d, 0xb5, 0xae, 0xd6, 0x56, 0xeb, - 0x7a, 0x6d, 0xb5, 0xbe, 0x16, 0x16, 0x5a, 0x16, 0x16, 0xba, 0x2a, 0x2c, 0x74, 0x5d, 0x58, 0xe8, - 0x47, 0x61, 0xa1, 0x6f, 0x3f, 0xad, 0xd6, 0xc7, 0x76, 0x3e, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, - 0x53, 0xd9, 0x28, 0x30, 0xb1, 0x03, 0x00, 0x00, -} - -func (m *PriorityClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PreemptionPolicy != nil { - i -= len(*m.PreemptionPolicy) - copy(dAtA[i:], *m.PreemptionPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy))) - i-- - dAtA[i] = 0x2a - } - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 - i-- - if m.GlobalDefault { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x10 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PriorityClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PriorityClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Value)) - n += 2 - l = len(m.Description) - n += 1 + l + sovGenerated(uint64(l)) - if m.PreemptionPolicy != nil { - l = len(*m.PreemptionPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PriorityClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PriorityClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PriorityClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`, - `}`, - }, "") - return s -} -func (this *PriorityClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PriorityClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PriorityClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PriorityClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GlobalDefault = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.PreemptionPolicy(dAtA[iNdEx:postIndex]) - m.PreemptionPolicy = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PriorityClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PriorityClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/scheduling/v1/generated.proto b/pseudo/k8s/api/scheduling/v1/generated.proto deleted file mode 100644 index b33f39dad..000000000 --- a/pseudo/k8s/api/scheduling/v1/generated.proto +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 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.scheduling.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -message PriorityClass { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - optional int32 value = 2; - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - optional bool globalDefault = 3; - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - optional string description = 4; - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - optional string preemptionPolicy = 5; -} - -// PriorityClassList is a collection of priority classes. -message PriorityClassList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of PriorityClasses - repeated PriorityClass items = 2; -} - diff --git a/pseudo/k8s/api/scheduling/v1/register.go b/pseudo/k8s/api/scheduling/v1/register.go deleted file mode 100644 index 940a642ac..000000000 --- a/pseudo/k8s/api/scheduling/v1/register.go +++ /dev/null @@ -1,55 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "scheduling.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/api. - // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. - - // SchemeBuilder is a collection of functions that add things to a scheme. - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - localSchemeBuilder = &SchemeBuilder - // AddToScheme applies all the stored functions to the scheme. - AddToScheme = localSchemeBuilder.AddToScheme -) - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &PriorityClass{}, - &PriorityClassList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/scheduling/v1/types.go b/pseudo/k8s/api/scheduling/v1/types.go deleted file mode 100644 index 69799e0c0..000000000 --- a/pseudo/k8s/api/scheduling/v1/types.go +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - apiv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -type PriorityClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"` - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - GlobalDefault bool `json:"globalDefault,omitempty" protobuf:"bytes,3,opt,name=globalDefault"` - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"` - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PriorityClassList is a collection of priority classes. -type PriorityClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of PriorityClasses - Items []PriorityClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/scheduling/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/scheduling/v1/types_swagger_doc_generated.go deleted file mode 100644 index 4cfb9d3e3..000000000 --- a/pseudo/k8s/api/scheduling/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_PriorityClass = map[string]string{ - "": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", - "preemptionPolicy": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", -} - -func (PriorityClass) SwaggerDoc() map[string]string { - return map_PriorityClass -} - -var map_PriorityClassList = map[string]string{ - "": "PriorityClassList is a collection of priority classes.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of PriorityClasses", -} - -func (PriorityClassList) SwaggerDoc() map[string]string { - return map_PriorityClassList -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/scheduling/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/scheduling/v1/zz_generated.deepcopy.go deleted file mode 100644 index 06fd9c806..000000000 --- a/pseudo/k8s/api/scheduling/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,90 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PriorityClass) DeepCopyInto(out *PriorityClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.PreemptionPolicy != nil { - in, out := &in.PreemptionPolicy, &out.PreemptionPolicy - *out = new(corev1.PreemptionPolicy) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClass. -func (in *PriorityClass) DeepCopy() *PriorityClass { - if in == nil { - return nil - } - out := new(PriorityClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PriorityClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PriorityClassList) DeepCopyInto(out *PriorityClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PriorityClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClassList. -func (in *PriorityClassList) DeepCopy() *PriorityClassList { - if in == nil { - return nil - } - out := new(PriorityClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PriorityClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/api/scheduling/v1alpha1/doc.go b/pseudo/k8s/api/scheduling/v1alpha1/doc.go deleted file mode 100644 index 23196b899..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=scheduling.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1alpha1" diff --git a/pseudo/k8s/api/scheduling/v1alpha1/generated.pb.go b/pseudo/k8s/api/scheduling/v1alpha1/generated.pb.go deleted file mode 100644 index c55b142d5..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/generated.pb.go +++ /dev/null @@ -1,761 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *PriorityClass) Reset() { *m = PriorityClass{} } -func (*PriorityClass) ProtoMessage() {} -func (*PriorityClass) Descriptor() ([]byte, []int) { - return fileDescriptor_f033641dd0b95dce, []int{0} -} -func (m *PriorityClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PriorityClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClass.Merge(m, src) -} -func (m *PriorityClass) XXX_Size() int { - return m.Size() -} -func (m *PriorityClass) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClass.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClass proto.InternalMessageInfo - -func (m *PriorityClassList) Reset() { *m = PriorityClassList{} } -func (*PriorityClassList) ProtoMessage() {} -func (*PriorityClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_f033641dd0b95dce, []int{1} -} -func (m *PriorityClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PriorityClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClassList.Merge(m, src) -} -func (m *PriorityClassList) XXX_Size() int { - return m.Size() -} -func (m *PriorityClassList) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClassList proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1alpha1.PriorityClass") - proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1alpha1.PriorityClassList") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1alpha1/generated.proto", fileDescriptor_f033641dd0b95dce) -} - -var fileDescriptor_f033641dd0b95dce = []byte{ - // 494 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x8b, 0xd3, 0x40, - 0x18, 0xc6, 0x3b, 0x5d, 0x0b, 0x75, 0x4a, 0xa1, 0x46, 0x84, 0xd0, 0xc3, 0xb4, 0x74, 0x2f, 0xbd, - 0xec, 0x8c, 0x5d, 0x54, 0x84, 0xbd, 0xd5, 0x85, 0x45, 0x50, 0x2c, 0x39, 0x78, 0x10, 0x0f, 0x4e, - 0xd3, 0x77, 0xd3, 0xb1, 0x49, 0x26, 0xcc, 0x4c, 0x02, 0xbd, 0xf9, 0x11, 0xfc, 0x52, 0x42, 0x8f, - 0x7b, 0xdc, 0x53, 0xb1, 0xf1, 0x23, 0x78, 0xf3, 0x24, 0x49, 0xd3, 0x4d, 0xdb, 0xf8, 0x67, 0x6f, - 0x99, 0xf7, 0xf9, 0x3d, 0xcf, 0xcc, 0x3c, 0x49, 0xf0, 0xd5, 0xe2, 0xa5, 0xa6, 0x42, 0xb2, 0x45, - 0x3c, 0x05, 0x15, 0x82, 0x01, 0xcd, 0x12, 0x08, 0x67, 0x52, 0xb1, 0x42, 0xe0, 0x91, 0x60, 0xda, - 0x9d, 0xc3, 0x2c, 0xf6, 0x45, 0xe8, 0xb1, 0x64, 0xc4, 0xfd, 0x68, 0xce, 0x47, 0xcc, 0x83, 0x10, - 0x14, 0x37, 0x30, 0xa3, 0x91, 0x92, 0x46, 0x5a, 0x64, 0xcb, 0x53, 0x1e, 0x09, 0x5a, 0xf2, 0x74, - 0xc7, 0x77, 0xcf, 0x3c, 0x61, 0xe6, 0xf1, 0x94, 0xba, 0x32, 0x60, 0x9e, 0xf4, 0x24, 0xcb, 0x6d, - 0xd3, 0xf8, 0x3a, 0x5f, 0xe5, 0x8b, 0xfc, 0x69, 0x1b, 0xd7, 0x1d, 0xec, 0x6d, 0xef, 0x4a, 0x05, - 0x2c, 0xa9, 0x6c, 0xd9, 0x7d, 0x56, 0x32, 0x01, 0x77, 0xe7, 0x22, 0x04, 0xb5, 0x64, 0xd1, 0xc2, - 0xcb, 0x06, 0x9a, 0x05, 0x60, 0xf8, 0x9f, 0x5c, 0xec, 0x6f, 0x2e, 0x15, 0x87, 0x46, 0x04, 0x50, - 0x31, 0xbc, 0xf8, 0x9f, 0x21, 0xbb, 0x6e, 0xc0, 0x8f, 0x7d, 0x83, 0x9f, 0x75, 0xdc, 0x9e, 0x28, - 0x21, 0x95, 0x30, 0xcb, 0x57, 0x3e, 0xd7, 0xda, 0xfa, 0x84, 0x9b, 0xd9, 0xa9, 0x66, 0xdc, 0x70, - 0x1b, 0xf5, 0xd1, 0xb0, 0x75, 0xfe, 0x94, 0x96, 0xb5, 0xdd, 0x85, 0xd3, 0x68, 0xe1, 0x65, 0x03, - 0x4d, 0x33, 0x9a, 0x26, 0x23, 0xfa, 0x6e, 0xfa, 0x19, 0x5c, 0xf3, 0x16, 0x0c, 0x1f, 0x5b, 0xab, - 0x75, 0xaf, 0x96, 0xae, 0x7b, 0xb8, 0x9c, 0x39, 0x77, 0xa9, 0xd6, 0x29, 0x6e, 0x24, 0xdc, 0x8f, - 0xc1, 0xae, 0xf7, 0xd1, 0xb0, 0x31, 0x6e, 0x17, 0x70, 0xe3, 0x7d, 0x36, 0x74, 0xb6, 0x9a, 0x75, - 0x81, 0xdb, 0x9e, 0x2f, 0xa7, 0xdc, 0xbf, 0x84, 0x6b, 0x1e, 0xfb, 0xc6, 0x3e, 0xe9, 0xa3, 0x61, - 0x73, 0xfc, 0xa4, 0x80, 0xdb, 0x57, 0xfb, 0xa2, 0x73, 0xc8, 0x5a, 0xcf, 0x71, 0x6b, 0x06, 0xda, - 0x55, 0x22, 0x32, 0x42, 0x86, 0xf6, 0x83, 0x3e, 0x1a, 0x3e, 0x1c, 0x3f, 0x2e, 0xac, 0xad, 0xcb, - 0x52, 0x72, 0xf6, 0x39, 0xcb, 0xc3, 0x9d, 0x48, 0x01, 0x04, 0xf9, 0x6a, 0x22, 0x7d, 0xe1, 0x2e, - 0xed, 0x46, 0xee, 0xbd, 0x48, 0xd7, 0xbd, 0xce, 0xe4, 0x48, 0xfb, 0xb5, 0xee, 0x9d, 0x56, 0xbf, - 0x00, 0x7a, 0x8c, 0x39, 0x95, 0xd0, 0xc1, 0x37, 0x84, 0x1f, 0x1d, 0xb4, 0xfe, 0x46, 0x68, 0x63, - 0x7d, 0xac, 0x34, 0x4f, 0xef, 0xd7, 0x7c, 0xe6, 0xce, 0x7b, 0xef, 0x14, 0x57, 0x6c, 0xee, 0x26, - 0x7b, 0xad, 0x3b, 0xb8, 0x21, 0x0c, 0x04, 0xda, 0xae, 0xf7, 0x4f, 0x86, 0xad, 0xf3, 0x33, 0xfa, - 0xef, 0x7f, 0x81, 0x1e, 0x9c, 0xaf, 0x7c, 0x49, 0xaf, 0xb3, 0x0c, 0x67, 0x1b, 0x35, 0xa6, 0xab, - 0x0d, 0xa9, 0xdd, 0x6c, 0x48, 0xed, 0x76, 0x43, 0x6a, 0x5f, 0x52, 0x82, 0x56, 0x29, 0x41, 0x37, - 0x29, 0x41, 0xb7, 0x29, 0x41, 0xdf, 0x53, 0x82, 0xbe, 0xfe, 0x20, 0xb5, 0x0f, 0xcd, 0x5d, 0xe6, - 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x5c, 0x1a, 0x39, 0xc9, 0x03, 0x00, 0x00, -} - -func (m *PriorityClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PreemptionPolicy != nil { - i -= len(*m.PreemptionPolicy) - copy(dAtA[i:], *m.PreemptionPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy))) - i-- - dAtA[i] = 0x2a - } - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 - i-- - if m.GlobalDefault { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x10 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PriorityClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PriorityClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Value)) - n += 2 - l = len(m.Description) - n += 1 + l + sovGenerated(uint64(l)) - if m.PreemptionPolicy != nil { - l = len(*m.PreemptionPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PriorityClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PriorityClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PriorityClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`, - `}`, - }, "") - return s -} -func (this *PriorityClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PriorityClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PriorityClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PriorityClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GlobalDefault = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.PreemptionPolicy(dAtA[iNdEx:postIndex]) - m.PreemptionPolicy = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PriorityClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PriorityClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/scheduling/v1alpha1/generated.proto b/pseudo/k8s/api/scheduling/v1alpha1/generated.proto deleted file mode 100644 index be224f234..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/generated.proto +++ /dev/null @@ -1,76 +0,0 @@ -/* -Copyright 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.scheduling.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -message PriorityClass { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - optional int32 value = 2; - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - optional bool globalDefault = 3; - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - optional string description = 4; - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - optional string preemptionPolicy = 5; -} - -// PriorityClassList is a collection of priority classes. -message PriorityClassList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of PriorityClasses - repeated PriorityClass items = 2; -} - diff --git a/pseudo/k8s/api/scheduling/v1alpha1/register.go b/pseudo/k8s/api/scheduling/v1alpha1/register.go deleted file mode 100644 index 4ab0e785d..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "scheduling.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &PriorityClass{}, - &PriorityClassList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/scheduling/v1alpha1/types.go b/pseudo/k8s/api/scheduling/v1alpha1/types.go deleted file mode 100644 index 800f36644..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/types.go +++ /dev/null @@ -1,75 +0,0 @@ -/* -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 v1alpha1 - -import ( - apiv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -type PriorityClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"` - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - GlobalDefault bool `json:"globalDefault,omitempty" protobuf:"bytes,3,opt,name=globalDefault"` - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"` - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PriorityClassList is a collection of priority classes. -type PriorityClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of PriorityClasses - Items []PriorityClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/scheduling/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/scheduling/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 63a9a353c..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_PriorityClass = map[string]string{ - "": "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", - "preemptionPolicy": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", -} - -func (PriorityClass) SwaggerDoc() map[string]string { - return map_PriorityClass -} - -var map_PriorityClassList = map[string]string{ - "": "PriorityClassList is a collection of priority classes.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of PriorityClasses", -} - -func (PriorityClassList) SwaggerDoc() map[string]string { - return map_PriorityClassList -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/scheduling/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/scheduling/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 98b1f8407..000000000 --- a/pseudo/k8s/api/scheduling/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,90 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PriorityClass) DeepCopyInto(out *PriorityClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.PreemptionPolicy != nil { - in, out := &in.PreemptionPolicy, &out.PreemptionPolicy - *out = new(v1.PreemptionPolicy) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClass. -func (in *PriorityClass) DeepCopy() *PriorityClass { - if in == nil { - return nil - } - out := new(PriorityClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PriorityClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PriorityClassList) DeepCopyInto(out *PriorityClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PriorityClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClassList. -func (in *PriorityClassList) DeepCopy() *PriorityClassList { - if in == nil { - return nil - } - out := new(PriorityClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PriorityClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/api/scheduling/v1beta1/doc.go b/pseudo/k8s/api/scheduling/v1beta1/doc.go deleted file mode 100644 index 39ef6b10d..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=scheduling.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1beta1" diff --git a/pseudo/k8s/api/scheduling/v1beta1/generated.pb.go b/pseudo/k8s/api/scheduling/v1beta1/generated.pb.go deleted file mode 100644 index 41cf676dc..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/generated.pb.go +++ /dev/null @@ -1,761 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *PriorityClass) Reset() { *m = PriorityClass{} } -func (*PriorityClass) ProtoMessage() {} -func (*PriorityClass) Descriptor() ([]byte, []int) { - return fileDescriptor_6cd406dede2d3f42, []int{0} -} -func (m *PriorityClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PriorityClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClass.Merge(m, src) -} -func (m *PriorityClass) XXX_Size() int { - return m.Size() -} -func (m *PriorityClass) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClass.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClass proto.InternalMessageInfo - -func (m *PriorityClassList) Reset() { *m = PriorityClassList{} } -func (*PriorityClassList) ProtoMessage() {} -func (*PriorityClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_6cd406dede2d3f42, []int{1} -} -func (m *PriorityClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PriorityClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PriorityClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PriorityClassList.Merge(m, src) -} -func (m *PriorityClassList) XXX_Size() int { - return m.Size() -} -func (m *PriorityClassList) XXX_DiscardUnknown() { - xxx_messageInfo_PriorityClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_PriorityClassList proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PriorityClass)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClass") - proto.RegisterType((*PriorityClassList)(nil), "k8s.io.api.scheduling.v1beta1.PriorityClassList") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/scheduling/v1beta1/generated.proto", fileDescriptor_6cd406dede2d3f42) -} - -var fileDescriptor_6cd406dede2d3f42 = []byte{ - // 494 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x3f, 0x8f, 0xd3, 0x30, - 0x18, 0xc6, 0xeb, 0x1e, 0x15, 0xc5, 0x55, 0xa5, 0x12, 0x84, 0x14, 0x55, 0x22, 0xad, 0x7a, 0x4b, - 0x07, 0xce, 0xa6, 0x27, 0x40, 0x48, 0xb7, 0x95, 0x13, 0x08, 0x09, 0x44, 0xc9, 0xc0, 0x80, 0x18, - 0x70, 0x92, 0xf7, 0x52, 0xd3, 0x24, 0x8e, 0x6c, 0x27, 0x52, 0x37, 0x3e, 0x02, 0x1f, 0x8a, 0xa1, - 0xe3, 0x8d, 0x37, 0x55, 0x34, 0x7c, 0x04, 0x36, 0x26, 0x94, 0x34, 0x5c, 0xda, 0x86, 0x7f, 0x5b, - 0xfc, 0x3e, 0xbf, 0xe7, 0xb1, 0xfd, 0x24, 0xc1, 0xcf, 0x16, 0x4f, 0x14, 0xe1, 0x82, 0x2e, 0x12, - 0x07, 0x64, 0x04, 0x1a, 0x14, 0x4d, 0x21, 0xf2, 0x84, 0xa4, 0xa5, 0xc0, 0x62, 0x4e, 0x95, 0x3b, - 0x07, 0x2f, 0x09, 0x78, 0xe4, 0xd3, 0x74, 0xe2, 0x80, 0x66, 0x13, 0xea, 0x43, 0x04, 0x92, 0x69, - 0xf0, 0x48, 0x2c, 0x85, 0x16, 0xc6, 0xbd, 0x2d, 0x4e, 0x58, 0xcc, 0x49, 0x85, 0x93, 0x12, 0xef, - 0x9f, 0xf8, 0x5c, 0xcf, 0x13, 0x87, 0xb8, 0x22, 0xa4, 0xbe, 0xf0, 0x05, 0x2d, 0x5c, 0x4e, 0x72, - 0x51, 0xac, 0x8a, 0x45, 0xf1, 0xb4, 0x4d, 0xeb, 0x8f, 0x76, 0x36, 0x77, 0x85, 0x04, 0x9a, 0xd6, - 0x76, 0xec, 0x3f, 0xac, 0x98, 0x90, 0xb9, 0x73, 0x1e, 0x81, 0x5c, 0xd2, 0x78, 0xe1, 0xe7, 0x03, - 0x45, 0x43, 0xd0, 0xec, 0x77, 0x2e, 0xfa, 0x27, 0x97, 0x4c, 0x22, 0xcd, 0x43, 0xa8, 0x19, 0x1e, - 0xff, 0xcb, 0x90, 0xdf, 0x36, 0x64, 0x87, 0xbe, 0xd1, 0xf7, 0x26, 0xee, 0xce, 0x24, 0x17, 0x92, - 0xeb, 0xe5, 0xd3, 0x80, 0x29, 0x65, 0x7c, 0xc0, 0xed, 0xfc, 0x54, 0x1e, 0xd3, 0xcc, 0x44, 0x43, - 0x34, 0xee, 0x9c, 0x3e, 0x20, 0x55, 0x6b, 0xd7, 0xe1, 0x24, 0x5e, 0xf8, 0xf9, 0x40, 0x91, 0x9c, - 0x26, 0xe9, 0x84, 0xbc, 0x76, 0x3e, 0x82, 0xab, 0x5f, 0x81, 0x66, 0x53, 0x63, 0xb5, 0x1e, 0x34, - 0xb2, 0xf5, 0x00, 0x57, 0x33, 0xfb, 0x3a, 0xd5, 0x38, 0xc6, 0xad, 0x94, 0x05, 0x09, 0x98, 0xcd, - 0x21, 0x1a, 0xb7, 0xa6, 0xdd, 0x12, 0x6e, 0xbd, 0xcd, 0x87, 0xf6, 0x56, 0x33, 0xce, 0x70, 0xd7, - 0x0f, 0x84, 0xc3, 0x82, 0x73, 0xb8, 0x60, 0x49, 0xa0, 0xcd, 0xa3, 0x21, 0x1a, 0xb7, 0xa7, 0x77, - 0x4b, 0xb8, 0xfb, 0x7c, 0x57, 0xb4, 0xf7, 0x59, 0xe3, 0x11, 0xee, 0x78, 0xa0, 0x5c, 0xc9, 0x63, - 0xcd, 0x45, 0x64, 0xde, 0x18, 0xa2, 0xf1, 0xad, 0xe9, 0x9d, 0xd2, 0xda, 0x39, 0xaf, 0x24, 0x7b, - 0x97, 0x33, 0x7c, 0xdc, 0x8b, 0x25, 0x40, 0x58, 0xac, 0x66, 0x22, 0xe0, 0xee, 0xd2, 0x6c, 0x15, - 0xde, 0xb3, 0x6c, 0x3d, 0xe8, 0xcd, 0x0e, 0xb4, 0x1f, 0xeb, 0xc1, 0x71, 0xfd, 0x0b, 0x20, 0x87, - 0x98, 0x5d, 0x0b, 0x1d, 0x7d, 0x41, 0xf8, 0xf6, 0x5e, 0xeb, 0x2f, 0xb9, 0xd2, 0xc6, 0xfb, 0x5a, - 0xf3, 0xe4, 0xff, 0x9a, 0xcf, 0xdd, 0x45, 0xef, 0xbd, 0xf2, 0x8a, 0xed, 0x5f, 0x93, 0x9d, 0xd6, - 0xdf, 0xe0, 0x16, 0xd7, 0x10, 0x2a, 0xb3, 0x39, 0x3c, 0x1a, 0x77, 0x4e, 0xef, 0x93, 0xbf, 0xfe, - 0x0a, 0x64, 0xef, 0x78, 0xd5, 0x3b, 0x7a, 0x91, 0x47, 0xd8, 0xdb, 0xa4, 0xe9, 0xc9, 0x6a, 0x63, - 0x35, 0x2e, 0x37, 0x56, 0xe3, 0x6a, 0x63, 0x35, 0x3e, 0x65, 0x16, 0x5a, 0x65, 0x16, 0xba, 0xcc, - 0x2c, 0x74, 0x95, 0x59, 0xe8, 0x6b, 0x66, 0xa1, 0xcf, 0xdf, 0xac, 0xc6, 0xbb, 0x9b, 0x65, 0xe4, - 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1a, 0xc2, 0xc0, 0x1f, 0xc5, 0x03, 0x00, 0x00, -} - -func (m *PriorityClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PreemptionPolicy != nil { - i -= len(*m.PreemptionPolicy) - copy(dAtA[i:], *m.PreemptionPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PreemptionPolicy))) - i-- - dAtA[i] = 0x2a - } - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 - i-- - if m.GlobalDefault { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i = encodeVarintGenerated(dAtA, i, uint64(m.Value)) - i-- - dAtA[i] = 0x10 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PriorityClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PriorityClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PriorityClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PriorityClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Value)) - n += 2 - l = len(m.Description) - n += 1 + l + sovGenerated(uint64(l)) - if m.PreemptionPolicy != nil { - l = len(*m.PreemptionPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *PriorityClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PriorityClass) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PriorityClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Value:` + fmt.Sprintf("%v", this.Value) + `,`, - `GlobalDefault:` + fmt.Sprintf("%v", this.GlobalDefault) + `,`, - `Description:` + fmt.Sprintf("%v", this.Description) + `,`, - `PreemptionPolicy:` + valueToStringGenerated(this.PreemptionPolicy) + `,`, - `}`, - }, "") - return s -} -func (this *PriorityClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PriorityClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PriorityClass", "PriorityClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PriorityClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PriorityClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GlobalDefault", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GlobalDefault = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreemptionPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.PreemptionPolicy(dAtA[iNdEx:postIndex]) - m.PreemptionPolicy = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PriorityClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PriorityClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PriorityClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PriorityClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/scheduling/v1beta1/generated.proto b/pseudo/k8s/api/scheduling/v1beta1/generated.proto deleted file mode 100644 index 8285dc57d..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/generated.proto +++ /dev/null @@ -1,76 +0,0 @@ -/* -Copyright 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.scheduling.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -message PriorityClass { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // The value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - optional int32 value = 2; - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - optional bool globalDefault = 3; - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - optional string description = 4; - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - optional string preemptionPolicy = 5; -} - -// PriorityClassList is a collection of priority classes. -message PriorityClassList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of PriorityClasses - repeated PriorityClass items = 2; -} - diff --git a/pseudo/k8s/api/scheduling/v1beta1/register.go b/pseudo/k8s/api/scheduling/v1beta1/register.go deleted file mode 100644 index 364d2cb74..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "scheduling.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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &PriorityClass{}, - &PriorityClassList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/scheduling/v1beta1/types.go b/pseudo/k8s/api/scheduling/v1beta1/types.go deleted file mode 100644 index 9b63e2378..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/types.go +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 ( - apiv1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. -// PriorityClass defines mapping from a priority class name to the priority -// integer value. The value can be any valid integer. -type PriorityClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // The value of this priority class. This is the actual priority that pods - // receive when they have the name of this class in their pod spec. - Value int32 `json:"value" protobuf:"bytes,2,opt,name=value"` - - // globalDefault specifies whether this PriorityClass should be considered as - // the default priority for pods that do not have any priority class. - // Only one PriorityClass can be marked as `globalDefault`. However, if more than - // one PriorityClasses exists with their `globalDefault` field set to true, - // the smallest value of such global default PriorityClasses will be used as the default priority. - // +optional - GlobalDefault bool `json:"globalDefault,omitempty" protobuf:"bytes,3,opt,name=globalDefault"` - - // description is an arbitrary string that usually provides guidelines on - // when this priority class should be used. - // +optional - Description string `json:"description,omitempty" protobuf:"bytes,4,opt,name=description"` - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // One of Never, PreemptLowerPriority. - // Defaults to PreemptLowerPriority if unset. - // This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - // +optional - PreemptionPolicy *apiv1.PreemptionPolicy `json:"preemptionPolicy,omitempty" protobuf:"bytes,5,opt,name=preemptionPolicy"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PriorityClassList is a collection of priority classes. -type PriorityClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of PriorityClasses - Items []PriorityClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/scheduling/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/scheduling/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index ffded9df0..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_PriorityClass = map[string]string{ - "": "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "value": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", - "globalDefault": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", - "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", - "preemptionPolicy": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", -} - -func (PriorityClass) SwaggerDoc() map[string]string { - return map_PriorityClass -} - -var map_PriorityClassList = map[string]string{ - "": "PriorityClassList is a collection of priority classes.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of PriorityClasses", -} - -func (PriorityClassList) SwaggerDoc() map[string]string { - return map_PriorityClassList -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/scheduling/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/scheduling/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 64f2a8ef8..000000000 --- a/pseudo/k8s/api/scheduling/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,90 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PriorityClass) DeepCopyInto(out *PriorityClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.PreemptionPolicy != nil { - in, out := &in.PreemptionPolicy, &out.PreemptionPolicy - *out = new(v1.PreemptionPolicy) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClass. -func (in *PriorityClass) DeepCopy() *PriorityClass { - if in == nil { - return nil - } - out := new(PriorityClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PriorityClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PriorityClassList) DeepCopyInto(out *PriorityClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PriorityClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityClassList. -func (in *PriorityClassList) DeepCopy() *PriorityClassList { - if in == nil { - return nil - } - out := new(PriorityClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PriorityClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/api/settings/v1alpha1/doc.go b/pseudo/k8s/api/settings/v1alpha1/doc.go deleted file mode 100644 index 735e6b7f7..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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:protobuf-gen=package -// +k8s:openapi-gen=true - -// +groupName=settings.k8s.io - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/settings/v1alpha1" diff --git a/pseudo/k8s/api/settings/v1alpha1/generated.pb.go b/pseudo/k8s/api/settings/v1alpha1/generated.pb.go deleted file mode 100644 index 9f3b9d42d..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/generated.pb.go +++ /dev/null @@ -1,1079 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/settings/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *PodPreset) Reset() { *m = PodPreset{} } -func (*PodPreset) ProtoMessage() {} -func (*PodPreset) Descriptor() ([]byte, []int) { - return fileDescriptor_48fab0a6ea4b79ce, []int{0} -} -func (m *PodPreset) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodPreset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodPreset) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodPreset.Merge(m, src) -} -func (m *PodPreset) XXX_Size() int { - return m.Size() -} -func (m *PodPreset) XXX_DiscardUnknown() { - xxx_messageInfo_PodPreset.DiscardUnknown(m) -} - -var xxx_messageInfo_PodPreset proto.InternalMessageInfo - -func (m *PodPresetList) Reset() { *m = PodPresetList{} } -func (*PodPresetList) ProtoMessage() {} -func (*PodPresetList) Descriptor() ([]byte, []int) { - return fileDescriptor_48fab0a6ea4b79ce, []int{1} -} -func (m *PodPresetList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodPresetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodPresetList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodPresetList.Merge(m, src) -} -func (m *PodPresetList) XXX_Size() int { - return m.Size() -} -func (m *PodPresetList) XXX_DiscardUnknown() { - xxx_messageInfo_PodPresetList.DiscardUnknown(m) -} - -var xxx_messageInfo_PodPresetList proto.InternalMessageInfo - -func (m *PodPresetSpec) Reset() { *m = PodPresetSpec{} } -func (*PodPresetSpec) ProtoMessage() {} -func (*PodPresetSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_48fab0a6ea4b79ce, []int{2} -} -func (m *PodPresetSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PodPresetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PodPresetSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_PodPresetSpec.Merge(m, src) -} -func (m *PodPresetSpec) XXX_Size() int { - return m.Size() -} -func (m *PodPresetSpec) XXX_DiscardUnknown() { - xxx_messageInfo_PodPresetSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_PodPresetSpec proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PodPreset)(nil), "k8s.io.api.settings.v1alpha1.PodPreset") - proto.RegisterType((*PodPresetList)(nil), "k8s.io.api.settings.v1alpha1.PodPresetList") - proto.RegisterType((*PodPresetSpec)(nil), "k8s.io.api.settings.v1alpha1.PodPresetSpec") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/settings/v1alpha1/generated.proto", fileDescriptor_48fab0a6ea4b79ce) -} - -var fileDescriptor_48fab0a6ea4b79ce = []byte{ - // 542 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x8e, 0xd2, 0x40, - 0x1c, 0xc6, 0xe9, 0xb2, 0x04, 0x1c, 0xd8, 0x68, 0x1a, 0x0f, 0x0d, 0x31, 0x65, 0xe5, 0xe2, 0x26, - 0xc6, 0x19, 0x59, 0x8d, 0xd1, 0x6b, 0x13, 0x4c, 0x4c, 0x20, 0x6e, 0x4a, 0xb2, 0x89, 0xc6, 0x83, - 0x43, 0xf9, 0x5b, 0x2a, 0xb4, 0xd3, 0xcc, 0x4c, 0x9b, 0x78, 0xf3, 0x11, 0x7c, 0x01, 0x9f, 0x44, - 0x1f, 0x80, 0xe3, 0x1e, 0xf7, 0xb4, 0x91, 0xfa, 0x22, 0x66, 0x86, 0x29, 0xa0, 0x88, 0x72, 0x9b, - 0xff, 0x9f, 0xef, 0xfb, 0xcd, 0xf7, 0x31, 0x45, 0xfd, 0xd9, 0x73, 0x81, 0x23, 0x46, 0x66, 0xd9, - 0x18, 0x78, 0x02, 0x12, 0x04, 0xc9, 0x21, 0x99, 0x30, 0x4e, 0xcc, 0x0f, 0x34, 0x8d, 0x88, 0x00, - 0x29, 0xa3, 0x24, 0x14, 0x24, 0xef, 0xd1, 0x79, 0x3a, 0xa5, 0x3d, 0x12, 0x42, 0x02, 0x9c, 0x4a, - 0x98, 0xe0, 0x94, 0x33, 0xc9, 0xec, 0x7b, 0x2b, 0x35, 0xa6, 0x69, 0x84, 0x4b, 0x35, 0x2e, 0xd5, - 0xed, 0x47, 0x61, 0x24, 0xa7, 0xd9, 0x18, 0x07, 0x2c, 0x26, 0x21, 0x0b, 0x19, 0xd1, 0xa6, 0x71, - 0xf6, 0x41, 0x4f, 0x7a, 0xd0, 0xa7, 0x15, 0xac, 0xdd, 0xdd, 0xba, 0x3a, 0x60, 0x1c, 0x48, 0xbe, - 0x73, 0x61, 0xfb, 0xe9, 0x46, 0x13, 0xd3, 0x60, 0x1a, 0x25, 0xc0, 0x3f, 0x91, 0x74, 0x16, 0xaa, - 0x85, 0x20, 0x31, 0x48, 0xfa, 0x37, 0x17, 0xd9, 0xe7, 0xe2, 0x59, 0x22, 0xa3, 0x18, 0x76, 0x0c, - 0xcf, 0xfe, 0x67, 0x10, 0xc1, 0x14, 0x62, 0xfa, 0xa7, 0xaf, 0xfb, 0xdd, 0x42, 0xb7, 0x2e, 0xd8, - 0xe4, 0x82, 0x83, 0x00, 0x69, 0xbf, 0x47, 0x0d, 0x95, 0x68, 0x42, 0x25, 0x75, 0xac, 0x53, 0xeb, - 0xac, 0x79, 0xfe, 0x18, 0x6f, 0xfe, 0xb0, 0x35, 0x18, 0xa7, 0xb3, 0x50, 0x2d, 0x04, 0x56, 0x6a, - 0x9c, 0xf7, 0xf0, 0xeb, 0xf1, 0x47, 0x08, 0xe4, 0x10, 0x24, 0xf5, 0xec, 0xc5, 0x4d, 0xa7, 0x52, - 0xdc, 0x74, 0xd0, 0x66, 0xe7, 0xaf, 0xa9, 0xf6, 0x10, 0x1d, 0x8b, 0x14, 0x02, 0xe7, 0x48, 0xd3, - 0x1f, 0xe2, 0x7f, 0x3d, 0x07, 0x5e, 0x07, 0x1b, 0xa5, 0x10, 0x78, 0x2d, 0x03, 0x3e, 0x56, 0x93, - 0xaf, 0x31, 0xdd, 0x6f, 0x16, 0x3a, 0x59, 0xab, 0x06, 0x91, 0x90, 0xf6, 0xbb, 0x9d, 0x0a, 0xf8, - 0xb0, 0x0a, 0xca, 0xad, 0x0b, 0xdc, 0x31, 0xf7, 0x34, 0xca, 0xcd, 0x56, 0xfc, 0x01, 0xaa, 0x45, - 0x12, 0x62, 0xe1, 0x1c, 0x9d, 0x56, 0xcf, 0x9a, 0xe7, 0x0f, 0x0e, 0xcc, 0xef, 0x9d, 0x18, 0x66, - 0xed, 0x95, 0x72, 0xfb, 0x2b, 0x48, 0xf7, 0x6b, 0x75, 0x2b, 0xbd, 0x6a, 0x65, 0x53, 0xd4, 0x10, - 0x30, 0x87, 0x40, 0x32, 0x6e, 0xd2, 0x3f, 0x39, 0x30, 0x3d, 0x1d, 0xc3, 0x7c, 0x64, 0xac, 0x9b, - 0x0a, 0xe5, 0xc6, 0x5f, 0x63, 0xed, 0x17, 0xa8, 0x0a, 0x49, 0x6e, 0x0a, 0xb4, 0xb7, 0x0b, 0xa8, - 0x4f, 0x58, 0xb1, 0xfa, 0x49, 0x7e, 0x49, 0xb9, 0xd7, 0x34, 0x90, 0x6a, 0x3f, 0xc9, 0x7d, 0xe5, - 0xb1, 0x07, 0xa8, 0x0e, 0x49, 0xfe, 0x92, 0xb3, 0xd8, 0xa9, 0x6a, 0xfb, 0xfd, 0x3d, 0x76, 0x25, - 0x19, 0xb1, 0x8c, 0x07, 0xe0, 0xdd, 0x36, 0x94, 0xba, 0x59, 0xfb, 0x25, 0xc2, 0xee, 0xa3, 0x7a, - 0xce, 0xe6, 0x59, 0x0c, 0xc2, 0x39, 0xde, 0x1f, 0xe6, 0x52, 0x4b, 0x36, 0x98, 0xd5, 0x2c, 0xfc, - 0xd2, 0x6b, 0xbf, 0x41, 0xad, 0xd5, 0x71, 0xc8, 0xb2, 0x44, 0x0a, 0xa7, 0xa6, 0x59, 0x9d, 0xfd, - 0x2c, 0xad, 0xf3, 0xee, 0x1a, 0x60, 0x6b, 0x6b, 0x29, 0xfc, 0xdf, 0x50, 0x1e, 0x5e, 0x2c, 0xdd, - 0xca, 0xd5, 0xd2, 0xad, 0x5c, 0x2f, 0xdd, 0xca, 0xe7, 0xc2, 0xb5, 0x16, 0x85, 0x6b, 0x5d, 0x15, - 0xae, 0x75, 0x5d, 0xb8, 0xd6, 0x8f, 0xc2, 0xb5, 0xbe, 0xfc, 0x74, 0x2b, 0x6f, 0x1b, 0xe5, 0x7b, - 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x46, 0x15, 0xf2, 0x97, 0xa4, 0x04, 0x00, 0x00, -} - -func (m *PodPreset) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodPreset) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodPreset) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodPresetList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodPresetList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodPresetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PodPresetSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PodPresetSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PodPresetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VolumeMounts) > 0 { - for iNdEx := len(m.VolumeMounts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.VolumeMounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.Volumes) > 0 { - for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.EnvFrom) > 0 { - for iNdEx := len(m.EnvFrom) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.EnvFrom[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Env) > 0 { - for iNdEx := len(m.Env) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Env[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PodPreset) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PodPresetList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *PodPresetSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Selector.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Env) > 0 { - for _, e := range m.Env { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.EnvFrom) > 0 { - for _, e := range m.EnvFrom { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Volumes) > 0 { - for _, e := range m.Volumes { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.VolumeMounts) > 0 { - for _, e := range m.VolumeMounts { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PodPreset) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PodPreset{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodPresetSpec", "PodPresetSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PodPresetList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PodPreset{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PodPreset", "PodPreset", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PodPresetList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *PodPresetSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForEnv := "[]EnvVar{" - for _, f := range this.Env { - repeatedStringForEnv += fmt.Sprintf("%v", f) + "," - } - repeatedStringForEnv += "}" - repeatedStringForEnvFrom := "[]EnvFromSource{" - for _, f := range this.EnvFrom { - repeatedStringForEnvFrom += fmt.Sprintf("%v", f) + "," - } - repeatedStringForEnvFrom += "}" - repeatedStringForVolumes := "[]Volume{" - for _, f := range this.Volumes { - repeatedStringForVolumes += fmt.Sprintf("%v", f) + "," - } - repeatedStringForVolumes += "}" - repeatedStringForVolumeMounts := "[]VolumeMount{" - for _, f := range this.VolumeMounts { - repeatedStringForVolumeMounts += fmt.Sprintf("%v", f) + "," - } - repeatedStringForVolumeMounts += "}" - s := strings.Join([]string{`&PodPresetSpec{`, - `Selector:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1), `&`, ``, 1) + `,`, - `Env:` + repeatedStringForEnv + `,`, - `EnvFrom:` + repeatedStringForEnvFrom + `,`, - `Volumes:` + repeatedStringForVolumes + `,`, - `VolumeMounts:` + repeatedStringForVolumeMounts + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PodPreset) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodPreset: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodPreset: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodPresetList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodPresetList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodPresetList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PodPreset{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PodPresetSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PodPresetSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PodPresetSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Env = append(m.Env, v11.EnvVar{}) - if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EnvFrom = append(m.EnvFrom, v11.EnvFromSource{}) - if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Volumes = append(m.Volumes, v11.Volume{}) - if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeMounts = append(m.VolumeMounts, v11.VolumeMount{}) - if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/settings/v1alpha1/generated.proto b/pseudo/k8s/api/settings/v1alpha1/generated.proto deleted file mode 100644 index 3b30d2f5c..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/generated.proto +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 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.settings.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// PodPreset is a policy resource that defines additional runtime -// requirements for a Pod. -message PodPreset { - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // +optional - optional PodPresetSpec spec = 2; -} - -// PodPresetList is a list of PodPreset objects. -message PodPresetList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is a list of schema objects. - repeated PodPreset items = 2; -} - -// PodPresetSpec is a description of a pod preset. -message PodPresetSpec { - // Selector is a label query over a set of resources, in this case pods. - // Required. - optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; - - // Env defines the collection of EnvVar to inject into containers. - // +optional - repeated k8s.io.api.core.v1.EnvVar env = 2; - - // EnvFrom defines the collection of EnvFromSource to inject into containers. - // +optional - repeated k8s.io.api.core.v1.EnvFromSource envFrom = 3; - - // Volumes defines the collection of Volume to inject into the pod. - // +optional - repeated k8s.io.api.core.v1.Volume volumes = 4; - - // VolumeMounts defines the collection of VolumeMount to inject into containers. - // +optional - repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 5; -} - diff --git a/pseudo/k8s/api/settings/v1alpha1/register.go b/pseudo/k8s/api/settings/v1alpha1/register.go deleted file mode 100644 index 6d50c5dfd..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/register.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "settings.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &PodPreset{}, - &PodPresetList{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/settings/v1alpha1/types.go b/pseudo/k8s/api/settings/v1alpha1/types.go deleted file mode 100644 index e63a2657d..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/types.go +++ /dev/null @@ -1,70 +0,0 @@ -/* -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 v1alpha1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodPreset is a policy resource that defines additional runtime -// requirements for a Pod. -type PodPreset struct { - metav1.TypeMeta `json:",inline"` - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // +optional - Spec PodPresetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` -} - -// PodPresetSpec is a description of a pod preset. -type PodPresetSpec struct { - // Selector is a label query over a set of resources, in this case pods. - // Required. - Selector metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` - - // Env defines the collection of EnvVar to inject into containers. - // +optional - Env []v1.EnvVar `json:"env,omitempty" protobuf:"bytes,2,rep,name=env"` - // EnvFrom defines the collection of EnvFromSource to inject into containers. - // +optional - EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,3,rep,name=envFrom"` - // Volumes defines the collection of Volume to inject into the pod. - // +optional - Volumes []v1.Volume `json:"volumes,omitempty" protobuf:"bytes,4,rep,name=volumes"` - // VolumeMounts defines the collection of VolumeMount to inject into containers. - // +optional - VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,5,rep,name=volumeMounts"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// PodPresetList is a list of PodPreset objects. -type PodPresetList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is a list of schema objects. - Items []PodPreset `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/settings/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/settings/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 0501e0af3..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_PodPreset = map[string]string{ - "": "PodPreset is a policy resource that defines additional runtime requirements for a Pod.", -} - -func (PodPreset) SwaggerDoc() map[string]string { - return map_PodPreset -} - -var map_PodPresetList = map[string]string{ - "": "PodPresetList is a list of PodPreset objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is a list of schema objects.", -} - -func (PodPresetList) SwaggerDoc() map[string]string { - return map_PodPresetList -} - -var map_PodPresetSpec = map[string]string{ - "": "PodPresetSpec is a description of a pod preset.", - "selector": "Selector is a label query over a set of resources, in this case pods. Required.", - "env": "Env defines the collection of EnvVar to inject into containers.", - "envFrom": "EnvFrom defines the collection of EnvFromSource to inject into containers.", - "volumes": "Volumes defines the collection of Volume to inject into the pod.", - "volumeMounts": "VolumeMounts defines the collection of VolumeMount to inject into containers.", -} - -func (PodPresetSpec) SwaggerDoc() map[string]string { - return map_PodPresetSpec -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/settings/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/settings/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index b5a2838d8..000000000 --- a/pseudo/k8s/api/settings/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,131 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodPreset) DeepCopyInto(out *PodPreset) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPreset. -func (in *PodPreset) DeepCopy() *PodPreset { - if in == nil { - return nil - } - out := new(PodPreset) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodPreset) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodPresetList) DeepCopyInto(out *PodPresetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PodPreset, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetList. -func (in *PodPresetList) DeepCopy() *PodPresetList { - if in == nil { - return nil - } - out := new(PodPresetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodPresetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodPresetSpec) DeepCopyInto(out *PodPresetSpec) { - *out = *in - in.Selector.DeepCopyInto(&out.Selector) - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]v1.EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]v1.EnvFromSource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]v1.Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]v1.VolumeMount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetSpec. -func (in *PodPresetSpec) DeepCopy() *PodPresetSpec { - if in == nil { - return nil - } - out := new(PodPresetSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/storage/v1/doc.go b/pseudo/k8s/api/storage/v1/doc.go deleted file mode 100644 index 8011b3372..000000000 --- a/pseudo/k8s/api/storage/v1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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:protobuf-gen=package -// +groupName=storage.k8s.io -// +k8s:openapi-gen=true - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1" diff --git a/pseudo/k8s/api/storage/v1/generated.pb.go b/pseudo/k8s/api/storage/v1/generated.pb.go deleted file mode 100644 index f9d23facf..000000000 --- a/pseudo/k8s/api/storage/v1/generated.pb.go +++ /dev/null @@ -1,2699 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *StorageClass) Reset() { *m = StorageClass{} } -func (*StorageClass) ProtoMessage() {} -func (*StorageClass) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{0} -} -func (m *StorageClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StorageClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageClass.Merge(m, src) -} -func (m *StorageClass) XXX_Size() int { - return m.Size() -} -func (m *StorageClass) XXX_DiscardUnknown() { - xxx_messageInfo_StorageClass.DiscardUnknown(m) -} - -var xxx_messageInfo_StorageClass proto.InternalMessageInfo - -func (m *StorageClassList) Reset() { *m = StorageClassList{} } -func (*StorageClassList) ProtoMessage() {} -func (*StorageClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{1} -} -func (m *StorageClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StorageClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageClassList.Merge(m, src) -} -func (m *StorageClassList) XXX_Size() int { - return m.Size() -} -func (m *StorageClassList) XXX_DiscardUnknown() { - xxx_messageInfo_StorageClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_StorageClassList proto.InternalMessageInfo - -func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} } -func (*VolumeAttachment) ProtoMessage() {} -func (*VolumeAttachment) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{2} -} -func (m *VolumeAttachment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachment) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachment.Merge(m, src) -} -func (m *VolumeAttachment) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachment) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachment.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachment proto.InternalMessageInfo - -func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} } -func (*VolumeAttachmentList) ProtoMessage() {} -func (*VolumeAttachmentList) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{3} -} -func (m *VolumeAttachmentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentList.Merge(m, src) -} -func (m *VolumeAttachmentList) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentList) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentList.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentList proto.InternalMessageInfo - -func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} } -func (*VolumeAttachmentSource) ProtoMessage() {} -func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{4} -} -func (m *VolumeAttachmentSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentSource.Merge(m, src) -} -func (m *VolumeAttachmentSource) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentSource) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentSource.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentSource proto.InternalMessageInfo - -func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} } -func (*VolumeAttachmentSpec) ProtoMessage() {} -func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{5} -} -func (m *VolumeAttachmentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentSpec.Merge(m, src) -} -func (m *VolumeAttachmentSpec) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentSpec proto.InternalMessageInfo - -func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} } -func (*VolumeAttachmentStatus) ProtoMessage() {} -func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{6} -} -func (m *VolumeAttachmentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentStatus.Merge(m, src) -} -func (m *VolumeAttachmentStatus) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentStatus proto.InternalMessageInfo - -func (m *VolumeError) Reset() { *m = VolumeError{} } -func (*VolumeError) ProtoMessage() {} -func (*VolumeError) Descriptor() ([]byte, []int) { - return fileDescriptor_3b530c1983504d8d, []int{7} -} -func (m *VolumeError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeError) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeError.Merge(m, src) -} -func (m *VolumeError) XXX_Size() int { - return m.Size() -} -func (m *VolumeError) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeError.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeError proto.InternalMessageInfo - -func init() { - proto.RegisterType((*StorageClass)(nil), "k8s.io.api.storage.v1.StorageClass") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1.StorageClass.ParametersEntry") - proto.RegisterType((*StorageClassList)(nil), "k8s.io.api.storage.v1.StorageClassList") - proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1.VolumeAttachment") - proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1.VolumeAttachmentList") - proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1.VolumeAttachmentSource") - proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1.VolumeAttachmentSpec") - proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1.VolumeAttachmentStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1.VolumeAttachmentStatus.AttachmentMetadataEntry") - proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1.VolumeError") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1/generated.proto", fileDescriptor_3b530c1983504d8d) -} - -var fileDescriptor_3b530c1983504d8d = []byte{ - // 1018 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x3d, 0x6f, 0x23, 0xc5, - 0x1b, 0xcf, 0xc6, 0x79, 0x71, 0xc6, 0xc9, 0xff, 0x9c, 0xf9, 0x07, 0x30, 0x2e, 0xec, 0xc8, 0x14, - 0x98, 0x83, 0xdb, 0xbd, 0x84, 0x03, 0x9d, 0x90, 0x40, 0xf2, 0x82, 0x25, 0x4e, 0x8a, 0xef, 0xa2, - 0x49, 0x38, 0x21, 0x44, 0xc1, 0x64, 0xf7, 0x61, 0xb3, 0x67, 0xef, 0xce, 0x32, 0x33, 0x36, 0xa4, - 0xa3, 0xa2, 0x43, 0x82, 0x96, 0x8f, 0x42, 0x49, 0x15, 0xba, 0x13, 0xd5, 0x55, 0x16, 0x59, 0x6a, - 0xbe, 0x40, 0x2a, 0x34, 0xb3, 0x13, 0x7b, 0x63, 0x6f, 0xc0, 0x69, 0xae, 0xf3, 0xf3, 0xf2, 0xfb, - 0x3d, 0xef, 0xb3, 0x46, 0x1f, 0xf5, 0x1f, 0x0a, 0x3b, 0x64, 0x4e, 0x7f, 0x78, 0x02, 0x3c, 0x06, - 0x09, 0xc2, 0x19, 0x41, 0xec, 0x33, 0xee, 0x18, 0x03, 0x4d, 0x42, 0x47, 0x48, 0xc6, 0x69, 0x00, - 0xce, 0x68, 0xcf, 0x09, 0x20, 0x06, 0x4e, 0x25, 0xf8, 0x76, 0xc2, 0x99, 0x64, 0xf8, 0x95, 0xcc, - 0xcd, 0xa6, 0x49, 0x68, 0x1b, 0x37, 0x7b, 0xb4, 0x57, 0xbf, 0x17, 0x84, 0xf2, 0x74, 0x78, 0x62, - 0x7b, 0x2c, 0x72, 0x02, 0x16, 0x30, 0x47, 0x7b, 0x9f, 0x0c, 0xbf, 0xd6, 0x92, 0x16, 0xf4, 0xaf, - 0x8c, 0xa5, 0xde, 0xca, 0x05, 0xf3, 0x18, 0x2f, 0x8a, 0x54, 0x7f, 0x30, 0xf5, 0x89, 0xa8, 0x77, - 0x1a, 0xc6, 0xc0, 0xcf, 0x9c, 0xa4, 0x1f, 0x28, 0x85, 0x70, 0x22, 0x90, 0xb4, 0x08, 0xe5, 0xdc, - 0x84, 0xe2, 0xc3, 0x58, 0x86, 0x11, 0xcc, 0x01, 0xde, 0xff, 0x2f, 0x80, 0xf0, 0x4e, 0x21, 0xa2, - 0xb3, 0xb8, 0xd6, 0x8f, 0x6b, 0x68, 0xf3, 0x28, 0x6b, 0xc0, 0xc7, 0x03, 0x2a, 0x04, 0xfe, 0x0a, - 0x95, 0x55, 0x52, 0x3e, 0x95, 0xb4, 0x66, 0xed, 0x5a, 0xed, 0xca, 0xfe, 0x7d, 0x7b, 0xda, 0xac, - 0x09, 0xb7, 0x9d, 0xf4, 0x03, 0xa5, 0x10, 0xb6, 0xf2, 0xb6, 0x47, 0x7b, 0xf6, 0x93, 0x93, 0x67, - 0xe0, 0xc9, 0x1e, 0x48, 0xea, 0xe2, 0xf3, 0x71, 0x73, 0x29, 0x1d, 0x37, 0xd1, 0x54, 0x47, 0x26, - 0xac, 0xf8, 0x3d, 0x54, 0x49, 0x38, 0x1b, 0x85, 0x22, 0x64, 0x31, 0xf0, 0xda, 0xf2, 0xae, 0xd5, - 0xde, 0x70, 0xff, 0x6f, 0x20, 0x95, 0xc3, 0xa9, 0x89, 0xe4, 0xfd, 0x70, 0x80, 0x50, 0x42, 0x39, - 0x8d, 0x40, 0x02, 0x17, 0xb5, 0xd2, 0x6e, 0xa9, 0x5d, 0xd9, 0x7f, 0xd7, 0x2e, 0x9c, 0xa3, 0x9d, - 0xaf, 0xc8, 0x3e, 0x9c, 0xa0, 0xba, 0xb1, 0xe4, 0x67, 0xd3, 0xec, 0xa6, 0x06, 0x92, 0xa3, 0xc6, - 0x7d, 0xb4, 0xc5, 0xc1, 0x1b, 0xd0, 0x30, 0x3a, 0x64, 0x83, 0xd0, 0x3b, 0xab, 0xad, 0xe8, 0x0c, - 0xbb, 0xe9, 0xb8, 0xb9, 0x45, 0xf2, 0x86, 0xcb, 0x71, 0xf3, 0xfe, 0xfc, 0x06, 0xd8, 0x87, 0xc0, - 0x45, 0x28, 0x24, 0xc4, 0xf2, 0x29, 0x1b, 0x0c, 0x23, 0xb8, 0x86, 0x21, 0xd7, 0xb9, 0xf1, 0x03, - 0xb4, 0x19, 0xb1, 0x61, 0x2c, 0x9f, 0x24, 0x32, 0x64, 0xb1, 0xa8, 0xad, 0xee, 0x96, 0xda, 0x1b, - 0x6e, 0x35, 0x1d, 0x37, 0x37, 0x7b, 0x39, 0x3d, 0xb9, 0xe6, 0x85, 0x0f, 0xd0, 0x0e, 0x1d, 0x0c, - 0xd8, 0xb7, 0x59, 0x80, 0xee, 0x77, 0x09, 0x8d, 0x55, 0x97, 0x6a, 0x6b, 0xbb, 0x56, 0xbb, 0xec, - 0xd6, 0xd2, 0x71, 0x73, 0xa7, 0x53, 0x60, 0x27, 0x85, 0x28, 0xfc, 0x39, 0xda, 0x1e, 0x69, 0x95, - 0x1b, 0xc6, 0x7e, 0x18, 0x07, 0x3d, 0xe6, 0x43, 0x6d, 0x5d, 0x17, 0x7d, 0x37, 0x1d, 0x37, 0xb7, - 0x9f, 0xce, 0x1a, 0x2f, 0x8b, 0x94, 0x64, 0x9e, 0x04, 0x7f, 0x83, 0xb6, 0x75, 0x44, 0xf0, 0x8f, - 0x59, 0xc2, 0x06, 0x2c, 0x08, 0x41, 0xd4, 0xca, 0x7a, 0x74, 0xed, 0xfc, 0xe8, 0x54, 0xeb, 0xd4, - 0xdc, 0x8c, 0xd7, 0xd9, 0x11, 0x0c, 0xc0, 0x93, 0x8c, 0x1f, 0x03, 0x8f, 0xdc, 0xd7, 0xcd, 0xbc, - 0xb6, 0x3b, 0xb3, 0x54, 0x64, 0x9e, 0xbd, 0xfe, 0x21, 0xba, 0x33, 0x33, 0x70, 0x5c, 0x45, 0xa5, - 0x3e, 0x9c, 0xe9, 0x6d, 0xde, 0x20, 0xea, 0x27, 0xde, 0x41, 0xab, 0x23, 0x3a, 0x18, 0x42, 0xb6, - 0x7c, 0x24, 0x13, 0x3e, 0x58, 0x7e, 0x68, 0xb5, 0x7e, 0xb5, 0x50, 0x35, 0xbf, 0x3d, 0x07, 0xa1, - 0x90, 0xf8, 0xcb, 0xb9, 0x9b, 0xb0, 0x17, 0xbb, 0x09, 0x85, 0xd6, 0x17, 0x51, 0x35, 0x35, 0x94, - 0xaf, 0x34, 0xb9, 0x7b, 0xf8, 0x14, 0xad, 0x86, 0x12, 0x22, 0x51, 0x5b, 0xd6, 0x8d, 0x79, 0x63, - 0x81, 0x9d, 0x76, 0xb7, 0x0c, 0xdf, 0xea, 0x23, 0x85, 0x24, 0x19, 0x41, 0xeb, 0x97, 0x65, 0x54, - 0xcd, 0xe6, 0xd2, 0x91, 0x92, 0x7a, 0xa7, 0x11, 0xc4, 0xf2, 0x25, 0x1c, 0x74, 0x0f, 0xad, 0x88, - 0x04, 0x3c, 0xdd, 0xcc, 0xca, 0xfe, 0xdb, 0x37, 0xe4, 0x3f, 0x9b, 0xd8, 0x51, 0x02, 0x9e, 0xbb, - 0x69, 0x88, 0x57, 0x94, 0x44, 0x34, 0x0d, 0xfe, 0x0c, 0xad, 0x09, 0x49, 0xe5, 0x50, 0x1d, 0xb9, - 0x22, 0xbc, 0xb7, 0x28, 0xa1, 0x06, 0xb9, 0xff, 0x33, 0x94, 0x6b, 0x99, 0x4c, 0x0c, 0x59, 0xeb, - 0x37, 0x0b, 0xed, 0xcc, 0x42, 0x5e, 0xc2, 0x74, 0x0f, 0xae, 0x4f, 0xf7, 0xcd, 0x05, 0x8b, 0xb9, - 0x61, 0xc2, 0x7f, 0x58, 0xe8, 0xd5, 0xb9, 0xba, 0xd9, 0x90, 0x7b, 0xa0, 0xde, 0x84, 0x64, 0xe6, - 0xe5, 0x79, 0x4c, 0x23, 0xc8, 0xd6, 0x3e, 0x7b, 0x13, 0x0e, 0x0b, 0xec, 0xa4, 0x10, 0x85, 0x9f, - 0xa1, 0x6a, 0x18, 0x0f, 0xc2, 0x18, 0x32, 0xdd, 0xd1, 0x74, 0xbe, 0x85, 0x87, 0x3b, 0xcb, 0xac, - 0x87, 0xbb, 0x93, 0x8e, 0x9b, 0xd5, 0x47, 0x33, 0x2c, 0x64, 0x8e, 0xb7, 0xf5, 0x7b, 0xc1, 0x64, - 0x94, 0x01, 0xbf, 0x83, 0xca, 0x54, 0x6b, 0x80, 0x9b, 0x32, 0x26, 0x9d, 0xee, 0x18, 0x3d, 0x99, - 0x78, 0xe8, 0xbd, 0xd1, 0xad, 0x30, 0x89, 0x2e, 0xbc, 0x37, 0x1a, 0x94, 0xdb, 0x1b, 0x2d, 0x13, - 0x43, 0xa6, 0x92, 0x88, 0x99, 0x9f, 0xf5, 0xb2, 0x74, 0x3d, 0x89, 0xc7, 0x46, 0x4f, 0x26, 0x1e, - 0xad, 0xbf, 0x4b, 0x05, 0x03, 0xd2, 0x0b, 0x98, 0xab, 0xc6, 0xd7, 0xd5, 0x94, 0xe7, 0xaa, 0xf1, - 0x27, 0xd5, 0xf8, 0xf8, 0x67, 0x0b, 0x61, 0x3a, 0xa1, 0xe8, 0x5d, 0x2d, 0x68, 0xb6, 0x45, 0xdd, - 0x5b, 0x9d, 0x84, 0xdd, 0x99, 0xe3, 0xc9, 0xbe, 0x84, 0x75, 0x13, 0x1f, 0xcf, 0x3b, 0x90, 0x82, - 0xe0, 0xd8, 0x47, 0x95, 0x4c, 0xdb, 0xe5, 0x9c, 0x71, 0x73, 0x9e, 0xad, 0x7f, 0xcd, 0x45, 0x7b, - 0xba, 0x0d, 0xf5, 0x65, 0xef, 0x4c, 0xa1, 0x97, 0xe3, 0x66, 0x25, 0x67, 0x27, 0x79, 0x5a, 0x15, - 0xc5, 0x87, 0x69, 0x94, 0x95, 0xdb, 0x45, 0xf9, 0x04, 0x6e, 0x8e, 0x92, 0xa3, 0xad, 0x77, 0xd1, - 0x6b, 0x37, 0xb4, 0xe5, 0x56, 0xdf, 0x8b, 0x1f, 0x2c, 0x94, 0x8f, 0x81, 0x0f, 0xd0, 0x8a, 0xfa, - 0xbb, 0x65, 0x1e, 0x92, 0xbb, 0x8b, 0x3d, 0x24, 0xc7, 0x61, 0x04, 0xd3, 0xa7, 0x50, 0x49, 0x44, - 0xb3, 0xe0, 0xb7, 0xd0, 0x7a, 0x04, 0x42, 0xd0, 0xc0, 0x44, 0x76, 0xef, 0x18, 0xa7, 0xf5, 0x5e, - 0xa6, 0x26, 0x57, 0x76, 0xb7, 0x7d, 0x7e, 0xd1, 0x58, 0x7a, 0x7e, 0xd1, 0x58, 0x7a, 0x71, 0xd1, - 0x58, 0xfa, 0x3e, 0x6d, 0x58, 0xe7, 0x69, 0xc3, 0x7a, 0x9e, 0x36, 0xac, 0x17, 0x69, 0xc3, 0xfa, - 0x33, 0x6d, 0x58, 0x3f, 0xfd, 0xd5, 0x58, 0xfa, 0x62, 0x79, 0xb4, 0xf7, 0x4f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xe2, 0xd4, 0x42, 0x3d, 0x3c, 0x0b, 0x00, 0x00, -} - -func (m *StorageClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StorageClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AllowedTopologies) > 0 { - for iNdEx := len(m.AllowedTopologies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedTopologies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - if m.VolumeBindingMode != nil { - i -= len(*m.VolumeBindingMode) - copy(dAtA[i:], *m.VolumeBindingMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeBindingMode))) - i-- - dAtA[i] = 0x3a - } - if m.AllowVolumeExpansion != nil { - i-- - if *m.AllowVolumeExpansion { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(m.MountOptions) > 0 { - for iNdEx := len(m.MountOptions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.MountOptions[iNdEx]) - copy(dAtA[i:], m.MountOptions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MountOptions[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.ReclaimPolicy != nil { - i -= len(*m.ReclaimPolicy) - copy(dAtA[i:], *m.ReclaimPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReclaimPolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Parameters) > 0 { - keysForParameters := make([]string, 0, len(m.Parameters)) - for k := range m.Parameters { - keysForParameters = append(keysForParameters, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForParameters) - for iNdEx := len(keysForParameters) - 1; iNdEx >= 0; iNdEx-- { - v := m.Parameters[string(keysForParameters[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForParameters[iNdEx]) - copy(dAtA[i:], keysForParameters[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForParameters[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Provisioner) - copy(dAtA[i:], m.Provisioner) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provisioner))) - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StorageClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StorageClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InlineVolumeSpec != nil { - { - size, err := m.InlineVolumeSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PersistentVolumeName != nil { - i -= len(*m.PersistentVolumeName) - copy(dAtA[i:], *m.PersistentVolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x1a - { - size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Attacher) - copy(dAtA[i:], m.Attacher) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DetachError != nil { - { - size, err := m.DetachError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.AttachError != nil { - { - size, err := m.AttachError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.AttachmentMetadata) > 0 { - keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata)) - for k := range m.AttachmentMetadata { - keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) - for iNdEx := len(keysForAttachmentMetadata) - 1; iNdEx >= 0; iNdEx-- { - v := m.AttachmentMetadata[string(keysForAttachmentMetadata[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAttachmentMetadata[iNdEx]) - copy(dAtA[i:], keysForAttachmentMetadata[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAttachmentMetadata[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i-- - if m.Attached { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *VolumeError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *StorageClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Provisioner) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Parameters) > 0 { - for k, v := range m.Parameters { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.ReclaimPolicy != nil { - l = len(*m.ReclaimPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.MountOptions) > 0 { - for _, s := range m.MountOptions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AllowVolumeExpansion != nil { - n += 2 - } - if m.VolumeBindingMode != nil { - l = len(*m.VolumeBindingMode) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.AllowedTopologies) > 0 { - for _, e := range m.AllowedTopologies { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StorageClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *VolumeAttachment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeAttachmentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *VolumeAttachmentSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PersistentVolumeName != nil { - l = len(*m.PersistentVolumeName) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.InlineVolumeSpec != nil { - l = m.InlineVolumeSpec.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeAttachmentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Attacher) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Source.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NodeName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeAttachmentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - if len(m.AttachmentMetadata) > 0 { - for k, v := range m.AttachmentMetadata { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.AttachError != nil { - l = m.AttachError.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DetachError != nil { - l = m.DetachError.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Time.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *StorageClass) String() string { - if this == nil { - return "nil" - } - repeatedStringForAllowedTopologies := "[]TopologySelectorTerm{" - for _, f := range this.AllowedTopologies { - repeatedStringForAllowedTopologies += fmt.Sprintf("%v", f) + "," - } - repeatedStringForAllowedTopologies += "}" - keysForParameters := make([]string, 0, len(this.Parameters)) - for k := range this.Parameters { - keysForParameters = append(keysForParameters, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForParameters) - mapStringForParameters := "map[string]string{" - for _, k := range keysForParameters { - mapStringForParameters += fmt.Sprintf("%v: %v,", k, this.Parameters[k]) - } - mapStringForParameters += "}" - s := strings.Join([]string{`&StorageClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Provisioner:` + fmt.Sprintf("%v", this.Provisioner) + `,`, - `Parameters:` + mapStringForParameters + `,`, - `ReclaimPolicy:` + valueToStringGenerated(this.ReclaimPolicy) + `,`, - `MountOptions:` + fmt.Sprintf("%v", this.MountOptions) + `,`, - `AllowVolumeExpansion:` + valueToStringGenerated(this.AllowVolumeExpansion) + `,`, - `VolumeBindingMode:` + valueToStringGenerated(this.VolumeBindingMode) + `,`, - `AllowedTopologies:` + repeatedStringForAllowedTopologies + `,`, - `}`, - }, "") - return s -} -func (this *StorageClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]StorageClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StorageClass", "StorageClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&StorageClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]VolumeAttachment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&VolumeAttachmentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachmentSource{`, - `PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`, - `InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "v11.PersistentVolumeSpec", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachmentSpec{`, - `Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`, - `Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`, - `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentStatus) String() string { - if this == nil { - return "nil" - } - keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata)) - for k := range this.AttachmentMetadata { - keysForAttachmentMetadata = append(keysForAttachmentMetadata, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) - mapStringForAttachmentMetadata := "map[string]string{" - for _, k := range keysForAttachmentMetadata { - mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k]) - } - mapStringForAttachmentMetadata += "}" - s := strings.Join([]string{`&VolumeAttachmentStatus{`, - `Attached:` + fmt.Sprintf("%v", this.Attached) + `,`, - `AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`, - `AttachError:` + strings.Replace(this.AttachError.String(), "VolumeError", "VolumeError", 1) + `,`, - `DetachError:` + strings.Replace(this.DetachError.String(), "VolumeError", "VolumeError", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeError{`, - `Time:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *StorageClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StorageClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StorageClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Provisioner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Provisioner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Parameters == nil { - m.Parameters = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Parameters[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReclaimPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.PersistentVolumeReclaimPolicy(dAtA[iNdEx:postIndex]) - m.ReclaimPolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MountOptions = append(m.MountOptions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowVolumeExpansion", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AllowVolumeExpansion = &b - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeBindingMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := VolumeBindingMode(dAtA[iNdEx:postIndex]) - m.VolumeBindingMode = &s - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedTopologies", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedTopologies = append(m.AllowedTopologies, v11.TopologySelectorTerm{}) - if err := m.AllowedTopologies[len(m.AllowedTopologies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StorageClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StorageClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StorageClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, StorageClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, VolumeAttachment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.PersistentVolumeName = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InlineVolumeSpec == nil { - m.InlineVolumeSpec = &v11.PersistentVolumeSpec{} - } - if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attacher = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Attached = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AttachmentMetadata == nil { - m.AttachmentMetadata = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AttachmentMetadata[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AttachError == nil { - m.AttachError = &VolumeError{} - } - if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DetachError == nil { - m.DetachError = &VolumeError{} - } - if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/storage/v1/generated.proto b/pseudo/k8s/api/storage/v1/generated.proto deleted file mode 100644 index 934eeadc0..000000000 --- a/pseudo/k8s/api/storage/v1/generated.proto +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 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.storage.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// StorageClass describes the parameters for a class of storage for -// which PersistentVolumes can be dynamically provisioned. -// -// StorageClasses are non-namespaced; the name of the storage class -// according to etcd is in ObjectMeta.Name. -message StorageClass { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Provisioner indicates the type of the provisioner. - optional string provisioner = 2; - - // Parameters holds the parameters for the provisioner that should - // create volumes of this storage class. - // +optional - map parameters = 3; - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with this reclaimPolicy. Defaults to Delete. - // +optional - optional string reclaimPolicy = 4; - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with these mountOptions, e.g. ["ro", "soft"]. Not validated - - // mount of the PVs will simply fail if one is invalid. - // +optional - repeated string mountOptions = 5; - - // AllowVolumeExpansion shows whether the storage class allow volume expand - // +optional - optional bool allowVolumeExpansion = 6; - - // VolumeBindingMode indicates how PersistentVolumeClaims should be - // provisioned and bound. When unset, VolumeBindingImmediate is used. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - optional string volumeBindingMode = 7; - - // Restrict the node topologies where volumes can be dynamically provisioned. - // Each volume plugin defines its own supported topology specifications. - // An empty TopologySelectorTerm list means there is no topology restriction. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - repeated k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; -} - -// StorageClassList is a collection of storage classes. -message StorageClassList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of StorageClasses - repeated StorageClass items = 2; -} - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -message VolumeAttachment { - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - optional VolumeAttachmentSpec spec = 2; - - // Status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - optional VolumeAttachmentStatus status = 3; -} - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -message VolumeAttachmentList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of VolumeAttachments - repeated VolumeAttachment items = 2; -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -message VolumeAttachmentSource { - // Name of the persistent volume to attach. - // +optional - optional string persistentVolumeName = 1; - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - optional k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -message VolumeAttachmentSpec { - // Attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - optional string attacher = 1; - - // Source represents the volume that should be attached. - optional VolumeAttachmentSource source = 2; - - // The node that the volume should be attached to. - optional string nodeName = 3; -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -message VolumeAttachmentStatus { - // Indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - optional bool attached = 1; - - // Upon successful attach, this field is populated with any - // information returned by the attach operation that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - map attachmentMetadata = 2; - - // The last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - optional VolumeError attachError = 3; - - // The last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - optional VolumeError detachError = 4; -} - -// VolumeError captures an error encountered during a volume operation. -message VolumeError { - // Time the error was encountered. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; - - // String detailing the error encountered during Attach or Detach operation. - // This string may be logged, so it should not contain sensitive - // information. - // +optional - optional string message = 2; -} - diff --git a/pseudo/k8s/api/storage/v1/register.go b/pseudo/k8s/api/storage/v1/register.go deleted file mode 100644 index 5c841b77e..000000000 --- a/pseudo/k8s/api/storage/v1/register.go +++ /dev/null @@ -1,56 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "storage.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &StorageClass{}, - &StorageClassList{}, - - &VolumeAttachment{}, - &VolumeAttachmentList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/storage/v1/types.go b/pseudo/k8s/api/storage/v1/types.go deleted file mode 100644 index 2658265a3..000000000 --- a/pseudo/k8s/api/storage/v1/types.go +++ /dev/null @@ -1,218 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StorageClass describes the parameters for a class of storage for -// which PersistentVolumes can be dynamically provisioned. -// -// StorageClasses are non-namespaced; the name of the storage class -// according to etcd is in ObjectMeta.Name. -type StorageClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Provisioner indicates the type of the provisioner. - Provisioner string `json:"provisioner" protobuf:"bytes,2,opt,name=provisioner"` - - // Parameters holds the parameters for the provisioner that should - // create volumes of this storage class. - // +optional - Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with this reclaimPolicy. Defaults to Delete. - // +optional - ReclaimPolicy *v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty" protobuf:"bytes,4,opt,name=reclaimPolicy,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.PersistentVolumeReclaimPolicy"` - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with these mountOptions, e.g. ["ro", "soft"]. Not validated - - // mount of the PVs will simply fail if one is invalid. - // +optional - MountOptions []string `json:"mountOptions,omitempty" protobuf:"bytes,5,opt,name=mountOptions"` - - // AllowVolumeExpansion shows whether the storage class allow volume expand - // +optional - AllowVolumeExpansion *bool `json:"allowVolumeExpansion,omitempty" protobuf:"varint,6,opt,name=allowVolumeExpansion"` - - // VolumeBindingMode indicates how PersistentVolumeClaims should be - // provisioned and bound. When unset, VolumeBindingImmediate is used. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - VolumeBindingMode *VolumeBindingMode `json:"volumeBindingMode,omitempty" protobuf:"bytes,7,opt,name=volumeBindingMode"` - - // Restrict the node topologies where volumes can be dynamically provisioned. - // Each volume plugin defines its own supported topology specifications. - // An empty TopologySelectorTerm list means there is no topology restriction. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - AllowedTopologies []v1.TopologySelectorTerm `json:"allowedTopologies,omitempty" protobuf:"bytes,8,rep,name=allowedTopologies"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StorageClassList is a collection of storage classes. -type StorageClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of StorageClasses - Items []StorageClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeBindingMode indicates how PersistentVolumeClaims should be bound. -type VolumeBindingMode string - -const ( - // VolumeBindingImmediate indicates that PersistentVolumeClaims should be - // immediately provisioned and bound. This is the default mode. - VolumeBindingImmediate VolumeBindingMode = "Immediate" - - // VolumeBindingWaitForFirstConsumer indicates that PersistentVolumeClaims - // should not be provisioned and bound until the first Pod is created that - // references the PeristentVolumeClaim. The volume provisioning and - // binding will occur during Pod scheduing. - VolumeBindingWaitForFirstConsumer VolumeBindingMode = "WaitForFirstConsumer" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -type VolumeAttachment struct { - metav1.TypeMeta `json:",inline"` - - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - Spec VolumeAttachmentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - Status VolumeAttachmentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -type VolumeAttachmentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of VolumeAttachments - Items []VolumeAttachment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -type VolumeAttachmentSpec struct { - // Attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - Attacher string `json:"attacher" protobuf:"bytes,1,opt,name=attacher"` - - // Source represents the volume that should be attached. - Source VolumeAttachmentSource `json:"source" protobuf:"bytes,2,opt,name=source"` - - // The node that the volume should be attached to. - NodeName string `json:"nodeName" protobuf:"bytes,3,opt,name=nodeName"` -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -type VolumeAttachmentSource struct { - // Name of the persistent volume to attach. - // +optional - PersistentVolumeName *string `json:"persistentVolumeName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeName"` - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - InlineVolumeSpec *v1.PersistentVolumeSpec `json:"inlineVolumeSpec,omitempty" protobuf:"bytes,2,opt,name=inlineVolumeSpec"` -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -type VolumeAttachmentStatus struct { - // Indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - Attached bool `json:"attached" protobuf:"varint,1,opt,name=attached"` - - // Upon successful attach, this field is populated with any - // information returned by the attach operation that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - AttachmentMetadata map[string]string `json:"attachmentMetadata,omitempty" protobuf:"bytes,2,rep,name=attachmentMetadata"` - - // The last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - AttachError *VolumeError `json:"attachError,omitempty" protobuf:"bytes,3,opt,name=attachError,casttype=VolumeError"` - - // The last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - DetachError *VolumeError `json:"detachError,omitempty" protobuf:"bytes,4,opt,name=detachError,casttype=VolumeError"` -} - -// VolumeError captures an error encountered during a volume operation. -type VolumeError struct { - // Time the error was encountered. - // +optional - Time metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` - - // String detailing the error encountered during Attach or Detach operation. - // This string may be logged, so it should not contain sensitive - // information. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` -} diff --git a/pseudo/k8s/api/storage/v1/types_swagger_doc_generated.go b/pseudo/k8s/api/storage/v1/types_swagger_doc_generated.go deleted file mode 100644 index 78ff19c21..000000000 --- a/pseudo/k8s/api/storage/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,119 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_StorageClass = map[string]string{ - "": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "provisioner": "Provisioner indicates the type of the provisioner.", - "parameters": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "reclaimPolicy": "Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.", - "mountOptions": "Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", - "allowVolumeExpansion": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "volumeBindingMode": "VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", - "allowedTopologies": "Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", -} - -func (StorageClass) SwaggerDoc() map[string]string { - return map_StorageClass -} - -var map_StorageClassList = map[string]string{ - "": "StorageClassList is a collection of storage classes.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of StorageClasses", -} - -func (StorageClassList) SwaggerDoc() map[string]string { - return map_StorageClassList -} - -var map_VolumeAttachment = map[string]string{ - "": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", - "metadata": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", - "status": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", -} - -func (VolumeAttachment) SwaggerDoc() map[string]string { - return map_VolumeAttachment -} - -var map_VolumeAttachmentList = map[string]string{ - "": "VolumeAttachmentList is a collection of VolumeAttachment objects.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of VolumeAttachments", -} - -func (VolumeAttachmentList) SwaggerDoc() map[string]string { - return map_VolumeAttachmentList -} - -var map_VolumeAttachmentSource = map[string]string{ - "": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", - "persistentVolumeName": "Name of the persistent volume to attach.", -} - -func (VolumeAttachmentSource) SwaggerDoc() map[string]string { - return map_VolumeAttachmentSource -} - -var map_VolumeAttachmentSpec = map[string]string{ - "": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", - "attacher": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", - "source": "Source represents the volume that should be attached.", - "nodeName": "The node that the volume should be attached to.", -} - -func (VolumeAttachmentSpec) SwaggerDoc() map[string]string { - return map_VolumeAttachmentSpec -} - -var map_VolumeAttachmentStatus = map[string]string{ - "": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", - "attached": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "attachmentMetadata": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "attachError": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "detachError": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", -} - -func (VolumeAttachmentStatus) SwaggerDoc() map[string]string { - return map_VolumeAttachmentStatus -} - -var map_VolumeError = map[string]string{ - "": "VolumeError captures an error encountered during a volume operation.", - "time": "Time the error was encountered.", - "message": "String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", -} - -func (VolumeError) SwaggerDoc() map[string]string { - return map_VolumeError -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/storage/v1/zz_generated.deepcopy.go b/pseudo/k8s/api/storage/v1/zz_generated.deepcopy.go deleted file mode 100644 index b23c16b41..000000000 --- a/pseudo/k8s/api/storage/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,273 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - corev1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageClass) DeepCopyInto(out *StorageClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.ReclaimPolicy != nil { - in, out := &in.ReclaimPolicy, &out.ReclaimPolicy - *out = new(corev1.PersistentVolumeReclaimPolicy) - **out = **in - } - if in.MountOptions != nil { - in, out := &in.MountOptions, &out.MountOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AllowVolumeExpansion != nil { - in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion - *out = new(bool) - **out = **in - } - if in.VolumeBindingMode != nil { - in, out := &in.VolumeBindingMode, &out.VolumeBindingMode - *out = new(VolumeBindingMode) - **out = **in - } - if in.AllowedTopologies != nil { - in, out := &in.AllowedTopologies, &out.AllowedTopologies - *out = make([]corev1.TopologySelectorTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass. -func (in *StorageClass) DeepCopy() *StorageClass { - if in == nil { - return nil - } - out := new(StorageClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StorageClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageClassList) DeepCopyInto(out *StorageClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]StorageClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList. -func (in *StorageClassList) DeepCopy() *StorageClassList { - if in == nil { - return nil - } - out := new(StorageClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StorageClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment. -func (in *VolumeAttachment) DeepCopy() *VolumeAttachment { - if in == nil { - return nil - } - out := new(VolumeAttachment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeAttachment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeAttachment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList. -func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList { - if in == nil { - return nil - } - out := new(VolumeAttachmentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) { - *out = *in - if in.PersistentVolumeName != nil { - in, out := &in.PersistentVolumeName, &out.PersistentVolumeName - *out = new(string) - **out = **in - } - if in.InlineVolumeSpec != nil { - in, out := &in.InlineVolumeSpec, &out.InlineVolumeSpec - *out = new(corev1.PersistentVolumeSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource. -func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource { - if in == nil { - return nil - } - out := new(VolumeAttachmentSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) { - *out = *in - in.Source.DeepCopyInto(&out.Source) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec. -func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec { - if in == nil { - return nil - } - out := new(VolumeAttachmentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) { - *out = *in - if in.AttachmentMetadata != nil { - in, out := &in.AttachmentMetadata, &out.AttachmentMetadata - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.AttachError != nil { - in, out := &in.AttachError, &out.AttachError - *out = new(VolumeError) - (*in).DeepCopyInto(*out) - } - if in.DetachError != nil { - in, out := &in.DetachError, &out.DetachError - *out = new(VolumeError) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus. -func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus { - if in == nil { - return nil - } - out := new(VolumeAttachmentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeError) DeepCopyInto(out *VolumeError) { - *out = *in - in.Time.DeepCopyInto(&out.Time) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError. -func (in *VolumeError) DeepCopy() *VolumeError { - if in == nil { - return nil - } - out := new(VolumeError) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/storage/v1alpha1/doc.go b/pseudo/k8s/api/storage/v1alpha1/doc.go deleted file mode 100644 index 3605a192d..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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:protobuf-gen=package -// +groupName=storage.k8s.io -// +k8s:openapi-gen=true - -package v1alpha1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1alpha1" diff --git a/pseudo/k8s/api/storage/v1alpha1/generated.pb.go b/pseudo/k8s/api/storage/v1alpha1/generated.pb.go deleted file mode 100644 index 74cdb9c08..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/generated.pb.go +++ /dev/null @@ -1,1839 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1alpha1/generated.proto - -package v1alpha1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} } -func (*VolumeAttachment) ProtoMessage() {} -func (*VolumeAttachment) Descriptor() ([]byte, []int) { - return fileDescriptor_10f856db1e670dc4, []int{0} -} -func (m *VolumeAttachment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachment) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachment.Merge(m, src) -} -func (m *VolumeAttachment) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachment) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachment.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachment proto.InternalMessageInfo - -func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} } -func (*VolumeAttachmentList) ProtoMessage() {} -func (*VolumeAttachmentList) Descriptor() ([]byte, []int) { - return fileDescriptor_10f856db1e670dc4, []int{1} -} -func (m *VolumeAttachmentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentList.Merge(m, src) -} -func (m *VolumeAttachmentList) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentList) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentList.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentList proto.InternalMessageInfo - -func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} } -func (*VolumeAttachmentSource) ProtoMessage() {} -func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) { - return fileDescriptor_10f856db1e670dc4, []int{2} -} -func (m *VolumeAttachmentSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentSource.Merge(m, src) -} -func (m *VolumeAttachmentSource) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentSource) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentSource.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentSource proto.InternalMessageInfo - -func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} } -func (*VolumeAttachmentSpec) ProtoMessage() {} -func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_10f856db1e670dc4, []int{3} -} -func (m *VolumeAttachmentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentSpec.Merge(m, src) -} -func (m *VolumeAttachmentSpec) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentSpec proto.InternalMessageInfo - -func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} } -func (*VolumeAttachmentStatus) ProtoMessage() {} -func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_10f856db1e670dc4, []int{4} -} -func (m *VolumeAttachmentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentStatus.Merge(m, src) -} -func (m *VolumeAttachmentStatus) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentStatus proto.InternalMessageInfo - -func (m *VolumeError) Reset() { *m = VolumeError{} } -func (*VolumeError) ProtoMessage() {} -func (*VolumeError) Descriptor() ([]byte, []int) { - return fileDescriptor_10f856db1e670dc4, []int{5} -} -func (m *VolumeError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeError) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeError.Merge(m, src) -} -func (m *VolumeError) XXX_Size() int { - return m.Size() -} -func (m *VolumeError) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeError.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeError proto.InternalMessageInfo - -func init() { - proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachment") - proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentList") - proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSource") - proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSpec") - proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus.AttachmentMetadataEntry") - proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1alpha1.VolumeError") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1alpha1/generated.proto", fileDescriptor_10f856db1e670dc4) -} - -var fileDescriptor_10f856db1e670dc4 = []byte{ - // 745 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xe3, 0x24, 0x6d, 0xd3, 0x0d, 0x1f, 0xd1, 0x2a, 0x82, 0x28, 0x48, 0x4e, 0x95, 0x53, - 0x40, 0x74, 0x4d, 0x0a, 0x42, 0x15, 0xb7, 0x58, 0xed, 0xa1, 0xa2, 0x2d, 0x68, 0x8b, 0x38, 0x00, - 0x07, 0x36, 0xf6, 0xe2, 0xb8, 0x89, 0x3f, 0xe4, 0x5d, 0x47, 0xea, 0x8d, 0x13, 0x67, 0x6e, 0xbc, - 0x01, 0xcf, 0x92, 0x1b, 0x15, 0xa7, 0x9e, 0x22, 0x6a, 0xde, 0x82, 0x0b, 0x68, 0xd7, 0x9b, 0xc4, - 0x24, 0x29, 0xb4, 0xbd, 0x79, 0x66, 0x67, 0x7e, 0x33, 0xf3, 0xdf, 0xf1, 0x82, 0x9d, 0xfe, 0x36, - 0x43, 0x6e, 0x60, 0xf4, 0xe3, 0x2e, 0x8d, 0x7c, 0xca, 0x29, 0x33, 0x86, 0xd4, 0xb7, 0x83, 0xc8, - 0x50, 0x07, 0x24, 0x74, 0x0d, 0xc6, 0x83, 0x88, 0x38, 0xd4, 0x18, 0xb6, 0xc9, 0x20, 0xec, 0x91, - 0xb6, 0xe1, 0x50, 0x9f, 0x46, 0x84, 0x53, 0x1b, 0x85, 0x51, 0xc0, 0x03, 0x78, 0x2f, 0x0d, 0x46, - 0x24, 0x74, 0x91, 0x0a, 0x46, 0x93, 0xe0, 0xfa, 0xa6, 0xe3, 0xf2, 0x5e, 0xdc, 0x45, 0x56, 0xe0, - 0x19, 0x4e, 0xe0, 0x04, 0x86, 0xcc, 0xe9, 0xc6, 0x1f, 0xa4, 0x25, 0x0d, 0xf9, 0x95, 0xb2, 0xea, - 0xcd, 0x4c, 0x61, 0x2b, 0x88, 0x44, 0xd5, 0xf9, 0x7a, 0xf5, 0x27, 0xb3, 0x18, 0x8f, 0x58, 0x3d, - 0xd7, 0xa7, 0xd1, 0x89, 0x11, 0xf6, 0x1d, 0xe1, 0x60, 0x86, 0x47, 0x39, 0x59, 0x96, 0x65, 0x5c, - 0x94, 0x15, 0xc5, 0x3e, 0x77, 0x3d, 0xba, 0x90, 0xf0, 0xf4, 0x7f, 0x09, 0xcc, 0xea, 0x51, 0x8f, - 0xcc, 0xe7, 0x35, 0xbf, 0xe6, 0x41, 0xe5, 0x75, 0x30, 0x88, 0x3d, 0xda, 0xe1, 0x9c, 0x58, 0x3d, - 0x8f, 0xfa, 0x1c, 0xbe, 0x07, 0x25, 0xd1, 0x98, 0x4d, 0x38, 0xa9, 0x69, 0x1b, 0x5a, 0xab, 0xbc, - 0xf5, 0x08, 0xcd, 0x64, 0x9b, 0xf2, 0x51, 0xd8, 0x77, 0x84, 0x83, 0x21, 0x11, 0x8d, 0x86, 0x6d, - 0xf4, 0xa2, 0x7b, 0x4c, 0x2d, 0x7e, 0x40, 0x39, 0x31, 0xe1, 0x68, 0xdc, 0xc8, 0x25, 0xe3, 0x06, - 0x98, 0xf9, 0xf0, 0x94, 0x0a, 0x8f, 0x40, 0x91, 0x85, 0xd4, 0xaa, 0xe5, 0x25, 0xbd, 0x8d, 0xfe, - 0x71, 0x29, 0x68, 0xbe, 0xbd, 0xa3, 0x90, 0x5a, 0xe6, 0x0d, 0x85, 0x2f, 0x0a, 0x0b, 0x4b, 0x18, - 0x7c, 0x0b, 0x56, 0x19, 0x27, 0x3c, 0x66, 0xb5, 0x82, 0xc4, 0x3e, 0xbe, 0x1a, 0x56, 0xa6, 0x9a, - 0xb7, 0x14, 0x78, 0x35, 0xb5, 0xb1, 0x42, 0x36, 0x47, 0x1a, 0xa8, 0xce, 0xa7, 0xec, 0xbb, 0x8c, - 0xc3, 0x77, 0x0b, 0x62, 0xa1, 0xcb, 0x89, 0x25, 0xb2, 0xa5, 0x54, 0x15, 0x55, 0xb2, 0x34, 0xf1, - 0x64, 0x84, 0xc2, 0x60, 0xc5, 0xe5, 0xd4, 0x63, 0xb5, 0xfc, 0x46, 0xa1, 0x55, 0xde, 0xda, 0xbc, - 0xd2, 0x48, 0xe6, 0x4d, 0x45, 0x5e, 0xd9, 0x13, 0x0c, 0x9c, 0xa2, 0x9a, 0xdf, 0x35, 0x70, 0x67, - 0x61, 0xfa, 0x20, 0x8e, 0x2c, 0x0a, 0xf7, 0x41, 0x35, 0xa4, 0x11, 0x73, 0x19, 0xa7, 0x3e, 0x4f, - 0x63, 0x0e, 0x89, 0x47, 0xe5, 0x60, 0xeb, 0x66, 0x2d, 0x19, 0x37, 0xaa, 0x2f, 0x97, 0x9c, 0xe3, - 0xa5, 0x59, 0xf0, 0x18, 0x54, 0x5c, 0x7f, 0xe0, 0xfa, 0x34, 0xf5, 0x1d, 0xcd, 0x6e, 0xbc, 0x95, - 0x9d, 0x43, 0xfc, 0x3a, 0x42, 0x90, 0x79, 0xb2, 0xbc, 0xe8, 0x6a, 0x32, 0x6e, 0x54, 0xf6, 0xe6, - 0x28, 0x78, 0x81, 0xdb, 0xfc, 0xb6, 0xe4, 0x7e, 0xc4, 0x01, 0x7c, 0x08, 0x4a, 0x44, 0x7a, 0x68, - 0xa4, 0xc6, 0x98, 0xea, 0xdd, 0x51, 0x7e, 0x3c, 0x8d, 0x90, 0x3b, 0x24, 0xa5, 0x50, 0x8d, 0x5e, - 0x71, 0x87, 0x64, 0x6a, 0x66, 0x87, 0xa4, 0x8d, 0x15, 0x52, 0xb4, 0xe2, 0x07, 0x76, 0xaa, 0x68, - 0xe1, 0xef, 0x56, 0x0e, 0x95, 0x1f, 0x4f, 0x23, 0x9a, 0xbf, 0x0b, 0x4b, 0xae, 0x49, 0x2e, 0x63, - 0x66, 0x26, 0x5b, 0xce, 0x54, 0x5a, 0x98, 0xc9, 0x9e, 0xce, 0x64, 0xc3, 0x2f, 0x1a, 0x80, 0x64, - 0x8a, 0x38, 0x98, 0x2c, 0x6b, 0xba, 0x51, 0xcf, 0xaf, 0xf1, 0x93, 0xa0, 0xce, 0x02, 0x6d, 0xd7, - 0xe7, 0xd1, 0x89, 0x59, 0x57, 0x5d, 0xc0, 0xc5, 0x00, 0xbc, 0xa4, 0x05, 0x78, 0x0c, 0xca, 0xa9, - 0x77, 0x37, 0x8a, 0x82, 0x48, 0xfd, 0xb6, 0xad, 0x4b, 0x74, 0x24, 0xe3, 0x4d, 0x3d, 0x19, 0x37, - 0xca, 0x9d, 0x19, 0xe0, 0xd7, 0xb8, 0x51, 0xce, 0x9c, 0xe3, 0x2c, 0x5c, 0xd4, 0xb2, 0xe9, 0xac, - 0x56, 0xf1, 0x3a, 0xb5, 0x76, 0xe8, 0xc5, 0xb5, 0x32, 0xf0, 0xfa, 0x2e, 0xb8, 0x7b, 0x81, 0x44, - 0xb0, 0x02, 0x0a, 0x7d, 0x7a, 0x92, 0x6e, 0x22, 0x16, 0x9f, 0xb0, 0x0a, 0x56, 0x86, 0x64, 0x10, - 0xa7, 0x1b, 0xb7, 0x8e, 0x53, 0xe3, 0x59, 0x7e, 0x5b, 0x6b, 0x7e, 0xd2, 0x40, 0xb6, 0x06, 0xdc, - 0x07, 0x45, 0xf1, 0x96, 0xab, 0x67, 0xe6, 0xc1, 0xe5, 0x9e, 0x99, 0x57, 0xae, 0x47, 0x67, 0xcf, - 0xa5, 0xb0, 0xb0, 0xa4, 0xc0, 0xfb, 0x60, 0xcd, 0xa3, 0x8c, 0x11, 0x47, 0x55, 0x36, 0x6f, 0xab, - 0xa0, 0xb5, 0x83, 0xd4, 0x8d, 0x27, 0xe7, 0x26, 0x1a, 0x9d, 0xeb, 0xb9, 0xd3, 0x73, 0x3d, 0x77, - 0x76, 0xae, 0xe7, 0x3e, 0x26, 0xba, 0x36, 0x4a, 0x74, 0xed, 0x34, 0xd1, 0xb5, 0xb3, 0x44, 0xd7, - 0x7e, 0x24, 0xba, 0xf6, 0xf9, 0xa7, 0x9e, 0x7b, 0x53, 0x9a, 0x08, 0xf7, 0x27, 0x00, 0x00, 0xff, - 0xff, 0xe8, 0x45, 0xe3, 0xba, 0xab, 0x07, 0x00, 0x00, -} - -func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InlineVolumeSpec != nil { - { - size, err := m.InlineVolumeSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PersistentVolumeName != nil { - i -= len(*m.PersistentVolumeName) - copy(dAtA[i:], *m.PersistentVolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x1a - { - size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Attacher) - copy(dAtA[i:], m.Attacher) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DetachError != nil { - { - size, err := m.DetachError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.AttachError != nil { - { - size, err := m.AttachError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.AttachmentMetadata) > 0 { - keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata)) - for k := range m.AttachmentMetadata { - keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) - for iNdEx := len(keysForAttachmentMetadata) - 1; iNdEx >= 0; iNdEx-- { - v := m.AttachmentMetadata[string(keysForAttachmentMetadata[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAttachmentMetadata[iNdEx]) - copy(dAtA[i:], keysForAttachmentMetadata[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAttachmentMetadata[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i-- - if m.Attached { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *VolumeError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *VolumeAttachment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeAttachmentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *VolumeAttachmentSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PersistentVolumeName != nil { - l = len(*m.PersistentVolumeName) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.InlineVolumeSpec != nil { - l = m.InlineVolumeSpec.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeAttachmentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Attacher) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Source.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NodeName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeAttachmentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - if len(m.AttachmentMetadata) > 0 { - for k, v := range m.AttachmentMetadata { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.AttachError != nil { - l = m.AttachError.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DetachError != nil { - l = m.DetachError.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Time.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *VolumeAttachment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]VolumeAttachment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&VolumeAttachmentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachmentSource{`, - `PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`, - `InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "v11.PersistentVolumeSpec", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachmentSpec{`, - `Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`, - `Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`, - `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentStatus) String() string { - if this == nil { - return "nil" - } - keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata)) - for k := range this.AttachmentMetadata { - keysForAttachmentMetadata = append(keysForAttachmentMetadata, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) - mapStringForAttachmentMetadata := "map[string]string{" - for _, k := range keysForAttachmentMetadata { - mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k]) - } - mapStringForAttachmentMetadata += "}" - s := strings.Join([]string{`&VolumeAttachmentStatus{`, - `Attached:` + fmt.Sprintf("%v", this.Attached) + `,`, - `AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`, - `AttachError:` + strings.Replace(this.AttachError.String(), "VolumeError", "VolumeError", 1) + `,`, - `DetachError:` + strings.Replace(this.DetachError.String(), "VolumeError", "VolumeError", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeError{`, - `Time:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *VolumeAttachment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, VolumeAttachment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.PersistentVolumeName = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InlineVolumeSpec == nil { - m.InlineVolumeSpec = &v11.PersistentVolumeSpec{} - } - if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attacher = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Attached = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AttachmentMetadata == nil { - m.AttachmentMetadata = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AttachmentMetadata[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AttachError == nil { - m.AttachError = &VolumeError{} - } - if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DetachError == nil { - m.DetachError = &VolumeError{} - } - if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/storage/v1alpha1/generated.proto b/pseudo/k8s/api/storage/v1alpha1/generated.proto deleted file mode 100644 index 774b2c4c0..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/generated.proto +++ /dev/null @@ -1,136 +0,0 @@ -/* -Copyright 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.storage.v1alpha1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1alpha1"; - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -message VolumeAttachment { - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - optional VolumeAttachmentSpec spec = 2; - - // Status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - optional VolumeAttachmentStatus status = 3; -} - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -message VolumeAttachmentList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of VolumeAttachments - repeated VolumeAttachment items = 2; -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -message VolumeAttachmentSource { - // Name of the persistent volume to attach. - // +optional - optional string persistentVolumeName = 1; - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - optional k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -message VolumeAttachmentSpec { - // Attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - optional string attacher = 1; - - // Source represents the volume that should be attached. - optional VolumeAttachmentSource source = 2; - - // The node that the volume should be attached to. - optional string nodeName = 3; -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -message VolumeAttachmentStatus { - // Indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - optional bool attached = 1; - - // Upon successful attach, this field is populated with any - // information returned by the attach operation that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - map attachmentMetadata = 2; - - // The last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - optional VolumeError attachError = 3; - - // The last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - optional VolumeError detachError = 4; -} - -// VolumeError captures an error encountered during a volume operation. -message VolumeError { - // Time the error was encountered. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; - - // String detailing the error encountered during Attach or Detach operation. - // This string maybe logged, so it should not contain sensitive - // information. - // +optional - optional string message = 2; -} - diff --git a/pseudo/k8s/api/storage/v1alpha1/register.go b/pseudo/k8s/api/storage/v1alpha1/register.go deleted file mode 100644 index 7b9271e6f..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/register.go +++ /dev/null @@ -1,50 +0,0 @@ -/* -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 v1alpha1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "storage.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -var ( - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - AddToScheme = SchemeBuilder.AddToScheme -) - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &VolumeAttachment{}, - &VolumeAttachmentList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/storage/v1alpha1/types.go b/pseudo/k8s/api/storage/v1alpha1/types.go deleted file mode 100644 index bf0cb297d..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/types.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -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 v1alpha1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -type VolumeAttachment struct { - metav1.TypeMeta `json:",inline"` - - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - Spec VolumeAttachmentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - Status VolumeAttachmentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -type VolumeAttachmentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of VolumeAttachments - Items []VolumeAttachment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -type VolumeAttachmentSpec struct { - // Attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - Attacher string `json:"attacher" protobuf:"bytes,1,opt,name=attacher"` - - // Source represents the volume that should be attached. - Source VolumeAttachmentSource `json:"source" protobuf:"bytes,2,opt,name=source"` - - // The node that the volume should be attached to. - NodeName string `json:"nodeName" protobuf:"bytes,3,opt,name=nodeName"` -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -type VolumeAttachmentSource struct { - // Name of the persistent volume to attach. - // +optional - PersistentVolumeName *string `json:"persistentVolumeName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeName"` - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - InlineVolumeSpec *v1.PersistentVolumeSpec `json:"inlineVolumeSpec,omitempty" protobuf:"bytes,2,opt,name=inlineVolumeSpec"` -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -type VolumeAttachmentStatus struct { - // Indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - Attached bool `json:"attached" protobuf:"varint,1,opt,name=attached"` - - // Upon successful attach, this field is populated with any - // information returned by the attach operation that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - AttachmentMetadata map[string]string `json:"attachmentMetadata,omitempty" protobuf:"bytes,2,rep,name=attachmentMetadata"` - - // The last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - AttachError *VolumeError `json:"attachError,omitempty" protobuf:"bytes,3,opt,name=attachError,casttype=VolumeError"` - - // The last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - DetachError *VolumeError `json:"detachError,omitempty" protobuf:"bytes,4,opt,name=detachError,casttype=VolumeError"` -} - -// VolumeError captures an error encountered during a volume operation. -type VolumeError struct { - // Time the error was encountered. - // +optional - Time metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` - - // String detailing the error encountered during Attach or Detach operation. - // This string maybe logged, so it should not contain sensitive - // information. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` -} diff --git a/pseudo/k8s/api/storage/v1alpha1/types_swagger_doc_generated.go b/pseudo/k8s/api/storage/v1alpha1/types_swagger_doc_generated.go deleted file mode 100644 index 2e8216166..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/types_swagger_doc_generated.go +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 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 v1alpha1 - -// 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. DO NOT EDIT. -var map_VolumeAttachment = map[string]string{ - "": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", - "metadata": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", - "status": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", -} - -func (VolumeAttachment) SwaggerDoc() map[string]string { - return map_VolumeAttachment -} - -var map_VolumeAttachmentList = map[string]string{ - "": "VolumeAttachmentList is a collection of VolumeAttachment objects.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of VolumeAttachments", -} - -func (VolumeAttachmentList) SwaggerDoc() map[string]string { - return map_VolumeAttachmentList -} - -var map_VolumeAttachmentSource = map[string]string{ - "": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", - "persistentVolumeName": "Name of the persistent volume to attach.", -} - -func (VolumeAttachmentSource) SwaggerDoc() map[string]string { - return map_VolumeAttachmentSource -} - -var map_VolumeAttachmentSpec = map[string]string{ - "": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", - "attacher": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", - "source": "Source represents the volume that should be attached.", - "nodeName": "The node that the volume should be attached to.", -} - -func (VolumeAttachmentSpec) SwaggerDoc() map[string]string { - return map_VolumeAttachmentSpec -} - -var map_VolumeAttachmentStatus = map[string]string{ - "": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", - "attached": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "attachmentMetadata": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "attachError": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "detachError": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", -} - -func (VolumeAttachmentStatus) SwaggerDoc() map[string]string { - return map_VolumeAttachmentStatus -} - -var map_VolumeError = map[string]string{ - "": "VolumeError captures an error encountered during a volume operation.", - "time": "Time the error was encountered.", - "message": "String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.", -} - -func (VolumeError) SwaggerDoc() map[string]string { - return map_VolumeError -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/storage/v1alpha1/zz_generated.deepcopy.go b/pseudo/k8s/api/storage/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 116d6827b..000000000 --- a/pseudo/k8s/api/storage/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,180 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment. -func (in *VolumeAttachment) DeepCopy() *VolumeAttachment { - if in == nil { - return nil - } - out := new(VolumeAttachment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeAttachment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeAttachment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList. -func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList { - if in == nil { - return nil - } - out := new(VolumeAttachmentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) { - *out = *in - if in.PersistentVolumeName != nil { - in, out := &in.PersistentVolumeName, &out.PersistentVolumeName - *out = new(string) - **out = **in - } - if in.InlineVolumeSpec != nil { - in, out := &in.InlineVolumeSpec, &out.InlineVolumeSpec - *out = new(v1.PersistentVolumeSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource. -func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource { - if in == nil { - return nil - } - out := new(VolumeAttachmentSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) { - *out = *in - in.Source.DeepCopyInto(&out.Source) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec. -func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec { - if in == nil { - return nil - } - out := new(VolumeAttachmentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) { - *out = *in - if in.AttachmentMetadata != nil { - in, out := &in.AttachmentMetadata, &out.AttachmentMetadata - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.AttachError != nil { - in, out := &in.AttachError, &out.AttachError - *out = new(VolumeError) - (*in).DeepCopyInto(*out) - } - if in.DetachError != nil { - in, out := &in.DetachError, &out.DetachError - *out = new(VolumeError) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus. -func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus { - if in == nil { - return nil - } - out := new(VolumeAttachmentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeError) DeepCopyInto(out *VolumeError) { - *out = *in - in.Time.DeepCopyInto(&out.Time) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError. -func (in *VolumeError) DeepCopy() *VolumeError { - if in == nil { - return nil - } - out := new(VolumeError) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/storage/v1beta1/doc.go b/pseudo/k8s/api/storage/v1beta1/doc.go deleted file mode 100644 index 27741fd69..000000000 --- a/pseudo/k8s/api/storage/v1beta1/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:protobuf-gen=package -// +groupName=storage.k8s.io -// +k8s:openapi-gen=true - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1beta1" diff --git a/pseudo/k8s/api/storage/v1beta1/generated.pb.go b/pseudo/k8s/api/storage/v1beta1/generated.pb.go deleted file mode 100644 index 8689e9056..000000000 --- a/pseudo/k8s/api/storage/v1beta1/generated.pb.go +++ /dev/null @@ -1,4487 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - k8s_io_api_core_v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - v11 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *CSIDriver) Reset() { *m = CSIDriver{} } -func (*CSIDriver) ProtoMessage() {} -func (*CSIDriver) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{0} -} -func (m *CSIDriver) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSIDriver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSIDriver) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSIDriver.Merge(m, src) -} -func (m *CSIDriver) XXX_Size() int { - return m.Size() -} -func (m *CSIDriver) XXX_DiscardUnknown() { - xxx_messageInfo_CSIDriver.DiscardUnknown(m) -} - -var xxx_messageInfo_CSIDriver proto.InternalMessageInfo - -func (m *CSIDriverList) Reset() { *m = CSIDriverList{} } -func (*CSIDriverList) ProtoMessage() {} -func (*CSIDriverList) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{1} -} -func (m *CSIDriverList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSIDriverList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSIDriverList) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSIDriverList.Merge(m, src) -} -func (m *CSIDriverList) XXX_Size() int { - return m.Size() -} -func (m *CSIDriverList) XXX_DiscardUnknown() { - xxx_messageInfo_CSIDriverList.DiscardUnknown(m) -} - -var xxx_messageInfo_CSIDriverList proto.InternalMessageInfo - -func (m *CSIDriverSpec) Reset() { *m = CSIDriverSpec{} } -func (*CSIDriverSpec) ProtoMessage() {} -func (*CSIDriverSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{2} -} -func (m *CSIDriverSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSIDriverSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSIDriverSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSIDriverSpec.Merge(m, src) -} -func (m *CSIDriverSpec) XXX_Size() int { - return m.Size() -} -func (m *CSIDriverSpec) XXX_DiscardUnknown() { - xxx_messageInfo_CSIDriverSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_CSIDriverSpec proto.InternalMessageInfo - -func (m *CSINode) Reset() { *m = CSINode{} } -func (*CSINode) ProtoMessage() {} -func (*CSINode) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{3} -} -func (m *CSINode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSINode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSINode) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSINode.Merge(m, src) -} -func (m *CSINode) XXX_Size() int { - return m.Size() -} -func (m *CSINode) XXX_DiscardUnknown() { - xxx_messageInfo_CSINode.DiscardUnknown(m) -} - -var xxx_messageInfo_CSINode proto.InternalMessageInfo - -func (m *CSINodeDriver) Reset() { *m = CSINodeDriver{} } -func (*CSINodeDriver) ProtoMessage() {} -func (*CSINodeDriver) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{4} -} -func (m *CSINodeDriver) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSINodeDriver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSINodeDriver) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSINodeDriver.Merge(m, src) -} -func (m *CSINodeDriver) XXX_Size() int { - return m.Size() -} -func (m *CSINodeDriver) XXX_DiscardUnknown() { - xxx_messageInfo_CSINodeDriver.DiscardUnknown(m) -} - -var xxx_messageInfo_CSINodeDriver proto.InternalMessageInfo - -func (m *CSINodeList) Reset() { *m = CSINodeList{} } -func (*CSINodeList) ProtoMessage() {} -func (*CSINodeList) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{5} -} -func (m *CSINodeList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSINodeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSINodeList) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSINodeList.Merge(m, src) -} -func (m *CSINodeList) XXX_Size() int { - return m.Size() -} -func (m *CSINodeList) XXX_DiscardUnknown() { - xxx_messageInfo_CSINodeList.DiscardUnknown(m) -} - -var xxx_messageInfo_CSINodeList proto.InternalMessageInfo - -func (m *CSINodeSpec) Reset() { *m = CSINodeSpec{} } -func (*CSINodeSpec) ProtoMessage() {} -func (*CSINodeSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{6} -} -func (m *CSINodeSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CSINodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CSINodeSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSINodeSpec.Merge(m, src) -} -func (m *CSINodeSpec) XXX_Size() int { - return m.Size() -} -func (m *CSINodeSpec) XXX_DiscardUnknown() { - xxx_messageInfo_CSINodeSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_CSINodeSpec proto.InternalMessageInfo - -func (m *StorageClass) Reset() { *m = StorageClass{} } -func (*StorageClass) ProtoMessage() {} -func (*StorageClass) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{7} -} -func (m *StorageClass) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StorageClass) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageClass.Merge(m, src) -} -func (m *StorageClass) XXX_Size() int { - return m.Size() -} -func (m *StorageClass) XXX_DiscardUnknown() { - xxx_messageInfo_StorageClass.DiscardUnknown(m) -} - -var xxx_messageInfo_StorageClass proto.InternalMessageInfo - -func (m *StorageClassList) Reset() { *m = StorageClassList{} } -func (*StorageClassList) ProtoMessage() {} -func (*StorageClassList) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{8} -} -func (m *StorageClassList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StorageClassList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StorageClassList) XXX_Merge(src proto.Message) { - xxx_messageInfo_StorageClassList.Merge(m, src) -} -func (m *StorageClassList) XXX_Size() int { - return m.Size() -} -func (m *StorageClassList) XXX_DiscardUnknown() { - xxx_messageInfo_StorageClassList.DiscardUnknown(m) -} - -var xxx_messageInfo_StorageClassList proto.InternalMessageInfo - -func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} } -func (*VolumeAttachment) ProtoMessage() {} -func (*VolumeAttachment) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{9} -} -func (m *VolumeAttachment) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachment) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachment.Merge(m, src) -} -func (m *VolumeAttachment) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachment) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachment.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachment proto.InternalMessageInfo - -func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} } -func (*VolumeAttachmentList) ProtoMessage() {} -func (*VolumeAttachmentList) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{10} -} -func (m *VolumeAttachmentList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentList) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentList.Merge(m, src) -} -func (m *VolumeAttachmentList) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentList) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentList.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentList proto.InternalMessageInfo - -func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} } -func (*VolumeAttachmentSource) ProtoMessage() {} -func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{11} -} -func (m *VolumeAttachmentSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentSource.Merge(m, src) -} -func (m *VolumeAttachmentSource) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentSource) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentSource.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentSource proto.InternalMessageInfo - -func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} } -func (*VolumeAttachmentSpec) ProtoMessage() {} -func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{12} -} -func (m *VolumeAttachmentSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentSpec.Merge(m, src) -} -func (m *VolumeAttachmentSpec) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentSpec) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentSpec proto.InternalMessageInfo - -func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} } -func (*VolumeAttachmentStatus) ProtoMessage() {} -func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{13} -} -func (m *VolumeAttachmentStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeAttachmentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeAttachmentStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeAttachmentStatus.Merge(m, src) -} -func (m *VolumeAttachmentStatus) XXX_Size() int { - return m.Size() -} -func (m *VolumeAttachmentStatus) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeAttachmentStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeAttachmentStatus proto.InternalMessageInfo - -func (m *VolumeError) Reset() { *m = VolumeError{} } -func (*VolumeError) ProtoMessage() {} -func (*VolumeError) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{14} -} -func (m *VolumeError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeError) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeError.Merge(m, src) -} -func (m *VolumeError) XXX_Size() int { - return m.Size() -} -func (m *VolumeError) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeError.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeError proto.InternalMessageInfo - -func (m *VolumeNodeResources) Reset() { *m = VolumeNodeResources{} } -func (*VolumeNodeResources) ProtoMessage() {} -func (*VolumeNodeResources) Descriptor() ([]byte, []int) { - return fileDescriptor_7d2980599fd0de80, []int{15} -} -func (m *VolumeNodeResources) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VolumeNodeResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *VolumeNodeResources) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeNodeResources.Merge(m, src) -} -func (m *VolumeNodeResources) XXX_Size() int { - return m.Size() -} -func (m *VolumeNodeResources) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeNodeResources.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeNodeResources proto.InternalMessageInfo - -func init() { - proto.RegisterType((*CSIDriver)(nil), "k8s.io.api.storage.v1beta1.CSIDriver") - proto.RegisterType((*CSIDriverList)(nil), "k8s.io.api.storage.v1beta1.CSIDriverList") - proto.RegisterType((*CSIDriverSpec)(nil), "k8s.io.api.storage.v1beta1.CSIDriverSpec") - proto.RegisterType((*CSINode)(nil), "k8s.io.api.storage.v1beta1.CSINode") - proto.RegisterType((*CSINodeDriver)(nil), "k8s.io.api.storage.v1beta1.CSINodeDriver") - proto.RegisterType((*CSINodeList)(nil), "k8s.io.api.storage.v1beta1.CSINodeList") - proto.RegisterType((*CSINodeSpec)(nil), "k8s.io.api.storage.v1beta1.CSINodeSpec") - proto.RegisterType((*StorageClass)(nil), "k8s.io.api.storage.v1beta1.StorageClass") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1beta1.StorageClass.ParametersEntry") - proto.RegisterType((*StorageClassList)(nil), "k8s.io.api.storage.v1beta1.StorageClassList") - proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1beta1.VolumeAttachment") - proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1beta1.VolumeAttachmentList") - proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1beta1.VolumeAttachmentSource") - proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1beta1.VolumeAttachmentSpec") - proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1beta1.VolumeAttachmentStatus") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1beta1.VolumeAttachmentStatus.AttachmentMetadataEntry") - proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1beta1.VolumeError") - proto.RegisterType((*VolumeNodeResources)(nil), "k8s.io.api.storage.v1beta1.VolumeNodeResources") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/api/storage/v1beta1/generated.proto", fileDescriptor_7d2980599fd0de80) -} - -var fileDescriptor_7d2980599fd0de80 = []byte{ - // 1344 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xbd, 0x6f, 0xdb, 0x46, - 0x1b, 0x37, 0x2d, 0x7f, 0x9e, 0xec, 0x44, 0xbe, 0x18, 0xef, 0xab, 0x57, 0x83, 0x64, 0xe8, 0x45, - 0x1b, 0x27, 0x48, 0xc8, 0x24, 0x48, 0x83, 0x20, 0x40, 0x07, 0xd3, 0x31, 0x50, 0x25, 0x96, 0xe3, - 0x9e, 0x8d, 0xa0, 0x08, 0x3a, 0xf4, 0x44, 0x3e, 0x91, 0x19, 0x93, 0x3c, 0x86, 0x3c, 0xa9, 0xd5, - 0xd6, 0xa9, 0x73, 0xd1, 0xa1, 0x7f, 0x41, 0xff, 0x85, 0x16, 0x68, 0x97, 0x8e, 0xcd, 0x54, 0x04, - 0x9d, 0x32, 0x09, 0x0d, 0xbb, 0x76, 0xeb, 0x66, 0x74, 0x28, 0xee, 0x78, 0x12, 0x29, 0x89, 0x8a, - 0xed, 0x0e, 0xde, 0x78, 0xcf, 0xc7, 0xef, 0xf9, 0x7e, 0xee, 0x88, 0xb6, 0x8f, 0xef, 0x47, 0xba, - 0xc3, 0x8c, 0xe3, 0x4e, 0x0b, 0x42, 0x1f, 0x38, 0x44, 0x46, 0x17, 0x7c, 0x9b, 0x85, 0x86, 0x62, - 0xd0, 0xc0, 0x31, 0x22, 0xce, 0x42, 0xda, 0x06, 0xa3, 0x7b, 0xbb, 0x05, 0x9c, 0xde, 0x36, 0xda, - 0xe0, 0x43, 0x48, 0x39, 0xd8, 0x7a, 0x10, 0x32, 0xce, 0x70, 0x25, 0x91, 0xd5, 0x69, 0xe0, 0xe8, - 0x4a, 0x56, 0x57, 0xb2, 0x95, 0x9b, 0x6d, 0x87, 0x1f, 0x75, 0x5a, 0xba, 0xc5, 0x3c, 0xa3, 0xcd, - 0xda, 0xcc, 0x90, 0x2a, 0xad, 0xce, 0x73, 0x79, 0x92, 0x07, 0xf9, 0x95, 0x40, 0x55, 0xea, 0x19, - 0xb3, 0x16, 0x0b, 0x85, 0xcd, 0x71, 0x73, 0x95, 0xbb, 0xa9, 0x8c, 0x47, 0xad, 0x23, 0xc7, 0x87, - 0xb0, 0x67, 0x04, 0xc7, 0x6d, 0x41, 0x88, 0x0c, 0x0f, 0x38, 0xcd, 0xd3, 0x32, 0xa6, 0x69, 0x85, - 0x1d, 0x9f, 0x3b, 0x1e, 0x4c, 0x28, 0xdc, 0x3b, 0x4d, 0x21, 0xb2, 0x8e, 0xc0, 0xa3, 0xe3, 0x7a, - 0xf5, 0x9f, 0x34, 0xb4, 0xbc, 0x7d, 0xd0, 0x78, 0x18, 0x3a, 0x5d, 0x08, 0xf1, 0x67, 0x68, 0x49, - 0x78, 0x64, 0x53, 0x4e, 0xcb, 0xda, 0x86, 0xb6, 0x59, 0xbc, 0x73, 0x4b, 0x4f, 0xd3, 0x35, 0x04, - 0xd6, 0x83, 0xe3, 0xb6, 0x20, 0x44, 0xba, 0x90, 0xd6, 0xbb, 0xb7, 0xf5, 0x27, 0xad, 0x17, 0x60, - 0xf1, 0x26, 0x70, 0x6a, 0xe2, 0x57, 0xfd, 0xda, 0x4c, 0xdc, 0xaf, 0xa1, 0x94, 0x46, 0x86, 0xa8, - 0xf8, 0x31, 0x9a, 0x8b, 0x02, 0xb0, 0xca, 0xb3, 0x12, 0xfd, 0x9a, 0x3e, 0xbd, 0x18, 0xfa, 0xd0, - 0xad, 0x83, 0x00, 0x2c, 0x73, 0x45, 0xc1, 0xce, 0x89, 0x13, 0x91, 0x20, 0xf5, 0x1f, 0x35, 0xb4, - 0x3a, 0x94, 0xda, 0x75, 0x22, 0x8e, 0x3f, 0x9d, 0x08, 0x40, 0x3f, 0x5b, 0x00, 0x42, 0x5b, 0xba, - 0x5f, 0x52, 0x76, 0x96, 0x06, 0x94, 0x8c, 0xf3, 0x8f, 0xd0, 0xbc, 0xc3, 0xc1, 0x8b, 0xca, 0xb3, - 0x1b, 0x85, 0xcd, 0xe2, 0x9d, 0xf7, 0xce, 0xe4, 0xbd, 0xb9, 0xaa, 0x10, 0xe7, 0x1b, 0x42, 0x97, - 0x24, 0x10, 0xf5, 0x3f, 0xb3, 0xbe, 0x8b, 0x98, 0xf0, 0x03, 0x74, 0x89, 0x72, 0x4e, 0xad, 0x23, - 0x02, 0x2f, 0x3b, 0x4e, 0x08, 0xb6, 0x8c, 0x60, 0xc9, 0xc4, 0x71, 0xbf, 0x76, 0x69, 0x6b, 0x84, - 0x43, 0xc6, 0x24, 0x85, 0x6e, 0xc0, 0xec, 0x86, 0xff, 0x9c, 0x3d, 0xf1, 0x9b, 0xac, 0xe3, 0x73, - 0x99, 0x60, 0xa5, 0xbb, 0x3f, 0xc2, 0x21, 0x63, 0x92, 0xd8, 0x42, 0xeb, 0x5d, 0xe6, 0x76, 0x3c, - 0xd8, 0x75, 0x9e, 0x83, 0xd5, 0xb3, 0x5c, 0x68, 0x32, 0x1b, 0xa2, 0x72, 0x61, 0xa3, 0xb0, 0xb9, - 0x6c, 0x1a, 0x71, 0xbf, 0xb6, 0xfe, 0x34, 0x87, 0x7f, 0xd2, 0xaf, 0x5d, 0xc9, 0xa1, 0x93, 0x5c, - 0xb0, 0xfa, 0x0f, 0x1a, 0x5a, 0xdc, 0x3e, 0x68, 0xec, 0x31, 0x1b, 0x2e, 0xa0, 0xcb, 0x1a, 0x23, - 0x5d, 0x76, 0xf5, 0x94, 0x3a, 0x09, 0xa7, 0xa6, 0xf6, 0xd8, 0x5f, 0x49, 0x9d, 0x84, 0x8c, 0x1a, - 0x92, 0x0d, 0x34, 0xe7, 0x53, 0x0f, 0xa4, 0xeb, 0xcb, 0xa9, 0xce, 0x1e, 0xf5, 0x80, 0x48, 0x0e, - 0x7e, 0x1f, 0x2d, 0xf8, 0xcc, 0x86, 0xc6, 0x43, 0xe9, 0xc0, 0xb2, 0x79, 0x49, 0xc9, 0x2c, 0xec, - 0x49, 0x2a, 0x51, 0x5c, 0x7c, 0x17, 0xad, 0x70, 0x16, 0x30, 0x97, 0xb5, 0x7b, 0x8f, 0xa1, 0x37, - 0xc8, 0x78, 0x29, 0xee, 0xd7, 0x56, 0x0e, 0x33, 0x74, 0x32, 0x22, 0x85, 0x5b, 0xa8, 0x48, 0x5d, - 0x97, 0x59, 0x94, 0xd3, 0x96, 0x0b, 0xe5, 0x39, 0x19, 0xa3, 0xf1, 0xae, 0x18, 0x93, 0x32, 0x09, - 0xe3, 0x04, 0x22, 0xd6, 0x09, 0x2d, 0x88, 0xcc, 0xcb, 0x71, 0xbf, 0x56, 0xdc, 0x4a, 0x71, 0x48, - 0x16, 0xb4, 0xfe, 0xbd, 0x86, 0x8a, 0x2a, 0xea, 0x0b, 0x98, 0xab, 0x8f, 0x46, 0xe7, 0xea, 0xff, - 0x67, 0xa8, 0xd7, 0x94, 0xa9, 0xb2, 0x86, 0x6e, 0xcb, 0x91, 0x3a, 0x44, 0x8b, 0xb6, 0x2c, 0x5a, - 0x54, 0xd6, 0x24, 0xf4, 0xb5, 0x33, 0x40, 0xab, 0xb1, 0xbd, 0xac, 0x0c, 0x2c, 0x26, 0xe7, 0x88, - 0x0c, 0xa0, 0xea, 0xdf, 0x2c, 0xa0, 0x95, 0x83, 0x44, 0x77, 0xdb, 0xa5, 0x51, 0x74, 0x01, 0x0d, - 0xfd, 0x01, 0x2a, 0x06, 0x21, 0xeb, 0x3a, 0x91, 0xc3, 0x7c, 0x08, 0x55, 0x5b, 0x5d, 0x51, 0x2a, - 0xc5, 0xfd, 0x94, 0x45, 0xb2, 0x72, 0xd8, 0x45, 0x28, 0xa0, 0x21, 0xf5, 0x80, 0x8b, 0x14, 0x14, - 0x64, 0x0a, 0xee, 0xbf, 0x2b, 0x05, 0xd9, 0xb0, 0xf4, 0xfd, 0xa1, 0xea, 0x8e, 0xcf, 0xc3, 0x5e, - 0xea, 0x62, 0xca, 0x20, 0x19, 0x7c, 0x7c, 0x8c, 0x56, 0x43, 0xb0, 0x5c, 0xea, 0x78, 0xfb, 0xcc, - 0x75, 0xac, 0x9e, 0x6c, 0xcd, 0x65, 0x73, 0x27, 0xee, 0xd7, 0x56, 0x49, 0x96, 0x71, 0xd2, 0xaf, - 0xdd, 0x9a, 0xbc, 0x3a, 0xf5, 0x7d, 0x08, 0x23, 0x27, 0xe2, 0xe0, 0xf3, 0xa4, 0x61, 0x47, 0x74, - 0xc8, 0x28, 0xb6, 0x98, 0x1d, 0x4f, 0xac, 0xaf, 0x27, 0x01, 0x77, 0x98, 0x1f, 0x95, 0xe7, 0xd3, - 0xd9, 0x69, 0x66, 0xe8, 0x64, 0x44, 0x0a, 0xef, 0xa2, 0x75, 0xd1, 0xe6, 0x9f, 0x27, 0x06, 0x76, - 0xbe, 0x08, 0xa8, 0x2f, 0x52, 0x55, 0x5e, 0x90, 0xdb, 0xb2, 0x2c, 0x76, 0xdd, 0x56, 0x0e, 0x9f, - 0xe4, 0x6a, 0xe1, 0x4f, 0xd0, 0x5a, 0xb2, 0xec, 0x4c, 0xc7, 0xb7, 0x1d, 0xbf, 0x2d, 0x56, 0x5d, - 0x79, 0x51, 0x06, 0x7d, 0x3d, 0xee, 0xd7, 0xd6, 0x9e, 0x8e, 0x33, 0x4f, 0xf2, 0x88, 0x64, 0x12, - 0x04, 0xbf, 0x44, 0x6b, 0xd2, 0x22, 0xd8, 0x6a, 0x11, 0x38, 0x10, 0x95, 0x97, 0x64, 0xfd, 0x36, - 0xb3, 0xf5, 0x13, 0xa9, 0x13, 0x8d, 0x34, 0x58, 0x17, 0x07, 0xe0, 0x82, 0xc5, 0x59, 0x78, 0x08, - 0xa1, 0x67, 0xfe, 0x4f, 0xd5, 0x6b, 0x6d, 0x6b, 0x1c, 0x8a, 0x4c, 0xa2, 0x57, 0x3e, 0x44, 0x97, - 0xc7, 0x0a, 0x8e, 0x4b, 0xa8, 0x70, 0x0c, 0xbd, 0x64, 0xd1, 0x11, 0xf1, 0x89, 0xd7, 0xd1, 0x7c, - 0x97, 0xba, 0x1d, 0x48, 0x3a, 0x90, 0x24, 0x87, 0x07, 0xb3, 0xf7, 0xb5, 0xfa, 0xcf, 0x1a, 0x2a, - 0x65, 0xbb, 0xe7, 0x02, 0xd6, 0x46, 0x73, 0x74, 0x6d, 0x6c, 0x9e, 0xb5, 0xb1, 0xa7, 0xec, 0x8e, - 0xef, 0x66, 0x51, 0x29, 0x29, 0x4e, 0x72, 0xd9, 0x7a, 0xe0, 0xf3, 0x0b, 0x18, 0x6d, 0x32, 0x72, - 0x57, 0xdd, 0x3a, 0x7d, 0x8f, 0xa7, 0xde, 0x4d, 0xbb, 0xb4, 0xf0, 0x33, 0xb4, 0x10, 0x71, 0xca, - 0x3b, 0x62, 0xe6, 0x05, 0xea, 0x9d, 0x73, 0xa1, 0x4a, 0xcd, 0xf4, 0xd2, 0x4a, 0xce, 0x44, 0x21, - 0xd6, 0x7f, 0xd1, 0xd0, 0xfa, 0xb8, 0xca, 0x05, 0x14, 0xfb, 0xe3, 0xd1, 0x62, 0xdf, 0x38, 0x4f, - 0x44, 0x53, 0x0a, 0xfe, 0x9b, 0x86, 0xfe, 0x33, 0x11, 0xbc, 0xbc, 0x1e, 0xc5, 0x9e, 0x08, 0xc6, - 0xb6, 0xd1, 0x5e, 0x7a, 0xe7, 0xcb, 0x3d, 0xb1, 0x9f, 0xc3, 0x27, 0xb9, 0x5a, 0xf8, 0x05, 0x2a, - 0x39, 0xbe, 0xeb, 0xf8, 0x90, 0xd0, 0x0e, 0xd2, 0x72, 0xe7, 0x0e, 0xf3, 0x38, 0xb2, 0x2c, 0xf3, - 0x7a, 0xdc, 0xaf, 0x95, 0x1a, 0x63, 0x28, 0x64, 0x02, 0xb7, 0xfe, 0x6b, 0x4e, 0x79, 0xe4, 0x5d, - 0x78, 0x03, 0x2d, 0x25, 0x8f, 0x46, 0x08, 0x55, 0x18, 0xc3, 0x74, 0x6f, 0x29, 0x3a, 0x19, 0x4a, - 0xc8, 0x0e, 0x92, 0xa9, 0x50, 0x8e, 0x9e, 0xaf, 0x83, 0xa4, 0x66, 0xa6, 0x83, 0xe4, 0x99, 0x28, - 0x44, 0xe1, 0x89, 0x78, 0x00, 0xc9, 0x84, 0x16, 0x46, 0x3d, 0xd9, 0x53, 0x74, 0x32, 0x94, 0xa8, - 0xff, 0x5d, 0xc8, 0xa9, 0x92, 0x6c, 0xc5, 0x4c, 0x48, 0x83, 0xb7, 0xf2, 0x78, 0x48, 0xf6, 0x30, - 0x24, 0x1b, 0x7f, 0xab, 0x21, 0x4c, 0x87, 0x10, 0xcd, 0x41, 0xab, 0x26, 0xfd, 0xf4, 0xe8, 0xfc, - 0x13, 0xa2, 0x6f, 0x4d, 0x80, 0x25, 0xf7, 0x64, 0x45, 0x39, 0x81, 0x27, 0x05, 0x48, 0x8e, 0x07, - 0xd8, 0x41, 0xc5, 0x84, 0xba, 0x13, 0x86, 0x2c, 0x54, 0x23, 0x7b, 0xf5, 0x74, 0x87, 0xa4, 0xb8, - 0x59, 0x95, 0x0f, 0xb9, 0x54, 0xff, 0xa4, 0x5f, 0x2b, 0x66, 0xf8, 0x24, 0x8b, 0x2d, 0x4c, 0xd9, - 0x90, 0x9a, 0x9a, 0xfb, 0x17, 0xa6, 0x1e, 0xc2, 0x74, 0x53, 0x19, 0xec, 0xca, 0x0e, 0xfa, 0xef, - 0x94, 0x04, 0x9d, 0xeb, 0x5e, 0xf9, 0x4a, 0x43, 0x59, 0x1b, 0x78, 0x17, 0xcd, 0x89, 0xff, 0x59, - 0xb5, 0x61, 0xae, 0x9f, 0x6d, 0xc3, 0x1c, 0x3a, 0x1e, 0xa4, 0x8b, 0x52, 0x9c, 0x88, 0x44, 0xc1, - 0xd7, 0xd0, 0xa2, 0x07, 0x51, 0x44, 0xdb, 0xca, 0x72, 0xfa, 0xea, 0x6b, 0x26, 0x64, 0x32, 0xe0, - 0xd7, 0xef, 0xa1, 0x2b, 0x39, 0xef, 0x68, 0x5c, 0x43, 0xf3, 0x96, 0xfc, 0xe1, 0x12, 0x0e, 0xcd, - 0x9b, 0xcb, 0x62, 0xcb, 0x6c, 0xcb, 0xff, 0xac, 0x84, 0x6e, 0xde, 0x7c, 0xf5, 0xb6, 0x3a, 0xf3, - 0xfa, 0x6d, 0x75, 0xe6, 0xcd, 0xdb, 0xea, 0xcc, 0x97, 0x71, 0x55, 0x7b, 0x15, 0x57, 0xb5, 0xd7, - 0x71, 0x55, 0x7b, 0x13, 0x57, 0xb5, 0xdf, 0xe3, 0xaa, 0xf6, 0xf5, 0x1f, 0xd5, 0x99, 0x67, 0x8b, - 0x2a, 0xdf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x72, 0xff, 0xde, 0x2e, 0xe4, 0x10, 0x00, 0x00, -} - -func (m *CSIDriver) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSIDriver) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSIDriver) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSIDriverList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSIDriverList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSIDriverList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSIDriverSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSIDriverSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSIDriverSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VolumeLifecycleModes) > 0 { - for iNdEx := len(m.VolumeLifecycleModes) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.VolumeLifecycleModes[iNdEx]) - copy(dAtA[i:], m.VolumeLifecycleModes[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeLifecycleModes[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.PodInfoOnMount != nil { - i-- - if *m.PodInfoOnMount { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.AttachRequired != nil { - i-- - if *m.AttachRequired { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *CSINode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSINode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSINode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSINodeDriver) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSINodeDriver) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSINodeDriver) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Allocatable != nil { - { - size, err := m.Allocatable.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.TopologyKeys) > 0 { - for iNdEx := len(m.TopologyKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TopologyKeys[iNdEx]) - copy(dAtA[i:], m.TopologyKeys[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.TopologyKeys[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.NodeID) - copy(dAtA[i:], m.NodeID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeID))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSINodeList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSINodeList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSINodeList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CSINodeSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CSINodeSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CSINodeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Drivers) > 0 { - for iNdEx := len(m.Drivers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Drivers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *StorageClass) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StorageClass) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AllowedTopologies) > 0 { - for iNdEx := len(m.AllowedTopologies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AllowedTopologies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - if m.VolumeBindingMode != nil { - i -= len(*m.VolumeBindingMode) - copy(dAtA[i:], *m.VolumeBindingMode) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.VolumeBindingMode))) - i-- - dAtA[i] = 0x3a - } - if m.AllowVolumeExpansion != nil { - i-- - if *m.AllowVolumeExpansion { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if len(m.MountOptions) > 0 { - for iNdEx := len(m.MountOptions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.MountOptions[iNdEx]) - copy(dAtA[i:], m.MountOptions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.MountOptions[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.ReclaimPolicy != nil { - i -= len(*m.ReclaimPolicy) - copy(dAtA[i:], *m.ReclaimPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReclaimPolicy))) - i-- - dAtA[i] = 0x22 - } - if len(m.Parameters) > 0 { - keysForParameters := make([]string, 0, len(m.Parameters)) - for k := range m.Parameters { - keysForParameters = append(keysForParameters, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForParameters) - for iNdEx := len(keysForParameters) - 1; iNdEx >= 0; iNdEx-- { - v := m.Parameters[string(keysForParameters[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForParameters[iNdEx]) - copy(dAtA[i:], keysForParameters[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForParameters[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Provisioner) - copy(dAtA[i:], m.Provisioner) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Provisioner))) - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StorageClassList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StorageClassList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StorageClassList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.InlineVolumeSpec != nil { - { - size, err := m.InlineVolumeSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.PersistentVolumeName != nil { - i -= len(*m.PersistentVolumeName) - copy(dAtA[i:], *m.PersistentVolumeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x1a - { - size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Attacher) - copy(dAtA[i:], m.Attacher) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeAttachmentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DetachError != nil { - { - size, err := m.DetachError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.AttachError != nil { - { - size, err := m.AttachError.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.AttachmentMetadata) > 0 { - keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata)) - for k := range m.AttachmentMetadata { - keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) - for iNdEx := len(keysForAttachmentMetadata) - 1; iNdEx >= 0; iNdEx-- { - v := m.AttachmentMetadata[string(keysForAttachmentMetadata[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAttachmentMetadata[iNdEx]) - copy(dAtA[i:], keysForAttachmentMetadata[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAttachmentMetadata[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x12 - } - } - i-- - if m.Attached { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *VolumeError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeError) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - { - size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *VolumeNodeResources) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VolumeNodeResources) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VolumeNodeResources) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Count != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.Count)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CSIDriver) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CSIDriverList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CSIDriverSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AttachRequired != nil { - n += 2 - } - if m.PodInfoOnMount != nil { - n += 2 - } - if len(m.VolumeLifecycleModes) > 0 { - for _, s := range m.VolumeLifecycleModes { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CSINode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CSINodeDriver) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NodeID) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.TopologyKeys) > 0 { - for _, s := range m.TopologyKeys { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Allocatable != nil { - l = m.Allocatable.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *CSINodeList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CSINodeSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Drivers) > 0 { - for _, e := range m.Drivers { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StorageClass) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Provisioner) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Parameters) > 0 { - for k, v := range m.Parameters { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.ReclaimPolicy != nil { - l = len(*m.ReclaimPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.MountOptions) > 0 { - for _, s := range m.MountOptions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.AllowVolumeExpansion != nil { - n += 2 - } - if m.VolumeBindingMode != nil { - l = len(*m.VolumeBindingMode) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.AllowedTopologies) > 0 { - for _, e := range m.AllowedTopologies { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *StorageClassList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *VolumeAttachment) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeAttachmentList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *VolumeAttachmentSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PersistentVolumeName != nil { - l = len(*m.PersistentVolumeName) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.InlineVolumeSpec != nil { - l = m.InlineVolumeSpec.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeAttachmentSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Attacher) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Source.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NodeName) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeAttachmentStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - if len(m.AttachmentMetadata) > 0 { - for k, v := range m.AttachmentMetadata { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if m.AttachError != nil { - l = m.AttachError.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DetachError != nil { - l = m.DetachError.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *VolumeError) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Time.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *VolumeNodeResources) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Count != nil { - n += 1 + sovGenerated(uint64(*m.Count)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *CSIDriver) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CSIDriver{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CSIDriverSpec", "CSIDriverSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CSIDriverList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]CSIDriver{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CSIDriver", "CSIDriver", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&CSIDriverList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *CSIDriverSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CSIDriverSpec{`, - `AttachRequired:` + valueToStringGenerated(this.AttachRequired) + `,`, - `PodInfoOnMount:` + valueToStringGenerated(this.PodInfoOnMount) + `,`, - `VolumeLifecycleModes:` + fmt.Sprintf("%v", this.VolumeLifecycleModes) + `,`, - `}`, - }, "") - return s -} -func (this *CSINode) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CSINode{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CSINodeSpec", "CSINodeSpec", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CSINodeDriver) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CSINodeDriver{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `NodeID:` + fmt.Sprintf("%v", this.NodeID) + `,`, - `TopologyKeys:` + fmt.Sprintf("%v", this.TopologyKeys) + `,`, - `Allocatable:` + strings.Replace(this.Allocatable.String(), "VolumeNodeResources", "VolumeNodeResources", 1) + `,`, - `}`, - }, "") - return s -} -func (this *CSINodeList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]CSINode{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CSINode", "CSINode", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&CSINodeList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *CSINodeSpec) String() string { - if this == nil { - return "nil" - } - repeatedStringForDrivers := "[]CSINodeDriver{" - for _, f := range this.Drivers { - repeatedStringForDrivers += strings.Replace(strings.Replace(f.String(), "CSINodeDriver", "CSINodeDriver", 1), `&`, ``, 1) + "," - } - repeatedStringForDrivers += "}" - s := strings.Join([]string{`&CSINodeSpec{`, - `Drivers:` + repeatedStringForDrivers + `,`, - `}`, - }, "") - return s -} -func (this *StorageClass) String() string { - if this == nil { - return "nil" - } - repeatedStringForAllowedTopologies := "[]TopologySelectorTerm{" - for _, f := range this.AllowedTopologies { - repeatedStringForAllowedTopologies += fmt.Sprintf("%v", f) + "," - } - repeatedStringForAllowedTopologies += "}" - keysForParameters := make([]string, 0, len(this.Parameters)) - for k := range this.Parameters { - keysForParameters = append(keysForParameters, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForParameters) - mapStringForParameters := "map[string]string{" - for _, k := range keysForParameters { - mapStringForParameters += fmt.Sprintf("%v: %v,", k, this.Parameters[k]) - } - mapStringForParameters += "}" - s := strings.Join([]string{`&StorageClass{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Provisioner:` + fmt.Sprintf("%v", this.Provisioner) + `,`, - `Parameters:` + mapStringForParameters + `,`, - `ReclaimPolicy:` + valueToStringGenerated(this.ReclaimPolicy) + `,`, - `MountOptions:` + fmt.Sprintf("%v", this.MountOptions) + `,`, - `AllowVolumeExpansion:` + valueToStringGenerated(this.AllowVolumeExpansion) + `,`, - `VolumeBindingMode:` + valueToStringGenerated(this.VolumeBindingMode) + `,`, - `AllowedTopologies:` + repeatedStringForAllowedTopologies + `,`, - `}`, - }, "") - return s -} -func (this *StorageClassList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]StorageClass{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StorageClass", "StorageClass", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&StorageClassList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachment) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachment{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]VolumeAttachment{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&VolumeAttachmentList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentSource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachmentSource{`, - `PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`, - `InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "v11.PersistentVolumeSpec", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeAttachmentSpec{`, - `Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`, - `Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`, - `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeAttachmentStatus) String() string { - if this == nil { - return "nil" - } - keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata)) - for k := range this.AttachmentMetadata { - keysForAttachmentMetadata = append(keysForAttachmentMetadata, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) - mapStringForAttachmentMetadata := "map[string]string{" - for _, k := range keysForAttachmentMetadata { - mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k]) - } - mapStringForAttachmentMetadata += "}" - s := strings.Join([]string{`&VolumeAttachmentStatus{`, - `Attached:` + fmt.Sprintf("%v", this.Attached) + `,`, - `AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`, - `AttachError:` + strings.Replace(this.AttachError.String(), "VolumeError", "VolumeError", 1) + `,`, - `DetachError:` + strings.Replace(this.DetachError.String(), "VolumeError", "VolumeError", 1) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeError) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeError{`, - `Time:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *VolumeNodeResources) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&VolumeNodeResources{`, - `Count:` + valueToStringGenerated(this.Count) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *CSIDriver) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSIDriver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSIDriver: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSIDriverList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSIDriverList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSIDriverList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, CSIDriver{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSIDriverSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSIDriverSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSIDriverSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachRequired", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AttachRequired = &b - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PodInfoOnMount", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.PodInfoOnMount = &b - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeLifecycleModes", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VolumeLifecycleModes = append(m.VolumeLifecycleModes, VolumeLifecycleMode(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSINode) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSINode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSINode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSINodeDriver) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSINodeDriver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSINodeDriver: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TopologyKeys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TopologyKeys = append(m.TopologyKeys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allocatable", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Allocatable == nil { - m.Allocatable = &VolumeNodeResources{} - } - if err := m.Allocatable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSINodeList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSINodeList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSINodeList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, CSINode{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CSINodeSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CSINodeSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CSINodeSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Drivers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Drivers = append(m.Drivers, CSINodeDriver{}) - if err := m.Drivers[len(m.Drivers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StorageClass) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StorageClass: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StorageClass: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Provisioner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Provisioner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Parameters == nil { - m.Parameters = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Parameters[mapkey] = mapvalue - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReclaimPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_api_core_v1.PersistentVolumeReclaimPolicy(dAtA[iNdEx:postIndex]) - m.ReclaimPolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MountOptions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MountOptions = append(m.MountOptions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowVolumeExpansion", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.AllowVolumeExpansion = &b - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VolumeBindingMode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := VolumeBindingMode(dAtA[iNdEx:postIndex]) - m.VolumeBindingMode = &s - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowedTopologies", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AllowedTopologies = append(m.AllowedTopologies, v11.TopologySelectorTerm{}) - if err := m.AllowedTopologies[len(m.AllowedTopologies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StorageClassList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StorageClassList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StorageClassList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, StorageClass{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachment) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, VolumeAttachment{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.PersistentVolumeName = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.InlineVolumeSpec == nil { - m.InlineVolumeSpec = &v11.PersistentVolumeSpec{} - } - if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Attacher = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Attached = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AttachmentMetadata == nil { - m.AttachmentMetadata = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AttachmentMetadata[mapkey] = mapvalue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AttachError == nil { - m.AttachError = &VolumeError{} - } - if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DetachError == nil { - m.DetachError = &VolumeError{} - } - if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeError) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeError: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VolumeNodeResources) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VolumeNodeResources: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VolumeNodeResources: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) - } - var v int32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Count = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/api/storage/v1beta1/generated.proto b/pseudo/k8s/api/storage/v1beta1/generated.proto deleted file mode 100644 index efed3a7a9..000000000 --- a/pseudo/k8s/api/storage/v1beta1/generated.proto +++ /dev/null @@ -1,370 +0,0 @@ -/* -Copyright 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.storage.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// CSIDriver captures information about a Container Storage Interface (CSI) -// volume driver deployed on the cluster. -// CSI drivers do not need to create the CSIDriver object directly. Instead they may use the -// cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically -// creates a CSIDriver object representing the driver. -// Kubernetes attach detach controller uses this object to determine whether attach is required. -// Kubelet uses this object to determine whether pod information needs to be passed on mount. -// CSIDriver objects are non-namespaced. -message CSIDriver { - // Standard object metadata. - // metadata.Name indicates the name of the CSI driver that this object - // refers to; it MUST be the same name returned by the CSI GetPluginName() - // call for that driver. - // The driver name must be 63 characters or less, beginning and ending with - // an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and - // alphanumerics between. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the CSI Driver. - optional CSIDriverSpec spec = 2; -} - -// CSIDriverList is a collection of CSIDriver objects. -message CSIDriverList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of CSIDriver - repeated CSIDriver items = 2; -} - -// CSIDriverSpec is the specification of a CSIDriver. -message CSIDriverSpec { - // attachRequired indicates this CSI volume driver requires an attach - // operation (because it implements the CSI ControllerPublishVolume() - // method), and that the Kubernetes attach detach controller should call - // the attach volume interface which checks the volumeattachment status - // and waits until the volume is attached before proceeding to mounting. - // The CSI external-attacher coordinates with CSI volume driver and updates - // the volumeattachment status when the attach operation is complete. - // If the CSIDriverRegistry feature gate is enabled and the value is - // specified to false, the attach operation will be skipped. - // Otherwise the attach operation will be called. - // +optional - optional bool attachRequired = 1; - - // If set to true, podInfoOnMount indicates this CSI volume driver - // requires additional pod information (like podName, podUID, etc.) during - // mount operations. - // If set to false, pod information will not be passed on mount. - // Default is false. - // The CSI driver specifies podInfoOnMount as part of driver deployment. - // If true, Kubelet will pass pod information as VolumeContext in the CSI - // NodePublishVolume() calls. - // The CSI driver is responsible for parsing and validating the information - // passed in as VolumeContext. - // The following VolumeConext will be passed if podInfoOnMount is set to true. - // This list might grow, but the prefix will be used. - // "csi.storage.k8s.io/pod.name": pod.Name - // "csi.storage.k8s.io/pod.namespace": pod.Namespace - // "csi.storage.k8s.io/pod.uid": string(pod.UID) - // "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - // defined by a CSIVolumeSource, otherwise "false" - // - // "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only - // required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. - // Other drivers can leave pod info disabled and/or ignore this field. - // As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when - // deployed on such a cluster and the deployment determines which mode that is, for example - // via a command line parameter of the driver. - // +optional - optional bool podInfoOnMount = 2; - - // VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. - // The default if the list is empty is "Persistent", which is the usage - // defined by the CSI specification and implemented in Kubernetes via the usual - // PV/PVC mechanism. - // The other mode is "Ephemeral". In this mode, volumes are defined inline - // inside the pod spec with CSIVolumeSource and their lifecycle is tied to - // the lifecycle of that pod. A driver has to be aware of this - // because it is only going to get a NodePublishVolume call for such a volume. - // For more information about implementing this mode, see - // https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html - // A driver can support one or more of these modes and - // more modes may be added in the future. - // +optional - repeated string volumeLifecycleModes = 3; -} - -// CSINode holds information about all CSI drivers installed on a node. -// CSI drivers do not need to create the CSINode object directly. As long as -// they use the node-driver-registrar sidecar container, the kubelet will -// automatically populate the CSINode object for the CSI driver as part of -// kubelet plugin registration. -// CSINode has the same name as a node. If the object is missing, it means either -// there are no CSI Drivers available on the node, or the Kubelet version is low -// enough that it doesn't create this object. -// CSINode has an OwnerReference that points to the corresponding node object. -message CSINode { - // metadata.name must be the Kubernetes node name. - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // spec is the specification of CSINode - optional CSINodeSpec spec = 2; -} - -// CSINodeDriver holds information about the specification of one CSI driver installed on a node -message CSINodeDriver { - // This is the name of the CSI driver that this object refers to. - // This MUST be the same name returned by the CSI GetPluginName() call for - // that driver. - optional string name = 1; - - // nodeID of the node from the driver point of view. - // This field enables Kubernetes to communicate with storage systems that do - // not share the same nomenclature for nodes. For example, Kubernetes may - // refer to a given node as "node1", but the storage system may refer to - // the same node as "nodeA". When Kubernetes issues a command to the storage - // system to attach a volume to a specific node, it can use this field to - // refer to the node name using the ID that the storage system will - // understand, e.g. "nodeA" instead of "node1". This field is required. - optional string nodeID = 2; - - // topologyKeys is the list of keys supported by the driver. - // When a driver is initialized on a cluster, it provides a set of topology - // keys that it understands (e.g. "company.com/zone", "company.com/region"). - // When a driver is initialized on a node, it provides the same topology keys - // along with values. Kubelet will expose these topology keys as labels - // on its own node object. - // When Kubernetes does topology aware provisioning, it can use this list to - // determine which labels it should retrieve from the node object and pass - // back to the driver. - // It is possible for different nodes to use different topology keys. - // This can be empty if driver does not support topology. - // +optional - repeated string topologyKeys = 3; - - // allocatable represents the volume resources of a node that are available for scheduling. - // +optional - optional VolumeNodeResources allocatable = 4; -} - -// CSINodeList is a collection of CSINode objects. -message CSINodeList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // items is the list of CSINode - repeated CSINode items = 2; -} - -// CSINodeSpec holds information about the specification of all CSI drivers installed on a node -message CSINodeSpec { - // drivers is a list of information of all CSI Drivers existing on a node. - // If all drivers in the list are uninstalled, this can become empty. - // +patchMergeKey=name - // +patchStrategy=merge - repeated CSINodeDriver drivers = 1; -} - -// StorageClass describes the parameters for a class of storage for -// which PersistentVolumes can be dynamically provisioned. -// -// StorageClasses are non-namespaced; the name of the storage class -// according to etcd is in ObjectMeta.Name. -message StorageClass { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Provisioner indicates the type of the provisioner. - optional string provisioner = 2; - - // Parameters holds the parameters for the provisioner that should - // create volumes of this storage class. - // +optional - map parameters = 3; - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with this reclaimPolicy. Defaults to Delete. - // +optional - optional string reclaimPolicy = 4; - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with these mountOptions, e.g. ["ro", "soft"]. Not validated - - // mount of the PVs will simply fail if one is invalid. - // +optional - repeated string mountOptions = 5; - - // AllowVolumeExpansion shows whether the storage class allow volume expand - // +optional - optional bool allowVolumeExpansion = 6; - - // VolumeBindingMode indicates how PersistentVolumeClaims should be - // provisioned and bound. When unset, VolumeBindingImmediate is used. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - optional string volumeBindingMode = 7; - - // Restrict the node topologies where volumes can be dynamically provisioned. - // Each volume plugin defines its own supported topology specifications. - // An empty TopologySelectorTerm list means there is no topology restriction. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - repeated k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8; -} - -// StorageClassList is a collection of storage classes. -message StorageClassList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of StorageClasses - repeated StorageClass items = 2; -} - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -message VolumeAttachment { - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - optional VolumeAttachmentSpec spec = 2; - - // Status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - optional VolumeAttachmentStatus status = 3; -} - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -message VolumeAttachmentList { - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // Items is the list of VolumeAttachments - repeated VolumeAttachment items = 2; -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -message VolumeAttachmentSource { - // Name of the persistent volume to attach. - // +optional - optional string persistentVolumeName = 1; - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - optional k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2; -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -message VolumeAttachmentSpec { - // Attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - optional string attacher = 1; - - // Source represents the volume that should be attached. - optional VolumeAttachmentSource source = 2; - - // The node that the volume should be attached to. - optional string nodeName = 3; -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -message VolumeAttachmentStatus { - // Indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - optional bool attached = 1; - - // Upon successful attach, this field is populated with any - // information returned by the attach operation that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - map attachmentMetadata = 2; - - // The last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - optional VolumeError attachError = 3; - - // The last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - optional VolumeError detachError = 4; -} - -// VolumeError captures an error encountered during a volume operation. -message VolumeError { - // Time the error was encountered. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1; - - // String detailing the error encountered during Attach or Detach operation. - // This string may be logged, so it should not contain sensitive - // information. - // +optional - optional string message = 2; -} - -// VolumeNodeResources is a set of resource limits for scheduling of volumes. -message VolumeNodeResources { - // Maximum number of unique volumes managed by the CSI driver that can be used on a node. - // A volume that is both attached and mounted on a node is considered to be used once, not twice. - // The same rule applies for a unique volume that is shared among multiple pods on the same node. - // If this field is nil, then the supported number of volumes on this node is unbounded. - // +optional - optional int32 count = 1; -} - diff --git a/pseudo/k8s/api/storage/v1beta1/register.go b/pseudo/k8s/api/storage/v1beta1/register.go deleted file mode 100644 index c9158acee..000000000 --- a/pseudo/k8s/api/storage/v1beta1/register.go +++ /dev/null @@ -1,62 +0,0 @@ -/* -Copyright 2015 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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "storage.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 sigs.k8s.io/kustomize/pseudo/k8s/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 the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &StorageClass{}, - &StorageClassList{}, - - &VolumeAttachment{}, - &VolumeAttachmentList{}, - - &CSIDriver{}, - &CSIDriverList{}, - - &CSINode{}, - &CSINodeList{}, - ) - - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/api/storage/v1beta1/types.go b/pseudo/k8s/api/storage/v1beta1/types.go deleted file mode 100644 index c6cc247af..000000000 --- a/pseudo/k8s/api/storage/v1beta1/types.go +++ /dev/null @@ -1,438 +0,0 @@ -/* -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 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StorageClass describes the parameters for a class of storage for -// which PersistentVolumes can be dynamically provisioned. -// -// StorageClasses are non-namespaced; the name of the storage class -// according to etcd is in ObjectMeta.Name. -type StorageClass struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Provisioner indicates the type of the provisioner. - Provisioner string `json:"provisioner" protobuf:"bytes,2,opt,name=provisioner"` - - // Parameters holds the parameters for the provisioner that should - // create volumes of this storage class. - // +optional - Parameters map[string]string `json:"parameters,omitempty" protobuf:"bytes,3,rep,name=parameters"` - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with this reclaimPolicy. Defaults to Delete. - // +optional - ReclaimPolicy *v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty" protobuf:"bytes,4,opt,name=reclaimPolicy,casttype=sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1.PersistentVolumeReclaimPolicy"` - - // Dynamically provisioned PersistentVolumes of this storage class are - // created with these mountOptions, e.g. ["ro", "soft"]. Not validated - - // mount of the PVs will simply fail if one is invalid. - // +optional - MountOptions []string `json:"mountOptions,omitempty" protobuf:"bytes,5,opt,name=mountOptions"` - - // AllowVolumeExpansion shows whether the storage class allow volume expand - // +optional - AllowVolumeExpansion *bool `json:"allowVolumeExpansion,omitempty" protobuf:"varint,6,opt,name=allowVolumeExpansion"` - - // VolumeBindingMode indicates how PersistentVolumeClaims should be - // provisioned and bound. When unset, VolumeBindingImmediate is used. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - VolumeBindingMode *VolumeBindingMode `json:"volumeBindingMode,omitempty" protobuf:"bytes,7,opt,name=volumeBindingMode"` - - // Restrict the node topologies where volumes can be dynamically provisioned. - // Each volume plugin defines its own supported topology specifications. - // An empty TopologySelectorTerm list means there is no topology restriction. - // This field is only honored by servers that enable the VolumeScheduling feature. - // +optional - AllowedTopologies []v1.TopologySelectorTerm `json:"allowedTopologies,omitempty" protobuf:"bytes,8,rep,name=allowedTopologies"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// StorageClassList is a collection of storage classes. -type StorageClassList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of StorageClasses - Items []StorageClass `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeBindingMode indicates how PersistentVolumeClaims should be bound. -type VolumeBindingMode string - -const ( - // VolumeBindingImmediate indicates that PersistentVolumeClaims should be - // immediately provisioned and bound. This is the default mode. - VolumeBindingImmediate VolumeBindingMode = "Immediate" - - // VolumeBindingWaitForFirstConsumer indicates that PersistentVolumeClaims - // should not be provisioned and bound until the first Pod is created that - // references the PeristentVolumeClaim. The volume provisioning and - // binding will occur during Pod scheduing. - VolumeBindingWaitForFirstConsumer VolumeBindingMode = "WaitForFirstConsumer" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// VolumeAttachment captures the intent to attach or detach the specified volume -// to/from the specified node. -// -// VolumeAttachment objects are non-namespaced. -type VolumeAttachment struct { - metav1.TypeMeta `json:",inline"` - - // Standard object metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired attach/detach volume behavior. - // Populated by the Kubernetes system. - Spec VolumeAttachmentSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` - - // Status of the VolumeAttachment request. - // Populated by the entity completing the attach or detach - // operation, i.e. the external-attacher. - // +optional - Status VolumeAttachmentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// VolumeAttachmentList is a collection of VolumeAttachment objects. -type VolumeAttachmentList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Items is the list of VolumeAttachments - Items []VolumeAttachment `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// VolumeAttachmentSpec is the specification of a VolumeAttachment request. -type VolumeAttachmentSpec struct { - // Attacher indicates the name of the volume driver that MUST handle this - // request. This is the name returned by GetPluginName(). - Attacher string `json:"attacher" protobuf:"bytes,1,opt,name=attacher"` - - // Source represents the volume that should be attached. - Source VolumeAttachmentSource `json:"source" protobuf:"bytes,2,opt,name=source"` - - // The node that the volume should be attached to. - NodeName string `json:"nodeName" protobuf:"bytes,3,opt,name=nodeName"` -} - -// VolumeAttachmentSource represents a volume that should be attached. -// Right now only PersistenVolumes can be attached via external attacher, -// in future we may allow also inline volumes in pods. -// Exactly one member can be set. -type VolumeAttachmentSource struct { - // Name of the persistent volume to attach. - // +optional - PersistentVolumeName *string `json:"persistentVolumeName,omitempty" protobuf:"bytes,1,opt,name=persistentVolumeName"` - - // inlineVolumeSpec contains all the information necessary to attach - // a persistent volume defined by a pod's inline VolumeSource. This field - // is populated only for the CSIMigration feature. It contains - // translated fields from a pod's inline VolumeSource to a - // PersistentVolumeSpec. This field is alpha-level and is only - // honored by servers that enabled the CSIMigration feature. - // +optional - InlineVolumeSpec *v1.PersistentVolumeSpec `json:"inlineVolumeSpec,omitempty" protobuf:"bytes,2,opt,name=inlineVolumeSpec"` -} - -// VolumeAttachmentStatus is the status of a VolumeAttachment request. -type VolumeAttachmentStatus struct { - // Indicates the volume is successfully attached. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - Attached bool `json:"attached" protobuf:"varint,1,opt,name=attached"` - - // Upon successful attach, this field is populated with any - // information returned by the attach operation that must be passed - // into subsequent WaitForAttach or Mount calls. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - AttachmentMetadata map[string]string `json:"attachmentMetadata,omitempty" protobuf:"bytes,2,rep,name=attachmentMetadata"` - - // The last error encountered during attach operation, if any. - // This field must only be set by the entity completing the attach - // operation, i.e. the external-attacher. - // +optional - AttachError *VolumeError `json:"attachError,omitempty" protobuf:"bytes,3,opt,name=attachError,casttype=VolumeError"` - - // The last error encountered during detach operation, if any. - // This field must only be set by the entity completing the detach - // operation, i.e. the external-attacher. - // +optional - DetachError *VolumeError `json:"detachError,omitempty" protobuf:"bytes,4,opt,name=detachError,casttype=VolumeError"` -} - -// VolumeError captures an error encountered during a volume operation. -type VolumeError struct { - // Time the error was encountered. - // +optional - Time metav1.Time `json:"time,omitempty" protobuf:"bytes,1,opt,name=time"` - - // String detailing the error encountered during Attach or Detach operation. - // This string may be logged, so it should not contain sensitive - // information. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"` -} - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CSIDriver captures information about a Container Storage Interface (CSI) -// volume driver deployed on the cluster. -// CSI drivers do not need to create the CSIDriver object directly. Instead they may use the -// cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically -// creates a CSIDriver object representing the driver. -// Kubernetes attach detach controller uses this object to determine whether attach is required. -// Kubelet uses this object to determine whether pod information needs to be passed on mount. -// CSIDriver objects are non-namespaced. -type CSIDriver struct { - metav1.TypeMeta `json:",inline"` - - // Standard object metadata. - // metadata.Name indicates the name of the CSI driver that this object - // refers to; it MUST be the same name returned by the CSI GetPluginName() - // call for that driver. - // The driver name must be 63 characters or less, beginning and ending with - // an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and - // alphanumerics between. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the CSI Driver. - Spec CSIDriverSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CSIDriverList is a collection of CSIDriver objects. -type CSIDriverList struct { - metav1.TypeMeta `json:",inline"` - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of CSIDriver - Items []CSIDriver `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -// CSIDriverSpec is the specification of a CSIDriver. -type CSIDriverSpec struct { - // attachRequired indicates this CSI volume driver requires an attach - // operation (because it implements the CSI ControllerPublishVolume() - // method), and that the Kubernetes attach detach controller should call - // the attach volume interface which checks the volumeattachment status - // and waits until the volume is attached before proceeding to mounting. - // The CSI external-attacher coordinates with CSI volume driver and updates - // the volumeattachment status when the attach operation is complete. - // If the CSIDriverRegistry feature gate is enabled and the value is - // specified to false, the attach operation will be skipped. - // Otherwise the attach operation will be called. - // +optional - AttachRequired *bool `json:"attachRequired,omitempty" protobuf:"varint,1,opt,name=attachRequired"` - - // If set to true, podInfoOnMount indicates this CSI volume driver - // requires additional pod information (like podName, podUID, etc.) during - // mount operations. - // If set to false, pod information will not be passed on mount. - // Default is false. - // The CSI driver specifies podInfoOnMount as part of driver deployment. - // If true, Kubelet will pass pod information as VolumeContext in the CSI - // NodePublishVolume() calls. - // The CSI driver is responsible for parsing and validating the information - // passed in as VolumeContext. - // The following VolumeConext will be passed if podInfoOnMount is set to true. - // This list might grow, but the prefix will be used. - // "csi.storage.k8s.io/pod.name": pod.Name - // "csi.storage.k8s.io/pod.namespace": pod.Namespace - // "csi.storage.k8s.io/pod.uid": string(pod.UID) - // "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - // defined by a CSIVolumeSource, otherwise "false" - // - // "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only - // required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. - // Other drivers can leave pod info disabled and/or ignore this field. - // As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when - // deployed on such a cluster and the deployment determines which mode that is, for example - // via a command line parameter of the driver. - // +optional - PodInfoOnMount *bool `json:"podInfoOnMount,omitempty" protobuf:"bytes,2,opt,name=podInfoOnMount"` - - // VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. - // The default if the list is empty is "Persistent", which is the usage - // defined by the CSI specification and implemented in Kubernetes via the usual - // PV/PVC mechanism. - // The other mode is "Ephemeral". In this mode, volumes are defined inline - // inside the pod spec with CSIVolumeSource and their lifecycle is tied to - // the lifecycle of that pod. A driver has to be aware of this - // because it is only going to get a NodePublishVolume call for such a volume. - // For more information about implementing this mode, see - // https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html - // A driver can support one or more of these modes and - // more modes may be added in the future. - // +optional - VolumeLifecycleModes []VolumeLifecycleMode `json:"volumeLifecycleModes,omitempty" protobuf:"bytes,3,opt,name=volumeLifecycleModes"` -} - -// VolumeLifecycleMode is an enumeration of possible usage modes for a volume -// provided by a CSI driver. More modes may be added in the future. -type VolumeLifecycleMode string - -const ( - // VolumeLifecyclePersistent explicitly confirms that the driver implements - // the full CSI spec. It is the default when CSIDriverSpec.VolumeLifecycleModes is not - // set. Such volumes are managed in Kubernetes via the persistent volume - // claim mechanism and have a lifecycle that is independent of the pods which - // use them. - VolumeLifecyclePersistent VolumeLifecycleMode = "Persistent" - - // VolumeLifecycleEphemeral indicates that the driver can be used for - // ephemeral inline volumes. Such volumes are specified inside the pod - // spec with a CSIVolumeSource and, as far as Kubernetes is concerned, have - // a lifecycle that is tied to the lifecycle of the pod. For example, such - // a volume might contain data that gets created specifically for that pod, - // like secrets. - // But how the volume actually gets created and managed is entirely up to - // the driver. It might also use reference counting to share the same volume - // instance among different pods if the CSIVolumeSource of those pods is - // identical. - VolumeLifecycleEphemeral VolumeLifecycleMode = "Ephemeral" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CSINode holds information about all CSI drivers installed on a node. -// CSI drivers do not need to create the CSINode object directly. As long as -// they use the node-driver-registrar sidecar container, the kubelet will -// automatically populate the CSINode object for the CSI driver as part of -// kubelet plugin registration. -// CSINode has the same name as a node. If the object is missing, it means either -// there are no CSI Drivers available on the node, or the Kubelet version is low -// enough that it doesn't create this object. -// CSINode has an OwnerReference that points to the corresponding node object. -type CSINode struct { - metav1.TypeMeta `json:",inline"` - - // metadata.name must be the Kubernetes node name. - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // spec is the specification of CSINode - Spec CSINodeSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` -} - -// CSINodeSpec holds information about the specification of all CSI drivers installed on a node -type CSINodeSpec struct { - // drivers is a list of information of all CSI Drivers existing on a node. - // If all drivers in the list are uninstalled, this can become empty. - // +patchMergeKey=name - // +patchStrategy=merge - Drivers []CSINodeDriver `json:"drivers" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,rep,name=drivers"` -} - -// CSINodeDriver holds information about the specification of one CSI driver installed on a node -type CSINodeDriver struct { - // This is the name of the CSI driver that this object refers to. - // This MUST be the same name returned by the CSI GetPluginName() call for - // that driver. - Name string `json:"name" protobuf:"bytes,1,opt,name=name"` - - // nodeID of the node from the driver point of view. - // This field enables Kubernetes to communicate with storage systems that do - // not share the same nomenclature for nodes. For example, Kubernetes may - // refer to a given node as "node1", but the storage system may refer to - // the same node as "nodeA". When Kubernetes issues a command to the storage - // system to attach a volume to a specific node, it can use this field to - // refer to the node name using the ID that the storage system will - // understand, e.g. "nodeA" instead of "node1". This field is required. - NodeID string `json:"nodeID" protobuf:"bytes,2,opt,name=nodeID"` - - // topologyKeys is the list of keys supported by the driver. - // When a driver is initialized on a cluster, it provides a set of topology - // keys that it understands (e.g. "company.com/zone", "company.com/region"). - // When a driver is initialized on a node, it provides the same topology keys - // along with values. Kubelet will expose these topology keys as labels - // on its own node object. - // When Kubernetes does topology aware provisioning, it can use this list to - // determine which labels it should retrieve from the node object and pass - // back to the driver. - // It is possible for different nodes to use different topology keys. - // This can be empty if driver does not support topology. - // +optional - TopologyKeys []string `json:"topologyKeys" protobuf:"bytes,3,rep,name=topologyKeys"` - - // allocatable represents the volume resources of a node that are available for scheduling. - // +optional - Allocatable *VolumeNodeResources `json:"allocatable,omitempty" protobuf:"bytes,4,opt,name=allocatable"` -} - -// VolumeNodeResources is a set of resource limits for scheduling of volumes. -type VolumeNodeResources struct { - // Maximum number of unique volumes managed by the CSI driver that can be used on a node. - // A volume that is both attached and mounted on a node is considered to be used once, not twice. - // The same rule applies for a unique volume that is shared among multiple pods on the same node. - // If this field is nil, then the supported number of volumes on this node is unbounded. - // +optional - Count *int32 `json:"count,omitempty" protobuf:"varint,1,opt,name=count"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CSINodeList is a collection of CSINode objects. -type CSINodeList struct { - metav1.TypeMeta `json:",inline"` - - // Standard list metadata - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items is the list of CSINode - Items []CSINode `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/api/storage/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/api/storage/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index fe80a8e50..000000000 --- a/pseudo/k8s/api/storage/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,200 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_CSIDriver = map[string]string{ - "": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", - "metadata": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the CSI Driver.", -} - -func (CSIDriver) SwaggerDoc() map[string]string { - return map_CSIDriver -} - -var map_CSIDriverList = map[string]string{ - "": "CSIDriverList is a collection of CSIDriver objects.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of CSIDriver", -} - -func (CSIDriverList) SwaggerDoc() map[string]string { - return map_CSIDriverList -} - -var map_CSIDriverSpec = map[string]string{ - "": "CSIDriverSpec is the specification of a CSIDriver.", - "attachRequired": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.", - "podInfoOnMount": "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" iff the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.", - "volumeLifecycleModes": "VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.", -} - -func (CSIDriverSpec) SwaggerDoc() map[string]string { - return map_CSIDriverSpec -} - -var map_CSINode = map[string]string{ - "": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", - "metadata": "metadata.name must be the Kubernetes node name.", - "spec": "spec is the specification of CSINode", -} - -func (CSINode) SwaggerDoc() map[string]string { - return map_CSINode -} - -var map_CSINodeDriver = map[string]string{ - "": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", - "name": "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", - "nodeID": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", - "topologyKeys": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", - "allocatable": "allocatable represents the volume resources of a node that are available for scheduling.", -} - -func (CSINodeDriver) SwaggerDoc() map[string]string { - return map_CSINodeDriver -} - -var map_CSINodeList = map[string]string{ - "": "CSINodeList is a collection of CSINode objects.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "items is the list of CSINode", -} - -func (CSINodeList) SwaggerDoc() map[string]string { - return map_CSINodeList -} - -var map_CSINodeSpec = map[string]string{ - "": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", - "drivers": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", -} - -func (CSINodeSpec) SwaggerDoc() map[string]string { - return map_CSINodeSpec -} - -var map_StorageClass = map[string]string{ - "": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "provisioner": "Provisioner indicates the type of the provisioner.", - "parameters": "Parameters holds the parameters for the provisioner that should create volumes of this storage class.", - "reclaimPolicy": "Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.", - "mountOptions": "Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", - "allowVolumeExpansion": "AllowVolumeExpansion shows whether the storage class allow volume expand", - "volumeBindingMode": "VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", - "allowedTopologies": "Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", -} - -func (StorageClass) SwaggerDoc() map[string]string { - return map_StorageClass -} - -var map_StorageClassList = map[string]string{ - "": "StorageClassList is a collection of storage classes.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of StorageClasses", -} - -func (StorageClassList) SwaggerDoc() map[string]string { - return map_StorageClassList -} - -var map_VolumeAttachment = map[string]string{ - "": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", - "metadata": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "spec": "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", - "status": "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", -} - -func (VolumeAttachment) SwaggerDoc() map[string]string { - return map_VolumeAttachment -} - -var map_VolumeAttachmentList = map[string]string{ - "": "VolumeAttachmentList is a collection of VolumeAttachment objects.", - "metadata": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "items": "Items is the list of VolumeAttachments", -} - -func (VolumeAttachmentList) SwaggerDoc() map[string]string { - return map_VolumeAttachmentList -} - -var map_VolumeAttachmentSource = map[string]string{ - "": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", - "persistentVolumeName": "Name of the persistent volume to attach.", -} - -func (VolumeAttachmentSource) SwaggerDoc() map[string]string { - return map_VolumeAttachmentSource -} - -var map_VolumeAttachmentSpec = map[string]string{ - "": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", - "attacher": "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", - "source": "Source represents the volume that should be attached.", - "nodeName": "The node that the volume should be attached to.", -} - -func (VolumeAttachmentSpec) SwaggerDoc() map[string]string { - return map_VolumeAttachmentSpec -} - -var map_VolumeAttachmentStatus = map[string]string{ - "": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", - "attached": "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "attachmentMetadata": "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "attachError": "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", - "detachError": "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", -} - -func (VolumeAttachmentStatus) SwaggerDoc() map[string]string { - return map_VolumeAttachmentStatus -} - -var map_VolumeError = map[string]string{ - "": "VolumeError captures an error encountered during a volume operation.", - "time": "Time the error was encountered.", - "message": "String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", -} - -func (VolumeError) SwaggerDoc() map[string]string { - return map_VolumeError -} - -var map_VolumeNodeResources = map[string]string{ - "": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", - "count": "Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded.", -} - -func (VolumeNodeResources) SwaggerDoc() map[string]string { - return map_VolumeNodeResources -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/api/storage/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/api/storage/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index f99f3b64d..000000000 --- a/pseudo/k8s/api/storage/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,494 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSIDriver) DeepCopyInto(out *CSIDriver) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriver. -func (in *CSIDriver) DeepCopy() *CSIDriver { - if in == nil { - return nil - } - out := new(CSIDriver) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CSIDriver) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSIDriverList) DeepCopyInto(out *CSIDriverList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CSIDriver, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriverList. -func (in *CSIDriverList) DeepCopy() *CSIDriverList { - if in == nil { - return nil - } - out := new(CSIDriverList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CSIDriverList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSIDriverSpec) DeepCopyInto(out *CSIDriverSpec) { - *out = *in - if in.AttachRequired != nil { - in, out := &in.AttachRequired, &out.AttachRequired - *out = new(bool) - **out = **in - } - if in.PodInfoOnMount != nil { - in, out := &in.PodInfoOnMount, &out.PodInfoOnMount - *out = new(bool) - **out = **in - } - if in.VolumeLifecycleModes != nil { - in, out := &in.VolumeLifecycleModes, &out.VolumeLifecycleModes - *out = make([]VolumeLifecycleMode, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIDriverSpec. -func (in *CSIDriverSpec) DeepCopy() *CSIDriverSpec { - if in == nil { - return nil - } - out := new(CSIDriverSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSINode) DeepCopyInto(out *CSINode) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINode. -func (in *CSINode) DeepCopy() *CSINode { - if in == nil { - return nil - } - out := new(CSINode) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CSINode) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSINodeDriver) DeepCopyInto(out *CSINodeDriver) { - *out = *in - if in.TopologyKeys != nil { - in, out := &in.TopologyKeys, &out.TopologyKeys - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Allocatable != nil { - in, out := &in.Allocatable, &out.Allocatable - *out = new(VolumeNodeResources) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeDriver. -func (in *CSINodeDriver) DeepCopy() *CSINodeDriver { - if in == nil { - return nil - } - out := new(CSINodeDriver) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSINodeList) DeepCopyInto(out *CSINodeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]CSINode, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeList. -func (in *CSINodeList) DeepCopy() *CSINodeList { - if in == nil { - return nil - } - out := new(CSINodeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CSINodeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CSINodeSpec) DeepCopyInto(out *CSINodeSpec) { - *out = *in - if in.Drivers != nil { - in, out := &in.Drivers, &out.Drivers - *out = make([]CSINodeDriver, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSINodeSpec. -func (in *CSINodeSpec) DeepCopy() *CSINodeSpec { - if in == nil { - return nil - } - out := new(CSINodeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageClass) DeepCopyInto(out *StorageClass) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.ReclaimPolicy != nil { - in, out := &in.ReclaimPolicy, &out.ReclaimPolicy - *out = new(v1.PersistentVolumeReclaimPolicy) - **out = **in - } - if in.MountOptions != nil { - in, out := &in.MountOptions, &out.MountOptions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.AllowVolumeExpansion != nil { - in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion - *out = new(bool) - **out = **in - } - if in.VolumeBindingMode != nil { - in, out := &in.VolumeBindingMode, &out.VolumeBindingMode - *out = new(VolumeBindingMode) - **out = **in - } - if in.AllowedTopologies != nil { - in, out := &in.AllowedTopologies, &out.AllowedTopologies - *out = make([]v1.TopologySelectorTerm, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass. -func (in *StorageClass) DeepCopy() *StorageClass { - if in == nil { - return nil - } - out := new(StorageClass) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StorageClass) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageClassList) DeepCopyInto(out *StorageClassList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]StorageClass, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList. -func (in *StorageClassList) DeepCopy() *StorageClassList { - if in == nil { - return nil - } - out := new(StorageClassList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StorageClassList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachment. -func (in *VolumeAttachment) DeepCopy() *VolumeAttachment { - if in == nil { - return nil - } - out := new(VolumeAttachment) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeAttachment) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VolumeAttachment, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentList. -func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList { - if in == nil { - return nil - } - out := new(VolumeAttachmentList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) { - *out = *in - if in.PersistentVolumeName != nil { - in, out := &in.PersistentVolumeName, &out.PersistentVolumeName - *out = new(string) - **out = **in - } - if in.InlineVolumeSpec != nil { - in, out := &in.InlineVolumeSpec, &out.InlineVolumeSpec - *out = new(v1.PersistentVolumeSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSource. -func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource { - if in == nil { - return nil - } - out := new(VolumeAttachmentSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) { - *out = *in - in.Source.DeepCopyInto(&out.Source) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentSpec. -func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec { - if in == nil { - return nil - } - out := new(VolumeAttachmentSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) { - *out = *in - if in.AttachmentMetadata != nil { - in, out := &in.AttachmentMetadata, &out.AttachmentMetadata - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.AttachError != nil { - in, out := &in.AttachError, &out.AttachError - *out = new(VolumeError) - (*in).DeepCopyInto(*out) - } - if in.DetachError != nil { - in, out := &in.DetachError, &out.DetachError - *out = new(VolumeError) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAttachmentStatus. -func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus { - if in == nil { - return nil - } - out := new(VolumeAttachmentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeError) DeepCopyInto(out *VolumeError) { - *out = *in - in.Time.DeepCopyInto(&out.Time) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeError. -func (in *VolumeError) DeepCopy() *VolumeError { - if in == nil { - return nil - } - out := new(VolumeError) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeNodeResources) DeepCopyInto(out *VolumeNodeResources) { - *out = *in - if in.Count != nil { - in, out := &in.Count, &out.Count - *out = new(int32) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeNodeResources. -func (in *VolumeNodeResources) DeepCopy() *VolumeNodeResources { - if in == nil { - return nil - } - out := new(VolumeNodeResources) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.json b/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.json deleted file mode 100644 index eb137b6d9..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "kind": "AdmissionReview", - "apiVersion": "admission.k8s.io/v1", - "request": { - "uid": "ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ", - "kind": { - "group": "2", - "version": "3", - "kind": "4" - }, - "resource": { - "group": "5", - "version": "6", - "resource": "7" - }, - "subResource": "8", - "requestKind": { - "group": "9", - "version": "10", - "kind": "11" - }, - "requestResource": { - "group": "12", - "version": "13", - "resource": "14" - }, - "requestSubResource": "15", - "name": "16", - "namespace": "17", - "operation": "¡ıŵDz", - "userInfo": { - "username": "18", - "uid": "19", - "groups": [ - "20" - ], - "extra": { - "21": [ - "22" -] - } - }, - "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "oldObject": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "dryRun": false, - "options": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}} - }, - "response": { - "uid": "輂]¨\u0026桰]]æȌ殸2爟¼ªov鈶", - "allowed": false, - "status": { - "metadata": { - "selfLink": "(湗Ć]ʪƬ滈憴Uą飋ī", - "resourceVersion": "71208173751669476" - }, - "status": "23", - "message": "24", - "reason": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ", - "details": { - "name": "25", - "group": "26", - "kind": "27", - "uid": "Ƣ6/ʕVŚ(ĿȊ甞", - "causes": [ - { - "reason": "颋Dž", - "message": "28", - "field": "29" - } - ], - "retryAfterSeconds": 1001983654 - }, - "code": 153738858 - }, - "patch": "fQ==", - "patchType": "-Ǐ忄*齧獚敆Ȏțê", - "auditAnnotations": { - "30": "31" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.pb b/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1.AdmissionReview.pb deleted file mode 100644 index de772dcfb1bf3532343d8d4d74eecc147cf25ca1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 727 zcmd0{C}!YN;}T9x$;~V-&dkr#%eE-i%gom=GZf-?gb41acJR@jYqe-R5?j-F&SD2F&SD)F&P;sad9yj849rgNh7ZmuB2+E z#DdJQ)FP0xl&q9eD-v@Ha#Hn@^K*f&Q_@k&&df^ziaVDUm*nS$R2HNH#fl43la;Kh zm5Ndeax#+>i8k&wO6M^+07nj0D!SQwfc zo0}S%nOT~cn@KSUF&P2vF)~q7@F;q@ey8TMnfq<>b&_AM+nZlh@@z)$(V0hjo^@_F zJvLp-3>dwpK=o!o_2x?aT&yn_bsuj93RnOIEH#$ReR7xCNbuMqGyPLj!;a3|)JJ?2rIOI$5x#>v89IInZx?=rZcfhmos;wb=bV^gGVmfCR-*~s zG<9Rr6H`o&Zj5DcSWByz8@%$rGp=QH?H;$@4=a7}Y~xw?bFN(s2D@w9=bT?ZTFdtP z-QL#QgXiVWdTW6@4q3vnBF}nxn)*0a;#nE7iW^{w04xUv>MPc##@Fl9SBD|M3J0*C z2Sh*+0)n|?G?JT97@k3DQlHRLhu%;CY4_DcGOl?dMuJ*IqbR0NMk&8GWu}e9tp`bs zGBc?~P+$h7v}9b5s3r>FETw5RJwU6RDXBgUilab?QgW_?44cGD=gQm^|Fz13g1pKe2Iku zJmaz}i&j3=DL1$6p9MSr<+hb`)@H3OZb-&NP_Qh@J}gOouPpHl2ME<6UNjO+IUgz) z>{9KrF&c4p_KZ~8emUPLS#$Q|@4n`uTcYpv(Rqo^%V-exJFBy;90dvme%Hq9Kfn9P zP;*rp>l7y%OD?O{e$spKM)+IZyn)!P`}C#O({AmN+u7Uf%`e%-e0!n&YQIbdAP@x( Jh?r*(^AF%V1)2Z= diff --git a/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.yaml b/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.yaml deleted file mode 100644 index 2e9e90ee7..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admission.k8s.io.v1beta1.AdmissionReview.yaml +++ /dev/null @@ -1,80 +0,0 @@ -apiVersion: admission.k8s.io/v1beta1 -kind: AdmissionReview -request: - dryRun: false - kind: - group: "2" - kind: "4" - version: "3" - name: "16" - namespace: "17" - object: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 - oldObject: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 - operation: ¡ıŵDz - options: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 - requestKind: - group: "9" - kind: "11" - version: "10" - requestResource: - group: "12" - resource: "14" - version: "13" - requestSubResource: "15" - resource: - group: "5" - resource: "7" - version: "6" - subResource: "8" - uid: ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ - userInfo: - extra: - "21": - - "22" - groups: - - "20" - uid: "19" - username: "18" -response: - allowed: false - auditAnnotations: - "30": "31" - patch: fQ== - patchType: -Ǐ忄*齧獚敆Ȏțê - status: - code: 153738858 - details: - causes: - - field: "29" - message: "28" - reason: 颋Dž - group: "26" - kind: "27" - name: "25" - retryAfterSeconds: 1001983654 - uid: Ƣ6/ʕVŚ(ĿȊ甞 - message: "24" - metadata: - resourceVersion: "71208173751669476" - selfLink: (湗Ć]ʪƬ滈憴Uą飋ī - reason: Hr鯹)晿kz~mJEi%sdUnx=6@VDQ#c%VXBBj|JCo*EEYuqe49DZqOYzuHIF$L%Lz8yttsn^m z393V&E^;7hD(5S+i6)Wz+DsuSDl{i5T3&E-s*W0J zbNPcpzV>>tyac|3;`^OVzk9!MzxsTlvHEGgG6m%AGIP81W`6-6F07#jE}&eX@wDzbSzVYZFP5gOPdBy7 z{O-rfs_u53xKV!DSlZsp|0paSuFut0r<&FU$s?HrE4T}fz)j3BP>S&&W~@DA0%1|F zrQo2}2`s3q444Wr;DMHjquzysis9z!kb5~jxfMG!p{00pSK$hc?$T-zN rF+kQp%>gx4)2+f~f|+h`dKcdg?~~6Aki%&*hU(hx@~cfbY%beB%Yo%x diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml deleted file mode 100644 index 652580781..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.MutatingWebhookConfiguration.yaml +++ /dev/null @@ -1,72 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1 -kind: MutatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -webhooks: -- admissionReviewVersions: - - "39" - clientConfig: - caBundle: IQ== - service: - name: "22" - namespace: "21" - path: "23" - port: -1971381490 - url: "20" - failurePolicy: VŚ(ĿȊ甞谐颋 - matchPolicy: SǡƏ - name: "19" - namespaceSelector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - 2.1.L.l-Y._.-44..d.__Gg8-2_kS91.e5K-_e63_-_3-n-_-__3u-.J: G_.7U-Uo_4_-D7r__.am64 - objectSelector: - matchExpressions: - - key: 35--5ht-a-29--0qso79yg--79-e-a74bc-v--0jjy45-17-05-3z-4838/3-H2._67yg-Ln-__.-__2--z.t2w - operator: Exists - matchLabels: - 7p_w.e6._.pj5t_k-_v.-6b6.N_-u.---.8-L: k-U.v.4 - reinvocationPolicy: 錯ƶ - rules: - - apiGroups: - - "24" - apiVersions: - - "25" - operations: - - 8衍`Ĩɘ.蘯 - resources: - - "26" - scope: 昍řČ扷5ƗǸƢ6/ - sideEffects: Ɵ)Ù - timeoutSeconds: 1132918207 diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json deleted file mode 100644 index d6fefa461..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "kind": "ValidatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "webhooks": [ - { - "name": "19", - "clientConfig": { - "url": "20", - "service": { - "namespace": "21", - "name": "22", - "path": "23", - "port": -1971381490 - }, - "caBundle": "IQ==" - }, - "rules": [ - { - "operations": [ - "8衍`Ĩɘ.蘯" - ], - "apiGroups": [ - "24" - ], - "apiVersions": [ - "25" - ], - "resources": [ - "26" - ], - "scope": "昍řČ扷5ƗǸƢ6/" - } - ], - "failurePolicy": "VŚ(ĿȊ甞谐颋", - "matchPolicy": "SǡƏ", - "namespaceSelector": { - "matchLabels": { - "2.1.L.l-Y._.-44..d.__Gg8-2_kS91.e5K-_e63_-_3-n-_-__3u-.J": "G_.7U-Uo_4_-D7r__.am64" - }, - "matchExpressions": [ - { - "key": "2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5", - "operator": "In", - "values": [ - "Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8" - ] - } - ] - }, - "objectSelector": { - "matchLabels": { - "7p_w.e6._.pj5t_k-_v.-6b6.N_-u.---.8-L": "k-U.v.4" - }, - "matchExpressions": [ - { - "key": "35--5ht-a-29--0qso79yg--79-e-a74bc-v--0jjy45-17-05-3z-4838/3-H2._67yg-Ln-__.-__2--z.t2w", - "operator": "Exists" - } - ] - }, - "sideEffects": "Ɵ)Ù", - "timeoutSeconds": 1132918207, - "admissionReviewVersions": [ - "39" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.pb b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.pb deleted file mode 100644 index cde77cd054741afe56c1d949bb57340e4497d3b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 717 zcmX9+O-vI(6z;Ad$tIdO8cll8(!>Nw-gI|%_U{NnP(ai+1tc-!7D{OgZSA&2YCNFv zuZUn$184&QFM2R?P|wR3Cp#E6f)GqH%An0iGluOkouUDW5X@QaERbW2=w1EH z&#iG!W&|^U0HbX!3^WFG^eQEn01^slNW7SEdoE`cJjSrr(g!R6SdCzVk>Q>}4Y+~7 z-z4?brE{AL=Ekp=rMgy8wL0qqTg%lM|8qf-rL#tgjpMM+2T8@W42uKHVbDW5?qQI{ z0Dw*CMh$TY;vA;Pmikl;KpV+`4a5SFZ#qfCnuq`x7KFhzXlM{}9FN5&s0NAwvIc4% msHvJh6)q6Wbc55o`C52`d{}@y&X93*xcwGCSjX-1y8Z!mdE$)# diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml deleted file mode 100644 index 8a3ce445e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1.ValidatingWebhookConfiguration.yaml +++ /dev/null @@ -1,71 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -webhooks: -- admissionReviewVersions: - - "39" - clientConfig: - caBundle: IQ== - service: - name: "22" - namespace: "21" - path: "23" - port: -1971381490 - url: "20" - failurePolicy: VŚ(ĿȊ甞谐颋 - matchPolicy: SǡƏ - name: "19" - namespaceSelector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - 2.1.L.l-Y._.-44..d.__Gg8-2_kS91.e5K-_e63_-_3-n-_-__3u-.J: G_.7U-Uo_4_-D7r__.am64 - objectSelector: - matchExpressions: - - key: 35--5ht-a-29--0qso79yg--79-e-a74bc-v--0jjy45-17-05-3z-4838/3-H2._67yg-Ln-__.-__2--z.t2w - operator: Exists - matchLabels: - 7p_w.e6._.pj5t_k-_v.-6b6.N_-u.---.8-L: k-U.v.4 - rules: - - apiGroups: - - "24" - apiVersions: - - "25" - operations: - - 8衍`Ĩɘ.蘯 - resources: - - "26" - scope: 昍řČ扷5ƗǸƢ6/ - sideEffects: Ɵ)Ù - timeoutSeconds: 1132918207 diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json deleted file mode 100644 index 95d589b3b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "kind": "MutatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "webhooks": [ - { - "name": "19", - "clientConfig": { - "url": "20", - "service": { - "namespace": "21", - "name": "22", - "path": "23", - "port": -1971381490 - }, - "caBundle": "IQ==" - }, - "rules": [ - { - "operations": [ - "8衍`Ĩɘ.蘯" - ], - "apiGroups": [ - "24" - ], - "apiVersions": [ - "25" - ], - "resources": [ - "26" - ], - "scope": "昍řČ扷5ƗǸƢ6/" - } - ], - "failurePolicy": "VŚ(ĿȊ甞谐颋", - "matchPolicy": "SǡƏ", - "namespaceSelector": { - "matchLabels": { - "2.1.L.l-Y._.-44..d.__Gg8-2_kS91.e5K-_e63_-_3-n-_-__3u-.J": "G_.7U-Uo_4_-D7r__.am64" - }, - "matchExpressions": [ - { - "key": "2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5", - "operator": "In", - "values": [ - "Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8" - ] - } - ] - }, - "objectSelector": { - "matchLabels": { - "7p_w.e6._.pj5t_k-_v.-6b6.N_-u.---.8-L": "k-U.v.4" - }, - "matchExpressions": [ - { - "key": "35--5ht-a-29--0qso79yg--79-e-a74bc-v--0jjy45-17-05-3z-4838/3-H2._67yg-Ln-__.-__2--z.t2w", - "operator": "Exists" - } - ] - }, - "sideEffects": "Ɵ)Ù", - "timeoutSeconds": 1132918207, - "admissionReviewVersions": [ - "39" - ], - "reinvocationPolicy": "錯ƶ" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb deleted file mode 100644 index 36f5b65ee7185ff8d3edb396ef5f338b082459aa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 727 zcmX9+O-vI}5bmy4l1()6X*6j(ltvRInb+O7Z-06OOHlsQHWef>&n=YF7TVfBq{agp zQ40trHGnn{@S+C;2L%lW4zvX>UX1bJnMz~g*@KC`#JS95=KH?+$;8aGP4Y_Tt-;Yq zIvq*GQ=xDqok>|49^;sq#*u_OrvyV8OF`$lvl(89hkHZ8;Y1>KDG?uvgtPy_Xwojd z6(oTmL3Ie!C1}lpK~5`*ObL}W>M>>0&}E&-s`>rbgRc`)rHN##?b^F1A09qh{#@D; z`j1J1fdn(yAPF8MDst2*i3)Luit0My%^z$P_a5I%R|?hHWV6V1ZKjYC6`B_ntsuBL zR7Z{VxxzuQP=CExS%Sbp>HW^8<=!veuRWh=s(qR-Pu}8c1`!n#eLKP#9^{nHN+MB^ zNO&WnI-hO)`SSZOHvtKaJR>`Zblf~#nYmqlv%i237uHZCCs0n%cv*Lysx8b^7R%GM zr<+=Je)nT_Rd>5i-l)86DsS%X!(?9M#7BImU?I z*~ffb8uw&|F$3^3>TO}5F`y&YDd`4?E1)6qO5EYRnpN;9!&*x(Fh5{5j15MHdImJ$ z0=_IFj&Xm0&1sE9g|OJsKI}rFgh66dXw;V&@X^;Yc|1AC3-c zq&I>j5G1H>fqDh4NifK9MUg3?vPLaaHVs|YiL9DGe&78*IaQoYwz#gmee~hp{iQF( zbzz`R5)34m!Foxskf_K}k0dI@Eh?(_NNa9)y|Df8wo}emW|B=J*L9gfN>pf0RJ6R{ z<4_$n?9b+R3;F$53*|-V*)6``T(f;Ug*(+}la1BSbEOB@xtc*l#YA5ZafXFF(n(1q z3K9u#L{!hykAJ`YIp8KBp@C;)H<1pTd&|=|O0Re3@!tG9)W8Xp6Et4dy~nEa)8&QI zlj`F&tunXusj{N`yhnS>FB(f5+xee`#l6+p{gtVvRYCGgCcz5s!lQ5vGYphsJcJo* z51T+(EMO@(q;&!d=_&)JLL9hbY6frzI?>Ls(E~jRMj5mkDaNoprc*Q^5rR3YjRmrd z5xujY`MEUiPLE&)5MZ>mnSsWDj$WnY5J`69`vmS!zep9&WUX1c-QUHmM3K)x(M4yVaDs%yK&zt(ZPysm$sIOJpi diff --git a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml deleted file mode 100644 index b44978962..000000000 --- a/pseudo/k8s/api/testdata/HEAD/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml +++ /dev/null @@ -1,71 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -webhooks: -- admissionReviewVersions: - - "39" - clientConfig: - caBundle: IQ== - service: - name: "22" - namespace: "21" - path: "23" - port: -1971381490 - url: "20" - failurePolicy: VŚ(ĿȊ甞谐颋 - matchPolicy: SǡƏ - name: "19" - namespaceSelector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - 2.1.L.l-Y._.-44..d.__Gg8-2_kS91.e5K-_e63_-_3-n-_-__3u-.J: G_.7U-Uo_4_-D7r__.am64 - objectSelector: - matchExpressions: - - key: 35--5ht-a-29--0qso79yg--79-e-a74bc-v--0jjy45-17-05-3z-4838/3-H2._67yg-Ln-__.-__2--z.t2w - operator: Exists - matchLabels: - 7p_w.e6._.pj5t_k-_v.-6b6.N_-u.---.8-L: k-U.v.4 - rules: - - apiGroups: - - "24" - apiVersions: - - "25" - operations: - - 8衍`Ĩɘ.蘯 - resources: - - "26" - scope: 昍řČ扷5ƗǸƢ6/ - sideEffects: Ɵ)Ù - timeoutSeconds: 1132918207 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.json b/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.json deleted file mode 100644 index b19b05eb4..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": -7716837448637516924 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.pb deleted file mode 100644 index b43b7d487c242e137154974d44b1a34267eb77d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 327 zcmd0{C}!Z2d#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh z#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ z5tE@w6_cT97o$EAYNevof}G6c#9}2Y!&;zdNn%MUkPS4kEHN`DF)1e%BvC8T@_g=- PxyvVgnZhW=pu_+Gn3Qc> diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.yaml deleted file mode 100644 index 634a51ed2..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.ControllerRevision.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: apps/v1 -data: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -kind: ControllerRevision -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -revision: -7716837448637516924 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.json b/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.json deleted file mode 100644 index 0d428f322..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.json +++ /dev/null @@ -1,1409 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "TʡȂŏ{sǡƟ", - "resourceVersion": "1698285396218902212", - "generation": -4139900758039117471, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7534629739119643351, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "^", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "ĪȸŹăȲϤĦʅ芝", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "" - }, - "emptyDir": { - "medium": "ɹ坼É/pȿ", - "sizeLimit": "804" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1318752360 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": -2007808768 - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": 228756891 - } - ], - "defaultMode": 1233814916, - "optional": false - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 408756018, - "iscsiInterface": "58", - "fsType": "59", - "readOnly": true, - "portals": [ - "60" - ], - "chapAuthDiscovery": true, - "chapAuthSession": true, - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64" - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "915" - }, - "mode": -1768075156 - } - ], - "defaultMode": -868808281 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": 570501002, - "fsType": "94", - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97", - "readOnly": true - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": 2020789772 - } - ], - "defaultMode": 952979935, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "k ź贩j瀉ǚrǜnh0åȂ", - "fsType": "112", - "readOnly": false, - "kind": "nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": 675406340 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "461" - }, - "mode": -1618937335 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": -1126738259 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": -6345861634934949644, - "path": "127" - } - } - ], - "defaultMode": 480521693 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129" - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "sslEnabled": true, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": true, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -1510026905, - "containerPort": 437857734, - "protocol": "Rƥ贫d飼$俊跾|@?鷅b", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": false - }, - "secretRef": { - "name": "156", - "optional": false - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "468" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": false - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "檲ɨ銦妰黖ȓƇ$缔獵偐ę腬": "646" - }, - "requests": { - "湨": "803" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "卩蝾", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": "175", - "host": "176", - "httpHeaders": [ - { - "name": "177", - "value": "178" - } - ] - }, - "tcpSocket": { - "port": "179", - "host": "180" - }, - "initialDelaySeconds": 1805144649, - "timeoutSeconds": -606111218, - "periodSeconds": 1403721475, - "successThreshold": 519906483, - "failureThreshold": 1466047181 - }, - "readinessProbe": { - "exec": { - "command": [ - "181" - ] - }, - "httpGet": { - "path": "182", - "port": "183", - "host": "184", - "scheme": "w垁鷌辪虽U珝Żwʮ馜üNșƶ4ĩ", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": -337353552, - "host": "187" - }, - "initialDelaySeconds": -1724160601, - "timeoutSeconds": -1158840571, - "periodSeconds": 1435507444, - "successThreshold": -1430577593, - "failureThreshold": 524249411 - }, - "startupProbe": { - "exec": { - "command": [ - "188" - ] - }, - "httpGet": { - "path": "189", - "port": "190", - "host": "191", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": "194", - "host": "195" - }, - "initialDelaySeconds": 364013971, - "timeoutSeconds": 1596422492, - "periodSeconds": -1790124395, - "successThreshold": 1094670193, - "failureThreshold": 905846572 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "蚛隖\u003cǶĬ4y£軶ǃ*ʙ嫙\u0026蒒5靇C'", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": 2126876305, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "Ŵ廷s{Ⱦdz@", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0", - "imagePullPolicy": "ŤǢʭ嵔棂p儼Ƿ裚瓶", - "securityContext": { - "capabilities": { - "add": [ - "+j忊Ŗȫ焗捏ĨFħ籘Àǒɿʒ刽ʼn" - ], - "drop": [ - "1ſ盷褎weLJèux榜VƋZ1Ůđ眊" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216", - "runAsUserName": "217" - }, - "runAsUser": 1563703589270296759, - "runAsGroup": 6506922239346928579, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "fǣ萭旿@" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": 1584001904, - "containerPort": -839281354, - "protocol": "5姣\u003e懔%熷谟þ蛯ɰ荶ljʁ", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": false - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "357" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": true - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0": "175" - }, - "requests": { - "ɺ皚|懥ƖN粕擓ƖHV": "962" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": -393291312, - "host": "246", - "scheme": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": "249", - "host": "250" - }, - "initialDelaySeconds": 627713162, - "timeoutSeconds": 1255312175, - "periodSeconds": -1740959124, - "successThreshold": 158280212, - "failureThreshold": -361442565 - }, - "readinessProbe": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": -2013568185, - "host": "253", - "scheme": "#yV'WKw(ğ儴Ůĺ}", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": -20130017, - "host": "256" - }, - "initialDelaySeconds": -1244623134, - "timeoutSeconds": -1334110502, - "periodSeconds": -398297599, - "successThreshold": 873056500, - "failureThreshold": -36782737 - }, - "startupProbe": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "Qg鄠[", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": -241238495, - "host": "263" - }, - "initialDelaySeconds": -1556231754, - "timeoutSeconds": 461585849, - "periodSeconds": -321709789, - "successThreshold": -1463645123, - "failureThreshold": -1011390276 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "264" - ] - }, - "httpGet": { - "path": "265", - "port": "266", - "host": "267", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - }, - "preStop": { - "exec": { - "command": [ - "272" - ] - }, - "httpGet": { - "path": "273", - "port": -1161649101, - "host": "274", - "scheme": "嚧ʣq埄", - "httpHeaders": [ - { - "name": "275", - "value": "276" - } - ] - }, - "tcpSocket": { - "port": "277", - "host": "278" - } - } - }, - "terminationMessagePath": "279", - "terminationMessagePolicy": "ʁ岼昕ĬÇ", - "imagePullPolicy": "T 苧yñKJɐ扵G", - "securityContext": { - "capabilities": { - "add": [ - "fʀļ腩墺Ò媁荭gw忊" - ], - "drop": [ - "E剒蔞" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "284", - "gmsaCredentialSpec": "285", - "runAsUserName": "286" - }, - "runAsUser": -6177393256425700216, - "runAsGroup": 2001337664780390084, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "Ȩ\u003c6鄰簳°Ļǟi\u0026" - }, - "stdin": true - } - ], - "ephemeralContainers": [ - { - "name": "287", - "image": "288", - "command": [ - "289" - ], - "args": [ - "290" - ], - "workingDir": "291", - "ports": [ - { - "name": "292", - "hostPort": 1313273370, - "containerPort": -1296830577, - "hostIP": "293" - } - ], - "envFrom": [ - { - "prefix": "294", - "configMapRef": { - "name": "295", - "optional": true - }, - "secretRef": { - "name": "296", - "optional": false - } - } - ], - "env": [ - { - "name": "297", - "value": "298", - "valueFrom": { - "fieldRef": { - "apiVersion": "299", - "fieldPath": "300" - }, - "resourceFieldRef": { - "containerName": "301", - "resource": "302", - "divisor": "3" - }, - "configMapKeyRef": { - "name": "303", - "key": "304", - "optional": true - }, - "secretKeyRef": { - "name": "305", - "key": "306", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "淳4揻-$ɽ丟×x锏ɟ": "178" - }, - "requests": { - "Ö闊 鰔澝qV": "752" - } - }, - "volumeMounts": [ - { - "name": "307", - "readOnly": true, - "mountPath": "308", - "subPath": "309", - "mountPropagation": "/»頸+SÄ蚃ɣľ)酊龨Î", - "subPathExpr": "310" - } - ], - "volumeDevices": [ - { - "name": "311", - "devicePath": "312" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "313" - ] - }, - "httpGet": { - "path": "314", - "port": "315", - "host": "316", - "scheme": "冓鍓贯", - "httpHeaders": [ - { - "name": "317", - "value": "318" - } - ] - }, - "tcpSocket": { - "port": "319", - "host": "320" - }, - "initialDelaySeconds": 1290950685, - "timeoutSeconds": 12533543, - "periodSeconds": 1058960779, - "successThreshold": -2133441986, - "failureThreshold": 472742933 - }, - "readinessProbe": { - "exec": { - "command": [ - "321" - ] - }, - "httpGet": { - "path": "322", - "port": 1332783160, - "host": "323", - "scheme": "Ȱ囌{屿oiɥ嵐sC8?Ǻ鱎ƙ;", - "httpHeaders": [ - { - "name": "324", - "value": "325" - } - ] - }, - "tcpSocket": { - "port": "326", - "host": "327" - }, - "initialDelaySeconds": -300247800, - "timeoutSeconds": 386804041, - "periodSeconds": -126958936, - "successThreshold": 186945072, - "failureThreshold": 620822482 - }, - "startupProbe": { - "exec": { - "command": [ - "328" - ] - }, - "httpGet": { - "path": "329", - "port": "330", - "host": "331", - "scheme": "鍏H鯂²", - "httpHeaders": [ - { - "name": "332", - "value": "333" - } - ] - }, - "tcpSocket": { - "port": -1187301925, - "host": "334" - }, - "initialDelaySeconds": -402384013, - "timeoutSeconds": -181601395, - "periodSeconds": -617381112, - "successThreshold": 1851229369, - "failureThreshold": -560238386 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "335" - ] - }, - "httpGet": { - "path": "336", - "port": "337", - "host": "338", - "scheme": "C\"6x$1s", - "httpHeaders": [ - { - "name": "339", - "value": "340" - } - ] - }, - "tcpSocket": { - "port": "341", - "host": "342" - } - }, - "preStop": { - "exec": { - "command": [ - "343" - ] - }, - "httpGet": { - "path": "344", - "port": -518160270, - "host": "345", - "scheme": "ɔ幩še", - "httpHeaders": [ - { - "name": "346", - "value": "347" - } - ] - }, - "tcpSocket": { - "port": 1956567721, - "host": "348" - } - } - }, - "terminationMessagePath": "349", - "terminationMessagePolicy": "ȤƏ埮pɵ", - "securityContext": { - "capabilities": { - "add": [ - "|ʐşƧ諔迮ƙIJ嘢" - ], - "drop": [ - "ʗN" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "350", - "role": "351", - "type": "352", - "level": "353" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "354", - "gmsaCredentialSpec": "355", - "runAsUserName": "356" - }, - "runAsUser": -6048969174364431391, - "runAsGroup": 6726836758549163621, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "" - }, - "stdin": true, - "stdinOnce": true, - "tty": true, - "targetContainerName": "357" - } - ], - "restartPolicy": "ɭɪǹ0衷,", - "terminationGracePeriodSeconds": -3039830979334099524, - "activeDeadlineSeconds": 7270263763744228913, - "dnsPolicy": "n(fǂǢ曣ŋayåe躒訙Ǫ", - "nodeSelector": { - "358": "359" - }, - "serviceAccountName": "360", - "serviceAccount": "361", - "automountServiceAccountToken": true, - "nodeName": "362", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "363", - "role": "364", - "type": "365", - "level": "366" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "367", - "gmsaCredentialSpec": "368", - "runAsUserName": "369" - }, - "runAsUser": -5315960194881172085, - "runAsGroup": 6386250802140824739, - "runAsNonRoot": false, - "supplementalGroups": [ - -4480129203693517072 - ], - "fsGroup": 2585323675983182372, - "sysctls": [ - { - "name": "370", - "value": "371" - } - ] - }, - "imagePullSecrets": [ - { - "name": "372" - } - ], - "hostname": "373", - "subdomain": "374", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "375", - "operator": "Ã茓pȓɻ", - "values": [ - "376" - ] - } - ], - "matchFields": [ - { - "key": "377", - "operator": "", - "values": [ - "378" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -767058113, - "preference": { - "matchExpressions": [ - { - "key": "379", - "operator": "Ǹ|蕎'佉賞ǧĒz", - "values": [ - "380" - ] - } - ], - "matchFields": [ - { - "key": "381", - "operator": "ùfŭƽ", - "values": [ - "382" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "h-up52--sjo7799-skj5--9/R_rm": "CR.s--f.-f.-zv._._.o" - }, - "matchExpressions": [ - { - "key": "K_A-_9_Z_C..7o_x3..-.8-Jp-94", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "389" - ], - "topologyKey": "390" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 801902541, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "bx1y-8---3----p-pdn--j2---2--82--cj-1-s--op34-yy28-38xmu5nx4s-4/4b_9_1o.w_I": "x-_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----.4" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "397" - ], - "topologyKey": "398" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "405" - ], - "topologyKey": "406" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "413" - ], - "topologyKey": "414" - } - } - ] - } - }, - "schedulerName": "415", - "tolerations": [ - { - "key": "416", - "operator": "堺ʣ", - "value": "417", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "418", - "hostnames": [ - "419" - ] - } - ], - "priorityClassName": "420", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "421" - ], - "searches": [ - "422" - ], - "options": [ - { - "name": "423", - "value": "424" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "425", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "426", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "updateStrategy": { - "type": "荥ơ'禧ǵŊ)TiD¢ƿ媴h5", - "rollingUpdate": { - - } - }, - "minReadySeconds": 212061711, - "revisionHistoryLimit": -1092090658 - }, - "status": { - "currentNumberScheduled": -1979737528, - "numberMisscheduled": -1707056814, - "desiredNumberScheduled": -424698834, - "numberReady": 407742062, - "observedGeneration": 5741439505187758584, - "updatedNumberScheduled": 902022378, - "numberAvailable": 1660081568, - "numberUnavailable": 904244563, - "collisionCount": -449319810, - "conditions": [ - { - "type": "", - "status": "'ƈoIǢ龞瞯å", - "lastTransitionTime": "2469-07-10T03:20:34Z", - "reason": "433", - "message": "434" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.pb deleted file mode 100644 index bcd0f9bdf36bbccecdf8758fd0c0811739ac364f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6305 zcmZWt3s_V~mhRj5%AHKob0^94b~2fsjvEP+d%0D0pUxx3C&7)0#2A;^*}I~sL4g)D zJd*4Of)5%If;c&jIT|Pa1 zZ`G|+r%s*v&wpy8mThA1VrQ;)Ii(SEr_DW;~U;g)2bpafW3u#}FGMIT$&P zQSn^}i4vAXS<*F8Qx#FcBGKOec-vcrr3VU~^G#2l+SOgOz45gJ15EM^mQguIOPR?s zI%h^=nw>QxY%?R`xMN{{V4!Mz=kwVfm$%#*X9m3{jma`2Dc_7_7ZVSkD%>x_6|O*) zE8JY?Imka9IB?c|ZgsrB>c!wog|WfD+OZvf0BtHZBaM4UU=NzvB8GiR<9R+U)2S;G z+O%G9^6RxVnBU0j2&c;Y8a`Dad7 z;^R+0k+gidunY@?dsxu~BV~Dxz^`4Rtl7Z z4Et|RStMYHq^i86JK-r)LG*oH9?$FWpwb_hTI9FNo6<1PBhk4T-c)GDycoakNev0S zps!q;E3BArJkBQ=vLS2{gp?&BXMQZhh8Bvdu-Xvvj65S#G~~_8umO6F$Ax8vV60XI zJtZM+Z35_kagS++k--%|%pPV~GnP3sR%~XhI?Py$`|*m2rtxi_^5?UCP2NWQQ>5q` z)?}h97-_nQF~ZvAZEp=Vcz1fe3~ceAs>d%3_3sa;iD*c4*e1S+|*G5#P(2WyJj$Bv>vJ>;C<&bZc>G+pE*;rnxLM zgJM~>GV|l$8MMi&wQKm=DC028TAW$dMP{y95$7>U(^#{DRxv4N1t-Edg>Ys?vYL{> zbVar>$q@Gnj8{~fSJxg^?4W)04gMjU2MilgnaXv&9C8jRA^ZH&r-*_y`DCOCe&XuFd&>o82m zHgKMfWc$@a|8w@Mh;J+{doN!8I`ZgZ?t<@##r1k|h1q7-CA%rktjm=QtV{>px@u+W znP0FlrLJ*Qr_RM7QMB$paNa%Bda1eF8)G*e1})HvXcxADAPx{x8*?vhmT9vB>wzCN z4upn5=v~ZG=tUy*B4qp7M!Tm!boO}KWI>6qKFfC?V}s~EI=&4CAslPMzwqr2mLJl5 zCETGlmhxT{)J40nXzLJSTI#!wsn~15WG1hI5urM*Ej>ZIW;0p{e0fJDc6Ir$0K^=ez zScVClHOJIDcoq|gwE2%i82>U?c7zT#dHTmYABm%$kW^Thq}eR&ZL^q&84|<^ zmPL!p-+IDq?Wmb}dz$^~k*lvn10=TUzXz9!H;=ygW^|(D3dk)HQvkYt4GICfs3|`0 z-$tS^7coU94(@@xm2;k1niD(L7$`pLX&>uwBlJ7EQ%r;nkASs0FdtUTQfMBYtwD|KsSul%ov0B4UyvaXOf!$lR^P zDGK;SQ62aE;mXkI(UIRxy1IkyJ3ZCBzc6s1ZjKz++Z^X5QfaYP+N0er0dP#yKTs-=O@vn(s@q0*K-_vxjH z{)%8p_mcb<*#}tbx`_fBPsam?``wj+w!%=^sr5O55f?XeQJ|zURCN&c3J?uz)HDsj zsx%DYqY?YAlJJg#u1km8m{>++G}FAXhRa^p%cURPo5+o~{zeHGcTRSm8SNY!@HIaB zVA7pb3Ecusrb?6ohS|lKDi~8eg+>gy`L@Wa;mDh8Q;(_z@bvbH!a&zxa9{Pj4hQ!)drDX5xsRrX`YS`Nb-p&pv;YJU z14P#6#}GwK1c8!3;8o0jm^PTQ3}C463P4U2$p%7pfKV)@`>%iZ;rSZ}dKjz8{%P5b z*BgBAgkND|k6bHpf9dJ}^Z~KCr0Mdjtxa#NicCVoil}HlYynXqCWxX@ZF)Y1A{B3A zKoS>~QYF(pgUw)L*$3HsXs67v?xN7{z0UEy{s9;SsTuMKQB@8OK7sT+f7ZzG!OCwU zUgKo;e%h&XoUiwVQ1zZUSB6SLXAb&W#wzpSbBLjzLO-PNneM)Io>Sf-+K9Q2%&e1L z%S!Bh8~CkG88~5fTBfS%I-k8UO$NRgpJZgEb9XIB60&)Iok0KPKPLd&6EeAn+546n zkMf3YBpV9^LCrLBi2&qJ;}e~{E^)Un%uLN*mbqn7?z7ojVC@ za{-2ZhhcX!?9!B6l*dyRO$jXT<071R-H7P;moz?h2Hix{2o(3z0u!Y%%yv z)ZT?l)GVIB5S|w#ZV9VWBi7Sb-l_3xWiTvVdzR-nifQtCAwMfCN8{x!*}$7qobk#c z!+<3lsRsUk3)WS-V9j>X%&udT+2637x|leDGaHYlFXRRB(I*AOJ@_b0yI2NpzjWCG zkr()ML*&zW|z!vD-oadv|t#9s0gW>H_D3)UgCvS3B0gTP=!qf|BRL?7`cgv-?aEq zV-?|kvQkXIypW%eBP1BcN@3*+u9RWZL?}Sk^P72$v!tB7R2k>-8&pXloAR95lB5wn z6ZUW&azd>kk&GOE6Q8TaC*&I|4I#^T4&o-&;8iWtP+(068LD#?>{a@|Y|4c_$uYLT z&dGu#Cgn&Ax#>&4E~9Q>lYY^H&${n5+bl>B-Jw@<-<%5a0^6} z9fD*B0&*>q#W)Z^aG*=ZmdV36JEma9`~H6~+-jTUB?2)I>Q4s<9oe3XHO1RO_p^B3MM1#}*s^|%>z-@h{5gs!_M-Na4bx-K_^(}O#6NcL8knA3!?5ckvjB`N24#RB zQ%M(TuoXy?91r9K4i<*b?G6pMh3bZ$o-A+h4CG9-hmRd_4=x+8^Y%z%$0LSl)GeAa zl@L1pFI~FDYG}J^X*vHle>8}#+rRDp(-bAR*8TFy>9M}St8Yyu1owq+zG70k7 zFenz5fML4&yC+Z#yRaVO3hMf!M zL{gPV)2)brM6;0lUuvlN`^*SW5iz$klJP{s0q4fz_ddq-@L^GL-0nFW7&w>x{P?i% z%)F>F@HZB&o+G})6Q=^*Rl(+M&Oq^??_8+4esXV5ejURm zu(N-a286&WtI-+y%Z$|HwpTVAqhRgtH^h$mITWp(A^8Qhht! zty^=0#}2IYmL?;hU@uJ`a6#NqB7tZUhT9MjP#R$*+0UJR`=iR@ci+7`!Xub@?mvCu zdNcgmvE)Q{ov%4maVl6lGB3g(p!|Rllv*J*!XKCl25K@|S^>L@kOm~nxA+4BQV0CO z?kNbi_Kz1m7wm0RM~|p$)4UyHHNnAs$$^skV0D=o;S>mH7X&5lVz#nRM&nC^dBXr{2DI_~fc`J3lYHr6g0 z?Y+`B9Q)D5{U7|bZs_aRm`Ir?(K1Ft`Y6B;7RQ;6W8U3S}lrX(68_@QV#2OUT?H2-w)VWXY3|agAlh2182N#IF(!%s&&kTe=^TO}3#t z!OMmU$vOuvmSo5Vkctg``7?=?=Kh&%*G!0FjUFitjy2Y3HKhZ>W4LJhIdtjRQh#;- z=hLj^mtL=qLI&U-w3E4y(QY~t0O7YRWwP`Rfxuy>)Qnyl5PE6A!p&m@#|fNrXp(M~ zhlE}r5V$~~I1VLW@Z1?GSU$kd_77d@ZFJY>hO5f`jnwG?uiVerJKQzlT9-ZCSrr^^ z*c_<^RT(EjRYAlEjuR1ZoQQgyEq-($e5m(VPq~Xj^+o>XvEhfp+g;(|R`(uEcQ9!q zyM&$!0@n%2H?8>2U;(dvg_;<#_T zGq8X6^MTVNna}!<2D&S<7if?8`opL9cY_A z|ApRO#@@Ppz#Wav*v`@K$(@a| zBNM^}Uku#){a`}4(}NZqE$9eb=OIu7wKOg0J}>zDu3PB_lu5El8H4%3b(+;FK)PBZ94UbL=%NsLMvqgl`@EE znf5)*VgR&gZ3dvmOqFSR1ZLUsBi`~rW4qJe9RXBAfu0}$)Ix@h6to2HMriEd?-7*{ zKvY7Ic3U_(ss%6MNh@cQ~OtT{mk*`&e?bE zcxPoXKM?zHX1}p%u?A96jtE3ACNv zAaf>r`GN9O@y{iPu20RDGi&_px35Pd({f?7@WK=qXzv~Fj!tj?_|=|KCiYABXP;iL zyZZJM;$KS2+heptC(hT-nD^#;H61Yt-@bF{c=Y3>Ijo7hbB=dc=3~CY;o*am2RqzH aZL?-=JAeM-TnpR@N`%CLkZdN0>3;$8Mj-G2 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.yaml deleted file mode 100644 index f5679c0f1..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.DaemonSet.yaml +++ /dev/null @@ -1,961 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: 212061711 - revisionHistoryLimit: -1092090658 - selector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - 8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4 - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: 7534629739119643351 - finalizers: - - "37" - generateName: "26" - generation: -4139900758039117471 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: ĪȸŹăȲϤĦʅ芝 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: false - kind: "35" - name: "36" - uid: ^ - resourceVersion: "1698285396218902212" - selfLink: "28" - uid: TʡȂŏ{sǡƟ - spec: - activeDeadlineSeconds: 7270263763744228913 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "379" - operator: Ǹ|蕎'佉賞ǧĒz - values: - - "380" - matchFields: - - key: "381" - operator: ùfŭƽ - values: - - "382" - weight: -767058113 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "375" - operator: Ã茓pȓɻ - values: - - "376" - matchFields: - - key: "377" - operator: "" - values: - - "378" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2 - operator: DoesNotExist - matchLabels: - bx1y-8---3----p-pdn--j2---2--82--cj-1-s--op34-yy28-38xmu5nx4s-4/4b_9_1o.w_I: x-_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----.4 - namespaces: - - "397" - topologyKey: "398" - weight: 801902541 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: K_A-_9_Z_C..7o_x3..-.8-Jp-94 - operator: DoesNotExist - matchLabels: - h-up52--sjo7799-skj5--9/R_rm: CR.s--f.-f.-zv._._.o - namespaces: - - "389" - topologyKey: "390" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D - operator: NotIn - values: - - txb__-ex-_1_-ODgC_1-_V - matchLabels: - 6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3: V0H2-.zHw.H__V.VT - namespaces: - - "413" - topologyKey: "414" - weight: -1851436166 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: QZ9p_6.C.e - operator: DoesNotExist - matchLabels: - 7F3p2_-_AmD-.0AP.1: A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n - namespaces: - - "405" - topologyKey: "406" - automountServiceAccountToken: true - containers: - - args: - - "221" - command: - - "220" - env: - - name: "228" - value: "229" - valueFrom: - configMapKeyRef: - key: "235" - name: "234" - optional: true - fieldRef: - apiVersion: "230" - fieldPath: "231" - resourceFieldRef: - containerName: "232" - divisor: "357" - resource: "233" - secretKeyRef: - key: "237" - name: "236" - optional: true - envFrom: - - configMapRef: - name: "226" - optional: false - prefix: "225" - secretRef: - name: "227" - optional: false - image: "219" - imagePullPolicy: T 苧yñKJɐ扵G - lifecycle: - postStart: - exec: - command: - - "264" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "265" - port: "266" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - tcpSocket: - host: "271" - port: "270" - preStop: - exec: - command: - - "272" - httpGet: - host: "274" - httpHeaders: - - name: "275" - value: "276" - path: "273" - port: -1161649101 - scheme: 嚧ʣq埄 - tcpSocket: - host: "278" - port: "277" - livenessProbe: - exec: - command: - - "244" - failureThreshold: -361442565 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "245" - port: -393291312 - scheme: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - initialDelaySeconds: 627713162 - periodSeconds: -1740959124 - successThreshold: 158280212 - tcpSocket: - host: "250" - port: "249" - timeoutSeconds: 1255312175 - name: "218" - ports: - - containerPort: -839281354 - hostIP: "224" - hostPort: 1584001904 - name: "223" - protocol: 5姣>懔%熷谟þ蛯ɰ荶ljʁ - readinessProbe: - exec: - command: - - "251" - failureThreshold: -36782737 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: -2013568185 - scheme: '#yV''WKw(ğ儴Ůĺ}' - initialDelaySeconds: -1244623134 - periodSeconds: -398297599 - successThreshold: 873056500 - tcpSocket: - host: "256" - port: -20130017 - timeoutSeconds: -1334110502 - resources: - limits: - 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0: "175" - requests: - ɺ皚|懥ƖN粕擓ƖHV: "962" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - fʀļ腩墺Ò媁荭gw忊 - drop: - - E剒蔞 - privileged: false - procMount: Ȩ<6鄰簳°Ļǟi& - readOnlyRootFilesystem: true - runAsGroup: 2001337664780390084 - runAsNonRoot: true - runAsUser: -6177393256425700216 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - windowsOptions: - gmsaCredentialSpec: "285" - gmsaCredentialSpecName: "284" - runAsUserName: "286" - startupProbe: - exec: - command: - - "257" - failureThreshold: -1011390276 - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: Qg鄠[ - initialDelaySeconds: -1556231754 - periodSeconds: -321709789 - successThreshold: -1463645123 - tcpSocket: - host: "263" - port: -241238495 - timeoutSeconds: 461585849 - stdin: true - terminationMessagePath: "279" - terminationMessagePolicy: ʁ岼昕ĬÇ - volumeDevices: - - devicePath: "243" - name: "242" - volumeMounts: - - mountPath: "239" - mountPropagation: 'Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ' - name: "238" - subPath: "240" - subPathExpr: "241" - workingDir: "222" - dnsConfig: - nameservers: - - "421" - options: - - name: "423" - value: "424" - searches: - - "422" - dnsPolicy: n(fǂǢ曣ŋayåe躒訙Ǫ - enableServiceLinks: false - ephemeralContainers: - - args: - - "290" - command: - - "289" - env: - - name: "297" - value: "298" - valueFrom: - configMapKeyRef: - key: "304" - name: "303" - optional: true - fieldRef: - apiVersion: "299" - fieldPath: "300" - resourceFieldRef: - containerName: "301" - divisor: "3" - resource: "302" - secretKeyRef: - key: "306" - name: "305" - optional: true - envFrom: - - configMapRef: - name: "295" - optional: true - prefix: "294" - secretRef: - name: "296" - optional: false - image: "288" - lifecycle: - postStart: - exec: - command: - - "335" - httpGet: - host: "338" - httpHeaders: - - name: "339" - value: "340" - path: "336" - port: "337" - scheme: C"6x$1s - tcpSocket: - host: "342" - port: "341" - preStop: - exec: - command: - - "343" - httpGet: - host: "345" - httpHeaders: - - name: "346" - value: "347" - path: "344" - port: -518160270 - scheme: ɔ幩še - tcpSocket: - host: "348" - port: 1956567721 - livenessProbe: - exec: - command: - - "313" - failureThreshold: 472742933 - httpGet: - host: "316" - httpHeaders: - - name: "317" - value: "318" - path: "314" - port: "315" - scheme: 冓鍓贯 - initialDelaySeconds: 1290950685 - periodSeconds: 1058960779 - successThreshold: -2133441986 - tcpSocket: - host: "320" - port: "319" - timeoutSeconds: 12533543 - name: "287" - ports: - - containerPort: -1296830577 - hostIP: "293" - hostPort: 1313273370 - name: "292" - readinessProbe: - exec: - command: - - "321" - failureThreshold: 620822482 - httpGet: - host: "323" - httpHeaders: - - name: "324" - value: "325" - path: "322" - port: 1332783160 - scheme: Ȱ囌{屿oiɥ嵐sC8?Ǻ鱎ƙ; - initialDelaySeconds: -300247800 - periodSeconds: -126958936 - successThreshold: 186945072 - tcpSocket: - host: "327" - port: "326" - timeoutSeconds: 386804041 - resources: - limits: - 淳4揻-$ɽ丟×x锏ɟ: "178" - requests: - Ö闊 鰔澝qV: "752" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - '|ʐşƧ諔迮ƙIJ嘢' - drop: - - ʗN - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: 6726836758549163621 - runAsNonRoot: false - runAsUser: -6048969174364431391 - seLinuxOptions: - level: "353" - role: "351" - type: "352" - user: "350" - windowsOptions: - gmsaCredentialSpec: "355" - gmsaCredentialSpecName: "354" - runAsUserName: "356" - startupProbe: - exec: - command: - - "328" - failureThreshold: -560238386 - httpGet: - host: "331" - httpHeaders: - - name: "332" - value: "333" - path: "329" - port: "330" - scheme: 鍏H鯂² - initialDelaySeconds: -402384013 - periodSeconds: -617381112 - successThreshold: 1851229369 - tcpSocket: - host: "334" - port: -1187301925 - timeoutSeconds: -181601395 - stdin: true - stdinOnce: true - targetContainerName: "357" - terminationMessagePath: "349" - terminationMessagePolicy: ȤƏ埮pɵ - tty: true - volumeDevices: - - devicePath: "312" - name: "311" - volumeMounts: - - mountPath: "308" - mountPropagation: /»頸+SÄ蚃ɣľ)酊龨Î - name: "307" - readOnly: true - subPath: "309" - subPathExpr: "310" - workingDir: "291" - hostAliases: - - hostnames: - - "419" - ip: "418" - hostNetwork: true - hostname: "373" - imagePullSecrets: - - name: "372" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "468" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: false - prefix: "154" - secretRef: - name: "156" - optional: false - image: "148" - imagePullPolicy: ŤǢʭ嵔棂p儼Ƿ裚瓶 - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - tcpSocket: - host: "202" - port: 2126876305 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: Ŵ廷s{Ⱦdz@ - tcpSocket: - host: "209" - port: 406308963 - livenessProbe: - exec: - command: - - "173" - failureThreshold: 1466047181 - httpGet: - host: "176" - httpHeaders: - - name: "177" - value: "178" - path: "174" - port: "175" - initialDelaySeconds: 1805144649 - periodSeconds: 1403721475 - successThreshold: 519906483 - tcpSocket: - host: "180" - port: "179" - timeoutSeconds: -606111218 - name: "147" - ports: - - containerPort: 437857734 - hostIP: "153" - hostPort: -1510026905 - name: "152" - protocol: Rƥ贫d飼$俊跾|@?鷅b - readinessProbe: - exec: - command: - - "181" - failureThreshold: 524249411 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "182" - port: "183" - scheme: w垁鷌辪虽U珝Żwʮ馜üNșƶ4ĩ - initialDelaySeconds: -1724160601 - periodSeconds: 1435507444 - successThreshold: -1430577593 - tcpSocket: - host: "187" - port: -337353552 - timeoutSeconds: -1158840571 - resources: - limits: - 檲ɨ銦妰黖ȓƇ$缔獵偐ę腬: "646" - requests: - 湨: "803" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - +j忊Ŗȫ焗捏ĨFħ籘Àǒɿʒ刽ʼn - drop: - - 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - privileged: true - procMount: fǣ萭旿@ - readOnlyRootFilesystem: true - runAsGroup: 6506922239346928579 - runAsNonRoot: true - runAsUser: 1563703589270296759 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - runAsUserName: "217" - startupProbe: - exec: - command: - - "188" - failureThreshold: 905846572 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "189" - port: "190" - scheme: k_瀹鞎sn芞QÄȻ - initialDelaySeconds: 364013971 - periodSeconds: -1790124395 - successThreshold: 1094670193 - tcpSocket: - host: "195" - port: "194" - timeoutSeconds: 1596422492 - stdin: true - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: 卩蝾 - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "362" - nodeSelector: - "358": "359" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "420" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɭɪǹ0衷, - runtimeClassName: "425" - schedulerName: "415" - securityContext: - fsGroup: 2585323675983182372 - runAsGroup: 6386250802140824739 - runAsNonRoot: false - runAsUser: -5315960194881172085 - seLinuxOptions: - level: "366" - role: "364" - type: "365" - user: "363" - supplementalGroups: - - -4480129203693517072 - sysctls: - - name: "370" - value: "371" - windowsOptions: - gmsaCredentialSpec: "368" - gmsaCredentialSpecName: "367" - runAsUserName: "369" - serviceAccount: "361" - serviceAccountName: "360" - shareProcessNamespace: true - subdomain: "374" - terminationGracePeriodSeconds: -3039830979334099524 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "416" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "417" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "426" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: -2007808768 - volumeID: "46" - azureDisk: - cachingMode: k ź贩j瀉ǚrǜnh0åȂ - diskName: "110" - diskURI: "111" - fsType: "112" - kind: nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶 - readOnly: false - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 952979935 - items: - - key: "99" - mode: 2020789772 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: true - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: -868808281 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: -1768075156 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "915" - resource: "92" - emptyDir: - medium: ɹ坼É/pȿ - sizeLimit: "804" - fc: - fsType: "94" - lun: 570501002 - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1318752360 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - hostPath: - path: "43" - type: "" - iscsi: - chapAuthDiscovery: true - chapAuthSession: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 408756018 - portals: - - "60" - readOnly: true - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - volumeID: "128" - projected: - defaultMode: 480521693 - sources: - - configMap: - items: - - key: "124" - mode: -1126738259 - path: "125" - name: "123" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1618937335 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "461" - resource: "122" - secret: - items: - - key: "116" - mode: 675406340 - path: "117" - name: "115" - optional: false - serviceAccountToken: - audience: "126" - expirationSeconds: -6345861634934949644 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - readOnly: true - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - sslEnabled: true - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 1233814916 - items: - - key: "52" - mode: 228756891 - path: "53" - optional: false - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - updateStrategy: - rollingUpdate: {} - type: 荥ơ'禧ǵŊ)TiD¢ƿ媴h5 -status: - collisionCount: -449319810 - conditions: - - lastTransitionTime: "2469-07-10T03:20:34Z" - message: "434" - reason: "433" - status: '''ƈoIǢ龞瞯å' - type: "" - currentNumberScheduled: -1979737528 - desiredNumberScheduled: -424698834 - numberAvailable: 1660081568 - numberMisscheduled: -1707056814 - numberReady: 407742062 - numberUnavailable: 904244563 - observedGeneration: 5741439505187758584 - updatedNumberScheduled: 902022378 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.json b/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.json deleted file mode 100644 index 215c0ce15..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.json +++ /dev/null @@ -1,1405 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": 896585016, - "selector": { - "matchLabels": { - "74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj": "6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1" - }, - "matchExpressions": [ - { - "key": "50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99", - "operator": "Exists" - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "?Qȫş", - "resourceVersion": "1736621709629422270", - "generation": -8542870036622468681, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2575298329142810753, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "ƶȤ^}", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "躢", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c" - }, - "emptyDir": { - "medium": "Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈", - "sizeLimit": "473" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1188153605 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": 912004803, - "readOnly": true - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -547518679 - } - ], - "defaultMode": 332383000, - "optional": true - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 994527057, - "iscsiInterface": "58", - "fsType": "59", - "portals": [ - "60" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - } - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "660" - }, - "mode": 1569992019 - } - ], - "defaultMode": 824682619 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": -1740986684, - "fsType": "94", - "readOnly": true, - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97", - "readOnly": true - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": 195263908 - } - ], - "defaultMode": 1593906314, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "|@?鷅bȻN", - "fsType": "112", - "readOnly": true, - "kind": "榱*Gưoɘ檲" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -323584340 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "106" - }, - "mode": 173030157 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": 2063799569 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": 8357931971650847566, - "path": "127" - } - } - ], - "defaultMode": -1334904807 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129", - "readOnly": true - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": false, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -606111218, - "containerPort": 1403721475, - "protocol": "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": true - }, - "secretRef": { - "name": "156", - "optional": true - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "650" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": false - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "84" - }, - "requests": { - "ɖȃ賲鐅臬dH巧壚tC十Oɢ": "517" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": -152585895, - "host": "175", - "scheme": "E@Ȗs«ö", - "httpHeaders": [ - { - "name": "176", - "value": "177" - } - ] - }, - "tcpSocket": { - "port": 1135182169, - "host": "178" - }, - "initialDelaySeconds": 1843758068, - "timeoutSeconds": -1967469005, - "periodSeconds": 1702578303, - "successThreshold": -1565157256, - "failureThreshold": -1113628381 - }, - "readinessProbe": { - "exec": { - "command": [ - "179" - ] - }, - "httpGet": { - "path": "180", - "port": 386652373, - "host": "181", - "scheme": "ʙ嫙\u0026", - "httpHeaders": [ - { - "name": "182", - "value": "183" - } - ] - }, - "tcpSocket": { - "port": "184", - "host": "185" - }, - "initialDelaySeconds": -802585193, - "timeoutSeconds": 1901330124, - "periodSeconds": 1944205014, - "successThreshold": -2079582559, - "failureThreshold": -1167888910 - }, - "startupProbe": { - "exec": { - "command": [ - "186" - ] - }, - "httpGet": { - "path": "187", - "port": 804417065, - "host": "188", - "scheme": "Ŵ廷s{Ⱦdz@", - "httpHeaders": [ - { - "name": "189", - "value": "190" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "191" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "192" - ] - }, - "httpGet": { - "path": "193", - "port": -2015604435, - "host": "194", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "195", - "value": "196" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "197" - } - }, - "preStop": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": -1131820775, - "host": "200", - "scheme": "Ƿ裚瓶釆Ɗ+j忊", - "httpHeaders": [ - { - "name": "201", - "value": "202" - } - ] - }, - "tcpSocket": { - "port": "203", - "host": "204" - } - } - }, - "terminationMessagePath": "205", - "terminationMessagePolicy": "焗捏", - "imagePullPolicy": "罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "206", - "role": "207", - "type": "208", - "level": "209" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "210", - "gmsaCredentialSpec": "211", - "runAsUserName": "212" - }, - "runAsUser": -6576869501326512452, - "runAsGroup": -8419423421380299597, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "$MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫" - }, - "tty": true - } - ], - "containers": [ - { - "name": "213", - "image": "214", - "command": [ - "215" - ], - "args": [ - "216" - ], - "workingDir": "217", - "ports": [ - { - "name": "218", - "hostPort": 62799871, - "containerPort": -775325416, - "protocol": "t莭琽§ć\\ ïì", - "hostIP": "219" - } - ], - "envFrom": [ - { - "prefix": "220", - "configMapRef": { - "name": "221", - "optional": false - }, - "secretRef": { - "name": "222", - "optional": false - } - } - ], - "env": [ - { - "name": "223", - "value": "224", - "valueFrom": { - "fieldRef": { - "apiVersion": "225", - "fieldPath": "226" - }, - "resourceFieldRef": { - "containerName": "227", - "resource": "228", - "divisor": "595" - }, - "configMapKeyRef": { - "name": "229", - "key": "230", - "optional": true - }, - "secretKeyRef": { - "name": "231", - "key": "232", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "N粕擓ƖHVe熼": "334" - }, - "requests": { - "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶": "388" - } - }, - "volumeMounts": [ - { - "name": "233", - "readOnly": true, - "mountPath": "234", - "subPath": "235", - "mountPropagation": "癃8鸖", - "subPathExpr": "236" - } - ], - "volumeDevices": [ - { - "name": "237", - "devicePath": "238" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "239" - ] - }, - "httpGet": { - "path": "240", - "port": -1654678802, - "host": "241", - "scheme": "毋", - "httpHeaders": [ - { - "name": "242", - "value": "243" - } - ] - }, - "tcpSocket": { - "port": 391562775, - "host": "244" - }, - "initialDelaySeconds": -775511009, - "timeoutSeconds": -832805508, - "periodSeconds": -228822833, - "successThreshold": -970312425, - "failureThreshold": -1213051101 - }, - "readinessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": -1905643191, - "host": "247", - "scheme": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": "250", - "host": "251" - }, - "initialDelaySeconds": 852780575, - "timeoutSeconds": -1252938503, - "periodSeconds": 893823156, - "successThreshold": -1980314709, - "failureThreshold": 571739592 - }, - "startupProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": -1334110502, - "host": "254", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "255", - "value": "256" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "257" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": 1943028037, - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": -1355476687, - "host": "267", - "scheme": "-Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "T 苧yñKJɐ扵G", - "imagePullPolicy": "û咡W\u003c敄lu|榝$î.Ȏ蝪ʜ5", - "securityContext": { - "capabilities": { - "add": [ - "E埄Ȁ朦 wƯ貾坢'" - ], - "drop": [ - "aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278", - "runAsUserName": "279" - }, - "runAsUser": -2270595441829602368, - "runAsGroup": -2408264753085021035, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "" - } - } - ], - "ephemeralContainers": [ - { - "name": "280", - "image": "281", - "command": [ - "282" - ], - "args": [ - "283" - ], - "workingDir": "284", - "ports": [ - { - "name": "285", - "hostPort": 1868683352, - "containerPort": -1137436579, - "protocol": "颶妧Ö闊", - "hostIP": "286" - } - ], - "envFrom": [ - { - "prefix": "287", - "configMapRef": { - "name": "288", - "optional": false - }, - "secretRef": { - "name": "289", - "optional": true - } - } - ], - "env": [ - { - "name": "290", - "value": "291", - "valueFrom": { - "fieldRef": { - "apiVersion": "292", - "fieldPath": "293" - }, - "resourceFieldRef": { - "containerName": "294", - "resource": "295", - "divisor": "381" - }, - "configMapKeyRef": { - "name": "296", - "key": "297", - "optional": true - }, - "secretKeyRef": { - "name": "298", - "key": "299", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "²sNƗ¸g": "50" - }, - "requests": { - "酊龨δ摖ȱğ_\u003c": "118" - } - }, - "volumeMounts": [ - { - "name": "300", - "readOnly": true, - "mountPath": "301", - "subPath": "302", - "mountPropagation": "ƺ蛜6Ɖ飴ɎiǨź", - "subPathExpr": "303" - } - ], - "volumeDevices": [ - { - "name": "304", - "devicePath": "305" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "306" - ] - }, - "httpGet": { - "path": "307", - "port": 865289071, - "host": "308", - "scheme": "iɥ嵐sC8", - "httpHeaders": [ - { - "name": "309", - "value": "310" - } - ] - }, - "tcpSocket": { - "port": -898536659, - "host": "311" - }, - "initialDelaySeconds": -1513284745, - "timeoutSeconds": 1258370227, - "periodSeconds": -414121491, - "successThreshold": -1862764022, - "failureThreshold": -300247800 - }, - "readinessProbe": { - "exec": { - "command": [ - "312" - ] - }, - "httpGet": { - "path": "313", - "port": 323903711, - "host": "314", - "scheme": "J", - "httpHeaders": [ - { - "name": "315", - "value": "316" - } - ] - }, - "tcpSocket": { - "port": "317", - "host": "318" - }, - "initialDelaySeconds": 657418949, - "timeoutSeconds": -992558278, - "periodSeconds": 287654902, - "successThreshold": -2062708879, - "failureThreshold": 215186711 - }, - "startupProbe": { - "exec": { - "command": [ - "319" - ] - }, - "httpGet": { - "path": "320", - "port": -1117254382, - "host": "321", - "scheme": "趐囨鏻砅邻爥蹔ŧOǨ", - "httpHeaders": [ - { - "name": "322", - "value": "323" - } - ] - }, - "tcpSocket": { - "port": "324", - "host": "325" - }, - "initialDelaySeconds": 2129989022, - "timeoutSeconds": -1699531929, - "periodSeconds": 1311843384, - "successThreshold": -1292310438, - "failureThreshold": 1502643091 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "326" - ] - }, - "httpGet": { - "path": "327", - "port": "328", - "host": "329", - "scheme": "幩šeSvEȤƏ埮pɵ", - "httpHeaders": [ - { - "name": "330", - "value": "331" - } - ] - }, - "tcpSocket": { - "port": "332", - "host": "333" - } - }, - "preStop": { - "exec": { - "command": [ - "334" - ] - }, - "httpGet": { - "path": "335", - "port": "336", - "host": "337", - "scheme": "ş", - "httpHeaders": [ - { - "name": "338", - "value": "339" - } - ] - }, - "tcpSocket": { - "port": "340", - "host": "341" - } - } - }, - "terminationMessagePath": "342", - "terminationMessagePolicy": "迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ", - "imagePullPolicy": "ņ", - "securityContext": { - "capabilities": { - "add": [ - "DŽ髐njʉBn(fǂǢ曣" - ], - "drop": [ - "ay" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "343", - "role": "344", - "type": "345", - "level": "346" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "347", - "gmsaCredentialSpec": "348", - "runAsUserName": "349" - }, - "runAsUser": 1958157659034146020, - "runAsGroup": -5996624450771474158, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "嗆u" - }, - "tty": true, - "targetContainerName": "350" - } - ], - "restartPolicy": "T[", - "terminationGracePeriodSeconds": -2738603156841903595, - "activeDeadlineSeconds": -8619192438821356882, - "dnsPolicy": "Ƶf", - "nodeSelector": { - "351": "352" - }, - "serviceAccountName": "353", - "serviceAccount": "354", - "automountServiceAccountToken": false, - "nodeName": "355", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "356", - "role": "357", - "type": "358", - "level": "359" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "360", - "gmsaCredentialSpec": "361", - "runAsUserName": "362" - }, - "runAsUser": -2781126825051715248, - "runAsGroup": -801152248124332545, - "runAsNonRoot": true, - "supplementalGroups": [ - 5255171395073905944 - ], - "fsGroup": 760480547754807445, - "sysctls": [ - { - "name": "363", - "value": "364" - } - ] - }, - "imagePullSecrets": [ - { - "name": "365" - } - ], - "hostname": "366", - "subdomain": "367", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "368", - "operator": "ǧĒzŔ瘍N", - "values": [ - "369" - ] - } - ], - "matchFields": [ - { - "key": "370", - "operator": "ƽ眝{æ盪泙", - "values": [ - "371" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 646133945, - "preference": { - "matchExpressions": [ - { - "key": "372", - "operator": "}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊", - "values": [ - "373" - ] - } - ], - "matchFields": [ - { - "key": "374", - "operator": "ʨIk(dŊiɢzĮ蛋I滞", - "values": [ - "375" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3.csh-3--Z1Tvw39FC": "rtSY.g._2F7.-_e..Or_-.3OHgt._6" - }, - "matchExpressions": [ - { - "key": "V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "382" - ], - "topologyKey": "383" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -855547676, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y": "f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5" - }, - "matchExpressions": [ - { - "key": "8.--w0_1V7", - "operator": "In", - "values": [ - "7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8" - ] - } - ] - }, - "namespaces": [ - "390" - ], - "topologyKey": "391" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33": "17ca-_p-y.eQZ9p_1" - }, - "matchExpressions": [ - { - "key": "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "398" - ], - "topologyKey": "399" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 808399187, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2": "CpS__.39g_.--_-_ve5.m_2_--XZx" - }, - "matchExpressions": [ - { - "key": "w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "406" - ], - "topologyKey": "407" - } - } - ] - } - }, - "schedulerName": "408", - "tolerations": [ - { - "key": "409", - "operator": "ƹ|", - "value": "410", - "effect": "料ȭzV镜籬ƽ", - "tolerationSeconds": 935587338391120947 - } - ], - "hostAliases": [ - { - "ip": "411", - "hostnames": [ - "412" - ] - } - ], - "priorityClassName": "413", - "priority": 1690570439, - "dnsConfig": { - "nameservers": [ - "414" - ], - "searches": [ - "415" - ], - "options": [ - { - "name": "416", - "value": "417" - } - ] - }, - "readinessGates": [ - { - "conditionType": "梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳" - } - ], - "runtimeClassName": "418", - "enableServiceLinks": true, - "preemptionPolicy": "eáNRNJ丧鴻Ŀ", - "overhead": { - "癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö": "607" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -137402083, - "topologyKey": "419", - "whenUnsatisfiable": "Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥", - "labelSelector": { - "matchLabels": { - "E--pT751": "mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X" - }, - "matchExpressions": [ - { - "key": "qW", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "strategy": { - "type": "荥ơ'禧ǵŊ)TiD¢ƿ媴h5", - "rollingUpdate": { - - } - }, - "minReadySeconds": 212061711, - "revisionHistoryLimit": -1092090658, - "progressDeadlineSeconds": -1707056814 - }, - "status": { - "observedGeneration": 2992108727478230062, - "replicas": 407742062, - "updatedReplicas": 2115789304, - "readyReplicas": 902022378, - "availableReplicas": 1660081568, - "unavailableReplicas": 904244563, - "conditions": [ - { - "type": "洅啶", - "status": "Ƅ抄3昞财Î嘝zʄ", - "lastUpdateTime": "2524-02-08T04:27:05Z", - "lastTransitionTime": "2146-08-16T07:05:27Z", - "reason": "426", - "message": "427" - } - ], - "collisionCount": -1977467928 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.pb deleted file mode 100644 index 896f5886b1acf7bb8c809d60c3eedcc9298434ab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6321 zcmZ8l33yaRw(ja^hdKfARzO`I|RZKwm?Dx zQNE9akdOwl09nZb2_zv9APXT72xF4&q%)4<`iVNO^oGlb;}e%b-l^^=^S%DQKKI^Q zPMve=)H(mDm3pRyyNjE!C?g|ta<;^C)6+6mt=+UbZA}(mDshJqhX{|T1IaF=Bp{7U zlq69mvZ%<0F6x>pszjvvJD=yjk+-8RFC)?NWXJZCTemg7RM(Fd#&SsGk)Aq%Lk4e^ z#B?WTm59SCQP*wLbN&5$M~j}z^tipH83|V4Ythkqt0d=ICB=;lkw{{-ALVwH6MGa;_8cIZe9f5FPNB5tWB%c8tQ z!5A;o7Zbb^8&aCENx{o7R&;2^qN-DzigUD8OR%~)Q&cymk2tYA~0wIH4UgNkKy{tRp;&0W8E2_^!Jo?*_(Hcg^F zzQ9Z|1uP_IEr6{KFXL0P+E1=W|X!MdOlBNeAF!TMrZ!6Jrk6@<$X;SVxOhPq5& zg7J!M353PU@+`av69e>Km$_Cm)X5aok~P7Ujf}?<&9$oZ*qo%)-^#{08#94{LTZ!th63t~LdP3|&PmLb&G?F_djjAeQ&WI~80>ZiKf zyq`3L`ic?w#PydB1`5ABdf;8OFpjfQk+)JQmAw&oqv>{dQyf;Rx?;V(qX(beoM5H0 zh?qN2E!RqQH@X9c7<^3VOq0VZi^M8R{P_g#+gQ#j6aLFsZW6pu{@31p-p2cfYKB^p zM{2`6k9&Jl)@_*fP_UuPbI`w~^Ff|+2@5i@UY0?y!sgbFcR0lj^mL@w`ivj|}7HBX>)6zj14Mf)ryTt{)y0{)T zMVEN14(C;;E~_pluy#eXCLw9FEkX#xY2(>FSQN-?eYuXMl9j58ZyXXHI&^5lrn&=q1jO_x|@U544uCXDD1l= ziuQxw@A{M7eYoJ8o1K;>G?9ZwiS-Z%5b6RVx1(RMW`#AYpb0#*1Ry#AVsxS3L9Zl2 zuOvCR=chgtKD8}%v_BcfNhBVT{|K~nCOqmrvDQ}|Xzw}$593r0{pKhst z`hSSJ72+S@?q^*(A6cF0PDIBY&_tNFBw|<4&bjOBzoa;R5n)FtZ({>wHbAkLx9@yw z0yro$5m9X~6&BPKzw^cqnP4ZP*=oM%-x~Gdw~-x2P^J?#pi>q>1ty*>eT06^p2TKh z?bO9&finO^iH=bDjyNucFzXOWb^uXaK-2^v8o{hfw_U&f&9Cg$Umhxny1na;tWZfu zuu}NkIERi89c9CfDUZW&&;f|-c!-0w2t*nnDi3-?G-2;Lv$A3+j@y{Zgn(fP z7466s{ia|XLW$jyID@luw~7 zMnr+Q1bziMk-t68V*C8$50}S%8*E2p$rTegz9WGt1(6B}h0Ww(VAald&LD?{HOaQd z(b{n%+5a_m<;#CXo#EvVuk2=T*HL`c<+jdftJvJ&I~U!+g$0OP7?D9%_=ngEYD5O# zM{WQ7CNj?vkwJ6)e5AtH?K@=*?ezCF4xSHIxA-c9rz)aifddeTSvKyLIK(!bDB#yb zk!+1GzET-u|MsG{eLU#(yi(g96Mv-YotLBR#nF8i%B-nJ5%*9;3`OUE17au!|063^ z1b(XIvP70rnFZ7zE#S$2pubSUr{oqRZYno%hQG03bW5PF#hK$h9_kwK*EikA z$1n0!1kaa?{?3Zc!2@OfGbbhmYg^~}8wP?UCqm^-o|A#YZQ-N6tH6|S0ttj%Anb@} z?1*Tp^Dn2igzJvKH1Gk6M=Z-ttthUpz4}AZ*n23+l5#tn!(3j|*&JgFvTR3|GGwV` z!Hp1+za?TSBEbUVuW(MAkZrCrw4-&?Q0L=GzOq2^$w%8+03(#~qIwtF%sms`B*Omz z+7%kH@!K7rj)#MYuPCx>;^>~x>1JQq$iD0cbnn4nVY|O@U&N#eJC%w$?!X^azT0Mv zY@edpu6^JiLiU$F{V*@ax%Hplz8n+({_AJs#LM+u3tp) z$NqQ3{nz1!&h3cAcuy{cR2V}cT>>GAKxh&WIR%Ka0R7pr+_K)}z?u|NBoNI3M0Wu( zY!`Na{z>=0-tE4K?8sT&-W6_nrReI+_=*F2-~D?36)z`V|Lf7Sf$jhJ;wzSKV<;p} zAaWwunX2FsRF#06N^)6@P?dZHRCP0|?M9!(a^;BAIEDL9)~oYB8)+Tho$J{ftlpK( zrWw2gI>57T^PUUV)jv1X65Q7w=&pf2P2%UpoxZZO#|l0TF`a6J|JCN9^3eYLp}IeM z_dOdryUpSNNK8hmVE!?RYHE-@t|_ z{1q$r9JiK}Ii3oOGnZqE@j_{Cb`CWjd6>U@eb$_3gk^$B9?<}erU}CA^?+XK?3v55 z1XJZT4$l*C*3#v&uz1njToZ=o;I)Eo&Yz2)5U7czO{PBGTp*Z&on1d53 zu&`hz7FG(Hu*$^q0ju3QeQjE1^4hEjXlIf`0HJ`MT2S0;ADzvM;p-6xC}bA*0L80k zt=cFELXMe*O+gW4F(pS{HXTeT;En2%R6L8hj)@-ymwh;64%9!?SO$GyH8VR+5muW7 z%)emaMt&+M=9o~kfaE5ghS$QZO{`p!U_Wx!r_MKL2m+DuY~Y+Nm)yY&AHDvPQk zMi#YN1XOQAdjMHTGK4Kj1`QMmyXnnZsq`#oq-+#bY9v(RIXTQ6f&8G}%ND5=E=uxO4L9&XGAP_K!r80=6 zMxm=BMxlnp0)_-o+Y*Hu667fORspgTE{?PC3>M4$z1**Sm7`lj-Cg0bZK0y0OJ@2{ zwfdWDvmW;E%A4(LVz@$)v?K<(RE^;Z31B)9Bf&yqpms{x%q6q<48;^r*h7xQ=Zjx9 zoMI{PI$#Bu13BcD8B<3qGY5|h^|GKW0e}ahjR)n6`7QM~v7jtzy6vl?%74V#yX!uA zBbu(A*ULUT5*z=`i8m{vX;o|mwZT2T;i5vX`+;=-d3Pk& zvD$(_ZE*t?i7b(eayk%Y{iNWzywKKxX9GLxMtA1=8bf^tLixL=t(_cbt6!S)M^Clq z?4`cLxz&h^2N(IRr+=*anNasuUpriA1hb5MfT7l-g5X|-*tcl;HSFoy4BO; z??09K+~~ka_tdD*u%ia?Gzx$}E_?rl@y(KKO#|KztNrt`)7}ZruP%n0qYe~5()q$m zNNji4E^b4XE(DG#i@?Nt`gw>LlIXfUP+2qDkvlJ3Q5Wny>OB|V{Z?af^VO@@ZjDrL zvIO$V5*dWZBGFMaQeV~*`zrc5u#v!9Wl3?s5t3OQCQI5|$np`okDC-|Dj(b8sSJ1S z`F;5GfpGbrO9R`&Rl7W;o~@o8p3=>pE&kT-%Z#P|1w!AU+tY>)B&UqHFZH#Cd-{jZ z=UXK%K3G#1Za6qC+|rpFa&H+tzbe?=o0#g)+ZsIBJ$f`)wJTIm{N$5Ek$OWFHMeyS zimQM1+(7iKGkFZhJ)>HeuB$CCaKJXq@O2{w0!s!j#=9dbR(K@ge& zX>G0s=;_|o^Gs91Iob5-=}QGHPlpVNA2H4K!rJ8!hRqF+KKi5}Ea2lg>$>@olz2D6 zLZ+$Ch9skzn1yn7vn2qaFpa0?C+)UgoWQ*@0pKFU10c+IbOLUv(*z(giDzAk?X43< z-^beje&WK1(bMJnS-7d!-_kl%8Lo1(k!qyKGZ+)drO_e}jy!xpvIHImYzKkrj)5>( zC0f+MbpSNNeZY8;2loN+4ObM25_bo8%V1Y#vbSomZy5{0P_z7!yEDAa9Uf>KDjDnv zlvj>+4mX+)vcL=FbQ1Uu6-5?!sR%_G6-ff`Jrmkjr+SOS%{{)76(en)GXy$l3KZ&* zSWMwCLM=B!!)KyJf4uvv4~wETqqx2O@)yz8g)5*0VdjtsKZ!kP zi?;oETC=|6qgb0BR__KeYk-co<#u?*kI z$l~l0gu*4rPk|DyKv)X}Xu!mWvYUxdm7iErNcWV&9ipc(%7MWwxPiFA0cz8UIk<@<1>qxQBRj{66W7Eq9myYQ3hZmeS8!p-Q=$-+`xh&Wk7>6ph4xIYOQEcBoNi21(vS= zRBP!53ySxK&L8vE40rjfo8+;o#;!EpF)5Q0R_g{@p)h#n$9n5=m z{B~nq+_AoalO-P(4&872{KeiuWdCO9$`=!y`;Yv!DmMPLw=0jwkO#TgK+iURMK3?m zTM%#;&_H!VsHbVD#9v*XJ67O|kqO)w$xx5S#nl9_luxr+ro_da%6tFAi8hOVxw!OL Q%+%1;?XUa@1zeW@17TYvuK)l5 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.yaml deleted file mode 100644 index dad648a7e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.Deployment.yaml +++ /dev/null @@ -1,958 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: 212061711 - progressDeadlineSeconds: -1707056814 - replicas: 896585016 - revisionHistoryLimit: -1092090658 - selector: - matchExpressions: - - key: 50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99 - operator: Exists - matchLabels: - 74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj: 6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1 - strategy: - rollingUpdate: {} - type: 荥ơ'禧ǵŊ)TiD¢ƿ媴h5 - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -2575298329142810753 - finalizers: - - "37" - generateName: "26" - generation: -8542870036622468681 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: 躢 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: ƶȤ^} - resourceVersion: "1736621709629422270" - selfLink: "28" - uid: ?Qȫş - spec: - activeDeadlineSeconds: -8619192438821356882 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "372" - operator: '}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊' - values: - - "373" - matchFields: - - key: "374" - operator: ʨIk(dŊiɢzĮ蛋I滞 - values: - - "375" - weight: 646133945 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "368" - operator: ǧĒzŔ瘍N - values: - - "369" - matchFields: - - key: "370" - operator: ƽ眝{æ盪泙 - values: - - "371" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8.--w0_1V7 - operator: In - values: - - 7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8 - matchLabels: - w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y: f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5 - namespaces: - - "390" - topologyKey: "391" - weight: -855547676 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd - operator: Exists - matchLabels: - 3.csh-3--Z1Tvw39FC: rtSY.g._2F7.-_e..Or_-.3OHgt._6 - namespaces: - - "382" - topologyKey: "383" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf - operator: DoesNotExist - matchLabels: - 3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2: CpS__.39g_.--_-_ve5.m_2_--XZx - namespaces: - - "406" - topologyKey: "407" - weight: 808399187 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81 - operator: DoesNotExist - matchLabels: - 4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33: 17ca-_p-y.eQZ9p_1 - namespaces: - - "398" - topologyKey: "399" - automountServiceAccountToken: false - containers: - - args: - - "216" - command: - - "215" - env: - - name: "223" - value: "224" - valueFrom: - configMapKeyRef: - key: "230" - name: "229" - optional: true - fieldRef: - apiVersion: "225" - fieldPath: "226" - resourceFieldRef: - containerName: "227" - divisor: "595" - resource: "228" - secretKeyRef: - key: "232" - name: "231" - optional: false - envFrom: - - configMapRef: - name: "221" - optional: false - prefix: "220" - secretRef: - name: "222" - optional: false - image: "214" - imagePullPolicy: û咡W<敄lu|榝$î.Ȏ蝪ʜ5 - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - tcpSocket: - host: "264" - port: 1943028037 - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: -1355476687 - scheme: -Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "239" - failureThreshold: -1213051101 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "240" - port: -1654678802 - scheme: 毋 - initialDelaySeconds: -775511009 - periodSeconds: -228822833 - successThreshold: -970312425 - tcpSocket: - host: "244" - port: 391562775 - timeoutSeconds: -832805508 - name: "213" - ports: - - containerPort: -775325416 - hostIP: "219" - hostPort: 62799871 - name: "218" - protocol: t莭琽§ć\ ïì - readinessProbe: - exec: - command: - - "245" - failureThreshold: 571739592 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "246" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - initialDelaySeconds: 852780575 - periodSeconds: 893823156 - successThreshold: -1980314709 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1252938503 - resources: - limits: - N粕擓ƖHVe熼: "334" - requests: - 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶: "388" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - E埄Ȁ朦 wƯ貾坢' - drop: - - aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: -2408264753085021035 - runAsNonRoot: true - runAsUser: -2270595441829602368 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - runAsUserName: "279" - startupProbe: - exec: - command: - - "252" - failureThreshold: -1008070934 - httpGet: - host: "254" - httpHeaders: - - name: "255" - value: "256" - path: "253" - port: -1334110502 - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "257" - port: 622267234 - timeoutSeconds: 809006670 - terminationMessagePath: "272" - terminationMessagePolicy: T 苧yñKJɐ扵G - volumeDevices: - - devicePath: "238" - name: "237" - volumeMounts: - - mountPath: "234" - mountPropagation: 癃8鸖 - name: "233" - readOnly: true - subPath: "235" - subPathExpr: "236" - workingDir: "217" - dnsConfig: - nameservers: - - "414" - options: - - name: "416" - value: "417" - searches: - - "415" - dnsPolicy: Ƶf - enableServiceLinks: true - ephemeralContainers: - - args: - - "283" - command: - - "282" - env: - - name: "290" - value: "291" - valueFrom: - configMapKeyRef: - key: "297" - name: "296" - optional: true - fieldRef: - apiVersion: "292" - fieldPath: "293" - resourceFieldRef: - containerName: "294" - divisor: "381" - resource: "295" - secretKeyRef: - key: "299" - name: "298" - optional: false - envFrom: - - configMapRef: - name: "288" - optional: false - prefix: "287" - secretRef: - name: "289" - optional: true - image: "281" - imagePullPolicy: ņ - lifecycle: - postStart: - exec: - command: - - "326" - httpGet: - host: "329" - httpHeaders: - - name: "330" - value: "331" - path: "327" - port: "328" - scheme: 幩šeSvEȤƏ埮pɵ - tcpSocket: - host: "333" - port: "332" - preStop: - exec: - command: - - "334" - httpGet: - host: "337" - httpHeaders: - - name: "338" - value: "339" - path: "335" - port: "336" - scheme: ş - tcpSocket: - host: "341" - port: "340" - livenessProbe: - exec: - command: - - "306" - failureThreshold: -300247800 - httpGet: - host: "308" - httpHeaders: - - name: "309" - value: "310" - path: "307" - port: 865289071 - scheme: iɥ嵐sC8 - initialDelaySeconds: -1513284745 - periodSeconds: -414121491 - successThreshold: -1862764022 - tcpSocket: - host: "311" - port: -898536659 - timeoutSeconds: 1258370227 - name: "280" - ports: - - containerPort: -1137436579 - hostIP: "286" - hostPort: 1868683352 - name: "285" - protocol: 颶妧Ö闊 - readinessProbe: - exec: - command: - - "312" - failureThreshold: 215186711 - httpGet: - host: "314" - httpHeaders: - - name: "315" - value: "316" - path: "313" - port: 323903711 - scheme: J - initialDelaySeconds: 657418949 - periodSeconds: 287654902 - successThreshold: -2062708879 - tcpSocket: - host: "318" - port: "317" - timeoutSeconds: -992558278 - resources: - limits: - ²sNƗ¸g: "50" - requests: - 酊龨δ摖ȱğ_<: "118" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - DŽ髐njʉBn(fǂǢ曣 - drop: - - ay - privileged: false - procMount: 嗆u - readOnlyRootFilesystem: true - runAsGroup: -5996624450771474158 - runAsNonRoot: false - runAsUser: 1958157659034146020 - seLinuxOptions: - level: "346" - role: "344" - type: "345" - user: "343" - windowsOptions: - gmsaCredentialSpec: "348" - gmsaCredentialSpecName: "347" - runAsUserName: "349" - startupProbe: - exec: - command: - - "319" - failureThreshold: 1502643091 - httpGet: - host: "321" - httpHeaders: - - name: "322" - value: "323" - path: "320" - port: -1117254382 - scheme: 趐囨鏻砅邻爥蹔ŧOǨ - initialDelaySeconds: 2129989022 - periodSeconds: 1311843384 - successThreshold: -1292310438 - tcpSocket: - host: "325" - port: "324" - timeoutSeconds: -1699531929 - targetContainerName: "350" - terminationMessagePath: "342" - terminationMessagePolicy: 迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ - tty: true - volumeDevices: - - devicePath: "305" - name: "304" - volumeMounts: - - mountPath: "301" - mountPropagation: ƺ蛜6Ɖ飴ɎiǨź - name: "300" - readOnly: true - subPath: "302" - subPathExpr: "303" - workingDir: "284" - hostAliases: - - hostnames: - - "412" - ip: "411" - hostNetwork: true - hostname: "366" - imagePullSecrets: - - name: "365" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "650" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: true - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩 - lifecycle: - postStart: - exec: - command: - - "192" - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "193" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - tcpSocket: - host: "197" - port: 424236719 - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: -1131820775 - scheme: Ƿ裚瓶釆Ɗ+j忊 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "173" - failureThreshold: -1113628381 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -152585895 - scheme: E@Ȗs«ö - initialDelaySeconds: 1843758068 - periodSeconds: 1702578303 - successThreshold: -1565157256 - tcpSocket: - host: "178" - port: 1135182169 - timeoutSeconds: -1967469005 - name: "147" - ports: - - containerPort: 1403721475 - hostIP: "153" - hostPort: -606111218 - name: "152" - protocol: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - readinessProbe: - exec: - command: - - "179" - failureThreshold: -1167888910 - httpGet: - host: "181" - httpHeaders: - - name: "182" - value: "183" - path: "180" - port: 386652373 - scheme: ʙ嫙& - initialDelaySeconds: -802585193 - periodSeconds: 1944205014 - successThreshold: -2079582559 - tcpSocket: - host: "185" - port: "184" - timeoutSeconds: 1901330124 - resources: - limits: - "": "84" - requests: - ɖȃ賲鐅臬dH巧壚tC十Oɢ: "517" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - privileged: false - procMount: $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫 - readOnlyRootFilesystem: true - runAsGroup: -8419423421380299597 - runAsNonRoot: false - runAsUser: -6576869501326512452 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - runAsUserName: "212" - startupProbe: - exec: - command: - - "186" - failureThreshold: 208045354 - httpGet: - host: "188" - httpHeaders: - - name: "189" - value: "190" - path: "187" - port: 804417065 - scheme: Ŵ廷s{Ⱦdz@ - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "191" - port: 406308963 - timeoutSeconds: 2026784878 - terminationMessagePath: "205" - terminationMessagePolicy: 焗捏 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: "" - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "355" - nodeSelector: - "351": "352" - overhead: - 癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö: "607" - preemptionPolicy: eáNRNJ丧鴻Ŀ - priority: 1690570439 - priorityClassName: "413" - readinessGates: - - conditionType: 梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳 - restartPolicy: T[ - runtimeClassName: "418" - schedulerName: "408" - securityContext: - fsGroup: 760480547754807445 - runAsGroup: -801152248124332545 - runAsNonRoot: true - runAsUser: -2781126825051715248 - seLinuxOptions: - level: "359" - role: "357" - type: "358" - user: "356" - supplementalGroups: - - 5255171395073905944 - sysctls: - - name: "363" - value: "364" - windowsOptions: - gmsaCredentialSpec: "361" - gmsaCredentialSpecName: "360" - runAsUserName: "362" - serviceAccount: "354" - serviceAccountName: "353" - shareProcessNamespace: false - subdomain: "367" - terminationGracePeriodSeconds: -2738603156841903595 - tolerations: - - effect: 料ȭzV镜籬ƽ - key: "409" - operator: ƹ| - tolerationSeconds: 935587338391120947 - value: "410" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: qW - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - E--pT751: mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X - maxSkew: -137402083 - topologyKey: "419" - whenUnsatisfiable: Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥 - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: 912004803 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: '|@?鷅bȻN' - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 榱*Gưoɘ檲 - readOnly: true - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 1593906314 - items: - - key: "99" - mode: 195263908 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: 824682619 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1569992019 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "660" - resource: "92" - emptyDir: - medium: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - sizeLimit: "473" - fc: - fsType: "94" - lun: -1740986684 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1188153605 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - iscsi: - chapAuthDiscovery: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 994527057 - portals: - - "60" - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - readOnly: true - volumeID: "128" - projected: - defaultMode: -1334904807 - sources: - - configMap: - items: - - key: "124" - mode: 2063799569 - path: "125" - name: "123" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 173030157 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "106" - resource: "122" - secret: - items: - - key: "116" - mode: -323584340 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: 8357931971650847566 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 332383000 - items: - - key: "52" - mode: -547518679 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" -status: - availableReplicas: 1660081568 - collisionCount: -1977467928 - conditions: - - lastTransitionTime: "2146-08-16T07:05:27Z" - lastUpdateTime: "2524-02-08T04:27:05Z" - message: "427" - reason: "426" - status: Ƅ抄3昞财Î嘝zʄ - type: 洅啶 - observedGeneration: 2992108727478230062 - readyReplicas: 902022378 - replicas: 407742062 - unavailableReplicas: 904244563 - updatedReplicas: 2115789304 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.json b/pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.json deleted file mode 100644 index b8f6df81b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.json +++ /dev/null @@ -1,1397 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": 896585016, - "minReadySeconds": -1971381490, - "selector": { - "matchLabels": { - "g8c2-k-912e5-c-e63-n-3snh-z--3uy5-----578/s.X8u4_.l.wV--__-Nx.N_6-___._-.-W._AAn---v_-5-_8LXP-o-9..1l-5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ʬ", - "resourceVersion": "7336814125345800857", - "generation": -6617020301190572172, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -152893758082474859, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "ɖgȏ哙ȍȂ揲ȼDDŽLŬp:", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "ƅS·Õüe0ɔȖ脵鴈Ō", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ" - }, - "emptyDir": { - "medium": "彭聡A3fƻfʣ", - "sizeLimit": "115" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1499132872 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": -762366823, - "readOnly": true - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -104666658 - } - ], - "defaultMode": 372704313, - "optional": true - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 1655406148, - "iscsiInterface": "58", - "fsType": "59", - "readOnly": true, - "portals": [ - "60" - ], - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64" - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "457" - }, - "mode": 1235524154 - } - ], - "defaultMode": -106644772 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": 441887498, - "fsType": "94", - "readOnly": true, - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97" - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": -2039036935 - } - ], - "defaultMode": -460478410, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "readOnly": true, - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "HǺƶȤ^}穠", - "fsType": "112", - "readOnly": true, - "kind": "躢" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -1399063270 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "746" - }, - "mode": 926891073 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": -1694464659 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": -7593824971107985079, - "path": "127" - } - } - ], - "defaultMode": -522879476 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129" - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "readOnly": true, - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": false, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -1896921306, - "containerPort": 715087892, - "protocol": "倱\u003c", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": false - }, - "secretRef": { - "name": "156", - "optional": false - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "455" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": true - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "/擇ɦĽ胚O醔ɍ厶耈 T": "618" - }, - "requests": { - "á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ": "372" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "dʪīT捘ɍi縱ù墴1Rƥ", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": "175", - "host": "176", - "scheme": "ƴy綸_Ú8參遼ūPH炮", - "httpHeaders": [ - { - "name": "177", - "value": "178" - } - ] - }, - "tcpSocket": { - "port": "179", - "host": "180" - }, - "initialDelaySeconds": 741871873, - "timeoutSeconds": 446829537, - "periodSeconds": -1987044888, - "successThreshold": -1638339389, - "failureThreshold": 2053960192 - }, - "readinessProbe": { - "exec": { - "command": [ - "181" - ] - }, - "httpGet": { - "path": "182", - "port": -1903685915, - "host": "183", - "scheme": "ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬", - "httpHeaders": [ - { - "name": "184", - "value": "185" - } - ] - }, - "tcpSocket": { - "port": "186", - "host": "187" - }, - "initialDelaySeconds": 128019484, - "timeoutSeconds": 431781335, - "periodSeconds": -2130554644, - "successThreshold": 290736426, - "failureThreshold": -57352147 - }, - "startupProbe": { - "exec": { - "command": [ - "188" - ] - }, - "httpGet": { - "path": "189", - "port": "190", - "host": "191", - "scheme": "閝ȝ", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": "194", - "host": "195" - }, - "initialDelaySeconds": -2142865739, - "timeoutSeconds": -1179067190, - "periodSeconds": 1434408532, - "successThreshold": -566408554, - "failureThreshold": 1133369651 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": -1327537699, - "host": "198", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ĉş蝿ɖȃ賲鐅臬", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "imagePullPolicy": "k_瀹鞎sn芞QÄȻ", - "securityContext": { - "capabilities": { - "add": [ - "?" - ], - "drop": [ - "峧Y栲茇竛吲蚛隖" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217", - "runAsUserName": "218" - }, - "runAsUser": 7312518131318481396, - "runAsGroup": -7286288718856494813, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ʙ嫙\u0026" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "219", - "image": "220", - "command": [ - "221" - ], - "args": [ - "222" - ], - "workingDir": "223", - "ports": [ - { - "name": "224", - "hostPort": 1944205014, - "containerPort": -2079582559, - "protocol": "K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ", - "hostIP": "225" - } - ], - "envFrom": [ - { - "prefix": "226", - "configMapRef": { - "name": "227", - "optional": true - }, - "secretRef": { - "name": "228", - "optional": false - } - } - ], - "env": [ - { - "name": "229", - "value": "230", - "valueFrom": { - "fieldRef": { - "apiVersion": "231", - "fieldPath": "232" - }, - "resourceFieldRef": { - "containerName": "233", - "resource": "234", - "divisor": "901" - }, - "configMapKeyRef": { - "name": "235", - "key": "236", - "optional": false - }, - "secretKeyRef": { - "name": "237", - "key": "238", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "羭,铻OŤǢʭ嵔": "340" - }, - "requests": { - "TG;邪匾mɩC[ó瓧嫭塓烀罁胾^拜": "755" - } - }, - "volumeMounts": [ - { - "name": "239", - "mountPath": "240", - "subPath": "241", - "mountPropagation": "ʒ刽ʼn掏1ſ盷褎weLJèux榜", - "subPathExpr": "242" - } - ], - "volumeDevices": [ - { - "name": "243", - "devicePath": "244" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": "247", - "host": "248", - "scheme": "賃ɪ鐊瀑Ź9ǕLLȊ", - "httpHeaders": [ - { - "name": "249", - "value": "250" - } - ] - }, - "tcpSocket": { - "port": -26910286, - "host": "251" - }, - "initialDelaySeconds": 1214895765, - "timeoutSeconds": 1181519543, - "periodSeconds": 282592353, - "successThreshold": 377225334, - "failureThreshold": -1191434089 - }, - "readinessProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": "254", - "host": "255", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - }, - "initialDelaySeconds": -839281354, - "timeoutSeconds": 2035347577, - "periodSeconds": -819723498, - "successThreshold": -150133456, - "failureThreshold": 1507815593 - }, - "startupProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": 1684643131, - "host": "262", - "scheme": "飣奺Ȋ礶惇¸", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - }, - "initialDelaySeconds": -161753937, - "timeoutSeconds": -1578746609, - "periodSeconds": 1428207963, - "successThreshold": 790462391, - "failureThreshold": -822090785 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "267" - ] - }, - "httpGet": { - "path": "268", - "port": -421846800, - "host": "269", - "scheme": "zvt莭琽§", - "httpHeaders": [ - { - "name": "270", - "value": "271" - } - ] - }, - "tcpSocket": { - "port": -763687725, - "host": "272" - } - }, - "preStop": { - "exec": { - "command": [ - "273" - ] - }, - "httpGet": { - "path": "274", - "port": -1452676801, - "host": "275", - "scheme": "ȿ0矀Kʝ", - "httpHeaders": [ - { - "name": "276", - "value": "277" - } - ] - }, - "tcpSocket": { - "port": "278", - "host": "279" - } - } - }, - "terminationMessagePath": "280", - "terminationMessagePolicy": "\\p[", - "imagePullPolicy": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "securityContext": { - "capabilities": { - "add": [ - "À*f\u003c鴒翁杙Ŧ癃8" - ], - "drop": [ - "ɱJȉ罴" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "281", - "role": "282", - "type": "283", - "level": "284" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "285", - "gmsaCredentialSpec": "286", - "runAsUserName": "287" - }, - "runAsUser": -2706913289057230267, - "runAsGroup": -3689959065086680033, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "288", - "image": "289", - "command": [ - "290" - ], - "args": [ - "291" - ], - "workingDir": "292", - "ports": [ - { - "name": "293", - "hostPort": 1853396726, - "containerPort": 1330271338, - "protocol": "逴", - "hostIP": "294" - } - ], - "envFrom": [ - { - "prefix": "295", - "configMapRef": { - "name": "296", - "optional": true - }, - "secretRef": { - "name": "297", - "optional": true - } - } - ], - "env": [ - { - "name": "298", - "value": "299", - "valueFrom": { - "fieldRef": { - "apiVersion": "300", - "fieldPath": "301" - }, - "resourceFieldRef": { - "containerName": "302", - "resource": "303", - "divisor": "709" - }, - "configMapKeyRef": { - "name": "304", - "key": "305", - "optional": false - }, - "secretKeyRef": { - "name": "306", - "key": "307", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "颐o": "230" - }, - "requests": { - "[+扴ȨŮ+朷Ǝ膯ljV": "728" - } - }, - "volumeMounts": [ - { - "name": "308", - "mountPath": "309", - "subPath": "310", - "mountPropagation": "ŕ-Ɂ圯W:ĸ輦唊#v铿", - "subPathExpr": "311" - } - ], - "volumeDevices": [ - { - "name": "312", - "devicePath": "313" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "314" - ] - }, - "httpGet": { - "path": "315", - "port": "316", - "host": "317", - "scheme": "屡ʁ", - "httpHeaders": [ - { - "name": "318", - "value": "319" - } - ] - }, - "tcpSocket": { - "port": -1554559634, - "host": "320" - }, - "initialDelaySeconds": 1718241831, - "timeoutSeconds": 550615941, - "periodSeconds": 1180971695, - "successThreshold": -1971944908, - "failureThreshold": 1742259603 - }, - "readinessProbe": { - "exec": { - "command": [ - "321" - ] - }, - "httpGet": { - "path": "322", - "port": -1620315711, - "host": "323", - "scheme": "ɐ扵", - "httpHeaders": [ - { - "name": "324", - "value": "325" - } - ] - }, - "tcpSocket": { - "port": "326", - "host": "327" - }, - "initialDelaySeconds": -1358663652, - "timeoutSeconds": 1543146222, - "periodSeconds": -527306221, - "successThreshold": 2098694289, - "failureThreshold": 1150925735 - }, - "startupProbe": { - "exec": { - "command": [ - "328" - ] - }, - "httpGet": { - "path": "329", - "port": "330", - "host": "331", - "scheme": "榝$î.Ȏ蝪ʜ5遰", - "httpHeaders": [ - { - "name": "332", - "value": "333" - } - ] - }, - "tcpSocket": { - "port": -1438286448, - "host": "334" - }, - "initialDelaySeconds": 834105836, - "timeoutSeconds": -1462219068, - "periodSeconds": -370386363, - "successThreshold": 1714588921, - "failureThreshold": -1246371817 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "335" - ] - }, - "httpGet": { - "path": "336", - "port": "337", - "host": "338", - "scheme": "跩aŕ翑", - "httpHeaders": [ - { - "name": "339", - "value": "340" - } - ] - }, - "tcpSocket": { - "port": "341", - "host": "342" - } - }, - "preStop": { - "exec": { - "command": [ - "343" - ] - }, - "httpGet": { - "path": "344", - "port": 1017803158, - "host": "345", - "scheme": "碔", - "httpHeaders": [ - { - "name": "346", - "value": "347" - } - ] - }, - "tcpSocket": { - "port": "348", - "host": "349" - } - } - }, - "terminationMessagePath": "350", - "terminationMessagePolicy": "Kƙ順\\E¦队偯J僳徥淳4揻-$ɽ丟", - "imagePullPolicy": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "securityContext": { - "capabilities": { - "add": [ - "ŧL²sNƗ¸gĩ餠籲磣Óƿ" - ], - "drop": [ - "\"冓鍓贯澔 ƺ蛜6" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "351", - "role": "352", - "type": "353", - "level": "354" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "355", - "gmsaCredentialSpec": "356", - "runAsUserName": "357" - }, - "runAsUser": 4353696140684277635, - "runAsGroup": 6057650398488995896, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "鰥Z龏´DÒȗ" - }, - "tty": true, - "targetContainerName": "358" - } - ], - "restartPolicy": "ɘɢ鬍熖B芭花ª瘡", - "terminationGracePeriodSeconds": 2666412258966278206, - "activeDeadlineSeconds": -8715915045560617563, - "dnsPolicy": "丆", - "nodeSelector": { - "359": "360" - }, - "serviceAccountName": "361", - "serviceAccount": "362", - "automountServiceAccountToken": false, - "nodeName": "363", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "364", - "role": "365", - "type": "366", - "level": "367" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "368", - "gmsaCredentialSpec": "369", - "runAsUserName": "370" - }, - "runAsUser": 2179199799235189619, - "runAsGroup": -779972051078659613, - "runAsNonRoot": false, - "supplementalGroups": [ - -7127205672279904050 - ], - "fsGroup": 7124276984274024394, - "sysctls": [ - { - "name": "371", - "value": "372" - } - ] - }, - "imagePullSecrets": [ - { - "name": "373" - } - ], - "hostname": "374", - "subdomain": "375", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "376", - "operator": "6x$1sȣ±p鋄5弢ȹ均i绝5哇芆", - "values": [ - "377" - ] - } - ], - "matchFields": [ - { - "key": "378", - "operator": "埮pɵ{WOŭW灬p", - "values": [ - "379" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 199049889, - "preference": { - "matchExpressions": [ - { - "key": "380", - "operator": "擭銆jʒǚ鍰\\縑", - "values": [ - "381" - ] - } - ], - "matchFields": [ - { - "key": "382", - "operator": "鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ", - "values": [ - "383" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS": "1Tvw39F_C-rtSY.g._2F7.-_e..r" - }, - "matchExpressions": [ - { - "key": "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1", - "operator": "NotIn", - "values": [ - "z" - ] - } - ] - }, - "namespaces": [ - "390" - ], - "topologyKey": "391" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -217760519, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6": "Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "398" - ], - "topologyKey": "399" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "406" - ], - "topologyKey": "407" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "414" - ], - "topologyKey": "415" - } - } - ] - } - }, - "schedulerName": "416", - "tolerations": [ - { - "key": "417", - "operator": "堺ʣ", - "value": "418", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "419", - "hostnames": [ - "420" - ] - } - ], - "priorityClassName": "421", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "422" - ], - "searches": [ - "423" - ], - "options": [ - { - "name": "424", - "value": "425" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "426", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "427", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - } - }, - "status": { - "replicas": -330302940, - "fullyLabeledReplicas": 138911331, - "readyReplicas": 1613009760, - "availableReplicas": -1469601144, - "observedGeneration": 6703635170896137755, - "conditions": [ - { - "type": "ɡj瓇ɽ丿YƄZZ塖bʘ", - "status": "ɻ猶N嫡牿咸Ǻ潑鶋洅啶'ƈoIǢ龞瞯å", - "lastTransitionTime": "2469-07-10T03:20:34Z", - "reason": "434", - "message": "435" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1.ReplicaSet.pb deleted file mode 100644 index 424f09a43beff395757055f20302cc361a73d88a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6360 zcmZ8ld0bT2y`M9<^}f86-e#FM?Z=X-O(@B^-gC}fZPG?Gh7h;7*Dkl3pb-TLs33iL z1(96@Wl>N>Kv7g&09jNZVHlX9P1_vWQ_O*5;h9!*Beh#yb+s( zrl|NyoT4$Dj#*av(>NDnwspIT`A^l2nOV{*W2<6Go22X&7+V%zm?JH;Gwbb>QfiNS7)E?J71@mQj@StE}vU9Mm} z+mcp24q_}Ymzh~f(n{4?j)hJn*r_Vosphm(-DRgnf_?lH{kG1SW)Ou?l_{zr%LZt7 z?es@Y1($=hM-aHCw*SWQf8Xr-;3ira;V>^Af^}Z0CH>sf<|(cBaUPJBsPKc4m~JAHXV8ynD28>2R;R)_o~O_SJan zLOaigyGuN~oOVT~c7=#9-!EL7BG?rwzCT64@W90Tw6U_q3&KZRe-%1&GS@#?5bkZ! zyhr`DwZXQ1W0lljyU*Wz%zI9}Te#gn&=JaSp3T;cUR*ccDoz$+2vMDP0v|=RE2^V! zf6e(DU%(H=*<5^BgJIoKAHGy`GdheCZi8V1hE1nkmFYc#T_xhTfr9obbNuDy@)!Bc zFOZ|ZOcLxGS!G*m z*Jv`V)0k-26o+jI=&Y%+Xf=es2J1E5Y1a&wT{9ExI#@<0vtXr8A4Y4P@DHnW#mPt1 zI9md^Mu#=Jo*D~JAi8ckY%cg}$e9kHM6?@loDAl&8%hEnS7lo+tTJGgq3=Lc0Ph%v z$cNwrnzHkog588=CUt@d6;+SB(7pGCNwIH!y!VBu@@41_n8ISqUVHr|Rtp&nZVZ69kvGaLjiU(4Ux|^#TX*Xj_bv5bbT7NU(X+Uj{H0F7-wq%e(;^}Nz@61 zxqv7q(0BN-%7--v;$wOO5Q73SJJAg8U>Uv=;=CmHaD_1~*4O#zwc(0aUaUi4CaTBo`ux?Rs1;vF4w%BY zYRrU>iVRNSQYz$K^gaGhV{Lq#xwuGhB!H;V8Jc*0nh-+?h)F?AAjAcPCIDgd$MA_N zv9G;f(lpi4+;R4B)Pt^j9+#d7bruh|di(t+&yMzw)nvPS(;o|V9(W{J*gsY^+R4|e zvmWQ`Icp|6eLSK zD>&HkK)CwiBF~Yrmhle%`5J!KA?JuQg?pDh`lIlU6aHO;X}niFU{NMRCP@~p5bBB-K@IcTRJKeP(MNgH}#>Yu)ZO1Y9Bu8&!XV;{-cS_zaLh=8~`=ATS z`~LXB*k_S=Se+*PII=yYrSAhrm3_6ns=)TD>as<)f@}nDx-(YzQalv`gsNt2&xyd* z&m+tn*WY%JPmQZ9s=6K>h(9~t-4_)}ZhzDX_h=P1HfS6$!m4#~l$yvN5IqfEJ0`mI_)-h&Y{HHJdg`(B{BdbBQSMM|*f(tY#h z`b&3&PG9m>dv}dDrEdrq9>}fW2lx(mUc$Nu!`*v>L-~QmdQV%hz5tS-?_9FCG&s-= zzJ#1aA$c)CsNAWg}MjmeRHtfFHcijIwlsqHQS~lMDQ1)1@ zuglkKx_9}zn}&yi``dhV!QNVLgS*0CUby6&oG%Y>L*sn)JY*|Ds0u;KgnUOS#8Sj6 zaJ-Ro;?anOBpLJbjGvw0>5M{Q1fq1J{}C2N9V15_1LzDKbMZo3>y)TZs4F(y+Uh@g z!CMwQ(i12s9`1|S5NZ#2Ot~d8G%k{+#hz)u+8On}qw>c7%888j#y@woPmb^X;^R;4 z@?Xck_#_%C&bxg3eJ$Zr6~Usq#86pBsO;SEiQxX`xWU603Xb0x%KJh5(ZA=99Xj1p zSPbd-N?#Gw%NVA@31FI>2!td9p-X_URkmNDr)`;*0ETB8Ef)anfDr(dTFwlTW*+(QR?{Kv4(KP*`Ejd_P|64vUvWTir)<%I^sJwQn@nJl|Rzp>+qcz>z6~# zy$_7`j<)idOl*%4evgDYCO0Q?ySdkSx3sS4J&;|u_xTQgLOaaQVPT{lgfwK0{0 z*i5`d%G#Q?PEX06xfQEvsg@}%kf6c=Se2g9k}L^8EzE<#NDAJ* zof?=KIcZzf^c*D%V}$@(##-7;$SNSR3AlF^o(rOH)Wip$kZ_iiBqePHP;X%wFC%Fw zn=qayMSjfMV&P2^!0fq?>Y12<&Y-cSSk|gV>5Iij1)agbdOnIX4E&Ue4V-3d0M>G< zx?al7%*-~hx+Mz)Ser3Zdjxa_y;3YH-Zpo0N*1W~NX~|=EnF>wt7SUhvLV6bu(T=(OB*F!+GOFC#%9UNNhWyHyxG<&CVp#$oJ6sdo0KgjS>VeR%fxadq{+v&~(o7|Ldx}c8T)T!jdwrZQ!L8 z3+u*aO9PzCr<*%9Yx^@;i;2o09O)M z2;Uc+GXvGdzP6EpP(j0@a8Zq~!oRyGlvgr*co~Ns8h}E;DemS_;n2vj;H4fZw72k{ zHU7r-MZXI4AXg`ax^pcxwE_$jN1aiv7Nd z4Z*&1?tXtuH(4@zl*SNUUh9gDohQG2P zoPWu4a&b~{$7x<42&6V3#@F?MKst*dh8&yU^7cD+$2-SLUPW=CuIGLiwQIcle=q+t z8hvu!m9CekuC7Ny2Cq#7(%W+WM}=YBAmg&tD)W^95gd9qQ@TmbKygdKmGl~ z7f{@L&7~z1vYpub$1)^$JooaIXogwafP}db*`QnbA;@Ox5!v2y-zfj93Nc)_dj@>1iNU6Qj|}%+ z=^u>0{N{nT{$4-u`HLvh5-PmgQK&o&S%eZVI@30~D;mEqp}T+^1>qFRAp61}h^0{V z&j`JX?iFTuE`&SE{LO>Dx*3_9H+jo_JzIU{YNmf@sjofIl;=Ah?k@ZrXRCdHY&X#K zdptYINcm|0e+LRL1y1INN;^a4MWHjbfyy)C{Hh&x=xCJtMk)gbY6C~A0<{Oy1O4@p zgHPl#`v{s=^?Xy`L}>)3y3_HaaDQ`nPxY0-!tlNdPo<~8Q|_sJ)|2Og?sTs3PzHS} zH7)B&Km%)@G`3O()ewGE+X_%Xr|DRgQVlH2RK^6WGqvO?Z`TQM@v8OEn#8MwX>5!m6c1 z>CFZ-0ry}MR8-4+VrBAP`zKR{tB|NE+%y0IC`L`*aG4|l2&EkP!i~beI^O+gisNs` z+iy&A#f0;^`9~$vLBd4>Je$!J&1C2+7#u=K(F~3u5XL)5T{fdBn!#CwLG{ZHlF1O= zOon@j#F@f>3X{SuRhzkqp(hom3wQqP{y=HB_qgZu{egqMqq{>zXU0lb@b5Y`l4tTg z0DwbHm!Y;WA}8GKsl~p0|G_gWXN~lQF15k+wU$M_*&M2X-!qJDV@ z7=dcdi0+!~Ki52-&vO}rY5>HX=#c)=@K(c@y$_62Irdmhd)E|4;U}X-_P8_ts;)`# z-8)}@IeIwc>hjBjQ&wk9><3p1aG${-a(Q?5{N*#BMFW~AGe((fvac#odOor%k7!13 z$)F6{4j6$9`u3hrqY^m&QTw;QPL8X-GPX0?<;CyW^Ow+6`Pe6cBa_xb6ZL3BOX$_% z^ue{_S6VViB8(ZXZ-jc=*LZ4!Lwh27!VMsA(!W0L46giOgo=p~M*Ox97{Sd1?_ugL zxBFuvk}Ik!CfHIF;Q@^{%($iXV{lssBhdOWRnD9qC@=Nw^&Jhj^!VG3x$DCF%HqOj zYXXCf&#VX?FUl=J0u#RDIW~W|Gi%}KzTv+0BkkcMhlA%jgRQOZ>d_(b4wt{EI$Tj5 z>OK<~tce@F5IS%WG97OQ8C(Sdfo71Y&hNIYaQ9sIUhh7hVVMdrfvG$M)M(RZt3oK+^qCMN+z8avzH0hRsP`@C z2ak`|hYuJ1{E^|d@ct%${+VQdL6?8LF)JvQPV-xXM^;zvpx5Oh; zV&A*`Rz-|sr1726iO$f|eeU-Y@o~L={M;0I-*bQJh-PfAt`WDp=ktkpbrz#(N3IRM z8=W3|`O=|8$AN=?^j@ef+WCvPx7+sSPl+#i^^iNtnXVS@@-?Rh0Zf64Lq8qexq7v~ zxo++Fe(?d{#o(@((zKJwMo91Tz58~X{8iM(kOURi(AHN_FrrZe1SRqN z*kl z-?_6%%{0)r)3cJ&(=%sh^UN=nXC-B&q;B85JSB_ilj&m=O<{%-%#>)Qq!>!UxAHtE zVv&RX={yq3SGF+V-lu=GUfslweY7aGT?#F;duFqE1+i>5Tj$a85H z+Q?(Gkr%8tF3k0g9degElj*d%_NT`ffv-WOGK{>KYvd&xH5-P?%w53>oA;0{*k0#s zMk~FIL-vuR*`7nYe3kjpzSA|1;y(j71si#l`9z2ut+)3?Fc*z>?d>-zk`j} zWu)smt0NYzX7%~=x4_hF9Z5)6A77KkJS-zoU%d$FaVs*`tw)%J(Tnuu*}9J9$JXcx zI*Zu&tfyc;TCR%==fg}LiJO;+_z8q~rk$c|DTzbd5yH~C?W%%MhLVnQ_!L<|YI>TK zg*I(Q+1xfcSq7=MY?rof+$gB2Tae1iSW8A}>yf%nln{rYTL$5BIQRz{c}?D+u19EN zHV?ug>8UJ~gs=vBZ_C`OX!2|U)Djg|7q#?9WA&{v|LF3SB0}?ZcFkj;?-QEF%v`i% zV`f&S`PB#M{S7ydual<`qr@kwlEK!l@&JU9OLs z1EXaW_{7x>ByKAF5>coWi0@Ftm!f^41X8g?I9yDP>hh#W=S zK~Qpyf@-5~h9Mdg5jfLkHi{fJiac{ZhW=(IZ4@!{`Aqs=coCT2x*A+957_JM9r2U( z!M!J4!wK8A&!6jW9&jG<=Jh|s2z1OE=N?~Ut-tckBhXZ+~%nUk0R0Q*Fz*}UDqGbB+lTpuiSK*Jc7_3pyEJL$mvY+^DAi_e$ z+yE^qv}k6d#NoSWqr@|}00k{2!E~(r%Wr=OO*YjQpKqot)EpW*fwLr;sMr{I2X>NT zda1nW%?PVeQe%vg#u?@qWo{moa2;)w`89@Qqm1KVo-8m%Su{}zU;r)f2faK8 zy*zKGpPe^1II=t0Jr)n+cpOdPU-~-wV;*t!ZS~apx(CjHM9?9S;o<~!1AJf=KCot@ zrYIIZ!I6RRL{nbC7DEg?1Pnx+14N1iBF6zymKt8BDk!>uqAfHT%uCE|79Vj?U@T_`T9D|_p;A2Y#DSc$6pY^*Ts!*5b17$Fdy1PwYx4pboGiTwN2Z^;u! z8A!WeC9=R703wA)$jpgIIsy~xU|uu>k*q-E7$6Epq)UyudiCo&O|_pNEf2fB_2#TV z`3Zl;_(Z3pXr-SP-HpP)!g)H9?A*<*zGLgQL|LzT|{_ zie4NN1>zF;734(brbt87r>B1WaN4)Qc39-C5x$dqVu(@@selNunKTTn+56TR%4{G_ zVpNN}e%eT;@29SO{(aaPUVQJ$0rGa0imv&vt3TYzwKsdl!yA}bMA3;M8AOShOIDCW zGI-wa`q$T?dFGG|iuLx%D$k&2M6>Vp4z*02_t$oKs{JEXVX?pgFvP4V`ua$UY&e#{ zud&2OwY>0Bb%g1gORnzepf~hVeRo83Pt98|hS_uOhKm)(+X2Yn?(E>f^Hay%1)}3%u;Rqs-s5?$*6>5Q9OCkdO6F*Jl%bR|R8WR` z65KH6nCnBP!aOW6{R-!_jfz@f3GC_IY43k5&QswlJM~C631C#gpCfz$1tiphrT2UXV*e{r|BxFKXxiJVGFo_65(tKaT2 zhPF>qqJDVSYo|;XK7KDh!czFJZ(fXu{>Q6lBe@Tox>~|+Yc{U9P~`yi(M-CMq7_=Ae?@v#<`qghOzp?2VdxyWF+c#JTeG1R4iadQ~?~oCE8e+PjVCK$U_R7HF0(;{h zT@7mkXLoC!248!XtJL2(?k}*BNdj{h87eZjO?5rGDSExrw$am;>*x(M?0M8T)=Y*- z%oQX3484^WX+~hzWj=)jgcA7`**SvthXu@UGP0IG$!=hE{09ZlXbQ_N$pG{!ELprE zi`8XDq0uT9Wu-nPvg?vo->It$^);*>tLtd#`kzoBmsh6nfeo3(*;rA z$=sW&C&q(j0F~KAAR>sKqHo45tE-s^DY~#jM{yFffTmTJ;9;F#r7*@vx0rcYIbDO9 zTmqRc=#T3dAw3(jQo7EvPa-yFgN~BbBwf~7Zkeb<2oV6&0O8H=8tEa5R2C9#5z*5+ zhn`0A@^n2OEe8vu*hH2Eo!I3lRuGt*d1YM^($mpSHf33&mag;67JBW@baflbOa)Ch zLk_Eud$!yBDP0}K$ zArQM}F=98d3cFcHs{yOsuyAWiX8hKy5NIcoLjVx~J#|o#ue^UYKZ0qZXh0#4(+>*h z>Bl$kU|BXt&q6vYu_Bj{BW_p-CS=hLd3`c^oVbpT9s!qKkiH!1A3@syePA^`J4Irj z)-jlWP2vt_9?j+GP_uyKI+~BR!mOR7T;gFrax#)v>x)8W-X1_lR$6}tl^$Ja0R zj&yq4>$4Vk_vJ6~v=Lk(@k$(lT(UxN1rIPCh!$hO5l}lN?4sjIe1>9*!Q>%^;`61? zn@30ryb4$W=0Fa)e$hO4b>>8meV7Dg9soQLWjZKdD(Gmsjs#_1QKP;nss86o(_rIA zuZ7dK69a5jjv*-Jwf>W%;gwb1I&-Sd z+f#R6Xjv6fIj;)WPy-J}fEFpLW=}`{^xnMi!;7|Ame)TiZJ8C_dZO>}G-~+#t$nYA zS55At=vAR*HO$O`WwmftI?;CJ+%*KlYohh$G}lQ-weM_gqPMKxSGA9OAS8xHHbeU< zC7nERbSi|YcuirZ`KrwC312N_&AJ1fm%}TEvK_}+naPnrd%geQaImDeyP+MF>MI1@woR|hg%DC4*o*yVYx7N3((Y-g<(-IhM4HO)hzjd~+t0^_-kIq`> z*~_EHa%(9%8eHTa=h#&3lYzlPPd8j>`12~Ar?ttd#~*jwJk4mkYs^4;6R+Jx{E1x6D(5?d{&9 zXWTabkzrq9$;4<@u&sp+p6Z#b_vaS{M|(oBf|NcON*^HjCs+Zs7O9z_3=LrkUV>UO z3@dm^j-uMAnf{_0-@g4JFu_Ak1JA+(R62wa;;c{za^#_eyye*2o~r-}z)w}xdV_Pw zJ2sN}jQiZ=;JmQUkfR3iGz@@0sQAZo)0@RdwViXFFq%HCIPIEc`QlQrJ?ucyll{+K zptx>Z{kks7FhGH0iX1R;oqiS~2G3b<@>SQlPvou&RyF$jkGsaB2j6HZYyax2A8rU$ zZz2!!iaefx$ifS5YO<-KW9G}$?ZAcyZxwmT3`a;Lb(qL2Z%~H!sr%`BeQlLfdCux! z|H0n}Pqzju4_-dEJ6N;Nx!+mn+~eH8%bDlx9Q=^5R6nDrZ>gJ7?5*($leWvFox!0o z$N2&yPe=Rf8iUP8<_A0aa|5=#iSwKN?ZdIj-uy!UkwN!yf6cx?QQ6X^_E5bcbBfJ) zkcw=2dHh`XtP^=O^Ih&Pd#7*T-avjYEIl@FvN!Hw|B?N!A%FW|pk~C^aMZe%h9I;E z(%K3I(9?ZSuhMlMd*|7QjV_2SAALs2JQ*6=HyhIGS`xQE&8> zd^gkd_r8nog-@6D7s0k+Z%3!SI#^>PBjr$$rx7NQOT$GT9C`SHWC=Vp*bWTU9RXpm zO1P+l>i}qk`+(^p5AFlt8?Go~dHQDh`iX(ecvsED=mrvkp=S9teM@k+EqJcWUOqA8 ztE_hSJ6iOINZ^HXIu3kC;5ZU^1rCZbfx|J3>r9}bQFfID+lM^m8z;M*XE1aK2~enq zVzB^+5o%e13%mC}i~rUbLEKw_qj~*C&r$EGip&Kn@oj;)rNDFM+i6m{oOs>&$~5kU zSS;{-)K|kpz2Ts18VnY_ah>IpLdThK(I0L5;=Ph^&B&E@fB0FrHE|=9AjBLzX6_{q zA#}w4@!aY9P(T)VxRV8~NEZY_ftRnvDuIU-CqM=6d~N)+(R8Nxt&XrXmM=@H%Bbio z&BI;OvAE{jzojNuQS`FVT2OM!zz|CA=>krG!W+Id>n+~X$DFMx%d;1`kGS@GTYA$y zr$UR9OArArL4FRDa0NnI1b_xad?>q#_=5B^O99foAiy1>vn9-dz%00dxW)l$=?FoD zN=*=PhS6D^n@XGMTPKTxJr$FCr^;ftM5j&`Ot$$N+8JZg&T!xq;QkNBL!l*zP-qFF zY`J{QUNZ65{^~oXj))a3iK~W$;Lm)sy5Pz<#B1Mcx&6lsharTT^=0|9zFN01&+L@-?4vnU@+fN?>P|)ngR#D zEpXBRRZ7uo!&|BWIt8_Wz%cN+c1LT*rt4P7b}pzKDXDCXsf6^kC~Pt33x7 zdiMMFo(PPzx{7?ZBEeVN92jb|mwRiQa;J)7V3rbv=N%_N~tqPkShcXzJz9&`1NY&Yu>sQBb(N`h> z>-mIV%<(ltkDYNg{7DzRlTeZxnNOIfh*Wsyxx}ID3z;zJ1O;^c|A} zf!=<1RdBq*U%lJcT|PPPYpBk2Rj+XMFf$^j-ahugJV(X%7IP&Pxwq$NX~~7&1}^I5 z&L0P6nCd=oJU`2F`Ri}X!_FUlwc7tESyY(=L|y!E*E?-g!jrVwUhK?wbUX9bJ?!et z4VJe0clY_KPVaDbFJbO?Rz8?yADB4n@9neq`Hwct^_3L``|=*~*~;AAj>A*OyhA5F admaQG4;?Oi{$bD&cx#{)Ty+_&hW`h(5+XYQ diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1.StatefulSet.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1.StatefulSet.yaml deleted file mode 100644 index c9c586347..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1.StatefulSet.yaml +++ /dev/null @@ -1,1023 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - podManagementPolicy: ŞÜ4w}ĶƲ86±ļ$暣 - replicas: 896585016 - revisionHistoryLimit: 69142596 - selector: - matchExpressions: - - key: 50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99 - operator: Exists - matchLabels: - 74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj: 6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1 - serviceName: "456" - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -2575298329142810753 - finalizers: - - "37" - generateName: "26" - generation: -8542870036622468681 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: 躢 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: ƶȤ^} - resourceVersion: "1736621709629422270" - selfLink: "28" - uid: ?Qȫş - spec: - activeDeadlineSeconds: -8619192438821356882 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "372" - operator: '}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊' - values: - - "373" - matchFields: - - key: "374" - operator: ʨIk(dŊiɢzĮ蛋I滞 - values: - - "375" - weight: 646133945 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "368" - operator: ǧĒzŔ瘍N - values: - - "369" - matchFields: - - key: "370" - operator: ƽ眝{æ盪泙 - values: - - "371" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8.--w0_1V7 - operator: In - values: - - 7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8 - matchLabels: - w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y: f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5 - namespaces: - - "390" - topologyKey: "391" - weight: -855547676 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd - operator: Exists - matchLabels: - 3.csh-3--Z1Tvw39FC: rtSY.g._2F7.-_e..Or_-.3OHgt._6 - namespaces: - - "382" - topologyKey: "383" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf - operator: DoesNotExist - matchLabels: - 3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2: CpS__.39g_.--_-_ve5.m_2_--XZx - namespaces: - - "406" - topologyKey: "407" - weight: 808399187 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81 - operator: DoesNotExist - matchLabels: - 4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33: 17ca-_p-y.eQZ9p_1 - namespaces: - - "398" - topologyKey: "399" - automountServiceAccountToken: false - containers: - - args: - - "216" - command: - - "215" - env: - - name: "223" - value: "224" - valueFrom: - configMapKeyRef: - key: "230" - name: "229" - optional: true - fieldRef: - apiVersion: "225" - fieldPath: "226" - resourceFieldRef: - containerName: "227" - divisor: "595" - resource: "228" - secretKeyRef: - key: "232" - name: "231" - optional: false - envFrom: - - configMapRef: - name: "221" - optional: false - prefix: "220" - secretRef: - name: "222" - optional: false - image: "214" - imagePullPolicy: û咡W<敄lu|榝$î.Ȏ蝪ʜ5 - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - tcpSocket: - host: "264" - port: 1943028037 - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: -1355476687 - scheme: -Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "239" - failureThreshold: -1213051101 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "240" - port: -1654678802 - scheme: 毋 - initialDelaySeconds: -775511009 - periodSeconds: -228822833 - successThreshold: -970312425 - tcpSocket: - host: "244" - port: 391562775 - timeoutSeconds: -832805508 - name: "213" - ports: - - containerPort: -775325416 - hostIP: "219" - hostPort: 62799871 - name: "218" - protocol: t莭琽§ć\ ïì - readinessProbe: - exec: - command: - - "245" - failureThreshold: 571739592 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "246" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - initialDelaySeconds: 852780575 - periodSeconds: 893823156 - successThreshold: -1980314709 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1252938503 - resources: - limits: - N粕擓ƖHVe熼: "334" - requests: - 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶: "388" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - E埄Ȁ朦 wƯ貾坢' - drop: - - aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: -2408264753085021035 - runAsNonRoot: true - runAsUser: -2270595441829602368 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - runAsUserName: "279" - startupProbe: - exec: - command: - - "252" - failureThreshold: -1008070934 - httpGet: - host: "254" - httpHeaders: - - name: "255" - value: "256" - path: "253" - port: -1334110502 - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "257" - port: 622267234 - timeoutSeconds: 809006670 - terminationMessagePath: "272" - terminationMessagePolicy: T 苧yñKJɐ扵G - volumeDevices: - - devicePath: "238" - name: "237" - volumeMounts: - - mountPath: "234" - mountPropagation: 癃8鸖 - name: "233" - readOnly: true - subPath: "235" - subPathExpr: "236" - workingDir: "217" - dnsConfig: - nameservers: - - "414" - options: - - name: "416" - value: "417" - searches: - - "415" - dnsPolicy: Ƶf - enableServiceLinks: true - ephemeralContainers: - - args: - - "283" - command: - - "282" - env: - - name: "290" - value: "291" - valueFrom: - configMapKeyRef: - key: "297" - name: "296" - optional: true - fieldRef: - apiVersion: "292" - fieldPath: "293" - resourceFieldRef: - containerName: "294" - divisor: "381" - resource: "295" - secretKeyRef: - key: "299" - name: "298" - optional: false - envFrom: - - configMapRef: - name: "288" - optional: false - prefix: "287" - secretRef: - name: "289" - optional: true - image: "281" - imagePullPolicy: ņ - lifecycle: - postStart: - exec: - command: - - "326" - httpGet: - host: "329" - httpHeaders: - - name: "330" - value: "331" - path: "327" - port: "328" - scheme: 幩šeSvEȤƏ埮pɵ - tcpSocket: - host: "333" - port: "332" - preStop: - exec: - command: - - "334" - httpGet: - host: "337" - httpHeaders: - - name: "338" - value: "339" - path: "335" - port: "336" - scheme: ş - tcpSocket: - host: "341" - port: "340" - livenessProbe: - exec: - command: - - "306" - failureThreshold: -300247800 - httpGet: - host: "308" - httpHeaders: - - name: "309" - value: "310" - path: "307" - port: 865289071 - scheme: iɥ嵐sC8 - initialDelaySeconds: -1513284745 - periodSeconds: -414121491 - successThreshold: -1862764022 - tcpSocket: - host: "311" - port: -898536659 - timeoutSeconds: 1258370227 - name: "280" - ports: - - containerPort: -1137436579 - hostIP: "286" - hostPort: 1868683352 - name: "285" - protocol: 颶妧Ö闊 - readinessProbe: - exec: - command: - - "312" - failureThreshold: 215186711 - httpGet: - host: "314" - httpHeaders: - - name: "315" - value: "316" - path: "313" - port: 323903711 - scheme: J - initialDelaySeconds: 657418949 - periodSeconds: 287654902 - successThreshold: -2062708879 - tcpSocket: - host: "318" - port: "317" - timeoutSeconds: -992558278 - resources: - limits: - ²sNƗ¸g: "50" - requests: - 酊龨δ摖ȱğ_<: "118" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - DŽ髐njʉBn(fǂǢ曣 - drop: - - ay - privileged: false - procMount: 嗆u - readOnlyRootFilesystem: true - runAsGroup: -5996624450771474158 - runAsNonRoot: false - runAsUser: 1958157659034146020 - seLinuxOptions: - level: "346" - role: "344" - type: "345" - user: "343" - windowsOptions: - gmsaCredentialSpec: "348" - gmsaCredentialSpecName: "347" - runAsUserName: "349" - startupProbe: - exec: - command: - - "319" - failureThreshold: 1502643091 - httpGet: - host: "321" - httpHeaders: - - name: "322" - value: "323" - path: "320" - port: -1117254382 - scheme: 趐囨鏻砅邻爥蹔ŧOǨ - initialDelaySeconds: 2129989022 - periodSeconds: 1311843384 - successThreshold: -1292310438 - tcpSocket: - host: "325" - port: "324" - timeoutSeconds: -1699531929 - targetContainerName: "350" - terminationMessagePath: "342" - terminationMessagePolicy: 迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ - tty: true - volumeDevices: - - devicePath: "305" - name: "304" - volumeMounts: - - mountPath: "301" - mountPropagation: ƺ蛜6Ɖ飴ɎiǨź - name: "300" - readOnly: true - subPath: "302" - subPathExpr: "303" - workingDir: "284" - hostAliases: - - hostnames: - - "412" - ip: "411" - hostNetwork: true - hostname: "366" - imagePullSecrets: - - name: "365" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "650" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: true - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩 - lifecycle: - postStart: - exec: - command: - - "192" - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "193" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - tcpSocket: - host: "197" - port: 424236719 - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: -1131820775 - scheme: Ƿ裚瓶釆Ɗ+j忊 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "173" - failureThreshold: -1113628381 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -152585895 - scheme: E@Ȗs«ö - initialDelaySeconds: 1843758068 - periodSeconds: 1702578303 - successThreshold: -1565157256 - tcpSocket: - host: "178" - port: 1135182169 - timeoutSeconds: -1967469005 - name: "147" - ports: - - containerPort: 1403721475 - hostIP: "153" - hostPort: -606111218 - name: "152" - protocol: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - readinessProbe: - exec: - command: - - "179" - failureThreshold: -1167888910 - httpGet: - host: "181" - httpHeaders: - - name: "182" - value: "183" - path: "180" - port: 386652373 - scheme: ʙ嫙& - initialDelaySeconds: -802585193 - periodSeconds: 1944205014 - successThreshold: -2079582559 - tcpSocket: - host: "185" - port: "184" - timeoutSeconds: 1901330124 - resources: - limits: - "": "84" - requests: - ɖȃ賲鐅臬dH巧壚tC十Oɢ: "517" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - privileged: false - procMount: $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫 - readOnlyRootFilesystem: true - runAsGroup: -8419423421380299597 - runAsNonRoot: false - runAsUser: -6576869501326512452 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - runAsUserName: "212" - startupProbe: - exec: - command: - - "186" - failureThreshold: 208045354 - httpGet: - host: "188" - httpHeaders: - - name: "189" - value: "190" - path: "187" - port: 804417065 - scheme: Ŵ廷s{Ⱦdz@ - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "191" - port: 406308963 - timeoutSeconds: 2026784878 - terminationMessagePath: "205" - terminationMessagePolicy: 焗捏 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: "" - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "355" - nodeSelector: - "351": "352" - overhead: - 癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö: "607" - preemptionPolicy: eáNRNJ丧鴻Ŀ - priority: 1690570439 - priorityClassName: "413" - readinessGates: - - conditionType: 梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳 - restartPolicy: T[ - runtimeClassName: "418" - schedulerName: "408" - securityContext: - fsGroup: 760480547754807445 - runAsGroup: -801152248124332545 - runAsNonRoot: true - runAsUser: -2781126825051715248 - seLinuxOptions: - level: "359" - role: "357" - type: "358" - user: "356" - supplementalGroups: - - 5255171395073905944 - sysctls: - - name: "363" - value: "364" - windowsOptions: - gmsaCredentialSpec: "361" - gmsaCredentialSpecName: "360" - runAsUserName: "362" - serviceAccount: "354" - serviceAccountName: "353" - shareProcessNamespace: false - subdomain: "367" - terminationGracePeriodSeconds: -2738603156841903595 - tolerations: - - effect: 料ȭzV镜籬ƽ - key: "409" - operator: ƹ| - tolerationSeconds: 935587338391120947 - value: "410" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: qW - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - E--pT751: mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X - maxSkew: -137402083 - topologyKey: "419" - whenUnsatisfiable: Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥 - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: 912004803 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: '|@?鷅bȻN' - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 榱*Gưoɘ檲 - readOnly: true - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 1593906314 - items: - - key: "99" - mode: 195263908 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: 824682619 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1569992019 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "660" - resource: "92" - emptyDir: - medium: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - sizeLimit: "473" - fc: - fsType: "94" - lun: -1740986684 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1188153605 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - iscsi: - chapAuthDiscovery: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 994527057 - portals: - - "60" - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - readOnly: true - volumeID: "128" - projected: - defaultMode: -1334904807 - sources: - - configMap: - items: - - key: "124" - mode: 2063799569 - path: "125" - name: "123" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 173030157 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "106" - resource: "122" - secret: - items: - - key: "116" - mode: -323584340 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: 8357931971650847566 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 332383000 - items: - - key: "52" - mode: -547518679 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - updateStrategy: - rollingUpdate: - partition: 86666826 - type: Dz讱ȕ齐疅檎ǽ曖sƖTƫ - volumeClaimTemplates: - - metadata: - annotations: - "433": "434" - clusterName: "439" - creationTimestamp: null - deletionGracePeriodSeconds: -1824067601569574665 - finalizers: - - "438" - generateName: "427" - generation: -8502907933203165744 - labels: - "431": "432" - managedFields: - - apiVersion: "441" - fieldsType: "442" - manager: "440" - operation: Bi攵&ý"ʀ废査Z綶Ā - name: "426" - namespace: "428" - ownerReferences: - - apiVersion: "435" - blockOwnerDeletion: false - controller: true - kind: "436" - name: "437" - uid: WɓDɏ挭跡Ƅ抄3昞财Î嘝zʄ - resourceVersion: "6281861817195808867" - selfLink: "429" - uid: '`ȗ<8^翜T蘈' - spec: - accessModes: - - 銲tHǽ÷閂抰^窄CǙķȈĐI梞ū - dataSource: - apiGroup: "451" - kind: "452" - name: "453" - resources: - limits: - 'O^:': "847" - requests: - Ɍ蚊ơ鎊t潑: "199" - selector: - matchExpressions: - - key: f82-8_.UdWNn_U-...1P_.D8_t..-Ww2q.zv - operator: Exists - matchLabels: - p2P.B._A_090ERG2nV.__p_Y-.2__a_dWU_V-_Q_Ap._C: a_o..p_B-d--Q5._D6_.d-n_9n.p.2-.-Qw__YT.1---.-o7.pJ-r - storageClassName: "450" - volumeMode: ȳT - volumeName: "449" - status: - accessModes: - - 熔ķ´ʑ潞Ĵ3Q蠯0 - capacity: - \溮Ŀ傜NZ!š: "952" - conditions: - - lastProbeTime: "2252-06-28T22:34:24Z" - lastTransitionTime: "1974-04-29T05:51:38Z" - message: "455" - reason: "454" - status: ƿOqõƨj2愴ňù廻@p - type: '僙R岹ÿʼnx#綮ehɫ淫Ď眊:' - phase: 戱PRɄ -status: - collisionCount: 341287797 - conditions: - - lastTransitionTime: "2493-11-15T11:08:04Z" - message: "460" - reason: "459" - status: ő+aò¼箰ð祛?扄鰀G抉ȪĠʩ崯ɋ+ - type: ÆŁĪŀc=Ƨz鈡煰敹xŪO - currentReplicas: -1847673756 - currentRevision: "457" - observedGeneration: 3474169154658456972 - readyReplicas: 2037461401 - replicas: 1449104338 - updateRevision: "458" - updatedReplicas: 154782591 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.json b/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.json deleted file mode 100644 index dfc8b5265..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": -7716837448637516924 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.ControllerRevision.pb deleted file mode 100644 index 691dabf14a2eff3c71d7730c73dc1304622e9989..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 332 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-A^a?Z~yDay~uNi7OWEz2y<%+C{=%fz*kk&Dqt zh|ySz(L{;SREyEvNW{?4z{JSJz|_Rj!ob4Z%)rdZz}VvUyQZs+-E$fXoEQSuc5H2K zoqul5ZpJ7!E=F@9MvEkNE=EfsCPRZP1uiB-BPk|BV!tLPp5RfTs-sWJl)WzbG97bo~VCvO6{|WjT+B( zPCwEX3pCB#h{@1GD1|GjS}Cz0Gc2_Ti4-?d z6Om5tlx0aFili#0AsMU*U6Eo?`Eg%tQ|O+6=Ukla)M9R*TU%7^(^PL`sSS zyNe@DRh~NhWT58A;IX;m{JYl%OY;+g$18?5{TaCFgp&>7pJIG(_27Xx;Vj3uAbx?a zD3UT?#TYL%<`KLUn{v9iM#T#;Rt;#yl4ekxhI930^RYHBOVU;^!K>9ZIa2O&yi_*E zJ!avQ)nbaJVau{a3yXM`Xic2B0;c9zSjCnxb@meBj~Z62S(CAqJY(g&`Iv|>da^Y= z$Fhj_=xi(160w+)y$I&x>6S8SBFwa~vg`?kJch9>G$FncsS;j=F;VBOGIWer>X|rK zPSa|-1vW&Dm}z*)d~D29R4ifW)yil~DTEMR zGLCh(dOxWP_ZA`WiR-WK4Q~3bz2RLnC!Xi1BydztV{ZiB=n@CKsZNe+?or+z-`;1| zCUR7f5OW8r=W*01Mz_NdQ-}+nXmoOlL^wqjPABr;j^a6m2w#rk$HEI0e(l}kt-pV; zYOpzFxH_`+khdrG*;NxC4Apgc_6F8<{z0I8;%v{BU`=JHbl=24f0e(-U+gIu7u;3o zZyq`oUSB;evT3(}TVQ)nc->~umAh&@Ix+}+YZedH0zGR zjxW06TqyBYXfdG0baJXh?%_FA7VZEFTB_8sfBVa72oDPQ4+J|2G_{DFdmT+>W0&;Msx)Xs?Ca^Vi2dYMQ^RSv}2)6-+ zeU~N4vG@CJe|8k_-|)@NE?XnIlZQr`^$;fz>IR~;p)&fzV$;E*oo-&sxSK1$9(u5RC%scooDWR^i;I3WX@+mXZLz_;rlT4{1+|RoL>nf%Pt9Ax@ zDxMrHvAhQ-26yir=kN7zccl)rgxB>%hZ;sQ=uarMBT$Vhpc+*ZM~AA`8-?k^lcBs z+sZ|^Pu1<$E(HdWJ)c6XoJ@Lt39 z3n<~>KZlE78mjBuj7XgK=mJQEaTL-e5RwFhCIeAYfvB_5Uu=tPD=i+ZNg+i7(VajH zHxSc)cIW4xbpPw!?hD9)T$OEIk>=M6uTDuQYuNqn*DqZ0^3wH}+D`^I|NV=vSiX&; zkT`)TNnmHHfk#kH25uV3V=+Qg3lLDPm{ENv`eYPeig=w@`Tu6UhVZlDmZ6<_p539! zZ7FP;DLA16JnJ^^sZdSrbA!#HJ#E46D(KT?VP^dCD_f6n;L{M(sZNAntsN{4zfdq( z^R#!*GvSjPP5+)?Q<-;jsOD6tpqNdf!aZ!LBK-VJ>my4O=6i}4`y2Cy4uYE@^Ag7&L9DV+d6$Bh zTM}N5wdt8w3Z4!Y#z}KT5p)u#<0MLj+hu*;Tx@0HHDdY`bIeRj7FO`jtjRQ<#aRnL z(}lTsNgmjS!SQ8SA~X${EhFiyTv@8-(7Et5$7N3xXF;`~TH;I@uY6Jjz%FTG`m;;b z$xuUJarP7}E){ignT2NoR=aglMtW9CMs^gmGsz)K|$@gg&sEm6NWD z%Pj)tpFL-_FoBnHEvQ*Qatlwy88B-NE0<*0kKC1Mv#iOYNEAE`IOm9#iRa}l_)kF< zNpr?2l3tB~8jWZdAPZT6uq7*?fvlK-&r~T9h)n($x>RD{{?)bjMzHkygYC69yYCr3 z96V9)KLT+tQeNw;jg%Y>Y-kGfHTX*-{RjRMDDGzSDT5la%2=yL3~I=btm0${1Po$n z3}R_9=&DLFs3Eg}Ap_L5#h``^ISRftfb4{i=WPOm#foq*|0{pFZ+*DCD^jvCT-ZK; zO5j*aps70hp}@BMY5qorD^yueW{^wM8Lp54rUNk(Z6pqAr_{B43X9KBObLWNlxTdu z@MYaGmIAK>R)9H>LvEQo!B?I&aA2^91!WlkJP>^(C|@XOuDyu`Wmz}uUlo@BeUziS z=99N#>DqO@e5c%}aaf{{(deftvcp`r5N$;vr_qUvDTHtGJT7$(~c z^T(8QsAJ!mD5jE4T^QkO2)}21&8Ri2cD7uOtsKpElH?YKkA<76L%Vt+g`2#^4=f3s zE{^6pR$CCLEpDJ9i6wGLSpq~|IW}}EKfJ#Gnc$Wh-_|^TeYm$FT(EOu#<*Z>?SkB= zJ(Zr5mwWf;RU$qCT;#W&zB83ig}c}L+u%YYw64^1+#D{OI@MR~ufwaneZhiq-~JK2 zAi;hT2{Ig!z(0s&x=#M>%@bSmOaHbPCD;Hj*d}yGD$ZA3+PZrSO1|&6kInSePtYSx zO@VzUe8r)?J;C*b1HIXi#(FVw^uTa+D1Sqw_dpa@u+oP>=>vrP2rHo0Vl@+#p;0U$ zt58eEV1=w|cGQSQg*H?Kx9y062^n%4coykGnGi;pvqB*#v4Z zt)3%+zGGR>`TB>uC&YY)9W{ujF#!Bg$@?#kY?f?q?DuwXj?YVudq=yzx)5oKIZ(oI z=Zmi*sjawrUMsS7A#hAZ0w&($&qKtJCHI(Md6lmtZ)T*dCe+#PJ(bXXzP_mG>eXwv zMyoeP26+{k3_xU&sSgd;mNbt#hwcJ4GI*;Zt4=sV3ai5uSwD|#AENvCvBAdDGwVF% zkJGl#^`PWAST!eT4g!zs^z%31$2t*+XtV^|@ zKV10zD97IppZy?qy4*jDH1-6VTL#M`6~%0%7A^8j#sqR{tjL2S4_}Zhfrkm(L7=*0 zAPiQC6?JeO0F7`TFjC~feE@vJ6-AQF-_GAM(3O?qtr+NC$U-pGEWhOMh-@s5^tTRf zA2<>$E%$W})mwjHffvf@Wbhp-Ni6VE35qf*kwn3JBD|+Y^A<&#j`+7P9&YuVAkaZm zp-_*;VhV>5YFR49-23mFUa5&=?oHun-m=)gFL1OZ>mh^rHf3%}WyyIL&nlOWw>@u+ z;9iKuRF>^mdyX881zksXWW)KJT%WBUIuR@S6N11xmOAVJ#G(0TUm}ZYDlee_}}?-BSv8h@Scw2L`j?2I2+>sHNkm z0+kw7$V$$$DQ^MXRNpzgA#$K(cq!kGZh6{!pgL|3;Ztj{`;G}T>2jij8q6!pR zRMA|Q_YW2h{I#?E7b9_V=ebJ-Z=d+=qjr>hQ=nqgDi#ze0~(Y84XXT9YsG>hfv6TM zungm;TFWq5P`o#M`k=RJs4Gy}sGO-t`Q7E-Q;~iB&%5Br`#Xnr%nEns4^{g+qCt~N z;M-JEyU=FDKNH(h6VNG`HFjmNv-*WkZX_j2WVbWiQxe$I8rjhodSPRvpf9v}U-|5nm*0vxl&jY_bmgXmcg}uP5nDpqRXFhS z%`jM%+;{WN@V0&4hWkRzEyG7W#rMxxJZYfOdpgi|WRWV^5_Z(=NSEF#df{qps$om| zS^T+y{BuPo2L0coDOVfHOK);!$G`SL&$Y|1M4BD;ii%^e!~&S3y(cg<;&T-juU_I3 zemMXB{+MSI2~y&i`@EYo9vNE;!C@9u1GfYY?Ni-B<4NgwXNfkQB$hDG@i_u7k(O8PnM2XQd#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!X zizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT9 z7o$EYB{i9ZRF>)2nap%LF(G7bS#@u%PUc04CWaVPT*J&*0}3h{MLA7NRT26|{{bEs0N={n(=Jkuxa=0pmJ%2U^`Ldwc)LD`alw#Zv^g}kTHI#HYc zq=6E*@QH?k48!0J#G_@rF>BTan3`)K85!EV~c-FlQOY*JDckb1*rdE?r(L`&a*G+x1aD#}=ew3U*K1O(j*2$v_oKgcNR z%4%&DLThtH5EjX6a!?AwI_SMAd!wo=(+Q|0sk|ZSnUBXC8x`^KMN1@vW*PkQCqUmP zb)B0sXUp2`oNVi>53+k1){JG&j1{XHt9CQi;-);j&~wDqif`DUUym|I|o&P4^!v|G)RfX$M~osVO`nZlYS%zZwEodz$2`>ngt-THvD z-r1Qr-ViD~;T}lZw0YLUftFs^0bfDSLmXk_mb-TQo9Y6U2WR=t)q4lL4p-51f7MQJ z=h#TFxM6;1$A0e~U->|=pp?6wjgnMiy&ZT0oOcl>GrCQ+$vsB4STVxOzwm^kBs+s}Hs35wkTTFK7 z)r2hA6iwvJ8k|>+*v*<0N84q=ln=8sn5C&j45EhDG>$gG5!VIl&8%66X*#xo^%O<0 zz4GS8kFJmT?qbWXCK%{QwPTDNfW(72XhZ+Y&!$9<2 z=6BF53eYQxR`%JM4~GV~r+S7HVVsC#8T?CsXHVQ??voq6b^h+&GawOk5IS5MWp0EI zticD?EzAVN!zVa05Rqys5^OWY!GmBR(hMMSJP;)Th`PY^GE>2@MGR|W>0nXjZl@20 z@>VTJf4JoPG2&JX_aOTK?b5jL>Qr|uSZ{$QOtr;fyMlJMJzxGc$$Dp)9VT219U##G zvZb=S?2W15pwvWIiFsj1N&T+3Ui&c{?1a^r`p<@oBR>2lV}TKb>O^$tlmt+LiYJNh zF~6lx9Al#G#7<>_GXO-6j8M2^(QFi^*1@7=1tQylC~-hkjA)k@bM@-icUkH_KUf}d zd;2Xp!SZ8)ijmPnV>|z3bDnS>rNi|ZPrz`{0f=OMn1!`4L>eFp2YN#^q3;^CvaHM2 zo2bedgJCccEQ~$!O~5#qV2de!4r^g=P7L%``>U$lHFKAy1$LaJCz%k5dw{k13ThYm z>-YHvYL_@G4EOO_{{080dxyN`wxrQR!GeMCP)$n!{V^di45&sVP>slOQv>zIT4<;S z!evM@@ruF%kYN9OPTyl3$2EG258oHxmkJP^PVuZcmX}nlrPCd%74~NB&HSQh| zL)N*USSbSVQ$)Kdyp%#Mp!{S3SJ8!*sbLE!61O(YK#{pbU;u%P+Ontp)o;GNriY^1 zry*~luj$0H8Dm4ivz>qp?#T^Rou4@DDU!yjLKVmE@f|I2w?)>XYAOGzmP*x9#S9=g z>(|a<-@dkG5BaN0)^C2+-`RYx^EmG*4>osCG|Bn97rIClb6B{#~aY>!tw=6UvKdz05ZD zsmLZ_?hnu|ldz57JoeFKI0*ZSEZJ}KR0U6Wcq_&mb05^)2Ld~~eLEV%CY9-_l$A*b zey`^3E^~PMWHsi8cYIF9^1?^&7Dm~M|NYI2QL+De^=!28L33AY#BHtS#ecL_@9!Ha z`DfeJOHAzX{~dSyZLFoIl)+K%Q|XWjqX?u+AUGZfNdO`x0g;z8e=)5wWf?43lR%0D zqFRAyb|8Ap#eJWA*!TV0eU}&uW2@`#4RyY>^Q*bB)ouIV{_?piZdSPZx1(qMrJsKG z1$3`7}l-auEYmaZsx6V?Lb1Rx+&0%IvRbug3ji{Lt9G zeAoU!-JV1`P3Nr80iJb}dnC}*{EV|R(Ae$otA{>S ze6GmZ^hbB&is0Gpy0_8aQSB}bG>rs`9CQ-l?xsT}?)HhU$JfQKayiy|+w;ec2OD=k z?jLTULuBrXnSF-c$Vx0n_?6jf5J4zeT%4On^hY1zev_56=qY|RZ{SB&K%;3qKR*l5 zE15rcbq;SRoXVo5JjzL5Bk?O!7Uvrp6ONKORJ04noyKtvEd%~+3l-q5lUQVp`jKnXJU2+L|b#lwcUROQT%Z?KB6 za;6S5g(Nzi81oE_kdcddIn&_zrx2gF+CZsVilG?1uuw7}gb=_qKt$_1X11T9m4(dO zB=oc)pr?_tDAPzpi@?GtKAGo1Cw>u%Cxp92R9B`TBNJ`q(-tP{nTE)1U{`F-)Hb2) zbkKBl9?HlE+fX>Z9toJF0<-lvjg~9xYH#h+oI6{CWc|1FUxA?2T#Ji5qjmpq)w%0fYd0>SUr{dGBmt6xYnKfI{Z6 z4-)kBy!Bgnp3gIKkipBmBqZfYt7n4=d9+1Ym5Sz3*D=sz;IfZoE`s`p=&PX*tY+k< z$^6p>2JEh!@o3FRu zJ$}-Erq$aIaW7QU>}d{Fobr`)_=elOm7#M-{^E1=(fNcz4N<17Wi0|VL`YUqA_M{o zu@nliln8W{g$UFTX}}NxYMUZZLxda!-wHr>%to^&j>2MzyN|ugTjMDX_VtD;wg-0} zT{YJ?c*xh$kn@OdPvLxTJH-{Us3uUzrKl8Fhyc@p=y4_-1+`PsHa3yQXDFsPOdnD> zK41F0Wss)8tAG_?4&;y<=FIfeWRD(k4$z=10)PjiP6p*mMV-yp(V#41+D%wMe?QU9I@|$duTxPrhCqNvlG~=no%FVu>7fPGotVivzZrz)_U)TF;50$jX{% zpE6PJJ5qmNcv%fnxu}tAs6hlHK#LqxySuY+a&Mmh;YG((+v^{fwoZ+0J9hH9N!0N9 zTYFxKteSd~VV8!N)iE~%menI!=~(-fbJq}zs7v-+GTbM|YW!#Gl6|`x{MCDe2f||L zbTjmyQqqZI2PeXqO4L}Uv74TN^?a62B% z@SS&ra~-WMFw_>;P?10rxgcc#k+Y@+Mhb()=T`W4H+jnPy{*BawqVh|SsSPOyPDJU z{^+W6oxMDCIKPfzW5Gr4bq!C{Jr(RL_IAUCMxdb5by^>ctk3*aAE&~0b`@#>kf!peUfU}8;x7fdtzLbY$yzf-n@A1i_Fe@@0Dh`z z_8VROzTv^_XFTV|`({Rbh8{JDrx5`Be#O5oOm3DK(|*o<%xw9j;7^FnDOR{&M7Z5cK{m^yj2oqD;yz-)?t#UzQLH@WA10C`P(Ze z3S2dzo~qx6PPc_Bt1h409;)5r+UqKI?RM?m<|^idAQ)IMXFZ<(9ZoNb9o>m=)^m$qzaTM$fMgbPU9&`U;B!2l_lm1GRgCCA$_ZaE9v* zMNl2)Dki%5<&krdvrgsFt#^C6oQM2-%7TT*Vd>$SgiKw4X@0(!dd>7|AtqP$$PWOh1_q}h-m(W8cu#cx~#Vc6LG*kcQLemNJ*nl~*A zr^Mf2#Ah4Id`L2?foLeFH(NXa3PWGGEMcGd(p2`PsQ?!t9sr@fqhWAMjl=mD zx}zWrR*4jKa2)`Ra33&PF8Fw`u+W^WB`cZAM$ zIm<`;{gpMIp0QTrAsTq0oK67WA%Z{yFA<<9BLa@&+-HJ~O^SP0sH5LozIMFJbp}HR zNrFN>9E%AYMyO?p5OMEMcl^C6in=#}qj|$x??Kf406B@qSd9W1R}j=k=B zWfJ#7EGD8D^VLBA@kr3M^o2^^xX$)*@z|M2(I4yh;@zE*no%h2{@}AnYw}tsL8v)I z%uS;Y5WuR*^7T13J_w>|ihFut53rcPU7(&TCS-=q}yy087-|9Pk*wvP{D0hzMfP1g6 z^?0WDRCsZE2}0l!705qWDL)lHmC-ToM38Z^M;11E%8sR`;7TiEw;{dgE z6p^4(BNEOsyLRNKvsU)D@siMyit)0EUGW=Y)5nX(+x?9loH=D{BybYA|AX;RXb}kt zEg~tl%ZHsiNB`PWbLV8--1qW3MX#Uv`2C|y!gapd9h+%TBot^63N(oHbFCE#iWs6= zq`=a&pKC2mr$O<);Q8b3`mtVLUAr_*S+M{6I`<veif5J))^hLj^=J?@u(@zg$~tq7cNS{$q^#kVSO^fg7)AOYwy zT>NW_s$Fb+{_VY9|JCpf?^kU#m6x{%{>RTG(}+s1Vdjv{19LWx-ci{F}z_Z;POlZiU({MDaNX0ON^z+SZK`3^O;6G zf~)w2GH=X=(qa|bVCWn8Odf(ST9{`TPc7zY`NN})DxaBvvN)c-H(kR>Gx#N|mL+a5 zmLLG@;sS%8tr4u!7cq@}D_AcHURil$dwe`8IyyJoTb2zPz-#M_4-m^oJQz0JBg`pbsU(ea+w zN;buOG}!Ez46ax9yfYekwH19{cp(zyVh?_L&Kb$9R0eeh5N&Q#rN4ek5@K%;HJ1en oT0*7GuHw;yzVZTBq2?^(OrXZzFZML(pazWBL2$UuGTBZ42QDQRXaE2J diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.StatefulSet.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.StatefulSet.yaml deleted file mode 100644 index 49ac65ecc..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta1.StatefulSet.yaml +++ /dev/null @@ -1,1023 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - podManagementPolicy: ŞÜ4w}ĶƲ86±ļ$暣 - replicas: 896585016 - revisionHistoryLimit: 69142596 - selector: - matchExpressions: - - key: 50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99 - operator: Exists - matchLabels: - 74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj: 6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1 - serviceName: "456" - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -2575298329142810753 - finalizers: - - "37" - generateName: "26" - generation: -8542870036622468681 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: 躢 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: ƶȤ^} - resourceVersion: "1736621709629422270" - selfLink: "28" - uid: ?Qȫş - spec: - activeDeadlineSeconds: -8619192438821356882 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "372" - operator: '}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊' - values: - - "373" - matchFields: - - key: "374" - operator: ʨIk(dŊiɢzĮ蛋I滞 - values: - - "375" - weight: 646133945 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "368" - operator: ǧĒzŔ瘍N - values: - - "369" - matchFields: - - key: "370" - operator: ƽ眝{æ盪泙 - values: - - "371" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8.--w0_1V7 - operator: In - values: - - 7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8 - matchLabels: - w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y: f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5 - namespaces: - - "390" - topologyKey: "391" - weight: -855547676 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd - operator: Exists - matchLabels: - 3.csh-3--Z1Tvw39FC: rtSY.g._2F7.-_e..Or_-.3OHgt._6 - namespaces: - - "382" - topologyKey: "383" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf - operator: DoesNotExist - matchLabels: - 3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2: CpS__.39g_.--_-_ve5.m_2_--XZx - namespaces: - - "406" - topologyKey: "407" - weight: 808399187 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81 - operator: DoesNotExist - matchLabels: - 4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33: 17ca-_p-y.eQZ9p_1 - namespaces: - - "398" - topologyKey: "399" - automountServiceAccountToken: false - containers: - - args: - - "216" - command: - - "215" - env: - - name: "223" - value: "224" - valueFrom: - configMapKeyRef: - key: "230" - name: "229" - optional: true - fieldRef: - apiVersion: "225" - fieldPath: "226" - resourceFieldRef: - containerName: "227" - divisor: "595" - resource: "228" - secretKeyRef: - key: "232" - name: "231" - optional: false - envFrom: - - configMapRef: - name: "221" - optional: false - prefix: "220" - secretRef: - name: "222" - optional: false - image: "214" - imagePullPolicy: û咡W<敄lu|榝$î.Ȏ蝪ʜ5 - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - tcpSocket: - host: "264" - port: 1943028037 - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: -1355476687 - scheme: -Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "239" - failureThreshold: -1213051101 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "240" - port: -1654678802 - scheme: 毋 - initialDelaySeconds: -775511009 - periodSeconds: -228822833 - successThreshold: -970312425 - tcpSocket: - host: "244" - port: 391562775 - timeoutSeconds: -832805508 - name: "213" - ports: - - containerPort: -775325416 - hostIP: "219" - hostPort: 62799871 - name: "218" - protocol: t莭琽§ć\ ïì - readinessProbe: - exec: - command: - - "245" - failureThreshold: 571739592 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "246" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - initialDelaySeconds: 852780575 - periodSeconds: 893823156 - successThreshold: -1980314709 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1252938503 - resources: - limits: - N粕擓ƖHVe熼: "334" - requests: - 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶: "388" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - E埄Ȁ朦 wƯ貾坢' - drop: - - aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: -2408264753085021035 - runAsNonRoot: true - runAsUser: -2270595441829602368 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - runAsUserName: "279" - startupProbe: - exec: - command: - - "252" - failureThreshold: -1008070934 - httpGet: - host: "254" - httpHeaders: - - name: "255" - value: "256" - path: "253" - port: -1334110502 - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "257" - port: 622267234 - timeoutSeconds: 809006670 - terminationMessagePath: "272" - terminationMessagePolicy: T 苧yñKJɐ扵G - volumeDevices: - - devicePath: "238" - name: "237" - volumeMounts: - - mountPath: "234" - mountPropagation: 癃8鸖 - name: "233" - readOnly: true - subPath: "235" - subPathExpr: "236" - workingDir: "217" - dnsConfig: - nameservers: - - "414" - options: - - name: "416" - value: "417" - searches: - - "415" - dnsPolicy: Ƶf - enableServiceLinks: true - ephemeralContainers: - - args: - - "283" - command: - - "282" - env: - - name: "290" - value: "291" - valueFrom: - configMapKeyRef: - key: "297" - name: "296" - optional: true - fieldRef: - apiVersion: "292" - fieldPath: "293" - resourceFieldRef: - containerName: "294" - divisor: "381" - resource: "295" - secretKeyRef: - key: "299" - name: "298" - optional: false - envFrom: - - configMapRef: - name: "288" - optional: false - prefix: "287" - secretRef: - name: "289" - optional: true - image: "281" - imagePullPolicy: ņ - lifecycle: - postStart: - exec: - command: - - "326" - httpGet: - host: "329" - httpHeaders: - - name: "330" - value: "331" - path: "327" - port: "328" - scheme: 幩šeSvEȤƏ埮pɵ - tcpSocket: - host: "333" - port: "332" - preStop: - exec: - command: - - "334" - httpGet: - host: "337" - httpHeaders: - - name: "338" - value: "339" - path: "335" - port: "336" - scheme: ş - tcpSocket: - host: "341" - port: "340" - livenessProbe: - exec: - command: - - "306" - failureThreshold: -300247800 - httpGet: - host: "308" - httpHeaders: - - name: "309" - value: "310" - path: "307" - port: 865289071 - scheme: iɥ嵐sC8 - initialDelaySeconds: -1513284745 - periodSeconds: -414121491 - successThreshold: -1862764022 - tcpSocket: - host: "311" - port: -898536659 - timeoutSeconds: 1258370227 - name: "280" - ports: - - containerPort: -1137436579 - hostIP: "286" - hostPort: 1868683352 - name: "285" - protocol: 颶妧Ö闊 - readinessProbe: - exec: - command: - - "312" - failureThreshold: 215186711 - httpGet: - host: "314" - httpHeaders: - - name: "315" - value: "316" - path: "313" - port: 323903711 - scheme: J - initialDelaySeconds: 657418949 - periodSeconds: 287654902 - successThreshold: -2062708879 - tcpSocket: - host: "318" - port: "317" - timeoutSeconds: -992558278 - resources: - limits: - ²sNƗ¸g: "50" - requests: - 酊龨δ摖ȱğ_<: "118" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - DŽ髐njʉBn(fǂǢ曣 - drop: - - ay - privileged: false - procMount: 嗆u - readOnlyRootFilesystem: true - runAsGroup: -5996624450771474158 - runAsNonRoot: false - runAsUser: 1958157659034146020 - seLinuxOptions: - level: "346" - role: "344" - type: "345" - user: "343" - windowsOptions: - gmsaCredentialSpec: "348" - gmsaCredentialSpecName: "347" - runAsUserName: "349" - startupProbe: - exec: - command: - - "319" - failureThreshold: 1502643091 - httpGet: - host: "321" - httpHeaders: - - name: "322" - value: "323" - path: "320" - port: -1117254382 - scheme: 趐囨鏻砅邻爥蹔ŧOǨ - initialDelaySeconds: 2129989022 - periodSeconds: 1311843384 - successThreshold: -1292310438 - tcpSocket: - host: "325" - port: "324" - timeoutSeconds: -1699531929 - targetContainerName: "350" - terminationMessagePath: "342" - terminationMessagePolicy: 迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ - tty: true - volumeDevices: - - devicePath: "305" - name: "304" - volumeMounts: - - mountPath: "301" - mountPropagation: ƺ蛜6Ɖ飴ɎiǨź - name: "300" - readOnly: true - subPath: "302" - subPathExpr: "303" - workingDir: "284" - hostAliases: - - hostnames: - - "412" - ip: "411" - hostNetwork: true - hostname: "366" - imagePullSecrets: - - name: "365" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "650" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: true - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩 - lifecycle: - postStart: - exec: - command: - - "192" - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "193" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - tcpSocket: - host: "197" - port: 424236719 - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: -1131820775 - scheme: Ƿ裚瓶釆Ɗ+j忊 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "173" - failureThreshold: -1113628381 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -152585895 - scheme: E@Ȗs«ö - initialDelaySeconds: 1843758068 - periodSeconds: 1702578303 - successThreshold: -1565157256 - tcpSocket: - host: "178" - port: 1135182169 - timeoutSeconds: -1967469005 - name: "147" - ports: - - containerPort: 1403721475 - hostIP: "153" - hostPort: -606111218 - name: "152" - protocol: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - readinessProbe: - exec: - command: - - "179" - failureThreshold: -1167888910 - httpGet: - host: "181" - httpHeaders: - - name: "182" - value: "183" - path: "180" - port: 386652373 - scheme: ʙ嫙& - initialDelaySeconds: -802585193 - periodSeconds: 1944205014 - successThreshold: -2079582559 - tcpSocket: - host: "185" - port: "184" - timeoutSeconds: 1901330124 - resources: - limits: - "": "84" - requests: - ɖȃ賲鐅臬dH巧壚tC十Oɢ: "517" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - privileged: false - procMount: $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫 - readOnlyRootFilesystem: true - runAsGroup: -8419423421380299597 - runAsNonRoot: false - runAsUser: -6576869501326512452 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - runAsUserName: "212" - startupProbe: - exec: - command: - - "186" - failureThreshold: 208045354 - httpGet: - host: "188" - httpHeaders: - - name: "189" - value: "190" - path: "187" - port: 804417065 - scheme: Ŵ廷s{Ⱦdz@ - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "191" - port: 406308963 - timeoutSeconds: 2026784878 - terminationMessagePath: "205" - terminationMessagePolicy: 焗捏 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: "" - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "355" - nodeSelector: - "351": "352" - overhead: - 癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö: "607" - preemptionPolicy: eáNRNJ丧鴻Ŀ - priority: 1690570439 - priorityClassName: "413" - readinessGates: - - conditionType: 梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳 - restartPolicy: T[ - runtimeClassName: "418" - schedulerName: "408" - securityContext: - fsGroup: 760480547754807445 - runAsGroup: -801152248124332545 - runAsNonRoot: true - runAsUser: -2781126825051715248 - seLinuxOptions: - level: "359" - role: "357" - type: "358" - user: "356" - supplementalGroups: - - 5255171395073905944 - sysctls: - - name: "363" - value: "364" - windowsOptions: - gmsaCredentialSpec: "361" - gmsaCredentialSpecName: "360" - runAsUserName: "362" - serviceAccount: "354" - serviceAccountName: "353" - shareProcessNamespace: false - subdomain: "367" - terminationGracePeriodSeconds: -2738603156841903595 - tolerations: - - effect: 料ȭzV镜籬ƽ - key: "409" - operator: ƹ| - tolerationSeconds: 935587338391120947 - value: "410" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: qW - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - E--pT751: mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X - maxSkew: -137402083 - topologyKey: "419" - whenUnsatisfiable: Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥 - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: 912004803 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: '|@?鷅bȻN' - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 榱*Gưoɘ檲 - readOnly: true - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 1593906314 - items: - - key: "99" - mode: 195263908 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: 824682619 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1569992019 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "660" - resource: "92" - emptyDir: - medium: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - sizeLimit: "473" - fc: - fsType: "94" - lun: -1740986684 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1188153605 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - iscsi: - chapAuthDiscovery: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 994527057 - portals: - - "60" - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - readOnly: true - volumeID: "128" - projected: - defaultMode: -1334904807 - sources: - - configMap: - items: - - key: "124" - mode: 2063799569 - path: "125" - name: "123" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 173030157 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "106" - resource: "122" - secret: - items: - - key: "116" - mode: -323584340 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: 8357931971650847566 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 332383000 - items: - - key: "52" - mode: -547518679 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - updateStrategy: - rollingUpdate: - partition: 86666826 - type: Dz讱ȕ齐疅檎ǽ曖sƖTƫ - volumeClaimTemplates: - - metadata: - annotations: - "433": "434" - clusterName: "439" - creationTimestamp: null - deletionGracePeriodSeconds: -1824067601569574665 - finalizers: - - "438" - generateName: "427" - generation: -8502907933203165744 - labels: - "431": "432" - managedFields: - - apiVersion: "441" - fieldsType: "442" - manager: "440" - operation: Bi攵&ý"ʀ废査Z綶Ā - name: "426" - namespace: "428" - ownerReferences: - - apiVersion: "435" - blockOwnerDeletion: false - controller: true - kind: "436" - name: "437" - uid: WɓDɏ挭跡Ƅ抄3昞财Î嘝zʄ - resourceVersion: "6281861817195808867" - selfLink: "429" - uid: '`ȗ<8^翜T蘈' - spec: - accessModes: - - 銲tHǽ÷閂抰^窄CǙķȈĐI梞ū - dataSource: - apiGroup: "451" - kind: "452" - name: "453" - resources: - limits: - 'O^:': "847" - requests: - Ɍ蚊ơ鎊t潑: "199" - selector: - matchExpressions: - - key: f82-8_.UdWNn_U-...1P_.D8_t..-Ww2q.zv - operator: Exists - matchLabels: - p2P.B._A_090ERG2nV.__p_Y-.2__a_dWU_V-_Q_Ap._C: a_o..p_B-d--Q5._D6_.d-n_9n.p.2-.-Qw__YT.1---.-o7.pJ-r - storageClassName: "450" - volumeMode: ȳT - volumeName: "449" - status: - accessModes: - - 熔ķ´ʑ潞Ĵ3Q蠯0 - capacity: - \溮Ŀ傜NZ!š: "952" - conditions: - - lastProbeTime: "2252-06-28T22:34:24Z" - lastTransitionTime: "1974-04-29T05:51:38Z" - message: "455" - reason: "454" - status: ƿOqõƨj2愴ňù廻@p - type: '僙R岹ÿʼnx#綮ehɫ淫Ď眊:' - phase: 戱PRɄ -status: - collisionCount: 1664714908 - conditions: - - lastTransitionTime: "2456-08-06T13:26:39Z" - message: "460" - reason: "459" - status: "" - type: 靌瀞鈝Ń¥厀Ł8Ì - currentReplicas: -2011137790 - currentRevision: "457" - observedGeneration: 8145135462833081718 - readyReplicas: -1470626063 - replicas: -1589158932 - updateRevision: "458" - updatedReplicas: -126896219 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.json b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.json deleted file mode 100644 index 487201d14..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": -7716837448637516924 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ControllerRevision.pb deleted file mode 100644 index 85bf0f55c8ec6b170a6bb0ca8c06730091533e3b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 332 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-4?a?Z~yDay~uNi7OWEz2y<%+C{=%fz*kk&Dqt zh|ySz(L{;SREyEvNW{?4z{JSJz|_Rj!ob4Z%)rdZz}VvUyQZs+-E$fXoEQSuc5H2K zoqul5ZpJ7!E=F@9MvEkNE=EfsCPRZP1uiB-BPk|BV!tLPp5RfTs-sWJl)WzbG97bo~VCvO6{|WjT+B( zPCwEX3pCB#h{@1GD1|GjS}Cz0Gc2_Tvwi6U}2!bz>&qE}x#h zx9ZlZQ>RY-=RdVk%QCS)XK!EabY{grhf-3vuEyML3sae|MB*>3Q7+YIOm(5JhiL4u(<{*+PbWO5=Gx zEyJlR656z0aPsT5HJIPX>jTY@`{sBT%3@u z=JKi}@Z#f7KasS2xv&fignL-g1S4g6w!p7lqO9Qsh3AbNf#=2S&B+^)0i7hv;EnlP zgw2M;RWt0rIc1T6A(E={lJ1133P)ch9{Et zQ+SeXW}-Nle~&X0DY~yj%`+3t#XJDLI(PS2+jy_1Z>(^W=Xd0yHs6z z^E>!s>?Q|oR-jq6=DYql`sGw}-0je;L9=c%%Obv)HOq+mF-WjnCf5D?U7M{%rERZH zvzz9!&N;cXe+nG3Us0w3L zHO&G~V6>`RO%CYQ#7rwl#F;fXOB!*QH7Sm^%c3a{MrklgQ@1lJ3ubE?N1NdI>7wmU z)~v%Y9oxWpI+E>I5B<;CuOhy&wCufj`RmA|i@6KFBNo@|MHOb7S(oglII}KSGO#io zbnB{>sb_w{!j!tkQJp#$gGAA~`@nhkOzWlQZf}g;bQrWiE23T427)+1NNvo$v{|Oj z3akfy)Ho0t2BCK`OQ9Eu(2J1mXB+LF{?OUuX_NUSzWPkxf%FZc`{?*~7=&=F3ID>k zJ6L{5^Ob}L&V+ZJn5dpSR_Wd6ZVDBTjI~S-_Vk0r@F}6%q*3N}c)=RHU~uFFBfu-f zE(k>3fd~et!wBmUsEc8dAx>ak@*v?V2-NYd_ zp0;XSWMb+TEZTkoO_=%tNBk}+$X;@-@aw4GZT5&hOt`!0XA=EPww^lmL2xRR83<)) zQ!Lj$>-_GMJ;T>q81N=mEg!sJ5n$e9tk6s7s)!Elk_ekc4V2J_uto5TE%bYdIH*Z* zQb5SjFBHxf=NC=LY1bD;|p%csGXFQ!|2+Jc`%gTwJpa-gO8cfp-i z|2(o| z_j&pP`L$04>na01wNJY%3~&3R!Kx$i{$BqcJBCkC(k_NIB6flY7lH;!=I)$jvb=F- zVC>t-p|MeglH$16b8ND%Pz(3g_)jN}mrM?w_3Q{8Z1VJvcRmtFJt3*EFiEpn*xP0? z5i=x+6D*4sm%sId+1gPv@%A+P)gxD5i3Uh))qf8z6>lDW^Udf)$rX@WBBlUz{TdVk zc2QG&-oK4RVJ>2dOdQ+;xhv;9vot$)tT9k@*3&-L|6;@fKs6X8+wNiMxW@J~f2S+> zjP>=hsy z)~IP3f>mi4!bc&cnoN}_`3$p*F;y_8dJ2sga`SDGRl|`t*`^*<3*hPP69s{;!Qj5? zv6JqdZ4}!uBuEgXi}_DBF&Yyp_Ykzp+V>kE)03@;jv33>hl>vVKI(8lBdp-52x$8H z=I$RvfI=)id#~5sh{S}o@8<4{jJ>(*)!@|T5AAb#qkZDwe|^vpMFrcB{HOeFzCJP3 zbnapM;QKFM^!3+--eO`;@4nG?9H+xD~=em!khWaZ*t#!UO z$g}_i5CcTk=f@C5Oay_FK;Tu(f0#CyG7T0yPavy;kZd4i2MEPdy8rrjAD+K)pog)V z?4Oq1c)h{*PWTlj_QHSs>mcXtcZ%{!xj()VuC0d)u!iB zC{pou1|)G&DOEDvGuU)CmVJ=Dhjz*w>n;rK-s>FS>mPtYkeVT%5LM;i;1fvC^Jk3= zAFTW);x$fY@28zQ$N73+2vzTyb7iO`bmpM1Wvns}K8G0kDfB}MpXu&f=Q-saqK%mQ z$jmy~wXDS6w}Id0lz|gwrDdq9uJc(N(`4X_@kvJJX6~*9NkSISuM_CMyypa9dqM{H zFnixp<5AwwjbvkiAgCEe4iSL-X?&uS*Cp=ug&Ct5Ve+$-Cx?s(A(af%6liA;}oVu7efioMAZeGX>;-gOrhyQ&_4T+>@^PBh_Ej}U7SZN5E#&ZxisRplV8HNIDLdZ~^t6;A-|I4Nv z*pqByE9{&sNMcg9w2+$)p#w$7JzH~9z{RPstH|J=Sh#+Hfp}vj7b778YerH%15!TB z^Z>U&G}$3Yb|4_vB3X$w8ip~D5HV>D`#Xxp2r||K^hdgd#=ua(7pmegQ5;5q z9w2_e1rR_+4AMl4|H$QwGpu{Aee>riqSy=DPc}@CJ>$Q2oe}@oy=!24at*_-kIVuv zvKW*BeoQ4@q`_7oO>#Vt9XMDJKDRqG+!m@EdU~?F!84FO(H=f_z&*HZyw2MrjUA5| zqEWYK%2Yz=^uKiJ7OSD{s-@-p-~7=awibWe{ii8PaIO30lhb2;gIC|0N(k-?-+aZS zbTRCjh+$AHECIuG^?SqM^ufFCm>sI$AFi+Yjjw0yq?9|_92)5H6~;}}1y0mG7^EXko;<(*&HZX85 z>-q6v-G1M8S_qp?ZmHv^5%D}E6PYGv7o{`D@=R!yJ zWT*Oex?8v91dkn9=`Br0K*3&`Jm7-3p+o}FBn-D9AfPnDNV1!u4kOwPVSN>^fg_sNz(xc4S_JKS22bBPg{(YJ@*96%5p5w6p?t7ax=!igX*1gWG6K=J$mU?#W6IxehLO7mW`@!bt~Of^_l^28JO2K#OeI`=A1sbD9ml-8qslKZkiaEcfJsn* z!LgH|*a9KF!!RE*53;j8{ozxtK+~|lW_D)ArtwmL&o+OloEa!8@gEO1<^w>SE&dBt zD}TzEZZP-%(o=-SO1*tA1d9iQCkjF(U7^w)p^oZcc}KXQV!PSK{zRHHRvz469XwJI ztlpmCv4uQa7r__vI8W4JEz{1UA1jh-S za%hrnm4}30AP~4fpg0aCU+~-+DOf(h&-M>p>1}k^=7g)t{f*S=0I%H7*gM=c;aZnH z+*uVIZrBp31yva*LRCS;2#ymGaGZ#GoGpHIAbhCzS5LW%LiL6I=CR?2!o{xeaI1R{ zraPFlkzGPh1%Yb?h*E;S#~p$IcL-9T9NDoqT(&oKwu2r9f?%Bl{Q%?%qHD#XrJ>V5 zInCPg?bp-orGNeE%b3{VqIY*hYdEp`%kIleauLJ+J~A7G?>x|jF-Kvr_l?n;(`fZW zFmc>B-Wk}x`}x4>k&I{kM+4mzSqrpBeEs3md%ShOj#xl%6$qC9aU2PT>YBhE!mhTz zd>Tc1tN%i8FJo^l9&krvGq&?U<-dv-zAJ1sr$DM%6fuLyTpXA|lv_|h2qjfSbIe@e zP;zFYtjL6L!50Jfem|HH?)0DqM+-Uv*LeukKrKxRy3h0fzUx-H0cDcxnB}hu^d0v! zrAD+t`h`|?3bl`S-#ijY0Yrj=j!1f@DQ^wj%G~wBM1`l(+Y&la6&h*x){S)q_8sP8 zCTf>O3pXND@-IW-Mr0`5h)nF4&s{El|H3CbPBO8kNZ}T^_{9zPt4*i=kZ7VXOK7D` zpi%}AEz`b-Sqy*{t<3<`n5i;NkH9QDe#BcIXl!@-yCZ-~D9{rGfLg$?k%E@M-3W~x z{5_%)0*Fcoa@-a!D^Cb_Y#;54Iud}Cz*R}KRDb`kSN*ptU)nBNzUZlVd20X4uAey` z-8uWN9k0C`r46xtC4c^WhWOg$zg?TEOkgRh?S9r4Dm&_JnlpK<#n0{Dch2$d%6QCoI6QoC e@?eMisBPA)?dQ*5oNIwQL5Yw!5R%R0F#RuEk|M|e diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.DaemonSet.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.DaemonSet.yaml deleted file mode 100644 index a863b758e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.DaemonSet.yaml +++ /dev/null @@ -1,961 +0,0 @@ -apiVersion: apps/v1beta2 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: 212061711 - revisionHistoryLimit: -1092090658 - selector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - 8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4 - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: 7534629739119643351 - finalizers: - - "37" - generateName: "26" - generation: -4139900758039117471 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: ĪȸŹăȲϤĦʅ芝 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: false - kind: "35" - name: "36" - uid: ^ - resourceVersion: "1698285396218902212" - selfLink: "28" - uid: TʡȂŏ{sǡƟ - spec: - activeDeadlineSeconds: 7270263763744228913 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "379" - operator: Ǹ|蕎'佉賞ǧĒz - values: - - "380" - matchFields: - - key: "381" - operator: ùfŭƽ - values: - - "382" - weight: -767058113 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "375" - operator: Ã茓pȓɻ - values: - - "376" - matchFields: - - key: "377" - operator: "" - values: - - "378" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2 - operator: DoesNotExist - matchLabels: - bx1y-8---3----p-pdn--j2---2--82--cj-1-s--op34-yy28-38xmu5nx4s-4/4b_9_1o.w_I: x-_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----.4 - namespaces: - - "397" - topologyKey: "398" - weight: 801902541 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: K_A-_9_Z_C..7o_x3..-.8-Jp-94 - operator: DoesNotExist - matchLabels: - h-up52--sjo7799-skj5--9/R_rm: CR.s--f.-f.-zv._._.o - namespaces: - - "389" - topologyKey: "390" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D - operator: NotIn - values: - - txb__-ex-_1_-ODgC_1-_V - matchLabels: - 6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3: V0H2-.zHw.H__V.VT - namespaces: - - "413" - topologyKey: "414" - weight: -1851436166 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: QZ9p_6.C.e - operator: DoesNotExist - matchLabels: - 7F3p2_-_AmD-.0AP.1: A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n - namespaces: - - "405" - topologyKey: "406" - automountServiceAccountToken: true - containers: - - args: - - "221" - command: - - "220" - env: - - name: "228" - value: "229" - valueFrom: - configMapKeyRef: - key: "235" - name: "234" - optional: true - fieldRef: - apiVersion: "230" - fieldPath: "231" - resourceFieldRef: - containerName: "232" - divisor: "357" - resource: "233" - secretKeyRef: - key: "237" - name: "236" - optional: true - envFrom: - - configMapRef: - name: "226" - optional: false - prefix: "225" - secretRef: - name: "227" - optional: false - image: "219" - imagePullPolicy: T 苧yñKJɐ扵G - lifecycle: - postStart: - exec: - command: - - "264" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "265" - port: "266" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - tcpSocket: - host: "271" - port: "270" - preStop: - exec: - command: - - "272" - httpGet: - host: "274" - httpHeaders: - - name: "275" - value: "276" - path: "273" - port: -1161649101 - scheme: 嚧ʣq埄 - tcpSocket: - host: "278" - port: "277" - livenessProbe: - exec: - command: - - "244" - failureThreshold: -361442565 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "245" - port: -393291312 - scheme: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - initialDelaySeconds: 627713162 - periodSeconds: -1740959124 - successThreshold: 158280212 - tcpSocket: - host: "250" - port: "249" - timeoutSeconds: 1255312175 - name: "218" - ports: - - containerPort: -839281354 - hostIP: "224" - hostPort: 1584001904 - name: "223" - protocol: 5姣>懔%熷谟þ蛯ɰ荶ljʁ - readinessProbe: - exec: - command: - - "251" - failureThreshold: -36782737 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: -2013568185 - scheme: '#yV''WKw(ğ儴Ůĺ}' - initialDelaySeconds: -1244623134 - periodSeconds: -398297599 - successThreshold: 873056500 - tcpSocket: - host: "256" - port: -20130017 - timeoutSeconds: -1334110502 - resources: - limits: - 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0: "175" - requests: - ɺ皚|懥ƖN粕擓ƖHV: "962" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - fʀļ腩墺Ò媁荭gw忊 - drop: - - E剒蔞 - privileged: false - procMount: Ȩ<6鄰簳°Ļǟi& - readOnlyRootFilesystem: true - runAsGroup: 2001337664780390084 - runAsNonRoot: true - runAsUser: -6177393256425700216 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - windowsOptions: - gmsaCredentialSpec: "285" - gmsaCredentialSpecName: "284" - runAsUserName: "286" - startupProbe: - exec: - command: - - "257" - failureThreshold: -1011390276 - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: Qg鄠[ - initialDelaySeconds: -1556231754 - periodSeconds: -321709789 - successThreshold: -1463645123 - tcpSocket: - host: "263" - port: -241238495 - timeoutSeconds: 461585849 - stdin: true - terminationMessagePath: "279" - terminationMessagePolicy: ʁ岼昕ĬÇ - volumeDevices: - - devicePath: "243" - name: "242" - volumeMounts: - - mountPath: "239" - mountPropagation: 'Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ' - name: "238" - subPath: "240" - subPathExpr: "241" - workingDir: "222" - dnsConfig: - nameservers: - - "421" - options: - - name: "423" - value: "424" - searches: - - "422" - dnsPolicy: n(fǂǢ曣ŋayåe躒訙Ǫ - enableServiceLinks: false - ephemeralContainers: - - args: - - "290" - command: - - "289" - env: - - name: "297" - value: "298" - valueFrom: - configMapKeyRef: - key: "304" - name: "303" - optional: true - fieldRef: - apiVersion: "299" - fieldPath: "300" - resourceFieldRef: - containerName: "301" - divisor: "3" - resource: "302" - secretKeyRef: - key: "306" - name: "305" - optional: true - envFrom: - - configMapRef: - name: "295" - optional: true - prefix: "294" - secretRef: - name: "296" - optional: false - image: "288" - lifecycle: - postStart: - exec: - command: - - "335" - httpGet: - host: "338" - httpHeaders: - - name: "339" - value: "340" - path: "336" - port: "337" - scheme: C"6x$1s - tcpSocket: - host: "342" - port: "341" - preStop: - exec: - command: - - "343" - httpGet: - host: "345" - httpHeaders: - - name: "346" - value: "347" - path: "344" - port: -518160270 - scheme: ɔ幩še - tcpSocket: - host: "348" - port: 1956567721 - livenessProbe: - exec: - command: - - "313" - failureThreshold: 472742933 - httpGet: - host: "316" - httpHeaders: - - name: "317" - value: "318" - path: "314" - port: "315" - scheme: 冓鍓贯 - initialDelaySeconds: 1290950685 - periodSeconds: 1058960779 - successThreshold: -2133441986 - tcpSocket: - host: "320" - port: "319" - timeoutSeconds: 12533543 - name: "287" - ports: - - containerPort: -1296830577 - hostIP: "293" - hostPort: 1313273370 - name: "292" - readinessProbe: - exec: - command: - - "321" - failureThreshold: 620822482 - httpGet: - host: "323" - httpHeaders: - - name: "324" - value: "325" - path: "322" - port: 1332783160 - scheme: Ȱ囌{屿oiɥ嵐sC8?Ǻ鱎ƙ; - initialDelaySeconds: -300247800 - periodSeconds: -126958936 - successThreshold: 186945072 - tcpSocket: - host: "327" - port: "326" - timeoutSeconds: 386804041 - resources: - limits: - 淳4揻-$ɽ丟×x锏ɟ: "178" - requests: - Ö闊 鰔澝qV: "752" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - '|ʐşƧ諔迮ƙIJ嘢' - drop: - - ʗN - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: 6726836758549163621 - runAsNonRoot: false - runAsUser: -6048969174364431391 - seLinuxOptions: - level: "353" - role: "351" - type: "352" - user: "350" - windowsOptions: - gmsaCredentialSpec: "355" - gmsaCredentialSpecName: "354" - runAsUserName: "356" - startupProbe: - exec: - command: - - "328" - failureThreshold: -560238386 - httpGet: - host: "331" - httpHeaders: - - name: "332" - value: "333" - path: "329" - port: "330" - scheme: 鍏H鯂² - initialDelaySeconds: -402384013 - periodSeconds: -617381112 - successThreshold: 1851229369 - tcpSocket: - host: "334" - port: -1187301925 - timeoutSeconds: -181601395 - stdin: true - stdinOnce: true - targetContainerName: "357" - terminationMessagePath: "349" - terminationMessagePolicy: ȤƏ埮pɵ - tty: true - volumeDevices: - - devicePath: "312" - name: "311" - volumeMounts: - - mountPath: "308" - mountPropagation: /»頸+SÄ蚃ɣľ)酊龨Î - name: "307" - readOnly: true - subPath: "309" - subPathExpr: "310" - workingDir: "291" - hostAliases: - - hostnames: - - "419" - ip: "418" - hostNetwork: true - hostname: "373" - imagePullSecrets: - - name: "372" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "468" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: false - prefix: "154" - secretRef: - name: "156" - optional: false - image: "148" - imagePullPolicy: ŤǢʭ嵔棂p儼Ƿ裚瓶 - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - tcpSocket: - host: "202" - port: 2126876305 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: Ŵ廷s{Ⱦdz@ - tcpSocket: - host: "209" - port: 406308963 - livenessProbe: - exec: - command: - - "173" - failureThreshold: 1466047181 - httpGet: - host: "176" - httpHeaders: - - name: "177" - value: "178" - path: "174" - port: "175" - initialDelaySeconds: 1805144649 - periodSeconds: 1403721475 - successThreshold: 519906483 - tcpSocket: - host: "180" - port: "179" - timeoutSeconds: -606111218 - name: "147" - ports: - - containerPort: 437857734 - hostIP: "153" - hostPort: -1510026905 - name: "152" - protocol: Rƥ贫d飼$俊跾|@?鷅b - readinessProbe: - exec: - command: - - "181" - failureThreshold: 524249411 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "182" - port: "183" - scheme: w垁鷌辪虽U珝Żwʮ馜üNșƶ4ĩ - initialDelaySeconds: -1724160601 - periodSeconds: 1435507444 - successThreshold: -1430577593 - tcpSocket: - host: "187" - port: -337353552 - timeoutSeconds: -1158840571 - resources: - limits: - 檲ɨ銦妰黖ȓƇ$缔獵偐ę腬: "646" - requests: - 湨: "803" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - +j忊Ŗȫ焗捏ĨFħ籘Àǒɿʒ刽ʼn - drop: - - 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - privileged: true - procMount: fǣ萭旿@ - readOnlyRootFilesystem: true - runAsGroup: 6506922239346928579 - runAsNonRoot: true - runAsUser: 1563703589270296759 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - runAsUserName: "217" - startupProbe: - exec: - command: - - "188" - failureThreshold: 905846572 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "189" - port: "190" - scheme: k_瀹鞎sn芞QÄȻ - initialDelaySeconds: 364013971 - periodSeconds: -1790124395 - successThreshold: 1094670193 - tcpSocket: - host: "195" - port: "194" - timeoutSeconds: 1596422492 - stdin: true - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: 卩蝾 - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "362" - nodeSelector: - "358": "359" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "420" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɭɪǹ0衷, - runtimeClassName: "425" - schedulerName: "415" - securityContext: - fsGroup: 2585323675983182372 - runAsGroup: 6386250802140824739 - runAsNonRoot: false - runAsUser: -5315960194881172085 - seLinuxOptions: - level: "366" - role: "364" - type: "365" - user: "363" - supplementalGroups: - - -4480129203693517072 - sysctls: - - name: "370" - value: "371" - windowsOptions: - gmsaCredentialSpec: "368" - gmsaCredentialSpecName: "367" - runAsUserName: "369" - serviceAccount: "361" - serviceAccountName: "360" - shareProcessNamespace: true - subdomain: "374" - terminationGracePeriodSeconds: -3039830979334099524 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "416" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "417" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "426" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: -2007808768 - volumeID: "46" - azureDisk: - cachingMode: k ź贩j瀉ǚrǜnh0åȂ - diskName: "110" - diskURI: "111" - fsType: "112" - kind: nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶 - readOnly: false - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 952979935 - items: - - key: "99" - mode: 2020789772 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: true - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: -868808281 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: -1768075156 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "915" - resource: "92" - emptyDir: - medium: ɹ坼É/pȿ - sizeLimit: "804" - fc: - fsType: "94" - lun: 570501002 - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1318752360 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - hostPath: - path: "43" - type: "" - iscsi: - chapAuthDiscovery: true - chapAuthSession: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 408756018 - portals: - - "60" - readOnly: true - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - volumeID: "128" - projected: - defaultMode: 480521693 - sources: - - configMap: - items: - - key: "124" - mode: -1126738259 - path: "125" - name: "123" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1618937335 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "461" - resource: "122" - secret: - items: - - key: "116" - mode: 675406340 - path: "117" - name: "115" - optional: false - serviceAccountToken: - audience: "126" - expirationSeconds: -6345861634934949644 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - readOnly: true - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - sslEnabled: true - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 1233814916 - items: - - key: "52" - mode: 228756891 - path: "53" - optional: false - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - updateStrategy: - rollingUpdate: {} - type: 荥ơ'禧ǵŊ)TiD¢ƿ媴h5 -status: - collisionCount: -449319810 - conditions: - - lastTransitionTime: "2469-07-10T03:20:34Z" - message: "434" - reason: "433" - status: '''ƈoIǢ龞瞯å' - type: "" - currentNumberScheduled: -1979737528 - desiredNumberScheduled: -424698834 - numberAvailable: 1660081568 - numberMisscheduled: -1707056814 - numberReady: 407742062 - numberUnavailable: 904244563 - observedGeneration: 5741439505187758584 - updatedNumberScheduled: 902022378 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.json b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.json deleted file mode 100644 index 44a446238..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.json +++ /dev/null @@ -1,1405 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": 896585016, - "selector": { - "matchLabels": { - "74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj": "6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1" - }, - "matchExpressions": [ - { - "key": "50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99", - "operator": "Exists" - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "?Qȫş", - "resourceVersion": "1736621709629422270", - "generation": -8542870036622468681, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2575298329142810753, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "ƶȤ^}", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "躢", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c" - }, - "emptyDir": { - "medium": "Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈", - "sizeLimit": "473" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1188153605 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": 912004803, - "readOnly": true - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -547518679 - } - ], - "defaultMode": 332383000, - "optional": true - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 994527057, - "iscsiInterface": "58", - "fsType": "59", - "portals": [ - "60" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - } - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "660" - }, - "mode": 1569992019 - } - ], - "defaultMode": 824682619 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": -1740986684, - "fsType": "94", - "readOnly": true, - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97", - "readOnly": true - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": 195263908 - } - ], - "defaultMode": 1593906314, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "|@?鷅bȻN", - "fsType": "112", - "readOnly": true, - "kind": "榱*Gưoɘ檲" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -323584340 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "106" - }, - "mode": 173030157 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": 2063799569 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": 8357931971650847566, - "path": "127" - } - } - ], - "defaultMode": -1334904807 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129", - "readOnly": true - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": false, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -606111218, - "containerPort": 1403721475, - "protocol": "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": true - }, - "secretRef": { - "name": "156", - "optional": true - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "650" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": false - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "84" - }, - "requests": { - "ɖȃ賲鐅臬dH巧壚tC十Oɢ": "517" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": -152585895, - "host": "175", - "scheme": "E@Ȗs«ö", - "httpHeaders": [ - { - "name": "176", - "value": "177" - } - ] - }, - "tcpSocket": { - "port": 1135182169, - "host": "178" - }, - "initialDelaySeconds": 1843758068, - "timeoutSeconds": -1967469005, - "periodSeconds": 1702578303, - "successThreshold": -1565157256, - "failureThreshold": -1113628381 - }, - "readinessProbe": { - "exec": { - "command": [ - "179" - ] - }, - "httpGet": { - "path": "180", - "port": 386652373, - "host": "181", - "scheme": "ʙ嫙\u0026", - "httpHeaders": [ - { - "name": "182", - "value": "183" - } - ] - }, - "tcpSocket": { - "port": "184", - "host": "185" - }, - "initialDelaySeconds": -802585193, - "timeoutSeconds": 1901330124, - "periodSeconds": 1944205014, - "successThreshold": -2079582559, - "failureThreshold": -1167888910 - }, - "startupProbe": { - "exec": { - "command": [ - "186" - ] - }, - "httpGet": { - "path": "187", - "port": 804417065, - "host": "188", - "scheme": "Ŵ廷s{Ⱦdz@", - "httpHeaders": [ - { - "name": "189", - "value": "190" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "191" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "192" - ] - }, - "httpGet": { - "path": "193", - "port": -2015604435, - "host": "194", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "195", - "value": "196" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "197" - } - }, - "preStop": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": -1131820775, - "host": "200", - "scheme": "Ƿ裚瓶釆Ɗ+j忊", - "httpHeaders": [ - { - "name": "201", - "value": "202" - } - ] - }, - "tcpSocket": { - "port": "203", - "host": "204" - } - } - }, - "terminationMessagePath": "205", - "terminationMessagePolicy": "焗捏", - "imagePullPolicy": "罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "206", - "role": "207", - "type": "208", - "level": "209" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "210", - "gmsaCredentialSpec": "211", - "runAsUserName": "212" - }, - "runAsUser": -6576869501326512452, - "runAsGroup": -8419423421380299597, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "$MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫" - }, - "tty": true - } - ], - "containers": [ - { - "name": "213", - "image": "214", - "command": [ - "215" - ], - "args": [ - "216" - ], - "workingDir": "217", - "ports": [ - { - "name": "218", - "hostPort": 62799871, - "containerPort": -775325416, - "protocol": "t莭琽§ć\\ ïì", - "hostIP": "219" - } - ], - "envFrom": [ - { - "prefix": "220", - "configMapRef": { - "name": "221", - "optional": false - }, - "secretRef": { - "name": "222", - "optional": false - } - } - ], - "env": [ - { - "name": "223", - "value": "224", - "valueFrom": { - "fieldRef": { - "apiVersion": "225", - "fieldPath": "226" - }, - "resourceFieldRef": { - "containerName": "227", - "resource": "228", - "divisor": "595" - }, - "configMapKeyRef": { - "name": "229", - "key": "230", - "optional": true - }, - "secretKeyRef": { - "name": "231", - "key": "232", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "N粕擓ƖHVe熼": "334" - }, - "requests": { - "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶": "388" - } - }, - "volumeMounts": [ - { - "name": "233", - "readOnly": true, - "mountPath": "234", - "subPath": "235", - "mountPropagation": "癃8鸖", - "subPathExpr": "236" - } - ], - "volumeDevices": [ - { - "name": "237", - "devicePath": "238" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "239" - ] - }, - "httpGet": { - "path": "240", - "port": -1654678802, - "host": "241", - "scheme": "毋", - "httpHeaders": [ - { - "name": "242", - "value": "243" - } - ] - }, - "tcpSocket": { - "port": 391562775, - "host": "244" - }, - "initialDelaySeconds": -775511009, - "timeoutSeconds": -832805508, - "periodSeconds": -228822833, - "successThreshold": -970312425, - "failureThreshold": -1213051101 - }, - "readinessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": -1905643191, - "host": "247", - "scheme": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": "250", - "host": "251" - }, - "initialDelaySeconds": 852780575, - "timeoutSeconds": -1252938503, - "periodSeconds": 893823156, - "successThreshold": -1980314709, - "failureThreshold": 571739592 - }, - "startupProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": -1334110502, - "host": "254", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "255", - "value": "256" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "257" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": 1943028037, - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": -1355476687, - "host": "267", - "scheme": "-Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "T 苧yñKJɐ扵G", - "imagePullPolicy": "û咡W\u003c敄lu|榝$î.Ȏ蝪ʜ5", - "securityContext": { - "capabilities": { - "add": [ - "E埄Ȁ朦 wƯ貾坢'" - ], - "drop": [ - "aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278", - "runAsUserName": "279" - }, - "runAsUser": -2270595441829602368, - "runAsGroup": -2408264753085021035, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "" - } - } - ], - "ephemeralContainers": [ - { - "name": "280", - "image": "281", - "command": [ - "282" - ], - "args": [ - "283" - ], - "workingDir": "284", - "ports": [ - { - "name": "285", - "hostPort": 1868683352, - "containerPort": -1137436579, - "protocol": "颶妧Ö闊", - "hostIP": "286" - } - ], - "envFrom": [ - { - "prefix": "287", - "configMapRef": { - "name": "288", - "optional": false - }, - "secretRef": { - "name": "289", - "optional": true - } - } - ], - "env": [ - { - "name": "290", - "value": "291", - "valueFrom": { - "fieldRef": { - "apiVersion": "292", - "fieldPath": "293" - }, - "resourceFieldRef": { - "containerName": "294", - "resource": "295", - "divisor": "381" - }, - "configMapKeyRef": { - "name": "296", - "key": "297", - "optional": true - }, - "secretKeyRef": { - "name": "298", - "key": "299", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "²sNƗ¸g": "50" - }, - "requests": { - "酊龨δ摖ȱğ_\u003c": "118" - } - }, - "volumeMounts": [ - { - "name": "300", - "readOnly": true, - "mountPath": "301", - "subPath": "302", - "mountPropagation": "ƺ蛜6Ɖ飴ɎiǨź", - "subPathExpr": "303" - } - ], - "volumeDevices": [ - { - "name": "304", - "devicePath": "305" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "306" - ] - }, - "httpGet": { - "path": "307", - "port": 865289071, - "host": "308", - "scheme": "iɥ嵐sC8", - "httpHeaders": [ - { - "name": "309", - "value": "310" - } - ] - }, - "tcpSocket": { - "port": -898536659, - "host": "311" - }, - "initialDelaySeconds": -1513284745, - "timeoutSeconds": 1258370227, - "periodSeconds": -414121491, - "successThreshold": -1862764022, - "failureThreshold": -300247800 - }, - "readinessProbe": { - "exec": { - "command": [ - "312" - ] - }, - "httpGet": { - "path": "313", - "port": 323903711, - "host": "314", - "scheme": "J", - "httpHeaders": [ - { - "name": "315", - "value": "316" - } - ] - }, - "tcpSocket": { - "port": "317", - "host": "318" - }, - "initialDelaySeconds": 657418949, - "timeoutSeconds": -992558278, - "periodSeconds": 287654902, - "successThreshold": -2062708879, - "failureThreshold": 215186711 - }, - "startupProbe": { - "exec": { - "command": [ - "319" - ] - }, - "httpGet": { - "path": "320", - "port": -1117254382, - "host": "321", - "scheme": "趐囨鏻砅邻爥蹔ŧOǨ", - "httpHeaders": [ - { - "name": "322", - "value": "323" - } - ] - }, - "tcpSocket": { - "port": "324", - "host": "325" - }, - "initialDelaySeconds": 2129989022, - "timeoutSeconds": -1699531929, - "periodSeconds": 1311843384, - "successThreshold": -1292310438, - "failureThreshold": 1502643091 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "326" - ] - }, - "httpGet": { - "path": "327", - "port": "328", - "host": "329", - "scheme": "幩šeSvEȤƏ埮pɵ", - "httpHeaders": [ - { - "name": "330", - "value": "331" - } - ] - }, - "tcpSocket": { - "port": "332", - "host": "333" - } - }, - "preStop": { - "exec": { - "command": [ - "334" - ] - }, - "httpGet": { - "path": "335", - "port": "336", - "host": "337", - "scheme": "ş", - "httpHeaders": [ - { - "name": "338", - "value": "339" - } - ] - }, - "tcpSocket": { - "port": "340", - "host": "341" - } - } - }, - "terminationMessagePath": "342", - "terminationMessagePolicy": "迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ", - "imagePullPolicy": "ņ", - "securityContext": { - "capabilities": { - "add": [ - "DŽ髐njʉBn(fǂǢ曣" - ], - "drop": [ - "ay" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "343", - "role": "344", - "type": "345", - "level": "346" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "347", - "gmsaCredentialSpec": "348", - "runAsUserName": "349" - }, - "runAsUser": 1958157659034146020, - "runAsGroup": -5996624450771474158, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "嗆u" - }, - "tty": true, - "targetContainerName": "350" - } - ], - "restartPolicy": "T[", - "terminationGracePeriodSeconds": -2738603156841903595, - "activeDeadlineSeconds": -8619192438821356882, - "dnsPolicy": "Ƶf", - "nodeSelector": { - "351": "352" - }, - "serviceAccountName": "353", - "serviceAccount": "354", - "automountServiceAccountToken": false, - "nodeName": "355", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "356", - "role": "357", - "type": "358", - "level": "359" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "360", - "gmsaCredentialSpec": "361", - "runAsUserName": "362" - }, - "runAsUser": -2781126825051715248, - "runAsGroup": -801152248124332545, - "runAsNonRoot": true, - "supplementalGroups": [ - 5255171395073905944 - ], - "fsGroup": 760480547754807445, - "sysctls": [ - { - "name": "363", - "value": "364" - } - ] - }, - "imagePullSecrets": [ - { - "name": "365" - } - ], - "hostname": "366", - "subdomain": "367", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "368", - "operator": "ǧĒzŔ瘍N", - "values": [ - "369" - ] - } - ], - "matchFields": [ - { - "key": "370", - "operator": "ƽ眝{æ盪泙", - "values": [ - "371" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 646133945, - "preference": { - "matchExpressions": [ - { - "key": "372", - "operator": "}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊", - "values": [ - "373" - ] - } - ], - "matchFields": [ - { - "key": "374", - "operator": "ʨIk(dŊiɢzĮ蛋I滞", - "values": [ - "375" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3.csh-3--Z1Tvw39FC": "rtSY.g._2F7.-_e..Or_-.3OHgt._6" - }, - "matchExpressions": [ - { - "key": "V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "382" - ], - "topologyKey": "383" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -855547676, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y": "f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5" - }, - "matchExpressions": [ - { - "key": "8.--w0_1V7", - "operator": "In", - "values": [ - "7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8" - ] - } - ] - }, - "namespaces": [ - "390" - ], - "topologyKey": "391" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33": "17ca-_p-y.eQZ9p_1" - }, - "matchExpressions": [ - { - "key": "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "398" - ], - "topologyKey": "399" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 808399187, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2": "CpS__.39g_.--_-_ve5.m_2_--XZx" - }, - "matchExpressions": [ - { - "key": "w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "406" - ], - "topologyKey": "407" - } - } - ] - } - }, - "schedulerName": "408", - "tolerations": [ - { - "key": "409", - "operator": "ƹ|", - "value": "410", - "effect": "料ȭzV镜籬ƽ", - "tolerationSeconds": 935587338391120947 - } - ], - "hostAliases": [ - { - "ip": "411", - "hostnames": [ - "412" - ] - } - ], - "priorityClassName": "413", - "priority": 1690570439, - "dnsConfig": { - "nameservers": [ - "414" - ], - "searches": [ - "415" - ], - "options": [ - { - "name": "416", - "value": "417" - } - ] - }, - "readinessGates": [ - { - "conditionType": "梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳" - } - ], - "runtimeClassName": "418", - "enableServiceLinks": true, - "preemptionPolicy": "eáNRNJ丧鴻Ŀ", - "overhead": { - "癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö": "607" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -137402083, - "topologyKey": "419", - "whenUnsatisfiable": "Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥", - "labelSelector": { - "matchLabels": { - "E--pT751": "mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X" - }, - "matchExpressions": [ - { - "key": "qW", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "strategy": { - "type": "荥ơ'禧ǵŊ)TiD¢ƿ媴h5", - "rollingUpdate": { - - } - }, - "minReadySeconds": 212061711, - "revisionHistoryLimit": -1092090658, - "progressDeadlineSeconds": -1707056814 - }, - "status": { - "observedGeneration": 2992108727478230062, - "replicas": 407742062, - "updatedReplicas": 2115789304, - "readyReplicas": 902022378, - "availableReplicas": 1660081568, - "unavailableReplicas": 904244563, - "conditions": [ - { - "type": "洅啶", - "status": "Ƅ抄3昞财Î嘝zʄ", - "lastUpdateTime": "2524-02-08T04:27:05Z", - "lastTransitionTime": "2146-08-16T07:05:27Z", - "reason": "426", - "message": "427" - } - ], - "collisionCount": -1977467928 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.pb deleted file mode 100644 index d9ea50c52245b9f5f2d43086ffb1653c55209e2d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6326 zcmZ8l33yaRw(ja^h(R2IYsPSuPQ{|UHh#473hXF^HLG`6;ur8>?NX6+(u)bJUu!x~s1>y2U_=Aj+ zp)S*xV7ww%0%5VTJO?kr!~nh5W@l)II+=o6vL=|ak@;w%nW0LL&Us44c$z6JcntJ? z+%Wjq8S7VM=VUuxe}F4ToRuiNm8cFY(Og!dC&WJV-`$NqdQ=T!N-J7w>Ye_NUXBNpG)ArjpeK|;lGUKCcz8kf9>7lZN7iF zZn!OZv_8E3n71!w?Ye0X1)I7(`~91`9^@&Pu)wn|&`=w!JTT2aSm*2WxjluG1G`Fm zZ6jwxo9kzXi+B5W_{;i2o3`>db1||;9X|)&GH;a?`}d#q`@X*pKjgHyY|yMivt}PY z@=etcspsRSeNG#j1)^QOZr6Rh1T4QmraUf_Wb)~<+_e3+%fEL|%^m>FKzdDa9++z=hNb5;YU8N>nBQ&rLV z+S?aCz1jBtg{IONH~KH=rM8j3U4G%)h$S3WLk2mlhO!fZQU6gh#x`Gkmpy&hFD75p+;CTpmKV!Uxge zgBW&n9trRXjtoR%no5*7EeY_T1c*EZh>{3IO#-4lVR;o*Ag&N`PL2(h6#nPzp)%f@ z{qVJm{vV=lh4=@!`&pOHM^h^4N&Zr zo!j4<01nDbL{!^L#YJ_c@4WFtHrR=1wz@9{Hb;HXB!UfIdsuA}&x%Nc6X{F|{-)9SF(# z`6+Bld`n#$&2KQC?PamHYtZ$#^ZyF4i9S>EucuoWkc7zZ2tpZcR2_z75 zfv_W@u_L0X&cB@86mB^7(%=Uu96FOhPxh1@>K*%Pdw7e0vMr;7uCDbM(*k8 zCK3J*(5}#kjo&`<>3BGZ_=+OCCXVe2ooe+}jPA*OK=l(+>+`oSXmo?aMLo@4tQ~PQ2XM(HwPKhjs2V&Z^x#XN%t3 zcl{!YKl;C;?!S&Sb!|l?#(QEZq{0{q=@JM@1VWR5$SFXS1?bO~<(4dy18Y)9kw7#D z5ZwjDuwB^s`6oU9dbj5yvLk10XLq>mm6EG7RtLRAV8P}R+-wiA64%T*#y;}q^cS+CCjY_xr3XTE25 zuy#i>n`ZD1=m5{U&3iW3(D>YNTX0Wjpr;P{G>M-Vck0UaUMu)C#B{0={#P4^D?@t= zhZ~;p?s+zJW{ct56KJjSZVfh^4HmlDB+B2zhRXcU&v!h!GJc82y~5X$KXNp*XWOHJ zfhIOY;jdV^=eP_`=6EVB&R&iw#tWsnxp~z1IIo8%%w=xj--zO%p${{5m$z|G{BvbO7OCk1RF*!A;L1ODywxYt%t0MjU_tH z)^HABTuN0eNh=MktD><8rvYY_0JGv;9Rmba6n%}fC_7)7oH$(<=FY+CNy5|F=HnTe zR5my8la`tblR-0p%EAl~5kyZjR}n!l^=ynaldd;$lEOdCak{|puqn;cc&on1d53Ye0ALqYA#LqS zWd_s`SXeL<3o8XpSY_h*fYolDo{^TFoRJd&?M!kAAQaG38;X1Fqca6Dd?Vrjh0Nj} zpm_DHRqF*o$TM@WDJX(0rsT=Xrh^Fuyk1?Bif1v`G4UhdvJYp@f%=CU%b*XeX6B|T z!fKO%`4=o)&rjvVJQHdbkle)6a0blUz{({F_9HJVb-p=65QvOt1Ls`9H1Oj5rT<@0 zSyUY{vZ&P~pn4111;|2@A#6!9XduZ3;4?)`03wn9hAxHJ%D%ex-Z+-teDrYR&8~Y! zj|WaS`+6bng{vFK8p9PQ{6($)fqlNp@Zh08``tZkK4nltQW$GRk3tOzl2wcZfq+3Q zl|d{u3SAX33N<7aFeHH5mMGMaAV9@`x1=?+(H36&gP zGSh#u-QQZD^RRzM!E9d(!xf68B{9gQY7AFM0MmgO2^JCqwNuJQE}6w=D5iMA9&#i; zU;MJ^BujzU0V}{9$RW4Pm^xOSJ#=Wej|F8306Y+FJSbl*Y-_xU1!YOoZC{mC|0CAk z)9}d~(RA&+Uh&zX*!XXbzgZPct77ZWwNJ;fL=HD2y1csWtuWnFT` zp0D#Cs=GI`tPZJM(&-JrOX}L0Z1Hnj!?7Ab}du*gSaHe*lzqCG3wL`o=B8I^> z!}u{J9XoR1d<0WThQ^Qc)%o8uzDC5FbvxTHMOThwJ5hA;qbEbH^}$_z;gVvn`+;=- zId>%2vD$(_ZE*t?i7b(eayk$tYf|uRL1^>fvw>|5W83q6&7uB%p~9WhGA0K)8kgoh zi+4(_`-7{=UHGlA->ba7(igK5=NYK3Gr`?mrZP6|D3jQ2GENKf(&AwOGvrWoQIT zND9=FQCJ}^&Rb^Hy_d>(#5* zZjDrLvIO$V5*dQXBGEB4+E~#R`zpE%*ht{5vZOfR2+6DtlO^pfWcdi)$4v^fRG#1D zsSbDT`hED+zHsHPOM_d&H9I`zp3RJP5$|pe)GkFZhJ!2ii?SUQJLj^}+>4B-EN0a^#++XhP4Yu}#YEB0B9B@6$ zK@ge&X>G0s=;_|o^Gs91dAand=}QGHPlpVN|7e<7LdJ3k!{)k29(h6#7Vz<$b?y8} zO1zt3A=^}ELz2-<%tAT4*%AOyn8uUylXhA!PT*dd0B{lF0TAXpIsv!TX#xDyzr3Mw-nBS>T0oIthG-iXscVRD`08iX?&eo(}D4P`#z$)?Q!PiqQ_wX#yQI z1q$^@ET(W6p_Zj$)V=>v{I`Y}=H3*J<}E9H2mB{0vLDu&Z&T)$R1zI`ajbGV@}}pt zaoh{Bm`alEYG3csXwbFygp1y~$@$slk<-zlKi>V-hb7UPQQX>j`HN`l!WB@0Fmp(R zpTr(Ca>U+$;Z%JjAX5qMWI-#|1woKX>Wx@MB}j1;DsaymXHQw}r;Fcdi%R4Cx}>TU z#b0Ua>lly4HQ)VhX=)YXo{X#oCASI;q2wMf;3yQ{@NKy6^q)HD*_SpacgEO$Z@Itu zXr}K(WN~&0Lg5nRr$7l;AgqM~G+^RG+0DeK%1zZj33J74{v@XgboeS8=t-Q=$+UdMtWWk7>6ph4xIYOQEcBoNi2 z1(vS=RBP!53ySxK&K>pEjdc5KTjcXK$-leQe>Qwz@OdX3d0*E^`TS5%!AQODNF-=d z5qz79N;leyxM!nVY5+O~vqrBBcGmCxhX4Qo diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.yaml deleted file mode 100644 index 7b6eddb95..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Deployment.yaml +++ /dev/null @@ -1,958 +0,0 @@ -apiVersion: apps/v1beta2 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: 212061711 - progressDeadlineSeconds: -1707056814 - replicas: 896585016 - revisionHistoryLimit: -1092090658 - selector: - matchExpressions: - - key: 50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99 - operator: Exists - matchLabels: - 74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj: 6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1 - strategy: - rollingUpdate: {} - type: 荥ơ'禧ǵŊ)TiD¢ƿ媴h5 - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -2575298329142810753 - finalizers: - - "37" - generateName: "26" - generation: -8542870036622468681 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: 躢 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: ƶȤ^} - resourceVersion: "1736621709629422270" - selfLink: "28" - uid: ?Qȫş - spec: - activeDeadlineSeconds: -8619192438821356882 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "372" - operator: '}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊' - values: - - "373" - matchFields: - - key: "374" - operator: ʨIk(dŊiɢzĮ蛋I滞 - values: - - "375" - weight: 646133945 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "368" - operator: ǧĒzŔ瘍N - values: - - "369" - matchFields: - - key: "370" - operator: ƽ眝{æ盪泙 - values: - - "371" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8.--w0_1V7 - operator: In - values: - - 7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8 - matchLabels: - w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y: f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5 - namespaces: - - "390" - topologyKey: "391" - weight: -855547676 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd - operator: Exists - matchLabels: - 3.csh-3--Z1Tvw39FC: rtSY.g._2F7.-_e..Or_-.3OHgt._6 - namespaces: - - "382" - topologyKey: "383" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf - operator: DoesNotExist - matchLabels: - 3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2: CpS__.39g_.--_-_ve5.m_2_--XZx - namespaces: - - "406" - topologyKey: "407" - weight: 808399187 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81 - operator: DoesNotExist - matchLabels: - 4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33: 17ca-_p-y.eQZ9p_1 - namespaces: - - "398" - topologyKey: "399" - automountServiceAccountToken: false - containers: - - args: - - "216" - command: - - "215" - env: - - name: "223" - value: "224" - valueFrom: - configMapKeyRef: - key: "230" - name: "229" - optional: true - fieldRef: - apiVersion: "225" - fieldPath: "226" - resourceFieldRef: - containerName: "227" - divisor: "595" - resource: "228" - secretKeyRef: - key: "232" - name: "231" - optional: false - envFrom: - - configMapRef: - name: "221" - optional: false - prefix: "220" - secretRef: - name: "222" - optional: false - image: "214" - imagePullPolicy: û咡W<敄lu|榝$î.Ȏ蝪ʜ5 - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - tcpSocket: - host: "264" - port: 1943028037 - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: -1355476687 - scheme: -Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "239" - failureThreshold: -1213051101 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "240" - port: -1654678802 - scheme: 毋 - initialDelaySeconds: -775511009 - periodSeconds: -228822833 - successThreshold: -970312425 - tcpSocket: - host: "244" - port: 391562775 - timeoutSeconds: -832805508 - name: "213" - ports: - - containerPort: -775325416 - hostIP: "219" - hostPort: 62799871 - name: "218" - protocol: t莭琽§ć\ ïì - readinessProbe: - exec: - command: - - "245" - failureThreshold: 571739592 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "246" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - initialDelaySeconds: 852780575 - periodSeconds: 893823156 - successThreshold: -1980314709 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1252938503 - resources: - limits: - N粕擓ƖHVe熼: "334" - requests: - 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶: "388" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - E埄Ȁ朦 wƯ貾坢' - drop: - - aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: -2408264753085021035 - runAsNonRoot: true - runAsUser: -2270595441829602368 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - runAsUserName: "279" - startupProbe: - exec: - command: - - "252" - failureThreshold: -1008070934 - httpGet: - host: "254" - httpHeaders: - - name: "255" - value: "256" - path: "253" - port: -1334110502 - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "257" - port: 622267234 - timeoutSeconds: 809006670 - terminationMessagePath: "272" - terminationMessagePolicy: T 苧yñKJɐ扵G - volumeDevices: - - devicePath: "238" - name: "237" - volumeMounts: - - mountPath: "234" - mountPropagation: 癃8鸖 - name: "233" - readOnly: true - subPath: "235" - subPathExpr: "236" - workingDir: "217" - dnsConfig: - nameservers: - - "414" - options: - - name: "416" - value: "417" - searches: - - "415" - dnsPolicy: Ƶf - enableServiceLinks: true - ephemeralContainers: - - args: - - "283" - command: - - "282" - env: - - name: "290" - value: "291" - valueFrom: - configMapKeyRef: - key: "297" - name: "296" - optional: true - fieldRef: - apiVersion: "292" - fieldPath: "293" - resourceFieldRef: - containerName: "294" - divisor: "381" - resource: "295" - secretKeyRef: - key: "299" - name: "298" - optional: false - envFrom: - - configMapRef: - name: "288" - optional: false - prefix: "287" - secretRef: - name: "289" - optional: true - image: "281" - imagePullPolicy: ņ - lifecycle: - postStart: - exec: - command: - - "326" - httpGet: - host: "329" - httpHeaders: - - name: "330" - value: "331" - path: "327" - port: "328" - scheme: 幩šeSvEȤƏ埮pɵ - tcpSocket: - host: "333" - port: "332" - preStop: - exec: - command: - - "334" - httpGet: - host: "337" - httpHeaders: - - name: "338" - value: "339" - path: "335" - port: "336" - scheme: ş - tcpSocket: - host: "341" - port: "340" - livenessProbe: - exec: - command: - - "306" - failureThreshold: -300247800 - httpGet: - host: "308" - httpHeaders: - - name: "309" - value: "310" - path: "307" - port: 865289071 - scheme: iɥ嵐sC8 - initialDelaySeconds: -1513284745 - periodSeconds: -414121491 - successThreshold: -1862764022 - tcpSocket: - host: "311" - port: -898536659 - timeoutSeconds: 1258370227 - name: "280" - ports: - - containerPort: -1137436579 - hostIP: "286" - hostPort: 1868683352 - name: "285" - protocol: 颶妧Ö闊 - readinessProbe: - exec: - command: - - "312" - failureThreshold: 215186711 - httpGet: - host: "314" - httpHeaders: - - name: "315" - value: "316" - path: "313" - port: 323903711 - scheme: J - initialDelaySeconds: 657418949 - periodSeconds: 287654902 - successThreshold: -2062708879 - tcpSocket: - host: "318" - port: "317" - timeoutSeconds: -992558278 - resources: - limits: - ²sNƗ¸g: "50" - requests: - 酊龨δ摖ȱğ_<: "118" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - DŽ髐njʉBn(fǂǢ曣 - drop: - - ay - privileged: false - procMount: 嗆u - readOnlyRootFilesystem: true - runAsGroup: -5996624450771474158 - runAsNonRoot: false - runAsUser: 1958157659034146020 - seLinuxOptions: - level: "346" - role: "344" - type: "345" - user: "343" - windowsOptions: - gmsaCredentialSpec: "348" - gmsaCredentialSpecName: "347" - runAsUserName: "349" - startupProbe: - exec: - command: - - "319" - failureThreshold: 1502643091 - httpGet: - host: "321" - httpHeaders: - - name: "322" - value: "323" - path: "320" - port: -1117254382 - scheme: 趐囨鏻砅邻爥蹔ŧOǨ - initialDelaySeconds: 2129989022 - periodSeconds: 1311843384 - successThreshold: -1292310438 - tcpSocket: - host: "325" - port: "324" - timeoutSeconds: -1699531929 - targetContainerName: "350" - terminationMessagePath: "342" - terminationMessagePolicy: 迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ - tty: true - volumeDevices: - - devicePath: "305" - name: "304" - volumeMounts: - - mountPath: "301" - mountPropagation: ƺ蛜6Ɖ飴ɎiǨź - name: "300" - readOnly: true - subPath: "302" - subPathExpr: "303" - workingDir: "284" - hostAliases: - - hostnames: - - "412" - ip: "411" - hostNetwork: true - hostname: "366" - imagePullSecrets: - - name: "365" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "650" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: true - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩 - lifecycle: - postStart: - exec: - command: - - "192" - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "193" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - tcpSocket: - host: "197" - port: 424236719 - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: -1131820775 - scheme: Ƿ裚瓶釆Ɗ+j忊 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "173" - failureThreshold: -1113628381 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -152585895 - scheme: E@Ȗs«ö - initialDelaySeconds: 1843758068 - periodSeconds: 1702578303 - successThreshold: -1565157256 - tcpSocket: - host: "178" - port: 1135182169 - timeoutSeconds: -1967469005 - name: "147" - ports: - - containerPort: 1403721475 - hostIP: "153" - hostPort: -606111218 - name: "152" - protocol: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - readinessProbe: - exec: - command: - - "179" - failureThreshold: -1167888910 - httpGet: - host: "181" - httpHeaders: - - name: "182" - value: "183" - path: "180" - port: 386652373 - scheme: ʙ嫙& - initialDelaySeconds: -802585193 - periodSeconds: 1944205014 - successThreshold: -2079582559 - tcpSocket: - host: "185" - port: "184" - timeoutSeconds: 1901330124 - resources: - limits: - "": "84" - requests: - ɖȃ賲鐅臬dH巧壚tC十Oɢ: "517" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - privileged: false - procMount: $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫 - readOnlyRootFilesystem: true - runAsGroup: -8419423421380299597 - runAsNonRoot: false - runAsUser: -6576869501326512452 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - runAsUserName: "212" - startupProbe: - exec: - command: - - "186" - failureThreshold: 208045354 - httpGet: - host: "188" - httpHeaders: - - name: "189" - value: "190" - path: "187" - port: 804417065 - scheme: Ŵ廷s{Ⱦdz@ - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "191" - port: 406308963 - timeoutSeconds: 2026784878 - terminationMessagePath: "205" - terminationMessagePolicy: 焗捏 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: "" - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "355" - nodeSelector: - "351": "352" - overhead: - 癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö: "607" - preemptionPolicy: eáNRNJ丧鴻Ŀ - priority: 1690570439 - priorityClassName: "413" - readinessGates: - - conditionType: 梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳 - restartPolicy: T[ - runtimeClassName: "418" - schedulerName: "408" - securityContext: - fsGroup: 760480547754807445 - runAsGroup: -801152248124332545 - runAsNonRoot: true - runAsUser: -2781126825051715248 - seLinuxOptions: - level: "359" - role: "357" - type: "358" - user: "356" - supplementalGroups: - - 5255171395073905944 - sysctls: - - name: "363" - value: "364" - windowsOptions: - gmsaCredentialSpec: "361" - gmsaCredentialSpecName: "360" - runAsUserName: "362" - serviceAccount: "354" - serviceAccountName: "353" - shareProcessNamespace: false - subdomain: "367" - terminationGracePeriodSeconds: -2738603156841903595 - tolerations: - - effect: 料ȭzV镜籬ƽ - key: "409" - operator: ƹ| - tolerationSeconds: 935587338391120947 - value: "410" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: qW - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - E--pT751: mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X - maxSkew: -137402083 - topologyKey: "419" - whenUnsatisfiable: Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥 - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: 912004803 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: '|@?鷅bȻN' - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 榱*Gưoɘ檲 - readOnly: true - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 1593906314 - items: - - key: "99" - mode: 195263908 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: 824682619 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1569992019 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "660" - resource: "92" - emptyDir: - medium: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - sizeLimit: "473" - fc: - fsType: "94" - lun: -1740986684 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1188153605 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - iscsi: - chapAuthDiscovery: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 994527057 - portals: - - "60" - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - readOnly: true - volumeID: "128" - projected: - defaultMode: -1334904807 - sources: - - configMap: - items: - - key: "124" - mode: 2063799569 - path: "125" - name: "123" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 173030157 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "106" - resource: "122" - secret: - items: - - key: "116" - mode: -323584340 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: 8357931971650847566 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 332383000 - items: - - key: "52" - mode: -547518679 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" -status: - availableReplicas: 1660081568 - collisionCount: -1977467928 - conditions: - - lastTransitionTime: "2146-08-16T07:05:27Z" - lastUpdateTime: "2524-02-08T04:27:05Z" - message: "427" - reason: "426" - status: Ƅ抄3昞财Î嘝zʄ - type: 洅啶 - observedGeneration: 2992108727478230062 - readyReplicas: 902022378 - replicas: 407742062 - unavailableReplicas: 904244563 - updatedReplicas: 2115789304 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.json b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.json deleted file mode 100644 index 560a566a7..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.json +++ /dev/null @@ -1,1397 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": 896585016, - "minReadySeconds": -1971381490, - "selector": { - "matchLabels": { - "g8c2-k-912e5-c-e63-n-3snh-z--3uy5-----578/s.X8u4_.l.wV--__-Nx.N_6-___._-.-W._AAn---v_-5-_8LXP-o-9..1l-5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ʬ", - "resourceVersion": "7336814125345800857", - "generation": -6617020301190572172, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -152893758082474859, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "ɖgȏ哙ȍȂ揲ȼDDŽLŬp:", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "ƅS·Õüe0ɔȖ脵鴈Ō", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ" - }, - "emptyDir": { - "medium": "彭聡A3fƻfʣ", - "sizeLimit": "115" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1499132872 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": -762366823, - "readOnly": true - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -104666658 - } - ], - "defaultMode": 372704313, - "optional": true - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 1655406148, - "iscsiInterface": "58", - "fsType": "59", - "readOnly": true, - "portals": [ - "60" - ], - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64" - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "457" - }, - "mode": 1235524154 - } - ], - "defaultMode": -106644772 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": 441887498, - "fsType": "94", - "readOnly": true, - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97" - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": -2039036935 - } - ], - "defaultMode": -460478410, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "readOnly": true, - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "HǺƶȤ^}穠", - "fsType": "112", - "readOnly": true, - "kind": "躢" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -1399063270 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "746" - }, - "mode": 926891073 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": -1694464659 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": -7593824971107985079, - "path": "127" - } - } - ], - "defaultMode": -522879476 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129" - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "readOnly": true, - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": false, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -1896921306, - "containerPort": 715087892, - "protocol": "倱\u003c", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": false - }, - "secretRef": { - "name": "156", - "optional": false - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "455" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": true - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "/擇ɦĽ胚O醔ɍ厶耈 T": "618" - }, - "requests": { - "á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ": "372" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "dʪīT捘ɍi縱ù墴1Rƥ", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": "175", - "host": "176", - "scheme": "ƴy綸_Ú8參遼ūPH炮", - "httpHeaders": [ - { - "name": "177", - "value": "178" - } - ] - }, - "tcpSocket": { - "port": "179", - "host": "180" - }, - "initialDelaySeconds": 741871873, - "timeoutSeconds": 446829537, - "periodSeconds": -1987044888, - "successThreshold": -1638339389, - "failureThreshold": 2053960192 - }, - "readinessProbe": { - "exec": { - "command": [ - "181" - ] - }, - "httpGet": { - "path": "182", - "port": -1903685915, - "host": "183", - "scheme": "ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬", - "httpHeaders": [ - { - "name": "184", - "value": "185" - } - ] - }, - "tcpSocket": { - "port": "186", - "host": "187" - }, - "initialDelaySeconds": 128019484, - "timeoutSeconds": 431781335, - "periodSeconds": -2130554644, - "successThreshold": 290736426, - "failureThreshold": -57352147 - }, - "startupProbe": { - "exec": { - "command": [ - "188" - ] - }, - "httpGet": { - "path": "189", - "port": "190", - "host": "191", - "scheme": "閝ȝ", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": "194", - "host": "195" - }, - "initialDelaySeconds": -2142865739, - "timeoutSeconds": -1179067190, - "periodSeconds": 1434408532, - "successThreshold": -566408554, - "failureThreshold": 1133369651 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": -1327537699, - "host": "198", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ĉş蝿ɖȃ賲鐅臬", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "imagePullPolicy": "k_瀹鞎sn芞QÄȻ", - "securityContext": { - "capabilities": { - "add": [ - "?" - ], - "drop": [ - "峧Y栲茇竛吲蚛隖" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217", - "runAsUserName": "218" - }, - "runAsUser": 7312518131318481396, - "runAsGroup": -7286288718856494813, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ʙ嫙\u0026" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "219", - "image": "220", - "command": [ - "221" - ], - "args": [ - "222" - ], - "workingDir": "223", - "ports": [ - { - "name": "224", - "hostPort": 1944205014, - "containerPort": -2079582559, - "protocol": "K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ", - "hostIP": "225" - } - ], - "envFrom": [ - { - "prefix": "226", - "configMapRef": { - "name": "227", - "optional": true - }, - "secretRef": { - "name": "228", - "optional": false - } - } - ], - "env": [ - { - "name": "229", - "value": "230", - "valueFrom": { - "fieldRef": { - "apiVersion": "231", - "fieldPath": "232" - }, - "resourceFieldRef": { - "containerName": "233", - "resource": "234", - "divisor": "901" - }, - "configMapKeyRef": { - "name": "235", - "key": "236", - "optional": false - }, - "secretKeyRef": { - "name": "237", - "key": "238", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "羭,铻OŤǢʭ嵔": "340" - }, - "requests": { - "TG;邪匾mɩC[ó瓧嫭塓烀罁胾^拜": "755" - } - }, - "volumeMounts": [ - { - "name": "239", - "mountPath": "240", - "subPath": "241", - "mountPropagation": "ʒ刽ʼn掏1ſ盷褎weLJèux榜", - "subPathExpr": "242" - } - ], - "volumeDevices": [ - { - "name": "243", - "devicePath": "244" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": "247", - "host": "248", - "scheme": "賃ɪ鐊瀑Ź9ǕLLȊ", - "httpHeaders": [ - { - "name": "249", - "value": "250" - } - ] - }, - "tcpSocket": { - "port": -26910286, - "host": "251" - }, - "initialDelaySeconds": 1214895765, - "timeoutSeconds": 1181519543, - "periodSeconds": 282592353, - "successThreshold": 377225334, - "failureThreshold": -1191434089 - }, - "readinessProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": "254", - "host": "255", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - }, - "initialDelaySeconds": -839281354, - "timeoutSeconds": 2035347577, - "periodSeconds": -819723498, - "successThreshold": -150133456, - "failureThreshold": 1507815593 - }, - "startupProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": 1684643131, - "host": "262", - "scheme": "飣奺Ȋ礶惇¸", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - }, - "initialDelaySeconds": -161753937, - "timeoutSeconds": -1578746609, - "periodSeconds": 1428207963, - "successThreshold": 790462391, - "failureThreshold": -822090785 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "267" - ] - }, - "httpGet": { - "path": "268", - "port": -421846800, - "host": "269", - "scheme": "zvt莭琽§", - "httpHeaders": [ - { - "name": "270", - "value": "271" - } - ] - }, - "tcpSocket": { - "port": -763687725, - "host": "272" - } - }, - "preStop": { - "exec": { - "command": [ - "273" - ] - }, - "httpGet": { - "path": "274", - "port": -1452676801, - "host": "275", - "scheme": "ȿ0矀Kʝ", - "httpHeaders": [ - { - "name": "276", - "value": "277" - } - ] - }, - "tcpSocket": { - "port": "278", - "host": "279" - } - } - }, - "terminationMessagePath": "280", - "terminationMessagePolicy": "\\p[", - "imagePullPolicy": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "securityContext": { - "capabilities": { - "add": [ - "À*f\u003c鴒翁杙Ŧ癃8" - ], - "drop": [ - "ɱJȉ罴" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "281", - "role": "282", - "type": "283", - "level": "284" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "285", - "gmsaCredentialSpec": "286", - "runAsUserName": "287" - }, - "runAsUser": -2706913289057230267, - "runAsGroup": -3689959065086680033, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "288", - "image": "289", - "command": [ - "290" - ], - "args": [ - "291" - ], - "workingDir": "292", - "ports": [ - { - "name": "293", - "hostPort": 1853396726, - "containerPort": 1330271338, - "protocol": "逴", - "hostIP": "294" - } - ], - "envFrom": [ - { - "prefix": "295", - "configMapRef": { - "name": "296", - "optional": true - }, - "secretRef": { - "name": "297", - "optional": true - } - } - ], - "env": [ - { - "name": "298", - "value": "299", - "valueFrom": { - "fieldRef": { - "apiVersion": "300", - "fieldPath": "301" - }, - "resourceFieldRef": { - "containerName": "302", - "resource": "303", - "divisor": "709" - }, - "configMapKeyRef": { - "name": "304", - "key": "305", - "optional": false - }, - "secretKeyRef": { - "name": "306", - "key": "307", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "颐o": "230" - }, - "requests": { - "[+扴ȨŮ+朷Ǝ膯ljV": "728" - } - }, - "volumeMounts": [ - { - "name": "308", - "mountPath": "309", - "subPath": "310", - "mountPropagation": "ŕ-Ɂ圯W:ĸ輦唊#v铿", - "subPathExpr": "311" - } - ], - "volumeDevices": [ - { - "name": "312", - "devicePath": "313" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "314" - ] - }, - "httpGet": { - "path": "315", - "port": "316", - "host": "317", - "scheme": "屡ʁ", - "httpHeaders": [ - { - "name": "318", - "value": "319" - } - ] - }, - "tcpSocket": { - "port": -1554559634, - "host": "320" - }, - "initialDelaySeconds": 1718241831, - "timeoutSeconds": 550615941, - "periodSeconds": 1180971695, - "successThreshold": -1971944908, - "failureThreshold": 1742259603 - }, - "readinessProbe": { - "exec": { - "command": [ - "321" - ] - }, - "httpGet": { - "path": "322", - "port": -1620315711, - "host": "323", - "scheme": "ɐ扵", - "httpHeaders": [ - { - "name": "324", - "value": "325" - } - ] - }, - "tcpSocket": { - "port": "326", - "host": "327" - }, - "initialDelaySeconds": -1358663652, - "timeoutSeconds": 1543146222, - "periodSeconds": -527306221, - "successThreshold": 2098694289, - "failureThreshold": 1150925735 - }, - "startupProbe": { - "exec": { - "command": [ - "328" - ] - }, - "httpGet": { - "path": "329", - "port": "330", - "host": "331", - "scheme": "榝$î.Ȏ蝪ʜ5遰", - "httpHeaders": [ - { - "name": "332", - "value": "333" - } - ] - }, - "tcpSocket": { - "port": -1438286448, - "host": "334" - }, - "initialDelaySeconds": 834105836, - "timeoutSeconds": -1462219068, - "periodSeconds": -370386363, - "successThreshold": 1714588921, - "failureThreshold": -1246371817 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "335" - ] - }, - "httpGet": { - "path": "336", - "port": "337", - "host": "338", - "scheme": "跩aŕ翑", - "httpHeaders": [ - { - "name": "339", - "value": "340" - } - ] - }, - "tcpSocket": { - "port": "341", - "host": "342" - } - }, - "preStop": { - "exec": { - "command": [ - "343" - ] - }, - "httpGet": { - "path": "344", - "port": 1017803158, - "host": "345", - "scheme": "碔", - "httpHeaders": [ - { - "name": "346", - "value": "347" - } - ] - }, - "tcpSocket": { - "port": "348", - "host": "349" - } - } - }, - "terminationMessagePath": "350", - "terminationMessagePolicy": "Kƙ順\\E¦队偯J僳徥淳4揻-$ɽ丟", - "imagePullPolicy": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "securityContext": { - "capabilities": { - "add": [ - "ŧL²sNƗ¸gĩ餠籲磣Óƿ" - ], - "drop": [ - "\"冓鍓贯澔 ƺ蛜6" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "351", - "role": "352", - "type": "353", - "level": "354" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "355", - "gmsaCredentialSpec": "356", - "runAsUserName": "357" - }, - "runAsUser": 4353696140684277635, - "runAsGroup": 6057650398488995896, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "鰥Z龏´DÒȗ" - }, - "tty": true, - "targetContainerName": "358" - } - ], - "restartPolicy": "ɘɢ鬍熖B芭花ª瘡", - "terminationGracePeriodSeconds": 2666412258966278206, - "activeDeadlineSeconds": -8715915045560617563, - "dnsPolicy": "丆", - "nodeSelector": { - "359": "360" - }, - "serviceAccountName": "361", - "serviceAccount": "362", - "automountServiceAccountToken": false, - "nodeName": "363", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "364", - "role": "365", - "type": "366", - "level": "367" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "368", - "gmsaCredentialSpec": "369", - "runAsUserName": "370" - }, - "runAsUser": 2179199799235189619, - "runAsGroup": -779972051078659613, - "runAsNonRoot": false, - "supplementalGroups": [ - -7127205672279904050 - ], - "fsGroup": 7124276984274024394, - "sysctls": [ - { - "name": "371", - "value": "372" - } - ] - }, - "imagePullSecrets": [ - { - "name": "373" - } - ], - "hostname": "374", - "subdomain": "375", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "376", - "operator": "6x$1sȣ±p鋄5弢ȹ均i绝5哇芆", - "values": [ - "377" - ] - } - ], - "matchFields": [ - { - "key": "378", - "operator": "埮pɵ{WOŭW灬p", - "values": [ - "379" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 199049889, - "preference": { - "matchExpressions": [ - { - "key": "380", - "operator": "擭銆jʒǚ鍰\\縑", - "values": [ - "381" - ] - } - ], - "matchFields": [ - { - "key": "382", - "operator": "鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ", - "values": [ - "383" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS": "1Tvw39F_C-rtSY.g._2F7.-_e..r" - }, - "matchExpressions": [ - { - "key": "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1", - "operator": "NotIn", - "values": [ - "z" - ] - } - ] - }, - "namespaces": [ - "390" - ], - "topologyKey": "391" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -217760519, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6": "Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "398" - ], - "topologyKey": "399" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "406" - ], - "topologyKey": "407" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "414" - ], - "topologyKey": "415" - } - } - ] - } - }, - "schedulerName": "416", - "tolerations": [ - { - "key": "417", - "operator": "堺ʣ", - "value": "418", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "419", - "hostnames": [ - "420" - ] - } - ], - "priorityClassName": "421", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "422" - ], - "searches": [ - "423" - ], - "options": [ - { - "name": "424", - "value": "425" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "426", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "427", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - } - }, - "status": { - "replicas": -330302940, - "fullyLabeledReplicas": 138911331, - "readyReplicas": 1613009760, - "availableReplicas": -1469601144, - "observedGeneration": 6703635170896137755, - "conditions": [ - { - "type": "ɡj瓇ɽ丿YƄZZ塖bʘ", - "status": "ɻ猶N嫡牿咸Ǻ潑鶋洅啶'ƈoIǢ龞瞯å", - "lastTransitionTime": "2469-07-10T03:20:34Z", - "reason": "434", - "message": "435" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.pb deleted file mode 100644 index dbe2ed4c5301ffa0a0fddd67ea9c41842a9366f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6365 zcmZ8ld0bT2y`M9<^}f7>-loaCX+M@sZ9+-T^`3L?YLhmiF@(6qy>_|P1dS+200rsG zD~KSA2+E?Mh=8J~xB#-KK*BIELz}eC*1jxl5}mD0YSNe{n%KPGnIVavH-G%*-gD3S zo!@qTzwhsCG_q`hQ@CwSMn=}mtz>OV_8KY*OHwj6ZFq9c(v)nmhY0ORKvYD`i4+%7 z6Oc~tBt%xIBCCpN$cC=T8kL#x#y_^dT2OwlAS2PXxTEBJVNuhI2QQ-4Qv{@o$XGj7 zK&EIXa%!AlC)8;t%ys+RJpaWS@6KOmdCEpBGZO5;*JhwhJ5loNL@h%zVX7wH6Rs-r z*OY}@>ph3?a{s|@ckh~+zM5wPdkW$M{rg6We*xTdYA1$xQ<~P-;6526zJY{|!us{b zlN4{nCZQ=ReiEl>45wq3mHsr&!Z3oQ+v zEXl$WUMX3#XQ#vDtrk|XWz1i-7;na=B#}*66>Z`sfi1^Y;xkej%znnOw$k|w=EZs>KV4O~HhAJ`GP0=MwF*6=Zv^Hzx zv8BrujAvWYs>eZ$1?Dm{D@j_ZI?J)pi3B@UMLX4;cB;GV)JU+8pQ7K=8Pg1+5UMgo zHDuWU?XI2vsHyOBu=WT7*VOjkIR5XOT_4;;tEUNeCX04P*77F`Pb~F*cv78qrn&yh zSGV3<>94N$R(Q7uDm%TG=8o-{?>Ut*E5Xhb8F5E3J_ws=AKXzQ;+XHMq% z2Mfc!Et>bJzqU5mwr{MG`fK<3n~!B&ZLvc12AJ$-4chrY3)!d8@qlDXF*nnZvX;)=>k6>4c_${EIy~-Sa zdAa;WKJyFY=r4Km9EwA;1o#N-Rn>tK6W|$ms=8z3^N!jnF1rd=S4|nsvTO3gwk4AU zyGB;o*4j0i4C^!|+BL;tTLL<3YAjj}p|8PuO?TQg!)4dZ1iKEF(a9`WsndtiS||L& zDqV5%5jD=10ItztjjpH0!V`$Dn+}@`z8Z3-11J&g1{^1Yx$K6Lz{geDmItd0SY_zj z5f#8Yh9UAHIDw|@yhE^?u*{@RFrlLAaTmJxzA!2F&5!rK5LLbm-3e1zY}sqCzl5B2 zQ;9nOB%Z{+T%U)%V&e_hhZk6 z@rcHRF0@<#q2QJAY05CV4PK}LFBHr)jwE=67zaYQvV>7EDf}@CM41IdO$4GP1JM`T zUPAkjP>O^&AsSrbw_y#WARxM<;l|Y~6XAu#2ZRLv$q*yEbM>k0{3Z-ht|g6_R#&vR z=Rf_tKgJp5M_Gg)Rrn0m@qXF%KVOep2tl~Qm=^2n{Pfyz#Vaq?AutowV|RW2YH`$x zuOkOcVO%w4!be30r*J71@-F%w|EIAwKF(ZRBsda4)aVRNJU>l{p#;RFASMvv0zwmj zF#2QoM3var-Y;pI>S*pbdpPPr*FBF*PlP&m4!3&y{U^_k_K(%%xO>wd3w9oOBv{lx zRyEqm*Q>K0=j%CZCOdy3z~+>J4S=x-_Mi+rLz%*@Z_31ZJGU%l;B(3}2;_-(oxd9n zTjByJN8bz%c03TSzPQM9WUOVp!+*YppLNJN;!NS*Wsm+Sy#0iK*I=5jea_F^UBT*O z{*xX4=IUT!esG{5R50zwKv&gdjc;ah!$7?PofVQWeSELKWWZAz*j-6HL%{>R zp(DFl`{i7t6oSQQaeQAHhCKqmRdG!$i{b6$q)&QMpO?*x>lVE!IY zzd2Srf4;XYfordDTd1=0F5!-8w%AU0?MKm5<+Sl}5?kAG%st7`+t}GPDej$;w~JBy zzw$rmLh`;pelYe~Bpz0$2|tc(4{7Q9z)@viZLcb@y{fuwk*y#b!JF=k6}}Wtg#e+d z8QXIraP{*DGspF}-Q!c^>WZtbM+f51j(7J(MUva!x%uMcwQWdP9@$URMFsZL43Ufe z!SnC+M1#-C4XBx}|H#{#9opRytQr_T77;*)vqg0>q3g@_?^Q=LZA4d{iVGraA*E4Z zt1A(|)*Gj)tE695=Vy4DW$a>!kR9BDIC9Oya z7GJt=-dum__R#4|zH0BT@uu_*;i3b175o6->CR7B_h7htZ*Zs}&{*$j3)UAx67-!* z_Lc?*y1|!_lPIK5Adr(NBv2qqoM+^bP2PsxH~WtJe}|H11X|0+ zTOP_8tMzsHdQJB(e|OXHP;h^nuP)eI>uqpX_{)oy+`;+s05>$wSICSV)pFKhOBt37*a<6hb- z!>z6UqZhno!6Q9^!kxo?5gS770goxSM25yi(zMt!?N>Xa-gi{q*k3u3(cbvy_V&r~ zyj;&d8$J=--yAo1_(I|F8$9c>YOSZL14=T06Sm=K&6&DgJgMIhtFk%%Xg^$ zOD&M)8h368UTjqT)jLCF#hjTgewR--#8`jR=?vfbU$0!`=~x*oIF-S_n&K1Fnu|XE zrI;*ChiQf^ih=5ma9MHc_};OGaK+i52mAKGLSkRx zO`Nqcm4nz!oGoQ-Nn59<`I)=L(hr%TvMk)%xVCj!%Ou9Z0lU@jnH&Dtm}#5B=bA>r(G zPb<=sYnJ6%uqFp@mJDm4K!-ZQH1UnUR~eMNQ9DvM^Q%pk=J3&4jE1BAbAFSK+xJ`bJHB@CgZLNl8-D76A1Y zmhm!@ma+-sc~a!ZtZWN!k^pAUeN@lH40HyKEyc1{ElOW3J}T%82G;XYoMGUnRBYfh zV*{|3Q`PlSUS?*Ffz|9R5MXV_OzjcS8T3lAsCe7l%_&)+)+4zava-2a23N~;zG)ZM z39E$%1yP^JGN^^E*=cjJB+p(f5%J#Hu=_mK%9S2pI7fyaBF&O<8rGI(SPSt|Nm_&x zS4&d5=oEw}R+|}?Ce4vj{{L2r3^_!Rb@4+q?M7Q|MHDZHmyz%q66Og+TS0Ka2XDf;#>}KVYlS6c zT3f+ODHhg^&6Wl_5n|~Xt03mm=5NXc*W_5)*pgI9k(cBsbH5CbyRviFf{9adu|+Jr zXzuzs7I=Jx7^4uVaSBlz5KyfJ-JHtt3?KxefZd5=0{m0u1Rw+eJp9qvw%r4tOyJI% z=Wf1YcTMu=pL>u`VH}!6^c0Mo4dw3&^_>Xs*p=cw6ah9mO_sSRydJ=x0s28};CO2M#K_5I zfr|aUiVeZObMAhBOE+0EdX&ZxU0(8=Xvro}TW7&ysI3zafas7_iLSZs9_`*1?CG=I z4Tit6FkEoSb8>M~aQkUq9|)v2Aja4Afj~NoA%+}V(DL>>cE>x%N?t{Ap|0nC7qx4= z`+qP0Ga7wz{*|tmr>?F?LI$r*1k&4b{zoI#-QRflT6767Pz1{A1K#S%%btgPrQzMZ{)+Zc<6u&_so#I*R75y~gI7bnML1|?U__5S_~)XB z9Dn-zhcBSG_nJ#fCS*IY_m5>r?s)FyE71(IwgCxqBeFra@2rZU)=%9`uWky1}ns1Xo@w=mSz8Llb{ z?TqL^;mpE}TMSHPz6)G{03n&;Mk|=#A3n4@D?L>x)J-53LOB-(+Y<#43sK{)x!?NNN0l!Pq{JftEVhSRhi|@j z@$Ks$G@#@uYjU`*(Hp^W!~{`^$-Xu#F}Y(+HTL}b_1h=T>v;d= z7ot9id*#&4lau4?YCrxk3L@pM&fbHQjw4$qdH@<#qKlLLhcApnp;UJm=Rd^~rg`RRx<+GlA7j&m{ zg@-ceQ>kfLPXZcP^Q5tbGN^{|quLgL0y<5{s+4MAS*9{3Se==zu7vaqw^(!mm8=b7 zOwQKj;v(UP3RdRgObO4ktW0V1(~?B3Ess9B80x3B(0bZZk~ZO0vPJRA$Su`$s2N$7 zwg{`14y88-&;;CrNl;NO^NE$od+nc06|O>}rf|~$1fUo-dBbIr1R#`hLfr|%CO>>b@5Dn2t-x`Kb# zsgXRB?*RZDYPt-yg%LU7Zci=t75ERHSvhN@FLbF5t{=a@HC#PJ;VW5^E`peP7Ay=1Q9-Oi|YhpjRT7dfu29e9Vv*$0L`79dHJee`dT$6oOfztDl zU3o+^dP@dn(00HGWYD+wd>WO&@sHZS{dIC&^_8(5(Jn83&z`@8rpm`Y2^^WU7MiF> zBU(bQ4yO;U6~EGwK@wriaD5}x+rGwA8ywmb*%NL6d6WM2ac6Ml2P0HWj4QMKYz+g?>=!MXMgOKTXGsxg75C}AbOoe8UsY+bo)xgP<|9s>8gOFMgq}IMa z41ZR0XtZQm^6lZXM^}djD~G%1y7zkb@eIpUfC)_HA)rQ^K3f$+(WcLY7~w{sruJ3S zXF|PiK|gqWv_5>e_~(xdw}tmN`3ue@`wP4LgGU3sT}q(xBA($JxYE}YNyCiienwa) zDni1Fh)vRISN*&Hk#^6%{%yAT-I6YePwbQk$+d+r-8+5Fg8OL*{5 f@X#6eQRlR2+kgApH)qA#Trmn$5`d^qo6Gip3J*{4 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.yaml deleted file mode 100644 index 29891ccf0..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.ReplicaSet.yaml +++ /dev/null @@ -1,951 +0,0 @@ -apiVersion: apps/v1beta2 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: -1971381490 - replicas: 896585016 - selector: - matchExpressions: - - key: U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t - operator: In - values: - - M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5 - matchLabels: - g8c2-k-912e5-c-e63-n-3snh-z--3uy5-----578/s.X8u4_.l.wV--__-Nx.N_6-___._-.-W._AAn---v_-5-_8LXP-o-9..1l-5: "" - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -152893758082474859 - finalizers: - - "37" - generateName: "26" - generation: -6617020301190572172 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: ƅS·Õüe0ɔȖ脵鴈Ō - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: 'ɖgȏ哙ȍȂ揲ȼDDŽLŬp:' - resourceVersion: "7336814125345800857" - selfLink: "28" - uid: ʬ - spec: - activeDeadlineSeconds: -8715915045560617563 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "380" - operator: 擭銆jʒǚ鍰\縑 - values: - - "381" - matchFields: - - key: "382" - operator: 鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ - values: - - "383" - weight: 199049889 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "376" - operator: 6x$1sȣ±p鋄5弢ȹ均i绝5哇芆 - values: - - "377" - matchFields: - - key: "378" - operator: 埮pɵ{WOŭW灬p - values: - - "379" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2 - operator: DoesNotExist - matchLabels: - 4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6: Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP - namespaces: - - "398" - topologyKey: "399" - weight: -217760519 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1 - operator: NotIn - values: - - z - matchLabels: - 4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS: 1Tvw39F_C-rtSY.g._2F7.-_e..r - namespaces: - - "390" - topologyKey: "391" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D - operator: NotIn - values: - - txb__-ex-_1_-ODgC_1-_V - matchLabels: - 6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3: V0H2-.zHw.H__V.VT - namespaces: - - "414" - topologyKey: "415" - weight: -1851436166 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: QZ9p_6.C.e - operator: DoesNotExist - matchLabels: - 7F3p2_-_AmD-.0AP.1: A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n - namespaces: - - "406" - topologyKey: "407" - automountServiceAccountToken: false - containers: - - args: - - "222" - command: - - "221" - env: - - name: "229" - value: "230" - valueFrom: - configMapKeyRef: - key: "236" - name: "235" - optional: false - fieldRef: - apiVersion: "231" - fieldPath: "232" - resourceFieldRef: - containerName: "233" - divisor: "901" - resource: "234" - secretKeyRef: - key: "238" - name: "237" - optional: false - envFrom: - - configMapRef: - name: "227" - optional: true - prefix: "226" - secretRef: - name: "228" - optional: false - image: "220" - imagePullPolicy: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - lifecycle: - postStart: - exec: - command: - - "267" - httpGet: - host: "269" - httpHeaders: - - name: "270" - value: "271" - path: "268" - port: -421846800 - scheme: zvt莭琽§ - tcpSocket: - host: "272" - port: -763687725 - preStop: - exec: - command: - - "273" - httpGet: - host: "275" - httpHeaders: - - name: "276" - value: "277" - path: "274" - port: -1452676801 - scheme: ȿ0矀Kʝ - tcpSocket: - host: "279" - port: "278" - livenessProbe: - exec: - command: - - "245" - failureThreshold: -1191434089 - httpGet: - host: "248" - httpHeaders: - - name: "249" - value: "250" - path: "246" - port: "247" - scheme: 賃ɪ鐊瀑Ź9ǕLLȊ - initialDelaySeconds: 1214895765 - periodSeconds: 282592353 - successThreshold: 377225334 - tcpSocket: - host: "251" - port: -26910286 - timeoutSeconds: 1181519543 - name: "219" - ports: - - containerPort: -2079582559 - hostIP: "225" - hostPort: 1944205014 - name: "224" - protocol: K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ - readinessProbe: - exec: - command: - - "252" - failureThreshold: 1507815593 - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "253" - port: "254" - initialDelaySeconds: -839281354 - periodSeconds: -819723498 - successThreshold: -150133456 - tcpSocket: - host: "259" - port: "258" - timeoutSeconds: 2035347577 - resources: - limits: - 羭,铻OŤǢʭ嵔: "340" - requests: - TG;邪匾mɩC[ó瓧嫭塓烀罁胾^拜: "755" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - À*f<鴒翁杙Ŧ癃8 - drop: - - ɱJȉ罴 - privileged: false - procMount: 棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅 - readOnlyRootFilesystem: false - runAsGroup: -3689959065086680033 - runAsNonRoot: false - runAsUser: -2706913289057230267 - seLinuxOptions: - level: "284" - role: "282" - type: "283" - user: "281" - windowsOptions: - gmsaCredentialSpec: "286" - gmsaCredentialSpecName: "285" - runAsUserName: "287" - startupProbe: - exec: - command: - - "260" - failureThreshold: -822090785 - httpGet: - host: "262" - httpHeaders: - - name: "263" - value: "264" - path: "261" - port: 1684643131 - scheme: 飣奺Ȋ礶惇¸ - initialDelaySeconds: -161753937 - periodSeconds: 1428207963 - successThreshold: 790462391 - tcpSocket: - host: "266" - port: "265" - timeoutSeconds: -1578746609 - stdinOnce: true - terminationMessagePath: "280" - terminationMessagePolicy: \p[ - volumeDevices: - - devicePath: "244" - name: "243" - volumeMounts: - - mountPath: "240" - mountPropagation: ʒ刽ʼn掏1ſ盷褎weLJèux榜 - name: "239" - subPath: "241" - subPathExpr: "242" - workingDir: "223" - dnsConfig: - nameservers: - - "422" - options: - - name: "424" - value: "425" - searches: - - "423" - dnsPolicy: 丆 - enableServiceLinks: false - ephemeralContainers: - - args: - - "291" - command: - - "290" - env: - - name: "298" - value: "299" - valueFrom: - configMapKeyRef: - key: "305" - name: "304" - optional: false - fieldRef: - apiVersion: "300" - fieldPath: "301" - resourceFieldRef: - containerName: "302" - divisor: "709" - resource: "303" - secretKeyRef: - key: "307" - name: "306" - optional: false - envFrom: - - configMapRef: - name: "296" - optional: true - prefix: "295" - secretRef: - name: "297" - optional: true - image: "289" - imagePullPolicy: 拉Œɥ颶妧Ö闊 鰔澝qV訆 - lifecycle: - postStart: - exec: - command: - - "335" - httpGet: - host: "338" - httpHeaders: - - name: "339" - value: "340" - path: "336" - port: "337" - scheme: 跩aŕ翑 - tcpSocket: - host: "342" - port: "341" - preStop: - exec: - command: - - "343" - httpGet: - host: "345" - httpHeaders: - - name: "346" - value: "347" - path: "344" - port: 1017803158 - scheme: 碔 - tcpSocket: - host: "349" - port: "348" - livenessProbe: - exec: - command: - - "314" - failureThreshold: 1742259603 - httpGet: - host: "317" - httpHeaders: - - name: "318" - value: "319" - path: "315" - port: "316" - scheme: 屡ʁ - initialDelaySeconds: 1718241831 - periodSeconds: 1180971695 - successThreshold: -1971944908 - tcpSocket: - host: "320" - port: -1554559634 - timeoutSeconds: 550615941 - name: "288" - ports: - - containerPort: 1330271338 - hostIP: "294" - hostPort: 1853396726 - name: "293" - protocol: 逴 - readinessProbe: - exec: - command: - - "321" - failureThreshold: 1150925735 - httpGet: - host: "323" - httpHeaders: - - name: "324" - value: "325" - path: "322" - port: -1620315711 - scheme: ɐ扵 - initialDelaySeconds: -1358663652 - periodSeconds: -527306221 - successThreshold: 2098694289 - tcpSocket: - host: "327" - port: "326" - timeoutSeconds: 1543146222 - resources: - limits: - 颐o: "230" - requests: - '[+扴ȨŮ+朷Ǝ膯ljV': "728" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ŧL²sNƗ¸gĩ餠籲磣Óƿ - drop: - - '"冓鍓贯澔 ƺ蛜6' - privileged: false - procMount: 鰥Z龏´DÒȗ - readOnlyRootFilesystem: true - runAsGroup: 6057650398488995896 - runAsNonRoot: true - runAsUser: 4353696140684277635 - seLinuxOptions: - level: "354" - role: "352" - type: "353" - user: "351" - windowsOptions: - gmsaCredentialSpec: "356" - gmsaCredentialSpecName: "355" - runAsUserName: "357" - startupProbe: - exec: - command: - - "328" - failureThreshold: -1246371817 - httpGet: - host: "331" - httpHeaders: - - name: "332" - value: "333" - path: "329" - port: "330" - scheme: 榝$î.Ȏ蝪ʜ5遰 - initialDelaySeconds: 834105836 - periodSeconds: -370386363 - successThreshold: 1714588921 - tcpSocket: - host: "334" - port: -1438286448 - timeoutSeconds: -1462219068 - targetContainerName: "358" - terminationMessagePath: "350" - terminationMessagePolicy: Kƙ順\E¦队偯J僳徥淳4揻-$ɽ丟 - tty: true - volumeDevices: - - devicePath: "313" - name: "312" - volumeMounts: - - mountPath: "309" - mountPropagation: ŕ-Ɂ圯W:ĸ輦唊#v铿 - name: "308" - subPath: "310" - subPathExpr: "311" - workingDir: "292" - hostAliases: - - hostnames: - - "420" - ip: "419" - hostPID: true - hostname: "374" - imagePullSecrets: - - name: "373" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: true - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "455" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: false - envFrom: - - configMapRef: - name: "155" - optional: false - prefix: "154" - secretRef: - name: "156" - optional: false - image: "148" - imagePullPolicy: k_瀹鞎sn芞QÄȻ - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "197" - port: -1327537699 - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ĉş蝿ɖȃ賲鐅臬 - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "173" - failureThreshold: 2053960192 - httpGet: - host: "176" - httpHeaders: - - name: "177" - value: "178" - path: "174" - port: "175" - scheme: ƴy綸_Ú8參遼ūPH炮 - initialDelaySeconds: 741871873 - periodSeconds: -1987044888 - successThreshold: -1638339389 - tcpSocket: - host: "180" - port: "179" - timeoutSeconds: 446829537 - name: "147" - ports: - - containerPort: 715087892 - hostIP: "153" - hostPort: -1896921306 - name: "152" - protocol: 倱< - readinessProbe: - exec: - command: - - "181" - failureThreshold: -57352147 - httpGet: - host: "183" - httpHeaders: - - name: "184" - value: "185" - path: "182" - port: -1903685915 - scheme: ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬 - initialDelaySeconds: 128019484 - periodSeconds: -2130554644 - successThreshold: 290736426 - tcpSocket: - host: "187" - port: "186" - timeoutSeconds: 431781335 - resources: - limits: - /擇ɦĽ胚O醔ɍ厶耈 T: "618" - requests: - á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ: "372" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - '?' - drop: - - 峧Y栲茇竛吲蚛隖 - privileged: false - procMount: ʙ嫙& - readOnlyRootFilesystem: false - runAsGroup: -7286288718856494813 - runAsNonRoot: true - runAsUser: 7312518131318481396 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - runAsUserName: "218" - startupProbe: - exec: - command: - - "188" - failureThreshold: 1133369651 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "189" - port: "190" - scheme: 閝ȝ - initialDelaySeconds: -2142865739 - periodSeconds: 1434408532 - successThreshold: -566408554 - tcpSocket: - host: "195" - port: "194" - timeoutSeconds: -1179067190 - stdin: true - stdinOnce: true - terminationMessagePath: "211" - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: dʪīT捘ɍi縱ù墴1Rƥ - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "363" - nodeSelector: - "359": "360" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "421" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɘɢ鬍熖B芭花ª瘡 - runtimeClassName: "426" - schedulerName: "416" - securityContext: - fsGroup: 7124276984274024394 - runAsGroup: -779972051078659613 - runAsNonRoot: false - runAsUser: 2179199799235189619 - seLinuxOptions: - level: "367" - role: "365" - type: "366" - user: "364" - supplementalGroups: - - -7127205672279904050 - sysctls: - - name: "371" - value: "372" - windowsOptions: - gmsaCredentialSpec: "369" - gmsaCredentialSpecName: "368" - runAsUserName: "370" - serviceAccount: "362" - serviceAccountName: "361" - shareProcessNamespace: true - subdomain: "375" - terminationGracePeriodSeconds: 2666412258966278206 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "417" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "418" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "427" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: -762366823 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: HǺƶȤ^}穠 - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 躢 - readOnly: true - azureFile: - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: -460478410 - items: - - key: "99" - mode: -2039036935 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: -106644772 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1235524154 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "457" - resource: "92" - emptyDir: - medium: 彭聡A3fƻfʣ - sizeLimit: "115" - fc: - fsType: "94" - lun: 441887498 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1499132872 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - hostPath: - path: "43" - type: 6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ - iscsi: - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 1655406148 - portals: - - "60" - readOnly: true - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - volumeID: "128" - projected: - defaultMode: -522879476 - sources: - - configMap: - items: - - key: "124" - mode: -1694464659 - path: "125" - name: "123" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 926891073 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "746" - resource: "122" - secret: - items: - - key: "116" - mode: -1399063270 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: -7593824971107985079 - path: "127" - quobyte: - group: "108" - readOnly: true - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - readOnly: true - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 372704313 - items: - - key: "52" - mode: -104666658 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - readOnly: true - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" -status: - availableReplicas: -1469601144 - conditions: - - lastTransitionTime: "2469-07-10T03:20:34Z" - message: "435" - reason: "434" - status: ɻ猶N嫡牿咸Ǻ潑鶋洅啶'ƈoIǢ龞瞯å - type: ɡj瓇ɽ丿YƄZZ塖bʘ - fullyLabeledReplicas: 138911331 - observedGeneration: 6703635170896137755 - readyReplicas: 1613009760 - replicas: -330302940 diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.json b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.json deleted file mode 100644 index 150b067ee..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": -595102844 - }, - "status": { - "replicas": 70007838, - "selector": { - "19": "20" - }, - "targetSelector": "21" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.pb b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.Scale.pb deleted file mode 100644 index a0c735c2ef559a1028db07f75e14f2feabf6f4e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 240 zcmd0{C}!Xi<>E;!C@9u1GfYY?Ni-5-4NgwXNfkQB$hDG@i_u7k(O8PnM2XQd#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!X zizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT9 z7o$E((zKJwMo91Tz58~X{8iM(kOURi(AHN_FrrZe1SRqN z*kl z-?_6%%{0(=&^IKdr)SR2=95#hk}&g& z3%1ueo6$;d`n=7KuA)d6>+jEpk$PzY+jG#b(x&JBMt44c4l)qPoqt|I{OJ7 z#qVI_bs6cp&gzIot66>i{4FpwTSpSo)yLPQF%Qc~)K@P;dfbYPb?XskVe}$>dA6=& z`LQ*6g3cl~KI$N8;vXB7OoPo@uA(T1w*3c7(9BZo8@=l%b@f96m)> zkeZ$*WuZ-*Q8u?tPL@IHE!(B78#fAS>K3H3GS-q&+Ipm}6D7nU=$1ja91i|LMqZOQ zsOu5hn9YN*NO~#@B_XVV-rF*_Dw;f70JTJg)kQ7+(O7+}%s;w(rHIgcon7-7==+4G zF*6tK*qE7>X@2!VdOt-QvBVg$Y&K%WYQ$>H%(=_lJISXd{4wiU2 z9OHq)`X#~QL!N!!^5H;UDKmqP5Ea3E8}JqxqbQla`()Jf-BtLbECy>7G|SMenCvG$ z8;Gz_F*iVq3N4!1C~^2M+9>hNEkHp_NiZEN|MJ@(LX%Ck#pjzT3pIy^PT(v_CMq@t z-hrK@m|iMxdNaaml++lbq;ZBhMwy#OC0s`vWqyqz*(l>Um?sO2Q5H>90+>LSqNqeT zTQba-6|+%RtwvdkF)Cmvg`Wd66+F+7Y=$SyQbaRpkw9SB0tMzMN*XAmfar>5GFYKk z5HY-}GNcKPxW<`pqKz6%)36z=C(E4W zl{YVbJR|D6i_K*bHtK(%SBP@_?ZfB330cBy)I^ZOs7VJXP)Y-~nqs2rso&7Bnx-;0 z0)>6&InH$CyM2E)*^U)`J;P#Xqi&_4ktaRa3`DR35xc27NV7zmWzYm3N(>Mc1JMSk z-$5_WK`+mn>1XH74UX(ic8|rwI37n+_?Nzp{+LHxeOo=XzV3lDAQ5y3WVkp%-2fk0 zg%7Nms40qtPjF-)JkgXFu*DDq4*>%a=Kzsnfyi+{l%D6|}SL`|_^|<~u^{u)su-0U{Y7 znJT;YzA+0Nl$Z$1Q5TAf>dM}F?Z-^86IPh3^@8CgK_2N}2{^GObBnyJbJV0B#c{R&@ zbqBn|H7o5Ex~q4-@6eIio>5P^C1Ij7kT)C}s;Y6IKNf^23RDwBP)(3xX8G$1)!=9~ zhA%lGpQ0CsM1i;jeg!#^xhc{R_35b}Kb-b$upJh8YlQFQo*1GOL@FQxY$go@Yxcf% zhB6ySlNiHDcGpMM{Ah8N$va)7*DrJ`#-?CKAI_M3(RNoyD-Ba_{i(&ShyWwJmG5I(}&kczosm$FV zhNLk+v64C9C-YWAXepUkK>o=B&VuKfXN4>vi_FFl16g9?fdK?EV$1%vSHJo8njW%Z zy%%}%y^SYV&vA?f&UOGYxH~&|@ch&!zyv^tQ<$Zz5Hs>kdv993p;mu%5IDr^K zE)a4=6mmoq+49$sykO(W3+LXYqA8N)=2ex|)_?V5$<#YkoFU;RGKaXlqLMjU9%U${ z3>B22o&-0HIp+G1sW1-7jG^t5l&Bxx_1Y=Zg^%CMkFXT}>zfxNqW|&g*+}lgrmmK-+nS9l{%EN>G&o-L zPV3c6RCMpZCvDF=n)^#B9N{{Z3aKzcfOH82#{v=JfQSh|q&3uE3{M#{bQ-KFK#ByS zn1QHPAX?PL1D}30`2E|1mnaiusqG#JcDz*b)#B)?)XBUCv+eKeDWT5789-%r5r_z)r|6q8%j#+-LW(Zz&{3SkETCzXC3slpS1F9~(Jf{k zR!-MoCYL~_3;N?aMo7=btdy>^?30Mi*`T9jHA$CsmRlz35JCjNG(dRsyGDA5B9(e|_-4dmAsLu$#wny+*(7BPN$}KWXU%6?$5*tYiVOb26K< zZIiSJY6!%xS&Z0Ctio>A(Q3eIH!R$mk{Q1>D+Jn!l`6 zV7L+f%= z|65Rzlg$w#r_@tG)i&xNAPZiEu*Hj@0WWHR&m=Ae2#^04x+EM`{>2aPOk?T7-s4R( ztanZJ`OdU>h9K?*tDD?S!HQGfqIU0CtEVz}uIDda+aQ@Q5U9aRgterGp#~4hDuRbV zKp>V(AeJ14t`Zl98axRYJV0$j7;5m4qu^Tx$d2hq+Q1N4EHd}ecY3Pbg@M6=V8!l0 z$?^4zy(698_WG;^-hKH?JZ%J5NW2n9AeXEVT)_iO2cpFoa0Jv&3A^Zc5}%=%Vla7# zq4<31^X3tf04d9DBCXn19n zx6YiZ^Y+x;7g|<@RL-lyHPpa^5uinis@c<#KfO0E{P3b}mgV(NN?T?{x1Q)bJdGMY ze{0_>;Z>9SD0)?BSq(FDU|B7kl}@x>Id=`g@S147In8y_QSCcho9Hd8_f_rV9teq{ zkS+njy=jHIqp=`%-R%UV}&|dF9I2;P!UHGIVYw8kuvV}kLL#p&#m?CX>{++^|S;=TLT3L=5L+t>uO5P z`J=PedG_+?vD{jUjs_RG$2m4t`($9S(9;bU8veXW=V@)S>hZ_jHcvC!?i%wIRJ)H& z;{^`(6LXN^FbDpDIn8qR@2{TOn_v0&BUH2j@Pc99V6f(mx_9>;+C#Mu^gQt2X>;3sf!O@-&tRSTihSCQJ{s~qO2u$#h)4;Rv0F@45gg7e{f*g4$A#XYMw&yB90`OB+ zwcg+y@{WyUKI1+&IXExuGvug2JPiZj4=Vog-1KJgQElg3Cyb^~D^9y+S-!XwY!5q7 z^kn~Y7bvdVR==)`G7M1Qm?8&ET&JIfh{1E#n|#%E?i0DIf>n+F{^PFk=)pHy%G$sB z>W3Rb)tktJydsY$AhPg+o0@E@=$QF3bvv-(!COUMGQ$xPNgXEg${Up7ed>PtUSC_~ zRGzas*njZ%!PBk5%7d5B?GD!LbMAK*I`=sD?{emOI|n}`EY;5_>Ralj6nkrY!ldo; zXlHO}%yGWJ$kWmOy2fDhk@>-n{@j2qZ{qxBfBSH3vNylbe`L^o++VXVP*k>bsXbJ0 z$edy`9;70hULHReKI=pt&3u=;%iihRw>OaA3rmm9o9vBy*necdYslX|7^oTXH5|3B zr6C9{g0!|m0rYg=)2noyM>*NT%7v*c5*I>-M1Ror40h{N5Qg>bk36!JW!Es#v~k<& zP)hs_Mr@`oFM%YZ=!k@JaArg3@oQ?zE5jc(nUV($6OyF<~<2n;)Xp~)L!S*3f`NqjE=NSwg zLIM=(p;#=yVT4*%;KJ_x&*Hx|MiBQF;AmdI(R0*$sv>iNN_<-&ZYl7b`F5IAE+<}h zzA}w_Ar=cfANAGnP;WTsng)YKZ(L{jq|k9DT=YlVzId-BTr+Z|-5-7yZcW?>B?vJG zkC}VPLkJzQe>``(J`|7z9`0m8E7Ao)P~hcju}a_}#R*V>J6{_=Z8V)JeybxajpfUd zsxm72O7n2nbS$p<_HU`lRTRA}v=)@yGBAXad%A!Vpzwxo&3cRX^f6~^%JS?*?jx@K z-j?2U&#BPjjl=xhmdATSGVAg*zM zS~@}yp;8k>oMChp=cdwT`qs&!U{A&5-l?+KEzzly1(R*QhIYo7v@;wy1-So%@la?9 zA{1JJC|fQcvzJW#wZHm~>9~2|<#!8SKl8~4$EmpMyfww!Nl+9B&=3gF5X7Hrt#DAp z5Y@s3ma6_-YpEIuiuVQ1_qysF1K!#;ajGW%cb7-UgGbLjYk?#0>38g39T?1a)O${Z zf~LTMZws6>K$TMT+VGZYfKI`z;VXj!^@l&YmXrj{Tg`#t3U5PKaQ~S9@a|y2n7{OB z;PfG9=aR{;ki{^uF#eC^E0DV%0ZUQM4X=JR%jEaH@LJfRETeA6mFuG4y!b&)cnR)c z$;1mYV6enl|8*VxDh2Tmb{z<$91%mx5wRBY%fGm59#Yr(&o{0J)Ry8~WH|b&%&U+9 zGzl*LRasFlHoWlmevj{J=!W;J*6Pa3yZ!&?qY_C(CD$>cfRjV-urHz@rb(ooAU)W6 z%WBWTg`WMsy(a=At*#=Utw`|IHV1~wy*7YQP{pywaDx@#d=clv!0!B*Gx3X-y z9*f{AewoDT3!$`FkGAOA7B-!Q;ER^!==zf@SW^D5Xsg1e$Ds^{rSC~qF;aDQ<@(j} zTlAF(z&gKFXBVn^77M>b=ZuU>58CVN0oFm+WE9QVpi=>VgC8*UzNiaiQHp^Gq zzcj&9#N6sHKI9mg7@Df|jW;`ngk^!lCpj}{{U_ga{3y5@6(te&Mv};zjBj%`+Z)B4U5;VbfGSV)JI>zYt8brk z4}HhvK%lqZT@@U!@K^8lb(c?$`x>eAske_kFwar(y~SKfMegl6T3T|U zw}Fd#x%0kpo^04zqU#<2(N)}b-08tnJ+x1QxmGC5Owii3|9o^2n zbq~8bbAzR={@s1Ps?$51-AkDJos|zJ*#{=h`g{BAeg2~jbA4q+!M?mle6})ox8v~C fG4Iex&z=WC$3uq;pMMy11l}5G1y@}LtKt6v7ULun diff --git a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.StatefulSet.yaml b/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.StatefulSet.yaml deleted file mode 100644 index 3d7b7aca8..000000000 --- a/pseudo/k8s/api/testdata/HEAD/apps.v1beta2.StatefulSet.yaml +++ /dev/null @@ -1,1023 +0,0 @@ -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - podManagementPolicy: ŞÜ4w}ĶƲ86±ļ$暣 - replicas: 896585016 - revisionHistoryLimit: 69142596 - selector: - matchExpressions: - - key: 50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99 - operator: Exists - matchLabels: - 74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj: 6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1 - serviceName: "456" - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -2575298329142810753 - finalizers: - - "37" - generateName: "26" - generation: -8542870036622468681 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: 躢 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: ƶȤ^} - resourceVersion: "1736621709629422270" - selfLink: "28" - uid: ?Qȫş - spec: - activeDeadlineSeconds: -8619192438821356882 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "372" - operator: '}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊' - values: - - "373" - matchFields: - - key: "374" - operator: ʨIk(dŊiɢzĮ蛋I滞 - values: - - "375" - weight: 646133945 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "368" - operator: ǧĒzŔ瘍N - values: - - "369" - matchFields: - - key: "370" - operator: ƽ眝{æ盪泙 - values: - - "371" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8.--w0_1V7 - operator: In - values: - - 7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8 - matchLabels: - w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y: f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5 - namespaces: - - "390" - topologyKey: "391" - weight: -855547676 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd - operator: Exists - matchLabels: - 3.csh-3--Z1Tvw39FC: rtSY.g._2F7.-_e..Or_-.3OHgt._6 - namespaces: - - "382" - topologyKey: "383" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf - operator: DoesNotExist - matchLabels: - 3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2: CpS__.39g_.--_-_ve5.m_2_--XZx - namespaces: - - "406" - topologyKey: "407" - weight: 808399187 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81 - operator: DoesNotExist - matchLabels: - 4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33: 17ca-_p-y.eQZ9p_1 - namespaces: - - "398" - topologyKey: "399" - automountServiceAccountToken: false - containers: - - args: - - "216" - command: - - "215" - env: - - name: "223" - value: "224" - valueFrom: - configMapKeyRef: - key: "230" - name: "229" - optional: true - fieldRef: - apiVersion: "225" - fieldPath: "226" - resourceFieldRef: - containerName: "227" - divisor: "595" - resource: "228" - secretKeyRef: - key: "232" - name: "231" - optional: false - envFrom: - - configMapRef: - name: "221" - optional: false - prefix: "220" - secretRef: - name: "222" - optional: false - image: "214" - imagePullPolicy: û咡W<敄lu|榝$î.Ȏ蝪ʜ5 - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - tcpSocket: - host: "264" - port: 1943028037 - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: -1355476687 - scheme: -Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "239" - failureThreshold: -1213051101 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "240" - port: -1654678802 - scheme: 毋 - initialDelaySeconds: -775511009 - periodSeconds: -228822833 - successThreshold: -970312425 - tcpSocket: - host: "244" - port: 391562775 - timeoutSeconds: -832805508 - name: "213" - ports: - - containerPort: -775325416 - hostIP: "219" - hostPort: 62799871 - name: "218" - protocol: t莭琽§ć\ ïì - readinessProbe: - exec: - command: - - "245" - failureThreshold: 571739592 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "246" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - initialDelaySeconds: 852780575 - periodSeconds: 893823156 - successThreshold: -1980314709 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1252938503 - resources: - limits: - N粕擓ƖHVe熼: "334" - requests: - 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶: "388" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - E埄Ȁ朦 wƯ貾坢' - drop: - - aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: -2408264753085021035 - runAsNonRoot: true - runAsUser: -2270595441829602368 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - runAsUserName: "279" - startupProbe: - exec: - command: - - "252" - failureThreshold: -1008070934 - httpGet: - host: "254" - httpHeaders: - - name: "255" - value: "256" - path: "253" - port: -1334110502 - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "257" - port: 622267234 - timeoutSeconds: 809006670 - terminationMessagePath: "272" - terminationMessagePolicy: T 苧yñKJɐ扵G - volumeDevices: - - devicePath: "238" - name: "237" - volumeMounts: - - mountPath: "234" - mountPropagation: 癃8鸖 - name: "233" - readOnly: true - subPath: "235" - subPathExpr: "236" - workingDir: "217" - dnsConfig: - nameservers: - - "414" - options: - - name: "416" - value: "417" - searches: - - "415" - dnsPolicy: Ƶf - enableServiceLinks: true - ephemeralContainers: - - args: - - "283" - command: - - "282" - env: - - name: "290" - value: "291" - valueFrom: - configMapKeyRef: - key: "297" - name: "296" - optional: true - fieldRef: - apiVersion: "292" - fieldPath: "293" - resourceFieldRef: - containerName: "294" - divisor: "381" - resource: "295" - secretKeyRef: - key: "299" - name: "298" - optional: false - envFrom: - - configMapRef: - name: "288" - optional: false - prefix: "287" - secretRef: - name: "289" - optional: true - image: "281" - imagePullPolicy: ņ - lifecycle: - postStart: - exec: - command: - - "326" - httpGet: - host: "329" - httpHeaders: - - name: "330" - value: "331" - path: "327" - port: "328" - scheme: 幩šeSvEȤƏ埮pɵ - tcpSocket: - host: "333" - port: "332" - preStop: - exec: - command: - - "334" - httpGet: - host: "337" - httpHeaders: - - name: "338" - value: "339" - path: "335" - port: "336" - scheme: ş - tcpSocket: - host: "341" - port: "340" - livenessProbe: - exec: - command: - - "306" - failureThreshold: -300247800 - httpGet: - host: "308" - httpHeaders: - - name: "309" - value: "310" - path: "307" - port: 865289071 - scheme: iɥ嵐sC8 - initialDelaySeconds: -1513284745 - periodSeconds: -414121491 - successThreshold: -1862764022 - tcpSocket: - host: "311" - port: -898536659 - timeoutSeconds: 1258370227 - name: "280" - ports: - - containerPort: -1137436579 - hostIP: "286" - hostPort: 1868683352 - name: "285" - protocol: 颶妧Ö闊 - readinessProbe: - exec: - command: - - "312" - failureThreshold: 215186711 - httpGet: - host: "314" - httpHeaders: - - name: "315" - value: "316" - path: "313" - port: 323903711 - scheme: J - initialDelaySeconds: 657418949 - periodSeconds: 287654902 - successThreshold: -2062708879 - tcpSocket: - host: "318" - port: "317" - timeoutSeconds: -992558278 - resources: - limits: - ²sNƗ¸g: "50" - requests: - 酊龨δ摖ȱğ_<: "118" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - DŽ髐njʉBn(fǂǢ曣 - drop: - - ay - privileged: false - procMount: 嗆u - readOnlyRootFilesystem: true - runAsGroup: -5996624450771474158 - runAsNonRoot: false - runAsUser: 1958157659034146020 - seLinuxOptions: - level: "346" - role: "344" - type: "345" - user: "343" - windowsOptions: - gmsaCredentialSpec: "348" - gmsaCredentialSpecName: "347" - runAsUserName: "349" - startupProbe: - exec: - command: - - "319" - failureThreshold: 1502643091 - httpGet: - host: "321" - httpHeaders: - - name: "322" - value: "323" - path: "320" - port: -1117254382 - scheme: 趐囨鏻砅邻爥蹔ŧOǨ - initialDelaySeconds: 2129989022 - periodSeconds: 1311843384 - successThreshold: -1292310438 - tcpSocket: - host: "325" - port: "324" - timeoutSeconds: -1699531929 - targetContainerName: "350" - terminationMessagePath: "342" - terminationMessagePolicy: 迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ - tty: true - volumeDevices: - - devicePath: "305" - name: "304" - volumeMounts: - - mountPath: "301" - mountPropagation: ƺ蛜6Ɖ飴ɎiǨź - name: "300" - readOnly: true - subPath: "302" - subPathExpr: "303" - workingDir: "284" - hostAliases: - - hostnames: - - "412" - ip: "411" - hostNetwork: true - hostname: "366" - imagePullSecrets: - - name: "365" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "650" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: true - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩 - lifecycle: - postStart: - exec: - command: - - "192" - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "193" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - tcpSocket: - host: "197" - port: 424236719 - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: -1131820775 - scheme: Ƿ裚瓶釆Ɗ+j忊 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "173" - failureThreshold: -1113628381 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -152585895 - scheme: E@Ȗs«ö - initialDelaySeconds: 1843758068 - periodSeconds: 1702578303 - successThreshold: -1565157256 - tcpSocket: - host: "178" - port: 1135182169 - timeoutSeconds: -1967469005 - name: "147" - ports: - - containerPort: 1403721475 - hostIP: "153" - hostPort: -606111218 - name: "152" - protocol: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - readinessProbe: - exec: - command: - - "179" - failureThreshold: -1167888910 - httpGet: - host: "181" - httpHeaders: - - name: "182" - value: "183" - path: "180" - port: 386652373 - scheme: ʙ嫙& - initialDelaySeconds: -802585193 - periodSeconds: 1944205014 - successThreshold: -2079582559 - tcpSocket: - host: "185" - port: "184" - timeoutSeconds: 1901330124 - resources: - limits: - "": "84" - requests: - ɖȃ賲鐅臬dH巧壚tC十Oɢ: "517" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - privileged: false - procMount: $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫 - readOnlyRootFilesystem: true - runAsGroup: -8419423421380299597 - runAsNonRoot: false - runAsUser: -6576869501326512452 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - runAsUserName: "212" - startupProbe: - exec: - command: - - "186" - failureThreshold: 208045354 - httpGet: - host: "188" - httpHeaders: - - name: "189" - value: "190" - path: "187" - port: 804417065 - scheme: Ŵ廷s{Ⱦdz@ - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "191" - port: 406308963 - timeoutSeconds: 2026784878 - terminationMessagePath: "205" - terminationMessagePolicy: 焗捏 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: "" - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "355" - nodeSelector: - "351": "352" - overhead: - 癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö: "607" - preemptionPolicy: eáNRNJ丧鴻Ŀ - priority: 1690570439 - priorityClassName: "413" - readinessGates: - - conditionType: 梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳 - restartPolicy: T[ - runtimeClassName: "418" - schedulerName: "408" - securityContext: - fsGroup: 760480547754807445 - runAsGroup: -801152248124332545 - runAsNonRoot: true - runAsUser: -2781126825051715248 - seLinuxOptions: - level: "359" - role: "357" - type: "358" - user: "356" - supplementalGroups: - - 5255171395073905944 - sysctls: - - name: "363" - value: "364" - windowsOptions: - gmsaCredentialSpec: "361" - gmsaCredentialSpecName: "360" - runAsUserName: "362" - serviceAccount: "354" - serviceAccountName: "353" - shareProcessNamespace: false - subdomain: "367" - terminationGracePeriodSeconds: -2738603156841903595 - tolerations: - - effect: 料ȭzV镜籬ƽ - key: "409" - operator: ƹ| - tolerationSeconds: 935587338391120947 - value: "410" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: qW - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - E--pT751: mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X - maxSkew: -137402083 - topologyKey: "419" - whenUnsatisfiable: Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥 - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: 912004803 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: '|@?鷅bȻN' - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 榱*Gưoɘ檲 - readOnly: true - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 1593906314 - items: - - key: "99" - mode: 195263908 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: 824682619 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1569992019 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "660" - resource: "92" - emptyDir: - medium: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - sizeLimit: "473" - fc: - fsType: "94" - lun: -1740986684 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1188153605 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - iscsi: - chapAuthDiscovery: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 994527057 - portals: - - "60" - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - readOnly: true - volumeID: "128" - projected: - defaultMode: -1334904807 - sources: - - configMap: - items: - - key: "124" - mode: 2063799569 - path: "125" - name: "123" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 173030157 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "106" - resource: "122" - secret: - items: - - key: "116" - mode: -323584340 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: 8357931971650847566 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 332383000 - items: - - key: "52" - mode: -547518679 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - updateStrategy: - rollingUpdate: - partition: 86666826 - type: Dz讱ȕ齐疅檎ǽ曖sƖTƫ - volumeClaimTemplates: - - metadata: - annotations: - "433": "434" - clusterName: "439" - creationTimestamp: null - deletionGracePeriodSeconds: -1824067601569574665 - finalizers: - - "438" - generateName: "427" - generation: -8502907933203165744 - labels: - "431": "432" - managedFields: - - apiVersion: "441" - fieldsType: "442" - manager: "440" - operation: Bi攵&ý"ʀ废査Z綶Ā - name: "426" - namespace: "428" - ownerReferences: - - apiVersion: "435" - blockOwnerDeletion: false - controller: true - kind: "436" - name: "437" - uid: WɓDɏ挭跡Ƅ抄3昞财Î嘝zʄ - resourceVersion: "6281861817195808867" - selfLink: "429" - uid: '`ȗ<8^翜T蘈' - spec: - accessModes: - - 銲tHǽ÷閂抰^窄CǙķȈĐI梞ū - dataSource: - apiGroup: "451" - kind: "452" - name: "453" - resources: - limits: - 'O^:': "847" - requests: - Ɍ蚊ơ鎊t潑: "199" - selector: - matchExpressions: - - key: f82-8_.UdWNn_U-...1P_.D8_t..-Ww2q.zv - operator: Exists - matchLabels: - p2P.B._A_090ERG2nV.__p_Y-.2__a_dWU_V-_Q_Ap._C: a_o..p_B-d--Q5._D6_.d-n_9n.p.2-.-Qw__YT.1---.-o7.pJ-r - storageClassName: "450" - volumeMode: ȳT - volumeName: "449" - status: - accessModes: - - 熔ķ´ʑ潞Ĵ3Q蠯0 - capacity: - \溮Ŀ傜NZ!š: "952" - conditions: - - lastProbeTime: "2252-06-28T22:34:24Z" - lastTransitionTime: "1974-04-29T05:51:38Z" - message: "455" - reason: "454" - status: ƿOqõƨj2愴ňù廻@p - type: '僙R岹ÿʼnx#綮ehɫ淫Ď眊:' - phase: 戱PRɄ -status: - collisionCount: 341287797 - conditions: - - lastTransitionTime: "2493-11-15T11:08:04Z" - message: "460" - reason: "459" - status: ő+aò¼箰ð祛?扄鰀G抉ȪĠʩ崯ɋ+ - type: ÆŁĪŀc=Ƨz鈡煰敹xŪO - currentReplicas: -1847673756 - currentRevision: "457" - observedGeneration: 3474169154658456972 - readyReplicas: 2037461401 - replicas: 1449104338 - updateRevision: "458" - updatedReplicas: 154782591 diff --git a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.json b/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.json deleted file mode 100644 index 28a6ed113..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "kind": "TokenRequest", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "audiences": [ - "19" - ], - "expirationSeconds": 3850803321873644574, - "boundObjectRef": { - "kind": "20", - "apiVersion": "21", - "name": "22", - "uid": "r鯹)晿\u003co,c鮽ort昍řČ扷5ƗǸ" - } - }, - "status": { - "token": "23", - "expirationTimestamp": "1999-07-03T22:31:10Z" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.pb b/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.pb deleted file mode 100644 index aa4125f2d2b14ab71772989a85455edaee4fc232..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 306 zcmV-20nPqvICB6BC<+*1b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3{-DxWo}Ysadl;L zbQ1jm3aJ4K0WuN+Ga3OjA^|lj0XH%fF)=VSGBhwXG&wjhI5##hHZm|XINR=m)q#tg zfp9_qP_2lygN2{YoVx*91_}W;5&<}32MPf>5&|(WY9I;%F)|tgF*70#M0(}Bl*osB zbH$3rk8mmiF)=UzI0143F*JGtF*S+-FA4%NHWDG}kc#D$is_@7#hxuy<(#y`w_z{I zlzrxrfhgv=m&Ar$8UislG6FF;5D`K=9rDenZ%6diMKVzm&dpup7^k#fTy##H5v{I0x~la2nep8`nv-V02%-y E04~^RD*ylh diff --git a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.yaml b/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.yaml deleted file mode 100644 index 994088b8c..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1.TokenRequest.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - audiences: - - "19" - boundObjectRef: - apiVersion: "21" - kind: "20" - name: "22" - uid: r鯹)晿%?nB`%SN_&ThsiHZDeUAx4WNb}mLsAtpnEECntmLnA3BLt`aAm#U|`r<`c7EUk(m^O5(5B@T~90k diff --git a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.yaml b/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.yaml deleted file mode 100644 index 3c0890871..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authentication.k8s.io.v1beta1.TokenReview.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: authentication.k8s.io/v1beta1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - audiences: - - "20" - token: "19" -status: - audiences: - - "26" - error: "27" - user: - extra: - "24": - - "25" - groups: - - "23" - uid: "22" - username: "21" diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.json b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.json deleted file mode 100644 index 51003a1d3..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "19", - "verb": "20", - "group": "21", - "version": "22", - "resource": "23", - "subresource": "24", - "name": "25" - }, - "nonResourceAttributes": { - "path": "26", - "verb": "27" - }, - "user": "28", - "groups": [ - "29" - ], - "extra": { - "30": [ - "31" -] - }, - "uid": "32" - }, - "status": { - "allowed": false, - "reason": "33", - "evaluationError": "34" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.pb b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.LocalSubjectAccessReview.pb deleted file mode 100644 index 9f6799fbecad0c67e114241fffe6185788b61b50..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmd0{C}!X?<`PdVEy>6)%B)H($;{8w%eE-i%gom=GZd2W$xlwq2`){_N=+_tOioTM zE)Gg9%SN_&ThsiHZDeUAx4WNb}mLsAtpnEECntmLnA3BLt`aA zm#U|`r<`c7E6)%B)H($;{8w%eE-i%gom=GZYdJPR&URE=|fxO)havPEIW@ z4oWS{Of46B!pOCfk&Dqth|ySz(L{;SREyEvNW{?4z{JSJz|_Rj!ob4Z%)rdZz}VvU zyQZs+-E$fXoEQSuc5H2Koqul5ZpJ7!E=F@9MvEkNE=EfsCPRZP1uiB-BPk|BV!tLPp5RfTs-sWJl)Wz zbG97bo~VCvO6{|WjT+B(PCwEX3pCB#h{@1GNP|lTs0C<`k%1JGk)aZkk&zaYk+Bhz jk%<+Pk*N>|7n6}0P}W?Ehl3GFTL4vADlkYfC@}y41eH@c diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml deleted file mode 100644 index e8efdebde..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectAccessReview.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SelfSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - nonResourceAttributes: - path: "26" - verb: "27" - resourceAttributes: - group: "21" - name: "25" - namespace: "19" - resource: "23" - subresource: "24" - verb: "20" - version: "22" -status: - allowed: true - evaluationError: "29" - reason: "28" diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.json b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.json deleted file mode 100644 index 0e462b0c2..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "kind": "SelfSubjectRulesReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "namespace": "19" - }, - "status": { - "resourceRules": [ - { - "verbs": [ - "20" - ], - "apiGroups": [ - "21" - ], - "resources": [ - "22" - ], - "resourceNames": [ - "23" - ] - } - ], - "nonResourceRules": [ - { - "verbs": [ - "24" - ], - "nonResourceURLs": [ - "25" - ] - } - ], - "incomplete": true, - "evaluationError": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.pb b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SelfSubjectRulesReview.pb deleted file mode 100644 index 24cbba26a44d045e945b311eb48ed7ab46c6392e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 276 zcmd0{C}!X?6)%B)H($;{8w%eE-i%gom=GZYdFPR&URE=|fxO)d#4%}Ff| zN-fJwEf>1R$hDG@i_u7k(O8PnM2XQd#K^?J)Wp)lz{1?jz|6?N*y8rP zrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev` zr@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT97o$E6)%B)H($;{8w%eE-i%gom=GZYdIE=|fxO)havPEIW@4oWS{ zOf47s!^pLgk&Dqth|ySz(L{;SREyEvNW{?4z{JSJz|_Rj!ob4Z%)rdZz}VvUyQZs+ z-E$fXoEQSuc5H2Koqul5ZpJ7!E=F@9MvEkNE=EfsCPRZP1uiB-BPk|BV!tLPp5RfTs-sWJl)WzbG97b zo~VCvO6{|WjT+B(PCwEX3pCB#h{@1G$bm}+s0C<`k%1JGk)aZkk&zaYk+Bhzk%<+P zk*N>|7n6}0P}UqMYXOwC)Z*e|GByxm0g{GBOvXl1JRA%{Ovc7iOvWY(3{nhA3;;k! BRHXm_ diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.yaml b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.yaml deleted file mode 100644 index 6b699c344..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1.SubjectAccessReview.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - extra: - "30": - - "31" - groups: - - "29" - nonResourceAttributes: - path: "26" - verb: "27" - resourceAttributes: - group: "21" - name: "25" - namespace: "19" - resource: "23" - subresource: "24" - verb: "20" - version: "22" - uid: "32" - user: "28" -status: - allowed: false - evaluationError: "34" - reason: "33" diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json deleted file mode 100644 index 7613bb418..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "19", - "verb": "20", - "group": "21", - "version": "22", - "resource": "23", - "subresource": "24", - "name": "25" - }, - "nonResourceAttributes": { - "path": "26", - "verb": "27" - }, - "user": "28", - "group": [ - "29" - ], - "extra": { - "30": [ - "31" -] - }, - "uid": "32" - }, - "status": { - "allowed": false, - "reason": "33", - "evaluationError": "34" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb deleted file mode 100644 index dc10cb73a4cc9075b497dbd85812c82c1d32ba1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmWNKJxjw-7=?3RM9W1SE)Ehp)J#&a&3$h^Zk<#d9Yk>v9MTZ5t(elJ6)Fx@{2&f0 z6htUGI61f}A|17&i<^^k3tjvL4&LP~&pFSj$Vj7-roDQ+71l~kFD`{Uxr&T(r7+*% z#US=Ln_3QiZ+op?EC+tP;QK)otp<%!u*?1ky(g3)BSI&ZLF_DXaguY>Ld&$Rf;6S; zm=2mk{`?+%x6V4P>Y}#taQbw3bocWKd)v%c{NFDz^x{5J0W>hb=dUqBI&o2;oWubW_G>bd3=5L@}KSf!DVY^@N)Hb zys2z10+(!_rqx9Kps53L0}!)-0s*Z#K%1o~prfd(s8qC&r4)q8MpSYHf%6)%B)H($;{8w%eE-i%gom=GfYY?Ni-A^4^GWV3ocE{N=+_t zOioTME)Gg9%SN_&ThsiHZDeUAx4WNb}mLsAtpnEECntmLnA3B zLt`aAm#U|`r<`c7E9{F(@$r035+p5C8xG diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml deleted file mode 100644 index 01475c9ab..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - nonResourceAttributes: - path: "26" - verb: "27" - resourceAttributes: - group: "21" - name: "25" - namespace: "19" - resource: "23" - subresource: "24" - verb: "20" - version: "22" -status: - allowed: true - evaluationError: "29" - reason: "28" diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json deleted file mode 100644 index 12724ddfb..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "kind": "SelfSubjectRulesReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "namespace": "19" - }, - "status": { - "resourceRules": [ - { - "verbs": [ - "20" - ], - "apiGroups": [ - "21" - ], - "resources": [ - "22" - ], - "resourceNames": [ - "23" - ] - } - ], - "nonResourceRules": [ - { - "verbs": [ - "24" - ], - "nonResourceURLs": [ - "25" - ] - } - ], - "incomplete": true, - "evaluationError": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb deleted file mode 100644 index ab92a6cc9b4070f9225b3e48cc9cb86d5e113262..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmd0{C}!X?6)%B)H($;{8w%eE-i%gom=GfYY?Ni-A^3r@{R3ocE{N=+^a zD$PkP4oWS{Of46>#>lmjk&Dqth|ySz(L{;SREyEvNW{?4z{JSJz|_Rj!ob4Z%)rdZ zz}VvUyQZs+-E$fXoEQSuc5H2Koqul5ZpJ7!E=F@9MvEkNE=EfsCPRZP1uiB-BPk|B zV!tLPp5RfTs-sW zJl)WzbG97bo~VCvO6{|WjT+B(PCwEX3pCB#h{@1Ghy|#@Qc8(SfQ!kRXO ZNQueFScn5CVgeK~m0$$&&7>HV7yt`wQndg8 diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml deleted file mode 100644 index 83fb4e95c..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - namespace: "19" -status: - evaluationError: "26" - incomplete: true - nonResourceRules: - - nonResourceURLs: - - "25" - verbs: - - "24" - resourceRules: - - apiGroups: - - "21" - resourceNames: - - "23" - resources: - - "22" - verbs: - - "20" diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.json b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.json deleted file mode 100644 index 8ac6f23e6..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "19", - "verb": "20", - "group": "21", - "version": "22", - "resource": "23", - "subresource": "24", - "name": "25" - }, - "nonResourceAttributes": { - "path": "26", - "verb": "27" - }, - "user": "28", - "group": [ - "29" - ], - "extra": { - "30": [ - "31" -] - }, - "uid": "32" - }, - "status": { - "allowed": false, - "reason": "33", - "evaluationError": "34" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.pb b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.pb deleted file mode 100644 index 32696d181a28a7e6d026e81f280cf5806a6955bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 316 zcmWNKze~eF7>08nqU8{W(^y%>E_N&_?o8y#tjHu!SB?Sh8mopRunjoY#wbB~&Iv*!{Q9pS< zui2ozh9Y$kP78#akesgO+3e^d8FZ4--F5$Feq+#me0}zFpPl{TWqWS;a`kq+rEMO9 zP;8N=^+f+5HvxqOh&G@^KxYBaWhn}n*VNNgXe diff --git a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml b/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml deleted file mode 100644 index 7469717ff..000000000 --- a/pseudo/k8s/api/testdata/HEAD/authorization.k8s.io.v1beta1.SubjectAccessReview.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - extra: - "30": - - "31" - group: - - "29" - nonResourceAttributes: - path: "26" - verb: "27" - resourceAttributes: - group: "21" - name: "25" - namespace: "19" - resource: "23" - subresource: "24" - verb: "20" - version: "22" - uid: "32" - user: "28" -status: - allowed: false - evaluationError: "34" - reason: "33" diff --git a/pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.json b/pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.json deleted file mode 100644 index fe4ede107..000000000 --- a/pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "19", - "name": "20", - "apiVersion": "21" - }, - "minReplicas": 896585016, - "maxReplicas": -1971381490, - "targetCPUUtilizationPercentage": -1300313567 - }, - "status": { - "observedGeneration": -5238012362384355226, - "currentReplicas": -738053939, - "desiredReplicas": -1258077201, - "currentCPUUtilizationPercentage": 757808475 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.pb b/pseudo/k8s/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.pb deleted file mode 100644 index 1541f919de2d877d75e54c16c4065640938b17ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 311 zcmd0{C}!Z&raG&d44G&C?VGBGeUv9vI-FgG(WGcqu?xc#o_YGe1D#sVjXfVCZ4 zn_K6fo3ooSij9lWT!_&kiJgnlQi#dWAWMOZ$wWN6yOs1Hgnz&C)%rvk9HmFFVJEFn#*9pSj1##QpIFw z+Qq03RB9%q_;Nzm(p0!=eFVluQ4 e;^t_1KKIGr|3JVf#mO=6#|A~9ot9DzN(=xX-WQ4@a}-*@N#$Ha?mZtGaL4#$2VlGkosyRBPK*LGc7 zHF1a_Lr@SS!UPGJpaRo`Ur{gEMi>`dV7M}dnAnZoXuLBwpQ*`HtU$)(v+&w*+uCMAi{r0&x-#U6@`m(g8 zT1d7mIeqsD$(4PoGF&5ks^<5pdf>qqOXbT4uI+p^J3n>x-E`2$d8-^L<5P{2Pc^5c zT0UyY>zCh~Dj%3yKK{}C5$GyUpPjuBtz9_q`r^LHXBIDgIJaXfXR|e*>d05B#Tt&` zLYm_DY3kaGhi1Q6v2O4AKfnL|Z(dU1lWOtg;*qJSbLZHeSLRMG9K<^ZXRNv1-Q^P( z2Nw1XTt9JV`?qt4IJ0mjZx1feGY;Ln?{HKEbh~2(+*D6(5HjUe?Ov`W<##t4S{p!0g|vw}5g9g;;ig;a$+Og! z&MpI>jdnK`5au|f_S_vlx zFqBsrC76Rbh=S&Fzhha?c8duB+tn~?fl)MI*fC8#>m`770WhN2YOy$)wIP>O(_XEa zqa;us!RoWHonV|{19Fvc3qTj; zC4$^$c**KiZ9=CZ)k=}ry>X}=2t(MEz=kZpgGMB+r5#a^7)3d#>T#F9O(Hwa8SUhe+0U%@NEvs+TR>vV_#NCM`=m3_f6%-X9%^VwGKn_4lBtfZ- zp`+8#7(o$1GaIlDh7sLZJf&}TVx&-IzHMYQrJJY+R2CuYai~&13eemluX)iM$g+eQ z3q#qQze2vP1bA~a*Zwfz7=CrTo?9|lX|2immZl!pm0+9eTMD#84mAm#W|)KNC;Ov$1?9J zqz4c;*qN+_3PnOC!g}E5Ca59`%1}F?o`S--e7{G~J_^+9$U#wKSuCxJ)EHdO;)wy9 z&W#mod-I)j>^`~rE}m?V%c+L{3{z!V6=^%RDI7T&0=n3|3Q^FCwL#+A*RJ$&Y3zkz&pD zV}njjNM0{AxrBN7S@Bo`5Q!aFS*?^%`+MUVG#K>%c?c-tiTPs#o%zOVC$7F*K6)m- zaPHNf$o%P^rO8w2Yp2)l`|9(_Kkk0VDwH|87CgxiEnR+J5}tU$Aa*-9wZ*`2ogV6L zc6Ba_Ejm{QRG>s9C7U7~EU*l?b)EvYaR7po-ymbDaT7z62dhS1($F3&V9_i7Z6~_iC@Xaue7##On1HZdUw6= zhrJtt>^@>*i-u6U2~Av+q%KC2>^I+>Io~-a?&PWnBcBKs@~PZla5S2X_=|dIC?C}6U9G8Xw46%jgQK0PaN|c6 zLs|OHZRA;nC^}UPpJLW4R)b>ecXFu8QGG@)yT^VZ)U`px9b>B)3cRp-U; zTzdG?gBSqDgZ|aoZ&i*@ezx-RiKQdoz;3p# za)-|BCb!}lyhzu4s?Kk}^5l)5?5KV0=l^-*-4Ago^_$h?)0L;DgU-g8?>@M6Vf7^2 zIQhI-nz?`N=_^C4$A@k{z46GkrBn3xiq}ckv6F$FO!|3p*V@#HjmM8IPj8%>UOHM@ zzx?R>mANl3U!%Lo4nuQ&JBezzb+%Q zwzE>QU_yW?AJ_}By*E1;2A$#gy|Sk$r7k-9WVcOkZB7m40;&Ao@n|mZ`;$UmK!}D; zal8jeqXS$^XFvlRT+m@C9s$kfLC{N3f|LeU26WEEh~KfLJ{%adKr-m=14ow;OOu8D zv_=FZlR@FqJ_2J191%$F3Si+r87=Zw++rip4hNVkdszljHY-6-7i*-u5LR2#SEsQ6 z1J)697&CGJ(qybnjxxrelt3!t6bP+MFD_pg9vC@v^RddMORGP-acP@=!-rFFG_CI3 zyNj=XH0yiG&b5gbzeGPpZdrb1WAWM8`ovMMTIk%XHZ`;EjSv4mt2X>vCC{kd^yq?0 zzD;`F93+tE;;5rB3q%RI2!Vk+5r~DO{<4I8KXi*8ZcFCuNp{GCEQ|mHV}mWpP8frp zVM`v&vM85!nLW@7jL9(l440NIWqUUZ059(c6F{T@no_V2nPGk1%$6KR>1l-=P8#5Z zaT-=8UjnR558E&fkhP0Kgc3F{cr}_|mj*{p zp;X3hGHoWx07&Yvh{tkeut&%Gq2D!NT!f;Lgv2*wsEVVwyUURM%)*nbQ>L2-@DC>Q zD5g059QnAxim-Y8eC46%*5;pEIZILaj_xsPXuNLzA3vV@V9RU1i`6y1`u>^ee|~V` zUuTutKfgJ*QeF4kAO7Vfwc+($q;7p-qT}ZL`pLz%ucyDZbUue>JaXgg(krVcmS0|* zIMG92RmdsSs43{ILdHnSbv58Nj6^u3AT5ODF%$C~kr()I{DzUG#3(o}OKL^nDbPlW z0CC~h!5TJ7`P@l z+%Th7Tx9TSD_?+objZXsfJnkjgJUq4qjbP=j4%{q{xSj@F#qRWs|7dGol+LkOy4ha zC`sF865?RtE1)aG*kEqN^UwhAEsh!PKDh_-+YFkHwdG2~seOOq&G&cKGjhl3)h}-R zXl`kya^`5|%)@I>%;6k7vUTB=I*zFQ>pQ3Zy{)r`Nri-oDh&EfVi0A3vOSF1DLHO< zG&spHDqHg)y7}^G88#H1XhXk$O z3eDU$2Cg|C23K=y-@5$AmG`!^t~Zg7tz28VzIo(WWOMR7y=V2x($&-#4p$bQ|4P%_ v*Job+>Bxf{lb1Iie<^30>kD(QP5EkS-uuOo`I_6S>Q!57P;Kt3s;~MlET?B$ diff --git a/pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml b/pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml deleted file mode 100644 index f4dec2fe8..000000000 --- a/pseudo/k8s/api/testdata/HEAD/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml +++ /dev/null @@ -1,160 +0,0 @@ -apiVersion: autoscaling/v2beta2 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - maxReplicas: -1971381490 - metrics: - - external: - metric: - name: "39" - selector: - matchExpressions: - - key: n3-8d-0-5qty--4-p---u16-wv-i.84-n4f--139-295at-o7qff7-x--r7v66bm71u-n4f0/2_31.-.-yz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q - operator: In - values: - - Q3_Y.5.-..P_pDZ-._._t__2k - matchLabels: - 9s-m---vl80.5-6y-07b-3---g-jdi/z_-tY-R6S17_.8CnK_O.d-._NwcGnP-w-Sf5_Or.i1_7z.WH-.._d: 1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-l - target: - averageUtilization: -521487971 - averageValue: "301" - type: 3.v-鿧悮坮Ȣ - value: "82" - object: - describedObject: - apiVersion: "24" - kind: "22" - name: "23" - metric: - name: "25" - selector: - matchExpressions: - - key: 816m59-dx8----i--5-8t36b0/D7r__.am6-4_WE-_JTrcd-2.-__E_Sv__26KX_R7 - operator: DoesNotExist - matchLabels: - QQ.N2.1.L.l-Y._.4: 0.d.__Gg8-2_kS91.e5K-_e63_-_3-n-_-__3u-.__G - target: - averageUtilization: 1001983654 - averageValue: "39" - type: 凗蓏Ŋ蛊ĉy緅縕>Ž - value: "309" - pods: - metric: - name: "32" - selector: - matchExpressions: - - key: w.__-___196-.dX_iv1H.__.h-J-M.9_T.q-o7.y-SQ.A - operator: NotIn - values: - - 0.N.-.Kj8..3s--_4..I_l...-ym-._k - matchLabels: - 8-10pq-0-7-9-2-ekg-071a-2y-y-o0-5q-21.6h/87_2fNc5-_.-RX-82_g50_uL: 6N_._a69 - target: - averageUtilization: -1980941277 - averageValue: "800" - type: 抴ŨfZhUʎ浵ɲõ - value: "303" - resource: - name: 倱< - target: - averageUtilization: 580681683 - averageValue: "404" - type: ź贩j瀉 - value: "621" - type: 枊a8衍`Ĩɘ.蘯6ċV夸eɑeʤ脽ě - minReplicas: 896585016 - scaleTargetRef: - apiVersion: "21" - kind: "19" - name: "20" -status: - conditions: - - lastTransitionTime: "2039-12-25T06:58:01Z" - message: "71" - reason: "70" - status: ɸĻo:{柯?B俋¬h`職铳s44矕Ƈ - type: Ƚȿ醏g遧 - currentMetrics: - - external: - current: - averageUtilization: -1726456869 - averageValue: "909" - value: "108" - metric: - name: "63" - selector: - matchExpressions: - - key: 7pdn--j2---25/I._31-_I-A-_3b6 - operator: Exists - matchLabels: - Z: C..7o_x3..-.8-Jp-9-4-Tm.__G-8...__.Q_c8.G.b_91 - object: - current: - averageUtilization: 1980459939 - averageValue: "289" - value: "861" - describedObject: - apiVersion: "55" - kind: "53" - name: "54" - metric: - name: "46" - selector: - matchExpressions: - - key: rR4_7FA.2 - operator: DoesNotExist - matchLabels: - 990-17-hg1-o-p665--4-j8---t6-r7---d--uml-89.n0v-1o-0hv--k6/0_OHz_.B-.-_w_--.8_r_N-.3n-x.-_-_-Nm-_X3.1d_YH3x---5: s2oy - pods: - current: - averageUtilization: 1333166203 - averageValue: "638" - value: "485" - metric: - name: "56" - selector: - matchExpressions: - - key: 1q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-83.91z---883d-vj/z.-_Z4.A - operator: NotIn - values: - - G.-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-t - matchLabels: - 7-gg93--5-------g1c-fr4/mQ.GM72_-c-.-.6--3-___t-Z8SUGP.-_.uB-.--.gb_2_-8-----yJY.__-X2: 0_.GgT7_7B_D-..-.k4u-zA_--_.-.6GA26C-s.Nj-d-E - resource: - current: - averageUtilization: -280562323 - averageValue: "886" - value: "826" - name: ɻ;襕ċ桉桃喕 - type: 矀Kʝ瘴I\p[ħsĨɆâĺɗŹ倗S - currentReplicas: 1761963371 - desiredReplicas: 645599318 - observedGeneration: -6706242512760583856 diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1.Job.json b/pseudo/k8s/api/testdata/HEAD/batch.v1.Job.json deleted file mode 100644 index c5c5704f5..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v1.Job.json +++ /dev/null @@ -1,1398 +0,0 @@ -{ - "kind": "Job", - "apiVersion": "batch/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "parallelism": 896585016, - "completions": 1305381319, - "activeDeadlineSeconds": -5584804243908071872, - "backoffLimit": -783752440, - "selector": { - "matchLabels": { - "hjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N4": "3L.u" - }, - "matchExpressions": [ - { - "key": "S91.e5K-_e63_-_3-h", - "operator": "In", - "values": [ - "3_bQw.-dG6c-.x" - ] - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɸ=ǤÆ碛,1", - "resourceVersion": "10505102892351749453", - "generation": 7014477246743953430, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -5781250394576755223, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "譋娲瘹ɭȊɚɎ(", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "糷磩窮秳ķ蟒苾h", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "龷ȪÆl" - }, - "emptyDir": { - "medium": "瓷雼浢Ü礽绅{囥", - "sizeLimit": "721" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": 1673568505 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": -972874331 - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -1628457490 - } - ], - "defaultMode": 798972405, - "optional": false - }, - "nfs": { - "server": "54", - "path": "55" - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": -1888506207, - "iscsiInterface": "58", - "fsType": "59", - "readOnly": true, - "portals": [ - "60" - ], - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "110" - }, - "mode": 848754324 - } - ], - "defaultMode": -331664193 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": -1341615783, - "fsType": "94", - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97", - "readOnly": true - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": -421817404 - } - ], - "defaultMode": 938765968, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "鎥ʟ\u003c$洅ɹ7", - "fsType": "112", - "readOnly": false, - "kind": "Þ" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": 1550211208 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "750" - }, - "mode": -1240667156 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": -1147975588 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": 2293771102284463819, - "path": "127" - } - } - ], - "defaultMode": -1884322607 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129" - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "sslEnabled": true, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137", - "readOnly": true - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": true, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -884734093, - "containerPort": 223177366, - "protocol": "2ħ籦ö嗏ʑ\u003e季", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": false - }, - "secretRef": { - "name": "156", - "optional": true - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "671" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": false - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "\u0026啞川J缮ǚbJ": "99" - }, - "requests": { - "/淹\\韲翁\u0026ʢsɜ曢\\%枅:=ǛƓ": "330" - } - }, - "volumeMounts": [ - { - "name": "167", - "mountPath": "168", - "subPath": "169", - "mountPropagation": "2啗塧ȱ蓿彭聡A3fƻfʣ繡楙¯ĦE勗", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": "175", - "host": "176", - "scheme": "ȲϤĦʅ芝M", - "httpHeaders": [ - { - "name": "177", - "value": "178" - } - ] - }, - "tcpSocket": { - "port": 1784914896, - "host": "179" - }, - "initialDelaySeconds": 664393458, - "timeoutSeconds": -573382936, - "periodSeconds": 964433164, - "successThreshold": 679825403, - "failureThreshold": -20764200 - }, - "readinessProbe": { - "exec": { - "command": [ - "180" - ] - }, - "httpGet": { - "path": "181", - "port": "182", - "host": "183", - "scheme": "狩鴈o_", - "httpHeaders": [ - { - "name": "184", - "value": "185" - } - ] - }, - "tcpSocket": { - "port": "186", - "host": "187" - }, - "initialDelaySeconds": -1249460160, - "timeoutSeconds": -1027661779, - "periodSeconds": -1944279238, - "successThreshold": 1169718433, - "failureThreshold": -2039036935 - }, - "startupProbe": { - "exec": { - "command": [ - "188" - ] - }, - "httpGet": { - "path": "189", - "port": "190", - "host": "191", - "scheme": "ƅTG", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": -1629040033, - "host": "194" - }, - "initialDelaySeconds": 1233814916, - "timeoutSeconds": 1632959949, - "periodSeconds": 487826951, - "successThreshold": 87018792, - "failureThreshold": -239847982 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ƭt?QȫşŇɜ", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "抴ŨfZhUʎ浵ɲõ", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1980941277, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "蕭k ź贩j", - "imagePullPolicy": "瑥A", - "securityContext": { - "capabilities": { - "add": [ - "Ɋł/擇ɦĽ胚O醔ɍ厶耈 " - ], - "drop": [ - "衧ȇe媹H" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216", - "runAsUserName": "217" - }, - "runAsUser": 7459999274215055423, - "runAsGroup": 2900848145000451690, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "ĵ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": -1477511050, - "containerPort": -1373541406, - "protocol": "栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": false - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "233" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": false - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "+ņ榱*Gưoɘ檲": "340" - }, - "requests": { - "ʔŊƞ究:hoĂɋ瀐\u003cɉ湨H=å睫}堇": "690" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "ï瓼猀2:öY鶪5w垁", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": 1434408532, - "host": "246", - "scheme": "`劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立h", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": "249", - "host": "250" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "readinessProbe": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": -1569009987, - "host": "253", - "scheme": "ɢǵʭd鲡:贅wE@Ȗs«öʮĀ\u003c", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": 1702578303, - "host": "256" - }, - "initialDelaySeconds": -1565157256, - "timeoutSeconds": -1113628381, - "periodSeconds": -1385586997, - "successThreshold": 460997133, - "failureThreshold": -636855511 - }, - "startupProbe": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "\u0026蒒5靇C'ɵ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": -2051962852, - "host": "263" - }, - "initialDelaySeconds": 1768820087, - "timeoutSeconds": 471718695, - "periodSeconds": -1153851625, - "successThreshold": 1428858742, - "failureThreshold": -1169420648 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "264" - ] - }, - "httpGet": { - "path": "265", - "port": 1923650413, - "host": "266", - "scheme": "I粛E煹ǐƲE'iþŹʣy", - "httpHeaders": [ - { - "name": "267", - "value": "268" - } - ] - }, - "tcpSocket": { - "port": "269", - "host": "270" - } - }, - "preStop": { - "exec": { - "command": [ - "271" - ] - }, - "httpGet": { - "path": "272", - "port": "273", - "host": "274", - "scheme": "敍0)鈼¬麄", - "httpHeaders": [ - { - "name": "275", - "value": "276" - } - ] - }, - "tcpSocket": { - "port": -648954478, - "host": "277" - } - } - }, - "terminationMessagePath": "278", - "imagePullPolicy": "Ƿ裚瓶釆Ɗ+j忊", - "securityContext": { - "capabilities": { - "add": [ - "焗捏" - ], - "drop": [ - "Fħ籘Àǒɿʒ刽ʼn掏1ſ盷褎" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "279", - "role": "280", - "type": "281", - "level": "282" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "283", - "gmsaCredentialSpec": "284", - "runAsUserName": "285" - }, - "runAsUser": 1875040261412240501, - "runAsGroup": -3078742976292946468, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Z1Ůđ眊ľǎɳ,ǿ飏騀呣" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "ephemeralContainers": [ - { - "name": "286", - "image": "287", - "command": [ - "288" - ], - "args": [ - "289" - ], - "workingDir": "290", - "ports": [ - { - "name": "291", - "hostPort": -1343558801, - "containerPort": 284401429, - "protocol": "掇lN", - "hostIP": "292" - } - ], - "envFrom": [ - { - "prefix": "293", - "configMapRef": { - "name": "294", - "optional": false - }, - "secretRef": { - "name": "295", - "optional": false - } - } - ], - "env": [ - { - "name": "296", - "value": "297", - "valueFrom": { - "fieldRef": { - "apiVersion": "298", - "fieldPath": "299" - }, - "resourceFieldRef": { - "containerName": "300", - "resource": "301", - "divisor": "578" - }, - "configMapKeyRef": { - "name": "302", - "key": "303", - "optional": false - }, - "secretKeyRef": { - "name": "304", - "key": "305", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "þ蛯ɰ荶lj": "397" - }, - "requests": { - "t颟.鵫ǚ灄鸫rʤî萨zvt莭": "453" - } - }, - "volumeMounts": [ - { - "name": "306", - "mountPath": "307", - "subPath": "308", - "mountPropagation": "Ȣ幟ļ腻Ŭ", - "subPathExpr": "309" - } - ], - "volumeDevices": [ - { - "name": "310", - "devicePath": "311" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "312" - ] - }, - "httpGet": { - "path": "313", - "port": "314", - "host": "315", - "scheme": "牐ɺ皚|懥", - "httpHeaders": [ - { - "name": "316", - "value": "317" - } - ] - }, - "tcpSocket": { - "port": "318", - "host": "319" - }, - "initialDelaySeconds": 1146016612, - "timeoutSeconds": 1495880465, - "periodSeconds": -1032967081, - "successThreshold": 59664438, - "failureThreshold": 958482756 - }, - "readinessProbe": { - "exec": { - "command": [ - "320" - ] - }, - "httpGet": { - "path": "321", - "port": -1983953959, - "host": "322", - "scheme": "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶", - "httpHeaders": [ - { - "name": "323", - "value": "324" - } - ] - }, - "tcpSocket": { - "port": -2107743490, - "host": "325" - }, - "initialDelaySeconds": 1995332035, - "timeoutSeconds": 960499098, - "periodSeconds": -1020896847, - "successThreshold": 1074486306, - "failureThreshold": 630004123 - }, - "startupProbe": { - "exec": { - "command": [ - "326" - ] - }, - "httpGet": { - "path": "327", - "port": 714088955, - "host": "328", - "scheme": "źȰ?$矡ȶ网棊ʢ=wǕɳ", - "httpHeaders": [ - { - "name": "329", - "value": "330" - } - ] - }, - "tcpSocket": { - "port": 1752155096, - "host": "331" - }, - "initialDelaySeconds": -1962065705, - "timeoutSeconds": 1701999128, - "periodSeconds": -1364571630, - "successThreshold": 1689978741, - "failureThreshold": -1423854443 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "332" - ] - }, - "httpGet": { - "path": "333", - "port": "334", - "host": "335", - "scheme": "跦Opwǩ曬逴褜1", - "httpHeaders": [ - { - "name": "336", - "value": "337" - } - ] - }, - "tcpSocket": { - "port": -1801140031, - "host": "338" - } - }, - "preStop": { - "exec": { - "command": [ - "339" - ] - }, - "httpGet": { - "path": "340", - "port": 785984384, - "host": "341", - "scheme": "熪军g\u003e郵[+扴ȨŮ+朷Ǝ膯ljVX", - "httpHeaders": [ - { - "name": "342", - "value": "343" - } - ] - }, - "tcpSocket": { - "port": "344", - "host": "345" - } - } - }, - "terminationMessagePath": "346", - "terminationMessagePolicy": "谇j爻ƙ", - "imagePullPolicy": ":", - "securityContext": { - "capabilities": { - "add": [ - "唊#v铿" - ], - "drop": [ - "Ȃ4" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "347", - "role": "348", - "type": "349", - "level": "350" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "351", - "gmsaCredentialSpec": "352", - "runAsUserName": "353" - }, - "runAsUser": 4480986625444454685, - "runAsGroup": -2630324001819898514, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "苧yñKJɐ扵Gƚ绤fʀļ腩" - }, - "tty": true, - "targetContainerName": "354" - } - ], - "restartPolicy": "媁荭gw忊", - "terminationGracePeriodSeconds": -4333562938396485230, - "activeDeadlineSeconds": -7565148469525206101, - "dnsPolicy": "遰=E", - "nodeSelector": { - "355": "356" - }, - "serviceAccountName": "357", - "serviceAccount": "358", - "automountServiceAccountToken": false, - "nodeName": "359", - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "360", - "role": "361", - "type": "362", - "level": "363" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "364", - "gmsaCredentialSpec": "365", - "runAsUserName": "366" - }, - "runAsUser": 2651364835047718925, - "runAsGroup": 2695823502041400376, - "runAsNonRoot": false, - "supplementalGroups": [ - -2910346974754087949 - ], - "fsGroup": -1212012606981050727, - "sysctls": [ - { - "name": "367", - "value": "368" - } - ] - }, - "imagePullSecrets": [ - { - "name": "369" - } - ], - "hostname": "370", - "subdomain": "371", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "372", - "operator": "皥贸碔lNKƙ順\\E¦队", - "values": [ - "373" - ] - } - ], - "matchFields": [ - { - "key": "374", - "operator": "跣Hǝcw媀瓄\u0026翜舞拉Œɥ颶", - "values": [ - "375" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1907998540, - "preference": { - "matchExpressions": [ - { - "key": "376", - "operator": " 鰔澝qV訆ƎżŧL²", - "values": [ - "377" - ] - } - ], - "matchFields": [ - { - "key": "378", - "operator": "Ä蚃ɣľ)酊龨δ摖ȱğ_\u003c", - "values": [ - "379" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "n5v-5925a-x12a-214-3s--gg93--p.2ql/B-.--g": "Y1" - }, - "matchExpressions": [ - { - "key": "ao26--26-hs5-jedse.7vc0260ni-l11q5--uk5mj-94-8134i5kq/4_.-_-_-...1py_8-3..s._.x2", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "386" - ], - "topologyKey": "387" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1058923098, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "3-----995----5sumf7ef8jzv4-9-30.rt--6g1-2-73m-e46-r-g63--gt1--6mx-r-927--m6-g/J0-8-.M-.-.-8v-J1zET_..3dCv3j._.-_pP__up.2L_s-7": "m.__G-8...__.Q_c8.G.b_9_1o.w_aI._1" - }, - "matchExpressions": [ - { - "key": "3--j2---2--82--cj-1-s--op34-yw/A-_3bz._M", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "394" - ], - "topologyKey": "395" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "sEK4.B.__65m8_x": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "402" - ], - "topologyKey": "403" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -168773629, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x-3/6-.7D.3_KPgL": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "410" - ], - "topologyKey": "411" - } - } - ] - } - }, - "schedulerName": "412", - "tolerations": [ - { - "key": "413", - "operator": "栣险¹贮獘薟8Mĕ霉", - "value": "414", - "effect": "ŪǗȦɆ悼j蛑q", - "tolerationSeconds": 4375148957048018073 - } - ], - "hostAliases": [ - { - "ip": "415", - "hostnames": [ - "416" - ] - } - ], - "priorityClassName": "417", - "priority": -1286809305, - "dnsConfig": { - "nameservers": [ - "418" - ], - "searches": [ - "419" - ], - "options": [ - { - "name": "420", - "value": "421" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ųŎ群E牬庘颮6(|ǖû" - } - ], - "runtimeClassName": "422", - "enableServiceLinks": false, - "preemptionPolicy": "怨彬ɈNƋl塠傫ü", - "overhead": { - "ɮ6)": "299" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -554557703, - "topologyKey": "423", - "whenUnsatisfiable": "¹t骳ɰɰUʜʔŜ0¢", - "labelSelector": { - "matchLabels": { - "o--5r-v-5-e-m78o-6-s.4-7--i1-8miw-7a-2408m-0--5--2-5----00/l_.23--_l": "b-L7.-__-G_2kCpS__.3g" - }, - "matchExpressions": [ - { - "key": "nw0-3i--a7-2--o--u0038mp9c10-k-r---3g7nz4-------385h---0-u73pj.brgvf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--itk/5.m_2_--XZ-x.__.Y_2-n_5023Xl-3Pw_-r75--_A", - "operator": "In", - "values": [ - "7M7y-Dy__3wc.q.8_00.0_._.-_L-__bf_9_-C-Pfx" - ] - } - ] - } - } - ] - } - }, - "ttlSecondsAfterFinished": -1574276574 - }, - "status": { - "conditions": [ - { - "type": "ļė[BN柌ë娒汙查o*Ĵ麻齔試", - "status": "昒", - "lastProbeTime": "2756-02-27T11:08:58Z", - "lastTransitionTime": "2296-12-01T04:10:44Z", - "reason": "430", - "message": "431" - } - ], - "active": -125022959, - "succeeded": 186118994, - "failed": 115522160 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1.Job.pb b/pseudo/k8s/api/testdata/HEAD/batch.v1.Job.pb deleted file mode 100644 index d735181c4683592f7a12895c03318463fb8e2a56..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6267 zcmY*d33wD$w(hC`#u}HNdgANpd5&!lYKT^)?!C40iGv`bVG&S#$T+Wtuml2ukN|2_zv9vJw&!Cf!*&sH4t;4m!^8?9ByvGtUJX#&>RY7=8VHeX8o# zt#i&j_uT(1oAfjrcP|&6uzLHN4RJdW9~Hkff&WnAni-D4JVTs}>}Hf$M#J|ZB*|Eo z6xq-vT~j3$OGLkNE$a_^3TyYI%(X3T%j@2oUH4{fKeK8Y$7npGC)~j?2G1fX$;Gh< zJ6S~B_dK29?>{h}`>V8(g3uIOkt4zi ze{GkicXgcaz^j4MJu!j4N^j0DfSZO{r1Niy(dVi?tx@)|^7GfGI4-`w|8%*xW2l31 zujC%*W^71$(MS`LWF$y}nj*wM^XwLFx1hQVkV%5oF&COyx_AcMK z*<;5&Il=mx#}U{}QX~aQST`_HkR}_lLiB@~pXYlAYEG>Nn}shm7rpyw@6|KRs%VZS z63-HpK<_Zzk)#=Lr#M-ny7^FBq5ot@@KB$xZM?u&?JJInWr-Xy9nmsaq8Bhfh3N)A zJ=obBY-kR)oDQDo^!A48%0h*M8=R~xVOBGUGJ$49={Om&;FIarjeh@MQIp0?J!^FSy^%1_)XT4X)c?4I*h0= zqB$D-Uu*xzxA0?Jw%EI1SchT5$tn_lh+`GR{~J(PmqHxZJ{kP#hBejkMdz)5urAvy z4qgIhMRC~Xf(t0XQ_&p9J{Y|DwKdVrDtaud7!os!Ri!z$v*1e&&tVdraD}fl*-1wf&>AeS!8e+g z1Pj$bf6Z{%-0)VHQXN1M&+6dDI&rhQ981R)$(8|M>F|}VWign07#?(<4uR(zlJj1U zHQ+M?JHdqD>#hTzT{#eC9}0i^*MC|ID`0*EQ;7Y&`ufb9)`*ieWKf1RlrjcZW&m$P zb1>D+3=TvZI)5KfgO5UzG}{(Gv+#v?9{j_SN6m@XPi&L6@MrVGTDRW(I&eR{dGebRa^iytQZbUIC@ z(-g=1C2zbRdGBJ})IeCZU%GYmaDBzt#}9&)ux5WdfAChs*Z#yfUQdI57H~PGjyD|sakL%fGCj}Dt|eei^8BW5cn8l$qfX>0>Succ!i1m%j^9^-$eZX z>gDYJiQKx~fuluhCtAF%F9wPZ`HD6M&z<%3`RlvT^3ldnSL@nv!vN(X&ss>iPyyI* z{)__^Ff}_ShzHAHzz!gUZUMdAL(PE+=m;1D8$bCBcE&`5!xqo|h_gR7k`rh;8@ph% zeXH+KprwPJcR&|j;ATu50H8h+Z0?!0VXHUGR~XDJdBT?;=sWrBY)@nGaO|Er~NCn^Q&5hiy0&h&P zv;nAk2G{~t-3!`WIQ&U@WP>b~6ykosS3lN0(Y7|+acowoD?5GuobiKc!>yj4iPPT9 zCoGi!%7B3ao=O+=ZOLb?)0{Rsq}so3|6|4E-Zu>2`gGDMFI{N*Br+OPv@d*xk(zs& z-@0YFNJ0z4t*{hRWquYYrbf*4SyO$*9hOe2>c0QEU`NgTV0PbF$!N#?M>l!~NBSlj zc3aA*)IRF>?W0orXcE87Vyhuu0=63FZ`)5JV0=w>-yNtZl4geU28K_C&+oICX@DSD zQ=Rv7)Hr1~M<*g$TFV3AgqM0MKh_&+s1BC*gmZI73m!}I4;5s*#&9#aX~BJ!fujBV zgU@(R1kWDwWR8{jh9=7Vc^5|V1I7E%$WXARH*~xhju#wKtWiC636#+hxRZ`uUwnNu z?{oj3vz#$Dh<&y>@85j;n~uNbH2i^y|M4m`a@t!OtS#^kjurblA0HbEH|!6e%=DKw zEWa1H>3~~UmnkYVk3afb1X0;`wZ4sQYY^D>;+`RXr>t8y^#Uc@J2zI?N#d8%~iaQi!x$o2z&%brkCTVguc(^b~_cIf7{>}wt- zruFjmobj`-@2O<))bO76+4CWqMiB*eiYV$_AX+>SeK`_?shG4ajybSbt#i zl7*vH;iEaP%pYzFAF2Z$5SkyOvt<6kP;bMtV~5wI`&%-D<@+894%LS8jsyzxN6LJS z;rbprS>a!be*K?;qC5B{+(Yy;m7nekw;u=$9^Up+=w!}l@yNi)iABR5bh5_Jq*HYM z0nffr^mnqL?O{;x5cjo4;#g z+V(Usw621Fy2gLOL^t*4r|dlfW-pJ9LmK~U0mB(K-jt=E$>cFKYw z5J^nkE(mHO60o3=WMQ4G3aLV(3ST8|NAMJ=bXbCEip$J3y0}10FbxxJ71Pbt z&xt1DF&6{kk}&88e;xj7k_05A3BuMCA`83IYA1Z3@zI#Jjlrcj~72 zJS;)q0vnb=jjjHtxbQnckS;r;WQp({O!VIC!)GWKf6MU48LpB67qjmYNSrE&+S4L2 z7cNa)#NWLZ?64vkOkr*k6+V@F62Tr4bCC%vGk0Q9Nda*$3u1brDJ1BtP1O{oWw6(} zEG~rYmf-CU@fk5?n+O__c~;@^c#641ctI4O7v`=44Fx2=Aj~DEn1Hl3tHJ2PZgJhR zRYr=biu2O>C>a4*$_Q06Kyf|u$sII5fisFAJ_3QDj1(yr2*MDok%H}iFE060#CaSC z|InS}{voE&+~n!;SMHxEebV37K&KO$bRdOtQuIjDffSmK0ff+WOr_}r;9;;4>=V@|lKoRy}T%fn_m2h20 zaA?mX6ZL7n+CWYHD-Q>bWY3yCRx?^|B_~9RpF`yWNW;P)!v|u-#$bO%rT^H8@w1`w zA^(N8(4J#Yk@chf>n9q5ea8ZgRl{ezP4oSQl{gA%((-g}F$Hr3ScB+Az76I`0~kY^ z>b_^Z!`nZ6+}kvf9V$4yn8G;%`~ad)2KTqdihpMXccdBizqJJiSV!o>rE8I>=z6W? z`lYCtn{^dlR(kh$uYDQuqE#8(GnQaoq9BK$u$TwpE)B#$N zu6&o`AgDNCM6+MatT`145018r|EQQOz|Oz_@SprC8yHYZC!=D+*ImE;UR0EfB*>qo z)G5Kz#-}p2bB}Qk_zFg{;sWKlz9#R5(BA6j!#M|hMgHQRP-fonQJxFIuIH}vxAZ*= z9zl}_MD>HN0}v>I0IOX?7YnWyod2yS5t0W+XXbod8@_(&;@3xG;#qIEl_DUT-5@|# zjI>O~mdDs`rw9mAIx8XbbBj-b1%}G|afFPp+55XPGX71U@ zKI{CWbf1myObrJW8OS|lH2cK`5eq|#febQfj}MR6Os1|hOF)Kf-&ff3`V_|-H-A?! z&6WH5n;|CVWcAQY>77sBDvEg3NygT}z@d<#Kyw6+HiWC1hx;g#omf= zZ9atu*=-+b8LJ#`^5q1w29iQGrQ2evn#-~V-V0xO!m9CPY6uyr!xTrfappuvXLZEO z-eK;i5}^8!p}c|PAY(`(WQ^WrY*!g4=NRc6DGm-EpC8OWYYQY#JDyE|F#7u?fZA7Fn%2mQH z8cJV=XtKqGo(fsHSs+W(O(9hSKIT(axQNvjLv!ot-KI&>*NEFh-IOE|0t*e$i(pj= z>mdXS^Ms}Aca^bwqPZIoA25Xyti#dAI>0D2t75_a5_Z#VK=#l7*!t~cy;3pwW-jBN z8Ys@)yoAodRwWAf0r%QuB?|2ccrs{EAQDY4C94^r0A5;^CjrEOL2^4N5I_ugRvgUS zIox#aF3(`7=8UgBRMaz;Zvnlb!O{82_Hccj818Nzs}Anj7e3dTI&s`{I#hBpW9Rlz zaT}cot+jZXR!TI3hYR#Ahy)$E@p^w>op&IV-9K^)!;rCj3l~ohB|(^`@B~iFB>oXZ za|@)n?+WIZ_|6BbtA8EHZKQ{j(7psg+IR3r=n){uuz%FlUq8iB+SKTq>bm^yx$+1C z$Mn3__aBnCEZY~gYCppzSpwmtJO{j>bwO*V_i}H&aU1bKEXHn^KeO_MKvkK)r*eg- z#2h{SRN%nzINv#6v1|G8iBM*br3!R5V75Go6aO5!QFfaP9arq0&c5C|9Mv_M6H%_S zomEwn3e}%$%bX(BbatI$6X1+ns12=_BK7Al0McPs5uqR>Axv0Z;UkZC`u7%nf%gPDYPNy17GMM(E2y?@<(5?v{EH9az7NzY4PXO zBt9A5+x_#$0{LCzCr3^{7O3qVEe_?J8OwiZr6q?JTtp_{GdOLt5LrnAqNXylGE!;h z8hXS(-5D+);-kj1VTq?dpY6@DnA>zW6iSAP0z*OM=XSO_m4)-kGKD9 zMzHSKcu(*`X`rECqJDPzScR`Mvi}f?387suYTI{nhdfsLK?t&6-qZbV#2FliKJv9r zbCn%v{$jGN@I~>bjnkxxaL#*?0lF$#&l_zhhyd)I`j47RBd?tQ#Vz36-T`mr&*v@) z)V=0u^`9&YoUIDfHExadc7@OPhc6rmH8=55fkS1^=;(=o_qt!P+uYI7-oB>ZN9?xP gC>hQ<5acSYKI@Hyr郵[+扴ȨŮ+朷Ǝ膯ljVX - tcpSocket: - host: "345" - port: "344" - livenessProbe: - exec: - command: - - "312" - failureThreshold: 958482756 - httpGet: - host: "315" - httpHeaders: - - name: "316" - value: "317" - path: "313" - port: "314" - scheme: 牐ɺ皚|懥 - initialDelaySeconds: 1146016612 - periodSeconds: -1032967081 - successThreshold: 59664438 - tcpSocket: - host: "319" - port: "318" - timeoutSeconds: 1495880465 - name: "286" - ports: - - containerPort: 284401429 - hostIP: "292" - hostPort: -1343558801 - name: "291" - protocol: 掇lN - readinessProbe: - exec: - command: - - "320" - failureThreshold: 630004123 - httpGet: - host: "322" - httpHeaders: - - name: "323" - value: "324" - path: "321" - port: -1983953959 - scheme: 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶 - initialDelaySeconds: 1995332035 - periodSeconds: -1020896847 - successThreshold: 1074486306 - tcpSocket: - host: "325" - port: -2107743490 - timeoutSeconds: 960499098 - resources: - limits: - þ蛯ɰ荶lj: "397" - requests: - t颟.鵫ǚ灄鸫rʤî萨zvt莭: "453" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 唊#v铿 - drop: - - Ȃ4 - privileged: false - procMount: 苧yñKJɐ扵Gƚ绤fʀļ腩 - readOnlyRootFilesystem: false - runAsGroup: -2630324001819898514 - runAsNonRoot: false - runAsUser: 4480986625444454685 - seLinuxOptions: - level: "350" - role: "348" - type: "349" - user: "347" - windowsOptions: - gmsaCredentialSpec: "352" - gmsaCredentialSpecName: "351" - runAsUserName: "353" - startupProbe: - exec: - command: - - "326" - failureThreshold: -1423854443 - httpGet: - host: "328" - httpHeaders: - - name: "329" - value: "330" - path: "327" - port: 714088955 - scheme: źȰ?$矡ȶ网棊ʢ=wǕɳ - initialDelaySeconds: -1962065705 - periodSeconds: -1364571630 - successThreshold: 1689978741 - tcpSocket: - host: "331" - port: 1752155096 - timeoutSeconds: 1701999128 - targetContainerName: "354" - terminationMessagePath: "346" - terminationMessagePolicy: 谇j爻ƙ - tty: true - volumeDevices: - - devicePath: "311" - name: "310" - volumeMounts: - - mountPath: "307" - mountPropagation: Ȣ幟ļ腻Ŭ - name: "306" - subPath: "308" - subPathExpr: "309" - workingDir: "290" - hostAliases: - - hostnames: - - "416" - ip: "415" - hostIPC: true - hostname: "370" - imagePullSecrets: - - name: "369" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "671" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: false - envFrom: - - configMapRef: - name: "155" - optional: false - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 瑥A - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ƭt?QȫşŇɜ - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: 抴ŨfZhUʎ浵ɲõ - tcpSocket: - host: "209" - port: -1980941277 - livenessProbe: - exec: - command: - - "173" - failureThreshold: -20764200 - httpGet: - host: "176" - httpHeaders: - - name: "177" - value: "178" - path: "174" - port: "175" - scheme: ȲϤĦʅ芝M - initialDelaySeconds: 664393458 - periodSeconds: 964433164 - successThreshold: 679825403 - tcpSocket: - host: "179" - port: 1784914896 - timeoutSeconds: -573382936 - name: "147" - ports: - - containerPort: 223177366 - hostIP: "153" - hostPort: -884734093 - name: "152" - protocol: 2ħ籦ö嗏ʑ>季 - readinessProbe: - exec: - command: - - "180" - failureThreshold: -2039036935 - httpGet: - host: "183" - httpHeaders: - - name: "184" - value: "185" - path: "181" - port: "182" - scheme: 狩鴈o_ - initialDelaySeconds: -1249460160 - periodSeconds: -1944279238 - successThreshold: 1169718433 - tcpSocket: - host: "187" - port: "186" - timeoutSeconds: -1027661779 - resources: - limits: - '&啞川J缮ǚbJ': "99" - requests: - /淹\韲翁&ʢsɜ曢\%枅:=ǛƓ: "330" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - Ɋł/擇ɦĽ胚O醔ɍ厶耈  - drop: - - 衧ȇe媹H - privileged: false - procMount: ĵ - readOnlyRootFilesystem: true - runAsGroup: 2900848145000451690 - runAsNonRoot: false - runAsUser: 7459999274215055423 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - runAsUserName: "217" - startupProbe: - exec: - command: - - "188" - failureThreshold: -239847982 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "189" - port: "190" - scheme: ƅTG - initialDelaySeconds: 1233814916 - periodSeconds: 487826951 - successThreshold: 87018792 - tcpSocket: - host: "194" - port: -1629040033 - timeoutSeconds: 1632959949 - terminationMessagePath: "210" - terminationMessagePolicy: 蕭k ź贩j - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: 2啗塧ȱ蓿彭聡A3fƻfʣ繡楙¯ĦE勗 - name: "167" - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "359" - nodeSelector: - "355": "356" - overhead: - ɮ6): "299" - preemptionPolicy: 怨彬ɈNƋl塠傫ü - priority: -1286809305 - priorityClassName: "417" - readinessGates: - - conditionType: ųŎ群E牬庘颮6(|ǖû - restartPolicy: 媁荭gw忊 - runtimeClassName: "422" - schedulerName: "412" - securityContext: - fsGroup: -1212012606981050727 - runAsGroup: 2695823502041400376 - runAsNonRoot: false - runAsUser: 2651364835047718925 - seLinuxOptions: - level: "363" - role: "361" - type: "362" - user: "360" - supplementalGroups: - - -2910346974754087949 - sysctls: - - name: "367" - value: "368" - windowsOptions: - gmsaCredentialSpec: "365" - gmsaCredentialSpecName: "364" - runAsUserName: "366" - serviceAccount: "358" - serviceAccountName: "357" - shareProcessNamespace: false - subdomain: "371" - terminationGracePeriodSeconds: -4333562938396485230 - tolerations: - - effect: ŪǗȦɆ悼j蛑q - key: "413" - operator: 栣险¹贮獘薟8Mĕ霉 - tolerationSeconds: 4375148957048018073 - value: "414" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: nw0-3i--a7-2--o--u0038mp9c10-k-r---3g7nz4-------385h---0-u73pj.brgvf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--itk/5.m_2_--XZ-x.__.Y_2-n_5023Xl-3Pw_-r75--_A - operator: In - values: - - 7M7y-Dy__3wc.q.8_00.0_._.-_L-__bf_9_-C-Pfx - matchLabels: - o--5r-v-5-e-m78o-6-s.4-7--i1-8miw-7a-2408m-0--5--2-5----00/l_.23--_l: b-L7.-__-G_2kCpS__.3g - maxSkew: -554557703 - topologyKey: "423" - whenUnsatisfiable: ¹t骳ɰɰUʜʔŜ0¢ - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: -972874331 - volumeID: "46" - azureDisk: - cachingMode: 鎥ʟ<$洅ɹ7 - diskName: "110" - diskURI: "111" - fsType: "112" - kind: Þ - readOnly: false - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 938765968 - items: - - key: "99" - mode: -421817404 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: true - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: -331664193 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 848754324 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "110" - resource: "92" - emptyDir: - medium: 瓷雼浢Ü礽绅{囥 - sizeLimit: "721" - fc: - fsType: "94" - lun: -1341615783 - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: 1673568505 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: 龷ȪÆl - iscsi: - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: -1888506207 - portals: - - "60" - readOnly: true - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - volumeID: "128" - projected: - defaultMode: -1884322607 - sources: - - configMap: - items: - - key: "124" - mode: -1147975588 - path: "125" - name: "123" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1240667156 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "750" - resource: "122" - secret: - items: - - key: "116" - mode: 1550211208 - path: "117" - name: "115" - optional: false - serviceAccountToken: - audience: "126" - expirationSeconds: 2293771102284463819 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - readOnly: true - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - readOnly: true - secretRef: - name: "132" - sslEnabled: true - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 798972405 - items: - - key: "52" - mode: -1628457490 - path: "53" - optional: false - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - ttlSecondsAfterFinished: -1574276574 -status: - active: -125022959 - conditions: - - lastProbeTime: "2756-02-27T11:08:58Z" - lastTransitionTime: "2296-12-01T04:10:44Z" - message: "431" - reason: "430" - status: 昒 - type: ļė[BN柌ë娒汙查o*Ĵ麻齔試 - failed: 115522160 - succeeded: 186118994 diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.json b/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.json deleted file mode 100644 index 54dcdf673..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.json +++ /dev/null @@ -1,1446 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "schedule": "19", - "startingDeadlineSeconds": -2555947251840004808, - "concurrencyPolicy": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ", - "suspend": true, - "jobTemplate": { - "metadata": { - "name": "20", - "generateName": "21", - "namespace": "22", - "selfLink": "23", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 3798025802092444428, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -6114802437535409255, - "labels": { - "25": "26" - }, - "annotations": { - "27": "28" - }, - "ownerReferences": [ - { - "apiVersion": "29", - "kind": "30", - "name": "31", - "uid": "憍峕?狱³-Ǐ忄*", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "32" - ], - "clusterName": "33", - "managedFields": [ - { - "manager": "34", - "operation": "ȎțêɘIJ斬³;Ơ歿", - "apiVersion": "35", - "fieldsType": "36" - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "43", - "generateName": "44", - "namespace": "45", - "selfLink": "46", - "uid": "A", - "resourceVersion": "13282108741396501211", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "48": "49" - }, - "annotations": { - "50": "51" - }, - "ownerReferences": [ - { - "apiVersion": "52", - "kind": "53", - "name": "54", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "55" - ], - "clusterName": "56", - "managedFields": [ - { - "manager": "57", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "58", - "fieldsType": "59" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "60", - "hostPath": { - "path": "61", - "type": "j剐'宣I拍N嚳ķȗ" - }, - "emptyDir": { - "medium": "捵TwMȗ礼2ħ籦ö嗏ʑ\u003e季Cʖ畬", - "sizeLimit": "347" - }, - "gcePersistentDisk": { - "pdName": "62", - "fsType": "63", - "partition": 1399152294, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "64", - "fsType": "65", - "partition": -1853411528 - }, - "gitRepo": { - "repository": "66", - "revision": "67", - "directory": "68" - }, - "secret": { - "secretName": "69", - "items": [ - { - "key": "70", - "path": "71", - "mode": 1395607230 - } - ], - "defaultMode": -1852451720, - "optional": true - }, - "nfs": { - "server": "72", - "path": "73" - }, - "iscsi": { - "targetPortal": "74", - "iqn": "75", - "lun": -1483417237, - "iscsiInterface": "76", - "fsType": "77", - "portals": [ - "78" - ], - "secretRef": { - "name": "79" - }, - "initiatorName": "80" - }, - "glusterfs": { - "endpoints": "81", - "path": "82", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "83", - "readOnly": true - }, - "rbd": { - "monitors": [ - "84" - ], - "image": "85", - "fsType": "86", - "pool": "87", - "user": "88", - "keyring": "89", - "secretRef": { - "name": "90" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "91", - "fsType": "92", - "secretRef": { - "name": "93" - }, - "options": { - "94": "95" - } - }, - "cinder": { - "volumeID": "96", - "fsType": "97", - "secretRef": { - "name": "98" - } - }, - "cephfs": { - "monitors": [ - "99" - ], - "path": "100", - "user": "101", - "secretFile": "102", - "secretRef": { - "name": "103" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "104", - "datasetUUID": "105" - }, - "downwardAPI": { - "items": [ - { - "path": "106", - "fieldRef": { - "apiVersion": "107", - "fieldPath": "108" - }, - "resourceFieldRef": { - "containerName": "109", - "resource": "110", - "divisor": "52" - }, - "mode": -1011172037 - } - ], - "defaultMode": -1775926229 - }, - "fc": { - "targetWWNs": [ - "111" - ], - "lun": -740816174, - "fsType": "112", - "wwids": [ - "113" - ] - }, - "azureFile": { - "secretName": "114", - "shareName": "115" - }, - "configMap": { - "name": "116", - "items": [ - { - "key": "117", - "path": "118", - "mode": 1793473487 - } - ], - "defaultMode": -347579237, - "optional": false - }, - "vsphereVolume": { - "volumePath": "119", - "fsType": "120", - "storagePolicyName": "121", - "storagePolicyID": "122" - }, - "quobyte": { - "registry": "123", - "volume": "124", - "readOnly": true, - "user": "125", - "group": "126", - "tenant": "127" - }, - "azureDisk": { - "diskName": "128", - "diskURI": "129", - "cachingMode": "A3fƻfʣ繡楙¯", - "fsType": "130", - "readOnly": true, - "kind": "勗E濞偘1ɩÅ議Ǹ轺@)蓳嗘TʡȂ" - }, - "photonPersistentDisk": { - "pdID": "131", - "fsType": "132" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "133", - "items": [ - { - "key": "134", - "path": "135", - "mode": 550215822 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "136", - "fieldRef": { - "apiVersion": "137", - "fieldPath": "138" - }, - "resourceFieldRef": { - "containerName": "139", - "resource": "140", - "divisor": "618" - }, - "mode": 1525389481 - } - ] - }, - "configMap": { - "name": "141", - "items": [ - { - "key": "142", - "path": "143", - "mode": -1249460160 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "144", - "expirationSeconds": -8988970531898753887, - "path": "145" - } - } - ], - "defaultMode": -1332301579 - }, - "portworxVolume": { - "volumeID": "146", - "fsType": "147" - }, - "scaleIO": { - "gateway": "148", - "system": "149", - "secretRef": { - "name": "150" - }, - "protectionDomain": "151", - "storagePool": "152", - "storageMode": "153", - "volumeName": "154", - "fsType": "155", - "readOnly": true - }, - "storageos": { - "volumeName": "156", - "volumeNamespace": "157", - "fsType": "158", - "readOnly": true, - "secretRef": { - "name": "159" - } - }, - "csi": { - "driver": "160", - "readOnly": false, - "fsType": "161", - "volumeAttributes": { - "162": "163" - }, - "nodePublishSecretRef": { - "name": "164" - } - } - } - ], - "initContainers": [ - { - "name": "165", - "image": "166", - "command": [ - "167" - ], - "args": [ - "168" - ], - "workingDir": "169", - "ports": [ - { - "name": "170", - "hostPort": 1632959949, - "containerPort": 487826951, - "protocol": "ldg滠鼍ƭt?", - "hostIP": "171" - } - ], - "envFrom": [ - { - "prefix": "172", - "configMapRef": { - "name": "173", - "optional": false - }, - "secretRef": { - "name": "174", - "optional": false - } - } - ], - "env": [ - { - "name": "175", - "value": "176", - "valueFrom": { - "fieldRef": { - "apiVersion": "177", - "fieldPath": "178" - }, - "resourceFieldRef": { - "containerName": "179", - "resource": "180", - "divisor": "597" - }, - "configMapKeyRef": { - "name": "181", - "key": "182", - "optional": false - }, - "secretKeyRef": { - "name": "183", - "key": "184", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ÙæNǚ錯ƶRq": "575" - }, - "requests": { - "To\u0026蕭k ź": "644" - } - }, - "volumeMounts": [ - { - "name": "185", - "readOnly": true, - "mountPath": "186", - "subPath": "187", - "mountPropagation": "瑥A", - "subPathExpr": "188" - } - ], - "volumeDevices": [ - { - "name": "189", - "devicePath": "190" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "191" - ] - }, - "httpGet": { - "path": "192", - "port": "193", - "host": "194", - "scheme": "0åȂ町恰nj揠8lj", - "httpHeaders": [ - { - "name": "195", - "value": "196" - } - ] - }, - "tcpSocket": { - "port": -2049272966, - "host": "197" - }, - "initialDelaySeconds": -1188153605, - "timeoutSeconds": -427769948, - "periodSeconds": 912004803, - "successThreshold": -2098817064, - "failureThreshold": 1231820696 - }, - "readinessProbe": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": "200", - "host": "201", - "httpHeaders": [ - { - "name": "202", - "value": "203" - } - ] - }, - "tcpSocket": { - "port": 675406340, - "host": "204" - }, - "initialDelaySeconds": 994527057, - "timeoutSeconds": -1482763519, - "periodSeconds": -1346458591, - "successThreshold": 1234551517, - "failureThreshold": -1618937335 - }, - "startupProbe": { - "exec": { - "command": [ - "205" - ] - }, - "httpGet": { - "path": "206", - "port": "207", - "host": "208", - "scheme": "eÞȦY籎顒", - "httpHeaders": [ - { - "name": "209", - "value": "210" - } - ] - }, - "tcpSocket": { - "port": "211", - "host": "212" - }, - "initialDelaySeconds": -1252931244, - "timeoutSeconds": 1569992019, - "periodSeconds": 1061537, - "successThreshold": 322666556, - "failureThreshold": -814446577 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "213" - ] - }, - "httpGet": { - "path": "214", - "port": -1171060347, - "host": "215", - "scheme": "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°", - "httpHeaders": [ - { - "name": "216", - "value": "217" - } - ] - }, - "tcpSocket": { - "port": "218", - "host": "219" - } - }, - "preStop": { - "exec": { - "command": [ - "220" - ] - }, - "httpGet": { - "path": "221", - "port": -1319998825, - "host": "222", - "scheme": "銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ", - "httpHeaders": [ - { - "name": "223", - "value": "224" - } - ] - }, - "tcpSocket": { - "port": 1180382332, - "host": "225" - } - } - }, - "terminationMessagePath": "226", - "terminationMessagePolicy": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "imagePullPolicy": "儣廡ɑ龫`劳\u0026¼傭", - "securityContext": { - "capabilities": { - "add": [ - "酃=6}ɡŇƉ立hdz緄Ú|dk_瀹鞎" - ], - "drop": [ - "n芞QÄȻȊ+?ƭ峧Y栲茇竛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "227", - "role": "228", - "type": "229", - "level": "230" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "231", - "gmsaCredentialSpec": "232", - "runAsUserName": "233" - }, - "runAsUser": 4875570291212151521, - "runAsGroup": -593458796014416333, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "軶ǃ*ʙ嫙\u0026蒒5靇" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "234", - "image": "235", - "command": [ - "236" - ], - "args": [ - "237" - ], - "workingDir": "238", - "ports": [ - { - "name": "239", - "hostPort": 2126876305, - "containerPort": -2051962852, - "protocol": "貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲE'iþ", - "hostIP": "240" - } - ], - "envFrom": [ - { - "prefix": "241", - "configMapRef": { - "name": "242", - "optional": true - }, - "secretRef": { - "name": "243", - "optional": false - } - } - ], - "env": [ - { - "name": "244", - "value": "245", - "valueFrom": { - "fieldRef": { - "apiVersion": "246", - "fieldPath": "247" - }, - "resourceFieldRef": { - "containerName": "248", - "resource": "249", - "divisor": "109" - }, - "configMapKeyRef": { - "name": "250", - "key": "251", - "optional": false - }, - "secretKeyRef": { - "name": "252", - "key": "253", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "ŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "254", - "mountPath": "255", - "subPath": "256", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "257" - } - ], - "volumeDevices": [ - { - "name": "258", - "devicePath": "259" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": -342705708, - "host": "262", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "265" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": 474119379, - "host": "268", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "271" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "startupProbe": { - "exec": { - "command": [ - "272" - ] - }, - "httpGet": { - "path": "273", - "port": "274", - "host": "275", - "scheme": "¸", - "httpHeaders": [ - { - "name": "276", - "value": "277" - } - ] - }, - "tcpSocket": { - "port": "278", - "host": "279" - }, - "initialDelaySeconds": -161753937, - "timeoutSeconds": -1578746609, - "periodSeconds": 1428207963, - "successThreshold": 790462391, - "failureThreshold": -822090785 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "280" - ] - }, - "httpGet": { - "path": "281", - "port": -421846800, - "host": "282", - "scheme": "zvt莭琽§", - "httpHeaders": [ - { - "name": "283", - "value": "284" - } - ] - }, - "tcpSocket": { - "port": -763687725, - "host": "285" - } - }, - "preStop": { - "exec": { - "command": [ - "286" - ] - }, - "httpGet": { - "path": "287", - "port": -1452676801, - "host": "288", - "scheme": "ȿ0矀Kʝ", - "httpHeaders": [ - { - "name": "289", - "value": "290" - } - ] - }, - "tcpSocket": { - "port": "291", - "host": "292" - } - } - }, - "terminationMessagePath": "293", - "terminationMessagePolicy": "\\p[", - "imagePullPolicy": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "securityContext": { - "capabilities": { - "add": [ - "À*f\u003c鴒翁杙Ŧ癃8" - ], - "drop": [ - "ɱJȉ罴" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "294", - "role": "295", - "type": "296", - "level": "297" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "298", - "gmsaCredentialSpec": "299", - "runAsUserName": "300" - }, - "runAsUser": -2706913289057230267, - "runAsGroup": -3689959065086680033, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "301", - "image": "302", - "command": [ - "303" - ], - "args": [ - "304" - ], - "workingDir": "305", - "ports": [ - { - "name": "306", - "hostPort": 1853396726, - "containerPort": 1330271338, - "protocol": "逴", - "hostIP": "307" - } - ], - "envFrom": [ - { - "prefix": "308", - "configMapRef": { - "name": "309", - "optional": true - }, - "secretRef": { - "name": "310", - "optional": true - } - } - ], - "env": [ - { - "name": "311", - "value": "312", - "valueFrom": { - "fieldRef": { - "apiVersion": "313", - "fieldPath": "314" - }, - "resourceFieldRef": { - "containerName": "315", - "resource": "316", - "divisor": "709" - }, - "configMapKeyRef": { - "name": "317", - "key": "318", - "optional": false - }, - "secretKeyRef": { - "name": "319", - "key": "320", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "颐o": "230" - }, - "requests": { - "[+扴ȨŮ+朷Ǝ膯ljV": "728" - } - }, - "volumeMounts": [ - { - "name": "321", - "mountPath": "322", - "subPath": "323", - "mountPropagation": "ŕ-Ɂ圯W:ĸ輦唊#v铿", - "subPathExpr": "324" - } - ], - "volumeDevices": [ - { - "name": "325", - "devicePath": "326" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "327" - ] - }, - "httpGet": { - "path": "328", - "port": "329", - "host": "330", - "scheme": "屡ʁ", - "httpHeaders": [ - { - "name": "331", - "value": "332" - } - ] - }, - "tcpSocket": { - "port": -1554559634, - "host": "333" - }, - "initialDelaySeconds": 1718241831, - "timeoutSeconds": 550615941, - "periodSeconds": 1180971695, - "successThreshold": -1971944908, - "failureThreshold": 1742259603 - }, - "readinessProbe": { - "exec": { - "command": [ - "334" - ] - }, - "httpGet": { - "path": "335", - "port": -1620315711, - "host": "336", - "scheme": "ɐ扵", - "httpHeaders": [ - { - "name": "337", - "value": "338" - } - ] - }, - "tcpSocket": { - "port": "339", - "host": "340" - }, - "initialDelaySeconds": -1358663652, - "timeoutSeconds": 1543146222, - "periodSeconds": -527306221, - "successThreshold": 2098694289, - "failureThreshold": 1150925735 - }, - "startupProbe": { - "exec": { - "command": [ - "341" - ] - }, - "httpGet": { - "path": "342", - "port": "343", - "host": "344", - "scheme": "榝$î.Ȏ蝪ʜ5遰", - "httpHeaders": [ - { - "name": "345", - "value": "346" - } - ] - }, - "tcpSocket": { - "port": -1438286448, - "host": "347" - }, - "initialDelaySeconds": 834105836, - "timeoutSeconds": -1462219068, - "periodSeconds": -370386363, - "successThreshold": 1714588921, - "failureThreshold": -1246371817 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "348" - ] - }, - "httpGet": { - "path": "349", - "port": "350", - "host": "351", - "scheme": "跩aŕ翑", - "httpHeaders": [ - { - "name": "352", - "value": "353" - } - ] - }, - "tcpSocket": { - "port": "354", - "host": "355" - } - }, - "preStop": { - "exec": { - "command": [ - "356" - ] - }, - "httpGet": { - "path": "357", - "port": 1017803158, - "host": "358", - "scheme": "碔", - "httpHeaders": [ - { - "name": "359", - "value": "360" - } - ] - }, - "tcpSocket": { - "port": "361", - "host": "362" - } - } - }, - "terminationMessagePath": "363", - "terminationMessagePolicy": "Kƙ順\\E¦队偯J僳徥淳4揻-$ɽ丟", - "imagePullPolicy": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "securityContext": { - "capabilities": { - "add": [ - "ŧL²sNƗ¸gĩ餠籲磣Óƿ" - ], - "drop": [ - "\"冓鍓贯澔 ƺ蛜6" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "364", - "role": "365", - "type": "366", - "level": "367" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "368", - "gmsaCredentialSpec": "369", - "runAsUserName": "370" - }, - "runAsUser": 4353696140684277635, - "runAsGroup": 6057650398488995896, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "鰥Z龏´DÒȗ" - }, - "tty": true, - "targetContainerName": "371" - } - ], - "restartPolicy": "ɘɢ鬍熖B芭花ª瘡", - "terminationGracePeriodSeconds": 2666412258966278206, - "activeDeadlineSeconds": -8715915045560617563, - "dnsPolicy": "丆", - "nodeSelector": { - "372": "373" - }, - "serviceAccountName": "374", - "serviceAccount": "375", - "automountServiceAccountToken": false, - "nodeName": "376", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "377", - "role": "378", - "type": "379", - "level": "380" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "381", - "gmsaCredentialSpec": "382", - "runAsUserName": "383" - }, - "runAsUser": 2179199799235189619, - "runAsGroup": -779972051078659613, - "runAsNonRoot": false, - "supplementalGroups": [ - -7127205672279904050 - ], - "fsGroup": 7124276984274024394, - "sysctls": [ - { - "name": "384", - "value": "385" - } - ] - }, - "imagePullSecrets": [ - { - "name": "386" - } - ], - "hostname": "387", - "subdomain": "388", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "389", - "operator": "6x$1sȣ±p鋄5弢ȹ均i绝5哇芆", - "values": [ - "390" - ] - } - ], - "matchFields": [ - { - "key": "391", - "operator": "埮pɵ{WOŭW灬p", - "values": [ - "392" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 199049889, - "preference": { - "matchExpressions": [ - { - "key": "393", - "operator": "擭銆jʒǚ鍰\\縑", - "values": [ - "394" - ] - } - ], - "matchFields": [ - { - "key": "395", - "operator": "鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ", - "values": [ - "396" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS": "1Tvw39F_C-rtSY.g._2F7.-_e..r" - }, - "matchExpressions": [ - { - "key": "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1", - "operator": "NotIn", - "values": [ - "z" - ] - } - ] - }, - "namespaces": [ - "403" - ], - "topologyKey": "404" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -217760519, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6": "Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "411" - ], - "topologyKey": "412" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "419" - ], - "topologyKey": "420" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "427" - ], - "topologyKey": "428" - } - } - ] - } - }, - "schedulerName": "429", - "tolerations": [ - { - "key": "430", - "operator": "堺ʣ", - "value": "431", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "432", - "hostnames": [ - "433" - ] - } - ], - "priorityClassName": "434", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "435" - ], - "searches": [ - "436" - ], - "options": [ - { - "name": "437", - "value": "438" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "439", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "440", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "ttlSecondsAfterFinished": 920774957 - } - }, - "successfulJobsHistoryLimit": 1613009760, - "failedJobsHistoryLimit": 1560811691 - }, - "status": { - "active": [ - { - "kind": "447", - "namespace": "448", - "name": "449", - "uid": "Ŋ)TiD¢ƿ媴h", - "apiVersion": "450", - "resourceVersion": "451", - "fieldPath": "452" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.pb b/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.pb deleted file mode 100644 index 6ad978a63a28d0847399e9fc2c8c0a53cac470f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6568 zcmZWtd3;pWy`M87fcIIOUYE{iToHij^fG#tO(T_4O7cEP*U0fk4{6 zN61DJLiQCxNCJTnl8^bOiGB4PT0t15T+S12(yS-kz_-1 zBvSDMq9{mM5@gA)37V=13Kod==TG)sO3y!>p18oYymkNCjI6r14)>$=QyHYPNZUA# zL3Y+G3bEmgS;SVeNNo2-r5XKY<2k=hcILSX6C=&Q*QB8&vnZvRML7@6hNTMosJ|%B zD9iIVRy&VytBu3mj-Cy(-DSV^6sJdc`YK1W{}Z^W*eq&ng9u;P!+L8REsoEwI<6vX z_>v@ld*73u>fyNwPrvGK8%#(_@l+K!t49xba(iS~WjKm_Utn4gW5xn&#-i1XvCWK0 zW%q*Yx+dJ?>VFmj$-=t4>kmcM# zNB-IF-m@Pg+kY`zn4e*N`%1gW$H*^mdW=GJPA6PE2Y))*$?>|rT-SMZHMcrJmvk;l zO@h}AaSA8tYZr0)Dt6YZn>ftF>P7m>UAm5y7uM-3be`jvrflVPj$5fqQS;;2`7~mT^$evYcj?l{^#)98`9OFTLM? z@c2aC+?k&4EO(#!iZO7&am467?V z*-$2gNUAjq7-80|5KGfw`JvEoWP1=sBp8t`y?;4;;G4jehMOYqg<%DTRjXOi@T2f% zXYXUoDyTvgEkgx^)uEQJPhP(J0h+_WByd)V#k2riNClp%Z27qJ;=ru{Pn%g)BF(BQ znC6&OZJuex6j)?mXWD4iglPC!6Iru{EojA5cqU=eMgCla0=5Ni%@j*$`0>tUyE?5F80= z5d|WkG=@G%bXwkre#-FlRbd08Djn58b?`?ShyvYD#^L?9KB}E`hnD>n9YNjYp&77H z6vHl*zklSP0nuSU5yR==kCdQ$=``I*lr5$j^f*J$01=1s7wKN2W_kN&)#a&{Lw)sE z{&(_18qfoDp6-vS0GJAZ@hS8$3}ZrvB@3csawHH115rEC^K@3DvvzCPe6rcqzj>n3 z+gI;7UOmzdtBC+UGtcymYFyS;}_-=5SUSUQYJVfEj9(E84MXO3ndP@^P=efhza%;1_U$O21bDwV9l zq^v=l4oGAF5d8$E6d}w6#63JwV(cHputHsthnQaljsj6^5io!l_QUC>uy?+gxEi!; zE9IwP+le~}jwk@?9@M{pCN|MlB%Ok2N)Srt5s!fKSE$}+&| z;y1Y;qTn$!+XKF$R!`;dJkPG*+(y7+DWtV3x9hzVyNaO{oTJlEe{;vG)+)K)v2yww>RJKfz8J)Y|w z>;|?FurNepAk-i1)F13>xO4Q~VRyw?&lMD5qQGlj-FVHxfA*d<-ayeaJ&k!24bP;G zmAkv#J$A4mru_&NAqb`r3^9a& zdjeXKa2T>qK9Vp~0}6R1@fW9P7{fCCT()5zp6NlAs1h7n1^6)1 z8&H}`-A$z#^t%<5iE0mPZ~nA1XnK~yTUCWY)rbH2^L@>s5j}Ul{Ms!1b?nZ~V4|=- z+d)9V4f_RrTRRN6%-RyfwUcR>bj-)5ngqoy*EWIOKY7HYC;% z0>=XaA(W^PLWwG`0HUlj{R(Y0CFu-kny3&UiK>A{RJ$#NXhPT*=ZbzebSbm$5sNAO ztq=b8kHKtbel3ca__Q>4FsuI4jl#7IBkR)Nhbq3L*&9BAyCRyr0Q5`1LV;l5rjaxV z0Yp>wA)sm=rCJHkO%rfRhhNH7~_EBZ`Ofh-9aik;BpPwlk0}T+?YIC-E`)g&R zG{={h4b1EU3)zu?xrG^ZZHex)zh1k{*}B%7emarPV)mu!^;uv3l8t5_q00!%dP-aU zdD*cOC1W-If-|ppdyDBpiH)H1GCRY64RD-bTy_V*Z=aC63cHvWeS8VkJ)9!zFSYw=+@39G4uMpsIE|m%KezhQTB*g-_lY zw^@xzoxPKj<6?C?{~|9EiIX}0HDw9lQ9!gD2ZO71E{^Ax^Lv)BWM_!0cBK;gVtpZ( zl(O<=ehaVT#VUZ=7@kjJpJj-`?beeP+IfJ%oT6{%mvVT4zJ}*gHgA>qS2wIm)8U&` zE`itdwX3)nd7_JKD8Sq2~oAtU|E3$gMR zJ}oIJRpaE8WH`Xa#M#OskQwBP(eb~db`VPxK`bcHu9}(6%z9=n!>Wr(B8Hk_eq0pC z3-g!rBK!D!*nP3A@8(}vx=`SFE>0J?I8Iras4wMK^87Mx!FryLXRQqL(t3NMuJ8-_ znE$^O1PuwQuD_${x0=cef}oAPhM0E|vzQT;H6oX^8m>nd6h7v)?eZd>lQ@3e5{}=_ ztNad~TdO7T`tE3v+p&1QzK*azS|cpM9G|u%m0zO6U9MTh<|8In;5cCm_Zo+Bl9ak9 zM#g)%t*WGu9eWa!B}pS(0>_cfVj^6QMB-Dq9o%kh_L4Mxjm{_OyWo~$bWYV0bOmG* zMO{r?2R0Y?^Bue4YEtzSPUmG_5>}*2QFjgGp_JVlLB%nue>Tu(0K)o2y zjD)os1k~Pux&f((icHaqLg9=GKv2;lf!HxbK~WXL-n@M=Z>lBdjkkQr_JbXpws`uF z`UeVJttrpKGF7B-L{upURSCiok;WfU)hHYhRSM9w06>%NY7mZyG^B`t@F(GjNK>1r zNl-5E%#WG-9Mz7drQqZT+Fj>XyhdS%3>)0fFsl+C_m#J94|krYgNh_YQ-H0>5ZvJp zvWf_$!4z-t@%b1YwH4WjSxaNO2vJ6%fB0@p7wzCZqFu7xFF1~m@AH*F6c&9j%{rhD7|Sy{0m_ zTBvG2^ZP054C~y1Sb6{G6U?@RMfy^RMTn3IE#1@&OIV0u(wh*MSKOU^T z5@Jbjx;ZP11{UPjEeKr#~vyA+Zc6d4pWWR<@0 z$KaU*a6pu8vy75{Z)N3peVnU%kM~@!?x@j>!VG`^~0 zpY@>O0V8%cHn0^q65R?10Zrv4ci#85f}X}Ke_oT(bjIIbF<$D*ndu!U^A?;n(u+o` zeOafyr9Iw;;%D3e-D6tBU@T3l;alI0&M5&kU^y1Xm81ua%toWX-d*e;YWbCs*Y)_w zfU&PN?J#2IGmrYSGM-U>>#ld^xN^NM`CG@jygiwYn%`{Nu6y_P`HviAXT7hWzW%0-+>%&%OS8OidLX~0t9j>#*jlX5yC&XRM}kI^8PyuBTxXW zbRGWqk}u!;!A%r>zpww?SVrVTwb4@jxUZx{_SfbFunDb^FoE2O3E7L#_pk{xjDpxi zQ~{6#v5BYxs%}6(S>mtjGulrZCr>-ty`=-*1AFlt$GMmN=T6C~#*y>@ZV@5Rf*}c= zD2a&<=wFc8*>G@x>vvI!0KSd|&312$bRJ<}DF20>Ot!=9xsiDK;+oRR9qiUe$JD0!b8pSlI~(LdEf%%*Se+AYg$LIeB)9ycVK5bg=M? znAf+lA*s7ov&)z#B~FUsl6Y>ht|##cTX`PqJD+=QIiy{EslHX0mh9lx2|DK1vSvU5 zk3gzP)|F+PtgDc*Qvrm?kP9FY>-Lw{MwggxPGdfu1~Lg0!3h+>2?X$y%SR`hZ%wg<`1f|xNtH%*LT!RTDh?Ex1VRbCNi?bx5pD`PlCg+LSN2h0?ILs0@%G58Yu2=m}Cp7P{&kDqk5J>@yv<2vZeZXe5C zL+4ejMS~#|EYf;}K;!^IB7f{G=iKSW;r6w2Mtgk&P0*2jY?r@u7{jczBA$7kIspN< zrEn1X9FtB!pxY5bh+qpfI_f9Vsr3`;l?1#pSV?_S^Ipx}8i|gRuoGp?T~jStH(k(s zXg7+wrbKjSUb#3K&`a~L4NYC2Jh>kf`OxnmV7WBDzJ9I!b}$0d_)4Je4|NxLa?b{L zrRssU#dkhOX!C+dLfGN=i@y$@!177?M}G|sFTFmN8B8b<#l?T|O%qPs^c~?ifheANZ{nMW()B)lm&UvQ!3w!6$EN`7=aQI+R{mnc=B_dCGO+?hI2;K2}gy$ zGB4bJrpz-```Q}c$?UZKh#}0w&J#Z$=}cbgsvPOvGTQ7vcGTO^>1}Lul)8r52W&=m zslTAq*WKQ{1dB!j%@o)LibkS9dMAn+p7E)trRDQKpPdU~7-^{-fEiEE;L@SJfHm?a@X?moaqQ)6*q+3j4X4?!oK5b%8KUpy3YYrgWk# z#HyXNa=ybFL;|cqB+15lnrde{+W7Hh0hh=|yAhQyQ@{sOAjiTG-7rtkY zk{Wj7+Is~dmeJY|T*2{hXLrZjllJjV^+d;1q4IZ^TZ2&>IH{u6&{uLOXo&M#FXZ%u z2=6zQq)*jaI*$56tpaUnO3*F>0trr%>=3x~o?NvpYNWw6Y@F)e8W|$V0tO<^0fMb2 Ho9X`m?fR=? diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.yaml b/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.yaml deleted file mode 100644 index a432c8f72..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.CronJob.yaml +++ /dev/null @@ -1,989 +0,0 @@ -apiVersion: batch/v1beta1 -kind: CronJob -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - concurrencyPolicy: Hr鯹)晿5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "271" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ŤǢʭ嵔棂p儼Ƿ裚瓶: "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - À*f<鴒翁杙Ŧ癃8 - drop: - - ɱJȉ罴 - privileged: false - procMount: 棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅 - readOnlyRootFilesystem: false - runAsGroup: -3689959065086680033 - runAsNonRoot: false - runAsUser: -2706913289057230267 - seLinuxOptions: - level: "297" - role: "295" - type: "296" - user: "294" - windowsOptions: - gmsaCredentialSpec: "299" - gmsaCredentialSpecName: "298" - runAsUserName: "300" - startupProbe: - exec: - command: - - "272" - failureThreshold: -822090785 - httpGet: - host: "275" - httpHeaders: - - name: "276" - value: "277" - path: "273" - port: "274" - scheme: ¸ - initialDelaySeconds: -161753937 - periodSeconds: 1428207963 - successThreshold: 790462391 - tcpSocket: - host: "279" - port: "278" - timeoutSeconds: -1578746609 - stdinOnce: true - terminationMessagePath: "293" - terminationMessagePolicy: \p[ - volumeDevices: - - devicePath: "259" - name: "258" - volumeMounts: - - mountPath: "255" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "254" - subPath: "256" - subPathExpr: "257" - workingDir: "238" - dnsConfig: - nameservers: - - "435" - options: - - name: "437" - value: "438" - searches: - - "436" - dnsPolicy: 丆 - enableServiceLinks: false - ephemeralContainers: - - args: - - "304" - command: - - "303" - env: - - name: "311" - value: "312" - valueFrom: - configMapKeyRef: - key: "318" - name: "317" - optional: false - fieldRef: - apiVersion: "313" - fieldPath: "314" - resourceFieldRef: - containerName: "315" - divisor: "709" - resource: "316" - secretKeyRef: - key: "320" - name: "319" - optional: false - envFrom: - - configMapRef: - name: "309" - optional: true - prefix: "308" - secretRef: - name: "310" - optional: true - image: "302" - imagePullPolicy: 拉Œɥ颶妧Ö闊 鰔澝qV訆 - lifecycle: - postStart: - exec: - command: - - "348" - httpGet: - host: "351" - httpHeaders: - - name: "352" - value: "353" - path: "349" - port: "350" - scheme: 跩aŕ翑 - tcpSocket: - host: "355" - port: "354" - preStop: - exec: - command: - - "356" - httpGet: - host: "358" - httpHeaders: - - name: "359" - value: "360" - path: "357" - port: 1017803158 - scheme: 碔 - tcpSocket: - host: "362" - port: "361" - livenessProbe: - exec: - command: - - "327" - failureThreshold: 1742259603 - httpGet: - host: "330" - httpHeaders: - - name: "331" - value: "332" - path: "328" - port: "329" - scheme: 屡ʁ - initialDelaySeconds: 1718241831 - periodSeconds: 1180971695 - successThreshold: -1971944908 - tcpSocket: - host: "333" - port: -1554559634 - timeoutSeconds: 550615941 - name: "301" - ports: - - containerPort: 1330271338 - hostIP: "307" - hostPort: 1853396726 - name: "306" - protocol: 逴 - readinessProbe: - exec: - command: - - "334" - failureThreshold: 1150925735 - httpGet: - host: "336" - httpHeaders: - - name: "337" - value: "338" - path: "335" - port: -1620315711 - scheme: ɐ扵 - initialDelaySeconds: -1358663652 - periodSeconds: -527306221 - successThreshold: 2098694289 - tcpSocket: - host: "340" - port: "339" - timeoutSeconds: 1543146222 - resources: - limits: - 颐o: "230" - requests: - '[+扴ȨŮ+朷Ǝ膯ljV': "728" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ŧL²sNƗ¸gĩ餠籲磣Óƿ - drop: - - '"冓鍓贯澔 ƺ蛜6' - privileged: false - procMount: 鰥Z龏´DÒȗ - readOnlyRootFilesystem: true - runAsGroup: 6057650398488995896 - runAsNonRoot: true - runAsUser: 4353696140684277635 - seLinuxOptions: - level: "367" - role: "365" - type: "366" - user: "364" - windowsOptions: - gmsaCredentialSpec: "369" - gmsaCredentialSpecName: "368" - runAsUserName: "370" - startupProbe: - exec: - command: - - "341" - failureThreshold: -1246371817 - httpGet: - host: "344" - httpHeaders: - - name: "345" - value: "346" - path: "342" - port: "343" - scheme: 榝$î.Ȏ蝪ʜ5遰 - initialDelaySeconds: 834105836 - periodSeconds: -370386363 - successThreshold: 1714588921 - tcpSocket: - host: "347" - port: -1438286448 - timeoutSeconds: -1462219068 - targetContainerName: "371" - terminationMessagePath: "363" - terminationMessagePolicy: Kƙ順\E¦队偯J僳徥淳4揻-$ɽ丟 - tty: true - volumeDevices: - - devicePath: "326" - name: "325" - volumeMounts: - - mountPath: "322" - mountPropagation: ŕ-Ɂ圯W:ĸ輦唊#v铿 - name: "321" - subPath: "323" - subPathExpr: "324" - workingDir: "305" - hostAliases: - - hostnames: - - "433" - ip: "432" - hostPID: true - hostname: "387" - imagePullSecrets: - - name: "386" - initContainers: - - args: - - "168" - command: - - "167" - env: - - name: "175" - value: "176" - valueFrom: - configMapKeyRef: - key: "182" - name: "181" - optional: false - fieldRef: - apiVersion: "177" - fieldPath: "178" - resourceFieldRef: - containerName: "179" - divisor: "597" - resource: "180" - secretKeyRef: - key: "184" - name: "183" - optional: false - envFrom: - - configMapRef: - name: "173" - optional: false - prefix: "172" - secretRef: - name: "174" - optional: false - image: "166" - imagePullPolicy: 儣廡ɑ龫`劳&¼傭 - lifecycle: - postStart: - exec: - command: - - "213" - httpGet: - host: "215" - httpHeaders: - - name: "216" - value: "217" - path: "214" - port: -1171060347 - scheme: 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊° - tcpSocket: - host: "219" - port: "218" - preStop: - exec: - command: - - "220" - httpGet: - host: "222" - httpHeaders: - - name: "223" - value: "224" - path: "221" - port: -1319998825 - scheme: 銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ - tcpSocket: - host: "225" - port: 1180382332 - livenessProbe: - exec: - command: - - "191" - failureThreshold: 1231820696 - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "192" - port: "193" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "197" - port: -2049272966 - timeoutSeconds: -427769948 - name: "165" - ports: - - containerPort: 487826951 - hostIP: "171" - hostPort: 1632959949 - name: "170" - protocol: ldg滠鼍ƭt? - readinessProbe: - exec: - command: - - "198" - failureThreshold: -1618937335 - httpGet: - host: "201" - httpHeaders: - - name: "202" - value: "203" - path: "199" - port: "200" - initialDelaySeconds: 994527057 - periodSeconds: -1346458591 - successThreshold: 1234551517 - tcpSocket: - host: "204" - port: 675406340 - timeoutSeconds: -1482763519 - resources: - limits: - ÙæNǚ錯ƶRq: "575" - requests: - To&蕭k ź: "644" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 酃=6}ɡŇƉ立hdz緄Ú|dk_瀹鞎 - drop: - - n芞QÄȻȊ+?ƭ峧Y栲茇竛 - privileged: true - procMount: 軶ǃ*ʙ嫙&蒒5靇 - readOnlyRootFilesystem: false - runAsGroup: -593458796014416333 - runAsNonRoot: true - runAsUser: 4875570291212151521 - seLinuxOptions: - level: "230" - role: "228" - type: "229" - user: "227" - windowsOptions: - gmsaCredentialSpec: "232" - gmsaCredentialSpecName: "231" - runAsUserName: "233" - startupProbe: - exec: - command: - - "205" - failureThreshold: -814446577 - httpGet: - host: "208" - httpHeaders: - - name: "209" - value: "210" - path: "206" - port: "207" - scheme: eÞȦY籎顒 - initialDelaySeconds: -1252931244 - periodSeconds: 1061537 - successThreshold: 322666556 - tcpSocket: - host: "212" - port: "211" - timeoutSeconds: 1569992019 - stdin: true - stdinOnce: true - terminationMessagePath: "226" - terminationMessagePolicy: H韹寬娬ï瓼猀2:öY鶪5w垁 - volumeDevices: - - devicePath: "190" - name: "189" - volumeMounts: - - mountPath: "186" - mountPropagation: 瑥A - name: "185" - readOnly: true - subPath: "187" - subPathExpr: "188" - workingDir: "169" - nodeName: "376" - nodeSelector: - "372": "373" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "434" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɘɢ鬍熖B芭花ª瘡 - runtimeClassName: "439" - schedulerName: "429" - securityContext: - fsGroup: 7124276984274024394 - runAsGroup: -779972051078659613 - runAsNonRoot: false - runAsUser: 2179199799235189619 - seLinuxOptions: - level: "380" - role: "378" - type: "379" - user: "377" - supplementalGroups: - - -7127205672279904050 - sysctls: - - name: "384" - value: "385" - windowsOptions: - gmsaCredentialSpec: "382" - gmsaCredentialSpecName: "381" - runAsUserName: "383" - serviceAccount: "375" - serviceAccountName: "374" - shareProcessNamespace: true - subdomain: "388" - terminationGracePeriodSeconds: 2666412258966278206 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "430" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "431" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "440" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "65" - partition: -1853411528 - volumeID: "64" - azureDisk: - cachingMode: A3fƻfʣ繡楙¯ - diskName: "128" - diskURI: "129" - fsType: "130" - kind: 勗E濞偘1ɩÅ議Ǹ轺@)蓳嗘TʡȂ - readOnly: true - azureFile: - secretName: "114" - shareName: "115" - cephfs: - monitors: - - "99" - path: "100" - readOnly: true - secretFile: "102" - secretRef: - name: "103" - user: "101" - cinder: - fsType: "97" - secretRef: - name: "98" - volumeID: "96" - configMap: - defaultMode: -347579237 - items: - - key: "117" - mode: 1793473487 - path: "118" - name: "116" - optional: false - csi: - driver: "160" - fsType: "161" - nodePublishSecretRef: - name: "164" - readOnly: false - volumeAttributes: - "162": "163" - downwardAPI: - defaultMode: -1775926229 - items: - - fieldRef: - apiVersion: "107" - fieldPath: "108" - mode: -1011172037 - path: "106" - resourceFieldRef: - containerName: "109" - divisor: "52" - resource: "110" - emptyDir: - medium: 捵TwMȗ礼2ħ籦ö嗏ʑ>季Cʖ畬 - sizeLimit: "347" - fc: - fsType: "112" - lun: -740816174 - targetWWNs: - - "111" - wwids: - - "113" - flexVolume: - driver: "91" - fsType: "92" - options: - "94": "95" - secretRef: - name: "93" - flocker: - datasetName: "104" - datasetUUID: "105" - gcePersistentDisk: - fsType: "63" - partition: 1399152294 - pdName: "62" - readOnly: true - gitRepo: - directory: "68" - repository: "66" - revision: "67" - glusterfs: - endpoints: "81" - path: "82" - readOnly: true - hostPath: - path: "61" - type: j剐'宣I拍N嚳ķȗ - iscsi: - fsType: "77" - initiatorName: "80" - iqn: "75" - iscsiInterface: "76" - lun: -1483417237 - portals: - - "78" - secretRef: - name: "79" - targetPortal: "74" - name: "60" - nfs: - path: "73" - server: "72" - persistentVolumeClaim: - claimName: "83" - readOnly: true - photonPersistentDisk: - fsType: "132" - pdID: "131" - portworxVolume: - fsType: "147" - volumeID: "146" - projected: - defaultMode: -1332301579 - sources: - - configMap: - items: - - key: "142" - mode: -1249460160 - path: "143" - name: "141" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "137" - fieldPath: "138" - mode: 1525389481 - path: "136" - resourceFieldRef: - containerName: "139" - divisor: "618" - resource: "140" - secret: - items: - - key: "134" - mode: 550215822 - path: "135" - name: "133" - optional: false - serviceAccountToken: - audience: "144" - expirationSeconds: -8988970531898753887 - path: "145" - quobyte: - group: "126" - readOnly: true - registry: "123" - tenant: "127" - user: "125" - volume: "124" - rbd: - fsType: "86" - image: "85" - keyring: "89" - monitors: - - "84" - pool: "87" - readOnly: true - secretRef: - name: "90" - user: "88" - scaleIO: - fsType: "155" - gateway: "148" - protectionDomain: "151" - readOnly: true - secretRef: - name: "150" - storageMode: "153" - storagePool: "152" - system: "149" - volumeName: "154" - secret: - defaultMode: -1852451720 - items: - - key: "70" - mode: 1395607230 - path: "71" - optional: true - secretName: "69" - storageos: - fsType: "158" - readOnly: true - secretRef: - name: "159" - volumeName: "156" - volumeNamespace: "157" - vsphereVolume: - fsType: "120" - storagePolicyID: "122" - storagePolicyName: "121" - volumePath: "119" - ttlSecondsAfterFinished: 920774957 - schedule: "19" - startingDeadlineSeconds: -2555947251840004808 - successfulJobsHistoryLimit: 1613009760 - suspend: true -status: - active: - - apiVersion: "450" - fieldPath: "452" - kind: "447" - name: "449" - namespace: "448" - resourceVersion: "451" - uid: Ŋ)TiD¢ƿ媴h diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.json b/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.json deleted file mode 100644 index a99787f9d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.json +++ /dev/null @@ -1,1428 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "template": { - "metadata": { - "name": "19", - "generateName": "20", - "namespace": "21", - "selfLink": "22", - "uid": "SǡƏ", - "resourceVersion": "17916580954637291219", - "generation": 5259823216098853135, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 4075183944016503389, - "labels": { - "24": "25" - }, - "annotations": { - "26": "27" - }, - "ownerReferences": [ - { - "apiVersion": "28", - "kind": "29", - "name": "30", - "uid": "ɑ", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "31" - ], - "clusterName": "32", - "managedFields": [ - { - "manager": "33", - "operation": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "34", - "fieldsType": "35" - } - ] - }, - "spec": { - "parallelism": -443114323, - "completions": -1771909905, - "activeDeadlineSeconds": -9086179100394185427, - "backoffLimit": -1796008812, - "selector": { - "matchLabels": { - "g5i9/l-Y._.-444": "c2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am64" - }, - "matchExpressions": [ - { - "key": "2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5", - "operator": "In", - "values": [ - "Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "42", - "generateName": "43", - "namespace": "44", - "selfLink": "45", - "uid": "Ȗ脵鴈Ō", - "resourceVersion": "5994087412557504692", - "generation": 9213888658033954596, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2901856114738744973, - "labels": { - "47": "48" - }, - "annotations": { - "49": "50" - }, - "ownerReferences": [ - { - "apiVersion": "51", - "kind": "52", - "name": "53", - "uid": "I拍N嚳ķȗɊ捵TwMȗ礼", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "54" - ], - "clusterName": "55", - "managedFields": [ - { - "manager": "56", - "operation": "ö嗏ʑ\u003e季Cʖ畬x骀Šĸů", - "apiVersion": "57", - "fieldsType": "58" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "59", - "hostPath": { - "path": "60", - "type": "/淹\\韲翁\u0026ʢsɜ曢\\%枅:=ǛƓ" - }, - "emptyDir": { - "medium": "踓Ǻǧ湬淊kŪ睴鸏:ɥ³ƞsɁ8^ʥ", - "sizeLimit": "681" - }, - "gcePersistentDisk": { - "pdName": "61", - "fsType": "62", - "partition": 2065358741, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "63", - "fsType": "64", - "partition": -104666658, - "readOnly": true - }, - "gitRepo": { - "repository": "65", - "revision": "66", - "directory": "67" - }, - "secret": { - "secretName": "68", - "items": [ - { - "key": "69", - "path": "70", - "mode": 1648350164 - } - ], - "defaultMode": 1655406148, - "optional": true - }, - "nfs": { - "server": "71", - "path": "72" - }, - "iscsi": { - "targetPortal": "73", - "iqn": "74", - "lun": -663180249, - "iscsiInterface": "75", - "fsType": "76", - "readOnly": true, - "portals": [ - "77" - ], - "chapAuthSession": true, - "secretRef": { - "name": "78" - }, - "initiatorName": "79" - }, - "glusterfs": { - "endpoints": "80", - "path": "81" - }, - "persistentVolumeClaim": { - "claimName": "82" - }, - "rbd": { - "monitors": [ - "83" - ], - "image": "84", - "fsType": "85", - "pool": "86", - "user": "87", - "keyring": "88", - "secretRef": { - "name": "89" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "90", - "fsType": "91", - "secretRef": { - "name": "92" - }, - "readOnly": true, - "options": { - "93": "94" - } - }, - "cinder": { - "volumeID": "95", - "fsType": "96", - "readOnly": true, - "secretRef": { - "name": "97" - } - }, - "cephfs": { - "monitors": [ - "98" - ], - "path": "99", - "user": "100", - "secretFile": "101", - "secretRef": { - "name": "102" - } - }, - "flocker": { - "datasetName": "103", - "datasetUUID": "104" - }, - "downwardAPI": { - "items": [ - { - "path": "105", - "fieldRef": { - "apiVersion": "106", - "fieldPath": "107" - }, - "resourceFieldRef": { - "containerName": "108", - "resource": "109", - "divisor": "889" - }, - "mode": 1322858613 - } - ], - "defaultMode": 1801487647 - }, - "fc": { - "targetWWNs": [ - "110" - ], - "lun": 1169718433, - "fsType": "111", - "wwids": [ - "112" - ] - }, - "azureFile": { - "secretName": "113", - "shareName": "114" - }, - "configMap": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -1194714697 - } - ], - "defaultMode": -599608368, - "optional": true - }, - "vsphereVolume": { - "volumePath": "118", - "fsType": "119", - "storagePolicyName": "120", - "storagePolicyID": "121" - }, - "quobyte": { - "registry": "122", - "volume": "123", - "readOnly": true, - "user": "124", - "group": "125", - "tenant": "126" - }, - "azureDisk": { - "diskName": "127", - "diskURI": "128", - "cachingMode": "ʜǝ鿟ldg滠鼍ƭt", - "fsType": "129", - "readOnly": true, - "kind": "ȫşŇɜa" - }, - "photonPersistentDisk": { - "pdID": "130", - "fsType": "131" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 782113097 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "135", - "fieldRef": { - "apiVersion": "136", - "fieldPath": "137" - }, - "resourceFieldRef": { - "containerName": "138", - "resource": "139", - "divisor": "952" - }, - "mode": -555780268 - } - ] - }, - "configMap": { - "name": "140", - "items": [ - { - "key": "141", - "path": "142", - "mode": 1730325900 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "143", - "expirationSeconds": -2937394236764575757, - "path": "144" - } - } - ], - "defaultMode": -1980941277 - }, - "portworxVolume": { - "volumeID": "145", - "fsType": "146", - "readOnly": true - }, - "scaleIO": { - "gateway": "147", - "system": "148", - "secretRef": { - "name": "149" - }, - "sslEnabled": true, - "protectionDomain": "150", - "storagePool": "151", - "storageMode": "152", - "volumeName": "153", - "fsType": "154" - }, - "storageos": { - "volumeName": "155", - "volumeNamespace": "156", - "fsType": "157", - "readOnly": true, - "secretRef": { - "name": "158" - } - }, - "csi": { - "driver": "159", - "readOnly": true, - "fsType": "160", - "volumeAttributes": { - "161": "162" - }, - "nodePublishSecretRef": { - "name": "163" - } - } - } - ], - "initContainers": [ - { - "name": "164", - "image": "165", - "command": [ - "166" - ], - "args": [ - "167" - ], - "workingDir": "168", - "ports": [ - { - "name": "169", - "hostPort": 580681683, - "containerPort": 38897467, - "protocol": "h0åȂ町恰nj揠", - "hostIP": "170" - } - ], - "envFrom": [ - { - "prefix": "171", - "configMapRef": { - "name": "172", - "optional": false - }, - "secretRef": { - "name": "173", - "optional": true - } - } - ], - "env": [ - { - "name": "174", - "value": "175", - "valueFrom": { - "fieldRef": { - "apiVersion": "176", - "fieldPath": "177" - }, - "resourceFieldRef": { - "containerName": "178", - "resource": "179", - "divisor": "618" - }, - "configMapKeyRef": { - "name": "180", - "key": "181", - "optional": false - }, - "secretKeyRef": { - "name": "182", - "key": "183", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "缶.蒅!a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - }, - "requests": { - "T捘ɍi縱ù墴": "848" - } - }, - "volumeMounts": [ - { - "name": "184", - "readOnly": true, - "mountPath": "185", - "subPath": "186", - "mountPropagation": "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°", - "subPathExpr": "187" - } - ], - "volumeDevices": [ - { - "name": "188", - "devicePath": "189" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": -575512248, - "host": "192", - "scheme": "ɨ銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 1180382332, - "host": "195" - }, - "initialDelaySeconds": -1846991380, - "timeoutSeconds": 325236550, - "periodSeconds": -1398498492, - "successThreshold": -2035009296, - "failureThreshold": -559252309 - }, - "readinessProbe": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": 1403721475, - "host": "198", - "scheme": "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": -2064174383, - "host": "201" - }, - "initialDelaySeconds": -1327537699, - "timeoutSeconds": 483512911, - "periodSeconds": -1941847253, - "successThreshold": 1596028039, - "failureThreshold": 1427781619 - }, - "startupProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -337353552, - "host": "204", - "scheme": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -586068135, - "host": "207" - }, - "initialDelaySeconds": 1592489782, - "timeoutSeconds": 929367702, - "periodSeconds": -102814733, - "successThreshold": -152585895, - "failureThreshold": -2037320199 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": 1381010768, - "host": "210", - "scheme": "ö", - "httpHeaders": [ - { - "name": "211", - "value": "212" - } - ] - }, - "tcpSocket": { - "port": 1135182169, - "host": "213" - } - }, - "preStop": { - "exec": { - "command": [ - "214" - ] - }, - "httpGet": { - "path": "215", - "port": 1054302708, - "host": "216", - "httpHeaders": [ - { - "name": "217", - "value": "218" - } - ] - }, - "tcpSocket": { - "port": "219", - "host": "220" - } - } - }, - "terminationMessagePath": "221", - "terminationMessagePolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "imagePullPolicy": "ŴĿ", - "securityContext": { - "capabilities": { - "add": [ - "Áȉ彂Ŵ廷s{Ⱦdz@ùƸ" - ], - "drop": [ - "ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "222", - "role": "223", - "type": "224", - "level": "225" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "226", - "gmsaCredentialSpec": "227", - "runAsUserName": "228" - }, - "runAsUser": 6116261698850084527, - "runAsGroup": -8724223413734010757, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "邪匾mɩC[ó瓧嫭塓烀罁胾^拜Ȍ" - } - } - ], - "containers": [ - { - "name": "229", - "image": "230", - "command": [ - "231" - ], - "args": [ - "232" - ], - "workingDir": "233", - "ports": [ - { - "name": "234", - "hostPort": 427196286, - "containerPort": 1048864116, - "protocol": "/樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "hostIP": "235" - } - ], - "envFrom": [ - { - "prefix": "236", - "configMapRef": { - "name": "237", - "optional": true - }, - "secretRef": { - "name": "238", - "optional": false - } - } - ], - "env": [ - { - "name": "239", - "value": "240", - "valueFrom": { - "fieldRef": { - "apiVersion": "241", - "fieldPath": "242" - }, - "resourceFieldRef": { - "containerName": "243", - "resource": "244", - "divisor": "506" - }, - "configMapKeyRef": { - "name": "245", - "key": "246", - "optional": true - }, - "secretKeyRef": { - "name": "247", - "key": "248", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "ƻ悖ȩ0Ƹ[": "672" - }, - "requests": { - "": "988" - } - }, - "volumeMounts": [ - { - "name": "249", - "mountPath": "250", - "subPath": "251", - "mountPropagation": "髷裎$MVȟ@7飣奺Ȋ", - "subPathExpr": "252" - } - ], - "volumeDevices": [ - { - "name": "253", - "devicePath": "254" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "255" - ] - }, - "httpGet": { - "path": "256", - "port": -1180080716, - "host": "257", - "scheme": "Ȍ脾嚏吐ĠLƐȤ藠3.v-鿧悮", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": -161485752, - "host": "260" - }, - "initialDelaySeconds": 1524276356, - "timeoutSeconds": -521487971, - "periodSeconds": -1561418761, - "successThreshold": -1452676801, - "failureThreshold": -1171167638 - }, - "readinessProbe": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": 2141389898, - "host": "263", - "scheme": "皚|", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - }, - "initialDelaySeconds": 766864314, - "timeoutSeconds": 1146016612, - "periodSeconds": 1495880465, - "successThreshold": -1032967081, - "failureThreshold": 59664438 - }, - "startupProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": 163512962, - "host": "270", - "scheme": "Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ", - "httpHeaders": [ - { - "name": "271", - "value": "272" - } - ] - }, - "tcpSocket": { - "port": "273", - "host": "274" - }, - "initialDelaySeconds": 232569106, - "timeoutSeconds": -1150474479, - "periodSeconds": 744319626, - "successThreshold": -2107743490, - "failureThreshold": 1995332035 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": 630004123, - "host": "277", - "scheme": "ɾģ毋Ó6dz娝嘚", - "httpHeaders": [ - { - "name": "278", - "value": "279" - } - ] - }, - "tcpSocket": { - "port": -1213051101, - "host": "280" - } - }, - "preStop": { - "exec": { - "command": [ - "281" - ] - }, - "httpGet": { - "path": "282", - "port": -1905643191, - "host": "283", - "scheme": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "httpHeaders": [ - { - "name": "284", - "value": "285" - } - ] - }, - "tcpSocket": { - "port": "286", - "host": "287" - } - } - }, - "terminationMessagePath": "288", - "terminationMessagePolicy": "勅跦Opwǩ曬逴褜1Ø", - "imagePullPolicy": "Ǜv+8Ƥ熪军g\u003e郵[+扴ȨŮ+", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ljVX1虊谇j爻ƙt叀碧" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "289", - "role": "290", - "type": "291", - "level": "292" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "293", - "gmsaCredentialSpec": "294", - "runAsUserName": "295" - }, - "runAsUser": 77796669038602313, - "runAsGroup": -6641599652770442851, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ʁ岼昕ĬÇ" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "296", - "image": "297", - "command": [ - "298" - ], - "args": [ - "299" - ], - "workingDir": "300", - "ports": [ - { - "name": "301", - "hostPort": 2087800617, - "containerPort": -1491697472, - "protocol": "6", - "hostIP": "302" - } - ], - "envFrom": [ - { - "prefix": "303", - "configMapRef": { - "name": "304", - "optional": false - }, - "secretRef": { - "name": "305", - "optional": true - } - } - ], - "env": [ - { - "name": "306", - "value": "307", - "valueFrom": { - "fieldRef": { - "apiVersion": "308", - "fieldPath": "309" - }, - "resourceFieldRef": { - "containerName": "310", - "resource": "311", - "divisor": "879" - }, - "configMapKeyRef": { - "name": "312", - "key": "313", - "optional": true - }, - "secretKeyRef": { - "name": "314", - "key": "315", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "u|榝$î.Ȏ蝪ʜ5遰=E埄Ȁ": "114" - }, - "requests": { - "Ƭƶ氩Ȩ\u003c6": "446" - } - }, - "volumeMounts": [ - { - "name": "316", - "readOnly": true, - "mountPath": "317", - "subPath": "318", - "mountPropagation": "翑0展}硐庰%皧V垾", - "subPathExpr": "319" - } - ], - "volumeDevices": [ - { - "name": "320", - "devicePath": "321" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "322" - ] - }, - "httpGet": { - "path": "323", - "port": "324", - "host": "325", - "scheme": "E¦", - "httpHeaders": [ - { - "name": "326", - "value": "327" - } - ] - }, - "tcpSocket": { - "port": "328", - "host": "329" - }, - "initialDelaySeconds": 1868887309, - "timeoutSeconds": -528664199, - "periodSeconds": -316996074, - "successThreshold": 1933968533, - "failureThreshold": 549215478 - }, - "readinessProbe": { - "exec": { - "command": [ - "330" - ] - }, - "httpGet": { - "path": "331", - "port": -374766088, - "host": "332", - "scheme": "翜舞拉Œ", - "httpHeaders": [ - { - "name": "333", - "value": "334" - } - ] - }, - "tcpSocket": { - "port": "335", - "host": "336" - }, - "initialDelaySeconds": -190183379, - "timeoutSeconds": -940334911, - "periodSeconds": -341287812, - "successThreshold": 2030115750, - "failureThreshold": 1847163341 - }, - "startupProbe": { - "exec": { - "command": [ - "337" - ] - }, - "httpGet": { - "path": "338", - "port": 567263590, - "host": "339", - "scheme": "KŅ/", - "httpHeaders": [ - { - "name": "340", - "value": "341" - } - ] - }, - "tcpSocket": { - "port": "342", - "host": "343" - }, - "initialDelaySeconds": -1894250541, - "timeoutSeconds": 1962818731, - "periodSeconds": 1315054653, - "successThreshold": 711020087, - "failureThreshold": 1103049140 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "344" - ] - }, - "httpGet": { - "path": "345", - "port": -2128108224, - "host": "346", - "scheme": "δ摖", - "httpHeaders": [ - { - "name": "347", - "value": "348" - } - ] - }, - "tcpSocket": { - "port": "349", - "host": "350" - } - }, - "preStop": { - "exec": { - "command": [ - "351" - ] - }, - "httpGet": { - "path": "352", - "port": "353", - "host": "354", - "httpHeaders": [ - { - "name": "355", - "value": "356" - } - ] - }, - "tcpSocket": { - "port": "357", - "host": "358" - } - } - }, - "terminationMessagePath": "359", - "terminationMessagePolicy": "ƺ蛜6Ɖ飴ɎiǨź", - "imagePullPolicy": "囌{屿oiɥ嵐sC", - "securityContext": { - "capabilities": { - "add": [ - "Ǻ鱎ƙ;Nŕ" - ], - "drop": [ - "Jih亏yƕ丆録²" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "360", - "role": "361", - "type": "362", - "level": "363" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "364", - "gmsaCredentialSpec": "365", - "runAsUserName": "366" - }, - "runAsUser": -607313695104609402, - "runAsGroup": 2179199799235189619, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "砅邻爥蹔ŧOǨ繫ʎǑyZ涬P­" - }, - "stdin": true, - "stdinOnce": true, - "targetContainerName": "367" - } - ], - "restartPolicy": "幩šeSvEȤƏ埮pɵ", - "terminationGracePeriodSeconds": -3123571459188372202, - "activeDeadlineSeconds": 4755717378804967849, - "dnsPolicy": "ʐşƧ", - "nodeSelector": { - "368": "369" - }, - "serviceAccountName": "370", - "serviceAccount": "371", - "automountServiceAccountToken": true, - "nodeName": "372", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "373", - "role": "374", - "type": "375", - "level": "376" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "377", - "gmsaCredentialSpec": "378", - "runAsUserName": "379" - }, - "runAsUser": 1287380841622288898, - "runAsGroup": 2006200781539567705, - "runAsNonRoot": true, - "supplementalGroups": [ - 6618112330449141397 - ], - "fsGroup": -5265121980497361308, - "sysctls": [ - { - "name": "380", - "value": "381" - } - ] - }, - "imagePullSecrets": [ - { - "name": "382" - } - ], - "hostname": "383", - "subdomain": "384", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "385", - "operator": "餑噭DµņP)", - "values": [ - "386" - ] - } - ], - "matchFields": [ - { - "key": "387", - "operator": "ƷƣMț", - "values": [ - "388" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1588068441, - "preference": { - "matchExpressions": [ - { - "key": "389", - "operator": "W疪鑳w妕眵", - "values": [ - "390" - ] - } - ], - "matchFields": [ - { - "key": "391", - "operator": "躒訙Ǫʓ)ǂť嗆u8晲T[irȎ", - "values": [ - "392" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "W_0-8-.M-.-.-8v-J1zET_..3dCv3j._.-p": "H_up.2L_s-o779._-k-5___-Qq..csh-3--Z1v" - }, - "matchExpressions": [ - { - "key": "39d4im.2---2etfh41ca-z-5g2wco280/C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC97", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "399" - ], - "topologyKey": "400" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 2102595797, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/3bz._8M0U1_-__.71-_-9_._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "407" - ], - "topologyKey": "408" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "D-0": "P.-.C_--.5" - }, - "matchExpressions": [ - { - "key": "d4----q-x3w3dn5-1rhm-5y--z---69o-9-69mxv7.05-6-1xr-7---064eqk5--f4e4--r1k278l-d8/NN-S..O-BZ..6-1.S-BX", - "operator": "NotIn", - "values": [ - "1_xJ1-lFA_Xf3.V0H2-.zHw.H__7" - ] - } - ] - }, - "namespaces": [ - "415" - ], - "topologyKey": "416" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 754095416, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D": "Y_2-n_5023Xl-3Pw_-r7g" - }, - "matchExpressions": [ - { - "key": "3hjo--8kb6--ut---p8--3-e-3-44-e.w--i--40wv--in-870w--it6k47-7yd-y--3wc8q8/wrbW_E..24-O._.v._9-cz.-Y6T4g_-.._Lf2t_m...Cr", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "423" - ], - "topologyKey": "424" - } - } - ] - } - }, - "schedulerName": "425", - "tolerations": [ - { - "key": "426", - "operator": "z* 皗u疲fɎ嵄箲Ů埞瞔ɏÊ锒e躜", - "value": "427", - "effect": "ǣʛsĊ剞鮧軷șlļė[BN柌ë", - "tolerationSeconds": -9161243904952859304 - } - ], - "hostAliases": [ - { - "ip": "428", - "hostnames": [ - "429" - ] - } - ], - "priorityClassName": "430", - "priority": -966330786, - "dnsConfig": { - "nameservers": [ - "431" - ], - "searches": [ - "432" - ], - "options": [ - { - "name": "433", - "value": "434" - } - ] - }, - "readinessGates": [ - { - "conditionType": "齔試ŭ" - } - ], - "runtimeClassName": "435", - "enableServiceLinks": false, - "preemptionPolicy": "鬙Ǒȃ绡\u003e堵zŕƧ钖孝0蛮xAǫ", - "overhead": { - "tŧK剛Ʀ魨练脨,Ƃ3貊": "972" - }, - "topologySpreadConstraints": [ - { - "maxSkew": 2088809792, - "topologyKey": "436", - "whenUnsatisfiable": "縊CkǚŨ镦", - "labelSelector": { - "matchLabels": { - "rf-l67-9a-trt-03-7z2zy0e428-4-k2/kU27_.-4T-I.-..K.-.0__sD.-.-_I-FP": "q-JM" - }, - "matchExpressions": [ - { - "key": "RT.0zo", - "operator": "DoesNotExist" - } - ] - } - } - ] - } - }, - "ttlSecondsAfterFinished": 246849509 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.pb b/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.pb deleted file mode 100644 index cf8be183a20d5a6318f913c48a6d452c3a52746f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6506 zcmY*d349gR)z7>D!O?0Qm%cu2`+QZu7(0`hduOFpSuF-xWKo2EPFcd105J&(r0rL- z5%LJx7qUYFSs+2oz5r2@x5ZXz)z7Weew29&rIZRPRFv=BdEwJ9zhBO~bC+}OJ@?#m z{^umBsS)(U^!L`TNn5umE?rogkhVr(?u_5Qc6q|q_?x1K2F%-5@qJxrR zDFxjx2)u|yUJ^BxR~4C;5s%eRE@!`=wXZ%ad3MB-uDyLZc};KEk5H?o(Uiha>e?up z(in@tZ?V%B0og19cHBKT(-^7n=Kng?<#ZP($6A1Igi57Y1ToVhNKPsarpnACp%SN2 z;S9CZxEk3NMt$$tz?wK;#c%zkSuy^h>hV4Q3EUK95mcs3pc^Sz1dG7W1X)sfO%i3SAWcAmrWR-Sc#4j7+?o&DJ~w`G-&^jl-Ri38v;~R4L|RK) zGPIN}_d`pwSupRg_)23fNaZOtBE^D*ObbR%>T%kFF=HLC8_zcKtApjmE@!aLIbN_U zFpw7*tb~OkvS5k195=md=;O|BZowZF{m+_xJvYpzwQIPy?yLNduVzsW(D?%To{iFG zEiQ?DnbSE|6h%f|hxEi{n!qJU3s^lt#yYEGb{h*nI^Mx@y1qo$Ib{XAV!JNt>|7-U zKG$rOMP?O^5C^m7>C4h}9mxw;>Pvwswm(K!EM2L_M4&>BJ_TAA5n~at%_52pizvm? z-l|}3U#NGls}S8MX_^S8A__>76p0sQ4XKA4Kfls>uKb_B1I=GO|8~RKw&rsmP(<~j z0-RK$dJ%3?;hupd6J19G4ZWek;u*dpXL{U?slF`rm5C$FR60^t1zR+56&Q<*td*mG|1io z3_YUtFYoSqn;5|@%1*`J1>K;0S+-eZ1w9O3DswkbP=&%<-)p;7I?XzMv#WBNoti<@ z76q6p$Qm&lUW)?k6w%uD;rX$zO?D28BE?$ZiBdBxiZU}|=@gixuB6sl6fGVWt2|>- z1#868Y0yT|5v$;Js=!1QZ5CB>SX4RIqJoN4bq1_dwVBjf8*R~Gl_uDrM?@)bJAeqWpb&vad_*Qq8khkhW>bicC7%*w_R6GJ zvE56$RMOULuuN4o`{!3Kd@&`u$(jAhG$-|a7#H~HLpT1XYYIpZ1baj*{Gc-GE;2%R z3!*immU@yVQU!^5fcy~df?^%$X?K5R>dAUG;5;8znVo8;?kAIoSb^*tk$ofKDD@C@ zBLv+D!vWz(j0GYgAaXY)kWqzOBpi(Wa#J8~q~(LnrsUyVA%4ErvpOc#pZ7 zT=~BGHNzA+E9PMh7S5Pk7A5!)L4Okz2V?LOfT-l`f~bM6BL#^^K!h1U&}<+$9*DRk z;!ji=MdwoVL*_{_VxnOUcqAaA)z^Lfn#E2r0v$(s!%D_P4LGc1OiqhUC2JD0zjyiT zFT(1uh53oR$xjqunux50pE!rW{=kIc6GvZt=X!SemD0u!C{ULuMz>t=edoHV*pDeI zOp(Z`BpC)J1r9+@BdO=9ACq4#nk76JV-ADugN@xP~9 z8?GMB4@V^Xm!9G3f16WcM*r0IR=CMu{JrasVd<+j(sRu1!Cl3G02whfaGuy(_;r-I zGZ{Ok1Zr!4V~U6115+gMes@f#Oclsrbx2mChd+4#9~SF{){*8Z_R`iPzNs-Ed^lKs z)0E8jpB;L5Z68IyWJ*#bMg~cWY)Y!@>FufP zA;(s3AG@W|cj~t8pdY;6DwDA)FwX#E6`30Loo~Mywpx?BiX9JnDt$e^0d1_%=xsVP z8aUAEs|pNMni5oUGWEMBQ_0CxWeX5BxHocM~SaO5@9Kc z-Bb=mhgAr{iKq~w(;Z+1*?Bh?hOdTqJnR}Wc2_U+*OVFk)hotIbocRD{))qKzCmA+ zJ$y;z*(vBd#sL8gdc^3m&pz8`Eq%N9lklzCo$r5s-V*bT>qc4lg7~qXp@Asdea29S z>rle7^m*RH?qZ|qc(Sk0URB#LezBnc-S?=Nj(2^hk6gcWYZjU|QQ~THw?V*+#IR)` z+U!WI@bN%|r9jY1>Q~gJh?H00J;NvL11q39tVj+Za&-2!_CJ66=B3N`S}A+w*ZqI3 z9V@xCI_5&*#fz@XhraBm_>a!kHTE{0`};$t3^1`stO~Q?9oqIvoUWK?3l7dl*O)O5`~)92c=Nyl3VG)-n6pReyo=FszcD!W}#G=P+e048;vec@G(TbH_t#Vor@NN1MO&tYx7 zxOppwSe8WzX&W|)!n!qVCM#`38SA#g!;G85rlc)`pypj;1iv=Iz{^nwAQxCE!BjdFDN8`um4|e=&-Ai=t0cbSAx0+N!d`P6)fK zwq9jZ6*f&_S&U^?5E9imyf%~5)rI^Dfgos35dcYRI;XE>=fd_9IZk*%;q)Yq(_i3Z z?m5`8u5sxcaA1CfsiH&Zl3r@1W8 z&`Ut(9Dwbd#1v9=!g`TNewE#cGw}Lt5-X%^+R941SWqj=%G!2T1G;r*y29}i3rF9X zLL{=hEGE2~D6#AYF#$NF2#H8hli2lY+@eM7GSE6ZdlkpQd~O*#dnGe<(e^aR2Obvm zo$&&j^z1Bs`paqey0AS&ZX$-a4!iu ztEk&`8MY+|x{|ySjBo4nNjo`?%h1yxACWkbUz#D#Wgd80N9;Bopb}o0#Ns6xI-8>_a@54NGRy8r13e_GAeK#le^F!;xD1xv3>)Ax(xI`9RTZA}q{)e*!YaGg zv!GX;u}*zejmt<``;tD7!TdGJRufs_4Quq^M9HAX|n;$Qjuv&K&ZcNYc+kA`v!6UG|7 ztuF^&FA5zhV*u_0NV3xREcfp};M>1BF!=h|kkQ;rK#(e`@lU}9RMEtGkXS%lj(yB1 z8wpfbdk<}O_wEYx59(vJs!^O1$~x&fwq$-F`?$ZzdFBLyxysUm6rDr@mH?h?3HcGs zknKI=`^O|s1yCet$nhV(_K>sHXgv`csq&V)^B)bItO)GyGqOs?Yl3;5f%1VsbLmsQ z0uq1(5+MbMkoVFA!rTmA>YhSyk)TP@m)<&DJeiogFFWff`*?quF^P+={OfGrWE?tn zqvP}N23D0&^oH;jWo8~>u9$Eo=XhtsR1y=R*x-1?bHYE|ep^o6P#ybYm}J|nlq z7&+uC4V^yrE5q3n-WLh{JU*AyA z)&^4-2$HC0Odf*BJPJG@ha$?lHg@idNHf$6vLhnQfq-H#tZ%U%6k-6s^IL!jDN|g% zHfhc<;-Da{TBCY z<5m8X2UZycwf@Te{3J3WSr{Tu2q6)W5t8h$bsd>_^Xhw7mQNz1uMS?Txq9&ZFZNLJ zkAytoZW#_S;3ssulV=Xdkam-1f?F}296gY)r3qD zw;_`NdA5m@pwt97cCv}1AzQpJIMVOQiJho1j@3LKEGv^j4f!Tq5+Fi@^=jQz6-93h zUj$;FB^QBB^F84!{WJ`_O-=HmU?{Q^k865W5f>&vOus{Iusk@l+}+?*^d#C-Hw;{XBIwC|W1IN2v$Bm}OKx2ikc+459C`$+q*Auq| zxre7^qAqpZX%sYuj<*Fz2D~*%<0r?fSI=JLZz>!+7W1KVBKMuvozp|7DuNxYuC9w@sdR;k z_&4=PsI$gX>dgs^9D3R~*q7<5bhm}ds*J7%K3I2r=Pb{$Y>R{bL7J;=fl*NBZVh#{ z2S##&x$Qr7XX9YE)6C2i5r`FXTs%&+vr{n3_DI3@% zSz)y`Y+6bh%VSo_M47wz1UL>WvWX}zaRpK!42jFx=O8L`3xM#to;nwPS^YWo*(J=B zSK0W5%!Bl_rOP=!bNl}f1Z9?YqG(SPScFC_Pa~EGZUTrF8;N-y{RmJSJot`A*WaS7 zZ)ANu7XH91ryhEXc&eV?hDXEU2*$21ZMHKf|8Bzi-BJsP%V`^~{a=O*R14&-{H_&;1V zu1s6IpHy_oX`znGlOM_4z#9{d1-D&0oLQ6|QDa4Cdi|wUrf^dJ!BGDB_S{eqjl>eq zJZ&MOx9cUsQBt=6(Ndy~y24)@ua9ou>^oxg zm88ze+)L4R`cBVq==CCZ&CeFODw%uZH*dNyT)fL&d0}u*sIdD?H+VmiB0-51hydbb z1h*|?`<}K_Z&d%|fbUC^ol=mUUhOY=}humo6Z*_vOy$tQ=7sC3yc*~u)t92A_2^wJz8Xz5ir&qQx>@L;=(E?t3*<+ zy{%HH3qcQ#ez*9q*TZ*ZJ$B=ITa^8jckk6HF$48^?^^iYzunwFh3sBYD>{DP7Df&; NjnR*H*diPe{|loefd~Kq diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.yaml b/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.yaml deleted file mode 100644 index 5cc07467e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v1beta1.JobTemplate.yaml +++ /dev/null @@ -1,976 +0,0 @@ -apiVersion: batch/v1beta1 -kind: JobTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -template: - metadata: - annotations: - "26": "27" - clusterName: "32" - creationTimestamp: null - deletionGracePeriodSeconds: 4075183944016503389 - finalizers: - - "31" - generateName: "20" - generation: 5259823216098853135 - labels: - "24": "25" - managedFields: - - apiVersion: "34" - fieldsType: "35" - manager: "33" - operation: ěĂ凗蓏Ŋ蛊ĉy緅縕 - name: "19" - namespace: "21" - ownerReferences: - - apiVersion: "28" - blockOwnerDeletion: false - controller: true - kind: "29" - name: "30" - uid: ɑ - resourceVersion: "17916580954637291219" - selfLink: "22" - uid: SǡƏ - spec: - activeDeadlineSeconds: -9086179100394185427 - backoffLimit: -1796008812 - completions: -1771909905 - manualSelector: false - parallelism: -443114323 - selector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - g5i9/l-Y._.-444: c2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am64 - template: - metadata: - annotations: - "49": "50" - clusterName: "55" - creationTimestamp: null - deletionGracePeriodSeconds: -2901856114738744973 - finalizers: - - "54" - generateName: "43" - generation: 9213888658033954596 - labels: - "47": "48" - managedFields: - - apiVersion: "57" - fieldsType: "58" - manager: "56" - operation: ö嗏ʑ>季Cʖ畬x骀Šĸů - name: "42" - namespace: "44" - ownerReferences: - - apiVersion: "51" - blockOwnerDeletion: false - controller: false - kind: "52" - name: "53" - uid: I拍N嚳ķȗɊ捵TwMȗ礼 - resourceVersion: "5994087412557504692" - selfLink: "45" - uid: Ȗ脵鴈Ō - spec: - activeDeadlineSeconds: 4755717378804967849 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "389" - operator: W疪鑳w妕眵 - values: - - "390" - matchFields: - - key: "391" - operator: 躒訙Ǫʓ)ǂť嗆u8晲T[irȎ - values: - - "392" - weight: -1588068441 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "385" - operator: 餑噭DµņP) - values: - - "386" - matchFields: - - key: "387" - operator: ƷƣMț - values: - - "388" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/3bz._8M0U1_-__.71-_-9_._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "407" - topologyKey: "408" - weight: 2102595797 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 39d4im.2---2etfh41ca-z-5g2wco280/C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC97 - operator: Exists - matchLabels: - W_0-8-.M-.-.-8v-J1zET_..3dCv3j._.-p: H_up.2L_s-o779._-k-5___-Qq..csh-3--Z1v - namespaces: - - "399" - topologyKey: "400" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3hjo--8kb6--ut---p8--3-e-3-44-e.w--i--40wv--in-870w--it6k47-7yd-y--3wc8q8/wrbW_E..24-O._.v._9-cz.-Y6T4g_-.._Lf2t_m...Cr - operator: DoesNotExist - matchLabels: - 0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D: Y_2-n_5023Xl-3Pw_-r7g - namespaces: - - "423" - topologyKey: "424" - weight: 754095416 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d4----q-x3w3dn5-1rhm-5y--z---69o-9-69mxv7.05-6-1xr-7---064eqk5--f4e4--r1k278l-d8/NN-S..O-BZ..6-1.S-BX - operator: NotIn - values: - - 1_xJ1-lFA_Xf3.V0H2-.zHw.H__7 - matchLabels: - D-0: P.-.C_--.5 - namespaces: - - "415" - topologyKey: "416" - automountServiceAccountToken: true - containers: - - args: - - "232" - command: - - "231" - env: - - name: "239" - value: "240" - valueFrom: - configMapKeyRef: - key: "246" - name: "245" - optional: true - fieldRef: - apiVersion: "241" - fieldPath: "242" - resourceFieldRef: - containerName: "243" - divisor: "506" - resource: "244" - secretKeyRef: - key: "248" - name: "247" - optional: true - envFrom: - - configMapRef: - name: "237" - optional: true - prefix: "236" - secretRef: - name: "238" - optional: false - image: "230" - imagePullPolicy: Ǜv+8Ƥ熪军g>郵[+扴ȨŮ+ - lifecycle: - postStart: - exec: - command: - - "275" - httpGet: - host: "277" - httpHeaders: - - name: "278" - value: "279" - path: "276" - port: 630004123 - scheme: ɾģ毋Ó6dz娝嘚 - tcpSocket: - host: "280" - port: -1213051101 - preStop: - exec: - command: - - "281" - httpGet: - host: "283" - httpHeaders: - - name: "284" - value: "285" - path: "282" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - tcpSocket: - host: "287" - port: "286" - livenessProbe: - exec: - command: - - "255" - failureThreshold: -1171167638 - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "256" - port: -1180080716 - scheme: Ȍ脾嚏吐ĠLƐȤ藠3.v-鿧悮 - initialDelaySeconds: 1524276356 - periodSeconds: -1561418761 - successThreshold: -1452676801 - tcpSocket: - host: "260" - port: -161485752 - timeoutSeconds: -521487971 - name: "229" - ports: - - containerPort: 1048864116 - hostIP: "235" - hostPort: 427196286 - name: "234" - protocol: /樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - readinessProbe: - exec: - command: - - "261" - failureThreshold: 59664438 - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "262" - port: 2141389898 - scheme: 皚| - initialDelaySeconds: 766864314 - periodSeconds: 1495880465 - successThreshold: -1032967081 - tcpSocket: - host: "267" - port: "266" - timeoutSeconds: 1146016612 - resources: - limits: - ƻ悖ȩ0Ƹ[: "672" - requests: - "": "988" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ljVX1虊谇j爻ƙt叀碧 - privileged: true - procMount: ʁ岼昕ĬÇ - readOnlyRootFilesystem: false - runAsGroup: -6641599652770442851 - runAsNonRoot: true - runAsUser: 77796669038602313 - seLinuxOptions: - level: "292" - role: "290" - type: "291" - user: "289" - windowsOptions: - gmsaCredentialSpec: "294" - gmsaCredentialSpecName: "293" - runAsUserName: "295" - startupProbe: - exec: - command: - - "268" - failureThreshold: 1995332035 - httpGet: - host: "270" - httpHeaders: - - name: "271" - value: "272" - path: "269" - port: 163512962 - scheme: 'Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ' - initialDelaySeconds: 232569106 - periodSeconds: 744319626 - successThreshold: -2107743490 - tcpSocket: - host: "274" - port: "273" - timeoutSeconds: -1150474479 - stdinOnce: true - terminationMessagePath: "288" - terminationMessagePolicy: 勅跦Opwǩ曬逴褜1Ø - volumeDevices: - - devicePath: "254" - name: "253" - volumeMounts: - - mountPath: "250" - mountPropagation: 髷裎$MVȟ@7飣奺Ȋ - name: "249" - subPath: "251" - subPathExpr: "252" - workingDir: "233" - dnsConfig: - nameservers: - - "431" - options: - - name: "433" - value: "434" - searches: - - "432" - dnsPolicy: ʐşƧ - enableServiceLinks: false - ephemeralContainers: - - args: - - "299" - command: - - "298" - env: - - name: "306" - value: "307" - valueFrom: - configMapKeyRef: - key: "313" - name: "312" - optional: true - fieldRef: - apiVersion: "308" - fieldPath: "309" - resourceFieldRef: - containerName: "310" - divisor: "879" - resource: "311" - secretKeyRef: - key: "315" - name: "314" - optional: false - envFrom: - - configMapRef: - name: "304" - optional: false - prefix: "303" - secretRef: - name: "305" - optional: true - image: "297" - imagePullPolicy: 囌{屿oiɥ嵐sC - lifecycle: - postStart: - exec: - command: - - "344" - httpGet: - host: "346" - httpHeaders: - - name: "347" - value: "348" - path: "345" - port: -2128108224 - scheme: δ摖 - tcpSocket: - host: "350" - port: "349" - preStop: - exec: - command: - - "351" - httpGet: - host: "354" - httpHeaders: - - name: "355" - value: "356" - path: "352" - port: "353" - tcpSocket: - host: "358" - port: "357" - livenessProbe: - exec: - command: - - "322" - failureThreshold: 549215478 - httpGet: - host: "325" - httpHeaders: - - name: "326" - value: "327" - path: "323" - port: "324" - scheme: E¦ - initialDelaySeconds: 1868887309 - periodSeconds: -316996074 - successThreshold: 1933968533 - tcpSocket: - host: "329" - port: "328" - timeoutSeconds: -528664199 - name: "296" - ports: - - containerPort: -1491697472 - hostIP: "302" - hostPort: 2087800617 - name: "301" - protocol: "6" - readinessProbe: - exec: - command: - - "330" - failureThreshold: 1847163341 - httpGet: - host: "332" - httpHeaders: - - name: "333" - value: "334" - path: "331" - port: -374766088 - scheme: 翜舞拉Œ - initialDelaySeconds: -190183379 - periodSeconds: -341287812 - successThreshold: 2030115750 - tcpSocket: - host: "336" - port: "335" - timeoutSeconds: -940334911 - resources: - limits: - u|榝$î.Ȏ蝪ʜ5遰=E埄Ȁ: "114" - requests: - Ƭƶ氩Ȩ<6: "446" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - Ǻ鱎ƙ;Nŕ - drop: - - Jih亏yƕ丆録² - privileged: false - procMount: 砅邻爥蹔ŧOǨ繫ʎǑyZ涬P­ - readOnlyRootFilesystem: true - runAsGroup: 2179199799235189619 - runAsNonRoot: true - runAsUser: -607313695104609402 - seLinuxOptions: - level: "363" - role: "361" - type: "362" - user: "360" - windowsOptions: - gmsaCredentialSpec: "365" - gmsaCredentialSpecName: "364" - runAsUserName: "366" - startupProbe: - exec: - command: - - "337" - failureThreshold: 1103049140 - httpGet: - host: "339" - httpHeaders: - - name: "340" - value: "341" - path: "338" - port: 567263590 - scheme: KŅ/ - initialDelaySeconds: -1894250541 - periodSeconds: 1315054653 - successThreshold: 711020087 - tcpSocket: - host: "343" - port: "342" - timeoutSeconds: 1962818731 - stdin: true - stdinOnce: true - targetContainerName: "367" - terminationMessagePath: "359" - terminationMessagePolicy: ƺ蛜6Ɖ飴ɎiǨź - volumeDevices: - - devicePath: "321" - name: "320" - volumeMounts: - - mountPath: "317" - mountPropagation: 翑0展}硐庰%皧V垾 - name: "316" - readOnly: true - subPath: "318" - subPathExpr: "319" - workingDir: "300" - hostAliases: - - hostnames: - - "429" - ip: "428" - hostNetwork: true - hostPID: true - hostname: "383" - imagePullSecrets: - - name: "382" - initContainers: - - args: - - "167" - command: - - "166" - env: - - name: "174" - value: "175" - valueFrom: - configMapKeyRef: - key: "181" - name: "180" - optional: false - fieldRef: - apiVersion: "176" - fieldPath: "177" - resourceFieldRef: - containerName: "178" - divisor: "618" - resource: "179" - secretKeyRef: - key: "183" - name: "182" - optional: false - envFrom: - - configMapRef: - name: "172" - optional: false - prefix: "171" - secretRef: - name: "173" - optional: true - image: "165" - imagePullPolicy: ŴĿ - lifecycle: - postStart: - exec: - command: - - "208" - httpGet: - host: "210" - httpHeaders: - - name: "211" - value: "212" - path: "209" - port: 1381010768 - scheme: ö - tcpSocket: - host: "213" - port: 1135182169 - preStop: - exec: - command: - - "214" - httpGet: - host: "216" - httpHeaders: - - name: "217" - value: "218" - path: "215" - port: 1054302708 - tcpSocket: - host: "220" - port: "219" - livenessProbe: - exec: - command: - - "190" - failureThreshold: -559252309 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: -575512248 - scheme: ɨ銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ - initialDelaySeconds: -1846991380 - periodSeconds: -1398498492 - successThreshold: -2035009296 - tcpSocket: - host: "195" - port: 1180382332 - timeoutSeconds: 325236550 - name: "164" - ports: - - containerPort: 38897467 - hostIP: "170" - hostPort: 580681683 - name: "169" - protocol: h0åȂ町恰nj揠 - readinessProbe: - exec: - command: - - "196" - failureThreshold: 1427781619 - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "197" - port: 1403721475 - scheme: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - initialDelaySeconds: -1327537699 - periodSeconds: -1941847253 - successThreshold: 1596028039 - tcpSocket: - host: "201" - port: -2064174383 - timeoutSeconds: 483512911 - resources: - limits: - 缶.蒅!a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - requests: - T捘ɍi縱ù墴: "848" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - Áȉ彂Ŵ廷s{Ⱦdz@ùƸ - drop: - - ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0 - privileged: true - procMount: 邪匾mɩC[ó瓧嫭塓烀罁胾^拜Ȍ - readOnlyRootFilesystem: false - runAsGroup: -8724223413734010757 - runAsNonRoot: true - runAsUser: 6116261698850084527 - seLinuxOptions: - level: "225" - role: "223" - type: "224" - user: "222" - windowsOptions: - gmsaCredentialSpec: "227" - gmsaCredentialSpecName: "226" - runAsUserName: "228" - startupProbe: - exec: - command: - - "202" - failureThreshold: -2037320199 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -337353552 - scheme: ɖȃ賲鐅臬dH巧壚tC十Oɢ - initialDelaySeconds: 1592489782 - periodSeconds: -102814733 - successThreshold: -152585895 - tcpSocket: - host: "207" - port: -586068135 - timeoutSeconds: 929367702 - terminationMessagePath: "221" - terminationMessagePolicy: 軶ǃ*ʙ嫙&蒒5靇 - volumeDevices: - - devicePath: "189" - name: "188" - volumeMounts: - - mountPath: "185" - mountPropagation: 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊° - name: "184" - readOnly: true - subPath: "186" - subPathExpr: "187" - workingDir: "168" - nodeName: "372" - nodeSelector: - "368": "369" - overhead: - tŧK剛Ʀ魨练脨,Ƃ3貊: "972" - preemptionPolicy: 鬙Ǒȃ绡>堵zŕƧ钖孝0蛮xAǫ - priority: -966330786 - priorityClassName: "430" - readinessGates: - - conditionType: 齔試ŭ - restartPolicy: 幩šeSvEȤƏ埮pɵ - runtimeClassName: "435" - schedulerName: "425" - securityContext: - fsGroup: -5265121980497361308 - runAsGroup: 2006200781539567705 - runAsNonRoot: true - runAsUser: 1287380841622288898 - seLinuxOptions: - level: "376" - role: "374" - type: "375" - user: "373" - supplementalGroups: - - 6618112330449141397 - sysctls: - - name: "380" - value: "381" - windowsOptions: - gmsaCredentialSpec: "378" - gmsaCredentialSpecName: "377" - runAsUserName: "379" - serviceAccount: "371" - serviceAccountName: "370" - shareProcessNamespace: true - subdomain: "384" - terminationGracePeriodSeconds: -3123571459188372202 - tolerations: - - effect: ǣʛsĊ剞鮧軷șlļė[BN柌ë - key: "426" - operator: z* 皗u疲fɎ嵄箲Ů埞瞔ɏÊ锒e躜 - tolerationSeconds: -9161243904952859304 - value: "427" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: RT.0zo - operator: DoesNotExist - matchLabels: - rf-l67-9a-trt-03-7z2zy0e428-4-k2/kU27_.-4T-I.-..K.-.0__sD.-.-_I-FP: q-JM - maxSkew: 2088809792 - topologyKey: "436" - whenUnsatisfiable: 縊CkǚŨ镦 - volumes: - - awsElasticBlockStore: - fsType: "64" - partition: -104666658 - readOnly: true - volumeID: "63" - azureDisk: - cachingMode: ʜǝ鿟ldg滠鼍ƭt - diskName: "127" - diskURI: "128" - fsType: "129" - kind: ȫşŇɜa - readOnly: true - azureFile: - secretName: "113" - shareName: "114" - cephfs: - monitors: - - "98" - path: "99" - secretFile: "101" - secretRef: - name: "102" - user: "100" - cinder: - fsType: "96" - readOnly: true - secretRef: - name: "97" - volumeID: "95" - configMap: - defaultMode: -599608368 - items: - - key: "116" - mode: -1194714697 - path: "117" - name: "115" - optional: true - csi: - driver: "159" - fsType: "160" - nodePublishSecretRef: - name: "163" - readOnly: true - volumeAttributes: - "161": "162" - downwardAPI: - defaultMode: 1801487647 - items: - - fieldRef: - apiVersion: "106" - fieldPath: "107" - mode: 1322858613 - path: "105" - resourceFieldRef: - containerName: "108" - divisor: "889" - resource: "109" - emptyDir: - medium: 踓Ǻǧ湬淊kŪ睴鸏:ɥ³ƞsɁ8^ʥ - sizeLimit: "681" - fc: - fsType: "111" - lun: 1169718433 - targetWWNs: - - "110" - wwids: - - "112" - flexVolume: - driver: "90" - fsType: "91" - options: - "93": "94" - readOnly: true - secretRef: - name: "92" - flocker: - datasetName: "103" - datasetUUID: "104" - gcePersistentDisk: - fsType: "62" - partition: 2065358741 - pdName: "61" - readOnly: true - gitRepo: - directory: "67" - repository: "65" - revision: "66" - glusterfs: - endpoints: "80" - path: "81" - hostPath: - path: "60" - type: /淹\韲翁&ʢsɜ曢\%枅:=ǛƓ - iscsi: - chapAuthSession: true - fsType: "76" - initiatorName: "79" - iqn: "74" - iscsiInterface: "75" - lun: -663180249 - portals: - - "77" - readOnly: true - secretRef: - name: "78" - targetPortal: "73" - name: "59" - nfs: - path: "72" - server: "71" - persistentVolumeClaim: - claimName: "82" - photonPersistentDisk: - fsType: "131" - pdID: "130" - portworxVolume: - fsType: "146" - readOnly: true - volumeID: "145" - projected: - defaultMode: -1980941277 - sources: - - configMap: - items: - - key: "141" - mode: 1730325900 - path: "142" - name: "140" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "136" - fieldPath: "137" - mode: -555780268 - path: "135" - resourceFieldRef: - containerName: "138" - divisor: "952" - resource: "139" - secret: - items: - - key: "133" - mode: 782113097 - path: "134" - name: "132" - optional: true - serviceAccountToken: - audience: "143" - expirationSeconds: -2937394236764575757 - path: "144" - quobyte: - group: "125" - readOnly: true - registry: "122" - tenant: "126" - user: "124" - volume: "123" - rbd: - fsType: "85" - image: "84" - keyring: "88" - monitors: - - "83" - pool: "86" - readOnly: true - secretRef: - name: "89" - user: "87" - scaleIO: - fsType: "154" - gateway: "147" - protectionDomain: "150" - secretRef: - name: "149" - sslEnabled: true - storageMode: "152" - storagePool: "151" - system: "148" - volumeName: "153" - secret: - defaultMode: 1655406148 - items: - - key: "69" - mode: 1648350164 - path: "70" - optional: true - secretName: "68" - storageos: - fsType: "157" - readOnly: true - secretRef: - name: "158" - volumeName: "155" - volumeNamespace: "156" - vsphereVolume: - fsType: "119" - storagePolicyID: "121" - storagePolicyName: "120" - volumePath: "118" - ttlSecondsAfterFinished: 246849509 diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.json b/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.json deleted file mode 100644 index b559a97f6..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.json +++ /dev/null @@ -1,1446 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "schedule": "19", - "startingDeadlineSeconds": -2555947251840004808, - "concurrencyPolicy": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ", - "suspend": true, - "jobTemplate": { - "metadata": { - "name": "20", - "generateName": "21", - "namespace": "22", - "selfLink": "23", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 3798025802092444428, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -6114802437535409255, - "labels": { - "25": "26" - }, - "annotations": { - "27": "28" - }, - "ownerReferences": [ - { - "apiVersion": "29", - "kind": "30", - "name": "31", - "uid": "憍峕?狱³-Ǐ忄*", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "32" - ], - "clusterName": "33", - "managedFields": [ - { - "manager": "34", - "operation": "ȎțêɘIJ斬³;Ơ歿", - "apiVersion": "35", - "fieldsType": "36" - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "43", - "generateName": "44", - "namespace": "45", - "selfLink": "46", - "uid": "A", - "resourceVersion": "13282108741396501211", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "48": "49" - }, - "annotations": { - "50": "51" - }, - "ownerReferences": [ - { - "apiVersion": "52", - "kind": "53", - "name": "54", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "55" - ], - "clusterName": "56", - "managedFields": [ - { - "manager": "57", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "58", - "fieldsType": "59" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "60", - "hostPath": { - "path": "61", - "type": "j剐'宣I拍N嚳ķȗ" - }, - "emptyDir": { - "medium": "捵TwMȗ礼2ħ籦ö嗏ʑ\u003e季Cʖ畬", - "sizeLimit": "347" - }, - "gcePersistentDisk": { - "pdName": "62", - "fsType": "63", - "partition": 1399152294, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "64", - "fsType": "65", - "partition": -1853411528 - }, - "gitRepo": { - "repository": "66", - "revision": "67", - "directory": "68" - }, - "secret": { - "secretName": "69", - "items": [ - { - "key": "70", - "path": "71", - "mode": 1395607230 - } - ], - "defaultMode": -1852451720, - "optional": true - }, - "nfs": { - "server": "72", - "path": "73" - }, - "iscsi": { - "targetPortal": "74", - "iqn": "75", - "lun": -1483417237, - "iscsiInterface": "76", - "fsType": "77", - "portals": [ - "78" - ], - "secretRef": { - "name": "79" - }, - "initiatorName": "80" - }, - "glusterfs": { - "endpoints": "81", - "path": "82", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "83", - "readOnly": true - }, - "rbd": { - "monitors": [ - "84" - ], - "image": "85", - "fsType": "86", - "pool": "87", - "user": "88", - "keyring": "89", - "secretRef": { - "name": "90" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "91", - "fsType": "92", - "secretRef": { - "name": "93" - }, - "options": { - "94": "95" - } - }, - "cinder": { - "volumeID": "96", - "fsType": "97", - "secretRef": { - "name": "98" - } - }, - "cephfs": { - "monitors": [ - "99" - ], - "path": "100", - "user": "101", - "secretFile": "102", - "secretRef": { - "name": "103" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "104", - "datasetUUID": "105" - }, - "downwardAPI": { - "items": [ - { - "path": "106", - "fieldRef": { - "apiVersion": "107", - "fieldPath": "108" - }, - "resourceFieldRef": { - "containerName": "109", - "resource": "110", - "divisor": "52" - }, - "mode": -1011172037 - } - ], - "defaultMode": -1775926229 - }, - "fc": { - "targetWWNs": [ - "111" - ], - "lun": -740816174, - "fsType": "112", - "wwids": [ - "113" - ] - }, - "azureFile": { - "secretName": "114", - "shareName": "115" - }, - "configMap": { - "name": "116", - "items": [ - { - "key": "117", - "path": "118", - "mode": 1793473487 - } - ], - "defaultMode": -347579237, - "optional": false - }, - "vsphereVolume": { - "volumePath": "119", - "fsType": "120", - "storagePolicyName": "121", - "storagePolicyID": "122" - }, - "quobyte": { - "registry": "123", - "volume": "124", - "readOnly": true, - "user": "125", - "group": "126", - "tenant": "127" - }, - "azureDisk": { - "diskName": "128", - "diskURI": "129", - "cachingMode": "A3fƻfʣ繡楙¯", - "fsType": "130", - "readOnly": true, - "kind": "勗E濞偘1ɩÅ議Ǹ轺@)蓳嗘TʡȂ" - }, - "photonPersistentDisk": { - "pdID": "131", - "fsType": "132" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "133", - "items": [ - { - "key": "134", - "path": "135", - "mode": 550215822 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "136", - "fieldRef": { - "apiVersion": "137", - "fieldPath": "138" - }, - "resourceFieldRef": { - "containerName": "139", - "resource": "140", - "divisor": "618" - }, - "mode": 1525389481 - } - ] - }, - "configMap": { - "name": "141", - "items": [ - { - "key": "142", - "path": "143", - "mode": -1249460160 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "144", - "expirationSeconds": -8988970531898753887, - "path": "145" - } - } - ], - "defaultMode": -1332301579 - }, - "portworxVolume": { - "volumeID": "146", - "fsType": "147" - }, - "scaleIO": { - "gateway": "148", - "system": "149", - "secretRef": { - "name": "150" - }, - "protectionDomain": "151", - "storagePool": "152", - "storageMode": "153", - "volumeName": "154", - "fsType": "155", - "readOnly": true - }, - "storageos": { - "volumeName": "156", - "volumeNamespace": "157", - "fsType": "158", - "readOnly": true, - "secretRef": { - "name": "159" - } - }, - "csi": { - "driver": "160", - "readOnly": false, - "fsType": "161", - "volumeAttributes": { - "162": "163" - }, - "nodePublishSecretRef": { - "name": "164" - } - } - } - ], - "initContainers": [ - { - "name": "165", - "image": "166", - "command": [ - "167" - ], - "args": [ - "168" - ], - "workingDir": "169", - "ports": [ - { - "name": "170", - "hostPort": 1632959949, - "containerPort": 487826951, - "protocol": "ldg滠鼍ƭt?", - "hostIP": "171" - } - ], - "envFrom": [ - { - "prefix": "172", - "configMapRef": { - "name": "173", - "optional": false - }, - "secretRef": { - "name": "174", - "optional": false - } - } - ], - "env": [ - { - "name": "175", - "value": "176", - "valueFrom": { - "fieldRef": { - "apiVersion": "177", - "fieldPath": "178" - }, - "resourceFieldRef": { - "containerName": "179", - "resource": "180", - "divisor": "597" - }, - "configMapKeyRef": { - "name": "181", - "key": "182", - "optional": false - }, - "secretKeyRef": { - "name": "183", - "key": "184", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ÙæNǚ錯ƶRq": "575" - }, - "requests": { - "To\u0026蕭k ź": "644" - } - }, - "volumeMounts": [ - { - "name": "185", - "readOnly": true, - "mountPath": "186", - "subPath": "187", - "mountPropagation": "瑥A", - "subPathExpr": "188" - } - ], - "volumeDevices": [ - { - "name": "189", - "devicePath": "190" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "191" - ] - }, - "httpGet": { - "path": "192", - "port": "193", - "host": "194", - "scheme": "0åȂ町恰nj揠8lj", - "httpHeaders": [ - { - "name": "195", - "value": "196" - } - ] - }, - "tcpSocket": { - "port": -2049272966, - "host": "197" - }, - "initialDelaySeconds": -1188153605, - "timeoutSeconds": -427769948, - "periodSeconds": 912004803, - "successThreshold": -2098817064, - "failureThreshold": 1231820696 - }, - "readinessProbe": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": "200", - "host": "201", - "httpHeaders": [ - { - "name": "202", - "value": "203" - } - ] - }, - "tcpSocket": { - "port": 675406340, - "host": "204" - }, - "initialDelaySeconds": 994527057, - "timeoutSeconds": -1482763519, - "periodSeconds": -1346458591, - "successThreshold": 1234551517, - "failureThreshold": -1618937335 - }, - "startupProbe": { - "exec": { - "command": [ - "205" - ] - }, - "httpGet": { - "path": "206", - "port": "207", - "host": "208", - "scheme": "eÞȦY籎顒", - "httpHeaders": [ - { - "name": "209", - "value": "210" - } - ] - }, - "tcpSocket": { - "port": "211", - "host": "212" - }, - "initialDelaySeconds": -1252931244, - "timeoutSeconds": 1569992019, - "periodSeconds": 1061537, - "successThreshold": 322666556, - "failureThreshold": -814446577 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "213" - ] - }, - "httpGet": { - "path": "214", - "port": -1171060347, - "host": "215", - "scheme": "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°", - "httpHeaders": [ - { - "name": "216", - "value": "217" - } - ] - }, - "tcpSocket": { - "port": "218", - "host": "219" - } - }, - "preStop": { - "exec": { - "command": [ - "220" - ] - }, - "httpGet": { - "path": "221", - "port": -1319998825, - "host": "222", - "scheme": "銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ", - "httpHeaders": [ - { - "name": "223", - "value": "224" - } - ] - }, - "tcpSocket": { - "port": 1180382332, - "host": "225" - } - } - }, - "terminationMessagePath": "226", - "terminationMessagePolicy": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "imagePullPolicy": "儣廡ɑ龫`劳\u0026¼傭", - "securityContext": { - "capabilities": { - "add": [ - "酃=6}ɡŇƉ立hdz緄Ú|dk_瀹鞎" - ], - "drop": [ - "n芞QÄȻȊ+?ƭ峧Y栲茇竛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "227", - "role": "228", - "type": "229", - "level": "230" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "231", - "gmsaCredentialSpec": "232", - "runAsUserName": "233" - }, - "runAsUser": 4875570291212151521, - "runAsGroup": -593458796014416333, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "軶ǃ*ʙ嫙\u0026蒒5靇" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "234", - "image": "235", - "command": [ - "236" - ], - "args": [ - "237" - ], - "workingDir": "238", - "ports": [ - { - "name": "239", - "hostPort": 2126876305, - "containerPort": -2051962852, - "protocol": "貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲE'iþ", - "hostIP": "240" - } - ], - "envFrom": [ - { - "prefix": "241", - "configMapRef": { - "name": "242", - "optional": true - }, - "secretRef": { - "name": "243", - "optional": false - } - } - ], - "env": [ - { - "name": "244", - "value": "245", - "valueFrom": { - "fieldRef": { - "apiVersion": "246", - "fieldPath": "247" - }, - "resourceFieldRef": { - "containerName": "248", - "resource": "249", - "divisor": "109" - }, - "configMapKeyRef": { - "name": "250", - "key": "251", - "optional": false - }, - "secretKeyRef": { - "name": "252", - "key": "253", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "ŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "254", - "mountPath": "255", - "subPath": "256", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "257" - } - ], - "volumeDevices": [ - { - "name": "258", - "devicePath": "259" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": -342705708, - "host": "262", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "265" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": 474119379, - "host": "268", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "271" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "startupProbe": { - "exec": { - "command": [ - "272" - ] - }, - "httpGet": { - "path": "273", - "port": "274", - "host": "275", - "scheme": "¸", - "httpHeaders": [ - { - "name": "276", - "value": "277" - } - ] - }, - "tcpSocket": { - "port": "278", - "host": "279" - }, - "initialDelaySeconds": -161753937, - "timeoutSeconds": -1578746609, - "periodSeconds": 1428207963, - "successThreshold": 790462391, - "failureThreshold": -822090785 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "280" - ] - }, - "httpGet": { - "path": "281", - "port": -421846800, - "host": "282", - "scheme": "zvt莭琽§", - "httpHeaders": [ - { - "name": "283", - "value": "284" - } - ] - }, - "tcpSocket": { - "port": -763687725, - "host": "285" - } - }, - "preStop": { - "exec": { - "command": [ - "286" - ] - }, - "httpGet": { - "path": "287", - "port": -1452676801, - "host": "288", - "scheme": "ȿ0矀Kʝ", - "httpHeaders": [ - { - "name": "289", - "value": "290" - } - ] - }, - "tcpSocket": { - "port": "291", - "host": "292" - } - } - }, - "terminationMessagePath": "293", - "terminationMessagePolicy": "\\p[", - "imagePullPolicy": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "securityContext": { - "capabilities": { - "add": [ - "À*f\u003c鴒翁杙Ŧ癃8" - ], - "drop": [ - "ɱJȉ罴" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "294", - "role": "295", - "type": "296", - "level": "297" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "298", - "gmsaCredentialSpec": "299", - "runAsUserName": "300" - }, - "runAsUser": -2706913289057230267, - "runAsGroup": -3689959065086680033, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "301", - "image": "302", - "command": [ - "303" - ], - "args": [ - "304" - ], - "workingDir": "305", - "ports": [ - { - "name": "306", - "hostPort": 1853396726, - "containerPort": 1330271338, - "protocol": "逴", - "hostIP": "307" - } - ], - "envFrom": [ - { - "prefix": "308", - "configMapRef": { - "name": "309", - "optional": true - }, - "secretRef": { - "name": "310", - "optional": true - } - } - ], - "env": [ - { - "name": "311", - "value": "312", - "valueFrom": { - "fieldRef": { - "apiVersion": "313", - "fieldPath": "314" - }, - "resourceFieldRef": { - "containerName": "315", - "resource": "316", - "divisor": "709" - }, - "configMapKeyRef": { - "name": "317", - "key": "318", - "optional": false - }, - "secretKeyRef": { - "name": "319", - "key": "320", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "颐o": "230" - }, - "requests": { - "[+扴ȨŮ+朷Ǝ膯ljV": "728" - } - }, - "volumeMounts": [ - { - "name": "321", - "mountPath": "322", - "subPath": "323", - "mountPropagation": "ŕ-Ɂ圯W:ĸ輦唊#v铿", - "subPathExpr": "324" - } - ], - "volumeDevices": [ - { - "name": "325", - "devicePath": "326" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "327" - ] - }, - "httpGet": { - "path": "328", - "port": "329", - "host": "330", - "scheme": "屡ʁ", - "httpHeaders": [ - { - "name": "331", - "value": "332" - } - ] - }, - "tcpSocket": { - "port": -1554559634, - "host": "333" - }, - "initialDelaySeconds": 1718241831, - "timeoutSeconds": 550615941, - "periodSeconds": 1180971695, - "successThreshold": -1971944908, - "failureThreshold": 1742259603 - }, - "readinessProbe": { - "exec": { - "command": [ - "334" - ] - }, - "httpGet": { - "path": "335", - "port": -1620315711, - "host": "336", - "scheme": "ɐ扵", - "httpHeaders": [ - { - "name": "337", - "value": "338" - } - ] - }, - "tcpSocket": { - "port": "339", - "host": "340" - }, - "initialDelaySeconds": -1358663652, - "timeoutSeconds": 1543146222, - "periodSeconds": -527306221, - "successThreshold": 2098694289, - "failureThreshold": 1150925735 - }, - "startupProbe": { - "exec": { - "command": [ - "341" - ] - }, - "httpGet": { - "path": "342", - "port": "343", - "host": "344", - "scheme": "榝$î.Ȏ蝪ʜ5遰", - "httpHeaders": [ - { - "name": "345", - "value": "346" - } - ] - }, - "tcpSocket": { - "port": -1438286448, - "host": "347" - }, - "initialDelaySeconds": 834105836, - "timeoutSeconds": -1462219068, - "periodSeconds": -370386363, - "successThreshold": 1714588921, - "failureThreshold": -1246371817 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "348" - ] - }, - "httpGet": { - "path": "349", - "port": "350", - "host": "351", - "scheme": "跩aŕ翑", - "httpHeaders": [ - { - "name": "352", - "value": "353" - } - ] - }, - "tcpSocket": { - "port": "354", - "host": "355" - } - }, - "preStop": { - "exec": { - "command": [ - "356" - ] - }, - "httpGet": { - "path": "357", - "port": 1017803158, - "host": "358", - "scheme": "碔", - "httpHeaders": [ - { - "name": "359", - "value": "360" - } - ] - }, - "tcpSocket": { - "port": "361", - "host": "362" - } - } - }, - "terminationMessagePath": "363", - "terminationMessagePolicy": "Kƙ順\\E¦队偯J僳徥淳4揻-$ɽ丟", - "imagePullPolicy": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "securityContext": { - "capabilities": { - "add": [ - "ŧL²sNƗ¸gĩ餠籲磣Óƿ" - ], - "drop": [ - "\"冓鍓贯澔 ƺ蛜6" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "364", - "role": "365", - "type": "366", - "level": "367" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "368", - "gmsaCredentialSpec": "369", - "runAsUserName": "370" - }, - "runAsUser": 4353696140684277635, - "runAsGroup": 6057650398488995896, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "鰥Z龏´DÒȗ" - }, - "tty": true, - "targetContainerName": "371" - } - ], - "restartPolicy": "ɘɢ鬍熖B芭花ª瘡", - "terminationGracePeriodSeconds": 2666412258966278206, - "activeDeadlineSeconds": -8715915045560617563, - "dnsPolicy": "丆", - "nodeSelector": { - "372": "373" - }, - "serviceAccountName": "374", - "serviceAccount": "375", - "automountServiceAccountToken": false, - "nodeName": "376", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "377", - "role": "378", - "type": "379", - "level": "380" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "381", - "gmsaCredentialSpec": "382", - "runAsUserName": "383" - }, - "runAsUser": 2179199799235189619, - "runAsGroup": -779972051078659613, - "runAsNonRoot": false, - "supplementalGroups": [ - -7127205672279904050 - ], - "fsGroup": 7124276984274024394, - "sysctls": [ - { - "name": "384", - "value": "385" - } - ] - }, - "imagePullSecrets": [ - { - "name": "386" - } - ], - "hostname": "387", - "subdomain": "388", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "389", - "operator": "6x$1sȣ±p鋄5弢ȹ均i绝5哇芆", - "values": [ - "390" - ] - } - ], - "matchFields": [ - { - "key": "391", - "operator": "埮pɵ{WOŭW灬p", - "values": [ - "392" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 199049889, - "preference": { - "matchExpressions": [ - { - "key": "393", - "operator": "擭銆jʒǚ鍰\\縑", - "values": [ - "394" - ] - } - ], - "matchFields": [ - { - "key": "395", - "operator": "鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ", - "values": [ - "396" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS": "1Tvw39F_C-rtSY.g._2F7.-_e..r" - }, - "matchExpressions": [ - { - "key": "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1", - "operator": "NotIn", - "values": [ - "z" - ] - } - ] - }, - "namespaces": [ - "403" - ], - "topologyKey": "404" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -217760519, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6": "Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "411" - ], - "topologyKey": "412" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "419" - ], - "topologyKey": "420" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "427" - ], - "topologyKey": "428" - } - } - ] - } - }, - "schedulerName": "429", - "tolerations": [ - { - "key": "430", - "operator": "堺ʣ", - "value": "431", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "432", - "hostnames": [ - "433" - ] - } - ], - "priorityClassName": "434", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "435" - ], - "searches": [ - "436" - ], - "options": [ - { - "name": "437", - "value": "438" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "439", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "440", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "ttlSecondsAfterFinished": 920774957 - } - }, - "successfulJobsHistoryLimit": 1613009760, - "failedJobsHistoryLimit": 1560811691 - }, - "status": { - "active": [ - { - "kind": "447", - "namespace": "448", - "name": "449", - "uid": "Ŋ)TiD¢ƿ媴h", - "apiVersion": "450", - "resourceVersion": "451", - "fieldPath": "452" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.pb b/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.CronJob.pb deleted file mode 100644 index eee44c0ef900420e0d7e1d1bf9cdeee4f0a785cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6569 zcmZWtd3;pWy`M87fcIIOUYE`r`Pevu#^}A=d(Pd4Vr2=4u>!J7eZ2(eku2@P-|UTQ`X8w1r6t@zDtz*$l!oBL-m>5i62x zNRC7*en1oj2}^=3*)>5^6+yuQ(f<6&zDw!(htm@mn3lKhKbw(N_txQlw0#zid3`*U8R2S7BnL8Tgtslw=mAG_xq@q1muhVITDu zEzO5pK0{xZBaQVYa*Mx1Qqk2v1+-X!d^qHx-*jjcpL&3wu~^jibf!*;U6? zWDQ@EYm)*iO;_(Zb9p(0}mN^ zC>!aM3Qt<>EXGU(tC@(l`#sqOMpyZ>-u#Y{E^e&Q7|x80G-Er6Y)Uc{oMt8@4?PC! zCHBGbgX4!Br`%Peot}!*BV9jr9rd&h0~;BeiNdzeo}QWI^L~2=ekiP9f99L?=?=1- zJLt$i+ueKiV`TeJW()H(tZ!dw7x@_Z1x}Aqh|cMRi|61^Cp$S_*O%)$ude1+C+L#S zMX5>fx*<;CBz^57PG7~&dUX?rd04$jU%5-yvGT$?eTB|*{L+-Iyv}hebt!6o9D6?# zk`$lB-W!z=le{z`Wzp_!$te*Cf6XxtP^&~(vm{x~l58_eN+g;O_Cv6SMKB#nBz8p> zL@bKhyIIZtOK)H6x{g4r&7Y^VOd>@&{d2ug!M$h41v$cg`Id_U0TPtI!=MBh4}n>RFc4%(9Y)B7uX-&hVx8 z`wt$UsGB>})1Bq+Q(rL#4mge&z2|*Jy})0?X4%fRKh3mEW6X-c9-GEk;Xz~{h&6JH zo-o=PpZDY!EH!GnMtjC9*{2wrr{L_W)ECDqy~hUd=m~E}ljEFGSvXPrGo!U};Y5YE z{4^WNgb+!!h5;kYniXPc8Z18)8jfra!iWSTvZePghYx%cxYBS_Q!MCl^t8@2!T_>W!d2yyBrIG+Tr|m)nc;ISuJS>P&*qU3W61gXaj;H zK`o*{1eC_m2Z>J0`_NArp1vw?dM49sH3JbT6HzJBhNzRD&L8=ouj5Q2rv_OVliH->kYk)pDq> z{>uMMUPuFafX>tXF%;jz-ML}`IU=2!$*wtD$(8S$nv$G8SC{8o}c%mue8gktXefuKfdog zqRJp5@FI95AcdsBiv${;KvZAgFhJ~9DvvA#XS>>r|^z?33{nP6NIZB!TFNI*zn1-MY-bS4B-88DHpKolDgH4=!1=g}#9 zSaEH|SJNzqi(IW=2Yuo(UuVup<9MIZa>ms+R+j4MiGSYPd1#S0t8c8x)w$@2ZH^(} zAPI9`01gsmF3Hws8Q30E?PE!0K_i%|9#5)Xuv_n=y1)>&fQaA#lkad|$SM}JKx7_e zEY4$N4HK=#*)mV#zC=R7Hs4%I=*h)2>Qp)Qj+MBFCrXU{gBVt*EAkNYtH4npiY)>L5W{{r-4yoD7ZX>5 zc5S8n6l|NZIrSILD(ArU-e%`u!q`z~|3uZxzOD@SDM-VSR9Xd094iud;XT0Ny*H~O zttL7mht-e2*@`S@n%bJFPVb;_$K@~bLLxFhx#cE_d^sshGu)fSJdjM9G>Snn6qQ)rm=lLlZ_LN!R^81uquH0(T{G9{P#p?V1HE% zyZYt3Z-!d-U+wM;4L^RP?%U9aWB(Yw6)HGO%Wed(d1Dh|RtNUh1XhB*A=XhneD?Z{ zbKld0hHd|rwkySVu+>{MIC3JeuSUhzB7LqZXOp)&Lu04AJEF&P zy@TDr76KNAXbgniXT$G)Zp!QYX}j9y~wm5p&|sq6oMg! z5O7aGD-sSv*2zZ_W@nYDG=qM(f-+Iccg%C{$`{G>D?}jdA);(e| zg}?Q|-~KU}?aZ%55fh)5<_>1nf4Wh)mSJRF`ukADmo$6BCvaCplNW$~30No)4BRx5 z1|fiG%02{C&7)K+L7mf>V~APCyvT5L*3Lev?4Btmk2j8VB>M9+Wn-WL!dh+4HgA8e zY?S8s^0I-MU0@+Q5-_(gqpmH{efHODmpNP4decuQ(pk*DG`&9S%U`n5%p-IeVOdXU zt3NM0cA{jg#$Rye6>o1bT_~{;bY5m>_>UZOcZ?RU^>w9>*0@{Ur^fmOUwzNht{zt- zU8%6mAZs(G>$I396#HH}b zJL5L1F{!h6a&la(Zs%X*MIv!B$G@g50Xzzbmg8V>wa&%y+;V=;@|Elian-I=VqdH; zQMlcD(n32AFql*H?fg;>FVNTUT*~IH694LkRcShW zlgcIVn!a`w_aaYpkqrfS`+U3=rLiHBK&(I{_8m0+n{Udhf@a6M5Yva4c!rm_J$tam z5p8$ePC0(Jl+1CG$f+Es#LdR42uHT-yuOZ$f}?L&*tsw9Tr$6eU$T?i4s!yxN{oxy z!EuZEz>nxDI=6!d=pFT(n#2*186*bOuCH4bznp!JQ3(uep`%=)#%+>0jf>N^0c#;v z-omFPC8cVdoRSO&*qAt5Sp+hJTroQSzo;F=5=9UT3bdlVW|$ur z#qq-Y<-Eu~J|A{pEbF`Z7nUv*IG&5s1ul+LRwn98xs^P>j9ajt=i^x`!@RWKo~SGQ zLO$mIZv{a^f~xE9X!@7RQA_eM~0%x+E>b#7VImW4Xp_!>|z z1~emKtp)+LH=u4nDxxA&^rBEWqXH0Av`8R!3{g;2g|IhoU(B0o$$8@~AF};m$EGcw z{-geZ0#|Fwv#?ARDI5`1%0X3va73i>M^rTmM?{qZG%WzoWV;%KBO(ncA|U)pI3m*2 zCTbFt3q12<<~~QYqiHEP`GI!VxfQQb*dfCP_cP3@gvWj5t=q$$=jos#NzoKwYcd3P z_=Bt>LTNC?TYP*zhDU8hHe%M&m@Yz;QRpAO8`DKQc#mk8Z1)R}KVXT}bA z3Xf`IxirX&5K(|Alj-(W(?@N=3{G>sXjj8-|E<>@#EO<F( z46YWc+Ryxc%KCWb+2A=e_A$!ae)k-hmLM2P5K|zt2o#rrV+XNC=4j4{Ie;w$DeR92 zYp;Y@(wlBi7E$5#f4cS0V1kKwFYEFfQ-s`qWPBU6;ffYl$*Q+~fG@~%XpFZGhS-!-(ug!BXZ{$qiY*3c~ zqwi-uXn4SgosA7_1&&0w!a+b&dC8sky{(|9G0UIVWHg=e_g9RUx^iZE2gVzdx1snMcR=@;7BLu0lWO?ZccXJkKn+-qg>fb6K_j!#=&yGd`-fV7W#n}| zJ~CkJYfU?hnEA}3{;Z5=l;67RojI;tZ%h8xu`X{82iY0%zPuwZ zIWoul$Mc?g*41isop{-Ew9|JW$J=rUY>A>3XrBOq9EvgIP)vmI4=zUIZ-voL)5giuj&^V9fcL;&JjZeFW&gQTa;kA8J%C$8$g^Nb zLMKXMq67LDWOgiGX=agp5G&A<{T%Z*omG4KAREC^v99 zi6{`X;ScmL5$#V1eF$~&Oy_xjYo1X*Rl(1tw-+gYUJ6}#RGIQO{p1Qs6lm70k zk0@LFXUKF5J@TkCQyk5A_5H?^HQ;GU_vLo_^0R&I<(|TJe|phAvz7Ug^u%bP=TN!l zSdpjvP`szFn#L3&3VG&HG`;Bcy57l*8X`e`Y5A$Yuijr=dVMI%Us>QRbY?j7orS-3 z?zL4SCW?6`5pRl(OMVqV#D-V3otQupg&$US0)kL+JSX$98Yc)?;6zTIog%M=s16-0 z{37P{ZEQ&DuGQ=^=1GZ@qPQfUTdeCze8N_q$NJ9ao?8xSS6`}c)ukmnxOIY#xwWhr zP{1RQYLazj87J#1Wb9M`Au{9wNW{ARrM1x|=9|-)Pp5%Q0!45FMQ{QEJSa$!Kx7OE znFvbQSFIm@G1cv*AY$5)=-E>l=QJqkmAdrd!MJ9nz0&fzH>O_Q_f{r9DyVbiz zCZQb*0v(IVs7`2yf?y%g1o{Cp#othrKvfLB#6H42_=~4Jx!vO@oo!Ef4)?eY`m)={ za@Wv#6>HI8$OMbD9w87pfRM-^JIgtDx^cLD?VQnG-#`;|WFOn*FCE4(E3JrUo~KSg zz-=iUgg(cl6A$!lGP~(I55$U@$0*ztVPZn+W__8XQjm zBj`lZTDIa^vk?+FxvbejybWbR9`uyT_hJQs+8suqM1;0<(j%VyTxW^dxpxwUFUs=4lBW;kw7yAc7dXiD3IQXqK0RD>S<~D{Lg3SLKsGxX5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "271" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ŤǢʭ嵔棂p儼Ƿ裚瓶: "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - À*f<鴒翁杙Ŧ癃8 - drop: - - ɱJȉ罴 - privileged: false - procMount: 棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅 - readOnlyRootFilesystem: false - runAsGroup: -3689959065086680033 - runAsNonRoot: false - runAsUser: -2706913289057230267 - seLinuxOptions: - level: "297" - role: "295" - type: "296" - user: "294" - windowsOptions: - gmsaCredentialSpec: "299" - gmsaCredentialSpecName: "298" - runAsUserName: "300" - startupProbe: - exec: - command: - - "272" - failureThreshold: -822090785 - httpGet: - host: "275" - httpHeaders: - - name: "276" - value: "277" - path: "273" - port: "274" - scheme: ¸ - initialDelaySeconds: -161753937 - periodSeconds: 1428207963 - successThreshold: 790462391 - tcpSocket: - host: "279" - port: "278" - timeoutSeconds: -1578746609 - stdinOnce: true - terminationMessagePath: "293" - terminationMessagePolicy: \p[ - volumeDevices: - - devicePath: "259" - name: "258" - volumeMounts: - - mountPath: "255" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "254" - subPath: "256" - subPathExpr: "257" - workingDir: "238" - dnsConfig: - nameservers: - - "435" - options: - - name: "437" - value: "438" - searches: - - "436" - dnsPolicy: 丆 - enableServiceLinks: false - ephemeralContainers: - - args: - - "304" - command: - - "303" - env: - - name: "311" - value: "312" - valueFrom: - configMapKeyRef: - key: "318" - name: "317" - optional: false - fieldRef: - apiVersion: "313" - fieldPath: "314" - resourceFieldRef: - containerName: "315" - divisor: "709" - resource: "316" - secretKeyRef: - key: "320" - name: "319" - optional: false - envFrom: - - configMapRef: - name: "309" - optional: true - prefix: "308" - secretRef: - name: "310" - optional: true - image: "302" - imagePullPolicy: 拉Œɥ颶妧Ö闊 鰔澝qV訆 - lifecycle: - postStart: - exec: - command: - - "348" - httpGet: - host: "351" - httpHeaders: - - name: "352" - value: "353" - path: "349" - port: "350" - scheme: 跩aŕ翑 - tcpSocket: - host: "355" - port: "354" - preStop: - exec: - command: - - "356" - httpGet: - host: "358" - httpHeaders: - - name: "359" - value: "360" - path: "357" - port: 1017803158 - scheme: 碔 - tcpSocket: - host: "362" - port: "361" - livenessProbe: - exec: - command: - - "327" - failureThreshold: 1742259603 - httpGet: - host: "330" - httpHeaders: - - name: "331" - value: "332" - path: "328" - port: "329" - scheme: 屡ʁ - initialDelaySeconds: 1718241831 - periodSeconds: 1180971695 - successThreshold: -1971944908 - tcpSocket: - host: "333" - port: -1554559634 - timeoutSeconds: 550615941 - name: "301" - ports: - - containerPort: 1330271338 - hostIP: "307" - hostPort: 1853396726 - name: "306" - protocol: 逴 - readinessProbe: - exec: - command: - - "334" - failureThreshold: 1150925735 - httpGet: - host: "336" - httpHeaders: - - name: "337" - value: "338" - path: "335" - port: -1620315711 - scheme: ɐ扵 - initialDelaySeconds: -1358663652 - periodSeconds: -527306221 - successThreshold: 2098694289 - tcpSocket: - host: "340" - port: "339" - timeoutSeconds: 1543146222 - resources: - limits: - 颐o: "230" - requests: - '[+扴ȨŮ+朷Ǝ膯ljV': "728" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ŧL²sNƗ¸gĩ餠籲磣Óƿ - drop: - - '"冓鍓贯澔 ƺ蛜6' - privileged: false - procMount: 鰥Z龏´DÒȗ - readOnlyRootFilesystem: true - runAsGroup: 6057650398488995896 - runAsNonRoot: true - runAsUser: 4353696140684277635 - seLinuxOptions: - level: "367" - role: "365" - type: "366" - user: "364" - windowsOptions: - gmsaCredentialSpec: "369" - gmsaCredentialSpecName: "368" - runAsUserName: "370" - startupProbe: - exec: - command: - - "341" - failureThreshold: -1246371817 - httpGet: - host: "344" - httpHeaders: - - name: "345" - value: "346" - path: "342" - port: "343" - scheme: 榝$î.Ȏ蝪ʜ5遰 - initialDelaySeconds: 834105836 - periodSeconds: -370386363 - successThreshold: 1714588921 - tcpSocket: - host: "347" - port: -1438286448 - timeoutSeconds: -1462219068 - targetContainerName: "371" - terminationMessagePath: "363" - terminationMessagePolicy: Kƙ順\E¦队偯J僳徥淳4揻-$ɽ丟 - tty: true - volumeDevices: - - devicePath: "326" - name: "325" - volumeMounts: - - mountPath: "322" - mountPropagation: ŕ-Ɂ圯W:ĸ輦唊#v铿 - name: "321" - subPath: "323" - subPathExpr: "324" - workingDir: "305" - hostAliases: - - hostnames: - - "433" - ip: "432" - hostPID: true - hostname: "387" - imagePullSecrets: - - name: "386" - initContainers: - - args: - - "168" - command: - - "167" - env: - - name: "175" - value: "176" - valueFrom: - configMapKeyRef: - key: "182" - name: "181" - optional: false - fieldRef: - apiVersion: "177" - fieldPath: "178" - resourceFieldRef: - containerName: "179" - divisor: "597" - resource: "180" - secretKeyRef: - key: "184" - name: "183" - optional: false - envFrom: - - configMapRef: - name: "173" - optional: false - prefix: "172" - secretRef: - name: "174" - optional: false - image: "166" - imagePullPolicy: 儣廡ɑ龫`劳&¼傭 - lifecycle: - postStart: - exec: - command: - - "213" - httpGet: - host: "215" - httpHeaders: - - name: "216" - value: "217" - path: "214" - port: -1171060347 - scheme: 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊° - tcpSocket: - host: "219" - port: "218" - preStop: - exec: - command: - - "220" - httpGet: - host: "222" - httpHeaders: - - name: "223" - value: "224" - path: "221" - port: -1319998825 - scheme: 銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ - tcpSocket: - host: "225" - port: 1180382332 - livenessProbe: - exec: - command: - - "191" - failureThreshold: 1231820696 - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "192" - port: "193" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "197" - port: -2049272966 - timeoutSeconds: -427769948 - name: "165" - ports: - - containerPort: 487826951 - hostIP: "171" - hostPort: 1632959949 - name: "170" - protocol: ldg滠鼍ƭt? - readinessProbe: - exec: - command: - - "198" - failureThreshold: -1618937335 - httpGet: - host: "201" - httpHeaders: - - name: "202" - value: "203" - path: "199" - port: "200" - initialDelaySeconds: 994527057 - periodSeconds: -1346458591 - successThreshold: 1234551517 - tcpSocket: - host: "204" - port: 675406340 - timeoutSeconds: -1482763519 - resources: - limits: - ÙæNǚ錯ƶRq: "575" - requests: - To&蕭k ź: "644" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 酃=6}ɡŇƉ立hdz緄Ú|dk_瀹鞎 - drop: - - n芞QÄȻȊ+?ƭ峧Y栲茇竛 - privileged: true - procMount: 軶ǃ*ʙ嫙&蒒5靇 - readOnlyRootFilesystem: false - runAsGroup: -593458796014416333 - runAsNonRoot: true - runAsUser: 4875570291212151521 - seLinuxOptions: - level: "230" - role: "228" - type: "229" - user: "227" - windowsOptions: - gmsaCredentialSpec: "232" - gmsaCredentialSpecName: "231" - runAsUserName: "233" - startupProbe: - exec: - command: - - "205" - failureThreshold: -814446577 - httpGet: - host: "208" - httpHeaders: - - name: "209" - value: "210" - path: "206" - port: "207" - scheme: eÞȦY籎顒 - initialDelaySeconds: -1252931244 - periodSeconds: 1061537 - successThreshold: 322666556 - tcpSocket: - host: "212" - port: "211" - timeoutSeconds: 1569992019 - stdin: true - stdinOnce: true - terminationMessagePath: "226" - terminationMessagePolicy: H韹寬娬ï瓼猀2:öY鶪5w垁 - volumeDevices: - - devicePath: "190" - name: "189" - volumeMounts: - - mountPath: "186" - mountPropagation: 瑥A - name: "185" - readOnly: true - subPath: "187" - subPathExpr: "188" - workingDir: "169" - nodeName: "376" - nodeSelector: - "372": "373" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "434" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɘɢ鬍熖B芭花ª瘡 - runtimeClassName: "439" - schedulerName: "429" - securityContext: - fsGroup: 7124276984274024394 - runAsGroup: -779972051078659613 - runAsNonRoot: false - runAsUser: 2179199799235189619 - seLinuxOptions: - level: "380" - role: "378" - type: "379" - user: "377" - supplementalGroups: - - -7127205672279904050 - sysctls: - - name: "384" - value: "385" - windowsOptions: - gmsaCredentialSpec: "382" - gmsaCredentialSpecName: "381" - runAsUserName: "383" - serviceAccount: "375" - serviceAccountName: "374" - shareProcessNamespace: true - subdomain: "388" - terminationGracePeriodSeconds: 2666412258966278206 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "430" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "431" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "440" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "65" - partition: -1853411528 - volumeID: "64" - azureDisk: - cachingMode: A3fƻfʣ繡楙¯ - diskName: "128" - diskURI: "129" - fsType: "130" - kind: 勗E濞偘1ɩÅ議Ǹ轺@)蓳嗘TʡȂ - readOnly: true - azureFile: - secretName: "114" - shareName: "115" - cephfs: - monitors: - - "99" - path: "100" - readOnly: true - secretFile: "102" - secretRef: - name: "103" - user: "101" - cinder: - fsType: "97" - secretRef: - name: "98" - volumeID: "96" - configMap: - defaultMode: -347579237 - items: - - key: "117" - mode: 1793473487 - path: "118" - name: "116" - optional: false - csi: - driver: "160" - fsType: "161" - nodePublishSecretRef: - name: "164" - readOnly: false - volumeAttributes: - "162": "163" - downwardAPI: - defaultMode: -1775926229 - items: - - fieldRef: - apiVersion: "107" - fieldPath: "108" - mode: -1011172037 - path: "106" - resourceFieldRef: - containerName: "109" - divisor: "52" - resource: "110" - emptyDir: - medium: 捵TwMȗ礼2ħ籦ö嗏ʑ>季Cʖ畬 - sizeLimit: "347" - fc: - fsType: "112" - lun: -740816174 - targetWWNs: - - "111" - wwids: - - "113" - flexVolume: - driver: "91" - fsType: "92" - options: - "94": "95" - secretRef: - name: "93" - flocker: - datasetName: "104" - datasetUUID: "105" - gcePersistentDisk: - fsType: "63" - partition: 1399152294 - pdName: "62" - readOnly: true - gitRepo: - directory: "68" - repository: "66" - revision: "67" - glusterfs: - endpoints: "81" - path: "82" - readOnly: true - hostPath: - path: "61" - type: j剐'宣I拍N嚳ķȗ - iscsi: - fsType: "77" - initiatorName: "80" - iqn: "75" - iscsiInterface: "76" - lun: -1483417237 - portals: - - "78" - secretRef: - name: "79" - targetPortal: "74" - name: "60" - nfs: - path: "73" - server: "72" - persistentVolumeClaim: - claimName: "83" - readOnly: true - photonPersistentDisk: - fsType: "132" - pdID: "131" - portworxVolume: - fsType: "147" - volumeID: "146" - projected: - defaultMode: -1332301579 - sources: - - configMap: - items: - - key: "142" - mode: -1249460160 - path: "143" - name: "141" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "137" - fieldPath: "138" - mode: 1525389481 - path: "136" - resourceFieldRef: - containerName: "139" - divisor: "618" - resource: "140" - secret: - items: - - key: "134" - mode: 550215822 - path: "135" - name: "133" - optional: false - serviceAccountToken: - audience: "144" - expirationSeconds: -8988970531898753887 - path: "145" - quobyte: - group: "126" - readOnly: true - registry: "123" - tenant: "127" - user: "125" - volume: "124" - rbd: - fsType: "86" - image: "85" - keyring: "89" - monitors: - - "84" - pool: "87" - readOnly: true - secretRef: - name: "90" - user: "88" - scaleIO: - fsType: "155" - gateway: "148" - protectionDomain: "151" - readOnly: true - secretRef: - name: "150" - storageMode: "153" - storagePool: "152" - system: "149" - volumeName: "154" - secret: - defaultMode: -1852451720 - items: - - key: "70" - mode: 1395607230 - path: "71" - optional: true - secretName: "69" - storageos: - fsType: "158" - readOnly: true - secretRef: - name: "159" - volumeName: "156" - volumeNamespace: "157" - vsphereVolume: - fsType: "120" - storagePolicyID: "122" - storagePolicyName: "121" - volumePath: "119" - ttlSecondsAfterFinished: 920774957 - schedule: "19" - startingDeadlineSeconds: -2555947251840004808 - successfulJobsHistoryLimit: 1613009760 - suspend: true -status: - active: - - apiVersion: "450" - fieldPath: "452" - kind: "447" - name: "449" - namespace: "448" - resourceVersion: "451" - uid: Ŋ)TiD¢ƿ媴h diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.json b/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.json deleted file mode 100644 index 11accafa0..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.json +++ /dev/null @@ -1,1428 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "template": { - "metadata": { - "name": "19", - "generateName": "20", - "namespace": "21", - "selfLink": "22", - "uid": "SǡƏ", - "resourceVersion": "17916580954637291219", - "generation": 5259823216098853135, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 4075183944016503389, - "labels": { - "24": "25" - }, - "annotations": { - "26": "27" - }, - "ownerReferences": [ - { - "apiVersion": "28", - "kind": "29", - "name": "30", - "uid": "ɑ", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "31" - ], - "clusterName": "32", - "managedFields": [ - { - "manager": "33", - "operation": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "34", - "fieldsType": "35" - } - ] - }, - "spec": { - "parallelism": -443114323, - "completions": -1771909905, - "activeDeadlineSeconds": -9086179100394185427, - "backoffLimit": -1796008812, - "selector": { - "matchLabels": { - "g5i9/l-Y._.-444": "c2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am64" - }, - "matchExpressions": [ - { - "key": "2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5", - "operator": "In", - "values": [ - "Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "42", - "generateName": "43", - "namespace": "44", - "selfLink": "45", - "uid": "Ȗ脵鴈Ō", - "resourceVersion": "5994087412557504692", - "generation": 9213888658033954596, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2901856114738744973, - "labels": { - "47": "48" - }, - "annotations": { - "49": "50" - }, - "ownerReferences": [ - { - "apiVersion": "51", - "kind": "52", - "name": "53", - "uid": "I拍N嚳ķȗɊ捵TwMȗ礼", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "54" - ], - "clusterName": "55", - "managedFields": [ - { - "manager": "56", - "operation": "ö嗏ʑ\u003e季Cʖ畬x骀Šĸů", - "apiVersion": "57", - "fieldsType": "58" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "59", - "hostPath": { - "path": "60", - "type": "/淹\\韲翁\u0026ʢsɜ曢\\%枅:=ǛƓ" - }, - "emptyDir": { - "medium": "踓Ǻǧ湬淊kŪ睴鸏:ɥ³ƞsɁ8^ʥ", - "sizeLimit": "681" - }, - "gcePersistentDisk": { - "pdName": "61", - "fsType": "62", - "partition": 2065358741, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "63", - "fsType": "64", - "partition": -104666658, - "readOnly": true - }, - "gitRepo": { - "repository": "65", - "revision": "66", - "directory": "67" - }, - "secret": { - "secretName": "68", - "items": [ - { - "key": "69", - "path": "70", - "mode": 1648350164 - } - ], - "defaultMode": 1655406148, - "optional": true - }, - "nfs": { - "server": "71", - "path": "72" - }, - "iscsi": { - "targetPortal": "73", - "iqn": "74", - "lun": -663180249, - "iscsiInterface": "75", - "fsType": "76", - "readOnly": true, - "portals": [ - "77" - ], - "chapAuthSession": true, - "secretRef": { - "name": "78" - }, - "initiatorName": "79" - }, - "glusterfs": { - "endpoints": "80", - "path": "81" - }, - "persistentVolumeClaim": { - "claimName": "82" - }, - "rbd": { - "monitors": [ - "83" - ], - "image": "84", - "fsType": "85", - "pool": "86", - "user": "87", - "keyring": "88", - "secretRef": { - "name": "89" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "90", - "fsType": "91", - "secretRef": { - "name": "92" - }, - "readOnly": true, - "options": { - "93": "94" - } - }, - "cinder": { - "volumeID": "95", - "fsType": "96", - "readOnly": true, - "secretRef": { - "name": "97" - } - }, - "cephfs": { - "monitors": [ - "98" - ], - "path": "99", - "user": "100", - "secretFile": "101", - "secretRef": { - "name": "102" - } - }, - "flocker": { - "datasetName": "103", - "datasetUUID": "104" - }, - "downwardAPI": { - "items": [ - { - "path": "105", - "fieldRef": { - "apiVersion": "106", - "fieldPath": "107" - }, - "resourceFieldRef": { - "containerName": "108", - "resource": "109", - "divisor": "889" - }, - "mode": 1322858613 - } - ], - "defaultMode": 1801487647 - }, - "fc": { - "targetWWNs": [ - "110" - ], - "lun": 1169718433, - "fsType": "111", - "wwids": [ - "112" - ] - }, - "azureFile": { - "secretName": "113", - "shareName": "114" - }, - "configMap": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -1194714697 - } - ], - "defaultMode": -599608368, - "optional": true - }, - "vsphereVolume": { - "volumePath": "118", - "fsType": "119", - "storagePolicyName": "120", - "storagePolicyID": "121" - }, - "quobyte": { - "registry": "122", - "volume": "123", - "readOnly": true, - "user": "124", - "group": "125", - "tenant": "126" - }, - "azureDisk": { - "diskName": "127", - "diskURI": "128", - "cachingMode": "ʜǝ鿟ldg滠鼍ƭt", - "fsType": "129", - "readOnly": true, - "kind": "ȫşŇɜa" - }, - "photonPersistentDisk": { - "pdID": "130", - "fsType": "131" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 782113097 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "135", - "fieldRef": { - "apiVersion": "136", - "fieldPath": "137" - }, - "resourceFieldRef": { - "containerName": "138", - "resource": "139", - "divisor": "952" - }, - "mode": -555780268 - } - ] - }, - "configMap": { - "name": "140", - "items": [ - { - "key": "141", - "path": "142", - "mode": 1730325900 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "143", - "expirationSeconds": -2937394236764575757, - "path": "144" - } - } - ], - "defaultMode": -1980941277 - }, - "portworxVolume": { - "volumeID": "145", - "fsType": "146", - "readOnly": true - }, - "scaleIO": { - "gateway": "147", - "system": "148", - "secretRef": { - "name": "149" - }, - "sslEnabled": true, - "protectionDomain": "150", - "storagePool": "151", - "storageMode": "152", - "volumeName": "153", - "fsType": "154" - }, - "storageos": { - "volumeName": "155", - "volumeNamespace": "156", - "fsType": "157", - "readOnly": true, - "secretRef": { - "name": "158" - } - }, - "csi": { - "driver": "159", - "readOnly": true, - "fsType": "160", - "volumeAttributes": { - "161": "162" - }, - "nodePublishSecretRef": { - "name": "163" - } - } - } - ], - "initContainers": [ - { - "name": "164", - "image": "165", - "command": [ - "166" - ], - "args": [ - "167" - ], - "workingDir": "168", - "ports": [ - { - "name": "169", - "hostPort": 580681683, - "containerPort": 38897467, - "protocol": "h0åȂ町恰nj揠", - "hostIP": "170" - } - ], - "envFrom": [ - { - "prefix": "171", - "configMapRef": { - "name": "172", - "optional": false - }, - "secretRef": { - "name": "173", - "optional": true - } - } - ], - "env": [ - { - "name": "174", - "value": "175", - "valueFrom": { - "fieldRef": { - "apiVersion": "176", - "fieldPath": "177" - }, - "resourceFieldRef": { - "containerName": "178", - "resource": "179", - "divisor": "618" - }, - "configMapKeyRef": { - "name": "180", - "key": "181", - "optional": false - }, - "secretKeyRef": { - "name": "182", - "key": "183", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "缶.蒅!a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - }, - "requests": { - "T捘ɍi縱ù墴": "848" - } - }, - "volumeMounts": [ - { - "name": "184", - "readOnly": true, - "mountPath": "185", - "subPath": "186", - "mountPropagation": "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°", - "subPathExpr": "187" - } - ], - "volumeDevices": [ - { - "name": "188", - "devicePath": "189" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": -575512248, - "host": "192", - "scheme": "ɨ銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 1180382332, - "host": "195" - }, - "initialDelaySeconds": -1846991380, - "timeoutSeconds": 325236550, - "periodSeconds": -1398498492, - "successThreshold": -2035009296, - "failureThreshold": -559252309 - }, - "readinessProbe": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": 1403721475, - "host": "198", - "scheme": "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": -2064174383, - "host": "201" - }, - "initialDelaySeconds": -1327537699, - "timeoutSeconds": 483512911, - "periodSeconds": -1941847253, - "successThreshold": 1596028039, - "failureThreshold": 1427781619 - }, - "startupProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -337353552, - "host": "204", - "scheme": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -586068135, - "host": "207" - }, - "initialDelaySeconds": 1592489782, - "timeoutSeconds": 929367702, - "periodSeconds": -102814733, - "successThreshold": -152585895, - "failureThreshold": -2037320199 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": 1381010768, - "host": "210", - "scheme": "ö", - "httpHeaders": [ - { - "name": "211", - "value": "212" - } - ] - }, - "tcpSocket": { - "port": 1135182169, - "host": "213" - } - }, - "preStop": { - "exec": { - "command": [ - "214" - ] - }, - "httpGet": { - "path": "215", - "port": 1054302708, - "host": "216", - "httpHeaders": [ - { - "name": "217", - "value": "218" - } - ] - }, - "tcpSocket": { - "port": "219", - "host": "220" - } - } - }, - "terminationMessagePath": "221", - "terminationMessagePolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "imagePullPolicy": "ŴĿ", - "securityContext": { - "capabilities": { - "add": [ - "Áȉ彂Ŵ廷s{Ⱦdz@ùƸ" - ], - "drop": [ - "ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "222", - "role": "223", - "type": "224", - "level": "225" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "226", - "gmsaCredentialSpec": "227", - "runAsUserName": "228" - }, - "runAsUser": 6116261698850084527, - "runAsGroup": -8724223413734010757, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "邪匾mɩC[ó瓧嫭塓烀罁胾^拜Ȍ" - } - } - ], - "containers": [ - { - "name": "229", - "image": "230", - "command": [ - "231" - ], - "args": [ - "232" - ], - "workingDir": "233", - "ports": [ - { - "name": "234", - "hostPort": 427196286, - "containerPort": 1048864116, - "protocol": "/樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "hostIP": "235" - } - ], - "envFrom": [ - { - "prefix": "236", - "configMapRef": { - "name": "237", - "optional": true - }, - "secretRef": { - "name": "238", - "optional": false - } - } - ], - "env": [ - { - "name": "239", - "value": "240", - "valueFrom": { - "fieldRef": { - "apiVersion": "241", - "fieldPath": "242" - }, - "resourceFieldRef": { - "containerName": "243", - "resource": "244", - "divisor": "506" - }, - "configMapKeyRef": { - "name": "245", - "key": "246", - "optional": true - }, - "secretKeyRef": { - "name": "247", - "key": "248", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "ƻ悖ȩ0Ƹ[": "672" - }, - "requests": { - "": "988" - } - }, - "volumeMounts": [ - { - "name": "249", - "mountPath": "250", - "subPath": "251", - "mountPropagation": "髷裎$MVȟ@7飣奺Ȋ", - "subPathExpr": "252" - } - ], - "volumeDevices": [ - { - "name": "253", - "devicePath": "254" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "255" - ] - }, - "httpGet": { - "path": "256", - "port": -1180080716, - "host": "257", - "scheme": "Ȍ脾嚏吐ĠLƐȤ藠3.v-鿧悮", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": -161485752, - "host": "260" - }, - "initialDelaySeconds": 1524276356, - "timeoutSeconds": -521487971, - "periodSeconds": -1561418761, - "successThreshold": -1452676801, - "failureThreshold": -1171167638 - }, - "readinessProbe": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": 2141389898, - "host": "263", - "scheme": "皚|", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - }, - "initialDelaySeconds": 766864314, - "timeoutSeconds": 1146016612, - "periodSeconds": 1495880465, - "successThreshold": -1032967081, - "failureThreshold": 59664438 - }, - "startupProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": 163512962, - "host": "270", - "scheme": "Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ", - "httpHeaders": [ - { - "name": "271", - "value": "272" - } - ] - }, - "tcpSocket": { - "port": "273", - "host": "274" - }, - "initialDelaySeconds": 232569106, - "timeoutSeconds": -1150474479, - "periodSeconds": 744319626, - "successThreshold": -2107743490, - "failureThreshold": 1995332035 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": 630004123, - "host": "277", - "scheme": "ɾģ毋Ó6dz娝嘚", - "httpHeaders": [ - { - "name": "278", - "value": "279" - } - ] - }, - "tcpSocket": { - "port": -1213051101, - "host": "280" - } - }, - "preStop": { - "exec": { - "command": [ - "281" - ] - }, - "httpGet": { - "path": "282", - "port": -1905643191, - "host": "283", - "scheme": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "httpHeaders": [ - { - "name": "284", - "value": "285" - } - ] - }, - "tcpSocket": { - "port": "286", - "host": "287" - } - } - }, - "terminationMessagePath": "288", - "terminationMessagePolicy": "勅跦Opwǩ曬逴褜1Ø", - "imagePullPolicy": "Ǜv+8Ƥ熪军g\u003e郵[+扴ȨŮ+", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ljVX1虊谇j爻ƙt叀碧" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "289", - "role": "290", - "type": "291", - "level": "292" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "293", - "gmsaCredentialSpec": "294", - "runAsUserName": "295" - }, - "runAsUser": 77796669038602313, - "runAsGroup": -6641599652770442851, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ʁ岼昕ĬÇ" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "296", - "image": "297", - "command": [ - "298" - ], - "args": [ - "299" - ], - "workingDir": "300", - "ports": [ - { - "name": "301", - "hostPort": 2087800617, - "containerPort": -1491697472, - "protocol": "6", - "hostIP": "302" - } - ], - "envFrom": [ - { - "prefix": "303", - "configMapRef": { - "name": "304", - "optional": false - }, - "secretRef": { - "name": "305", - "optional": true - } - } - ], - "env": [ - { - "name": "306", - "value": "307", - "valueFrom": { - "fieldRef": { - "apiVersion": "308", - "fieldPath": "309" - }, - "resourceFieldRef": { - "containerName": "310", - "resource": "311", - "divisor": "879" - }, - "configMapKeyRef": { - "name": "312", - "key": "313", - "optional": true - }, - "secretKeyRef": { - "name": "314", - "key": "315", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "u|榝$î.Ȏ蝪ʜ5遰=E埄Ȁ": "114" - }, - "requests": { - "Ƭƶ氩Ȩ\u003c6": "446" - } - }, - "volumeMounts": [ - { - "name": "316", - "readOnly": true, - "mountPath": "317", - "subPath": "318", - "mountPropagation": "翑0展}硐庰%皧V垾", - "subPathExpr": "319" - } - ], - "volumeDevices": [ - { - "name": "320", - "devicePath": "321" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "322" - ] - }, - "httpGet": { - "path": "323", - "port": "324", - "host": "325", - "scheme": "E¦", - "httpHeaders": [ - { - "name": "326", - "value": "327" - } - ] - }, - "tcpSocket": { - "port": "328", - "host": "329" - }, - "initialDelaySeconds": 1868887309, - "timeoutSeconds": -528664199, - "periodSeconds": -316996074, - "successThreshold": 1933968533, - "failureThreshold": 549215478 - }, - "readinessProbe": { - "exec": { - "command": [ - "330" - ] - }, - "httpGet": { - "path": "331", - "port": -374766088, - "host": "332", - "scheme": "翜舞拉Œ", - "httpHeaders": [ - { - "name": "333", - "value": "334" - } - ] - }, - "tcpSocket": { - "port": "335", - "host": "336" - }, - "initialDelaySeconds": -190183379, - "timeoutSeconds": -940334911, - "periodSeconds": -341287812, - "successThreshold": 2030115750, - "failureThreshold": 1847163341 - }, - "startupProbe": { - "exec": { - "command": [ - "337" - ] - }, - "httpGet": { - "path": "338", - "port": 567263590, - "host": "339", - "scheme": "KŅ/", - "httpHeaders": [ - { - "name": "340", - "value": "341" - } - ] - }, - "tcpSocket": { - "port": "342", - "host": "343" - }, - "initialDelaySeconds": -1894250541, - "timeoutSeconds": 1962818731, - "periodSeconds": 1315054653, - "successThreshold": 711020087, - "failureThreshold": 1103049140 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "344" - ] - }, - "httpGet": { - "path": "345", - "port": -2128108224, - "host": "346", - "scheme": "δ摖", - "httpHeaders": [ - { - "name": "347", - "value": "348" - } - ] - }, - "tcpSocket": { - "port": "349", - "host": "350" - } - }, - "preStop": { - "exec": { - "command": [ - "351" - ] - }, - "httpGet": { - "path": "352", - "port": "353", - "host": "354", - "httpHeaders": [ - { - "name": "355", - "value": "356" - } - ] - }, - "tcpSocket": { - "port": "357", - "host": "358" - } - } - }, - "terminationMessagePath": "359", - "terminationMessagePolicy": "ƺ蛜6Ɖ飴ɎiǨź", - "imagePullPolicy": "囌{屿oiɥ嵐sC", - "securityContext": { - "capabilities": { - "add": [ - "Ǻ鱎ƙ;Nŕ" - ], - "drop": [ - "Jih亏yƕ丆録²" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "360", - "role": "361", - "type": "362", - "level": "363" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "364", - "gmsaCredentialSpec": "365", - "runAsUserName": "366" - }, - "runAsUser": -607313695104609402, - "runAsGroup": 2179199799235189619, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "砅邻爥蹔ŧOǨ繫ʎǑyZ涬P­" - }, - "stdin": true, - "stdinOnce": true, - "targetContainerName": "367" - } - ], - "restartPolicy": "幩šeSvEȤƏ埮pɵ", - "terminationGracePeriodSeconds": -3123571459188372202, - "activeDeadlineSeconds": 4755717378804967849, - "dnsPolicy": "ʐşƧ", - "nodeSelector": { - "368": "369" - }, - "serviceAccountName": "370", - "serviceAccount": "371", - "automountServiceAccountToken": true, - "nodeName": "372", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "373", - "role": "374", - "type": "375", - "level": "376" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "377", - "gmsaCredentialSpec": "378", - "runAsUserName": "379" - }, - "runAsUser": 1287380841622288898, - "runAsGroup": 2006200781539567705, - "runAsNonRoot": true, - "supplementalGroups": [ - 6618112330449141397 - ], - "fsGroup": -5265121980497361308, - "sysctls": [ - { - "name": "380", - "value": "381" - } - ] - }, - "imagePullSecrets": [ - { - "name": "382" - } - ], - "hostname": "383", - "subdomain": "384", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "385", - "operator": "餑噭DµņP)", - "values": [ - "386" - ] - } - ], - "matchFields": [ - { - "key": "387", - "operator": "ƷƣMț", - "values": [ - "388" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1588068441, - "preference": { - "matchExpressions": [ - { - "key": "389", - "operator": "W疪鑳w妕眵", - "values": [ - "390" - ] - } - ], - "matchFields": [ - { - "key": "391", - "operator": "躒訙Ǫʓ)ǂť嗆u8晲T[irȎ", - "values": [ - "392" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "W_0-8-.M-.-.-8v-J1zET_..3dCv3j._.-p": "H_up.2L_s-o779._-k-5___-Qq..csh-3--Z1v" - }, - "matchExpressions": [ - { - "key": "39d4im.2---2etfh41ca-z-5g2wco280/C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC97", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "399" - ], - "topologyKey": "400" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 2102595797, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/3bz._8M0U1_-__.71-_-9_._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "407" - ], - "topologyKey": "408" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "D-0": "P.-.C_--.5" - }, - "matchExpressions": [ - { - "key": "d4----q-x3w3dn5-1rhm-5y--z---69o-9-69mxv7.05-6-1xr-7---064eqk5--f4e4--r1k278l-d8/NN-S..O-BZ..6-1.S-BX", - "operator": "NotIn", - "values": [ - "1_xJ1-lFA_Xf3.V0H2-.zHw.H__7" - ] - } - ] - }, - "namespaces": [ - "415" - ], - "topologyKey": "416" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 754095416, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D": "Y_2-n_5023Xl-3Pw_-r7g" - }, - "matchExpressions": [ - { - "key": "3hjo--8kb6--ut---p8--3-e-3-44-e.w--i--40wv--in-870w--it6k47-7yd-y--3wc8q8/wrbW_E..24-O._.v._9-cz.-Y6T4g_-.._Lf2t_m...Cr", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "423" - ], - "topologyKey": "424" - } - } - ] - } - }, - "schedulerName": "425", - "tolerations": [ - { - "key": "426", - "operator": "z* 皗u疲fɎ嵄箲Ů埞瞔ɏÊ锒e躜", - "value": "427", - "effect": "ǣʛsĊ剞鮧軷șlļė[BN柌ë", - "tolerationSeconds": -9161243904952859304 - } - ], - "hostAliases": [ - { - "ip": "428", - "hostnames": [ - "429" - ] - } - ], - "priorityClassName": "430", - "priority": -966330786, - "dnsConfig": { - "nameservers": [ - "431" - ], - "searches": [ - "432" - ], - "options": [ - { - "name": "433", - "value": "434" - } - ] - }, - "readinessGates": [ - { - "conditionType": "齔試ŭ" - } - ], - "runtimeClassName": "435", - "enableServiceLinks": false, - "preemptionPolicy": "鬙Ǒȃ绡\u003e堵zŕƧ钖孝0蛮xAǫ", - "overhead": { - "tŧK剛Ʀ魨练脨,Ƃ3貊": "972" - }, - "topologySpreadConstraints": [ - { - "maxSkew": 2088809792, - "topologyKey": "436", - "whenUnsatisfiable": "縊CkǚŨ镦", - "labelSelector": { - "matchLabels": { - "rf-l67-9a-trt-03-7z2zy0e428-4-k2/kU27_.-4T-I.-..K.-.0__sD.-.-_I-FP": "q-JM" - }, - "matchExpressions": [ - { - "key": "RT.0zo", - "operator": "DoesNotExist" - } - ] - } - } - ] - } - }, - "ttlSecondsAfterFinished": 246849509 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.pb b/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.pb deleted file mode 100644 index 5c5ab36d50fdde13f4a2942a2e8636b7b6406bd5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6507 zcmY*d349gR)z7>D!O?0Qm%cu2`+QZu7(0`hduOFpSuF-xWKo2EPFcd105J&(r0rL- z5%LJx7qUYFSs+2oz5r2@x5ZXz)z7Weew29&rIZRPRFv=BdEwJ9zhBO~bC+}OJ@?#m z{^umBsS)%K>ATmiNn5umE*-5&O5U_aVD60HzIJ)S*5sr$X$j1mi0+_h3NaM6QKEyA zVkrgPF9^JdL|zg#l~)y+ml2QEPcCP_pS7<(D|vRrlCHgdIeATQ*N;%ErqPtbQ0m$! zn$j4Hz;ChB76I8T0(RUzH`5rY@aF$I)#Y>-C&yZVZ-h#vSOhWCB1ldu4yMY?BcT$f zQQ-`=)VLbi6-IsU*ua`NU&U|zrCBllq3ZEH{|Vd_WD!)ROrRSnSOk&~Z?ho5VL>Q% z>N3wEcQI^R(F9pic})^!tRPK5f~FQ{_jrnqb=;Z{+dembao=0+uifgZ>9hrjz(iV0 zS~9ehE%!r9vsp0ju=q-2ElA}lH6q1=g-i=ZPU>;mf-z$quN%)c@~ea8#V%*C&N*JN zD=?537_5YaBC=qKxg0mWYv|+7Z*IXK75&eeeLXkKrnPIhx9+R_kFRD?4$%1m`ksx_ zW-Ts>eVNlaRun}>U5E6g-%4 z1wPkol|^P1jSvU3=IP7QbsfnIR_aTEDYqzX6Q{H6GF_ZIOJ^mW6_Z{N(L$EpCa@A? zd2XA{zIcbgZPhtx)=R9ujOFk~PSMeZMe8IM7%W|>#zde(jy?ri7ZGC-vCSfi4vQ$o z(%!0IZeOT(ud5K?K(I<=z0xUg5gLi=e=3_Tl-luT6Fiiz3BZ;E7T*EQ&HSV(Ao^q^_jaS`;lF7OOmC zQ3Y$n(rM5}(GjcQb*jKb6>Sz(a#&P3)}n%nRCNZdRJEDZS{rTAV3j7=phrWnVYnv^ z)@b4uIHLwz*JLZ@AfrmkLqJvN(QJ_d&pUt!v7iuvM|?ykO&XX1B4$&FjwPQGWA@6V zSFznox>VBEY_LpKHT&mRE_^X1y2+XS$uuYReHa(`=tDRDr)vsG5CnTfEc~D{>Mk-u zcnhL6qLzA+CQ=27d4T*7?t)?+=xKLo3CUu!Z@Fyva`#V48@mg`YTw!2ZC5;S)z+edl_1`IXYf4=7NVC`Pwj?|tXGso0Mx zD@>8dsU#T&B?S&aP9v%3sUMSHEt)Knc?Z!2ybvJZvPl~=4b$mJgfu1+VcrHrZ~#HE zKrm8a2#e9*eDl#;l=a#~>9t6QJwxRzg~1NjsqLPFu91lYF9&;ad`BUS zkd@Mm1!N^*D)P2xXb_9Yu@Lw#FgGNE%8)1$l}o&AyPK#Jk!wNZS{#$#a4$$yt<>yC z==t6WW3`!_6vvOfg~8m@Ms2ZC zQZjzVKP4Vn+Ye_ExybU;Mr6k74PnHqvv*?*Zn35F5!T3&(xA$?w}vM-YS!^DlpFgV-=Yi_MLCP8n#-KyNVqTdMbTAz5#8l(CBSC zGa5M1>Z=M2RGJc0ax(S1CsWDERAmbgHRWMXUHX%%`*2{-QDaZt#-~F$eXF1J7xa4D zUB{oyOr{?O`>=WnUR)^zYn;Io`C9^eN8B}OM)B@Ia~nJfa6w2VMye6Z*NEkVv-O?L z?ce+P0Vfqh5vVk?p~cz!X+inL7ApR(i7cc0r2jzWc;{ID(tBVzIAtIrSuX9SBKA^L z2?eeYycmL~e}}07tbnY^rWzg5Onu+jmlqspU7VcZ>G0QehIaP`57!H02aXb7g(SjK z61%A!iVmv~f)i08M5jBz3bONVE(~7{?|9fXWbCe9=C3I;`m0xrmFVu{v-}l@<9vg@ zB769f$g@+>cZ>r981#tIWuJYv&06|)?JwpRgw)>2s z4%eZCW$E+0huy_S)A3|qpS`NKVfDDYXZKA~0I{U(_9JelY6N_1Pm5|OXqo2dt zdU5ks4zVnY64Ewo5`}eZ*i2U1h%(k~hld$AhfPUa_AAIW;X6R7=2x$n(s5)b#fc{r+MU^A<&)rszz1rLSer>hJ36#_xfoFV{{)^tu^$btOj)J&UA(2B^Hjp zGlfWGd09+&HBn;O4PpXtND&f|q9(EH)wo5A*kzz~cJ?ZcgZbPtcJ@kU>Z0vwkPkd8 z=sV*DHtE?}`pONMdy$`yST1vZ1~*^V!OTTLf=vUyYPC!sJUS7uFbx*E#6p9+*usO% zjj&IIQpAj12@=}HZc-ooROh5OgJZB^ck<=aY7F9G9V|K|UgJBEK|4oXb4$vX0noIzT17GKs}YGITaY z*~sKmbOzqE1>~rSYh{+*kp_B5RzWPA0RN)MCU6-nyBRjXXQV@88>=cj=}D6lMTJ#% zt!F{6IAfjqsv4J(vi2o?9>*b(T@06+&gmMvE|X(lmY0hg!D2c6`3)#d-wNBClfv9J zcY8uA=+LxUP!z(TC?wWWK&58tb3i%*36_wd5;!CST9lPoAS!|=E67^(ySM&TVX=-B zxf#d3oA|LK-t0idus`dBr_f(~5N0YoK{kRym?%;h*$5Cb;Y%UNMj$Z}a$tgNWI+uh z8-X|~fusOoWFtTW(7_h*ft2<|Qn4jv8V7AA}} zdRt!(yj~PKRK@_@2asf??^*8Of55kYb71iGu_2?mmw+HuRO6q54XC1t^&qi;wjBGI zQ8p5&uJ#_<>h9eY=pWR_YE`2+CzN&4b!^G}K=yHek@L(61ap<82Pry<1S|nO*%I<2 zm?7JH#`lj&oC=^w(2(OleC;7;tI>KQG*aa)cjrGEI9U_*4u;SH=Rq38|aEy~P1!dx-oO3v}lhN&bbLb1W|i06cVxXIV+FX#(ZHFz6BC4EM2 zi!pM@R~kBf>{o`fC%i8b_<4R3wEfZebK7lPLi&a1b7Noc2}efjJBK}f%6@E5{`v5f znEX)Qjj81^$pGIL8vfMUj2zZr}L5{#iT6V}B? z*{uzxE)XP9&zL*}k$Dt&Kn_Keb#3h27m;SD7i337m;(XDU|8Q`Jt)Kge&@FU5mKhO zddEjI+bQ~I^!LZIyamRoY*()_GLZUf?`coZ%&{T&AY*s!_O}mvbJG2TP0E?W%K9zt z*T$>-Cl9PL3Tpk8`}s*^M6xhMo)AJJAR{E%U+X$D@#fX{t}LHKMqeGgR&({>`(Ny# z;vWlTA2kY3Z}oM|Sv}ShC~q^4bs2}s139|`r?P@Mr(f~!tM?X~kO@jXzzrNPLaGUw zB5p$_0rG4UCqbzRaO`9gM?4vAekHp9a@UtrtyTLgMk4K3Ke#zrScv)Pv&I1eu5VHNjlYle zhOMQYqPnS9Xz)QY^LS>gJy2V{BT&`7!B=GT|L^jtqEflEzPtSFfJE$lp{rb}Z&Y=S1#1t;a9#rpzo?M4$>0 zX=lLSVctvqdwZ&Zl{@MR|crfgO9F$DP5%Kt#houK1yaG7 z{Dy#m1qnR<&*?|$hj#qN-`eo#*m2HV6l^#;Q7?tEPCPZwXv+2OCTfFv3PUp9PItfm zM2ENi=Q8OPML8bo6fJd--Ho{48lwiF(SYlL6n$xrj?jHCeISXv;05L0_i{L(W3WXEdOen^~Pt{ zawgN)s=`aba5JW|;6QB@|HaV1@+_mR;-e^69#+!+|H z5AJRB?<;VXnWBj?Vk~|~G*nNZM~?0)X+IKvP}Vo!e0wx(&Gwsvht5sPZym_>M)7~R zYFwGNc0Z};lG8#RmnT1xxq&w(8Vhc_b~v*rJEF#l&h+|At4!gf{DYzV^X<8zAR37! zo_X42CJD?>fSCm4hDp^);1jVVhCMPSbr%eEmv7fggrlTx0ivZu8+C=hHeMgyzS(!g z=qpK`lew3o?ev|V;n3?v?wX%1a#b?-#&6zqVYqmgyYj-|o={=;nQriYBt?P}DG&j~ z$p~&+#`ZmJr{1Xk#{u7$Bs--bJH6Up^2X`+bDMq?Zx0;I3uTW4_8tiiRk+#~d)fm- z$0mwArMp)7`#YDM=_1}26a0e-{=u@mo1(sxuwrnSrpv{=c-#A8ULxL?aSsRU>ScF9 zsHN9ewAs_{8aACTMr4CX=%zM>3lXqE>YLzAcO# OW*Va(@32KUBK{Y1&4G0Q diff --git a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.yaml b/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.yaml deleted file mode 100644 index f46ab6750..000000000 --- a/pseudo/k8s/api/testdata/HEAD/batch.v2alpha1.JobTemplate.yaml +++ /dev/null @@ -1,976 +0,0 @@ -apiVersion: batch/v2alpha1 -kind: JobTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -template: - metadata: - annotations: - "26": "27" - clusterName: "32" - creationTimestamp: null - deletionGracePeriodSeconds: 4075183944016503389 - finalizers: - - "31" - generateName: "20" - generation: 5259823216098853135 - labels: - "24": "25" - managedFields: - - apiVersion: "34" - fieldsType: "35" - manager: "33" - operation: ěĂ凗蓏Ŋ蛊ĉy緅縕 - name: "19" - namespace: "21" - ownerReferences: - - apiVersion: "28" - blockOwnerDeletion: false - controller: true - kind: "29" - name: "30" - uid: ɑ - resourceVersion: "17916580954637291219" - selfLink: "22" - uid: SǡƏ - spec: - activeDeadlineSeconds: -9086179100394185427 - backoffLimit: -1796008812 - completions: -1771909905 - manualSelector: false - parallelism: -443114323 - selector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - g5i9/l-Y._.-444: c2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am64 - template: - metadata: - annotations: - "49": "50" - clusterName: "55" - creationTimestamp: null - deletionGracePeriodSeconds: -2901856114738744973 - finalizers: - - "54" - generateName: "43" - generation: 9213888658033954596 - labels: - "47": "48" - managedFields: - - apiVersion: "57" - fieldsType: "58" - manager: "56" - operation: ö嗏ʑ>季Cʖ畬x骀Šĸů - name: "42" - namespace: "44" - ownerReferences: - - apiVersion: "51" - blockOwnerDeletion: false - controller: false - kind: "52" - name: "53" - uid: I拍N嚳ķȗɊ捵TwMȗ礼 - resourceVersion: "5994087412557504692" - selfLink: "45" - uid: Ȗ脵鴈Ō - spec: - activeDeadlineSeconds: 4755717378804967849 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "389" - operator: W疪鑳w妕眵 - values: - - "390" - matchFields: - - key: "391" - operator: 躒訙Ǫʓ)ǂť嗆u8晲T[irȎ - values: - - "392" - weight: -1588068441 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "385" - operator: 餑噭DµņP) - values: - - "386" - matchFields: - - key: "387" - operator: ƷƣMț - values: - - "388" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/3bz._8M0U1_-__.71-_-9_._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "407" - topologyKey: "408" - weight: 2102595797 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 39d4im.2---2etfh41ca-z-5g2wco280/C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC97 - operator: Exists - matchLabels: - W_0-8-.M-.-.-8v-J1zET_..3dCv3j._.-p: H_up.2L_s-o779._-k-5___-Qq..csh-3--Z1v - namespaces: - - "399" - topologyKey: "400" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3hjo--8kb6--ut---p8--3-e-3-44-e.w--i--40wv--in-870w--it6k47-7yd-y--3wc8q8/wrbW_E..24-O._.v._9-cz.-Y6T4g_-.._Lf2t_m...Cr - operator: DoesNotExist - matchLabels: - 0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D: Y_2-n_5023Xl-3Pw_-r7g - namespaces: - - "423" - topologyKey: "424" - weight: 754095416 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d4----q-x3w3dn5-1rhm-5y--z---69o-9-69mxv7.05-6-1xr-7---064eqk5--f4e4--r1k278l-d8/NN-S..O-BZ..6-1.S-BX - operator: NotIn - values: - - 1_xJ1-lFA_Xf3.V0H2-.zHw.H__7 - matchLabels: - D-0: P.-.C_--.5 - namespaces: - - "415" - topologyKey: "416" - automountServiceAccountToken: true - containers: - - args: - - "232" - command: - - "231" - env: - - name: "239" - value: "240" - valueFrom: - configMapKeyRef: - key: "246" - name: "245" - optional: true - fieldRef: - apiVersion: "241" - fieldPath: "242" - resourceFieldRef: - containerName: "243" - divisor: "506" - resource: "244" - secretKeyRef: - key: "248" - name: "247" - optional: true - envFrom: - - configMapRef: - name: "237" - optional: true - prefix: "236" - secretRef: - name: "238" - optional: false - image: "230" - imagePullPolicy: Ǜv+8Ƥ熪军g>郵[+扴ȨŮ+ - lifecycle: - postStart: - exec: - command: - - "275" - httpGet: - host: "277" - httpHeaders: - - name: "278" - value: "279" - path: "276" - port: 630004123 - scheme: ɾģ毋Ó6dz娝嘚 - tcpSocket: - host: "280" - port: -1213051101 - preStop: - exec: - command: - - "281" - httpGet: - host: "283" - httpHeaders: - - name: "284" - value: "285" - path: "282" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - tcpSocket: - host: "287" - port: "286" - livenessProbe: - exec: - command: - - "255" - failureThreshold: -1171167638 - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "256" - port: -1180080716 - scheme: Ȍ脾嚏吐ĠLƐȤ藠3.v-鿧悮 - initialDelaySeconds: 1524276356 - periodSeconds: -1561418761 - successThreshold: -1452676801 - tcpSocket: - host: "260" - port: -161485752 - timeoutSeconds: -521487971 - name: "229" - ports: - - containerPort: 1048864116 - hostIP: "235" - hostPort: 427196286 - name: "234" - protocol: /樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - readinessProbe: - exec: - command: - - "261" - failureThreshold: 59664438 - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "262" - port: 2141389898 - scheme: 皚| - initialDelaySeconds: 766864314 - periodSeconds: 1495880465 - successThreshold: -1032967081 - tcpSocket: - host: "267" - port: "266" - timeoutSeconds: 1146016612 - resources: - limits: - ƻ悖ȩ0Ƹ[: "672" - requests: - "": "988" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ljVX1虊谇j爻ƙt叀碧 - privileged: true - procMount: ʁ岼昕ĬÇ - readOnlyRootFilesystem: false - runAsGroup: -6641599652770442851 - runAsNonRoot: true - runAsUser: 77796669038602313 - seLinuxOptions: - level: "292" - role: "290" - type: "291" - user: "289" - windowsOptions: - gmsaCredentialSpec: "294" - gmsaCredentialSpecName: "293" - runAsUserName: "295" - startupProbe: - exec: - command: - - "268" - failureThreshold: 1995332035 - httpGet: - host: "270" - httpHeaders: - - name: "271" - value: "272" - path: "269" - port: 163512962 - scheme: 'Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ' - initialDelaySeconds: 232569106 - periodSeconds: 744319626 - successThreshold: -2107743490 - tcpSocket: - host: "274" - port: "273" - timeoutSeconds: -1150474479 - stdinOnce: true - terminationMessagePath: "288" - terminationMessagePolicy: 勅跦Opwǩ曬逴褜1Ø - volumeDevices: - - devicePath: "254" - name: "253" - volumeMounts: - - mountPath: "250" - mountPropagation: 髷裎$MVȟ@7飣奺Ȋ - name: "249" - subPath: "251" - subPathExpr: "252" - workingDir: "233" - dnsConfig: - nameservers: - - "431" - options: - - name: "433" - value: "434" - searches: - - "432" - dnsPolicy: ʐşƧ - enableServiceLinks: false - ephemeralContainers: - - args: - - "299" - command: - - "298" - env: - - name: "306" - value: "307" - valueFrom: - configMapKeyRef: - key: "313" - name: "312" - optional: true - fieldRef: - apiVersion: "308" - fieldPath: "309" - resourceFieldRef: - containerName: "310" - divisor: "879" - resource: "311" - secretKeyRef: - key: "315" - name: "314" - optional: false - envFrom: - - configMapRef: - name: "304" - optional: false - prefix: "303" - secretRef: - name: "305" - optional: true - image: "297" - imagePullPolicy: 囌{屿oiɥ嵐sC - lifecycle: - postStart: - exec: - command: - - "344" - httpGet: - host: "346" - httpHeaders: - - name: "347" - value: "348" - path: "345" - port: -2128108224 - scheme: δ摖 - tcpSocket: - host: "350" - port: "349" - preStop: - exec: - command: - - "351" - httpGet: - host: "354" - httpHeaders: - - name: "355" - value: "356" - path: "352" - port: "353" - tcpSocket: - host: "358" - port: "357" - livenessProbe: - exec: - command: - - "322" - failureThreshold: 549215478 - httpGet: - host: "325" - httpHeaders: - - name: "326" - value: "327" - path: "323" - port: "324" - scheme: E¦ - initialDelaySeconds: 1868887309 - periodSeconds: -316996074 - successThreshold: 1933968533 - tcpSocket: - host: "329" - port: "328" - timeoutSeconds: -528664199 - name: "296" - ports: - - containerPort: -1491697472 - hostIP: "302" - hostPort: 2087800617 - name: "301" - protocol: "6" - readinessProbe: - exec: - command: - - "330" - failureThreshold: 1847163341 - httpGet: - host: "332" - httpHeaders: - - name: "333" - value: "334" - path: "331" - port: -374766088 - scheme: 翜舞拉Œ - initialDelaySeconds: -190183379 - periodSeconds: -341287812 - successThreshold: 2030115750 - tcpSocket: - host: "336" - port: "335" - timeoutSeconds: -940334911 - resources: - limits: - u|榝$î.Ȏ蝪ʜ5遰=E埄Ȁ: "114" - requests: - Ƭƶ氩Ȩ<6: "446" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - Ǻ鱎ƙ;Nŕ - drop: - - Jih亏yƕ丆録² - privileged: false - procMount: 砅邻爥蹔ŧOǨ繫ʎǑyZ涬P­ - readOnlyRootFilesystem: true - runAsGroup: 2179199799235189619 - runAsNonRoot: true - runAsUser: -607313695104609402 - seLinuxOptions: - level: "363" - role: "361" - type: "362" - user: "360" - windowsOptions: - gmsaCredentialSpec: "365" - gmsaCredentialSpecName: "364" - runAsUserName: "366" - startupProbe: - exec: - command: - - "337" - failureThreshold: 1103049140 - httpGet: - host: "339" - httpHeaders: - - name: "340" - value: "341" - path: "338" - port: 567263590 - scheme: KŅ/ - initialDelaySeconds: -1894250541 - periodSeconds: 1315054653 - successThreshold: 711020087 - tcpSocket: - host: "343" - port: "342" - timeoutSeconds: 1962818731 - stdin: true - stdinOnce: true - targetContainerName: "367" - terminationMessagePath: "359" - terminationMessagePolicy: ƺ蛜6Ɖ飴ɎiǨź - volumeDevices: - - devicePath: "321" - name: "320" - volumeMounts: - - mountPath: "317" - mountPropagation: 翑0展}硐庰%皧V垾 - name: "316" - readOnly: true - subPath: "318" - subPathExpr: "319" - workingDir: "300" - hostAliases: - - hostnames: - - "429" - ip: "428" - hostNetwork: true - hostPID: true - hostname: "383" - imagePullSecrets: - - name: "382" - initContainers: - - args: - - "167" - command: - - "166" - env: - - name: "174" - value: "175" - valueFrom: - configMapKeyRef: - key: "181" - name: "180" - optional: false - fieldRef: - apiVersion: "176" - fieldPath: "177" - resourceFieldRef: - containerName: "178" - divisor: "618" - resource: "179" - secretKeyRef: - key: "183" - name: "182" - optional: false - envFrom: - - configMapRef: - name: "172" - optional: false - prefix: "171" - secretRef: - name: "173" - optional: true - image: "165" - imagePullPolicy: ŴĿ - lifecycle: - postStart: - exec: - command: - - "208" - httpGet: - host: "210" - httpHeaders: - - name: "211" - value: "212" - path: "209" - port: 1381010768 - scheme: ö - tcpSocket: - host: "213" - port: 1135182169 - preStop: - exec: - command: - - "214" - httpGet: - host: "216" - httpHeaders: - - name: "217" - value: "218" - path: "215" - port: 1054302708 - tcpSocket: - host: "220" - port: "219" - livenessProbe: - exec: - command: - - "190" - failureThreshold: -559252309 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: -575512248 - scheme: ɨ銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ - initialDelaySeconds: -1846991380 - periodSeconds: -1398498492 - successThreshold: -2035009296 - tcpSocket: - host: "195" - port: 1180382332 - timeoutSeconds: 325236550 - name: "164" - ports: - - containerPort: 38897467 - hostIP: "170" - hostPort: 580681683 - name: "169" - protocol: h0åȂ町恰nj揠 - readinessProbe: - exec: - command: - - "196" - failureThreshold: 1427781619 - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "197" - port: 1403721475 - scheme: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - initialDelaySeconds: -1327537699 - periodSeconds: -1941847253 - successThreshold: 1596028039 - tcpSocket: - host: "201" - port: -2064174383 - timeoutSeconds: 483512911 - resources: - limits: - 缶.蒅!a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - requests: - T捘ɍi縱ù墴: "848" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - Áȉ彂Ŵ廷s{Ⱦdz@ùƸ - drop: - - ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0 - privileged: true - procMount: 邪匾mɩC[ó瓧嫭塓烀罁胾^拜Ȍ - readOnlyRootFilesystem: false - runAsGroup: -8724223413734010757 - runAsNonRoot: true - runAsUser: 6116261698850084527 - seLinuxOptions: - level: "225" - role: "223" - type: "224" - user: "222" - windowsOptions: - gmsaCredentialSpec: "227" - gmsaCredentialSpecName: "226" - runAsUserName: "228" - startupProbe: - exec: - command: - - "202" - failureThreshold: -2037320199 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -337353552 - scheme: ɖȃ賲鐅臬dH巧壚tC十Oɢ - initialDelaySeconds: 1592489782 - periodSeconds: -102814733 - successThreshold: -152585895 - tcpSocket: - host: "207" - port: -586068135 - timeoutSeconds: 929367702 - terminationMessagePath: "221" - terminationMessagePolicy: 軶ǃ*ʙ嫙&蒒5靇 - volumeDevices: - - devicePath: "189" - name: "188" - volumeMounts: - - mountPath: "185" - mountPropagation: 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊° - name: "184" - readOnly: true - subPath: "186" - subPathExpr: "187" - workingDir: "168" - nodeName: "372" - nodeSelector: - "368": "369" - overhead: - tŧK剛Ʀ魨练脨,Ƃ3貊: "972" - preemptionPolicy: 鬙Ǒȃ绡>堵zŕƧ钖孝0蛮xAǫ - priority: -966330786 - priorityClassName: "430" - readinessGates: - - conditionType: 齔試ŭ - restartPolicy: 幩šeSvEȤƏ埮pɵ - runtimeClassName: "435" - schedulerName: "425" - securityContext: - fsGroup: -5265121980497361308 - runAsGroup: 2006200781539567705 - runAsNonRoot: true - runAsUser: 1287380841622288898 - seLinuxOptions: - level: "376" - role: "374" - type: "375" - user: "373" - supplementalGroups: - - 6618112330449141397 - sysctls: - - name: "380" - value: "381" - windowsOptions: - gmsaCredentialSpec: "378" - gmsaCredentialSpecName: "377" - runAsUserName: "379" - serviceAccount: "371" - serviceAccountName: "370" - shareProcessNamespace: true - subdomain: "384" - terminationGracePeriodSeconds: -3123571459188372202 - tolerations: - - effect: ǣʛsĊ剞鮧軷șlļė[BN柌ë - key: "426" - operator: z* 皗u疲fɎ嵄箲Ů埞瞔ɏÊ锒e躜 - tolerationSeconds: -9161243904952859304 - value: "427" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: RT.0zo - operator: DoesNotExist - matchLabels: - rf-l67-9a-trt-03-7z2zy0e428-4-k2/kU27_.-4T-I.-..K.-.0__sD.-.-_I-FP: q-JM - maxSkew: 2088809792 - topologyKey: "436" - whenUnsatisfiable: 縊CkǚŨ镦 - volumes: - - awsElasticBlockStore: - fsType: "64" - partition: -104666658 - readOnly: true - volumeID: "63" - azureDisk: - cachingMode: ʜǝ鿟ldg滠鼍ƭt - diskName: "127" - diskURI: "128" - fsType: "129" - kind: ȫşŇɜa - readOnly: true - azureFile: - secretName: "113" - shareName: "114" - cephfs: - monitors: - - "98" - path: "99" - secretFile: "101" - secretRef: - name: "102" - user: "100" - cinder: - fsType: "96" - readOnly: true - secretRef: - name: "97" - volumeID: "95" - configMap: - defaultMode: -599608368 - items: - - key: "116" - mode: -1194714697 - path: "117" - name: "115" - optional: true - csi: - driver: "159" - fsType: "160" - nodePublishSecretRef: - name: "163" - readOnly: true - volumeAttributes: - "161": "162" - downwardAPI: - defaultMode: 1801487647 - items: - - fieldRef: - apiVersion: "106" - fieldPath: "107" - mode: 1322858613 - path: "105" - resourceFieldRef: - containerName: "108" - divisor: "889" - resource: "109" - emptyDir: - medium: 踓Ǻǧ湬淊kŪ睴鸏:ɥ³ƞsɁ8^ʥ - sizeLimit: "681" - fc: - fsType: "111" - lun: 1169718433 - targetWWNs: - - "110" - wwids: - - "112" - flexVolume: - driver: "90" - fsType: "91" - options: - "93": "94" - readOnly: true - secretRef: - name: "92" - flocker: - datasetName: "103" - datasetUUID: "104" - gcePersistentDisk: - fsType: "62" - partition: 2065358741 - pdName: "61" - readOnly: true - gitRepo: - directory: "67" - repository: "65" - revision: "66" - glusterfs: - endpoints: "80" - path: "81" - hostPath: - path: "60" - type: /淹\韲翁&ʢsɜ曢\%枅:=ǛƓ - iscsi: - chapAuthSession: true - fsType: "76" - initiatorName: "79" - iqn: "74" - iscsiInterface: "75" - lun: -663180249 - portals: - - "77" - readOnly: true - secretRef: - name: "78" - targetPortal: "73" - name: "59" - nfs: - path: "72" - server: "71" - persistentVolumeClaim: - claimName: "82" - photonPersistentDisk: - fsType: "131" - pdID: "130" - portworxVolume: - fsType: "146" - readOnly: true - volumeID: "145" - projected: - defaultMode: -1980941277 - sources: - - configMap: - items: - - key: "141" - mode: 1730325900 - path: "142" - name: "140" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "136" - fieldPath: "137" - mode: -555780268 - path: "135" - resourceFieldRef: - containerName: "138" - divisor: "952" - resource: "139" - secret: - items: - - key: "133" - mode: 782113097 - path: "134" - name: "132" - optional: true - serviceAccountToken: - audience: "143" - expirationSeconds: -2937394236764575757 - path: "144" - quobyte: - group: "125" - readOnly: true - registry: "122" - tenant: "126" - user: "124" - volume: "123" - rbd: - fsType: "85" - image: "84" - keyring: "88" - monitors: - - "83" - pool: "86" - readOnly: true - secretRef: - name: "89" - user: "87" - scaleIO: - fsType: "154" - gateway: "147" - protectionDomain: "150" - secretRef: - name: "149" - sslEnabled: true - storageMode: "152" - storagePool: "151" - system: "148" - volumeName: "153" - secret: - defaultMode: 1655406148 - items: - - key: "69" - mode: 1648350164 - path: "70" - optional: true - secretName: "68" - storageos: - fsType: "157" - readOnly: true - secretRef: - name: "158" - volumeName: "155" - volumeNamespace: "156" - vsphereVolume: - fsType: "119" - storagePolicyID: "121" - storagePolicyName: "120" - volumePath: "118" - ttlSecondsAfterFinished: 246849509 diff --git a/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.json b/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.json deleted file mode 100644 index 8b5940d56..000000000 --- a/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "kind": "CertificateSigningRequest", - "apiVersion": "certificates.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "request": "OA==", - "usages": [ - "J枊a" - ], - "username": "19", - "uid": "20", - "groups": [ - "21" - ], - "extra": { - "22": [ - "23" -] - } - }, - "status": { - "conditions": [ - { - "type": "o,c鮽ort昍řČ扷5Ɨ", - "reason": "24", - "message": "25", - "lastUpdateTime": "2901-11-14T22:54:07Z" - } - ], - "certificate": "9Q==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb b/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.pb deleted file mode 100644 index c04fd17929944efebf4475c3e6e3f300084dc398..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 326 zcmd0{C}!ZY;F3;GEh@=O%S=uzNiEjPwkX!i%-1h7OiC?DG!&9_Mo0!{rsrkmr3a-J zmZlb$2sJWstz_h4G!kMomSQwfVl>raG&d44G&C?VGBGeUv9vI-FgG(WGcqu?xc#o_ zYGe1D#sVjXfVCZ4n_K6fo3ooSij9lWT!_&kiJgnlQi#dWAWMOZ$wWN6yOs1H~ez|UMeo@J@8NEkm9_e}3x!v^GbRi}q6QEX8B@T}MYip0? O3NQ#UewAWSVgLXg(P!uY diff --git a/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml b/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml deleted file mode 100644 index 166322dcd..000000000 --- a/pseudo/k8s/api/testdata/HEAD/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: certificates.k8s.io/v1beta1 -kind: CertificateSigningRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - extra: - "22": - - "23" - groups: - - "21" - request: OA== - uid: "20" - usages: - - J枊a - username: "19" -status: - certificate: 9Q== - conditions: - - lastUpdateTime: "2901-11-14T22:54:07Z" - message: "25" - reason: "24" - type: o,c鮽ort昍řČ扷5Ɨ diff --git a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.json b/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.json deleted file mode 100644 index 062943538..000000000 --- a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "holderIdentity": "19", - "leaseDurationSeconds": 896585016, - "leaseTransitions": 1305381319 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.pb b/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.pb deleted file mode 100644 index a97de023e6812a3ea6b7e16cacf76a97d1634ec7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 234 zcmVMV3X>V>WYdCW*X>TufF%kt#Wnpt=621WnsR0TB zG774F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3t%$XQ zg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^Z zF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B k#D-lO0x>r-0x>ue5DEe@IS{y-!>a=*$CJA51R4M$0J{`RN&o-= diff --git a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.yaml b/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.yaml deleted file mode 100644 index 5af176999..000000000 --- a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1.Lease.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: coordination.k8s.io/v1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - holderIdentity: "19" - leaseDurationSeconds: 896585016 - leaseTransitions: 1305381319 diff --git a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.json b/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.json deleted file mode 100644 index 2361dd18c..000000000 --- a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "holderIdentity": "19", - "leaseDurationSeconds": 896585016, - "leaseTransitions": 1305381319 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.pb b/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.pb deleted file mode 100644 index f33af86899f5973365f7320054f1c1c1ddf2feda..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 239 zcmVMV3X>V>WYdCW*X>TufF=AzOVKEW~Ol4tnWfHyt z3aJ4K0WuN+Ga3OjA^|lj0XH%fF)=VSGBhwXG&wjhI5##hHZm|XINR=m)q#tgfp9_q zP_2lygN2{YoVx*91_}W;5&<}32MPf>5&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3r zk8mmiF)=UzI0143F*JGtF*S+-FA4%NHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxr pfhgv=m&Ar$8UislG6FF;5)cXkF*y*pn!~FDD94k!?gSbDA^>S3O(6gP diff --git a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.yaml b/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.yaml deleted file mode 100644 index a529937f7..000000000 --- a/pseudo/k8s/api/testdata/HEAD/coordination.k8s.io.v1beta1.Lease.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: coordination.k8s.io/v1beta1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - holderIdentity: "19" - leaseDurationSeconds: 896585016 - leaseTransitions: 1305381319 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.json b/pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.json deleted file mode 100644 index 66b519a84..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "kind": "APIGroup", - "apiVersion": "v1", - "name": "2", - "versions": [ - { - "groupVersion": "3", - "version": "4" - } - ], - "preferredVersion": { - "groupVersion": "5", - "version": "6" - }, - "serverAddressByClientCIDRs": [ - { - "clientCIDR": "7", - "serverAddress": "8" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.APIGroup.pb deleted file mode 100644 index e722208b3c71ea64b2e7516aac7c5ec5d0e02c60..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 53 zcmd0{C}!Z|<6PE%uC74OBcG!$hDG@i_u7k(O8PnM2XQd#K^?J z)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!XizId~MoS?k zLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT97o$E&*pU{TD(};n{Z^s$r*YtW~|p@GBPq^GBUPeGBS~3P+|Z8%f3z; diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Binding.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.Binding.yaml deleted file mode 100644 index b66bc4dae..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Binding.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: v1 -kind: Binding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -target: - apiVersion: "22" - fieldPath: "24" - kind: "19" - name: "21" - namespace: "20" - resourceVersion: "23" - uid: īqJ枊a8衍`Ĩɘ.蘯 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.json deleted file mode 100644 index c1064a19e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "kind": "ComponentStatus", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "conditions": [ - { - "type": "@Hr鯹)晿", - "status": "`Ĩɘ.蘯6ċ", - "message": "19", - "error": "20" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.pb deleted file mode 100644 index 6a92a2a1be21aecd53315145bf5010bf44a47ab3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 242 zcmVc;b#oHX0Sc)B3IQ?_0W%r_G$H{t zDgie#6frR{G%_?WH8eRmFgQ0hFg7wUGdSDsg4KbGoPlsc08p)nwS$G9&YZgeS_TRM zHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt z0x>m;0WS&yF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=b- sI1(ZX3P4D5>94sd=9#||3}D2l$(Szan6Ea(iy8tkIU)iwFd6_N0Av$StpET3 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.yaml deleted file mode 100644 index 376a732b0..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ComponentStatus.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: v1 -conditions: -- error: "20" - message: "19" - status: '`Ĩɘ.蘯6ċ' - type: '@Hr鯹)晿' -kind: ComponentStatus -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.json deleted file mode 100644 index a91df63f3..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "kind": "ConfigMap", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "data": { - "19": "20" - }, - "binaryData": { - "21": "Dg==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ConfigMap.pb deleted file mode 100644 index cffad0fbe1490975a72790a10c80bf8003786618..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 219 zcmd0{C}!Z|=VB@|6ykKw&r8cp_f0Gi+RwN_&ThsiHZDeUAx4WNb}mLs zAtpnEECntmLnA3BLt`aAm#U|`r<`c7E(^b diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.CreateOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.CreateOptions.yaml deleted file mode 100644 index b115dc761..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.CreateOptions.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -dryRun: -- "2" -fieldManager: "3" -kind: CreateOptions diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.json deleted file mode 100644 index 6d2b57c90..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "kind": "DeleteOptions", - "apiVersion": "v1", - "gracePeriodSeconds": 4518808233936994290, - "preconditions": { - "uid": "ȕHH壬%龺ǟ橸章蒪ʤǎ\u003e渽蝧抰", - "resourceVersion": "2" - }, - "orphanDependents": false, - "propagationPolicy": "ZȢXQ", - "dryRun": [ - "3" - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.pb deleted file mode 100644 index d29af40a14b625e6d624bd3c99d90d5d70611a0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 96 zcmV-m0H6PBICB6B6AA)$F%k_#Wo%`1WlwN)X>V?G5At$hpXRB!=c}OTlB&w2$BsVcxV`9|r{;>V5&<$803roi$f8(LDgiSZ03ray CN-9AB diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.yaml deleted file mode 100644 index 842585490..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.DeleteOptions.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -dryRun: -- "3" -gracePeriodSeconds: 4518808233936994290 -kind: DeleteOptions -orphanDependents: false -preconditions: - resourceVersion: "2" - uid: ȕHH壬%龺ǟ橸章蒪ʤǎ>渽蝧抰 -propagationPolicy: ZȢXQ diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.json b/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.json deleted file mode 100644 index 48a7dddca..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "kind": "Endpoints", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "subsets": [ - { - "addresses": [ - { - "ip": "19", - "hostname": "20", - "nodeName": "21", - "targetRef": { - "kind": "22", - "namespace": "23", - "name": "24", - "uid": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ", - "apiVersion": "25", - "resourceVersion": "26", - "fieldPath": "27" - } - } - ], - "notReadyAddresses": [ - { - "ip": "28", - "hostname": "29", - "nodeName": "30", - "targetRef": { - "kind": "31", - "namespace": "32", - "name": "33", - "uid": "Ă凗蓏Ŋ蛊ĉy", - "apiVersion": "34", - "resourceVersion": "35", - "fieldPath": "36" - } - } - ], - "ports": [ - { - "name": "37", - "port": 1546792211, - "protocol": "\u003eŽ燹憍峕?狱³-Ǐ忄*" - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.pb deleted file mode 100644 index 6156ed64db02043ae982b2679c134ae94d40cb7f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 374 zcmWO0%_~Gv9LDi`eubO`I@!3ZaZ7O{_ndQI&P<|2S=!hr3ojd#nP#Mr#dsSo)6k5@ zWMW|@At6nYVy>5soee9Cdzp>D!P!5bZ_l(yD7YTO93{2=GZV4sd;&f}7%_sl zicAezI&xSerH08&!!pCd5RPrw%;4hdZ}}s+RZPZumBF)(o0YYr_u?HIuExkANQ~8B z6ed88sSpOrRG?g|>s#>ea<8eygy%kIVmipKB2XNtxd7C1QKy{Rq`9)=`Z>39T<{J% zhWz67)9q;ITW%@XO|}N5e0hCD)*J>@kW+*QqzRJ<2F3_5t^zZ)&_KL$QECec4_(pr z@yhvqG(H>br@caXJJ`Inp7S~|ivhDEz#J(I4HzXtHU!Zza7uv7%baTs_IiG{E+4NtUNZi} Js;(-U@()Tld(Z#? diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.yaml deleted file mode 100644 index 9a4cf7bbc..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Endpoints.yaml +++ /dev/null @@ -1,60 +0,0 @@ -apiVersion: v1 -kind: Endpoints -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -subsets: -- addresses: - - hostname: "20" - ip: "19" - nodeName: "21" - targetRef: - apiVersion: "25" - fieldPath: "27" - kind: "22" - name: "24" - namespace: "23" - resourceVersion: "26" - uid: Hr鯹)晿Ž燹憍峕?狱³-Ǐ忄*' diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.json b/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.json deleted file mode 100644 index 28aa11edf..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.json +++ /dev/null @@ -1,292 +0,0 @@ -{ - "kind": "EphemeralContainers", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "ephemeralContainers": [ - { - "name": "19", - "image": "20", - "command": [ - "21" - ], - "args": [ - "22" - ], - "workingDir": "23", - "ports": [ - { - "name": "24", - "hostPort": 1305381319, - "containerPort": -1300313567, - "hostIP": "25" - } - ], - "envFrom": [ - { - "prefix": "26", - "configMapRef": { - "name": "27", - "optional": false - }, - "secretRef": { - "name": "28", - "optional": false - } - } - ], - "env": [ - { - "name": "29", - "value": "30", - "valueFrom": { - "fieldRef": { - "apiVersion": "31", - "fieldPath": "32" - }, - "resourceFieldRef": { - "containerName": "33", - "resource": "34", - "divisor": "12" - }, - "configMapKeyRef": { - "name": "35", - "key": "36", - "optional": false - }, - "secretKeyRef": { - "name": "37", - "key": "38", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "V夸eɑeʤ": "420" - }, - "requests": { - "Ƣ6/ʕVŚ(ĿȊ甞": "776" - } - }, - "volumeMounts": [ - { - "name": "39", - "mountPath": "40", - "subPath": "41", - "mountPropagation": "憍峕?狱³-Ǐ忄*", - "subPathExpr": "42" - } - ], - "volumeDevices": [ - { - "name": "43", - "devicePath": "44" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "45" - ] - }, - "httpGet": { - "path": "46", - "port": "47", - "host": "48", - "scheme": "亞螩B峅x4%a鯿rŎǀ朲^苣fƼ@h", - "httpHeaders": [ - { - "name": "49", - "value": "50" - } - ] - }, - "tcpSocket": { - "port": 1366345526, - "host": "51" - }, - "initialDelaySeconds": 1392988974, - "timeoutSeconds": 1563658126, - "periodSeconds": -1771047449, - "successThreshold": -1280107919, - "failureThreshold": -54954325 - }, - "readinessProbe": { - "exec": { - "command": [ - "52" - ] - }, - "httpGet": { - "path": "53", - "port": "54", - "host": "55", - "scheme": "OŖ樅尷", - "httpHeaders": [ - { - "name": "56", - "value": "57" - } - ] - }, - "tcpSocket": { - "port": 2136826132, - "host": "58" - }, - "initialDelaySeconds": 819364842, - "timeoutSeconds": 933484239, - "periodSeconds": -983896210, - "successThreshold": 552512122, - "failureThreshold": -833209928 - }, - "startupProbe": { - "exec": { - "command": [ - "59" - ] - }, - "httpGet": { - "path": "60", - "port": 180803110, - "host": "61", - "scheme": "ņ錕?øēƺ", - "httpHeaders": [ - { - "name": "62", - "value": "63" - } - ] - }, - "tcpSocket": { - "port": "64", - "host": "65" - }, - "initialDelaySeconds": -816398166, - "timeoutSeconds": 1229400382, - "periodSeconds": -1583208879, - "successThreshold": 1088264954, - "failureThreshold": 13573196 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "66" - ] - }, - "httpGet": { - "path": "67", - "port": -1293912096, - "host": "68", - "scheme": "託仭", - "httpHeaders": [ - { - "name": "69", - "value": "70" - } - ] - }, - "tcpSocket": { - "port": "71", - "host": "72" - } - }, - "preStop": { - "exec": { - "command": [ - "73" - ] - }, - "httpGet": { - "path": "74", - "port": "75", - "host": "76", - "scheme": "鴜Ł%Ũ", - "httpHeaders": [ - { - "name": "77", - "value": "78" - } - ] - }, - "tcpSocket": { - "port": "79", - "host": "80" - } - } - }, - "terminationMessagePath": "81", - "terminationMessagePolicy": "Ņ£", - "securityContext": { - "capabilities": { - "add": [ - "2Ō¾\\ĒP鄸靇杧ž" - ], - "drop": [ - "娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "82", - "role": "83", - "type": "84", - "level": "85" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "86", - "gmsaCredentialSpec": "87", - "runAsUserName": "88" - }, - "runAsUser": 4491726672505793472, - "runAsGroup": -5441351197948631872, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "ĭÐl恕ɍȇ廄裭4懙" - }, - "stdin": true, - "tty": true, - "targetContainerName": "89" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.pb deleted file mode 100644 index ee54463fc951c1cfdcbfaf0513247f6b2bea7f09..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1140 zcmYjPT}&KR6rOwe+ujgdhsLbq3rlt zgjJTsrTnxkLScc}tu3Him8FG3g$8zjB?P0Fke0jK7IgQ_t+S(Rr9T_uM(( z_nq&YQ@lkW4-@>FDwaOo)KLF&eREyo;a5(-TKCfF`sNmK%S9#;K~zMVgqVzUFEZ&~ zRaF>eiq0yz!c9XlsG{*(J8ymE>k9jts)eJ`&Z}?x$G5@@sJ4(GQ$+kk5kZwAR+W=w z1gliSswS5_)oL$<)&p;}Si#laCNBnDfum-uvR16>K~w?18sejwzMvfnW+LaUu>;TA z;hB}$x{5^T&E#2MdGh*TyyJO5GbvWNI9^1Cil7LXs3Kvi%9v6wrW$>OV9MNU{qsBd zp7%m``tRI@2gw3l>Q7X`C6s82WDpm@nhG%$OCZu9Vp4uqaxsCgrbEW?2y*UZ!ijr? zYL%1{Qe$77t52M*-?%6ikUT~eQ6dknUN9;)25PL~^7ztvFclhe?o87-@;HE1x&;X{ zMaE3^mL@y8?byJfRM#iVu>)(p_ENi-Vn&a>gGjAI&2$ljGDCE^P`1v5S}x1C=f~1x zlht<2|2o@Om-%R^+3HzqONOV9r@JCAuHL9>@Iq4z8q^iZO^8cyU+Y=vDv$)osO~G5 zMu!SKJ-u6*g0j^1QtYp+Gv&X`Y>wtkQa<>}ww>f%RC|g%=}6J32=aC9z7(BFSl8t} z&sgs!C;axuvks$f0KR#TF|_>0Zc&zzyMGLP+mYw_EZX~NUfIrf+f#q%7FsFd5NtiPkbG_{5*W1_PvEQc-mLmmmRCP1a_Cw^Kk;NHwf%C_T0R#-@umqg9A=HV4K7@vm2X+}&#A%tDK$eTRTeyJoE&p<4 z3OUOFd(GH1YRnm|S7r@X#64i}r4L7Hvev3{vDJ||GjM2SF5bU7pEVd{8`^&c84S+4 pd&+lfH#alS;uqnK{IbtCJG*!9P4()Z9r?=U+>JsITPX>$@Gtwfep&zk diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.yaml deleted file mode 100644 index 5655a6e0e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.EphemeralContainers.yaml +++ /dev/null @@ -1,203 +0,0 @@ -apiVersion: v1 -ephemeralContainers: -- args: - - "22" - command: - - "21" - env: - - name: "29" - value: "30" - valueFrom: - configMapKeyRef: - key: "36" - name: "35" - optional: false - fieldRef: - apiVersion: "31" - fieldPath: "32" - resourceFieldRef: - containerName: "33" - divisor: "12" - resource: "34" - secretKeyRef: - key: "38" - name: "37" - optional: false - envFrom: - - configMapRef: - name: "27" - optional: false - prefix: "26" - secretRef: - name: "28" - optional: false - image: "20" - lifecycle: - postStart: - exec: - command: - - "66" - httpGet: - host: "68" - httpHeaders: - - name: "69" - value: "70" - path: "67" - port: -1293912096 - scheme: 託仭 - tcpSocket: - host: "72" - port: "71" - preStop: - exec: - command: - - "73" - httpGet: - host: "76" - httpHeaders: - - name: "77" - value: "78" - path: "74" - port: "75" - scheme: 鴜Ł%Ũ - tcpSocket: - host: "80" - port: "79" - livenessProbe: - exec: - command: - - "45" - failureThreshold: -54954325 - httpGet: - host: "48" - httpHeaders: - - name: "49" - value: "50" - path: "46" - port: "47" - scheme: 亞螩B峅x4%a鯿rŎǀ朲^苣fƼ@h - initialDelaySeconds: 1392988974 - periodSeconds: -1771047449 - successThreshold: -1280107919 - tcpSocket: - host: "51" - port: 1366345526 - timeoutSeconds: 1563658126 - name: "19" - ports: - - containerPort: -1300313567 - hostIP: "25" - hostPort: 1305381319 - name: "24" - readinessProbe: - exec: - command: - - "52" - failureThreshold: -833209928 - httpGet: - host: "55" - httpHeaders: - - name: "56" - value: "57" - path: "53" - port: "54" - scheme: OŖ樅尷 - initialDelaySeconds: 819364842 - periodSeconds: -983896210 - successThreshold: 552512122 - tcpSocket: - host: "58" - port: 2136826132 - timeoutSeconds: 933484239 - resources: - limits: - V夸eɑeʤ: "420" - requests: - Ƣ6/ʕVŚ(ĿȊ甞: "776" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 2Ō¾\ĒP鄸靇杧ž - drop: - - 娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^ - privileged: false - procMount: ĭÐl恕ɍȇ廄裭4懙 - readOnlyRootFilesystem: true - runAsGroup: -5441351197948631872 - runAsNonRoot: true - runAsUser: 4491726672505793472 - seLinuxOptions: - level: "85" - role: "83" - type: "84" - user: "82" - windowsOptions: - gmsaCredentialSpec: "87" - gmsaCredentialSpecName: "86" - runAsUserName: "88" - startupProbe: - exec: - command: - - "59" - failureThreshold: 13573196 - httpGet: - host: "61" - httpHeaders: - - name: "62" - value: "63" - path: "60" - port: 180803110 - scheme: ņ錕?øēƺ - initialDelaySeconds: -816398166 - periodSeconds: -1583208879 - successThreshold: 1088264954 - tcpSocket: - host: "65" - port: "64" - timeoutSeconds: 1229400382 - stdin: true - targetContainerName: "89" - terminationMessagePath: "81" - terminationMessagePolicy: Ņ£ - tty: true - volumeDevices: - - devicePath: "44" - name: "43" - volumeMounts: - - mountPath: "40" - mountPropagation: 憍峕?狱³-Ǐ忄* - name: "39" - subPath: "41" - subPathExpr: "42" - workingDir: "23" -kind: EphemeralContainers -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Event.json b/pseudo/k8s/api/testdata/HEAD/core.v1.Event.json deleted file mode 100644 index 06616c570..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Event.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "involvedObject": { - "kind": "19", - "namespace": "20", - "name": "21", - "uid": "īqJ枊a8衍`Ĩɘ.蘯", - "apiVersion": "22", - "resourceVersion": "23", - "fieldPath": "24" - }, - "reason": "25", - "message": "26", - "source": { - "component": "27", - "host": "28" - }, - "firstTimestamp": "2958-05-23T21:23:39Z", - "lastTimestamp": "2907-12-28T01:19:18Z", - "count": -1492226764, - "type": "29", - "eventTime": "2530-04-08T07:06:28.046544Z", - "series": { - "count": 1266076158, - "lastObservedTime": "2951-04-21T20:18:51.456715Z" - }, - "action": "30", - "related": { - "kind": "31", - "namespace": "32", - "name": "33", - "uid": "ʤ脽ěĂ凗蓏Ŋ蛊ĉy緅縕\u003eŽ", - "apiVersion": "34", - "resourceVersion": "35", - "fieldPath": "36" - }, - "reportingComponent": "37", - "reportingInstance": "38" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Event.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.Event.pb deleted file mode 100644 index f059eb7195e69267a475b4b0ecc48ab73d2edb20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 407 zcmV;I0ciefICB6B3km{uF%ktuc4cmK68{1UsR0TBG774F)%bT zG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD1 z0x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-0x>ueFA4%NIT8Xg zFd70fF(MVjt8q%^o{C{O=%I~Z#Hh)bF6fxADgrVxG6FI)Is!5@8UivkA_6itDhLV! zGB*+eGB`2_2-}zLm~;>TItU1sh_j+@5CA~5+PS#;|NsC00ZIZgIZ_J<^zzW|K@foH zm=;z4X+XNB}2&;mbu5%Fh)#KR#8USJfGcam83Ia1R5&|Ž -reportingComponent: "37" -reportingInstance: "38" -series: - count: 1266076158 - lastObservedTime: "2951-04-21T20:18:51.456715Z" -source: - component: "27" - host: "28" -type: "29" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.json deleted file mode 100644 index ebd4b9a40..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "kind": "ExportOptions", - "apiVersion": "v1", - "export": true, - "exact": false -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ExportOptions.pb deleted file mode 100644 index a8556b4f89390d607759afaed6b5f5b7d85f1604..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35 qcmd0{C}!Xi=3*){6ykNQD9A4=@h>RJ%+D(pV&PyEV31-^VgLY}6ykDEE%7fX$;{6y7GmaNG?HRaVgLYf?FO0v diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.GetOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.GetOptions.yaml deleted file mode 100644 index a81415497..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.GetOptions.yaml +++ /dev/null @@ -1,3 +0,0 @@ -apiVersion: v1 -kind: GetOptions -resourceVersion: "2" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.json b/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.json deleted file mode 100644 index 5c7e2b0ff..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "kind": "LimitRange", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "limits": [ - { - "type": "@Hr鯹)晿", - "max": { - "o,c鮽ort昍řČ扷5Ɨ": "647" - }, - "min": { - "Ă凗蓏Ŋ蛊ĉy": "361" - }, - "default": { - "甞谐颋DžS": "632" - }, - "defaultRequest": { - "狱³-Ǐ忄*齧獚": "502" - }, - "maxLimitRequestRatio": { - "亞螩B峅x4%a鯿rŎǀ朲^苣fƼ@h": "494" - } - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.pb deleted file mode 100644 index 51520e2be200549ceb193451982510e0aec9f565..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 376 zcmd0{C}!Xi;9@E>6yoy9%*`wbO3X`76}rvDwUUvG(MX8VSc=g^iP2Px(cDPH(9pod z$i%?Z#L~jR!raWj%*epl;`Y0ytBu`r8Vj5l0@ikHZEl@^Zq9DTC^jxeb0J2HBz7)F zOCcshgDeFuCPO1BCPQN-K9{PeyQiFJuP#2?b*#TYiwS5hg9T#|lc7l!lc8xBqdrin znULbk30+U8biG_W^XNR?(5G{@9NwO&e{xFgvx$uw&vs5f(iRIe&D@B|&_ZYpBgna2 z4jx4>*YDJPHgms_JeOF$PV&ojd-ID*p3UezI`c@+v(D|N$EFLhaxt5km`h1=2^?v9 z+CKfo8u1v8Jig@iE{BgpEB>oh6yhhbsujH2J0|3(vs#9dfvV9&}QA^ z{ZIF|XuaIK{CV#zkff=Bk&!l+(vw~DUd&tR^mKD;g^6n7%k}$7qT TX~*_BWPlW#Sei&NC@}y4GNg;+ diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.yaml deleted file mode 100644 index e71ffd350..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.LimitRange.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: v1 -kind: LimitRange -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - limits: - - default: - 甞谐颋DžS: "632" - defaultRequest: - 狱³-Ǐ忄*齧獚: "502" - max: - o,c鮽ort昍řČ扷5Ɨ: "647" - maxLimitRequestRatio: - 亞螩B峅x4%a鯿rŎǀ朲^苣fƼ@h: "494" - min: - Ă凗蓏Ŋ蛊ĉy: "361" - type: '@Hr鯹)晿' diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.json deleted file mode 100644 index 50e3707fa..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "ListOptions", - "apiVersion": "v1", - "labelSelector": "2", - "fieldSelector": "3", - "watch": true, - "resourceVersion": "4", - "timeoutSeconds": 1002466899136229878, - "limit": 5339971464584210463, - "continue": "5" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.pb deleted file mode 100644 index bfc2c1df3c20626731c28768f06ab5b0877a0386..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 65 zcmd0{C}!XihC_V~qztEcXL;kB55 Vp|5N5j~l&SPK>4=3{nhA3;>L}75@ML diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.yaml deleted file mode 100644 index 5b66db174..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ListOptions.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -continue: "5" -fieldSelector: "3" -kind: ListOptions -labelSelector: "2" -limit: 5339971464584210463 -resourceVersion: "4" -timeoutSeconds: 1002466899136229878 -watch: true diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.json b/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.json deleted file mode 100644 index ecc0bc29e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "kind": "Namespace", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "finalizers": [ - "@Hr鯹)晿" - ] - }, - "status": { - "phase": "`Ĩɘ.蘯6ċ", - "conditions": [ - { - "type": "夸eɑeʤ脽ěĂ凗蓏Ŋ蛊ĉy", - "status": "Ȋ甞谐颋DžSǡƏS$+½H牗洝尿", - "lastTransitionTime": "2956-02-24T15:15:18Z", - "reason": "19", - "message": "20" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.pb deleted file mode 100644 index aca24a25f78bf2383e3f00f10588a65307c75210..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 317 zcmV-D0mA-kICB6B4+;WyF%k(*VQpn|aA9L*5}^VLsR0TBG774 zF)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@ z3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-0x>ue3BrC$bNau-{=CqyVu)iV*2!`^F_j3>c PDgrS%G6FI%8UP{y9l3gq diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.yaml deleted file mode 100644 index da1a7a65d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Namespace.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - finalizers: - - '@Hr鯹)晿' -status: - conditions: - - lastTransitionTime: "2956-02-24T15:15:18Z" - message: "20" - reason: "19" - status: Ȋ甞谐颋DžSǡƏS$+½H牗洝尿 - type: 夸eɑeʤ脽ěĂ凗蓏Ŋ蛊ĉy - phase: '`Ĩɘ.蘯6ċ' diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Node.json b/pseudo/k8s/api/testdata/HEAD/core.v1.Node.json deleted file mode 100644 index 3acd7885b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Node.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "kind": "Node", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "podCIDR": "19", - "podCIDRs": [ - "20" - ], - "providerID": "21", - "taints": [ - { - "key": "22", - "value": "23", - "effect": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ" - } - ], - "configSource": { - "configMap": { - "namespace": "24", - "name": "25", - "uid": "Ă凗蓏Ŋ蛊ĉy", - "resourceVersion": "26", - "kubeletConfigKey": "27" - } - }, - "externalID": "28" - }, - "status": { - "capacity": { - "縕\u003eŽ燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț": "2" - }, - "allocatable": { - "峅x": "826" - }, - "phase": "%a鯿rŎǀ朲^苣f", - "conditions": [ - { - "type": "", - "status": "P$Iņɖ橙9ȫŚʒ", - "lastHeartbeatTime": "2339-08-25T14:46:58Z", - "lastTransitionTime": "2681-06-13T05:43:15Z", - "reason": "29", - "message": "30" - } - ], - "addresses": [ - { - "type": "OŖ樅尷", - "address": "31" - } - ], - "daemonEndpoints": { - "kubeletEndpoint": { - "Port": -1579157235 - } - }, - "nodeInfo": { - "machineID": "32", - "systemUUID": "33", - "bootID": "34", - "kernelVersion": "35", - "osImage": "36", - "containerRuntimeVersion": "37", - "kubeletVersion": "38", - "kubeProxyVersion": "39", - "operatingSystem": "40", - "architecture": "41" - }, - "images": [ - { - "names": [ - "42" - ], - "sizeBytes": 9177598355370950419 - } - ], - "volumesInUse": [ - "üA謥ǣ偐圠=l畣潁谯耨V6\u0026]鴍Ɋ" - ], - "volumesAttached": [ - { - "name": "ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ", - "devicePath": "43" - } - ], - "config": { - "assigned": { - "configMap": { - "namespace": "44", - "name": "45", - "uid": "£趕ã/鈱$-议}ȧ外ĺ", - "resourceVersion": "46", - "kubeletConfigKey": "47" - } - }, - "active": { - "configMap": { - "namespace": "48", - "name": "49", - "uid": "譋娲瘹ɭȊɚɎ(", - "resourceVersion": "50", - "kubeletConfigKey": "51" - } - }, - "lastKnownGood": { - "configMap": { - "namespace": "52", - "name": "53", - "uid": "ėf倐ȓ圬剴扲ȿQZ{ʁgɸ", - "resourceVersion": "54", - "kubeletConfigKey": "55" - } - }, - "error": "56" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Node.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.Node.pb deleted file mode 100644 index 32335935df6f7dad9a159c06f99c6771aa3c6f83..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 746 zcmWlWOH30{6ozLmp!FIMZ(NvhAx>I?Bgo91nRZHiMB+kOC}MO$f(eS4s0joNQ3#Qu zEzr_}LU}ems0N5oUR7RJ66nB`g^4jHCT@($OlLMObmv06p3TWgzW+S_b4O{UAcUYv zK$#cnYHp&>S#XkuG)A<@&=O0_9PPpf1c8^Z#LJRf;T4yYcVb>tzWr?f;t51N^`%t# zbm!Yg-sc}9t90cqNV^cNT;C08Hv$5GI}ZW@Ge8j8oU_gPYQNUe(y013d+Iqr`cewr z00gNS2(q6pCa4n~v3mV_zu$@utIvwA=#luwVs&wrV?9)QpD9ZS6U^dLu7rggT7R*qvlR=JZYi6xM4Q;g`` zkV5;*?dMfrYQUHrc583ck?p69&Gy4PwsI_&Vr{nHFV#<%b1AZl8v~K&_Q5?D)d6F| ztIsYXAPP7e?zIJf?S%g9kf2KnAP|WGqR0SIVu2`gKy(r%IYd-Sf#@y+5?=u%p)>~q z3Fr3x{l1hO`x<*#=Gb_D#+-V+71cexdgR5)yXkP$NO;WI8MAHTsx!aJiU(8v3I{x_ zO*=M28xbS4q^u{_qsN=J;@jO;JfeCW>V(#bfFxE1Xjq8IHzeY(Br^xsqvpHtMzq-K zoU<31u~@4%uD=>cuCPENK1(i?kL-k22<>K&IUUd^=F>yVscFrh8cBr;SRnHpkOig~ w6+s}A6J?P(lpL(p+j_M=Ju;Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț: "2" - conditions: - - lastHeartbeatTime: "2339-08-25T14:46:58Z" - lastTransitionTime: "2681-06-13T05:43:15Z" - message: "30" - reason: "29" - status: P$Iņɖ橙9ȫŚʒ - type: "" - config: - active: - configMap: - kubeletConfigKey: "51" - name: "49" - namespace: "48" - resourceVersion: "50" - uid: 譋娲瘹ɭȊɚɎ( - assigned: - configMap: - kubeletConfigKey: "47" - name: "45" - namespace: "44" - resourceVersion: "46" - uid: £趕ã/鈱$-议}ȧ外ĺ - error: "56" - lastKnownGood: - configMap: - kubeletConfigKey: "55" - name: "53" - namespace: "52" - resourceVersion: "54" - uid: ėf倐ȓ圬剴扲ȿQZ{ʁgɸ - daemonEndpoints: - kubeletEndpoint: - Port: -1579157235 - images: - - names: - - "42" - sizeBytes: 9177598355370950419 - nodeInfo: - architecture: "41" - bootID: "34" - containerRuntimeVersion: "37" - kernelVersion: "35" - kubeProxyVersion: "39" - kubeletVersion: "38" - machineID: "32" - operatingSystem: "40" - osImage: "36" - systemUUID: "33" - phase: '%a鯿rŎǀ朲^苣f' - volumesAttached: - - devicePath: "43" - name: ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ - volumesInUse: - - üA謥ǣ偐圠=l畣潁谯耨V6&]鴍Ɋ diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.json deleted file mode 100644 index ca9a6afcd..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "NodeProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.NodeProxyOptions.pb deleted file mode 100644 index 33437115c84a4ab66a0fb4cc246412c38d0cd08a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi<64T&Sdcgq93_bie zRlzk#ttOaJh_KKfu?O@2{09%JQM4x^Y^l|e9)D&eKbsr&2UnfK^v+sgfj8(!A!$R6 z6GA#>+#ui!@MTD0wSYmvGBs>b9b3%6mc_7ThmR0!IgsIvO85o9P+`f?@Z-P#gf5nA zVB0iN7~8ZFodvGVRBT)CD(%>|n~sAIwKfOEAP2R!Yhle>MTbT;!*Ywc_KSZT_?IqMd0<>z+C;|PY4@Ny&@M{vgyv?OTF zAp;z^4#|VjC0vG-!FtkV*fqo0rA^pnE!eeM(L&I~g^gTi3B3XkR&s@g-JpVl@2Ur= zX=-4o{zP%@moFf{>F8s5h&z*f^fwgc?6>|-8ap&cvStE7i=qu!-{uYbcT#ImU~dUMbuXh>a{ zj+uIGd2q74F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3t%$XQg`dux zy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o) z0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO z0x>r-0x>ue{{adLKuB`wuemAanZFWW3M~pG#E#{JhvkR6GscF)tWo8bp6H2-=C-}) zsF&ost#>Wvs;KGBz?R z<*2gfn7PTV$co9D$&M&w$%W;crRTG^=cB3Ts;=j!v&6UPpOWZ{zGz-L34Sh04aTEO%9zE3cRDrYp^F*_ h2-flD-bfGtA_xfl#k%DV5CAFyGcYm&Gcg(fA^@}W?1KOR diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolumeClaim.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolumeClaim.yaml deleted file mode 100644 index cde1c248e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PersistentVolumeClaim.yaml +++ /dev/null @@ -1,65 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - accessModes: - - '@Hr鯹)晿' - dataSource: - apiGroup: "27" - kind: "28" - name: "29" - resources: - limits: - Ď儇击3ƆìQ喞艋涽託仭w-檮Ǣ: "465" - requests: - Ł%ŨȈ>Ņ£趕ã/鈱$-议}ȧ外ĺ稥: "713" - selector: - matchExpressions: - - key: PGg8-2_kS91.e5K-_e63_-_3n - operator: DoesNotExist - matchLabels: - h0-6pJ: Hn7y-74.-0MUORQQ.N2.1L - storageClassName: "26" - volumeMode: 娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳ķ蟒苾h^ - volumeName: "25" -status: - accessModes: - - ĭÐl恕ɍȇ廄裭4懙 - capacity: - 嵒ƫS捕ɷD¡轫n: "583" - conditions: - - lastProbeTime: "2588-10-04T08:20:38Z" - lastTransitionTime: "2095-10-31T02:52:44Z" - message: "31" - reason: "30" - status: ƣKʘńw:5塋 - type: Ü郀 - phase: 燴壩卄蓨MĮ? diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Pod.json b/pseudo/k8s/api/testdata/HEAD/core.v1.Pod.json deleted file mode 100644 index 3709344b6..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Pod.json +++ /dev/null @@ -1,1491 +0,0 @@ -{ - "kind": "Pod", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "19", - "hostPath": { - "path": "20", - "type": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ" - }, - "emptyDir": { - "medium": "Ƣ6/ʕVŚ(ĿȊ甞", - "sizeLimit": "776" - }, - "gcePersistentDisk": { - "pdName": "21", - "fsType": "22", - "partition": -123438221, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "23", - "fsType": "24", - "partition": 1001983654 - }, - "gitRepo": { - "repository": "25", - "revision": "26", - "directory": "27" - }, - "secret": { - "secretName": "28", - "items": [ - { - "key": "29", - "path": "30", - "mode": 641368140 - } - ], - "defaultMode": -105188456, - "optional": false - }, - "nfs": { - "server": "31", - "path": "32" - }, - "iscsi": { - "targetPortal": "33", - "iqn": "34", - "lun": -1284694739, - "iscsiInterface": "35", - "fsType": "36", - "portals": [ - "37" - ], - "secretRef": { - "name": "38" - }, - "initiatorName": "39" - }, - "glusterfs": { - "endpoints": "40", - "path": "41" - }, - "persistentVolumeClaim": { - "claimName": "42" - }, - "rbd": { - "monitors": [ - "43" - ], - "image": "44", - "fsType": "45", - "pool": "46", - "user": "47", - "keyring": "48", - "secretRef": { - "name": "49" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "50", - "fsType": "51", - "secretRef": { - "name": "52" - }, - "options": { - "53": "54" - } - }, - "cinder": { - "volumeID": "55", - "fsType": "56", - "readOnly": true, - "secretRef": { - "name": "57" - } - }, - "cephfs": { - "monitors": [ - "58" - ], - "path": "59", - "user": "60", - "secretFile": "61", - "secretRef": { - "name": "62" - } - }, - "flocker": { - "datasetName": "63", - "datasetUUID": "64" - }, - "downwardAPI": { - "items": [ - { - "path": "65", - "fieldRef": { - "apiVersion": "66", - "fieldPath": "67" - }, - "resourceFieldRef": { - "containerName": "68", - "resource": "69", - "divisor": "387" - }, - "mode": -1639873916 - } - ], - "defaultMode": 1246233319 - }, - "fc": { - "targetWWNs": [ - "70" - ], - "lun": -1876826602, - "fsType": "71", - "wwids": [ - "72" - ] - }, - "azureFile": { - "secretName": "73", - "shareName": "74" - }, - "configMap": { - "name": "75", - "items": [ - { - "key": "76", - "path": "77", - "mode": 1392988974 - } - ], - "defaultMode": 172857432, - "optional": true - }, - "vsphereVolume": { - "volumePath": "78", - "fsType": "79", - "storagePolicyName": "80", - "storagePolicyID": "81" - }, - "quobyte": { - "registry": "82", - "volume": "83", - "user": "84", - "group": "85", - "tenant": "86" - }, - "azureDisk": { - "diskName": "87", - "diskURI": "88", - "cachingMode": "ƕP喂ƈ", - "fsType": "89", - "readOnly": false, - "kind": "" - }, - "photonPersistentDisk": { - "pdID": "90", - "fsType": "91" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "92", - "items": [ - { - "key": "93", - "path": "94", - "mode": 933484239 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "95", - "fieldRef": { - "apiVersion": "96", - "fieldPath": "97" - }, - "resourceFieldRef": { - "containerName": "98", - "resource": "99", - "divisor": "188" - }, - "mode": 548013580 - } - ] - }, - "configMap": { - "name": "100", - "items": [ - { - "key": "101", - "path": "102", - "mode": -2014231015 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "103", - "expirationSeconds": 2889002371849040056, - "path": "104" - } - } - ], - "defaultMode": -49513197 - }, - "portworxVolume": { - "volumeID": "105", - "fsType": "106", - "readOnly": true - }, - "scaleIO": { - "gateway": "107", - "system": "108", - "secretRef": { - "name": "109" - }, - "protectionDomain": "110", - "storagePool": "111", - "storageMode": "112", - "volumeName": "113", - "fsType": "114", - "readOnly": true - }, - "storageos": { - "volumeName": "115", - "volumeNamespace": "116", - "fsType": "117", - "secretRef": { - "name": "118" - } - }, - "csi": { - "driver": "119", - "readOnly": true, - "fsType": "120", - "volumeAttributes": { - "121": "122" - }, - "nodePublishSecretRef": { - "name": "123" - } - } - } - ], - "initContainers": [ - { - "name": "124", - "image": "125", - "command": [ - "126" - ], - "args": [ - "127" - ], - "workingDir": "128", - "ports": [ - { - "name": "129", - "hostPort": -2139825026, - "containerPort": -2040518604, - "hostIP": "130" - } - ], - "envFrom": [ - { - "prefix": "131", - "configMapRef": { - "name": "132", - "optional": false - }, - "secretRef": { - "name": "133", - "optional": true - } - } - ], - "env": [ - { - "name": "134", - "value": "135", - "valueFrom": { - "fieldRef": { - "apiVersion": "136", - "fieldPath": "137" - }, - "resourceFieldRef": { - "containerName": "138", - "resource": "139", - "divisor": "637" - }, - "configMapKeyRef": { - "name": "140", - "key": "141", - "optional": false - }, - "secretKeyRef": { - "name": "142", - "key": "143", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "ŨȈ\u003eŅ£趕ã/鈱$-议": "963" - }, - "requests": { - "鄸靇杧ž譋娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳": "781" - } - }, - "volumeMounts": [ - { - "name": "144", - "readOnly": true, - "mountPath": "145", - "subPath": "146", - "mountPropagation": "QZ{ʁgɸ=ǤÆ", - "subPathExpr": "147" - } - ], - "volumeDevices": [ - { - "name": "148", - "devicePath": "149" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "150" - ] - }, - "httpGet": { - "path": "151", - "port": -1123620985, - "host": "152", - "scheme": "l恕ɍȇ廄裭4懙鏮嵒", - "httpHeaders": [ - { - "name": "153", - "value": "154" - } - ] - }, - "tcpSocket": { - "port": "155", - "host": "156" - }, - "initialDelaySeconds": -1177836822, - "timeoutSeconds": 1822289444, - "periodSeconds": 1149075888, - "successThreshold": 1156607667, - "failureThreshold": 990374141 - }, - "readinessProbe": { - "exec": { - "command": [ - "157" - ] - }, - "httpGet": { - "path": "158", - "port": "159", - "host": "160", - "scheme": "Ü郀", - "httpHeaders": [ - { - "name": "161", - "value": "162" - } - ] - }, - "tcpSocket": { - "port": 1184528004, - "host": "163" - }, - "initialDelaySeconds": -144625578, - "timeoutSeconds": -101708658, - "periodSeconds": 694611906, - "successThreshold": -1888506207, - "failureThreshold": -1904823509 - }, - "startupProbe": { - "exec": { - "command": [ - "164" - ] - }, - "httpGet": { - "path": "165", - "port": 1693510057, - "host": "166", - "scheme": "=y钡", - "httpHeaders": [ - { - "name": "167", - "value": "168" - } - ] - }, - "tcpSocket": { - "port": "169", - "host": "170" - }, - "initialDelaySeconds": -529495213, - "timeoutSeconds": 23025317, - "periodSeconds": 1727149457, - "successThreshold": 1407547486, - "failureThreshold": 1247862962 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "171" - ] - }, - "httpGet": { - "path": "172", - "port": "173", - "host": "174", - "scheme": "荎僋bŭDz鯰硰{舁吉蓨", - "httpHeaders": [ - { - "name": "175", - "value": "176" - } - ] - }, - "tcpSocket": { - "port": -662805900, - "host": "177" - } - }, - "preStop": { - "exec": { - "command": [ - "178" - ] - }, - "httpGet": { - "path": "179", - "port": 249891070, - "host": "180", - "scheme": "ɹ7\\弌Þ帺萸Do©Ǿt'容柚ʕIã陫", - "httpHeaders": [ - { - "name": "181", - "value": "182" - } - ] - }, - "tcpSocket": { - "port": 266070687, - "host": "183" - } - } - }, - "terminationMessagePath": "184", - "terminationMessagePolicy": "\")珷\u003cº", - "imagePullPolicy": "TwMȗ礼2ħ籦ö嗏ʑ\u003e季", - "securityContext": { - "capabilities": { - "add": [ - "畬x骀Šĸů湙騘\u0026" - ], - "drop": [ - "川J缮ǚbJ5ʬ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "185", - "role": "186", - "type": "187", - "level": "188" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "189", - "gmsaCredentialSpec": "190", - "runAsUserName": "191" - }, - "runAsUser": 570299180913049309, - "runAsGroup": -7029550403667587439, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ蓿彭聡A" - }, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "192", - "image": "193", - "command": [ - "194" - ], - "args": [ - "195" - ], - "workingDir": "196", - "ports": [ - { - "name": "197", - "hostPort": -632157481, - "containerPort": -539733119, - "protocol": "楙¯ĦE勗E", - "hostIP": "198" - } - ], - "envFrom": [ - { - "prefix": "199", - "configMapRef": { - "name": "200", - "optional": false - }, - "secretRef": { - "name": "201", - "optional": true - } - } - ], - "env": [ - { - "name": "202", - "value": "203", - "valueFrom": { - "fieldRef": { - "apiVersion": "204", - "fieldPath": "205" - }, - "resourceFieldRef": { - "containerName": "206", - "resource": "207", - "divisor": "177" - }, - "configMapKeyRef": { - "name": "208", - "key": "209", - "optional": false - }, - "secretKeyRef": { - "name": "210", - "key": "211", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "蓳嗘TʡȂŏ{sǡƟ狩鴈o_": "445" - }, - "requests": { - "ǘ\"^饣Vȿ": "900" - } - }, - "volumeMounts": [ - { - "name": "212", - "mountPath": "213", - "subPath": "214", - "mountPropagation": "怳冘HǺƶȤ^}穠C]躢|)黰eȪ嵛4", - "subPathExpr": "215" - } - ], - "volumeDevices": [ - { - "name": "216", - "devicePath": "217" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "218" - ] - }, - "httpGet": { - "path": "219", - "port": -144591150, - "host": "220", - "scheme": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c", - "httpHeaders": [ - { - "name": "221", - "value": "222" - } - ] - }, - "tcpSocket": { - "port": "223", - "host": "224" - }, - "initialDelaySeconds": 1288053477, - "timeoutSeconds": -163325250, - "periodSeconds": 1607133856, - "successThreshold": 1891896870, - "failureThreshold": -1321131665 - }, - "readinessProbe": { - "exec": { - "command": [ - "225" - ] - }, - "httpGet": { - "path": "226", - "port": "227", - "host": "228", - "scheme": "0åȂ町恰nj揠8lj", - "httpHeaders": [ - { - "name": "229", - "value": "230" - } - ] - }, - "tcpSocket": { - "port": -2049272966, - "host": "231" - }, - "initialDelaySeconds": -1188153605, - "timeoutSeconds": -427769948, - "periodSeconds": 912004803, - "successThreshold": -2098817064, - "failureThreshold": 1231820696 - }, - "startupProbe": { - "exec": { - "command": [ - "232" - ] - }, - "httpGet": { - "path": "233", - "port": "234", - "host": "235", - "httpHeaders": [ - { - "name": "236", - "value": "237" - } - ] - }, - "tcpSocket": { - "port": 675406340, - "host": "238" - }, - "initialDelaySeconds": 994527057, - "timeoutSeconds": -1482763519, - "periodSeconds": -1346458591, - "successThreshold": 1234551517, - "failureThreshold": -1618937335 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "239" - ] - }, - "httpGet": { - "path": "240", - "port": "241", - "host": "242", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "243", - "value": "244" - } - ] - }, - "tcpSocket": { - "port": "245", - "host": "246" - } - }, - "preStop": { - "exec": { - "command": [ - "247" - ] - }, - "httpGet": { - "path": "248", - "port": -1171060347, - "host": "249", - "scheme": "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°", - "httpHeaders": [ - { - "name": "250", - "value": "251" - } - ] - }, - "tcpSocket": { - "port": "252", - "host": "253" - } - } - }, - "terminationMessagePath": "254", - "terminationMessagePolicy": "閼咎櫸eʔŊ", - "imagePullPolicy": "ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬", - "securityContext": { - "capabilities": { - "add": [ - "瓼猀2:öY鶪5w垁鷌辪" - ], - "drop": [ - "U珝Żwʮ馜üNșƶ4ĩĉ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "255", - "role": "256", - "type": "257", - "level": "258" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "259", - "gmsaCredentialSpec": "260", - "runAsUserName": "261" - }, - "runAsUser": -4642229086806245627, - "runAsGroup": 6165457529064596376, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "" - }, - "stdinOnce": true, - "tty": true - } - ], - "ephemeralContainers": [ - { - "name": "262", - "image": "263", - "command": [ - "264" - ], - "args": [ - "265" - ], - "workingDir": "266", - "ports": [ - { - "name": "267", - "hostPort": -1703360754, - "containerPort": -1569009987, - "protocol": "ɢǵʭd鲡:贅wE@Ȗs«öʮĀ\u003c", - "hostIP": "268" - } - ], - "envFrom": [ - { - "prefix": "269", - "configMapRef": { - "name": "270", - "optional": true - }, - "secretRef": { - "name": "271", - "optional": false - } - } - ], - "env": [ - { - "name": "272", - "value": "273", - "valueFrom": { - "fieldRef": { - "apiVersion": "274", - "fieldPath": "275" - }, - "resourceFieldRef": { - "containerName": "276", - "resource": "277", - "divisor": "405" - }, - "configMapKeyRef": { - "name": "278", - "key": "279", - "optional": false - }, - "secretKeyRef": { - "name": "280", - "key": "281", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷": "948" - }, - "requests": { - "": "83" - } - }, - "volumeMounts": [ - { - "name": "282", - "mountPath": "283", - "subPath": "284", - "mountPropagation": "@ùƸʋŀ樺ȃv", - "subPathExpr": "285" - } - ], - "volumeDevices": [ - { - "name": "286", - "devicePath": "287" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "288" - ] - }, - "httpGet": { - "path": "289", - "port": "290", - "host": "291", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "292", - "value": "293" - } - ] - }, - "tcpSocket": { - "port": "294", - "host": "295" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "readinessProbe": { - "exec": { - "command": [ - "296" - ] - }, - "httpGet": { - "path": "297", - "port": -1710454086, - "host": "298", - "scheme": "mɩC[ó瓧", - "httpHeaders": [ - { - "name": "299", - "value": "300" - } - ] - }, - "tcpSocket": { - "port": -122979840, - "host": "301" - }, - "initialDelaySeconds": 915577348, - "timeoutSeconds": -590798124, - "periodSeconds": -1386967282, - "successThreshold": -2030286732, - "failureThreshold": -233378149 - }, - "startupProbe": { - "exec": { - "command": [ - "302" - ] - }, - "httpGet": { - "path": "303", - "port": -495373547, - "host": "304", - "scheme": "ʼn掏1ſ盷褎weLJ", - "httpHeaders": [ - { - "name": "305", - "value": "306" - } - ] - }, - "tcpSocket": { - "port": "307", - "host": "308" - }, - "initialDelaySeconds": -929354164, - "timeoutSeconds": 1972119760, - "periodSeconds": 1582773079, - "successThreshold": -1133499416, - "failureThreshold": 486195690 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "309" - ] - }, - "httpGet": { - "path": "310", - "port": -1589303862, - "host": "311", - "scheme": "ľǎɳ,ǿ飏騀呣ǎ", - "httpHeaders": [ - { - "name": "312", - "value": "313" - } - ] - }, - "tcpSocket": { - "port": "314", - "host": "315" - } - }, - "preStop": { - "exec": { - "command": [ - "316" - ] - }, - "httpGet": { - "path": "317", - "port": "318", - "host": "319", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "320", - "value": "321" - } - ] - }, - "tcpSocket": { - "port": "322", - "host": "323" - } - } - }, - "terminationMessagePath": "324", - "terminationMessagePolicy": "Ȋ礶", - "imagePullPolicy": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "securityContext": { - "capabilities": { - "add": [ - "3.v-鿧悮坮Ȣ" - ], - "drop": [ - "ļ腻ŬƩȿ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "325", - "role": "326", - "type": "327", - "level": "328" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "329", - "gmsaCredentialSpec": "330", - "runAsUserName": "331" - }, - "runAsUser": 9197199583783594492, - "runAsGroup": 241615716805649441, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ħsĨɆâĺ" - }, - "stdin": true, - "tty": true, - "targetContainerName": "332" - } - ], - "restartPolicy": "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶", - "terminationGracePeriodSeconds": -1689173322096612726, - "activeDeadlineSeconds": -9052689354742694982, - "dnsPolicy": "8鸖ɱJȉ罴ņ螡źȰ?$矡ȶ网棊ʢ", - "nodeSelector": { - "333": "334" - }, - "serviceAccountName": "335", - "serviceAccount": "336", - "automountServiceAccountToken": false, - "nodeName": "337", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "338", - "role": "339", - "type": "340", - "level": "341" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "342", - "gmsaCredentialSpec": "343", - "runAsUserName": "344" - }, - "runAsUser": 7525448836100188460, - "runAsGroup": -860974700141841896, - "runAsNonRoot": true, - "supplementalGroups": [ - 7258403424756645907 - ], - "fsGroup": 6347577485454457915, - "sysctls": [ - { - "name": "345", - "value": "346" - } - ] - }, - "imagePullSecrets": [ - { - "name": "347" - } - ], - "hostname": "348", - "subdomain": "349", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "350", - "operator": "}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪军g\u003e", - "values": [ - "351" - ] - } - ], - "matchFields": [ - { - "key": "352", - "operator": "偢ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ圯W", - "values": [ - "353" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1418092595, - "preference": { - "matchExpressions": [ - { - "key": "354", - "operator": "唊#v铿", - "values": [ - "355" - ] - } - ], - "matchFields": [ - { - "key": "356", - "operator": "埄趛", - "values": [ - "357" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "zo--4-1-2s39--6---fv--m-8--72-bca4m56au3f---tx-8----2d-4u-d7sn/48Y.q.0-_1-F.h-__k_K5._..O_.J_-G_--V-42E_--o90G_A6": "9_.5vN5.25aWx.2aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1y" - }, - "matchExpressions": [ - { - "key": "8x.2K_2qu_0S-CqW.D_8--21kF-c026.-iTl.1-.T", - "operator": "NotIn", - "values": [ - "H.I3.__-.u" - ] - } - ] - }, - "namespaces": [ - "364" - ], - "topologyKey": "365" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -819013491, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x_-a__0-8-.M-.-.-8v-J1zET_..3dCv3j._.-_pP__up2": "Ns-o779._-k5" - }, - "matchExpressions": [ - { - "key": "9d4i-m7---k8235--8--c83-4b-9-1o8w-4/4csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9.D", - "operator": "NotIn", - "values": [ - "G31-_I-A-_3bz._8M0U1_-__.71-_-9_.X" - ] - } - ] - }, - "namespaces": [ - "372" - ], - "topologyKey": "373" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "xm-.nx.sEK4.B.__65m8_x": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "380" - ], - "topologyKey": "381" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -168773629, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x-3/6-.7D.3_KPgL": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "388" - ], - "topologyKey": "389" - } - } - ] - } - }, - "schedulerName": "390", - "tolerations": [ - { - "key": "391", - "operator": "栣险¹贮獘薟8Mĕ霉", - "value": "392", - "effect": "ŪǗȦɆ悼j蛑q", - "tolerationSeconds": 4375148957048018073 - } - ], - "hostAliases": [ - { - "ip": "393", - "hostnames": [ - "394" - ] - } - ], - "priorityClassName": "395", - "priority": -1286809305, - "dnsConfig": { - "nameservers": [ - "396" - ], - "searches": [ - "397" - ], - "options": [ - { - "name": "398", - "value": "399" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ųŎ群E牬庘颮6(|ǖû" - } - ], - "runtimeClassName": "400", - "enableServiceLinks": false, - "preemptionPolicy": "怨彬ɈNƋl塠傫ü", - "overhead": { - "ɮ6)": "299" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -554557703, - "topologyKey": "401", - "whenUnsatisfiable": "¹t骳ɰɰUʜʔŜ0¢", - "labelSelector": { - "matchLabels": { - "o--5r-v-5-e-m78o-6-s.4-7--i1-8miw-7a-2408m-0--5--2-5----00/l_.23--_l": "b-L7.-__-G_2kCpS__.3g" - }, - "matchExpressions": [ - { - "key": "nw0-3i--a7-2--o--u0038mp9c10-k-r---3g7nz4-------385h---0-u73pj.brgvf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--itk/5.m_2_--XZ-x.__.Y_2-n_5023Xl-3Pw_-r75--_A", - "operator": "In", - "values": [ - "7M7y-Dy__3wc.q.8_00.0_._.-_L-__bf_9_-C-Pfx" - ] - } - ] - } - } - ] - }, - "status": { - "phase": "ș", - "conditions": [ - { - "type": "ļė[BN柌ë娒汙查o*Ĵ麻齔試", - "status": "昒", - "lastProbeTime": "2756-02-27T11:08:58Z", - "lastTransitionTime": "2296-12-01T04:10:44Z", - "reason": "408", - "message": "409" - } - ], - "message": "410", - "reason": "411", - "nominatedNodeName": "412", - "hostIP": "413", - "podIP": "414", - "podIPs": [ - { - "ip": "415" - } - ], - "initContainerStatuses": [ - { - "name": "416", - "state": { - "waiting": { - "reason": "417", - "message": "418" - }, - "running": { - "startedAt": "1972-12-08T08:30:11Z" - }, - "terminated": { - "exitCode": -1817503524, - "signal": 1558801645, - "reason": "419", - "message": "420", - "startedAt": "2746-03-08T01:39:40Z", - "finishedAt": "2341-12-07T04:14:17Z", - "containerID": "421" - } - }, - "lastState": { - "waiting": { - "reason": "422", - "message": "423" - }, - "running": { - "startedAt": "2329-01-28T22:43:42Z" - }, - "terminated": { - "exitCode": -545370104, - "signal": 1235883803, - "reason": "424", - "message": "425", - "startedAt": "2419-03-20T05:43:22Z", - "finishedAt": "2821-07-19T11:49:26Z", - "containerID": "426" - } - }, - "ready": true, - "restartCount": -810338968, - "image": "427", - "imageID": "428", - "containerID": "429", - "started": false - } - ], - "containerStatuses": [ - { - "name": "430", - "state": { - "waiting": { - "reason": "431", - "message": "432" - }, - "running": { - "startedAt": "2403-04-11T00:06:43Z" - }, - "terminated": { - "exitCode": -173761204, - "signal": 332998836, - "reason": "433", - "message": "434", - "startedAt": "2196-05-31T08:51:58Z", - "finishedAt": "2580-08-27T04:54:10Z", - "containerID": "435" - } - }, - "lastState": { - "waiting": { - "reason": "436", - "message": "437" - }, - "running": { - "startedAt": "2878-09-11T10:26:17Z" - }, - "terminated": { - "exitCode": -1569123121, - "signal": 199195373, - "reason": "438", - "message": "439", - "startedAt": "2873-01-20T06:54:43Z", - "finishedAt": "2454-07-07T22:08:36Z", - "containerID": "440" - } - }, - "ready": false, - "restartCount": 568619460, - "image": "441", - "imageID": "442", - "containerID": "443", - "started": false - } - ], - "qosClass": "刣ȱǍ;ġ縊CkǚŨ", - "ephemeralContainerStatuses": [ - { - "name": "444", - "state": { - "waiting": { - "reason": "445", - "message": "446" - }, - "running": { - "startedAt": "2807-07-11T05:23:59Z" - }, - "terminated": { - "exitCode": -496491540, - "signal": -1067633812, - "reason": "447", - "message": "448", - "startedAt": "2536-08-25T03:52:32Z", - "finishedAt": "2142-06-11T22:09:32Z", - "containerID": "449" - } - }, - "lastState": { - "waiting": { - "reason": "450", - "message": "451" - }, - "running": { - "startedAt": "2890-09-01T10:48:08Z" - }, - "terminated": { - "exitCode": 233999136, - "signal": 1701016188, - "reason": "452", - "message": "453", - "startedAt": "2420-06-19T09:33:57Z", - "finishedAt": "2387-07-09T16:21:33Z", - "containerID": "454" - } - }, - "ready": false, - "restartCount": 1730285145, - "image": "455", - "imageID": "456", - "containerID": "457", - "started": true - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Pod.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.Pod.pb deleted file mode 100644 index de5c444aeb5135e02c571e3dbd2e2c24a2317ce6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6764 zcmYjV3w#vS)!*3wZl_kaBemP@uV2?K+K@WK%-ngRA_PzjLXn3eKBfc^c|!sT#QJ@C zkPre%AR#0nfxI9OAR#aEerU3r-A(ZUXvGR`KbzSHO7*L>77+TKI}_ARerIOR%suy< zbI(2Jf9?h)(L(-!v?g&>)S@k`sXq#213?lzMIa|3xCt?akon0R#|pf_ih`=JiY&1b z&m!fMzo&ngwy!*GYpi8aWA@pM%!+r*dx;g3NJ6FvCH@|gP$?_Nu6L1Ej(1u)EPpA9$gh_ z>fe&EJy??KE%odV?(GyuiYX`g<&1v?RlLxQ8Rr@ic!F^k)Z#271*Sj%)Pl4n{LPk@h<<(7CW zQsZE-z*1I$b66IGy#jBytN_0XAVd(HRzY-I1u4cVfL8=%I*b(5nMAykw2ClF%k%s^cN)u;l^*}1P4$BII7bsv2Lrx#Q+~x+L8jJBp4+L=>$*4z=KF( zmIN%>c|Y92FiCZS3y~tbc4ub&X=>}aYzS~AgbskvjZi>M|*X&L5{K}7{rRJfDGgQQjA zDXW4U7GMZ5Rz>8kiquMg@rn#D6sK*ZXpw$6eIy$`P@^rprH26ZRq%|;4H5T}Q5-8$ zK)@BF1cM)C{HS1qI93HsqaaXuAl!5yd@K+Y2SivzTp+Ru@(t2~6<2wzxC+*&g5$l$ z{CeuAMz%v}Cf=R03FcpkY4To`x;@ZEzKGW)Sk;Zf^^%FcRY)6>VQM%td_;16P zE{l6Ieu3;=|2vvfzVEAj(N1_2?1eX5!e)^DiEzLd9JYm%;3X%6>R2eJd`kQhUsXE+ ze4cfa@C0!Vgg3r`;685y9+&_G!AGj#1|r4)k$CJBRknXr%KR5 zqIBqtr*^KsuXry0UYS0hjN(}k1!=c{wA!uPV_URieDhYjah1v6Dx zMe~_s;hBSYk9~}sLjF8l*rpekEFG=#r+f3?Nc2^WRD||5MB1~rXn5-if=E3;lD-o6 ztC15m&-({4Q)St>$3Qd(yTu6?aH(W~iZZ_AB9@>fcX| z^fs^YpVZHm2|Ro$F3u&$RfckqY35-;Ds{ijV!v=LtJn0n6Uzm6{&J*jq+;rD>2U2r z-;v1vGb0^~x9ynqWawC{_qd+g@^}n(0roe~^G-YY0~=vz1YQS@VAs7R!3mCmv-z#2 zSXbqTr|wLQt}Q>1br1W+(C!>FL#)Um$QKNKAoECAqC|ZwO2(Qf?g!Z66aMtjp`Kt` zvu}Sezf$q-HD_00F2p(?B(VuMYp*t$apkmNK4-smtt((o<2e4G^!7W(GP{Nwzif?) zzI5hDvH3Mya;EtY6XN>`a*?43QYjG>f!uUg5rG3m1l~(wl;LIYZ6HRFM0kcu0QVIb6gsDWdg2goH=^g(G{Wg!&GJ za?k2%2Rxxyhug2e&%$_o1{qoEL7MR+Mmi#AMSWD z(s5Eu){mt{I`@YMPEw9#q5PxX-sI7yNNxFW-$H-sNQdBQ@a%HVW<1Zk^wi=d!O{Y~qj=fy0d1sdR`AgAX@Ralo@?29uN~G&>pe4?~H`L$m%?cl@^7iEe0YlCw@n~P9(fag6k22%z}{Wj6wqI2Ey4-U)_pL8G zUw06$!c^V=!QbD$vO2o=-^Xfir2F?RXG_Kcr)tyR$+}J$bKn3)f)opjf&_>lBtU{h zf{+3^1_^RH0aVGsR4pL-?jfrQaxJ-rWZ^A@;FLFm{hgx);f%B4zQU0#e_^=0CUC%4 zmh>BC3(Ibzh!7}MkwcOuxXFC zhz_LbDdu%r(>7@HMMh(o-)c;pMnA35^z*d9&xPw2m3>;9 zB~g#58Y3nx6d7Jz`NB?yU%3EMv&PU1wY4`5M1%hsG|UXK#CfnWKSLJh$N~dKJq{483mYMuwxArPRcQTed&5*-6f0oJx%|mmp`5%ubD7sc9@2$}FH6_*0VTI4))GQm_fF zo}Gl&gLSmFb&;m+*veD)E=;7i$g;|4^ahdIN06_otA%y+CK=qcL4j>WW0$Q`5G};h zD$Q+Cl4)U@uqyF&8qxF$ZfR07QlHXh(+S&`yvVF&H2x_W#IFGdCV;}|xAWF+XS8Ju zy;Dn=tuk}&+T?y3akTafJ&V>*dZ)<7bp^=uGDCDF-N(` z2a^;HuPdW$W@tJEFNyR5GoP9?cjvmq?TIj-0x1hA9MwwLGQJ!-W0o}PI6)Q@{)3lbvGvZd5?nRnOUaQgZ z%1TYr81^}c2t{D#gS9NY-N8J?Y~99yMrbx=h2?&9tG19{0uH2OSAd2z$1I^^k;cSx z@~V}va`Y}{&2uZ%t(wHlPR2?rSZVbL>|&LzCVDU!;sLX8yoeE#1Yn4l0o?Ek@5ZlG z`<#*w7;L)X5K>njN%ZB0T74qa3q=lh{GwBLox;2g?yqQBa;f|u=nrV^jmML_&smZ`O0L~S1T4Z-u zzqCl>HkKVgGT+=87_moERoAk2TP=WE&#dw_1Gj= zbH=}FCPcSgdAn``d;5IFrKlA<$vLJ9G8K(wDR;{k2Te;92VKj=;qpjEsxgy<;jP5q ztzp+9?Gtbf<0NGN<6n38nqle4D}C!d^VT)=m$E-tqpPkA+#1I^r-Fa_%DjyqAztznI4_x?fr-q#c&w~5s;oLkuV_&?t(bpO|(;TX5ej}WnrXScFF03~cg1!bml*SR* zbv>V=CBvFvNtK7JJ2qU;MW*i2}%nQ-p+{ElpnFFAg2= z<2`kumfGPCy*PjL;0(R7CI$BBBjn^z(dnI$ld0ZHPnY*hu)8!;U-AfbpWb;iF4WiL zI}#r!j-G~y!3~Lmtx|Bip#ZSK?aYijL?!a=>iF`QO43nL&-0R+UUkWM)DTLc7M zB1S;aN*l0;Lm1qT-y)2FZ0@O{{LaURdJOEt0g#0FRa=SI$Ad=_sHq?Tl0U{a4Ht*& zCK(==_prm|<9XSar18wZZ!$TP+I(D3ByiK|ee&+9-6#eHfiz+6v zt#4;soKR0#T8WuZa#fCU1S?@t8iu;V?M#x8 zaAe;`y{b}AKQ-K!Zv7ECA<(h2{D0AqD6WQR6u15z==dgprID7<7j2mx@1~jNkhk=Y@%8C z6pA(`G|jTpHfjtH1yS2b{Un}#7MDN_9{3Hjw=RL2hSpN&3Gx`RIhm!=I+|W7!%!Ng z+rh$V)TXWKDvqT$&}CKo zFue-!XEjgrAP^)AY%;)~b(?8LW|QG&`-W*Evq|Ftzbs!t@5J!rMJP_2HIe1f@{KfF zl&sMSGRV}ccaNNd&f zaC>I*+?oEvi9@G`J4Ty4sgGj;W-|`?DvF0pWj5n7ZpI-U;bt7pS%4VLI2`beH{+0m zfcafBuHa5e!Ob`i>ERdQmh3>rJa6SlmABn9=AsSuVZ8wIYXsP+BvZU#5|s^TU$1sZ0* zG~5;{tTU&E#DLhloptK<#_?lAoN^J%*>|^(wnsTW@E#AETga7n?84RYj_LY=|LYvD zHf2{nIbc?z_*Q~kj#WXdN<9G=I19l|`{*AI<(T7e!a^M9p6nU$Eg>9@AWpvPV#Hwt#Hnt_NY_iA5>IomcK@=- zsm^ds-joH;`zvP3hFmycjY9nQdTPYunRuuyh!+xmI+_;D&kB_I_lI{6=tuJP0|z{n z&yE~O*-HKwc|T&3=*VDQFuh4X+T^dMe(327XZCtek2LrP%|02y$p#35a)Nj$Cx};E z-&{O7(6smM^Zye~7;SQuKm6&ntkTA)xF34z5($&kT`@s3&M?3QX`BAovo?=Tx>1#bog8s$`iH2nmpSlCZ2GFG4{I96!p zeq#k#!A*Jh2J`Yc?_j8`GkiQRd5v$6;U|2eh*;^nctrS65wVK>+~vb>oxX{r)n7_IO}agOp5m8c7X~Z#51-QO3xX}B z!HN@GVm$4Up593Rp>RVj6%{NgaN2C6eIK8F*=}*$Y@Y7g&PVJ3Ng>SLd9LCmLy6L?iUD~WxP7ivH}$1 z;~@_SoVeatB|)H;7+%Fk5(1o=VGX|M`k*HsG*E4y`zpu7)Bbtzdb%kV)DU1R34#J@ zqy|2CH`Y+2eC%5FWYf2*bDkj-pO*=M>#@*qvwn0V2xV-Qhex;AzZuItH3=jEz6XLp rQs!H2H%)_byWh`&odlYT0<6-<<=Nenz!p)&90_a@<#~kD;' - values: - - "351" - matchFields: - - key: "352" - operator: 偢ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ圯W - values: - - "353" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 9d4i-m7---k8235--8--c83-4b-9-1o8w-4/4csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9.D - operator: NotIn - values: - - G31-_I-A-_3bz._8M0U1_-__.71-_-9_.X - matchLabels: - x_-a__0-8-.M-.-.-8v-J1zET_..3dCv3j._.-_pP__up2: Ns-o779._-k5 - namespaces: - - "372" - topologyKey: "373" - weight: -819013491 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8x.2K_2qu_0S-CqW.D_8--21kF-c026.-iTl.1-.T - operator: NotIn - values: - - H.I3.__-.u - matchLabels: - zo--4-1-2s39--6---fv--m-8--72-bca4m56au3f---tx-8----2d-4u-d7sn/48Y.q.0-_1-F.h-__k_K5._..O_.J_-G_--V-42E_--o90G_A6: 9_.5vN5.25aWx.2aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1y - namespaces: - - "364" - topologyKey: "365" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - x-3/6-.7D.3_KPgL: d._.Um.-__k.5 - namespaces: - - "388" - topologyKey: "389" - weight: -168773629 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: v8_.O_..8n.--z_-..6W.K - operator: Exists - matchLabels: - xm-.nx.sEK4.B.__65m8_x: 29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1 - namespaces: - - "380" - topologyKey: "381" - automountServiceAccountToken: false - containers: - - args: - - "195" - command: - - "194" - env: - - name: "202" - value: "203" - valueFrom: - configMapKeyRef: - key: "209" - name: "208" - optional: false - fieldRef: - apiVersion: "204" - fieldPath: "205" - resourceFieldRef: - containerName: "206" - divisor: "177" - resource: "207" - secretKeyRef: - key: "211" - name: "210" - optional: false - envFrom: - - configMapRef: - name: "200" - optional: false - prefix: "199" - secretRef: - name: "201" - optional: true - image: "193" - imagePullPolicy: ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬 - lifecycle: - postStart: - exec: - command: - - "239" - httpGet: - host: "242" - httpHeaders: - - name: "243" - value: "244" - path: "240" - port: "241" - scheme: '%:;栍dʪīT捘ɍi' - tcpSocket: - host: "246" - port: "245" - preStop: - exec: - command: - - "247" - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: -1171060347 - scheme: 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊° - tcpSocket: - host: "253" - port: "252" - livenessProbe: - exec: - command: - - "218" - failureThreshold: -1321131665 - httpGet: - host: "220" - httpHeaders: - - name: "221" - value: "222" - path: "219" - port: -144591150 - scheme: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - initialDelaySeconds: 1288053477 - periodSeconds: 1607133856 - successThreshold: 1891896870 - tcpSocket: - host: "224" - port: "223" - timeoutSeconds: -163325250 - name: "192" - ports: - - containerPort: -539733119 - hostIP: "198" - hostPort: -632157481 - name: "197" - protocol: 楙¯ĦE勗E - readinessProbe: - exec: - command: - - "225" - failureThreshold: 1231820696 - httpGet: - host: "228" - httpHeaders: - - name: "229" - value: "230" - path: "226" - port: "227" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "231" - port: -2049272966 - timeoutSeconds: -427769948 - resources: - limits: - 蓳嗘TʡȂŏ{sǡƟ狩鴈o_: "445" - requests: - ǘ"^饣Vȿ: "900" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 瓼猀2:öY鶪5w垁鷌辪 - drop: - - U珝Żwʮ馜üNșƶ4ĩĉ - privileged: false - procMount: "" - readOnlyRootFilesystem: false - runAsGroup: 6165457529064596376 - runAsNonRoot: false - runAsUser: -4642229086806245627 - seLinuxOptions: - level: "258" - role: "256" - type: "257" - user: "255" - windowsOptions: - gmsaCredentialSpec: "260" - gmsaCredentialSpecName: "259" - runAsUserName: "261" - startupProbe: - exec: - command: - - "232" - failureThreshold: -1618937335 - httpGet: - host: "235" - httpHeaders: - - name: "236" - value: "237" - path: "233" - port: "234" - initialDelaySeconds: 994527057 - periodSeconds: -1346458591 - successThreshold: 1234551517 - tcpSocket: - host: "238" - port: 675406340 - timeoutSeconds: -1482763519 - stdinOnce: true - terminationMessagePath: "254" - terminationMessagePolicy: 閼咎櫸eʔŊ - tty: true - volumeDevices: - - devicePath: "217" - name: "216" - volumeMounts: - - mountPath: "213" - mountPropagation: 怳冘HǺƶȤ^}穠C]躢|)黰eȪ嵛4 - name: "212" - subPath: "214" - subPathExpr: "215" - workingDir: "196" - dnsConfig: - nameservers: - - "396" - options: - - name: "398" - value: "399" - searches: - - "397" - dnsPolicy: 8鸖ɱJȉ罴ņ螡źȰ?$矡ȶ网棊ʢ - enableServiceLinks: false - ephemeralContainers: - - args: - - "265" - command: - - "264" - env: - - name: "272" - value: "273" - valueFrom: - configMapKeyRef: - key: "279" - name: "278" - optional: false - fieldRef: - apiVersion: "274" - fieldPath: "275" - resourceFieldRef: - containerName: "276" - divisor: "405" - resource: "277" - secretKeyRef: - key: "281" - name: "280" - optional: false - envFrom: - - configMapRef: - name: "270" - optional: true - prefix: "269" - secretRef: - name: "271" - optional: false - image: "263" - imagePullPolicy: ʁ揆ɘȌ脾嚏吐ĠLƐ - lifecycle: - postStart: - exec: - command: - - "309" - httpGet: - host: "311" - httpHeaders: - - name: "312" - value: "313" - path: "310" - port: -1589303862 - scheme: ľǎɳ,ǿ飏騀呣ǎ - tcpSocket: - host: "315" - port: "314" - preStop: - exec: - command: - - "316" - httpGet: - host: "319" - httpHeaders: - - name: "320" - value: "321" - path: "317" - port: "318" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "323" - port: "322" - livenessProbe: - exec: - command: - - "288" - failureThreshold: -1131820775 - httpGet: - host: "291" - httpHeaders: - - name: "292" - value: "293" - path: "289" - port: "290" - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "295" - port: "294" - timeoutSeconds: 747521320 - name: "262" - ports: - - containerPort: -1569009987 - hostIP: "268" - hostPort: -1703360754 - name: "267" - protocol: ɢǵʭd鲡:贅wE@Ȗs«öʮĀ< - readinessProbe: - exec: - command: - - "296" - failureThreshold: -233378149 - httpGet: - host: "298" - httpHeaders: - - name: "299" - value: "300" - path: "297" - port: -1710454086 - scheme: mɩC[ó瓧 - initialDelaySeconds: 915577348 - periodSeconds: -1386967282 - successThreshold: -2030286732 - tcpSocket: - host: "301" - port: -122979840 - timeoutSeconds: -590798124 - resources: - limits: - 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷: "948" - requests: - "": "83" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 3.v-鿧悮坮Ȣ - drop: - - ļ腻ŬƩȿ - privileged: false - procMount: ħsĨɆâĺ - readOnlyRootFilesystem: false - runAsGroup: 241615716805649441 - runAsNonRoot: true - runAsUser: 9197199583783594492 - seLinuxOptions: - level: "328" - role: "326" - type: "327" - user: "325" - windowsOptions: - gmsaCredentialSpec: "330" - gmsaCredentialSpecName: "329" - runAsUserName: "331" - startupProbe: - exec: - command: - - "302" - failureThreshold: 486195690 - httpGet: - host: "304" - httpHeaders: - - name: "305" - value: "306" - path: "303" - port: -495373547 - scheme: ʼn掏1ſ盷褎weLJ - initialDelaySeconds: -929354164 - periodSeconds: 1582773079 - successThreshold: -1133499416 - tcpSocket: - host: "308" - port: "307" - timeoutSeconds: 1972119760 - stdin: true - targetContainerName: "332" - terminationMessagePath: "324" - terminationMessagePolicy: Ȋ礶 - tty: true - volumeDevices: - - devicePath: "287" - name: "286" - volumeMounts: - - mountPath: "283" - mountPropagation: '@ùƸʋŀ樺ȃv' - name: "282" - subPath: "284" - subPathExpr: "285" - workingDir: "266" - hostAliases: - - hostnames: - - "394" - ip: "393" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "348" - imagePullSecrets: - - name: "347" - initContainers: - - args: - - "127" - command: - - "126" - env: - - name: "134" - value: "135" - valueFrom: - configMapKeyRef: - key: "141" - name: "140" - optional: false - fieldRef: - apiVersion: "136" - fieldPath: "137" - resourceFieldRef: - containerName: "138" - divisor: "637" - resource: "139" - secretKeyRef: - key: "143" - name: "142" - optional: true - envFrom: - - configMapRef: - name: "132" - optional: false - prefix: "131" - secretRef: - name: "133" - optional: true - image: "125" - imagePullPolicy: TwMȗ礼2ħ籦ö嗏ʑ>季 - lifecycle: - postStart: - exec: - command: - - "171" - httpGet: - host: "174" - httpHeaders: - - name: "175" - value: "176" - path: "172" - port: "173" - scheme: 荎僋bŭDz鯰硰{舁吉蓨 - tcpSocket: - host: "177" - port: -662805900 - preStop: - exec: - command: - - "178" - httpGet: - host: "180" - httpHeaders: - - name: "181" - value: "182" - path: "179" - port: 249891070 - scheme: ɹ7\弌Þ帺萸Do©Ǿt'容柚ʕIã陫 - tcpSocket: - host: "183" - port: 266070687 - livenessProbe: - exec: - command: - - "150" - failureThreshold: 990374141 - httpGet: - host: "152" - httpHeaders: - - name: "153" - value: "154" - path: "151" - port: -1123620985 - scheme: l恕ɍȇ廄裭4懙鏮嵒 - initialDelaySeconds: -1177836822 - periodSeconds: 1149075888 - successThreshold: 1156607667 - tcpSocket: - host: "156" - port: "155" - timeoutSeconds: 1822289444 - name: "124" - ports: - - containerPort: -2040518604 - hostIP: "130" - hostPort: -2139825026 - name: "129" - readinessProbe: - exec: - command: - - "157" - failureThreshold: -1904823509 - httpGet: - host: "160" - httpHeaders: - - name: "161" - value: "162" - path: "158" - port: "159" - scheme: Ü郀 - initialDelaySeconds: -144625578 - periodSeconds: 694611906 - successThreshold: -1888506207 - tcpSocket: - host: "163" - port: 1184528004 - timeoutSeconds: -101708658 - resources: - limits: - ŨȈ>Ņ£趕ã/鈱$-议: "963" - requests: - 鄸靇杧ž譋娲瘹ɭȊɚɎ(dɅ囥糷磩窮秳: "781" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 畬x骀Šĸů湙騘& - drop: - - 川J缮ǚbJ5ʬ - privileged: true - procMount: '`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ蓿彭聡A' - readOnlyRootFilesystem: false - runAsGroup: -7029550403667587439 - runAsNonRoot: false - runAsUser: 570299180913049309 - seLinuxOptions: - level: "188" - role: "186" - type: "187" - user: "185" - windowsOptions: - gmsaCredentialSpec: "190" - gmsaCredentialSpecName: "189" - runAsUserName: "191" - startupProbe: - exec: - command: - - "164" - failureThreshold: 1247862962 - httpGet: - host: "166" - httpHeaders: - - name: "167" - value: "168" - path: "165" - port: 1693510057 - scheme: =y钡 - initialDelaySeconds: -529495213 - periodSeconds: 1727149457 - successThreshold: 1407547486 - tcpSocket: - host: "170" - port: "169" - timeoutSeconds: 23025317 - stdinOnce: true - terminationMessagePath: "184" - terminationMessagePolicy: '")珷<º' - volumeDevices: - - devicePath: "149" - name: "148" - volumeMounts: - - mountPath: "145" - mountPropagation: QZ{ʁgɸ=ǤÆ - name: "144" - readOnly: true - subPath: "146" - subPathExpr: "147" - workingDir: "128" - nodeName: "337" - nodeSelector: - "333": "334" - overhead: - ɮ6): "299" - preemptionPolicy: 怨彬ɈNƋl塠傫ü - priority: -1286809305 - priorityClassName: "395" - readinessGates: - - conditionType: ųŎ群E牬庘颮6(|ǖû - restartPolicy: 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶 - runtimeClassName: "400" - schedulerName: "390" - securityContext: - fsGroup: 6347577485454457915 - runAsGroup: -860974700141841896 - runAsNonRoot: true - runAsUser: 7525448836100188460 - seLinuxOptions: - level: "341" - role: "339" - type: "340" - user: "338" - supplementalGroups: - - 7258403424756645907 - sysctls: - - name: "345" - value: "346" - windowsOptions: - gmsaCredentialSpec: "343" - gmsaCredentialSpecName: "342" - runAsUserName: "344" - serviceAccount: "336" - serviceAccountName: "335" - shareProcessNamespace: false - subdomain: "349" - terminationGracePeriodSeconds: -1689173322096612726 - tolerations: - - effect: ŪǗȦɆ悼j蛑q - key: "391" - operator: 栣险¹贮獘薟8Mĕ霉 - tolerationSeconds: 4375148957048018073 - value: "392" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: nw0-3i--a7-2--o--u0038mp9c10-k-r---3g7nz4-------385h---0-u73pj.brgvf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--itk/5.m_2_--XZ-x.__.Y_2-n_5023Xl-3Pw_-r75--_A - operator: In - values: - - 7M7y-Dy__3wc.q.8_00.0_._.-_L-__bf_9_-C-Pfx - matchLabels: - o--5r-v-5-e-m78o-6-s.4-7--i1-8miw-7a-2408m-0--5--2-5----00/l_.23--_l: b-L7.-__-G_2kCpS__.3g - maxSkew: -554557703 - topologyKey: "401" - whenUnsatisfiable: ¹t骳ɰɰUʜʔŜ0¢ - volumes: - - awsElasticBlockStore: - fsType: "24" - partition: 1001983654 - volumeID: "23" - azureDisk: - cachingMode: ƕP喂ƈ - diskName: "87" - diskURI: "88" - fsType: "89" - kind: "" - readOnly: false - azureFile: - secretName: "73" - shareName: "74" - cephfs: - monitors: - - "58" - path: "59" - secretFile: "61" - secretRef: - name: "62" - user: "60" - cinder: - fsType: "56" - readOnly: true - secretRef: - name: "57" - volumeID: "55" - configMap: - defaultMode: 172857432 - items: - - key: "76" - mode: 1392988974 - path: "77" - name: "75" - optional: true - csi: - driver: "119" - fsType: "120" - nodePublishSecretRef: - name: "123" - readOnly: true - volumeAttributes: - "121": "122" - downwardAPI: - defaultMode: 1246233319 - items: - - fieldRef: - apiVersion: "66" - fieldPath: "67" - mode: -1639873916 - path: "65" - resourceFieldRef: - containerName: "68" - divisor: "387" - resource: "69" - emptyDir: - medium: Ƣ6/ʕVŚ(ĿȊ甞 - sizeLimit: "776" - fc: - fsType: "71" - lun: -1876826602 - targetWWNs: - - "70" - wwids: - - "72" - flexVolume: - driver: "50" - fsType: "51" - options: - "53": "54" - secretRef: - name: "52" - flocker: - datasetName: "63" - datasetUUID: "64" - gcePersistentDisk: - fsType: "22" - partition: -123438221 - pdName: "21" - readOnly: true - gitRepo: - directory: "27" - repository: "25" - revision: "26" - glusterfs: - endpoints: "40" - path: "41" - hostPath: - path: "20" - type: Hr鯹)晿Z)8kwXHRf+X>V?G5-17*G7te603i0`=s29Y_EG diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodLogOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.PodLogOptions.yaml deleted file mode 100644 index 845f9e455..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodLogOptions.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -container: "2" -follow: true -kind: PodLogOptions -limitBytes: 5323465663502687351 -sinceSeconds: 1002466899136229878 -tailLines: -6357999603795826160 -timestamps: true diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.json deleted file mode 100644 index bdd91aa3c..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "kind": "PodPortForwardOptions", - "apiVersion": "v1", - "ports": [ - -1477656590 - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.pb deleted file mode 100644 index da9223a26e243785ca890b04328a2da393fb618a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 zcmd0{C}!Z2=3*){6cP={PYK8`Dsjs%Do-p*@h>RJ%+D(p;^z4Df7AY7|ABx}ib071 E0HJ;pSpWb4 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.yaml deleted file mode 100644 index 1f83d977f..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodPortForwardOptions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: PodPortForwardOptions -ports: -- -1477656590 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.json deleted file mode 100644 index 1ab7ba0c4..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "PodProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.PodProxyOptions.pb deleted file mode 100644 index c52bc3375bcc74b85722e4def402c5a4d23939cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36 rcmd0{C}!Xiuc-7dD9OyvD;8qrVlhn0t{XwIRG1GDNkM^-l08&(@zO&Pw5G0( zzyF!tRw2VJ;NYMl zq;A}|BfBWKsJL)beqr&RBH?W^cOG#F3rH1_CLuionRvdU$QssUU2|KqWg4=9Wz~B6 zzGU26)#}~vVK!cMV02QITX3xaNBpd zaM-?8vp)lf%UGxY6zvcwx{a2TtA>ykueBo$cKpoA;lR?(k=EX!{@mpw4M(DN-t_2z z-zm=_nu$TNgkTc4!09@W6%E+AR;=y#cIVtk)3R7okFb?hecBVx>W+ z#VLvS{IU9)VLR4hJC(vh=f-XORYM?lsW#qT6)MXPwcV=8UbN(9P-NMXP-*8Xo{?Dg zVsNZtHP4W7-59Ve0#+ozI0LXo&bsFc;y_b`^&CsSSO85GIF4n1bRWG|z%!!4j@!-* z;!DfQKh69h3yGj<5@>n`%bxst=Vms~V6tmIdulPytN_grH&DtXltrn^p1_AigfiF@ zcYWRj!au%W@#4pS&nISCzQ$)}$@@{St8*QBILp0Xc`0nA(*;qqPG%yqa3{0tKgpUmIDT*F|1ULE2@H);AIFYOq*3Z+y*IFzQo4&t{~o^P0}O^iXww6Rm5D?~V*Ubo CEj$7M diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodStatusResult.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.PodStatusResult.yaml deleted file mode 100644 index d805ba801..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodStatusResult.yaml +++ /dev/null @@ -1,156 +0,0 @@ -apiVersion: v1 -kind: PodStatusResult -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -status: - conditions: - - lastProbeTime: "2508-05-13T03:16:18Z" - lastTransitionTime: "2514-12-25T07:56:30Z" - message: "20" - reason: "19" - status: ĿȊ甞谐颋DžSǡƏS$+½ - type: ċV夸eɑeʤ脽ěĂ凗蓏Ŋ蛊ĉ - containerStatuses: - - containerID: "54" - image: "52" - imageID: "53" - lastState: - running: - startedAt: "2283-08-16T02:57:13Z" - terminated: - containerID: "51" - exitCode: -1876826602 - finishedAt: "2485-12-31T11:06:30Z" - message: "50" - reason: "49" - signal: -1134418089 - startedAt: "2103-08-02T14:34:54Z" - waiting: - message: "48" - reason: "47" - name: "41" - ready: true - restartCount: 1366345526 - started: false - state: - running: - startedAt: "2943-08-01T13:09:15Z" - terminated: - containerID: "46" - exitCode: 523306325 - finishedAt: "2320-11-04T10:48:57Z" - message: "45" - reason: "44" - signal: -1639873916 - startedAt: "2680-06-15T09:55:37Z" - waiting: - message: "43" - reason: "42" - ephemeralContainerStatuses: - - containerID: "68" - image: "66" - imageID: "67" - lastState: - running: - startedAt: "2809-10-24T21:55:41Z" - terminated: - containerID: "65" - exitCode: 1192771347 - finishedAt: "2907-09-12T12:00:36Z" - message: "64" - reason: "63" - signal: -1737266499 - startedAt: "2256-09-10T15:38:25Z" - waiting: - message: "62" - reason: "61" - name: "55" - ready: false - restartCount: 552512122 - started: true - state: - running: - startedAt: "2442-02-07T10:23:02Z" - terminated: - containerID: "60" - exitCode: -1395989138 - finishedAt: "2843-03-23T07:04:39Z" - message: "59" - reason: "58" - signal: 1995971729 - startedAt: "1982-02-22T15:48:54Z" - waiting: - message: "57" - reason: "56" - hostIP: "24" - initContainerStatuses: - - containerID: "40" - image: "38" - imageID: "39" - lastState: - running: - startedAt: "2763-08-05T14:40:52Z" - terminated: - containerID: "37" - exitCode: 1979600290 - finishedAt: "2194-08-27T14:35:41Z" - message: "36" - reason: "35" - signal: -827642756 - startedAt: "2055-07-31T00:22:12Z" - waiting: - message: "34" - reason: "33" - name: "27" - ready: true - restartCount: -734360256 - started: false - state: - running: - startedAt: "2680-10-21T03:40:10Z" - terminated: - containerID: "32" - exitCode: -1965738697 - finishedAt: "2570-10-14T17:33:22Z" - message: "31" - reason: "30" - signal: 1390645844 - startedAt: "2559-01-29T18:41:04Z" - waiting: - message: "29" - reason: "28" - message: "21" - nominatedNodeName: "23" - phase: īqJ枊a8衍`Ĩɘ.蘯 - podIP: "25" - podIPs: - - ip: "26" - qosClass: '励鹗塢ē ' - reason: "22" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.json b/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.json deleted file mode 100644 index 06b8c6dbf..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.json +++ /dev/null @@ -1,1372 +0,0 @@ -{ - "kind": "PodTemplate", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "template": { - "metadata": { - "name": "19", - "generateName": "20", - "namespace": "21", - "selfLink": "22", - "uid": "SǡƏ", - "resourceVersion": "17916580954637291219", - "generation": 5259823216098853135, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 4075183944016503389, - "labels": { - "24": "25" - }, - "annotations": { - "26": "27" - }, - "ownerReferences": [ - { - "apiVersion": "28", - "kind": "29", - "name": "30", - "uid": "ɑ", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "31" - ], - "clusterName": "32", - "managedFields": [ - { - "manager": "33", - "operation": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "34", - "fieldsType": "35" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "36", - "hostPath": { - "path": "37", - "type": "H牗洝尿彀亞螩B" - }, - "emptyDir": { - "medium": "x", - "sizeLimit": "826" - }, - "gcePersistentDisk": { - "pdName": "38", - "fsType": "39", - "partition": -1487653240, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "40", - "fsType": "41", - "partition": -1261508418 - }, - "gitRepo": { - "repository": "42", - "revision": "43", - "directory": "44" - }, - "secret": { - "secretName": "45", - "items": [ - { - "key": "46", - "path": "47", - "mode": -655946460 - } - ], - "defaultMode": -1639873916, - "optional": true - }, - "nfs": { - "server": "48", - "path": "49" - }, - "iscsi": { - "targetPortal": "50", - "iqn": "51", - "lun": -400609276, - "iscsiInterface": "52", - "fsType": "53", - "portals": [ - "54" - ], - "secretRef": { - "name": "55" - }, - "initiatorName": "56" - }, - "glusterfs": { - "endpoints": "57", - "path": "58" - }, - "persistentVolumeClaim": { - "claimName": "59", - "readOnly": true - }, - "rbd": { - "monitors": [ - "60" - ], - "image": "61", - "fsType": "62", - "pool": "63", - "user": "64", - "keyring": "65", - "secretRef": { - "name": "66" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "67", - "fsType": "68", - "secretRef": { - "name": "69" - }, - "options": { - "70": "71" - } - }, - "cinder": { - "volumeID": "72", - "fsType": "73", - "secretRef": { - "name": "74" - } - }, - "cephfs": { - "monitors": [ - "75" - ], - "path": "76", - "user": "77", - "secretFile": "78", - "secretRef": { - "name": "79" - } - }, - "flocker": { - "datasetName": "80", - "datasetUUID": "81" - }, - "downwardAPI": { - "items": [ - { - "path": "82", - "fieldRef": { - "apiVersion": "83", - "fieldPath": "84" - }, - "resourceFieldRef": { - "containerName": "85", - "resource": "86", - "divisor": "687" - }, - "mode": -1413529736 - } - ], - "defaultMode": 1557090007 - }, - "fc": { - "targetWWNs": [ - "87" - ], - "lun": 933484239, - "fsType": "88", - "wwids": [ - "89" - ] - }, - "azureFile": { - "secretName": "90", - "shareName": "91" - }, - "configMap": { - "name": "92", - "items": [ - { - "key": "93", - "path": "94", - "mode": 1913946997 - } - ], - "defaultMode": -1648533063, - "optional": true - }, - "vsphereVolume": { - "volumePath": "95", - "fsType": "96", - "storagePolicyName": "97", - "storagePolicyID": "98" - }, - "quobyte": { - "registry": "99", - "volume": "100", - "user": "101", - "group": "102", - "tenant": "103" - }, - "azureDisk": { - "diskName": "104", - "diskURI": "105", - "cachingMode": "", - "fsType": "106", - "readOnly": false, - "kind": "ƺ魋Ď儇击3ƆìQ" - }, - "photonPersistentDisk": { - "pdID": "107", - "fsType": "108" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "109", - "items": [ - { - "key": "110", - "path": "111", - "mode": 565864299 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "112", - "fieldRef": { - "apiVersion": "113", - "fieldPath": "114" - }, - "resourceFieldRef": { - "containerName": "115", - "resource": "116", - "divisor": "546" - }, - "mode": 1167335696 - } - ] - }, - "configMap": { - "name": "117", - "items": [ - { - "key": "118", - "path": "119", - "mode": -1009864962 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "120", - "expirationSeconds": -8033620543910768540, - "path": "121" - } - } - ], - "defaultMode": -1880297089 - }, - "portworxVolume": { - "volumeID": "122", - "fsType": "123", - "readOnly": true - }, - "scaleIO": { - "gateway": "124", - "system": "125", - "secretRef": { - "name": "126" - }, - "sslEnabled": true, - "protectionDomain": "127", - "storagePool": "128", - "storageMode": "129", - "volumeName": "130", - "fsType": "131", - "readOnly": true - }, - "storageos": { - "volumeName": "132", - "volumeNamespace": "133", - "fsType": "134", - "readOnly": true, - "secretRef": { - "name": "135" - } - }, - "csi": { - "driver": "136", - "readOnly": false, - "fsType": "137", - "volumeAttributes": { - "138": "139" - }, - "nodePublishSecretRef": { - "name": "140" - } - } - } - ], - "initContainers": [ - { - "name": "141", - "image": "142", - "command": [ - "143" - ], - "args": [ - "144" - ], - "workingDir": "145", - "ports": [ - { - "name": "146", - "hostPort": 1094434838, - "containerPort": -1354971977, - "protocol": "ĺ稥", - "hostIP": "147" - } - ], - "envFrom": [ - { - "prefix": "148", - "configMapRef": { - "name": "149", - "optional": false - }, - "secretRef": { - "name": "150", - "optional": true - } - } - ], - "env": [ - { - "name": "151", - "value": "152", - "valueFrom": { - "fieldRef": { - "apiVersion": "153", - "fieldPath": "154" - }, - "resourceFieldRef": { - "containerName": "155", - "resource": "156", - "divisor": "711" - }, - "configMapKeyRef": { - "name": "157", - "key": "158", - "optional": true - }, - "secretKeyRef": { - "name": "159", - "key": "160", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ėf倐ȓ圬剴扲ȿQZ{ʁgɸ": "147" - }, - "requests": { - "": "609" - } - }, - "volumeMounts": [ - { - "name": "161", - "readOnly": true, - "mountPath": "162", - "subPath": "163", - "mountPropagation": ",1ZƜ/C龷ȪÆ", - "subPathExpr": "164" - } - ], - "volumeDevices": [ - { - "name": "165", - "devicePath": "166" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "167" - ] - }, - "httpGet": { - "path": "168", - "port": 126800818, - "host": "169", - "scheme": "ƫS捕ɷ", - "httpHeaders": [ - { - "name": "170", - "value": "171" - } - ] - }, - "tcpSocket": { - "port": 990374141, - "host": "172" - }, - "initialDelaySeconds": 1673568505, - "timeoutSeconds": 1665622609, - "periodSeconds": -972874331, - "successThreshold": 860842148, - "failureThreshold": -1373481716 - }, - "readinessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": -144625578, - "host": "175", - "scheme": "择,Q捇ȸ{+", - "httpHeaders": [ - { - "name": "176", - "value": "177" - } - ] - }, - "tcpSocket": { - "port": 1130962147, - "host": "178" - }, - "initialDelaySeconds": 358822621, - "timeoutSeconds": 1946649472, - "periodSeconds": 327574193, - "successThreshold": 1718125857, - "failureThreshold": -366263237 - }, - "startupProbe": { - "exec": { - "command": [ - "179" - ] - }, - "httpGet": { - "path": "180", - "port": "181", - "host": "182", - "scheme": "P_痸", - "httpHeaders": [ - { - "name": "183", - "value": "184" - } - ] - }, - "tcpSocket": { - "port": -1341615783, - "host": "185" - }, - "initialDelaySeconds": 528528093, - "timeoutSeconds": 1408805313, - "periodSeconds": -2078905463, - "successThreshold": 1603139327, - "failureThreshold": 1050218190 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "186" - ] - }, - "httpGet": { - "path": "187", - "port": "188", - "host": "189", - "scheme": "O澘銈e棈_Ĭ艥\u003c檔", - "httpHeaders": [ - { - "name": "190", - "value": "191" - } - ] - }, - "tcpSocket": { - "port": "192", - "host": "193" - } - }, - "preStop": { - "exec": { - "command": [ - "194" - ] - }, - "httpGet": { - "path": "195", - "port": -1006328793, - "host": "196", - "scheme": "©Ǿt'", - "httpHeaders": [ - { - "name": "197", - "value": "198" - } - ] - }, - "tcpSocket": { - "port": "199", - "host": "200" - } - } - }, - "terminationMessagePath": "201", - "terminationMessagePolicy": "ʕIã陫ʋsş\")珷\u003cºɖ", - "imagePullPolicy": "wMȗ礼2ħ籦ö", - "securityContext": { - "capabilities": { - "add": [ - "\u003e季Cʖ畬x骀Šĸů湙騘\u0026啞川J缮" - ], - "drop": [ - "bJ5ʬ昹ʞĹ鑑6NJPM饣`" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "202", - "role": "203", - "type": "204", - "level": "205" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "206", - "gmsaCredentialSpec": "207", - "runAsUserName": "208" - }, - "runAsUser": 6821913012222657579, - "runAsGroup": -5811430020199686393, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "2啗塧ȱ蓿彭聡A3fƻfʣ繡楙¯ĦE勗" - }, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "209", - "image": "210", - "command": [ - "211" - ], - "args": [ - "212" - ], - "workingDir": "213", - "ports": [ - { - "name": "214", - "hostPort": 744106683, - "containerPort": 1083816849, - "protocol": "議Ǹ轺@)蓳嗘", - "hostIP": "215" - } - ], - "envFrom": [ - { - "prefix": "216", - "configMapRef": { - "name": "217", - "optional": false - }, - "secretRef": { - "name": "218", - "optional": true - } - } - ], - "env": [ - { - "name": "219", - "value": "220", - "valueFrom": { - "fieldRef": { - "apiVersion": "221", - "fieldPath": "222" - }, - "resourceFieldRef": { - "containerName": "223", - "resource": "224", - "divisor": "179" - }, - "configMapKeyRef": { - "name": "225", - "key": "226", - "optional": false - }, - "secretKeyRef": { - "name": "227", - "key": "228", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "o_鹈ɹ坼É/pȿŘ阌Ŗ怳冘HǺƶ": "364" - }, - "requests": { - "ǝ鿟ldg滠鼍ƭt?QȫşŇɜ": "211" - } - }, - "volumeMounts": [ - { - "name": "229", - "mountPath": "230", - "subPath": "231", - "mountPropagation": "zÏ抴ŨfZhUʎ浵ɲõTo\u0026", - "subPathExpr": "232" - } - ], - "volumeDevices": [ - { - "name": "233", - "devicePath": "234" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "235" - ] - }, - "httpGet": { - "path": "236", - "port": "237", - "host": "238", - "scheme": "Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈", - "httpHeaders": [ - { - "name": "239", - "value": "240" - } - ] - }, - "tcpSocket": { - "port": 2064656704, - "host": "241" - }, - "initialDelaySeconds": -1940723300, - "timeoutSeconds": 749147575, - "periodSeconds": 496226800, - "successThreshold": 84444678, - "failureThreshold": -547518679 - }, - "readinessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": 1322581021, - "host": "244", - "scheme": "坩O`涁İ而踪鄌eÞ", - "httpHeaders": [ - { - "name": "245", - "value": "246" - } - ] - }, - "tcpSocket": { - "port": -1319491110, - "host": "247" - }, - "initialDelaySeconds": 565789036, - "timeoutSeconds": -1572269414, - "periodSeconds": -582473401, - "successThreshold": -1252931244, - "failureThreshold": 1569992019 - }, - "startupProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 870237686, - "host": "250", - "scheme": "墴1Rƥ贫d", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -33154680, - "host": "253" - }, - "initialDelaySeconds": -709825668, - "timeoutSeconds": -1144400181, - "periodSeconds": -379514302, - "successThreshold": 173916181, - "failureThreshold": -813624408 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": 200992434, - "host": "256", - "scheme": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "httpHeaders": [ - { - "name": "257", - "value": "258" - } - ] - }, - "tcpSocket": { - "port": "259", - "host": "260" - } - }, - "preStop": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": "263", - "host": "264", - "scheme": "ɋ瀐\u003cɉ", - "httpHeaders": [ - { - "name": "265", - "value": "266" - } - ] - }, - "tcpSocket": { - "port": -1334904807, - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "å睫}堇硲蕵ɢ苆", - "imagePullPolicy": "猀2:ö", - "securityContext": { - "capabilities": { - "add": [ - "5w垁鷌辪虽U珝Żwʮ馜üNșƶ" - ], - "drop": [ - "ĩĉş蝿ɖȃ賲鐅臬" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "273", - "gmsaCredentialSpec": "274", - "runAsUserName": "275" - }, - "runAsUser": -1799108093609470992, - "runAsGroup": -1245112587824234591, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ǵʭd鲡:贅wE@Ȗs«öʮ" - }, - "stdin": true, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "276", - "image": "277", - "command": [ - "278" - ], - "args": [ - "279" - ], - "workingDir": "280", - "ports": [ - { - "name": "281", - "hostPort": 1702578303, - "containerPort": -1565157256, - "protocol": "Ŭ", - "hostIP": "282" - } - ], - "envFrom": [ - { - "prefix": "283", - "configMapRef": { - "name": "284", - "optional": true - }, - "secretRef": { - "name": "285", - "optional": false - } - } - ], - "env": [ - { - "name": "286", - "value": "287", - "valueFrom": { - "fieldRef": { - "apiVersion": "288", - "fieldPath": "289" - }, - "resourceFieldRef": { - "containerName": "290", - "resource": "291", - "divisor": "157" - }, - "configMapKeyRef": { - "name": "292", - "key": "293", - "optional": true - }, - "secretKeyRef": { - "name": "294", - "key": "295", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ŴĿ": "377" - }, - "requests": { - ".Q貇£ȹ嫰ƹǔw÷nI": "718" - } - }, - "volumeMounts": [ - { - "name": "296", - "mountPath": "297", - "subPath": "298", - "mountPropagation": "樺ȃ", - "subPathExpr": "299" - } - ], - "volumeDevices": [ - { - "name": "300", - "devicePath": "301" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "302" - ] - }, - "httpGet": { - "path": "303", - "port": -88173241, - "host": "304", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "305", - "value": "306" - } - ] - }, - "tcpSocket": { - "port": "307", - "host": "308" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "readinessProbe": { - "exec": { - "command": [ - "309" - ] - }, - "httpGet": { - "path": "310", - "port": -1710454086, - "host": "311", - "scheme": "mɩC[ó瓧", - "httpHeaders": [ - { - "name": "312", - "value": "313" - } - ] - }, - "tcpSocket": { - "port": -122979840, - "host": "314" - }, - "initialDelaySeconds": 915577348, - "timeoutSeconds": -590798124, - "periodSeconds": -1386967282, - "successThreshold": -2030286732, - "failureThreshold": -233378149 - }, - "startupProbe": { - "exec": { - "command": [ - "315" - ] - }, - "httpGet": { - "path": "316", - "port": -495373547, - "host": "317", - "scheme": "ʼn掏1ſ盷褎weLJ", - "httpHeaders": [ - { - "name": "318", - "value": "319" - } - ] - }, - "tcpSocket": { - "port": "320", - "host": "321" - }, - "initialDelaySeconds": -929354164, - "timeoutSeconds": 1972119760, - "periodSeconds": 1582773079, - "successThreshold": -1133499416, - "failureThreshold": 486195690 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "322" - ] - }, - "httpGet": { - "path": "323", - "port": -1589303862, - "host": "324", - "scheme": "ľǎɳ,ǿ飏騀呣ǎ", - "httpHeaders": [ - { - "name": "325", - "value": "326" - } - ] - }, - "tcpSocket": { - "port": "327", - "host": "328" - } - }, - "preStop": { - "exec": { - "command": [ - "329" - ] - }, - "httpGet": { - "path": "330", - "port": "331", - "host": "332", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "333", - "value": "334" - } - ] - }, - "tcpSocket": { - "port": "335", - "host": "336" - } - } - }, - "terminationMessagePath": "337", - "terminationMessagePolicy": "Ȋ礶", - "imagePullPolicy": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "securityContext": { - "capabilities": { - "add": [ - "3.v-鿧悮坮Ȣ" - ], - "drop": [ - "ļ腻ŬƩȿ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "338", - "role": "339", - "type": "340", - "level": "341" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "342", - "gmsaCredentialSpec": "343", - "runAsUserName": "344" - }, - "runAsUser": 9197199583783594492, - "runAsGroup": 241615716805649441, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ħsĨɆâĺ" - }, - "stdin": true, - "tty": true, - "targetContainerName": "345" - } - ], - "restartPolicy": "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶", - "terminationGracePeriodSeconds": -1689173322096612726, - "activeDeadlineSeconds": -9052689354742694982, - "dnsPolicy": "8鸖ɱJȉ罴ņ螡źȰ?$矡ȶ网棊ʢ", - "nodeSelector": { - "346": "347" - }, - "serviceAccountName": "348", - "serviceAccount": "349", - "automountServiceAccountToken": false, - "nodeName": "350", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "351", - "role": "352", - "type": "353", - "level": "354" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "355", - "gmsaCredentialSpec": "356", - "runAsUserName": "357" - }, - "runAsUser": 7525448836100188460, - "runAsGroup": -860974700141841896, - "runAsNonRoot": true, - "supplementalGroups": [ - 7258403424756645907 - ], - "fsGroup": 6347577485454457915, - "sysctls": [ - { - "name": "358", - "value": "359" - } - ] - }, - "imagePullSecrets": [ - { - "name": "360" - } - ], - "hostname": "361", - "subdomain": "362", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "363", - "operator": "}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪军g\u003e", - "values": [ - "364" - ] - } - ], - "matchFields": [ - { - "key": "365", - "operator": "偢ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ圯W", - "values": [ - "366" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1418092595, - "preference": { - "matchExpressions": [ - { - "key": "367", - "operator": "唊#v铿", - "values": [ - "368" - ] - } - ], - "matchFields": [ - { - "key": "369", - "operator": "埄趛", - "values": [ - "370" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "zo--4-1-2s39--6---fv--m-8--72-bca4m56au3f---tx-8----2d-4u-d7sn/48Y.q.0-_1-F.h-__k_K5._..O_.J_-G_--V-42E_--o90G_A6": "9_.5vN5.25aWx.2aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1y" - }, - "matchExpressions": [ - { - "key": "8x.2K_2qu_0S-CqW.D_8--21kF-c026.-iTl.1-.T", - "operator": "NotIn", - "values": [ - "H.I3.__-.u" - ] - } - ] - }, - "namespaces": [ - "377" - ], - "topologyKey": "378" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -819013491, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x_-a__0-8-.M-.-.-8v-J1zET_..3dCv3j._.-_pP__up2": "Ns-o779._-k5" - }, - "matchExpressions": [ - { - "key": "9d4i-m7---k8235--8--c83-4b-9-1o8w-4/4csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9.D", - "operator": "NotIn", - "values": [ - "G31-_I-A-_3bz._8M0U1_-__.71-_-9_.X" - ] - } - ] - }, - "namespaces": [ - "385" - ], - "topologyKey": "386" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "xm-.nx.sEK4.B.__65m8_x": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "393" - ], - "topologyKey": "394" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -168773629, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x-3/6-.7D.3_KPgL": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "401" - ], - "topologyKey": "402" - } - } - ] - } - }, - "schedulerName": "403", - "tolerations": [ - { - "key": "404", - "operator": "栣险¹贮獘薟8Mĕ霉", - "value": "405", - "effect": "ŪǗȦɆ悼j蛑q", - "tolerationSeconds": 4375148957048018073 - } - ], - "hostAliases": [ - { - "ip": "406", - "hostnames": [ - "407" - ] - } - ], - "priorityClassName": "408", - "priority": -1286809305, - "dnsConfig": { - "nameservers": [ - "409" - ], - "searches": [ - "410" - ], - "options": [ - { - "name": "411", - "value": "412" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ųŎ群E牬庘颮6(|ǖû" - } - ], - "runtimeClassName": "413", - "enableServiceLinks": false, - "preemptionPolicy": "怨彬ɈNƋl塠傫ü", - "overhead": { - "ɮ6)": "299" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -554557703, - "topologyKey": "414", - "whenUnsatisfiable": "¹t骳ɰɰUʜʔŜ0¢", - "labelSelector": { - "matchLabels": { - "o--5r-v-5-e-m78o-6-s.4-7--i1-8miw-7a-2408m-0--5--2-5----00/l_.23--_l": "b-L7.-__-G_2kCpS__.3g" - }, - "matchExpressions": [ - { - "key": "nw0-3i--a7-2--o--u0038mp9c10-k-r---3g7nz4-------385h---0-u73pj.brgvf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--itk/5.m_2_--XZ-x.__.Y_2-n_5023Xl-3Pw_-r75--_A", - "operator": "In", - "values": [ - "7M7y-Dy__3wc.q.8_00.0_._.-_L-__bf_9_-C-Pfx" - ] - } - ] - } - } - ] - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.pb deleted file mode 100644 index 0fd0cea0f46bafd009e975d8cf4de45d49de72f7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6156 zcmYjV30PIvwZ8ijhn}R#?TJb6cl%x+xlQv3$v&LD&usG&hnN9}I5viU$*DLHX9NX8 zU%!WljEX2Cpnx(c%3u%_1Vj?J7w#pmY1AfZnxwCv^-h^;+q8*^sc-Fb$Z+9XXP1gMp%7W%^6U_N6B}fv-bH8BQYSI*C$>l3=LH-xsSW4IM0vHP`wZ z@QP5~+0njLNx_4^4)5QY5bm$`6+RE#H0mTeKP+$!2qwWwRP;D0@j59@oU&}Zacm!m ztr zGCWR6^g4t46P;8Sk?zQFN+j1Q(NgpP=aeMg?K|Sj4;58MEBEPR-#t4(0GuxHz4v zo_k=N&O0T;UHtJI17F;NABsm_=$1v^DHHd_OM@rAw7VUNcR)9VZpq`6WeS4H3V%0H z&_mYTEr;vIzp{q93w9U&?ZzatnH-FOHDtr>m;;tqfU!c{1%JBv%D=23UZ+A6or)wn zW;zvlmSgE{Fi2VHNOdY|GE7!9n4r5IOF=uuaG?~~X%(2L#N$+{*QrX0P8DpRDl=iG zs?I{GpuP&TRNcdRjCe;Pm|KH68rk527AT=fZig4XYI24fr~*Bz$Ej&vr=};eenWKR z!YmzT=_DUfE)iZR&$=Y&l0A1p3#RF+2aKueTKwn#y7|6sLf6~%L*Xf<2)0(&T)*wy zHx%b_>N?2b)QtlOlrn&=LEMhR=qDVkW>Ef4pupIW-Tx@OTrthvKl+c4zqVl$0;vsH z%m5h;kkQcF5GZLFd>j!)&;%YN5eTI~q;8bJ!Bb{m6_52*O>oe=#|C1ZWxn!IK~bn^ zP#P;7?N~AZ(!eN<4b?}`9q>Xayim!FCXm2h85^oFEeTcQQ6fAv3Phg?#F!IDBrzEX zS&S|tP_6)RKjPS6(coS1AR^2s#QovxvAxcC#6Jv{gboS^5grozD0_au+6rr1=7gIR zUorAV$8DZ?ixtuMd)Nq_jWFE*dViqd=H&T;!wO=Eu4~6Sj{dQ#_tgsIfp_A%b+zZ# z=hm1%AU6z=m{yVmA0-)-U;;|YRrDY1sk$7jU-L4N;6eZ~tPyYvLesf83aZ3WB6@%j zFA$mtM5172N@UmIo6)OI_x{hq1-E%!(ax^%^U zZ$Cl_g?pM3#8c(}{KAHwlv2d~!V(IQY9?@$C7!XW|NP27Z}TwaWZ8RfsQ%P5zYO>8 z^mRq^_C(LO#R~SU9c{2A07!!|s^?zrE|~U*E74LL{%kQc*GKuGy-xSx<1Gg!(Q^Fq zu@CIE6MlDKyv-ghUirftA5BSZLtKg_j3V=ofiQ{!7IL_{fAgVf$)c#uqNEr9XuH;JrO$56&pMhsI(*k{DYag$HjeZU4>Z*AaH@jTP6HMz+0u?SYL%x zPF2}EJy;gWt9T?>V)0R#X6o0P)m|Um^&QPrZ3BGNGp0rM5t@*c#s}B@JPy%9Jc~;}C8>JnG8s7T^CA-JZO?0k_bvMq8 zp52{2Z&u(?=1BW!@5Je)cL6VrT@p=Zyp%kIiV>iu<&G4ccCUU zWAu2WzWvvsV?~k1?r7DyU{kcL5Vi#-fma10ccWd1TWlX0olk-fvSA&Wf0ljO5NB_b z=)FDEbe1d~J03mTzQ*1ac6}8(c}|LZYOXV^xrMBAqDZcrZ;f_Ndc)T`TmLxeLq}Q) zUbDSkLRH>pOU09|1vhOV^Tdbps+Wap4}^NFSBzGeW2a|_54I!)&j-unmyWbX^Lpb; z-~7kb{DI!_C`uUkEOPC`|EqZ!{L=k;?EInNndCr8WazBFFxt@Q9|&|kc7Nn(W1u%O zv_ITjI?)79I8FjT4Mdv*L{A1{ERB;CaV7dCdJ$#3z`=e=3TP#PRzM^#5ZTpndDlAy zUtaHf(T(CO^Fo2&ee&x2YZ3-OZ#Z!yKTx((thp9!Kau~N!cUR4h63OzDaIVwFbPgO z5S200axE+p^AR8tDP@!%Ko_QQO^8e5)^Y$ok}C1{|2jO>H*p}k>s<6gH0LXVDG1M)Lb8dUG%@};mgzirZZ*Uw z&DkpdGs6^=tVN1Il~vE?2z1p#a5|=d7nx~T5KI&P;Wyt*Bdb@g%MjQn6aEB2ATRNc zau4b-XTC|d?J&hQLY8M`OU4uCT%56e*>gggVA3ZvV80d&m;nMy&peg3T`*S&ILFMG zYY2~jt&{gjiD2_-JR6%*YOY}F3&j-#%w!50^kXpbO3+nTKv#(9nw;E5&IAO!H)k^z zw&Vzz^XALK9I%P1Y}U;j{yqvbK;ul!+%7COB|&&f5H=bMbyYA{nOIy(_;~K#EZt=L zD(G7TjC0wRsLu-X`Kj}A)@N?dg!K$SYRQoKZZv(@^^uot2;o~0SB<#)I9Cpql2j~c zj|-AHe{tFZ{`+gdm@77e!sbRn;WM~LnedXiz@!+PSyWKcVY%n9kez1YRDG4Hnu53l zPJ}KC^Fdn?zU~m75Yo2^Adxhecfxi*oNg|{%fNtmP6|kfiLeaMkxU_#XscJj&f%AY zwM$ZrbW;`PX7h2fNIXF3VFXlaLSIdTph*VcATj_4kpVb}EGGg{sF!_GU5E1iQgWNS zujKDH?Azy^;v0yZJkG{wEHokvcL?B)6&eu*kePtXWI-VV5dt6r_@NPEhem|CL;^Vh zvO^=n93oL64xU3eh<1F{>q2=Ifyz)_N2ug%xTHHUyd>pU6Fbv_=UKD^i-Nmwu%;>+ z$qzt}N?a^#gmeOklz8XEBxS5FX>ROdU!ZNYkV2=tbQ||1^AZFw1N)<2I zNf6cWP9JMu7T#MG>|-8+0B`^yld;TKmyZ4(yb0@~t{boBH%xV3^3@-n8h?CnPnUhC z5?U?|9gY+Cw3YnTHd9I#x5Qc!T%W=?$~+57-uhF);MdLu7Sxl)}e&P(x#rN;$U&-CEGWp zHX?4BwXm-8IxMV%!R*M6=sGN^8{T`K316&KhfapkL};Dj+ZW87(3ql%gNwH1gW6{0Re|7L+~Oh z@$JQj&b-rC`PK_o?BbYJbn(jgSD{$P%P2X4hN`MVjje$*(Mrg+JEJ=rXG`nG2G>nA zNBSGX$7@Gk_MMm)Dyz0)84cEL$VL1Q7 zhUk&~+Y)L|9mv1%PVC)BtTa?+W|2j0gdvL_K&{<9hi!2#qkGv3u=O%zVQ{--0*E0K z`g`QK3YoCm-{UWjTx^*aDd`9e)Wn)js|o)-erR;?17Jm@>&Wp1ni0-B85-&c7B3nr z+Z1X%7RqlQy^!zxK6hL2wECcx1{p@F^F8PE8$*H5?AVR1A$w+w^ly)~^#r?uT`MN) zCJy@R#E~X%kCS_zdmN$xB?D(+1+N7srf-FaAXAVrxU=;H>zmhSV{H|Nlt$l-MHmWx zml2FbF=>-2Q1EHyCjOpOynuNz=Ktx&x#`QmElFwoB?M)sE!iTL)?>U%gQ*yn+aW?# zY;(G?nuvHK&H!FgnzkiZW?bP1KI}z!hqi^`QJf2!zve0sKY>8Pn;4yIS|-Ip=~VPiMVIk<&ywA9$^p3 z!npCaFW&qXu_b_$yZ!wW%`ZjIl+Oz0MJ{$e9IG6BhFwTWWI?m2ehZ!wtIbHF?y76u z-8#j6vb6u2GycnCpVr1D-0Z#)wo61}?Sa;7_EkwKM%;2+27{M?Bh+6Q&JI*{zhMt% z?n;6>2DdqQYVI#adm@#s*3wXtfqrQc3-Uhg^nWcg>z7>xXD80axqs(x3EP(=zP#b` z2lnJ{udvBk#XkVNXo$M%+qE6sU9j7l;CN4kpUPYX?j1d6pZSjgbRLa?=+%!4YdhnTZ}+uk`c4K5N1J>D%soIw7bZiQ z6^Lx5x{eBDy9Ww@ZRfYT3?a*8Q*k+((3C)Fq@~w#29gNZKoUte%0rxOCn&BlJ3*$* zcAzSJtSxyuTz|zK{5aBS-q8E#=v3$BXPk!So=;ckDzNZz!<+?|UElY{%_> k<5E}0wD`Bf@BM8`LiFud{%oH_@q=9-MiA44)gT@J4=5A&4gdfE diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.yaml deleted file mode 100644 index 295b43a52..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.PodTemplate.yaml +++ /dev/null @@ -1,936 +0,0 @@ -apiVersion: v1 -kind: PodTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -template: - metadata: - annotations: - "26": "27" - clusterName: "32" - creationTimestamp: null - deletionGracePeriodSeconds: 4075183944016503389 - finalizers: - - "31" - generateName: "20" - generation: 5259823216098853135 - labels: - "24": "25" - managedFields: - - apiVersion: "34" - fieldsType: "35" - manager: "33" - operation: ěĂ凗蓏Ŋ蛊ĉy緅縕 - name: "19" - namespace: "21" - ownerReferences: - - apiVersion: "28" - blockOwnerDeletion: false - controller: true - kind: "29" - name: "30" - uid: ɑ - resourceVersion: "17916580954637291219" - selfLink: "22" - uid: SǡƏ - spec: - activeDeadlineSeconds: -9052689354742694982 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "367" - operator: 唊#v铿 - values: - - "368" - matchFields: - - key: "369" - operator: 埄趛 - values: - - "370" - weight: -1418092595 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "363" - operator: '}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪军g>' - values: - - "364" - matchFields: - - key: "365" - operator: 偢ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ圯W - values: - - "366" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 9d4i-m7---k8235--8--c83-4b-9-1o8w-4/4csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9.D - operator: NotIn - values: - - G31-_I-A-_3bz._8M0U1_-__.71-_-9_.X - matchLabels: - x_-a__0-8-.M-.-.-8v-J1zET_..3dCv3j._.-_pP__up2: Ns-o779._-k5 - namespaces: - - "385" - topologyKey: "386" - weight: -819013491 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8x.2K_2qu_0S-CqW.D_8--21kF-c026.-iTl.1-.T - operator: NotIn - values: - - H.I3.__-.u - matchLabels: - zo--4-1-2s39--6---fv--m-8--72-bca4m56au3f---tx-8----2d-4u-d7sn/48Y.q.0-_1-F.h-__k_K5._..O_.J_-G_--V-42E_--o90G_A6: 9_.5vN5.25aWx.2aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1y - namespaces: - - "377" - topologyKey: "378" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - x-3/6-.7D.3_KPgL: d._.Um.-__k.5 - namespaces: - - "401" - topologyKey: "402" - weight: -168773629 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: v8_.O_..8n.--z_-..6W.K - operator: Exists - matchLabels: - xm-.nx.sEK4.B.__65m8_x: 29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1 - namespaces: - - "393" - topologyKey: "394" - automountServiceAccountToken: false - containers: - - args: - - "212" - command: - - "211" - env: - - name: "219" - value: "220" - valueFrom: - configMapKeyRef: - key: "226" - name: "225" - optional: false - fieldRef: - apiVersion: "221" - fieldPath: "222" - resourceFieldRef: - containerName: "223" - divisor: "179" - resource: "224" - secretKeyRef: - key: "228" - name: "227" - optional: false - envFrom: - - configMapRef: - name: "217" - optional: false - prefix: "216" - secretRef: - name: "218" - optional: true - image: "210" - imagePullPolicy: 猀2:ö - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "256" - httpHeaders: - - name: "257" - value: "258" - path: "255" - port: 200992434 - scheme: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - tcpSocket: - host: "260" - port: "259" - preStop: - exec: - command: - - "261" - httpGet: - host: "264" - httpHeaders: - - name: "265" - value: "266" - path: "262" - port: "263" - scheme: ɋ瀐<ɉ - tcpSocket: - host: "267" - port: -1334904807 - livenessProbe: - exec: - command: - - "235" - failureThreshold: -547518679 - httpGet: - host: "238" - httpHeaders: - - name: "239" - value: "240" - path: "236" - port: "237" - scheme: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - initialDelaySeconds: -1940723300 - periodSeconds: 496226800 - successThreshold: 84444678 - tcpSocket: - host: "241" - port: 2064656704 - timeoutSeconds: 749147575 - name: "209" - ports: - - containerPort: 1083816849 - hostIP: "215" - hostPort: 744106683 - name: "214" - protocol: 議Ǹ轺@)蓳嗘 - readinessProbe: - exec: - command: - - "242" - failureThreshold: 1569992019 - httpGet: - host: "244" - httpHeaders: - - name: "245" - value: "246" - path: "243" - port: 1322581021 - scheme: 坩O`涁İ而踪鄌eÞ - initialDelaySeconds: 565789036 - periodSeconds: -582473401 - successThreshold: -1252931244 - tcpSocket: - host: "247" - port: -1319491110 - timeoutSeconds: -1572269414 - resources: - limits: - o_鹈ɹ坼É/pȿŘ阌Ŗ怳冘HǺƶ: "364" - requests: - ǝ鿟ldg滠鼍ƭt?QȫşŇɜ: "211" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - drop: - - ĩĉş蝿ɖȃ賲鐅臬 - privileged: false - procMount: ǵʭd鲡:贅wE@Ȗs«öʮ - readOnlyRootFilesystem: false - runAsGroup: -1245112587824234591 - runAsNonRoot: true - runAsUser: -1799108093609470992 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - windowsOptions: - gmsaCredentialSpec: "274" - gmsaCredentialSpecName: "273" - runAsUserName: "275" - startupProbe: - exec: - command: - - "248" - failureThreshold: -813624408 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 870237686 - scheme: 墴1Rƥ贫d - initialDelaySeconds: -709825668 - periodSeconds: -379514302 - successThreshold: 173916181 - tcpSocket: - host: "253" - port: -33154680 - timeoutSeconds: -1144400181 - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: å睫}堇硲蕵ɢ苆 - volumeDevices: - - devicePath: "234" - name: "233" - volumeMounts: - - mountPath: "230" - mountPropagation: zÏ抴ŨfZhUʎ浵ɲõTo& - name: "229" - subPath: "231" - subPathExpr: "232" - workingDir: "213" - dnsConfig: - nameservers: - - "409" - options: - - name: "411" - value: "412" - searches: - - "410" - dnsPolicy: 8鸖ɱJȉ罴ņ螡źȰ?$矡ȶ网棊ʢ - enableServiceLinks: false - ephemeralContainers: - - args: - - "279" - command: - - "278" - env: - - name: "286" - value: "287" - valueFrom: - configMapKeyRef: - key: "293" - name: "292" - optional: true - fieldRef: - apiVersion: "288" - fieldPath: "289" - resourceFieldRef: - containerName: "290" - divisor: "157" - resource: "291" - secretKeyRef: - key: "295" - name: "294" - optional: false - envFrom: - - configMapRef: - name: "284" - optional: true - prefix: "283" - secretRef: - name: "285" - optional: false - image: "277" - imagePullPolicy: ʁ揆ɘȌ脾嚏吐ĠLƐ - lifecycle: - postStart: - exec: - command: - - "322" - httpGet: - host: "324" - httpHeaders: - - name: "325" - value: "326" - path: "323" - port: -1589303862 - scheme: ľǎɳ,ǿ飏騀呣ǎ - tcpSocket: - host: "328" - port: "327" - preStop: - exec: - command: - - "329" - httpGet: - host: "332" - httpHeaders: - - name: "333" - value: "334" - path: "330" - port: "331" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "336" - port: "335" - livenessProbe: - exec: - command: - - "302" - failureThreshold: -1131820775 - httpGet: - host: "304" - httpHeaders: - - name: "305" - value: "306" - path: "303" - port: -88173241 - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "308" - port: "307" - timeoutSeconds: 747521320 - name: "276" - ports: - - containerPort: -1565157256 - hostIP: "282" - hostPort: 1702578303 - name: "281" - protocol: Ŭ - readinessProbe: - exec: - command: - - "309" - failureThreshold: -233378149 - httpGet: - host: "311" - httpHeaders: - - name: "312" - value: "313" - path: "310" - port: -1710454086 - scheme: mɩC[ó瓧 - initialDelaySeconds: 915577348 - periodSeconds: -1386967282 - successThreshold: -2030286732 - tcpSocket: - host: "314" - port: -122979840 - timeoutSeconds: -590798124 - resources: - limits: - ŴĿ: "377" - requests: - .Q貇£ȹ嫰ƹǔw÷nI: "718" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 3.v-鿧悮坮Ȣ - drop: - - ļ腻ŬƩȿ - privileged: false - procMount: ħsĨɆâĺ - readOnlyRootFilesystem: false - runAsGroup: 241615716805649441 - runAsNonRoot: true - runAsUser: 9197199583783594492 - seLinuxOptions: - level: "341" - role: "339" - type: "340" - user: "338" - windowsOptions: - gmsaCredentialSpec: "343" - gmsaCredentialSpecName: "342" - runAsUserName: "344" - startupProbe: - exec: - command: - - "315" - failureThreshold: 486195690 - httpGet: - host: "317" - httpHeaders: - - name: "318" - value: "319" - path: "316" - port: -495373547 - scheme: ʼn掏1ſ盷褎weLJ - initialDelaySeconds: -929354164 - periodSeconds: 1582773079 - successThreshold: -1133499416 - tcpSocket: - host: "321" - port: "320" - timeoutSeconds: 1972119760 - stdin: true - targetContainerName: "345" - terminationMessagePath: "337" - terminationMessagePolicy: Ȋ礶 - tty: true - volumeDevices: - - devicePath: "301" - name: "300" - volumeMounts: - - mountPath: "297" - mountPropagation: 樺ȃ - name: "296" - subPath: "298" - subPathExpr: "299" - workingDir: "280" - hostAliases: - - hostnames: - - "407" - ip: "406" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "361" - imagePullSecrets: - - name: "360" - initContainers: - - args: - - "144" - command: - - "143" - env: - - name: "151" - value: "152" - valueFrom: - configMapKeyRef: - key: "158" - name: "157" - optional: true - fieldRef: - apiVersion: "153" - fieldPath: "154" - resourceFieldRef: - containerName: "155" - divisor: "711" - resource: "156" - secretKeyRef: - key: "160" - name: "159" - optional: false - envFrom: - - configMapRef: - name: "149" - optional: false - prefix: "148" - secretRef: - name: "150" - optional: true - image: "142" - imagePullPolicy: wMȗ礼2ħ籦ö - lifecycle: - postStart: - exec: - command: - - "186" - httpGet: - host: "189" - httpHeaders: - - name: "190" - value: "191" - path: "187" - port: "188" - scheme: O澘銈e棈_Ĭ艥<檔 - tcpSocket: - host: "193" - port: "192" - preStop: - exec: - command: - - "194" - httpGet: - host: "196" - httpHeaders: - - name: "197" - value: "198" - path: "195" - port: -1006328793 - scheme: ©Ǿt' - tcpSocket: - host: "200" - port: "199" - livenessProbe: - exec: - command: - - "167" - failureThreshold: -1373481716 - httpGet: - host: "169" - httpHeaders: - - name: "170" - value: "171" - path: "168" - port: 126800818 - scheme: ƫS捕ɷ - initialDelaySeconds: 1673568505 - periodSeconds: -972874331 - successThreshold: 860842148 - tcpSocket: - host: "172" - port: 990374141 - timeoutSeconds: 1665622609 - name: "141" - ports: - - containerPort: -1354971977 - hostIP: "147" - hostPort: 1094434838 - name: "146" - protocol: ĺ稥 - readinessProbe: - exec: - command: - - "173" - failureThreshold: -366263237 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -144625578 - scheme: 择,Q捇ȸ{+ - initialDelaySeconds: 358822621 - periodSeconds: 327574193 - successThreshold: 1718125857 - tcpSocket: - host: "178" - port: 1130962147 - timeoutSeconds: 1946649472 - resources: - limits: - ėf倐ȓ圬剴扲ȿQZ{ʁgɸ: "147" - requests: - "": "609" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - '>季Cʖ畬x骀Šĸů湙騘&啞川J缮' - drop: - - bJ5ʬ昹ʞĹ鑑6NJPM饣` - privileged: false - procMount: 2啗塧ȱ蓿彭聡A3fƻfʣ繡楙¯ĦE勗 - readOnlyRootFilesystem: false - runAsGroup: -5811430020199686393 - runAsNonRoot: true - runAsUser: 6821913012222657579 - seLinuxOptions: - level: "205" - role: "203" - type: "204" - user: "202" - windowsOptions: - gmsaCredentialSpec: "207" - gmsaCredentialSpecName: "206" - runAsUserName: "208" - startupProbe: - exec: - command: - - "179" - failureThreshold: 1050218190 - httpGet: - host: "182" - httpHeaders: - - name: "183" - value: "184" - path: "180" - port: "181" - scheme: P_痸 - initialDelaySeconds: 528528093 - periodSeconds: -2078905463 - successThreshold: 1603139327 - tcpSocket: - host: "185" - port: -1341615783 - timeoutSeconds: 1408805313 - stdinOnce: true - terminationMessagePath: "201" - terminationMessagePolicy: ʕIã陫ʋsş")珷<ºɖ - tty: true - volumeDevices: - - devicePath: "166" - name: "165" - volumeMounts: - - mountPath: "162" - mountPropagation: ',1ZƜ/C龷ȪÆ' - name: "161" - readOnly: true - subPath: "163" - subPathExpr: "164" - workingDir: "145" - nodeName: "350" - nodeSelector: - "346": "347" - overhead: - ɮ6): "299" - preemptionPolicy: 怨彬ɈNƋl塠傫ü - priority: -1286809305 - priorityClassName: "408" - readinessGates: - - conditionType: ųŎ群E牬庘颮6(|ǖû - restartPolicy: 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶 - runtimeClassName: "413" - schedulerName: "403" - securityContext: - fsGroup: 6347577485454457915 - runAsGroup: -860974700141841896 - runAsNonRoot: true - runAsUser: 7525448836100188460 - seLinuxOptions: - level: "354" - role: "352" - type: "353" - user: "351" - supplementalGroups: - - 7258403424756645907 - sysctls: - - name: "358" - value: "359" - windowsOptions: - gmsaCredentialSpec: "356" - gmsaCredentialSpecName: "355" - runAsUserName: "357" - serviceAccount: "349" - serviceAccountName: "348" - shareProcessNamespace: false - subdomain: "362" - terminationGracePeriodSeconds: -1689173322096612726 - tolerations: - - effect: ŪǗȦɆ悼j蛑q - key: "404" - operator: 栣险¹贮獘薟8Mĕ霉 - tolerationSeconds: 4375148957048018073 - value: "405" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: nw0-3i--a7-2--o--u0038mp9c10-k-r---3g7nz4-------385h---0-u73pj.brgvf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--itk/5.m_2_--XZ-x.__.Y_2-n_5023Xl-3Pw_-r75--_A - operator: In - values: - - 7M7y-Dy__3wc.q.8_00.0_._.-_L-__bf_9_-C-Pfx - matchLabels: - o--5r-v-5-e-m78o-6-s.4-7--i1-8miw-7a-2408m-0--5--2-5----00/l_.23--_l: b-L7.-__-G_2kCpS__.3g - maxSkew: -554557703 - topologyKey: "414" - whenUnsatisfiable: ¹t骳ɰɰUʜʔŜ0¢ - volumes: - - awsElasticBlockStore: - fsType: "41" - partition: -1261508418 - volumeID: "40" - azureDisk: - cachingMode: "" - diskName: "104" - diskURI: "105" - fsType: "106" - kind: ƺ魋Ď儇击3ƆìQ - readOnly: false - azureFile: - secretName: "90" - shareName: "91" - cephfs: - monitors: - - "75" - path: "76" - secretFile: "78" - secretRef: - name: "79" - user: "77" - cinder: - fsType: "73" - secretRef: - name: "74" - volumeID: "72" - configMap: - defaultMode: -1648533063 - items: - - key: "93" - mode: 1913946997 - path: "94" - name: "92" - optional: true - csi: - driver: "136" - fsType: "137" - nodePublishSecretRef: - name: "140" - readOnly: false - volumeAttributes: - "138": "139" - downwardAPI: - defaultMode: 1557090007 - items: - - fieldRef: - apiVersion: "83" - fieldPath: "84" - mode: -1413529736 - path: "82" - resourceFieldRef: - containerName: "85" - divisor: "687" - resource: "86" - emptyDir: - medium: x - sizeLimit: "826" - fc: - fsType: "88" - lun: 933484239 - targetWWNs: - - "87" - wwids: - - "89" - flexVolume: - driver: "67" - fsType: "68" - options: - "70": "71" - secretRef: - name: "69" - flocker: - datasetName: "80" - datasetUUID: "81" - gcePersistentDisk: - fsType: "39" - partition: -1487653240 - pdName: "38" - readOnly: true - gitRepo: - directory: "44" - repository: "42" - revision: "43" - glusterfs: - endpoints: "57" - path: "58" - hostPath: - path: "37" - type: H牗洝尿彀亞螩B - iscsi: - fsType: "53" - initiatorName: "56" - iqn: "51" - iscsiInterface: "52" - lun: -400609276 - portals: - - "54" - secretRef: - name: "55" - targetPortal: "50" - name: "36" - nfs: - path: "49" - server: "48" - persistentVolumeClaim: - claimName: "59" - readOnly: true - photonPersistentDisk: - fsType: "108" - pdID: "107" - portworxVolume: - fsType: "123" - readOnly: true - volumeID: "122" - projected: - defaultMode: -1880297089 - sources: - - configMap: - items: - - key: "118" - mode: -1009864962 - path: "119" - name: "117" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "113" - fieldPath: "114" - mode: 1167335696 - path: "112" - resourceFieldRef: - containerName: "115" - divisor: "546" - resource: "116" - secret: - items: - - key: "110" - mode: 565864299 - path: "111" - name: "109" - optional: true - serviceAccountToken: - audience: "120" - expirationSeconds: -8033620543910768540 - path: "121" - quobyte: - group: "102" - registry: "99" - tenant: "103" - user: "101" - volume: "100" - rbd: - fsType: "62" - image: "61" - keyring: "65" - monitors: - - "60" - pool: "63" - readOnly: true - secretRef: - name: "66" - user: "64" - scaleIO: - fsType: "131" - gateway: "124" - protectionDomain: "127" - readOnly: true - secretRef: - name: "126" - sslEnabled: true - storageMode: "129" - storagePool: "128" - system: "125" - volumeName: "130" - secret: - defaultMode: -1639873916 - items: - - key: "46" - mode: -655946460 - path: "47" - optional: true - secretName: "45" - storageos: - fsType: "134" - readOnly: true - secretRef: - name: "135" - volumeName: "132" - volumeNamespace: "133" - vsphereVolume: - fsType: "96" - storagePolicyID: "98" - storagePolicyName: "97" - volumePath: "95" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.json b/pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.json deleted file mode 100644 index 5ed1d1aab..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "RangeAllocation", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "range": "19", - "data": "OA==" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.RangeAllocation.pb deleted file mode 100644 index 08ee3f1dc31df36c19389b238ee24378c118b14e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 213 zcmd0{C}!Xid#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!X zizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT9 z7o$E;KA|Y(i5*8pJC#cvy8$q zYQhSZ(Kx-p?=!P{0h{y!vD~yF-#2r_Q~rFGtI}PYVbud)oyuhD1u=1OqIF2 zLUonCBbA}9W>-7Dfy z4)dm0ZR`bx)nfs^U|UQqdMsKwYv@96pt{B1Smvqmv^x5|$KY79Boax*a4t;$NxUqn zZ(ltVy8Lz1MG=nmZrR0FZ`)fReaOVa23Q7`N&;=E(9-t(jMWptq$k*NTV}TZShcI! zS>>;ol-x}VQ|?YV)~Y8wagJt6seB33f1V1>lp9^;(zR0fW;2Z!rIore}mpIGQ{ z*FFK9WUMC&SBco)Er*#Z_v&)?PH1S{58WsIgLA6`huVGJRe{dN#Uk&ZV<>UkszP4Q@i-K|BuRh<`^p7#?EVLU#H!&V|IX}C$)NTD9bc@g} zne?KJ!8k;P`#w-OqNo{<1m>3;>m2jH)thyzSynFrV@WXT)>)wq+$3WBp!^SIQ5L-< zTJ@5|GpqHIyjHhk8H_8x&?V?4HIA->%aM7bZU>x877V(0unHO0%fzIYMT=gRta=$v zFDt8IrL3-H5=`(5s}$Y@J&Isvte|-X)+l730a_rmA{liSIx1%xfhy3Wn)Hfh(W|@_ z`c<&6d|0KzDwPy53JYSZBDEG(f-c!~Gqhlts+vG~lBAmZ3*WwaJ**qUABOy|Tn#rX znOk6uL<=G983e&8Zk00%-t;PsEHg*)quGs8_&$Y^JRpW@q^y? zPpmNOI+-89C~T;KoSJ5d5_rC!`4J1h0tW;e8QMpzKtv2g8es%FD$`NL6unp#8aqy> zs4)z_!*$woaE+^UzAHG<=;(?K9Xz)R1&4;tgJ3X4gEay_&wLL)um~R*)V0Xi=qKfe zfgf$Fa2)v2aFjs!)j))GKyVxovQ2l1ImEC<3~OTPWI+IXgC9(J6Qk=?iNUPn?gzcX zx5&|b1&NNyrXSF@Lfc{G%9>#QW8=raUuH5#IBDE%Faz^20}ICb_YPnBGGddAMi4~!882|W&xpr6QK7*sN%TxRa1zp8G{dF8md#K(zGjRy?;d(dZ;5uFxYyAPb1=U; z4(3o*Vl0`~u&@E9n#5S)479D%wnpt$lub9$V`2gVU?RZ1E`5XMFad*E$Fp!Tf%Xyl zY{9Q`X7-L0v+I0ttZ!eSpkkpVbK&^@XL!dcPZ6C#1Tk(6Rj<_lJc7tvn9AM7YeA zI>Y#q)VZzgD zrN|>`xGJ1NxvIcbXZX`#-EHBkkTuJ#u9@7$p-|6p$LtnQ zvwK2x_BkuUoE3UVMKBrI8(ISA2t8yU5HWMrc1MY4##4FUgYH4!Xzx@0lOw^Z^1wi= zuWlsR(i&B{cP;6an_6;=O6RfY7LT%;if94(EY}+0jDTh0N zCy5n!*;tX`xQYVir>N#*ZNrxiEwoNV$1pU|t$n?;=lc6E{rdV*CT>Mwr1jxI>GTfp z7gzybgjF6^szL#yJIF9~47f~id>8`tcfvY=2d^_NHHiUS8#K zO}@!qUsp@^dS7+nR&OWV2&{$}2}B!VQrUH3E)wDHfqqH+=6)pl(j|E5{^`>Z>j0;O zB^4YL3(Eeg=R@D}@NGz%;p`Ddr{4IF_Q^)Q`P#3?+9Q?`GyliA`p666FJGDXJldpp zRGE+c**nlv^lI6sOicHugMHoe^{)>x_}1JQ=LuiQm}|&+{ssSq$;J9$@i;`zC;}n@ zk=6l`4SSu;Diy^?|?st+%+HF*4@T{^PZO z`(2^)yD^`C+52YyqPIGY|G?S%#>892B@0Y=6R;>)r>p~|6B*tnkwwZ)%BL&?+ccO&O5xMx4j)tn2BPs(|12;mzcuc;L zS^u#{=NU)2V>H;*ndcpHj(ZNvk6GjCGMT%Z&QrKM0yEvoiv`ZvU}>MP^Sq~vLTy{5J7f(Hn)m3sZacT<2DSa}(1s6)PD@1my__ zs5U@h@TbJ4CEF1E%g=%B?KTN*vh4(gBHK>%q(N1N>rA-iUex39O^lyrL@!Q4;z zp9^+Sw@nd1SsJYS1=;}2QfxM1yRwDb!mh!Of)IAimIF6nhyUXC?KU|3CflaxPzo&K z(M};PDHWkdsD5oWV$ZgtRM50-!$u|RUk@$vf+3*>~u#79$vsW4RzuEjf zndpGBKQ%*Bz*rC*Et{ST@7aZNFfU~wECbsNjIu#LC{+bhlF|h*vJ4qXpbD7F=ZcwW zd~C8kehXX(LYcOQ=^d!{Bzr2h+3ac-sL4+9>?qD2mQ?{UQSMew$K|m*)dWx^Nf4C8 zT?r^7N~S!p($mm^SfCO84M1)U&S;j@$T(Q_GOe{6b= zJszR>J;=VDi-!Atbie6`yv?>bWA78T^v%e&m2x_ep+0NRLXUBv4GmNx@GT5bp_6d~ z6cT9o79e~B0YD*$vK5Ge;T;O1YH*GC<@;Ide`k_?_({Va^Flz zuxn8Cmp6xMhkWDp?tv%#)s5cC4f7qr3j_OOC=!wYa{U|o<4|#dueRlpy@8f9{zHBD zZ}(T1d#0Yh&pYKGDx}k7Rf&551d$<@!1*A_03ume-Rm3Xz;6J(i+E3!k88#s-47kZhD93NWkpMXld~24w{fDZz z_*zDtlb$ATrN4T7XYS*kra<>BcJ>C&^*APcO|@ZZ0BlAHkSIn1;Kk+_-(_e31Pp9A zR{hSq%Z%4Xf^{p*6)%0*tB-lH@y&`Ae9do*K8XawgiZzm233p3a}xde1_}upKp{aR z7S7$^Jr$g4SUA7X>z_X3pR7y?Zw%QHj7#4_7D1zl2qZ*XA{Uz>Mx60Qu<1Sr- zK0L(?JVl{AWNldB%`d%HH97mmm5z2MMh8_4-P*>IlFl zHaV;+m2mU{LNZH%cVpw}kH3ZRf+|@oNxb)n=V-8GJT!LDRpq`IC@DO!a5C0EIsJ6# z#7JPS@Scb*&cBiimj_8fPkN$LhDK9Jh&D{G@G1snN`aFuCx%xp{ z#8OW)x)BC2fe1Na^b3L6f%~bOA(m)wg}xf^AdAAT@5D`Ayb5F6`_(7C1Uh zO&rjtIREn$L*fMT<>^bbihB@6FfWY7%tL-lklCccb@dm9LdXZH8~Djg3V`9)X7^VCVGJgL-o>sOwieeYBRm(!iG$>i%i=4o`y9C#qd*%p{=ai8@J_>PuI zTd~dZ8N(JsBvG`*Tq$ga|b)I}aRoN>W}X66l0I2nngGEg=yl zrbCQBKs`AmzG7}B_3M!Ji+jLTlN=3c`x5iDWF#Z#$rk~nB;#z961zJAJ*Ggcv7?Q4 zoU%USiKjS*=hE1Ra+1ljG-Btg{CIp;;OkD%k!Ziv-5SP+vjpBVxyOB;qeGL!}59#%~SoRi{ z4V9Os|?5@d8S}4abL)wwbuA$G5@M;*WLXBl9BoKkZc0sV{ z=(8fUKthCn@=TDw(;msN*mk)yVrs_UH`cW;y{-5DK8j=d2d1J(pRD7@f8ef z4{rxmQOJl1JQA9+Tz|QXRL{Kf}`xoXyUA3Xp1-`>w3pL3LUBS9Rf79Gre@%Jn zmfZ_Q5qW540oBoOl0^b}7xZAm(XzT5MXKS&v8l-Z=Dzp7dM!HU^ZBh|#s8{`rz4?(1zKWvY(5$z?Q?+ib zzpHYw^WSq98oi^`(-T^LAW(h)g8wDkRpFrY;8^2tczUdX)9++%T5Jm(8+-KWjQ?=< zW;suX{XU^}Kf)^`OcuK#tS?NsdtnEtK~Y0!x$^#(E5e3=B}+7vl)ERws-i_H0_DAL zwN6V@1Z#%H*LxaP82xW|x+CGje75i7k;t9L)LuPS8?j9O?Y|fGMZ*e-m}@4k|8_~y zN0^oGe%jmlzx7Wt<-GrSd{zL}W&{Kx7&vz~+A>QLvIK;Z~?*Bal+@qAaKyEjyS)Hm412U~~o o9$FZ犵殇ŕ-Ɂ - values: - - "372" - matchFields: - - key: "373" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "374" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "393" - topologyKey: "394" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "385" - topologyKey: "386" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "409" - topologyKey: "410" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "401" - topologyKey: "402" - automountServiceAccountToken: false - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: true - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "46" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: true - envFrom: - - configMapRef: - name: "222" - optional: false - prefix: "221" - secretRef: - name: "223" - optional: false - image: "215" - imagePullPolicy: QÄȻȊ+?ƭ峧Y栲茇竛吲蚛隖<Ƕ - lifecycle: - postStart: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "266" - port: -1474440600 - preStop: - exec: - command: - - "267" - httpGet: - host: "269" - httpHeaders: - - name: "270" - value: "271" - path: "268" - port: 44308192 - scheme: Żwʮ馜üNșƶ4ĩĉ - tcpSocket: - host: "273" - port: "272" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -1301133697 - httpGet: - host: "242" - httpHeaders: - - name: "243" - value: "244" - path: "241" - port: -532628939 - scheme: 踪鄌eÞȦY籎顒ǥŴ唼Ģ猇õǶț - initialDelaySeconds: -2025874949 - periodSeconds: 1593906314 - successThreshold: 188341147 - tcpSocket: - host: "245" - port: -1171060347 - timeoutSeconds: -1468180511 - name: "214" - ports: - - containerPort: 673378190 - hostIP: "220" - hostPort: -144591150 - name: "219" - protocol: Ɵ)Ù - readinessProbe: - exec: - command: - - "246" - failureThreshold: -1145306833 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "247" - port: "248" - scheme: '@?鷅bȻN+ņ榱*Gưoɘ檲ɨ銦妰' - initialDelaySeconds: -1266125247 - periodSeconds: 1795738696 - successThreshold: -1350331007 - tcpSocket: - host: "252" - port: -1079519102 - timeoutSeconds: -50623103 - resources: - limits: - 瞲: "980" - requests: - k ź贩j瀉ǚrǜnh0åȂ: "314" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - £軶ǃ*ʙ嫙&蒒5靇C'ɵK.Q貇 - privileged: false - procMount: 粛E煹 - readOnlyRootFilesystem: true - runAsGroup: -7567945069856455979 - runAsNonRoot: true - runAsUser: 390808457597161112 - seLinuxOptions: - level: "278" - role: "276" - type: "277" - user: "275" - windowsOptions: - gmsaCredentialSpec: "280" - gmsaCredentialSpecName: "279" - runAsUserName: "281" - startupProbe: - exec: - command: - - "253" - failureThreshold: 1592637538 - httpGet: - host: "256" - httpHeaders: - - name: "257" - value: "258" - path: "254" - port: "255" - scheme: 湨 - initialDelaySeconds: 609274415 - periodSeconds: -204658565 - successThreshold: -498077886 - tcpSocket: - host: "259" - port: 1824183165 - timeoutSeconds: 581816190 - stdinOnce: true - terminationMessagePath: "274" - terminationMessagePolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: O醔ɍ厶耈 T衧ȇe媹Hǝ呮}臷Ľð - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "417" - options: - - name: "419" - value: "420" - searches: - - "418" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - ephemeralContainers: - - args: - - "285" - command: - - "284" - env: - - name: "292" - value: "293" - valueFrom: - configMapKeyRef: - key: "299" - name: "298" - optional: true - fieldRef: - apiVersion: "294" - fieldPath: "295" - resourceFieldRef: - containerName: "296" - divisor: "714" - resource: "297" - secretKeyRef: - key: "301" - name: "300" - optional: true - envFrom: - - configMapRef: - name: "290" - optional: true - prefix: "289" - secretRef: - name: "291" - optional: true - image: "283" - imagePullPolicy: Ve - lifecycle: - postStart: - exec: - command: - - "330" - httpGet: - host: "333" - httpHeaders: - - name: "334" - value: "335" - path: "331" - port: "332" - scheme: ʤî萨zvt莭 - tcpSocket: - host: "337" - port: "336" - preStop: - exec: - command: - - "338" - httpGet: - host: "341" - httpHeaders: - - name: "342" - value: "343" - path: "339" - port: "340" - scheme: ļ腻ŬƩȿ - tcpSocket: - host: "344" - port: -2123728714 - livenessProbe: - exec: - command: - - "308" - failureThreshold: 1832870128 - httpGet: - host: "311" - httpHeaders: - - name: "312" - value: "313" - path: "309" - port: "310" - initialDelaySeconds: -1537700150 - periodSeconds: 105707873 - successThreshold: -188803670 - tcpSocket: - host: "315" - port: "314" - timeoutSeconds: -1815868713 - name: "282" - ports: - - containerPort: -88173241 - hostIP: "288" - hostPort: 304141309 - name: "287" - protocol: Źʣy豎@ɀ羭,铻O - readinessProbe: - exec: - command: - - "316" - failureThreshold: 1505082076 - httpGet: - host: "318" - httpHeaders: - - name: "319" - value: "320" - path: "317" - port: 1422435836 - scheme: ',ǿ飏騀呣ǎfǣ萭旿@掇lNdǂ' - initialDelaySeconds: -819723498 - periodSeconds: 1507815593 - successThreshold: 1498833271 - tcpSocket: - host: "322" - port: "321" - timeoutSeconds: -150133456 - resources: - limits: - 釆Ɗ+j忊: "486" - requests: - 嫭塓烀罁胾: "494" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - FD剂讼ɓȌʟn - drop: - - 酛3ƁÀ*f<鴒翁杙 - privileged: true - procMount: 螡źȰ?$矡ȶ网棊ʢ=wǕɳ - readOnlyRootFilesystem: true - runAsGroup: -3295693280350872542 - runAsNonRoot: false - runAsUser: 4125312213789345425 - seLinuxOptions: - level: "349" - role: "347" - type: "348" - user: "346" - windowsOptions: - gmsaCredentialSpec: "351" - gmsaCredentialSpecName: "350" - runAsUserName: "352" - startupProbe: - exec: - command: - - "323" - failureThreshold: 1428207963 - httpGet: - host: "325" - httpHeaders: - - name: "326" - value: "327" - path: "324" - port: 2134439962 - scheme: Ȋ礶 - initialDelaySeconds: 1919527626 - periodSeconds: -161753937 - successThreshold: -1578746609 - tcpSocket: - host: "329" - port: "328" - timeoutSeconds: -389501466 - stdinOnce: true - targetContainerName: "353" - terminationMessagePath: "345" - terminationMessagePolicy: ʝ瘴I\p[ħsĨ - tty: true - volumeDevices: - - devicePath: "307" - name: "306" - volumeMounts: - - mountPath: "303" - mountPropagation: ǒɿʒ刽ʼn掏1ſ盷褎weLJ - name: "302" - readOnly: true - subPath: "304" - subPathExpr: "305" - workingDir: "286" - hostAliases: - - hostnames: - - "415" - ip: "414" - hostNetwork: true - hostPID: true - hostname: "369" - imagePullSecrets: - - name: "368" - initContainers: - - args: - - "146" - command: - - "145" - env: - - name: "153" - value: "154" - valueFrom: - configMapKeyRef: - key: "160" - name: "159" - optional: false - fieldRef: - apiVersion: "155" - fieldPath: "156" - resourceFieldRef: - containerName: "157" - divisor: "433" - resource: "158" - secretKeyRef: - key: "162" - name: "161" - optional: true - envFrom: - - configMapRef: - name: "151" - optional: true - prefix: "150" - secretRef: - name: "152" - optional: true - image: "144" - imagePullPolicy: ȸŹăȲϤĦ - lifecycle: - postStart: - exec: - command: - - "190" - httpGet: - host: "193" - httpHeaders: - - name: "194" - value: "195" - path: "191" - port: "192" - scheme: Ɠɥ踓Ǻǧ湬淊k - tcpSocket: - host: "197" - port: "196" - preStop: - exec: - command: - - "198" - httpGet: - host: "201" - httpHeaders: - - name: "202" - value: "203" - path: "199" - port: "200" - scheme: fƻfʣ繡楙¯Ħ - tcpSocket: - host: "205" - port: "204" - livenessProbe: - exec: - command: - - "169" - failureThreshold: 62108019 - httpGet: - host: "172" - httpHeaders: - - name: "173" - value: "174" - path: "170" - port: "171" - scheme: ɋ聻鎥ʟ<$洅ɹ7\弌Þ帺萸Do© - initialDelaySeconds: 1843642426 - periodSeconds: -836939996 - successThreshold: -1147975588 - tcpSocket: - host: "175" - port: 1637061888 - timeoutSeconds: 1331061766 - name: "143" - ports: - - containerPort: -1849057428 - hostIP: "149" - hostPort: 977590852 - name: "148" - protocol: 壩卄 - readinessProbe: - exec: - command: - - "176" - failureThreshold: -27219570 - httpGet: - host: "179" - httpHeaders: - - name: "180" - value: "181" - path: "177" - port: "178" - scheme: 拍N嚳ķȗɊ捵TwMȗ礼2ħ籦ö嗏 - initialDelaySeconds: 1274480280 - periodSeconds: 620421257 - successThreshold: 1899367104 - tcpSocket: - host: "182" - port: 468716734 - timeoutSeconds: 1914313083 - resources: - limits: - ȇ廄裭4懙鏮嵒ƫS捕ɷD¡轫n(: "526" - requests: - 郀叚Fi皬择,Q捇ȸ{+ɸ殁: "687" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - M 宸@Z^嫫猤痈C*ĕʄő芖{| - drop: - - '"^饣Vȿ$妻ƅ' - privileged: false - procMount: dg滠鼍ƭt?Qȫ - readOnlyRootFilesystem: false - runAsGroup: -6996673662371947627 - runAsNonRoot: false - runAsUser: -7042570146654509247 - seLinuxOptions: - level: "210" - role: "208" - type: "209" - user: "207" - windowsOptions: - gmsaCredentialSpec: "212" - gmsaCredentialSpecName: "211" - runAsUserName: "213" - startupProbe: - exec: - command: - - "183" - failureThreshold: -1011172037 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "184" - port: -303428971 - scheme: e0ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - initialDelaySeconds: 642481593 - periodSeconds: 1013966977 - successThreshold: 1056226939 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -1617414299 - terminationMessagePath: "206" - volumeDevices: - - devicePath: "168" - name: "167" - volumeMounts: - - mountPath: "164" - mountPropagation: )İ笓珣筩ƐP_痸荎僋bŭDz鯰硰 - name: "163" - subPath: "165" - subPathExpr: "166" - workingDir: "147" - nodeName: "358" - nodeSelector: - "354": "355" - overhead: - 娒Ġ滔xvŗÑ"虆k遚釾ʼn{: "803" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "416" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: Ì - runtimeClassName: "421" - schedulerName: "411" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "362" - role: "360" - type: "361" - user: "359" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "366" - value: "367" - windowsOptions: - gmsaCredentialSpec: "364" - gmsaCredentialSpecName: "363" - runAsUserName: "365" - serviceAccount: "357" - serviceAccountName: "356" - shareProcessNamespace: true - subdomain: "370" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "412" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "413" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: vf3q-z-5z80n--t5--9-4-d2-22--i--40wv--in-870w--it6k47-7yd-y-3/hjO - operator: NotIn - values: - - c.q.8_00.0_._.-_L-__bf_9_-C-PfNxG - matchLabels: - 7s4483-o--3f1p7--43nw-l-x18mtxb--kexr-1-o--g--1l8.bc-coa--y--4-1204wrb---1024g-5-3v9-9jcz9f-6-4g-z46--f2t-k/db-L7.-__-G_2kCpSY: "0" - maxSkew: -1531421126 - topologyKey: "422" - whenUnsatisfiable: 墘ȕûyŅ£趕ã/鈱$-议 - readOnly: true - azureFile: - readOnly: true - secretName: "92" - shareName: "93" - cephfs: - monitors: - - "77" - path: "78" - secretFile: "80" - secretRef: - name: "81" - user: "79" - cinder: - fsType: "75" - secretRef: - name: "76" - volumeID: "74" - configMap: - defaultMode: 1945687018 - items: - - key: "95" - mode: -818470612 - path: "96" - name: "94" - optional: false - csi: - driver: "138" - fsType: "139" - nodePublishSecretRef: - name: "142" - readOnly: true - volumeAttributes: - "140": "141" - downwardAPI: - defaultMode: -1449552038 - items: - - fieldRef: - apiVersion: "85" - fieldPath: "86" - mode: -816398166 - path: "84" - resourceFieldRef: - containerName: "87" - divisor: "558" - resource: "88" - emptyDir: - medium: ɖ橙9 - sizeLimit: "481" - fc: - fsType: "90" - lun: 13573196 - targetWWNs: - - "89" - wwids: - - "91" - flexVolume: - driver: "69" - fsType: "70" - options: - "72": "73" - readOnly: true - secretRef: - name: "71" - flocker: - datasetName: "82" - datasetUUID: "83" - gcePersistentDisk: - fsType: "41" - partition: -54954325 - pdName: "40" - gitRepo: - directory: "46" - repository: "44" - revision: "45" - glusterfs: - endpoints: "59" - path: "60" - hostPath: - path: "39" - type: Ơ歿:狞夌碕ʂɭîcP$I - iscsi: - fsType: "55" - initiatorName: "58" - iqn: "53" - iscsiInterface: "54" - lun: 819364842 - portals: - - "56" - readOnly: true - secretRef: - name: "57" - targetPortal: "52" - name: "38" - nfs: - path: "51" - server: "50" - persistentVolumeClaim: - claimName: "61" - photonPersistentDisk: - fsType: "110" - pdID: "109" - portworxVolume: - fsType: "125" - volumeID: "124" - projected: - defaultMode: 808527238 - sources: - - configMap: - items: - - key: "120" - mode: -1706790766 - path: "121" - name: "119" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "115" - fieldPath: "116" - mode: 1258015454 - path: "114" - resourceFieldRef: - containerName: "117" - divisor: "691" - resource: "118" - secret: - items: - - key: "112" - mode: 33624773 - path: "113" - name: "111" - optional: false - serviceAccountToken: - audience: "122" - expirationSeconds: 4844518680130446070 - path: "123" - quobyte: - group: "104" - readOnly: true - registry: "101" - tenant: "105" - user: "103" - volume: "102" - rbd: - fsType: "64" - image: "63" - keyring: "67" - monitors: - - "62" - pool: "65" - readOnly: true - secretRef: - name: "68" - user: "66" - scaleIO: - fsType: "133" - gateway: "126" - protectionDomain: "129" - secretRef: - name: "128" - storageMode: "131" - storagePool: "130" - system: "127" - volumeName: "132" - secret: - defaultMode: 712024464 - items: - - key: "48" - mode: 13677460 - path: "49" - optional: false - secretName: "47" - storageos: - fsType: "136" - readOnly: true - secretRef: - name: "137" - volumeName: "134" - volumeNamespace: "135" - vsphereVolume: - fsType: "98" - storagePolicyID: "100" - storagePolicyName: "99" - volumePath: "97" -status: - availableReplicas: -578926701 - conditions: - - lastTransitionTime: "2837-10-14T23:23:27Z" - message: "430" - reason: "429" - status: '>堵zŕƧ钖孝0蛮xAǫ&tŧK剛Ʀ' - type: Î磣:mʂ渢pɉ驻(+昒ȼȈɍ颬灲 - fullyLabeledReplicas: -1698525469 - observedGeneration: 8034206547748752944 - readyReplicas: -525943726 - replicas: -1530496417 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.json deleted file mode 100644 index ef308ef7d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "kind": "ResourceQuota", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "hard": { - "@Hr鯹)晿": "617" - }, - "scopes": [ - "Ĩɘ.蘯6ċV夸eɑeʤ脽ěĂ" - ], - "scopeSelector": { - "matchExpressions": [ - { - "scopeName": "ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗", - "operator": "獚敆ȎțêɘIJ斬³;Ơ歿:狞夌碕ʂɭ", - "values": [ - "19" - ] - } - ] - } - }, - "status": { - "hard": { - "": "929" - }, - "used": { - "$Iņɖ橙9ȫŚʒUɦOŖ樅": "934" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.pb deleted file mode 100644 index 147f732f9b8ba40d131bdd62c635f72f34c5d7e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 395 zcmV;60d)RrICB6B6AA)$F%k_@Wpi(Ja${vtb#HWG66*pAsR0TBG774F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~ z0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-0x>ue zivbD~3JO3-a_O(RDdw5K5(NqaHZeC69K@)}m@ep;uQtSsR^_C)Wyz6c%B1Loy~LZu zf*Mu|R0<=?l~%=?D8#?WiszJ`=&+FKqKn6cQ^%pkk5eQo!o5i6iI);7=Z%`?m4?WU z$eY8e$(Y2l=9a9&vpdG1=B>Xv=Zl`@q>SgHmCAz2tr`L`IT|kt2?_ub1quT>GC2|= p3K=9x#fHh2=Bb%E$g9Pg%92&drccF|=BR}d1quT>Gc+0iA^;}^o&Nv; diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.yaml deleted file mode 100644 index fb3a44486..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ResourceQuota.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: v1 -kind: ResourceQuota -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - hard: - '@Hr鯹)晿': "617" - scopeSelector: - matchExpressions: - - operator: 獚敆ȎțêɘIJ斬³;Ơ歿:狞夌碕ʂɭ - scopeName: ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗 - values: - - "19" - scopes: - - Ĩɘ.蘯6ċV夸eɑeʤ脽ěĂ -status: - hard: - "": "929" - used: - $Iņɖ橙9ȫŚʒUɦOŖ樅: "934" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.json b/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.json deleted file mode 100644 index df981496c..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "kind": "Secret", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "data": { - "19": "Hg==" - }, - "stringData": { - "20": "21" - }, - "type": "r鯹)晿\u003co,c鮽ort昍řČ扷5ƗǸ" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.pb deleted file mode 100644 index 8da983d716581ea3805e8e721abcd163a58de81a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 251 zcmVbQ0nL3aJ4K0WuN+Ga3OjA^|lj0XH%fF)=VS zGBhwXG&wjhI5##hHZm|XINR=m)q#tgfp9_qP_2lygN2{YoVx*91_}W;5&<}32MPf> z5&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-FA4%N zHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG6FF;5(f$bF*y94sd=9#}dZ!BZ!uDx$^bmo|i#hJv6=83m8#+S#qA_xisGB6SXGBFweA^@9i BQ?LL4 diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.yaml deleted file mode 100644 index 5061e1e4e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Secret.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: v1 -data: - "19": Hg== -kind: Secret -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -stringData: - "20": "21" -type: r鯹)晿d#K^?J z)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!XizId~MoS?k zLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT97o$E-b$ zmxD*q%k?`opUvDaacR@81SJj*MgayXCL;rlmlL1O{r4XT7=<{vn2ZdCn2dnVF)~)- z)_XByz1flOu%}CQXfYX?STUWP=)`1X>cwPa7Q|#^9;I+<$%~e~M`j;sdfGny#pM2@ zT`y*L9qFumzP_a1ePsFFXlS@(GV)BP=4 sFZV8g-aG5r)V33SCuSdBb#lg$P0yySk>cUv;sUwI0_Y-3DF!750PŽ - healthCheckNodePort: -1095807277 - ipFamily: ³-Ǐ忄*齧獚敆ȎțêɘIJ斬 - loadBalancerIP: "25" - loadBalancerSourceRanges: - - "26" - ports: - - name: "19" - nodePort: -474380055 - port: 202283346 - protocol: '@Hr鯹)晿' - targetPort: "20" - publishNotReadyAddresses: true - selector: - "21": "22" - sessionAffinity: ɑ - sessionAffinityConfig: - clientIP: - timeoutSeconds: -1973740160 - type: .蘯6ċV夸 -status: - loadBalancer: - ingress: - - hostname: "29" - ip: "28" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.json deleted file mode 100644 index 74c3b1a51..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "kind": "ServiceAccount", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "secrets": [ - { - "kind": "19", - "namespace": "20", - "name": "21", - "uid": "@Hr鯹)晿", - "apiVersion": "22", - "resourceVersion": "23", - "fieldPath": "24" - } - ], - "imagePullSecrets": [ - { - "name": "25" - } - ], - "automountServiceAccountToken": false -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.pb deleted file mode 100644 index 54f4b07fa1b78c1f29a7ddf60dfd17dae11fc6cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 251 zcmd0{C}!Xi;bJN?6ygg`Eh@`QPIXL9&M(a?5xT|5wUUvG(MX8VSc=g^iP2Px(cDPH z(9pod$i%?Z#L~jR!raWj%*epl;`Y0ytBu`r8Vj5l0@ikHZEl@^Zq9DTC^jxeb0J2H zBz7)FOCcshgDeFuCPO1BCPQN-K9{PeyQiFJuP#2?b*#TYiwS5hg9T#|lc7l!lc8xB zqdrinnULbk30+U8biG_W^XNR?(5G{@9NwO&e{xFgvx$uw&vs5f(iRIe&D@B|&_YNB zr~zn;k%1JGk)aZogGbTJ^*c46&D^iWWMpK-WMpi`WMm@6!o_4{s=y${pu_+GH0es@ diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.yaml deleted file mode 100644 index a84d28800..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceAccount.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: v1 -automountServiceAccountToken: false -imagePullSecrets: -- name: "25" -kind: ServiceAccount -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -secrets: -- apiVersion: "22" - fieldPath: "24" - kind: "19" - name: "21" - namespace: "20" - resourceVersion: "23" - uid: '@Hr鯹)晿' diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.json deleted file mode 100644 index ab28cd774..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "ServiceProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.ServiceProxyOptions.pb deleted file mode 100644 index 1685c9cc9bf57c9a27b70b3e7ea0767f121fb633..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 vcmd0{C}!Z2n>)ZEh0#LUFV!otkZ!qnJUib06cNQ%)|Ny6^gj=eADE`Qdw;pNT=C-z01SQHWX zVoy`7mNgfni4dcy6r-7vGMDtTg&SgH4=+2>^K9J?qvsv-5A8X$D!=Sy$F^e=g&57H e7%eoOEIsw+-+v%rG-5D#`|9li2uF%Ri2(rNa!VZm diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.Status.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.Status.yaml deleted file mode 100644 index 8e5da3a29..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.Status.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -code: -467962515 -details: - causes: - - field: "8" - message: "7" - reason: 桰]]æȌ殸2爟¼ªov鈶Ƒ - group: "5" - kind: "6" - name: "4" - retryAfterSeconds: -309161244 -kind: Status -message: "3" -metadata: - resourceVersion: "17435791464288618533" - selfLink: ȉŏ軂:鹼(c螂z=lx* -reason: '>渽蝧抰鹐ȾZȢXQ輂]' -status: "2" diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.json b/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.json deleted file mode 100644 index 831354293..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "kind": "UpdateOptions", - "apiVersion": "v1", - "dryRun": [ - "2" - ], - "fieldManager": "3" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.pb deleted file mode 100644 index 411dbc582cde9d3a968fdd6824f09d48aefe6ca9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi=3*){6ygmnNJ%V7^)D#N%+D(pV&h^o5@Ix#Vo+iL0IO{XEC2ui diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.yaml deleted file mode 100644 index 2102aa891..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.UpdateOptions.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -dryRun: -- "2" -fieldManager: "3" -kind: UpdateOptions diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.json b/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.json deleted file mode 100644 index aadfba67a..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "type": "2", - "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}} -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.pb b/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.pb deleted file mode 100644 index 845f8ab8a1de26987d1c82c856da2439eca0acb7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 121 zcmWm6F$=;l5QgChP8l;g-YiO;B&&a+xL?y7jwa2~ON&za-#xdF=Yw~8s`F>>f(z_V zk1+aS2NZtOqFiT)Kp!lU>6U7_Zyj7=;(0WGt=ekozd~jzlpyY~kYrA%5WB;)VOwom PaYN2HWcnY+#ew?)N<}2L diff --git a/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.yaml b/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.yaml deleted file mode 100644 index a146a30f0..000000000 --- a/pseudo/k8s/api/testdata/HEAD/core.v1.WatchEvent.yaml +++ /dev/null @@ -1,8 +0,0 @@ -object: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -type: "2" diff --git a/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.json b/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.json deleted file mode 100644 index e12af7ef7..000000000 --- a/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "events.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "eventTime": "2482-03-20T23:11:25.602224Z", - "series": { - "count": -1971381490, - "lastObservedTime": "2429-02-18T17:57:56.343118Z", - "state": "鯹)晿\u003c" - }, - "reportingController": "19", - "reportingInstance": "20", - "action": "21", - "reason": "22", - "regarding": { - "kind": "23", - "namespace": "24", - "name": "25", - "uid": "Ĩɘ.蘯6ċV夸eɑeʤ脽ěĂ", - "apiVersion": "26", - "resourceVersion": "27", - "fieldPath": "28" - }, - "related": { - "kind": "29", - "namespace": "30", - "name": "31", - "uid": "蓏Ŋ", - "apiVersion": "32", - "resourceVersion": "33", - "fieldPath": "34" - }, - "note": "35", - "type": "36", - "deprecatedSource": { - "component": "37", - "host": "38" - }, - "deprecatedFirstTimestamp": "2964-12-12T12:04:40Z", - "deprecatedLastTimestamp": "2452-08-27T22:01:15Z", - "deprecatedCount": 1804227960 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.pb b/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.pb deleted file mode 100644 index dd6fa6cd910437e39496c4246e4e15f45160bf9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 415 zcmd0{C}!Z2;}T6ROU)}O*2}gi*2~P-FEdO^ElD&KVs!-x3w>eYTFJ=8Xe7jFEX8P| z#AvF;Xl^88XlP(!WMW`yVrgMuVQyw%W@KP&ar<4<)yD2QjRj5&0c$(9Hn+|{H)l6v z6dM<#xe%j85<3^8r4W;$L6!m+lcA9mlcBK^pG(!#-BV7qR~H}cI@VvH#RN2$!Gf`f z$_|O1G4<4v7cF~_%s$ct)Mp0NXAab7;Uy2$2lSw^ffSRmp%Uwh$^A#Ww3v*IjF^m# zt(c5Wf|!g=qnM1%k~p}SjLm@xEwVT`ZZsYGT_V6x#KEz;_1QfO0fvent5)7&lVVU} F006N=i&6jp diff --git a/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.yaml b/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.yaml deleted file mode 100644 index 62bba948a..000000000 --- a/pseudo/k8s/api/testdata/HEAD/events.k8s.io.v1beta1.Event.yaml +++ /dev/null @@ -1,64 +0,0 @@ -action: "21" -apiVersion: events.k8s.io/v1beta1 -deprecatedCount: 1804227960 -deprecatedFirstTimestamp: "2964-12-12T12:04:40Z" -deprecatedLastTimestamp: "2452-08-27T22:01:15Z" -deprecatedSource: - component: "37" - host: "38" -eventTime: "2482-03-20T23:11:25.602224Z" -kind: Event -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -note: "35" -reason: "22" -regarding: - apiVersion: "26" - fieldPath: "28" - kind: "23" - name: "25" - namespace: "24" - resourceVersion: "27" - uid: Ĩɘ.蘯6ċV夸eɑeʤ脽ěĂ -related: - apiVersion: "32" - fieldPath: "34" - kind: "29" - name: "31" - namespace: "30" - resourceVersion: "33" - uid: 蓏Ŋ -reportingController: "19" -reportingInstance: "20" -series: - count: -1971381490 - lastObservedTime: "2429-02-18T17:57:56.343118Z" - state: 鯹)晿< -type: "36" diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.json deleted file mode 100644 index 502da5dfa..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.json +++ /dev/null @@ -1,1410 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "TʡȂŏ{sǡƟ", - "resourceVersion": "1698285396218902212", - "generation": -4139900758039117471, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7534629739119643351, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "^", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "ĪȸŹăȲϤĦʅ芝", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "" - }, - "emptyDir": { - "medium": "ɹ坼É/pȿ", - "sizeLimit": "804" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1318752360 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": -2007808768 - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": 228756891 - } - ], - "defaultMode": 1233814916, - "optional": false - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 408756018, - "iscsiInterface": "58", - "fsType": "59", - "readOnly": true, - "portals": [ - "60" - ], - "chapAuthDiscovery": true, - "chapAuthSession": true, - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64" - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "915" - }, - "mode": -1768075156 - } - ], - "defaultMode": -868808281 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": 570501002, - "fsType": "94", - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97", - "readOnly": true - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": 2020789772 - } - ], - "defaultMode": 952979935, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "k ź贩j瀉ǚrǜnh0åȂ", - "fsType": "112", - "readOnly": false, - "kind": "nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": 675406340 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "461" - }, - "mode": -1618937335 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": -1126738259 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": -6345861634934949644, - "path": "127" - } - } - ], - "defaultMode": 480521693 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129" - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "sslEnabled": true, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": true, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -1510026905, - "containerPort": 437857734, - "protocol": "Rƥ贫d飼$俊跾|@?鷅b", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": false - }, - "secretRef": { - "name": "156", - "optional": false - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "468" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": false - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "檲ɨ銦妰黖ȓƇ$缔獵偐ę腬": "646" - }, - "requests": { - "湨": "803" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "卩蝾", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": "175", - "host": "176", - "httpHeaders": [ - { - "name": "177", - "value": "178" - } - ] - }, - "tcpSocket": { - "port": "179", - "host": "180" - }, - "initialDelaySeconds": 1805144649, - "timeoutSeconds": -606111218, - "periodSeconds": 1403721475, - "successThreshold": 519906483, - "failureThreshold": 1466047181 - }, - "readinessProbe": { - "exec": { - "command": [ - "181" - ] - }, - "httpGet": { - "path": "182", - "port": "183", - "host": "184", - "scheme": "w垁鷌辪虽U珝Żwʮ馜üNșƶ4ĩ", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": -337353552, - "host": "187" - }, - "initialDelaySeconds": -1724160601, - "timeoutSeconds": -1158840571, - "periodSeconds": 1435507444, - "successThreshold": -1430577593, - "failureThreshold": 524249411 - }, - "startupProbe": { - "exec": { - "command": [ - "188" - ] - }, - "httpGet": { - "path": "189", - "port": "190", - "host": "191", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": "194", - "host": "195" - }, - "initialDelaySeconds": 364013971, - "timeoutSeconds": 1596422492, - "periodSeconds": -1790124395, - "successThreshold": 1094670193, - "failureThreshold": 905846572 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "蚛隖\u003cǶĬ4y£軶ǃ*ʙ嫙\u0026蒒5靇C'", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": 2126876305, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "Ŵ廷s{Ⱦdz@", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0", - "imagePullPolicy": "ŤǢʭ嵔棂p儼Ƿ裚瓶", - "securityContext": { - "capabilities": { - "add": [ - "+j忊Ŗȫ焗捏ĨFħ籘Àǒɿʒ刽ʼn" - ], - "drop": [ - "1ſ盷褎weLJèux榜VƋZ1Ůđ眊" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216", - "runAsUserName": "217" - }, - "runAsUser": 1563703589270296759, - "runAsGroup": 6506922239346928579, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "fǣ萭旿@" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": 1584001904, - "containerPort": -839281354, - "protocol": "5姣\u003e懔%熷谟þ蛯ɰ荶ljʁ", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": false - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "357" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": true - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0": "175" - }, - "requests": { - "ɺ皚|懥ƖN粕擓ƖHV": "962" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": -393291312, - "host": "246", - "scheme": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": "249", - "host": "250" - }, - "initialDelaySeconds": 627713162, - "timeoutSeconds": 1255312175, - "periodSeconds": -1740959124, - "successThreshold": 158280212, - "failureThreshold": -361442565 - }, - "readinessProbe": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": -2013568185, - "host": "253", - "scheme": "#yV'WKw(ğ儴Ůĺ}", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": -20130017, - "host": "256" - }, - "initialDelaySeconds": -1244623134, - "timeoutSeconds": -1334110502, - "periodSeconds": -398297599, - "successThreshold": 873056500, - "failureThreshold": -36782737 - }, - "startupProbe": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "Qg鄠[", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": -241238495, - "host": "263" - }, - "initialDelaySeconds": -1556231754, - "timeoutSeconds": 461585849, - "periodSeconds": -321709789, - "successThreshold": -1463645123, - "failureThreshold": -1011390276 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "264" - ] - }, - "httpGet": { - "path": "265", - "port": "266", - "host": "267", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - }, - "preStop": { - "exec": { - "command": [ - "272" - ] - }, - "httpGet": { - "path": "273", - "port": -1161649101, - "host": "274", - "scheme": "嚧ʣq埄", - "httpHeaders": [ - { - "name": "275", - "value": "276" - } - ] - }, - "tcpSocket": { - "port": "277", - "host": "278" - } - } - }, - "terminationMessagePath": "279", - "terminationMessagePolicy": "ʁ岼昕ĬÇ", - "imagePullPolicy": "T 苧yñKJɐ扵G", - "securityContext": { - "capabilities": { - "add": [ - "fʀļ腩墺Ò媁荭gw忊" - ], - "drop": [ - "E剒蔞" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "284", - "gmsaCredentialSpec": "285", - "runAsUserName": "286" - }, - "runAsUser": -6177393256425700216, - "runAsGroup": 2001337664780390084, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "Ȩ\u003c6鄰簳°Ļǟi\u0026" - }, - "stdin": true - } - ], - "ephemeralContainers": [ - { - "name": "287", - "image": "288", - "command": [ - "289" - ], - "args": [ - "290" - ], - "workingDir": "291", - "ports": [ - { - "name": "292", - "hostPort": 1313273370, - "containerPort": -1296830577, - "hostIP": "293" - } - ], - "envFrom": [ - { - "prefix": "294", - "configMapRef": { - "name": "295", - "optional": true - }, - "secretRef": { - "name": "296", - "optional": false - } - } - ], - "env": [ - { - "name": "297", - "value": "298", - "valueFrom": { - "fieldRef": { - "apiVersion": "299", - "fieldPath": "300" - }, - "resourceFieldRef": { - "containerName": "301", - "resource": "302", - "divisor": "3" - }, - "configMapKeyRef": { - "name": "303", - "key": "304", - "optional": true - }, - "secretKeyRef": { - "name": "305", - "key": "306", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "淳4揻-$ɽ丟×x锏ɟ": "178" - }, - "requests": { - "Ö闊 鰔澝qV": "752" - } - }, - "volumeMounts": [ - { - "name": "307", - "readOnly": true, - "mountPath": "308", - "subPath": "309", - "mountPropagation": "/»頸+SÄ蚃ɣľ)酊龨Î", - "subPathExpr": "310" - } - ], - "volumeDevices": [ - { - "name": "311", - "devicePath": "312" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "313" - ] - }, - "httpGet": { - "path": "314", - "port": "315", - "host": "316", - "scheme": "冓鍓贯", - "httpHeaders": [ - { - "name": "317", - "value": "318" - } - ] - }, - "tcpSocket": { - "port": "319", - "host": "320" - }, - "initialDelaySeconds": 1290950685, - "timeoutSeconds": 12533543, - "periodSeconds": 1058960779, - "successThreshold": -2133441986, - "failureThreshold": 472742933 - }, - "readinessProbe": { - "exec": { - "command": [ - "321" - ] - }, - "httpGet": { - "path": "322", - "port": 1332783160, - "host": "323", - "scheme": "Ȱ囌{屿oiɥ嵐sC8?Ǻ鱎ƙ;", - "httpHeaders": [ - { - "name": "324", - "value": "325" - } - ] - }, - "tcpSocket": { - "port": "326", - "host": "327" - }, - "initialDelaySeconds": -300247800, - "timeoutSeconds": 386804041, - "periodSeconds": -126958936, - "successThreshold": 186945072, - "failureThreshold": 620822482 - }, - "startupProbe": { - "exec": { - "command": [ - "328" - ] - }, - "httpGet": { - "path": "329", - "port": "330", - "host": "331", - "scheme": "鍏H鯂²", - "httpHeaders": [ - { - "name": "332", - "value": "333" - } - ] - }, - "tcpSocket": { - "port": -1187301925, - "host": "334" - }, - "initialDelaySeconds": -402384013, - "timeoutSeconds": -181601395, - "periodSeconds": -617381112, - "successThreshold": 1851229369, - "failureThreshold": -560238386 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "335" - ] - }, - "httpGet": { - "path": "336", - "port": "337", - "host": "338", - "scheme": "C\"6x$1s", - "httpHeaders": [ - { - "name": "339", - "value": "340" - } - ] - }, - "tcpSocket": { - "port": "341", - "host": "342" - } - }, - "preStop": { - "exec": { - "command": [ - "343" - ] - }, - "httpGet": { - "path": "344", - "port": -518160270, - "host": "345", - "scheme": "ɔ幩še", - "httpHeaders": [ - { - "name": "346", - "value": "347" - } - ] - }, - "tcpSocket": { - "port": 1956567721, - "host": "348" - } - } - }, - "terminationMessagePath": "349", - "terminationMessagePolicy": "ȤƏ埮pɵ", - "securityContext": { - "capabilities": { - "add": [ - "|ʐşƧ諔迮ƙIJ嘢" - ], - "drop": [ - "ʗN" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "350", - "role": "351", - "type": "352", - "level": "353" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "354", - "gmsaCredentialSpec": "355", - "runAsUserName": "356" - }, - "runAsUser": -6048969174364431391, - "runAsGroup": 6726836758549163621, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "" - }, - "stdin": true, - "stdinOnce": true, - "tty": true, - "targetContainerName": "357" - } - ], - "restartPolicy": "ɭɪǹ0衷,", - "terminationGracePeriodSeconds": -3039830979334099524, - "activeDeadlineSeconds": 7270263763744228913, - "dnsPolicy": "n(fǂǢ曣ŋayåe躒訙Ǫ", - "nodeSelector": { - "358": "359" - }, - "serviceAccountName": "360", - "serviceAccount": "361", - "automountServiceAccountToken": true, - "nodeName": "362", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "363", - "role": "364", - "type": "365", - "level": "366" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "367", - "gmsaCredentialSpec": "368", - "runAsUserName": "369" - }, - "runAsUser": -5315960194881172085, - "runAsGroup": 6386250802140824739, - "runAsNonRoot": false, - "supplementalGroups": [ - -4480129203693517072 - ], - "fsGroup": 2585323675983182372, - "sysctls": [ - { - "name": "370", - "value": "371" - } - ] - }, - "imagePullSecrets": [ - { - "name": "372" - } - ], - "hostname": "373", - "subdomain": "374", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "375", - "operator": "Ã茓pȓɻ", - "values": [ - "376" - ] - } - ], - "matchFields": [ - { - "key": "377", - "operator": "", - "values": [ - "378" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -767058113, - "preference": { - "matchExpressions": [ - { - "key": "379", - "operator": "Ǹ|蕎'佉賞ǧĒz", - "values": [ - "380" - ] - } - ], - "matchFields": [ - { - "key": "381", - "operator": "ùfŭƽ", - "values": [ - "382" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "h-up52--sjo7799-skj5--9/R_rm": "CR.s--f.-f.-zv._._.o" - }, - "matchExpressions": [ - { - "key": "K_A-_9_Z_C..7o_x3..-.8-Jp-94", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "389" - ], - "topologyKey": "390" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 801902541, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "bx1y-8---3----p-pdn--j2---2--82--cj-1-s--op34-yy28-38xmu5nx4s-4/4b_9_1o.w_I": "x-_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----.4" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "397" - ], - "topologyKey": "398" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "405" - ], - "topologyKey": "406" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "413" - ], - "topologyKey": "414" - } - } - ] - } - }, - "schedulerName": "415", - "tolerations": [ - { - "key": "416", - "operator": "堺ʣ", - "value": "417", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "418", - "hostnames": [ - "419" - ] - } - ], - "priorityClassName": "420", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "421" - ], - "searches": [ - "422" - ], - "options": [ - { - "name": "423", - "value": "424" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "425", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "426", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "updateStrategy": { - "type": "荥ơ'禧ǵŊ)TiD¢ƿ媴h5", - "rollingUpdate": { - - } - }, - "minReadySeconds": 212061711, - "templateGeneration": 8027668557984017414, - "revisionHistoryLimit": -1979737528 - }, - "status": { - "currentNumberScheduled": -1707056814, - "numberMisscheduled": -424698834, - "desiredNumberScheduled": 407742062, - "numberReady": 2115789304, - "observedGeneration": -455484136992029462, - "updatedNumberScheduled": 1660081568, - "numberAvailable": 904244563, - "numberUnavailable": -1245696932, - "collisionCount": 2063260600, - "conditions": [ - { - "type": "Ƅ抄3昞财Î嘝zʄ", - "status": "\u003ec緍k¢茤Ƣǟ½灶du汎mō6µɑ", - "lastTransitionTime": "2196-03-13T21:02:11Z", - "reason": "433", - "message": "434" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DaemonSet.pb deleted file mode 100644 index 2edc219ab3ec8c6eefec937481010b1a230a1338..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6361 zcmZWt3wTsTmhRi(uB4u8Z+LTTUGbT%qa4VVL^$AY-VTg5(tk#k|qK3 zQ1?q9JklW~gd~ta2uXlIfDi(CzciihPDe*wT=9kDqI9QwWPBhyD)^XF-9i0!^TFwR zt8Se-b?VfA{!{C;Y!iDg%cbUSOwGt%o0*Xv|13&L-MAcax6E0dnx2{QRO&|V6k?Av zEQ2|Q*ci#d$Z?E{Z%0U!uq4Wou8Eqehzb^o_TDF(-z+RSQ0Saxdh*ncjxAg3Up>&r zBu`-(m1DG&sVt*&W+bNBSu?^mGa`=L=Hv(ZDo3|Jm+f(R%bam$&}-6|EHjew%}91J z@$jj_-4`x*1u9+PrW(&d{^`JhbMCI?@&3veg1ZZ2gFSmkw*3jTso0D(?n8k+XlA!C z>{A-g^J$q*U6IiG)q;~>t*yZPI$lRORpwXlsS4pUc#;u6R~NJ;YtokJ*?gLWc#&6} zeB!)>3^k8eC4mE%uED-KtMH7sa#W@1Ma=x;H7Zjd1as{3jbJCO7Ap<%| zw!s^-HVEm4#8oluzd2=*fFY8q@{;a^r%VOW_f>g3ufu~%e_(2n-z2Y3!#s~f=LUFF zp&9dH{HiB4B=Ca1bY-rvWR|gzPcURd*eD1o^F_}5c!mwl5mjNiA>=zwvLYle}*6+O&0GOQWPoEa-NGgcjDti}C&$ymeaW>493 z*}evEJ^mF^bPa1V(G`p|UBnn+?b7Bq2kN}ryy6M%N@yW6cDtAt;4D zVR#~Gzk(;(W+sY*`S&<8k)r!b)O<71T+IE@t8;gZw2XFpdPcU4wvY4;A09b6wl(Cc zvza9kn;@}yy$*Q$|@Y*orFw0t;S=L2nhFKA3GD(wIvx1f}DP{#H z!Z?L+W<|1^lE8FDwlK*M_X>j-w})JwW4yf&8$myQ=D0s zD;QXr4!U*K%G5IVvM{Btaa59W(C#*KWZEZ4TI3znFY{`MCe7x_UmH(S2leGYmpF z)`ai%?F^P3(tO3?zO&&SC&sGAk5+j1xf?=Then#m`#XEVV)&F$ZPGAvE4*M0UNAUv zj1k}!ViyFW?mz^C)8U6;5Yh|~@+=TaA_(2(x8&6v`E;2E73l?p^geFY=fFpjF6l5>Hw&k0s-);7YK1{ef=w}lBOtzjn^?q<7 zlo<$RXj3fLK5zT}(_MpKHZ$N&tXkfGuROrK%UGe8&{Yu~+9eS-iyA1Q4`GYo7hCA} z5^+$I;G}?%qhBbTZyFl|N1OuzgE1BzAW$3#jAuX>CYH~F&0kEmcD4jRjRuF~H*%o4 z>5<^}%6}f;))i{2cMpd4pZ2$fN;`eUV}*3AGy^sfQ%_^8+a6_MVoV*43F5#P7+?Yf zp-v~VYP*d(028nb6F6&*iFfcUCJ2+#82q2}P`)<9kBXk(zKexyIN zwa;_Xdwg_Aq;P;#nY)+0)89K@Tl;))`w?&TqVe{s;GR9+>V&2A0|2x{iB6_jOt4;} z!+Iq#?ru*{pkVJ)!J3Ld=iaB?<%YNQv0&xlcz?HlmmR|=C}{`78WB6egL6QGBy+!* zX0p6~wr}LS$f2=Og_7d9%X4(RW{Vc?uJ)fv94#InIOo|GI@sXp9c_Cwj(S2;VPTSH zv#_^JVah!x>{kw7c_|tov6cVbzd*ck~767WjDA{%=OUKo> zp8Y#r!S{^KMB5e1hjqiP(crVbd+N%Ti8w60Qal{BAokks=0h>!r`LNwi4IIT!mvvs zCMgo9gGq|a-CUfafL|2Vap#{d51bhudSu+y5p3P=sp9>Gfdi+Xi5R5NP*L=sxJ0Gl zq9Sf#M5~H93|avnsljJQT^FJ@MHZ?`j#~n?&0|d)0`)}^br1#cvGP-O)aR;}213uW zEU|}5n)BRe79{%1gT)>5^Iu@^XRWKo3TQkX4>b0=D*`Qrq0&>Ua{@yyZtC1XaYd-| zAnX+&8rG<38iG}67{W&*_8rCHZ3XQgG`29YjL2xFnImjyd+tI7UZ>Gjv@d~b(eVqyHX|}v8lM>(ksUrUSAfOgoYJS(Ja^kqCiX# zMWfpEd-pqg`E-Ix8reg}5!N#%=uy@i~(1}@WuEfBP*S|eRh(N&GV}S`Y-=k z0ob09$vw>8y})>kH*_P}m@NourjbhoAb%R4=;U>YyLC=xYWAYcjdOF?W^aVGYY-Sj z7r9TEX@9P7`_9Y-81`+3-N~>EQgTrqPgyi2u)LFZuFL>N4dwtb>6_$?Tq&EE;-wU@0%Zz0#^c-{a(M%IvIIn$&lVDdgiS!j4dA&;PWt`mAQriOEyvs{QnlLt8~Gd?V_1o#U``AXE}8qaRO&H9!sCY3*uu>3W$5) zF_?Cq4BURfqS+!Z@acxgr}N5FPGb@Olps98&q@}A49>=~i<5Pyp$M~u)c-pblt;E0 zNmRJcnQ7OLR+UDPocoAjFEH#p7AZ>+pY^n07>1|_sT56^nsltAh6P~9K~5+Ww8U>~7qj38s(Pk*GFXbcPme4#21 z6UAW!=mFv&d#wv1k3)zGTEdckJk!oLtSY zt0S`jjLZXNfFBb{7iq8+NRu4*=L8NGhP!r#23tZk15b~a)p`1I##+Ni54igmjn;TO zrIF(iLp16ZO_@jtZT{UK++;PhU9~j7{5O9zh^v(H|5?t$e@#N%KU;mXiClZ4D z{I_2-DeVlqB4QX63-iG+UH!o@IDPQ0JEn(f_lIk%fA8xYIVt50H--8-eOuzjY62%} z9tc%b$lx(`IL&sNdHW zYN{RI)0tnxunFw+-=+Z}@KleU7%$ozEG-*3HV^8IGyB{Hz6$@)SVdsRfTx(VBhS$I z{;tsBT{)?~?e1fna)URn7p^zLuO3ZKWLNo`LglA|dxvI5_yd$5FoIGmq(=AyQ_et5MoTMTcM;Nn zWcen4KtSq%KiEA5!DGFnTb>Pe*Q>*a)s<=9(<9Zv{(Z@T;@V(UsTkoD2xu1sC2nUn zu}?T)+%p*a(Z&7me_S*0&8tkL%#&ytBO!el;0KGN%;}@vol)iI8A#v~ zEx;rwz~Ik9xN z&TaiGRV#nSn65MT+~+AmBPHIR=Yw1OgC`0@#qFVzZK2au!Lrlg!t%{#8~aP?!I84y z{;J^N@?h2ej9^a{DPcXoOf)e6 zOyq9q9!NIXhVle28!9C09JpALAsav{HuS~MBvzPvr?Tx+A&ND6q%=6zSfkaH4hWCo zqU|@(rDIF&mHk&IS<60ntttu`fP2tRW;{;2=|}*CKd_X^(mMnKhn-S0dTBuDr2z{! zj}aUvaLS=cx>+6)dVxUT0)gTrvtolzh-Z9 zSBLky?BTY`;9%W`NG+(!I1#D}B1UkWh=Ain)Z=XN!+qgH-M@XxT@ut z6&^h1-i7H7Caq)V(^Emz1 z_{Jn!{SZtXcaOFO_V0WyaAqiTt^Y`%qda@I_NcEnd}f!o=64Yb=&b_5@{h-nV5qJM z+#&2}`RivQKI6mCQ&_Dfxtw!U}%(`_f2SW~2M3tar-y8D%eQ-4Y{ zQJ5vPQYKI-gNT-CKfo*oK#SI90BX!cnWjfzmK{CpEeq7QI{h6HKqVCD2?9VZWY|bS zOWg&mcKZ$ zf2CiZJs#aT`;Kj|z7wSlu|36qxjIFB_0r$2O;jeZ6xDVQYYUYg@isg-eze)w;c-2* zWbK^cM(XQd;7xi3ojO&%M?e?efQeL)j|z3?fh`z`6#klTDu23 zCZ_-7mCj+t{+0Xl&!)!ywYaSHi>p^Je9ef5PQ1K#iuT64)u&@-UVOV?;$9)4yX)h( zrY0?9Z}%1jT}33g?_lU$qkC6iUtRuK5qIAsE5^G@*9|v@b{_UN`s#-V#tS=FZVH~+ imF_83hCBSbZPTW`QTsnH+bnQ_C=n6|Lb910rhfneE犵殇ŕ-Ɂ圯W' - tcpSocket: - host: "271" - port: "270" - preStop: - exec: - command: - - "272" - httpGet: - host: "274" - httpHeaders: - - name: "275" - value: "276" - path: "273" - port: -1161649101 - scheme: 嚧ʣq埄 - tcpSocket: - host: "278" - port: "277" - livenessProbe: - exec: - command: - - "244" - failureThreshold: -361442565 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "245" - port: -393291312 - scheme: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - initialDelaySeconds: 627713162 - periodSeconds: -1740959124 - successThreshold: 158280212 - tcpSocket: - host: "250" - port: "249" - timeoutSeconds: 1255312175 - name: "218" - ports: - - containerPort: -839281354 - hostIP: "224" - hostPort: 1584001904 - name: "223" - protocol: 5姣>懔%熷谟þ蛯ɰ荶ljʁ - readinessProbe: - exec: - command: - - "251" - failureThreshold: -36782737 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: -2013568185 - scheme: '#yV''WKw(ğ儴Ůĺ}' - initialDelaySeconds: -1244623134 - periodSeconds: -398297599 - successThreshold: 873056500 - tcpSocket: - host: "256" - port: -20130017 - timeoutSeconds: -1334110502 - resources: - limits: - 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0: "175" - requests: - ɺ皚|懥ƖN粕擓ƖHV: "962" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - fʀļ腩墺Ò媁荭gw忊 - drop: - - E剒蔞 - privileged: false - procMount: Ȩ<6鄰簳°Ļǟi& - readOnlyRootFilesystem: true - runAsGroup: 2001337664780390084 - runAsNonRoot: true - runAsUser: -6177393256425700216 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - windowsOptions: - gmsaCredentialSpec: "285" - gmsaCredentialSpecName: "284" - runAsUserName: "286" - startupProbe: - exec: - command: - - "257" - failureThreshold: -1011390276 - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: Qg鄠[ - initialDelaySeconds: -1556231754 - periodSeconds: -321709789 - successThreshold: -1463645123 - tcpSocket: - host: "263" - port: -241238495 - timeoutSeconds: 461585849 - stdin: true - terminationMessagePath: "279" - terminationMessagePolicy: ʁ岼昕ĬÇ - volumeDevices: - - devicePath: "243" - name: "242" - volumeMounts: - - mountPath: "239" - mountPropagation: 'Ź倗S晒嶗UÐ_ƮA攤/ɸɎ ' - name: "238" - subPath: "240" - subPathExpr: "241" - workingDir: "222" - dnsConfig: - nameservers: - - "421" - options: - - name: "423" - value: "424" - searches: - - "422" - dnsPolicy: n(fǂǢ曣ŋayåe躒訙Ǫ - enableServiceLinks: false - ephemeralContainers: - - args: - - "290" - command: - - "289" - env: - - name: "297" - value: "298" - valueFrom: - configMapKeyRef: - key: "304" - name: "303" - optional: true - fieldRef: - apiVersion: "299" - fieldPath: "300" - resourceFieldRef: - containerName: "301" - divisor: "3" - resource: "302" - secretKeyRef: - key: "306" - name: "305" - optional: true - envFrom: - - configMapRef: - name: "295" - optional: true - prefix: "294" - secretRef: - name: "296" - optional: false - image: "288" - lifecycle: - postStart: - exec: - command: - - "335" - httpGet: - host: "338" - httpHeaders: - - name: "339" - value: "340" - path: "336" - port: "337" - scheme: C"6x$1s - tcpSocket: - host: "342" - port: "341" - preStop: - exec: - command: - - "343" - httpGet: - host: "345" - httpHeaders: - - name: "346" - value: "347" - path: "344" - port: -518160270 - scheme: ɔ幩še - tcpSocket: - host: "348" - port: 1956567721 - livenessProbe: - exec: - command: - - "313" - failureThreshold: 472742933 - httpGet: - host: "316" - httpHeaders: - - name: "317" - value: "318" - path: "314" - port: "315" - scheme: 冓鍓贯 - initialDelaySeconds: 1290950685 - periodSeconds: 1058960779 - successThreshold: -2133441986 - tcpSocket: - host: "320" - port: "319" - timeoutSeconds: 12533543 - name: "287" - ports: - - containerPort: -1296830577 - hostIP: "293" - hostPort: 1313273370 - name: "292" - readinessProbe: - exec: - command: - - "321" - failureThreshold: 620822482 - httpGet: - host: "323" - httpHeaders: - - name: "324" - value: "325" - path: "322" - port: 1332783160 - scheme: Ȱ囌{屿oiɥ嵐sC8?Ǻ鱎ƙ; - initialDelaySeconds: -300247800 - periodSeconds: -126958936 - successThreshold: 186945072 - tcpSocket: - host: "327" - port: "326" - timeoutSeconds: 386804041 - resources: - limits: - 淳4揻-$ɽ丟×x锏ɟ: "178" - requests: - Ö闊 鰔澝qV: "752" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - '|ʐşƧ諔迮ƙIJ嘢' - drop: - - ʗN - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: 6726836758549163621 - runAsNonRoot: false - runAsUser: -6048969174364431391 - seLinuxOptions: - level: "353" - role: "351" - type: "352" - user: "350" - windowsOptions: - gmsaCredentialSpec: "355" - gmsaCredentialSpecName: "354" - runAsUserName: "356" - startupProbe: - exec: - command: - - "328" - failureThreshold: -560238386 - httpGet: - host: "331" - httpHeaders: - - name: "332" - value: "333" - path: "329" - port: "330" - scheme: 鍏H鯂² - initialDelaySeconds: -402384013 - periodSeconds: -617381112 - successThreshold: 1851229369 - tcpSocket: - host: "334" - port: -1187301925 - timeoutSeconds: -181601395 - stdin: true - stdinOnce: true - targetContainerName: "357" - terminationMessagePath: "349" - terminationMessagePolicy: ȤƏ埮pɵ - tty: true - volumeDevices: - - devicePath: "312" - name: "311" - volumeMounts: - - mountPath: "308" - mountPropagation: /»頸+SÄ蚃ɣľ)酊龨Î - name: "307" - readOnly: true - subPath: "309" - subPathExpr: "310" - workingDir: "291" - hostAliases: - - hostnames: - - "419" - ip: "418" - hostNetwork: true - hostname: "373" - imagePullSecrets: - - name: "372" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "468" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: false - prefix: "154" - secretRef: - name: "156" - optional: false - image: "148" - imagePullPolicy: ŤǢʭ嵔棂p儼Ƿ裚瓶 - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - tcpSocket: - host: "202" - port: 2126876305 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: Ŵ廷s{Ⱦdz@ - tcpSocket: - host: "209" - port: 406308963 - livenessProbe: - exec: - command: - - "173" - failureThreshold: 1466047181 - httpGet: - host: "176" - httpHeaders: - - name: "177" - value: "178" - path: "174" - port: "175" - initialDelaySeconds: 1805144649 - periodSeconds: 1403721475 - successThreshold: 519906483 - tcpSocket: - host: "180" - port: "179" - timeoutSeconds: -606111218 - name: "147" - ports: - - containerPort: 437857734 - hostIP: "153" - hostPort: -1510026905 - name: "152" - protocol: Rƥ贫d飼$俊跾|@?鷅b - readinessProbe: - exec: - command: - - "181" - failureThreshold: 524249411 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "182" - port: "183" - scheme: w垁鷌辪虽U珝Żwʮ馜üNșƶ4ĩ - initialDelaySeconds: -1724160601 - periodSeconds: 1435507444 - successThreshold: -1430577593 - tcpSocket: - host: "187" - port: -337353552 - timeoutSeconds: -1158840571 - resources: - limits: - 檲ɨ銦妰黖ȓƇ$缔獵偐ę腬: "646" - requests: - 湨: "803" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - +j忊Ŗȫ焗捏ĨFħ籘Àǒɿʒ刽ʼn - drop: - - 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - privileged: true - procMount: fǣ萭旿@ - readOnlyRootFilesystem: true - runAsGroup: 6506922239346928579 - runAsNonRoot: true - runAsUser: 1563703589270296759 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - runAsUserName: "217" - startupProbe: - exec: - command: - - "188" - failureThreshold: 905846572 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "189" - port: "190" - scheme: k_瀹鞎sn芞QÄȻ - initialDelaySeconds: 364013971 - periodSeconds: -1790124395 - successThreshold: 1094670193 - tcpSocket: - host: "195" - port: "194" - timeoutSeconds: 1596422492 - stdin: true - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: ŀ樺ȃv渟7¤7djƯĖ漘Z剚敍0 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: 卩蝾 - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "362" - nodeSelector: - "358": "359" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "420" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɭɪǹ0衷, - runtimeClassName: "425" - schedulerName: "415" - securityContext: - fsGroup: 2585323675983182372 - runAsGroup: 6386250802140824739 - runAsNonRoot: false - runAsUser: -5315960194881172085 - seLinuxOptions: - level: "366" - role: "364" - type: "365" - user: "363" - supplementalGroups: - - -4480129203693517072 - sysctls: - - name: "370" - value: "371" - windowsOptions: - gmsaCredentialSpec: "368" - gmsaCredentialSpecName: "367" - runAsUserName: "369" - serviceAccount: "361" - serviceAccountName: "360" - shareProcessNamespace: true - subdomain: "374" - terminationGracePeriodSeconds: -3039830979334099524 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "416" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "417" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "426" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: -2007808768 - volumeID: "46" - azureDisk: - cachingMode: k ź贩j瀉ǚrǜnh0åȂ - diskName: "110" - diskURI: "111" - fsType: "112" - kind: nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶 - readOnly: false - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 952979935 - items: - - key: "99" - mode: 2020789772 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: true - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: -868808281 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: -1768075156 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "915" - resource: "92" - emptyDir: - medium: ɹ坼É/pȿ - sizeLimit: "804" - fc: - fsType: "94" - lun: 570501002 - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1318752360 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - hostPath: - path: "43" - type: "" - iscsi: - chapAuthDiscovery: true - chapAuthSession: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 408756018 - portals: - - "60" - readOnly: true - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - volumeID: "128" - projected: - defaultMode: 480521693 - sources: - - configMap: - items: - - key: "124" - mode: -1126738259 - path: "125" - name: "123" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1618937335 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "461" - resource: "122" - secret: - items: - - key: "116" - mode: 675406340 - path: "117" - name: "115" - optional: false - serviceAccountToken: - audience: "126" - expirationSeconds: -6345861634934949644 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - readOnly: true - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - sslEnabled: true - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 1233814916 - items: - - key: "52" - mode: 228756891 - path: "53" - optional: false - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" - templateGeneration: 8027668557984017414 - updateStrategy: - rollingUpdate: {} - type: 荥ơ'禧ǵŊ)TiD¢ƿ媴h5 -status: - collisionCount: 2063260600 - conditions: - - lastTransitionTime: "2196-03-13T21:02:11Z" - message: "434" - reason: "433" - status: '>c緍k¢茤Ƣǟ½灶du汎mō6µɑ' - type: Ƅ抄3昞财Î嘝zʄ - currentNumberScheduled: -1707056814 - desiredNumberScheduled: 407742062 - numberAvailable: 904244563 - numberMisscheduled: -424698834 - numberReady: 2115789304 - numberUnavailable: -1245696932 - observedGeneration: -455484136992029462 - updatedNumberScheduled: 1660081568 diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.json deleted file mode 100644 index abede0dcd..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.json +++ /dev/null @@ -1,1408 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": 896585016, - "selector": { - "matchLabels": { - "74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj": "6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1" - }, - "matchExpressions": [ - { - "key": "50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99", - "operator": "Exists" - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "?Qȫş", - "resourceVersion": "1736621709629422270", - "generation": -8542870036622468681, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2575298329142810753, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "ƶȤ^}", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "躢", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c" - }, - "emptyDir": { - "medium": "Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈", - "sizeLimit": "473" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1188153605 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": 912004803, - "readOnly": true - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -547518679 - } - ], - "defaultMode": 332383000, - "optional": true - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 994527057, - "iscsiInterface": "58", - "fsType": "59", - "portals": [ - "60" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - } - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "660" - }, - "mode": 1569992019 - } - ], - "defaultMode": 824682619 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": -1740986684, - "fsType": "94", - "readOnly": true, - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97", - "readOnly": true - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": 195263908 - } - ], - "defaultMode": 1593906314, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "|@?鷅bȻN", - "fsType": "112", - "readOnly": true, - "kind": "榱*Gưoɘ檲" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -323584340 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "106" - }, - "mode": 173030157 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": 2063799569 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": 8357931971650847566, - "path": "127" - } - } - ], - "defaultMode": -1334904807 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129", - "readOnly": true - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": false, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -606111218, - "containerPort": 1403721475, - "protocol": "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": true - }, - "secretRef": { - "name": "156", - "optional": true - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "650" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": false - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "84" - }, - "requests": { - "ɖȃ賲鐅臬dH巧壚tC十Oɢ": "517" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": -152585895, - "host": "175", - "scheme": "E@Ȗs«ö", - "httpHeaders": [ - { - "name": "176", - "value": "177" - } - ] - }, - "tcpSocket": { - "port": 1135182169, - "host": "178" - }, - "initialDelaySeconds": 1843758068, - "timeoutSeconds": -1967469005, - "periodSeconds": 1702578303, - "successThreshold": -1565157256, - "failureThreshold": -1113628381 - }, - "readinessProbe": { - "exec": { - "command": [ - "179" - ] - }, - "httpGet": { - "path": "180", - "port": 386652373, - "host": "181", - "scheme": "ʙ嫙\u0026", - "httpHeaders": [ - { - "name": "182", - "value": "183" - } - ] - }, - "tcpSocket": { - "port": "184", - "host": "185" - }, - "initialDelaySeconds": -802585193, - "timeoutSeconds": 1901330124, - "periodSeconds": 1944205014, - "successThreshold": -2079582559, - "failureThreshold": -1167888910 - }, - "startupProbe": { - "exec": { - "command": [ - "186" - ] - }, - "httpGet": { - "path": "187", - "port": 804417065, - "host": "188", - "scheme": "Ŵ廷s{Ⱦdz@", - "httpHeaders": [ - { - "name": "189", - "value": "190" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "191" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "192" - ] - }, - "httpGet": { - "path": "193", - "port": -2015604435, - "host": "194", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "195", - "value": "196" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "197" - } - }, - "preStop": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": -1131820775, - "host": "200", - "scheme": "Ƿ裚瓶釆Ɗ+j忊", - "httpHeaders": [ - { - "name": "201", - "value": "202" - } - ] - }, - "tcpSocket": { - "port": "203", - "host": "204" - } - } - }, - "terminationMessagePath": "205", - "terminationMessagePolicy": "焗捏", - "imagePullPolicy": "罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "206", - "role": "207", - "type": "208", - "level": "209" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "210", - "gmsaCredentialSpec": "211", - "runAsUserName": "212" - }, - "runAsUser": -6576869501326512452, - "runAsGroup": -8419423421380299597, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "$MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫" - }, - "tty": true - } - ], - "containers": [ - { - "name": "213", - "image": "214", - "command": [ - "215" - ], - "args": [ - "216" - ], - "workingDir": "217", - "ports": [ - { - "name": "218", - "hostPort": 62799871, - "containerPort": -775325416, - "protocol": "t莭琽§ć\\ ïì", - "hostIP": "219" - } - ], - "envFrom": [ - { - "prefix": "220", - "configMapRef": { - "name": "221", - "optional": false - }, - "secretRef": { - "name": "222", - "optional": false - } - } - ], - "env": [ - { - "name": "223", - "value": "224", - "valueFrom": { - "fieldRef": { - "apiVersion": "225", - "fieldPath": "226" - }, - "resourceFieldRef": { - "containerName": "227", - "resource": "228", - "divisor": "595" - }, - "configMapKeyRef": { - "name": "229", - "key": "230", - "optional": true - }, - "secretKeyRef": { - "name": "231", - "key": "232", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "N粕擓ƖHVe熼": "334" - }, - "requests": { - "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶": "388" - } - }, - "volumeMounts": [ - { - "name": "233", - "readOnly": true, - "mountPath": "234", - "subPath": "235", - "mountPropagation": "癃8鸖", - "subPathExpr": "236" - } - ], - "volumeDevices": [ - { - "name": "237", - "devicePath": "238" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "239" - ] - }, - "httpGet": { - "path": "240", - "port": -1654678802, - "host": "241", - "scheme": "毋", - "httpHeaders": [ - { - "name": "242", - "value": "243" - } - ] - }, - "tcpSocket": { - "port": 391562775, - "host": "244" - }, - "initialDelaySeconds": -775511009, - "timeoutSeconds": -832805508, - "periodSeconds": -228822833, - "successThreshold": -970312425, - "failureThreshold": -1213051101 - }, - "readinessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": -1905643191, - "host": "247", - "scheme": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": "250", - "host": "251" - }, - "initialDelaySeconds": 852780575, - "timeoutSeconds": -1252938503, - "periodSeconds": 893823156, - "successThreshold": -1980314709, - "failureThreshold": 571739592 - }, - "startupProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": -1334110502, - "host": "254", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "255", - "value": "256" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "257" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": 1943028037, - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": -1355476687, - "host": "267", - "scheme": "-Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "T 苧yñKJɐ扵G", - "imagePullPolicy": "û咡W\u003c敄lu|榝$î.Ȏ蝪ʜ5", - "securityContext": { - "capabilities": { - "add": [ - "E埄Ȁ朦 wƯ貾坢'" - ], - "drop": [ - "aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278", - "runAsUserName": "279" - }, - "runAsUser": -2270595441829602368, - "runAsGroup": -2408264753085021035, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "" - } - } - ], - "ephemeralContainers": [ - { - "name": "280", - "image": "281", - "command": [ - "282" - ], - "args": [ - "283" - ], - "workingDir": "284", - "ports": [ - { - "name": "285", - "hostPort": 1868683352, - "containerPort": -1137436579, - "protocol": "颶妧Ö闊", - "hostIP": "286" - } - ], - "envFrom": [ - { - "prefix": "287", - "configMapRef": { - "name": "288", - "optional": false - }, - "secretRef": { - "name": "289", - "optional": true - } - } - ], - "env": [ - { - "name": "290", - "value": "291", - "valueFrom": { - "fieldRef": { - "apiVersion": "292", - "fieldPath": "293" - }, - "resourceFieldRef": { - "containerName": "294", - "resource": "295", - "divisor": "381" - }, - "configMapKeyRef": { - "name": "296", - "key": "297", - "optional": true - }, - "secretKeyRef": { - "name": "298", - "key": "299", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "²sNƗ¸g": "50" - }, - "requests": { - "酊龨δ摖ȱğ_\u003c": "118" - } - }, - "volumeMounts": [ - { - "name": "300", - "readOnly": true, - "mountPath": "301", - "subPath": "302", - "mountPropagation": "ƺ蛜6Ɖ飴ɎiǨź", - "subPathExpr": "303" - } - ], - "volumeDevices": [ - { - "name": "304", - "devicePath": "305" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "306" - ] - }, - "httpGet": { - "path": "307", - "port": 865289071, - "host": "308", - "scheme": "iɥ嵐sC8", - "httpHeaders": [ - { - "name": "309", - "value": "310" - } - ] - }, - "tcpSocket": { - "port": -898536659, - "host": "311" - }, - "initialDelaySeconds": -1513284745, - "timeoutSeconds": 1258370227, - "periodSeconds": -414121491, - "successThreshold": -1862764022, - "failureThreshold": -300247800 - }, - "readinessProbe": { - "exec": { - "command": [ - "312" - ] - }, - "httpGet": { - "path": "313", - "port": 323903711, - "host": "314", - "scheme": "J", - "httpHeaders": [ - { - "name": "315", - "value": "316" - } - ] - }, - "tcpSocket": { - "port": "317", - "host": "318" - }, - "initialDelaySeconds": 657418949, - "timeoutSeconds": -992558278, - "periodSeconds": 287654902, - "successThreshold": -2062708879, - "failureThreshold": 215186711 - }, - "startupProbe": { - "exec": { - "command": [ - "319" - ] - }, - "httpGet": { - "path": "320", - "port": -1117254382, - "host": "321", - "scheme": "趐囨鏻砅邻爥蹔ŧOǨ", - "httpHeaders": [ - { - "name": "322", - "value": "323" - } - ] - }, - "tcpSocket": { - "port": "324", - "host": "325" - }, - "initialDelaySeconds": 2129989022, - "timeoutSeconds": -1699531929, - "periodSeconds": 1311843384, - "successThreshold": -1292310438, - "failureThreshold": 1502643091 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "326" - ] - }, - "httpGet": { - "path": "327", - "port": "328", - "host": "329", - "scheme": "幩šeSvEȤƏ埮pɵ", - "httpHeaders": [ - { - "name": "330", - "value": "331" - } - ] - }, - "tcpSocket": { - "port": "332", - "host": "333" - } - }, - "preStop": { - "exec": { - "command": [ - "334" - ] - }, - "httpGet": { - "path": "335", - "port": "336", - "host": "337", - "scheme": "ş", - "httpHeaders": [ - { - "name": "338", - "value": "339" - } - ] - }, - "tcpSocket": { - "port": "340", - "host": "341" - } - } - }, - "terminationMessagePath": "342", - "terminationMessagePolicy": "迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ", - "imagePullPolicy": "ņ", - "securityContext": { - "capabilities": { - "add": [ - "DŽ髐njʉBn(fǂǢ曣" - ], - "drop": [ - "ay" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "343", - "role": "344", - "type": "345", - "level": "346" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "347", - "gmsaCredentialSpec": "348", - "runAsUserName": "349" - }, - "runAsUser": 1958157659034146020, - "runAsGroup": -5996624450771474158, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "嗆u" - }, - "tty": true, - "targetContainerName": "350" - } - ], - "restartPolicy": "T[", - "terminationGracePeriodSeconds": -2738603156841903595, - "activeDeadlineSeconds": -8619192438821356882, - "dnsPolicy": "Ƶf", - "nodeSelector": { - "351": "352" - }, - "serviceAccountName": "353", - "serviceAccount": "354", - "automountServiceAccountToken": false, - "nodeName": "355", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "356", - "role": "357", - "type": "358", - "level": "359" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "360", - "gmsaCredentialSpec": "361", - "runAsUserName": "362" - }, - "runAsUser": -2781126825051715248, - "runAsGroup": -801152248124332545, - "runAsNonRoot": true, - "supplementalGroups": [ - 5255171395073905944 - ], - "fsGroup": 760480547754807445, - "sysctls": [ - { - "name": "363", - "value": "364" - } - ] - }, - "imagePullSecrets": [ - { - "name": "365" - } - ], - "hostname": "366", - "subdomain": "367", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "368", - "operator": "ǧĒzŔ瘍N", - "values": [ - "369" - ] - } - ], - "matchFields": [ - { - "key": "370", - "operator": "ƽ眝{æ盪泙", - "values": [ - "371" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 646133945, - "preference": { - "matchExpressions": [ - { - "key": "372", - "operator": "}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊", - "values": [ - "373" - ] - } - ], - "matchFields": [ - { - "key": "374", - "operator": "ʨIk(dŊiɢzĮ蛋I滞", - "values": [ - "375" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3.csh-3--Z1Tvw39FC": "rtSY.g._2F7.-_e..Or_-.3OHgt._6" - }, - "matchExpressions": [ - { - "key": "V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "382" - ], - "topologyKey": "383" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -855547676, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y": "f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5" - }, - "matchExpressions": [ - { - "key": "8.--w0_1V7", - "operator": "In", - "values": [ - "7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8" - ] - } - ] - }, - "namespaces": [ - "390" - ], - "topologyKey": "391" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33": "17ca-_p-y.eQZ9p_1" - }, - "matchExpressions": [ - { - "key": "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "398" - ], - "topologyKey": "399" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 808399187, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2": "CpS__.39g_.--_-_ve5.m_2_--XZx" - }, - "matchExpressions": [ - { - "key": "w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "406" - ], - "topologyKey": "407" - } - } - ] - } - }, - "schedulerName": "408", - "tolerations": [ - { - "key": "409", - "operator": "ƹ|", - "value": "410", - "effect": "料ȭzV镜籬ƽ", - "tolerationSeconds": 935587338391120947 - } - ], - "hostAliases": [ - { - "ip": "411", - "hostnames": [ - "412" - ] - } - ], - "priorityClassName": "413", - "priority": 1690570439, - "dnsConfig": { - "nameservers": [ - "414" - ], - "searches": [ - "415" - ], - "options": [ - { - "name": "416", - "value": "417" - } - ] - }, - "readinessGates": [ - { - "conditionType": "梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳" - } - ], - "runtimeClassName": "418", - "enableServiceLinks": true, - "preemptionPolicy": "eáNRNJ丧鴻Ŀ", - "overhead": { - "癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö": "607" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -137402083, - "topologyKey": "419", - "whenUnsatisfiable": "Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥", - "labelSelector": { - "matchLabels": { - "E--pT751": "mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X" - }, - "matchExpressions": [ - { - "key": "qW", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - }, - "strategy": { - "type": "荥ơ'禧ǵŊ)TiD¢ƿ媴h5", - "rollingUpdate": { - - } - }, - "minReadySeconds": 212061711, - "revisionHistoryLimit": -1092090658, - "rollbackTo": { - "revision": -318895959020904110 - }, - "progressDeadlineSeconds": 1109758199 - }, - "status": { - "observedGeneration": 1751238822830387407, - "replicas": -106050665, - "updatedReplicas": -929473748, - "readyReplicas": -1450995995, - "availableReplicas": 740158871, - "unavailableReplicas": -449319810, - "conditions": [ - { - "type": "", - "status": "'ƈoIǢ龞瞯å", - "lastUpdateTime": "2469-07-10T03:20:34Z", - "lastTransitionTime": "1970-05-16T01:44:00Z", - "reason": "426", - "message": "427" - } - ], - "collisionCount": 571778293 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.pb deleted file mode 100644 index 530dea71de1b9abd899fcce7207638a414bad7c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6343 zcmZ8l33wD$w(eU|h&4WGOUKu*XU1uJ290rUQFU*v%*+!aj2JO!KtOzB4S}#jA_)mZ z`96{WAz@2^tYk3>Bq6L>2!TKtlXRyWH^k)waTJx_+(sNnTn2gPc1M|S`uqA+)m_d# z=iGD8`OjTyWZ8HZFQl)|PG6C=IAcZDxEwhxJ$tS!@RQOrmu0M3p1vYmsFC@7h(|;~ z)QJ=~QWKF*?v!OoA&R6brXd-+CTT>X#>LMI-pb!xo1d9vd;H+0qlFt9Uajpzb4Kw< z7m$%Qnn$L<$mnCVdm*Cavnj9&2 zIbJFo;~ukc%4#vi(y(P&qJ>2~OSC3VTme&aEUaS7m^yoj@J9_R)~w0cN}jQD-h50% z7(LmVo?}@=dvvyyYKd4($zBBW@pMa>G!bT6SXuUjLLS3d7Mc-Xg;WWz!kDP@Rv9|R zEA>pAE2nEZHZqr}*?8$PoFhG}rD-7bidAaH;>FZhumT&RM$9z4WIi_LDJqsQbZa17 zt^|LOQ8u-O#(azy=g1%|Ru^UCxtN%s_p@0Ux~Yw$pq8SGmSSc;l4NCQ@*~rqR4|@s ziL)OCeIGMTVbtW+i?gz`oNqqBZ$~^wRDmO!lOwvDBSzw=2cPim_cV|@WSwdnk#)%g zkrYCRE*ZzV+Pt6ChkJ_=_{8;B_XIb7ccAfIG$)?ts3dSyPGfHb-slnsys1u(YVJ|q z9^am4)+TaPkq~nSs^@XkC_%Tw5L1W?pJ;M&ibOa?7EUMf-;Uxrg$Q4c;>W@Z6@KmA z?QOV!uzIj1Ww<7?<*>IW_1RSu9}LxZdiDg?b^Jk~eBx}+=3s4AsBG`VK!3Hr$6w+p z7#G}G(d zr)iSwjd#v|db9oev-QPsCFp;km)eJ3`S`_eqn2=TrUG(srn&=xQYNr9bqA_Jck{5C zX$ZFgg?*PL$+74At$%iu>|6iM%`RILx|4@Sne`AS5b6e^w4-0JW|cK-pb0$mL?8wM zVs@h6L9Z-9uPi(H=O;WEIkq9q*Ovn0WRif$e+64Q5+C*+$?#VN+dEHyM9@LmaAg49 z3LnIP4`Mpd86?6dI5H5KX)06VvL(WU5+KTWAZij2Eg6XZxa}M&MSKB*u*(L^s_=96 z&=_ysap2m8zz;FELc#<5{jAFnqN_9AiR8Q;nh4XDMC}UNxwd}&*Hq^(qU;D2>}-I- z2B?m*_ATc}gM%^?5zYSU#`V?37vK6J3+zO6d-WH6g)tv~2RUE_Wjaw4Iu!|2VB#tA zhv?VrN$fV(PTfovI0Hb`*a%HH7|+KMW*s6cP9Ulqh?WRMCzy2^_UqTb`IV#U%e~uT zZtuQ5JG|{+sPxo8>rm1Exdsmp9$>@G@sGlA&;f|ze2|B=2t*nnngDu3G-2-sv$ATc z&fA#Egn(fPl^n<&`=($VLW#qcG?{nsV^Tt$<-wghy%ketriV73WG9(YMYx}L1=dwg z4_5C8^i)1MSZa9>O$_eZGtS@Z-{wjkXbrFHi4HZ4WYC{bYDb_NRX{bWCXNnO7aEb? z3IbnRYChtpL`8wP1bziMQ5X|%vwwc{hmS{m8*E1u*&P==yg8961(6B}h0Ww)VC9yJ zCy>*|niPA3uV%zZj(?rG^5wr`&hXj?S9Y+s>nNe}~|!DueF6Yq;Fscht-3>i7 z-8~lj^8>YqXN@1~4WDcQWbm7u$j;Me_W25wp`DS^gTDzJSm$kwt;N*R{#`Adsin(H zfRL5H9PA71Xq@$jVEOuGtDX51lTP0v+XRLye_@6Gz5|YFcLo>ia|6j)cpaJV%53+9C&fmVqhZ z1QH0jK-dw{*%8q-*I$pVi_{)|wf_=IKrG8mC@-$6x%xxVnfFk#Ep-f=!(3iB*c@{m zvTZ`PQe>-P!Hp0}xFu>TBEteBuW(MAkbQ#mh_AUpjCyxasd- ze8uu@9EHRQL`ecWQw=Y9);7JJ2Vi_%g)nyvqMK>otU*4Yv;M z$n)$9Rc%dS(@en$9pG8Fc~6CE>z*5I3GHqVc2z^4E(A@f>+ZPA)b7^pJ4(%IxV+i3>%G{7DBinl6gd zRswpZ)21xU7A;NCc|23Z*$Wma;=H*t@+=sdi!(&Snl%GICQ=K_Yb;}uHCwcjEDJwA z|3?%ErUEbkgbG(s{N)!ngkw7^e1!P75x))b>3}YCxRh#GmY15?&?Iv%P6x~?17^iJ1_lVKs>TX=ZdRT;E@_e>&X|suB#TdF zS&wC8QpH*$j9p;ONde6ODvOgrL=ZjQT1G_CGO{q%ExOvm$*S-W&l@7c!RER2)ph$84DPRB`<3b)Jpyt&xQ#B0R#C+3)$mMpB`pIMV> zJd3jyfTjy`@sd2S4TIy$utaDYFk42_S-G-Q&7pJQX^zXDD9(avLAAu0GG6(l2!LJE z#PnyEs*|CHz~byFSX?UV;xY@*0<3oHq>S{el#J{sXlIf`0HJ`MT2TBOAD+yQ6Y3BT zC}b-C0L9CvE?X^%Vy=~qEm0K}DK%GFI0;NB;?>&xG(45Lj)flvmwhO6I@CYZTnK$& zH7h4w6_;BC%s+e1YGDE| z5H30}e@ft3YoNI%`=P+r{AvCshAUKAPiBxy(;2Ri0j2{n6Ky08YNyn-d|YgC z{C$+8tM-$(V(Hp-z4WvFqY}P3@^*PFtxC-U*FGJ=650IZ*z%^32y6{WU?}CSj>EmN zl?~ZF>P&TDfAzi5WerH>vO#a41{sV1Evmh8b4&in-n@M6wUW`Uw?Es|Fgl^};E@+b zP{WrOx4scuHSGxEXGWJbi7+0PHDg)nVAGZU8wf@=75D8+yoZM>f+wry1d3~ddLX9Q~BY-{%3-lYkgbt{0-sW#&E%oi5cU9 zZFLKBpY~LFPG0Wamsf@O1aOhxdiu^(Jr(XM^tZ!>Mrd7`=eRjsK6R?E#9xnBdHaF| z6~28VctL{wBobseB7uJp$#k9k+nXo0b2gH}!iDa*oeSk9$YEzPb=; zjyX`maL0?UBB{NkW?mbzbs}&~MFJ+?VBX9~d2OiUfcI2F*ZGFx z=Brn)-5Ral6dB}IWHJDeMW#M9TvysM>KwWY*vR0mimW=}2q~-%Q)K--vVDl|uxi0~Hv~=W!OV$mXUKVQZNlFXk7l!t9`3{6Cw}#gjKmPb& zwBFDpy@cC|;_J?x>W`guCXea7$JaL48r-@ioPP+G?wc@tDEW_}J=?wAq2{h|<+0%I zz3yjt2ttz~t9!}re(=EH-|nsX@Q89NsuA&pDb&on6U`Lu(j&phaVTk*+K%( zJv%F!67MEh%(Ap;kYscVvrx`%wnP9Fmiff2HN6vl_J6-OdMVfj7EvE@UAXYL;K}cSJUn zMEctXw+(a$%PM>wLk-p+Sm1?nIvIS2N)ijaRDz<6N+eP6o(S)*)x5=#=5GJC#lvl$ z69hVFDirF`SWMwCLM=G{v7qbdimX3>lk2m>p%by9KcVES4~k+nqqM30<1b>Za~4Ah z!ptEPVJv&l=n;GW#p5;6fJ|k$lLf6<7X(2nYd2yQl_AAZsK7mMojT4rPHeo`5|hUD zby0aSO1M(r(>4-|E5CbXL0UQDpNOsnCAS6)q2wMZ;3yQ{@NK&92pr$%X-uDPTEQ=o(^5Y|Eg8Zhyp>}KLq^(U4T(mkbchv;dDabPeDZXj-O zfLc0^Dp09Wg{Ba>A00r+Hw7v;u3|xvGN3^j(4fjswN@-B z5{PQC0?ROdsb$R{!oqo zU^Hk_34EJMYA4!+_-A5UY63b1v&OCrcGSG^$&I8$iR^ZUdrAYl+alZhLN9EH6!e8Q z?F}E_S#wO`0`sZhjR7$hOXR{@XpzfDq~AX zJBtQhz8MCqlKXDn8Q!|r+jw87rFHnIr{w+_izf{_^1C|DdZTp?f(IbR5D@! diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.yaml b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.yaml deleted file mode 100644 index 544403c3f..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Deployment.yaml +++ /dev/null @@ -1,960 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: 212061711 - progressDeadlineSeconds: 1109758199 - replicas: 896585016 - revisionHistoryLimit: -1092090658 - rollbackTo: - revision: -318895959020904110 - selector: - matchExpressions: - - key: 50-u--25cu87--r7p-w1e67-8pj5t-kl-v0q6b68--nu5oii38fn-8.629b-jd-8c45-0-8--6n--w0--w---196g8d--iv1-5--5ht-a-29--0qso796/3___47._49pIB_o61ISU4--A_.XK_._M99 - operator: Exists - matchLabels: - 74404d5---g8c2-k-91e.y5-g--58----0683-b-w7ld-6cs06xj-x5yv0wm-k18/M_-Nx.N_6-___._-.-W._AAn---v_-5-_8LXj: 6-4_WE-_JTrcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--1 - strategy: - rollingUpdate: {} - type: 荥ơ'禧ǵŊ)TiD¢ƿ媴h5 - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -2575298329142810753 - finalizers: - - "37" - generateName: "26" - generation: -8542870036622468681 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: 躢 - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: ƶȤ^} - resourceVersion: "1736621709629422270" - selfLink: "28" - uid: ?Qȫş - spec: - activeDeadlineSeconds: -8619192438821356882 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "372" - operator: '}Ñ蠂Ü[ƛ^輅9ɛ棕ƈ眽炊' - values: - - "373" - matchFields: - - key: "374" - operator: ʨIk(dŊiɢzĮ蛋I滞 - values: - - "375" - weight: 646133945 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "368" - operator: ǧĒzŔ瘍N - values: - - "369" - matchFields: - - key: "370" - operator: ƽ眝{æ盪泙 - values: - - "371" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8.--w0_1V7 - operator: In - values: - - 7--p9.-_0R.-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_8 - matchLabels: - w--162-gk2-99v22.g-65m8-1x129-9d8-s7-t7--336-11k9-8609a-e0--1----v8-4--558n1asz5/BD8.TS-jJ.Ys_Mop34_y: f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J5 - namespaces: - - "390" - topologyKey: "391" - weight: -855547676 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: V.-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B__-Pd - operator: Exists - matchLabels: - 3.csh-3--Z1Tvw39FC: rtSY.g._2F7.-_e..Or_-.3OHgt._6 - namespaces: - - "382" - topologyKey: "383" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w_-r75--_-A-o-__y__._12..wrbW_E..24-O._.v._9-czf - operator: DoesNotExist - matchLabels: - 3-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G2: CpS__.39g_.--_-_ve5.m_2_--XZx - namespaces: - - "406" - topologyKey: "407" - weight: 808399187 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81 - operator: DoesNotExist - matchLabels: - 4-m_0-m-6Sp_N-S..O-BZ..6-1.S-B33: 17ca-_p-y.eQZ9p_1 - namespaces: - - "398" - topologyKey: "399" - automountServiceAccountToken: false - containers: - - args: - - "216" - command: - - "215" - env: - - name: "223" - value: "224" - valueFrom: - configMapKeyRef: - key: "230" - name: "229" - optional: true - fieldRef: - apiVersion: "225" - fieldPath: "226" - resourceFieldRef: - containerName: "227" - divisor: "595" - resource: "228" - secretKeyRef: - key: "232" - name: "231" - optional: false - envFrom: - - configMapRef: - name: "221" - optional: false - prefix: "220" - secretRef: - name: "222" - optional: false - image: "214" - imagePullPolicy: û咡W<敄lu|榝$î.Ȏ蝪ʜ5 - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - tcpSocket: - host: "264" - port: 1943028037 - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: -1355476687 - scheme: -Ɂ圯W:ĸ輦唊#v铿ʩȂ4ē鐭#嬀ơ - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "239" - failureThreshold: -1213051101 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "240" - port: -1654678802 - scheme: 毋 - initialDelaySeconds: -775511009 - periodSeconds: -228822833 - successThreshold: -970312425 - tcpSocket: - host: "244" - port: 391562775 - timeoutSeconds: -832805508 - name: "213" - ports: - - containerPort: -775325416 - hostIP: "219" - hostPort: 62799871 - name: "218" - protocol: t莭琽§ć\ ïì - readinessProbe: - exec: - command: - - "245" - failureThreshold: 571739592 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "246" - port: -1905643191 - scheme: Ǖɳɷ9Ì崟¿瘦ɖ緕 - initialDelaySeconds: 852780575 - periodSeconds: 893823156 - successThreshold: -1980314709 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1252938503 - resources: - limits: - N粕擓ƖHVe熼: "334" - requests: - 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶: "388" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - E埄Ȁ朦 wƯ貾坢' - drop: - - aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - privileged: false - procMount: "" - readOnlyRootFilesystem: true - runAsGroup: -2408264753085021035 - runAsNonRoot: true - runAsUser: -2270595441829602368 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - runAsUserName: "279" - startupProbe: - exec: - command: - - "252" - failureThreshold: -1008070934 - httpGet: - host: "254" - httpHeaders: - - name: "255" - value: "256" - path: "253" - port: -1334110502 - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "257" - port: 622267234 - timeoutSeconds: 809006670 - terminationMessagePath: "272" - terminationMessagePolicy: T 苧yñKJɐ扵G - volumeDevices: - - devicePath: "238" - name: "237" - volumeMounts: - - mountPath: "234" - mountPropagation: 癃8鸖 - name: "233" - readOnly: true - subPath: "235" - subPathExpr: "236" - workingDir: "217" - dnsConfig: - nameservers: - - "414" - options: - - name: "416" - value: "417" - searches: - - "415" - dnsPolicy: Ƶf - enableServiceLinks: true - ephemeralContainers: - - args: - - "283" - command: - - "282" - env: - - name: "290" - value: "291" - valueFrom: - configMapKeyRef: - key: "297" - name: "296" - optional: true - fieldRef: - apiVersion: "292" - fieldPath: "293" - resourceFieldRef: - containerName: "294" - divisor: "381" - resource: "295" - secretKeyRef: - key: "299" - name: "298" - optional: false - envFrom: - - configMapRef: - name: "288" - optional: false - prefix: "287" - secretRef: - name: "289" - optional: true - image: "281" - imagePullPolicy: ņ - lifecycle: - postStart: - exec: - command: - - "326" - httpGet: - host: "329" - httpHeaders: - - name: "330" - value: "331" - path: "327" - port: "328" - scheme: 幩šeSvEȤƏ埮pɵ - tcpSocket: - host: "333" - port: "332" - preStop: - exec: - command: - - "334" - httpGet: - host: "337" - httpHeaders: - - name: "338" - value: "339" - path: "335" - port: "336" - scheme: ş - tcpSocket: - host: "341" - port: "340" - livenessProbe: - exec: - command: - - "306" - failureThreshold: -300247800 - httpGet: - host: "308" - httpHeaders: - - name: "309" - value: "310" - path: "307" - port: 865289071 - scheme: iɥ嵐sC8 - initialDelaySeconds: -1513284745 - periodSeconds: -414121491 - successThreshold: -1862764022 - tcpSocket: - host: "311" - port: -898536659 - timeoutSeconds: 1258370227 - name: "280" - ports: - - containerPort: -1137436579 - hostIP: "286" - hostPort: 1868683352 - name: "285" - protocol: 颶妧Ö闊 - readinessProbe: - exec: - command: - - "312" - failureThreshold: 215186711 - httpGet: - host: "314" - httpHeaders: - - name: "315" - value: "316" - path: "313" - port: 323903711 - scheme: J - initialDelaySeconds: 657418949 - periodSeconds: 287654902 - successThreshold: -2062708879 - tcpSocket: - host: "318" - port: "317" - timeoutSeconds: -992558278 - resources: - limits: - ²sNƗ¸g: "50" - requests: - 酊龨δ摖ȱğ_<: "118" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - DŽ髐njʉBn(fǂǢ曣 - drop: - - ay - privileged: false - procMount: 嗆u - readOnlyRootFilesystem: true - runAsGroup: -5996624450771474158 - runAsNonRoot: false - runAsUser: 1958157659034146020 - seLinuxOptions: - level: "346" - role: "344" - type: "345" - user: "343" - windowsOptions: - gmsaCredentialSpec: "348" - gmsaCredentialSpecName: "347" - runAsUserName: "349" - startupProbe: - exec: - command: - - "319" - failureThreshold: 1502643091 - httpGet: - host: "321" - httpHeaders: - - name: "322" - value: "323" - path: "320" - port: -1117254382 - scheme: 趐囨鏻砅邻爥蹔ŧOǨ - initialDelaySeconds: 2129989022 - periodSeconds: 1311843384 - successThreshold: -1292310438 - tcpSocket: - host: "325" - port: "324" - timeoutSeconds: -1699531929 - targetContainerName: "350" - terminationMessagePath: "342" - terminationMessagePolicy: 迮ƙIJ嘢4ʗN,丽饾| 鞤ɱďW賁Ěɭ - tty: true - volumeDevices: - - devicePath: "305" - name: "304" - volumeMounts: - - mountPath: "301" - mountPropagation: ƺ蛜6Ɖ飴ɎiǨź - name: "300" - readOnly: true - subPath: "302" - subPathExpr: "303" - workingDir: "284" - hostAliases: - - hostnames: - - "412" - ip: "411" - hostNetwork: true - hostname: "366" - imagePullSecrets: - - name: "365" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: false - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "650" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: true - envFrom: - - configMapRef: - name: "155" - optional: true - prefix: "154" - secretRef: - name: "156" - optional: true - image: "148" - imagePullPolicy: 罁胾^拜Ȍzɟ踡肒Ao/樝fw[Řż丩 - lifecycle: - postStart: - exec: - command: - - "192" - httpGet: - host: "194" - httpHeaders: - - name: "195" - value: "196" - path: "193" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - tcpSocket: - host: "197" - port: 424236719 - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: -1131820775 - scheme: Ƿ裚瓶釆Ɗ+j忊 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "173" - failureThreshold: -1113628381 - httpGet: - host: "175" - httpHeaders: - - name: "176" - value: "177" - path: "174" - port: -152585895 - scheme: E@Ȗs«ö - initialDelaySeconds: 1843758068 - periodSeconds: 1702578303 - successThreshold: -1565157256 - tcpSocket: - host: "178" - port: 1135182169 - timeoutSeconds: -1967469005 - name: "147" - ports: - - containerPort: 1403721475 - hostIP: "153" - hostPort: -606111218 - name: "152" - protocol: ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - readinessProbe: - exec: - command: - - "179" - failureThreshold: -1167888910 - httpGet: - host: "181" - httpHeaders: - - name: "182" - value: "183" - path: "180" - port: 386652373 - scheme: ʙ嫙& - initialDelaySeconds: -802585193 - periodSeconds: 1944205014 - successThreshold: -2079582559 - tcpSocket: - host: "185" - port: "184" - timeoutSeconds: 1901330124 - resources: - limits: - "": "84" - requests: - ɖȃ賲鐅臬dH巧壚tC十Oɢ: "517" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - "" - drop: - - ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - privileged: false - procMount: $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫 - readOnlyRootFilesystem: true - runAsGroup: -8419423421380299597 - runAsNonRoot: false - runAsUser: -6576869501326512452 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - runAsUserName: "212" - startupProbe: - exec: - command: - - "186" - failureThreshold: 208045354 - httpGet: - host: "188" - httpHeaders: - - name: "189" - value: "190" - path: "187" - port: 804417065 - scheme: Ŵ廷s{Ⱦdz@ - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "191" - port: 406308963 - timeoutSeconds: 2026784878 - terminationMessagePath: "205" - terminationMessagePolicy: 焗捏 - tty: true - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: "" - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "355" - nodeSelector: - "351": "352" - overhead: - 癜鞤A馱z芀¿l磶Bb偃礳Ȭ痍脉PPö: "607" - preemptionPolicy: eáNRNJ丧鴻Ŀ - priority: 1690570439 - priorityClassName: "413" - readinessGates: - - conditionType: 梑ʀŖ鱓;鹡鑓侅闍ŏŃŋŏ}ŀ姳 - restartPolicy: T[ - runtimeClassName: "418" - schedulerName: "408" - securityContext: - fsGroup: 760480547754807445 - runAsGroup: -801152248124332545 - runAsNonRoot: true - runAsUser: -2781126825051715248 - seLinuxOptions: - level: "359" - role: "357" - type: "358" - user: "356" - supplementalGroups: - - 5255171395073905944 - sysctls: - - name: "363" - value: "364" - windowsOptions: - gmsaCredentialSpec: "361" - gmsaCredentialSpecName: "360" - runAsUserName: "362" - serviceAccount: "354" - serviceAccountName: "353" - shareProcessNamespace: false - subdomain: "367" - terminationGracePeriodSeconds: -2738603156841903595 - tolerations: - - effect: 料ȭzV镜籬ƽ - key: "409" - operator: ƹ| - tolerationSeconds: 935587338391120947 - value: "410" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: qW - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - E--pT751: mV__1-wv3UDf.-4D-r.-F__r.oh..2_uGGP..X - maxSkew: -137402083 - topologyKey: "419" - whenUnsatisfiable: Ȩç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥 - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: 912004803 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: '|@?鷅bȻN' - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 榱*Gưoɘ檲 - readOnly: true - azureFile: - readOnly: true - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: 1593906314 - items: - - key: "99" - mode: 195263908 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: 824682619 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1569992019 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "660" - resource: "92" - emptyDir: - medium: Xŋ朘瑥A徙ɶɊł/擇ɦĽ胚O醔ɍ厶耈 - sizeLimit: "473" - fc: - fsType: "94" - lun: -1740986684 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - readOnly: true - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1188153605 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - readOnly: true - hostPath: - path: "43" - type: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - iscsi: - chapAuthDiscovery: true - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 994527057 - portals: - - "60" - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - readOnly: true - volumeID: "128" - projected: - defaultMode: -1334904807 - sources: - - configMap: - items: - - key: "124" - mode: 2063799569 - path: "125" - name: "123" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 173030157 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "106" - resource: "122" - secret: - items: - - key: "116" - mode: -323584340 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: 8357931971650847566 - path: "127" - quobyte: - group: "108" - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 332383000 - items: - - key: "52" - mode: -547518679 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" -status: - availableReplicas: 740158871 - collisionCount: 571778293 - conditions: - - lastTransitionTime: "1970-05-16T01:44:00Z" - lastUpdateTime: "2469-07-10T03:20:34Z" - message: "427" - reason: "426" - status: '''ƈoIǢ龞瞯å' - type: "" - observedGeneration: 1751238822830387407 - readyReplicas: -1450995995 - replicas: -106050665 - unavailableReplicas: -449319810 - updatedReplicas: -929473748 diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.json deleted file mode 100644 index 6d3898065..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "DeploymentRollback", - "apiVersion": "extensions/v1beta1", - "name": "2", - "updatedAnnotations": { - "3": "4" - }, - "rollbackTo": { - "revision": 4518808233936994290 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.DeploymentRollback.pb deleted file mode 100644 index 00901c52c3285fcaea35800eb0ad3f6555071f73..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75 zcmd0{C}!Z&;1Wu$C`rvL&dkp%)-N+mN-aq=6cTbtEy&5Q%uUTJ3ChpONlHx4782)T eG!kOtVl)d#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6xe{Rlh z#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`zE`tSQ z5tE@w6_cT97o$Evv z;@|`VGKYY06d^@HQ9y)44nYKj0^*RJ12;~b9VHij18+(rU)Zp30ZH8_GVIEp_{?PHm}GuM~#%Eg`x8HdB`Oe<%&eLmO-Ma#- zdzXK_^YcdX(e8(jzu123@h_L|oeDPiiLO1_8KX#H*IC#&dZH5b`1z z-}u)Ow!C`P0Z=k(^Azx72V}CmWE291CyE2i%}@r?RMcWe z8omm&h5OWT zL^Ma_cfmm*F#W^GwrIA)XsWach6s)~izx`~cfw-1sn<=BBrzsr$eoYo=_Dv5=)Fgk zF~SDG0xa@sopmzG>eyL0ZZC+yA;<6(keR{sJgfp$YMjN~%324TkO~n)qIF0^rX6*e z1`wk3l>Pi%s}yHj-T(Mc9S{i}*a>Z>Zcd74MB>pU`}(AKY>E4p_{KW3sh|as?|WP# zsE$kC^`SHNs>t3o>R>v>GrnvS0D!>yt?oFdgA!bl%mm7?2KkfZb@udJTB27nVB^8F= f;?ddT7&pe5agGVkncjc*`h(rxosXs_rYHUdJ-2}p diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.NetworkPolicy.yaml b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.NetworkPolicy.yaml deleted file mode 100644 index cb934819b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.NetworkPolicy.yaml +++ /dev/null @@ -1,87 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: NetworkPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - egress: - - ports: - - protocol: ɗ - to: - - ipBlock: - cidr: "51" - except: - - "52" - namespaceSelector: - matchExpressions: - - key: 4a--0o8m3-d0w7p8vl-1z---883d-v3j4-7y-5.9-q390/niTl.1-.VT--5mj_9.M.134-5-.q6H5 - operator: NotIn - values: - - 7-.p_3_J_SA995IKCR.sm - matchLabels: - P____K_1: Xfr.4_.-_-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--21kv - podSelector: - matchExpressions: - - key: b_2_-8-----yY - operator: NotIn - values: - - M24 - matchLabels: - ? hg1-o-p665--4-j8---t6-r7---d--uml-8rdh6844-i-18-850-4s2o8.x4--s--xu-d42--clo90---461v-07r--0---8-30iu/s6.0_OHz_.B-.-_w_--.8_r_N-.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.NX - : f-AH-Q.GM72_-c-.-.6--3-___t-8 - ingress: - - from: - - ipBlock: - cidr: "37" - except: - - "38" - namespaceSelector: - matchExpressions: - - key: 2_28.-.7_8B.HF-U-_ik_--DSXr.n-A9..9__Y-H-Mqpt._.-_..051 - operator: DoesNotExist - matchLabels: - g--5.-Z3P__D__6t-2.-_-8wE._._3.-.83_iq_-y.-25C.A-7: 9dfn3Y8d_0_.---M_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33--.8U.-.5-R - podSelector: - matchExpressions: - - key: 3--2---u--80k1-57----1-x1z-4/r.i1_7z.WH-.._Td2-N_Y.t--_0..--_6V - operator: Exists - matchLabels: - yg--79-e-a74bc-v--0jjy45-17-053.zyyms7-tk1po6c-m61733-x-2v4r--5-xgc3-yz-7-x--c0-w5-6r/78A6.6O: 17_.8CnT - ports: - - protocol: Ǐ2啗塧ȱ蓿彭聡A3fƻfʣ - podSelector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - 8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4 - policyTypes: - - ĨǔvÄ diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.json deleted file mode 100644 index cb4527d3d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "kind": "PodSecurityPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "privileged": true, - "defaultAddCapabilities": [ - "qJ枊a8衍`Ĩ" - ], - "requiredDropCapabilities": [ - ".蘯6ċV夸" - ], - "allowedCapabilities": [ - "ɑ" - ], - "volumes": [ - "ʤ脽ěĂ凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - ], - "hostNetwork": true, - "hostPorts": [ - { - "min": -321835912, - "max": 1575426699 - } - ], - "hostIPC": true, - "seLinux": { - "rule": "S", - "seLinuxOptions": { - "user": "19", - "role": "20", - "type": "21", - "level": "22" - } - }, - "runAsUser": { - "rule": "+½H牗洝尿彀亞螩", - "ranges": [ - { - "min": 8901768137137123048, - "max": -90233536926144532 - } - ] - }, - "runAsGroup": { - "rule": "³;Ơ歿:狞夌碕ʂɭîcP", - "ranges": [ - { - "min": -8679730194918865907, - "max": 2607109693095207331 - } - ] - }, - "supplementalGroups": { - "rule": "ɖ橙9", - "ranges": [ - { - "min": -5498021643263379468, - "max": -236027028483226507 - } - ] - }, - "fsGroup": { - "rule": "UɦOŖ", - "ranges": [ - { - "min": 8572633303645749270, - "max": 3058121789713366904 - } - ] - }, - "defaultAllowPrivilegeEscalation": false, - "allowPrivilegeEscalation": false, - "allowedHostPaths": [ - { - "pathPrefix": "23", - "readOnly": true - } - ], - "allowedFlexVolumes": [ - { - "driver": "24" - } - ], - "allowedCSIDrivers": [ - { - "name": "25" - } - ], - "allowedUnsafeSysctls": [ - "26" - ], - "forbiddenSysctls": [ - "27" - ], - "allowedProcMountTypes": [ - "ǣ偐圠=l畣潁" - ], - "runtimeClass": { - "allowedRuntimeClassNames": [ - "28" - ], - "defaultRuntimeClassName": "29" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.pb deleted file mode 100644 index d15acee44d7b34e92f611a10ad4f07f3ac42420c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 582 zcmV-M0=fNbICB6BCkhf}cywiMb7^mGb1!x=Vr6t;F%l6_Z)8(tV|8+Aba_y3Y-wY8 z5|RW8sR0TBG774F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34h za6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA# z#frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#) zeddvYDCW7B#D-lO0x>r-0x>ue;{pf)5)E-m=AMdSIOw5`V8o~z3ohuGuQtSsR^_C) zA_B>gDj>?F=!Ct*o5X_UhnMJ+kHw1Un~KDVdFQu<=eU(V#l0{AIuQu?*u>`k|NsC0 z0T7F|obLrd07wB+6$$}U5)cXkF*yiy zy@2Gpp6H&b5)}yO-OIPo-rK}`5bV#wrMRNo-~It&APNS_mgcFMIT98K^zVVspU%eF zvjGtGi1*I0)!p3u0csu!235(XPsNrJ6bP1p^sAndhx~RB`2PIein6GIL5XYnCfso~#pgnBom80gpfwBQJ3L3(* zJI0{qt-m_wi=O4AjOU`2%7V$Q!>(gc5)}xIh=k4m>)FMJ0T83ZtJ}Vgl$RvB0R##H UGBv^h2nqr+I1&OfIT`>W07~WYqW}N^ diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.yaml b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.yaml deleted file mode 100644 index 155e0ae4a..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.PodSecurityPolicy.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: PodSecurityPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - allowPrivilegeEscalation: false - allowedCSIDrivers: - - name: "25" - allowedCapabilities: - - ɑ - allowedFlexVolumes: - - driver: "24" - allowedHostPaths: - - pathPrefix: "23" - readOnly: true - allowedProcMountTypes: - - ǣ偐圠=l畣潁 - allowedUnsafeSysctls: - - "26" - defaultAddCapabilities: - - qJ枊a8衍`Ĩ - defaultAllowPrivilegeEscalation: false - forbiddenSysctls: - - "27" - fsGroup: - ranges: - - max: 3058121789713366904 - min: 8572633303645749270 - rule: UɦOŖ - hostIPC: true - hostNetwork: true - hostPorts: - - max: 1575426699 - min: -321835912 - privileged: true - requiredDropCapabilities: - - .蘯6ċV夸 - runAsGroup: - ranges: - - max: 2607109693095207331 - min: -8679730194918865907 - rule: ³;Ơ歿:狞夌碕ʂɭîcP - runAsUser: - ranges: - - max: -90233536926144532 - min: 8901768137137123048 - rule: +½H牗洝尿彀亞螩 - runtimeClass: - allowedRuntimeClassNames: - - "28" - defaultRuntimeClassName: "29" - seLinux: - rule: S - seLinuxOptions: - level: "22" - role: "20" - type: "21" - user: "19" - supplementalGroups: - ranges: - - max: -236027028483226507 - min: -5498021643263379468 - rule: ɖ橙9 - volumes: - - ʤ脽ěĂ凗蓏Ŋ蛊ĉy緅縕>Ž diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.json deleted file mode 100644 index c89820874..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.json +++ /dev/null @@ -1,1397 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": 896585016, - "minReadySeconds": -1971381490, - "selector": { - "matchLabels": { - "g8c2-k-912e5-c-e63-n-3snh-z--3uy5-----578/s.X8u4_.l.wV--__-Nx.N_6-___._-.-W._AAn---v_-5-_8LXP-o-9..1l-5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "template": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ʬ", - "resourceVersion": "7336814125345800857", - "generation": -6617020301190572172, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -152893758082474859, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "ɖgȏ哙ȍȂ揲ȼDDŽLŬp:", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "ƅS·Õüe0ɔȖ脵鴈Ō", - "apiVersion": "40", - "fieldsType": "41" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "42", - "hostPath": { - "path": "43", - "type": "6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ" - }, - "emptyDir": { - "medium": "彭聡A3fƻfʣ", - "sizeLimit": "115" - }, - "gcePersistentDisk": { - "pdName": "44", - "fsType": "45", - "partition": -1499132872 - }, - "awsElasticBlockStore": { - "volumeID": "46", - "fsType": "47", - "partition": -762366823, - "readOnly": true - }, - "gitRepo": { - "repository": "48", - "revision": "49", - "directory": "50" - }, - "secret": { - "secretName": "51", - "items": [ - { - "key": "52", - "path": "53", - "mode": -104666658 - } - ], - "defaultMode": 372704313, - "optional": true - }, - "nfs": { - "server": "54", - "path": "55", - "readOnly": true - }, - "iscsi": { - "targetPortal": "56", - "iqn": "57", - "lun": 1655406148, - "iscsiInterface": "58", - "fsType": "59", - "readOnly": true, - "portals": [ - "60" - ], - "secretRef": { - "name": "61" - }, - "initiatorName": "62" - }, - "glusterfs": { - "endpoints": "63", - "path": "64" - }, - "persistentVolumeClaim": { - "claimName": "65", - "readOnly": true - }, - "rbd": { - "monitors": [ - "66" - ], - "image": "67", - "fsType": "68", - "pool": "69", - "user": "70", - "keyring": "71", - "secretRef": { - "name": "72" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "73", - "fsType": "74", - "secretRef": { - "name": "75" - }, - "options": { - "76": "77" - } - }, - "cinder": { - "volumeID": "78", - "fsType": "79", - "secretRef": { - "name": "80" - } - }, - "cephfs": { - "monitors": [ - "81" - ], - "path": "82", - "user": "83", - "secretFile": "84", - "secretRef": { - "name": "85" - } - }, - "flocker": { - "datasetName": "86", - "datasetUUID": "87" - }, - "downwardAPI": { - "items": [ - { - "path": "88", - "fieldRef": { - "apiVersion": "89", - "fieldPath": "90" - }, - "resourceFieldRef": { - "containerName": "91", - "resource": "92", - "divisor": "457" - }, - "mode": 1235524154 - } - ], - "defaultMode": -106644772 - }, - "fc": { - "targetWWNs": [ - "93" - ], - "lun": 441887498, - "fsType": "94", - "readOnly": true, - "wwids": [ - "95" - ] - }, - "azureFile": { - "secretName": "96", - "shareName": "97" - }, - "configMap": { - "name": "98", - "items": [ - { - "key": "99", - "path": "100", - "mode": -2039036935 - } - ], - "defaultMode": -460478410, - "optional": false - }, - "vsphereVolume": { - "volumePath": "101", - "fsType": "102", - "storagePolicyName": "103", - "storagePolicyID": "104" - }, - "quobyte": { - "registry": "105", - "volume": "106", - "readOnly": true, - "user": "107", - "group": "108", - "tenant": "109" - }, - "azureDisk": { - "diskName": "110", - "diskURI": "111", - "cachingMode": "HǺƶȤ^}穠", - "fsType": "112", - "readOnly": true, - "kind": "躢" - }, - "photonPersistentDisk": { - "pdID": "113", - "fsType": "114" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "115", - "items": [ - { - "key": "116", - "path": "117", - "mode": -1399063270 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "746" - }, - "mode": 926891073 - } - ] - }, - "configMap": { - "name": "123", - "items": [ - { - "key": "124", - "path": "125", - "mode": -1694464659 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "126", - "expirationSeconds": -7593824971107985079, - "path": "127" - } - } - ], - "defaultMode": -522879476 - }, - "portworxVolume": { - "volumeID": "128", - "fsType": "129" - }, - "scaleIO": { - "gateway": "130", - "system": "131", - "secretRef": { - "name": "132" - }, - "protectionDomain": "133", - "storagePool": "134", - "storageMode": "135", - "volumeName": "136", - "fsType": "137" - }, - "storageos": { - "volumeName": "138", - "volumeNamespace": "139", - "fsType": "140", - "readOnly": true, - "secretRef": { - "name": "141" - } - }, - "csi": { - "driver": "142", - "readOnly": false, - "fsType": "143", - "volumeAttributes": { - "144": "145" - }, - "nodePublishSecretRef": { - "name": "146" - } - } - } - ], - "initContainers": [ - { - "name": "147", - "image": "148", - "command": [ - "149" - ], - "args": [ - "150" - ], - "workingDir": "151", - "ports": [ - { - "name": "152", - "hostPort": -1896921306, - "containerPort": 715087892, - "protocol": "倱\u003c", - "hostIP": "153" - } - ], - "envFrom": [ - { - "prefix": "154", - "configMapRef": { - "name": "155", - "optional": false - }, - "secretRef": { - "name": "156", - "optional": false - } - } - ], - "env": [ - { - "name": "157", - "value": "158", - "valueFrom": { - "fieldRef": { - "apiVersion": "159", - "fieldPath": "160" - }, - "resourceFieldRef": { - "containerName": "161", - "resource": "162", - "divisor": "455" - }, - "configMapKeyRef": { - "name": "163", - "key": "164", - "optional": true - }, - "secretKeyRef": { - "name": "165", - "key": "166", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "/擇ɦĽ胚O醔ɍ厶耈 T": "618" - }, - "requests": { - "á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ": "372" - } - }, - "volumeMounts": [ - { - "name": "167", - "readOnly": true, - "mountPath": "168", - "subPath": "169", - "mountPropagation": "dʪīT捘ɍi縱ù墴1Rƥ", - "subPathExpr": "170" - } - ], - "volumeDevices": [ - { - "name": "171", - "devicePath": "172" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "173" - ] - }, - "httpGet": { - "path": "174", - "port": "175", - "host": "176", - "scheme": "ƴy綸_Ú8參遼ūPH炮", - "httpHeaders": [ - { - "name": "177", - "value": "178" - } - ] - }, - "tcpSocket": { - "port": "179", - "host": "180" - }, - "initialDelaySeconds": 741871873, - "timeoutSeconds": 446829537, - "periodSeconds": -1987044888, - "successThreshold": -1638339389, - "failureThreshold": 2053960192 - }, - "readinessProbe": { - "exec": { - "command": [ - "181" - ] - }, - "httpGet": { - "path": "182", - "port": -1903685915, - "host": "183", - "scheme": "ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬", - "httpHeaders": [ - { - "name": "184", - "value": "185" - } - ] - }, - "tcpSocket": { - "port": "186", - "host": "187" - }, - "initialDelaySeconds": 128019484, - "timeoutSeconds": 431781335, - "periodSeconds": -2130554644, - "successThreshold": 290736426, - "failureThreshold": -57352147 - }, - "startupProbe": { - "exec": { - "command": [ - "188" - ] - }, - "httpGet": { - "path": "189", - "port": "190", - "host": "191", - "scheme": "閝ȝ", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": "194", - "host": "195" - }, - "initialDelaySeconds": -2142865739, - "timeoutSeconds": -1179067190, - "periodSeconds": 1434408532, - "successThreshold": -566408554, - "failureThreshold": 1133369651 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": -1327537699, - "host": "198", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ĉş蝿ɖȃ賲鐅臬", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "imagePullPolicy": "k_瀹鞎sn芞QÄȻ", - "securityContext": { - "capabilities": { - "add": [ - "?" - ], - "drop": [ - "峧Y栲茇竛吲蚛隖" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217", - "runAsUserName": "218" - }, - "runAsUser": 7312518131318481396, - "runAsGroup": -7286288718856494813, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ʙ嫙\u0026" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "219", - "image": "220", - "command": [ - "221" - ], - "args": [ - "222" - ], - "workingDir": "223", - "ports": [ - { - "name": "224", - "hostPort": 1944205014, - "containerPort": -2079582559, - "protocol": "K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ", - "hostIP": "225" - } - ], - "envFrom": [ - { - "prefix": "226", - "configMapRef": { - "name": "227", - "optional": true - }, - "secretRef": { - "name": "228", - "optional": false - } - } - ], - "env": [ - { - "name": "229", - "value": "230", - "valueFrom": { - "fieldRef": { - "apiVersion": "231", - "fieldPath": "232" - }, - "resourceFieldRef": { - "containerName": "233", - "resource": "234", - "divisor": "901" - }, - "configMapKeyRef": { - "name": "235", - "key": "236", - "optional": false - }, - "secretKeyRef": { - "name": "237", - "key": "238", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "羭,铻OŤǢʭ嵔": "340" - }, - "requests": { - "TG;邪匾mɩC[ó瓧嫭塓烀罁胾^拜": "755" - } - }, - "volumeMounts": [ - { - "name": "239", - "mountPath": "240", - "subPath": "241", - "mountPropagation": "ʒ刽ʼn掏1ſ盷褎weLJèux榜", - "subPathExpr": "242" - } - ], - "volumeDevices": [ - { - "name": "243", - "devicePath": "244" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": "247", - "host": "248", - "scheme": "賃ɪ鐊瀑Ź9ǕLLȊ", - "httpHeaders": [ - { - "name": "249", - "value": "250" - } - ] - }, - "tcpSocket": { - "port": -26910286, - "host": "251" - }, - "initialDelaySeconds": 1214895765, - "timeoutSeconds": 1181519543, - "periodSeconds": 282592353, - "successThreshold": 377225334, - "failureThreshold": -1191434089 - }, - "readinessProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": "254", - "host": "255", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - }, - "initialDelaySeconds": -839281354, - "timeoutSeconds": 2035347577, - "periodSeconds": -819723498, - "successThreshold": -150133456, - "failureThreshold": 1507815593 - }, - "startupProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": 1684643131, - "host": "262", - "scheme": "飣奺Ȋ礶惇¸", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - }, - "initialDelaySeconds": -161753937, - "timeoutSeconds": -1578746609, - "periodSeconds": 1428207963, - "successThreshold": 790462391, - "failureThreshold": -822090785 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "267" - ] - }, - "httpGet": { - "path": "268", - "port": -421846800, - "host": "269", - "scheme": "zvt莭琽§", - "httpHeaders": [ - { - "name": "270", - "value": "271" - } - ] - }, - "tcpSocket": { - "port": -763687725, - "host": "272" - } - }, - "preStop": { - "exec": { - "command": [ - "273" - ] - }, - "httpGet": { - "path": "274", - "port": -1452676801, - "host": "275", - "scheme": "ȿ0矀Kʝ", - "httpHeaders": [ - { - "name": "276", - "value": "277" - } - ] - }, - "tcpSocket": { - "port": "278", - "host": "279" - } - } - }, - "terminationMessagePath": "280", - "terminationMessagePolicy": "\\p[", - "imagePullPolicy": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "securityContext": { - "capabilities": { - "add": [ - "À*f\u003c鴒翁杙Ŧ癃8" - ], - "drop": [ - "ɱJȉ罴" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "281", - "role": "282", - "type": "283", - "level": "284" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "285", - "gmsaCredentialSpec": "286", - "runAsUserName": "287" - }, - "runAsUser": -2706913289057230267, - "runAsGroup": -3689959065086680033, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅" - }, - "stdinOnce": true - } - ], - "ephemeralContainers": [ - { - "name": "288", - "image": "289", - "command": [ - "290" - ], - "args": [ - "291" - ], - "workingDir": "292", - "ports": [ - { - "name": "293", - "hostPort": 1853396726, - "containerPort": 1330271338, - "protocol": "逴", - "hostIP": "294" - } - ], - "envFrom": [ - { - "prefix": "295", - "configMapRef": { - "name": "296", - "optional": true - }, - "secretRef": { - "name": "297", - "optional": true - } - } - ], - "env": [ - { - "name": "298", - "value": "299", - "valueFrom": { - "fieldRef": { - "apiVersion": "300", - "fieldPath": "301" - }, - "resourceFieldRef": { - "containerName": "302", - "resource": "303", - "divisor": "709" - }, - "configMapKeyRef": { - "name": "304", - "key": "305", - "optional": false - }, - "secretKeyRef": { - "name": "306", - "key": "307", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "颐o": "230" - }, - "requests": { - "[+扴ȨŮ+朷Ǝ膯ljV": "728" - } - }, - "volumeMounts": [ - { - "name": "308", - "mountPath": "309", - "subPath": "310", - "mountPropagation": "ŕ-Ɂ圯W:ĸ輦唊#v铿", - "subPathExpr": "311" - } - ], - "volumeDevices": [ - { - "name": "312", - "devicePath": "313" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "314" - ] - }, - "httpGet": { - "path": "315", - "port": "316", - "host": "317", - "scheme": "屡ʁ", - "httpHeaders": [ - { - "name": "318", - "value": "319" - } - ] - }, - "tcpSocket": { - "port": -1554559634, - "host": "320" - }, - "initialDelaySeconds": 1718241831, - "timeoutSeconds": 550615941, - "periodSeconds": 1180971695, - "successThreshold": -1971944908, - "failureThreshold": 1742259603 - }, - "readinessProbe": { - "exec": { - "command": [ - "321" - ] - }, - "httpGet": { - "path": "322", - "port": -1620315711, - "host": "323", - "scheme": "ɐ扵", - "httpHeaders": [ - { - "name": "324", - "value": "325" - } - ] - }, - "tcpSocket": { - "port": "326", - "host": "327" - }, - "initialDelaySeconds": -1358663652, - "timeoutSeconds": 1543146222, - "periodSeconds": -527306221, - "successThreshold": 2098694289, - "failureThreshold": 1150925735 - }, - "startupProbe": { - "exec": { - "command": [ - "328" - ] - }, - "httpGet": { - "path": "329", - "port": "330", - "host": "331", - "scheme": "榝$î.Ȏ蝪ʜ5遰", - "httpHeaders": [ - { - "name": "332", - "value": "333" - } - ] - }, - "tcpSocket": { - "port": -1438286448, - "host": "334" - }, - "initialDelaySeconds": 834105836, - "timeoutSeconds": -1462219068, - "periodSeconds": -370386363, - "successThreshold": 1714588921, - "failureThreshold": -1246371817 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "335" - ] - }, - "httpGet": { - "path": "336", - "port": "337", - "host": "338", - "scheme": "跩aŕ翑", - "httpHeaders": [ - { - "name": "339", - "value": "340" - } - ] - }, - "tcpSocket": { - "port": "341", - "host": "342" - } - }, - "preStop": { - "exec": { - "command": [ - "343" - ] - }, - "httpGet": { - "path": "344", - "port": 1017803158, - "host": "345", - "scheme": "碔", - "httpHeaders": [ - { - "name": "346", - "value": "347" - } - ] - }, - "tcpSocket": { - "port": "348", - "host": "349" - } - } - }, - "terminationMessagePath": "350", - "terminationMessagePolicy": "Kƙ順\\E¦队偯J僳徥淳4揻-$ɽ丟", - "imagePullPolicy": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "securityContext": { - "capabilities": { - "add": [ - "ŧL²sNƗ¸gĩ餠籲磣Óƿ" - ], - "drop": [ - "\"冓鍓贯澔 ƺ蛜6" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "351", - "role": "352", - "type": "353", - "level": "354" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "355", - "gmsaCredentialSpec": "356", - "runAsUserName": "357" - }, - "runAsUser": 4353696140684277635, - "runAsGroup": 6057650398488995896, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "鰥Z龏´DÒȗ" - }, - "tty": true, - "targetContainerName": "358" - } - ], - "restartPolicy": "ɘɢ鬍熖B芭花ª瘡", - "terminationGracePeriodSeconds": 2666412258966278206, - "activeDeadlineSeconds": -8715915045560617563, - "dnsPolicy": "丆", - "nodeSelector": { - "359": "360" - }, - "serviceAccountName": "361", - "serviceAccount": "362", - "automountServiceAccountToken": false, - "nodeName": "363", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "364", - "role": "365", - "type": "366", - "level": "367" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "368", - "gmsaCredentialSpec": "369", - "runAsUserName": "370" - }, - "runAsUser": 2179199799235189619, - "runAsGroup": -779972051078659613, - "runAsNonRoot": false, - "supplementalGroups": [ - -7127205672279904050 - ], - "fsGroup": 7124276984274024394, - "sysctls": [ - { - "name": "371", - "value": "372" - } - ] - }, - "imagePullSecrets": [ - { - "name": "373" - } - ], - "hostname": "374", - "subdomain": "375", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "376", - "operator": "6x$1sȣ±p鋄5弢ȹ均i绝5哇芆", - "values": [ - "377" - ] - } - ], - "matchFields": [ - { - "key": "378", - "operator": "埮pɵ{WOŭW灬p", - "values": [ - "379" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 199049889, - "preference": { - "matchExpressions": [ - { - "key": "380", - "operator": "擭銆jʒǚ鍰\\縑", - "values": [ - "381" - ] - } - ], - "matchFields": [ - { - "key": "382", - "operator": "鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ", - "values": [ - "383" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS": "1Tvw39F_C-rtSY.g._2F7.-_e..r" - }, - "matchExpressions": [ - { - "key": "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1", - "operator": "NotIn", - "values": [ - "z" - ] - } - ] - }, - "namespaces": [ - "390" - ], - "topologyKey": "391" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -217760519, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6": "Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP" - }, - "matchExpressions": [ - { - "key": "3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "398" - ], - "topologyKey": "399" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7F3p2_-_AmD-.0AP.1": "A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n" - }, - "matchExpressions": [ - { - "key": "QZ9p_6.C.e", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "406" - ], - "topologyKey": "407" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1851436166, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3": "V0H2-.zHw.H__V.VT" - }, - "matchExpressions": [ - { - "key": "0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D", - "operator": "NotIn", - "values": [ - "txb__-ex-_1_-ODgC_1-_V" - ] - } - ] - }, - "namespaces": [ - "414" - ], - "topologyKey": "415" - } - } - ] - } - }, - "schedulerName": "416", - "tolerations": [ - { - "key": "417", - "operator": "堺ʣ", - "value": "418", - "effect": "ŽɣB矗E¸乾", - "tolerationSeconds": -3532804738923434397 - } - ], - "hostAliases": [ - { - "ip": "419", - "hostnames": [ - "420" - ] - } - ], - "priorityClassName": "421", - "priority": -1852730577, - "dnsConfig": { - "nameservers": [ - "422" - ], - "searches": [ - "423" - ], - "options": [ - { - "name": "424", - "value": "425" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅" - } - ], - "runtimeClassName": "426", - "enableServiceLinks": false, - "preemptionPolicy": "!ń1ċƹ|慼櫁色苆试揯遐", - "overhead": { - "4'ď曕椐敛n湙": "310" - }, - "topologySpreadConstraints": [ - { - "maxSkew": -150478704, - "topologyKey": "427", - "whenUnsatisfiable": ";鹡鑓侅闍ŏŃŋŏ}ŀ", - "labelSelector": { - "matchLabels": { - "p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i": "wvU" - }, - "matchExpressions": [ - { - "key": "4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W", - "operator": "In", - "values": [ - "2-.s_6O-5_7_-0w_--5-_.3--_9QWJ" - ] - } - ] - } - } - ] - } - } - }, - "status": { - "replicas": -330302940, - "fullyLabeledReplicas": 138911331, - "readyReplicas": 1613009760, - "availableReplicas": -1469601144, - "observedGeneration": 6703635170896137755, - "conditions": [ - { - "type": "ɡj瓇ɽ丿YƄZZ塖bʘ", - "status": "ɻ猶N嫡牿咸Ǻ潑鶋洅啶'ƈoIǢ龞瞯å", - "lastTransitionTime": "2469-07-10T03:20:34Z", - "reason": "434", - "message": "435" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.pb deleted file mode 100644 index 404ea71e29afaca8b998d85bffa02946f21b8d1d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6371 zcmZ8ld0bT2y`M9<^}f7>-loaCX+M@sZ9+-T^`3L?YLhmiF@(6qy>_|P1dS+200rsG zD~KSA2+E?Mh=8J~xB#-KK*BIELz}eC*1jxl5}mD0YSNe{n%KPGnIVavH-G%*-gD3S zo!@qTzwhsCG_q_$oFJy;W~ZcQZP=WiHFGOjo07eTh{BSTj7=M!T(dMKTkIi1I}#8T z5pyENh13M3(>n=~6{^UpVj8lcYqCaVX1wu_?XMP;A1ug7v@Px^IbT@R^y0ybX!R5U z=^`@LP8EXzfH=WvvA>Ndx^)lPbC!jie-sa$DUqO|}gS*n#S+8;}Ik_8y26P%$+40cm=$x_UW z#}cj08hLE#as}hrmbB_|5MzP4%*;xXR;tc&EOa8lPF2xPHK(2GE;}_6?Bl2Cw{*rd zgD8ZmOi>M4HbA>;r$1^cyd11Og1|Mk{Wp&P`)1b%H__^8f}P2tosqTtiNX_0y&s-b zr=4l8|MJzX_g4C=>%A4;?SaZp@1?n8JLY>%Wz0&jGet(+QB2RXGouXs09Kje-J?ZI zhkM<%?n^1Muf|&!+HpSIUE845I)-a ztI(N~dH%t|aBqv|J?gKm4YutYtEB$geg5WS-gDyJ!tMTnj!;4KY_@Ln;=1uxak3CY zi0b?{@KHp&qB{Ea*POrc1^iH)&Bcc`7}g#2;Y&3)qr)iSHW)Tw*mT-encgGVRU&>1 zC}^)T$6sD9f057p0y+9i-aLom&@2Hy0((_;pu_}t2A-|FB9|oP0!$vn7CQbXcS7sj=_`qU)x^=7O(=oaq2cM7sgU$zU$Kp(OBeRkr29 zDg#y-`gTMG@Qz`Kd?SNTsS`}7sCwLm?!7Neihc9ry)Q(SFGF|26c$_d z+UqYNr`=TIP=ei5_aacr1h%H`ur;6`3b31LhO{T;KUd*QZhY_57jd$iE|x zakduV2j2;wM4dpG3y5+8eTNULd{}cJKBgxCF(?qT6V2cbmf<+0Z|iy zXvskI#kQBwJ|vVPNQ}|o62A>=AO!)@9St|GUYQ6lBt9S{@K1&q*`2FTW#>0xh;l7y z#I(Ai#XbM&=lwCxC_l;~{HVfbsE+r`w*UEh)Itct6~?q!U+1UShAUoqu?~Tms2;oP z^H+%2Cdb{I{#dZ{ zz$3w;{;{gjPQG59^*CS8Su@%B69G1-3~T_5MX(2D;2FvkZhccG&fB?VDFdHVra>T2 zyzBhkaM%(T2u|Uf!NHCP!qpcSd5(;=jCc6Y*YL9rIY*o++`H`2ABDG{@b4N-^R>_U znY$}keawHd!{1yTEX)rM6od)~e;Fu0$QS6Unym57Ol}ycSD>>(5~h#u^_L8IN&~wq ziDxKypf_}6cTURKPWSOGxq-HW6eiIn&kCy|f-0)00}IF`-bYvcHSl2G0hg+>8|}Kda9f@K2Bn5JC3<0IeHsAyC%iG zQ}T8(ivL&s2VF?s_s0*$K8wV|>NMfUk?kQZeIGcg?5pin1-4gJmo2gtWFvUfow34~ z;;9fIR5fFJP6V!g9%1IV{OT3Ckn4@S(?7z$bMdx7fe z(YmA+DZ%1P_syH@FWnwGeaTnt-8J5nz9C$6Ag_WS;5*&<3F{sVckc}j6$BdVJ#E4I zLP&zXbIIP);6OL{5^@rS^a%uV5`_c`M2Yi^yf);k8|!@?#oIU9GUn$QKRdzG8HK_KMCnBTBP@zKMvgiL&>1-9;)S-> zDN&zLS8TYo)qnJYw=8(1Cs4R^xG!Qus6F5@<(A0MxJa57d#3$rXVm+S${YJDCod_IllLck3Y4`e;xbclW3?o@AB>UwS-Sq1dHnuLuDPIvU9^Hg8Q4}1`l5-Jbq&+ z{|E6$|6VY5=yXrfPDsaB`ih}m#xNC50Mq0|AS4+GT>^xyvi%A@ZOgO-Fg(*BKQT>p z0?}MR^w^Jjs-7Esbw|^5hb`{Kciz7?Q0yshMDgQSt4jxpny;>vFBkfYUj1;e?qgn* zW0(%EV>(R)a|7hz+#oG7UC!gVLTB3%P^FAhC|sRWg(C=Txd31Xi~y+Aa%Ye%Z|m^6 zjBxo5)qkl4vRvcN4Z(|zs=s4q5VZ#tdfJOAsIi##1Gg9WED_*YYW zVp?<2$G;Slh3PQOkVP?2-4QM;P95Jn))1~Z`}1Jm9+(J07SF#^@w?$eM||f-Dp!WO z3Pu`y9ljG|{c@!yjbHl}hAn~AfftSxEl^pu>LTdjrJ8ur)hvE|%okizOo7I~#VNr&_tv;|u4=&_kqIGET$V(hO@M zUMfk8aN=r7N*A4i@Wg5}!_uTVQp*3|N|7OlD6%eoh^F0WtF4IQ1@STxUPHn>foLlT z&Rh=ev1Cn3d1j;fh=mm_txCeuMoE`8S$L(fS+a7I3EnhswzZ0h-&`RlQ7q*pg+rRU&HIMhJ!2KbT-y9ix!{@{D;ryqDk<`k9A)m80diM%?piQ$ zN-nmDg%{0TKgR-(uMlGt0yRz{Y6AkQwV<0*Ii3N8Koqb$QA~h;s+<6X0Dy--8r!ye z;FAg5S@Yb@SM07y{`_+f@+pkN6Qc6fsu6`Jgr_H>$sC>#jl(r<0tu^8ctUvcB!Jve z6rK>CI*A5wC2@uDeZe_1P`%UFHZl+@Y*-X7uJKj)clU(yONI|GmPzX51-5e?! z8aWoc)FXxV7TvSP-`KwBSAm{_k+Y%vU7@}c;T^kD+=n8-MyJU#7lqdY_%lF1Xbl`s zjh`4fxhznz-&e6A*mus|?{DcQOGb~<7^2HdeiJR(1ZwLnSPZpw0s;^nvMSLv*WIJt z+k!oPmb=05R~Ci~E_qHaP6}>6&Fce!)CR=(x;_v{XEDT(V+&f|e#h>3=UBv+3ODup&zy<~XK?UpsJ93Q%?ym_ zu?PQL^pN9EfB*0W6!%_pX~~3aC-(la49OkOy?iB_Vb(SvVQxe==vICRvYC2Bwzu3j zi=zlDBAaPMVHDx*3zg-s_oKX5p)wVhM5?dMA}CP)%EnX%8&g?x-8oX~X$mz0V(=D* zx;n#EMWLM$9Vnbxm~o4NsmynQ3lJbAQ`~3;^ZUbxc4wuB$__o@-r>ENw?X)hfPNz0 zTObL61~-C3h^oRa6OS5)B(?}1 zA-vYY6-y_|6y`*IZt#*uprQOS>UgRrCUH#;*EM=0IF6VgDlysDW+f(ftf|JHf4_eF z#CaX>zx+bfCvmTwx_NSPd|mCwA4Wl>+|}88aME#P>qHMgqe^sfvj6afaVV4uFAB?~J=7G2VUO({pizw0(D!kiKs5}f=gc2`0(>A&*8ow{0yMP-7 z;S|as`@$cHrBLipu zF8Uj1t9^iMH_-HZJUhrp`Dp)t2Z}BQP8NhpJ45Bgp)<9C$}{1Ds_k~@Xq5X#Dgy^< z14pU?wFlAz{q>Q9PvkQD2%1*)d{f^aS-XYxG&fJ04}p|&t0C*19+#l8an!80pojr4^swZZk{_qT?thbVj{OVWkM z_#t3KiQqb-et8HOfojc&?wagB*F0Xpa~Xqb0K}Z=kp9u|R>POQ4~$be_E=4O*Az$5 zC!@voxHJB$u1WFTJ6?Y|dN}0j^2>u$R%cD@2UiPlpTQt_MT6p5;*=*`?tSNj;p>hwj(E2e|&YT`7FZJy89Syhi z_}h-T>%#lW;=*TZ0)vgutOy-1&MQFz6Tag)Hh;J?YvJg=;lA}F?cpPbgXcPft*!3r z(IN3pm%q3=Tu~kBJ`)(Mi5tBTI&cs&9d8C1Tm=GwW{|1S3^G-TE4&&wdGeocoPQ8f zD}vP8_lM!nY7UK-EK9yUeD>(-@L=U|_gwd0?>?SknF=t0sXPSKXwzq_LMYnwnGhq~ z2-MWRYWhs5_buoLkB`=e4;TOZk>R%R{w9CHnPh)qmw)hRptnm2R9?h0d;?ednj&eK z@!Zb{>qJFJSP`))Ty?3iGhDw+o@9t3JiSdJKxZrHmOPmK| z6Y*H}S?x==#3NH;-@E))MT}#l@tx6$&d}3+?)MY%alL;0+!T4=bARfHW^Asm5x2YN z^NDzM?nKj$TpM~fIz9ICr9+910|)=;y--`c;}>ynx9u&M5?}J_A$OEBT`k<@YfcRU zm;x1temc5i^=f}}-P-Z};sd^m!CgHI{U@7)r9=L`ePb5_1AD?f<$>-Ze{Iiwqa~Xk l8*2#<9ts{h<38$~Hf{TFfBWXFSeq+GVM+oJ)oF9t{tx^sQkMV# diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.yaml b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.yaml deleted file mode 100644 index 8f773b21c..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicaSet.yaml +++ /dev/null @@ -1,951 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - minReadySeconds: -1971381490 - replicas: 896585016 - selector: - matchExpressions: - - key: U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t - operator: In - values: - - M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5 - matchLabels: - g8c2-k-912e5-c-e63-n-3snh-z--3uy5-----578/s.X8u4_.l.wV--__-Nx.N_6-___._-.-W._AAn---v_-5-_8LXP-o-9..1l-5: "" - template: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -152893758082474859 - finalizers: - - "37" - generateName: "26" - generation: -6617020301190572172 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fieldsType: "41" - manager: "39" - operation: ƅS·Õüe0ɔȖ脵鴈Ō - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: true - kind: "35" - name: "36" - uid: 'ɖgȏ哙ȍȂ揲ȼDDŽLŬp:' - resourceVersion: "7336814125345800857" - selfLink: "28" - uid: ʬ - spec: - activeDeadlineSeconds: -8715915045560617563 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "380" - operator: 擭銆jʒǚ鍰\縑 - values: - - "381" - matchFields: - - key: "382" - operator: 鞤ɱďW賁Ěɭɪǹ0衷,Ʒƣ - values: - - "383" - weight: 199049889 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "376" - operator: 6x$1sȣ±p鋄5弢ȹ均i绝5哇芆 - values: - - "377" - matchFields: - - key: "378" - operator: 埮pɵ{WOŭW灬p - values: - - "379" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3---g-----p8-d5-8-m8i--k0j5g.zrrw8-5ts-7-bp/6E__-.8_e_2 - operator: DoesNotExist - matchLabels: - 4-yy28-38xmu5nx4s--41-7--6m/271-_-9_._X-D---k6: Q.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__XOnP - namespaces: - - "398" - topologyKey: "399" - weight: -217760519 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1 - operator: NotIn - values: - - z - matchLabels: - 4--883d-v3j4-7y-p---up52--sjo7799-skj5---r-t.sumf7ew/u-5mj_9.M.134-5-.q6H_.--_---.M.U_-m.-P.yPS: 1Tvw39F_C-rtSY.g._2F7.-_e..r - namespaces: - - "390" - topologyKey: "391" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 0--0g-q-22r4wye52y-h7463lyps4483-o--3f1p7--43nw-l-x8/Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4D - operator: NotIn - values: - - txb__-ex-_1_-ODgC_1-_V - matchLabels: - 6V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFA_X3: V0H2-.zHw.H__V.VT - namespaces: - - "414" - topologyKey: "415" - weight: -1851436166 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: QZ9p_6.C.e - operator: DoesNotExist - matchLabels: - 7F3p2_-_AmD-.0AP.1: A--.F5_x.KNC0-.-m_0-m-6Sp_N-S..O-BZ..n - namespaces: - - "406" - topologyKey: "407" - automountServiceAccountToken: false - containers: - - args: - - "222" - command: - - "221" - env: - - name: "229" - value: "230" - valueFrom: - configMapKeyRef: - key: "236" - name: "235" - optional: false - fieldRef: - apiVersion: "231" - fieldPath: "232" - resourceFieldRef: - containerName: "233" - divisor: "901" - resource: "234" - secretKeyRef: - key: "238" - name: "237" - optional: false - envFrom: - - configMapRef: - name: "227" - optional: true - prefix: "226" - secretRef: - name: "228" - optional: false - image: "220" - imagePullPolicy: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - lifecycle: - postStart: - exec: - command: - - "267" - httpGet: - host: "269" - httpHeaders: - - name: "270" - value: "271" - path: "268" - port: -421846800 - scheme: zvt莭琽§ - tcpSocket: - host: "272" - port: -763687725 - preStop: - exec: - command: - - "273" - httpGet: - host: "275" - httpHeaders: - - name: "276" - value: "277" - path: "274" - port: -1452676801 - scheme: ȿ0矀Kʝ - tcpSocket: - host: "279" - port: "278" - livenessProbe: - exec: - command: - - "245" - failureThreshold: -1191434089 - httpGet: - host: "248" - httpHeaders: - - name: "249" - value: "250" - path: "246" - port: "247" - scheme: 賃ɪ鐊瀑Ź9ǕLLȊ - initialDelaySeconds: 1214895765 - periodSeconds: 282592353 - successThreshold: 377225334 - tcpSocket: - host: "251" - port: -26910286 - timeoutSeconds: 1181519543 - name: "219" - ports: - - containerPort: -2079582559 - hostIP: "225" - hostPort: 1944205014 - name: "224" - protocol: K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ - readinessProbe: - exec: - command: - - "252" - failureThreshold: 1507815593 - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "253" - port: "254" - initialDelaySeconds: -839281354 - periodSeconds: -819723498 - successThreshold: -150133456 - tcpSocket: - host: "259" - port: "258" - timeoutSeconds: 2035347577 - resources: - limits: - 羭,铻OŤǢʭ嵔: "340" - requests: - TG;邪匾mɩC[ó瓧嫭塓烀罁胾^拜: "755" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - À*f<鴒翁杙Ŧ癃8 - drop: - - ɱJȉ罴 - privileged: false - procMount: 棊ʢ=wǕɳɷ9Ì崟¿瘦ɖ緕ȚÍ勅 - readOnlyRootFilesystem: false - runAsGroup: -3689959065086680033 - runAsNonRoot: false - runAsUser: -2706913289057230267 - seLinuxOptions: - level: "284" - role: "282" - type: "283" - user: "281" - windowsOptions: - gmsaCredentialSpec: "286" - gmsaCredentialSpecName: "285" - runAsUserName: "287" - startupProbe: - exec: - command: - - "260" - failureThreshold: -822090785 - httpGet: - host: "262" - httpHeaders: - - name: "263" - value: "264" - path: "261" - port: 1684643131 - scheme: 飣奺Ȋ礶惇¸ - initialDelaySeconds: -161753937 - periodSeconds: 1428207963 - successThreshold: 790462391 - tcpSocket: - host: "266" - port: "265" - timeoutSeconds: -1578746609 - stdinOnce: true - terminationMessagePath: "280" - terminationMessagePolicy: \p[ - volumeDevices: - - devicePath: "244" - name: "243" - volumeMounts: - - mountPath: "240" - mountPropagation: ʒ刽ʼn掏1ſ盷褎weLJèux榜 - name: "239" - subPath: "241" - subPathExpr: "242" - workingDir: "223" - dnsConfig: - nameservers: - - "422" - options: - - name: "424" - value: "425" - searches: - - "423" - dnsPolicy: 丆 - enableServiceLinks: false - ephemeralContainers: - - args: - - "291" - command: - - "290" - env: - - name: "298" - value: "299" - valueFrom: - configMapKeyRef: - key: "305" - name: "304" - optional: false - fieldRef: - apiVersion: "300" - fieldPath: "301" - resourceFieldRef: - containerName: "302" - divisor: "709" - resource: "303" - secretKeyRef: - key: "307" - name: "306" - optional: false - envFrom: - - configMapRef: - name: "296" - optional: true - prefix: "295" - secretRef: - name: "297" - optional: true - image: "289" - imagePullPolicy: 拉Œɥ颶妧Ö闊 鰔澝qV訆 - lifecycle: - postStart: - exec: - command: - - "335" - httpGet: - host: "338" - httpHeaders: - - name: "339" - value: "340" - path: "336" - port: "337" - scheme: 跩aŕ翑 - tcpSocket: - host: "342" - port: "341" - preStop: - exec: - command: - - "343" - httpGet: - host: "345" - httpHeaders: - - name: "346" - value: "347" - path: "344" - port: 1017803158 - scheme: 碔 - tcpSocket: - host: "349" - port: "348" - livenessProbe: - exec: - command: - - "314" - failureThreshold: 1742259603 - httpGet: - host: "317" - httpHeaders: - - name: "318" - value: "319" - path: "315" - port: "316" - scheme: 屡ʁ - initialDelaySeconds: 1718241831 - periodSeconds: 1180971695 - successThreshold: -1971944908 - tcpSocket: - host: "320" - port: -1554559634 - timeoutSeconds: 550615941 - name: "288" - ports: - - containerPort: 1330271338 - hostIP: "294" - hostPort: 1853396726 - name: "293" - protocol: 逴 - readinessProbe: - exec: - command: - - "321" - failureThreshold: 1150925735 - httpGet: - host: "323" - httpHeaders: - - name: "324" - value: "325" - path: "322" - port: -1620315711 - scheme: ɐ扵 - initialDelaySeconds: -1358663652 - periodSeconds: -527306221 - successThreshold: 2098694289 - tcpSocket: - host: "327" - port: "326" - timeoutSeconds: 1543146222 - resources: - limits: - 颐o: "230" - requests: - '[+扴ȨŮ+朷Ǝ膯ljV': "728" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ŧL²sNƗ¸gĩ餠籲磣Óƿ - drop: - - '"冓鍓贯澔 ƺ蛜6' - privileged: false - procMount: 鰥Z龏´DÒȗ - readOnlyRootFilesystem: true - runAsGroup: 6057650398488995896 - runAsNonRoot: true - runAsUser: 4353696140684277635 - seLinuxOptions: - level: "354" - role: "352" - type: "353" - user: "351" - windowsOptions: - gmsaCredentialSpec: "356" - gmsaCredentialSpecName: "355" - runAsUserName: "357" - startupProbe: - exec: - command: - - "328" - failureThreshold: -1246371817 - httpGet: - host: "331" - httpHeaders: - - name: "332" - value: "333" - path: "329" - port: "330" - scheme: 榝$î.Ȏ蝪ʜ5遰 - initialDelaySeconds: 834105836 - periodSeconds: -370386363 - successThreshold: 1714588921 - tcpSocket: - host: "334" - port: -1438286448 - timeoutSeconds: -1462219068 - targetContainerName: "358" - terminationMessagePath: "350" - terminationMessagePolicy: Kƙ順\E¦队偯J僳徥淳4揻-$ɽ丟 - tty: true - volumeDevices: - - devicePath: "313" - name: "312" - volumeMounts: - - mountPath: "309" - mountPropagation: ŕ-Ɂ圯W:ĸ輦唊#v铿 - name: "308" - subPath: "310" - subPathExpr: "311" - workingDir: "292" - hostAliases: - - hostnames: - - "420" - ip: "419" - hostPID: true - hostname: "374" - imagePullSecrets: - - name: "373" - initContainers: - - args: - - "150" - command: - - "149" - env: - - name: "157" - value: "158" - valueFrom: - configMapKeyRef: - key: "164" - name: "163" - optional: true - fieldRef: - apiVersion: "159" - fieldPath: "160" - resourceFieldRef: - containerName: "161" - divisor: "455" - resource: "162" - secretKeyRef: - key: "166" - name: "165" - optional: false - envFrom: - - configMapRef: - name: "155" - optional: false - prefix: "154" - secretRef: - name: "156" - optional: false - image: "148" - imagePullPolicy: k_瀹鞎sn芞QÄȻ - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "197" - port: -1327537699 - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ĉş蝿ɖȃ賲鐅臬 - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "173" - failureThreshold: 2053960192 - httpGet: - host: "176" - httpHeaders: - - name: "177" - value: "178" - path: "174" - port: "175" - scheme: ƴy綸_Ú8參遼ūPH炮 - initialDelaySeconds: 741871873 - periodSeconds: -1987044888 - successThreshold: -1638339389 - tcpSocket: - host: "180" - port: "179" - timeoutSeconds: 446829537 - name: "147" - ports: - - containerPort: 715087892 - hostIP: "153" - hostPort: -1896921306 - name: "152" - protocol: 倱< - readinessProbe: - exec: - command: - - "181" - failureThreshold: -57352147 - httpGet: - host: "183" - httpHeaders: - - name: "184" - value: "185" - path: "182" - port: -1903685915 - scheme: ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬 - initialDelaySeconds: 128019484 - periodSeconds: -2130554644 - successThreshold: 290736426 - tcpSocket: - host: "187" - port: "186" - timeoutSeconds: 431781335 - resources: - limits: - /擇ɦĽ胚O醔ɍ厶耈 T: "618" - requests: - á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ: "372" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - '?' - drop: - - 峧Y栲茇竛吲蚛隖 - privileged: false - procMount: ʙ嫙& - readOnlyRootFilesystem: false - runAsGroup: -7286288718856494813 - runAsNonRoot: true - runAsUser: 7312518131318481396 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - runAsUserName: "218" - startupProbe: - exec: - command: - - "188" - failureThreshold: 1133369651 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "189" - port: "190" - scheme: 閝ȝ - initialDelaySeconds: -2142865739 - periodSeconds: 1434408532 - successThreshold: -566408554 - tcpSocket: - host: "195" - port: "194" - timeoutSeconds: -1179067190 - stdin: true - stdinOnce: true - terminationMessagePath: "211" - volumeDevices: - - devicePath: "172" - name: "171" - volumeMounts: - - mountPath: "168" - mountPropagation: dʪīT捘ɍi縱ù墴1Rƥ - name: "167" - readOnly: true - subPath: "169" - subPathExpr: "170" - workingDir: "151" - nodeName: "363" - nodeSelector: - "359": "360" - overhead: - 4'ď曕椐敛n湙: "310" - preemptionPolicy: '!ń1ċƹ|慼櫁色苆试揯遐' - priority: -1852730577 - priorityClassName: "421" - readinessGates: - - conditionType: ź魊塾ɖ$rolȋɶuɋ5r儉ɩ柀ɨ鴅 - restartPolicy: ɘɢ鬍熖B芭花ª瘡 - runtimeClassName: "426" - schedulerName: "416" - securityContext: - fsGroup: 7124276984274024394 - runAsGroup: -779972051078659613 - runAsNonRoot: false - runAsUser: 2179199799235189619 - seLinuxOptions: - level: "367" - role: "365" - type: "366" - user: "364" - supplementalGroups: - - -7127205672279904050 - sysctls: - - name: "371" - value: "372" - windowsOptions: - gmsaCredentialSpec: "369" - gmsaCredentialSpecName: "368" - runAsUserName: "370" - serviceAccount: "362" - serviceAccountName: "361" - shareProcessNamespace: true - subdomain: "375" - terminationGracePeriodSeconds: 2666412258966278206 - tolerations: - - effect: ŽɣB矗E¸乾 - key: "417" - operator: 堺ʣ - tolerationSeconds: -3532804738923434397 - value: "418" - topologySpreadConstraints: - - labelSelector: - matchExpressions: - - key: 4-4D-r.-F__r.oh..2_uGGP..-_N_h_4Hl-X0_2-W - operator: In - values: - - 2-.s_6O-5_7_-0w_--5-_.3--_9QWJ - matchLabels: - p2djmscp--ac8u23-k----26u5--72n-5.j8-0020-1-5/t5W_._._-2M2._i: wvU - maxSkew: -150478704 - topologyKey: "427" - whenUnsatisfiable: ;鹡鑓侅闍ŏŃŋŏ}ŀ - volumes: - - awsElasticBlockStore: - fsType: "47" - partition: -762366823 - readOnly: true - volumeID: "46" - azureDisk: - cachingMode: HǺƶȤ^}穠 - diskName: "110" - diskURI: "111" - fsType: "112" - kind: 躢 - readOnly: true - azureFile: - secretName: "96" - shareName: "97" - cephfs: - monitors: - - "81" - path: "82" - secretFile: "84" - secretRef: - name: "85" - user: "83" - cinder: - fsType: "79" - secretRef: - name: "80" - volumeID: "78" - configMap: - defaultMode: -460478410 - items: - - key: "99" - mode: -2039036935 - path: "100" - name: "98" - optional: false - csi: - driver: "142" - fsType: "143" - nodePublishSecretRef: - name: "146" - readOnly: false - volumeAttributes: - "144": "145" - downwardAPI: - defaultMode: -106644772 - items: - - fieldRef: - apiVersion: "89" - fieldPath: "90" - mode: 1235524154 - path: "88" - resourceFieldRef: - containerName: "91" - divisor: "457" - resource: "92" - emptyDir: - medium: 彭聡A3fƻfʣ - sizeLimit: "115" - fc: - fsType: "94" - lun: 441887498 - readOnly: true - targetWWNs: - - "93" - wwids: - - "95" - flexVolume: - driver: "73" - fsType: "74" - options: - "76": "77" - secretRef: - name: "75" - flocker: - datasetName: "86" - datasetUUID: "87" - gcePersistentDisk: - fsType: "45" - partition: -1499132872 - pdName: "44" - gitRepo: - directory: "50" - repository: "48" - revision: "49" - glusterfs: - endpoints: "63" - path: "64" - hostPath: - path: "43" - type: 6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ2啗塧ȱ - iscsi: - fsType: "59" - initiatorName: "62" - iqn: "57" - iscsiInterface: "58" - lun: 1655406148 - portals: - - "60" - readOnly: true - secretRef: - name: "61" - targetPortal: "56" - name: "42" - nfs: - path: "55" - readOnly: true - server: "54" - persistentVolumeClaim: - claimName: "65" - readOnly: true - photonPersistentDisk: - fsType: "114" - pdID: "113" - portworxVolume: - fsType: "129" - volumeID: "128" - projected: - defaultMode: -522879476 - sources: - - configMap: - items: - - key: "124" - mode: -1694464659 - path: "125" - name: "123" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: 926891073 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "746" - resource: "122" - secret: - items: - - key: "116" - mode: -1399063270 - path: "117" - name: "115" - optional: true - serviceAccountToken: - audience: "126" - expirationSeconds: -7593824971107985079 - path: "127" - quobyte: - group: "108" - readOnly: true - registry: "105" - tenant: "109" - user: "107" - volume: "106" - rbd: - fsType: "68" - image: "67" - keyring: "71" - monitors: - - "66" - pool: "69" - readOnly: true - secretRef: - name: "72" - user: "70" - scaleIO: - fsType: "137" - gateway: "130" - protectionDomain: "133" - secretRef: - name: "132" - storageMode: "135" - storagePool: "134" - system: "131" - volumeName: "136" - secret: - defaultMode: 372704313 - items: - - key: "52" - mode: -104666658 - path: "53" - optional: true - secretName: "51" - storageos: - fsType: "140" - readOnly: true - secretRef: - name: "141" - volumeName: "138" - volumeNamespace: "139" - vsphereVolume: - fsType: "102" - storagePolicyID: "104" - storagePolicyName: "103" - volumePath: "101" -status: - availableReplicas: -1469601144 - conditions: - - lastTransitionTime: "2469-07-10T03:20:34Z" - message: "435" - reason: "434" - status: ɻ猶N嫡牿咸Ǻ潑鶋洅啶'ƈoIǢ龞瞯å - type: ɡj瓇ɽ丿YƄZZ塖bʘ - fullyLabeledReplicas: 138911331 - observedGeneration: 6703635170896137755 - readyReplicas: 1613009760 - replicas: -330302940 diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.json deleted file mode 100644 index 46a4b767b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "kind": "ReplicationControllerDummy", - "apiVersion": "extensions/v1beta1" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.pb deleted file mode 100644 index a6df03398ae0652802a142023612e0aa82ad36f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmd0{C}!X?;1Wu$C`rvL&dkp%)-N+mN-aq=6p{)`Ey&4CPAmb6I_Kw=6y@jSq!zi9 O=H^xkF-S2eF#rHrkQ0Oe diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.yaml b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.yaml deleted file mode 100644 index 9089d17ee..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.ReplicationControllerDummy.yaml +++ /dev/null @@ -1,2 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicationControllerDummy diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.json b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.json deleted file mode 100644 index 540b62a74..000000000 --- a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "replicas": -595102844 - }, - "status": { - "replicas": 70007838, - "selector": { - "19": "20" - }, - "targetSelector": "21" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.pb b/pseudo/k8s/api/testdata/HEAD/extensions.v1beta1.Scale.pb deleted file mode 100644 index ffdda998a5197c90caa5e8ac5eecaae8ab25107d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 246 zcmd0{C}!Z2<`PP+C`rvL&dkp%)-N+mN-aq=6k-idPRvOaI>*Shl97wiNQlu`iqS-g z(Nv4k+(^XG(7?pV#K6?V(!#*P+|0nt$iUd*_PeI5joot^3!E4N)^==dZk>N_&Thsi zHZDeUAx4WNb}mLsAtpnEECntmLnA3BLt`aAm#U|`r<`c7Eep7A)d_e_sx zLmZqyK;{q-jv}NeC<=&h$RUV;kU<=>bKu5_v#sR9Z{Q6G^`Yxkb-n(!S26L3ctaei zueZC6R;5(mz>0~n)JS%eeK`By?tG(K%J=O%LVRZl%dsszX1U{*chm};BT7lvai!;m zMw-Bvz9Y5y>+kb_Zhd-nE1DRYzxBzT3m<*;$JJfy%mHBqwq@213M;e|N|s*}3FV9> zlpcR!YOuGv^XTLEIO!zVe$@C zAXLt}2YFccHPk`ZlhYxZ+_`ctjG^o*kl;sfY$ja~`VhDXGP88ztY`u~mpZe60 zU)j62N%`oXun(z#&`j2I_MCW!bz=Uo31DPJ zfydIY9MDq(aFZ=8DGCO7It_@FD>#s)6>Kw6iEIG*r|bjMy;9tc?O!a>6b|F|5YFg% zqA4Q34Gsc<=}sfdqFD~3snjIsBRJk9rXaB24hzM)UNHrd#62NH?o2d8r$He>=Upld zJFEiC!W^$wm?w8x8Y&AX?O72xsO!Lq=a56T2DGeE6=)@`+1;TriZHuuzfy!$ z8WwOi!6aqaIdkrId4HKOCBY;U>P zLU*VYKZvNJJ~2qdm<8;ibDW&!CdoyZY@Ws`J_1KoI(AKDTy{z}Oie>Uc7w=ts=!HN zibfZpqsuPvgnJl5Q-?BHFXgJJ08iyOH?=Z_m_emoPB1q8wD&*67X!eEG##VGR2X`5 e$0tu>TpN1EJ|;Y8{NTNt4|h6uKO7qwANdE*9)XJh diff --git a/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.yaml b/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.yaml deleted file mode 100644 index e8dffa531..000000000 --- a/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1.NetworkPolicy.yaml +++ /dev/null @@ -1,87 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - egress: - - ports: - - protocol: ɗ - to: - - ipBlock: - cidr: "51" - except: - - "52" - namespaceSelector: - matchExpressions: - - key: 4a--0o8m3-d0w7p8vl-1z---883d-v3j4-7y-5.9-q390/niTl.1-.VT--5mj_9.M.134-5-.q6H5 - operator: NotIn - values: - - 7-.p_3_J_SA995IKCR.sm - matchLabels: - P____K_1: Xfr.4_.-_-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--21kv - podSelector: - matchExpressions: - - key: b_2_-8-----yY - operator: NotIn - values: - - M24 - matchLabels: - ? hg1-o-p665--4-j8---t6-r7---d--uml-8rdh6844-i-18-850-4s2o8.x4--s--xu-d42--clo90---461v-07r--0---8-30iu/s6.0_OHz_.B-.-_w_--.8_r_N-.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.NX - : f-AH-Q.GM72_-c-.-.6--3-___t-8 - ingress: - - from: - - ipBlock: - cidr: "37" - except: - - "38" - namespaceSelector: - matchExpressions: - - key: 2_28.-.7_8B.HF-U-_ik_--DSXr.n-A9..9__Y-H-Mqpt._.-_..051 - operator: DoesNotExist - matchLabels: - g--5.-Z3P__D__6t-2.-_-8wE._._3.-.83_iq_-y.-25C.A-7: 9dfn3Y8d_0_.---M_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33--.8U.-.5-R - podSelector: - matchExpressions: - - key: 3--2---u--80k1-57----1-x1z-4/r.i1_7z.WH-.._Td2-N_Y.t--_0..--_6V - operator: Exists - matchLabels: - yg--79-e-a74bc-v--0jjy45-17-053.zyyms7-tk1po6c-m61733-x-2v4r--5-xgc3-yz-7-x--c0-w5-6r/78A6.6O: 17_.8CnT - ports: - - protocol: Ǐ2啗塧ȱ蓿彭聡A3fƻfʣ - podSelector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - 8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4 - policyTypes: - - ĨǔvÄ diff --git a/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.json b/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.json deleted file mode 100644 index 7c780d8ab..000000000 --- a/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "kind": "Ingress", - "apiVersion": "networking.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "backend": { - "serviceName": "19", - "servicePort": "20" - }, - "tls": [ - { - "hosts": [ - "21" - ], - "secretName": "22" - } - ], - "rules": [ - { - "host": "23", - "http": { - "paths": [ - { - "path": "24", - "backend": { - "serviceName": "25", - "servicePort": "26" - } - } - ] - } - } - ] - }, - "status": { - "loadBalancer": { - "ingress": [ - { - "ip": "27", - "hostname": "28" - } - ] - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.pb b/pseudo/k8s/api/testdata/HEAD/networking.k8s.io.v1beta1.Ingress.pb deleted file mode 100644 index 74882b4df6569defa37952d56d8832b23c3b6944..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 295 zcmd0{C}!YN;gZZtEh*10%FfJ7*UPpj*2~P-FEdO^ElD&KV)x8TFG?*g7W&4>wUUvG z(MX8VSc=g^iP2Px(cDPH(9pod$i%?Z#L~jR!raWj%*epl;`Y0ytBu`r8Vj5l0@ikH zZEl@^Zq9DTC^jxeb0J2HBz7)FOCcshgDeFuCPO1BCPQN-K9{PeyQiFJuP#2?b*#TY ziwS5hg9T#|lc7l!lc8xBqdrinnULbk30+U8biG_W^XNR?(5G{@9NwO&e{xFgvx$uw z&vs5f(iRIe&D@B|&_c+Hiw~&9Qiy|tQGh{;$;d#6gNw9LMNJTufF=1?QXkjrD3{rJ&bZKp6Lu_Gla}x9c z3aJ4K0WuN+Ga3OjA^|lj0XH%fF)=VSGBhwXG&wjhI5##hHZm|XINR=m)q#tgfp9_q zP_2lygN2{YoVx*91_}W;5&<}32MPf>5&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3r zk8mmiF)=UzI0143F*JGtF*S+-FA4%NHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxr zfhgv=m&Ar$8UislG6FF;5=IIFF*y<#3Kj|taZ2W%ieWhDp^ad~s1gMV12#1>8YT(| r3IZ}P5&|+Y5*i8uGBOeX8UiviA_F$WizxDn=;PnZsJ*cP8UP{y+;Ced diff --git a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.yaml b/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.yaml deleted file mode 100644 index 9728996b1..000000000 --- a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1alpha1.RuntimeClass.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: node.k8s.io/v1alpha1 -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - overhead: - podFixed: - qJ枊a8衍`Ĩ: "652" - runtimeHandler: "19" - scheduling: - nodeSelector: - "20": "21" - tolerations: - - effect: 6ċ - key: "22" - tolerationSeconds: -5658031457286093454 - value: "23" diff --git a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.json b/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.json deleted file mode 100644 index 08d233e72..000000000 --- a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "handler": "19", - "overhead": { - "podFixed": { - "qJ枊a8衍`Ĩ": "652" - } - }, - "scheduling": { - "nodeSelector": { - "20": "21" - }, - "tolerations": [ - { - "key": "22", - "value": "23", - "effect": "6ċ", - "tolerationSeconds": -5658031457286093454 - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.pb b/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.pb deleted file mode 100644 index c50ae57abe3ac45808a4a3a8db8e1a0ec37ec992..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 290 zcmV+-0p0#TufF=AzOVKEX6Qgv>0X>DagY+-YA67m5G zsR0TBG774F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3 zt%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{ za4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvY zDCW7B#D-lO0x>r-0x>ue0x>xn7z!2&4RK25o{C{O=%I~Z#HbPl3IjGZG9o4l2nqr+ oFcJbXF%lXI0x~iZ02%@^Ga>^v#EU5Mis<9t%c#Av0U7`z0KvXmdjJ3c diff --git a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.yaml b/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.yaml deleted file mode 100644 index 014f2a463..000000000 --- a/pseudo/k8s/api/testdata/HEAD/node.k8s.io.v1beta1.RuntimeClass.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: node.k8s.io/v1beta1 -handler: "19" -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -overhead: - podFixed: - qJ枊a8衍`Ĩ: "652" -scheduling: - nodeSelector: - "20": "21" - tolerations: - - effect: 6ċ - key: "22" - tolerationSeconds: -5658031457286093454 - value: "23" diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.json b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.json deleted file mode 100644 index da935721b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "kind": "Eviction", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "deleteOptions": { - "gracePeriodSeconds": 3850803321873644574, - "preconditions": { - "uid": "枊a8衍`Ĩɘ.蘯6ċV夸eɑeʤ脽ě", - "resourceVersion": "19" - }, - "orphanDependents": true, - "propagationPolicy": "蓏Ŋ", - "dryRun": [ - "20" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.pb b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.pb deleted file mode 100644 index f23d153efe25c59782e2188f139c2d9f13f76f1b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 279 zcmV+y0qFi~ICB6B8VU|@Z)|B}c`tS`Vr6t;F%k$xc4=dDX>V>4@Bs>`0SW;!5&<(B z0W=~3H7Wr&G88c}Ff=kWFf}weI50RjHZV3aFf%yY?t;~Ui=2UQLI6;$h_!=-pU#}S z0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6K zasn|ldIB*uiUBVQ0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0 zF*h;-F*p)J2%h+`p@65exHS?f3M1y8ieWhDp^ad~sL7Zv=$NlI#EVwtq_}0tk!8xH d=!Ct*n-T&sIT!&V1?ZEH#fmBdGB6qdA^<=}W6l5o diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.yaml b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.yaml deleted file mode 100644 index d7b27e3a2..000000000 --- a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.Eviction.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: policy/v1beta1 -deleteOptions: - dryRun: - - "20" - gracePeriodSeconds: 3850803321873644574 - orphanDependents: true - preconditions: - resourceVersion: "19" - uid: 枊a8衍`Ĩɘ.蘯6ċV夸eɑeʤ脽ě - propagationPolicy: 蓏Ŋ -kind: Eviction -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.json b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.json deleted file mode 100644 index bb7e8106b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "PodDisruptionBudget", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - } - }, - "status": { - "observedGeneration": -6582200896939805980, - "disruptedPods": { - "25": "2250-04-18T21:52:38Z" - }, - "disruptionsAllowed": -1942073618, - "currentHealthy": -2037845840, - "desiredHealthy": -1965578645, - "expectedPods": -347579237 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.pb b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.pb deleted file mode 100644 index 480c815dda26f7a4f5bbfe7a3fac19f9a0374390..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 587 zcmXAjOK4L;6oxYw(Q+3-Mi-J*3<#xoCNpzibGM*~c#p*=euN5m^tez|6Yj}R2{uJqmV`PMo89`PLa`<7!sL4%gnXaJ1 zv8m0eA--;3{WNp4J>$m$$!BvfX0JW^&|XEu`*q}CBr*qdP1>1*HClj920LLUi`-e`S85|@7oEZ4HEr`qvP7=t)?JN)*Ku!?= zIyp96W>PhcsstGuCu7pY_mF!l7!OVW@HS)tMzAK+5?%6>8+ ziA>wX%_K^>gz`{(eL_kv6z}@cY2BLZtbcrra8TE{g}b_*{QkZZJ{UN%{cvaF*IyMV d{Cs0+c@MjPzW?@l59x!I#V>#U4}=1dz(4yez)JuC diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.yaml b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.yaml deleted file mode 100644 index 3643bb936..000000000 --- a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodDisruptionBudget.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: policy/v1beta1 -kind: PodDisruptionBudget -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - selector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - 8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4 -status: - currentHealthy: -2037845840 - desiredHealthy: -1965578645 - disruptedPods: - "25": "2250-04-18T21:52:38Z" - disruptionsAllowed: -1942073618 - expectedPods: -347579237 - observedGeneration: -6582200896939805980 diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.json b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.json deleted file mode 100644 index a90fb247e..000000000 --- a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "kind": "PodSecurityPolicy", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "privileged": true, - "defaultAddCapabilities": [ - "qJ枊a8衍`Ĩ" - ], - "requiredDropCapabilities": [ - ".蘯6ċV夸" - ], - "allowedCapabilities": [ - "ɑ" - ], - "volumes": [ - "ʤ脽ěĂ凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - ], - "hostNetwork": true, - "hostPorts": [ - { - "min": -321835912, - "max": 1575426699 - } - ], - "hostIPC": true, - "seLinux": { - "rule": "S", - "seLinuxOptions": { - "user": "19", - "role": "20", - "type": "21", - "level": "22" - } - }, - "runAsUser": { - "rule": "+½H牗洝尿彀亞螩", - "ranges": [ - { - "min": 8901768137137123048, - "max": -90233536926144532 - } - ] - }, - "runAsGroup": { - "rule": "³;Ơ歿:狞夌碕ʂɭîcP", - "ranges": [ - { - "min": -8679730194918865907, - "max": 2607109693095207331 - } - ] - }, - "supplementalGroups": { - "rule": "ɖ橙9", - "ranges": [ - { - "min": -5498021643263379468, - "max": -236027028483226507 - } - ] - }, - "fsGroup": { - "rule": "UɦOŖ", - "ranges": [ - { - "min": 8572633303645749270, - "max": 3058121789713366904 - } - ] - }, - "defaultAllowPrivilegeEscalation": false, - "allowPrivilegeEscalation": false, - "allowedHostPaths": [ - { - "pathPrefix": "23", - "readOnly": true - } - ], - "allowedFlexVolumes": [ - { - "driver": "24" - } - ], - "allowedCSIDrivers": [ - { - "name": "25" - } - ], - "allowedUnsafeSysctls": [ - "26" - ], - "forbiddenSysctls": [ - "27" - ], - "allowedProcMountTypes": [ - "ǣ偐圠=l畣潁" - ], - "runtimeClass": { - "allowedRuntimeClassNames": [ - "28" - ], - "defaultRuntimeClassName": "29" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.pb b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.pb deleted file mode 100644 index ad0737a8fb70c038bb82a810d63d597752688ad3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 578 zcmV-I0=@lfICB6BBMJ_1Z)|B}c`tS`Vr6t;F%l6_Z)8(tV|8+Aba_y3Y-wY85|RW8 zsR0TBG774F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3 zt%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{ za4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvY zDCW7B#D-lO0x>r-0x>ue;{pf)5)E-m=AMdSIOw5`V8o~z3ohuGuQtSsR^_C)A_B>g zDj>?F=!Ct*o5X_UhnMJ+kHw1Un~KDVdFQu<=eU(V#l0{AIuQu?*u>`k|NsC00T7F| zobLrd07wB+6$$}U5)cXkF*yiyy@2Gp zp6H&b5)}yO-OIPo-rK}`5bV#wrMRNo-~It&APNS_mgcFMIT98K^zVVspU%eFvjGtG zi1*I0)!p3u0csu!235(XPsNrJ6bP1p^sAndhx~RB`2PIein6GIL5XYnCfso~#pgnBom80gpfwBQJ3L3(*JI0{q zt-m_wi=O4AjOU`2%7V$Q!>(gc5)}xIh=k4m>)FMJ0T83ZtJ}Vgl$RvB0R##HGBv^h Q2nqr+I1&OfIT`>W07;JT+W-In diff --git a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.yaml b/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.yaml deleted file mode 100644 index 2d20202fb..000000000 --- a/pseudo/k8s/api/testdata/HEAD/policy.v1beta1.PodSecurityPolicy.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: policy/v1beta1 -kind: PodSecurityPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - allowPrivilegeEscalation: false - allowedCSIDrivers: - - name: "25" - allowedCapabilities: - - ɑ - allowedFlexVolumes: - - driver: "24" - allowedHostPaths: - - pathPrefix: "23" - readOnly: true - allowedProcMountTypes: - - ǣ偐圠=l畣潁 - allowedUnsafeSysctls: - - "26" - defaultAddCapabilities: - - qJ枊a8衍`Ĩ - defaultAllowPrivilegeEscalation: false - forbiddenSysctls: - - "27" - fsGroup: - ranges: - - max: 3058121789713366904 - min: 8572633303645749270 - rule: UɦOŖ - hostIPC: true - hostNetwork: true - hostPorts: - - max: 1575426699 - min: -321835912 - privileged: true - requiredDropCapabilities: - - .蘯6ċV夸 - runAsGroup: - ranges: - - max: 2607109693095207331 - min: -8679730194918865907 - rule: ³;Ơ歿:狞夌碕ʂɭîcP - runAsUser: - ranges: - - max: -90233536926144532 - min: 8901768137137123048 - rule: +½H牗洝尿彀亞螩 - runtimeClass: - allowedRuntimeClassNames: - - "28" - defaultRuntimeClassName: "29" - seLinux: - rule: S - seLinuxOptions: - level: "22" - role: "20" - type: "21" - user: "19" - supplementalGroups: - ranges: - - max: -236027028483226507 - min: -5498021643263379468 - rule: ɖ橙9 - volumes: - - ʤ脽ěĂ凗蓏Ŋ蛊ĉy緅縕>Ž diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.json deleted file mode 100644 index a491cca31..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "rules": [ - { - "verbs": [ - "19" - ], - "apiGroups": [ - "20" - ], - "resources": [ - "21" - ], - "resourceNames": [ - "22" - ], - "nonResourceURLs": [ - "23" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N4": "3L.u" - }, - "matchExpressions": [ - { - "key": "S91.e5K-_e63_-_3-h", - "operator": "In", - "values": [ - "3_bQw.-dG6c-.x" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.pb deleted file mode 100644 index 150784b0348a3ba3c22884da872c996bc196c110..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 344 zcmWNKyGw#W0KmUHqTm9D!|9`;972pc@9uk@Yenyuri&D!CHO+cPkR^*7Co?`0wDsa zpsAs)h;S^UmbRv51(*JYzWw*eN?So=XsDEkZ_s$9oGO&k)p$8w$kVK}X}aLw;&^Z( zSFy{TM zeLg(8{cg5Ev>yQr1DO~=Ab=rfnPCLEP$AbmuE}br)%ZNwv)lEL^P&$rT}6TtW$mI_}dJXa#!_UJY=X jH0DVxX=*VN(?|-#*}Uq~Vu|23C7aXc2BABu;!*wqpbukV diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.yaml deleted file mode 100644 index e33801fd7..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRole.yaml +++ /dev/null @@ -1,51 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: S91.e5K-_e63_-_3-h - operator: In - values: - - 3_bQw.-dG6c-.x - matchLabels: - 8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N4: 3L.u -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -rules: -- apiGroups: - - "20" - nonResourceURLs: - - "23" - resourceNames: - - "22" - resources: - - "21" - verbs: - - "19" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json deleted file mode 100644 index 388e13192..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "ClusterRoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "subjects": [ - { - "kind": "19", - "apiGroup": "20", - "name": "21", - "namespace": "22" - } - ], - "roleRef": { - "apiGroup": "23", - "kind": "24", - "name": "25" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.pb deleted file mode 100644 index 95d9eca13c7e2bf112eb2432edbb2f84c2d3b6d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 267 zcmd0{C}!X?;*u#!N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEbPpa?U9&E=es4%Fju4 z%FIj2%u5$K!^pLgk&Dqth|ySz(L{;SREyEvNW{?4z{JSJz|_Rj!ob4Z%)rdZz}VvU zyQZs+-E$fXoEQSuc5H2Koqul5ZpJ7!E=F@9MvEkNE=EfsCPRZP1uiB-BPk|BV!tLPp5RfTs-sWJl)Wz zbG97bo~VCvO6{|WjT+B(PCwEX3pCB#h{@1GNC2n-Xp5176qAvm5|fdU6b~1Zkugxj M1Sn!E#h}Ch026mmApigX diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml deleted file mode 100644 index 0e61aefa1..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.ClusterRoleBinding.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -roleRef: - apiGroup: "23" - kind: "24" - name: "25" -subjects: -- apiGroup: "20" - kind: "19" - name: "21" - namespace: "22" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.json deleted file mode 100644 index 05e0c5578..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "rules": [ - { - "verbs": [ - "19" - ], - "apiGroups": [ - "20" - ], - "resources": [ - "21" - ], - "resourceNames": [ - "22" - ], - "nonResourceURLs": [ - "23" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.pb deleted file mode 100644 index 48614b9c9268394c1babaa1dc125c047f1cb6704..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 243 zcmd0{C}!YN;gTszN=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEbQk3Chn&6*|PowUUvG z(MX8VSc=g^iP2Px(cDPH(9pod$i%?Z#L~jR!raWj%*epl;`Y0ytBu`r8Vj5l0@ikH zZEl@^Zq9DTC^jxeb0J2HBz7)FOCcshgDeFuCPO1BCPQN-K9{PeyQiFJuP#2?b*#TY ziwS5hg9T#|lc7l!lc8xBqdrinnULbk30+U8biG_W^XNR?(5G{@9NwO&e{xFgvx$uw q&vs5f(iRIe&D@B|&_YNAr~zn;k%1JGk)aZkk&zaYk+Bqm5(5B*j!9nt diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.yaml deleted file mode 100644 index 8435ab4c5..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.Role.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -rules: -- apiGroups: - - "20" - nonResourceURLs: - - "23" - resourceNames: - - "22" - resources: - - "21" - verbs: - - "19" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.json deleted file mode 100644 index df6b51348..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "subjects": [ - { - "kind": "19", - "apiGroup": "20", - "name": "21", - "namespace": "22" - } - ], - "roleRef": { - "apiGroup": "23", - "kind": "24", - "name": "25" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1.RoleBinding.pb deleted file mode 100644 index 1ed7b28211ba41143bc458384852200e8292914b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 260 zcmd0{C}!Z&=8`E&N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEbS44$99-b;`_3$;?X^ zI>X4dl97wiNQlu`iqS-g(Nv4k+(^XG(7?pV#K6?V(!#*P+|0nt$iUd*_PeI5joot^ z3!E4N)^==dZk>N_&ThsiHZDeUAx4WNb}mLsAtpnEECntmLnA3BLt`aAm#U|`r<`c7 zE%ab|YioxN7{erbA{Dty5Qu_FKMiug49R&KRiAQ@E^-iPSyT5MVkZ7m*^!DNez8d@8%bKtIdi8$1-q$Pvxy0W7 zV5?9t4GQjuLI@~ybq&Q3MPo9O&PHsPWDQOjF^gnwY9?>(63d{3Ek>8ap%7g%@PNKR qE7*tds?BLCI8Wj!Q;(ClPSP08=2ed#PlUE9*_bwygzl({ru+l9%Vop> diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml deleted file mode 100644 index 77390e404..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRole.yaml +++ /dev/null @@ -1,51 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: S91.e5K-_e63_-_3-h - operator: In - values: - - 3_bQw.-dG6c-.x - matchLabels: - 8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N4: 3L.u -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -rules: -- apiGroups: - - "20" - nonResourceURLs: - - "23" - resourceNames: - - "22" - resources: - - "21" - verbs: - - "19" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json deleted file mode 100644 index 17b919d9d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "ClusterRoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "subjects": [ - { - "kind": "19", - "apiVersion": "20", - "name": "21", - "namespace": "22" - } - ], - "roleRef": { - "apiGroup": "23", - "kind": "24", - "name": "25" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.pb deleted file mode 100644 index 552e768db9c4a742ecd7ce84e6ecadfa5381f0ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 273 zcmd0{C}!ZY;8H3|N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEdQcDac4P6cTdIDJ?EZ zEegudNp;H1OUcYj7dpepwUUvG(MX8VSc=g^iP2Px(cDPH(9pod$i%?Z#L~jR!raWj z%*epl;`Y0ytBu`r8Vj5l0@ikHZEl@^Zq9DTC^jxeb0J2HBz7)FOCcshgDeFuCPO1B zCPQN-K9{PeyQiFJuP#2?b*#TYiwS5hg9T#|lc7l!lc8xBqdrinnULbk30+U8biG_W z^XNR?(5G{@9NwO&e{xFgvx$uw&vs5f(iRIe&D@B|&_YN6r~zn;k%1JGk)aZkk&zS+ S7n6}OP{af%Vk*U;!~g(qr&449 diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml deleted file mode 100644 index 26fd0ef23..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.ClusterRoleBinding.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: ClusterRoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -roleRef: - apiGroup: "23" - kind: "24" - name: "25" -subjects: -- apiVersion: "20" - kind: "19" - name: "21" - namespace: "22" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.json deleted file mode 100644 index 2df5bb2e8..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "rules": [ - { - "verbs": [ - "19" - ], - "apiGroups": [ - "20" - ], - "resources": [ - "21" - ], - "resourceNames": [ - "22" - ], - "nonResourceURLs": [ - "23" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.pb deleted file mode 100644 index b5dd3868c9890b16c062897f79d65cf43176c1c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 249 zcmd0{C}!Z&;!-L~N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEdQcDac4P6k-X=&q)!tLPp5RfTs-sWJl)WzbG97bo~VCv xO6{|WjT+B(PCwEX3pCB#h{@1GNCc?CQi{pQK#9r7P>adP$cV|vSc*Z30RXJxOTqvE diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.yaml deleted file mode 100644 index a951ad06f..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.Role.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -rules: -- apiGroups: - - "20" - nonResourceURLs: - - "23" - resourceNames: - - "22" - resources: - - "21" - verbs: - - "19" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json deleted file mode 100644 index 57da7a375..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "subjects": [ - { - "kind": "19", - "apiVersion": "20", - "name": "21", - "namespace": "22" - } - ], - "roleRef": { - "apiGroup": "23", - "kind": "24", - "name": "25" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb deleted file mode 100644 index ad9b39e2b735dbd6605878f7803dcc09cbe2e4d6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 266 zcmd0{C}!X?d#K^?J)Wp)lz{1?jz|6?N*y8rP zrmKzJa~cbr7y{OIY;A6xe{Rlh#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev` zr@N<|Xs<3l+I6hIK#K`zE`tSQ5tE@w6_cT97o$EF;K(= LC}Jwbpu_+Ga@S9E diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml deleted file mode 100644 index e82c4c2f0..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1alpha1.RoleBinding.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -roleRef: - apiGroup: "23" - kind: "24" - name: "25" -subjects: -- apiVersion: "20" - kind: "19" - name: "21" - namespace: "22" diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.json b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.json deleted file mode 100644 index 2e96bc779..000000000 --- a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "rules": [ - { - "verbs": [ - "19" - ], - "apiGroups": [ - "20" - ], - "resources": [ - "21" - ], - "resourceNames": [ - "22" - ], - "nonResourceURLs": [ - "23" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N4": "3L.u" - }, - "matchExpressions": [ - { - "key": "S91.e5K-_e63_-_3-h", - "operator": "In", - "values": [ - "3_bQw.-dG6c-.x" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb b/pseudo/k8s/api/testdata/HEAD/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb deleted file mode 100644 index f40dbff6a50dc4f8bee7e0fd4f62c25f00655555..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 349 zcmWNKy-Na70Ko4(qTmG%52u^TAw+o3_uid%&$XiOFHM&yj?)g*M8(rSj0TH7xP}UZ z2&96hhPEQ2v5Z>Unwkw-`Ww3a_pv5j1u-;O&DdFL*K4_QHQ%sn`ErS_Ntfo!(RH42 zYBtCHBgMK~bE?U5(ZSac-2wyz2AT@=5Qs&9DT16cUFa;P$0d`d!3@DP`Te*1)jV!D zE5pjd-OX4dl97wiNQlu`iqS-g(Nv4k+(^XG(7?pV#K6?V(!#*P+|0nt z$iUd*_PeI5joot^3!E4N)^==dZk>N_&ThsiHZDeUAx4WNb}mLsAtpnEECntmLnA3B zLt`aAm#U|`r<`c7Ed#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr z7y{OIY;A6xe{Rlh#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l z+I6hIK#K`zE`tSQ5tE@w6_cT97o$Ed#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OI zY;A6xe{Rlh#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hI zK#K`zE`tSQ5tE@w6_cT97o$E?; diff --git a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.yaml b/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.yaml deleted file mode 100644 index e3645677d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1.PriorityClass.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: scheduling.k8s.io/v1 -description: "19" -globalDefault: true -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -preemptionPolicy: J枊a -value: -595102844 diff --git a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.json b/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.json deleted file mode 100644 index 9b02c32b5..000000000 --- a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "value": -595102844, - "globalDefault": true, - "description": "19", - "preemptionPolicy": "J枊a" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.pb b/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1alpha1.PriorityClass.pb deleted file mode 100644 index 00bc5d8e8f182a338c38319793ba0f1708cecb33..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 252 zcmd0{C}!Z&=8`H-&PYuu&B@G5*UPpj*2~P-FEdQcDac4P6ygmi%FHjyEU9$PNh~fF zI>N}cl97wiNQlu`iqS-g(Nv4k+(^XG(7?pV#K6?V(!#*P+|0nt$iUd*_PeI5joot^ z3!E4N)^==dZk>N_&ThsiHZDeUAx4WNb}mLsAtpnEECntmLnA3BLt`aAm#U|`r<`c7 zE!tLPp5RfTs-sWJl)WzbG97bo~VCv zO6{|WjT+B(PCwEX3pCB#h{@1Gpym18Cx8C~0iy(?5|g2&7OU5@d0mN83`z_D04-Fi diff --git a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.yaml b/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.yaml deleted file mode 100644 index 89818f2ec..000000000 --- a/pseudo/k8s/api/testdata/HEAD/scheduling.k8s.io.v1beta1.PriorityClass.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: scheduling.k8s.io/v1beta1 -description: "19" -globalDefault: true -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -preemptionPolicy: J枊a -value: -595102844 diff --git a/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.json b/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.json deleted file mode 100644 index bf00393d3..000000000 --- a/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.json +++ /dev/null @@ -1,382 +0,0 @@ -{ - "kind": "PodPreset", - "apiVersion": "settings.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - }, - "env": [ - { - "name": "25", - "value": "26", - "valueFrom": { - "fieldRef": { - "apiVersion": "27", - "fieldPath": "28" - }, - "resourceFieldRef": { - "containerName": "29", - "resource": "30", - "divisor": "91" - }, - "configMapKeyRef": { - "name": "31", - "key": "32", - "optional": false - }, - "secretKeyRef": { - "name": "33", - "key": "34", - "optional": true - } - } - } - ], - "envFrom": [ - { - "prefix": "35", - "configMapRef": { - "name": "36", - "optional": true - }, - "secretRef": { - "name": "37", - "optional": false - } - } - ], - "volumes": [ - { - "name": "38", - "hostPath": { - "path": "39", - "type": "3fƻfʣ繡楙¯ĦE" - }, - "emptyDir": { - "sizeLimit": "700" - }, - "gcePersistentDisk": { - "pdName": "40", - "fsType": "41", - "partition": -1215463021, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "42", - "fsType": "43", - "partition": 1686297225, - "readOnly": true - }, - "gitRepo": { - "repository": "44", - "revision": "45", - "directory": "46" - }, - "secret": { - "secretName": "47", - "items": [ - { - "key": "48", - "path": "49", - "mode": -815194340 - } - ], - "defaultMode": -999327618, - "optional": false - }, - "nfs": { - "server": "50", - "path": "51", - "readOnly": true - }, - "iscsi": { - "targetPortal": "52", - "iqn": "53", - "lun": -388204860, - "iscsiInterface": "54", - "fsType": "55", - "readOnly": true, - "portals": [ - "56" - ], - "secretRef": { - "name": "57" - }, - "initiatorName": "58" - }, - "glusterfs": { - "endpoints": "59", - "path": "60" - }, - "persistentVolumeClaim": { - "claimName": "61" - }, - "rbd": { - "monitors": [ - "62" - ], - "image": "63", - "fsType": "64", - "pool": "65", - "user": "66", - "keyring": "67", - "secretRef": { - "name": "68" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "69", - "fsType": "70", - "secretRef": { - "name": "71" - }, - "options": { - "72": "73" - } - }, - "cinder": { - "volumeID": "74", - "fsType": "75", - "secretRef": { - "name": "76" - } - }, - "cephfs": { - "monitors": [ - "77" - ], - "path": "78", - "user": "79", - "secretFile": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "82", - "datasetUUID": "83" - }, - "downwardAPI": { - "items": [ - { - "path": "84", - "fieldRef": { - "apiVersion": "85", - "fieldPath": "86" - }, - "resourceFieldRef": { - "containerName": "87", - "resource": "88", - "divisor": "965" - }, - "mode": 345648859 - } - ], - "defaultMode": 1169718433 - }, - "fc": { - "targetWWNs": [ - "89" - ], - "lun": -460478410, - "fsType": "90", - "wwids": [ - "91" - ] - }, - "azureFile": { - "secretName": "92", - "shareName": "93", - "readOnly": true - }, - "configMap": { - "name": "94", - "items": [ - { - "key": "95", - "path": "96", - "mode": -513127725 - } - ], - "defaultMode": -958191807, - "optional": true - }, - "vsphereVolume": { - "volumePath": "97", - "fsType": "98", - "storagePolicyName": "99", - "storagePolicyID": "100" - }, - "quobyte": { - "registry": "101", - "volume": "102", - "user": "103", - "group": "104", - "tenant": "105" - }, - "azureDisk": { - "diskName": "106", - "diskURI": "107", - "cachingMode": "穠C]躢|)黰eȪ嵛4$%Qɰ", - "fsType": "108", - "readOnly": false, - "kind": "Ï抴ŨfZhUʎ浵ɲõTo\u0026蕭k" - }, - "photonPersistentDisk": { - "pdID": "109", - "fsType": "110" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "111", - "items": [ - { - "key": "112", - "path": "113", - "mode": -163325250 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "114", - "fieldRef": { - "apiVersion": "115", - "fieldPath": "116" - }, - "resourceFieldRef": { - "containerName": "117", - "resource": "118", - "divisor": "85" - }, - "mode": -1996616480 - } - ] - }, - "configMap": { - "name": "119", - "items": [ - { - "key": "120", - "path": "121", - "mode": -1120128337 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "122", - "expirationSeconds": -1239370187818888272, - "path": "123" - } - } - ], - "defaultMode": 1366821517 - }, - "portworxVolume": { - "volumeID": "124", - "fsType": "125", - "readOnly": true - }, - "scaleIO": { - "gateway": "126", - "system": "127", - "secretRef": { - "name": "128" - }, - "sslEnabled": true, - "protectionDomain": "129", - "storagePool": "130", - "storageMode": "131", - "volumeName": "132", - "fsType": "133" - }, - "storageos": { - "volumeName": "134", - "volumeNamespace": "135", - "fsType": "136", - "secretRef": { - "name": "137" - } - }, - "csi": { - "driver": "138", - "readOnly": true, - "fsType": "139", - "volumeAttributes": { - "140": "141" - }, - "nodePublishSecretRef": { - "name": "142" - } - } - } - ], - "volumeMounts": [ - { - "name": "143", - "readOnly": true, - "mountPath": "144", - "subPath": "145", - "mountPropagation": "腿ħ缶.蒅!a", - "subPathExpr": "146" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.pb b/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.pb deleted file mode 100644 index c9826c2a2eedbdcb63a010bd1d7d2ddb1a68fd9b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1535 zcmXX_U2GLa6y6!2!b0 zlZ?@XCsZcZP@@%9oC;^J=@B2<05e+1 z`k3(uGm)D%Z}afro-6OXQM%N1c~>!yf!8x=J!Z*f%w!j;gi;mE8vCGYcu&{Zp?#P3 zlV!ubr!Jmuth~DCt&tD6%o#becj)cqz@|B7CfM)$`?0?b`7aqlNTH)>Rl?S+jEiKY zS;0vgv5dD!vVycILE4FEubgjVQ@^TEZ%d?*FhYqcl0`4nwChfylbF!O%U)bsR~Ikg zu?U`1CQh5`HpZlRfm%UgMM%0SCWLNW+t9{RNQzQQ(&}~b+B6AzkpF5?QUMo9v?hry zg4Lmz^IJO!v0!MY;Al!-lWPi`5JrpZz|#=sgjTlJ8Wxk-zTCViuCGoPlbTef@rF2V zT0jH5usve)sE!-cxHIicJ7_A`E#WEfri4%w>SN zij+SYYz?*vrhx_TBWN_y$CgD?eb9nIgoj>k+!Np>A&NrC$Y650LS;}iZt0Ad`?~^C zCit_$cQrN$MC;|j)@z4upE)q{#l8#2hrXO2O!2*7l0QLH8cp|c0(~Sb{Ak<2x%>aY zhq5S_fiQ=#2;b}P?yJb6{8We}5Rnm16rT;A4xRvMAZEkf^L_XKErY`ccfUR~Zf3nI z-^UW@B@0nCtdayyDZ-&Y{<{32T%E%*$zv%gs=`vu^_D`*QorIgVQCgQFbqV|&|3;! zDVFgXV09IcC=p?mI)xu_`u4Jch6qh?tz4t=a4<8+<1;Vr8tFQ9>8sX;Rm-mJ9O>`Bdh%j_ zeaGz4o?~ri;nq-Qfs4@#Xeu~70f);FT|=>R-8o#lX)tbJT|ikrfeBg#f>ndyi$I84 z???18@^>IV>$_scg6U3i$1TG1{ku-O#egOB0_r<=qaZS{A!?V&fN(98xX8qk?{O%7ZT-yB!Q_WGCyr}`!_>}Z=V~8 QM|W?Z)yN^JA}{Ct4|DI3djJ3c diff --git a/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.yaml b/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.yaml deleted file mode 100644 index e92273748..000000000 --- a/pseudo/k8s/api/testdata/HEAD/settings.k8s.io.v1alpha1.PodPreset.yaml +++ /dev/null @@ -1,272 +0,0 @@ -apiVersion: settings.k8s.io/v1alpha1 -kind: PodPreset -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - env: - - name: "25" - value: "26" - valueFrom: - configMapKeyRef: - key: "32" - name: "31" - optional: false - fieldRef: - apiVersion: "27" - fieldPath: "28" - resourceFieldRef: - containerName: "29" - divisor: "91" - resource: "30" - secretKeyRef: - key: "34" - name: "33" - optional: true - envFrom: - - configMapRef: - name: "36" - optional: true - prefix: "35" - secretRef: - name: "37" - optional: false - selector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - 8---jop9641lg.p-g8c2-k-912e5-c-e63-n-3n/E9.8ThjT9s-j41-0-6p-JFHn7y-74.-0MUORQQ.N2.3: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_4 - volumeMounts: - - mountPath: "144" - mountPropagation: 腿ħ缶.蒅!a - name: "143" - readOnly: true - subPath: "145" - subPathExpr: "146" - volumes: - - awsElasticBlockStore: - fsType: "43" - partition: 1686297225 - readOnly: true - volumeID: "42" - azureDisk: - cachingMode: 穠C]躢|)黰eȪ嵛4$%Qɰ - diskName: "106" - diskURI: "107" - fsType: "108" - kind: Ï抴ŨfZhUʎ浵ɲõTo&蕭k - readOnly: false - azureFile: - readOnly: true - secretName: "92" - shareName: "93" - cephfs: - monitors: - - "77" - path: "78" - readOnly: true - secretFile: "80" - secretRef: - name: "81" - user: "79" - cinder: - fsType: "75" - secretRef: - name: "76" - volumeID: "74" - configMap: - defaultMode: -958191807 - items: - - key: "95" - mode: -513127725 - path: "96" - name: "94" - optional: true - csi: - driver: "138" - fsType: "139" - nodePublishSecretRef: - name: "142" - readOnly: true - volumeAttributes: - "140": "141" - downwardAPI: - defaultMode: 1169718433 - items: - - fieldRef: - apiVersion: "85" - fieldPath: "86" - mode: 345648859 - path: "84" - resourceFieldRef: - containerName: "87" - divisor: "965" - resource: "88" - emptyDir: - sizeLimit: "700" - fc: - fsType: "90" - lun: -460478410 - targetWWNs: - - "89" - wwids: - - "91" - flexVolume: - driver: "69" - fsType: "70" - options: - "72": "73" - secretRef: - name: "71" - flocker: - datasetName: "82" - datasetUUID: "83" - gcePersistentDisk: - fsType: "41" - partition: -1215463021 - pdName: "40" - readOnly: true - gitRepo: - directory: "46" - repository: "44" - revision: "45" - glusterfs: - endpoints: "59" - path: "60" - hostPath: - path: "39" - type: 3fƻfʣ繡楙¯ĦE - iscsi: - fsType: "55" - initiatorName: "58" - iqn: "53" - iscsiInterface: "54" - lun: -388204860 - portals: - - "56" - readOnly: true - secretRef: - name: "57" - targetPortal: "52" - name: "38" - nfs: - path: "51" - readOnly: true - server: "50" - persistentVolumeClaim: - claimName: "61" - photonPersistentDisk: - fsType: "110" - pdID: "109" - portworxVolume: - fsType: "125" - readOnly: true - volumeID: "124" - projected: - defaultMode: 1366821517 - sources: - - configMap: - items: - - key: "120" - mode: -1120128337 - path: "121" - name: "119" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "115" - fieldPath: "116" - mode: -1996616480 - path: "114" - resourceFieldRef: - containerName: "117" - divisor: "85" - resource: "118" - secret: - items: - - key: "112" - mode: -163325250 - path: "113" - name: "111" - optional: false - serviceAccountToken: - audience: "122" - expirationSeconds: -1239370187818888272 - path: "123" - quobyte: - group: "104" - registry: "101" - tenant: "105" - user: "103" - volume: "102" - rbd: - fsType: "64" - image: "63" - keyring: "67" - monitors: - - "62" - pool: "65" - readOnly: true - secretRef: - name: "68" - user: "66" - scaleIO: - fsType: "133" - gateway: "126" - protectionDomain: "129" - secretRef: - name: "128" - sslEnabled: true - storageMode: "131" - storagePool: "130" - system: "127" - volumeName: "132" - secret: - defaultMode: -999327618 - items: - - key: "48" - mode: -815194340 - path: "49" - optional: false - secretName: "47" - storageos: - fsType: "136" - secretRef: - name: "137" - volumeName: "134" - volumeNamespace: "135" - vsphereVolume: - fsType: "98" - storagePolicyID: "100" - storagePolicyName: "99" - volumePath: "97" diff --git a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.json b/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.json deleted file mode 100644 index 891ace57d..000000000 --- a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "provisioner": "19", - "parameters": { - "20": "21" - }, - "reclaimPolicy": "qJ枊a8衍`Ĩ", - "mountOptions": [ - "22" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "23", - "values": [ - "24" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.pb b/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1.StorageClass.pb deleted file mode 100644 index 5ab7d7234aa7e4ff2e9b9e25eeb9a92cc9fad4af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 267 zcmd0{C}!YN0#me<}m+Pts5J@eu#N1KneJ2$KBOT;G3 zAv{ThOQc5>s|f;MFyTuPX56J@1|SadMFyth9-8 zh;G_ylgOcge>i2+fF)_b-EEI|#EWC={qM9Dva3VKJ&L-PCap9O9W;?{vw z>e@g5;v*?5 z`2c9??1*QtHQyL%{$aM%yOckh?~eN?N~1%CZ0T$^fAVd28&n~ZRf4#bY0t(U19LxN zF;w8N;uxEAmvZ4zE*a%vx(X46h~8_ZYk`p={KQ6I&&{na6@fhLdrZ;l6%PFWt6 z(Lu;U-=Sg9v;&9%@ucBk8A@mj#(<$Zj8Q`k6eTQ|D!&ycsbHyKsbHx@$96EVRG~Qx zr97%MqblkqyKJgqqJt!P%cYv_wpewh{Mq-dg~7GX;^h4ErGc3&ftAKZXz>xjF=|xO zsC0&S*kEFz~H6B$Hmil*x$MlI#Mq)wBu1>MnkF?KlvsNM0ga+f zxC!>4T!eyc3AI3D+t8y@FQtekaJbY5lRo&M#y9tH&V#1$v5A*&a35yB`Tp?_13%pp8UgiEAH6srmXUohcI5ouqm&<~l<^{;<+{nXh%(b-&U)n9x6tM2zM{5Y{d z4wc(PIYc*XwMpdAz(1O@X~2>+;O@33+vA1N^}csnSF)>v%^pQvOOqBFh;|ytEUAGs zbas`7vhirPG<|kua__--;>+c4GBvkGPZfqc_Y~&G^Sy^rO)(m1=T12?BIkGfnD6{n zZg02meZ8(Qna$|p#SdS~Uv{?GWuatF#}>O1n!urqCC2amb*DUKIroF%U_@fD>-yS1 z|KcMlEBO#;>FkVWZZzH+Zv0`U*t3{FpYMwM#)~6^E7{`tZ2t7y?l!1GB&!5*Dbt>f zJqG4}!eXevVZ|{v=Pu>Kqg*n|!*m5A3K6}}N>>9TL->h}-tOC5T`B^P3g(kE6?~s{ z09qjsmoHciRD`uv*dteHIGPx8rC;};O(nb}yd=D&@DP&{Oz4vX4*;vm_0^$Y{@xr9 zBAv24Dx*V?g}y_>pkXHv1L8@;!7`N47>of!brhq98YoIwE>(UDPEx^A!BW9eiT3Sa zV5vfL7)p6mX+~AlMRwa%!$b#3@|H_A+heiHOzE@lTUG|vItmkWFBbc!vjkQe7oo*R z1jndRNu$y^;$ee{wKk1u%p3Wp`6ysCVrd%jS{jKu8p(QV$`pyvZ=|l0CjilK6eY_7 z-=r`bAaJlSLvhzx&pjPyzbMU*#}}vaBdOIh^&SF(VUcMp;T(C&Bq@_*P8`1omt2N7 z3n~cMCT0fn^d=St%i2vG8m#Izu{JnLR=rZZKK$_VxBH8;m)54^&Y^hXlgHc?D&py4 z3D6m1u7y4rXIKRKVA9)F`rypt%Qx~Pt2ay6`tt*EPhZ@(z*l>hXP=43CX1*0jW{%7 zRZEu^>z=m{+RxgLn!?&i6|UyirsCeQmG3r&Mo-4MuBF-H;<;#jV51{f__*7g2j1;& zsJZX#*jvoyPOX0$&y3}7Zd|@p_yV#ylB6IIA$!)(KHvy`|OH}pNG!& Xc$JnRq-%&j?#^}G^FI+LE!X-F$AUb^ diff --git a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.yaml b/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.yaml deleted file mode 100644 index 526e4459b..000000000 --- a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1alpha1.VolumeAttachment.yaml +++ /dev/null @@ -1,229 +0,0 @@ -apiVersion: storage.k8s.io/v1alpha1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - attacher: "19" - nodeName: "132" - source: - inlineVolumeSpec: - accessModes: - - d賑'üA謥ǣ偐圠= - awsElasticBlockStore: - fsType: "24" - partition: -387137265 - volumeID: "23" - azureDisk: - cachingMode: x - diskName: "80" - diskURI: "81" - fsType: "82" - kind: a鯿rŎǀ朲^苣 - readOnly: false - azureFile: - secretName: "68" - secretNamespace: "70" - shareName: "69" - capacity: - qJ枊a8衍`Ĩ: "652" - cephfs: - monitors: - - "51" - path: "52" - readOnly: true - secretFile: "54" - secretRef: - name: "55" - namespace: "56" - user: "53" - cinder: - fsType: "48" - readOnly: true - secretRef: - name: "49" - namespace: "50" - volumeID: "47" - claimRef: - apiVersion: "123" - fieldPath: "125" - kind: "120" - name: "122" - namespace: "121" - resourceVersion: "124" - csi: - controllerExpandSecretRef: - name: "118" - namespace: "119" - controllerPublishSecretRef: - name: "112" - namespace: "113" - driver: "107" - fsType: "109" - nodePublishSecretRef: - name: "116" - namespace: "117" - nodeStageSecretRef: - name: "114" - namespace: "115" - readOnly: true - volumeAttributes: - "110": "111" - volumeHandle: "108" - fc: - fsType: "58" - lun: -616291512 - targetWWNs: - - "57" - wwids: - - "59" - flexVolume: - driver: "62" - fsType: "63" - options: - "66": "67" - secretRef: - name: "64" - namespace: "65" - flocker: - datasetName: "60" - datasetUUID: "61" - gcePersistentDisk: - fsType: "22" - partition: 1847377175 - pdName: "21" - glusterfs: - endpoints: "26" - endpointsNamespace: "28" - path: "27" - readOnly: true - hostPath: - path: "25" - type: 夸eɑeʤ脽ěĂ凗蓏Ŋ蛊ĉy - iscsi: - fsType: "42" - initiatorName: "46" - iqn: "40" - iscsiInterface: "41" - lun: 2048967527 - portals: - - "43" - readOnly: true - secretRef: - name: "44" - namespace: "45" - targetPortal: "39" - local: - fsType: "97" - path: "96" - mountOptions: - - "127" - nfs: - path: "30" - server: "29" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "128" - operator: 檮Ǣ冖ž琔n宂¬轚9Ȏ瀮昃2 - values: - - "129" - matchFields: - - key: "130" - operator: -议}ȧ外ĺ稥氹Ç|¶ - values: - - "131" - persistentVolumeReclaimPolicy: 錕?øēƺ魋Ď儇击3ƆìQ喞艋 - photonPersistentDisk: - fsType: "84" - pdID: "83" - portworxVolume: - fsType: "86" - readOnly: true - volumeID: "85" - quobyte: - group: "78" - readOnly: true - registry: "75" - tenant: "79" - user: "77" - volume: "76" - rbd: - fsType: "33" - image: "32" - keyring: "36" - monitors: - - "31" - pool: "34" - secretRef: - name: "37" - namespace: "38" - user: "35" - scaleIO: - fsType: "95" - gateway: "87" - protectionDomain: "91" - secretRef: - name: "89" - namespace: "90" - storageMode: "93" - storagePool: "92" - system: "88" - volumeName: "94" - storageClassName: "126" - storageos: - fsType: "100" - secretRef: - apiVersion: "104" - fieldPath: "106" - kind: "101" - name: "103" - namespace: "102" - resourceVersion: "105" - uid: ȮO励鹗塢ē ƕP - volumeName: "98" - volumeNamespace: "99" - volumeMode: ½ - vsphereVolume: - fsType: "72" - storagePolicyID: "74" - storagePolicyName: "73" - volumePath: "71" - persistentVolumeName: "20" -status: - attachError: - message: "135" - time: "2327-07-20T07:31:37Z" - attached: true - attachmentMetadata: - "133": "134" - detachError: - message: "136" - time: "2046-08-01T16:33:49Z" diff --git a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.json b/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.json deleted file mode 100644 index 0e9e30b08..000000000 --- a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "kind": "CSIDriver", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "7", - "resourceVersion": "11042405498087606203", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fieldsType": "18" - } - ] - }, - "spec": { - "attachRequired": false, - "podInfoOnMount": false, - "volumeLifecycleModes": [ - "r鯹)晿\u003co,c鮽ort昍řČ扷5ƗǸ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.pb b/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.pb deleted file mode 100644 index bce3620d37eaef45db11e9eac920293e09476926..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 261 zcmV+g0s8)HICB6BBMKICbZ>HDXJsyHICCy(Z!dN+Vr6t;F%k(wQ%OW}X?A6D64e0; zsR0TBG774F)%bTG%z(ZIXEylH#RUfGB7hZ+wOwZfs34ha6$l3 zt%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{ za4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvY zDCW7B#D-lO0x>r-0x>ueCkOx#02(23>94sd=9#}dZ!BZ!uDx$^bmo|i#hJv6=83m8 L#+S#q8UP{yfBsr? diff --git a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.yaml b/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.yaml deleted file mode 100644 index bbb086e86..000000000 --- a/pseudo/k8s/api/testdata/HEAD/storage.k8s.io.v1beta1.CSIDriver.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSIDriver -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fieldsType: "18" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "11042405498087606203" - selfLink: "5" - uid: "7" -spec: - attachRequired: false - podInfoOnMount: false - volumeLifecycleModes: - - r鯹)晿M{_Vmk7NfkQ6$hDG@i_u7k z(O8PnM2XQd#K^?J)Wp)lz{1?jz|6?N*y8rPrmKzJa~cbr7y{OIY;A6x ze{Rlh#wa!}Msp!XizId~MoS?kLxU^@E+#`GDJDZ>B|ev`r@N<|Xs<3l+I6hIK#K`z zE`tSQ5tE@w6_cT97o$ENt-Bw}c2U}9uqU}|D%VPIiyW?*JyU~F;wUDMUZ?m3MGP7DESJGM5r z&ObM2H)9kV7o)ilqeT)s7o(*Rlc7PD0vD5^krb1mu@aw4)zjTmPPA7SAMHBUU!cVV zG?&4Gv53jgq>9PVw2M(6sMJhI@#TcBr&GFKE}nUGo^I&VIa>~IPt-p-rS{pxMvZ4X zrypsH1)64V#AIjzG~ZH+gNwHwD>)E`nM2i;-dlQbV&|)$&GGMe~aN^MnkF_~bfdPmR6wI> z6K;ZCl#5WXEx{IOtPNe2dMQOTf#p&kO#0x18sD5{_d(P6*u=|sa30Ql=lj3^|Nj4+ zb4<5cwrAJ2wYRipUdq-T(`|LHwA8;5G-um0fm8iV%d4*+&+cz;&%E&R@$89q=T?>d zDX|H22u~8>66q1eYJ$KQO!!hn+Se-dL*{e+>z~~}bq!2*oouk0uD>z>+lJ?vBSh;>EFz{?#lE;;~$L=IrX!-h=Vvmn+|7>TiynDvosRDK1PD`kqHM#b}_N+m*!McDC6Sp=3_yHoF>{z@dyKChq)oyE0`t_k!VIL}IA>+WJ5L z;v*?5`56Feqyt)=hk+Yiom0S`6NvR-)9|w zRtUu9b5=7IVM7h}$Q2rnCWc(;H$Grf2`>pR2`?!;#H0ih`sBd0ELNQfm~3adQ4}X<#NtV5M;pT6{=w zj2e|RDxD)9Hkepz)0oD*k#Cxh0!Aa2rV($Tk!YlmY_g_JkqG@p>I!)b5DiCBvLf(J z3bO$M2MaS4cb$#=lX32g^1?)Xak?;?T07I^As`qQnZ^>%lP64)GD+sd@r!WD6?n6t zf`DydW-w20VPUXr*utT~s&NZzgQH~4i=}HL53PK=zchDgeJ1W2jwdfX;-*j$PZvvo z&KPqo^uaj8BG3nu-mdcdXC7U-UKm}wQNB7*7>s-S-p%JSF zy1dl*tbNda+J4v+)=sK;CBHr$_l>W9w>dm^BF=X&&y|+WMH_>go%!NNJ?1>{Zg)e? zedoTtrF{O>#wYRYc;Uw8...[json|yaml|pb] -``` - -To run serialization tests just for the current version: - -```sh -go test ./vendor/k8s.io/api -run //HEAD -``` - -All three formats of a given group/version/kind are expected to decode successfully to identical objects, -and to round-trip back to serialized form with identical bytes. -Adding new fields or API types *is* expected to modify these fixtures. To regenerate them, run: - -```sh -UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test ./vendor/k8s.io/api -run //HEAD -``` - -## Previous versions - -The vX.Y.Z subdirectories contain serialized API objects from previous releases: - -``` -vX.Y.Z/ - ...[json|yaml|pb] -``` - -All three formats of a given group/version/kind are expected to decode successfully to identical objects, -and to round-trip back to serialized form with identical bytes. -Adding new fields to existing API types is *not* expected to require modifications to these fixtures. -This requires making optional scalar and struct fields pointers so that protobuf serialization omits them when not present. - -To run serialization tests just for a previous version, like `v1.14.0`: - -```sh -go test ./vendor/k8s.io/api -run //v1.14.0 -``` - -To run serialization tests for a particular group/version/kind, like `apps/v1` `Deployment`: -```sh -go test ./vendor/k8s.io/api -run /apps.v1.Deployment/ -``` - -Failures to decode, to round-trip identical bytes, or to decode identical objects from json/yaml/protobuf, -will output detailed errors about the differences encountered. Detailed errors about protobuf differences -requires `protoc` to be available on your `$PATH`. - -In exceptional cases, new non-pointer fields were added to existing API types that serialized zero values, -resulting in additional fields being output when round-tripping data from previous releases, and failing round-trip tests. - -To resolve this, a `.._after_roundtrip.[json|yaml|pb]` file containing the -expected data after roundtripping can be placed beside the serialized data file from a previous release. - -These `after_roundtrip` files are generated by running the failing round-trip tests with `UPDATE_COMPATIBILITY_FIXTURE_DATA=true` set. -The detailed diff from the test failure should be included in the commit message, along with a reference -to the change that caused the failure. Updates to these files is exceptional, and requires extremely close review -to ensure we are not breaking backwards compatibility with serialized data from previous releases. - -To see the diff between the original JSON/YAML data and the `...after_roundtrip...` files: - -```sh -cd vendor/k8s.io/api/testdata/v1.14.0/ -diff -u admission.k8s.io.v1beta1.AdmissionReview.json admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.json -diff -u admission.k8s.io.v1beta1.AdmissionReview.yaml admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.yaml -``` - -> ```diff -> --- admission.k8s.io.v1beta1.AdmissionReview.json 2019-06-02 20:21:03.000000000 -0400 -> +++ admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.json 2019-06-02 20:21:03.000000000 -0400 -> @@ -31,7 +31,8 @@ -> }, -> "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, -> "oldObject": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, -> - "dryRun": true -> + "dryRun": true, -> + "options": null -> }, -> "response": { -> "uid": "爟¼ªov鈶", -> ``` - -> ```diff -> --- admission.k8s.io.v1beta1.AdmissionReview.yaml 2019-06-02 20:21:03.000000000 -0400 -> +++ admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.yaml 2019-06-02 20:21:03.000000000 -0400 -> @@ -23,6 +23,7 @@ -> status: -> available: 1 -> operation: 祈¡ıŵDz廔ȇ{sŊƏp饏姥呄鐊 -> + options: null -> resource: -> group: "5" -> resource: "7" -> ``` - -To see the diff between the original proto data and the `...after_roundtrip...` file, you must have `protoc` available, -and strip off the leading four-byte kubernetes protobuf header to get standard protobuf that can be decoded: - -```sh -cd vendor/k8s.io/api/testdata/v1.14.0/ -diff -u \ - <(tail -c +5 admission.k8s.io.v1beta1.AdmissionReview.pb | protoc --decode_raw) \ - <(tail -c +5 admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.pb | protoc --decode_raw) -``` - -> ```diff -> --- /dev/fd/63 2019-06-03 11:56:12.000000000 -0400 -> +++ /dev/fd/62 2019-06-03 11:56:12.000000000 -0400 -> @@ -37,6 +37,8 @@ -> 1: "{\"apiVersion\":\"example.com/v1\",\"kind\":\"CustomType\",\"spec\":{\"replicas\":1},\"status\":{\"available\":1}}" -> } -> 11: 1 -> + 12: "" -> + 15: "" -> } -> 2 { -> 1: "\347\210\237\302\274\302\252ov\351\210\266" -> ``` \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.json deleted file mode 100644 index 818d3283a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "kind": "AdmissionReview", - "apiVersion": "admission.k8s.io/v1beta1", - "request": { - "uid": "ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ", - "kind": { - "group": "2", - "version": "3", - "kind": "4" - }, - "resource": { - "group": "5", - "version": "6", - "resource": "7" - }, - "subResource": "8", - "name": "9", - "namespace": "10", - "operation": "祈¡ıŵDz廔ȇ{sŊƏp饏姥呄鐊", - "userInfo": { - "username": "11", - "uid": "12", - "groups": [ - "13" - ], - "extra": { - "14": [ - "15" -] - } - }, - "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "oldObject": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "dryRun": true, - "options": null - }, - "response": { - "uid": "爟¼ªov鈶", - "allowed": false, - "status": { - "metadata": { - "selfLink": "(湗Ć]ʪƬ滈憴Uą飋ī", - "resourceVersion": "71208173751669476" - }, - "status": "16", - "message": "17", - "reason": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ", - "details": { - "name": "18", - "group": "19", - "kind": "20", - "uid": "Ƣ6/ʕVŚ(ĿȊ甞", - "causes": [ - { - "reason": "颋Dž", - "message": "21", - "field": "22" - } - ], - "retryAfterSeconds": 1001983654 - }, - "code": 153738858 - }, - "patch": "fQ==", - "patchType": "-Ǐ忄*齧獚敆Ȏțê", - "auditAnnotations": { - "23": "24" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/admission.k8s.io.v1beta1.AdmissionReview.after_roundtrip.pb deleted file mode 100644 index bd49825c7907019e648184957dd3e3528747a3b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 609 zcmd0{C}!Z&=8{NE$;~V-&dkr#%eE-i%gom=GfYY?Ni-DVcZA6VrIux;mJ6+9;kv}c zC4Y3{(@m`>rh0fhUA#v1<-T3V=RaGyp`?6YbT-N4t*o7rb2B|8)7%rxROV zPUv!y;9@c~6k;+ol43G6R^kHkOoUi~q^Va5S5mc7VnJqDY7xlQN>)m#6^Xe8IjMTd z`ME&HE9od@XXd2<#hpuwOY(C=DhpD9V#Nii$x2q$N=2y!Iho0c#Y$F&wLsC5#FA1V z8)#x#VrEWaQcfyJqBe*wwnQ){F;p=KU1a3qdEPPq(4Ir9^2=U!Y!hIRn#sszz$K~i zZ0GbNZLz0T9b5BkcgM4~EulwRUoP%GvRX*c+|bCt!qD8<+|rh0fhUA#v1<-T3V=RaGyp`?6YbT-N4t*o7rb2B|8)7%rxROV zPUv!y;9@c~6k;+ol43G6R^kHkOoUi~q^Va5S5mc7VnJqDY7xlQN>)m#6^Xe8IjMTd z`ME&HE9od@XXd2<#hpuwOY(C=DhpD9V#Nii$x2q$N=2y!Iho0c#Y$F&wLsC5#FA1V z8)#x#VrEWaQcfyJqBe*wwnQ)rU1a3qdEPPq(4Ir9^2=U!Y!hIRn#sszz$K~iZ0GbN zZLz0T9b5BkcgM4~EulwRUoP%GvRX*c+|bCt!qD8<+|X7^^_EghMg~g!T&yn_ zbsujPVlpxW3K(fDoBQN0vytGjMP~Y^riLAzrEz5ciLU2U<{7-&v)ogOu~th=_jv!) l{ViHA_bz|lJL}ohwiA6PW*=T<#KFa6WDGRMM2bO)0RVY@_kAB9zXWyyTq9RwhLSPI ziP@=iI2v;@X){B2n7|H<*>(Mr70#Fvf21v&p++j&9k#C8cA~*fMPkwH|1iI_gWF;_ z2Jwt6FiMb7YlB|CIzQsQzTQ%rbxmBEdw9iL*q(%y$tBGjx!}JlgwX*>Gc*OMqOM>W zYpNz9*}y;l-1#vyGCkB+ALw{{|HIwd;k{G~Dnw69RR#IIC(5S{At3Go5F}FHDRh$J~{`B&f6|-)8 z>~`t#(8<#3gm>=}ZPQVJ|HX1FQuu@1KFS);B3)n+=9#~gR6*tr`NI>HC!*ah*R*^Yl4c6j)gba+`A-qn$OUKCd?i_m-At{P&;y^}*Wj3>W7vV*peN z07MPTzydc67^j!2gB-Ad0+K*aQ`1apmO}Mw6zSej94S<#(+^Nx_97$@C<=rjNJvu@ z14I&?h6KZ{{2nPJ106&#AK^e7XeKIw83?VWv(O*}$|NhnB!TLgZa_K#l%r55DAL}m zHt{>#?aaB9K!rBryx}y%?yL#`Y$Z?xfQTJBfeo-H3_zo(LzBQ9$q~B?9sl~YJpSfp sb#bux(km2~N~=@Vg~=2C_^iJ&(^CHUZu6Oir}Bm0Y&|PuArK7w0}vVB9smFU diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml deleted file mode 100644 index 10eabc1ee..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml +++ /dev/null @@ -1,62 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: MutatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "38" - clientConfig: - caBundle: /Q== - service: - name: "27" - namespace: "26" - path: "28" - url: "25" - failurePolicy: 洝尿彀 - name: "24" - namespaceSelector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK: 1d3-7-f8 - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - 凗蓏Ŋ蛊ĉy緅縕>Ž - resources: - - "31" - scope: ǡƏS$+½H - sideEffects: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - timeoutSeconds: 743309977 diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json deleted file mode 100644 index db58d8b67..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "kind": "MutatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "webhooks": [ - { - "name": "24", - "clientConfig": { - "url": "25", - "service": { - "namespace": "26", - "name": "27", - "path": "28" - }, - "caBundle": "/Q==" - }, - "rules": [ - { - "operations": [ - "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - ], - "apiGroups": [ - "29" - ], - "apiVersions": [ - "30" - ], - "resources": [ - "31" - ], - "scope": "ǡƏS$+½H" - } - ], - "failurePolicy": "洝尿彀", - "namespaceSelector": { - "matchLabels": { - "8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK": "1d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "sideEffects": "ʖ畬x骀Šĸů湙騘\u0026啞川J缮ǚb", - "timeoutSeconds": 743309977, - "admissionReviewVersions": [ - "38" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb deleted file mode 100644 index 876472b7f7b6d47d4b9da897b126cbd47525cd98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 656 zcmXAj+e=hY6vpQq%4`!7o1z$cs7WFw_V(P*J`V+{p(%=BCJD7W$GJ2!%^aJHHAbMt zWQ~MHnp$d!K1ervFdQ)vYDTk%o(h7V3eH?!`VWFOwBX}g>svn-D?$=3&Rlag?!CX0dH!{Jjq9lboDMl+?E;(uc~J--2D~V_c~SP% zG!8gxW1oj_CJNcj(LOIPih_%9ab8pgcu~!ACmE{2BbA3)XDnNppDN6vE@yiA(~4QQ zJ$9@3Xy|xxbs~TFBDbXqfAN5q6u2MkVXi@5(%rm7AorJ<>XyL) zXLzFgc(jl$Kg;Itr%NlDQf~ZIVI3Z1JbP9a+`KG$z}DR6XlLz-kL%5z-Noe@=iP?0 zKIr|%fiSp45K@^C5;P(s3tcyGm`$pV(#S>%iXuJEmS$A56qa9Qiud}$lEP9}{Ya`y zUBDD0MZwsIDQyZ8B+*ExA!2_ktQLJT(oulG06=Z1nW_{gF}9k{V1rUD)0Bv#6sxDZ z5$!}+4q}~3f%aat3GQsSlV@XY7PJ}Xj6^f;PN@jtR*D6LsL-KP+<<%h2sH{iHYrZi zG_|{=qhFqs#$Vs4yc{gN$ma@6#nq|G;^Z-BeAZc+X(@epyYavzMhwf+vRcn E1IQ%bl>h($ diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml deleted file mode 100644 index 283d13b3f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml +++ /dev/null @@ -1,65 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: MutatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "38" - clientConfig: - caBundle: /Q== - service: - name: "27" - namespace: "26" - path: "28" - url: "25" - failurePolicy: 洝尿彀 - name: "24" - namespaceSelector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK: 1d3-7-f8 - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - 凗蓏Ŋ蛊ĉy緅縕>Ž - resources: - - "31" - scope: ǡƏS$+½H - sideEffects: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - timeoutSeconds: 743309977 diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json deleted file mode 100644 index c94143578..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "kind": "ValidatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "webhooks": [ - { - "name": "24", - "clientConfig": { - "url": "25", - "service": { - "namespace": "26", - "name": "27", - "path": "28" - }, - "caBundle": "/Q==" - }, - "rules": [ - { - "operations": [ - "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - ], - "apiGroups": [ - "29" - ], - "apiVersions": [ - "30" - ], - "resources": [ - "31" - ], - "scope": "ǡƏS$+½H" - } - ], - "failurePolicy": "洝尿彀", - "namespaceSelector": { - "matchLabels": { - "8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK": "1d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "sideEffects": "ʖ畬x骀Šĸů湙騘\u0026啞川J缮ǚb", - "timeoutSeconds": 743309977, - "admissionReviewVersions": [ - "38" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.pb deleted file mode 100644 index d8391a1828e94830633bbf98b16d0d21e2c7dfe5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 642 zcmX9&+e;Kt9Nrna4$;F<6!Q?ZNrZ8ZGiPpRUV_xp6h$zVggVW-mv-0Pv7KFOjX;ad z8VQRuwbT-OkZ$&1?21WHvtD}Wsh)Z&n7zF89|Rrf2Or<>_kAB9zc{vi+&Qks3?`zs z9kr6FP$X)nQ)Zg(Fpg~)wdw|?KqzfW{E=?6KN_S~GSU+YT(zutgOvR$wCL-CuKmXkRF)}tgGEnd9czf@|o!s+pvujN6E{@T81_yR?jKQ;#7(2?b5)xQR z_U~^T^42D{MsM0hXJdSzmX##YhnW;BDMPHJIt-vujXzd>=y(%Ob#bOR54ybBl`na- zZhPWZ>Cwo^((06Z_Y!T>k&pkyax7B#gWNvK8qXqKU=ik-zm!x#<_>wIQm#Tv-uz&&*Ku=NAOlSdx>ira{zF-U~RHZWrP+jICBoHVHgh5D1 zQv?G<;+=*BL#_NCDJTOSgfSoHKpSW#DuHPT15Ib4K?sydMuG_f)iXVSbOI$|ZiYP>6#&>upa=jFJ9GjYU~dS3Mp1_*fmxCzRu?+{^+|d1 u&5i1-;o=LoP+Tsp&QzDCPk58_UVg5n{PEr9(*T~y6@Ihztc(Sp-}evcx!&9W diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml deleted file mode 100644 index 079716944..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml +++ /dev/null @@ -1,62 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "38" - clientConfig: - caBundle: /Q== - service: - name: "27" - namespace: "26" - path: "28" - url: "25" - failurePolicy: 洝尿彀 - name: "24" - namespaceSelector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK: 1d3-7-f8 - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - 凗蓏Ŋ蛊ĉy緅縕>Ž - resources: - - "31" - scope: ǡƏS$+½H - sideEffects: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - timeoutSeconds: 743309977 diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json deleted file mode 100644 index ffee092c2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "kind": "ValidatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "webhooks": [ - { - "name": "24", - "clientConfig": { - "url": "25", - "service": { - "namespace": "26", - "name": "27", - "path": "28" - }, - "caBundle": "/Q==" - }, - "rules": [ - { - "operations": [ - "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - ], - "apiGroups": [ - "29" - ], - "apiVersions": [ - "30" - ], - "resources": [ - "31" - ], - "scope": "ǡƏS$+½H" - } - ], - "failurePolicy": "洝尿彀", - "namespaceSelector": { - "matchLabels": { - "8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK": "1d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "sideEffects": "ʖ畬x骀Šĸů湙騘\u0026啞川J缮ǚb", - "timeoutSeconds": 743309977, - "admissionReviewVersions": [ - "38" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb deleted file mode 100644 index 48af79b44406c7dc0c8c288a59bf3ff84f72b0fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 658 zcmXAj+e=hY6vpQq%4`!7o1&P9s7WFw_V(P*J`V+{r74PFDhaha<6N2KaAODf z!2wQ!ob2Qj7pJ;i`E+GrEdT0iOK~n^lJflh%lXCaX?r`Yj%z6tpc15IpWy`I0N#c5IPKaQF8L4 z?5b%Tveza)kKTwEGMnQAZeA1x2jOD8s0{II;drm`?om_uE5cKOqa zS+_lLv-oi2cyVF3R9%MXwRu-JREV{tf{N{LP?TL@;&92?WFh2xI_?AnGg~*A|nsFX5bK;R2`*|g%lJ)dW^4^M)jarK|># zRF}MfDMpHdu@_U?6d*{V;Z8%uzE)T*dS#>|KY@OL+E6o9DNbPQX*z=qO0i6nB92h3 zp6)@k6Ja@kbt?JW`_v}5v)xLZi#l1*W}G+T&A2D2B7|Eh77(IBhfZ+=?)4$mDCpRv zI7L&`>XMFrd0d)&eZBH>xbQrmD=ZaPXDW-+$Lz^Ddu6tz^x^H+6Azh5=YI3`yiA-9 Gm*XF;v*1$z diff --git a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml deleted file mode 100644 index ac1e3f581..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml +++ /dev/null @@ -1,65 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "38" - clientConfig: - caBundle: /Q== - service: - name: "27" - namespace: "26" - path: "28" - url: "25" - failurePolicy: 洝尿彀 - name: "24" - namespaceSelector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 8--58----0683-b-w9.j---57-y-o-4-m-7r--0am6b4---l---rcdj24r-----v-2/uY._.-44..d.__Gg8-2_kS91.eK: 1d3-7-f8 - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - 凗蓏Ŋ蛊ĉy緅縕>Ž - resources: - - "31" - scope: ǡƏS$+½H - sideEffects: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - timeoutSeconds: 743309977 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.json deleted file mode 100644 index 21a081ff9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": 1089963290653861247 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ControllerRevision.after_roundtrip.pb deleted file mode 100644 index e1aef3b40e82b26bf9089952c8f9f375ce74dae6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 357 zcmd0{C}!Z24rX?v*qyiME#RfYM)JP)OfaY`jNI+plRkt3_>YfN!3b;1({)~ zMIhfPSt+GfB<2?6r0ON-=K_O3Nk=I=GcN@w?p#`2lAjw=S&#}8D=tV)R4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hARwv zQiwq)g)6CADX}0kEVT&aTO}){)QZI1f}B*nf{ji~k%W_>q99h!huM9;7CD zyl+REHh9}srG^@+78&8jjlcA^1nQ-5{V~nEVL|ZVnN0dH(M*j|Ro0oI7@DfdR56V| z-YEH?c*CCJl_|DaM=MUf_4d9CdwNh>ynu8O8R;VhWQukoFLMiaLS1&Ect%Ys4EEIe z%h%`mss?ISCfNy*Z3fD<6IN&^Y8ApDs)v9(~FV=wQq*D z6eotdcX-QQ18q9BiCdo#_95XpftlI*x(uDEt7IJgqnI+HV76inHn5h=c7=NEijp*DVDl_%c*mLW#!bPuHl+KG4t7M29UpEyzCK)09Nb(P-q!LGGYjQzOhMudg_=``w{!I^_Lk=bdl+F7ADQN?HP#P{D+j&fj!+GkE5i?6NcB z8THKU(8hBAne|Tx&V<^FlkAEqBc6Fi3++s)LJxo_6Kx=@LSk<{CR~db>?#p2#|sa_ z3l&FN-Xr14=3j_E77~2rPk9@>$CJbnLY!u*u17#Z5$!5-UVg9Q(*N9rKjgM~9KZ&b zRLxn`dZ9Yrjgr8M3a+V!%dVOf+|y+7A)rLGYt(t7xcr~Dqnn*yetO|CHyS6v8YtG7 z6Qv}>J8081=kF_f?|c)L^Vl^#$*vi)ZJb>*C)noPC)jm)p)K96lT_HOQ_-#~PTL#^ zMrRIN8kp2UiLSZqy6&;-Mv`4Osojvr!A^rrK?Rzn2?uM!!J0}E@J%M8LfB=(E>kN(hVV4}&_&KNfMvQILL8B05eVUC znC!lO^VBE*8;!~F#fG}zx6#)s^b;;f9b0zZ+J#*3s(?T6U|Zq9;Hh#IniK6pPYZAs zMApSe_`~3Q(|P6cm5*YYoM%4XQ+@AX&;j%?2oY|d5YS4f2Z+*&MsqgfY!xDehn56H zr$CGj^dw(3VU^0R2ZMDD!P9$Fhu>)*+?5WZlqA}yedx$pB!C#DTukYUdI^^?jwpuH zHiRTtQ@9GamfT-PqVX_F;awRAgrxvcQ-Nr+Y?sguBvc|{bTl~1M4mUwgQl8u;FA*n z2)9inLNe#-V$?8?oSLp50}Cn+2;qiwO>qZrT>mzf0hc?fPodFdDGC>3&Z{4NSQ@)k zZsg%vR8+^Y3!z&>m+PAj@Z>9+<5J!AhC9)txrUq|!gy%RfJJ7yZAm;NRsIw`&Y#3# z1HMW<+%G5(AS@=Kih+0`jzXscqPu_?9w25?9Hlay085lOx{h4^B<7Cu%Jq`&SY3Gj zJyQIRuWi<};ga^yrmDW<*+cD-?e7G)ZVI)X$sDTX8tAwgTmx55b=P2vi zD@M}8{msLB+ujWBFCT8~2-lqo90+eHqp)PofkRA-8e&u&4?CG6{#%00arE8Gf8pu8 zi(Fh0W1dG}iFCE9Yl98Nk<-=T-q!HWbMuF5_9pQt7@Rz18dT5y2`Flr=btje(OJ>y zMb6sK&+dzN7a#thET%It(0(}*%c1<2&#HIdidss`6UN6}F-5r2FxA9=sZ*gED4ZC2 zGir|?8dcd3>_IyNj^@}~-T1dS=eb+&e;Yd&_uj8QIdsox{otPWW0fp>`)+>`R*v z;9E&UJA-XI$A-6VRU>=L3ttz0COi;0HA9*m?kMkT@^_1m40I3HuI)daJ$<-i_vGQX zy9YN9bWC<27jze@^9!V_;D@fk?a+1iXI~!*+-_<9^DUHUgQ;(uaA|jo{}0WzH_A~e zN-ILP3S`@iY`b_DqEvyq#xEUZpzz+S>VVc|_Z?~FJ%%!Vj~Q`2DgQiD@lM~7$l21B z!7Y2|O?@^}(i*Jp%?ccT{?-1@;cbV4ZAaZjUmf+`tv?ueCh_aGtDy_;{wAQ&2fc@e zPt^Ap4Q>sbAKD7T2K?lOqMIrFwxth&*7O0A-#fSakK6xHc4B}}G}yv#tzi^K zi^?oPanzKnI3-)rj*&tG5+(^L!c!n=QgL(|@wI!m4DYG(_6}|ebUrh9KGIYZX(# zB!rQ$MtDwT+7irU!%&E>EnAHcmtQCr_sqmKIJ~D*=|0B*}WY zU}dHx>7w$|LPa7O)+^JL0@w#D#FA!O3-jkrl%!0upun)EW58Of26&4YuYl@VVvg`4 z!%WS@SjTEEX7GT23j1>~{34j(=)M!^Yig+x~fomS&|q8Dq(4lPIyeQ8n)okptl~9qEYHOS@)}ICGFL2n1FKXs z4O79Z@rq=HS$LgfSc*}Qg{ABQDR1%&CZ$Lz;!hVyX_oauzG1;pOOlZdXIcm;lU^1* zg1BJDtR)cijEPvXG9aJx|9=J*8C+AyE(DYwKy5I(i3-z|sL*AJ3Zt8-FuDnR6hRv% z8gX=f+OLWy~OK}N;fYSKDW`JV>CHiXC^Is-3 zG^lQ1|<6sANi1ENj>T_zC)zzDrJeRtwHJRpFu0Q|!9Cea<^JaAK!(l&V#W_O^AQan&p=47 z5N+Iz15cwdjNbB6cSST?lfXXBm??cbO&)C$Om&nd!v zBMR6j4CWM3-IuRj{H*TpMdx2nMEtXR!tILi{7|U)_+WLYX1_658R_YaRJ0A%MTav1tO%!0S`g|$ zsRC4vB079~d>vy$CtKGAOY2r-^>^^HVxA|)_jUO@23jYRzO&(Ttr_9pR6gsijT~t8 zZF?k5-SJ1}j7s%#%N*EJq zKR38BH6>iu8>+0F*msnKn`=UC$ND<^nwADDT2}=dTSS|?@4^S=v0EnpV@vs|*e!O| zqJ*y-zldVZyU0;{dNyU@82HW*VtbcIPPl*H=hc%H1wYxYK~MD s4YY`(UVYAc>ZzPy>G^>pk*cGvgoK{2KI~3&*gO!Ek_3dgY#!VH0oLQw(*OVf diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.after_roundtrip.yaml deleted file mode 100644 index 966312dcb..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.after_roundtrip.yaml +++ /dev/null @@ -1,719 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -252352702 - revisionHistoryLimit: -1230911246 - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 5087509039175129589 - finalizers: - - "42" - generateName: "31" - generation: 3974191383006284807 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: true - kind: "40" - name: "41" - uid: ',Q捇ȸ{+ɸ殁' - resourceVersion: "11397677413428459614" - selfLink: "33" - uid: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - spec: - activeDeadlineSeconds: 3932374770591864310 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "296" - operator: U髷裎$MVȟ@7飣奺Ȋ - values: - - "297" - matchFields: - - key: "298" - operator: ʁ揆ɘȌ脾嚏吐ĠLƐ - values: - - "299" - weight: -1694108493 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "292" - operator: Z1Ůđ眊ľǎɳ,ǿ飏騀呣 - values: - - "293" - matchFields: - - key: "294" - operator: ƻ悖ȩ0Ƹ[ - values: - - "295" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8 - operator: DoesNotExist - matchLabels: - U.8N: N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz - namespaces: - - "314" - topologyKey: "315" - weight: -205176266 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J - operator: In - values: - - 3-___t-Z8SUGP.-_.uB-.--.gR - matchLabels: - 546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7: OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P - namespaces: - - "306" - topologyKey: "307" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: VKPg___KA-._d._.U8 - operator: DoesNotExist - matchLabels: - 4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B: V.Z__Lv8_.O_..8n.--z_-..W - namespaces: - - "330" - topologyKey: "331" - weight: 789384689 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X - operator: NotIn - values: - - X_._D8T - matchLabels: - 8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3: 4-Tm._G - namespaces: - - "322" - topologyKey: "323" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "627" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 軶ǃ*ʙ嫙&蒒5靇 - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: k_瀹鞎sn芞QÄȻ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "266" - port: "267" - scheme: '@Ȗs«öʮĀ<é瞾' - tcpSocket: - host: "272" - port: "271" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1553779100 - httpGet: - host: "244" - httpHeaders: - - name: "245" - value: "246" - path: "243" - port: -57352147 - scheme: Y鶪5w垁鷌辪虽U珝 - initialDelaySeconds: 411878451 - periodSeconds: -254454655 - successThreshold: -1925916855 - tcpSocket: - host: "248" - port: "247" - timeoutSeconds: 1676588692 - name: "216" - ports: - - containerPort: -1222594476 - hostIP: "222" - hostPort: -1942612426 - name: "221" - protocol: 遼ūPH炮掊°nʮ閼咎櫸eʔ - readinessProbe: - exec: - command: - - "249" - failureThreshold: -31530684 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: '}' - initialDelaySeconds: 1030243869 - periodSeconds: -185042403 - successThreshold: -374922344 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -1080853187 - resources: - limits: - "": "280" - requests: - "": "809" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ɵK.Q貇£ȹ - drop: - - ƹǔw÷nI粛E煹ǐƲE - privileged: true - procMount: Z - readOnlyRootFilesystem: false - runAsGroup: -8656955128235291182 - runAsNonRoot: false - runAsUser: -378701183370790036 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - terminationMessagePath: "273" - terminationMessagePolicy: Ŭ - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: å睫}堇硲蕵ɢ苆 - name: "236" - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "338" - options: - - name: "340" - value: "341" - searches: - - "339" - dnsPolicy: ħ籘Àǒɿʒ - enableServiceLinks: false - hostAliases: - - hostnames: - - "336" - ip: "335" - hostPID: true - hostname: "290" - imagePullSecrets: - - name: "289" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: ğ#咻痗ȡmƴ - readOnlyRootFilesystem: false - runAsGroup: 4559267523176571 - runAsNonRoot: true - runAsUser: 6808883506426686803 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - priority: -2137775067 - priorityClassName: "337" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭 - runtimeClassName: "342" - schedulerName: "332" - securityContext: - fsGroup: -3078742976292946468 - runAsGroup: -4151726557168738613 - runAsNonRoot: true - runAsUser: 8519427267030036521 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - 1875040261412240501 - sysctls: - - name: "287" - value: "288" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: true - subdomain: "291" - terminationGracePeriodSeconds: 3211788672813464064 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "333" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "334" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 1637061888 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 啞川J缮ǚb - diskName: "119" - diskURI: "120" - fsType: "121" - kind: ʬ - readOnly: false - azureFile: - readOnly: true - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: -1853411528 - items: - - key: "108" - mode: -885708332 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -861583888 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -332563744 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "40" - resource: "101" - emptyDir: - medium: Ň'Ğİ* - sizeLimit: "695" - fc: - fsType: "103" - lun: 324963473 - readOnly: true - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1706940973 - pdName: "53" - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - hostPath: - path: "52" - type: _Ĭ艥< - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1884322607 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - readOnly: true - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - volumeID: "137" - projected: - defaultMode: -740816174 - sources: - - configMap: - items: - - key: "133" - mode: -2137658152 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1617414299 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "763" - resource: "131" - secret: - items: - - key: "125" - mode: 1493217478 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -6753602166099171537 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 62108019 - items: - - key: "61" - mode: -1092501327 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: {} - type: 鮽ǍJB膾扉A­1襏櫯³£h刪q塨 -status: - collisionCount: 337714305 - conditions: - - lastTransitionTime: "2739-05-30T11:23:39Z" - message: "344" - reason: "343" - status: '[>ĵ''o儿Ƭ銭' - type: 嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ - currentNumberScheduled: -10743562 - desiredNumberScheduled: 1262074531 - numberAvailable: 1131069811 - numberMisscheduled: -1479988716 - numberReady: -1187060809 - numberUnavailable: 1834151037 - observedGeneration: 8043349780356677523 - updatedNumberScheduled: 641181607 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.json deleted file mode 100644 index 0acdc99b4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.json +++ /dev/null @@ -1,1064 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": 6808883506426686803, - "runAsGroup": 4559267523176571, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ğ#咻痗ȡmƴ" - }, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -1942612426, - "containerPort": -1222594476, - "protocol": "遼ūPH炮掊°nʮ閼咎櫸eʔ", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "627" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "280" - }, - "requests": { - "": "809" - } - }, - "volumeMounts": [ - { - "name": "236", - "mountPath": "237", - "subPath": "238", - "mountPropagation": "å睫}堇硲蕵ɢ苆", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": -57352147, - "host": "244", - "scheme": "Y鶪5w垁鷌辪虽U珝", - "httpHeaders": [ - { - "name": "245", - "value": "246" - } - ] - }, - "tcpSocket": { - "port": "247", - "host": "248" - }, - "initialDelaySeconds": 411878451, - "timeoutSeconds": 1676588692, - "periodSeconds": -254454655, - "successThreshold": -1925916855, - "failureThreshold": -1553779100 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "}", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": "267", - "host": "268", - "scheme": "@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": "271", - "host": "272" - } - } - }, - "terminationMessagePath": "273", - "terminationMessagePolicy": "Ŭ", - "imagePullPolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "securityContext": { - "capabilities": { - "add": [ - "ɵK.Q貇£ȹ" - ], - "drop": [ - "ƹǔw÷nI粛E煹ǐƲE" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -378701183370790036, - "runAsGroup": -8656955128235291182, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Z" - } - } - ], - "restartPolicy": "0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭", - "terminationGracePeriodSeconds": 3211788672813464064, - "activeDeadlineSeconds": 3932374770591864310, - "dnsPolicy": "ħ籘Àǒɿʒ", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "runAsUser": 8519427267030036521, - "runAsGroup": -4151726557168738613, - "runAsNonRoot": true, - "supplementalGroups": [ - 1875040261412240501 - ], - "fsGroup": -3078742976292946468, - "sysctls": [ - { - "name": "287", - "value": "288" - } - ] - }, - "imagePullSecrets": [ - { - "name": "289" - } - ], - "hostname": "290", - "subdomain": "291", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "292", - "operator": "Z1Ůđ眊ľǎɳ,ǿ飏騀呣", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "ƻ悖ȩ0Ƹ[", - "values": [ - "295" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1694108493, - "preference": { - "matchExpressions": [ - { - "key": "296", - "operator": "U髷裎$MVȟ@7飣奺Ȋ", - "values": [ - "297" - ] - } - ], - "matchFields": [ - { - "key": "298", - "operator": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "values": [ - "299" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7": "OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P" - }, - "matchExpressions": [ - { - "key": "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J", - "operator": "In", - "values": [ - "3-___t-Z8SUGP.-_.uB-.--.gR" - ] - } - ] - }, - "namespaces": [ - "306" - ], - "topologyKey": "307" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -205176266, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "U.8N": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "314" - ], - "topologyKey": "315" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - } - }, - "schedulerName": "332", - "tolerations": [ - { - "key": "333", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "334", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "335", - "hostnames": [ - "336" - ] - } - ], - "priorityClassName": "337", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "338" - ], - "searches": [ - "339" - ], - "options": [ - { - "name": "340", - "value": "341" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "342", - "enableServiceLinks": false - } - }, - "updateStrategy": { - "type": "鮽ǍJB膾扉A­1襏櫯³£h刪q塨", - "rollingUpdate": { - - } - }, - "minReadySeconds": -252352702, - "revisionHistoryLimit": -1230911246 - }, - "status": { - "currentNumberScheduled": -10743562, - "numberMisscheduled": -1479988716, - "desiredNumberScheduled": 1262074531, - "numberReady": -1187060809, - "observedGeneration": 8043349780356677523, - "updatedNumberScheduled": 641181607, - "numberAvailable": 1131069811, - "numberUnavailable": 1834151037, - "collisionCount": 337714305, - "conditions": [ - { - "type": "嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ", - "status": "[\u003eĵ'o儿Ƭ銭", - "lastTransitionTime": "2739-05-30T11:23:39Z", - "reason": "343", - "message": "344" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.DaemonSet.pb deleted file mode 100644 index 4e21e5096227c81c7867e9a9a16eac142b1bbef0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4664 zcmZWM3sh9swR47uRG2|t;B1EeK3W|u$ zT0jUtQBXnghayrD{DPuL#1v*=hOAhtrZKiJHCdfurcG>K6Z7&kKHokwz9efs7Hgj~ z`|Pv7XMgT;BhMy0ER0;Va%Em}J`wMqv?wzxCwp$@YH|CM!c`<7Dk8;&mgTy}+e?23{!W}tSKHN5>yc;lwvTN~1SM+Q40$Bqv-9bX@=C=S+E zhPSr91aTmWscX6p#xQCy)zk9-t4s9&=pIQHO;7sUfagtpzWyB-FXrY}cRp?)Vl!-PVR%4E4TFlW* z2S?v}Ot=P4SBZEzUU(2TR2*q}4~HvTej)x?Nbr?ER9svqPw5!Z{ z`Mruu|9uz!klW^Q02)+OHD^)Vh3a@WN_qe=psH%P?5asYT}>7r0!T!=Mx7^$%m3?k z^s@8IPcJ;?M&krH1I8M2qLgIV12;``{-Lt>&Nopyk6qJ~?3y9l#@RJw9Nrybmp+7fk+*g=$gx}>mIvqB-wS7+6{Re+%(7pl!+2ysM~MF510VY2)B%~PNJPt+#I7aQt>-$u7p=qH?zIyUdPwG+8utAIYR zur25Texh;~niK6rPYVzWBJ1KKd@(rQbY8i9<)auU=b4XpSKkW^+K(OvBEsbp0$d68 z08rY{XpUwat%8NHXh{Hc3c%< z1R$f7lPP^sE#Yy-5yf!YhL8kj3TFY&lvXsS5}J}L2!aN9&8By+4TMg?=rsp1SyaJi%W z6dHAwqHr?iy!z3HrLkA#Mjq}(MRgpz5V|#VxuJPKcfO)IF4bReyb}%0HRJ>mNEQGF z95T~wOX4P}@~7x=z7mHG@GA9iy&ydRuo#6Z2I7S{3Y8Fm?gC(V0GLT}l*)7h98u!v zI(+q$m^#iY*Gsx%dExoDNbx(q_F2=0OOA#%RrMXu9y%J?_D*oircnEt%%M8YfsUKO zIdJAwca0Z7Jf+|kN=?Y!ILh5ZV{XxaU=;TS1z!MAAnNyi!z-W)yn>WRh5H2?PjqU? z;=QdQo2k$6TN<~KDmtjI7)cNJw+!!Te>1qRe7LD2Tz@LCKfIxg!jU-#f|wQ+#HctP zZZbvumjs*R$h(*S%H4Svxi}-nJdeH->1tEg1{;ebr>n!gZQ&i~<`38GN#a&8h&*K) zWY7HxC@PuzpEASIS<&f5&brUf?u~aBANrsy#xpT+^l~KTL;0_tRqwhLm6VnzjE|{e zitwbN>xuuzPK9is5Ha*-R2~l+RoM^ZK{*4A=Gar+^!GUDxm)jl8;gs3&sU!uyeG6_ zaQFMMOqRWUx4(#C(+?nFR#Ym~Kb1>0zL#o(R897X%dO#}?nvXNyzFpQf1n1`M8GgH#u2I_=csAlan$&u(hQF{!M`o9uf4x(=%}~o7yXBZ8+&6MAqA-} z|A3>;W$1Jn044XKa8K9ZTS-GZg6%uThPP}{BYVmVUl)ERJPJ{7D}|i zRA8HMX;-WNk1cgK%26sxD?+vkWUEECoxBQBs=!<0kB%~6cyFsZpmf=Nhue6Kp^U#{ zMqE$IKaW(r(|0&>wsd81^PYKApN*8X1*?0r0*9V|wZC(C>%n0A5qHs7M|^i14g{V_ z{JQ;W=)$|d4QTX1@4?{{4gE!fTLR~Ywm`E1J$a(&W(t4psQ}0v0Cb`4S7@m%cP0#7 z@RK{=U|^Y{f@Oy0ICMSS`f0CkPrehmZ+^3{;vd0}OI(S6zWs+=9sewA{s77Eo!j-N zZGS8~F~B<-T;Z?QFbbndWtN~gYRXj{k}YWaNTCr4lY|uEDWEi|I695^j(Rr_@2>Lp z4sHr`J~Mbe(p(d1EedXK1|3XAgdRanCjMxkCseY{e@GrU^C~}3#RUnSk?mJwHBX!_ zcsQLVJ~}_remdN|>B$!t`1elGBhAghmb3mUenl6@a2iAW$xv~qrYz9luMU^?26xs3 zYiqsxUKpt5M5cHmPPmDLFcQ`XpXf|+a>3emM?t8u204s(~LW0IGRWfQ78F_p#1 z)2W4}g;Ul_Fk4BIWW8LlGEhB9RR1m1#-=+=CNhNi(g5`Ew^qQYKkYU|7>J z%wDPn^A|B*0oJp`9N|TVnVN~Qj@4YuV1a)M_j54(BADhWCQt(6jeLx=U?#*m#p#O| zu`HD(Pmz`av*p$dmFx17l^UJ%TnZqq)i}+VJAdjd5Gk!m0m)ceGDnP4WX%OY7rRhG zS807?EUCp-BZT&%_qa&&RXrszT{yNn&8AgkeOKrY@PMTY8E$2@J&2 za<-;W%n;`3Yw+q{XGXPOlBGzBk-q|yLQoo(UV}+i=89!+V3lg7VJdhvUXiRY3$K$5OEC(vu#{aOeEq*Q9uL)Fd*x&2dMB`(O7VXzW=VOc>8)KkmNBc9(WE}Zjzb3rg5?yuLQe1){ zpfujF8O*UTCHiXC^Is+uG{|nqQYfgfK+h&H{{F~YKUC`59Io27{x=jb=9~gyF0Z@< zZX0}oN*wF9gcm&mMemW7{`0*OP`nZ#B$WR=`S08XLq02-QOOc z_}RXjCu8MMzB%YGLFw={`Fu>ICMI%``gg{fe5x}|&xlC%v6yj`PwW&X_V4EpnU77f zA});fDw&DDg!&0nIajE?dDjh42uh}`d44)JTz_P_+jlm6^3by3qRPRYxr4j2m&*Mu z(S{6_1;~saa^@`>KCS_fTp`?a&|jVzZ0nv@m@YgH^VsNc`DyRD{^NZ;zRnrmQ)AiC z=AVswHneYJ#!wqfM!ZiEt{YK6K4H+Oi0Zz4?c!(k|0p{DdLrVVaRr8*&X zly~o#;Fg}@?c4oLSpz4dy%^OZ_^jYx1Tbwx8!*wn>%~Ni_Tq;^#m5J$LpA%1!OBQa zXQZNis6N`93CxNRb<&DZ2TBzna}?3x+wJQZ8#>vxE?8Q>BCEfHrxo)&F}|D33Lu0I4q?HPt*hsW)8J`kA+Te z?K|czmH!6Z82tj-Tu%vOB1g{+ZcI%Hm-U7!D<}3HA>o#qQ2VjI&c5cQ!HTw3!KPNx z=I*=jL3!+z$^YD3ek%5gU3Dno>!vTFv*umosJn8YH#T=Vn{S3by3c)j@OB_ZnYi_C z(U%8{Zu~w+KKT2OPuPtwOWJqcH{s6J_x=_?t+>0i3C)=ĵ''o儿Ƭ銭' - type: 嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ - currentNumberScheduled: -10743562 - desiredNumberScheduled: 1262074531 - numberAvailable: 1131069811 - numberMisscheduled: -1479988716 - numberReady: -1187060809 - numberUnavailable: 1834151037 - observedGeneration: 8043349780356677523 - updatedNumberScheduled: 641181607 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.json deleted file mode 100644 index c73392888..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.json +++ /dev/null @@ -1,1069 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "progressDeadlineSeconds": -2022494519 - }, - "status": { - "observedGeneration": -646884070573393486, - "replicas": -1207878403, - "updatedReplicas": 372376497, - "readyReplicas": -1085841792, - "availableReplicas": 2061490078, - "unavailableReplicas": -244836060, - "conditions": [ - { - "type": "NJ丧鴻", - "status": "-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "lastUpdateTime": "2182-10-10T16:20:33Z", - "lastTransitionTime": "2191-07-04T07:05:53Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": 99448460 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.pb deleted file mode 100644 index 6ed812b194c76fc218b9447d5633a86598b06ca8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5131 zcmZWs3s_XwwVpl1NX|{$$;oRv&G%*QL?a>DhjaFM+cq)2qG(i5iPD>#LPQ(oC7?W# zejg|Zf+8Xa0)irury?jIk4VGJz(5|iF}3Zzx%tw1omZ~*R zYwx}GT5GSp_P@4i*(T;;W_D6$W_HX@fn^q_WTs~1r=_Ilu)%qZ2Qi4SNVFlzf#hh1 zt0Z`$!qvS!*4JE~qy>)e|D~&Ax}FQv_bRT61aI5<6!MUu=!!&SUX?UaQ)GoFqON^( zeb=R;il(B>g{C#9$_93qw7lOmiW2W-kjf%0c{YP|)-3Q_?TlF^6J6hu@ zeLdS(4y-nwwLrF2yHNW;9 zEQ<0C*SYq*4AN9$V$0`7-rV=`Z@>B${t(+_W;QZ`qlAqaoj4x3EWC96>sDW4oecpZQ=}L3;WnoY=}4=8`vI`#&{FAGeZ$zlC(J=V;ICL zZS-u+;~jG9R)Vp>XKsft71#u)Y}+YQB+gWblT(eHAf4tnnhZ%HWJ7h0~LlZQZnt!<=kz%Qa9PKfgQ|tN=lVpxBN% z7$;)PBF~yd!DbeT!z_x?kG&iiX?^3V;OLnYPnUO~QJOP1Zu(3@f%AZ`{2XCLRa7OS zDT<)Mk4Q4Fow_yLbNO;fuK>qhy!&R^-;2A){)iGIL9`5_m1Npep{H#nj9KDsW=U|^ z7bL#o?e6yPYxCEYEsA#4&J?>32Fee={>D_jC!)=w4zXa$GE1buEQ#glQCKXo z|K>e8I$5&rg|+h3evl-?ssF*wl+0$#vcTTCm$5*Hu*~|IO5ec1biZ?e{V`+7crs9X zYMb3X5;)hn)nB-moy9~bM6f*!lSS4nOV+vCl73-gld^Hu0Cc7#6 zeqe(gvSu^OI(d>YD?IxkP=Pfo#QN2p(!c*BB*FUU3unK$6BcHg&%g}WLy@eeh0)Ll z!HQxHmU(*34zr?0n-z^W%{MFh0#p1wj9KM3n3Bz^5DV*6!kSglisJ8uzGOj(aC1~x zuPQdPsyfW77Hw8_V%GTiuu>Bipky1guu2nclq1hnr1}~I;v+` z8M6+@ufy@{aQwO$4SZeVQ30&dVU@1zLOSyde5fpCX~5EL4=@n|&$B=T8+cMxiM{CL z?Xj@+me2qC{@=pga`YITNi1dU{?Eg1w86IszJx}qM)%WUnF>;@rUvvR1JVRuWgn)E zM)|t+^P6X=E8#+0KmMr7i|nRW^bm{-Q~^N%fdX*=5xdY&C|jaz8BBymi3Xw)AX-0K zNJn)TCA@8pw`R=M>fcxD9GDvPGzNz&T`f;|t4IBHb)MsCljrjNgXay9K!hkn?(-hl z9V{Aicdr>i3O*8l2qL(225~SZ(hVTSsUea8?uUjDAmV%=(n26|ED&W4 zx`?U~Q;e9OgsdhKYk@U{dV?s|z{IhSBJ3tsU}7j&WkVZNmyodk;o8D(A^$@Pw%1*n zz8k-`uso53G%nLGc}TJ^<;;|TmGDwd+g>;ABl{~K9h zibSoFG#He0FoIem^Ow=%v=uBS;LF58Rf6jSL<-N4*{Rt~1ffSj1la~eaR5=Hfk3XH zL%OB$-Rrx;H_iId#IgQ+9FMM;IqI)JxBNdcf8lD+hPP&qv(+^+T?eZOKR*^$fp37w zwr3gGk`RS{snk3|z#{}aLc>izxq@W;Qty)S&0iF*(eA67zxNP<;5%S4(iyFa`2pAj~y zip)EH;OTIme%jYGG+7zg(;M0oGARrZ+at`6V0KaeOkemu+f0-%TK*jLmW6k)9y@yQ zbhvA8ZusO+-_Sma`s(t&8xj1?FFx)0I>bmmftVLUipUcC3@8HW^*eK9h3cU??(?^{ z2kXvyI!8d4;4S@A8!hjHTx>|LMTD@A}V#UN&`U^A*@u%-gD`bsY`dhtb08Q(RXjb z+i$-={`Kj!b;Mci?J5fFKeZ*-J6`_A67SyXKuvQOO>RV_ zz7TcWoTq{%<-rRb&dP~%zJrH7eXbVcXHz}S?pR-E**t$$ZE&!AzWw6v+aLGcxHdL` zqB=e(zEND-b$&I8oHsQvT@^g@CcJ%M8e}x0Dhq+Au|TwVAo>RMOY|#K)+&ZNL!&3F zK`JL2q;jH(maEO~Lx*mBS^BUQ+1qXx)!ey0>3b7JUEA#%X&$exa3a3p+L6;AfBo6n z1))tedP_99fZl%%-YlSMIi*@P8lTPVU=}dXGVt0EO=oG`!>b3`n&<-SxH57ef3o(< z`8~mX{S*D}%BN!dMV*173NbKP$-WlLDfDbVu(1d15L59=a8J%UBRf+;+| zqW~B1+38sORUY1+1Q;?yOB3-XK0PKg-_WqgaoK=S^Ek4?Alr8s{93$dJI~J1^4I8V zG1g>l<#IrIfb>u`dx*x>OB zm$0^)$fYOG}?c@O6!oL(3m+}8}rAR=8vf_gX<|1O; zh*`}%t70(^i!pkVf%$lYOEip?J2it_ZE&2H4uT4(f0UQFgcV%&x*QI#2mCB6m{S*X zqOpek0h9sU`ZNl>w{bF?#XJl8W6@Y?09ZG65>CzpNgFYjyT!oCT9Tm{93Lma2}s-u zK-oNu?%7|03o%VqVG5)VAa7%}`Wq$;Dd>umY6`=2I~g zW65b)NhK*zci?UEP7z`W>oGacb1%sThH4-|z*+0zlnh?sQnqiCml$w<+=gYC+s3I} zs)1k91opWMLje^9!B8_dfZx+rrsl!f<{CM03Nk10@ww8L#c)I%&Qmreo5^)}lhmGL0bVCN+Hl$*4O|F5n)GgoDFb^iI6Cv)wVXqlR61SSX zV8nv$M5VTC4G5^-irfG$1R1ioAj5zlYXHz>Jvu^w@)O=^K@lt`ubq7-!uoaKD&UI8 zmjzpfy}do&jvi;P|InC!Um=c6%|&z}nZJTAq%z?}c#eUDB`A;qp}qw) z5Fw}(WvOA5C5T~w0f3S+0Z@bihM+?75mbPj3s*55Gk2Be$mF2p>U8aOw*-!kPapQ| z4xH@|R+R)wdp0fe4z+tvG~`fxp@MV(B-!bK^5!^av1im%{`7N`r@Uv|>8P&qvGBqP zsuIFmfcK%VMbDk+b`H**b`}22+39b-FjKh7-80=Wb;Mbm6=*yV=qsDvz07@#z+64P z6hQ$Dq5yoc&(cO@>4X01NBchvBQS~q1Wj^0%*6%zOD9fvhP~ZqCWohLa-Boz%js(= zKFvG+{Pp9vuHFj0|A{4t zNeFAAv-3eJtc@2htfPE}8j&s0-^gr~rRSMM5ewWX$Nb_h}N+E(D}S*&|lpQ>HC(o;U& zjCV|q`gR>Ic%2a$>*V=gxawVJd?)v<4|Wd)PE^i$F~QTaKxH5GzB%G4_qPrDc9%|^ z&k44+aKVA@sfN2CgO*5yCPqR_BqE6RlPz5*KACvC$`WPb5rB*j4qt5iuY(u5-b1ku z;NW<>Z`Wz>(bJw*?{JH2tPr8^;R}I6t&r~&iihuZWr{ECf_vQGI235B%uSgpb$0B? z^POx;n5;+?+^1a!{Y~W|Xd%#NUeJUNg!&Ny#0^0G0blvh_H~;RJ)_>?{TGobhaDtXYz;qpu2Bfp3qp)w&{MNzSV zzeQS_iK6yLWV(!=W}b3YOb)-{D;e{37X|kA2P*aidTV_LdV@t(DbhUG0bgUSudT{g z+nD|rDqFvSki*J6WL@EqnS(J$=aD-23hCXGgX5AFBvoBC?u^ zoGQO^zCCzul%0#ct;d}m{?kQEymfoxiNAW(SJM=D>)iCAU}M|l*vtOnw&@~AgedXR qKm-yQ`N7+t6#dv@nh(9P$`YH!q!qq(^dI3Z7wo$>5MwhrO#cU#CCq~W diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.yaml deleted file mode 100644 index fd936b337..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.after_roundtrip.yaml +++ /dev/null @@ -1,726 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -721017134 - paused: true - progressDeadlineSeconds: -2022494519 - replicas: -1978186127 - revisionHistoryLimit: -2062497734 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: Ŗ鱓;鹡鑓侅闍ŏ - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 2061490078 - collisionCount: 99448460 - conditions: - - lastTransitionTime: "2191-07-04T07:05:53Z" - lastUpdateTime: "2182-10-10T16:20:33Z" - message: "341" - reason: "340" - status: -墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ - type: NJ丧鴻 - observedGeneration: -646884070573393486 - readyReplicas: -1085841792 - replicas: -1207878403 - unavailableReplicas: -244836060 - updatedReplicas: 372376497 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.json deleted file mode 100644 index 0d979f9bd..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.json +++ /dev/null @@ -1,1071 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "progressDeadlineSeconds": -2022494519 - }, - "status": { - "observedGeneration": -646884070573393486, - "replicas": -1207878403, - "updatedReplicas": 372376497, - "readyReplicas": -1085841792, - "availableReplicas": 2061490078, - "unavailableReplicas": -244836060, - "conditions": [ - { - "type": "NJ丧鴻", - "status": "-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "lastUpdateTime": "2182-10-10T16:20:33Z", - "lastTransitionTime": "2191-07-04T07:05:53Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": 99448460 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.Deployment.pb deleted file mode 100644 index 382ebe2295e9105ce6e0f1f52f109ffafee6c456..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5163 zcmZWs3s_XwwVpl1NX|{u$;qSBX}&LWCmIRKKAf}9+ct^sC>j-1qVy)G5YR>i5l|jU zzYi1yK@lGa0)irur}9uh9+8Hbfq^`3V``gwbMvM3I>WjI5ZQ0?RB)&DgpvFD*4ao8245e1sT8SR~qz~^x35l`H9Kyy zJ0ahBz*lyju%are644Yz(BMZTnb*$T9_+kwrMOFgFeuu6tMun0 z_EhL;n+ao?t_7{qp!a)QR8?e_~xl-v#3LC zm@>^0$u~=48JYu&CHCLEr-#Rj*S@eup4bnP?!Al! zI)r7`O;z~%`X+mwee6#e%eE&2RcE%?-9v%%ZJYfCd)XOGghB+{BQRNH&9Y?u+gMTA zolqFrk%O|q6j`zU>Dbp3;pnoPqVESb*d=Q=v#gUR8MDH(4*?ZevqG$2-!1w3KSC0$ zf4+F`%e!G=rnwBvfISq+YFZEteGsfD)?lfp%j_^KYP4C=c+*_7qR%tM-@}+ye!VH# ztO~KPP9>~a6|E>9;$4+2C=qU!3hPzHW>!^)S=FM=s!q%rKNnVN!aS60gBDh4qK$GS zJBo(W&|r>2BH!mS}$5aM|Bt_yls~E$cU@SzpupEH_`8@3l3Je8lUhU z8unLLdrqc}pU?C6Uob!d5uy;e&wF5ZuyDlPv3dwGAcPPqL>vpL50M@rh~UyG#KD+I zH-MO@hDZXq9~we{h;xBR3xLS6K$O+!5;}yKBE8W6VRoBh4|B7bYw0@nbE4g8n5N7i^{JKm@T5GLe%#v7WvDx6V_R ztf{do6$n=kj1grpMpU97S0>JRTaSBdYP~}hi+DDyyo5O~5tyaM z??TMWA$264g~%h4z}^>$sOyMCC=nfxJNJ9bivt6vS7qc(wE5~fg9YaU&Gmw_#(mgx zV!Sh&S_>%?5> zF)xG^ktOySPz2KJ_vXk7)kAgM=Wl8WR-f~%1c79`J|svX?6V*U zQtS7E6bS?=vcu*&9IQO^gtxO`{G|JWw$>gfZ^?7^ERUV63`tg~{}lCylIdQGzBz)Z ze5T{s#oopuPl2!gv^{6ME6{tn*yQf>wY3I2`?vb{SN%LNaBAtq@mF)a?FIhBMNj%i>jR|?zVf{gN|3#XN?okd zKu|>pD^;?0UjB6A^4+hhUynlc9h~>}+wYHlbM~(le?hU2x=y?ps3}?QE{+)+4xYI1 z^crVTpmuiwGL<4zB|^0{^AQ3O7IF#mZu2$`IS+Z; z3j_PlY|8PDmc6mqyZ2DwNJBeKZbYQM5Ov$Er-H?0!HccVim~&)gGW6*u14b*6P?bE zSYKP|9Dik1u)kxj{nG9`pY+_kKGKJxT0bbdSya+~VHJs-GtoC$8SH)&-aar5G8$2p z1whnTAX+>SeLeaW`n4%@B}1K|(Ua96l@kq8InhMRwFdX$!#BSwdBlqB&36iq+`TdG zdlN-n-|ZS|7(G<(M11Y_V`o44=JRv&LYrvxmS}Q5z5g1#SwPh?O0`31bSATdna4cG zz-vP^fQ_&Zyn2wWi7v2?t3wC!#;dMg*c05>JJ##2cq+zU*cK=(7X$s3-n!P{fnhqI zutMZJr<}hH$1^*Nfj5xoB0D26c*Na8XGrXiDGRL4okdO2750{y8AD7TVhRwmesgL{ zmV~A3d_5OHp@=d3ur31hBUl7%n9B1z@^L<&m5#Mv=i=>2fGM|WX(CSH(_=F73=NAM zmj#G5mm|v!vVDiaufYqq^Xx1wZ?(P#V@=jpECbXB$j>k`SK&2ywShT~<6q@)2Fo+{ zjU3M32?7jG#!I=i02DE|7AF{s3?45x=C5JzU$iYX3sC0b+}EIpMoQ7jF0KrOlZ5p?M<+fuM|p`$Sk7gw&F1hrz|*pVIdu^y8mrkKL0Q19OQS%13n#Og%yXbW7L64KfOlgj z;p7aEv;lKDn+%++B^ipr@o^HIfW$2a)Xl@_4sHpTu^s$`#f7XH;QKQf#!9?~<5uAX ziLf~qxHWizXmH7b`f3t3GH@Q38keYN7z(#A2hKpy!7jqHw^8IkU+}#d>`lb{FJew2 z=9Rn*Z9C4|2t~%G9K1OnD^QtWek+DzEjbMh>-2Vgt^PTfY=@TR4^5YT%bNfqj0Pp@52lV5k}E!S87+w&udw<`~&< z3Nk10@j23_MQ}tM&Q(&9@d}lC3cp~GEekW&7y{(y$5Zh7M4U_GVFNfV-H<`I^;@yH zI>*47>Zb2&nuikBiV*kUu-6PDiCaZpFk-=WqEg$nS_D*YLT&&Tf(+SPkYPZOH2`R` z9vvY-c?$2epa_=J*U!BZVf`j>4RFQdOM{Jr-mXq>Yp1ize|W^duYk;T_HPLGx63)+ zhC;fK%w0|wQkn1~JkLPF5){aQQ2zoNh!9kYveYoj62vgT06M3s308xNmhEG ztRc=>w3dP*mEFLj?FFjtQ+K~NBbC;(sVbF>jz`k;UI@%|6P2#jI?L6aPh zaB+d&lCe{sL2pO*_~68m9Opp#GWuEyP&)uo{`Fc4P(uJmv-H*ct~dPjTYKJ{{MKwA zFRlDT7$`)2cBf|^f8*rsYqvx1e_}CW62hA3>|Brv`Il;Prs>wj>AHYwq6>}(H;;F@ zj`~Jw61{tCeO3GUr$Sml{)J%?Di4ZZy3V{gg(w&ibjecE-Zv1IVXb`s+Z*8|Wj}Oh zd}sq9a@Zw`6N{LTHo-6dlevV%>HT(GZWqIMc&&=QHz#7Jm~LQdnoon92{-&?KoYaXDXX}n!-|6~<@$y8$eb#l*Utbo276N_d1x;v0s234H z+yK-c^py>4U%N5UGwdDgO$&7Hp*LO>9Fg9ly_0Re#)7D8S4+D;^j|)B426m>5$YP4 z0mTVEz;6V6t$0#=?Z$9dCFBjKKO>Oc*NIH7}(nz zDBlz4s`4G^3KmwTN^@KXe05d6=1N~xUHV_BZ2cxe4lDDp`)IJ|@Xv#TCxZtMU%gly ztlsZFz?z~iy;sv3jxT4>gCk-eXP@%ul%^ZBl?kmcLkMZcXc zdwNPdJ;>hB_1zz4Mm6`IC=XvEvWkhED7$*0C3t?AosGRsC!MYSvxSSj)qCQJ|Io1S zNPXa~^OJ{zbh^=oBnN}H~!qjWm$eW`cf&gr(DI^los{rCRs zz4!mW%T_Jh!am7POU%f~j?EP~c6Ca|w#~_jFQnvf?>xhL5Q_+hL_3n4NRDxi?g_S4 zjCN(l`;L_-YJrxj4Wp;LjeMZ-tTI~hqS-!>LY@#5U6F|FQYB5)6j^Z*QP=+aZqa*% z6-Np)=2}*sDeEoXbNo+7hS2({EK)h7B~4?I&M|^(i-TnZVrK-=`Plq?bEw`^`p4|C z^6~u{F^nL%EE>vU1Sy{p1zyu%_IsFAuggjUB^l%_A4x{fV*O`d57i3Zs34 z4WoPi0NPYy;YyrQUsir}{ktFGhqyb4Ekx`h7uGPwJ2H1C=i*E`EA+J`Jp%#|TznSB zX<9PDTd^*X6d5Pu6h*{4u$aAL6VAt2+?glClvp)S<>YK$!PwZ%W9-_sef?I!(0D`4 zHn1@_lizM&K2tMt$W%mBq{OB11O#9G*{F7{}{|!HdRD0c3c2 z&N^(ofO#>ER}GT7JXv1IMJ`XzS-iszjAi;7J$n(qZYTJ_FEMx*n0KvI4SpWKJ_Y0X zE|pI-_&g)eNMCC&bg;dMWkeUph=QFFiIWk1FWAQ zyWmG;S(PM_NRsLjwfjARnugl8vpoO@%jY%XF5J zTy{nhoKr^n-3MbBQ4cSiMDiI)EJx451c`Ha>ph18CB4CmWn-1&!~T-OyonRBzW%{i zg2#LOR|{u?3K`aIdnq?Fh_ZU!tV-#X5DgLr7(srO?{4#Q&SuF5Dog&#Rb7SEh6e)`B z`q;6n_d@&2$tY?Jqi8P6EJo31TUJkD8P%0wNn%tX9)wlGF{)@ot06K~vRc-|zE?qs zs@NG-buy|J!>Br8G}kPU)P&iVBs)AoN)zprBRMQFka7)VG-V4!r-AF5Whck>i0VD=mLPm541y>{Fr8h{Vy<5gIa4Y~M_Hijc#? z32ZFos$9r0jhpE9p8*RFA`pQZ(nZP9`PY_#2ccBh!}>%L(kF^^nq;dy@|JrV>{*%~ zQMPuq9lqQD!@jc+t{^Jb`ZpfD%Y1-rFeuS@Bn|kI4(`)9WY;I?m-H!EEx?zFlR5*3 z0f-cyA#?YpvJpf8?}?z;fv8R(S_}}K5EvpZYjug)AKu)ytLHu+{zu4Nr`6rRW3j*I zaGZb7;6%-MPaMb)VOBhqq3VcYf1U+{1d;$mqhS#OX(pnJ?l4KTKSnc1M1k@MEbqf_ zaF9UgXs*J}WPkBoux@C@So=il^%() zDTYQ2H4cajXX+8q@X@u#7`ugX6l;s;+8Ja!ce1;aCh`Niruu+}|+p-k0{lo1y---y?mSv~i+vuqblnk5A`^}n~(GyF@Ydr0Nh7%&68}>k< z9;l%NpwK$Va0G~~bF)LLp}sx~s-eI>5)~d-2qae#oy;qakOqaOPzk5-;S8!%QMUlm zvZgG4CFAA%ovg?{4lrb|yLI%Ew_$A1ENI{yzNT8UuVJmb#u)FOB_+){c`-H zo^!u{#(%uU)91f(pa7vVglZ6Krqzi+Re2;76cIu5!&k`)C5;>D`gGvzc%$#wVgJ4w z?0& zA*!+(h?;;lpiL-i1xsU4X;xJoV$fU=gCb937%bMF=P$ETBp)Ix>x|N36ywA!E>I zq5{Refy;H{d#ObYS}#0wj&nDT)p<^gzrHFhSaRa!U~5e}j6)Mjh6e(<|pku0HQC@AY+;jvd6_LMlZ#C!H&D({s%I1^(8KV8aDZ zXO`LAG1-=B9xtJDB+eVb9%k5ThJBS?CSgei*rQ@VaS}Y>j{vkw$M7X!k}c{O146^8 zxfpM!I8P-wDLGNvE=#cs_)XX_wi-)h-r)HaMm+aiCgxv^OT94z8g#YX1q-hG6BKu+$zINUBVjF`_1xJB@;yCoSislb4nK8-iX z0u`iFAWd0-YQ+_c(sFoXEx(%+*hDi<+SW$F&*=7LBC_NrW^DD)n9C z{uovN<)4o~yjkpElh_&Tza=JTC|Jh31+Xc_CTWR=0vLUjq;N<9<4Pi4igB*79!#fU zLt14R@Reiiq^r6Zt__fWSO7Ue$l8RL$a%(`{1tQ8!5s;_WESRvaUz3pqBJ9*YAY(8 zM!PyxM*%7>5Did}tj9zM^!^1yieSCbH#i(=`?%@5iLk5A>0?E)zPeKH$ zz4hKIv$~H8ky%Tq5Y?xs_TRHmiUfrM7$}$&z^D|!s38C&s&cr810bVJfVJTsE~pf; zsQ}sL%IqVog*IkcSGZ`_k!T+6T(QB|S2%huP*52dI2|mhOmQFcoP5cDzB<@a%TZ_` z$Iqmeln`zKR1EK0%wxW)MsL+-|G;_opxJtn08?LGgxCaHeFdmvzoQTFrnz_F?Sa^A?Yvm%^Y6Ojjs{K>55}>pJN4HkrH3t}5Ve7}Y z8OQC8viDGQ;KCbkhg0ZszyCjf52K>>+3fs~4^Z-c4GN*q(Z)L%yfPW;n1H05k-?!u zp1P1dsBJJu`v2xA04fKLVl6y;*B{0OHcw;Qt*MT}uIlf@a4Y(3(H9?u(YWit>B?Kv zl3qt)j35Avr^^gDp5m1||NHh&xSWDMU3ap<>VC7TGjMb`6fdDDpFo|M&eHi`e0jY$ z98m}(KsZOMiF3Y7$GsPQ`+9?ij)odGKztb09%>D= zfBQz*@vv5X3jj)2)-Sw=JjHH9xa{sD{t=-epR5Sv;bMkkmaWqF2IE@)VBo%E@a^r zE+~K>ThTAgp%(9f;BeOlv;4x$k;`V$8P72xxTpAc%B$X%vC>dK7c_b#G~pCNJ!mo9 zIsxq3Jx9ixy`^)W^%ex`I{ZiLUx@cq_zNq19p&`!>dxu@;r2NHzSqr5jltG#CHg-m z4!MUW&P0zsxOV8|XXgvPN1;oLNbd`xD2%{i7l{Xz9lRL~U!DGfrh_SZPY^}P4jWm7 z`#2Eg7P5ST7}oL`6;Z!H$nl`J@r!Bp|BO0$?cC9aH@bq){<_Sz@0~lHcdj3=cn>*_ z|7}nC)ab7!?tM0eyvWAzBLjinqRF~IeT8G9H`9OOth>d3xh&07I?-gF-*0xG@^xP{ zPu6*1soWRFYyAgn-ABCpd?iKC?Mn1tI%@~ diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.after_roundtrip.yaml deleted file mode 100644 index 13c0d9824..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.after_roundtrip.yaml +++ /dev/null @@ -1,710 +0,0 @@ -apiVersion: apps/v1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -11671145270681448 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "291" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "292" - matchFields: - - key: "293" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "294" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "287" - operator: 胵輓Ɔ - values: - - "288" - matchFields: - - key: "289" - operator: ØœȠƬQg鄠[颐o - values: - - "290" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "309" - topologyKey: "310" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "301" - topologyKey: "302" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "325" - topologyKey: "326" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "317" - topologyKey: "318" - automountServiceAccountToken: true - containers: - - args: - - "218" - command: - - "217" - env: - - name: "225" - value: "226" - valueFrom: - configMapKeyRef: - key: "232" - name: "231" - optional: false - fieldRef: - apiVersion: "227" - fieldPath: "228" - resourceFieldRef: - containerName: "229" - divisor: "43" - resource: "230" - secretKeyRef: - key: "234" - name: "233" - optional: true - envFrom: - - configMapRef: - name: "223" - optional: true - prefix: "222" - secretRef: - name: "224" - optional: true - image: "216" - imagePullPolicy: I\p[ - lifecycle: - postStart: - exec: - command: - - "253" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "254" - port: 963670270 - scheme: ɘȌ脾嚏吐ĠLƐȤ藠3.v - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: '\ ' - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "241" - failureThreshold: 2040455355 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "242" - port: -342705708 - scheme: fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - initialDelaySeconds: 364078113 - periodSeconds: 828173251 - successThreshold: -394397948 - tcpSocket: - host: "246" - port: 88483549 - timeoutSeconds: -181693648 - name: "215" - ports: - - containerPort: -1478830017 - hostIP: "221" - hostPort: -1762049522 - name: "220" - protocol: ÷nI粛E煹ǐƲE - readinessProbe: - exec: - command: - - "247" - failureThreshold: -1920661051 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: 474119379 - scheme: 萭旿@掇lNdǂ>5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "252" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ',铻OŤǢʭ嵔棂p儼Ƿ裚瓶': "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ĨɆâĺɗŹ倗 - drop: - - 晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: «丯Ƙ枛牐ɺ皚 - tty: true - volumeDevices: - - devicePath: "240" - name: "239" - volumeMounts: - - mountPath: "236" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "235" - subPath: "237" - subPathExpr: "238" - workingDir: "219" - dnsConfig: - nameservers: - - "333" - options: - - name: "335" - value: "336" - searches: - - "334" - enableServiceLinks: true - hostAliases: - - hostnames: - - "331" - ip: "330" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "285" - imagePullSecrets: - - name: "284" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 嫙&蒒5靇C'ɵK.Q貇 - readOnlyRootFilesystem: false - runAsGroup: 6637292039508172491 - runAsNonRoot: false - runAsUser: -6722299225018603773 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "277" - nodeSelector: - "273": "274" - priority: -852112760 - priorityClassName: "332" - readinessGates: - - conditionType: "" - runtimeClassName: "337" - schedulerName: "327" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "281" - role: "279" - type: "280" - user: "278" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "282" - value: "283" - serviceAccount: "276" - serviceAccountName: "275" - shareProcessNamespace: false - subdomain: "286" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "328" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "329" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1298031603 - conditions: - - lastTransitionTime: "2488-07-22T04:14:34Z" - message: "339" - reason: "338" - status: óƒ畒Üɉ愂,wa纝 - type: .¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ - fullyLabeledReplicas: 163034368 - observedGeneration: -3092144976843560567 - readyReplicas: 1631678367 - replicas: -1280563546 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.json deleted file mode 100644 index 1481ac0ea..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.json +++ /dev/null @@ -1,1052 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "runAsUser": -6722299225018603773, - "runAsGroup": 6637292039508172491, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "嫙\u0026蒒5靇C'ɵK.Q貇" - }, - "tty": true - } - ], - "containers": [ - { - "name": "215", - "image": "216", - "command": [ - "217" - ], - "args": [ - "218" - ], - "workingDir": "219", - "ports": [ - { - "name": "220", - "hostPort": -1762049522, - "containerPort": -1478830017, - "protocol": "÷nI粛E煹ǐƲE", - "hostIP": "221" - } - ], - "envFrom": [ - { - "prefix": "222", - "configMapRef": { - "name": "223", - "optional": true - }, - "secretRef": { - "name": "224", - "optional": true - } - } - ], - "env": [ - { - "name": "225", - "value": "226", - "valueFrom": { - "fieldRef": { - "apiVersion": "227", - "fieldPath": "228" - }, - "resourceFieldRef": { - "containerName": "229", - "resource": "230", - "divisor": "43" - }, - "configMapKeyRef": { - "name": "231", - "key": "232", - "optional": false - }, - "secretKeyRef": { - "name": "233", - "key": "234", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ",铻OŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "235", - "mountPath": "236", - "subPath": "237", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "238" - } - ], - "volumeDevices": [ - { - "name": "239", - "devicePath": "240" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "241" - ] - }, - "httpGet": { - "path": "242", - "port": -342705708, - "host": "243", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "246" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "247" - ] - }, - "httpGet": { - "path": "248", - "port": 474119379, - "host": "249", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "250", - "value": "251" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "252" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "253" - ] - }, - "httpGet": { - "path": "254", - "port": 963670270, - "host": "255", - "scheme": "ɘȌ脾嚏吐ĠLƐȤ藠3.v", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - } - }, - "preStop": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "\\ ", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "«丯Ƙ枛牐ɺ皚", - "imagePullPolicy": "I\\p[", - "securityContext": { - "capabilities": { - "add": [ - "ĨɆâĺɗŹ倗" - ], - "drop": [ - "晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "273": "274" - }, - "serviceAccountName": "275", - "serviceAccount": "276", - "automountServiceAccountToken": true, - "nodeName": "277", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "278", - "role": "279", - "type": "280", - "level": "281" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "282", - "value": "283" - } - ] - }, - "imagePullSecrets": [ - { - "name": "284" - } - ], - "hostname": "285", - "subdomain": "286", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "287", - "operator": "胵輓Ɔ", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "290" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "291", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "292" - ] - } - ], - "matchFields": [ - { - "key": "293", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "294" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "301" - ], - "topologyKey": "302" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - } - ] - } - }, - "schedulerName": "327", - "tolerations": [ - { - "key": "328", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "329", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "330", - "hostnames": [ - "331" - ] - } - ], - "priorityClassName": "332", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "333" - ], - "searches": [ - "334" - ], - "options": [ - { - "name": "335", - "value": "336" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "337", - "enableServiceLinks": true - } - } - }, - "status": { - "replicas": -1280563546, - "fullyLabeledReplicas": 163034368, - "readyReplicas": 1631678367, - "availableReplicas": 1298031603, - "observedGeneration": -3092144976843560567, - "conditions": [ - { - "type": ".¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ", - "status": "óƒ畒Üɉ愂,wa纝", - "lastTransitionTime": "2488-07-22T04:14:34Z", - "reason": "338", - "message": "339" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.pb deleted file mode 100644 index 388cc6a81ff94b1087767c07e844b9c4db94a5ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4757 zcmYjV33OCdny&joAim>h^=oBnN}H~!qjWm$eW`cf&QY5!EMZ5Gi1v9TAqfy5D*@8u znQV}djgSPgux61EA^`$fAP_W_r7B7{(<-2&-NN{4Q4U8N9kmgi|5o9dt`q+E-hc1? z*L(l}yQFJ57WPSYN@8YaPHdjQu`5$DH*ZW%d?_WDyY~!x6S0VJNVFr#iR2jP$gW^p z#Yk6HyzfYPq84bWS~qgS+sFqRPb(u8FPrTHDdY)3(G`ivE>+S*O_3EB5q0gq?-qSf zSaGN@bGBvqsj}YUT}S_PXb`QP%p#RTTGA92=^P`tHaS>EAa+I&osZ4UHwWuIrGLyB zEg##P8N&#I%c7xdMv(FuK`uuxz*L3%_h3!ASzjJ(YZ^U*SDS~uUVvd20*;)J+1M^v$kw+G9Ts6-~)HPwfh*g}baj7g`f)^OF!RPXP z()>7HHw<1hwh6F?muIcP#!HwN(|FY&sY{dP`CR1EjNFA=?Z8-~uhMfC@N2e#4g4a5 zcY%7>a@FAH@M}{rp6gQiM1$XH>@+e~+xI!xQN%K$i(^E=&WOaxh+@ny1E;(4&7tC8 zf2-no!`#2$f4l+mDabDP5m{CxNhFe_x!%PcW>!CR#N;`S)^@W z#n>g}Kr>k2gE&R9S!Tz=I|xz~+qKanSH2JJHz%X0F^rG({RE;b+zPa^L$^DQ|*6Pmxa{m~5Ek{q&iNsn^eswr}!tC%Zf>H30 zYSE)~Sf+9mo23~|XCV!OOXZ%V4~_D5+y4HqOMeK7vt7OaUOD8X6+Hpt0@W`FAW$Gq zAmT~%6lF`4E!!-Vr^EnJ2@tIZ{f3U}FiKqZh`_~Gm_USR3wb;^cqYYj((FAbJ@f1e z@0p8;g_(rVnc{HBM%cm;f(T)oKs=0zR0?cnYON%MypafjcX0*~X*Li!9*DBs@)uNz z*kZ&!6>^P891R_zE)&J}&A6usIV_yO#!{}zg%nf2iEjS|u;5?<5vU?vlpLLZZ5enF z3WYr^Pb49EqDZGnw#q~AxTnCLrQs1}YggOByZt}zISuX#qGGLo>%sfXN5}?)aAJUH zz?XC|pZX!YZlhn*r(m@JUnWj!3>*d^Qh0{UeLtCvAOcuV1jPOR@mw6ubvCm4K5pPA8(yFW%kzl+KMvG zl1tRDk(fM@h_E$$6 zM=yOg&^dZJWBl0Y;6&pqfpf*)lhCkYsK-$AfXHyB9svoTTy2c8TPR1dws@|dLbfx< zyE|zRe?kuTjeF%0(It1keR#fHgKyt|cgotG?5eOWDyLC_8pnd9_rBkA8->l#olgX6 zPWc+H%=A^4ZeF^6yy!*Q>}U(Amtl($S%B?E7kxYY;Y4Iezf7zje{=n6q^<1Z^F5J{ zH|`w$Au_uC>ns0=bdA>4-wB`Qq{E1PC8QfR%8Q^|mO{FJy!G}w5h2~O?6i9uJ(Yoy zA+vd}SyMA|Z1Gr)r#;YcOyu*z7AVvLH5338%7Y9?fXF&GGb9@7>$4yl3hX0M;c4MNSdIuWQUkA$2e zB1nGtDp{eVal>7o4V)fp^c^|q-&5ng=x=U5NedC6CQuE<#^UhaK5=hg-#cf%L(z?I z*L`}wz4eQq5V1g)0gLE4P@(h?6-p0Lm6br$1hfuqK-tS!>Vrz7s_Ni_<^mry!P@@y zsm}J{+7G&s&EoJC?EZ7v!M}IAQS|p8j-BjkY`c3Ix%LNle|WLzTIIr!7U(RnP|Sy; zLo}%f0R;pGRH;RWrm*#h)mSB@4Ejt|ptv`1scvjH)u=)1g@?{@?#9tN&#|#LSEL0? zj=dUet;v9KXhI254?Z>Bh+EFaz)W4>rg=-vs{TM#Q~ctQ3xD|R^4Z}lFZ#=Sech#_ z`?0r>t|FY1&K0?-x#r#ie``mu;hd*4+idQbXv;E>me4s8=Z#OW~Mn(djrvpyQTPpKJPF%BtCy7g-^g|~oMC)ao21-FQ zph#^yNtd?e0BGE@32PYyG{e6QIWpdqvOWiF&CS<$V2R&|Hw!`*Ai8boGR)K^tUsAs3w_{^YZVneA zLiYwjxDzO(p9vhj<4P#p-PZk?FI73x+-T>SygS-`-B=X5Q z8?cD+T47b*c2S>a%)!~YFTKL2@dlZv!s-+VQ#PPnaoK{jT;5pC@8CrCw*=>=Zjkuo z#8vqQ%-xPNc+FU|3NHbOi-nzrHrGhtjoC)#Kbs2sRuo+JK8Ec>Y$sw<*g5hR4GTM< zS7Lp=hI3S$3sDtC1q(vD7CVbK67XCIb2`rpD^%Xt48d5zEBrzTvZ3>NfXPK}ng&X9 z4Ge>rpF3a8#v-jXPnL2P>D}i9qSZt6)2(zG4+coZwQT1Q_`RK!&##T0ooyPuKVsfT}WxPWGolO#0iK=>g6a)OY(0WXqw8ng13 z&0Yg{D6o>5p9ji`49bbpjDV`GsB{YL>QEg8sJK8hKtZw|6Cu$184M|c^?Kihp-9`O zP2Y`&O?6HkEsFKkm3ohlTn-dBFAMIj_g0zJeRL6-v4}3B@)XtndlpKOpilq<1(O08 zl>!(w1Ykr}4)<^XWRwZ8Hr&Gnl|nWZAlq!2eT22p#w_a!7tJ~n&BL9`*7^DhN6rKa zDgy&2gC&(I?jxS#ulUba2U}`63Jv7==~R;v!YzP`;a!V)%vaUut=i}xIP1P(ww@=z z)K?ZEHi1@O0qWQb^dbJ-QUpzcXlT%^{0$ABmMvrFcl!GV40p3;?kx@$UK;IMzJRtG zL8Go}|J1AmC~d&et<`tU0mfF?`sppkajT>30~8%N_tv}N5W3tS{?FgTsAz2tJ2zwl zl)T@9Kqz#y@m>gCo(OeJKvK@g;NSsIT}U6)Hkc#*e{&Q7l>m8k93Be!ODM`GP$#CcbpDrLUF!{d6v7BlI>N}qB~q!xCH)*v;(~2QT#C~=TC!yP zjPK%6?|I*z-r#}5p@t0*A4au@QUmSZz7;k+ELGnGfYO!yEAIhMao}7}ux3}F^v(4P z%>E9utvPp&Syi~q+nT?DeVU!LKG@U3JrOv+YkS;G&w-rbE_dHV_ejC>?#_peTcCIm z{wo292u)9r9L0Ysy|HJn@1s`quyen2`S=&jLrvAM#Xo6wHBArH*2=-drE`Ac?OnvL z2=tT|AWIpt{M^C?xX^|AwxGa;EZo8c1@L1l`n5UO;@uY<>RM-(pPN2>$t*hMIU)pi z6~Cao?rj+@4fS(Dqens$P9W5S7Q(F)z^>hMXtdc|I_p_)L7=X~f4Kgocu$4Du)^0- zP7kl{oa!HHkMr+&)4bRiZ0%N}|6}}sdvN?z^vHv&2abP!w%`X8y0nP&z95RiFdTM~ zcu?8?8^Q3^=`Uz1sG|1-QIzbkkwv(l15s`w%WcH4me1)D^-F{t4|*HFoMQjasN+}9 z9DaDCEBO4cOKf}IyVH5++R=&+kmKmzc9l<#zBm5;=ab0GYz#j<5a=zMs0-9rIL3Rk z{KrnaTl|;G(mbW(P3GCXX7>qS_j&VpoflH&J~vkD-(TxKuqW|JydsNiP Wj|=WUZ-qOXD8h9@6m`4BY56~;;`zA% diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.yaml deleted file mode 100644 index 7f55c547e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.ReplicaSet.yaml +++ /dev/null @@ -1,716 +0,0 @@ -apiVersion: apps/v1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -11671145270681448 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "291" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "292" - matchFields: - - key: "293" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "294" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "287" - operator: 胵輓Ɔ - values: - - "288" - matchFields: - - key: "289" - operator: ØœȠƬQg鄠[颐o - values: - - "290" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "309" - topologyKey: "310" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "301" - topologyKey: "302" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "325" - topologyKey: "326" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "317" - topologyKey: "318" - automountServiceAccountToken: true - containers: - - args: - - "218" - command: - - "217" - env: - - name: "225" - value: "226" - valueFrom: - configMapKeyRef: - key: "232" - name: "231" - optional: false - fieldRef: - apiVersion: "227" - fieldPath: "228" - resourceFieldRef: - containerName: "229" - divisor: "43" - resource: "230" - secretKeyRef: - key: "234" - name: "233" - optional: true - envFrom: - - configMapRef: - name: "223" - optional: true - prefix: "222" - secretRef: - name: "224" - optional: true - image: "216" - imagePullPolicy: I\p[ - lifecycle: - postStart: - exec: - command: - - "253" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "254" - port: 963670270 - scheme: ɘȌ脾嚏吐ĠLƐȤ藠3.v - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: '\ ' - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "241" - failureThreshold: 2040455355 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "242" - port: -342705708 - scheme: fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - initialDelaySeconds: 364078113 - periodSeconds: 828173251 - successThreshold: -394397948 - tcpSocket: - host: "246" - port: 88483549 - timeoutSeconds: -181693648 - name: "215" - ports: - - containerPort: -1478830017 - hostIP: "221" - hostPort: -1762049522 - name: "220" - protocol: ÷nI粛E煹ǐƲE - readinessProbe: - exec: - command: - - "247" - failureThreshold: -1920661051 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: 474119379 - scheme: 萭旿@掇lNdǂ>5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "252" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ',铻OŤǢʭ嵔棂p儼Ƿ裚瓶': "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ĨɆâĺɗŹ倗 - drop: - - 晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: «丯Ƙ枛牐ɺ皚 - tty: true - volumeDevices: - - devicePath: "240" - name: "239" - volumeMounts: - - mountPath: "236" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "235" - subPath: "237" - subPathExpr: "238" - workingDir: "219" - dnsConfig: - nameservers: - - "333" - options: - - name: "335" - value: "336" - searches: - - "334" - enableServiceLinks: true - hostAliases: - - hostnames: - - "331" - ip: "330" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "285" - imagePullSecrets: - - name: "284" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 嫙&蒒5靇C'ɵK.Q貇 - readOnlyRootFilesystem: false - runAsGroup: 6637292039508172491 - runAsNonRoot: false - runAsUser: -6722299225018603773 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "277" - nodeSelector: - "273": "274" - priority: -852112760 - priorityClassName: "332" - readinessGates: - - conditionType: "" - runtimeClassName: "337" - schedulerName: "327" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "281" - role: "279" - type: "280" - user: "278" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "282" - value: "283" - serviceAccount: "276" - serviceAccountName: "275" - shareProcessNamespace: false - subdomain: "286" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "328" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "329" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1298031603 - conditions: - - lastTransitionTime: "2488-07-22T04:14:34Z" - message: "339" - reason: "338" - status: óƒ畒Üɉ愂,wa纝 - type: .¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ - fullyLabeledReplicas: 163034368 - observedGeneration: -3092144976843560567 - readyReplicas: 1631678367 - replicas: -1280563546 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.json deleted file mode 100644 index 0c3596055..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.json +++ /dev/null @@ -1,1163 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "340", - "generateName": "341", - "namespace": "342", - "selfLink": "343", - "resourceVersion": "15930892079168115837", - "generation": -7417757023786628909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 6779218673590464341, - "labels": { - "345": "346" - }, - "annotations": { - "347": "348" - }, - "ownerReferences": [ - { - "apiVersion": "349", - "kind": "350", - "name": "351", - "uid": "țb贇髪čɣ暇镘買ɱD很唟-", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "352" - ], - "clusterName": "353", - "managedFields": [ - { - "manager": "354", - "operation": "E嗆R2璻攜轴", - "apiVersion": "355" - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "366", - "storageClassName": "367", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "368", - "kind": "369", - "name": "370" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "371", - "message": "372" - } - ] - } - } - ], - "serviceName": "373", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": 3145429786196118388, - "replicas": 1256299227, - "readyReplicas": -63012996, - "currentReplicas": 1538760390, - "updatedReplicas": 346775159, - "currentRevision": "374", - "updateRevision": "375", - "collisionCount": 1836894267, - "conditions": [ - { - "type": "囨汙Ȗ\u003e\u003c僚徘ó蒿", - "status": "誀ŭ\"ɦ?", - "lastTransitionTime": "2741-08-01T23:33:42Z", - "reason": "376", - "message": "377" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.pb deleted file mode 100644 index 40a26eeea8fb2218d170e2d3f3cfe7ee61c2df8a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5693 zcmZWt3s_XwwVpjhLr(f2CrvtclKVM#Vxl40$8+|1dsAb4MbW6>BTAc`ilT{61e8b8 z?}G?}pa=+pfS{oA^Z^JcpxiPKW@wY!B-b{rH%*(HGjpaj)--98TvL13o-u8{@A3`n z?6daXYp=ET-fR8qY}2xA%)`vR8!|GoX6+T&`&VUe$WGt9XZx!3Y_{QPCV&`3SR^`; zVs%3~iVd ztocc(s&HoLa-DboOCU`pHun0H@t+)g{}*5U9sUs8WM|ehdXByq;~hK}@?^Y4oRzd_ z@lG`ls}hI#7uKvuNlxaL6Hefkaoh2F&fu^laoi@(Ft)IdF2aV0cVYt@hPVd3>y z>KeRem$8VwikR1BO;C2oI^LA4VfcF$V;O7NqLPL&uVYL^yhqS?U{S_+6SsGlBETSN za~{UfiB#AWT#WjGxCgGydm#iP7Dxhyud9tIAept>1m6%Zd%M?PByqD8mNw+Tap7- zfFMIqoG09j2QhY$XYHckw2Q=T7sbR!U$TZ&6rKo%KJ(L;`qGb@Rq|ufNEp01d z>=N&^OM=@qH}z$+yE}aFRJg8mexkQ_vdC9ul^uQU^@)1-%aPMnH_wdti&sCtN}f0bl4RKRU%8m#dl|bduy>|13D6)cvu3g)G%yhC^9->6 z!X)f^!m2&H&E*@mE_QAW7aU-xFmVbIoDacZk+sW`<4@y7Ww)cp#)aIJ4XVqE<9Elt zn24Pwmo4#Izy>>H&1si)@&sd7c=kb{0&7=@?*&`mS$IlB$%fX)~<>Ulrk0C zQUXeao1?;fRdL!?)ooX`M7ydJyT;FknVK*cr8(gVvoz63Ig$${g7-C;qbXa#H5%xz zX%6J3y?UmDvFot?I&8lV+pmj>z}F=n<-;r;X6ecsNN1jg7nP+f4OqJK0VYo1c@~J^ z1W&3eaTT7qJsPt<;j=%!^`}^~3_VIml7!Os@MkeMI^kUeU&2GGM&F{{G8LpaYz^oM z2BZnR%05IN8s+Pb&px?8T?rT3@&5Hn6S-`y=zGvFPz3}51Pa6rMC?M3P_{(bGMESt zB@u{9fM|Va9_`hkm+;Q%X3eO#HGHtdGcYk2XpCI0@U}c=R*!`1>H;Ts_%GQL{Q zfe14Zxz9YjFH$(_>s~pG7!X1T6(WvD)rXTECy3zENyI^)NEd)JP7RR+a6dc<0V2)@ zBFzILCjn7bqIXa=Vu}#+NYrW~u?aATP;U^$VU3@-9_O;L0yB$pRW`aXbqR_2AFeH| z7WF@bU{~F>;NA10ku4M&>_6)96!3umN8tZmJSoA0Sd}gv?Id%fu171w@dY zKomC+H4zBJ3fiS7H2(bN8?l?_xITWO?;iK}mrfoJ*I!)nql_PV+p{3o?Dw>Khl6!6 zi}16PU>5iWi0quhz>ux-fk5PF4{bAI}HaSh<$*G5B4Sn4ur2T(RIMX3Ld5lNEvCaMRJ0$MV+Bc#*&;HRTP&ycAVO;#oL(L=xEh z;t_Qnkq9NCdz$BvSzc@nomr8QGtn7p?1>ayv`#e%o_gPrzzKg(BDEGm9uV1?!2Dx6 zwO>*be)j3#Pfc+YcQqYGu6KTZ!MVt>a--XeIeUrVh`|Pw)zL@a) zh*=t2!Exev)wx*H)!gvG@BT*HXyz9m9=sLDfAZHq_k0y)q_rXD`KThY#6As*KzRMy z99f}ysP6m1t?iMz{y=ADOb5ENvi=RbA=<_f2)65@f)v9300cp3{aTPBfgnY8JH1CD zm1iF_dkXv~eV4S=E~~sf&(pg!DOeemtWf_c>Nh3RwG@4898vj9_YW4DEk%KXP}3P# zj{m&Xchx-JI>Q?3+~BJXk5%zzZ*4x@T9t`6hc7%HZfIZ2J{7LGU{$sH211=3k)FZr z;X}3mZVk09o;bcS$LuNyA1QhwJl15DHiya&z)^zeMO5lyl^z6Dgkz;juAXZjOkBJ3 zdEIL>5zTvZfBMt6#=biD$BI9oq=&sHUa;y*mimfkjgLf5TzYDir^ss9SAcA#$X1C^ z1C4xyzzK`Gh7effZc|J^t>|%oLwMxW=E(x@s8!r)whnu$&8|Z0(Ah0H=2+S53(W)7 zR!wsk4Q@oFz7Tci^d}?5Ws$2Lo{I5{p{k>SUT=%>%tVi;J1NvzIwM?J8yW1L?Rsb5 z?e}|ceLOmVW_G+?bgQVO>(UAmKVxDbSQ)u+8gd_)1`&;@$~+)y5)dr~h`tW}7`a2<1eBP);;4;YPFX$dOy0mptS^u2Z)QYwq0ihfbrJAMf)HH;+}9dl297 z@v(F7fAwkq+~^`2y(OBQPw&45ISZ&-MyXbf#_nbIFmstX3}hRk=`20>ko6#16J224 z9}OSQ^VfcKX@BHk-*}&|;>lUz!cMEOT(kx&&Bl(%;SoBXutNOL+C2XeJJ0NN267t5$;bJ8)=sRwl8bk501UZH+acmj{LWb!d4`5Xj>`gsn#+-;2HCyG;8)@K zyLooHmbX%0g|Q}U%a#Dj1EgmdnJe%rywboN$MG9EoWb&pYcq%Q_ksX}lksA1H2_1* zt;TDO1qP3o8qcj_zqMdjdKRF{g}JY0WwUW2FFJupY$u8zEgpOOuI-J8sX)v^=D}Q0 z2y+@v$^gVF;nh31^(?ndgC#+WWMiYoJ?N{s5&j5Gqe|Y zfnCVRIe>yUX*f&Go|U=|F95G><2WH%<&5nhDVbBaB><%jo!iR+x`lr!IeFLr)0H9t z5z30UZ z!)pLP%L?Yy1)ONCWWNn%0Jmlb1>V~@nayP8fc{uCmKgxnjlG1EGeFXM%;jt`aGJKk zPz;VwmS6`YZYiK_9(wn1i@1#4;3q83XYByjpUyCr<5e8D0?$i@#j(Jx!t+FfOB2+M z8?cdq^SJcnR6WB`xcND-2Z9cE5uW`L#SaZc-kieTLd^dl<|JZX&dbntYNr$=vZEBiU_McKem4XhP#<{H=~gIBop-P`1a z2J9cVZZYPzaVodnz%Ob7`|K`50Tl(oP&3wn-*+tAo(p@MV`RfF$ehHd)VF{J;slkVEH#F*1Th9M08mmU0E!sE5L5_0f(npx-g1Ux9$y|f<{y;2 zo!$e!7VG#}@MvJ4)!!GXEVfE|HZ3-X+Re6xY>F>bkPd((Yo}G#oa`wIj0DP_de(o| z>~E*Ny2>X(h7(jJinjpoLt9IHe7xH;IC;)n@QkN3+rs8FHg12Llw>{ij?qT;o!z}GWb z-(`KGcGN;|fkLgQ?-YuM?>1$MFI<9eEZjI` zovO%5pD6Kk?8yzCXp*KoVehAT+~B;7Cyt6K(JfOx8tS(_u$-h#63G zYND#WTh;MJL+3!rF$7;juKjlC)~7ey%U({U>PS>INlA;gscMq8RR+GygIpOti3A$c ztcxX)?k?}4U|Xo6BvM;%^$i7k7noN|&6*aR2vc;rZJ98h)S+a{?mzz4GhdGHY|XCt>8@CDCvys@0Mv5S~#D>pCCg{Z&A z;8yO$FTxiugUg4!XJkQ&T!d4iId9q)!;qFj5>zy-KDRx^05GE(c>MyLtV5m@z%WH6 z55Kx#ywyKuc3pf$_7?{(1&#zq!UqRu1FRBhOcoWI3RT|O4>hydeKLGt%&fjNF&w&5 z6&WlKT`V?h2WR+8cd?I6v_`HrhnvrPPKUbsy>)XohKCMq8*jA^p7OU&w2WT~7Y;ff zV;aEz}JEV*c1gm}=sC!0x8BqFatG?88g@uArRNYC;v|!=*@I-I8eQ>fW(sDdK zG~5<0ZwnQTg~kdN|0vMM-nS&w+U)BNpDl34$M3JZQSpNWn>#*!=y#KyQxo7jho}k! z2%#;Jp!u^2^H^%Ay(BVr^rdjkvGFcn_0!hy$PXif`!|Oh+pW(2aNQwk277;e`>$`G ziN)8sw*ozFQ=PlwKRen~*!X$>yH6!tAK3q^dmLZg`SSO%Auj)w-@ZR(=I5hlPb0dX zG#iM#c%<^vKTb_in1=w#hI)?$j?Q_;+}B`Ut@rd>)nn{^R#$=VtUGw-Sy29$?+yGW R6_kgG@ZCgIRj18u`#-|_m8<{& diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.yaml deleted file mode 100644 index 520b75e8d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.after_roundtrip.yaml +++ /dev/null @@ -1,790 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "373" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "347": "348" - clusterName: "353" - creationTimestamp: null - deletionGracePeriodSeconds: 6779218673590464341 - finalizers: - - "352" - generateName: "341" - generation: -7417757023786628909 - labels: - "345": "346" - managedFields: - - apiVersion: "355" - manager: "354" - operation: E嗆R2璻攜轴 - name: "340" - namespace: "342" - ownerReferences: - - apiVersion: "349" - blockOwnerDeletion: false - controller: true - kind: "350" - name: "351" - uid: țb贇髪čɣ暇镘買ɱD很唟- - resourceVersion: "15930892079168115837" - selfLink: "343" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "368" - kind: "369" - name: "370" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "367" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "366" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "372" - reason: "371" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "377" - reason: "376" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "374" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "375" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.json deleted file mode 100644 index a3a941851..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.json +++ /dev/null @@ -1,1166 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "340", - "generateName": "341", - "namespace": "342", - "selfLink": "343", - "resourceVersion": "15930892079168115837", - "generation": -7417757023786628909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 6779218673590464341, - "labels": { - "345": "346" - }, - "annotations": { - "347": "348" - }, - "ownerReferences": [ - { - "apiVersion": "349", - "kind": "350", - "name": "351", - "uid": "țb贇髪čɣ暇镘買ɱD很唟-", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "352" - ], - "clusterName": "353", - "managedFields": [ - { - "manager": "354", - "operation": "E嗆R2璻攜轴", - "apiVersion": "355", - "fields": {"356":{"357":null}} - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "366", - "storageClassName": "367", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "368", - "kind": "369", - "name": "370" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "371", - "message": "372" - } - ] - } - } - ], - "serviceName": "373", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": 3145429786196118388, - "replicas": 1256299227, - "readyReplicas": -63012996, - "currentReplicas": 1538760390, - "updatedReplicas": 346775159, - "currentRevision": "374", - "updateRevision": "375", - "collisionCount": 1836894267, - "conditions": [ - { - "type": "囨汙Ȗ\u003e\u003c僚徘ó蒿", - "status": "誀ŭ\"ɦ?", - "lastTransitionTime": "2741-08-01T23:33:42Z", - "reason": "376", - "message": "377" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.pb deleted file mode 100644 index 2f38f60dd63b753409ba28e61afb5233f6891354..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5743 zcmZWt33yahmabb7jL&W@pRHX}`hC=tC>Xtu_wL&nMRp+|kgy1`^+_P0tRV?x(f+^X<;5@?p&Lmo;huoz}~$)Yi(BAhMilMr)9BkKgoQE7(`ekI*{Z- za)QfK6lpE}e0wapAf%il=OqdHj4D`Guh9ibP~yl{8UPWQ8Z9 zu3f$U#+8Dy#)9D)5_}j8z~Gt021WnVV-0 zSNn@!%k-A|4x}eo1%bC{D8nj9c~(I#MNh+2h5gq^MX6a`8fiW3ZNe+f#&hn$wbKIC zzYbOwObuSB_3U{OxTy&?<{p@?vGL4Acm#Cvc0oEqD!Qa9EN!Zarrh8`+2FV?)H- zuz?Lj+=-!YnPG71O1yHrF`vDRnAc@ZP`1iCUZ103_ zY;X%T5FO82mSy{YA;&3%f3Uh*IK# zwG6D4RN7LZrEMaNRpK31NpLx5ro3c!b%pjF57m~;N$}K+7kVqhrH5X7eXP#)QshKy zf>qSPH!K-eiR4)&u@p^##S(kBd2-lSwBp(2^4NahB*(l!Qes{pso({_b23GDGFDk& zZ%t%u&>$?ca=bj)-yi68_p|@P*tS0wt~s^Y=^YB6>(~^^-^)&5;uIn{9)QUrYn3JY zUq=f|Z${n7iCnZBRFM_?$A`Zii+PvRlJGO=2EAm>VU>0A7-Lm<_I{uOYgLH-+grtd z|DPxa`zM$CzP=S>W|_{w4A?`F?3URH&<4heVvm&g&sbenMNP0O8gH3yRrHyb`A~7@?8rq&^$a^>)xjNfa0eaSK^GICUzd242di{gr7LeB zop};oR4}+z*Pu&x+{eTTJkJ6V9AHURCC-AAH!sGtw|(`OcmEn|mZFF0Okyi(3w;$c zqXXVWuq8aCD)citEK^2`-BOPpV}P5$tLy{xq0xTb{?!*}sVU)t+dsNmVIrrc1^oiX z1uB3b07HSefQX&wA=)j`ZW&aBhmrt9B|x-ZG@Fj>FdsQ~NF*ON^*&nVk>=v~@glK2&mB4NPb;S6IB+5?|=`_i{ujazF2~G>R zHoVHV|2%u^zgjB3{$K=w{Y1r9&~QBzGx8sh9j3s&0;0j7q=OPv8=3zUO`=c1W`Ta0 zxTr{QeSk=@88SO|Clg2L5fDLk08v~()C3?9JLr&ZYk2$m8?l>azdCxf_YT)D7mXhY z)ty`TtMnH@13iiU zy`f9zXqT+1i7I6XR}YjCWl%;`5+*5QeP;U+v##D8Dxdpnv-#4_@pAuAsPRzpBe|=l zJWpVjn*0W0UW|$(@ho^Akp%XxctlM{BtnVkn&jSZmKB8uPcBW*9_t7;bVu^fg^xE1 z?mF*5|50Ce0@W5mAQ0JMWBzYB)n8I=Z+-cX;}h&fos9>O^ZmE4g(preAA5KI9sIHH zZ|;koWy&7JB*%o%z>{E=&NA^9+wL#F`;RyW6-DMbg;q^y#WQEG1y6y_Kv_)$B{2duF8R*H%`cL$RXd6c$*shK; zQV9DrFoMwfBO^ruMvClmcn(G?PCa6F=lhO%&uc53;j*?|ch924Kt+_ZLhYxhKjlpK zQuIx6MCCJFPtP-(3;p@Q#*@x$-?v#YVzRLs!Y5&boS9u zecLMbiBS33aAk|PKiJV8=^oe;+F$c;;lb7gV@K9yo1OWggN2WUMjFE?{cHKeaL294UQ$p1HRwT;0@3gBua4EkxZh`SD0mY2{pI_`pQ`_Gwyir)(d44I0pEA}TsEC|B0l5!U zgNQ~{Wi}8s5r~!yL|=_wMz2^hmN3*98a-JJLOIbOloL&~U2F0lJb2@q;s@-=dHiNU z^{wl^;0ZMK^WC1Irje>LH{$C*KYaS5@4xJu8Qnyqw?vck=>69qX8~19Db=db$eqki zW+pR(fowxGfQ_&ZWIc%1L>E}sXF~^aeKnt*-xJx_JKF0le|%b~pd(yRCWZ$p%!c;J zfnhqIutNM>t?qx1`7=A2fgDJ5k)05}Q0;A_GbHw2+6CI?Os1;n3j2kX8AVJ#V)7BQ zdQ;l^ObJU_d3p|jLJ?#5VO<31N3aOkFpcMT=HWa(a~sxP$-z6;0;b%qZ58o)e%rM4 zTtmYm$7KRy&Ed!*gY4L8@XPU>9XvZ(%Uz}~$5@lK#R~!T0rE49jHP%vUS?p9xq-uZyMTeg$#?;`0)QgsR^U~}T!Y7pj9JUspUvH#mI)|xUe2qTS!|rhiw+Scqo<%1+JW4DC5yVCOM%HlX758qQR+rlqXLbHOT`IZjAYIb#cOO5zl5 zAwX+G=XP;`cHv)2O4|PaWTi+zgtFtkIOcuCcoDOdnW17a2aD76wFc&s4KBqn7Vpvw zZmGd>+BRU6NA06L&#hX-WvAU_t3 z#Rhc#jtytMY(x48(o8?_1_!8EqWzFKA zmkkWn!72e~tb|iCc!f*bv00vH!1-~j7hrBPr*c~i{JbWx&uljo5K#~eHGMVMee2>a zIdHbwMi!ic%t?H5wzP3B91(|el=Z22u}Uq4pEbzlIqAy{0pjzd^>}p(&Y}LW28_1N zkU_T9Td=q++rSy>#vf~%`&X?H!SBIfuNuZ$ZYg=zNCe%9N_E%j5m3Dac>!DqGDL4d zh5u;xBE=!;Kk6sd@|iV zuqHClDQBBa1#}^qzKAZQJRu`I!$80i6o`OO{{k9_6I6<_)ELSV#2CN;KuJ3RP{aU+ zphEBwRDhhbmoOaj=o0^7-+<)l@a*+AhmVW|4*7S7`+6f4Md9M^^$X0wHnX)pi{c9v zxC0=`+!iivN^%$ahyA5bJmWiM_O;PbUF8!Y!wISq#an>)p{*r6I@;wP7(eaFf6Cnv zYPvk0zr@=eXdgT5F3bow90>Q61a>d*9wjhWPcBAK5Cba!U+fI}5Lueg|8{l%2QdUj zF@T^+t_QfJaBuNwtN()8b=G%btUB90xNRZLmIBlcK$L%GO95&K=+SKbb-(G2rG9(Q zJAogpPG3pIZ(~4V>fdhm%;c{h`|jFz(fprMgqT$^NpyBPaE16wB{|jd#pT;|0hL4- zT=#AAo$(wBUaU(o_tpn%_VbTNrGWSg!y;536u+D~bz&S*Fe2!Zt+=y)Fvi1P@$L`T zV?oMUb<;O~8;tlrtv`JS|9NeBXIyFxVrE69B zc<}0NC9XABSKJvzRJ^tc`t=OfdqE$oS-jX^8fd~heZ#>w4&}YZh>YEL{sm8+=WOug zzLk-#!EkH& zpinDnJB8xm+fA9`3#Z^62{jCckC$hsjTO7wcjg37Hm>rOr3l{Bp2|>TX%t!rG|dZ| z(2h_qB7nF7sNWYX9o(^ELyCXcywJNf+`Wh1cu{c0n}vG=9l_@OsnTgJ!QTNuLp}R z2D=KvdwauWd%|aGf(On-3M$g1DV_tthMM5Zd9IW9J+Ne3AzQzLG$BC<3Uycb-|hCz*t*hJ)3O;Y;TzOF4ms&mqtNCubmbitzQq!oG)? zyO+5KeET9beUamJ0A=oFCI+iogYEe=>?oQ>>mX@Oq^~zIa4Z^$Gt#5|P6 zZI;yM;FH?iT=-0uy^h-fh=b=j-dFADRkYc4EVOsTtU5n76ueX!87K>$D>7>arua&>vyY6m zL@qaln$EaS1UvgYwKLX*2KR3sZ3*u??rRxq9=#MQ7;rqoJhU^|Q@+)^Um5KWRKD!5 zeM)-?aQljIU5Wb=3niwgx)Pa5fr8PYv7S)dz<6b(`AAxDs5Mm98Y~&?q`?!Iu<2zyt!Gv9m46*&0}2>;s;`~Q#v!ox!Nk|L_A!{W01FRjv= A&j0`b diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.yaml deleted file mode 100644 index b41e339ce..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1.StatefulSet.yaml +++ /dev/null @@ -1,799 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "373" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "347": "348" - clusterName: "353" - creationTimestamp: null - deletionGracePeriodSeconds: 6779218673590464341 - finalizers: - - "352" - generateName: "341" - generation: -7417757023786628909 - labels: - "345": "346" - managedFields: - - apiVersion: "355" - fields: - "356": - "357": null - manager: "354" - operation: E嗆R2璻攜轴 - name: "340" - namespace: "342" - ownerReferences: - - apiVersion: "349" - blockOwnerDeletion: false - controller: true - kind: "350" - name: "351" - uid: țb贇髪čɣ暇镘買ɱD很唟- - resourceVersion: "15930892079168115837" - selfLink: "343" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "368" - kind: "369" - name: "370" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "367" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "366" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "372" - reason: "371" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "377" - reason: "376" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "374" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "375" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.json deleted file mode 100644 index 2ef9c9a7a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": 1089963290653861247 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.after_roundtrip.pb deleted file mode 100644 index a92e15a7a021c79a6033694cc892f5085ed24052..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 362 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-A^a?Z~yDay~uNi7OWEz2y<%+C|r&BS$rk&Dqt zh|ySz(L{;SR7>ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iL% zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iLv zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXVp(ElPGV9{DoCPM;{U0> PwJ&~6nZPf_pu_+GP`rej diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.yaml deleted file mode 100644 index 0dde208b1..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.ControllerRevision.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: apps/v1beta1 -data: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -kind: ControllerRevision -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -revision: 1089963290653861247 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.json deleted file mode 100644 index 8106df9cc..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.json +++ /dev/null @@ -1,1072 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "rollbackTo": { - "revision": 1503865638277557961 - }, - "progressDeadlineSeconds": -94103882 - }, - "status": { - "observedGeneration": -5187798234288383520, - "replicas": 1170997513, - "updatedReplicas": 44905239, - "readyReplicas": 1866809652, - "availableReplicas": -164761311, - "unavailableReplicas": -1844415313, - "conditions": [ - { - "type": "很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "status": "PPöƌ镳餘ŁƁ翂|C ɩ", - "lastUpdateTime": "2646-12-03T23:27:38Z", - "lastTransitionTime": "2449-11-26T19:51:46Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": -305244896 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.pb deleted file mode 100644 index 7cc2e2f89da22d1be0ff5b980f4128ba737869b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5170 zcmZWt3s_V~mhNg|LhfW{IybN0o_t?=JDLzoUGA;>c4iXeD~d)1A5mtLI}p){PXv@l zobLk#K~O{lK|oO?%1aRxkVj-fKjHQRk}+}iRJYm5_bnfs zs(Y&H)H$b4o%#XfLVD3rJ%F0RFE@WiprVA`HCo^l~mV!;0n{(O91jdgTL|7y` zkmN#gqRUenIZ^59+L|0ZT9K}WkMH}fr#;ZXg&TSlPvuIp?LsEGUr=;KA~LT^ny4wV z!V^)~-n+K*a&cvIan>x$($nSryGmQ$ZXQ8tcQQz2k(O~6gLKv^@avt7RUi(lAi91w zr_da!^_RVpjF_y8GD=HZn^E$>v#M=aY6BcER*KpgnC<089 z))rt4gIJ}Fo`ZS3P2RYkU@Y)iTj5IuHo=)2)?r>1GLlv&FVB8y4JI6DG1pkO-7tu< za1|&pW$~8W1)Cjefl**=;SG7~Vq$<;<2i1z!5Qfar)SJxzh*v%IoaSAXrMZNWgYy+2rS zp0J`SsuIx@MbO}vNHVXT{&uMQ%9YX{0gk<7*NyVOlyr^$8KuR8XcI&^`3)Pp;PW04GmUs_@D-OM~W1_+JV&v5miB?gESg>SUB~oaW z#0vBfESA`xm?uYkrOTgPCQs}GNiv-JzdM=IyBMo1u($4HY|tSrvtqI;*xw)MbN93V z#Mrhx7Op$J!RZ|ipYK>7D%!(NVd4}bI39q>B5Rc;`{&~&6*r?{<3ujX2GwQ7{^8+o zCSuX#v?SgGY_LPt99CH;k1?(17IVU`&T%z!-< z$!?jI2z?N&DE3IXzsKsbDr%xt(Rj-YtD?`eq~5_;ReqHv!>S6&uudhcRTb?h^-kzZ zHk1Z8M}_sO;;^c!%c^RLR#hifjh_K4HDM;oa6k*IG|@phk`pC@_cd6fDeJ*C8tAWS zcI2X?dbXXh>Tvuz9KR07uZxMm*Ciem!YUnB>B>%|Gf%>Y%2JjFEZuQ06DROI3q){$ zCsma=i%;GhjahH|>eIJBk98~1!*nLGm7fZI6?3BlzD4jQG*S(^hYrhBkYcwqqQ@AJ zCh#iz0BtnN*X>{3I7?j#7ux>*d(|d#T3XTlFfLF91OWsJ#05m`M8BYHiLzxd5gH{C zh)RHHeP|XP)nSzIj;UttsHZiwx6Iu?G2m~C3{`nr9yM!5LiP3jQt0VYjIN zAq6|@F9&YNuOlW;BvE;yNT*5my>&xZr#LMT+VCmc{`Ksw|7xxN`rR=E{u32janrR> z%*p?W>@Y>5R!JHRN;()pt&#aF=n>iqHVg1&;-V_S^#LNqX2|TsT}&LIM?eJG0Yq^D zQ4@hcuAoD@t?A8cJ7YJ^{@(bpzB^nGEu1_OYB;~(U$TDVIh6x%&2D$AXE;y~s|Y_M z8CHRBfXI%g7}$~!g?_2jJVL-D1Uy2+R(Jf2dXiAj5K*vOT(`gBxQHmi^%IzfnfrpZ zZApO(fhuR}_^EKwz`V7yHqvw;g4lbR_&{&6e^2PO^OPlPYO+cN!qo#~L>Y_`mBdGs ziF0QA5woGu9Il%4d$Z-WZIf00;ZXCT)JF?eKK?v`S!(J|#JmtyN8(wCJR%9~-SLRJ zj!1+O(e;RXpIKQN9z3}uD{rDB*wh^1;rJc?Dk@M1cQ^OO&N6K`Vp3yDXb?%TN@tmPi*47J z-~KVqK~<4?*H8WJ-ZRsK&4a$G@a~@Io{&jlh&Uc(eh#yX`zCv1_t{~ge9`t%#4L~P zU_W-`z?oRrd9?9^55K2`!z1QRT8()9X{auuiaRM>VMir4I_DN6#((4cA$O_d% zb=@6mJr$`x=kLgl=|E3b)_-I-WZO6b$#zv#kV4pBgCIz)KL}DJ5TwX1hv#6V`t+k_ zcaiV7_ky;R;d3J^~aLwUW&dxj;MUL>(_J5mJ)wau=%7j&({;~ zyJ#M1eLOtak?ySvjUC|4-nv4#wJH;D4xgPCYCN@)ogS(>8$QtL?GJXeN4f_#hW6F{ zGCX)<{=|`&^32Yn(7}?&LSxP0@}t4ZJrGKey@*O(tkOVGMF=ZZa&}+-VB+$vzt+E! zfatq7^Yz!?9{cXhr&XVzP6>JyRDipa%wch&g$;DJN_UQdhhtBG!RS8}kU{P9qAU1XqZhV#;{oA38t z|7^4$CA7a&a=oOi^THAm|M*0IpgMB)Re1ZrG{|T~Rb~NElYwZdK=f7Ux9E44?8OXq zhDJ|TgH%p5NaaKmZC8(a4<5Y!*Rluf$k}$Yxc1gHU+`6w@YycU@X@iFN;l#gKRbNp z{qMd!H#544MsJBG7t;H$!J7qCt)Nt^L1T9@+nAZmQw+Q|MAKOs_wedLwkEp3x;`G> zU*N0z_`>eU-oEiZZ`Bh?q2i8kaitg@s5YD0Bl}0_e8LLxZ=7)dAr{Z zRIOmCz6@hc))p-Qlm|%9FtV56Wq7H9IgaCB;&2wrGtRXfF5C_R3{J-Lx#a*1F}EDA zH0BsQUT8eCjJ;>hmdqSLm2>l7&dFutL|$|Nk=PCtKUzBW&TZS95L1Pixy*g}pb+LX zoSX%SRl>_RajRKwg9clI7AeL{8uu)hVd#dih08P27jT9sU}FJ(22gcIA!lgM@d7)S zk@ElruhDRhnwyli3eN$rY~VN{Mdgf*ASs1YxCH>E4V~N00lI}hDJ5mg|I?Ks0TIfI zcjA~!i18w33GFEaMQw=W7Fcxjs3~q_RaoT1OR7m}!JkPCM$mJ~0&AA%$yp$2HRkfx88|~rHxz^8 zQzSS6iCYLLn}^YD+&nI8EBFbEvso*^^(V88#dsOVEy1(WU~?>R%kV7G;4%dDrF3j$ z;Q}r*B~8yV6mE7NoPnT&U4&=9Me&3Ek+-I>*AeqSh&hg!7YnkqtvF{b6cy|8@cKfm zKqZ3tjTnltj7?bCNHU@Bz#HW4BE%BblX9Qoo|g>_)xb&tXRm-$GI)i{+`2)YYry$& ztL9^F1E+Eu4g9<&uupF>6i`tR3^i*N_bdG)`=fI`9-H+yID*N%UC z_1ozCpH_;Pl`&0pb_Pg={7W@C-FoBV?Ye+!q6@Bj*ZX=rhk~OGY382BVBJ3ciKrHk ze_>dJ%7fyUp3|>RA__(XU9y#R_7BEn*sI_E{#qaf2e z)HV>@RW^PhH`3a|Mf$rY8gGLPS|Sme7zr(rh#)#owsfBOVEpxJTY`m005aY=bgAh- z4qWVf3nkx+BV(t6JI|O$&iGr+p%%|*5kf!07XpP^QQs*P58v*}6kj+6?^vj5Fx*y^ zmpM`9Zr_$4JlVX`SD7Yw&v*`mnk%BvLZHvQpb6~=^&tX?8-V(~!HU7H%h#s)N6ewV zP2uj{^u~*VE8Z;G6X*!G6eV2!xcuz9q00vjqiFFZLR|whp!fnR`O)y9ip#Mhzl0v7 zG9g?=QE`C3MOvDPqV{KGxq_xMPk1VQLpy?{qrtA?@SeVK2U zyW3*{s6mYxA9(-G5&!VH&+nf&Kh0HT7VZ4by1(5y^H}H5wb*|v92S@5e*xrH;cEZ@ diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.yaml deleted file mode 100644 index 811ce813e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.after_roundtrip.yaml +++ /dev/null @@ -1,728 +0,0 @@ -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -721017134 - paused: true - progressDeadlineSeconds: -94103882 - replicas: -1978186127 - revisionHistoryLimit: -2062497734 - rollbackTo: - revision: 1503865638277557961 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: Ŗ鱓;鹡鑓侅闍ŏ - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -164761311 - collisionCount: -305244896 - conditions: - - lastTransitionTime: "2449-11-26T19:51:46Z" - lastUpdateTime: "2646-12-03T23:27:38Z" - message: "341" - reason: "340" - status: PPöƌ镳餘ŁƁ翂|C ɩ - type: 很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ - observedGeneration: -5187798234288383520 - readyReplicas: 1866809652 - replicas: 1170997513 - unavailableReplicas: -1844415313 - updatedReplicas: 44905239 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.json deleted file mode 100644 index 4c4bb0e17..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.json +++ /dev/null @@ -1,1074 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "rollbackTo": { - "revision": 1503865638277557961 - }, - "progressDeadlineSeconds": -94103882 - }, - "status": { - "observedGeneration": -5187798234288383520, - "replicas": 1170997513, - "updatedReplicas": 44905239, - "readyReplicas": 1866809652, - "availableReplicas": -164761311, - "unavailableReplicas": -1844415313, - "conditions": [ - { - "type": "很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "status": "PPöƌ镳餘ŁƁ翂|C ɩ", - "lastUpdateTime": "2646-12-03T23:27:38Z", - "lastTransitionTime": "2449-11-26T19:51:46Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": -305244896 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Deployment.pb deleted file mode 100644 index 187c2104b2aff572351438138390467c77c69565..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5202 zcmZWt3wTsTmhS3^#ygJFULVujoiTxA~G& zbx&2DI_K1>Q~$|&Eyuz*n0wN*vT~BP2^pEW=>p5l&dl1dxnN`Frd+lofq4%xh_Fa> zAjyT~M3<*Da&nKSV@q=ISVg)PKC$n2p4LDe7q074JbPA{Ef+G$1A?L}5|MdT(nL*> z6`qK?_WrdUmy7o_7H7@0EICu&x3jeA?Z#o0b|-^W7HJuGF-T{v0>945SOwy+3Zm=Y z*@fnCwZH6@9B+khe^#PZ5O|A*vaNztXcgoN^dwAG*nf^xRhZQkk&{Qf$MABq@w|H= zJtvKgz=k1i#lTx)7@WEsFW+p;WiKLTyQ~SyMp?(J^EC`VFJmlYEmu@BFy?iPiHNrf z`bI3u7_a8GZB_)BB&{jH7zVLQ8$Ac}c&of&9l==Ov$nvO3T%Qi*RRFADr6+BN?w-z z(rQdN&|;3UbemxiWx+~NVA7(^x$`$U)B>Zx*vuR9mPNz>vBq=UB7-y16;98Xw{G=3 z4s)`>&DTJ6{LK73umS`bg5v0QG4CSAD)OvV6dYEOxU8a>`0xwiq2}$6M~1sI{q1I7 zgEV^wb$<7<)e<|r0c@L$< zgJ>BLQh*q7^}oPtdihz&PaRF?C1#XZ3)$u&r0;vOq6&JgewlevVFYH^awa@qE*$2RpY0_N==x7G91vt zDou1yj^sp%a2gt{(Uf)I8V&To9l}9}aL~m>;Oi2P3SpHFt8`@t z(wQgVLj{Lhbq!d$<31)%;CU8^-~dmmDsdK{x;YZF-uCrpZ+{W%R-lLJOkyiP9r`-v zMhAS0;7e$vgXkVQEK@;>-BOPpV?dg~tL%fc(I{WHe|@8yx)Lt9{e$>J6gU!(+$a zk8@gBfk~oVm5pvpT|#31hieSGMg0#c+F5%!a65h-F?k}1$`eI8O|tK;8N52lX@Ss& zPucdb-M9X$x$2vDM-li>RBXi!*FrHT|0lA;6u4JFG#He0FoIem^H0v7_6&eXBf;iCSzYi4es=|BXr_c8H-o@D>- z&}-)@OV-q6l?sHb2gZmp7$Yi)k0|5k%+{l3UA;L}Ir|T0(`#END*Z#D#>1(P7Oa^1 zJb_ti>JG%b5LHLwS%^F$3GChRh`NqQgc8y9h%52j$94Veo3{x@zvj3CfQ5d8}}pUr8lpJ?@Xv1e|z5@{E6>x z?v0&g+AhST#+1+?l3j zJjDD0W*7HP^u+G7!$SF@?c<199^1iw{OEzRv99x2{f8g@K>H}++beso$MHA5`Lgr- zC?n$}VxEmEB1`NOpa`VbAI*^!s)y>jJJftSQhUzdmL1c9o~*3@#BRv8aRid>%BUcP zuup;@NUc8#QX~+h$S#NHP^9Y2qh@E3?}Yb)w#*scbGpFYvmiN86_u<||0(KECDXkW zeO(+;`E1vdbIhg^e^IdUlrzuQ74E%g9&Mf)9%xJV)`Uh6@Mcd3M(i8qJ3r-bTH zuVANzD!ao6n!SC&w$?~z|Ax@MnqP+pPR<)Y`cj_RUKBc1@>poJFf8eCw~ZuOuM)4$gS}^|wdAKl@qbrzrU$&++HNb!7{@rAcGM zk>eMpEp?ZK>vt9*OF6PsAyiK@A0ZH7QP&Uxo80b-Hq?x!`07K$Eo&xjR1E7exWq5@#+u-p6FsI?JEGeiL!^YJr)vNH-fLwk-F*g1@x2dH?phI7>1q_mZIHh5({#|bGaXKVmTDV)O1 z2WV~R+%^u-F8oO;DVzVFt`rG~PL2BKZp8vFXIUOw0!gbdm$%ly8Ctrb7#yD>!3jv*0zln7jBe%Ta#>rzPgtDAS^>U4k!38x zOF3>ao|y)lV}VNgD_rK5_3|78&W~F;4|D4|mD^z8=QV+Sdb6Q`ih^LMSu4Ts8y9ZK zhqKKya^VzYPU2JZq_wl*h&Y_Dtj@p-Rq84HtU=b#%35j&ke?q}jaR1Od>Rj{z-gNd z8FX8@0gFrW44kd5{jsLGf5kEp;vO9KvSFlii^;P_GT2U3YP(jCfa=Z23*bVKA$tol z3<$CY08Q2t;{+&A;hh!~!FKBNb8p1izYkvpT=B@fNYkL%)oHeNy1PP$MnZdw$aHuA zsz`skoM#>@rVGjR1#}^m2`|Fa3?wW;feZ-sFQ9=qL8T~5jiD?-i~$S)l#~g8A_g!7 z6_Ssj0_2>zh~bzii~L7?{gS86v)kJgJ~|pW?B5wa*BhxS4VQJUo@Wl6Hc!^)QhcF; zbO0ndo5B^xQrso}VSmN6r+sJ4bEoO3uJXz7!U?Jp#an>)p|2%Q8S8NOPn`7>{l?uE zI(BiQXpy%w&^ms^U6LJc*dOjG5A2-hJx*Y*o?3>WAO=wYzSyT|BeL{C|MLBP@5T@q z#Q=gPxgO+F!o6ii*mtd;0A? zZv}p^I(_9;{}uxZ318mqnZaK>@!i$$qVIoNDPmT{G|}1VAQkd2)#Oa`jf=PI0;-8F zxb9o$>+&29j?|@@yX%8B`}oJBT0s7VVG$}1ieI|UygGp>7!h>IR@UA(5R+lAdi#fK zu_Wa@c+)p=8;tm`)StbB|Gc)cJuagLG0#NxfIR&e)kFCaJ_tIEDIH=e&^9Z!CqQ|^ z^Z&4%K)wPFVV6XoSzcr*q=o!Qbs9f0@rgBxsd(9C^R&+OoDTKWxr@dR21X|iQh|i0 zz=KzB8*#O%y6UbdqT;o6z}K@`@1Qr?5gEJh!f!owp6=kO zy~`sV1L2dElb>7RZhgf`hz>m#xCSWnwz*tU&na;ZID4rBtjD-p(PR# zMCYld_LCouy zpinF7JB8xm+g+LB3#Z^64K)meTPpK1$IINUTl0gb8dv!CqzT@$o&%xAiYT-Y=rb>9 zLMuYOhydaSpnhMlVqnX%HEI4~bFg<~xN{f1@uJ|0H%oR0+Ja3*30FTU?|wIQ`M?nr zExtskYhVTxUqB^48aiBYIdM-`;sN@e&60m&ACWRowwLm92(uR zeU>xO=86*~J`spO;^RO4taxIv%`!bc{?f-ieVWapo!?ROw>xJXZy&rC`)`HA;7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5(^0b%8sr0|NsC00U8+ytnP}$ b|NsC0{{a#R3IZ}T5&|+c8Uivl8UP{ypD1R` diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.after_roundtrip.yaml deleted file mode 100644 index f3bdf6720..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.after_roundtrip.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1beta1 -kind: Scale -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - replicas: -2052872833 -status: - replicas: -125651156 - selector: - "24": "25" - targetSelector: "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.json deleted file mode 100644 index 8a42011e1..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.Scale.pb deleted file mode 100644 index 331be8c0b4d4157c7a268000cffaa05b1a97077e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 293 zcmd0{C}!Xi<>E;!C@9u1GfYY?Ni-B<4NgwXNfl~l;<~}e#b_kNXe`BOqQq#brF5kA z<>Kxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b--Da0Ve&GG+K n-`XGlfq+p;l4H%gt|K7!e@37hCLcRCL=Q`1|0+2oHXg&N$%%#Vxl40$8+|1d)w6bilR}$N0c@>1w|X52q=%F z-v+G}k-fOS5_TFp#>+I69ZOo(018JF=*$WN|=@~g`0(<}ZoV1*b?FV+R&&XkY&oBYR zAi^Tii6l3Y6W!jDNPC61cYji-r94fu&K~=rw=3AdSq=S)w_=moaXEv0Q&4n8A~LT^ zny4wV!V^)~ZrpnPdQnAlQRZUXy7Ohjhe}%CY92?avlyhZNK2p1Af2@f{7x5R7l_j? zi0-d1EilJx1EsHK`^x>tGZXECz}qyGWf!CZyC9b%3_}(6+mWhrv$j0ae#+N^H=50t zJfmp~g0(*mRTs?QU@T)TM^w@==5>sThz|(*9xTcjZ{rT` zQv?_!ZO_LTIur!Hb&; zJjX-jmk2AWqAC$hQ3MTsM3Q;!{AXAC-haQOUw~~dKJ-!9pNo4Zet}ZsL9`5_m2}!t zp{4C4j9ucLc1du%7Nx#y_V$L4c7*H8mLz)XW{Q2)R{6g%A|}kX zkbx1fh9Ws^ixZ&@f)&LPDGT)5-F8Jyv@05KTWDAGMYfcC7`w`Ewx!!uAqnQGgte=p z1EtJ@wv>QU;pV6?UsarTRdw4{Ezz#(#IErRVWuW5Lg`L;!Yoa6QjX+8iQs(==4i@J zaE%7~YnlVOX|JB;VC*_d}US%Jq4~_D5$DcmBNL>jR+VS3vDigVEZRnfOFHi*p0R#%f4Mglgk5aZo z*)o_24+1t&_xLa6 zhes|OAb|+;5xLJiekf8j;p<&Dh8Pe+2o)kuMb(Fs9Vdw3(iy}-pGX&gGfoYW1aLn* z2mvB41R^a4A}0Y+)}eP$4PuHB#AiB~NNfUqP;U^$VNIR65$Ce80<(Z}RW`aXbqR_2 zAFeH|7WF@bU|0S1;NA1T?;Z;uf_lsZrs;%micPA0} zPgD|$nr?+-PW~_CfFTmKO46WH(!mI-pv=FI=Fq2*U<1BP+*BpFK0u_{2$`Lp&BPJ9 z1w@dYKomC+H4zBJ3fiS7H2v(>>#>{WxG{BR@E-TKR?VCaH(XlzgUs)HJF_9z9QL$% z$Aa}Ri|`ARU>5iWi0pipfh7r1=$lH-BLqA`z$5h7>dvoIPZH`GA_@+h`|dkz7ZF9c zegg9t^H8X^V?pq8u+o(>)oB%uEZ@F(Hw_0Oh<%WW4-O;+j)bpXqAXcclT<1Yt{xa8 z%3zGBB+gN$hs>_iW<#SnR=M=YX6w}hGnIj{aP!HO$MZMMdy&8>HRW~0ycAVO;#oL( zL=xEh;t_Qnkq9NCdyeOrSy5t*o?DxlJKY^>>WdU!vO1atPlNA7;Eca7ky;BO4~Xnc zVE#Ux+ApaIKmGV`9rrp)dYX?T*E>JEY0a8nIsMkLd-$`T-#HrF%hbb&Nr@?;!AXKy zI?Ke{5)OU**}ug(sVXw>{#u~Rcj4(!^QgblI@}*!6Cx>e5$7Y!H(+$p;LJemK09rc zFDCppVwS~LaGW_^eIeF#wKV?vH-DvVH2>50kKT^sKlFtPlKB|Z;vCn`a z5MIADM^>mFs{6ihTW6$xDA1i1(}C`+tbfIBh_-PAg6-z0Ace5s1wjy6zZ9fMAV`tj zPVb3G)%nNGzC!<5-(_us%c|(i_YAB`3RXoWE7X6A`c=tvEk)lMM^rw`{oQ3|YjL13 z)O^mB>+iP)ubHRY=2@fNX}-GfWHoON)D^(3Rhf8m?BWyQ#?DRb)8WdCR&|?iIMm%0 z=^NP{K34ZH)@b{R>C;bw5y z>FZzorT*3Vh~~XTKl#a9lb>JsedX^^(j(q8FIWwwt9&I3rp6;@E9c78{$Ia&VN zGV@4{Rol`-gBua4FGSrr_o+xpdE{D`r*i62sQP4Jz}sqkXS&bRn-uCUn-{LCi;VOx zbiH%v&U*v5Kb#mw^SjgD5)dr~h`t&9 z5dFxOwT7Y2(CE%;5Xy-Lp`2)9!p#=ni4(W~Qu?q1xjOC?)qZiyA9@4L|L~A^tYxyM z!h`t64^Lfq@AHp`7DX4)=q=IY0($>7$XP(ua!R!tG&!3&z${{(Wgy!SO=s!3hpY$D zn&<-S{$T8QzQ68+%ZDRJ2d4&ol}{}Q7j;`j6{0m#Wj1w1j*rvvgcag{+V1(+*m-8> zGLQp_F0%JpS89EobcDoygR;Qdyt&jAU12}6GgF8eMob}MHt)>XmMvi^r$EmG5GY~{ zKdg%Y^#~RL3uf^AfdX8>XYa+@kMi*TG{BJiv^^r;#_wH_nQv%V_(V!KiNM9JjacWrM%OeJEL zF%RW|LYUKVQYIi)32)fLZDF}x8Y~G~BpX{b?s+cV&<$Z9musZ01err~TgXF=*_ycE2$i{pf3l{0pOq-0LvRsxhZbnYMr=obE^4sQhfEGw8(mvW-9j{O>x0o=wt6nO9AWHyU=7WBuWvDyHzZX6_>oC%V)U@muu zfz!1#Loql$S%MvqxK)6%dFVaBE$1@#gP*XtgtY@)eEs8!`Wbn6rp^IX_d|kF&Q! zQL!Tz?<~LyR3ez)jiDGz--DIiBm?RWyh}bP!db%lf}H2L7i9xOHLyv*SsP)O3|`?f z_V1FH8L)rc<`tOR#i`tG1HY&V?DzH=3aBUuhMKt<{Jv-P?mXDrTq6f|LFObrC0E+9 z6t;-NdCInQyjrE6!p|FI*OJWjh5+$-&NjR`73b0Oumzm9*N{QC&AYLW(jK zn1?oP5aHZ|!(K6rG;S?<-be!5iArtP8WB*v4fz0E2r@)(L52=N)&QW%dSaXafILGJKO~4g%RzzB_nEicbSD&Xpd}1Pew2&MEZE8BS1@DBc3R4{a^+iK$-C$jk+A;deaU;g)MNg=>6$!LI33p5iR4 z>9{pe7Cf}VcZR@NJ*5;u0Sux5e6i2chse@|{>K}~-i;wJiU9;oazD%^TZ5%j?SU(1 z??wNW>DpY+=-!nyTMAG+08##tEd{6{fTJZ0H~f4smiiq7ZwCKrclpbz{v!qy=Kt}| zz#{(E+0Sl%7R~>uC5YJ+(?n+%f>emVRFm^g!7f?-f!TsP)f4}!+Xrdw2Jkl7d zJH|g1)dJ!#bc;}VQ2f$={*4(#!HA$s38g*5qcItds<-}nD;A_&HFx|ocfm;D{l*LT z@E_J!_Qa*vA?CTL9uTLWq;rV}9P9RmFhI^+Q?}7|kA`u!G2`!O`AiB=A_O$L*nR^KCo= zkn#4(cba}#eXZwBl=L8uOm>D|zhIue5NI>6w0b8B5&8p))UT=OP>MXKPt;H?ffmq($6K-0XS30(*cA_9mTfck@>^3nYp zwx<+aS&cFFV*~NFm*Q-yVXz?XNT>~Sa_yQ^g(AdfH z>#;3=2R%Y%!f_Qv#R>ivX=x^k+Aompee^W*l()iv<+V`BM5wpOIx=Wg9Jc!FLdW|f zMO7KnJn!*PQ(dT|Dpc3B_jgpbej6co@E&FYfh552Kxl@Mz>%UPCfeW|n5>Juro)cv z5Hq0W)I?Q#x4P@o#_r+LQwY9>T>tOU+aKTREPpwbsv}X=BqcrCrm9KWP8s+z4{~Mr zBob&!w=R`NdV9Rbg6*Nk(nwu{H8>g^SZZD?GizIMB23Zgwq?P1QUCb!4O>bg9Iw8=2=X+s8gW-4?ml5^m}DybXrOYB@0c<*9IXCfp#D4B%Yf21SPf;Kt1J|hqUug!<^+qT#-<0tog*{V zk=D~0p|SRGMSG}tGBjDZ;s=32_P&*&wiaJ+_gu0?b?Xw+$j_bdV#aP#wk+G`T^FMj( zmxZywN0*fr0+CmErvCD)Sj11+$UNpfxyW3H{hm|Fk%lAlBlR`@GXIcORp~1SJEw1)3@3q|ARIoih^p$exo!Uk D7=yOZ diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml deleted file mode 100644 index 4b1cae07b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml +++ /dev/null @@ -1,790 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "373" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "347": "348" - clusterName: "353" - creationTimestamp: null - deletionGracePeriodSeconds: 6779218673590464341 - finalizers: - - "352" - generateName: "341" - generation: -7417757023786628909 - labels: - "345": "346" - managedFields: - - apiVersion: "355" - manager: "354" - operation: E嗆R2璻攜轴 - name: "340" - namespace: "342" - ownerReferences: - - apiVersion: "349" - blockOwnerDeletion: false - controller: true - kind: "350" - name: "351" - uid: țb贇髪čɣ暇镘買ɱD很唟- - resourceVersion: "15930892079168115837" - selfLink: "343" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "368" - kind: "369" - name: "370" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "367" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "366" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "372" - reason: "371" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: -1147281085 - conditions: - - lastTransitionTime: "2606-05-01T09:09:27Z" - message: "377" - reason: "376" - status: ×軓鼐嵱宯ÙQ阉(闒ƈƳ萎Ŋ - type: Ė@îż暬Ƒ琇ũ齑誀ŭ"ɦ - currentReplicas: 1913559840 - currentRevision: "374" - observedGeneration: -5753617402405166224 - readyReplicas: -1653255608 - replicas: 1952497813 - updateRevision: "375" - updatedReplicas: -803838090 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.json deleted file mode 100644 index 0d45cd47e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.json +++ /dev/null @@ -1,1166 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "340", - "generateName": "341", - "namespace": "342", - "selfLink": "343", - "resourceVersion": "15930892079168115837", - "generation": -7417757023786628909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 6779218673590464341, - "labels": { - "345": "346" - }, - "annotations": { - "347": "348" - }, - "ownerReferences": [ - { - "apiVersion": "349", - "kind": "350", - "name": "351", - "uid": "țb贇髪čɣ暇镘買ɱD很唟-", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "352" - ], - "clusterName": "353", - "managedFields": [ - { - "manager": "354", - "operation": "E嗆R2璻攜轴", - "apiVersion": "355", - "fields": {"356":{"357":null}} - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "366", - "storageClassName": "367", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "368", - "kind": "369", - "name": "370" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "371", - "message": "372" - } - ] - } - } - ], - "serviceName": "373", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": -5753617402405166224, - "replicas": 1952497813, - "readyReplicas": -1653255608, - "currentReplicas": 1913559840, - "updatedReplicas": -803838090, - "currentRevision": "374", - "updateRevision": "375", - "collisionCount": -1147281085, - "conditions": [ - { - "type": "Ė@îż暬Ƒ琇ũ齑誀ŭ\"ɦ", - "status": "×軓鼐嵱宯ÙQ阉(闒ƈƳ萎Ŋ", - "lastTransitionTime": "2606-05-01T09:09:27Z", - "reason": "376", - "message": "377" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.pb deleted file mode 100644 index 98165261b46112044254bc537c6db439f2d47621..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5791 zcmZWt3s_XwwVpjBN>0*da?+%8C;2|76B7-|KAyAB+uNkZR}_s3KBBbADJa_bL_m2Y z{XU2w2#SCp2nY&9o{E5g0?IA(V1_o{Cb{0*UYnc8&CHx>j5ST0$2Cds+B4?1-*@?j zb@thhwbxpE?X~`Oc4%1^<`L$;)QpU*dHaR5^z2lDy?1SPYIge8eLL5tXR}{C&HN5A zh_Fa>AjyT~1ed2c(pK*2*_#+@E=$$S(?@>p=?v6!W__RHDc=xmznD&bASk*b5t&yd zP1F=w;fbhg*KfXlt+2eQFk_)*&DqkS1H~;@o5oPe3&#@ zqU-yM^MhkG{*qU-yk)+l83|TF;4K=;v?z@%muX z1@}nmyg!TGz=k32!_c?JFgSHRUcbj!%3eXtYqBONyJQ`2$<;9Yy@IifwQNyI!ZlC(7sV;ICLedt-3$NS`++X==3pRpI-ROlu+eaAM;t3ukm zO^NF=H*dj&11XjmYxf%lQC4gO0q$P4CwuvBhni>P8GCp`-n)tzz}9$yTV-%Ys>11M z%eHS>#$ir2xaAs%j-Oke16lwhLr@&&UCcX(v5Guv6$OV?BrdBcCOrC*IokT#laaCW z>HhBEP@^>a@ua}{4f*b)p|T5v6;)A{h^8ol20tRnymt1hOT8a{SllOo8x$S*wDhk< zJ>$PaDe=Hs2G&X%ZK=@GwiCuG@eZpbxSR`8UJmy3gb%le>q-|TcxtDMyj5n|@mF7) zs&~B{d7~}CD(c`HmQ1Te@~x6shUUOxiM=;?X3ST-?)kOy)Dhq$$GkvNVqPGr;06ET zWQu1pR#{-box#|kL0D$}bVX=rC@|n2V*iP;?RmniJ-fr{9W^g>Z4Vb5V((_+6e2ht zg2^Ill_mS1CX32$N8QMYT(lchkrn&Ogm%M!5wsP2OZo&7Zadgmw1#9 zt8`eUE3YG+c^Y0+Ft}CMpi6f=z{CkW&jJw~U`bUa&cZXd$79;t{_^qFKgF75=utY8 z*h)LXe~FpV0q-K%5*|`Dx{nUal#yb$G@vIK;3n`Y`w)F-v|qRX<{K(qn0kdEpwN_fZYV9mIvHGH_l zJv24!Z;V{3@U%P@tR4&3)%j2F@?FRa4_`EZ0}H+fk@%Fw`a{LVt@%Dl!-VQ z6(2l3P7uMQ(};sHk!}D!PZf~_Fh4v90V2)^A}s_WCjwE{ptn&qVu}#NZ#tPstc^aX zHHcz2Cr@3Eb6Qw|nMZq7Ho7r235nSst}*NuwLgStXWg~H9shO2_=zOSPZa4i$$q%@ z(v7>F7I1BNm2Lla{@XvaR(}4@1OoesimkBmW;kZ#|3r3}0{04t27{6gN>Bl1{zEj2 zJ_VZv`eovxBEj_mBE@FN?9@yqj?g0@g6sgIxPYh$Kp=L|A>G#ao13r4Zkql2hK^<5>o_Bt)TaDpijVum}N* zP`A|`-=~%&)G|aA>=xIZcQ`I0ig5h|=27OsP)+;1z{Nm?GkLPZEErz8b>U7L4n$!4 z023eRPxK!OU%o)QWKB&}DMPq=po}PkGNO_&OPLxBcAgB@Hv~s37XLEXa(Ul$g?}{M zbUgX7ybW_+Brr=&ejPC{Ma7YL7Cetg0((z9qNXDfp+t1eavuqn7n>tzR%hf)b%h#x zBLx@C_9nqy?>*)}R|}?81TR{@8tXSZKd!`ydi5jqPARb+YPQtm$lSc<=phXdBJ_^25Wo z;`mQL|8wux(T=n>#5^ArM3&g6K@bS9->D-jR1Vd3Pq?)sQa9-D%8bcCPgd6dL2rn* zaRh?x#wa6&u+IP^2(8~SQY2uc$S#NHSfujoW5M16-)ZkfZJpCB@5poauSg73Mma0g zev0~!oatVQzCDhpe5UJ}CBc>=e?h3}j5EjAXAWEmo@||Cj&!AZYr_*&e6YVZA8xJ6 z#0N*uKOS!A*uXv&t~hU2wR(p_U7eBM;ho_lwf}66v@M%Dxj84;T@XH2^h9`~$t-OS zl^+6Eg6Kt5YGRc-f+~Vrsgkqz+Iv&izWt)^)wzh~!3Dqi)zyiw&wX6+N0j)m=hO>k zeaQ-M@w~~g$f=7@t#ucf4F?L4r4(5z5o(~3j}Y*%sA&j+P3|;B8)`+5`x?Sy?OUe{ zJmY3@SFm-|T^;N$G>@F!mJ^&Pdu>VZP_METRuB?p=_sn;`ec<-H{kJ|DA3}3G-zvIQRMLHMHHn`yH590f zoPPsyAE*Wqji|~(AZj8IEg6Wu5&azf!jid)p~leY$!ZYFi3XvZXrk>#v-jAsTVIqs zWJk{S+l4jX-t>juKyyDi;2CY6s4jOSzTuM-=idGLv%v+?O*DE-G&!H%e+_aLP_>Lw ztr|_tWcD!&m}eQtHbev12>U?RgJ?~3fpvW}dNj{h`_aXNk;4O%1Kx@!=Yz>Ih?;A7#N(4mvQR=C}M6M-e4>?c)Y@RZY_J?;yvkEfHIflzLJ&A z#)-V>03xwnD1N+n;;lQnHzKA2F-w>Sb3q`?X*e+h5UhmP?cz4E+zt)41Syh?%^LSS zmuBdOu!qYrQkQdvC}3kbehyG}T0UoJFYp4pgpqRq6>rgSmYO{;Wg}h;R@uRELXyfE zJAqRYr*O*wS{pjIp98cD|58%Yp8qE+MFJv}9dE@kZzINwnAOa)Di(9GI8RSCFrRF2 zDTc9fzh-c&4UW@x1EYLuALT`E!wN2IT{ef;1D=)@%&Chx(OAQN56S{={Voc`cW^SB z$vg}4W6@Y?0C+d{6Hd+mPMa{7v(3P1TB@NK9G@h?2}s-uK;1ly?&Fqn8GFG_SX{(f z0lq(-VXVSyIc_yxm;#$)fm@3giUyY^sGC!wFV+AS`%;ljn^@(4DAMcdY>d)mxDl zz=a?~^cG|o5M&Jinye?p2~eIwo)#3rcIK18U&q_L_l1v* zhYuH!`R?IOk>PGRC)iv_7n1oa=t9a9GQv+72v~vw5fJKMKm&1tN>P>?Ls^0t0~i1( zX(s@R7{Cxz2tI-ekaOWGhGQOI4mzrnfd)&j* z=R5^Jc6WuFuS^%L^7aNgr%t$wGR?-LW`Akmz%uVC0(14`5(EV?umbSKK1&}WOB4E^ zuOE3QhQKHW5H!j45SL^QluWkyF9mzf`z}q@i8m5PxAbQ>UjtvPLl#FS~4>&ZVA?aDTnKV5&MW zFZ$jf51l!@KGHK{wpGl2VS~SAfy(|c_{ONeEZjaEI#4osF+0-Q!bOI9rW)>m3|b-) z8W;&Jk%%BV&$M*6y*K%*O50ouj{s!6b^Ptd-&bAfeiJ1=fFlzfq1Vp^PoDF)1~0XE z#tRVo2Yew=s1>!HLhchv zLJNVWc|j985gI@Q5H|qz2SQ~dd)IAE@s9;B4eT;|57HYi3a)or290vdJ{O`~;?v?($;kQg`}jYJwf6-9Bq z!pveG$>w%Q>I?8mZE+raCd=8(?FGca^Bixi0`5zhS!=eg%7r|z-r&~k#xKG*F@wv8 zOlV|5(p-v@qgim)Hp7rsKw4BZtUk9h*#LN>8hF!UoTNkM6hKu)B@e%{c(T}7z-aBo)17vq)}Q_XmV6}#~@VE!JgCMLleR3i&LYa%Tuyv$W3#y8<44|~?wVnPFCU^R5FmuMM1mI0C(L6h zp^lQs#POHHH76#!z12^fqhmjf3?JMYZtO6-2E%nnq&e)p@g2XveI^!h7u@pqw#{&y zK=HSHhdy}o=H#*S$W~i;plznz-+t}mSk!f%8Xm2jIrsCczb}Y|Lb|OqABeonJ^95S zVmTmrJ@csN_yYGi?|7)8*H;y;Eb(?lE?1e|1>Uo+z!~;O?mBbqSY*61IMg3J*XKTw n6sbQnH&R#aEARs&i_7xAM6SE@ diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.yaml deleted file mode 100644 index e7611c3d3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta1.StatefulSet.yaml +++ /dev/null @@ -1,799 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "373" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "347": "348" - clusterName: "353" - creationTimestamp: null - deletionGracePeriodSeconds: 6779218673590464341 - finalizers: - - "352" - generateName: "341" - generation: -7417757023786628909 - labels: - "345": "346" - managedFields: - - apiVersion: "355" - fields: - "356": - "357": null - manager: "354" - operation: E嗆R2璻攜轴 - name: "340" - namespace: "342" - ownerReferences: - - apiVersion: "349" - blockOwnerDeletion: false - controller: true - kind: "350" - name: "351" - uid: țb贇髪čɣ暇镘買ɱD很唟- - resourceVersion: "15930892079168115837" - selfLink: "343" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "368" - kind: "369" - name: "370" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "367" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "366" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "372" - reason: "371" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: -1147281085 - conditions: - - lastTransitionTime: "2606-05-01T09:09:27Z" - message: "377" - reason: "376" - status: ×軓鼐嵱宯ÙQ阉(闒ƈƳ萎Ŋ - type: Ė@îż暬Ƒ琇ũ齑誀ŭ"ɦ - currentReplicas: 1913559840 - currentRevision: "374" - observedGeneration: -5753617402405166224 - readyReplicas: -1653255608 - replicas: 1952497813 - updateRevision: "375" - updatedReplicas: -803838090 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.json deleted file mode 100644 index a09016f5b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": 1089963290653861247 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.after_roundtrip.pb deleted file mode 100644 index 4e46d7c614b996042eaec3f8c6f5fafb112fc68f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 362 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-4?a?Z~yDay~uNi7OWEz2y<%+C|r&BS$rk&Dqt zh|ySz(L{;SR7>ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iL% zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iLv zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXVp(ElPGV9{DoCPM;{U0> PwJ&~6nZPf_pu_+GQX_<% diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.yaml deleted file mode 100644 index 186ddf8fc..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ControllerRevision.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: apps/v1beta2 -data: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -kind: ControllerRevision -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -revision: 1089963290653861247 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.json deleted file mode 100644 index 9fce27491..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.json +++ /dev/null @@ -1,1062 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": 6808883506426686803, - "runAsGroup": 4559267523176571, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ğ#咻痗ȡmƴ" - }, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -1942612426, - "containerPort": -1222594476, - "protocol": "遼ūPH炮掊°nʮ閼咎櫸eʔ", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "627" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "280" - }, - "requests": { - "": "809" - } - }, - "volumeMounts": [ - { - "name": "236", - "mountPath": "237", - "subPath": "238", - "mountPropagation": "å睫}堇硲蕵ɢ苆", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": -57352147, - "host": "244", - "scheme": "Y鶪5w垁鷌辪虽U珝", - "httpHeaders": [ - { - "name": "245", - "value": "246" - } - ] - }, - "tcpSocket": { - "port": "247", - "host": "248" - }, - "initialDelaySeconds": 411878451, - "timeoutSeconds": 1676588692, - "periodSeconds": -254454655, - "successThreshold": -1925916855, - "failureThreshold": -1553779100 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "}", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": "267", - "host": "268", - "scheme": "@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": "271", - "host": "272" - } - } - }, - "terminationMessagePath": "273", - "terminationMessagePolicy": "Ŭ", - "imagePullPolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "securityContext": { - "capabilities": { - "add": [ - "ɵK.Q貇£ȹ" - ], - "drop": [ - "ƹǔw÷nI粛E煹ǐƲE" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -378701183370790036, - "runAsGroup": -8656955128235291182, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Z" - } - } - ], - "restartPolicy": "0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭", - "terminationGracePeriodSeconds": 3211788672813464064, - "activeDeadlineSeconds": 3932374770591864310, - "dnsPolicy": "ħ籘Àǒɿʒ", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "runAsUser": 8519427267030036521, - "runAsGroup": -4151726557168738613, - "runAsNonRoot": true, - "supplementalGroups": [ - 1875040261412240501 - ], - "fsGroup": -3078742976292946468, - "sysctls": [ - { - "name": "287", - "value": "288" - } - ] - }, - "imagePullSecrets": [ - { - "name": "289" - } - ], - "hostname": "290", - "subdomain": "291", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "292", - "operator": "Z1Ůđ眊ľǎɳ,ǿ飏騀呣", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "ƻ悖ȩ0Ƹ[", - "values": [ - "295" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1694108493, - "preference": { - "matchExpressions": [ - { - "key": "296", - "operator": "U髷裎$MVȟ@7飣奺Ȋ", - "values": [ - "297" - ] - } - ], - "matchFields": [ - { - "key": "298", - "operator": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "values": [ - "299" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7": "OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P" - }, - "matchExpressions": [ - { - "key": "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J", - "operator": "In", - "values": [ - "3-___t-Z8SUGP.-_.uB-.--.gR" - ] - } - ] - }, - "namespaces": [ - "306" - ], - "topologyKey": "307" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -205176266, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "U.8N": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "314" - ], - "topologyKey": "315" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - } - }, - "schedulerName": "332", - "tolerations": [ - { - "key": "333", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "334", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "335", - "hostnames": [ - "336" - ] - } - ], - "priorityClassName": "337", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "338" - ], - "searches": [ - "339" - ], - "options": [ - { - "name": "340", - "value": "341" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "342", - "enableServiceLinks": false - } - }, - "updateStrategy": { - "type": "鮽ǍJB膾扉A­1襏櫯³£h刪q塨", - "rollingUpdate": { - - } - }, - "minReadySeconds": -252352702, - "revisionHistoryLimit": -1230911246 - }, - "status": { - "currentNumberScheduled": -10743562, - "numberMisscheduled": -1479988716, - "desiredNumberScheduled": 1262074531, - "numberReady": -1187060809, - "observedGeneration": 8043349780356677523, - "updatedNumberScheduled": 641181607, - "numberAvailable": 1131069811, - "numberUnavailable": 1834151037, - "collisionCount": 337714305, - "conditions": [ - { - "type": "嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ", - "status": "[\u003eĵ'o儿Ƭ銭", - "lastTransitionTime": "2739-05-30T11:23:39Z", - "reason": "343", - "message": "344" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.pb deleted file mode 100644 index 35e4f621e2391641dd4e4ec8f04e39cd16217435..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4637 zcmZWM3sh9swR47uGa%Em}K1t79y@-nUPFj?im6JU;bG7)dF@hfnh>A#YA?879 zlE?dYq-njkZB=Thp=yy4Zrt!oZ%d$F3fCXiyz3VP51h`V4-(DP7*%DR8H%B)noJeb z_~Z4G4~p0CE?${pn{}k(av76Zh6*Q3 zjKvf$HSi!(5luw_lQ=H^=#)n+WT=2#MzX0Bc;Ss2f?*rbUTRxOY}n~Lp^3GGO* zE3#-;h|8`}k6lrc#tdwlWesmX9p11p_}2P#-;u$N$kAiNjmO>yR}=>~Rfe~=ya;|L zim7Y54#qHQFxAuuGs^2L4)1z*XsZr>ztMU7+rA5X-k*||03uWnp{4Vk4m*Q;p2;pd zBc4%D&kk)U_n&^_sle$_dvTIoF=fO(&uF2YDOKn`AZ4Nrh*fax%}0f+@q%3?;-z@u ze%MfPq~$#vu5A9f_+uf#SN^28!Fw!893jMMrs{eKC=}7IGUuiDDlY!d9r#0To5ulY zP)XICMXl$nqqaL3S=fk6hS zZx~MG;iqPVoToqDU41t&Xg_)ohzOTY2yi9T13+m-qdA&!vOTEb(DBZ}d) z4Iv566wU&kCD)gcs6C8Q*el}zuoM7lDgbSk?IPNagi0igjv7aq$o)pS(NuE|d{W{c z;kJoHNak2wj0)zKQ`7ZhKtaXFQhn2Y?tDdaT&%m+a61~BtH=o?jGM*`IAo^Vmc&g`;sU@;0+48#j@6e=A6-37q#05Fr{D3$31IHJVSb@<9BF?F1mua$Ji^1}0< zk>YoJZL_8gm$ZjAR`ngr9%_$ldndSMW2o(P=1?u?K*!DC95{2TyT%J3o>FiNr6%NV z9OZ7IF}G+yFpB$vf-e9l5cRvi;T2E?UO~#k!o7lxCptA`@$S};&D5v)Esfhq6&=)9 zjHCzqn}_$by&2qBKHS(5t~(jnA6{QZ;mDi=K}?GZVpJRtH<=>-M}p09vR4xiwtW9ckE@mmRKZnB8CM?}@4b)e+9=57dB~2pA^DI6_tA z95wAbjv9Ydn&A;A__yWtwe@!mwR?+x-hXJgp*O}6QjqHM4>;;vhEA6OP;ws#_jC=u zl{B;?*tTPAc*_^})ccmgc|QM2R-&`nCxdceVKc&|G`H9HpYP zB4n#TwoS;klUE^16?kj>(NP8r?`~BGlrFpPa4WAdl<{}Wi0cXYXOW6``VL3Vl&%bJ z-ZO9NGm(_-0?lKY|~ZxDx+#>-RT1{#n-a0g~T4yX%kJ{!n&&fOj;w!e6an6h@QE zEJ1P9l&d%-ThR8ALIV;e2`R#pKxtBObQsVq*OPAx1goU&GeSxS;5>!pH~ znUbW7%8LsXiDXzWPg4ru9-I(MnrSV}pF2^KGRcAh!1W?w}|mFu%0F62rn?q z)J%+Ztma|{3;a{KpM&8S!8A`Xff5j}=VP1&Ga%L}PG7u;WvMKAinJ7%Ew^TXKAufi6-qBj5(7ge3?rd5b;&&4(o?KSU?7&3vo(cchA>ZGgIE75GphZP zEJad`{1uoKg3{p344khlgQInLCB|!#GcdCl=z^^@COtnqiDA>KDBCo^wm&g#hpzsg$;iW7LK3Q=9>>_Q_FYLPHsNHuh(=M+c^E3?&`TOOG_k+PSHUNh~1017FNWO4A0Aw ztf}HN!p~+~iw$Y2lx~?8$&uDti>AZeOfUp+BDR$DLdh~-kmnO?p*R8*gi(6rLNH;H zF%Q(F6x4*IuSW_0z3ap`cCiKtB}n*%FdocSa`FgP@tW6{=i&l+4JKKcE0(>ERjQeW zso>RkMY6&yyiPJK#VE+aQg(rqH+cq=Qlu2|kp)tkWj&v7SP*JSGO{72h2S#jCD9{@ z3ueq(0!Gi6h$Sln{5k*sdr*-1I>M%0}XkBV&k=;=E2%|-d6uW{i8={*nM4#|M(DlayB*KR0|FCv{P@}aHs9W;EGT_| zV=(J+vXT!s2S>VW9HlxgeqPoS%TedXzpVeQ-FtQWG4O>)K8eoxk7DC zyRL&mP%>rB^T^n6-I3*P-8!}WDATxf*nYU>8cm_an zg>d6Re|cuGwR>7&y6_mxW23|6r@UwTkM;HVI%jxKj%7oee>(1&(7p{BL#;3w@jgYk zZbSk3gh8Jos{7K_3!l~fqv+ggiHLu8Pq=lVp>pfx>V(u$-o0ajTY84KZ}&H54V;Mf zVzddtX9fQvfN3MzfQj~9FD6>F7e5dxJ~mh#s@Z1@Rz`X{BNc5!bjNHL|8sNs$=EA) z)uM#28^4Ions<<+_VR(=*xc!Cx)J*59`~uiTY(s5;?_GwUmh&F{<|Fc;O{;@Za2Ox zY1?(rgxgo%`&<09;_lK$G-tXnCU~+wxUnnGf2@C7aBpLOS>TwjA>4d2)Y8y@W~ez* tRW#5dj(X);@5v`~f~DsM4o9kvxDpb2zWT5`&0+I^O-d2~=CXNg{|7ST)vEvi diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml deleted file mode 100644 index 8a70343fb..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.after_roundtrip.yaml +++ /dev/null @@ -1,719 +0,0 @@ -apiVersion: apps/v1beta2 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -252352702 - revisionHistoryLimit: -1230911246 - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 5087509039175129589 - finalizers: - - "42" - generateName: "31" - generation: 3974191383006284807 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: true - kind: "40" - name: "41" - uid: ',Q捇ȸ{+ɸ殁' - resourceVersion: "11397677413428459614" - selfLink: "33" - uid: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - spec: - activeDeadlineSeconds: 3932374770591864310 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "296" - operator: U髷裎$MVȟ@7飣奺Ȋ - values: - - "297" - matchFields: - - key: "298" - operator: ʁ揆ɘȌ脾嚏吐ĠLƐ - values: - - "299" - weight: -1694108493 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "292" - operator: Z1Ůđ眊ľǎɳ,ǿ飏騀呣 - values: - - "293" - matchFields: - - key: "294" - operator: ƻ悖ȩ0Ƹ[ - values: - - "295" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8 - operator: DoesNotExist - matchLabels: - U.8N: N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz - namespaces: - - "314" - topologyKey: "315" - weight: -205176266 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J - operator: In - values: - - 3-___t-Z8SUGP.-_.uB-.--.gR - matchLabels: - 546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7: OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P - namespaces: - - "306" - topologyKey: "307" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: VKPg___KA-._d._.U8 - operator: DoesNotExist - matchLabels: - 4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B: V.Z__Lv8_.O_..8n.--z_-..W - namespaces: - - "330" - topologyKey: "331" - weight: 789384689 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X - operator: NotIn - values: - - X_._D8T - matchLabels: - 8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3: 4-Tm._G - namespaces: - - "322" - topologyKey: "323" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "627" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 軶ǃ*ʙ嫙&蒒5靇 - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: k_瀹鞎sn芞QÄȻ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "266" - port: "267" - scheme: '@Ȗs«öʮĀ<é瞾' - tcpSocket: - host: "272" - port: "271" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1553779100 - httpGet: - host: "244" - httpHeaders: - - name: "245" - value: "246" - path: "243" - port: -57352147 - scheme: Y鶪5w垁鷌辪虽U珝 - initialDelaySeconds: 411878451 - periodSeconds: -254454655 - successThreshold: -1925916855 - tcpSocket: - host: "248" - port: "247" - timeoutSeconds: 1676588692 - name: "216" - ports: - - containerPort: -1222594476 - hostIP: "222" - hostPort: -1942612426 - name: "221" - protocol: 遼ūPH炮掊°nʮ閼咎櫸eʔ - readinessProbe: - exec: - command: - - "249" - failureThreshold: -31530684 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: '}' - initialDelaySeconds: 1030243869 - periodSeconds: -185042403 - successThreshold: -374922344 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -1080853187 - resources: - limits: - "": "280" - requests: - "": "809" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ɵK.Q貇£ȹ - drop: - - ƹǔw÷nI粛E煹ǐƲE - privileged: true - procMount: Z - readOnlyRootFilesystem: false - runAsGroup: -8656955128235291182 - runAsNonRoot: false - runAsUser: -378701183370790036 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - terminationMessagePath: "273" - terminationMessagePolicy: Ŭ - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: å睫}堇硲蕵ɢ苆 - name: "236" - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "338" - options: - - name: "340" - value: "341" - searches: - - "339" - dnsPolicy: ħ籘Àǒɿʒ - enableServiceLinks: false - hostAliases: - - hostnames: - - "336" - ip: "335" - hostPID: true - hostname: "290" - imagePullSecrets: - - name: "289" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: ğ#咻痗ȡmƴ - readOnlyRootFilesystem: false - runAsGroup: 4559267523176571 - runAsNonRoot: true - runAsUser: 6808883506426686803 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - priority: -2137775067 - priorityClassName: "337" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭 - runtimeClassName: "342" - schedulerName: "332" - securityContext: - fsGroup: -3078742976292946468 - runAsGroup: -4151726557168738613 - runAsNonRoot: true - runAsUser: 8519427267030036521 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - 1875040261412240501 - sysctls: - - name: "287" - value: "288" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: true - subdomain: "291" - terminationGracePeriodSeconds: 3211788672813464064 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "333" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "334" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 1637061888 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 啞川J缮ǚb - diskName: "119" - diskURI: "120" - fsType: "121" - kind: ʬ - readOnly: false - azureFile: - readOnly: true - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: -1853411528 - items: - - key: "108" - mode: -885708332 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -861583888 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -332563744 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "40" - resource: "101" - emptyDir: - medium: Ň'Ğİ* - sizeLimit: "695" - fc: - fsType: "103" - lun: 324963473 - readOnly: true - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1706940973 - pdName: "53" - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - hostPath: - path: "52" - type: _Ĭ艥< - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1884322607 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - readOnly: true - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - volumeID: "137" - projected: - defaultMode: -740816174 - sources: - - configMap: - items: - - key: "133" - mode: -2137658152 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1617414299 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "763" - resource: "131" - secret: - items: - - key: "125" - mode: 1493217478 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -6753602166099171537 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 62108019 - items: - - key: "61" - mode: -1092501327 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: {} - type: 鮽ǍJB膾扉A­1襏櫯³£h刪q塨 -status: - collisionCount: 337714305 - conditions: - - lastTransitionTime: "2739-05-30T11:23:39Z" - message: "344" - reason: "343" - status: '[>ĵ''o儿Ƭ銭' - type: 嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ - currentNumberScheduled: -10743562 - desiredNumberScheduled: 1262074531 - numberAvailable: 1131069811 - numberMisscheduled: -1479988716 - numberReady: -1187060809 - numberUnavailable: 1834151037 - observedGeneration: 8043349780356677523 - updatedNumberScheduled: 641181607 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.json deleted file mode 100644 index 5527d6aff..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.json +++ /dev/null @@ -1,1064 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": 6808883506426686803, - "runAsGroup": 4559267523176571, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ğ#咻痗ȡmƴ" - }, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -1942612426, - "containerPort": -1222594476, - "protocol": "遼ūPH炮掊°nʮ閼咎櫸eʔ", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "627" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "280" - }, - "requests": { - "": "809" - } - }, - "volumeMounts": [ - { - "name": "236", - "mountPath": "237", - "subPath": "238", - "mountPropagation": "å睫}堇硲蕵ɢ苆", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": -57352147, - "host": "244", - "scheme": "Y鶪5w垁鷌辪虽U珝", - "httpHeaders": [ - { - "name": "245", - "value": "246" - } - ] - }, - "tcpSocket": { - "port": "247", - "host": "248" - }, - "initialDelaySeconds": 411878451, - "timeoutSeconds": 1676588692, - "periodSeconds": -254454655, - "successThreshold": -1925916855, - "failureThreshold": -1553779100 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "}", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": "267", - "host": "268", - "scheme": "@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": "271", - "host": "272" - } - } - }, - "terminationMessagePath": "273", - "terminationMessagePolicy": "Ŭ", - "imagePullPolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "securityContext": { - "capabilities": { - "add": [ - "ɵK.Q貇£ȹ" - ], - "drop": [ - "ƹǔw÷nI粛E煹ǐƲE" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -378701183370790036, - "runAsGroup": -8656955128235291182, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Z" - } - } - ], - "restartPolicy": "0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭", - "terminationGracePeriodSeconds": 3211788672813464064, - "activeDeadlineSeconds": 3932374770591864310, - "dnsPolicy": "ħ籘Àǒɿʒ", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "runAsUser": 8519427267030036521, - "runAsGroup": -4151726557168738613, - "runAsNonRoot": true, - "supplementalGroups": [ - 1875040261412240501 - ], - "fsGroup": -3078742976292946468, - "sysctls": [ - { - "name": "287", - "value": "288" - } - ] - }, - "imagePullSecrets": [ - { - "name": "289" - } - ], - "hostname": "290", - "subdomain": "291", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "292", - "operator": "Z1Ůđ眊ľǎɳ,ǿ飏騀呣", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "ƻ悖ȩ0Ƹ[", - "values": [ - "295" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1694108493, - "preference": { - "matchExpressions": [ - { - "key": "296", - "operator": "U髷裎$MVȟ@7飣奺Ȋ", - "values": [ - "297" - ] - } - ], - "matchFields": [ - { - "key": "298", - "operator": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "values": [ - "299" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7": "OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P" - }, - "matchExpressions": [ - { - "key": "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J", - "operator": "In", - "values": [ - "3-___t-Z8SUGP.-_.uB-.--.gR" - ] - } - ] - }, - "namespaces": [ - "306" - ], - "topologyKey": "307" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -205176266, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "U.8N": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "314" - ], - "topologyKey": "315" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - } - }, - "schedulerName": "332", - "tolerations": [ - { - "key": "333", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "334", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "335", - "hostnames": [ - "336" - ] - } - ], - "priorityClassName": "337", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "338" - ], - "searches": [ - "339" - ], - "options": [ - { - "name": "340", - "value": "341" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "342", - "enableServiceLinks": false - } - }, - "updateStrategy": { - "type": "鮽ǍJB膾扉A­1襏櫯³£h刪q塨", - "rollingUpdate": { - - } - }, - "minReadySeconds": -252352702, - "revisionHistoryLimit": -1230911246 - }, - "status": { - "currentNumberScheduled": -10743562, - "numberMisscheduled": -1479988716, - "desiredNumberScheduled": 1262074531, - "numberReady": -1187060809, - "observedGeneration": 8043349780356677523, - "updatedNumberScheduled": 641181607, - "numberAvailable": 1131069811, - "numberUnavailable": 1834151037, - "collisionCount": 337714305, - "conditions": [ - { - "type": "嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ", - "status": "[\u003eĵ'o儿Ƭ銭", - "lastTransitionTime": "2739-05-30T11:23:39Z", - "reason": "343", - "message": "344" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.pb deleted file mode 100644 index 57a7ce6748839c3b6d7d0a293150e9c769546808..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4669 zcmZWM3sh9swR47ujV(u2`W5Tekhu-R`RwgZ0N$_txe9gJ;snLs&IbN)$<>x~!{;DiPVx z|9GS5gTk$ih3gY63y+kYdh6|d7aIFfax{lD9_cCLIb`rwEUj^JR!kgLEW0Mo%=h=# zdP}!tdn$&j*2h^fmMl8TvSONV#YzSG1(2%z6QSw~e{Dsmb&sc6Smtj$IdpnOys!4n zKuuw6pl`RkTyLVp*W; zHVV3+W>G59R0U2}=_`q_)`(w_C(hxcr5DA`;wt_%Zi=dlX3C;XqL4aAT`7pFAeecg zAV{0ilhJMt$y{uTg18`OwP*^$5|hrH zVG4=~@)r?);BjsMaaLL4tul64W#Y2Ra@^$M>V@Xm?lZw{+x>5CP4OHV=?)z`KGt%4 zOR%iaUtJ#D+5Qs50n3J_Y8n_riB1(m#Z)h?FY9V}cXX!)ak$xY=i9-HP4CZ6jsX!0 zh)`45PJ^A!B0(jGm15V#XBGvvm3q%?dD?d-aI`SaDjO1Fk)R~sO63al??6g<3lJ+2 zM^iQ8XsUsuZ#~9c1E(vPzZ}gy02{)OH{D&q^0uGzKjvaQrBAt=-N)njaa@#YD2|7L zLguXswO@X(?9zYVg+Ju9xNLw16&2N9&~c$M+KJ*O00vZ5bcaYiGl*4}rov4fPe&;Z zSmBl~I~az7(%@em?&#_oFh~dWb={6!?9|Azb5;WaZ9t$62(%%`0p6ez%7@|BMwoa|>lZmhf)7<2$V1Vot0 z#~8R`;sPLdph*l(8Cn4gVNv4%Xas=Xjh+7*eliI=OO_cKwO{?{!{W%Rav~S=qO91CT?pJ7yu9S*7Cw8Sx!6zNm+I9svJ0(gbEm|l<`0BD3l;eF9u6oEy-@C_*GM z9gYaL^>$tTB%+S}%JrhYNM5-9BUJc~r*q-lv7)1a?G=N^Ge(bwcD>`@u|3dvCT+Bq zaUfIYGY*V7(Hzq_5KjoWg%AUBH;OQ~kceAUAehK}LBJOPWQh8`-|z~E46h*J5$=A@ z!V;b65`S;2OGe@|?3T)GB(etT%X-{HLv3SCop1X0myWe`2kTDx4g|NB5I8axLlBe0 zf+*pq!A&aj{}yAh9eMZiUzt1aA_rqcsq2wfLcJZzCVz8b=yYXppd+~F+_JH%rZ{E= zg~$`CLiXGrgTj)T{|VJ?J!L&^WUu}F?7nDc;o%QTB0OV#M=ysWK9v6YS!Khmu%zT{ zZdybYgNG*#U621ib_!$zfrz0u!}3_rh(doL56T%}R9jPJ%ip8y=Wf0KZ6q$vrmsFZ zbWdpgNaOpFOqSe(x4(#BQw}0-VOT2EKZQxvzn5x&R8?~EYt6BOzEJb_?2KSV^P-_* zZ+}<~sE%+>exL@_M8Hr!!V#(>=(s^&#Kw_O`#= zLa`Q@3M|tvHMD#G&{lh+6eXhM0%R#emTF|#%c>9|GQ2hR=m-Ud_qK`+N|)8s)xl~E zq3j(~?08c8S*Yxt!LHER;`RQTrloV94Hb3xD+khjho66SsAp{FA%Eu)XTeuTJa_94 z`ksmXy7Ow_!n?omspJ9op|KP7Lj@x{eCJ1ZK(hfoS)yo00(%sO<2Ru!=cI3SI&Hl1~_&+Xk#Qy2_?{9VgtEBYY5xOO;3TjOVtFNogqjDRCR2~ zE92)8QxKD8ZxUg)5=GH`Id6TMC~Ca?Qj#p zc>>H{iVE`=)?WeE3;9g$MJiAwO%OCe$r30m@K4}=rU1XNK(b{6C;{OqZ9;#PFQwkO67t2+8`AWpfsSNO5BVNEXCZi}@&7QXK#^ zz8A&x7S}aLlA3QvTm#}{?!INBzJPyvfnW-`xxyl{Azyr16e$=g3NRvyb5R$l`f02p1V%K`Jgm7GgZiy*TB(cVZ9)1j87G)NkJFE zOs3)sGvv9;=NPgHoaf1+37(aNd^2Cl&d~V@Gc(h&7i8wl%KKGz4k(V{p~_fsoVRi< zh^s~1GA>cqsFs;0<_TGXLBMxvyk@{4yB0=RV76$3D6Y(2Ey#k9jF;wal8xEs^Fmh6 zl2^o4qDf|JpasP4r7TmB`SDa(nl74i_-DDFEizZ?;v6x>G)$Z+ZZcQQgE<-t5WpFN zDW~L%rv9R|44X;(I8YEq>+wlo!c2WBs7VN@2}xg%V*c51@*68(g}5Tb{UGa#n<;4<-L-o^3D=Pz6ZM$exih-NDIbJ_p*pe%uEGTw^-k^`s{ zS~pgpyJ7{ZELNa(V+C3_hL0vF!&t?(o{u}a#@YRUKK7?bA8^@yZG%0-&Dp*}{q@nd zk=mv14(}OHpZhI#E!?j$RBzbd>(^LiV~iT^*H~j?j20PVpk{~rGt6WR`CY%ptlVNv zv0D-x9LJ$#*03qeu`nfis?Ar2c0vKa) z9=C*5UJSQ&wm>D0bX&}d9)_a#@OtlgPkpGq(z7d2(Bm(upF47PxR-SntTQuo?fcGx zb!Lig*!CR0xOJS}_uHX9tFwFHt3ecdt@quFP#atN{~l?g$?Lhl#tOG<;kGz*$_d<&d{D&EL^CH$R1Y9Okh}!P3+2b3?}m`#nAL z-KVC|(VCx5eKxRvTk2>BOh&9vVWu0FK|ZF?r?BF@eC^_Ab^j+K%yn1u(=2G4b*27gojth+XJpu@BCwZO@;Kyh2_=kL`I-P(Vs^BM|&UC8j=3s==a zmXVqlwRtbz8{99UN0=;lak6YcB1Fk-NRTPMiqNO%F>cbYSNVFz4t9wt{u5QcLusR( z?qh+|I|q-si>1E-H%h)h7ROWESqcd{7#BWzxTDN>4>zv7;8neBJUzc-Fj&Y_(So4n*cod+W`>NB22TkKFb} zC}VftE%@?K!HwT#N{4>;@d>N`Wl?9tebet;eeZA4a|`>5ThQWp++_c$djIy`Z13@* zUH*M7LnXfBp5|cNsX%-4(Am+pP({ITJ3sN&=iH~B%JdhXAMOfO9C5_N^ndkXU$V{O O0-NMG0Mub|S^gKQ4cI&Y diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.yaml deleted file mode 100644 index c9bf1c946..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.DaemonSet.yaml +++ /dev/null @@ -1,725 +0,0 @@ -apiVersion: apps/v1beta2 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -252352702 - revisionHistoryLimit: -1230911246 - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 5087509039175129589 - finalizers: - - "42" - generateName: "31" - generation: 3974191383006284807 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: true - kind: "40" - name: "41" - uid: ',Q捇ȸ{+ɸ殁' - resourceVersion: "11397677413428459614" - selfLink: "33" - uid: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - spec: - activeDeadlineSeconds: 3932374770591864310 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "296" - operator: U髷裎$MVȟ@7飣奺Ȋ - values: - - "297" - matchFields: - - key: "298" - operator: ʁ揆ɘȌ脾嚏吐ĠLƐ - values: - - "299" - weight: -1694108493 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "292" - operator: Z1Ůđ眊ľǎɳ,ǿ飏騀呣 - values: - - "293" - matchFields: - - key: "294" - operator: ƻ悖ȩ0Ƹ[ - values: - - "295" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8 - operator: DoesNotExist - matchLabels: - U.8N: N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz - namespaces: - - "314" - topologyKey: "315" - weight: -205176266 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J - operator: In - values: - - 3-___t-Z8SUGP.-_.uB-.--.gR - matchLabels: - 546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7: OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P - namespaces: - - "306" - topologyKey: "307" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: VKPg___KA-._d._.U8 - operator: DoesNotExist - matchLabels: - 4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B: V.Z__Lv8_.O_..8n.--z_-..W - namespaces: - - "330" - topologyKey: "331" - weight: 789384689 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X - operator: NotIn - values: - - X_._D8T - matchLabels: - 8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3: 4-Tm._G - namespaces: - - "322" - topologyKey: "323" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "627" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 軶ǃ*ʙ嫙&蒒5靇 - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: k_瀹鞎sn芞QÄȻ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "266" - port: "267" - scheme: '@Ȗs«öʮĀ<é瞾' - tcpSocket: - host: "272" - port: "271" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1553779100 - httpGet: - host: "244" - httpHeaders: - - name: "245" - value: "246" - path: "243" - port: -57352147 - scheme: Y鶪5w垁鷌辪虽U珝 - initialDelaySeconds: 411878451 - periodSeconds: -254454655 - successThreshold: -1925916855 - tcpSocket: - host: "248" - port: "247" - timeoutSeconds: 1676588692 - name: "216" - ports: - - containerPort: -1222594476 - hostIP: "222" - hostPort: -1942612426 - name: "221" - protocol: 遼ūPH炮掊°nʮ閼咎櫸eʔ - readinessProbe: - exec: - command: - - "249" - failureThreshold: -31530684 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: '}' - initialDelaySeconds: 1030243869 - periodSeconds: -185042403 - successThreshold: -374922344 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -1080853187 - resources: - limits: - "": "280" - requests: - "": "809" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ɵK.Q貇£ȹ - drop: - - ƹǔw÷nI粛E煹ǐƲE - privileged: true - procMount: Z - readOnlyRootFilesystem: false - runAsGroup: -8656955128235291182 - runAsNonRoot: false - runAsUser: -378701183370790036 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - terminationMessagePath: "273" - terminationMessagePolicy: Ŭ - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: å睫}堇硲蕵ɢ苆 - name: "236" - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "338" - options: - - name: "340" - value: "341" - searches: - - "339" - dnsPolicy: ħ籘Àǒɿʒ - enableServiceLinks: false - hostAliases: - - hostnames: - - "336" - ip: "335" - hostPID: true - hostname: "290" - imagePullSecrets: - - name: "289" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: ğ#咻痗ȡmƴ - readOnlyRootFilesystem: false - runAsGroup: 4559267523176571 - runAsNonRoot: true - runAsUser: 6808883506426686803 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - priority: -2137775067 - priorityClassName: "337" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭 - runtimeClassName: "342" - schedulerName: "332" - securityContext: - fsGroup: -3078742976292946468 - runAsGroup: -4151726557168738613 - runAsNonRoot: true - runAsUser: 8519427267030036521 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - 1875040261412240501 - sysctls: - - name: "287" - value: "288" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: true - subdomain: "291" - terminationGracePeriodSeconds: 3211788672813464064 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "333" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "334" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 1637061888 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 啞川J缮ǚb - diskName: "119" - diskURI: "120" - fsType: "121" - kind: ʬ - readOnly: false - azureFile: - readOnly: true - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: -1853411528 - items: - - key: "108" - mode: -885708332 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -861583888 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -332563744 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "40" - resource: "101" - emptyDir: - medium: Ň'Ğİ* - sizeLimit: "695" - fc: - fsType: "103" - lun: 324963473 - readOnly: true - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1706940973 - pdName: "53" - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - hostPath: - path: "52" - type: _Ĭ艥< - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1884322607 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - readOnly: true - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - volumeID: "137" - projected: - defaultMode: -740816174 - sources: - - configMap: - items: - - key: "133" - mode: -2137658152 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1617414299 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "763" - resource: "131" - secret: - items: - - key: "125" - mode: 1493217478 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -6753602166099171537 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 62108019 - items: - - key: "61" - mode: -1092501327 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: {} - type: 鮽ǍJB膾扉A­1襏櫯³£h刪q塨 -status: - collisionCount: 337714305 - conditions: - - lastTransitionTime: "2739-05-30T11:23:39Z" - message: "344" - reason: "343" - status: '[>ĵ''o儿Ƭ銭' - type: 嵘厶sȰÖ埡ÆɰŞ襵樞úʥ銀ƨ - currentNumberScheduled: -10743562 - desiredNumberScheduled: 1262074531 - numberAvailable: 1131069811 - numberMisscheduled: -1479988716 - numberReady: -1187060809 - numberUnavailable: 1834151037 - observedGeneration: 8043349780356677523 - updatedNumberScheduled: 641181607 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.json deleted file mode 100644 index fc4e4890a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.json +++ /dev/null @@ -1,1069 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "progressDeadlineSeconds": -2022494519 - }, - "status": { - "observedGeneration": -646884070573393486, - "replicas": -1207878403, - "updatedReplicas": 372376497, - "readyReplicas": -1085841792, - "availableReplicas": 2061490078, - "unavailableReplicas": -244836060, - "conditions": [ - { - "type": "NJ丧鴻", - "status": "-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "lastUpdateTime": "2182-10-10T16:20:33Z", - "lastTransitionTime": "2191-07-04T07:05:53Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": 99448460 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.pb deleted file mode 100644 index 2cb68e3bd6863f5096457d793f360864397f6f07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5136 zcmZWs3s_XwwVpl1NX|{$$;oRv&G%*QL?a>DhjaFM+cq)2qG(j`5v4adg@`uFOF(%f z{XS3-925~j5D*lJJQYC^c|;m!1_tuDjj3(#&CQqA>%3aEnxsjriMeafm^R;c`G&Rk zS$prb*IIk+wg0tM%P}!F=KkcYtem(VLP~0GGGUp8saa{61?j07xol_-<3$W2ED~)< zav(X@;VumwuW)y7i}yD>leOTneZO>fOx1J2`d-CdvCh|aK9xKqD7qpMnO7xE)D&6a ziKuHIUEg`BxT2{zYrbjK$?}0+r7iC_ji97^8KkmEOPR?aoiz*m7CU1Wh|MgBjvp>8 z^o`Vb%U;j%I4AaJ#hL|yH)$x_EJ%fBL3SbxQx*2#Lsd>+jWcxou%{WX^);P!4JOA; z)%@Cjpg6`qROjCPGDuU2iFMA7zPb0~-+uKi{2{i<%xqxvJbeeo={yz+WV~67i(kAX zLoL9n#9{u$wJQ@761WwF6S(DE8s5Me9F`=G+sGNlX7;hg*bs3BHn3rc+cEG~83w1W z#cMN-#q0&dydi6Xk}m6bW4?yr?=_5NtmTSI3dX#SF%j{0K~Kk`jPXWpN2VgcBxzFt z#xRIg+UPl$$J^z!Ed*nM&)NoGDzFJo-MSg`s*n=5A%0Evs~a)lK#N7j>K%qblx6Ed zff*|@bC+h=)B>Zx$m9)q+X`ZUSmQ-*g~1ug3a6(m*|Kp7hdJ5cmTI6netu~lSOJ0z zL9rcmFfPQHMV>W_g3T-vhglS3AA31C-1^2-p^?+6-Y(xjqcm%F!qn+?g|7X6=UKvv zs;EjtQxrjiACY8UJ9%rU=kn#!UIC81WY^8|zn656{t+cbgJ>BEgz2hVnH2^8&NXE0F;5o`~`WRW$?lJ#%nCC=O7u(2ZtWrOOnV*S(MuO=hW zWH-g$4{WeQ)@){3Cr>hFg=ZfGDzIjSSiibc_V<5;C0PG_;mj9zBEn2_8JGckD3aAQ zKNk8RSW&E@a&NEMVOG>wv!d~)xn@P5XG*+>F{}J~Q;Jy?;$fXiShFfxQR2POmnv+l&@Pqzj>Ov5-zm$o>c5)^YMd%R_LAC)=96;1q zAdoBQkZx&w_xjGrO|yP9ezgA{$D_-pj|A$^F8zzD^8J1H@W;Nsy*F}}NxKn~7*RrlNP<;5%S4+jyFR=1 zpHVidip)EH;O+37dfMMKI8hng-5cH$GARrZ+at`6V0Ll;bYJ8?+f0-%TK*jJl}C24 z9zAm4RHSQfZusO+-_Sma`RelC8&UktFFx)0I?PBpj+ht1ipUcC3@8HW^*eK9h3cU? z?hCZGhw9FFJF_D?(36$*@7WF6Hi|&9T^|;t5ccOF2vX~Jf)oh^DYC=nJ{YPx`Gl{h zXyTaXytc+3tY|NA^(~8^stQY1sQ(o8`;zHiioPX^sC>5L=ZkzTCEg-`(+PXtL~pSF zg6~M{oZw(*vZppMc7XTw)fU37Rhekt@afrshW2&r(}BvTDaDh&ixgs@U2d(Wj$CNJIjvhMX5 zMBlx6Z@>Ni*w?52TKN|g|A_nOi^2M`WuDTw@sZHc^G~mKl>{4h6(LhOGF2heKrHgcw?FQ? zacy(}#dLg7a-*cI>-=g`k zhDJ|TgH%p5NaaKmEmxa82M^x(vg~0ivbWtXuDNr4!v7|Uxwgwa+&orY;X-`FwZo@A z{`#{s^TL~G^pb3`n&<-SxH7!I zV50WQ`Q4$t{p0$jwC%#pB^Td3y)2oy1fAJ#>HdIXDr z1ygx`dm%35b26~@t9-mI88Bp~mM-Frd`4VWfuUiM<8lC@=5u73LAGr-_|v*5Gx< zLW9T4jOSOg_b<#$%>h)oDF3ybTsBJNMH>)_?L^U|rDGr5wY?EBm55oyJeUs(VNS#G zS%6q2ye6I7z;atP*b=lzFkaQT7q}EdH-t>@_a z0~EYb!#QehT+({H5WKRLw}S(83;$9=LgxR|l_CKV%8C!7 zn2U(FKEMo;;&2cO7{3O^M3*2fvUo^NBL47qD8(Fx3 zOHD}9vkZk>kOyZV=wKJ&*;^=ja3J*F4E6?M{ueRF5c5hwmbMM&Y=WXOcZd*6SdYtno_k3)FjNEU1f0DVPRZaEE_K^hd65C<$E{z2 zxviYar5X4oO<K zPvI8~vUNe$YD0kh{P;$^J_+a3c-R0=%P?fnZG9RRSLGQvTiyI!4fEi-H6p}4IP5jU zNaj|O7mRqYov74ytpNemTagFAg&;%r7GxL@WDNkCtj9(PP=3NYEhvKJ#I-Z;L|MNM zUIkq7_>xe|kgvDL*U{tZ4ICT|>@6a5UFSB0&UMLozUE@Okj!017gCw0%X&60@eQ{7jyL2|e4&DL03u7 zd_25xf~th^7T|s8Yq7J(yItp|Pq~YJ=IRVIUzjdh;pv&`m^|z%$qqK|5B8N$?ONhF zN?@*@Scaeg22lXM*k@@Yvh+d!^rL+rMi3aq0D>kt9_A8){bl3Fy+gk4(-T9JHF>VV zjHUFo6rgqhqWtT%6rhFxj%FFC|80Nd>9_X1H}#F#K2cuv`v_2o`Sf<*JpTHzTUT#| z-~Xgi#H@>GqO)^BD&$|P$;sB67w*;tR1;lrJg{Y=*L}!8TA$?G)8Mb&$3GR;0`e~m zi%@w`{L*{!&1pozh@eZBvaW%_hzx7h``=uTBq@9K?TP8TV8na5;nY3+wYti#sFYg7 zJRjBr^7NBb59K@fAm}uvbcm^`&IOS@0m>7e|Ci+i@)d9hyDI$5@*+ziE#yb4)8w(~ zE9Nk!;$?@$-Lcr+9_Xug6-`!8jZIfmfrO{PgIDhwakZtUYGxQw@!A&P>)EVlNS~}- zzTE4aYR20qM*KSu6~4}hjCJDtFWmL+)BY2C*M_y{I3HS zy52+a58%*PyMN~?-;q<^R^L#Id$b6l@8Ju9Langx6pDxMc4dk$?1E=3&^Q=utISKC zEOT{i&-b5bS~pRVBzR7_4+NT=VQ3-HXI{{R4utv<0mKbJ{Ql8bM55t%Ndru;;_*EVMSh04}%Amp$z4|xuS`VRgyG;}O<;NX=DrJ=fgp8c#T=Hh$x9g+CrhpSv2 zkpR@tlBtj19l0CPl_GH)NUH}`(~`hK&bNoojr7=1ZV(l%A> vh!Q0}7KlKiqd$22lj0v+Omm?(T3Kqdn6#p|j{GCC<-EPu2I6cchw1+SieJuK diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.yaml deleted file mode 100644 index 1d6d01a2c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.after_roundtrip.yaml +++ /dev/null @@ -1,726 +0,0 @@ -apiVersion: apps/v1beta2 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -721017134 - paused: true - progressDeadlineSeconds: -2022494519 - replicas: -1978186127 - revisionHistoryLimit: -2062497734 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: Ŗ鱓;鹡鑓侅闍ŏ - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 2061490078 - collisionCount: 99448460 - conditions: - - lastTransitionTime: "2191-07-04T07:05:53Z" - lastUpdateTime: "2182-10-10T16:20:33Z" - message: "341" - reason: "340" - status: -墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ - type: NJ丧鴻 - observedGeneration: -646884070573393486 - readyReplicas: -1085841792 - replicas: -1207878403 - unavailableReplicas: -244836060 - updatedReplicas: 372376497 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.json deleted file mode 100644 index 4019b6301..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.json +++ /dev/null @@ -1,1071 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "progressDeadlineSeconds": -2022494519 - }, - "status": { - "observedGeneration": -646884070573393486, - "replicas": -1207878403, - "updatedReplicas": 372376497, - "readyReplicas": -1085841792, - "availableReplicas": 2061490078, - "unavailableReplicas": -244836060, - "conditions": [ - { - "type": "NJ丧鴻", - "status": "-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "lastUpdateTime": "2182-10-10T16:20:33Z", - "lastTransitionTime": "2191-07-04T07:05:53Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": 99448460 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.pb deleted file mode 100644 index fe4df80ce7365accc7c05dbad5acc62ec6f215e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5168 zcmZWs3s_XwwVpl1NX|{u$;qSBX}&LWCmIRKKAf}9+ct^sC>j-fMCnaVA)pO{BA`5y zejg|Zf+8X)0)irury?jIk4VGJz(5|iF}2OTx%tw1omZ~*R zYwx}GT5GSp_P@4hStiED+@F|{krlI3NJ`00BrLNiB_nNHUV6&bY<6!H^ATbYVUcJ< zk^{-n4p(vTWVx$zd#taqEKv)b*#9e6+hi>lsO?r<f}$%Dk$F|pL`{(u zo`|~k@r_-V3(Fe{GZvUupDyj&UEK73!!Sy?mq99vw4|8~(pj^>r`j2_Kx}3~bUd&q z-#c9GDS181T{eCoBibwoyh%fuWzJrBPzQH4|JuibaHQK^F0Mj)#lDQXJoi(v_vmo_@A!|?YS#xmBjMI{MiUdNb-c!!{; zV^PL9ncKNd5nz(EDGy^9#42s{EX?B_a#||ESl~0Z!X9^#=I&d#cYgSoB3)o zCLCz7*jTgEFo?2z11KKyq9B}9T~ z8AK~dw5LK(OC^k1;%#P0aM3NWNJT%g`KHEV2LQJvBUDy!M4P^2C0SB!{CwQo>OnsSpK!v@^vs8M7>~ zckg8^(19zkZmPo9*EiYg>|=k*ShhVGs5!mG?j8!9Z%_3X>}6*#5egA(kHBP+HOrFq zZ(~JecS2!gM-IvcQ)I>Zr=wp_grm!DioPG%V3(}f%(70NWXuZBJ_J-?%?h!8eYfQA z{|HI2{`um$FYkthndUMu1NKlPt7$t$et2!}j{9IV63G+~r4O&>G zi8jiS>?j&eLxVM%k_xWTKz~iMA_pDSGp&qShj7p#9CQc=U5p04F7YTIR_U-xS9T$t zc?LdIaJX65fTi0WWFiEfXMqSd@T95|d*P`&BVp?;U;Op`zlFPH=rKBzSV~*{UxeLg zgKrUh35`^R?x({t6{J{Ab?8Y3qzSyrK0+If@^$MMx6V>m!UeZ}@^PgX*-g#pVHg*v z0)hYn1>yiAcA%e8wnW)7mKcDCCzhHm_B19o_pZCD-VBv_nbM+8nKnNjJh&UEfA0jG-vU<%uLDPZa4i$-1v*@Y)Q!2|^n_ zWy|l+-u<8E$}c}0Mc_YCu@u(d@Q0oJ-^dD6;9ddIU{KP*2x^VYUqO%4R6ZF;Z|n-+H0#G>$9wN_{ABsmF@Np( zW&e@!OIK?ayhVGQ&90%zBe06_b7Nr@_y&kwpG`xfL__2d$!d-h~-KT&0miAH9*H`x4jNos5`B~RD zAx6?k#JmtvM3&fRKoLl<-@RP>~Ov>{O1=quj~p#<5B zsMN(O4Fpw$uu>&^*X2(qF5ms?$m>yvzJv4Le*68=Z_fO+;x8!nQP=So1GOc~-Ni9u z!@=Vho?hcD3e@c`K&Db;szj)cWHDUg;gYS&P3m2W$^5q@b-ae zkkN>$EC8a$0@31u=o`?l(63FID;eqxjh?Iqshnt#%84dgt~I(39lH5d$s<-|Z@E)g zefP$=?@bhSeYb0JJ##2cq+zU*d8b>7X$s3-ukxS zfnhqIutMZJC!N0y$1^*Nfj5xoB0D26SnY15GbHxMlm*u2&Z4I13VX}Uj3K5EF$IX( zkeZU5C1EK$U(W?lC}Iphtcw8s2o?bwrttiZe4Ni`ZN=KJbMf{>z?9pxbP*@>TVpcv z3=NAMmj#G5mm|v!vVDiaufYqq^Xx1wZ?(P#V@=jpECbXB$j>k`SK&2ywShT~<6q@) z2Fo+{O&reO2?7jG#!I=i02DE|7OyuJ89ZKY%wNOazi3-Z7NE?3!}9@UC*^a7_98E^iy1iwP;s(`v()UEgbjERcx4O632`cCq=BS3PT`gT zv^I2ZCkJR3{-wCMZU0YKiUdR`J3feDE+NK^m{rVkDi(9G7^5c|n2$HO1jAUdQ!}_# z2FGbzK~O&RkMa_?emR%5Hk-ri08h&b=F~-;Xsl*`1Z4rYE}a7LEu73|GS7kjSTt4` z0N#zAgp)Hs(nieXY&LL`mS`vj$Hz%<0ur|zP&W^wJGdoW#&+-%78kN+fbY*_7%TA_ zj$4HnB*5la;MU*;qQNBz>Z^&^$iR7AN?d}TVJO_f95@3(2fGN*-bRrFeZlu;us0F& zzlb@3m{;;LwCy-+6BHSnb8u=tR-iJ$d>V#gEh!xe5WGd+DMBn^JtliT_mXU2 zs1DW(ICCAGlEEun%JwbtVgt^P+prXKTR4?VGw@5Az&^jtP(VdNFw~3<;P>$P%fgH`h5-5b@npOq0q4?q*a%MBYRI75 zhBPd$&M|PNy7~K>=Ard#MTmQF*lUK7$gLtT7_neGQK{`(9RjL1BR7BxL5A!t$S@$t z8UQp|kB$(aJcV~!Pz1}V>*wByuznM`2Dsw!rNO2_Z+Dlst;^Z%KQ!XsS3u@E`!@#r zJLDX1VA*hgi z1Qj6Xf|U%%%wFj^I^Hk2+Fg6yO@U*hlZQRK1Lt~!mBoRQuH>cOfmZLyx@?LsRFDpU zBx`G+tTE16yw)-0| zP8Fz4dP*mEFLfU$FjtQ+K~NBbC;(sVbF>jz`k;UI@%|6P2#jI? zL6aPhaB+d&lChJXL2u{T@xh7e9OuB+W%RWapmqSF{Oh$8poRdBX6dW_U2pj5xAwd@ z`K{SLURwEwFi?p4>`u=-{>F*h*KUX2|Ab=1tPg9VvvWZzE>G(r|SZ$i7q%E zOdaob9rlgXCV2PO`D*s_PldFA{0qY(R2~$+bf1263Q;g3=#r(Rqi-NA!&>?Nw>QE` z%3gJ6d}a-EpnyM>jh7c96r2=2iWZi@MM9qp7p0deCykmUWx9f2J>x{@)$1nWSRqHzIJGF0J zuyY`AvSQYY>pe~LRQ4y{H-|iB{+52)}F4)&OQ8x`TXo*Bbfj~<|PRc}yvu#JN?^MJ3@$v-0ea3ar-%u8U76N_d1x;u} zs234H+yK-c^py>4U%M&6GwdDgO%HVKp*LO>9Fg9ly_4;}rh=$zS4+=+=)ZjMC<+x{ zBGff71Bx%8k_QbPF1s8)@=NGZDigw06crozTco9#C~6-e(-rhI^OUQ6eDDol@rbXp zFtE2bP`)S7UE@2@9W1O&k>JLq87=o(LX1 zboF9!@W_7m0oD|C>Al*vaD4GYmCm+s0BUII}>39KH+ThpDA4IJ+ddB z_^XC})eV8S&QBf+*0+q0yzDP(nJjcfh!P(SL?DroAH4l(;ZH55xzHP_D7INlTESb# R{t@1C-oER7F*cLK^nZB%(Ch#J diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.yaml deleted file mode 100644 index 54346eb58..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Deployment.yaml +++ /dev/null @@ -1,732 +0,0 @@ -apiVersion: apps/v1beta2 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -721017134 - paused: true - progressDeadlineSeconds: -2022494519 - replicas: -1978186127 - revisionHistoryLimit: -2062497734 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: Ŗ鱓;鹡鑓侅闍ŏ - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 2061490078 - collisionCount: 99448460 - conditions: - - lastTransitionTime: "2191-07-04T07:05:53Z" - lastUpdateTime: "2182-10-10T16:20:33Z" - message: "341" - reason: "340" - status: -墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ - type: NJ丧鴻 - observedGeneration: -646884070573393486 - readyReplicas: -1085841792 - replicas: -1207878403 - unavailableReplicas: -244836060 - updatedReplicas: 372376497 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.json deleted file mode 100644 index 01de83bd2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.json +++ /dev/null @@ -1,1050 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "runAsUser": -6722299225018603773, - "runAsGroup": 6637292039508172491, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "嫙\u0026蒒5靇C'ɵK.Q貇" - }, - "tty": true - } - ], - "containers": [ - { - "name": "215", - "image": "216", - "command": [ - "217" - ], - "args": [ - "218" - ], - "workingDir": "219", - "ports": [ - { - "name": "220", - "hostPort": -1762049522, - "containerPort": -1478830017, - "protocol": "÷nI粛E煹ǐƲE", - "hostIP": "221" - } - ], - "envFrom": [ - { - "prefix": "222", - "configMapRef": { - "name": "223", - "optional": true - }, - "secretRef": { - "name": "224", - "optional": true - } - } - ], - "env": [ - { - "name": "225", - "value": "226", - "valueFrom": { - "fieldRef": { - "apiVersion": "227", - "fieldPath": "228" - }, - "resourceFieldRef": { - "containerName": "229", - "resource": "230", - "divisor": "43" - }, - "configMapKeyRef": { - "name": "231", - "key": "232", - "optional": false - }, - "secretKeyRef": { - "name": "233", - "key": "234", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ",铻OŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "235", - "mountPath": "236", - "subPath": "237", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "238" - } - ], - "volumeDevices": [ - { - "name": "239", - "devicePath": "240" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "241" - ] - }, - "httpGet": { - "path": "242", - "port": -342705708, - "host": "243", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "246" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "247" - ] - }, - "httpGet": { - "path": "248", - "port": 474119379, - "host": "249", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "250", - "value": "251" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "252" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "253" - ] - }, - "httpGet": { - "path": "254", - "port": 963670270, - "host": "255", - "scheme": "ɘȌ脾嚏吐ĠLƐȤ藠3.v", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - } - }, - "preStop": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "\\ ", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "«丯Ƙ枛牐ɺ皚", - "imagePullPolicy": "I\\p[", - "securityContext": { - "capabilities": { - "add": [ - "ĨɆâĺɗŹ倗" - ], - "drop": [ - "晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "273": "274" - }, - "serviceAccountName": "275", - "serviceAccount": "276", - "automountServiceAccountToken": true, - "nodeName": "277", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "278", - "role": "279", - "type": "280", - "level": "281" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "282", - "value": "283" - } - ] - }, - "imagePullSecrets": [ - { - "name": "284" - } - ], - "hostname": "285", - "subdomain": "286", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "287", - "operator": "胵輓Ɔ", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "290" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "291", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "292" - ] - } - ], - "matchFields": [ - { - "key": "293", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "294" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "301" - ], - "topologyKey": "302" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - } - ] - } - }, - "schedulerName": "327", - "tolerations": [ - { - "key": "328", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "329", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "330", - "hostnames": [ - "331" - ] - } - ], - "priorityClassName": "332", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "333" - ], - "searches": [ - "334" - ], - "options": [ - { - "name": "335", - "value": "336" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "337", - "enableServiceLinks": true - } - } - }, - "status": { - "replicas": -1280563546, - "fullyLabeledReplicas": 163034368, - "readyReplicas": 1631678367, - "availableReplicas": 1298031603, - "observedGeneration": -3092144976843560567, - "conditions": [ - { - "type": ".¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ", - "status": "óƒ畒Üɉ愂,wa纝", - "lastTransitionTime": "2488-07-22T04:14:34Z", - "reason": "338", - "message": "339" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb deleted file mode 100644 index 89a237817e7b4cc61d6061232dc27111e1e25e04..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4730 zcmYjV33OCdnyy3u_h$Arc^vjX=;;mZ~V-Osjy7c8lYyML8U8b(BVQ{#%7-x=#4td;h)v zdhh-J?~co2gKi$n*KTu6>~ zjqVAyRg89J#`%twCuo6|s*R(kyp3F-@vJgh@uJy2kW8Ks6kU;s%&U?nYKpAzMAWta zzFYKOVa1WcjCqz-XUcku_ZDZd~>MY zQ~Jm3vGVc#8PQfj;4K=;vI|sgdbw>Af^y8i+QYJjCW-2PRhlZa#rYTYkCF* zAn;rk#;IBo!D(0*NV1HRaIzxe9azlXu^H!MEbh#cVM>ger?PT3r(kUC<}l`WZQqb4 z7#e4Y*#WFCG*mQ_g-i6p7KsNL@g)HKw#o&7ni-x~*S?YnvVz>#6JArf@Tpi@btZz{ZL zTW2sb_^`jEFmK{S zjIV$2mEiFn|JA}-phAXq8=uMiZ5m^h1@_i7=3n83us`#h57b>Xubc@Kw#*e%#)nea znaq>^!4}_ZO(SPVPsW-R4Y9tf$IQY;HiDTVO1i@af+A~`CHuP_KOUIoM6Sny1Fp-8 z-CcgoaH8l(fdLW7n!_sVV z8(`n7phQ(1R#kObRV~`8>cpz?vq4f5=2#LP@B}GMbWo1uv_wP7HIUJitq`3Cu4|ed zx#*~#WoN89EVd4dt;1sLVl?n|iAVV$rGu2N6d{fI4Sc99Wof{oX__MNJPSmiW@N$n z&Fv3L?uTNsRd@cE`-jkLIeMB-B({R`Ya`(k<$!MyoPvi`iyo!JGS#ElEzM{a1Ir-r zD*GgTXq2zp5B7gu`h7^9{o4I^%3)1f(GxH(Q2T-a3I*ZyFG0Z~?2{(>qIQ;e9WLZK0frKuw{WTM!= zneY@Lr-c=m7|K=IkYO4((H%bn792z%0yU(IlC$%#Edviisc?k#i6o>?6zMd{UU}p# z_jK5^G(Dnh>uNiExBrKIXCYicRBZKcJb2go0kXrOMB|Y(;7dBVPvemJPtY&vQ?OZp zFB2Da1`Y!dDLg}F?@eQ-5COa=g5m(8x`1fWKy*T2i14=R60<+Nx$RfaeLnn;kh?CM zyMM}kkRihCI4VQc5ykO50|p5s0f4r^ydAyr*Ft()`opiS&b^xSOzq`b8p`#DC~yrdLmGB#@BFlj<33O+loySMbFD- zM_b6e3|oxI0&F)b^zF#|lMx~NGO>O5&5dgj_OcHz_Cz>eyL0^eh^Y3jul^%~AFHds z6F$v}M-lT<$Tn=0=fSotg>3(D`^~qeglx;Q%i(SGR0c|h&F1}PP0i?uW#cuT_CUi4 zk;@HxpimFgPy$eB9b`BHMAq3kA=OY{p9R%WU>}JLk1GU{tB5Y^E6$Jxg{Dvmr|{tn zs#8(70@1RjE_o&6<@}wD$UF`(WUsq*^pdw>Y|t!dV4c3ETC=ZVox8>u@1E$6WtmfaURUKl`c!)t0Z0%p4>1-dVeXkqYElyv--anTe z{(H9@McsRU{B&1i+ubXOKN#Hm{-vVpl}kcaptFFWm=8yXXi^aZ3J43RQj3mEXX+87 zF-pi7^qI&&ac|&q-S}Q=QG?bC51nP*jbnA56XUP1P7RivcsbZwlMdt1gyJI~d~CWA zyNZd1nYzHv^p=`c{eh~cxMib*fB5vu`H`#7`^$TM-KAp(vA2*)5!OZLitLOWbAN%q zwIkSY!PA*#Hg`<6WtzuJ=p2dlPGJsPnQANZDzjX|k_@m%#em`@c)%Y4XqS%ROTZ*s z)G-ExhEsAe-cE6zN^oLQg0x+hVit0nv0G61>4!A6Lh0GB-Vf}87BrJ#051pV8ZIW>+7zN9K8ns;{P1>0aAaVOvtfdpM z4F5J~%Xn+@rfl#vCtu%10S#7NA;j<>J&F&RECoW<}=L1m~n|mbj#ZwfP3j-G$RR%~-z{F9%4A zg*-!BV8nCAJR{?uU4?xs3cRDw%JdU=4aqR# zcR&gHmvza;HUhF*Hblx=0apKJE{t!2O|Wh|1ZkvkTRF(}BD$ycH~I#LBkUhHeK!$y)iqODDn zB~aYFGPt+iTV+=FQ6VyWDHWpn6xH#221=2jPyho3lL8o(0vI&}U_@08_izAYlnJml z+`|QxLN*m3+dP?hgt5@ZEb9sz#W)kpqn#@^`uYk-&jku90|TdnC6&qUW1f>Q`OjAe zTWVPf4dl34)RGdyEr5#QU5kFqSJmjP+TtHL?;bQ;FA`wtYl;vPPphv0b?kTaA^y}- z1Wkf$XwabvHE z)n3^8@olT~c1PKJC@OH_jkm)otSXhSx$Amjs-ykCPtD0H;(4hFAGhB_u7 zDOW^r=#Zx_WDjZ^%#r@TISPQvfuq<858w5Nae>{_*mi50v#_iB`!L*!I$QL`M`1M1 zA2?lkYkK1AD2x#Vfbn#h0moCka_4{F{t1^;(5LGzCRp8XR&@rB4u|3;6y+1B6Ehe( z|BElL_l6@1VFV~0VdTM!R4d`7pYlm~*mi_hT(+^29PY=HPM zsy);iX#e(&u;XE^`c?pxeAX|#hdjlB3q8S_J%Q5KH!U{%JIuD`ocU%|;Yx37{$}QB zX6mM3PYe4*;NqTLv2#3!vPZhyeUsgz1;2H7K5X0q#f$J?1wce-dV=IE{!{7AefxbM zw4#Td`>iV{KW`pxs(vNzNwceIR-m?44jwI?|0{3rQf_sir?dcB%8=!!7B0YrF4VUL z1ukUa7A`1&A6wBc&7l_Wf#7i0Mzj3FtdYxR(HYM%A-Jdbcgm~Yma)=MKNmE5BsAd^ zLOo~++&Tg5Iy^_ln!TlSpY;|5>N@;K>tBfTRQL-kd>!TV@anD^{^9mm|GwAFOO3(S zZYAnJCJwoWCeB2SKDc)1犵殇ŕ-Ɂ - values: - - "292" - matchFields: - - key: "293" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "294" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "287" - operator: 胵輓Ɔ - values: - - "288" - matchFields: - - key: "289" - operator: ØœȠƬQg鄠[颐o - values: - - "290" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "309" - topologyKey: "310" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "301" - topologyKey: "302" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "325" - topologyKey: "326" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "317" - topologyKey: "318" - automountServiceAccountToken: true - containers: - - args: - - "218" - command: - - "217" - env: - - name: "225" - value: "226" - valueFrom: - configMapKeyRef: - key: "232" - name: "231" - optional: false - fieldRef: - apiVersion: "227" - fieldPath: "228" - resourceFieldRef: - containerName: "229" - divisor: "43" - resource: "230" - secretKeyRef: - key: "234" - name: "233" - optional: true - envFrom: - - configMapRef: - name: "223" - optional: true - prefix: "222" - secretRef: - name: "224" - optional: true - image: "216" - imagePullPolicy: I\p[ - lifecycle: - postStart: - exec: - command: - - "253" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "254" - port: 963670270 - scheme: ɘȌ脾嚏吐ĠLƐȤ藠3.v - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: '\ ' - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "241" - failureThreshold: 2040455355 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "242" - port: -342705708 - scheme: fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - initialDelaySeconds: 364078113 - periodSeconds: 828173251 - successThreshold: -394397948 - tcpSocket: - host: "246" - port: 88483549 - timeoutSeconds: -181693648 - name: "215" - ports: - - containerPort: -1478830017 - hostIP: "221" - hostPort: -1762049522 - name: "220" - protocol: ÷nI粛E煹ǐƲE - readinessProbe: - exec: - command: - - "247" - failureThreshold: -1920661051 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: 474119379 - scheme: 萭旿@掇lNdǂ>5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "252" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ',铻OŤǢʭ嵔棂p儼Ƿ裚瓶': "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ĨɆâĺɗŹ倗 - drop: - - 晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: «丯Ƙ枛牐ɺ皚 - tty: true - volumeDevices: - - devicePath: "240" - name: "239" - volumeMounts: - - mountPath: "236" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "235" - subPath: "237" - subPathExpr: "238" - workingDir: "219" - dnsConfig: - nameservers: - - "333" - options: - - name: "335" - value: "336" - searches: - - "334" - enableServiceLinks: true - hostAliases: - - hostnames: - - "331" - ip: "330" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "285" - imagePullSecrets: - - name: "284" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 嫙&蒒5靇C'ɵK.Q貇 - readOnlyRootFilesystem: false - runAsGroup: 6637292039508172491 - runAsNonRoot: false - runAsUser: -6722299225018603773 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "277" - nodeSelector: - "273": "274" - priority: -852112760 - priorityClassName: "332" - readinessGates: - - conditionType: "" - runtimeClassName: "337" - schedulerName: "327" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "281" - role: "279" - type: "280" - user: "278" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "282" - value: "283" - serviceAccount: "276" - serviceAccountName: "275" - shareProcessNamespace: false - subdomain: "286" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "328" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "329" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1298031603 - conditions: - - lastTransitionTime: "2488-07-22T04:14:34Z" - message: "339" - reason: "338" - status: óƒ畒Üɉ愂,wa纝 - type: .¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ - fullyLabeledReplicas: 163034368 - observedGeneration: -3092144976843560567 - readyReplicas: 1631678367 - replicas: -1280563546 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.json deleted file mode 100644 index 837833fd3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.json +++ /dev/null @@ -1,1052 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "runAsUser": -6722299225018603773, - "runAsGroup": 6637292039508172491, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "嫙\u0026蒒5靇C'ɵK.Q貇" - }, - "tty": true - } - ], - "containers": [ - { - "name": "215", - "image": "216", - "command": [ - "217" - ], - "args": [ - "218" - ], - "workingDir": "219", - "ports": [ - { - "name": "220", - "hostPort": -1762049522, - "containerPort": -1478830017, - "protocol": "÷nI粛E煹ǐƲE", - "hostIP": "221" - } - ], - "envFrom": [ - { - "prefix": "222", - "configMapRef": { - "name": "223", - "optional": true - }, - "secretRef": { - "name": "224", - "optional": true - } - } - ], - "env": [ - { - "name": "225", - "value": "226", - "valueFrom": { - "fieldRef": { - "apiVersion": "227", - "fieldPath": "228" - }, - "resourceFieldRef": { - "containerName": "229", - "resource": "230", - "divisor": "43" - }, - "configMapKeyRef": { - "name": "231", - "key": "232", - "optional": false - }, - "secretKeyRef": { - "name": "233", - "key": "234", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ",铻OŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "235", - "mountPath": "236", - "subPath": "237", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "238" - } - ], - "volumeDevices": [ - { - "name": "239", - "devicePath": "240" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "241" - ] - }, - "httpGet": { - "path": "242", - "port": -342705708, - "host": "243", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "246" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "247" - ] - }, - "httpGet": { - "path": "248", - "port": 474119379, - "host": "249", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "250", - "value": "251" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "252" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "253" - ] - }, - "httpGet": { - "path": "254", - "port": 963670270, - "host": "255", - "scheme": "ɘȌ脾嚏吐ĠLƐȤ藠3.v", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - } - }, - "preStop": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "\\ ", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "«丯Ƙ枛牐ɺ皚", - "imagePullPolicy": "I\\p[", - "securityContext": { - "capabilities": { - "add": [ - "ĨɆâĺɗŹ倗" - ], - "drop": [ - "晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "273": "274" - }, - "serviceAccountName": "275", - "serviceAccount": "276", - "automountServiceAccountToken": true, - "nodeName": "277", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "278", - "role": "279", - "type": "280", - "level": "281" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "282", - "value": "283" - } - ] - }, - "imagePullSecrets": [ - { - "name": "284" - } - ], - "hostname": "285", - "subdomain": "286", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "287", - "operator": "胵輓Ɔ", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "290" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "291", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "292" - ] - } - ], - "matchFields": [ - { - "key": "293", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "294" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "301" - ], - "topologyKey": "302" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - } - ] - } - }, - "schedulerName": "327", - "tolerations": [ - { - "key": "328", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "329", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "330", - "hostnames": [ - "331" - ] - } - ], - "priorityClassName": "332", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "333" - ], - "searches": [ - "334" - ], - "options": [ - { - "name": "335", - "value": "336" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "337", - "enableServiceLinks": true - } - } - }, - "status": { - "replicas": -1280563546, - "fullyLabeledReplicas": 163034368, - "readyReplicas": 1631678367, - "availableReplicas": 1298031603, - "observedGeneration": -3092144976843560567, - "conditions": [ - { - "type": ".¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ", - "status": "óƒ畒Üɉ愂,wa纝", - "lastTransitionTime": "2488-07-22T04:14:34Z", - "reason": "338", - "message": "339" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.pb deleted file mode 100644 index f447d6ca0cab9dc89ede2b779724bc5272a61748..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4762 zcmYjV33OCdny&joAim>h^=oBnN}H~!qjWm$eW`cf&QY5!EMZ5Gi1v9TAqfy5D*@8u znQV}djgSPgux61EA^`$fAP_W_r7B7{(<-2&-NN{4Q4U8N9kmgi|5o9dt`q+E-hc1? z*L(l}yQFJ57S_%_nwXiH6PqU_rQ{|Oj$N6Oxp`x9;!7#H+`VVmn}|h(L!uo?P9(=T zM|K6hRYLxX7TWEQC$(vqgINaq;AwaLLU0#cv? zx34hTccEcq_a8u-8e?T2gXtO<#ZHE&&RMv6XVh1fpIrOyC-@=m4q^)tyTFAtjPcg2 z9m#n(OU@2`ZOX_5hXfa&jd7ZmOmI5Z1(G7;WSpXicqnC>$}lBX-KlbN z4zFNr?BFqWZQrssT`)A>5OWM{%+BJs7?{t}j6AY<2W z4L+CWljg_qx?%95u}y$AygX|SHeSNKn8vFHNnM&O&*vhSX5=p1Y6r#=eU+ZGfM2r> zY~U9eybIL3ma7IohhLk5@m!b6CmQ@tW2cd^+P=@hjv|&3T^u6{c19#lMigUy893dQ zZw?g)`&$*y8|MD~{^JdhPeFFUkI1qrNg|OX)g@~8djd5LwQZ+=3Hf|$|IIx&ZtXiX zgw{rZOc`V z;Q6xA%CRATN#V}%W3j&e3$F!__V}+9P6rWkIFFJN&ZDG49>=D!e}kOL0(WyV`>*gq zxLTV{!=V}q&OH10j>nl54RO9JN6f-TE|QH9CEad? zg(AnulI{JDpY~05Am`)20as+j<}SZ#I8e-^zyObA&CbX=d75Pu7YCb45jaL6wvytn z$|7z1D#k7$2b#eGAH*q=%`!U{-a(L}*shHpx$=Ezzd0F2jbRkcWtqV!`b^8pNi3tf z5-drKD#XKLm2iwI+R#eyOqHybwQw#}5TYt}Mpd1Rs>Lv>P8iKK16FFnOiPj-p0G+2 z?UW-qEHRJ*4c2JNCh$%J(>2Y8oOD#rwy}&3$=4zIIwW5gV}P$qE|d?ebXcV;MMz_R z2OlZ~o6$93(J(~_E*A$xplW2n@y)G|O74ezvQ~Hgm;1-iYdLzFP9)ZX@~gw)6K02R z5sZR|REr*^!!nhl*euOxItytKTq^e@eQ1=g+xGW=UHU^vobBrU_sStBt>_6D7pQ(g z0D%H=0ufK5rzl&ZY}sa^JS7H*N`PoR=r?p!hf(6PM+7dm!UQ5jTgc6vF&c+Xr!EX*W?&J>43Ho_K;5JU*u1ma;#q*7orQ)?w5+@j#U2 zmcO7%#1$2|r1EDet+Tf5p0-tGT!&uMU15EX0vTMyo6K0-Da zgcAcq1HPn#`P2{DbsPPfJ_V}<_%d-)W8g3Vk-{@%?)%AX1QEb`A}DqssuPG714JhT zhKS2rU1Ii!H@EG|nJ-y*+*IWt*yUyD=hkmJw5-(DzGIg4W3iuCO!^teLIyWiO#1} zx4$~tIC|-`fzHv(8RN%B2PYa|37jkTo`i-KLp_F?2SkQ5^$1A#=7h%UMN?Zfls8hrcyyHnQgWLJf4Q8|qY)HoI-z4!f|+bC>? z?tCIpbIR9nWu~vXbo0{n<3%sZW=C5{y$oB7$O3FPy6D^C4<{l+`ekDM_?zojBW-0L zpYMruym9B~50TOBUtjr0q-(UU{!aKbCmlxYDF(n}BH9lNP>~`D*?)R%9Osn6lg5I&#t5FnYl( zXy6>ardqSFVYR!)80((pt8b6>4tT2_D~CG*1%2~UXK%J5JDet>(5!<7OLb$rsYVT2FFbUPb2pCGd5(>} zxgsrCa_rS$YfT1>Lla7fdhn^~M%;2X24?C4H_cmWR`my}n&KCaT=>Ihm(LDgdC_0q z>+3EZ-H*M6bQR&8bgsxv%{BKH_**-I4d*f(ZyoQtcIifL-H!>3NJRNXa-cp$-a^jjDJV{&vr5`#$AzClv zG*Akf0Yz%tNxHNx2SDSNO<2nypc(#c$dU1;l=V4aYi_>2155lyyjc*k0MTtrmtm$Z zVGZj2Mmb%{f+ce9Hk`XLCFD-p7AX^JJF%|EE;Z6H&jWBY=x>pcCL|}MW=q`UxE&jF za&x!{5xO@J!ks`-O@Zr8;nu=6Ben{$FSFC;^VrB-ZW!A#d9v8Z!5ONm^9JBv8RV_t zB#}?f*?>ii*9xohwu|~aV-C*Fed!fGjW@_V6;`J}n6d%oipv(H_Y&qp8LG`6xy>@@b@5|c9(EaM#l z=#*lUv_wMz%)SDkEmA>)Ru{rG0>TdokQ0RL4S12f z)0maNZ1x(sLxGjd{5()jWKd3&W&~7iMWs_{SBL5-K*a^30Sc1!mLZTfCJY^rnWXi==MuGD*cD&?xTyyj74-2m8Yoo-?LDP1cd?^ zD3}z$s1(4cApj$)a=3>BAfrrxwc#Evs1&lP0NG~C>?5p&HfC8@xMpSO%UUw!s|f|C^%#s2n(owea9we;60o zJdJHPCp!wes(%Q>t?1K5Uw#rsRNBuqYy@b(h)`;E|E$lF6rlZ5*KVc;!>Q} z(UK+OXM7irde8gz^ac+c4mE6m_%NzHlp1LN_N}ntVX68i0F5V;meIK==hn@SK%g4WH9%`z7E&fTft7&?mwpI=vE}iom zZ|@?0MWCm&09neA<>wYIz=bZ_*WZ@PrD1aYZ(XY+H7Vo~`P}e%M{M_{6OJ>n2 z&k-TGtM~=wb#KdPX{etI8a)!4Z~~zov=DBc0Cw%3L!-^!(pk@X3j%c={=@Yz#d|9J zg%!Sza(Z}m=T!etdz^pIo94yFU~9J${U758+=Jt%qDLNFJ#hTvvy3d=(>%5RE_qnlJ|NdI{A@3evNzrrL6a5zt b+oPgReq3<>c`Mx6L=mnNqNv*~PRsuR=wJJh diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.yaml deleted file mode 100644 index 0e54b6584..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.ReplicaSet.yaml +++ /dev/null @@ -1,716 +0,0 @@ -apiVersion: apps/v1beta2 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -11671145270681448 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "291" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "292" - matchFields: - - key: "293" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "294" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "287" - operator: 胵輓Ɔ - values: - - "288" - matchFields: - - key: "289" - operator: ØœȠƬQg鄠[颐o - values: - - "290" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "309" - topologyKey: "310" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "301" - topologyKey: "302" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "325" - topologyKey: "326" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "317" - topologyKey: "318" - automountServiceAccountToken: true - containers: - - args: - - "218" - command: - - "217" - env: - - name: "225" - value: "226" - valueFrom: - configMapKeyRef: - key: "232" - name: "231" - optional: false - fieldRef: - apiVersion: "227" - fieldPath: "228" - resourceFieldRef: - containerName: "229" - divisor: "43" - resource: "230" - secretKeyRef: - key: "234" - name: "233" - optional: true - envFrom: - - configMapRef: - name: "223" - optional: true - prefix: "222" - secretRef: - name: "224" - optional: true - image: "216" - imagePullPolicy: I\p[ - lifecycle: - postStart: - exec: - command: - - "253" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "254" - port: 963670270 - scheme: ɘȌ脾嚏吐ĠLƐȤ藠3.v - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: '\ ' - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "241" - failureThreshold: 2040455355 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "242" - port: -342705708 - scheme: fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - initialDelaySeconds: 364078113 - periodSeconds: 828173251 - successThreshold: -394397948 - tcpSocket: - host: "246" - port: 88483549 - timeoutSeconds: -181693648 - name: "215" - ports: - - containerPort: -1478830017 - hostIP: "221" - hostPort: -1762049522 - name: "220" - protocol: ÷nI粛E煹ǐƲE - readinessProbe: - exec: - command: - - "247" - failureThreshold: -1920661051 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: 474119379 - scheme: 萭旿@掇lNdǂ>5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "252" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ',铻OŤǢʭ嵔棂p儼Ƿ裚瓶': "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ĨɆâĺɗŹ倗 - drop: - - 晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: «丯Ƙ枛牐ɺ皚 - tty: true - volumeDevices: - - devicePath: "240" - name: "239" - volumeMounts: - - mountPath: "236" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "235" - subPath: "237" - subPathExpr: "238" - workingDir: "219" - dnsConfig: - nameservers: - - "333" - options: - - name: "335" - value: "336" - searches: - - "334" - enableServiceLinks: true - hostAliases: - - hostnames: - - "331" - ip: "330" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "285" - imagePullSecrets: - - name: "284" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 嫙&蒒5靇C'ɵK.Q貇 - readOnlyRootFilesystem: false - runAsGroup: 6637292039508172491 - runAsNonRoot: false - runAsUser: -6722299225018603773 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "277" - nodeSelector: - "273": "274" - priority: -852112760 - priorityClassName: "332" - readinessGates: - - conditionType: "" - runtimeClassName: "337" - schedulerName: "327" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "281" - role: "279" - type: "280" - user: "278" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "282" - value: "283" - serviceAccount: "276" - serviceAccountName: "275" - shareProcessNamespace: false - subdomain: "286" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "328" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "329" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1298031603 - conditions: - - lastTransitionTime: "2488-07-22T04:14:34Z" - message: "339" - reason: "338" - status: óƒ畒Üɉ愂,wa纝 - type: .¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ - fullyLabeledReplicas: 163034368 - observedGeneration: -3092144976843560567 - readyReplicas: 1631678367 - replicas: -1280563546 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.json deleted file mode 100644 index 27b29b71c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.pb deleted file mode 100644 index a2c784a142bd2d3feff3a8af833285df84128e7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 277 zcmV+w0qXv1ICB6B6$%VtaBy=kb}?dQbYU_Q1yf^TY-JMj0Sd?g3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5(^0b%8sr0|NsC00U8+ytnP}$ b|NsC0{{a#R3IZ}T5&|+c8Uivl8UP{ypekm~ diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.yaml deleted file mode 100644 index b0c420b7b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.after_roundtrip.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1beta2 -kind: Scale -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - replicas: -2052872833 -status: - replicas: -125651156 - selector: - "24": "25" - targetSelector: "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.json deleted file mode 100644 index fd4f6fbba..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.Scale.pb deleted file mode 100644 index d6335b919c3c6113510415e3193ef071d4db62f9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 293 zcmd0{C}!Xi<>E;!C@9u1GfYY?Ni-5-4NgwXNfl~l;<~}e#b_kNXe`BOqQq#brF5kA z<>Kxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b--Da0Ve&GG+K n-`XGlfq+p;l4H%gt|K7!e@37hCLcRCL=Q`1|l0q%zX_|HF@b|o(!3NH1xS)6|)|;mGv~8XYB&N&BfRS;0fi)M$e)O!!S3er?!V{beY|M8*sfBN~~;199Qc4i}^=j!_~-pOMjU&dR- zIY~>F?o#uyDsh;9dEKg%c zRvQMVuEXng8%x-0htoAdj)+b7G;b#bNhBH z0t}M2N<>o>L4zNWWL`V>#g*O!vD0gM-0- z&mj9ROv3J`t-5pDUA__PQrEU{;X!s96Q>Zt`6vt)S-UJb{y0%wekXctT*yt?pt`I$ zetZ1$$=GRf*%BWDHrOF+PP?p=ry0A#vyT83Si3?TpWiM0^Z!OAIDU6+;4gP$!fbOH z7y)Z2lEbzj5!xVFQ5=!7zy-V8uBeH2MdNLA?TS9%mU16sSNRRLbh|1f!910)c2#ts zlP7K92MrPiqo#DZo8@_+Ety{HGVG4)P(sc-3d>arHM|;kz6PdysyC=P1y#n z(LjGqb09bE)w3LoU5D-0Vf%I1eqBrizAo{o0A}ehOIO}PI`bU7s4Qh^z|x%$GjRgX zvp@tVcv4k~tLW^Vv6%GAl&?EJ{rDnvC0uC7`!}jgT zU?Mz}L?9{wqV=N%v{#2-!aHZ0wPW74@S#%A;N(!CDRQOK+xnzgGa9b151iWRzmy*y zx@>?1BFskQ0rSZINYR+DXY~kTKnNjJh&T~dA5M0hAc9M$5C?rCT>#EFHAE7?{qP_J zh&UIBv;c^l1VmYl-bFQtDMk>V>0lzU3G_j|K@^8Iaq>o-%f<@K9LiPM=)%+`B<6p( zwy;{%{}6&*_1A;<&aX2jPb5)!qDY5Hjze`4@BVjN)nDElN8mqE zNhoT%6^=RiSI7ZFBx;qUL8qjH5mZ5${{YRPPa(kue3`hZN^pIENU;$zJ9$47N9Yz1 zL3RRB+(6VsAP_5Pm!8n{<6CdVZkpr9#L52q+}~P0bt2qwY1wx(zvJ!5hFo*N)8-us z*265q&rO0^;2R*aa~=ar5~9#Im6}Hgc!YpQ=&{wEU#FfV)H6gB95(m8ci1i>ig5h| z<_YGJQ0?hC!OOu)SIR_(RXDU{%Yq#=9Ec$HVJ1G}G_)OAE6l!)#bp2KEEi8Xw7Rc7vFSE#8sQh3Qa-7I(-d`AN({k@6QS_pYSWM=~N z_vzGrNlp0CCx1IV%~8_bd<41P{qap}`s~Wdw-4XPpZfC7q1axg9zaY=ObHE663o(B zCf=5?|C2BNGtNm>k$Lym0-e6|&xV?Z{gu{%3(++pl0p}8KE`|lMi=!@^~LV9(?sRK;3e`h(KM-!~h|~`Ry0T(A(4Cd_f3h2*Z5)AMyCEt_A?&w75QNsR1St{-Qe?N& zdo)sY?n$$^(0|HzSzGI}DmwB#ean-ARZ+vun^e`7YHd2jv?fB5$Jm*@Xb`FoV~nD^w%RzvA>U&)+_(a6cm&#v(lTaEh*k*y5b zst{_Vk&h5KVNur*0*l;hiV3I_o8%sFMo5f zd9cQ+ZRw`Ljfm72qVAmeOr)eda;?)-IdLgeeJs%DZ8e^s?Dg~{g}TaSg{$f!Lp^g{ z@9w|ze&6kn#s<;s&UcD$7ngQlUPa<(O%4XDA{Wm#RH0;-l%s@0(J`xq@68jCx0&DYTQd4w={n*Y-AZ8FTg^1a(En{=Ggr%GUJr6*jh%x-I zE&|jeSOhGX!Sj0yZ~>pa3v1uc!+X*IL+;jgig+`>Yffgqp<$8ZvH_vyab&qc_UtwI zHF)73o}H=Xuh!RKtjXGnWq|Sk=@~}WD!c}-HZaF={3Z@(vOMG3!r_8_Ai&^cyp&rD zzz}n5@p@yC!Q{Hw?I*` zH5YFyzzS3%nBRe+7)#%Yl^rAl>JGeJ-Y3FY!up(?7r9qt14A{iUcg!FV3!PD;WGAY zmlqqbf82(pnA^^&+ztc3q6zE^yA1_Y6a+)f+yH*xxnf5i>}{@*1G^w|5}%SQZCwOg z#Nj+;b2?t3QcvNR46=P;<{CqQ_&j4X-jIs(=y})(PTOV3pxcHWSX`ZJ;4F3PS2fHd z>(`2K?!jTN8%7$pio9ebf$c=4wrhqPHMJhahVJ&}2O^PJr?g^0c4` z31>eV_)(nWOY0`!iWy5Ityjzoy=G^x=R)}CSolyOnd=$a7#Zr8bIq0_I+4s>PA5{C zkP%*BAYcg!L_nx-0S&|nDn(gp3}p#o3}67Dq)Y%5F@Pbc5PSp`Am@UW497gRGH~2K zBze2M2Ys#9iSgjEzKT=g>PtGp%IQydr#lt24| z|C~9{L3?$TPl605s7e%X0p5qUmiW{}k7sD=ytnXqPgl6*+En36UvIE;^0=os%W67e z^_2zpFZG=yFjh|~MNj~PC;(sVJo*q>n$Z7rlxm)jAly#Y6l?7KeD9&H3V?9gu#ZN_Qz7cqwgodzuH~?vZ|lOfWquQ-RYap z-#Ych%`c+)KeYrg>tmYe>|Brv@t10HuI=M%_v!+wi7vPw-sZpHJr){kNHq^OhUyOU z&qTF=_zT@4R2~$+TsU`T3Q;g3=u$#y_uz0$hNJ53zut-kDOb%M|I|G&68NC;{C)gK z^_AUm>2-*CF{%f|>8Gh4%2)6~(CL}d;YS&tfMV3NZ zh>ujK$x~Aw+M}3?m)!~8&L!TCa9@L`aIz*iK2<{n5}pDNUcG0;&DPqg`=f}8*R}y) z&tiR7^vSvvD+1-g7QEL#8hYzk!5fUoIQ*Bt<8AO>44pl+F48k>wO7u3d3~UDzRG^f zJTnp~51$?i?Ju3UoD*ql3sJs)X4#9s$UB z=h(YVzpTF2{S%b*Fpi9Ogx)%Do;V+9Gq1FI#|jbpCww7Ls1@~{Lh-`m}g73VyI^0|yg%$!$^MWRHBGiuvAZ`Ha4~NQ!_pIHL z8W=UN^zXEK56~Mg3hsEb_+YRr)LJY8@_p32s5BjgU=$BZG61Q;F&%`g%;Qk29*8+-$kb&=O}*iju~ z2GpFIsA}(3cYfa3HCTEa!Pk)MzaGB*$*qp^*HWoE5>-u7(xYvvnxt)$fiLqQSB6g_ zfu?lpQfZ{8+j}_J9%?L&)HPWB!@<5q=Cv}jwiPGB6rFBc7K|qaK;Wy$zfuW+JraR1n)w}R3@WspE3Lx(p*^nZa;FM_2o3Yg}q~(wV6%DH|?np5J%%}$5xCkffkS7H& zOi{^WuP>Tt^N*X|m%cCiO9GbzM}wo`Lql@`R*5twiwaGJD(@VCn%V3*6+Sp_)?A(( z30Xea8dG<~?ujZ#1tpcm}MRarObLyU=&e9X$I2DF3rx U4E`z=l!uA%-9%JXr_F8qKf|V%ga7~l diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml deleted file mode 100644 index 8d7807be3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml +++ /dev/null @@ -1,790 +0,0 @@ -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "373" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "347": "348" - clusterName: "353" - creationTimestamp: null - deletionGracePeriodSeconds: 6779218673590464341 - finalizers: - - "352" - generateName: "341" - generation: -7417757023786628909 - labels: - "345": "346" - managedFields: - - apiVersion: "355" - manager: "354" - operation: E嗆R2璻攜轴 - name: "340" - namespace: "342" - ownerReferences: - - apiVersion: "349" - blockOwnerDeletion: false - controller: true - kind: "350" - name: "351" - uid: țb贇髪čɣ暇镘買ɱD很唟- - resourceVersion: "15930892079168115837" - selfLink: "343" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "368" - kind: "369" - name: "370" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "367" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "366" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "372" - reason: "371" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "377" - reason: "376" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "374" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "375" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.json b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.json deleted file mode 100644 index e901ac0b6..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.json +++ /dev/null @@ -1,1166 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "340", - "generateName": "341", - "namespace": "342", - "selfLink": "343", - "resourceVersion": "15930892079168115837", - "generation": -7417757023786628909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 6779218673590464341, - "labels": { - "345": "346" - }, - "annotations": { - "347": "348" - }, - "ownerReferences": [ - { - "apiVersion": "349", - "kind": "350", - "name": "351", - "uid": "țb贇髪čɣ暇镘買ɱD很唟-", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "352" - ], - "clusterName": "353", - "managedFields": [ - { - "manager": "354", - "operation": "E嗆R2璻攜轴", - "apiVersion": "355", - "fields": {"356":{"357":null}} - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "366", - "storageClassName": "367", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "368", - "kind": "369", - "name": "370" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "371", - "message": "372" - } - ] - } - } - ], - "serviceName": "373", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": 3145429786196118388, - "replicas": 1256299227, - "readyReplicas": -63012996, - "currentReplicas": 1538760390, - "updatedReplicas": 346775159, - "currentRevision": "374", - "updateRevision": "375", - "collisionCount": 1836894267, - "conditions": [ - { - "type": "囨汙Ȗ\u003e\u003c僚徘ó蒿", - "status": "誀ŭ\"ɦ?", - "lastTransitionTime": "2741-08-01T23:33:42Z", - "reason": "376", - "message": "377" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.pb b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.pb deleted file mode 100644 index ae8cee30903498324ccbcac192a16db9d8903dfd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5748 zcmZWt30PEDmabbwLtfHJ<)xFZspR{tshDU;?(@C-b|*3JQ8X&JMCndmgQAHm0?Lx~ z_dx_fPy_@)Ku}OwT>t?Em1%0Bitf&IlCeA8PCCov)zWQj(@AF;6MN3BGSm6K;VaI& z?=I(_bMCq4{O4`avMkJ_%zddD8Cf%S3u)=usf4|EWp-+I`o>*bSEgsPzkY^!4>5?a zNOT~{h2#X6r#RA9?&;o{7;G*})xyUQ{M^$KsOQ4sF>Cna&q2q$n$xvh8|XK+}OIBo-H7@OF~ z7Gguh+p&QSL)?X-Z-rrS>T0}thp~{of|xgCO;EPUI^K}0VfcFuV;O7NqLPL&uVYL^ zyi3rxVNu3-1GjsJBETeRV;;sZh*kQ~voMc$$y+xQj0HYpC%mc9O>p{_O_*1Ov>EFX zS7ol>fC&duEHGB?HVmRHSqlP8TDBv5@pgxrXXF_>cthT~j2OVyc#&IXa7L=a>1m5L zZ&<`(PBys38id{k#p(( zE_0w!n)*ai;M|&g_rYMjxl30eO!D5NM*E}`iD_-@&N_qSMaFSzQASp2~kW}!3-#eM& zyBVu2u(u~OHfRu*Sv^q^92f}nxd+&PVQf2|4A-9C;`9!O&v$MP73^atF>wkJ91p`} zk+sT_{jXz1Ww)YkRZ$bHipE=JS`~e^ zCHXGKs`6_sX;xK8gmo%mt*U58$>8s*WJ4)%vs75GDh{ivx~!^}U{!Tu)%cmPQWIvQ zGzUCkl_ol9kK{xNa2gt{(Ui?#8V%&vG&^$9Q9aYnSaom*9o#_&chJQI=+`A4<-;l+ zR_V%{NN1jb7ZnU{)ivnS9S<^b0?)HR1P54BRf)6k)U8V~?QLKD<*mQQnq}xQI+NH+ z+e2T(%;_%`49ywKnU12_<2IwJR&2lqq@FL}FH3?l}Z5JH)VV^Q(J z)8hmYOge!$7!&CR;PX@wNdWW1gAgF%Od!%+AaWuQWd(W%RU@VdLHwqZiNxCIgIa?q z_VC!TYjI8sD=;%?ugXR@rY0dV`@=Pc-JS8L^$?~Wp{pQzXh8*hYSM*btR!xXqzKr|SXbWnl{DDxkqDfB7W zEYL3#7ZnMv4-hFfLuSYCX5t7v0wTx`Ac_l!ng9f12OZLFjlaI}X6&ZfuZH zB@;(O_2(D=EaRu1_AJOnd)=*`;Xoa%BK*umSOvBLB0FX=uq7c1eN(A=gn&f|ScJN* z?zo>?l2FSKQLtNFci!Q+h$zDK6PU-Chk`XHW&|z-DxAq0Kv`g01M3pjxs|U)6GAJV|2~(8uezW7KS>Ip|SIqx~*>ZW;M1_Ai)O0xc z@w_$DULr6{O@0$GFGt0Zcosa5NCJCLJffx}5}`zNO>rME%ZtN9rqcfI$J|Cp~QfocmO5QyxsG5@!m>MyCbUw!_M6O-)4T}=m(^POK`4^N(6G5*$p zyZGbZ-r65K%apx{NsbAjfhWN#on_)JwmqMJ^B-{zDvHdze&p})o_RXhG~}xY?>!sc z6Cx=L5yvCU12DU=Z=yGLpB)z3FWNqen5D5D?8lB)oryJ_%?%%X_#JJd>0f`m|7INj z*_VIo`8L{-)`plDqJqd0`wR#I;q`lUWQEG1y6y?Jwnysv{hgUH8R*H%`VaJmXd6c$ z*shH-QV9DTFoMwfJtIW|MvClmcn(D>Pd{$<6!?yNFKDZr;qvx8ckhzKKxLG(LhYxh zKjcjJQuNJnMCCJG&n+-piu?t^rc=%w-`Q~A74vB8wD3@8s<$>YTE&~awfS&sRVLmX zKKDeZp?wYebg1H7xT@7V5bW%T^bBqd9jN`c@KD>L@uTZ=%&vmap`s^4qfOz`=3x0g za3zRdM5QKHsUxT&xRok7d#-*ke)aZOb+1oHG!M@H#)1p>?#Z&IK3&y94&iefw`|bT+`e|gBua4EkxZh^{Gg4S>#HGyJGBou;2xFpI#b3(>vZSx>;1xbzwP)pEf=asEnLD z3AqncgNQ~{WiAjk5r~!yL|==3j$XB7E@P-MGB1KEaX02^T+$a)a1i7v3NPlgZX`D#D8us5>5Z>-N-@zjh^VQ09oTnrCZ znvETigClf4VTJf#wYmR2=FjX@267`hXn#++T2HCmG;8)^#J9&1hmbXG*iLoYYOBVy`1LS8InalA?yu!d7 z$MNeqoWb&pb0dfIcLM{1lkp;M6#zxdt-@=J`38@d7;{##_s!pto&_j#LGEi=*=(H1 ziw+^oR1Z#OfbI{L$Q{&4J%toI@BR}i@aL|U&8u~ z>^a;^vVoyGSR>%f)o@A%uW;!*x5x_&I6rRfBFt^!RBo$*U(y8j`5lG=A_{_`W~>Ff zZ(F)G7tS`v$c9spIf+lskv7eTBjRwbvLOvGRjH-$3kKOTFJq-4KzyFE0k2KLxzr!l zfzh@bGRU@eD;8Je7&uei^nFe9(3({u_&pfxHN!~dmXjBZM9`h6RClcb0o7ZP7r=!e zL-ZD87!YI)0Gg~P#0gNILY@{B!FKA?{$It}zYSjpTrp))q~)S{w#V$~ai0wxx)j=9 zKxVoJ*F^@qH9%~vK0mU(*u9pgvbMVaBogW=xNz@A0kV+7{v$t4I1VqgW}i=9OuB1;qc->w~a zH-^9{1`ssK^)Qzd?kgE<^ItT(&-pHn*W|c|wlAjHQh?e4i1N>DDL@SYJ(_Kx{7_DIosBun3h0#V==1pPWDxj0n19E9n{-it(^l zzV+RWSdem7-||h|0VDp88_wLte_B`36_-|vm^o27AWlC?B4hVm_^GGf zb1ryl|LREhP`IsP>WgdqEwfejC+5jve_80nU~o^#*oEv!YYP_{=pJvl12SldL}*|n zv_v9;=seZZ)%L;IFDq@+Ej$8{@%G_&8vjsrrRz5+@j)CJZ4bVA#yon)-)dfL@mwlE z=m+>hpinDnJB8xmJ58D53#Z^64K)shPgLZjkC(VRcI5_7HLdZLrwHCNo~lq&Srl3b zG|dZ|(1B1NB7nF7s6QAi8``;QV~T&oyx6xb+_RV7cu{c0n??HqoxzrZ>DNCgJ@;3MZd9IW9J+Pe3B0YzLG$BC<3T{V1Ze;H<^U0M}jp?;mhYKOF4ms&mqtNCubmbitzQq z!oH1|dsnyzefuM|{gD&(0A(IvCI_qAf*l1k>?oQ>>mX@eq`xmQa6B4`GALRkYcCJhX4rtiCWl9K2i=87vQ;FE(ojr};{E zu#bwxHu&-(ssaH*XiFq$-b}(go)T;? ziHsh8IaG6Gtjk;dOn7+Yr;)+E8$*rl;m-b0-2rJDdvAREA8wtBMcmmp{XK1y9XsN` zINVg&_*MVAPus2y?EU>+_HS>0^HFSy(|7q#?@yZk)uq!X5#3Lk2}E8rQu+B`CMPS* z!+>pry+{0qXFY4~X)v$UyZgh{qwGE5t^)6ASK!q1ApGy%8~9@i2oDS4ONywf4vWk3 EzY4sZrvLx| diff --git a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.yaml deleted file mode 100644 index e14221b64..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/apps.v1beta2.StatefulSet.yaml +++ /dev/null @@ -1,799 +0,0 @@ -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "373" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "347": "348" - clusterName: "353" - creationTimestamp: null - deletionGracePeriodSeconds: 6779218673590464341 - finalizers: - - "352" - generateName: "341" - generation: -7417757023786628909 - labels: - "345": "346" - managedFields: - - apiVersion: "355" - fields: - "356": - "357": null - manager: "354" - operation: E嗆R2璻攜轴 - name: "340" - namespace: "342" - ownerReferences: - - apiVersion: "349" - blockOwnerDeletion: false - controller: true - kind: "350" - name: "351" - uid: țb贇髪čɣ暇镘買ɱD很唟- - resourceVersion: "15930892079168115837" - selfLink: "343" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "368" - kind: "369" - name: "370" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "367" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "366" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "372" - reason: "371" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "377" - reason: "376" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "374" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "375" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json deleted file mode 100644 index 7ecdc65f3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "kind": "TokenRequest", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "audiences": [ - "24" - ], - "expirationSeconds": -8496244716696586452, - "boundObjectRef": { - "kind": "25", - "apiVersion": "26", - "name": "27", - "uid": "Ă凗蓏Ŋ蛊ĉy" - } - }, - "status": { - "token": "28", - "expirationTimestamp": "2095-08-29T22:12:41Z" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.pb deleted file mode 100644 index 03d36f1bf8d5655ef90ca524f3500d10de48eaeb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmV-H0lxlgICB6BC<+*1b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3{-DxWo}Ysadl;L zbP|jL3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwt zq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRM zHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt z0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc zFA4%OG#VZX0x~rc0x~ul0x~xu5X6GzhnMJ+kHw1Un~KDVc_6Irio~DJ(Tj=!8V(8q TGB^?l2-(Q;;tmi18UP{y-Y#?` diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml deleted file mode 100644 index 3051cc307..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "24" - boundObjectRef: - apiVersion: "26" - kind: "25" - name: "27" - uid: Ă凗蓏Ŋ蛊ĉy - expirationSeconds: -8496244716696586452 -status: - expirationTimestamp: "2095-08-29T22:12:41Z" - token: "28" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.json b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.json deleted file mode 100644 index 8d16df9e0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "kind": "TokenRequest", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "audiences": [ - "24" - ], - "expirationSeconds": -8496244716696586452, - "boundObjectRef": { - "kind": "25", - "apiVersion": "26", - "name": "27", - "uid": "Ă凗蓏Ŋ蛊ĉy" - } - }, - "status": { - "token": "28", - "expirationTimestamp": "2095-08-29T22:12:41Z" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.pb b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.pb deleted file mode 100644 index 27d10cb05c4ed2646c6cecfd3b22b40082fde099..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmV-X0j~aQICB6BC<+*1b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3{-DxWo}Ysadl;L zbP}8b3fKV(0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwt zq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRM zHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt z0x>m;0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc z4hjM>I1&g71_}Z(IT8R8FA4%OG#VZX0x~rc0x~ul0x~xu5X6GzhnMJ+kHw1Un~KDV jc_6Irio~DJ(Tj=!8V(8qGB^?l2-(Q;;tmi18UP{yFvWG7 diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.yaml b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.yaml deleted file mode 100644 index 0a5a3ae49..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenRequest.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "24" - boundObjectRef: - apiVersion: "26" - kind: "25" - name: "27" - uid: Ă凗蓏Ŋ蛊ĉy - expirationSeconds: -8496244716696586452 -status: - expirationTimestamp: "2095-08-29T22:12:41Z" - token: "28" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json deleted file mode 100644 index ddb8ef806..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "kind": "TokenReview", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "token": "24", - "audiences": [ - "25" - ] - }, - "status": { - "user": { - "username": "26", - "uid": "27", - "groups": [ - "28" - ], - "extra": { - "29": [ - "30" -] - } - }, - "audiences": [ - "31" - ], - "error": "32" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.pb deleted file mode 100644 index b77fa54d3a1ccc309a8b3db08e8debae355a519c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 303 zcmV+~0nq+yICB6BCkhy0b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3si4wWo}Ysc4=jI z68ixP$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGt zF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_? z3IZ}T5&|+c8YBn+5*P{sGBy$dGB+9mGB_d%3IZ}Y5(EkYGcXzgGcqCqGcg(fA^;<) BVS@kw diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml deleted file mode 100644 index 5e7a0ccaf..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "25" - token: "24" -status: - audiences: - - "31" - error: "32" - user: - extra: - "29": - - "30" - groups: - - "28" - uid: "27" - username: "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.json b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.json deleted file mode 100644 index 8894631d0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "kind": "TokenReview", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "token": "24", - "audiences": [ - "25" - ] - }, - "status": { - "user": { - "username": "26", - "uid": "27", - "groups": [ - "28" - ], - "extra": { - "29": [ - "30" -] - } - }, - "audiences": [ - "31" - ], - "error": "32" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.pb b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.pb deleted file mode 100644 index 6bbede7fe0dc42af3e3c960bee5174a5a358cc6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 319 zcmd0{C}!YN=aNV)Ey+mDE6GewEXmBz)62Ff*2~P-FEbS44$03>%?nB`%SSp4) z!N|pEB*bVe#b~0$XsV@jr1j5?6( zMk0o0mS!eKrUvFF7RDB4re+34#+DYh-!)xr?4HwD;KUHHwqt8^>-=+bb~8q?aWR?; zFXpdqw{n_pU&BGczdG$$tktZCN^q3+d2J6TP)Btb1eZb zKA>_7Ar3A!AZ;nc0Aw*4nFui%nM$c}FbGKid1gSKxfGL;g%TH#XDP(O#bj(C#bj)x M#AIwJ#h}Ch0M#2}djJ3c diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.yaml deleted file mode 100644 index a2e5068c6..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1.TokenReview.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "25" - token: "24" -status: - audiences: - - "31" - error: "32" - user: - extra: - "29": - - "30" - groups: - - "28" - uid: "27" - username: "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json deleted file mode 100644 index ff2ba1fde..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "kind": "TokenReview", - "apiVersion": "authentication.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "token": "24", - "audiences": [ - "25" - ] - }, - "status": { - "user": { - "username": "26", - "uid": "27", - "groups": [ - "28" - ], - "extra": { - "29": [ - "30" -] - } - }, - "audiences": [ - "31" - ], - "error": "32" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.pb deleted file mode 100644 index 94bc804f89ec9fab15fcab9fee800beb291da8ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 308 zcmV-40n7etICB6BED9ZAb#!QDZggp5VRUJ4ZZ2y$b1rFbFLp6vWprUN5(`vsYh`Xy zWp-(0cM|&n3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI z#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZge zS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}11 z0x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0 zH!=Vc2nqr+G!gy1~fBXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R z?CFvnsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUE zv2ih)3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(< zOok>^OopaijJ80fWdq|&n7l%Jli?_NLwt> zG;=KhECq{L)wD8-<}001CnWKsYC diff --git a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.yaml deleted file mode 100644 index c047c1f52..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authentication.k8s.io.v1beta1.TokenReview.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: authentication.k8s.io/v1beta1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "25" - token: "24" -status: - audiences: - - "31" - error: "32" - user: - extra: - "29": - - "30" - groups: - - "28" - uid: "27" - username: "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json deleted file mode 100644 index 14a1e90c1..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index 13bb489df622ee371ac068221659f9c0f31f3117..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmWNKze~eF9K~~AMCA~NLr{W4%_IeD?k+zrPAX2~Ac_uxU@QUKimj%tP;sbIl@w8- zV8v1q9Rv{!XHcXiQg4O>kl8hRV1le*gA<^2JI%H7U(L96j$BuD&bp zXsHt;lOVC$g^@*os__s8%4DEi>7B|o-b=N^9rx4wI!T3rQdJUY3#gU@s(WZ8Pz^HF zKJ^+UuYGgzSshtuRGvOw?9qB@w|SNyZoZxS2g|{l$s{t42Qe^>0Mlh)h62nC0}~9G pH3nQI-559}z=Lg^(;M(m%ETYFhvR diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml deleted file mode 100644 index 303a58b9c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: LocalSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json deleted file mode 100644 index dbbcf624e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb deleted file mode 100644 index ff00cc0ef21703e16af15c708b3a32af04bcf089..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 363 zcmWNL&npCB9LDGUrlmJYZ;B=d=Aa zFdbcgoW_4oZ|x{QQMr2bSqrsY+hmsEn1T!2vJJ*v@$@pfie{+*O~^imFL3y-bU~mz8x;X48_qT0rjBJ|kvge11MaAe4T|iA?A;EeDw^^SWj|}u diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml deleted file mode 100644 index 0e902967d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml +++ /dev/null @@ -1,57 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: LocalSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json deleted file mode 100644 index 9ee06ee7f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "kind": "SelfSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - } - }, - "status": { - "allowed": false, - "denied": true, - "reason": "33", - "evaluationError": "34" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index d0dc1615138af8f8d31f475ba23d4093734f7590..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 322 zcmV-I0loffICB6BG71-Ab#!QNa%p;DbZKvHE^9b*E@^Ksb}i=AMdSIOw5`V8p1& zm@ep;uQtSsR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQ zg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^Z zF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B z#D-lO0x>r-01_w)90~$5G!gax}!nO)2Nub}#-0bNXIBebd61FvFcrKDUrr@rq8)%Pb|*!cTaa{sJYP z6Yk>tM1C&iCUZl{r0e_RZozX`$r0cmgb^c%%Scy{p(^24sTzOBY<2hN&@bi{HPE?^3y1$_`6ox4RFUTjyWZ7c||3 zkwuW0YsSbXK($mi2FhfhTxlCAMlY3*oi+b0c;C;eK&d7Pv;tHw0yP3O7*mtA*6AYL=09=bDa7utPxwS=#%VpqtH7$Fpt8q%^o{C{O=%I~Z#Hh)b zF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=- zpU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSv zFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-| zhFuy0F*h;*5(EkYGBg?@3J?kcGBpwcGBz3lGB+XuGB^?l3IZ}Y5&|6)%B)H($;{8w%eE-i%gom=GZYdFPR&URE=|fxO)d#4%}Ff| zN-fJwEf;EK;<~}e#b_kNXe`BOqQq#brF5kA<>Kxms|&rJ&Ff0Ec(JfI;mC@UGxT1} zSZ{WuJM8I_9jQhlhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH z{YYCZ&@^)`0WLnEatk32E;b--Da0Ve!o_4{BBjJ70HjTYn2gM%n2gMon2bPbn2dm~ RF*cB3P+~GRlwwd~0055GW(NQO diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml deleted file mode 100644 index bb029b988..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - namespace: "24" -status: - evaluationError: "31" - incomplete: false - nonResourceRules: - - nonResourceURLs: - - "30" - verbs: - - "29" - resourceRules: - - apiGroups: - - "26" - resourceNames: - - "28" - resources: - - "27" - verbs: - - "25" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json deleted file mode 100644 index bf8764ff7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index 8bd8f4b437a2127846a59c5708c273d55030008c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 342 zcmWNK&npCB9LDGUCiEtUmr|1hbJCVE@B7ZY^Ntg8auRV+%GjpNZrNoPwQ^YUquGSo zLN*cyCAkoCG{nWt$$7Tji@(8Kp2PF`^gLM^C|Ji`?n+@Hx9k_)f}dN|vog^A+`uX& z9g{2b882NJPN%&fnDAD8Z;hM*{zMotg1CxI4OuBI+HPExquZsi+Ii^8`sMyybn|th z*H7+6RGyBnpFP$|g(FO68MZ086qYa;cjWKi=1-|yE#*g)@w>gpt?i5N>MNRQ#>gf} z&bMIX5THh;2Loj)P_DI)7US2-=k9v&9)29;Q$VSqNVE*pECRJc)Ssw=^fnH|xDqz5 zPT$Y_r{e0v+mk!+RoSQ=mHKKg$I;GgvSu@d4B>7J%p|}p6`0U~*(qR>0dod{8>AHj jrv!NN&bbEMOyQ)lNK=x60k_q*Rwdyw;Z6@y6;1gEA9!eH diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml deleted file mode 100644 index 67defb413..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.json deleted file mode 100644 index e9aadf558..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.pb deleted file mode 100644 index 340fdc9670022251f32551312aadba76f3bb037b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 358 zcmWNL&nrYx9L3-LrlFfAT}r(ycq_d!^X|Rx$9+m6D=QHTrHtv78D;PWHL@7;qc;gP zWzRN{iP;fQpXC}bG-U|=QzW~snz v4Va??6AYL;2;7h)a7uv7H=Jw0O&!a`A}vyF2Ha8G+Z5Rg*}J_+RW#)vuUTo` diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.yaml deleted file mode 100644 index faa8e72d7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1.SubjectAccessReview.yaml +++ /dev/null @@ -1,57 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json deleted file mode 100644 index cdf0a95d8..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "group": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index fb583693aaf7ecc6cf2772ccc3eb94cfa61b660d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmWNKze~eF9K~~AM9U!#hl7L;HIo!tb9ec1aZ+&-2T^no1k)0*Dz-Llg^EL!s-%bt z1uGUsbPz;b6ctBPsf(MFbBkU48_e>C_xbSNs&FMNaM;f0mebi((axpP>+x0L##8Cx z0!=tMo05U4bkbg%%_mlzWNs{(bX<4FDWsfDat^qOFk%F88EFdAql#bdTvz#f?{-*Ow?$5AE)P6nn_ZEXSlSyP0hcPgX0Mlh)h62ot t0uv0FH3D2EAq<=n;K4iR3UDoogGMJ^K^hFWDffn?fQx`z5hP2B^ba*hY%%}< diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml deleted file mode 100644 index 9017adaf1..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: LocalSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - group: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json deleted file mode 100644 index 16a03566a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "group": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb deleted file mode 100644 index 0664b719f541c98f2b17cbbb24e14ee5281f81c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 368 zcmWNL&npCB9LDGUrlmJYZw{Iqn3JZgdEa+_yrUFyl7onYQf9X)i!5eQD~BaNnoX!J z)V9((s7)?}91U@CQ_6Wad+|4TFV9oY^XchX5P^aP?(o(!bLrJo*2|>QOYsE}#8c_s zb(-)q9wqIg>7=(fv6h(klbOL}(hq`he?8@IkP6^$gb^c%tH{)lrEAe{y_}CKDee=YS)R*QEp4_@y_VXJnM>#jYWMtd`I&Cy$Ni^K(K!ZGPCQOE%9 zz`#rb%u<2b8Zbu(CKxcc54a&o;FJKDZ#dV0n>v<>MH-~q47j5a-y zYGq?|L1SZOb8}KrgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3r zk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxr zfhgv=m&Ar$8UislG5``N3LFXoGBgqbGBp|kGBzRtGB+v$GB`2k5&|6)%B)H($;{8w%eE-i%gom=GfYY?Ni-A^4^GWV3ocE{N=+_t zOioTME)Gg9%S_~Um(}HH&<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1 z`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+ zO>ES7wsZQCwpgHP=2`+=d_d(ELL6LdK-yA>K}ds3hKtF_M2N}AREo*SOo_?JT#L!b n!idSp(u&F00H~75*ieYc*hq?pg8@hzOEDRnC@@MfC@}y4D<^6$ diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml deleted file mode 100644 index 76ab7fa99..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" -status: - allowed: false - denied: true - evaluationError: "34" - reason: "33" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json deleted file mode 100644 index fe5c77fcf..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "kind": "SelfSubjectRulesReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "namespace": "24" - }, - "status": { - "resourceRules": [ - { - "verbs": [ - "25" - ], - "apiGroups": [ - "26" - ], - "resources": [ - "27" - ], - "resourceNames": [ - "28" - ] - } - ], - "nonResourceRules": [ - { - "verbs": [ - "29" - ], - "nonResourceURLs": [ - "30" - ] - } - ], - "incomplete": false, - "evaluationError": "31" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.pb deleted file mode 100644 index 1ec167250f07ac6b738ce1ef278484eded3178cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 312 zcmV-80muGpICB6BHVPbJb#!QNa%p;DbZKvHE^9b*E@^Ksb}?dQbYU?P7E@(xW>a-y zYGq?|Qgv))b5dn?X=Qg3^#KaV0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5` zV8p1&m@ep;uQtSsR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3 zt%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{ za4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvY zDCW7B#D-lO0x>r-01^ZW0x~ojA_@=+0x~rc0x~ul0x~xu0x~!f2nqr+IT8XhFc<(L K0y8lh03ra^jArHl diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml deleted file mode 100644 index 0a179056a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - namespace: "24" -status: - evaluationError: "31" - incomplete: false - nonResourceRules: - - nonResourceURLs: - - "30" - verbs: - - "29" - resourceRules: - - apiGroups: - - "26" - resourceNames: - - "28" - resources: - - "27" - verbs: - - "25" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json deleted file mode 100644 index 63e697700..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "kind": "SelfSubjectRulesReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "namespace": "24" - }, - "status": { - "resourceRules": [ - { - "verbs": [ - "25" - ], - "apiGroups": [ - "26" - ], - "resources": [ - "27" - ], - "resourceNames": [ - "28" - ] - } - ], - "nonResourceRules": [ - { - "verbs": [ - "29" - ], - "nonResourceURLs": [ - "30" - ] - } - ], - "incomplete": false, - "evaluationError": "31" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb deleted file mode 100644 index 494fb596f3c20612e24197d79d05e5e38a41b43f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 328 zcmd0{C}!X?6)%B)H($;{8w%eE-i%gom=GfYY?Ni-A^3r@{R3ocE{N=+^a zD$PkP4oWS{Of45`W#YQQ$i-+R#AqzVXrjbus-<+K_2uI3BdZI&p3Un@w0N5O!M0<7d(XM0t z1zJpoh6W54j73a_CRI#^rd^D-K&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefg zHflWEIsHgmEYLJ_Edee*pmGZ#4lXtzZ7IYc#KOg7WFn=+B><#Ng_w-Yq?nA%m6(h` WYM6|Gt}!-{U{GQ*Hk4veVgLZ)-Dlna diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml deleted file mode 100644 index c395c30b4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - namespace: "24" -status: - evaluationError: "31" - incomplete: false - nonResourceRules: - - nonResourceURLs: - - "30" - verbs: - - "29" - resourceRules: - - apiGroups: - - "26" - resourceNames: - - "28" - resources: - - "27" - verbs: - - "25" diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json deleted file mode 100644 index 0af5bef80..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "group": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index 22e7dbdb479d5c02fc3f547ed31ad6f66a78dca9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmWNKze~eF9K~~AMCA~N(r?TS( znsD+qB|{5aiL{f&`ocl(S7P0XGpwj36!}O+k88@yp$tihsW`+irNa=v*JK z`gg5byik9U+pPEH~YN}1iJEM+l^S~)B&noX!J zt2Pn`CAkoCG{nVCDd*kn#oyq)JWoB(r>AE@1PbOj?yctMax2+_m(S)FlM5n9W^<`E zn)dS^C0!G%>3KhsAIfC>AQ<=8vi>@`2K{cWR~HWf(zTS4aQyZ^SAX?EZ2%l!^+sr-u-sz?6dZa zrehd61c`JjMlJzr%qK8VrUKE@r zXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R?CFvnsYW7( zW|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUEv2ih)3o%+G zv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(^Oopai zjJiOjWdq|&n7l%Jli?_NLwt>G;<>cAuTQ* zE+!)rAtobJDJCN`fsZ|RFZ}oq1dI}Yx6b&$u5jevs&)Us0#b?``|mxQdt%qq1)muu cI)DFBQke7QebZmCq{fd`EAOyLF(@$r0B)~{Z2$lO diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml deleted file mode 100644 index 821ec3bb3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" - targetCPUUtilizationPercentage: -439697596 -status: - currentCPUUtilizationPercentage: 1804227960 - currentReplicas: 73350537 - desiredReplicas: -799278564 - observedGeneration: -918288109031280833 diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.json b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.json deleted file mode 100644 index 37896ba2e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "24", - "name": "25", - "apiVersion": "26" - }, - "minReplicas": -1978186127, - "maxReplicas": 2114329341, - "targetCPUUtilizationPercentage": -439697596 - }, - "status": { - "observedGeneration": -918288109031280833, - "currentReplicas": 73350537, - "desiredReplicas": -799278564, - "currentCPUUtilizationPercentage": 1804227960 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.pb b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v1.HorizontalPodAutoscaler.pb deleted file mode 100644 index 01364d2142d32a0e716a784a15b0e78762451bdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmd0{C}!Z&3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R?CFvnsYW7( zW|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUEv2ih)3o%+G zv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(^Oopai zjJ80fWdq|&n7l%Jli?_NLwt>G;=KhENdb;2&*pU{TD(};n{Z^s$r*YtW~?_m(jE46$&OSb5koUeGZQ0I19KA#V+%7= zGXo=ION-m@nyxl>&uJ`hVhC8&*pU{TD(};n{Z^s$r*YtW~?_m(jE46$&OSb5koUeGZQ0I19KA#V+%7= zGXo=ION-m@nyxl>&uJ`hVhC8NJ365>twoBZDm<_bDYoh$+TL8` zAiC2*sO#S1^xVYY?4kXMss8Dsop}yIv@EW4If#*V5Z14N+-j;@mX7t$4fZdMzdbbu zyXQtPOn&LlzdrcV{P6?Z<}bgMdG&dzX6ae#!fLc0IdnsH=*;QR&79k>-}>&(-||p4 z|8;Trw{@1$pW?i)TY=VQ#10rZr0fIsdk&dXJq@BpiehiF6$=2LFp3KVFabt;wV_u4 z#0W6eQ5JLNR(2B{6_^#&gYW^SVQdLK?QS(1mlHll1Fn>li0bmpC$Gb2}@ zTuxQDjJ)&GqKt7wL2*>t+`@DQW-MYrm_h<bhLpP4+nF!q)D`wCf%s17CvfKj;` z|B^*qHx;x8J<@1XNST31I4YLS#4VFURA^$SMul75QI07Sf(0;xq6Se{ScKg%BP7$O zb_14$B`X2PLm^y}Y7$)*m>8n+t&|GcP_1^NP+Vipq&*dk_r^d{V7D+o1uGCT%rF=l z=ag9H-XsKh03d=%52LZ(6zhf#XoF}A0Oh1T-_u##wCqkKC9(hoSd#!Ww_x1f1HxZk zU3NFLWdse)aHf&NB+CR^mgS71GDOTEsY`KD2GSifB~OGm0>~TcmTVfl5yvH-g1}A* zmJn?ob%QN?Qz@`pz%GeF9T<8^vzm)G$|B2`ixiqycyT3_pLOHjyB1tepiPTc4n93K zl=&cYvSM-gkY}nd|JuaT$xAus{=D=4y5;;Cv-2)V22HMxE9fz_s=Lrq9}eMgK*$;3 zatZ)?-E!OoG)S~kUa$Hh>Y~tW5l%XLfhVbDCn)d~m3ip#ZqQ_2ad`#KumMIgZKnVX zDg%^Kvd6kSsRa(~*Vo*Hm@!z?V zvRyP0Oa+SsFs;^7D^L?bRJ?#fO2p7@3&a>hVnQ^;U%kb|$PW$vFnU_$hcn5XnaMZr zyx;phr;{gh5JnI9ds6Xa&>!iDwRw8=Kq%!W>c-M|cSj~3OZg+!@z#R>Dni}r!L{g? zf)rgF1UpRUA#q8=FsJ(CgBM=yfA71|38iH>xwh86NA?d>`hJ$OdsiTI|$KoxYF$)M#e$dfU;edn(F4oqXV;p1B>JDOpU?L z+0pZpU->=P2Vb5$wr}g)rMI)My&%;rcOF_N%ek71R?F2^bJY2jXf1N+hU(Cn)1jMr zciy=D{oTLip=|o=!tifvTvIF2qo(J^P{Y*7*6fvQ1M`Dp3!ffcJauTMzi#H_^pU#9 zpHjb7mQ^gN!ljCAf@;oHXay&l>x_cR(S2>K!}dg=84C=CVW>Q)i_SWm;1DYZ5i+R& zK_Lcm5wr)e5Y<9pYbWfC3qwG$)h!?WQPWUckgj7{RU+zoh0x9NCQ&Ozu`kt*1wfrJ ziVFlV0Y;?8&?^CA1eoe5i#hYFdI*jR%nBMo)B&b#*b;i!7i1s>YMZ!QT4pwJ9#oKn zTB>{^n(f?+wxfIofXfBe0EAX;30#C*LIA~@h5Z8ei6ZquO|XPdmkvNwVxPdmZ(=)8 zy1P`}hBiMZ4GUtMfLohHM=vRr4dQn2LM66EJx;`z4c^Z%K(e0c0gQdJrE>1tfO6~D z%;6iOGwJ}@58%qIWQQxYAPc-AyQo~r<5@uh6 zX33z0Pu+qZ@`elLC^IrefiaDQpvHh&&^X1#>gtkoM>3UMwyF`AbS&w2ezPif`sOcp zzL+@nW8@%ak(ot0?QwuSTkdrF?Y_Ez%h*~u?&e3E_TnaMNrV_&Pk zFO$WH>R@t1Fe+E$U$Thnrh;~%N1AO4X*1B#78Ofo5|+s!Dm1Y}qr$6hufUWE!2*~; zQIlvWEW+NH5tivwy9vw2QdNKx;V>>qw}@^FObk)^R!W6!s8PF6IH9p1iKIh`z8FXf z>{jNdU8a` zYZ8E9E5?yt5dMmqvU{N|A!ulZGlLu^St8J~EN2vzA!3F|Lz;^+knWf%c_O?SK;BTV zWYgfyI3e*A1a?TUgy<|+*V}S7RRVhjJSQ<|07EYcs`+SxY_ejhNul|K4_8t7Sr6{J zXTkLZ+PH9e|I<@L*$=ZPDi?+iluz}0u1+kTxR`hL&$}P2S<0U=+kH_oXmWL2L64yo zJ%yI~a2U4*gxmvM?gD^5uiWkenj~6jpHF=WbyEmhgp;m5;3;a^NeVnoWgdE>2Q-;i zLSBJ0Y=Du<*l7TR$^fO5oUtxXY5{~attSH+Eg1veo`!^90v_j43a#26tBd#A9;*>! zL(UdM`~P6%`ZA0LwRHon?InTvOGoEE8<`(}T~!xO?4KNce){;Xh0Fc+_2YBnL(bgX WTeCk8)#v5792RpsEYq3e%J~O}g5IJ4 diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml deleted file mode 100644 index 7aeb5cc5d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml +++ /dev/null @@ -1,132 +0,0 @@ -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - metrics: - - external: - metricName: "44" - metricSelector: - matchExpressions: - - key: JfB._.zS-._..3le-Q4-R-083.D - operator: Exists - matchLabels: - cd525-6ni4-g3-s-98w-4-27/03f_--0..L.0qQ6W-.d.20h-OK-_8gI_z_-tY-R6S17_.8n: 7z.WH-.._Td2-N_Y.t--_0..--_6yV07-_._N - targetAverageValue: "602" - targetValue: "201" - object: - averageValue: "591" - metricName: "30" - selector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - g5i9/l-Y._.-444: c2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am64 - target: - apiVersion: "29" - kind: "27" - name: "28" - targetValue: "810" - pods: - metricName: "37" - selector: - matchExpressions: - - key: G-___196-.dX_iv1H.__.h-J-M.9_T.qo - operator: In - values: - - 5.--sT52b..N.-.K8 - matchLabels: - 5--.K_.0--_0P7_.C.Ze--D07.a_.y_C: 0_5qN2_---_M.N_._a6.9bHjH - targetAverageValue: "109" - resource: - name: S5Ǎʜǝ - targetAverageUtilization: 87018792 - targetAverageValue: "274" - type: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" -status: - conditions: - - lastTransitionTime: "2685-12-24T19:19:52Z" - message: "76" - reason: "75" - status: 蠂Ü[ƛ^輅9ɛ棕 - type: v1b繐汚磉 - currentMetrics: - - external: - currentAverageValue: "439" - currentValue: "821" - metricName: "68" - metricSelector: - matchExpressions: - - key: 3-c7181py-8t379s3-8x32--2qu-0-k-q-0--85.4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0w7p8v9/7W..4....-hD - operator: Exists - matchLabels: - uB7: f.gb_2_-8-----yJY.__-X_.8xNN - object: - averageValue: "404" - currentValue: "811" - metricName: "54" - selector: - matchExpressions: - - key: q05c1lxeqyn-5--9d5a3-7bf46g-40883176jt-e8b--i.1v53nyx5u-o-k-md--381l/KpDZ-._._t__2--A.0.__cd..lv-_aLQI - operator: Exists - matchLabels: - Y93-x6bigm_-._.q768-m_0_F03_J: L.35__5b.5-CX_VBC.Jn4f__.39X...-tO-.qff.ExZ_r7-6.-m..-_-.f9-Q - target: - apiVersion: "53" - kind: "51" - name: "52" - pods: - currentAverageValue: "777" - metricName: "61" - selector: - matchExpressions: - - key: 6.-L..-__0N_N.O30-_u.y - operator: Exists - matchLabels: - 6e1Vx8_I-.-_56-__18Y--6-_3J--.48Y.q.0-_1-F.h-__kK: 9_..O_.J_-G_--V-42Ec - resource: - currentAverageUtilization: 1962818731 - currentAverageValue: "559" - name: 輂,ŕĪĠM蘇KŅ/»頸 - type: :贅wE@Ȗs«öʮĀ<é瞾 - currentReplicas: 310937924 - desiredReplicas: 912103005 - observedGeneration: 6319752985051851078 diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json deleted file mode 100644 index 48fbd3e81..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json +++ /dev/null @@ -1,240 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v2beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "24", - "name": "25", - "apiVersion": "26" - }, - "minReplicas": -1978186127, - "maxReplicas": 2114329341, - "metrics": [ - { - "type": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "object": { - "describedObject": { - "kind": "27", - "name": "28", - "apiVersion": "29" - }, - "target": { - "type": "H牗洝尿彀亞螩B", - "value": "52", - "averageValue": "835", - "averageUtilization": -1161251830 - }, - "metric": { - "name": "30", - "selector": { - "matchLabels": { - "8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s": "8TB_M-H_5_.t..bGE.9__.O" - }, - "matchExpressions": [ - { - "key": "0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c", - "operator": "In", - "values": [ - "LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A" - ] - } - ] - } - } - }, - "pods": { - "metric": { - "name": "37", - "selector": { - "matchLabels": { - "d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y": "8j" - }, - "matchExpressions": [ - { - "key": "vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "蚛隖\u003cǶĬ4y£軶ǃ*ʙ嫙\u0026蒒5靇C'", - "value": "815", - "averageValue": "377", - "averageUtilization": 2126876305 - } - }, - "resource": { - "name": "ȉ彂", - "target": { - "type": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "value": "970", - "averageValue": "603", - "averageUtilization": -88173241 - } - }, - "external": { - "metric": { - "name": "44", - "selector": { - "matchLabels": { - "yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k": "8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S" - }, - "matchExpressions": [ - { - "key": "l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "", - "value": "891", - "averageValue": "765", - "averageUtilization": -2717401 - } - } - } - ] - }, - "status": { - "observedGeneration": -6410519298686885049, - "currentReplicas": -740777212, - "desiredReplicas": 1741405963, - "currentMetrics": [ - { - "type": "崟¿", - "object": { - "metric": { - "name": "51", - "selector": { - "matchLabels": { - "0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt": "0E.-2o_-.N.9D-F45eJK7Q5-R4_7A" - }, - "matchExpressions": [ - { - "key": "b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a", - "operator": "NotIn", - "values": [ - "F._oX-F9_.5vN5.25aWx.2aM214_.-C" - ] - } - ] - } - }, - "current": { - "value": "168", - "averageValue": "500", - "averageUtilization": -1562283537 - }, - "describedObject": { - "kind": "58", - "name": "59", - "apiVersion": "60" - } - }, - "pods": { - "metric": { - "name": "61", - "selector": { - "matchLabels": { - "p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G": "9.M.134-5-.q6H_.--t" - }, - "matchExpressions": [ - { - "key": "7U_-m.-P.yP9S--858LI__.8U", - "operator": "NotIn", - "values": [ - "7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m" - ] - } - ] - } - }, - "current": { - "value": "886", - "averageValue": "310", - "averageUtilization": 757223010 - } - }, - "resource": { - "name": "臜裡×銵-紑浘", - "current": { - "value": "370", - "averageValue": "1", - "averageUtilization": -1095116290 - } - }, - "external": { - "metric": { - "name": "68", - "selector": { - "matchLabels": { - "ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - } - }, - "current": { - "value": "386", - "averageValue": "882", - "averageUtilization": -500012714 - } - } - } - ], - "conditions": [ - { - "type": "蚢鑸鶲Ãq", - "status": "", - "lastTransitionTime": "2132-02-01T06:56:28Z", - "reason": "75", - "message": "76" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.pb deleted file mode 100644 index 51354483682276064b0e63342eac88e3fc075027..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2070 zcmX|?ZEPGz8OOa_@}f}%)g&VBAyn5?P#HbX?auD(<u*C$`V7o%kiLok(an-<{7s z+jnQ*`ObF;i8OW7I7Lk&w|S}KDhW~x0UCuQZHP)l@m~D!vqKpFi;S0fdT@ z@|+7@X{6oJ?Cku1&;S4IsLItaWZR-s`AjYr9UDm}!v!&z$VUa=5y?!Blr!mkbgU~A zZ~Whi#3cXVbL_Uk48aX2WVrQ)Y^YzHSwDYd@xny=>cVVPRnC6zTZ?bpIf<2%Z+eSI zo>}?++X=DV_5#lp((+y9C{KEpa02zgU!T2q;K=-eY*S6wk6*ZQaOSmN&tEt8Z)S$i z4K=uh838wKD^vSaAeyfYlly)UOuyO@y5zK-~IE?7AgxrXyTt?rWBz~>>=gI zy4lLP_y4o;sn7|NnU2Menry~kDOG|DxG)a>B!Cqi_Xb@67^5*6i>HK3vvd^zgtu|$ z7Xru+TQK5=14Mfaw4`}i3<@0@uoFwDLH9_dBOQH+3iV)j5h32{<@gS@w@G(GL`#i% z#KG2P47A2QoX)Y!%1(dZ>8JTF1^~kHgj$H=+dR;>Z^foRbTZi zr*8R&AKk0^>|>+hHwJr?aJnvk!(e^vOQlZjwq#p$KiFgv^2-Pn1EK(}&_;Lr9A}iH z>O^4QPBmeq1^PgbjB0>hzK1oBDFPj~($GkTBtz|k2y{+l z^F)|Df|iUSm1m+vPSw2_mr5>j zDbK%XH6w@&#cVeQyP(CDiT0=cZV5fE_8WPW`GY}{gc7~zBqY;PrDMVgw|D7Gqjnpy zUE~}b=7gPbhX?G@1(Rr+eJ~{v`0eQ2qTcVKB{%I7^PGP$Qb0>e4 z5fj@}RYKCTYXA19nG+vv5C~CclZu-%2$`N0S~WJ3F9UxW!fkVxJ6buYaV)X#Jm2V5E$JmZbfy4-!7^u-v+ev{9Ie<*oDPnp|QT}aDKyp+-5ER7p6gb%oO**--094SP zrGDzd-f`5r6%@Ihm~`uy!ygw^WWdgxuk+ZY9mELYXwa!V45AvW9-G&(&leQ6XUdRD z6X!A+550bT`qQjz*n$4A8-Y=x_Wj@8IkpiML)5c}E2qz`AA5WK>ZO|pCwNV0>(=>$ V_n+VPNKL)z%Ldc;LN)a@{{=Pbi)R1; diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml deleted file mode 100644 index 177bdbc55..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml +++ /dev/null @@ -1,159 +0,0 @@ -apiVersion: autoscaling/v2beta2 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - metrics: - - external: - metric: - name: "44" - selector: - matchExpressions: - - key: l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte - operator: Exists - matchLabels: - yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k: 8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S - target: - averageUtilization: -2717401 - averageValue: "765" - type: "" - value: "891" - object: - describedObject: - apiVersion: "29" - kind: "27" - name: "28" - metric: - name: "30" - selector: - matchExpressions: - - key: 0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c - operator: In - values: - - LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A - matchLabels: - 8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s: 8TB_M-H_5_.t..bGE.9__.O - target: - averageUtilization: -1161251830 - averageValue: "835" - type: H牗洝尿彀亞螩B - value: "52" - pods: - metric: - name: "37" - selector: - matchExpressions: - - key: vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W - operator: Exists - matchLabels: - d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y: 8j - target: - averageUtilization: 2126876305 - averageValue: "377" - type: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - value: "815" - resource: - name: ȉ彂 - target: - averageUtilization: -88173241 - averageValue: "603" - type: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - value: "970" - type: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" -status: - conditions: - - lastTransitionTime: "2132-02-01T06:56:28Z" - message: "76" - reason: "75" - status: "" - type: 蚢鑸鶲Ãq - currentMetrics: - - external: - current: - averageUtilization: -500012714 - averageValue: "882" - value: "386" - metric: - name: "68" - selector: - matchExpressions: - - key: v8_.O_..8n.--z_-..6W.K - operator: Exists - matchLabels: - ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3: 29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1 - object: - current: - averageUtilization: -1562283537 - averageValue: "500" - value: "168" - describedObject: - apiVersion: "60" - kind: "58" - name: "59" - metric: - name: "51" - selector: - matchExpressions: - - key: b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a - operator: NotIn - values: - - F._oX-F9_.5vN5.25aWx.2aM214_.-C - matchLabels: - 0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt: 0E.-2o_-.N.9D-F45eJK7Q5-R4_7A - pods: - current: - averageUtilization: 757223010 - averageValue: "310" - value: "886" - metric: - name: "61" - selector: - matchExpressions: - - key: 7U_-m.-P.yP9S--858LI__.8U - operator: NotIn - values: - - 7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m - matchLabels: - p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G: 9.M.134-5-.q6H_.--t - resource: - current: - averageUtilization: -1095116290 - averageValue: "1" - value: "370" - name: 臜裡×銵-紑浘 - type: 崟¿ - currentReplicas: -740777212 - desiredReplicas: 1741405963 - observedGeneration: -6410519298686885049 diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json deleted file mode 100644 index f6c00ac85..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v2beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "24", - "name": "25", - "apiVersion": "26" - }, - "minReplicas": -1978186127, - "maxReplicas": 2114329341, - "metrics": [ - { - "type": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "object": { - "describedObject": { - "kind": "27", - "name": "28", - "apiVersion": "29" - }, - "target": { - "type": "H牗洝尿彀亞螩B", - "value": "52", - "averageValue": "835", - "averageUtilization": -1161251830 - }, - "metric": { - "name": "30", - "selector": { - "matchLabels": { - "8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s": "8TB_M-H_5_.t..bGE.9__.O" - }, - "matchExpressions": [ - { - "key": "0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c", - "operator": "In", - "values": [ - "LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A" - ] - } - ] - } - } - }, - "pods": { - "metric": { - "name": "37", - "selector": { - "matchLabels": { - "d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y": "8j" - }, - "matchExpressions": [ - { - "key": "vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "蚛隖\u003cǶĬ4y£軶ǃ*ʙ嫙\u0026蒒5靇C'", - "value": "815", - "averageValue": "377", - "averageUtilization": 2126876305 - } - }, - "resource": { - "name": "ȉ彂", - "target": { - "type": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "value": "970", - "averageValue": "603", - "averageUtilization": -88173241 - } - }, - "external": { - "metric": { - "name": "44", - "selector": { - "matchLabels": { - "yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k": "8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S" - }, - "matchExpressions": [ - { - "key": "l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "", - "value": "891", - "averageValue": "765", - "averageUtilization": -2717401 - } - } - } - ] - }, - "status": { - "observedGeneration": -6410519298686885049, - "currentReplicas": -740777212, - "desiredReplicas": 1741405963, - "currentMetrics": [ - { - "type": "崟¿", - "object": { - "metric": { - "name": "51", - "selector": { - "matchLabels": { - "0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt": "0E.-2o_-.N.9D-F45eJK7Q5-R4_7A" - }, - "matchExpressions": [ - { - "key": "b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a", - "operator": "NotIn", - "values": [ - "F._oX-F9_.5vN5.25aWx.2aM214_.-C" - ] - } - ] - } - }, - "current": { - "value": "168", - "averageValue": "500", - "averageUtilization": -1562283537 - }, - "describedObject": { - "kind": "58", - "name": "59", - "apiVersion": "60" - } - }, - "pods": { - "metric": { - "name": "61", - "selector": { - "matchLabels": { - "p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G": "9.M.134-5-.q6H_.--t" - }, - "matchExpressions": [ - { - "key": "7U_-m.-P.yP9S--858LI__.8U", - "operator": "NotIn", - "values": [ - "7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m" - ] - } - ] - } - }, - "current": { - "value": "886", - "averageValue": "310", - "averageUtilization": 757223010 - } - }, - "resource": { - "name": "臜裡×銵-紑浘", - "current": { - "value": "370", - "averageValue": "1", - "averageUtilization": -1095116290 - } - }, - "external": { - "metric": { - "name": "68", - "selector": { - "matchLabels": { - "ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - } - }, - "current": { - "value": "386", - "averageValue": "882", - "averageUtilization": -500012714 - } - } - } - ], - "conditions": [ - { - "type": "蚢鑸鶲Ãq", - "status": "", - "lastTransitionTime": "2132-02-01T06:56:28Z", - "reason": "75", - "message": "76" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb deleted file mode 100644 index 231fa3e2519d7e5fd9ab0a114364e59353b768e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2086 zcmX|?eQX>@8OFU^;zXmWM3acPhfrNpL1py5w>!JDJBxtIPHdlDJMl-{IFZnBzB^xh zw(riq^PTSy5^3tDaf+HmrunGjDhW~x0UCuQZHP)l@npApR-XJ`3^n2M84< z|Y{!iDjUmHC;ds+|4KHx^#Ma}p~j-|!ZW zJhS}0w-REj?FF7Iq~*KHQJ(ZH;RNdUe|`4efg^JVvduN!KYHQH!Rc3jHFw?ESIZ2a z8)|SPGXiefR;r$vwg{QF)9}cS^78fB+lRiHyEU`;Qnt~wZL3BZ6Q=E!O5+Zf1|ra>X~XTKWxm z4ZpFGJ3n7W z`_24Q%#=}2ckqC!2`Q$&cj zc{#pK?QYgx5YbX&9&xa(1p}>d7pHUVu(IP|fe!%)NQ@-G^6e;y643E1kO5B0%Ej>va#kkp?4h5a<0R33NPVCoe2q7X+dwwYiooS#|Gz35y z^TH|uLOxE%PshhJHicd^*)I)(l~^wBz!Zo=m4Sq*WXyq5nT|LG5VKqqgW!Sf zgH({NB8U&!0L2(RWQ!9pL|7*5VH^Ci<%C-S39Bx2?!iswTg&(@5cg|O?UtK!bc=y!ug;QUs96v7C&K%nQ zMP9XuEvs&Ee82wKnV0{yvEgfM!|lV%Z$HZ=3*El9eBt8awWZnO%{SBStCwDBS)IPN zbae4jOZC;jx2mstmQ%m507YoKE8{!j4A>h zw$jitA(dymL{8Ox7?)9}gC@{R5_`IA#8f`<39!$ynspd~ zT~*|Jvi`N>zkBepqR=mDH!Usx<;KZ-?>_gMQTN>92lMyWrPd#L@Z+D=Hoj2HHY{I$ z^_?61zQKM&(xuJs8Z1HXj_18ZwW8z7RS=9zs{nQeto?;jxI3zK8g|4113K_Nv^3$_ zpG2L}S@^2r|3M^N*^77)_}ZO*eOxS z=$-=4mja37UW6tg&tvRSzhA=`LN}JWgFXNyRcAXzLiPV&+fzR1Y`4~vSrnZ*2N~ZF z$b};ywbsxxju^}BuYPr(y}M9!f>ym9Ch~oIkqRMN{V~3^s$D6ss@<`zx)0_KubB_(2>#q)a|SCW zim{APq;&`+bsM_`)rYEhig7khjU`3hiZD>4qqdU*8*%`dtW(7FsG|Jao`B?tfFLM{ zsY!6M8Jcu*VF9S1BTN0%h23MQbsH#hJ2C0eF^4}csK|g_IbY|oTRVsm#F3y&c^E`B zSiLr{XP+r3YR{A*l_t(*G9G$+@aa#ovTg_Z$6XJM5_RwW_Rg{Os2HMwJzP0`Ztd7x iYgaGbJUGs4LYp?t9lZbimd!N{rY{>!-wV|=)chB;5scmd diff --git a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml b/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml deleted file mode 100644 index 12e09b7b5..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml +++ /dev/null @@ -1,162 +0,0 @@ -apiVersion: autoscaling/v2beta2 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - metrics: - - external: - metric: - name: "44" - selector: - matchExpressions: - - key: l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte - operator: Exists - matchLabels: - yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k: 8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S - target: - averageUtilization: -2717401 - averageValue: "765" - type: "" - value: "891" - object: - describedObject: - apiVersion: "29" - kind: "27" - name: "28" - metric: - name: "30" - selector: - matchExpressions: - - key: 0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c - operator: In - values: - - LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A - matchLabels: - 8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s: 8TB_M-H_5_.t..bGE.9__.O - target: - averageUtilization: -1161251830 - averageValue: "835" - type: H牗洝尿彀亞螩B - value: "52" - pods: - metric: - name: "37" - selector: - matchExpressions: - - key: vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W - operator: Exists - matchLabels: - d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y: 8j - target: - averageUtilization: 2126876305 - averageValue: "377" - type: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - value: "815" - resource: - name: ȉ彂 - target: - averageUtilization: -88173241 - averageValue: "603" - type: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - value: "970" - type: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" -status: - conditions: - - lastTransitionTime: "2132-02-01T06:56:28Z" - message: "76" - reason: "75" - status: "" - type: 蚢鑸鶲Ãq - currentMetrics: - - external: - current: - averageUtilization: -500012714 - averageValue: "882" - value: "386" - metric: - name: "68" - selector: - matchExpressions: - - key: v8_.O_..8n.--z_-..6W.K - operator: Exists - matchLabels: - ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3: 29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1 - object: - current: - averageUtilization: -1562283537 - averageValue: "500" - value: "168" - describedObject: - apiVersion: "60" - kind: "58" - name: "59" - metric: - name: "51" - selector: - matchExpressions: - - key: b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a - operator: NotIn - values: - - F._oX-F9_.5vN5.25aWx.2aM214_.-C - matchLabels: - 0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt: 0E.-2o_-.N.9D-F45eJK7Q5-R4_7A - pods: - current: - averageUtilization: 757223010 - averageValue: "310" - value: "886" - metric: - name: "61" - selector: - matchExpressions: - - key: 7U_-m.-P.yP9S--858LI__.8U - operator: NotIn - values: - - 7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m - matchLabels: - p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G: 9.M.134-5-.q6H_.--t - resource: - current: - averageUtilization: -1095116290 - averageValue: "1" - value: "370" - name: 臜裡×銵-紑浘 - type: 崟¿ - currentReplicas: -740777212 - desiredReplicas: 1741405963 - observedGeneration: -6410519298686885049 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.json deleted file mode 100644 index 304c46024..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.json +++ /dev/null @@ -1,1061 +0,0 @@ -{ - "kind": "Job", - "apiVersion": "batch/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "parallelism": -1978186127, - "completions": -1821918122, - "activeDeadlineSeconds": -1888486794478722029, - "backoffLimit": -596764376, - "selector": { - "matchLabels": { - "l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "Šĸů湙騘\u0026啞", - "resourceVersion": "6776706803848751502", - "generation": 1142764901371385923, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 986128679342689494, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "ºɖgȏ哙ȍȂ揲ȼDDŽL", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "bJ5ʬ昹ʞĹ鑑6NJPM饣`" - }, - "emptyDir": { - "medium": "z徃鷢6ȥ啕禗Ǐ2", - "sizeLimit": "387" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -347579237, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 903876536, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 2022312348 - } - ], - "defaultMode": -963895759, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -539733119, - "iscsiInterface": "67", - "fsType": "68", - "readOnly": true, - "portals": [ - "69" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "770" - }, - "mode": 1539635748 - } - ], - "defaultMode": -388204860 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -573382936, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": 1825892582 - } - ], - "defaultMode": 1532914928, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "", - "fsType": "121", - "readOnly": false, - "kind": "坼É/pȿŘ阌Ŗ怳" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1629040033 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "908" - }, - "mode": -239847982 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -1305215109 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 8048348966862776448, - "path": "136" - } - } - ], - "defaultMode": -556258965 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 273818613, - "containerPort": -522879476, - "protocol": "N", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "587" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "倱\u003c": "920" - }, - "requests": { - "贩j瀉ǚ": "455" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "Ɋł/擇ɦĽ胚O醔ɍ厶耈 ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "腿ħ缶.蒅!a", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1154560741, - "timeoutSeconds": -1376537100, - "periodSeconds": 1100645882, - "successThreshold": -532628939, - "failureThreshold": -748919010 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": -1477511050, - "host": "192", - "scheme": ";栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -709825668, - "timeoutSeconds": -1144400181, - "periodSeconds": -379514302, - "successThreshold": 173916181, - "failureThreshold": -813624408 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 200992434, - "host": "199", - "scheme": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": "206", - "host": "207", - "scheme": "ɋ瀐\u003cɉ", - "httpHeaders": [ - { - "name": "208", - "value": "209" - } - ] - }, - "tcpSocket": { - "port": -1334904807, - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "å睫}堇硲蕵ɢ苆", - "imagePullPolicy": "猀2:ö", - "securityContext": { - "capabilities": { - "add": [ - "5w垁鷌辪虽U珝Żwʮ馜üNșƶ" - ], - "drop": [ - "ĩĉş蝿ɖȃ賲鐅臬" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": -5734988028820567880, - "runAsGroup": -2242514391033939790, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛隖\u003cǶ" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -2093767566, - "containerPort": -1718681455, - "protocol": "*ʙ嫙\u0026蒒5靇C'ɵK.", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": false - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "372" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": false - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "I粛E煹ǐƲE'iþŹʣy": "236" - }, - "requests": { - "漘Z剚敍0)": "908" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "嵔棂p儼Ƿ裚瓶釆Ɗ+j忊Ŗȫ焗捏ĨFħ", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ɟ踡肒Ao/樝fw[Řż丩Ž", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": "248", - "host": "249" - }, - "initialDelaySeconds": 988932710, - "timeoutSeconds": -1537700150, - "periodSeconds": -1815868713, - "successThreshold": 105707873, - "failureThreshold": -188803670 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": 1908572031, - "host": "252", - "scheme": "ɳ,ǿ飏騀呣ǎfǣ萭旿@掇l", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1584001904, - "timeoutSeconds": -839281354, - "periodSeconds": 2035347577, - "successThreshold": -819723498, - "failureThreshold": -150133456 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": 1447898632, - "host": "259", - "scheme": "þ蛯ɰ荶lj", - "httpHeaders": [ - { - "name": "260", - "value": "261" - } - ] - }, - "tcpSocket": { - "port": -1180080716, - "host": "262" - } - }, - "preStop": { - "exec": { - "command": [ - "263" - ] - }, - "httpGet": { - "path": "264", - "port": 1428207963, - "host": "265", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": 270599701, - "host": "268" - } - } - }, - "terminationMessagePath": "269", - "terminationMessagePolicy": "ʤî萨zvt莭", - "imagePullPolicy": "悮坮Ȣ幟ļ腻ŬƩȿ0矀Kʝ瘴I\\p", - "securityContext": { - "capabilities": { - "add": [ - "sĨɆâĺɗŹ倗S晒嶗U" - ], - "drop": [ - "_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "270", - "role": "271", - "type": "272", - "level": "273" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "274": "275" - }, - "serviceAccountName": "276", - "serviceAccount": "277", - "automountServiceAccountToken": true, - "nodeName": "278", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "279", - "role": "280", - "type": "281", - "level": "282" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "283", - "value": "284" - } - ] - }, - "imagePullSecrets": [ - { - "name": "285" - } - ], - "hostname": "286", - "subdomain": "287", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "288", - "operator": "胵輓Ɔ", - "values": [ - "289" - ] - } - ], - "matchFields": [ - { - "key": "290", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "291" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "292", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "295" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "302" - ], - "topologyKey": "303" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "310" - ], - "topologyKey": "311" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "318" - ], - "topologyKey": "319" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "326" - ], - "topologyKey": "327" - } - } - ] - } - }, - "schedulerName": "328", - "tolerations": [ - { - "key": "329", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "330", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "331", - "hostnames": [ - "332" - ] - } - ], - "priorityClassName": "333", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "334" - ], - "searches": [ - "335" - ], - "options": [ - { - "name": "336", - "value": "337" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "338", - "enableServiceLinks": true - } - }, - "ttlSecondsAfterFinished": -494764712 - }, - "status": { - "conditions": [ - { - "type": "ĄÇ稕Eɒ杞¹t骳ɰɰUʜʔŜ0¢啥Ƶ", - "status": "殴妓ɡ?}缫,豇\\ù", - "lastProbeTime": "2743-03-12T20:23:06Z", - "lastTransitionTime": "2631-09-01T15:48:23Z", - "reason": "339", - "message": "340" - } - ], - "active": 1540211725, - "succeeded": 1500591701, - "failed": -919140264 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.pb deleted file mode 100644 index 26aff149df349a0ae6234dc28e055646a3eb7471..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4793 zcmY*d3sh7`n(k_1WbVnM_r`I0d$R^RGYP@m%dNU^C%Y=XBI1i^WSHdKfDe3wfT(11 z4kCggC<-WV6i^Tp5fMRAcIa;C#*K-YjhbZEb)57o?j&k5nV6Wke|392nLhg8d;hBc zSylh{7i+aF6Z0$+nVOQlY*lOyW+UR$Q`!38FmA*k!XnXzBs-F0?9Ls*=H1SYjq$#Q z;uI}#xbz)oo2QBoRGn0uyWjM-^sOM{u%asxkp)%KL`{(ufrz^H*_ZhrZ`)nBEhEmf z@WjqD+jlfxt~-yCpJb5AA}w_+gLKx6g*8!(855fsi}q(`i|j*)No3})6SFp~;&M4o+_Y8Z z=ucL)*f@hXIG$U|8`Gw30A7y4$(*4jBrW99Ii2V6I?kZ8<;{9d0?eGpZv_EEW=-rm zMqI)faU1#dz~87DIV55A;#o$DuHoe(r*bP7YMAGE{mtcD_{DL?JnnTvHnLgsoDDWS zkK;CAE<@%;!!RV3HzYk{PMndh;5lzBkvMLe!6(fH*XHSq^{m(VrE)YP*P@ta#F#~a zHH+A07Kz;~iZK?~A!ncKq_4j^*jDwDx3Ymer>Lr;3W_F(nxv^RmIb0Yx@!LOyFY&a z*Joj+u2!F{y7$Rv*Pc#}1a&f~Q&Q=h3UAt)R~WM-*vt~P|7z%*=Rlf!ueZF~UFy#F z?d^6C%or(1h%t-0fHYI4St7Y+Ni0TBfsDkOKuU%+>3o6t_DRMpWA>{jnF;VhSZiv$ zJbK($)j!(c><{kSr;HRYoEJRO{0{p(^IWd?;`ZR#CdGZkTUqHpdT?YfVaG5LqNdt@ z3DP2KmL+R#|KU%63N39EvRi-+e#?rruQBgrL==hv4`lFP)@){3CleX7BCyW@#jIH& z*1GaG=UD5hfv%nhVHKvy3=D#1MY5XWV&NUsDT;Ml>y@8=3{A0{6*a~TNko&)iar%3 zKEaq(A<2|#R&hKCtAsVHq7@}Vq^e{=$*{*&P@*a}v#Q$7sup8bbz;_p$snoWsVLP3 zPmt0?8|6sgHDp}_8BJLO5ozGRrdg4lj_R3K#;n6q>#)>1EVVAi0AH5`lnYWiNa;#G zl9-p_LuDyT1D0<4Cnf?50t*D&Ac?9fM74ZVeq)Tq`PaL{;RF_==jkM330%1JWjI zxDNR8PM<>zOeKU)6^BCp!ETMfBBW~+@h~P*HL!1~rxFfDA`t@b;$$FF91uAkh_cZ1 z5voN@DPp2RVG)V_CDl#CC5rWbTWbFvt{_n+7BjJQNM%FTY2YNBU^s(dGL&Fl(4s!N z{b4EHG!Kz2tW+c+rJ_iuN!A~J`e5G=p>f!|G*hB%$-DCP-OsPxxSkH_5*5qsk8XY& zUW!kV6=p~@JV}E=Nr#O>!;*zt=mq-378CGgVyAAw@c<%)XUJ^#SSEr%0R^JkfM|9g zdQ1c%0#RUyV9P!CwB@L%C*?c-ubtGyl7F9r7RmxJ|1(_i+Snafi-GI=hQ zqbiANo5FxmLLe7}=qzkDLUTdFxe!%idxmC}Kmve>u;!1xVGj^dwxT$Vd4U-}$KPE$ z)4!vCq-?l*=F6)c7hV0M&0FcAC!zwWd&)OZmF(SB5z1b@4rW`MOa7cZ#8`%UhQj@Wewr{M*sQVX(F_DJUBu}9-`zD#JnAH zL>AaM&mf@y}znw&RZF|n;4O?Wbd-D#y z;j7;7?LD}J{gpA?In7tm66@*n?1@SoY7OM|&RQ9_4z?2!JpKvy4V`UD-itCtT{X6luLI#m?eaafY$hm@D%J&o40I*;hAm z{F^gVI3sNXuW`%x>7p@1SCsY{#&kg-}` zt84@jIeQbAy?R9`oV4{)2B&T1bUk*yk;d`70SzMk%{9{SvZR%n68q%LEvvJ#v)Bkx zAT}T(+lC^m16QlV(8AV)fbUIa!fc*1G8P)frVO4W7+GAps_M|!uH|IVw}_QQep%Kk zPUN^`yf|mGsLwK{bD7z1{EkoK4Khmw=@pQsOlW+?1+S-N^TrZ>3oA0O5H5S=Dv4i~ zvN+d(xtqCkUNe?1=H@}8%i*ntHp58bjW{FYXRcz{w<5F+y=JBtF~<9xUI)oo#4G$9NV1{xIXp~eCum?a z+u&f3<7doPGdU6X90$#|VI*yU;`H>A6~;OOvRW2I8tTj^O@r~}unCr|haio${2Cr| zJ)16Sh7KGd5eO$52?j}lG-E($5n7mcBP;HH&=^Klb_0_NZSOy)EXz>fGO-1NO(`~2 zOEDCK7Zw40AO(yoDO>`*ZzO~1G|rF~83uf18=L5=&Vf4yq#qVQPQsb1xViFHV_NQl zxTSEPg8PGcb`BUP3K%D94Fak)p+9GC)6;0s65F(2wD+1}79N*z&g#cRsR~ zJovaU+zHyzd^#S2c&t!SsKOzL#|mwCln}&YS{*S|N2m=lH02>khbE3PA45E*WeTg% z=Ec3pJk31e%{%p42)PLq2Id!mo?~nLdAmkxC{L2*co{rW6^iB<+GQYG%)feyUHP%T z@*>Ys=Y_!bngzka3QwtbPj4V^=g=VnbM(Y_nFLy2F*MScJ|4q2)&Rb-CflD0>=<;m z`UiUX!2TT*Qz*b-jfMuEKZa}!MGQE)#p`t*eZu<9?aN<1g6!{ie^K&8^qFt+^TR0; z8ZO_h2_K(iI6i41>rm_xKrNIuihJMQIX@VdrbvmQTYvGlzC)$UN86npi+!b4p3>F+ zzEh5VZ&MFW96l20=~y0Y9tb%GWex;>hTa&88gLZLgR71cVYAjtCt7bjY9EJM3ND5H zimuH2d!o?RTJRtY=BWTF$zkVIb_#V)gU-fe>3;vV5q3+rKkq8^9X%B@d$=pzQ{`*# z_Ou0yk9v=G19>3j;h>LI6L`al~KW@t*fk zk^gXapz@5TDX_aRg!5RV=SRbB2z8@5aIuBX+2*cu)p&}g{l=3QC~x)GSG*DL-tFJE z+t*qQhguZu_nxZ?Hgzh||1omFaem}PwDZUJ4;=mCRNey=x)g~b{8>j7 z$q*C)QFNo7mDhsd4e=2g52i#om7*xy;1odlr0?o=WV(gSjOhz1qTNAAYwPa&OL(tM zz5e~Kitq-rZDQVHUUC*Viu`SrGd=r#^$kP)*}?YHo-R+zztIrbrK;;LR9I_ avp2>>fBb*WOJjuVWqHh%>UqVg* diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.yaml deleted file mode 100644 index c5ca8e114..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.after_roundtrip.yaml +++ /dev/null @@ -1,721 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -1888486794478722029 - backoffLimit: -596764376 - completions: -1821918122 - manualSelector: true - parallelism: -1978186127 - selector: - matchExpressions: - - key: U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t - operator: In - values: - - M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5 - matchLabels: - l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5: "" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 986128679342689494 - finalizers: - - "42" - generateName: "31" - generation: 1142764901371385923 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: true - kind: "40" - name: "41" - uid: ºɖgȏ哙ȍȂ揲ȼDDŽL - resourceVersion: "6776706803848751502" - selfLink: "33" - uid: Šĸů湙騘&啞 - spec: - activeDeadlineSeconds: -11671145270681448 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "292" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "293" - matchFields: - - key: "294" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "295" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "288" - operator: 胵輓Ɔ - values: - - "289" - matchFields: - - key: "290" - operator: ØœȠƬQg鄠[颐o - values: - - "291" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "310" - topologyKey: "311" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "302" - topologyKey: "303" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "326" - topologyKey: "327" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "318" - topologyKey: "319" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: false - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "372" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: false - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 悮坮Ȣ幟ļ腻ŬƩȿ0矀Kʝ瘴I\p - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "259" - httpHeaders: - - name: "260" - value: "261" - path: "258" - port: 1447898632 - scheme: þ蛯ɰ荶lj - tcpSocket: - host: "262" - port: -1180080716 - preStop: - exec: - command: - - "263" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "264" - port: 1428207963 - tcpSocket: - host: "268" - port: 270599701 - livenessProbe: - exec: - command: - - "242" - failureThreshold: -188803670 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ɟ踡肒Ao/樝fw[Řż丩Ž - initialDelaySeconds: 988932710 - periodSeconds: -1815868713 - successThreshold: 105707873 - tcpSocket: - host: "249" - port: "248" - timeoutSeconds: -1537700150 - name: "216" - ports: - - containerPort: -1718681455 - hostIP: "222" - hostPort: -2093767566 - name: "221" - protocol: '*ʙ嫙&蒒5靇C''ɵK.' - readinessProbe: - exec: - command: - - "250" - failureThreshold: -150133456 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "251" - port: 1908572031 - scheme: ɳ,ǿ飏騀呣ǎfǣ萭旿@掇l - initialDelaySeconds: 1584001904 - periodSeconds: 2035347577 - successThreshold: -819723498 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -839281354 - resources: - limits: - I粛E煹ǐƲE'iþŹʣy: "236" - requests: - 漘Z剚敍0): "908" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - sĨɆâĺɗŹ倗S晒嶗U - drop: - - _ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "273" - role: "271" - type: "272" - user: "270" - stdin: true - stdinOnce: true - terminationMessagePath: "269" - terminationMessagePolicy: ʤî萨zvt莭 - tty: true - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: 嵔棂p儼Ƿ裚瓶釆Ɗ+j忊Ŗȫ焗捏ĨFħ - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "334" - options: - - name: "336" - value: "337" - searches: - - "335" - enableServiceLinks: true - hostAliases: - - hostnames: - - "332" - ip: "331" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "286" - imagePullSecrets: - - name: "285" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "587" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 猀2:ö - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: 200992434 - scheme: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "207" - httpHeaders: - - name: "208" - value: "209" - path: "205" - port: "206" - scheme: ɋ瀐<ɉ - tcpSocket: - host: "210" - port: -1334904807 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -748919010 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 腿ħ缶.蒅!a - initialDelaySeconds: 1154560741 - periodSeconds: 1100645882 - successThreshold: -532628939 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -1376537100 - name: "156" - ports: - - containerPort: -522879476 - hostIP: "162" - hostPort: 273818613 - name: "161" - protocol: "N" - readinessProbe: - exec: - command: - - "190" - failureThreshold: -813624408 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: -1477511050 - scheme: ;栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼 - initialDelaySeconds: -709825668 - periodSeconds: -379514302 - successThreshold: 173916181 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: -1144400181 - resources: - limits: - 倱<: "920" - requests: - 贩j瀉ǚ: "455" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - drop: - - ĩĉş蝿ɖȃ賲鐅臬 - privileged: false - procMount: 芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛隖<Ƕ - readOnlyRootFilesystem: true - runAsGroup: -2242514391033939790 - runAsNonRoot: false - runAsUser: -5734988028820567880 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdin: true - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: å睫}堇硲蕵ɢ苆 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: Ɋł/擇ɦĽ胚O醔ɍ厶耈  - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "278" - nodeSelector: - "274": "275" - priority: -852112760 - priorityClassName: "333" - readinessGates: - - conditionType: "" - runtimeClassName: "338" - schedulerName: "328" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "282" - role: "280" - type: "281" - user: "279" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "283" - value: "284" - serviceAccount: "277" - serviceAccountName: "276" - shareProcessNamespace: false - subdomain: "287" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "329" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "330" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 903876536 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: "" - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 坼É/pȿŘ阌Ŗ怳 - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1532914928 - items: - - key: "108" - mode: 1825892582 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -388204860 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: 1539635748 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "770" - resource: "101" - emptyDir: - medium: z徃鷢6ȥ啕禗Ǐ2 - sizeLimit: "387" - fc: - fsType: "103" - lun: -573382936 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -347579237 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: bJ5ʬ昹ʞĹ鑑6NJPM饣` - iscsi: - chapAuthDiscovery: true - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -539733119 - portals: - - "69" - readOnly: true - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -556258965 - sources: - - configMap: - items: - - key: "133" - mode: -1305215109 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -239847982 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "908" - resource: "131" - secret: - items: - - key: "125" - mode: -1629040033 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 8048348966862776448 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -963895759 - items: - - key: "61" - mode: 2022312348 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - ttlSecondsAfterFinished: -494764712 -status: - active: 1540211725 - conditions: - - lastProbeTime: "2743-03-12T20:23:06Z" - lastTransitionTime: "2631-09-01T15:48:23Z" - message: "340" - reason: "339" - status: 殴妓ɡ?}缫,豇\ù - type: ĄÇ稕Eɒ杞¹t骳ɰɰUʜʔŜ0¢啥Ƶ - failed: -919140264 - succeeded: 1500591701 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.json deleted file mode 100644 index 5c1ca81ff..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.json +++ /dev/null @@ -1,1063 +0,0 @@ -{ - "kind": "Job", - "apiVersion": "batch/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "parallelism": -1978186127, - "completions": -1821918122, - "activeDeadlineSeconds": -1888486794478722029, - "backoffLimit": -596764376, - "selector": { - "matchLabels": { - "l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "Šĸů湙騘\u0026啞", - "resourceVersion": "6776706803848751502", - "generation": 1142764901371385923, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 986128679342689494, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "ºɖgȏ哙ȍȂ揲ȼDDŽL", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "bJ5ʬ昹ʞĹ鑑6NJPM饣`" - }, - "emptyDir": { - "medium": "z徃鷢6ȥ啕禗Ǐ2", - "sizeLimit": "387" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -347579237, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 903876536, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 2022312348 - } - ], - "defaultMode": -963895759, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -539733119, - "iscsiInterface": "67", - "fsType": "68", - "readOnly": true, - "portals": [ - "69" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "770" - }, - "mode": 1539635748 - } - ], - "defaultMode": -388204860 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -573382936, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": 1825892582 - } - ], - "defaultMode": 1532914928, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "", - "fsType": "121", - "readOnly": false, - "kind": "坼É/pȿŘ阌Ŗ怳" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1629040033 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "908" - }, - "mode": -239847982 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -1305215109 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 8048348966862776448, - "path": "136" - } - } - ], - "defaultMode": -556258965 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 273818613, - "containerPort": -522879476, - "protocol": "N", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "587" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "倱\u003c": "920" - }, - "requests": { - "贩j瀉ǚ": "455" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "Ɋł/擇ɦĽ胚O醔ɍ厶耈 ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "腿ħ缶.蒅!a", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1154560741, - "timeoutSeconds": -1376537100, - "periodSeconds": 1100645882, - "successThreshold": -532628939, - "failureThreshold": -748919010 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": -1477511050, - "host": "192", - "scheme": ";栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -709825668, - "timeoutSeconds": -1144400181, - "periodSeconds": -379514302, - "successThreshold": 173916181, - "failureThreshold": -813624408 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 200992434, - "host": "199", - "scheme": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": "206", - "host": "207", - "scheme": "ɋ瀐\u003cɉ", - "httpHeaders": [ - { - "name": "208", - "value": "209" - } - ] - }, - "tcpSocket": { - "port": -1334904807, - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "å睫}堇硲蕵ɢ苆", - "imagePullPolicy": "猀2:ö", - "securityContext": { - "capabilities": { - "add": [ - "5w垁鷌辪虽U珝Żwʮ馜üNșƶ" - ], - "drop": [ - "ĩĉş蝿ɖȃ賲鐅臬" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": -5734988028820567880, - "runAsGroup": -2242514391033939790, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛隖\u003cǶ" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -2093767566, - "containerPort": -1718681455, - "protocol": "*ʙ嫙\u0026蒒5靇C'ɵK.", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": false - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "372" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": false - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "I粛E煹ǐƲE'iþŹʣy": "236" - }, - "requests": { - "漘Z剚敍0)": "908" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "嵔棂p儼Ƿ裚瓶釆Ɗ+j忊Ŗȫ焗捏ĨFħ", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ɟ踡肒Ao/樝fw[Řż丩Ž", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": "248", - "host": "249" - }, - "initialDelaySeconds": 988932710, - "timeoutSeconds": -1537700150, - "periodSeconds": -1815868713, - "successThreshold": 105707873, - "failureThreshold": -188803670 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": 1908572031, - "host": "252", - "scheme": "ɳ,ǿ飏騀呣ǎfǣ萭旿@掇l", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1584001904, - "timeoutSeconds": -839281354, - "periodSeconds": 2035347577, - "successThreshold": -819723498, - "failureThreshold": -150133456 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": 1447898632, - "host": "259", - "scheme": "þ蛯ɰ荶lj", - "httpHeaders": [ - { - "name": "260", - "value": "261" - } - ] - }, - "tcpSocket": { - "port": -1180080716, - "host": "262" - } - }, - "preStop": { - "exec": { - "command": [ - "263" - ] - }, - "httpGet": { - "path": "264", - "port": 1428207963, - "host": "265", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": 270599701, - "host": "268" - } - } - }, - "terminationMessagePath": "269", - "terminationMessagePolicy": "ʤî萨zvt莭", - "imagePullPolicy": "悮坮Ȣ幟ļ腻ŬƩȿ0矀Kʝ瘴I\\p", - "securityContext": { - "capabilities": { - "add": [ - "sĨɆâĺɗŹ倗S晒嶗U" - ], - "drop": [ - "_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "270", - "role": "271", - "type": "272", - "level": "273" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "274": "275" - }, - "serviceAccountName": "276", - "serviceAccount": "277", - "automountServiceAccountToken": true, - "nodeName": "278", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "279", - "role": "280", - "type": "281", - "level": "282" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "283", - "value": "284" - } - ] - }, - "imagePullSecrets": [ - { - "name": "285" - } - ], - "hostname": "286", - "subdomain": "287", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "288", - "operator": "胵輓Ɔ", - "values": [ - "289" - ] - } - ], - "matchFields": [ - { - "key": "290", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "291" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "292", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "295" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "302" - ], - "topologyKey": "303" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "310" - ], - "topologyKey": "311" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "318" - ], - "topologyKey": "319" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "326" - ], - "topologyKey": "327" - } - } - ] - } - }, - "schedulerName": "328", - "tolerations": [ - { - "key": "329", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "330", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "331", - "hostnames": [ - "332" - ] - } - ], - "priorityClassName": "333", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "334" - ], - "searches": [ - "335" - ], - "options": [ - { - "name": "336", - "value": "337" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "338", - "enableServiceLinks": true - } - }, - "ttlSecondsAfterFinished": -494764712 - }, - "status": { - "conditions": [ - { - "type": "ĄÇ稕Eɒ杞¹t骳ɰɰUʜʔŜ0¢啥Ƶ", - "status": "殴妓ɡ?}缫,豇\\ù", - "lastProbeTime": "2743-03-12T20:23:06Z", - "lastTransitionTime": "2631-09-01T15:48:23Z", - "reason": "339", - "message": "340" - } - ], - "active": 1540211725, - "succeeded": 1500591701, - "failed": -919140264 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v1.Job.pb deleted file mode 100644 index 5f0b8d189669e5f457c78cc036b3355f6ea73a1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4825 zcmY*d3sh7`n(k_%GWVFI_r`I0d$R^RGYP@m%dNU^C$lQPBI1i^WSHdKfDe3wfT(11 z4j_UeC<-WV6i^Tp5fMRAcAy)&absd;qb8Yk9Vh*YJBgZ1CMG8CU)>&0wvYbz-oNU9 zR@MLg#dY;eghiqaNp>Vh*&RCrO?w>en`6E8 zMM;|fNXa{nR(B=uuRNtV_Ppt7?p;MDU`1CXA`7adiJBrS0ugoXvoG^L&fQa+n-*hQ zd~(;>9XlJY)LuY|V;Q8fNJ}2aAe}X1VO<1c#>8gEqWzg!*`5pKuEKXSoJGU?(xS{5 z3nmSvo3WH_#&Qw*9ZXf&$$`=$PkB+GsmfW;E%VfN51mVjc9*~B-Jcuj?K|WscpJ2- zQ5NPIn69zm%vgBptcms8!|xUU_lMs-f*-P6`>wv`LGaaD=DK?8kN#6053&y;CZ1Wi zLCn~+hRfzSam#j@qd!^IqGJr+;COC1Z_Jpn33yosCv%1tm#~;i<#e9M8#sf`mbdCz zaWHcMza0b&8BA|r#ATcjvzgxr{LPw?MdH>jons{F8eS=KDz|#EhIx+H-(0zkUm9a9 z;9fUmBa=1H+hoHFIBpZ>(qvvV3`0_RL(0* zE=MBbi(t+m#w-e~S;RK8NbF`&jIuZnJ9?d`ynR)H*2rC7Hgd@TRSMg)vKl%`9R2uLjS% z52m>GdCIC>C9XX0zAjh)tdabVNlIvqBoz|X z@dEQLte1@0uf{Ty;DxZ(!_!q!guV@$Uef3VZuaBwfz#LMb<1!)|$Q}pZ*kF>Ih`F02|_v6>D!p&Z)2n6g3_= z5Ra_c%(6}DOvz>y$AYj*ShFfxQ9MMdN*0s|XFvrds$w&% zs@<$=QD#*qW=)t1k{X_ll5Ow=DNVFdjs#xADrg|1DeE924gA+ME3(s3J>ANfby#{G zmR^UY*TpE{>ym)7K}rWHUCBcd^D=y>kbJYQ0ZX_26BC97fdztXkVI7#BAUM`yE(?< z_}jhVPy*@t!8oz_FJAsK6s--u#RyXrJfs6?JRO#)4#jG!Mw1y(gawtg(1%9(y48F2 zPu{WCyPrJxbWDV)5lw(0OwD2px-hW=5!=weP_{(bveiU+N)!;40MWWoBpuaZln6FD zN^qo!Jm;zFAKD$A<{EHT1}cl42faCG&Lak<5<;hngF*jb_l98+(lv^B7!#=)*vHgU z2?ryQ2!VHTDiA3Kh#U(F%iMAh{XPq>Zaim#ri+ZHU9`zln4`xnP@ts zvO()Ka1u%|oJlYlOt3C!5g*<8u!L@!N5~dZDw3d5QKZu(>kmJDu>XhPIP6`TDN(lM zT>bjq=htuENQHEXisjBnx4sQ6#iz&$GvFWr(O^*0VWZHnWZ^b?fj+Ut1bms;satS7 zfJmVkGTSwd2_sNofv7ehnjMH96-J0a6c{4da^H2ODpWtM`*ZvMGZd|TLeyxLr@iVW z|A7N?pssM{%kH!Dc`8Sy&ZlxzB~fkD7%)l*V-Zt(XW@#h_wks9r7 zty{hI56((w|L48Oofo5M@KEc3s5T4pM3SaM(kZw zm-}ak(ANI&C>?o(5{nV@cF+-7U}HclR7)n@WO?+{?!Dt|)E!vgN$xYRjtm5v_61sV zJo}qQ_O2dj@|T|U9vYbL-CMXJ=nY+eB1=E>1}Y-zu9WCh2u0MBojS0D<+s6-G^4FYlclt|uMs^2{ zLy-+53bsvTo(12#FCTqBw9RcM$|vmfph~E-zXp|x6jb@y{k-ELm5OXPh1AfDDk{`2 znu3br{9F{$psfSGp8ldYuftQ<;cE2sH8}eHJ1;m-3?Fw52)>4#`J;8d%Ip=Io^jNy(M-ty*XcdvVIMEqcjKc{ET>X;3% zo!~$cl?I|h=^`qWE~1JN9eeU`cjRB+IX%(@4UB2}j%(N2iu-EM$+6>Iozs5pYdGTS z@m<`XgU~L7N)f82wT=+jPQjRo1bgc7t877y=;_hsp$>m(Yj#$qfA7gQTF{6@txDKt zig4d<{knJm<<9R=WaS^rZvD{Qc;^u!6s5o!dUjMf28a?1M2!ccC7^fE8kD|>3Azu} zk7xq8uVHXsBbMfGP9AR_Jn(S`vYH~iIRzi=s=41Wgd!h>hc)+4SW_Bvb?nJ~^NF zVe!166^-sAP0FTcP?PfzP^E}c^#H0J$CM*RW0asV4f-+vjA``2^A(--b`&}*ICn0U5?MQ)E3p$ZJ^ONejV*ygXI#hAJ=HCvO`AOp`E-uVy2F?n zGqcysyvHn%I7wc`K_e!oa}qq@AAwFTm4h$LkqlAiI0YE1vp8-er@=Vkl2;^28)Yea z4!?#ojP=HRnKyWTkrB(jx|!qOoSnoODVunWTfxs1jXAuLn!wG`4PMS#DDy;4TE2}Z zNeci%;56r=l`@wCM!_Rl#slHcDxnww=@U=!HfK$MXg>jPy6( zNWm)-R;Nqs*xB3GW@KitVWL26Kt#3`g;)8nRfV91tqua;o6MxSJZGdWHjFK4Jc%cuUW6b2zGvD|1*dT7{}KsUVs zlCgwW_<4|IL+7)2n9NSnz-Xqy!63)anyaRBBJep5ns38M*aXGt>1C^o4FqJh42U$? zsZW^!<11kkEZYb{8teIWJmh*VUDPxkI6^!SPBh{Sk_2hSfY2heFz<$!-}|5;gsSW& zCK=k^e@_sul;l2g;3G>`6FisROPSk1yRBJ>H0R32oQi^4Oek=p@ zV;P_y!(9$eC|0oL?<1}}WG#O9aY3jPw4;S|JP7evp`uWQgAk7u+U_Vph{v=#VyKQ# z8)Rt8gOCnQ9A!R%cudO_R-w&{d69XVdCHS>`n4c(6DSPKFZ|ud*ZFdGk5p5hB+Icf zc%&*6%`vpgK(wfTbr(7FqP=B>?qiON{vFke0tMyn63^Zqf6lJK!vyB&@$WKmw7z0! zq%nOwfp4q4AS6wZ5<|EC z;%~i&OID7yIog+cODf$ZYkj?^hx$B?-8g>usK2{?WuU1)=opka5cnB-V<>9CQ7jLy z4V?^`wO&5ia`SQfIM|$jIpkMlMb1Csh1Qn*haoUe21rQ^Ij6GIsB;>0HYQ8g`*)0x zTe|&uXMy+F>8QEGovH3hZ(EnUHBfZSbF4FP;h?K5h{W{fK;Y)^BvH^dQjQ4mQe+S$ zb_#vSPr4=nHX#vId$@a#FQ@c1cc?L-w*(^Sj~j!kyBBu+tTBK;7(i2s)5rOWbI8=8 zo@~hLZ<)#RR!@Cy;9Rl)Qk%c(;xga9I_HJ0qaA@`wL|?2T~)(9>_o?L$8KkXziz;N z(6z&VrYlgo(_eT3kd}fVrk-LE+`$rnAeJL~_aEuKdE-iVCjt;h8k*j9?=OGvI5Kee z7K(k@UsS(jDBpF#RWxPV@JY{^mfw31clnD8eeE@#(k_2>O`!VVYa>1XAK)?cGC@?w z3f%cZ0FRX*z)u)D>Z@yi&vUrYccjZ-an{}F-%}98d92a%qv2MBy3jnh*h1%QbJaSl z-GwuL?4X~5Q=~(y3nqQ>w(aQ_y|n|QzD#7QIu_P3ZQ(_cl8D` z-9~1{^aT~s?joeMcJ=->wAZHJ_U=&3k5e3qTy?dbL#D{~*2_MWf5{Z;?z!ncO{Y~kT;f4zD?(PFZP thmW{=KVM*h8>T4gButcqh>~6BZjOok_犵殇ŕ-Ɂ - values: - - "293" - matchFields: - - key: "294" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "295" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "288" - operator: 胵輓Ɔ - values: - - "289" - matchFields: - - key: "290" - operator: ØœȠƬQg鄠[颐o - values: - - "291" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "310" - topologyKey: "311" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "302" - topologyKey: "303" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "326" - topologyKey: "327" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "318" - topologyKey: "319" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: false - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "372" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: false - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 悮坮Ȣ幟ļ腻ŬƩȿ0矀Kʝ瘴I\p - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "259" - httpHeaders: - - name: "260" - value: "261" - path: "258" - port: 1447898632 - scheme: þ蛯ɰ荶lj - tcpSocket: - host: "262" - port: -1180080716 - preStop: - exec: - command: - - "263" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "264" - port: 1428207963 - tcpSocket: - host: "268" - port: 270599701 - livenessProbe: - exec: - command: - - "242" - failureThreshold: -188803670 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ɟ踡肒Ao/樝fw[Řż丩Ž - initialDelaySeconds: 988932710 - periodSeconds: -1815868713 - successThreshold: 105707873 - tcpSocket: - host: "249" - port: "248" - timeoutSeconds: -1537700150 - name: "216" - ports: - - containerPort: -1718681455 - hostIP: "222" - hostPort: -2093767566 - name: "221" - protocol: '*ʙ嫙&蒒5靇C''ɵK.' - readinessProbe: - exec: - command: - - "250" - failureThreshold: -150133456 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "251" - port: 1908572031 - scheme: ɳ,ǿ飏騀呣ǎfǣ萭旿@掇l - initialDelaySeconds: 1584001904 - periodSeconds: 2035347577 - successThreshold: -819723498 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -839281354 - resources: - limits: - I粛E煹ǐƲE'iþŹʣy: "236" - requests: - 漘Z剚敍0): "908" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - sĨɆâĺɗŹ倗S晒嶗U - drop: - - _ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "273" - role: "271" - type: "272" - user: "270" - stdin: true - stdinOnce: true - terminationMessagePath: "269" - terminationMessagePolicy: ʤî萨zvt莭 - tty: true - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: 嵔棂p儼Ƿ裚瓶釆Ɗ+j忊Ŗȫ焗捏ĨFħ - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "334" - options: - - name: "336" - value: "337" - searches: - - "335" - enableServiceLinks: true - hostAliases: - - hostnames: - - "332" - ip: "331" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "286" - imagePullSecrets: - - name: "285" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "587" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 猀2:ö - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: 200992434 - scheme: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "207" - httpHeaders: - - name: "208" - value: "209" - path: "205" - port: "206" - scheme: ɋ瀐<ɉ - tcpSocket: - host: "210" - port: -1334904807 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -748919010 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 腿ħ缶.蒅!a - initialDelaySeconds: 1154560741 - periodSeconds: 1100645882 - successThreshold: -532628939 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -1376537100 - name: "156" - ports: - - containerPort: -522879476 - hostIP: "162" - hostPort: 273818613 - name: "161" - protocol: "N" - readinessProbe: - exec: - command: - - "190" - failureThreshold: -813624408 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: -1477511050 - scheme: ;栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼 - initialDelaySeconds: -709825668 - periodSeconds: -379514302 - successThreshold: 173916181 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: -1144400181 - resources: - limits: - 倱<: "920" - requests: - 贩j瀉ǚ: "455" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - drop: - - ĩĉş蝿ɖȃ賲鐅臬 - privileged: false - procMount: 芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛隖<Ƕ - readOnlyRootFilesystem: true - runAsGroup: -2242514391033939790 - runAsNonRoot: false - runAsUser: -5734988028820567880 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdin: true - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: å睫}堇硲蕵ɢ苆 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: Ɋł/擇ɦĽ胚O醔ɍ厶耈  - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "278" - nodeSelector: - "274": "275" - priority: -852112760 - priorityClassName: "333" - readinessGates: - - conditionType: "" - runtimeClassName: "338" - schedulerName: "328" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "282" - role: "280" - type: "281" - user: "279" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "283" - value: "284" - serviceAccount: "277" - serviceAccountName: "276" - shareProcessNamespace: false - subdomain: "287" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "329" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "330" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 903876536 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: "" - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 坼É/pȿŘ阌Ŗ怳 - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1532914928 - items: - - key: "108" - mode: 1825892582 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -388204860 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: 1539635748 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "770" - resource: "101" - emptyDir: - medium: z徃鷢6ȥ啕禗Ǐ2 - sizeLimit: "387" - fc: - fsType: "103" - lun: -573382936 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -347579237 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: bJ5ʬ昹ʞĹ鑑6NJPM饣` - iscsi: - chapAuthDiscovery: true - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -539733119 - portals: - - "69" - readOnly: true - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -556258965 - sources: - - configMap: - items: - - key: "133" - mode: -1305215109 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -239847982 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "908" - resource: "131" - secret: - items: - - key: "125" - mode: -1629040033 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 8048348966862776448 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -963895759 - items: - - key: "61" - mode: 2022312348 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - ttlSecondsAfterFinished: -494764712 -status: - active: 1540211725 - conditions: - - lastProbeTime: "2743-03-12T20:23:06Z" - lastTransitionTime: "2631-09-01T15:48:23Z" - message: "340" - reason: "339" - status: 殴妓ɡ?}缫,豇\ù - type: ĄÇ稕Eɒ杞¹t骳ɰɰUʜʔŜ0¢啥Ƶ - failed: -919140264 - succeeded: 1500591701 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.json deleted file mode 100644 index 902c31b7a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.json +++ /dev/null @@ -1,1107 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "schedule": "24", - "startingDeadlineSeconds": -8817021678265088399, - "concurrencyPolicy": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "suspend": false, - "jobTemplate": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɭîcP$Iņ", - "resourceVersion": "14926502199533077124", - "generation": -1382274715716350298, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -8477149434422619117, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "+½H牗洝尿彀亞螩", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "4%a鯿r", - "apiVersion": "40" - } - ] - }, - "spec": { - "parallelism": -110482268, - "completions": -54954325, - "activeDeadlineSeconds": 8559948711650432497, - "backoffLimit": -907310967, - "selector": { - "matchLabels": { - "WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U": "UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9" - }, - "matchExpressions": [ - { - "key": "GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0", - "operator": "NotIn", - "values": [ - "YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "52", - "generateName": "53", - "namespace": "54", - "selfLink": "55", - "uid": "³ƞsɁ8^", - "resourceVersion": "8685765401091182865", - "generation": 2849222499405033998, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -671981934547025691, - "labels": { - "57": "58" - }, - "annotations": { - "59": "60" - }, - "ownerReferences": [ - { - "apiVersion": "61", - "kind": "62", - "name": "63", - "uid": "Ǡ/淹\\韲翁\u0026ʢ", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "64" - ], - "clusterName": "65", - "managedFields": [ - { - "manager": "66", - "operation": "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ", - "apiVersion": "67" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "72", - "hostPath": { - "path": "73", - "type": "ȸŹăȲϤĦ" - }, - "emptyDir": { - "medium": "芝M 宸@Z^嫫猤痈", - "sizeLimit": "179" - }, - "gcePersistentDisk": { - "pdName": "74", - "fsType": "75", - "partition": -2127673004 - }, - "awsElasticBlockStore": { - "volumeID": "76", - "fsType": "77", - "partition": 717712876 - }, - "gitRepo": { - "repository": "78", - "revision": "79", - "directory": "80" - }, - "secret": { - "secretName": "81", - "items": [ - { - "key": "82", - "path": "83", - "mode": 147264373 - } - ], - "defaultMode": -1249460160, - "optional": false - }, - "nfs": { - "server": "84", - "path": "85" - }, - "iscsi": { - "targetPortal": "86", - "iqn": "87", - "lun": 1029074742, - "iscsiInterface": "88", - "fsType": "89", - "portals": [ - "90" - ], - "secretRef": { - "name": "91" - }, - "initiatorName": "92" - }, - "glusterfs": { - "endpoints": "93", - "path": "94" - }, - "persistentVolumeClaim": { - "claimName": "95", - "readOnly": true - }, - "rbd": { - "monitors": [ - "96" - ], - "image": "97", - "fsType": "98", - "pool": "99", - "user": "100", - "keyring": "101", - "secretRef": { - "name": "102" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "103", - "fsType": "104", - "secretRef": { - "name": "105" - }, - "readOnly": true, - "options": { - "106": "107" - } - }, - "cinder": { - "volumeID": "108", - "fsType": "109", - "secretRef": { - "name": "110" - } - }, - "cephfs": { - "monitors": [ - "111" - ], - "path": "112", - "user": "113", - "secretFile": "114", - "secretRef": { - "name": "115" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "116", - "datasetUUID": "117" - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "857" - }, - "mode": -1305215109 - } - ], - "defaultMode": 186998979 - }, - "fc": { - "targetWWNs": [ - "123" - ], - "lun": 1179332384, - "fsType": "124", - "readOnly": true, - "wwids": [ - "125" - ] - }, - "azureFile": { - "secretName": "126", - "shareName": "127" - }, - "configMap": { - "name": "128", - "items": [ - { - "key": "129", - "path": "130", - "mode": 926891073 - } - ], - "defaultMode": -1558831136, - "optional": true - }, - "vsphereVolume": { - "volumePath": "131", - "fsType": "132", - "storagePolicyName": "133", - "storagePolicyID": "134" - }, - "quobyte": { - "registry": "135", - "volume": "136", - "user": "137", - "group": "138", - "tenant": "139" - }, - "azureDisk": { - "diskName": "140", - "diskURI": "141", - "cachingMode": "ÙæNǚ錯ƶRq", - "fsType": "142", - "readOnly": true, - "kind": "?瞲Ť倱\u003cįXŋ朘瑥A徙" - }, - "photonPersistentDisk": { - "pdID": "143", - "fsType": "144" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "145", - "items": [ - { - "key": "146", - "path": "147", - "mode": -1120128337 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "148", - "fieldRef": { - "apiVersion": "149", - "fieldPath": "150" - }, - "resourceFieldRef": { - "containerName": "151", - "resource": "152", - "divisor": "580" - }, - "mode": 1669671203 - } - ] - }, - "configMap": { - "name": "153", - "items": [ - { - "key": "154", - "path": "155", - "mode": -1950133943 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "156", - "expirationSeconds": -8801560367353238479, - "path": "157" - } - } - ], - "defaultMode": -427769948 - }, - "portworxVolume": { - "volumeID": "158", - "fsType": "159" - }, - "scaleIO": { - "gateway": "160", - "system": "161", - "secretRef": { - "name": "162" - }, - "protectionDomain": "163", - "storagePool": "164", - "storageMode": "165", - "volumeName": "166", - "fsType": "167", - "readOnly": true - }, - "storageos": { - "volumeName": "168", - "volumeNamespace": "169", - "fsType": "170", - "secretRef": { - "name": "171" - } - }, - "csi": { - "driver": "172", - "readOnly": true, - "fsType": "173", - "volumeAttributes": { - "174": "175" - }, - "nodePublishSecretRef": { - "name": "176" - } - } - } - ], - "initContainers": [ - { - "name": "177", - "image": "178", - "command": [ - "179" - ], - "args": [ - "180" - ], - "workingDir": "181", - "ports": [ - { - "name": "182", - "hostPort": 1971383046, - "containerPort": 1154560741, - "protocol": "涁İ而踪鄌eÞȦY籎顒ǥ", - "hostIP": "183" - } - ], - "envFrom": [ - { - "prefix": "184", - "configMapRef": { - "name": "185", - "optional": false - }, - "secretRef": { - "name": "186", - "optional": false - } - } - ], - "env": [ - { - "name": "187", - "value": "188", - "valueFrom": { - "fieldRef": { - "apiVersion": "189", - "fieldPath": "190" - }, - "resourceFieldRef": { - "containerName": "191", - "resource": "192", - "divisor": "832" - }, - "configMapKeyRef": { - "name": "193", - "key": "194", - "optional": true - }, - "secretKeyRef": { - "name": "195", - "key": "196", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°": "465" - }, - "requests": { - "oɘ檲ɨ銦妰黖ȓ": "793" - } - }, - "volumeMounts": [ - { - "name": "197", - "mountPath": "198", - "subPath": "199", - "mountPropagation": "oĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵ɢ", - "subPathExpr": "200" - } - ], - "volumeDevices": [ - { - "name": "201", - "devicePath": "202" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 290736426, - "host": "205", - "scheme": "ö", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": "208", - "host": "209" - }, - "initialDelaySeconds": 322201525, - "timeoutSeconds": -1784033404, - "periodSeconds": 66472042, - "successThreshold": 2130088978, - "failureThreshold": -1064240304 - }, - "readinessProbe": { - "exec": { - "command": [ - "210" - ] - }, - "httpGet": { - "path": "211", - "port": -566408554, - "host": "212", - "scheme": "劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立", - "httpHeaders": [ - { - "name": "213", - "value": "214" - } - ] - }, - "tcpSocket": { - "port": -31530684, - "host": "215" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": "218", - "host": "219", - "scheme": "n芞QÄȻȊ+?ƭ峧Y栲茇竛", - "httpHeaders": [ - { - "name": "220", - "value": "221" - } - ] - }, - "tcpSocket": { - "port": -592581809, - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": 1702578303, - "host": "225", - "scheme": "NŬɨǙÄr蛏豈ɃHŠơŴĿ", - "httpHeaders": [ - { - "name": "226", - "value": "227" - } - ] - }, - "tcpSocket": { - "port": -1047607622, - "host": "228" - } - } - }, - "terminationMessagePath": "229", - "terminationMessagePolicy": "ȉ彂", - "imagePullPolicy": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "securityContext": { - "capabilities": { - "add": [ - "þŹʣy豎@ɀ羭," - ], - "drop": [ - "OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "230", - "role": "231", - "type": "232", - "level": "233" - }, - "runAsUser": -2405783144562371879, - "runAsGroup": 3861209808960510792, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^拜" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "234", - "image": "235", - "command": [ - "236" - ], - "args": [ - "237" - ], - "workingDir": "238", - "ports": [ - { - "name": "239", - "hostPort": 1385030458, - "containerPort": 427196286, - "protocol": "o/樝fw[Řż丩Ž", - "hostIP": "240" - } - ], - "envFrom": [ - { - "prefix": "241", - "configMapRef": { - "name": "242", - "optional": false - }, - "secretRef": { - "name": "243", - "optional": true - } - } - ], - "env": [ - { - "name": "244", - "value": "245", - "valueFrom": { - "fieldRef": { - "apiVersion": "246", - "fieldPath": "247" - }, - "resourceFieldRef": { - "containerName": "248", - "resource": "249", - "divisor": "932" - }, - "configMapKeyRef": { - "name": "250", - "key": "251", - "optional": false - }, - "secretKeyRef": { - "name": "252", - "key": "253", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "9ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ę": "638" - }, - "requests": { - "ǂ\u003e5姣\u003e懔%熷": "440" - } - }, - "volumeMounts": [ - { - "name": "254", - "readOnly": true, - "mountPath": "255", - "subPath": "256", - "mountPropagation": "奺Ȋ礶惇¸t颟.鵫ǚ", - "subPathExpr": "257" - } - ], - "volumeDevices": [ - { - "name": "258", - "devicePath": "259" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "Ȥ藠3.", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - }, - "initialDelaySeconds": -1389418722, - "timeoutSeconds": 851018015, - "periodSeconds": 596942561, - "successThreshold": -1880980172, - "failureThreshold": -161485752 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "«丯Ƙ枛牐ɺ皚", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": -1934111455, - "host": "274" - }, - "initialDelaySeconds": 766864314, - "timeoutSeconds": 1146016612, - "periodSeconds": 1495880465, - "successThreshold": -1032967081, - "failureThreshold": 59664438 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": "277", - "host": "278", - "scheme": "'", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -801430937, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": 1810980158, - "host": "284", - "scheme": "_ƮA攤/ɸɎ R§耶FfBl", - "httpHeaders": [ - { - "name": "285", - "value": "286" - } - ] - }, - "tcpSocket": { - "port": 1074486306, - "host": "287" - } - } - }, - "terminationMessagePath": "288", - "terminationMessagePolicy": "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ", - "imagePullPolicy": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "securityContext": { - "capabilities": { - "add": [ - "勅跦Opwǩ曬逴褜1Ø" - ], - "drop": [ - "ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ]" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "289", - "role": "290", - "type": "291", - "level": "292" - }, - "runAsUser": -6977492437661738751, - "runAsGroup": -1073698526114922943, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ƙt叀碧闳ȩr嚧ʣq埄趛屡" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "昕Ĭ", - "terminationGracePeriodSeconds": 5474461944206441349, - "activeDeadlineSeconds": 5072234809910109224, - "dnsPolicy": "苧yñKJɐ扵Gƚ绤fʀļ腩", - "nodeSelector": { - "293": "294" - }, - "serviceAccountName": "295", - "serviceAccount": "296", - "automountServiceAccountToken": true, - "nodeName": "297", - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "298", - "role": "299", - "type": "300", - "level": "301" - }, - "runAsUser": 439010468654957223, - "runAsGroup": 3282902794794440567, - "runAsNonRoot": true, - "supplementalGroups": [ - -9161399525777020538 - ], - "fsGroup": -1883725333589566834, - "sysctls": [ - { - "name": "302", - "value": "303" - } - ] - }, - "imagePullSecrets": [ - { - "name": "304" - } - ], - "hostname": "305", - "subdomain": "306", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "307", - "operator": "议Ƭƶ氩Ȩ\u003c6鄰簳°Ļǟi\u0026", - "values": [ - "308" - ] - } - ], - "matchFields": [ - { - "key": "309", - "operator": "%皧V垾现葢ŵ橨鬶l獕;跣Hǝcw媀瓄", - "values": [ - "310" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1244119841, - "preference": { - "matchExpressions": [ - { - "key": "311", - "operator": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "values": [ - "312" - ] - } - ], - "matchFields": [ - { - "key": "313", - "operator": "/»頸+SÄ蚃ɣľ)酊龨Î", - "values": [ - "314" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "so-h-9-15v-5925a-x12a-214-3s--gg93h.0-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26-2/P.-_u": "CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.134-5-.q6H5" - }, - "matchExpressions": [ - { - "key": "z---883d-v3j4-7y-p---up52--sjo7799-sk5/i-.M.U_-m.-P.y9", - "operator": "NotIn", - "values": [ - "C_-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.O" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1095116290, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1": "R8D_X._B__-P---_H-.___._8" - }, - "matchExpressions": [ - { - "key": "W-y8", - "operator": "NotIn", - "values": [ - "Q.6.I--2_9.v.--_.--4QQ.-s.H.Hu-k-x" - ] - } - ] - }, - "namespaces": [ - "329" - ], - "topologyKey": "330" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "337" - ], - "topologyKey": "338" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "345" - ], - "topologyKey": "346" - } - } - ] - } - }, - "schedulerName": "347", - "tolerations": [ - { - "key": "348", - "operator": "抷qTfZȻ干m謆7", - "value": "349", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "350", - "hostnames": [ - "351" - ] - } - ], - "priorityClassName": "352", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "353" - ], - "searches": [ - "354" - ], - "options": [ - { - "name": "355", - "value": "356" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "357", - "enableServiceLinks": true - } - }, - "ttlSecondsAfterFinished": 212353165 - } - }, - "successfulJobsHistoryLimit": 315828133, - "failedJobsHistoryLimit": -1686694849 - }, - "status": { - "active": [ - { - "kind": "358", - "namespace": "359", - "name": "360", - "uid": "侅", - "apiVersion": "361", - "resourceVersion": "362", - "fieldPath": "363" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.pb deleted file mode 100644 index fc4709beed4d2ebba73081c2c365783a252e5931..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5218 zcmYjV33L=yy6)S6Fm*0!621ITE=7s>8w@YGvgSmKpa*X4pSNuo5 z*X7%jlVBAD-lCyAs~{Cx1=)o#OjX!NBh@am#uaHh7RLvN z4tjR{7PP6v!uqE%RwCKH-udbK-<^tlP>vjSPlKn#tT-6nzsKteH@G~N+d~88p~2cX zOG4!|rUStOnY9wdVI`{5O0)zfaKe3ZRr2F6dUrsal1>zvCxWiaqR6YNKqRf>$hA*P z_q-GS3PGUzyRIDH)jNK|h0>-lR*`3|qL4vb1X^NdJhWtoRaBh!JvDY=eyH+b@az$@ z_o8{B=-O~&xbawmRg_{ei)x`&)LiHuSfaC&rK#zWQy23bR*8qmK7D*j`_-;@Zqh$w z>%MN9v8Mg&?*IL3Ns-&!>g+*G3iI^x6j?LoFIdWP8fRoIF5vL$dCDrxDHt2uIE?v% zjcHke0fXXF*10q>m)mGyE>|gp= z7X*z!s%g8gU9B6hYxF(=;G4x?jDCEx>!W`}!IxD~q*3r?NHm4dbTU>25={}Ew(;ia z!GWRQM4I|S7mKG|YE7^z0*`2_DUfOkq}r1(Sz#ag&D3CH`HW}B8+`i%N5g~r$A`x| zgF`*R0aupyIOw8j_SU0J)nvx161HqIb1yVR_AdXRcgR!f@AHg|wR<|)hnRcAt|KqU znI{KlrM+r)cZYVihYr5UPGTkqs_ytDERtBOD%<~S-%#au(Or$RIBn3aK(}iD>XRcM zSs_P%4m}$5=nkvK6Zmp8fxQzXV5W)oZ#oXowZB!=(DScb8fGvs28uP=Zb?jlHfYmS zd;e!wzntK-YFdI-(|OAbtIp4|q)cS2y0F5MVbw_ztkXr-s!MiD${o;_Z7A(Ac*1&J zby#)HY1Q?F2?Ea(5W)-^2Tx|9j7MlgWI;%dXr~;95*XU4&`ve;9@^GuTen-Bbc(>| zJwzV@bV4BjAv!@w3DH5BM}>4feD@&K5~MKG>8r*@dv)j~yyI@@B2)n()GVY)+`oQ& zZ*L3-oBQqBl`eEYog>LDY-CLBJqg)YG$ah&)aSmoqoo1YK6Bdc(^XK_vrKH=%Ham zqn0SZk~9`|T&7^k0Olpc!I(l-D?$`}g+R){n@B)NGeF3RAe1B!YBIWv4kD%!F>%p& zC7Jyt)lG4bRQoCOM&x!Hu}?DzbSQ?oL=ll=n9DSJIf}Wg@o{aJYYyMxi0PBXs6JVu zGh}<9b=PMO07JclPvP*O9dauXyXc=dTSO^Im|d5KbwMV7FZ885QONQ>~9YrY!*5Cc@l-jsmKl+ z^V2jMtD@Q(-#s6RrM$hVBv?Bk?u!eT4_o8Ux?DG7`^o#S-0Y*fb`zx)GRtCCHCCot z^`ES&JXlo)Cp*@CZSa(@F4))*s;mwShwAI24nXyUanW%f^NT4KTTA`tW=y-oLi;7# z@E)PL z?b8E;f!%Q_W1Zom{<&)tH$=5-@ae^frB)tke+=e%JyUD$GI z_iFe?J2YZkCyPi=ZWxb)^Gh@A; zk@2S2r%@-OpM%Kj?2}VN^_|Pi#?jF3-tgX5@44Wyu1HV+hS09sUxx?U=8qp)RbU=3 z3hgh0WdhHpPx<`&Kc9>hVm6hQVG$0>hl5p>-hF|ik=A~*qtksLa?lkQ>8%Nl9?4x6 z?%F|@5_TG$E3%I1V)WVFk@o6eKi;R#HQm8q~YdlBm_bgdTOBo zY71~Sry0vr@ykGz1@>1d+8kpAXC%U!WbogZk72pN85%1v6PM%d+HHrOi#dgR5ikNQ zwgN*p;9pw2n8W$pd~W_0oQ1bh7in&byyJrj%w@!Q5wnPS4z^?)7N_g!2If-?F3m6& zY}E{Ikpbj?6KE-f@Hk~Tx9lY@KXo&Q0W2&lm{aF~i^=Srt2u*P3h)^alg#EZ&k5MT zqOrgLq~Sim$vL2DCFTm&88|~rHxyv=izS28Bp~*{>S1&XH_=L&cmS^=&BC`M=mo$^{;0YbBo z;h3rBzLC(ugZ`F{zO&my{ey97d7Z2bp`a19idU zeSxlstHbQ*jf@=d@28`xE+*;J1(h-s0j?Jy^n^#VJtcvvP*L?Wfy&@e*ZgPQM?*)t z-!PjiLM?sa+H-+cGJ)`XN+$Ds^hkn>2NXTROVJbi_`VNZD0*V^veWABj~>qS8bWyW z-*^taj1XS8oqO+tL&#p%)Oq6jC>eEV^9rb z;zz>=Tpz};x{U4vop8MZAvq{lk>R5hW#tO8`~^M5Jn5Q-+cq*d-c`Cd%>tX;(|Yxtw@{q6wLE_VIt nlUN2irZSIFL-4JLz}_Z^3ec)+qvZ+E5(o$~1BB?XI4%DVzHZW2 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.yaml deleted file mode 100644 index 9c48de55a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.after_roundtrip.yaml +++ /dev/null @@ -1,753 +0,0 @@ -apiVersion: batch/v1beta1 -kind: CronJob -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - concurrencyPolicy: ěĂ凗蓏Ŋ蛊ĉy緅縕 - failedJobsHistoryLimit: -1686694849 - jobTemplate: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -8477149434422619117 - finalizers: - - "37" - generateName: "26" - generation: -1382274715716350298 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - manager: "39" - operation: 4%a鯿r - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: false - kind: "35" - name: "36" - uid: +½H牗洝尿彀亞螩 - resourceVersion: "14926502199533077124" - selfLink: "28" - uid: ɭîcP$Iņ - spec: - activeDeadlineSeconds: 8559948711650432497 - backoffLimit: -907310967 - completions: -54954325 - manualSelector: false - parallelism: -110482268 - selector: - matchExpressions: - - key: GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0 - operator: NotIn - values: - - YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G - matchLabels: - WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U: UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9 - template: - metadata: - annotations: - "59": "60" - clusterName: "65" - creationTimestamp: null - deletionGracePeriodSeconds: -671981934547025691 - finalizers: - - "64" - generateName: "53" - generation: 2849222499405033998 - labels: - "57": "58" - managedFields: - - apiVersion: "67" - manager: "66" - operation: \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - name: "52" - namespace: "54" - ownerReferences: - - apiVersion: "61" - blockOwnerDeletion: true - controller: true - kind: "62" - name: "63" - uid: Ǡ/淹\韲翁&ʢ - resourceVersion: "8685765401091182865" - selfLink: "55" - uid: ³ƞsɁ8^ - spec: - activeDeadlineSeconds: 5072234809910109224 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "311" - operator: 拉Œɥ颶妧Ö闊 鰔澝qV訆 - values: - - "312" - matchFields: - - key: "313" - operator: /»頸+SÄ蚃ɣľ)酊龨Î - values: - - "314" - weight: -1244119841 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "307" - operator: 议Ƭƶ氩Ȩ<6鄰簳°Ļǟi& - values: - - "308" - matchFields: - - key: "309" - operator: '%皧V垾现葢ŵ橨鬶l獕;跣Hǝcw媀瓄' - values: - - "310" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: W-y8 - operator: NotIn - values: - - Q.6.I--2_9.v.--_.--4QQ.-s.H.Hu-k-x - matchLabels: - 6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1: R8D_X._B__-P---_H-.___._8 - namespaces: - - "329" - topologyKey: "330" - weight: -1095116290 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: z---883d-v3j4-7y-p---up52--sjo7799-sk5/i-.M.U_-m.-P.y9 - operator: NotIn - values: - - C_-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.O - matchLabels: - so-h-9-15v-5925a-x12a-214-3s--gg93h.0-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26-2/P.-_u: CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.134-5-.q6H5 - namespaces: - - "321" - topologyKey: "322" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "345" - topologyKey: "346" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "337" - topologyKey: "338" - automountServiceAccountToken: true - containers: - - args: - - "237" - command: - - "236" - env: - - name: "244" - value: "245" - valueFrom: - configMapKeyRef: - key: "251" - name: "250" - optional: false - fieldRef: - apiVersion: "246" - fieldPath: "247" - resourceFieldRef: - containerName: "248" - divisor: "932" - resource: "249" - secretKeyRef: - key: "253" - name: "252" - optional: true - envFrom: - - configMapRef: - name: "242" - optional: false - prefix: "241" - secretRef: - name: "243" - optional: true - image: "235" - imagePullPolicy: Ǖɳɷ9Ì崟¿瘦ɖ緕 - lifecycle: - postStart: - exec: - command: - - "275" - httpGet: - host: "278" - httpHeaders: - - name: "279" - value: "280" - path: "276" - port: "277" - scheme: '''' - tcpSocket: - host: "281" - port: -801430937 - preStop: - exec: - command: - - "282" - httpGet: - host: "284" - httpHeaders: - - name: "285" - value: "286" - path: "283" - port: 1810980158 - scheme: _ƮA攤/ɸɎ R§耶FfBl - tcpSocket: - host: "287" - port: 1074486306 - livenessProbe: - exec: - command: - - "260" - failureThreshold: -161485752 - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: Ȥ藠3. - initialDelaySeconds: -1389418722 - periodSeconds: 596942561 - successThreshold: -1880980172 - tcpSocket: - host: "267" - port: "266" - timeoutSeconds: 851018015 - name: "234" - ports: - - containerPort: 427196286 - hostIP: "240" - hostPort: 1385030458 - name: "239" - protocol: o/樝fw[Řż丩Ž - readinessProbe: - exec: - command: - - "268" - failureThreshold: 59664438 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "269" - port: "270" - scheme: «丯Ƙ枛牐ɺ皚 - initialDelaySeconds: 766864314 - periodSeconds: 1495880465 - successThreshold: -1032967081 - tcpSocket: - host: "274" - port: -1934111455 - timeoutSeconds: 1146016612 - resources: - limits: - 9ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ę: "638" - requests: - ǂ>5姣>懔%熷: "440" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 勅跦Opwǩ曬逴褜1Ø - drop: - - ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ] - privileged: true - procMount: ƙt叀碧闳ȩr嚧ʣq埄趛屡 - readOnlyRootFilesystem: true - runAsGroup: -1073698526114922943 - runAsNonRoot: false - runAsUser: -6977492437661738751 - seLinuxOptions: - level: "292" - role: "290" - type: "291" - user: "289" - stdin: true - stdinOnce: true - terminationMessagePath: "288" - terminationMessagePolicy: Zɾģ毋Ó6dz娝嘚庎D}埽uʎ - tty: true - volumeDevices: - - devicePath: "259" - name: "258" - volumeMounts: - - mountPath: "255" - mountPropagation: 奺Ȋ礶惇¸t颟.鵫ǚ - name: "254" - readOnly: true - subPath: "256" - subPathExpr: "257" - workingDir: "238" - dnsConfig: - nameservers: - - "353" - options: - - name: "355" - value: "356" - searches: - - "354" - dnsPolicy: 苧yñKJɐ扵Gƚ绤fʀļ腩 - enableServiceLinks: true - hostAliases: - - hostnames: - - "351" - ip: "350" - hostIPC: true - hostname: "305" - imagePullSecrets: - - name: "304" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: ^拜 - readOnlyRootFilesystem: true - runAsGroup: 3861209808960510792 - runAsNonRoot: true - runAsUser: -2405783144562371879 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - stdin: true - stdinOnce: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "297" - nodeSelector: - "293": "294" - priority: -895317190 - priorityClassName: "352" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: 昕Ĭ - runtimeClassName: "357" - schedulerName: "347" - securityContext: - fsGroup: -1883725333589566834 - runAsGroup: 3282902794794440567 - runAsNonRoot: true - runAsUser: 439010468654957223 - seLinuxOptions: - level: "301" - role: "299" - type: "300" - user: "298" - supplementalGroups: - - -9161399525777020538 - sysctls: - - name: "302" - value: "303" - serviceAccount: "296" - serviceAccountName: "295" - shareProcessNamespace: false - subdomain: "306" - terminationGracePeriodSeconds: 5474461944206441349 - tolerations: - - effect: 儉ɩ柀 - key: "348" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "349" - volumes: - - awsElasticBlockStore: - fsType: "77" - partition: 717712876 - volumeID: "76" - azureDisk: - cachingMode: ÙæNǚ錯ƶRq - diskName: "140" - diskURI: "141" - fsType: "142" - kind: ?瞲Ť倱<įXŋ朘瑥A徙 - readOnly: true - azureFile: - secretName: "126" - shareName: "127" - cephfs: - monitors: - - "111" - path: "112" - readOnly: true - secretFile: "114" - secretRef: - name: "115" - user: "113" - cinder: - fsType: "109" - secretRef: - name: "110" - volumeID: "108" - configMap: - defaultMode: -1558831136 - items: - - key: "129" - mode: 926891073 - path: "130" - name: "128" - optional: true - csi: - driver: "172" - fsType: "173" - nodePublishSecretRef: - name: "176" - readOnly: true - volumeAttributes: - "174": "175" - downwardAPI: - defaultMode: 186998979 - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1305215109 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "857" - resource: "122" - emptyDir: - medium: 芝M 宸@Z^嫫猤痈 - sizeLimit: "179" - fc: - fsType: "124" - lun: 1179332384 - readOnly: true - targetWWNs: - - "123" - wwids: - - "125" - flexVolume: - driver: "103" - fsType: "104" - options: - "106": "107" - readOnly: true - secretRef: - name: "105" - flocker: - datasetName: "116" - datasetUUID: "117" - gcePersistentDisk: - fsType: "75" - partition: -2127673004 - pdName: "74" - gitRepo: - directory: "80" - repository: "78" - revision: "79" - glusterfs: - endpoints: "93" - path: "94" - hostPath: - path: "73" - type: ȸŹăȲϤĦ - iscsi: - fsType: "89" - initiatorName: "92" - iqn: "87" - iscsiInterface: "88" - lun: 1029074742 - portals: - - "90" - secretRef: - name: "91" - targetPortal: "86" - name: "72" - nfs: - path: "85" - server: "84" - persistentVolumeClaim: - claimName: "95" - readOnly: true - photonPersistentDisk: - fsType: "144" - pdID: "143" - portworxVolume: - fsType: "159" - volumeID: "158" - projected: - defaultMode: -427769948 - sources: - - configMap: - items: - - key: "154" - mode: -1950133943 - path: "155" - name: "153" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "149" - fieldPath: "150" - mode: 1669671203 - path: "148" - resourceFieldRef: - containerName: "151" - divisor: "580" - resource: "152" - secret: - items: - - key: "146" - mode: -1120128337 - path: "147" - name: "145" - optional: false - serviceAccountToken: - audience: "156" - expirationSeconds: -8801560367353238479 - path: "157" - quobyte: - group: "138" - registry: "135" - tenant: "139" - user: "137" - volume: "136" - rbd: - fsType: "98" - image: "97" - keyring: "101" - monitors: - - "96" - pool: "99" - readOnly: true - secretRef: - name: "102" - user: "100" - scaleIO: - fsType: "167" - gateway: "160" - protectionDomain: "163" - readOnly: true - secretRef: - name: "162" - storageMode: "165" - storagePool: "164" - system: "161" - volumeName: "166" - secret: - defaultMode: -1249460160 - items: - - key: "82" - mode: 147264373 - path: "83" - optional: false - secretName: "81" - storageos: - fsType: "170" - secretRef: - name: "171" - volumeName: "168" - volumeNamespace: "169" - vsphereVolume: - fsType: "132" - storagePolicyID: "134" - storagePolicyName: "133" - volumePath: "131" - ttlSecondsAfterFinished: 212353165 - schedule: "24" - startingDeadlineSeconds: -8817021678265088399 - successfulJobsHistoryLimit: 315828133 - suspend: false -status: - active: - - apiVersion: "361" - fieldPath: "363" - kind: "358" - name: "360" - namespace: "359" - resourceVersion: "362" - uid: 侅 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.json deleted file mode 100644 index ce1cc183f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.json +++ /dev/null @@ -1,1110 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "schedule": "24", - "startingDeadlineSeconds": -8817021678265088399, - "concurrencyPolicy": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "suspend": false, - "jobTemplate": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɭîcP$Iņ", - "resourceVersion": "14926502199533077124", - "generation": -1382274715716350298, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -8477149434422619117, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "+½H牗洝尿彀亞螩", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "4%a鯿r", - "apiVersion": "40", - "fields": {"41":{"42":null}} - } - ] - }, - "spec": { - "parallelism": -110482268, - "completions": -54954325, - "activeDeadlineSeconds": 8559948711650432497, - "backoffLimit": -907310967, - "selector": { - "matchLabels": { - "WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U": "UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9" - }, - "matchExpressions": [ - { - "key": "GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0", - "operator": "NotIn", - "values": [ - "YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "52", - "generateName": "53", - "namespace": "54", - "selfLink": "55", - "uid": "³ƞsɁ8^", - "resourceVersion": "8685765401091182865", - "generation": 2849222499405033998, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -671981934547025691, - "labels": { - "57": "58" - }, - "annotations": { - "59": "60" - }, - "ownerReferences": [ - { - "apiVersion": "61", - "kind": "62", - "name": "63", - "uid": "Ǡ/淹\\韲翁\u0026ʢ", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "64" - ], - "clusterName": "65", - "managedFields": [ - { - "manager": "66", - "operation": "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ", - "apiVersion": "67", - "fields": {"68":{"69":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "72", - "hostPath": { - "path": "73", - "type": "ȸŹăȲϤĦ" - }, - "emptyDir": { - "medium": "芝M 宸@Z^嫫猤痈", - "sizeLimit": "179" - }, - "gcePersistentDisk": { - "pdName": "74", - "fsType": "75", - "partition": -2127673004 - }, - "awsElasticBlockStore": { - "volumeID": "76", - "fsType": "77", - "partition": 717712876 - }, - "gitRepo": { - "repository": "78", - "revision": "79", - "directory": "80" - }, - "secret": { - "secretName": "81", - "items": [ - { - "key": "82", - "path": "83", - "mode": 147264373 - } - ], - "defaultMode": -1249460160, - "optional": false - }, - "nfs": { - "server": "84", - "path": "85" - }, - "iscsi": { - "targetPortal": "86", - "iqn": "87", - "lun": 1029074742, - "iscsiInterface": "88", - "fsType": "89", - "portals": [ - "90" - ], - "secretRef": { - "name": "91" - }, - "initiatorName": "92" - }, - "glusterfs": { - "endpoints": "93", - "path": "94" - }, - "persistentVolumeClaim": { - "claimName": "95", - "readOnly": true - }, - "rbd": { - "monitors": [ - "96" - ], - "image": "97", - "fsType": "98", - "pool": "99", - "user": "100", - "keyring": "101", - "secretRef": { - "name": "102" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "103", - "fsType": "104", - "secretRef": { - "name": "105" - }, - "readOnly": true, - "options": { - "106": "107" - } - }, - "cinder": { - "volumeID": "108", - "fsType": "109", - "secretRef": { - "name": "110" - } - }, - "cephfs": { - "monitors": [ - "111" - ], - "path": "112", - "user": "113", - "secretFile": "114", - "secretRef": { - "name": "115" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "116", - "datasetUUID": "117" - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "857" - }, - "mode": -1305215109 - } - ], - "defaultMode": 186998979 - }, - "fc": { - "targetWWNs": [ - "123" - ], - "lun": 1179332384, - "fsType": "124", - "readOnly": true, - "wwids": [ - "125" - ] - }, - "azureFile": { - "secretName": "126", - "shareName": "127" - }, - "configMap": { - "name": "128", - "items": [ - { - "key": "129", - "path": "130", - "mode": 926891073 - } - ], - "defaultMode": -1558831136, - "optional": true - }, - "vsphereVolume": { - "volumePath": "131", - "fsType": "132", - "storagePolicyName": "133", - "storagePolicyID": "134" - }, - "quobyte": { - "registry": "135", - "volume": "136", - "user": "137", - "group": "138", - "tenant": "139" - }, - "azureDisk": { - "diskName": "140", - "diskURI": "141", - "cachingMode": "ÙæNǚ錯ƶRq", - "fsType": "142", - "readOnly": true, - "kind": "?瞲Ť倱\u003cįXŋ朘瑥A徙" - }, - "photonPersistentDisk": { - "pdID": "143", - "fsType": "144" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "145", - "items": [ - { - "key": "146", - "path": "147", - "mode": -1120128337 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "148", - "fieldRef": { - "apiVersion": "149", - "fieldPath": "150" - }, - "resourceFieldRef": { - "containerName": "151", - "resource": "152", - "divisor": "580" - }, - "mode": 1669671203 - } - ] - }, - "configMap": { - "name": "153", - "items": [ - { - "key": "154", - "path": "155", - "mode": -1950133943 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "156", - "expirationSeconds": -8801560367353238479, - "path": "157" - } - } - ], - "defaultMode": -427769948 - }, - "portworxVolume": { - "volumeID": "158", - "fsType": "159" - }, - "scaleIO": { - "gateway": "160", - "system": "161", - "secretRef": { - "name": "162" - }, - "protectionDomain": "163", - "storagePool": "164", - "storageMode": "165", - "volumeName": "166", - "fsType": "167", - "readOnly": true - }, - "storageos": { - "volumeName": "168", - "volumeNamespace": "169", - "fsType": "170", - "secretRef": { - "name": "171" - } - }, - "csi": { - "driver": "172", - "readOnly": true, - "fsType": "173", - "volumeAttributes": { - "174": "175" - }, - "nodePublishSecretRef": { - "name": "176" - } - } - } - ], - "initContainers": [ - { - "name": "177", - "image": "178", - "command": [ - "179" - ], - "args": [ - "180" - ], - "workingDir": "181", - "ports": [ - { - "name": "182", - "hostPort": 1971383046, - "containerPort": 1154560741, - "protocol": "涁İ而踪鄌eÞȦY籎顒ǥ", - "hostIP": "183" - } - ], - "envFrom": [ - { - "prefix": "184", - "configMapRef": { - "name": "185", - "optional": false - }, - "secretRef": { - "name": "186", - "optional": false - } - } - ], - "env": [ - { - "name": "187", - "value": "188", - "valueFrom": { - "fieldRef": { - "apiVersion": "189", - "fieldPath": "190" - }, - "resourceFieldRef": { - "containerName": "191", - "resource": "192", - "divisor": "832" - }, - "configMapKeyRef": { - "name": "193", - "key": "194", - "optional": true - }, - "secretKeyRef": { - "name": "195", - "key": "196", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°": "465" - }, - "requests": { - "oɘ檲ɨ銦妰黖ȓ": "793" - } - }, - "volumeMounts": [ - { - "name": "197", - "mountPath": "198", - "subPath": "199", - "mountPropagation": "oĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵ɢ", - "subPathExpr": "200" - } - ], - "volumeDevices": [ - { - "name": "201", - "devicePath": "202" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 290736426, - "host": "205", - "scheme": "ö", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": "208", - "host": "209" - }, - "initialDelaySeconds": 322201525, - "timeoutSeconds": -1784033404, - "periodSeconds": 66472042, - "successThreshold": 2130088978, - "failureThreshold": -1064240304 - }, - "readinessProbe": { - "exec": { - "command": [ - "210" - ] - }, - "httpGet": { - "path": "211", - "port": -566408554, - "host": "212", - "scheme": "劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立", - "httpHeaders": [ - { - "name": "213", - "value": "214" - } - ] - }, - "tcpSocket": { - "port": -31530684, - "host": "215" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": "218", - "host": "219", - "scheme": "n芞QÄȻȊ+?ƭ峧Y栲茇竛", - "httpHeaders": [ - { - "name": "220", - "value": "221" - } - ] - }, - "tcpSocket": { - "port": -592581809, - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": 1702578303, - "host": "225", - "scheme": "NŬɨǙÄr蛏豈ɃHŠơŴĿ", - "httpHeaders": [ - { - "name": "226", - "value": "227" - } - ] - }, - "tcpSocket": { - "port": -1047607622, - "host": "228" - } - } - }, - "terminationMessagePath": "229", - "terminationMessagePolicy": "ȉ彂", - "imagePullPolicy": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "securityContext": { - "capabilities": { - "add": [ - "þŹʣy豎@ɀ羭," - ], - "drop": [ - "OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "230", - "role": "231", - "type": "232", - "level": "233" - }, - "runAsUser": -2405783144562371879, - "runAsGroup": 3861209808960510792, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^拜" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "234", - "image": "235", - "command": [ - "236" - ], - "args": [ - "237" - ], - "workingDir": "238", - "ports": [ - { - "name": "239", - "hostPort": 1385030458, - "containerPort": 427196286, - "protocol": "o/樝fw[Řż丩Ž", - "hostIP": "240" - } - ], - "envFrom": [ - { - "prefix": "241", - "configMapRef": { - "name": "242", - "optional": false - }, - "secretRef": { - "name": "243", - "optional": true - } - } - ], - "env": [ - { - "name": "244", - "value": "245", - "valueFrom": { - "fieldRef": { - "apiVersion": "246", - "fieldPath": "247" - }, - "resourceFieldRef": { - "containerName": "248", - "resource": "249", - "divisor": "932" - }, - "configMapKeyRef": { - "name": "250", - "key": "251", - "optional": false - }, - "secretKeyRef": { - "name": "252", - "key": "253", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "9ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ę": "638" - }, - "requests": { - "ǂ\u003e5姣\u003e懔%熷": "440" - } - }, - "volumeMounts": [ - { - "name": "254", - "readOnly": true, - "mountPath": "255", - "subPath": "256", - "mountPropagation": "奺Ȋ礶惇¸t颟.鵫ǚ", - "subPathExpr": "257" - } - ], - "volumeDevices": [ - { - "name": "258", - "devicePath": "259" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "Ȥ藠3.", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - }, - "initialDelaySeconds": -1389418722, - "timeoutSeconds": 851018015, - "periodSeconds": 596942561, - "successThreshold": -1880980172, - "failureThreshold": -161485752 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "«丯Ƙ枛牐ɺ皚", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": -1934111455, - "host": "274" - }, - "initialDelaySeconds": 766864314, - "timeoutSeconds": 1146016612, - "periodSeconds": 1495880465, - "successThreshold": -1032967081, - "failureThreshold": 59664438 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": "277", - "host": "278", - "scheme": "'", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -801430937, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": 1810980158, - "host": "284", - "scheme": "_ƮA攤/ɸɎ R§耶FfBl", - "httpHeaders": [ - { - "name": "285", - "value": "286" - } - ] - }, - "tcpSocket": { - "port": 1074486306, - "host": "287" - } - } - }, - "terminationMessagePath": "288", - "terminationMessagePolicy": "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ", - "imagePullPolicy": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "securityContext": { - "capabilities": { - "add": [ - "勅跦Opwǩ曬逴褜1Ø" - ], - "drop": [ - "ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ]" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "289", - "role": "290", - "type": "291", - "level": "292" - }, - "runAsUser": -6977492437661738751, - "runAsGroup": -1073698526114922943, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ƙt叀碧闳ȩr嚧ʣq埄趛屡" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "昕Ĭ", - "terminationGracePeriodSeconds": 5474461944206441349, - "activeDeadlineSeconds": 5072234809910109224, - "dnsPolicy": "苧yñKJɐ扵Gƚ绤fʀļ腩", - "nodeSelector": { - "293": "294" - }, - "serviceAccountName": "295", - "serviceAccount": "296", - "automountServiceAccountToken": true, - "nodeName": "297", - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "298", - "role": "299", - "type": "300", - "level": "301" - }, - "runAsUser": 439010468654957223, - "runAsGroup": 3282902794794440567, - "runAsNonRoot": true, - "supplementalGroups": [ - -9161399525777020538 - ], - "fsGroup": -1883725333589566834, - "sysctls": [ - { - "name": "302", - "value": "303" - } - ] - }, - "imagePullSecrets": [ - { - "name": "304" - } - ], - "hostname": "305", - "subdomain": "306", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "307", - "operator": "议Ƭƶ氩Ȩ\u003c6鄰簳°Ļǟi\u0026", - "values": [ - "308" - ] - } - ], - "matchFields": [ - { - "key": "309", - "operator": "%皧V垾现葢ŵ橨鬶l獕;跣Hǝcw媀瓄", - "values": [ - "310" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1244119841, - "preference": { - "matchExpressions": [ - { - "key": "311", - "operator": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "values": [ - "312" - ] - } - ], - "matchFields": [ - { - "key": "313", - "operator": "/»頸+SÄ蚃ɣľ)酊龨Î", - "values": [ - "314" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "so-h-9-15v-5925a-x12a-214-3s--gg93h.0-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26-2/P.-_u": "CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.134-5-.q6H5" - }, - "matchExpressions": [ - { - "key": "z---883d-v3j4-7y-p---up52--sjo7799-sk5/i-.M.U_-m.-P.y9", - "operator": "NotIn", - "values": [ - "C_-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.O" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1095116290, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1": "R8D_X._B__-P---_H-.___._8" - }, - "matchExpressions": [ - { - "key": "W-y8", - "operator": "NotIn", - "values": [ - "Q.6.I--2_9.v.--_.--4QQ.-s.H.Hu-k-x" - ] - } - ] - }, - "namespaces": [ - "329" - ], - "topologyKey": "330" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "337" - ], - "topologyKey": "338" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "345" - ], - "topologyKey": "346" - } - } - ] - } - }, - "schedulerName": "347", - "tolerations": [ - { - "key": "348", - "operator": "抷qTfZȻ干m謆7", - "value": "349", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "350", - "hostnames": [ - "351" - ] - } - ], - "priorityClassName": "352", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "353" - ], - "searches": [ - "354" - ], - "options": [ - { - "name": "355", - "value": "356" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "357", - "enableServiceLinks": true - } - }, - "ttlSecondsAfterFinished": 212353165 - } - }, - "successfulJobsHistoryLimit": 315828133, - "failedJobsHistoryLimit": -1686694849 - }, - "status": { - "active": [ - { - "kind": "358", - "namespace": "359", - "name": "360", - "uid": "侅", - "apiVersion": "361", - "resourceVersion": "362", - "fieldPath": "363" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.CronJob.pb deleted file mode 100644 index a8bb8bb08daa5dfa3dd215a5fa09aef863ecbbdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5266 zcmYjV33L=yy6)S6V4cxvOGkU!Ew+L&dW))CJ0pSt0V6^PVT&`C39AW^4G82t&&f(m zhn)mM0@(;zNPrL^D+En1>Bbos=IMZrI?khdabzC8IgUE| z+kXe#)C3!IH*D9~Nz5Ja)maN0p2Ap(Wczx@r|*AvD)K=&a@alfo)WX-V0iy-uPa>d z@>FgM^_PbRYT_&jol}@T1P5f+N)(5cs7@=<5}3dV_sNyXPrT^e4t7gAQDmM7x-N?% zuc`u(w6-JHJ}uq-PWUSXhVSpVa(rjc*a;U(o5WZ}p0$cX1|1O?iJ9>*k{wo2ao+#* z=!JQq%7ekPN6em!=7pkbLk;1E&IGF{#e5*Dg;r5>p~vBf&Q6pjr$JK4z&T z#4MEvSbF`5Nv&5q-nmKtAzRmV(~J%6Uw8fQ-%5(y<`!o+Vp5oAmZiv=F>n47j?*|J zV^INzSIt#cVot%>*vetd7i>t&5)4=rm$1$yiMiYc19Q2Wv4zZkJ#~(eu4}?75vzDj zvLwM^ZWfoe8spi#%B36J+;|JAe4KGZJY?{kEIO>Rl*A@VX#q1X5Akb?s{HSZ#y%NeG5n{Kd$}H#gwp;WM3#Re?lQM5k@6X=<>4@VAl1-q6M3DVJIjtct)Rnu-dfq5`R?!)Aqj__vdT z4dv6OkJbD32abgY_KyvXwFd{ggZ-{7?{VODD-D%fX{gXNeCsi$Y9eD*30pRixeo>+ zd$)hUJLoC(_j-m$TRm;;!_0kQ*O8aw%##B%(_S^ZxEeny2GmR1a6upuy+9kA8Mlgo3_Jq z>~9s-cmHsU!!!ogfUzdqEr|&*25y>a@B8fPm*bpPO-rz9I&Ya~)%ls0l<|yJ7nWNx ztU5`8bGpb{b;)i?f!n6bHk1a5s>69*by#)HY1Q?FaRSd1Ai^|i2Tx|Aj7RA}WPwPI z=%gHn5*RwE&`CA(UOLw3Shri8bc?{}Jxo6WOhVxRB07Oc3DHHFM}_n})CnMJ2~wD; z^ryx~XLXn*yyG62B9s9kR4k-T+z&s!w>RbooBQpW6)yAu-6PtXKI`rs4^oH(n!!ij zhkijS}jorOVVgmahW<(24`ME9IPpnwIW2FuMkKX z_$3k`(lj7)A`m4Bh?*c7=WsQ$Jdb#@W9gY}3S&Z_NCAvel2U>Q1_H$xWL9${yeWmn3$N#imhr$iN zRa@)LlCwWWz56k;!xp$@Ky+ACd9Z{=MHT*vXpX7GMh~f?lR5-04-h%FLt&dHGUJE{ za|DVp5XA`ufpNE=RMg|gB?fK6ujcC^`5^r(CNJZTP1$l zOR!aIF?+P^F&A#Da$pL>S?;Ci{Sq3y38S;L9hlBc0lbjD2zLU=ft6QfA1_Ha{QbyauMSXMDB(9Hg*Wl{IQw24N zo@*I6Q8YfrSj~iaE${xZn!uSrzwX{)o^2ex7^-ax90>K-6xJYS2J?VfRUYndTbNTY z))}ntjuf2@w;mSUwd@oACSUiWwUM%>S0XKYvdxcAv~&?#t%wY_CRkhJ>5eP^*0;UI^ZOrP zitq5hb>q7acl6F74~DDSx4BQhloZ$#tUNc@R~H&?U300(b3R<&2@e|B1LcqCQX&vJ z35b#cL|txq&9V;VEr1soeo`?yR1T5noj?Rzd-?TXW8dGZ?y#e{?SCviHuR0_??otn z*ST*(&4XWFHxd8s$r}ybAN^qrQz0S``6%*YA>2Qamr4*&KnXyVedy1V7(ZfGGU-e_ zT~*nK!Y5Dqx_y1Yo=$(qvr43_C)9Ihw8t|%*7*7qszmfUh`i1|H91t*zSL|O3GM0$ z?``p(3wCxyy8G6LcGmnR+<$c5*pZb5=JBG?{xUcw@ND{|&%gi6$ygy~Q)w9%;h}sa zSXJrW7dRGa=`-8f-3KBEU2&0~>fp$c+@;};?er*Nr_jA3>zFz^9BCSOda=7KTvr-6 z>KS<|Qtpb3bhvlXeG)q~j;XdX6;@_1VqVG5#_O<-1$hgWbt0$ZtpZ8MM3AtUkMY{I zy0{J?9my?JF}Q{Bg1TWHk7c|TAft+5ho%*fENOFoA;udrv6f8~Or|Dt*x1aHS-H!& z*@lLJU)CJFk|zp>Ur$}n37A`&im|*Q)6lt>Ie0{YBbTepli6HG0Zv%c#8r5Um?>d( z8_t1=%{el`I6pI6RdpTbXUS7v$8dCsfj4kCncJq{Mx^{K124+uxRv?qu!wP*kh-Nn z)aMwpaNefHE4a0sLFTBS-fE6pm;2A>LCN$}%Gof#8d4C^b$`O;yhzj0n zfIWN`~HNi>#nc+;A761Orvwa@^z1vs12jAg0#WdP0s`|A{Kwy~Tu65&iT z=x@x!aNOVwjTM;j%kVbsw!+RuoWi{bJ_28C0mN>=e`(Po4(D_8xOtm#7T!u#q`58f zjt|B$ml5Md%tGcl2+39~PSw*5%%>P!nqkb}q8Z#m1Db)2z@-q(5Gdacrycm3o6VpIA7P!SYQ8c&=L0y@SjU2p< zTfHbv&oLBkRsq;0LZuerCHx*u>OU9x!vyvQV*VR3&4_t*TaK2C^VbNFWCb|05G%3{ z{mgm{&1uF4tgI)iq2<6?@)j{2zWUTn&vVOU1Iq@tRKR&lsJnTETb-LFzhGbqbITzF zS)9tPH}Enj`ZKZ(1ymFSL(N$ZPTw$p{Z@|S3XDw<0-2Nelmcn(YzR7sw<@bL@O+vz z2A*q>tXVmWA;i;}M_1wHX?QD0;#PpuHX6`Mip$qyF}c9NdFtBRA-;EMs+hkKgTr1o zjC5`xnQJ70?Eo`?D0NU}B(()y1Qa8vDn&LLg*rOGLyb=W0@xLnG-BKSQEB%?yJ>pb z#ycMh_7!`2!bLm61IHs}J65|J{B0{jr*}n~_l+H+r$h>91dTG(v>2cf=u08!JOwm@ zPO+RG!_T(?jX-Oy0Brz@0UAN4xK>vH&@5m$X0o|&ICSu!zj=f2?6y$ffZ?vw%-yAt z;`83F8h%WNjgZC|xi?&MF3>{85uQ)UWS);cNziye z(IdPReX)=4`@n^wFE%ebt?s_)<4oHS!mIy=b7(U{c-?mHy$=o{ds$=qiSMIeAnwaO zS09bv*YWYU6Z!Z5=`M>wjkIdStd0tU;yfFKK{cj;v+n!Odi%1~ETR28Vruu-~&LOi2C+@NxAg35GWww1l@ zZ(Q74pOtl@_<_C612K@yyZ%*L5gTTB5c670Erp#y)lz>3KLTVA{6)k0(8jQ!qCp)9Wl2?Z6;bK zEb4g<|Df5`;~N~SE^zm6d@uE?U3Jc)xH9(-c6OquKK#aS3 z>>no@8_&P{8Hz{r4+1m&eP3MuVEF4xa?5姣>懔%熷: "440" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 勅跦Opwǩ曬逴褜1Ø - drop: - - ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ] - privileged: true - procMount: ƙt叀碧闳ȩr嚧ʣq埄趛屡 - readOnlyRootFilesystem: true - runAsGroup: -1073698526114922943 - runAsNonRoot: false - runAsUser: -6977492437661738751 - seLinuxOptions: - level: "292" - role: "290" - type: "291" - user: "289" - stdin: true - stdinOnce: true - terminationMessagePath: "288" - terminationMessagePolicy: Zɾģ毋Ó6dz娝嘚庎D}埽uʎ - tty: true - volumeDevices: - - devicePath: "259" - name: "258" - volumeMounts: - - mountPath: "255" - mountPropagation: 奺Ȋ礶惇¸t颟.鵫ǚ - name: "254" - readOnly: true - subPath: "256" - subPathExpr: "257" - workingDir: "238" - dnsConfig: - nameservers: - - "353" - options: - - name: "355" - value: "356" - searches: - - "354" - dnsPolicy: 苧yñKJɐ扵Gƚ绤fʀļ腩 - enableServiceLinks: true - hostAliases: - - hostnames: - - "351" - ip: "350" - hostIPC: true - hostname: "305" - imagePullSecrets: - - name: "304" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: ^拜 - readOnlyRootFilesystem: true - runAsGroup: 3861209808960510792 - runAsNonRoot: true - runAsUser: -2405783144562371879 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - stdin: true - stdinOnce: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "297" - nodeSelector: - "293": "294" - priority: -895317190 - priorityClassName: "352" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: 昕Ĭ - runtimeClassName: "357" - schedulerName: "347" - securityContext: - fsGroup: -1883725333589566834 - runAsGroup: 3282902794794440567 - runAsNonRoot: true - runAsUser: 439010468654957223 - seLinuxOptions: - level: "301" - role: "299" - type: "300" - user: "298" - supplementalGroups: - - -9161399525777020538 - sysctls: - - name: "302" - value: "303" - serviceAccount: "296" - serviceAccountName: "295" - shareProcessNamespace: false - subdomain: "306" - terminationGracePeriodSeconds: 5474461944206441349 - tolerations: - - effect: 儉ɩ柀 - key: "348" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "349" - volumes: - - awsElasticBlockStore: - fsType: "77" - partition: 717712876 - volumeID: "76" - azureDisk: - cachingMode: ÙæNǚ錯ƶRq - diskName: "140" - diskURI: "141" - fsType: "142" - kind: ?瞲Ť倱<įXŋ朘瑥A徙 - readOnly: true - azureFile: - secretName: "126" - shareName: "127" - cephfs: - monitors: - - "111" - path: "112" - readOnly: true - secretFile: "114" - secretRef: - name: "115" - user: "113" - cinder: - fsType: "109" - secretRef: - name: "110" - volumeID: "108" - configMap: - defaultMode: -1558831136 - items: - - key: "129" - mode: 926891073 - path: "130" - name: "128" - optional: true - csi: - driver: "172" - fsType: "173" - nodePublishSecretRef: - name: "176" - readOnly: true - volumeAttributes: - "174": "175" - downwardAPI: - defaultMode: 186998979 - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1305215109 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "857" - resource: "122" - emptyDir: - medium: 芝M 宸@Z^嫫猤痈 - sizeLimit: "179" - fc: - fsType: "124" - lun: 1179332384 - readOnly: true - targetWWNs: - - "123" - wwids: - - "125" - flexVolume: - driver: "103" - fsType: "104" - options: - "106": "107" - readOnly: true - secretRef: - name: "105" - flocker: - datasetName: "116" - datasetUUID: "117" - gcePersistentDisk: - fsType: "75" - partition: -2127673004 - pdName: "74" - gitRepo: - directory: "80" - repository: "78" - revision: "79" - glusterfs: - endpoints: "93" - path: "94" - hostPath: - path: "73" - type: ȸŹăȲϤĦ - iscsi: - fsType: "89" - initiatorName: "92" - iqn: "87" - iscsiInterface: "88" - lun: 1029074742 - portals: - - "90" - secretRef: - name: "91" - targetPortal: "86" - name: "72" - nfs: - path: "85" - server: "84" - persistentVolumeClaim: - claimName: "95" - readOnly: true - photonPersistentDisk: - fsType: "144" - pdID: "143" - portworxVolume: - fsType: "159" - volumeID: "158" - projected: - defaultMode: -427769948 - sources: - - configMap: - items: - - key: "154" - mode: -1950133943 - path: "155" - name: "153" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "149" - fieldPath: "150" - mode: 1669671203 - path: "148" - resourceFieldRef: - containerName: "151" - divisor: "580" - resource: "152" - secret: - items: - - key: "146" - mode: -1120128337 - path: "147" - name: "145" - optional: false - serviceAccountToken: - audience: "156" - expirationSeconds: -8801560367353238479 - path: "157" - quobyte: - group: "138" - registry: "135" - tenant: "139" - user: "137" - volume: "136" - rbd: - fsType: "98" - image: "97" - keyring: "101" - monitors: - - "96" - pool: "99" - readOnly: true - secretRef: - name: "102" - user: "100" - scaleIO: - fsType: "167" - gateway: "160" - protectionDomain: "163" - readOnly: true - secretRef: - name: "162" - storageMode: "165" - storagePool: "164" - system: "161" - volumeName: "166" - secret: - defaultMode: -1249460160 - items: - - key: "82" - mode: 147264373 - path: "83" - optional: false - secretName: "81" - storageos: - fsType: "170" - secretRef: - name: "171" - volumeName: "168" - volumeNamespace: "169" - vsphereVolume: - fsType: "132" - storagePolicyID: "134" - storagePolicyName: "133" - volumePath: "131" - ttlSecondsAfterFinished: 212353165 - schedule: "24" - startingDeadlineSeconds: -8817021678265088399 - successfulJobsHistoryLimit: 315828133 - suspend: false -status: - active: - - apiVersion: "361" - fieldPath: "363" - kind: "358" - name: "360" - namespace: "359" - resourceVersion: "362" - uid: 侅 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.json deleted file mode 100644 index a0cb1f734..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.json +++ /dev/null @@ -1,1074 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39" - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "51", - "generateName": "52", - "namespace": "53", - "selfLink": "54", - "uid": "@ʊʓ誒j剐'宣I拍N嚳ķȗɊ捵Tw", - "resourceVersion": "11115488420961080514", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "56": "57" - }, - "annotations": { - "58": "59" - }, - "ownerReferences": [ - { - "apiVersion": "60", - "kind": "61", - "name": "62", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "63" - ], - "clusterName": "64", - "managedFields": [ - { - "manager": "65", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "66" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "71", - "hostPath": { - "path": "72", - "type": "ħ籦ö嗏ʑ\u003e季Cʖ畬x" - }, - "emptyDir": { - "medium": "Šĸů湙騘\u0026啞", - "sizeLimit": "577" - }, - "gcePersistentDisk": { - "pdName": "73", - "fsType": "74", - "partition": 663386308 - }, - "awsElasticBlockStore": { - "volumeID": "75", - "fsType": "76", - "partition": -156457987, - "readOnly": true - }, - "gitRepo": { - "repository": "77", - "revision": "78", - "directory": "79" - }, - "secret": { - "secretName": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -5672822 - } - ], - "defaultMode": -861289979, - "optional": true - }, - "nfs": { - "server": "83", - "path": "84", - "readOnly": true - }, - "iscsi": { - "targetPortal": "85", - "iqn": "86", - "lun": -1636694746, - "iscsiInterface": "87", - "fsType": "88", - "portals": [ - "89" - ], - "chapAuthSession": true, - "secretRef": { - "name": "90" - }, - "initiatorName": "91" - }, - "glusterfs": { - "endpoints": "92", - "path": "93", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "94" - }, - "rbd": { - "monitors": [ - "95" - ], - "image": "96", - "fsType": "97", - "pool": "98", - "user": "99", - "keyring": "100", - "secretRef": { - "name": "101" - } - }, - "flexVolume": { - "driver": "102", - "fsType": "103", - "secretRef": { - "name": "104" - }, - "readOnly": true, - "options": { - "105": "106" - } - }, - "cinder": { - "volumeID": "107", - "fsType": "108", - "secretRef": { - "name": "109" - } - }, - "cephfs": { - "monitors": [ - "110" - ], - "path": "111", - "user": "112", - "secretFile": "113", - "secretRef": { - "name": "114" - } - }, - "flocker": { - "datasetName": "115", - "datasetUUID": "116" - }, - "downwardAPI": { - "items": [ - { - "path": "117", - "fieldRef": { - "apiVersion": "118", - "fieldPath": "119" - }, - "resourceFieldRef": { - "containerName": "120", - "resource": "121", - "divisor": "327" - }, - "mode": -1965578645 - } - ], - "defaultMode": -1008038372 - }, - "fc": { - "targetWWNs": [ - "122" - ], - "lun": -658258937, - "fsType": "123", - "wwids": [ - "124" - ] - }, - "azureFile": { - "secretName": "125", - "shareName": "126", - "readOnly": true - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": -675987103 - } - ], - "defaultMode": 1754292691, - "optional": true - }, - "vsphereVolume": { - "volumePath": "130", - "fsType": "131", - "storagePolicyName": "132", - "storagePolicyID": "133" - }, - "quobyte": { - "registry": "134", - "volume": "135", - "user": "136", - "group": "137", - "tenant": "138" - }, - "azureDisk": { - "diskName": "139", - "diskURI": "140", - "cachingMode": "ĦE勗E濞偘1", - "fsType": "141", - "readOnly": true, - "kind": "議Ǹ轺@)蓳嗘" - }, - "photonPersistentDisk": { - "pdID": "142", - "fsType": "143" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "144", - "items": [ - { - "key": "145", - "path": "146", - "mode": 679825403 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "147", - "fieldRef": { - "apiVersion": "148", - "fieldPath": "149" - }, - "resourceFieldRef": { - "containerName": "150", - "resource": "151", - "divisor": "184" - }, - "mode": -783297752 - } - ] - }, - "configMap": { - "name": "152", - "items": [ - { - "key": "153", - "path": "154", - "mode": -106644772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "155", - "expirationSeconds": 1897892355466772544, - "path": "156" - } - } - ], - "defaultMode": 345648859 - }, - "portworxVolume": { - "volumeID": "157", - "fsType": "158", - "readOnly": true - }, - "scaleIO": { - "gateway": "159", - "system": "160", - "secretRef": { - "name": "161" - }, - "protectionDomain": "162", - "storagePool": "163", - "storageMode": "164", - "volumeName": "165", - "fsType": "166", - "readOnly": true - }, - "storageos": { - "volumeName": "167", - "volumeNamespace": "168", - "fsType": "169", - "secretRef": { - "name": "170" - } - }, - "csi": { - "driver": "171", - "readOnly": true, - "fsType": "172", - "volumeAttributes": { - "173": "174" - }, - "nodePublishSecretRef": { - "name": "175" - } - } - } - ], - "initContainers": [ - { - "name": "176", - "image": "177", - "command": [ - "178" - ], - "args": [ - "179" - ], - "workingDir": "180", - "ports": [ - { - "name": "181", - "hostPort": -958191807, - "containerPort": -1629040033, - "protocol": "ʜǝ鿟ldg滠鼍ƭt", - "hostIP": "182" - } - ], - "envFrom": [ - { - "prefix": "183", - "configMapRef": { - "name": "184", - "optional": true - }, - "secretRef": { - "name": "185", - "optional": false - } - } - ], - "env": [ - { - "name": "186", - "value": "187", - "valueFrom": { - "fieldRef": { - "apiVersion": "188", - "fieldPath": "189" - }, - "resourceFieldRef": { - "containerName": "190", - "resource": "191", - "divisor": "980" - }, - "configMapKeyRef": { - "name": "192", - "key": "193", - "optional": false - }, - "secretKeyRef": { - "name": "194", - "key": "195", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ")ÙæNǚ錯ƶRquA?瞲Ť倱": "289" - }, - "requests": { - "ź贩j瀉": "621" - } - }, - "volumeMounts": [ - { - "name": "196", - "readOnly": true, - "mountPath": "197", - "subPath": "198", - "mountPropagation": "ɶ", - "subPathExpr": "199" - } - ], - "volumeDevices": [ - { - "name": "200", - "devicePath": "201" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -1365115016, - "host": "204", - "scheme": "町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -1105572246, - "host": "207" - }, - "initialDelaySeconds": 1971383046, - "timeoutSeconds": 1154560741, - "periodSeconds": -1376537100, - "successThreshold": 1100645882, - "failureThreshold": -532628939 - }, - "readinessProbe": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": "210", - "host": "211", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "212", - "value": "213" - } - ] - }, - "tcpSocket": { - "port": "214", - "host": "215" - }, - "initialDelaySeconds": -1510026905, - "timeoutSeconds": 437857734, - "periodSeconds": 2025698376, - "successThreshold": -1766555420, - "failureThreshold": 195263908 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": -33154680, - "host": "218", - "scheme": "跾|@?鷅bȻN+ņ榱*", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": "221", - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": "225", - "host": "226", - "scheme": "櫸eʔŊ", - "httpHeaders": [ - { - "name": "227", - "value": "228" - } - ] - }, - "tcpSocket": { - "port": 731879508, - "host": "229" - } - } - }, - "terminationMessagePath": "230", - "terminationMessagePolicy": "hoĂɋ", - "imagePullPolicy": "腬", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "231", - "role": "232", - "type": "233", - "level": "234" - }, - "runAsUser": 1383845015160566234, - "runAsGroup": 5929692523927062634, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "龫`劳\u0026¼傭Ȟ1酃=6}ɡ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "235", - "image": "236", - "command": [ - "237" - ], - "args": [ - "238" - ], - "workingDir": "239", - "ports": [ - { - "name": "240", - "hostPort": -374922344, - "containerPort": -31530684, - "protocol": "Ú|dk_", - "hostIP": "241" - } - ], - "envFrom": [ - { - "prefix": "242", - "configMapRef": { - "name": "243", - "optional": true - }, - "secretRef": { - "name": "244", - "optional": true - } - } - ], - "env": [ - { - "name": "245", - "value": "246", - "valueFrom": { - "fieldRef": { - "apiVersion": "247", - "fieldPath": "248" - }, - "resourceFieldRef": { - "containerName": "249", - "resource": "250", - "divisor": "909" - }, - "configMapKeyRef": { - "name": "251", - "key": "252", - "optional": false - }, - "secretKeyRef": { - "name": "253", - "key": "254", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "?": "193" - }, - "requests": { - "@Ȗs«öʮĀ\u003cé瞾": "51" - } - }, - "volumeMounts": [ - { - "name": "255", - "mountPath": "256", - "subPath": "257", - "mountPropagation": "£軶ǃ*ʙ嫙\u0026蒒5靇C'ɵK.Q貇", - "subPathExpr": "258" - } - ], - "volumeDevices": [ - { - "name": "259", - "devicePath": "260" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": "263", - "host": "264", - "scheme": "{Ⱦdz@", - "httpHeaders": [ - { - "name": "265", - "value": "266" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "267" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": "274", - "host": "275" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "276" - ] - }, - "httpGet": { - "path": "277", - "port": -78618443, - "host": "278", - "scheme": "Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -495373547, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": "284", - "host": "285", - "scheme": "/樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "286", - "value": "287" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "288" - } - } - }, - "terminationMessagePath": "289", - "terminationMessagePolicy": "ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷", - "imagePullPolicy": "姣\u003e懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾", - "securityContext": { - "capabilities": { - "add": [ - "ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ" - ], - "drop": [ - "ŬƩȿ0矀Kʝ瘴I\\p" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "290", - "role": "291", - "type": "292", - "level": "293" - }, - "runAsUser": 2314355702080875607, - "runAsGroup": 256256810846755412, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "FD剂讼ɓȌʟn" - }, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "3ƁÀ*f\u003c", - "terminationGracePeriodSeconds": 998876704495005296, - "activeDeadlineSeconds": -1689173322096612726, - "dnsPolicy": "Bls3!Zɾ", - "nodeSelector": { - "294": "295" - }, - "serviceAccountName": "296", - "serviceAccount": "297", - "automountServiceAccountToken": false, - "nodeName": "298", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "299", - "role": "300", - "type": "301", - "level": "302" - }, - "runAsUser": -6630145684297456260, - "runAsGroup": -982786583685356406, - "runAsNonRoot": false, - "supplementalGroups": [ - -7477362499801752548 - ], - "fsGroup": 1150055837641003771, - "sysctls": [ - { - "name": "303", - "value": "304" - } - ] - }, - "imagePullSecrets": [ - { - "name": "305" - } - ], - "hostname": "306", - "subdomain": "307", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "308", - "operator": "#yV'WKw(ğ儴Ůĺ}", - "values": [ - "309" - ] - } - ], - "matchFields": [ - { - "key": "310", - "operator": "ǩ", - "values": [ - "311" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1334110502, - "preference": { - "matchExpressions": [ - { - "key": "312", - "operator": "1ØœȠƬQg鄠", - "values": [ - "313" - ] - } - ], - "matchFields": [ - { - "key": "314", - "operator": "g\u003e郵[+扴ȨŮ+朷Ǝ膯lj", - "values": [ - "315" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "9-_56-__18Y--6-_3J--.48Y.q0": "O1-F.v" - }, - "matchExpressions": [ - { - "key": "3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1856061695, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF": "T.5vN5.25aWx.2aM214_.-N_g-..H" - }, - "matchExpressions": [ - { - "key": "B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT": "SY.g._2F7.-e" - }, - "matchExpressions": [ - { - "key": "7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og", - "operator": "NotIn", - "values": [ - "WT-M.3_-1y_8D_3" - ] - } - ] - }, - "namespaces": [ - "338" - ], - "topologyKey": "339" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1046355854, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "n_H-.___._D8.TS-jJ.Ys_Mop34_-2": "H38xm-.nx.sEK4.B._6" - }, - "matchExpressions": [ - { - "key": "9_.-.Ms7_t.U", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "346" - ], - "topologyKey": "347" - } - } - ] - } - }, - "schedulerName": "348", - "tolerations": [ - { - "key": "349", - "operator": "ȶŮ嫠!@@)Zq=歍þ螗ɃŒ", - "value": "350", - "effect": "缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw", - "tolerationSeconds": 3497863229537310760 - } - ], - "hostAliases": [ - { - "ip": "351", - "hostnames": [ - "352" - ] - } - ], - "priorityClassName": "353", - "priority": -1442230895, - "dnsConfig": { - "nameservers": [ - "354" - ], - "searches": [ - "355" - ], - "options": [ - { - "name": "356", - "value": "357" - } - ] - }, - "readinessGates": [ - { - "conditionType": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e" - } - ], - "runtimeClassName": "358", - "enableServiceLinks": false - } - }, - "ttlSecondsAfterFinished": -10286140 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.pb deleted file mode 100644 index 1a990d28138a0ea2befc84338e059b24b12dea48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4700 zcmZWt3wRV&mhM|oh_#IN7S3!>i`uk;Axsrjx85vbne12weGse;;f3oo?9JeXTQz&aq9ND zx6Zle+;h+W7jI~JHhLKSizONBmaZ7HL0FQxE<<4cENz8B8Ocp#(nLMN{D;QR|8%y?30wZid;NH8;k)lC7%*i4|*J4)R^Q6k=CM3 z(ufQ&p~FtQhbM0F$b$B z8*?`p23DpoH0Br_%gtQ3f-_ilt|3i&aTPO^PFlNqEi+_NPG;WBoOP2ot;}1Og7E#P z=^Kzw8B!p_iOHgylBLvV()vC9`^;12*^ym)o{KcsPm30p&Ws#t^<4;6ggw#H_IVqj zMBq=BG)=<1t_YBBS&+03iyGtC|K&#OO#}&V^c|?aU-};(+(snhvI0(2l5tssk)Ey6 zlp;7O1-nON#5!Be=HhU(dE{cG_;SFzW{khfwcb3^GVW?`Y{&87L8GrBl~Q=99!R|+ z=2ME~K`CHCW`>ys-SOSW`)kKN8*M8Jcd5UPTq^0SiF95x_jH1N1&-t3Q}n^XG^Gkm z*Ihml&0~v zv6QB#+2%Y%Q#!v8EunNF9bVQkL+PRe%^3t^$!=Thh9?-&6(^;uZc5iuDP6}&0?&_y zhy-3pvn_d=3@`&ibXrOY_D>U~Oq5DC)Q-TbWUM)CZfl9Y_DN6*JSYXh2?D!8h^b^! zka$}@d0!y!3rZmxM~@*tRmRe4M5{ah9#ohZzyfhAV%7EaKmY58-&=v&tEx`bCeq?T z!^lc(-?6hSU}X(~LoB*%sqm1>(GW6CTw%q54xy1W*#uUZUy=uLhIPjmh1V}9-gUg+ zcf~izg^t3#O%g=10g*%?k_bfc6ncWFC8CxgT6id_AXE%OYe6EJ)nQiRosarXOpX*+ zOpf-}L<+nDtd#_~Q+D&rxnQSx`C{5Ab6;zu!g~>sxFwQeNxW+9S0?F{H3#ZP9L&kY zqQYD0R|G3E1!GW&V?jt0K*;GJl-cM#v=`Ak5&eV}rX(?TVw;37DUQ3f2Yi$ZF@lwF zDUooAB2May6Xj^$eucW!aOll{Q%<%OuBV-<1!vEf;c=e95x?k6R9( zZu;U>lM|9AEA~(SY#u|OAO}n;Bq&7#y`n=5zR?w%~9tHh3Mx536`1vW0LsZU?6H@iE6TT}Zh zBTbbf&GK?NUcF=DbK&;s+$(0w4h*ZbIVz-x#g+2)jL}+{u zcBjJKz^ZJoI$3n`VMl|f>n7#8TX&~2Ddne@AEJpq#aEV}ym{9;uO(pwC`YobD$Eq} zP?^Udg!U^}K1m#-ljKg-+)oBPqq8Hu9{<5mQ*2vBw6x6EFopDJZ{L<+d15!@6gA%Y zE1H-%5WTrCQ504xptt_sa-?BqA~=Fh`e4tR1THk$?HUtps9wJDHNV$?>1Jo6|8h>S z&fnedU1YXy4W9xMVtLUN;)OK(N5IRU-|?m<>}%Pe*4K`VoU9)o-LZc}Z2JZCTy0;E zdH8JjoLSlt+|^$YE!!UUhDywBJ^A^xOh4tTdpWQtbj+-%6S)m+y!T|ZusKrQ96B25 zs`XuBhWbwj8biH&tai)v{_2>wZQ5^h;ikY^O?)Vc4cU|E?f z#Rd!nrG3!W+1K2(^<%Y_J};vrHkNB{OPy&ch*=IN)%ti~|U zY<~5*1=BaC_-Z5D+WgJFi*FO(I`b&Z1Da96M))lV%xkd+g}?U-PIOq@HdZ+R$U0}Hn*P*?jp-%W)DT@ z&`aqN^b5IvQC4zu|{ zELB#1(=r3zU!9!68d}f2-r(o56W1)@CczYo-(Ut=oHGx$Cz1mP z(7i&@?;|>Z=*{#>k!4vC7P9PGb`_h!vTNXbgI}sH=W|&y$FjOElZTwQe${d{bGeqC zzd>SkR+Mv=jlt7IV9G4Vv-w6opSRlJR%|lZ49F0xvD^$6=rF5oVAF;CdCZWxi?}S# zz*AI?&19z0W7HgWlc?cUnzoV6&DSL^i(QJr6V6<>e1#+|&46^tS$N~p9Bqs^D~ov; z`17>Y&c_zaV`p%{*98cEl0nK)1nd)m9jr{=-TVFRBqoENPkO*=V=5u?24_stxOsEg z>~wBXo-rdQR|H0nnW0lfZPO~2TfK?Pn>=0OCUAzr45NqWgvHOuQ;l`p{Qq~v0CGv9 zq#lAwm$akk+d%|Yp>GL5QbA}yMpQjDNziyK!;~i2uUsp+kYH4f&yOAc?*T$Nw7)7? z9q+Aub6HljyDomIG;n4ec?}ah6-Xx(pc7hnDrkgAXga}DfpjMUx)WSGIHv@j3P3*z zUOvE6fph>tmjO?8`Wf0es;{!|#LVEKc*)s7$DB3mUwk1})8aoC*>au$EwomKp&#*I zG}{`pV_S9+oq~mQxO;-GSo8rXER2D}hC46}^f}dt&a)aD@YgwD0-6B&8j!49J;vv_audn@Q!dc3X#b1>?#JArmEKI=C;?4Bz z#P&3}Enx9~fma~FD+q38#Mpm~)|D>nKjmwh7cKRMOIKPufNlfxe~Y`&V?ZO@V@L0v zP55&JKE3%aa)r#l_y?!lEO@Vd0DO<#E&bh+dPFa@e8cDU^WYoUH%ZOTR__3NvQi^x z?#ImwJ%31hA%3A~NvM0~X#e);iSwz6J&>-C`M<$_Ob8Rk%uAMK=rE(fGJK3bz*+bv zhu?}jIoi~j*}vbPz*FGjpw$Mr%LnJ~eMVV{#CkSxJbrDGS#&x-4_c#*86Msh-+duc z+GtkyOpVueMb4g%G@R}`8{2m&Rdec|Llk z6j(t`MR=>f9ImO%yPt_&+P})&d(LbPN`-C3=>2 z=SH@cvF6DNvwolA_r}ijhI?dxi`jA^UbQ>4)xYz#@m~?6+AU<$j&_wFPSj1BucE{% L^ZP(8-M0S$g(({1 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml deleted file mode 100644 index 7b8561438..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml +++ /dev/null @@ -1,729 +0,0 @@ -apiVersion: batch/v1beta1 -kind: JobTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -template: - metadata: - annotations: - "31": "32" - clusterName: "37" - creationTimestamp: null - deletionGracePeriodSeconds: 7323204920313990232 - finalizers: - - "36" - generateName: "25" - generation: 1905795315403748486 - labels: - "29": "30" - managedFields: - - apiVersion: "39" - manager: "38" - operation: B峅x4%a - name: "24" - namespace: "26" - ownerReferences: - - apiVersion: "33" - blockOwnerDeletion: false - controller: true - kind: "34" - name: "35" - uid: 谐颋DžSǡƏS$+½H牗洝尿 - resourceVersion: "1092536316763508004" - selfLink: "27" - uid: ^苣 - spec: - activeDeadlineSeconds: -1483125035702892746 - backoffLimit: -1822122846 - completions: -106888179 - manualSelector: true - parallelism: -856030588 - selector: - matchExpressions: - - key: rnr - operator: DoesNotExist - matchLabels: - 2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T: cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm - template: - metadata: - annotations: - "58": "59" - clusterName: "64" - creationTimestamp: null - deletionGracePeriodSeconds: -961038652544818647 - finalizers: - - "63" - generateName: "52" - generation: -1988464041375677738 - labels: - "56": "57" - managedFields: - - apiVersion: "66" - manager: "65" - operation: 聻鎥ʟ<$洅ɹ7\弌Þ帺萸 - name: "51" - namespace: "53" - ownerReferences: - - apiVersion: "60" - blockOwnerDeletion: false - controller: false - kind: "61" - name: "62" - uid: a縳讋ɮ衺勽Ƙq/Ź u衲<¿燥ǖ_è - resourceVersion: "11115488420961080514" - selfLink: "54" - uid: '@ʊʓ誒j剐''宣I拍N嚳ķȗɊ捵Tw' - spec: - activeDeadlineSeconds: -1689173322096612726 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "312" - operator: 1ØœȠƬQg鄠 - values: - - "313" - matchFields: - - key: "314" - operator: g>郵[+扴ȨŮ+朷Ǝ膯lj - values: - - "315" - weight: -1334110502 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "308" - operator: '#yV''WKw(ğ儴Ůĺ}' - values: - - "309" - matchFields: - - key: "310" - operator: ǩ - values: - - "311" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k - operator: Exists - matchLabels: - 2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF: T.5vN5.25aWx.2aM214_.-N_g-..H - namespaces: - - "330" - topologyKey: "331" - weight: -1856061695 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0 - operator: DoesNotExist - matchLabels: - 9-_56-__18Y--6-_3J--.48Y.q0: O1-F.v - namespaces: - - "322" - topologyKey: "323" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 9_.-.Ms7_t.U - operator: DoesNotExist - matchLabels: - n_H-.___._D8.TS-jJ.Ys_Mop34_-2: H38xm-.nx.sEK4.B._6 - namespaces: - - "346" - topologyKey: "347" - weight: 1046355854 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og - operator: NotIn - values: - - WT-M.3_-1y_8D_3 - matchLabels: - 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT: SY.g._2F7.-e - namespaces: - - "338" - topologyKey: "339" - automountServiceAccountToken: false - containers: - - args: - - "238" - command: - - "237" - env: - - name: "245" - value: "246" - valueFrom: - configMapKeyRef: - key: "252" - name: "251" - optional: false - fieldRef: - apiVersion: "247" - fieldPath: "248" - resourceFieldRef: - containerName: "249" - divisor: "909" - resource: "250" - secretKeyRef: - key: "254" - name: "253" - optional: true - envFrom: - - configMapRef: - name: "243" - optional: true - prefix: "242" - secretRef: - name: "244" - optional: true - image: "236" - imagePullPolicy: 姣>懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾 - lifecycle: - postStart: - exec: - command: - - "276" - httpGet: - host: "278" - httpHeaders: - - name: "279" - value: "280" - path: "277" - port: -78618443 - scheme: Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ - tcpSocket: - host: "281" - port: -495373547 - preStop: - exec: - command: - - "282" - httpGet: - host: "285" - httpHeaders: - - name: "286" - value: "287" - path: "283" - port: "284" - scheme: /樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - tcpSocket: - host: "288" - port: 88483549 - livenessProbe: - exec: - command: - - "261" - failureThreshold: 208045354 - httpGet: - host: "264" - httpHeaders: - - name: "265" - value: "266" - path: "262" - port: "263" - scheme: '{Ⱦdz@' - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "267" - port: 406308963 - timeoutSeconds: 2026784878 - name: "235" - ports: - - containerPort: -31530684 - hostIP: "241" - hostPort: -374922344 - name: "240" - protocol: Ú|dk_ - readinessProbe: - exec: - command: - - "268" - failureThreshold: -1131820775 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "269" - port: "270" - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "275" - port: "274" - timeoutSeconds: 747521320 - resources: - limits: - '?': "193" - requests: - '@Ȗs«öʮĀ<é瞾': "51" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ - drop: - - ŬƩȿ0矀Kʝ瘴I\p - privileged: true - procMount: FD剂讼ɓȌʟn - readOnlyRootFilesystem: true - runAsGroup: 256256810846755412 - runAsNonRoot: false - runAsUser: 2314355702080875607 - seLinuxOptions: - level: "293" - role: "291" - type: "292" - user: "290" - stdinOnce: true - terminationMessagePath: "289" - terminationMessagePolicy: ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷 - tty: true - volumeDevices: - - devicePath: "260" - name: "259" - volumeMounts: - - mountPath: "256" - mountPropagation: £軶ǃ*ʙ嫙&蒒5靇C'ɵK.Q貇 - name: "255" - subPath: "257" - subPathExpr: "258" - workingDir: "239" - dnsConfig: - nameservers: - - "354" - options: - - name: "356" - value: "357" - searches: - - "355" - dnsPolicy: Bls3!Zɾ - enableServiceLinks: false - hostAliases: - - hostnames: - - "352" - ip: "351" - hostNetwork: true - hostname: "306" - imagePullSecrets: - - name: "305" - initContainers: - - args: - - "179" - command: - - "178" - env: - - name: "186" - value: "187" - valueFrom: - configMapKeyRef: - key: "193" - name: "192" - optional: false - fieldRef: - apiVersion: "188" - fieldPath: "189" - resourceFieldRef: - containerName: "190" - divisor: "980" - resource: "191" - secretKeyRef: - key: "195" - name: "194" - optional: true - envFrom: - - configMapRef: - name: "184" - optional: true - prefix: "183" - secretRef: - name: "185" - optional: false - image: "177" - imagePullPolicy: 腬 - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: -33154680 - scheme: 跾|@?鷅bȻN+ņ榱* - tcpSocket: - host: "222" - port: "221" - preStop: - exec: - command: - - "223" - httpGet: - host: "226" - httpHeaders: - - name: "227" - value: "228" - path: "224" - port: "225" - scheme: 櫸eʔŊ - tcpSocket: - host: "229" - port: 731879508 - livenessProbe: - exec: - command: - - "202" - failureThreshold: -532628939 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -1365115016 - scheme: 町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅 - initialDelaySeconds: 1971383046 - periodSeconds: -1376537100 - successThreshold: 1100645882 - tcpSocket: - host: "207" - port: -1105572246 - timeoutSeconds: 1154560741 - name: "176" - ports: - - containerPort: -1629040033 - hostIP: "182" - hostPort: -958191807 - name: "181" - protocol: ʜǝ鿟ldg滠鼍ƭt - readinessProbe: - exec: - command: - - "208" - failureThreshold: 195263908 - httpGet: - host: "211" - httpHeaders: - - name: "212" - value: "213" - path: "209" - port: "210" - scheme: '%:;栍dʪīT捘ɍi' - initialDelaySeconds: -1510026905 - periodSeconds: 2025698376 - successThreshold: -1766555420 - tcpSocket: - host: "215" - port: "214" - timeoutSeconds: 437857734 - resources: - limits: - )ÙæNǚ錯ƶRquA?瞲Ť倱: "289" - requests: - ź贩j瀉: "621" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö - privileged: true - procMount: 龫`劳&¼傭Ȟ1酃=6}ɡ - readOnlyRootFilesystem: false - runAsGroup: 5929692523927062634 - runAsNonRoot: false - runAsUser: 1383845015160566234 - seLinuxOptions: - level: "234" - role: "232" - type: "233" - user: "231" - terminationMessagePath: "230" - terminationMessagePolicy: hoĂɋ - tty: true - volumeDevices: - - devicePath: "201" - name: "200" - volumeMounts: - - mountPath: "197" - mountPropagation: ɶ - name: "196" - readOnly: true - subPath: "198" - subPathExpr: "199" - workingDir: "180" - nodeName: "298" - nodeSelector: - "294": "295" - priority: -1442230895 - priorityClassName: "353" - readinessGates: - - conditionType: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - restartPolicy: 3ƁÀ*f< - runtimeClassName: "358" - schedulerName: "348" - securityContext: - fsGroup: 1150055837641003771 - runAsGroup: -982786583685356406 - runAsNonRoot: false - runAsUser: -6630145684297456260 - seLinuxOptions: - level: "302" - role: "300" - type: "301" - user: "299" - supplementalGroups: - - -7477362499801752548 - sysctls: - - name: "303" - value: "304" - serviceAccount: "297" - serviceAccountName: "296" - shareProcessNamespace: false - subdomain: "307" - terminationGracePeriodSeconds: 998876704495005296 - tolerations: - - effect: 缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw - key: "349" - operator: ȶŮ嫠!@@)Zq=歍þ螗ɃŒ - tolerationSeconds: 3497863229537310760 - value: "350" - volumes: - - awsElasticBlockStore: - fsType: "76" - partition: -156457987 - readOnly: true - volumeID: "75" - azureDisk: - cachingMode: ĦE勗E濞偘1 - diskName: "139" - diskURI: "140" - fsType: "141" - kind: 議Ǹ轺@)蓳嗘 - readOnly: true - azureFile: - readOnly: true - secretName: "125" - shareName: "126" - cephfs: - monitors: - - "110" - path: "111" - secretFile: "113" - secretRef: - name: "114" - user: "112" - cinder: - fsType: "108" - secretRef: - name: "109" - volumeID: "107" - configMap: - defaultMode: 1754292691 - items: - - key: "128" - mode: -675987103 - path: "129" - name: "127" - optional: true - csi: - driver: "171" - fsType: "172" - nodePublishSecretRef: - name: "175" - readOnly: true - volumeAttributes: - "173": "174" - downwardAPI: - defaultMode: -1008038372 - items: - - fieldRef: - apiVersion: "118" - fieldPath: "119" - mode: -1965578645 - path: "117" - resourceFieldRef: - containerName: "120" - divisor: "327" - resource: "121" - emptyDir: - medium: Šĸů湙騘&啞 - sizeLimit: "577" - fc: - fsType: "123" - lun: -658258937 - targetWWNs: - - "122" - wwids: - - "124" - flexVolume: - driver: "102" - fsType: "103" - options: - "105": "106" - readOnly: true - secretRef: - name: "104" - flocker: - datasetName: "115" - datasetUUID: "116" - gcePersistentDisk: - fsType: "74" - partition: 663386308 - pdName: "73" - gitRepo: - directory: "79" - repository: "77" - revision: "78" - glusterfs: - endpoints: "92" - path: "93" - readOnly: true - hostPath: - path: "72" - type: ħ籦ö嗏ʑ>季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -10286140 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.json deleted file mode 100644 index 4121b5fdc..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.json +++ /dev/null @@ -1,1077 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39", - "fields": {"40":{"41":null}} - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "51", - "generateName": "52", - "namespace": "53", - "selfLink": "54", - "uid": "@ʊʓ誒j剐'宣I拍N嚳ķȗɊ捵Tw", - "resourceVersion": "11115488420961080514", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "56": "57" - }, - "annotations": { - "58": "59" - }, - "ownerReferences": [ - { - "apiVersion": "60", - "kind": "61", - "name": "62", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "63" - ], - "clusterName": "64", - "managedFields": [ - { - "manager": "65", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "66", - "fields": {"67":{"68":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "71", - "hostPath": { - "path": "72", - "type": "ħ籦ö嗏ʑ\u003e季Cʖ畬x" - }, - "emptyDir": { - "medium": "Šĸů湙騘\u0026啞", - "sizeLimit": "577" - }, - "gcePersistentDisk": { - "pdName": "73", - "fsType": "74", - "partition": 663386308 - }, - "awsElasticBlockStore": { - "volumeID": "75", - "fsType": "76", - "partition": -156457987, - "readOnly": true - }, - "gitRepo": { - "repository": "77", - "revision": "78", - "directory": "79" - }, - "secret": { - "secretName": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -5672822 - } - ], - "defaultMode": -861289979, - "optional": true - }, - "nfs": { - "server": "83", - "path": "84", - "readOnly": true - }, - "iscsi": { - "targetPortal": "85", - "iqn": "86", - "lun": -1636694746, - "iscsiInterface": "87", - "fsType": "88", - "portals": [ - "89" - ], - "chapAuthSession": true, - "secretRef": { - "name": "90" - }, - "initiatorName": "91" - }, - "glusterfs": { - "endpoints": "92", - "path": "93", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "94" - }, - "rbd": { - "monitors": [ - "95" - ], - "image": "96", - "fsType": "97", - "pool": "98", - "user": "99", - "keyring": "100", - "secretRef": { - "name": "101" - } - }, - "flexVolume": { - "driver": "102", - "fsType": "103", - "secretRef": { - "name": "104" - }, - "readOnly": true, - "options": { - "105": "106" - } - }, - "cinder": { - "volumeID": "107", - "fsType": "108", - "secretRef": { - "name": "109" - } - }, - "cephfs": { - "monitors": [ - "110" - ], - "path": "111", - "user": "112", - "secretFile": "113", - "secretRef": { - "name": "114" - } - }, - "flocker": { - "datasetName": "115", - "datasetUUID": "116" - }, - "downwardAPI": { - "items": [ - { - "path": "117", - "fieldRef": { - "apiVersion": "118", - "fieldPath": "119" - }, - "resourceFieldRef": { - "containerName": "120", - "resource": "121", - "divisor": "327" - }, - "mode": -1965578645 - } - ], - "defaultMode": -1008038372 - }, - "fc": { - "targetWWNs": [ - "122" - ], - "lun": -658258937, - "fsType": "123", - "wwids": [ - "124" - ] - }, - "azureFile": { - "secretName": "125", - "shareName": "126", - "readOnly": true - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": -675987103 - } - ], - "defaultMode": 1754292691, - "optional": true - }, - "vsphereVolume": { - "volumePath": "130", - "fsType": "131", - "storagePolicyName": "132", - "storagePolicyID": "133" - }, - "quobyte": { - "registry": "134", - "volume": "135", - "user": "136", - "group": "137", - "tenant": "138" - }, - "azureDisk": { - "diskName": "139", - "diskURI": "140", - "cachingMode": "ĦE勗E濞偘1", - "fsType": "141", - "readOnly": true, - "kind": "議Ǹ轺@)蓳嗘" - }, - "photonPersistentDisk": { - "pdID": "142", - "fsType": "143" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "144", - "items": [ - { - "key": "145", - "path": "146", - "mode": 679825403 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "147", - "fieldRef": { - "apiVersion": "148", - "fieldPath": "149" - }, - "resourceFieldRef": { - "containerName": "150", - "resource": "151", - "divisor": "184" - }, - "mode": -783297752 - } - ] - }, - "configMap": { - "name": "152", - "items": [ - { - "key": "153", - "path": "154", - "mode": -106644772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "155", - "expirationSeconds": 1897892355466772544, - "path": "156" - } - } - ], - "defaultMode": 345648859 - }, - "portworxVolume": { - "volumeID": "157", - "fsType": "158", - "readOnly": true - }, - "scaleIO": { - "gateway": "159", - "system": "160", - "secretRef": { - "name": "161" - }, - "protectionDomain": "162", - "storagePool": "163", - "storageMode": "164", - "volumeName": "165", - "fsType": "166", - "readOnly": true - }, - "storageos": { - "volumeName": "167", - "volumeNamespace": "168", - "fsType": "169", - "secretRef": { - "name": "170" - } - }, - "csi": { - "driver": "171", - "readOnly": true, - "fsType": "172", - "volumeAttributes": { - "173": "174" - }, - "nodePublishSecretRef": { - "name": "175" - } - } - } - ], - "initContainers": [ - { - "name": "176", - "image": "177", - "command": [ - "178" - ], - "args": [ - "179" - ], - "workingDir": "180", - "ports": [ - { - "name": "181", - "hostPort": -958191807, - "containerPort": -1629040033, - "protocol": "ʜǝ鿟ldg滠鼍ƭt", - "hostIP": "182" - } - ], - "envFrom": [ - { - "prefix": "183", - "configMapRef": { - "name": "184", - "optional": true - }, - "secretRef": { - "name": "185", - "optional": false - } - } - ], - "env": [ - { - "name": "186", - "value": "187", - "valueFrom": { - "fieldRef": { - "apiVersion": "188", - "fieldPath": "189" - }, - "resourceFieldRef": { - "containerName": "190", - "resource": "191", - "divisor": "980" - }, - "configMapKeyRef": { - "name": "192", - "key": "193", - "optional": false - }, - "secretKeyRef": { - "name": "194", - "key": "195", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ")ÙæNǚ錯ƶRquA?瞲Ť倱": "289" - }, - "requests": { - "ź贩j瀉": "621" - } - }, - "volumeMounts": [ - { - "name": "196", - "readOnly": true, - "mountPath": "197", - "subPath": "198", - "mountPropagation": "ɶ", - "subPathExpr": "199" - } - ], - "volumeDevices": [ - { - "name": "200", - "devicePath": "201" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -1365115016, - "host": "204", - "scheme": "町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -1105572246, - "host": "207" - }, - "initialDelaySeconds": 1971383046, - "timeoutSeconds": 1154560741, - "periodSeconds": -1376537100, - "successThreshold": 1100645882, - "failureThreshold": -532628939 - }, - "readinessProbe": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": "210", - "host": "211", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "212", - "value": "213" - } - ] - }, - "tcpSocket": { - "port": "214", - "host": "215" - }, - "initialDelaySeconds": -1510026905, - "timeoutSeconds": 437857734, - "periodSeconds": 2025698376, - "successThreshold": -1766555420, - "failureThreshold": 195263908 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": -33154680, - "host": "218", - "scheme": "跾|@?鷅bȻN+ņ榱*", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": "221", - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": "225", - "host": "226", - "scheme": "櫸eʔŊ", - "httpHeaders": [ - { - "name": "227", - "value": "228" - } - ] - }, - "tcpSocket": { - "port": 731879508, - "host": "229" - } - } - }, - "terminationMessagePath": "230", - "terminationMessagePolicy": "hoĂɋ", - "imagePullPolicy": "腬", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "231", - "role": "232", - "type": "233", - "level": "234" - }, - "runAsUser": 1383845015160566234, - "runAsGroup": 5929692523927062634, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "龫`劳\u0026¼傭Ȟ1酃=6}ɡ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "235", - "image": "236", - "command": [ - "237" - ], - "args": [ - "238" - ], - "workingDir": "239", - "ports": [ - { - "name": "240", - "hostPort": -374922344, - "containerPort": -31530684, - "protocol": "Ú|dk_", - "hostIP": "241" - } - ], - "envFrom": [ - { - "prefix": "242", - "configMapRef": { - "name": "243", - "optional": true - }, - "secretRef": { - "name": "244", - "optional": true - } - } - ], - "env": [ - { - "name": "245", - "value": "246", - "valueFrom": { - "fieldRef": { - "apiVersion": "247", - "fieldPath": "248" - }, - "resourceFieldRef": { - "containerName": "249", - "resource": "250", - "divisor": "909" - }, - "configMapKeyRef": { - "name": "251", - "key": "252", - "optional": false - }, - "secretKeyRef": { - "name": "253", - "key": "254", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "?": "193" - }, - "requests": { - "@Ȗs«öʮĀ\u003cé瞾": "51" - } - }, - "volumeMounts": [ - { - "name": "255", - "mountPath": "256", - "subPath": "257", - "mountPropagation": "£軶ǃ*ʙ嫙\u0026蒒5靇C'ɵK.Q貇", - "subPathExpr": "258" - } - ], - "volumeDevices": [ - { - "name": "259", - "devicePath": "260" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": "263", - "host": "264", - "scheme": "{Ⱦdz@", - "httpHeaders": [ - { - "name": "265", - "value": "266" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "267" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": "274", - "host": "275" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "276" - ] - }, - "httpGet": { - "path": "277", - "port": -78618443, - "host": "278", - "scheme": "Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -495373547, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": "284", - "host": "285", - "scheme": "/樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "286", - "value": "287" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "288" - } - } - }, - "terminationMessagePath": "289", - "terminationMessagePolicy": "ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷", - "imagePullPolicy": "姣\u003e懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾", - "securityContext": { - "capabilities": { - "add": [ - "ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ" - ], - "drop": [ - "ŬƩȿ0矀Kʝ瘴I\\p" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "290", - "role": "291", - "type": "292", - "level": "293" - }, - "runAsUser": 2314355702080875607, - "runAsGroup": 256256810846755412, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "FD剂讼ɓȌʟn" - }, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "3ƁÀ*f\u003c", - "terminationGracePeriodSeconds": 998876704495005296, - "activeDeadlineSeconds": -1689173322096612726, - "dnsPolicy": "Bls3!Zɾ", - "nodeSelector": { - "294": "295" - }, - "serviceAccountName": "296", - "serviceAccount": "297", - "automountServiceAccountToken": false, - "nodeName": "298", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "299", - "role": "300", - "type": "301", - "level": "302" - }, - "runAsUser": -6630145684297456260, - "runAsGroup": -982786583685356406, - "runAsNonRoot": false, - "supplementalGroups": [ - -7477362499801752548 - ], - "fsGroup": 1150055837641003771, - "sysctls": [ - { - "name": "303", - "value": "304" - } - ] - }, - "imagePullSecrets": [ - { - "name": "305" - } - ], - "hostname": "306", - "subdomain": "307", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "308", - "operator": "#yV'WKw(ğ儴Ůĺ}", - "values": [ - "309" - ] - } - ], - "matchFields": [ - { - "key": "310", - "operator": "ǩ", - "values": [ - "311" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1334110502, - "preference": { - "matchExpressions": [ - { - "key": "312", - "operator": "1ØœȠƬQg鄠", - "values": [ - "313" - ] - } - ], - "matchFields": [ - { - "key": "314", - "operator": "g\u003e郵[+扴ȨŮ+朷Ǝ膯lj", - "values": [ - "315" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "9-_56-__18Y--6-_3J--.48Y.q0": "O1-F.v" - }, - "matchExpressions": [ - { - "key": "3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1856061695, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF": "T.5vN5.25aWx.2aM214_.-N_g-..H" - }, - "matchExpressions": [ - { - "key": "B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT": "SY.g._2F7.-e" - }, - "matchExpressions": [ - { - "key": "7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og", - "operator": "NotIn", - "values": [ - "WT-M.3_-1y_8D_3" - ] - } - ] - }, - "namespaces": [ - "338" - ], - "topologyKey": "339" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1046355854, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "n_H-.___._D8.TS-jJ.Ys_Mop34_-2": "H38xm-.nx.sEK4.B._6" - }, - "matchExpressions": [ - { - "key": "9_.-.Ms7_t.U", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "346" - ], - "topologyKey": "347" - } - } - ] - } - }, - "schedulerName": "348", - "tolerations": [ - { - "key": "349", - "operator": "ȶŮ嫠!@@)Zq=歍þ螗ɃŒ", - "value": "350", - "effect": "缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw", - "tolerationSeconds": 3497863229537310760 - } - ], - "hostAliases": [ - { - "ip": "351", - "hostnames": [ - "352" - ] - } - ], - "priorityClassName": "353", - "priority": -1442230895, - "dnsConfig": { - "nameservers": [ - "354" - ], - "searches": [ - "355" - ], - "options": [ - { - "name": "356", - "value": "357" - } - ] - }, - "readinessGates": [ - { - "conditionType": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e" - } - ], - "runtimeClassName": "358", - "enableServiceLinks": false - } - }, - "ttlSecondsAfterFinished": -10286140 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v1beta1.JobTemplate.pb deleted file mode 100644 index 934230b48be53936c997b391dd94bfd5af279280..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4748 zcmZWt3wRV&mhM|9#99V>3um^cMW<;5Lo-!W-FmaAk(UtUArE;tGi8AAh(dtyjN^VJ z5FVX`KzO7Bfds-MArL~|At4z^KeH?Ar{egUbrrh1T6bM!a8^Ze&#ex#v)}T4oVtDP zt#i&j=ic-GmDjW!8$FEv*^-P6OIMEFBrM6?kRdRCm!7?3UgqkxuV-w?WNto1e}HI& z86-N9tUU7Zrcu%h6NqnfNh5(G>~Hyees; zrpOA9MP2*&tNa^zg%x>gC)j3R*xjUTUnP%)j%uU`_Sd=^?OOV^ZjW@YER_Q!s*VMl^*bhQhLw!it;1s^_8K znT6GOsKD!378OxYR7I3|jprq8XX3lsPycwa!wFmXz<1+xQ~uj;XD&_w6A-${FM*LL zzzAn?Fp`{?aI{np0Zf;v1mh&hZ02|X}0y0sN_P1h%ixA_4Xj8!!X=DbN(36o%d@^!LfXM%Oc*>3fGycO*@DJIGckg(MjDA9n*1f%j zEzRvMUn2KE(JSa@vGLkmUEnh1>8z2dhz4tj>>3sxhPaXC3}d!oaO!+^ezqYQ>?CzP z{LEObu#&N0GHc9ZMlM~(Vh&bMHs)?J46ICFXv{GJz)Ks z^~~T&*_k;rvo}oMvMOgoD#9f$`p=MG8B!ucMP<=V$&zP8TA#P?fO)PoE4pXj)6x3s zX|clMnb9Ln{BEC)N)?!rLG%+az|24R&&DsE>1~acmGtd@HhQ6Y zV&CETq4QgqU()tKmA^f3G1gI@sPT=89y-oEOb?J%)oF(}MTSx(hyUx^F3M$d{~R6e*l{+RJTxvej)oOr zUXvVX!dMuCVNG$I@rM8WopqSpl%{$pP2+9jC{0hZ&3TBXbbcXPLg_*}ysTq}(nSZF z1NTXn?6$>jc!CjKaZ9ORe%2-;BXm#h` zg9;M^SRigith&DZmw$WzTWh2Cii&fU$+URUFtQTcckM0-T3JKj5Q{FG2Od%>8ce2% zE37!s5j2V>L12~nIe8FgSa*Duf8$E>UB|nq(RhxpG-juw_pj`bXm=J^CzD+zGN?B<1rP`i2Ma@uI~ zKvT5LcNvj=OC-gTc+HAeCh3$l2kJu{%*n)}!dvNA1Z!ss#-I|%fsiJEkkdgZv(Y z6&?0K%AoR}BXYh}!A`2CVmC(O^Tt%p)ntvZIJ#Op)9J-w1byn$pN!#L)IYC~#}&6r26#zE7_rr;Vso z`^oO$1Y>Rha_;uny=Pb)F^hsDCLgRZ7oeFmYtFpb~Y{A)w9W~yLTa@cw)!p&| zsXsJ+7fbdjzP$A8t$S9zmP8Ps9?7<Cqk~>v%KN0kf$%^)P z1Bb(P@f~Hc;u3$&6w;%8z1u>i$!JIwHQxCPnwU5gyLBLWD6CXKZ~dL+NW;uTa0H$7 zLCl&2E;QNg8XK!QwtVv|0bii&R(oyWN_MC!(Ano(WHxP&oCDHgdC?T&g*5v|z{{WB z@_CZ>wJcEU>qkY;RzDltb#P>SXPenj+1qU%y%=dQi(5l``to8WJ0reuk-4KgHtzM~~HqPewZ`{awt^!1-WpxQCBdZkyhBEbeQb_M5eE zQ{bv$9j+?Yp*3M0S`*eq*B?Jl*fU}r4^ASkJOQc$g{{3NkC!#UU(@&CFjbTP?efjAH(>JI3E2BG_1NHvPZxY`+GX&-V z&8Sc<{1yaecFIQ={$qRc1jAu+l4;Bg5qf=r1L3OR`IlBCc2tq2A~TZANz5--Je%0w z^2(Ulp5|~(pngoOqAj@B+<7syhb)tseH5KdFQrG)kL#=v(41EPjx!9L|`51qqnuOk)MhaZ?$Y9y0-WE5~ud+O3AhiX4~2862#f zZs2tr4Sp^=aoqxL5=^o9HD;j2L31EHkrW(2_bNrdi|8Ptx6-RbmSsg)$g=C%)ocdK zu7mFreyO^gU(1p?meqBcJmj2>tCy>p%eAcBO%kiKqMW^KES@F;b7nc7%{6lQoHYiw za*M%cK!#Y2gfllRUnvPoGay~^3cPt~wl-FrwSsvV`1G_j&PNx_V`p%{-v!wGB!e775wK4L zcCadCZ_l@P1~3`)e9{Bf7*h$cH#lRG#?70{W~FnBa*P?-YeiuAm>D`%)V8c5_I5eLaxCD)cP@NGb>o$cU>#Rz26$dYDAg^J9rvmAO z0(3$PPX&z-2~8(>Dv<6ZKzD*`2X#u~sQ~no;N=566-WmVbQ$ner$^Av(Y@upXJ&?u zB#JHuTj#9X`22J6ma`R#m*L z@0`DGUaZ&`DPCno0Nn=W{}y+l$ACt*$4}n7nDpleethd~8iWTi&X+>e=U-M>$JF40!7B-}Z3Okij1%q34U z2GaF0|2No=31PyRdBL&_9cBzzhL80JI1AtG@LO@G#Om5J`wj+@cnVw`v|2xRd9UIA zCzO>)tY-noecCd7FYE8q郵[+扴ȨŮ+朷Ǝ膯lj - values: - - "315" - weight: -1334110502 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "308" - operator: '#yV''WKw(ğ儴Ůĺ}' - values: - - "309" - matchFields: - - key: "310" - operator: ǩ - values: - - "311" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k - operator: Exists - matchLabels: - 2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF: T.5vN5.25aWx.2aM214_.-N_g-..H - namespaces: - - "330" - topologyKey: "331" - weight: -1856061695 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0 - operator: DoesNotExist - matchLabels: - 9-_56-__18Y--6-_3J--.48Y.q0: O1-F.v - namespaces: - - "322" - topologyKey: "323" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 9_.-.Ms7_t.U - operator: DoesNotExist - matchLabels: - n_H-.___._D8.TS-jJ.Ys_Mop34_-2: H38xm-.nx.sEK4.B._6 - namespaces: - - "346" - topologyKey: "347" - weight: 1046355854 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og - operator: NotIn - values: - - WT-M.3_-1y_8D_3 - matchLabels: - 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT: SY.g._2F7.-e - namespaces: - - "338" - topologyKey: "339" - automountServiceAccountToken: false - containers: - - args: - - "238" - command: - - "237" - env: - - name: "245" - value: "246" - valueFrom: - configMapKeyRef: - key: "252" - name: "251" - optional: false - fieldRef: - apiVersion: "247" - fieldPath: "248" - resourceFieldRef: - containerName: "249" - divisor: "909" - resource: "250" - secretKeyRef: - key: "254" - name: "253" - optional: true - envFrom: - - configMapRef: - name: "243" - optional: true - prefix: "242" - secretRef: - name: "244" - optional: true - image: "236" - imagePullPolicy: 姣>懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾 - lifecycle: - postStart: - exec: - command: - - "276" - httpGet: - host: "278" - httpHeaders: - - name: "279" - value: "280" - path: "277" - port: -78618443 - scheme: Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ - tcpSocket: - host: "281" - port: -495373547 - preStop: - exec: - command: - - "282" - httpGet: - host: "285" - httpHeaders: - - name: "286" - value: "287" - path: "283" - port: "284" - scheme: /樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - tcpSocket: - host: "288" - port: 88483549 - livenessProbe: - exec: - command: - - "261" - failureThreshold: 208045354 - httpGet: - host: "264" - httpHeaders: - - name: "265" - value: "266" - path: "262" - port: "263" - scheme: '{Ⱦdz@' - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "267" - port: 406308963 - timeoutSeconds: 2026784878 - name: "235" - ports: - - containerPort: -31530684 - hostIP: "241" - hostPort: -374922344 - name: "240" - protocol: Ú|dk_ - readinessProbe: - exec: - command: - - "268" - failureThreshold: -1131820775 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "269" - port: "270" - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "275" - port: "274" - timeoutSeconds: 747521320 - resources: - limits: - '?': "193" - requests: - '@Ȗs«öʮĀ<é瞾': "51" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ - drop: - - ŬƩȿ0矀Kʝ瘴I\p - privileged: true - procMount: FD剂讼ɓȌʟn - readOnlyRootFilesystem: true - runAsGroup: 256256810846755412 - runAsNonRoot: false - runAsUser: 2314355702080875607 - seLinuxOptions: - level: "293" - role: "291" - type: "292" - user: "290" - stdinOnce: true - terminationMessagePath: "289" - terminationMessagePolicy: ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷 - tty: true - volumeDevices: - - devicePath: "260" - name: "259" - volumeMounts: - - mountPath: "256" - mountPropagation: £軶ǃ*ʙ嫙&蒒5靇C'ɵK.Q貇 - name: "255" - subPath: "257" - subPathExpr: "258" - workingDir: "239" - dnsConfig: - nameservers: - - "354" - options: - - name: "356" - value: "357" - searches: - - "355" - dnsPolicy: Bls3!Zɾ - enableServiceLinks: false - hostAliases: - - hostnames: - - "352" - ip: "351" - hostNetwork: true - hostname: "306" - imagePullSecrets: - - name: "305" - initContainers: - - args: - - "179" - command: - - "178" - env: - - name: "186" - value: "187" - valueFrom: - configMapKeyRef: - key: "193" - name: "192" - optional: false - fieldRef: - apiVersion: "188" - fieldPath: "189" - resourceFieldRef: - containerName: "190" - divisor: "980" - resource: "191" - secretKeyRef: - key: "195" - name: "194" - optional: true - envFrom: - - configMapRef: - name: "184" - optional: true - prefix: "183" - secretRef: - name: "185" - optional: false - image: "177" - imagePullPolicy: 腬 - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: -33154680 - scheme: 跾|@?鷅bȻN+ņ榱* - tcpSocket: - host: "222" - port: "221" - preStop: - exec: - command: - - "223" - httpGet: - host: "226" - httpHeaders: - - name: "227" - value: "228" - path: "224" - port: "225" - scheme: 櫸eʔŊ - tcpSocket: - host: "229" - port: 731879508 - livenessProbe: - exec: - command: - - "202" - failureThreshold: -532628939 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -1365115016 - scheme: 町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅 - initialDelaySeconds: 1971383046 - periodSeconds: -1376537100 - successThreshold: 1100645882 - tcpSocket: - host: "207" - port: -1105572246 - timeoutSeconds: 1154560741 - name: "176" - ports: - - containerPort: -1629040033 - hostIP: "182" - hostPort: -958191807 - name: "181" - protocol: ʜǝ鿟ldg滠鼍ƭt - readinessProbe: - exec: - command: - - "208" - failureThreshold: 195263908 - httpGet: - host: "211" - httpHeaders: - - name: "212" - value: "213" - path: "209" - port: "210" - scheme: '%:;栍dʪīT捘ɍi' - initialDelaySeconds: -1510026905 - periodSeconds: 2025698376 - successThreshold: -1766555420 - tcpSocket: - host: "215" - port: "214" - timeoutSeconds: 437857734 - resources: - limits: - )ÙæNǚ錯ƶRquA?瞲Ť倱: "289" - requests: - ź贩j瀉: "621" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö - privileged: true - procMount: 龫`劳&¼傭Ȟ1酃=6}ɡ - readOnlyRootFilesystem: false - runAsGroup: 5929692523927062634 - runAsNonRoot: false - runAsUser: 1383845015160566234 - seLinuxOptions: - level: "234" - role: "232" - type: "233" - user: "231" - terminationMessagePath: "230" - terminationMessagePolicy: hoĂɋ - tty: true - volumeDevices: - - devicePath: "201" - name: "200" - volumeMounts: - - mountPath: "197" - mountPropagation: ɶ - name: "196" - readOnly: true - subPath: "198" - subPathExpr: "199" - workingDir: "180" - nodeName: "298" - nodeSelector: - "294": "295" - priority: -1442230895 - priorityClassName: "353" - readinessGates: - - conditionType: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - restartPolicy: 3ƁÀ*f< - runtimeClassName: "358" - schedulerName: "348" - securityContext: - fsGroup: 1150055837641003771 - runAsGroup: -982786583685356406 - runAsNonRoot: false - runAsUser: -6630145684297456260 - seLinuxOptions: - level: "302" - role: "300" - type: "301" - user: "299" - supplementalGroups: - - -7477362499801752548 - sysctls: - - name: "303" - value: "304" - serviceAccount: "297" - serviceAccountName: "296" - shareProcessNamespace: false - subdomain: "307" - terminationGracePeriodSeconds: 998876704495005296 - tolerations: - - effect: 缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw - key: "349" - operator: ȶŮ嫠!@@)Zq=歍þ螗ɃŒ - tolerationSeconds: 3497863229537310760 - value: "350" - volumes: - - awsElasticBlockStore: - fsType: "76" - partition: -156457987 - readOnly: true - volumeID: "75" - azureDisk: - cachingMode: ĦE勗E濞偘1 - diskName: "139" - diskURI: "140" - fsType: "141" - kind: 議Ǹ轺@)蓳嗘 - readOnly: true - azureFile: - readOnly: true - secretName: "125" - shareName: "126" - cephfs: - monitors: - - "110" - path: "111" - secretFile: "113" - secretRef: - name: "114" - user: "112" - cinder: - fsType: "108" - secretRef: - name: "109" - volumeID: "107" - configMap: - defaultMode: 1754292691 - items: - - key: "128" - mode: -675987103 - path: "129" - name: "127" - optional: true - csi: - driver: "171" - fsType: "172" - nodePublishSecretRef: - name: "175" - readOnly: true - volumeAttributes: - "173": "174" - downwardAPI: - defaultMode: -1008038372 - items: - - fieldRef: - apiVersion: "118" - fieldPath: "119" - mode: -1965578645 - path: "117" - resourceFieldRef: - containerName: "120" - divisor: "327" - resource: "121" - emptyDir: - medium: Šĸů湙騘&啞 - sizeLimit: "577" - fc: - fsType: "123" - lun: -658258937 - targetWWNs: - - "122" - wwids: - - "124" - flexVolume: - driver: "102" - fsType: "103" - options: - "105": "106" - readOnly: true - secretRef: - name: "104" - flocker: - datasetName: "115" - datasetUUID: "116" - gcePersistentDisk: - fsType: "74" - partition: 663386308 - pdName: "73" - gitRepo: - directory: "79" - repository: "77" - revision: "78" - glusterfs: - endpoints: "92" - path: "93" - readOnly: true - hostPath: - path: "72" - type: ħ籦ö嗏ʑ>季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -10286140 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.json deleted file mode 100644 index 3ee2bcbe4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.json +++ /dev/null @@ -1,1107 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "schedule": "24", - "startingDeadlineSeconds": -8817021678265088399, - "concurrencyPolicy": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "suspend": false, - "jobTemplate": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɭîcP$Iņ", - "resourceVersion": "14926502199533077124", - "generation": -1382274715716350298, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -8477149434422619117, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "+½H牗洝尿彀亞螩", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "4%a鯿r", - "apiVersion": "40" - } - ] - }, - "spec": { - "parallelism": -110482268, - "completions": -54954325, - "activeDeadlineSeconds": 8559948711650432497, - "backoffLimit": -907310967, - "selector": { - "matchLabels": { - "WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U": "UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9" - }, - "matchExpressions": [ - { - "key": "GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0", - "operator": "NotIn", - "values": [ - "YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "52", - "generateName": "53", - "namespace": "54", - "selfLink": "55", - "uid": "³ƞsɁ8^", - "resourceVersion": "8685765401091182865", - "generation": 2849222499405033998, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -671981934547025691, - "labels": { - "57": "58" - }, - "annotations": { - "59": "60" - }, - "ownerReferences": [ - { - "apiVersion": "61", - "kind": "62", - "name": "63", - "uid": "Ǡ/淹\\韲翁\u0026ʢ", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "64" - ], - "clusterName": "65", - "managedFields": [ - { - "manager": "66", - "operation": "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ", - "apiVersion": "67" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "72", - "hostPath": { - "path": "73", - "type": "ȸŹăȲϤĦ" - }, - "emptyDir": { - "medium": "芝M 宸@Z^嫫猤痈", - "sizeLimit": "179" - }, - "gcePersistentDisk": { - "pdName": "74", - "fsType": "75", - "partition": -2127673004 - }, - "awsElasticBlockStore": { - "volumeID": "76", - "fsType": "77", - "partition": 717712876 - }, - "gitRepo": { - "repository": "78", - "revision": "79", - "directory": "80" - }, - "secret": { - "secretName": "81", - "items": [ - { - "key": "82", - "path": "83", - "mode": 147264373 - } - ], - "defaultMode": -1249460160, - "optional": false - }, - "nfs": { - "server": "84", - "path": "85" - }, - "iscsi": { - "targetPortal": "86", - "iqn": "87", - "lun": 1029074742, - "iscsiInterface": "88", - "fsType": "89", - "portals": [ - "90" - ], - "secretRef": { - "name": "91" - }, - "initiatorName": "92" - }, - "glusterfs": { - "endpoints": "93", - "path": "94" - }, - "persistentVolumeClaim": { - "claimName": "95", - "readOnly": true - }, - "rbd": { - "monitors": [ - "96" - ], - "image": "97", - "fsType": "98", - "pool": "99", - "user": "100", - "keyring": "101", - "secretRef": { - "name": "102" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "103", - "fsType": "104", - "secretRef": { - "name": "105" - }, - "readOnly": true, - "options": { - "106": "107" - } - }, - "cinder": { - "volumeID": "108", - "fsType": "109", - "secretRef": { - "name": "110" - } - }, - "cephfs": { - "monitors": [ - "111" - ], - "path": "112", - "user": "113", - "secretFile": "114", - "secretRef": { - "name": "115" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "116", - "datasetUUID": "117" - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "857" - }, - "mode": -1305215109 - } - ], - "defaultMode": 186998979 - }, - "fc": { - "targetWWNs": [ - "123" - ], - "lun": 1179332384, - "fsType": "124", - "readOnly": true, - "wwids": [ - "125" - ] - }, - "azureFile": { - "secretName": "126", - "shareName": "127" - }, - "configMap": { - "name": "128", - "items": [ - { - "key": "129", - "path": "130", - "mode": 926891073 - } - ], - "defaultMode": -1558831136, - "optional": true - }, - "vsphereVolume": { - "volumePath": "131", - "fsType": "132", - "storagePolicyName": "133", - "storagePolicyID": "134" - }, - "quobyte": { - "registry": "135", - "volume": "136", - "user": "137", - "group": "138", - "tenant": "139" - }, - "azureDisk": { - "diskName": "140", - "diskURI": "141", - "cachingMode": "ÙæNǚ錯ƶRq", - "fsType": "142", - "readOnly": true, - "kind": "?瞲Ť倱\u003cįXŋ朘瑥A徙" - }, - "photonPersistentDisk": { - "pdID": "143", - "fsType": "144" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "145", - "items": [ - { - "key": "146", - "path": "147", - "mode": -1120128337 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "148", - "fieldRef": { - "apiVersion": "149", - "fieldPath": "150" - }, - "resourceFieldRef": { - "containerName": "151", - "resource": "152", - "divisor": "580" - }, - "mode": 1669671203 - } - ] - }, - "configMap": { - "name": "153", - "items": [ - { - "key": "154", - "path": "155", - "mode": -1950133943 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "156", - "expirationSeconds": -8801560367353238479, - "path": "157" - } - } - ], - "defaultMode": -427769948 - }, - "portworxVolume": { - "volumeID": "158", - "fsType": "159" - }, - "scaleIO": { - "gateway": "160", - "system": "161", - "secretRef": { - "name": "162" - }, - "protectionDomain": "163", - "storagePool": "164", - "storageMode": "165", - "volumeName": "166", - "fsType": "167", - "readOnly": true - }, - "storageos": { - "volumeName": "168", - "volumeNamespace": "169", - "fsType": "170", - "secretRef": { - "name": "171" - } - }, - "csi": { - "driver": "172", - "readOnly": true, - "fsType": "173", - "volumeAttributes": { - "174": "175" - }, - "nodePublishSecretRef": { - "name": "176" - } - } - } - ], - "initContainers": [ - { - "name": "177", - "image": "178", - "command": [ - "179" - ], - "args": [ - "180" - ], - "workingDir": "181", - "ports": [ - { - "name": "182", - "hostPort": 1971383046, - "containerPort": 1154560741, - "protocol": "涁İ而踪鄌eÞȦY籎顒ǥ", - "hostIP": "183" - } - ], - "envFrom": [ - { - "prefix": "184", - "configMapRef": { - "name": "185", - "optional": false - }, - "secretRef": { - "name": "186", - "optional": false - } - } - ], - "env": [ - { - "name": "187", - "value": "188", - "valueFrom": { - "fieldRef": { - "apiVersion": "189", - "fieldPath": "190" - }, - "resourceFieldRef": { - "containerName": "191", - "resource": "192", - "divisor": "832" - }, - "configMapKeyRef": { - "name": "193", - "key": "194", - "optional": true - }, - "secretKeyRef": { - "name": "195", - "key": "196", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°": "465" - }, - "requests": { - "oɘ檲ɨ銦妰黖ȓ": "793" - } - }, - "volumeMounts": [ - { - "name": "197", - "mountPath": "198", - "subPath": "199", - "mountPropagation": "oĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵ɢ", - "subPathExpr": "200" - } - ], - "volumeDevices": [ - { - "name": "201", - "devicePath": "202" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 290736426, - "host": "205", - "scheme": "ö", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": "208", - "host": "209" - }, - "initialDelaySeconds": 322201525, - "timeoutSeconds": -1784033404, - "periodSeconds": 66472042, - "successThreshold": 2130088978, - "failureThreshold": -1064240304 - }, - "readinessProbe": { - "exec": { - "command": [ - "210" - ] - }, - "httpGet": { - "path": "211", - "port": -566408554, - "host": "212", - "scheme": "劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立", - "httpHeaders": [ - { - "name": "213", - "value": "214" - } - ] - }, - "tcpSocket": { - "port": -31530684, - "host": "215" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": "218", - "host": "219", - "scheme": "n芞QÄȻȊ+?ƭ峧Y栲茇竛", - "httpHeaders": [ - { - "name": "220", - "value": "221" - } - ] - }, - "tcpSocket": { - "port": -592581809, - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": 1702578303, - "host": "225", - "scheme": "NŬɨǙÄr蛏豈ɃHŠơŴĿ", - "httpHeaders": [ - { - "name": "226", - "value": "227" - } - ] - }, - "tcpSocket": { - "port": -1047607622, - "host": "228" - } - } - }, - "terminationMessagePath": "229", - "terminationMessagePolicy": "ȉ彂", - "imagePullPolicy": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "securityContext": { - "capabilities": { - "add": [ - "þŹʣy豎@ɀ羭," - ], - "drop": [ - "OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "230", - "role": "231", - "type": "232", - "level": "233" - }, - "runAsUser": -2405783144562371879, - "runAsGroup": 3861209808960510792, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^拜" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "234", - "image": "235", - "command": [ - "236" - ], - "args": [ - "237" - ], - "workingDir": "238", - "ports": [ - { - "name": "239", - "hostPort": 1385030458, - "containerPort": 427196286, - "protocol": "o/樝fw[Řż丩Ž", - "hostIP": "240" - } - ], - "envFrom": [ - { - "prefix": "241", - "configMapRef": { - "name": "242", - "optional": false - }, - "secretRef": { - "name": "243", - "optional": true - } - } - ], - "env": [ - { - "name": "244", - "value": "245", - "valueFrom": { - "fieldRef": { - "apiVersion": "246", - "fieldPath": "247" - }, - "resourceFieldRef": { - "containerName": "248", - "resource": "249", - "divisor": "932" - }, - "configMapKeyRef": { - "name": "250", - "key": "251", - "optional": false - }, - "secretKeyRef": { - "name": "252", - "key": "253", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "9ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ę": "638" - }, - "requests": { - "ǂ\u003e5姣\u003e懔%熷": "440" - } - }, - "volumeMounts": [ - { - "name": "254", - "readOnly": true, - "mountPath": "255", - "subPath": "256", - "mountPropagation": "奺Ȋ礶惇¸t颟.鵫ǚ", - "subPathExpr": "257" - } - ], - "volumeDevices": [ - { - "name": "258", - "devicePath": "259" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "Ȥ藠3.", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - }, - "initialDelaySeconds": -1389418722, - "timeoutSeconds": 851018015, - "periodSeconds": 596942561, - "successThreshold": -1880980172, - "failureThreshold": -161485752 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "«丯Ƙ枛牐ɺ皚", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": -1934111455, - "host": "274" - }, - "initialDelaySeconds": 766864314, - "timeoutSeconds": 1146016612, - "periodSeconds": 1495880465, - "successThreshold": -1032967081, - "failureThreshold": 59664438 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": "277", - "host": "278", - "scheme": "'", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -801430937, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": 1810980158, - "host": "284", - "scheme": "_ƮA攤/ɸɎ R§耶FfBl", - "httpHeaders": [ - { - "name": "285", - "value": "286" - } - ] - }, - "tcpSocket": { - "port": 1074486306, - "host": "287" - } - } - }, - "terminationMessagePath": "288", - "terminationMessagePolicy": "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ", - "imagePullPolicy": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "securityContext": { - "capabilities": { - "add": [ - "勅跦Opwǩ曬逴褜1Ø" - ], - "drop": [ - "ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ]" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "289", - "role": "290", - "type": "291", - "level": "292" - }, - "runAsUser": -6977492437661738751, - "runAsGroup": -1073698526114922943, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ƙt叀碧闳ȩr嚧ʣq埄趛屡" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "昕Ĭ", - "terminationGracePeriodSeconds": 5474461944206441349, - "activeDeadlineSeconds": 5072234809910109224, - "dnsPolicy": "苧yñKJɐ扵Gƚ绤fʀļ腩", - "nodeSelector": { - "293": "294" - }, - "serviceAccountName": "295", - "serviceAccount": "296", - "automountServiceAccountToken": true, - "nodeName": "297", - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "298", - "role": "299", - "type": "300", - "level": "301" - }, - "runAsUser": 439010468654957223, - "runAsGroup": 3282902794794440567, - "runAsNonRoot": true, - "supplementalGroups": [ - -9161399525777020538 - ], - "fsGroup": -1883725333589566834, - "sysctls": [ - { - "name": "302", - "value": "303" - } - ] - }, - "imagePullSecrets": [ - { - "name": "304" - } - ], - "hostname": "305", - "subdomain": "306", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "307", - "operator": "议Ƭƶ氩Ȩ\u003c6鄰簳°Ļǟi\u0026", - "values": [ - "308" - ] - } - ], - "matchFields": [ - { - "key": "309", - "operator": "%皧V垾现葢ŵ橨鬶l獕;跣Hǝcw媀瓄", - "values": [ - "310" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1244119841, - "preference": { - "matchExpressions": [ - { - "key": "311", - "operator": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "values": [ - "312" - ] - } - ], - "matchFields": [ - { - "key": "313", - "operator": "/»頸+SÄ蚃ɣľ)酊龨Î", - "values": [ - "314" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "so-h-9-15v-5925a-x12a-214-3s--gg93h.0-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26-2/P.-_u": "CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.134-5-.q6H5" - }, - "matchExpressions": [ - { - "key": "z---883d-v3j4-7y-p---up52--sjo7799-sk5/i-.M.U_-m.-P.y9", - "operator": "NotIn", - "values": [ - "C_-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.O" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1095116290, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1": "R8D_X._B__-P---_H-.___._8" - }, - "matchExpressions": [ - { - "key": "W-y8", - "operator": "NotIn", - "values": [ - "Q.6.I--2_9.v.--_.--4QQ.-s.H.Hu-k-x" - ] - } - ] - }, - "namespaces": [ - "329" - ], - "topologyKey": "330" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "337" - ], - "topologyKey": "338" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "345" - ], - "topologyKey": "346" - } - } - ] - } - }, - "schedulerName": "347", - "tolerations": [ - { - "key": "348", - "operator": "抷qTfZȻ干m謆7", - "value": "349", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "350", - "hostnames": [ - "351" - ] - } - ], - "priorityClassName": "352", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "353" - ], - "searches": [ - "354" - ], - "options": [ - { - "name": "355", - "value": "356" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "357", - "enableServiceLinks": true - } - }, - "ttlSecondsAfterFinished": 212353165 - } - }, - "successfulJobsHistoryLimit": 315828133, - "failedJobsHistoryLimit": -1686694849 - }, - "status": { - "active": [ - { - "kind": "358", - "namespace": "359", - "name": "360", - "uid": "侅", - "apiVersion": "361", - "resourceVersion": "362", - "fieldPath": "363" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.pb deleted file mode 100644 index 972623e9d4bcfce28b5fb644483afa25eb429062..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5219 zcmYjV33L=yy6)QnVd~5{ZRu#+Zm|`N(OXpA+8GrL2r(jr5VkmDnXsAw*?>Ua^PH^2 zbXWo;5E95v5=ej$AS(n-x;x!CUH;{} zfBpBnou%blnERPKGtxJ&T0dheN#BsOK3!m^%*o5%l$4#pUWj9Sh(Ux!q60}zB*#15 z<>9s}cXw`5pwX4Cg<5vK=I-*>aiO|Xio0r=**>_2+#@KuA`zKaB~8>6S>cJOYoGkB z=&U}*myk1N#Ra#wB-4wMH6 zYhx|(mD8CH1Pf%=N)(5cs7@=<;u-&m@sq2PAAixa1LBl)qR2cEbX^ujUR4DmX&pzd zeOkKbozPbZ0^Q$r<@m1Ni4!iAHkGl8JZlw&4B8^l5;NnVB|EI5;=K2%u?va8%7cNk zN6g-f=7pkb!;PWFWARo|ipDIeg;r5>p}S#;&Q6i0rH4;l%yU>J9wPhn@u}@syWY7; z|B$Wwx@kt6_OHAD_pc>Ii{jt1zcvY;5B& z<_k8aWeElhic4AN(u7=Yqk*|x&Dcs7yq-GGNY^!CwTM-`Hdzxmth39Q$L7Dl>4w3H z#ufo)bMo`cv9Sbm;yO+>$l8UgWX!XZ7iMpMag!r%<;!}io}b7q-y&noy<~7a80M2z zgPX&pt-*LMuX5=IH$ToozIQTb0Dl>fl0}DAmYh~uj{n)%8E<30zgT;f+^s2^tSYj^ z3%o7}8i7>Pc3-<%H&NH=&Ui@zBC_-5Bf|A>GutDs1u;LDI`3ZLm@tO_KWB06mo z%`*Z6L%#_(^#v~$PruX}Z&d^y(Nt3))f7mzCt(W zUXC?S4$e+{)$HyL?raYpe3PBb#0aYH_!TUYSgR`A|7+h+<#&-?jkP#!(5*nXYX9n! zBOh5IM}H1I8uaK6tHu-fax{Vc1xUb56Ybx09G+)?tEi#pU$->OWMB*wYqH&v5D#t8 zrm6P+&#rzM~z}BuAuEjz#ed?Nn%|nt3;EYqYJ~ElxT` z;PW1$4*@!%5P%S!Af))npvKj{V>6-*rhyXgWhJ6OFae2elyb z_P4+LVJOD_=ZjbB{uu=qwW51qT%=Y->b6MT7Nz6p0opCoZUsVwhZ+w;BOvrX^bCwj zJd8?$ccxvdHYjxVXj2t5V?O=u(8k6ZWf(>#(ipqrz&u`F1YvT^XBNG zVML>rD8Q057I9prV9EgICB(s)LRBk51bl@+%D|gQKu9w|$O#~nBoJycx{MAYrV=r+ zk$5GU{T0IV@qmz{GZeOY3KK&_=p#^UK`2fTun7b<;Ym8A+lIXZHIwZ> z{&@8rRk)|G62}?y%5) z$u|7Q53gJ8*E&X8C&ljVIO?Aq_s1)P`+ta-<@?_sdN89I-3nQi*~h^+l+N3+s46wC zInfhQTadv-<8Rpty1y#^zlffQEvTr=BQZcx{WYl3M3w=MMu$D0-{GM6X_E6k!+Y}i zKu!A$|Db<&Y|2t#?PO`*%OQ6xZc@>&AB~)1zV=d)`+TVU7#wI250pQmO9>$4BoImp2z78ZX*8MlQ$ZBKKlIxrba{_ z@=@f)LiqkfUMfK#ffayM_Mtybr7U?Blg`A^QI&l#bn>LP$J-z1J?86rMhTbo27Awp z^}0tUnqHqyorru6BCoSgP7Bs|E;AcPgS&e}ds{u{0>`?-J^dSkyJ~+O8fZ(LII^n1 zJYE#sUk1wro=u2$8hI%bTGgqsJSS~6Z1sxS4oxksN2m%GBFUE{myJc%8SVQQ>Qg_YTh zm{;<%@p`OdLEegGoyh5Un?TYr5hN_;W4vyiF0Ka(M{)~Q46qPhP&cmUv5eONMN~1& z(6j=QC2h$s#CT&S*0PC$$&6$U8(Ua1CwDnF*U&KN%bJH*@kHV9>!}+!0dvbzF_t%G z8anqf2ZtzV_9 zcq50Cx$XLG2FlMd@ZwyKTa~{aix{T~sap#~eV#D~=WSlHl3T|aWS$D{t>L&uc|d&^ z!L}0tkRgO^MpJ)06a3~D`uh-5j+kUdRPZ(J#tP0zfHleBzmbSxxxpD4D=?Fm9^3iovBB z#)7Sy!7Va?{BHs+g%BR6Ea#TJ#O0@M<}iSTWd(EUTyQa&{l#j|;Fbb>2E-(@dCYSH zHn3PdZ;pz+KMg$ixE_n zG8>Ij9UbVQ#>ayI?g~R1vF-S%v}cOlG~FGOoDT;2i`~7UqMf0^&U zcZXZ{O&q1GL`rA`jVjc%D4`MPNg?PwB{YIgxtt#5&$kJUKx?f4*8mhHG=ffft*!u} zS;%nAG;`lb@ZdpT%SP|n?ZN&*W4vB7_mqZ<&wIL)6N4ou1G`;gy%7$h$n1m6-P!)S z!0|qRSJ>5IcJziv4*2%dQB@a{bn1di8Hxbc3lMtzquK5fe^s!k`Wb&^V5lqc+3};n zBi(P9%@x6xzEJHse=CV0JfD)uJRdod;Nk&AkML6D#6G_70~d;%*u3ntj`v3nXL=1G zy!vlEhh9bquiMVO_rW1#FKg;N@qL60#C})Rv(&Ru~xA23~KrjMOBOHTM2g>ZT4v&tL(7Egt@GT2=eaRq8K zOq6c15ck->Zcw{7!DZSn+s@bbej9bg9%}C07Zdx|XJyAw+~D4p!6-@QUH>eth&D6a zh@6bd|!T7+Y7lVBbF9gen zCaS%CFBE1o5_8x1sAuR>+xF1u-Lw5g!O;^>vyUwDv`@5NI$@rx3AB~um}TcD210H1 z!TtT=iXC3pQ;=4a7QpW@AfUPvk!0JDAlUtIoR;lXZtB`J--tQXw=vYSgVs4ocTP3SD*eX-O+|5EU3;_l55W)j9zu~zo=C3}qAZL- zHIRu94IglQ7{%%`x)*f9^$LXKpj<_Uk5ZJCE6DN}^c3@?yUIKCpMmo8f$ri^WnZXj zN9a^-V9%*=arGMM3HP2rLv5hFI#AoN=}W3xy@8Ncx%cFIQSGyL6}PP6kG}W214z5r p^`}pw8R(eCJVp({w;}?2ixCx|Ro6z#A& diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.yaml deleted file mode 100644 index d092d3115..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.after_roundtrip.yaml +++ /dev/null @@ -1,753 +0,0 @@ -apiVersion: batch/v2alpha1 -kind: CronJob -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - concurrencyPolicy: ěĂ凗蓏Ŋ蛊ĉy緅縕 - failedJobsHistoryLimit: -1686694849 - jobTemplate: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -8477149434422619117 - finalizers: - - "37" - generateName: "26" - generation: -1382274715716350298 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - manager: "39" - operation: 4%a鯿r - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: false - kind: "35" - name: "36" - uid: +½H牗洝尿彀亞螩 - resourceVersion: "14926502199533077124" - selfLink: "28" - uid: ɭîcP$Iņ - spec: - activeDeadlineSeconds: 8559948711650432497 - backoffLimit: -907310967 - completions: -54954325 - manualSelector: false - parallelism: -110482268 - selector: - matchExpressions: - - key: GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0 - operator: NotIn - values: - - YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G - matchLabels: - WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U: UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9 - template: - metadata: - annotations: - "59": "60" - clusterName: "65" - creationTimestamp: null - deletionGracePeriodSeconds: -671981934547025691 - finalizers: - - "64" - generateName: "53" - generation: 2849222499405033998 - labels: - "57": "58" - managedFields: - - apiVersion: "67" - manager: "66" - operation: \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - name: "52" - namespace: "54" - ownerReferences: - - apiVersion: "61" - blockOwnerDeletion: true - controller: true - kind: "62" - name: "63" - uid: Ǡ/淹\韲翁&ʢ - resourceVersion: "8685765401091182865" - selfLink: "55" - uid: ³ƞsɁ8^ - spec: - activeDeadlineSeconds: 5072234809910109224 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "311" - operator: 拉Œɥ颶妧Ö闊 鰔澝qV訆 - values: - - "312" - matchFields: - - key: "313" - operator: /»頸+SÄ蚃ɣľ)酊龨Î - values: - - "314" - weight: -1244119841 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "307" - operator: 议Ƭƶ氩Ȩ<6鄰簳°Ļǟi& - values: - - "308" - matchFields: - - key: "309" - operator: '%皧V垾现葢ŵ橨鬶l獕;跣Hǝcw媀瓄' - values: - - "310" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: W-y8 - operator: NotIn - values: - - Q.6.I--2_9.v.--_.--4QQ.-s.H.Hu-k-x - matchLabels: - 6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1: R8D_X._B__-P---_H-.___._8 - namespaces: - - "329" - topologyKey: "330" - weight: -1095116290 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: z---883d-v3j4-7y-p---up52--sjo7799-sk5/i-.M.U_-m.-P.y9 - operator: NotIn - values: - - C_-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.O - matchLabels: - so-h-9-15v-5925a-x12a-214-3s--gg93h.0-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26-2/P.-_u: CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.134-5-.q6H5 - namespaces: - - "321" - topologyKey: "322" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "345" - topologyKey: "346" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "337" - topologyKey: "338" - automountServiceAccountToken: true - containers: - - args: - - "237" - command: - - "236" - env: - - name: "244" - value: "245" - valueFrom: - configMapKeyRef: - key: "251" - name: "250" - optional: false - fieldRef: - apiVersion: "246" - fieldPath: "247" - resourceFieldRef: - containerName: "248" - divisor: "932" - resource: "249" - secretKeyRef: - key: "253" - name: "252" - optional: true - envFrom: - - configMapRef: - name: "242" - optional: false - prefix: "241" - secretRef: - name: "243" - optional: true - image: "235" - imagePullPolicy: Ǖɳɷ9Ì崟¿瘦ɖ緕 - lifecycle: - postStart: - exec: - command: - - "275" - httpGet: - host: "278" - httpHeaders: - - name: "279" - value: "280" - path: "276" - port: "277" - scheme: '''' - tcpSocket: - host: "281" - port: -801430937 - preStop: - exec: - command: - - "282" - httpGet: - host: "284" - httpHeaders: - - name: "285" - value: "286" - path: "283" - port: 1810980158 - scheme: _ƮA攤/ɸɎ R§耶FfBl - tcpSocket: - host: "287" - port: 1074486306 - livenessProbe: - exec: - command: - - "260" - failureThreshold: -161485752 - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: Ȥ藠3. - initialDelaySeconds: -1389418722 - periodSeconds: 596942561 - successThreshold: -1880980172 - tcpSocket: - host: "267" - port: "266" - timeoutSeconds: 851018015 - name: "234" - ports: - - containerPort: 427196286 - hostIP: "240" - hostPort: 1385030458 - name: "239" - protocol: o/樝fw[Řż丩Ž - readinessProbe: - exec: - command: - - "268" - failureThreshold: 59664438 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "269" - port: "270" - scheme: «丯Ƙ枛牐ɺ皚 - initialDelaySeconds: 766864314 - periodSeconds: 1495880465 - successThreshold: -1032967081 - tcpSocket: - host: "274" - port: -1934111455 - timeoutSeconds: 1146016612 - resources: - limits: - 9ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ę: "638" - requests: - ǂ>5姣>懔%熷: "440" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 勅跦Opwǩ曬逴褜1Ø - drop: - - ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ] - privileged: true - procMount: ƙt叀碧闳ȩr嚧ʣq埄趛屡 - readOnlyRootFilesystem: true - runAsGroup: -1073698526114922943 - runAsNonRoot: false - runAsUser: -6977492437661738751 - seLinuxOptions: - level: "292" - role: "290" - type: "291" - user: "289" - stdin: true - stdinOnce: true - terminationMessagePath: "288" - terminationMessagePolicy: Zɾģ毋Ó6dz娝嘚庎D}埽uʎ - tty: true - volumeDevices: - - devicePath: "259" - name: "258" - volumeMounts: - - mountPath: "255" - mountPropagation: 奺Ȋ礶惇¸t颟.鵫ǚ - name: "254" - readOnly: true - subPath: "256" - subPathExpr: "257" - workingDir: "238" - dnsConfig: - nameservers: - - "353" - options: - - name: "355" - value: "356" - searches: - - "354" - dnsPolicy: 苧yñKJɐ扵Gƚ绤fʀļ腩 - enableServiceLinks: true - hostAliases: - - hostnames: - - "351" - ip: "350" - hostIPC: true - hostname: "305" - imagePullSecrets: - - name: "304" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: ^拜 - readOnlyRootFilesystem: true - runAsGroup: 3861209808960510792 - runAsNonRoot: true - runAsUser: -2405783144562371879 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - stdin: true - stdinOnce: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "297" - nodeSelector: - "293": "294" - priority: -895317190 - priorityClassName: "352" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: 昕Ĭ - runtimeClassName: "357" - schedulerName: "347" - securityContext: - fsGroup: -1883725333589566834 - runAsGroup: 3282902794794440567 - runAsNonRoot: true - runAsUser: 439010468654957223 - seLinuxOptions: - level: "301" - role: "299" - type: "300" - user: "298" - supplementalGroups: - - -9161399525777020538 - sysctls: - - name: "302" - value: "303" - serviceAccount: "296" - serviceAccountName: "295" - shareProcessNamespace: false - subdomain: "306" - terminationGracePeriodSeconds: 5474461944206441349 - tolerations: - - effect: 儉ɩ柀 - key: "348" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "349" - volumes: - - awsElasticBlockStore: - fsType: "77" - partition: 717712876 - volumeID: "76" - azureDisk: - cachingMode: ÙæNǚ錯ƶRq - diskName: "140" - diskURI: "141" - fsType: "142" - kind: ?瞲Ť倱<įXŋ朘瑥A徙 - readOnly: true - azureFile: - secretName: "126" - shareName: "127" - cephfs: - monitors: - - "111" - path: "112" - readOnly: true - secretFile: "114" - secretRef: - name: "115" - user: "113" - cinder: - fsType: "109" - secretRef: - name: "110" - volumeID: "108" - configMap: - defaultMode: -1558831136 - items: - - key: "129" - mode: 926891073 - path: "130" - name: "128" - optional: true - csi: - driver: "172" - fsType: "173" - nodePublishSecretRef: - name: "176" - readOnly: true - volumeAttributes: - "174": "175" - downwardAPI: - defaultMode: 186998979 - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1305215109 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "857" - resource: "122" - emptyDir: - medium: 芝M 宸@Z^嫫猤痈 - sizeLimit: "179" - fc: - fsType: "124" - lun: 1179332384 - readOnly: true - targetWWNs: - - "123" - wwids: - - "125" - flexVolume: - driver: "103" - fsType: "104" - options: - "106": "107" - readOnly: true - secretRef: - name: "105" - flocker: - datasetName: "116" - datasetUUID: "117" - gcePersistentDisk: - fsType: "75" - partition: -2127673004 - pdName: "74" - gitRepo: - directory: "80" - repository: "78" - revision: "79" - glusterfs: - endpoints: "93" - path: "94" - hostPath: - path: "73" - type: ȸŹăȲϤĦ - iscsi: - fsType: "89" - initiatorName: "92" - iqn: "87" - iscsiInterface: "88" - lun: 1029074742 - portals: - - "90" - secretRef: - name: "91" - targetPortal: "86" - name: "72" - nfs: - path: "85" - server: "84" - persistentVolumeClaim: - claimName: "95" - readOnly: true - photonPersistentDisk: - fsType: "144" - pdID: "143" - portworxVolume: - fsType: "159" - volumeID: "158" - projected: - defaultMode: -427769948 - sources: - - configMap: - items: - - key: "154" - mode: -1950133943 - path: "155" - name: "153" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "149" - fieldPath: "150" - mode: 1669671203 - path: "148" - resourceFieldRef: - containerName: "151" - divisor: "580" - resource: "152" - secret: - items: - - key: "146" - mode: -1120128337 - path: "147" - name: "145" - optional: false - serviceAccountToken: - audience: "156" - expirationSeconds: -8801560367353238479 - path: "157" - quobyte: - group: "138" - registry: "135" - tenant: "139" - user: "137" - volume: "136" - rbd: - fsType: "98" - image: "97" - keyring: "101" - monitors: - - "96" - pool: "99" - readOnly: true - secretRef: - name: "102" - user: "100" - scaleIO: - fsType: "167" - gateway: "160" - protectionDomain: "163" - readOnly: true - secretRef: - name: "162" - storageMode: "165" - storagePool: "164" - system: "161" - volumeName: "166" - secret: - defaultMode: -1249460160 - items: - - key: "82" - mode: 147264373 - path: "83" - optional: false - secretName: "81" - storageos: - fsType: "170" - secretRef: - name: "171" - volumeName: "168" - volumeNamespace: "169" - vsphereVolume: - fsType: "132" - storagePolicyID: "134" - storagePolicyName: "133" - volumePath: "131" - ttlSecondsAfterFinished: 212353165 - schedule: "24" - startingDeadlineSeconds: -8817021678265088399 - successfulJobsHistoryLimit: 315828133 - suspend: false -status: - active: - - apiVersion: "361" - fieldPath: "363" - kind: "358" - name: "360" - namespace: "359" - resourceVersion: "362" - uid: 侅 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.json deleted file mode 100644 index 545864593..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.json +++ /dev/null @@ -1,1110 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "schedule": "24", - "startingDeadlineSeconds": -8817021678265088399, - "concurrencyPolicy": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "suspend": false, - "jobTemplate": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɭîcP$Iņ", - "resourceVersion": "14926502199533077124", - "generation": -1382274715716350298, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -8477149434422619117, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "+½H牗洝尿彀亞螩", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "4%a鯿r", - "apiVersion": "40", - "fields": {"41":{"42":null}} - } - ] - }, - "spec": { - "parallelism": -110482268, - "completions": -54954325, - "activeDeadlineSeconds": 8559948711650432497, - "backoffLimit": -907310967, - "selector": { - "matchLabels": { - "WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U": "UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9" - }, - "matchExpressions": [ - { - "key": "GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0", - "operator": "NotIn", - "values": [ - "YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "52", - "generateName": "53", - "namespace": "54", - "selfLink": "55", - "uid": "³ƞsɁ8^", - "resourceVersion": "8685765401091182865", - "generation": 2849222499405033998, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -671981934547025691, - "labels": { - "57": "58" - }, - "annotations": { - "59": "60" - }, - "ownerReferences": [ - { - "apiVersion": "61", - "kind": "62", - "name": "63", - "uid": "Ǡ/淹\\韲翁\u0026ʢ", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "64" - ], - "clusterName": "65", - "managedFields": [ - { - "manager": "66", - "operation": "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ", - "apiVersion": "67", - "fields": {"68":{"69":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "72", - "hostPath": { - "path": "73", - "type": "ȸŹăȲϤĦ" - }, - "emptyDir": { - "medium": "芝M 宸@Z^嫫猤痈", - "sizeLimit": "179" - }, - "gcePersistentDisk": { - "pdName": "74", - "fsType": "75", - "partition": -2127673004 - }, - "awsElasticBlockStore": { - "volumeID": "76", - "fsType": "77", - "partition": 717712876 - }, - "gitRepo": { - "repository": "78", - "revision": "79", - "directory": "80" - }, - "secret": { - "secretName": "81", - "items": [ - { - "key": "82", - "path": "83", - "mode": 147264373 - } - ], - "defaultMode": -1249460160, - "optional": false - }, - "nfs": { - "server": "84", - "path": "85" - }, - "iscsi": { - "targetPortal": "86", - "iqn": "87", - "lun": 1029074742, - "iscsiInterface": "88", - "fsType": "89", - "portals": [ - "90" - ], - "secretRef": { - "name": "91" - }, - "initiatorName": "92" - }, - "glusterfs": { - "endpoints": "93", - "path": "94" - }, - "persistentVolumeClaim": { - "claimName": "95", - "readOnly": true - }, - "rbd": { - "monitors": [ - "96" - ], - "image": "97", - "fsType": "98", - "pool": "99", - "user": "100", - "keyring": "101", - "secretRef": { - "name": "102" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "103", - "fsType": "104", - "secretRef": { - "name": "105" - }, - "readOnly": true, - "options": { - "106": "107" - } - }, - "cinder": { - "volumeID": "108", - "fsType": "109", - "secretRef": { - "name": "110" - } - }, - "cephfs": { - "monitors": [ - "111" - ], - "path": "112", - "user": "113", - "secretFile": "114", - "secretRef": { - "name": "115" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "116", - "datasetUUID": "117" - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "857" - }, - "mode": -1305215109 - } - ], - "defaultMode": 186998979 - }, - "fc": { - "targetWWNs": [ - "123" - ], - "lun": 1179332384, - "fsType": "124", - "readOnly": true, - "wwids": [ - "125" - ] - }, - "azureFile": { - "secretName": "126", - "shareName": "127" - }, - "configMap": { - "name": "128", - "items": [ - { - "key": "129", - "path": "130", - "mode": 926891073 - } - ], - "defaultMode": -1558831136, - "optional": true - }, - "vsphereVolume": { - "volumePath": "131", - "fsType": "132", - "storagePolicyName": "133", - "storagePolicyID": "134" - }, - "quobyte": { - "registry": "135", - "volume": "136", - "user": "137", - "group": "138", - "tenant": "139" - }, - "azureDisk": { - "diskName": "140", - "diskURI": "141", - "cachingMode": "ÙæNǚ錯ƶRq", - "fsType": "142", - "readOnly": true, - "kind": "?瞲Ť倱\u003cįXŋ朘瑥A徙" - }, - "photonPersistentDisk": { - "pdID": "143", - "fsType": "144" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "145", - "items": [ - { - "key": "146", - "path": "147", - "mode": -1120128337 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "148", - "fieldRef": { - "apiVersion": "149", - "fieldPath": "150" - }, - "resourceFieldRef": { - "containerName": "151", - "resource": "152", - "divisor": "580" - }, - "mode": 1669671203 - } - ] - }, - "configMap": { - "name": "153", - "items": [ - { - "key": "154", - "path": "155", - "mode": -1950133943 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "156", - "expirationSeconds": -8801560367353238479, - "path": "157" - } - } - ], - "defaultMode": -427769948 - }, - "portworxVolume": { - "volumeID": "158", - "fsType": "159" - }, - "scaleIO": { - "gateway": "160", - "system": "161", - "secretRef": { - "name": "162" - }, - "protectionDomain": "163", - "storagePool": "164", - "storageMode": "165", - "volumeName": "166", - "fsType": "167", - "readOnly": true - }, - "storageos": { - "volumeName": "168", - "volumeNamespace": "169", - "fsType": "170", - "secretRef": { - "name": "171" - } - }, - "csi": { - "driver": "172", - "readOnly": true, - "fsType": "173", - "volumeAttributes": { - "174": "175" - }, - "nodePublishSecretRef": { - "name": "176" - } - } - } - ], - "initContainers": [ - { - "name": "177", - "image": "178", - "command": [ - "179" - ], - "args": [ - "180" - ], - "workingDir": "181", - "ports": [ - { - "name": "182", - "hostPort": 1971383046, - "containerPort": 1154560741, - "protocol": "涁İ而踪鄌eÞȦY籎顒ǥ", - "hostIP": "183" - } - ], - "envFrom": [ - { - "prefix": "184", - "configMapRef": { - "name": "185", - "optional": false - }, - "secretRef": { - "name": "186", - "optional": false - } - } - ], - "env": [ - { - "name": "187", - "value": "188", - "valueFrom": { - "fieldRef": { - "apiVersion": "189", - "fieldPath": "190" - }, - "resourceFieldRef": { - "containerName": "191", - "resource": "192", - "divisor": "832" - }, - "configMapKeyRef": { - "name": "193", - "key": "194", - "optional": true - }, - "secretKeyRef": { - "name": "195", - "key": "196", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°": "465" - }, - "requests": { - "oɘ檲ɨ銦妰黖ȓ": "793" - } - }, - "volumeMounts": [ - { - "name": "197", - "mountPath": "198", - "subPath": "199", - "mountPropagation": "oĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵ɢ", - "subPathExpr": "200" - } - ], - "volumeDevices": [ - { - "name": "201", - "devicePath": "202" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 290736426, - "host": "205", - "scheme": "ö", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": "208", - "host": "209" - }, - "initialDelaySeconds": 322201525, - "timeoutSeconds": -1784033404, - "periodSeconds": 66472042, - "successThreshold": 2130088978, - "failureThreshold": -1064240304 - }, - "readinessProbe": { - "exec": { - "command": [ - "210" - ] - }, - "httpGet": { - "path": "211", - "port": -566408554, - "host": "212", - "scheme": "劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立", - "httpHeaders": [ - { - "name": "213", - "value": "214" - } - ] - }, - "tcpSocket": { - "port": -31530684, - "host": "215" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": "218", - "host": "219", - "scheme": "n芞QÄȻȊ+?ƭ峧Y栲茇竛", - "httpHeaders": [ - { - "name": "220", - "value": "221" - } - ] - }, - "tcpSocket": { - "port": -592581809, - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": 1702578303, - "host": "225", - "scheme": "NŬɨǙÄr蛏豈ɃHŠơŴĿ", - "httpHeaders": [ - { - "name": "226", - "value": "227" - } - ] - }, - "tcpSocket": { - "port": -1047607622, - "host": "228" - } - } - }, - "terminationMessagePath": "229", - "terminationMessagePolicy": "ȉ彂", - "imagePullPolicy": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "securityContext": { - "capabilities": { - "add": [ - "þŹʣy豎@ɀ羭," - ], - "drop": [ - "OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "230", - "role": "231", - "type": "232", - "level": "233" - }, - "runAsUser": -2405783144562371879, - "runAsGroup": 3861209808960510792, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^拜" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "234", - "image": "235", - "command": [ - "236" - ], - "args": [ - "237" - ], - "workingDir": "238", - "ports": [ - { - "name": "239", - "hostPort": 1385030458, - "containerPort": 427196286, - "protocol": "o/樝fw[Řż丩Ž", - "hostIP": "240" - } - ], - "envFrom": [ - { - "prefix": "241", - "configMapRef": { - "name": "242", - "optional": false - }, - "secretRef": { - "name": "243", - "optional": true - } - } - ], - "env": [ - { - "name": "244", - "value": "245", - "valueFrom": { - "fieldRef": { - "apiVersion": "246", - "fieldPath": "247" - }, - "resourceFieldRef": { - "containerName": "248", - "resource": "249", - "divisor": "932" - }, - "configMapKeyRef": { - "name": "250", - "key": "251", - "optional": false - }, - "secretKeyRef": { - "name": "252", - "key": "253", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "9ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ę": "638" - }, - "requests": { - "ǂ\u003e5姣\u003e懔%熷": "440" - } - }, - "volumeMounts": [ - { - "name": "254", - "readOnly": true, - "mountPath": "255", - "subPath": "256", - "mountPropagation": "奺Ȋ礶惇¸t颟.鵫ǚ", - "subPathExpr": "257" - } - ], - "volumeDevices": [ - { - "name": "258", - "devicePath": "259" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "Ȥ藠3.", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - }, - "initialDelaySeconds": -1389418722, - "timeoutSeconds": 851018015, - "periodSeconds": 596942561, - "successThreshold": -1880980172, - "failureThreshold": -161485752 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "«丯Ƙ枛牐ɺ皚", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": -1934111455, - "host": "274" - }, - "initialDelaySeconds": 766864314, - "timeoutSeconds": 1146016612, - "periodSeconds": 1495880465, - "successThreshold": -1032967081, - "failureThreshold": 59664438 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": "277", - "host": "278", - "scheme": "'", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -801430937, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": 1810980158, - "host": "284", - "scheme": "_ƮA攤/ɸɎ R§耶FfBl", - "httpHeaders": [ - { - "name": "285", - "value": "286" - } - ] - }, - "tcpSocket": { - "port": 1074486306, - "host": "287" - } - } - }, - "terminationMessagePath": "288", - "terminationMessagePolicy": "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ", - "imagePullPolicy": "Ǖɳɷ9Ì崟¿瘦ɖ緕", - "securityContext": { - "capabilities": { - "add": [ - "勅跦Opwǩ曬逴褜1Ø" - ], - "drop": [ - "ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ]" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "289", - "role": "290", - "type": "291", - "level": "292" - }, - "runAsUser": -6977492437661738751, - "runAsGroup": -1073698526114922943, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ƙt叀碧闳ȩr嚧ʣq埄趛屡" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "昕Ĭ", - "terminationGracePeriodSeconds": 5474461944206441349, - "activeDeadlineSeconds": 5072234809910109224, - "dnsPolicy": "苧yñKJɐ扵Gƚ绤fʀļ腩", - "nodeSelector": { - "293": "294" - }, - "serviceAccountName": "295", - "serviceAccount": "296", - "automountServiceAccountToken": true, - "nodeName": "297", - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "298", - "role": "299", - "type": "300", - "level": "301" - }, - "runAsUser": 439010468654957223, - "runAsGroup": 3282902794794440567, - "runAsNonRoot": true, - "supplementalGroups": [ - -9161399525777020538 - ], - "fsGroup": -1883725333589566834, - "sysctls": [ - { - "name": "302", - "value": "303" - } - ] - }, - "imagePullSecrets": [ - { - "name": "304" - } - ], - "hostname": "305", - "subdomain": "306", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "307", - "operator": "议Ƭƶ氩Ȩ\u003c6鄰簳°Ļǟi\u0026", - "values": [ - "308" - ] - } - ], - "matchFields": [ - { - "key": "309", - "operator": "%皧V垾现葢ŵ橨鬶l獕;跣Hǝcw媀瓄", - "values": [ - "310" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1244119841, - "preference": { - "matchExpressions": [ - { - "key": "311", - "operator": "拉Œɥ颶妧Ö闊 鰔澝qV訆", - "values": [ - "312" - ] - } - ], - "matchFields": [ - { - "key": "313", - "operator": "/»頸+SÄ蚃ɣľ)酊龨Î", - "values": [ - "314" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "so-h-9-15v-5925a-x12a-214-3s--gg93h.0-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26-2/P.-_u": "CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.134-5-.q6H5" - }, - "matchExpressions": [ - { - "key": "z---883d-v3j4-7y-p---up52--sjo7799-sk5/i-.M.U_-m.-P.y9", - "operator": "NotIn", - "values": [ - "C_-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.O" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1095116290, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "6-x_rC9..__-6_k.N-2B_V.-tfh4.caTz_.g.w-o.8_WT-M.3_1": "R8D_X._B__-P---_H-.___._8" - }, - "matchExpressions": [ - { - "key": "W-y8", - "operator": "NotIn", - "values": [ - "Q.6.I--2_9.v.--_.--4QQ.-s.H.Hu-k-x" - ] - } - ] - }, - "namespaces": [ - "329" - ], - "topologyKey": "330" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "337" - ], - "topologyKey": "338" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "345" - ], - "topologyKey": "346" - } - } - ] - } - }, - "schedulerName": "347", - "tolerations": [ - { - "key": "348", - "operator": "抷qTfZȻ干m謆7", - "value": "349", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "350", - "hostnames": [ - "351" - ] - } - ], - "priorityClassName": "352", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "353" - ], - "searches": [ - "354" - ], - "options": [ - { - "name": "355", - "value": "356" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "357", - "enableServiceLinks": true - } - }, - "ttlSecondsAfterFinished": 212353165 - } - }, - "successfulJobsHistoryLimit": 315828133, - "failedJobsHistoryLimit": -1686694849 - }, - "status": { - "active": [ - { - "kind": "358", - "namespace": "359", - "name": "360", - "uid": "侅", - "apiVersion": "361", - "resourceVersion": "362", - "fieldPath": "363" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.CronJob.pb deleted file mode 100644 index 49d4f57159023590e73fb8ae94f9d5856199907a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5267 zcmYjV33L=yy6)S6V4WGJEgfy!Ew+L&dMj18c18pO0!D-o_Bdmiu$lnbfI!~!oUFuj zSOO#v639jffdmKvvO>`Gl5U)FVV(}?sN+1U7f0sdo8zdXPu_pK!84r0U$^h_@Atpo zpDZok!aT@K%t+s~a$VvUlDv-oD{fBIwH%v1&w13_Czke$!a+_P6U5H6#o?VtIYsTDpOE^yB zjEsc^99}g?S&2CXV`D3aF<-DDElV(9QCz}0mn7wK8w||lYQ`2a@AbvAjdWcTR*6`} zYf?0U!#cZ^d1B5BoNgGLXlxc>Hz&_nhK)s-6W4O8LDtM)DPx`;H$QvRiyIyBD_+(Y z>-lrJWt(M;xt9!%2f=)bYH%~TwAC2T;#Dr);O4|zNaYiZ8{#2@=VZ}gl_jTDmJ{wC zIqPf84-{*!l6y5plT}5Qc!AdiK_ifg+OF%@>PG7ty-z_f%;GPGKfcxR(LbZXkX2x$ z(O}4shzg(SWULA#q9QtNqs@uIzJcFHntDQ)iYH%gO|U8gk7z0?kctYVq7IuC_L1LC z3O1HcnL66w+ZQ+*?%y{$IC?BN&=u@+WqD5kuiI&;+)hJRD17d*S;L%v}#&{RnvLP6syipx1^3`th%t= zl3~?JGMv*z)~ZW(ODfzpUACb#NK_rp>#D=5Yfh`KCyWtzo&XW1P&;@s9c4U52OKT)JBKub6XDE4mNXMJiRKYKv5D zQ96MhqSG>+R=`B~s0lzc0z~gY&%vt1!>S}WCb|#0+vktgM|Pa{^`_>+UWvpb^5C>k zV~@AZEIRX?=k#)KRq#+R+cR>`@aqTc-&*MEo0zn`Ugs16}ZX5LV)r_kn^7G#9+taH3hGD>%14P_aFCOgsl=k zS!I}Kan~So=ljO1ql1?--P}a?I>v~^EhMI zM{DQJ^Sc6#c(ZRPShC-LocHy=;;Ex`KoK?8&irb$)>Wp;5bq(h8ZSF{v6WQ?B~YQdJ(Ls)Cap>Ac>5+E*8BYzS3W2L?m+ z^-%?&dcwNsxS#pe1dFYu{&O?N-C?2gl5Ox$AKtLqueT4ij*Z*Xel##H{!dr?_x%_Z z%lE!N@Nh;mx^1#5vrmF>D4lm~QB^8jbE2nWvLJ(r#^06|@_beNe^EYBSx`}zMQwnh z`Ws-Qi7W#e4G(%hzso`Wr%BES4Bx34!J4+jK!0FYTrR@Kixf zqUT!sPZo`hF;+8SUdy|Gv^H=y(5Jh1nCF^CE`{pa1N%dLwS~2anZ`U|R+WeQ+85*$ zj2;g*bVZ8Jh1(7Z?mG5Kf3vS^;o3-9^DB|o>TI*NA=q%vEN%@{m^=HzI}aw$^9=kB z@&jrT(Wreob+|4-uIMDLxaaa2*FP@SHlcV6ynB}EZ~u6qZqK1lcYKYKAN3vFWbQ5s zwH}KcIO{*2XVxFPd?eRwDhu~Em}gpw5PB1#YJ}=(VIu%b?vA=gB9KkDhoTLt;iGAR zVb77^=_>a=W%R7saoDV@HwSmkdc$nGxcTy~6SQ;@TCIo-w*>^yuI>uD=(d z_+96}3AGG-dBa5fx2JA4c761RQA~x1JmjOui-mCiL|!UEKmjEHRraDkPhk9rS;?d` z@pM&X9}b^7)%pEoK^#Oz{PhDCTN z9}QMjdiMs7Mp}E#_G9k-kpr%{NOw(e_;BvhaL0Cfl(3WOUXgVqjtoVb`=43lE(_O} z299`!pN^EfBEuc-U38zs4vt}JtW1TK*@Ku@^0V3FL^(lHSvEaqdp zcC9Y114u`53snqmA-te&SjS@-uLa1cV%VW+1td$_oL`9XhD@ww69tpR6b>7kSu!(s z88^$&F!0NojaTwS;qdE=*K-2qmM+Fv-jHeN+{+w1qQH^MRp!cUE~5Y^tZCvZyhY5E zu(}QBz{KVpnP8lsnXRh2j`OqR#Mdz#U1H!398Tf3>30w*KhwYqb2)Bh{yHpToF**Z zQXuNHjhQ%a)1npJTFxM|RZwp=$1TVMD7*l|P6Y4_A#5|6@YC7QH@CgN7cu3CNnu0< zZ#D8}>KtbnSTVA=`IsabOF6u0%{qx&nZCHt0Ja4!w} zE%J^J#xPe9<3-E@=6MLoRxBp!=?3Og4KB?v=55goZh-;Kz((Lw2j!s z90q4$S;3q-3sg*Df4Pb?xFz5|18kDnJmz@;8(1{v8Q^K?4>&moIIX~3!CC`nXz7Lm z=zgJOaGC@_A5cE5ZsullIpA%K#hI)X8iHqYjQMyG_!cLnfp9Evi*S-?a2bNSG94Q^ zcpJBRVVa&}DBR2fuuFtWEy7FqJ(|#WKJtfg>`lb{H)2{4^Xj%7Ef?pn5g^G5aAqM^ zWF7jM^%$Ddj15>>PgX#>+pVBkD;?VS+cyL7RbzY&AO zUN?+%ZULENB!le$Gk_@dP-P^w61AXPXGeg6_zw&+x}5$*Lb^W zdfLZ29}e~wd%D9#JHq`ZB4s;PyBq!OD?(>>MOyZb9;K&53TOn4GSsvfpb_XxA?Q2> zG=fgCoF2o^cL0q*Ypnon0Ez(`L8rJ@R{+q=XE_A=cL{Fe2;%YbByCXyU{rl*us*A}wRY9c) zMS%7Kh@S9xwx=Xe6)LKJE>Ia9=$JdzeKd5q^9{4PBGl3ou00=UC1VKBr)DxUqE8Yu z9#HfMFGXMM6MH{!q3Dav%TBAiH~Ki!HiYo%zu_F(j1XS8oqz9xgUDXibnN8!Q7{nq zW%aek;`erZ{Ox%D{eQa4Vo)Qk1~IFn!k{?M0%1^%DPY-O`_0#PKm@$I0&zZMy3S4> zxnP!@^fwBT^3tiw8-W&Yg|9NySrt_UYBOwbt*w*wwhu zUFIM1yPlcmJ87Ohwj$Wv6W&n~>THN=L@0WN;uphU?|sx~-Z6>J6E-G+h*1e7=H*+} zH#%duh{(=|=6kyW9is=`WqIL--QhED21@68n|&?bbDm2v3Do^Wy)9vI=g^LrTcb7; zEfW^?Jcob4?CkapjMfym`!>E9>S=f(R6a0T?dy4=Fq@H>d)&j`fy+m>h0pAo9w-V8 zpL~{mY=O6JwDs~y^L$P4NJ)-ac44$He55|KuQyV$-RF7+(u%?Y_5P?@1T7`RpuD;yGYtsBf=0MMeaMyNP=Oo=Z!7Qr` z91k`X#ea4E&F(*jKHPHIu8~D#)`GsI-ak#Q4T(v!Xx;D7`bfma?we*x{cd(&0*j62^ZP@rF z<*nXCNUPj)>b)5E={t*CR`W;S`~7~TUF!JrC$S84Ok$p(g5a)*fZoQ43c#xC!{rGu P5(p471&HXdI4%DVE45姣>懔%熷: "440" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 勅跦Opwǩ曬逴褜1Ø - drop: - - ȠƬQg鄠[颐o啛更偢ɇ卷荙JLĹ] - privileged: true - procMount: ƙt叀碧闳ȩr嚧ʣq埄趛屡 - readOnlyRootFilesystem: true - runAsGroup: -1073698526114922943 - runAsNonRoot: false - runAsUser: -6977492437661738751 - seLinuxOptions: - level: "292" - role: "290" - type: "291" - user: "289" - stdin: true - stdinOnce: true - terminationMessagePath: "288" - terminationMessagePolicy: Zɾģ毋Ó6dz娝嘚庎D}埽uʎ - tty: true - volumeDevices: - - devicePath: "259" - name: "258" - volumeMounts: - - mountPath: "255" - mountPropagation: 奺Ȋ礶惇¸t颟.鵫ǚ - name: "254" - readOnly: true - subPath: "256" - subPathExpr: "257" - workingDir: "238" - dnsConfig: - nameservers: - - "353" - options: - - name: "355" - value: "356" - searches: - - "354" - dnsPolicy: 苧yñKJɐ扵Gƚ绤fʀļ腩 - enableServiceLinks: true - hostAliases: - - hostnames: - - "351" - ip: "350" - hostIPC: true - hostname: "305" - imagePullSecrets: - - name: "304" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: ^拜 - readOnlyRootFilesystem: true - runAsGroup: 3861209808960510792 - runAsNonRoot: true - runAsUser: -2405783144562371879 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - stdin: true - stdinOnce: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "297" - nodeSelector: - "293": "294" - priority: -895317190 - priorityClassName: "352" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: 昕Ĭ - runtimeClassName: "357" - schedulerName: "347" - securityContext: - fsGroup: -1883725333589566834 - runAsGroup: 3282902794794440567 - runAsNonRoot: true - runAsUser: 439010468654957223 - seLinuxOptions: - level: "301" - role: "299" - type: "300" - user: "298" - supplementalGroups: - - -9161399525777020538 - sysctls: - - name: "302" - value: "303" - serviceAccount: "296" - serviceAccountName: "295" - shareProcessNamespace: false - subdomain: "306" - terminationGracePeriodSeconds: 5474461944206441349 - tolerations: - - effect: 儉ɩ柀 - key: "348" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "349" - volumes: - - awsElasticBlockStore: - fsType: "77" - partition: 717712876 - volumeID: "76" - azureDisk: - cachingMode: ÙæNǚ錯ƶRq - diskName: "140" - diskURI: "141" - fsType: "142" - kind: ?瞲Ť倱<įXŋ朘瑥A徙 - readOnly: true - azureFile: - secretName: "126" - shareName: "127" - cephfs: - monitors: - - "111" - path: "112" - readOnly: true - secretFile: "114" - secretRef: - name: "115" - user: "113" - cinder: - fsType: "109" - secretRef: - name: "110" - volumeID: "108" - configMap: - defaultMode: -1558831136 - items: - - key: "129" - mode: 926891073 - path: "130" - name: "128" - optional: true - csi: - driver: "172" - fsType: "173" - nodePublishSecretRef: - name: "176" - readOnly: true - volumeAttributes: - "174": "175" - downwardAPI: - defaultMode: 186998979 - items: - - fieldRef: - apiVersion: "119" - fieldPath: "120" - mode: -1305215109 - path: "118" - resourceFieldRef: - containerName: "121" - divisor: "857" - resource: "122" - emptyDir: - medium: 芝M 宸@Z^嫫猤痈 - sizeLimit: "179" - fc: - fsType: "124" - lun: 1179332384 - readOnly: true - targetWWNs: - - "123" - wwids: - - "125" - flexVolume: - driver: "103" - fsType: "104" - options: - "106": "107" - readOnly: true - secretRef: - name: "105" - flocker: - datasetName: "116" - datasetUUID: "117" - gcePersistentDisk: - fsType: "75" - partition: -2127673004 - pdName: "74" - gitRepo: - directory: "80" - repository: "78" - revision: "79" - glusterfs: - endpoints: "93" - path: "94" - hostPath: - path: "73" - type: ȸŹăȲϤĦ - iscsi: - fsType: "89" - initiatorName: "92" - iqn: "87" - iscsiInterface: "88" - lun: 1029074742 - portals: - - "90" - secretRef: - name: "91" - targetPortal: "86" - name: "72" - nfs: - path: "85" - server: "84" - persistentVolumeClaim: - claimName: "95" - readOnly: true - photonPersistentDisk: - fsType: "144" - pdID: "143" - portworxVolume: - fsType: "159" - volumeID: "158" - projected: - defaultMode: -427769948 - sources: - - configMap: - items: - - key: "154" - mode: -1950133943 - path: "155" - name: "153" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "149" - fieldPath: "150" - mode: 1669671203 - path: "148" - resourceFieldRef: - containerName: "151" - divisor: "580" - resource: "152" - secret: - items: - - key: "146" - mode: -1120128337 - path: "147" - name: "145" - optional: false - serviceAccountToken: - audience: "156" - expirationSeconds: -8801560367353238479 - path: "157" - quobyte: - group: "138" - registry: "135" - tenant: "139" - user: "137" - volume: "136" - rbd: - fsType: "98" - image: "97" - keyring: "101" - monitors: - - "96" - pool: "99" - readOnly: true - secretRef: - name: "102" - user: "100" - scaleIO: - fsType: "167" - gateway: "160" - protectionDomain: "163" - readOnly: true - secretRef: - name: "162" - storageMode: "165" - storagePool: "164" - system: "161" - volumeName: "166" - secret: - defaultMode: -1249460160 - items: - - key: "82" - mode: 147264373 - path: "83" - optional: false - secretName: "81" - storageos: - fsType: "170" - secretRef: - name: "171" - volumeName: "168" - volumeNamespace: "169" - vsphereVolume: - fsType: "132" - storagePolicyID: "134" - storagePolicyName: "133" - volumePath: "131" - ttlSecondsAfterFinished: 212353165 - schedule: "24" - startingDeadlineSeconds: -8817021678265088399 - successfulJobsHistoryLimit: 315828133 - suspend: false -status: - active: - - apiVersion: "361" - fieldPath: "363" - kind: "358" - name: "360" - namespace: "359" - resourceVersion: "362" - uid: 侅 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.json deleted file mode 100644 index 571182be3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.json +++ /dev/null @@ -1,1074 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39" - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "51", - "generateName": "52", - "namespace": "53", - "selfLink": "54", - "uid": "@ʊʓ誒j剐'宣I拍N嚳ķȗɊ捵Tw", - "resourceVersion": "11115488420961080514", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "56": "57" - }, - "annotations": { - "58": "59" - }, - "ownerReferences": [ - { - "apiVersion": "60", - "kind": "61", - "name": "62", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "63" - ], - "clusterName": "64", - "managedFields": [ - { - "manager": "65", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "66" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "71", - "hostPath": { - "path": "72", - "type": "ħ籦ö嗏ʑ\u003e季Cʖ畬x" - }, - "emptyDir": { - "medium": "Šĸů湙騘\u0026啞", - "sizeLimit": "577" - }, - "gcePersistentDisk": { - "pdName": "73", - "fsType": "74", - "partition": 663386308 - }, - "awsElasticBlockStore": { - "volumeID": "75", - "fsType": "76", - "partition": -156457987, - "readOnly": true - }, - "gitRepo": { - "repository": "77", - "revision": "78", - "directory": "79" - }, - "secret": { - "secretName": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -5672822 - } - ], - "defaultMode": -861289979, - "optional": true - }, - "nfs": { - "server": "83", - "path": "84", - "readOnly": true - }, - "iscsi": { - "targetPortal": "85", - "iqn": "86", - "lun": -1636694746, - "iscsiInterface": "87", - "fsType": "88", - "portals": [ - "89" - ], - "chapAuthSession": true, - "secretRef": { - "name": "90" - }, - "initiatorName": "91" - }, - "glusterfs": { - "endpoints": "92", - "path": "93", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "94" - }, - "rbd": { - "monitors": [ - "95" - ], - "image": "96", - "fsType": "97", - "pool": "98", - "user": "99", - "keyring": "100", - "secretRef": { - "name": "101" - } - }, - "flexVolume": { - "driver": "102", - "fsType": "103", - "secretRef": { - "name": "104" - }, - "readOnly": true, - "options": { - "105": "106" - } - }, - "cinder": { - "volumeID": "107", - "fsType": "108", - "secretRef": { - "name": "109" - } - }, - "cephfs": { - "monitors": [ - "110" - ], - "path": "111", - "user": "112", - "secretFile": "113", - "secretRef": { - "name": "114" - } - }, - "flocker": { - "datasetName": "115", - "datasetUUID": "116" - }, - "downwardAPI": { - "items": [ - { - "path": "117", - "fieldRef": { - "apiVersion": "118", - "fieldPath": "119" - }, - "resourceFieldRef": { - "containerName": "120", - "resource": "121", - "divisor": "327" - }, - "mode": -1965578645 - } - ], - "defaultMode": -1008038372 - }, - "fc": { - "targetWWNs": [ - "122" - ], - "lun": -658258937, - "fsType": "123", - "wwids": [ - "124" - ] - }, - "azureFile": { - "secretName": "125", - "shareName": "126", - "readOnly": true - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": -675987103 - } - ], - "defaultMode": 1754292691, - "optional": true - }, - "vsphereVolume": { - "volumePath": "130", - "fsType": "131", - "storagePolicyName": "132", - "storagePolicyID": "133" - }, - "quobyte": { - "registry": "134", - "volume": "135", - "user": "136", - "group": "137", - "tenant": "138" - }, - "azureDisk": { - "diskName": "139", - "diskURI": "140", - "cachingMode": "ĦE勗E濞偘1", - "fsType": "141", - "readOnly": true, - "kind": "議Ǹ轺@)蓳嗘" - }, - "photonPersistentDisk": { - "pdID": "142", - "fsType": "143" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "144", - "items": [ - { - "key": "145", - "path": "146", - "mode": 679825403 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "147", - "fieldRef": { - "apiVersion": "148", - "fieldPath": "149" - }, - "resourceFieldRef": { - "containerName": "150", - "resource": "151", - "divisor": "184" - }, - "mode": -783297752 - } - ] - }, - "configMap": { - "name": "152", - "items": [ - { - "key": "153", - "path": "154", - "mode": -106644772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "155", - "expirationSeconds": 1897892355466772544, - "path": "156" - } - } - ], - "defaultMode": 345648859 - }, - "portworxVolume": { - "volumeID": "157", - "fsType": "158", - "readOnly": true - }, - "scaleIO": { - "gateway": "159", - "system": "160", - "secretRef": { - "name": "161" - }, - "protectionDomain": "162", - "storagePool": "163", - "storageMode": "164", - "volumeName": "165", - "fsType": "166", - "readOnly": true - }, - "storageos": { - "volumeName": "167", - "volumeNamespace": "168", - "fsType": "169", - "secretRef": { - "name": "170" - } - }, - "csi": { - "driver": "171", - "readOnly": true, - "fsType": "172", - "volumeAttributes": { - "173": "174" - }, - "nodePublishSecretRef": { - "name": "175" - } - } - } - ], - "initContainers": [ - { - "name": "176", - "image": "177", - "command": [ - "178" - ], - "args": [ - "179" - ], - "workingDir": "180", - "ports": [ - { - "name": "181", - "hostPort": -958191807, - "containerPort": -1629040033, - "protocol": "ʜǝ鿟ldg滠鼍ƭt", - "hostIP": "182" - } - ], - "envFrom": [ - { - "prefix": "183", - "configMapRef": { - "name": "184", - "optional": true - }, - "secretRef": { - "name": "185", - "optional": false - } - } - ], - "env": [ - { - "name": "186", - "value": "187", - "valueFrom": { - "fieldRef": { - "apiVersion": "188", - "fieldPath": "189" - }, - "resourceFieldRef": { - "containerName": "190", - "resource": "191", - "divisor": "980" - }, - "configMapKeyRef": { - "name": "192", - "key": "193", - "optional": false - }, - "secretKeyRef": { - "name": "194", - "key": "195", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ")ÙæNǚ錯ƶRquA?瞲Ť倱": "289" - }, - "requests": { - "ź贩j瀉": "621" - } - }, - "volumeMounts": [ - { - "name": "196", - "readOnly": true, - "mountPath": "197", - "subPath": "198", - "mountPropagation": "ɶ", - "subPathExpr": "199" - } - ], - "volumeDevices": [ - { - "name": "200", - "devicePath": "201" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -1365115016, - "host": "204", - "scheme": "町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -1105572246, - "host": "207" - }, - "initialDelaySeconds": 1971383046, - "timeoutSeconds": 1154560741, - "periodSeconds": -1376537100, - "successThreshold": 1100645882, - "failureThreshold": -532628939 - }, - "readinessProbe": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": "210", - "host": "211", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "212", - "value": "213" - } - ] - }, - "tcpSocket": { - "port": "214", - "host": "215" - }, - "initialDelaySeconds": -1510026905, - "timeoutSeconds": 437857734, - "periodSeconds": 2025698376, - "successThreshold": -1766555420, - "failureThreshold": 195263908 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": -33154680, - "host": "218", - "scheme": "跾|@?鷅bȻN+ņ榱*", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": "221", - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": "225", - "host": "226", - "scheme": "櫸eʔŊ", - "httpHeaders": [ - { - "name": "227", - "value": "228" - } - ] - }, - "tcpSocket": { - "port": 731879508, - "host": "229" - } - } - }, - "terminationMessagePath": "230", - "terminationMessagePolicy": "hoĂɋ", - "imagePullPolicy": "腬", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "231", - "role": "232", - "type": "233", - "level": "234" - }, - "runAsUser": 1383845015160566234, - "runAsGroup": 5929692523927062634, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "龫`劳\u0026¼傭Ȟ1酃=6}ɡ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "235", - "image": "236", - "command": [ - "237" - ], - "args": [ - "238" - ], - "workingDir": "239", - "ports": [ - { - "name": "240", - "hostPort": -374922344, - "containerPort": -31530684, - "protocol": "Ú|dk_", - "hostIP": "241" - } - ], - "envFrom": [ - { - "prefix": "242", - "configMapRef": { - "name": "243", - "optional": true - }, - "secretRef": { - "name": "244", - "optional": true - } - } - ], - "env": [ - { - "name": "245", - "value": "246", - "valueFrom": { - "fieldRef": { - "apiVersion": "247", - "fieldPath": "248" - }, - "resourceFieldRef": { - "containerName": "249", - "resource": "250", - "divisor": "909" - }, - "configMapKeyRef": { - "name": "251", - "key": "252", - "optional": false - }, - "secretKeyRef": { - "name": "253", - "key": "254", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "?": "193" - }, - "requests": { - "@Ȗs«öʮĀ\u003cé瞾": "51" - } - }, - "volumeMounts": [ - { - "name": "255", - "mountPath": "256", - "subPath": "257", - "mountPropagation": "£軶ǃ*ʙ嫙\u0026蒒5靇C'ɵK.Q貇", - "subPathExpr": "258" - } - ], - "volumeDevices": [ - { - "name": "259", - "devicePath": "260" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": "263", - "host": "264", - "scheme": "{Ⱦdz@", - "httpHeaders": [ - { - "name": "265", - "value": "266" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "267" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": "274", - "host": "275" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "276" - ] - }, - "httpGet": { - "path": "277", - "port": -78618443, - "host": "278", - "scheme": "Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -495373547, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": "284", - "host": "285", - "scheme": "/樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "286", - "value": "287" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "288" - } - } - }, - "terminationMessagePath": "289", - "terminationMessagePolicy": "ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷", - "imagePullPolicy": "姣\u003e懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾", - "securityContext": { - "capabilities": { - "add": [ - "ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ" - ], - "drop": [ - "ŬƩȿ0矀Kʝ瘴I\\p" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "290", - "role": "291", - "type": "292", - "level": "293" - }, - "runAsUser": 2314355702080875607, - "runAsGroup": 256256810846755412, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "FD剂讼ɓȌʟn" - }, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "3ƁÀ*f\u003c", - "terminationGracePeriodSeconds": 998876704495005296, - "activeDeadlineSeconds": -1689173322096612726, - "dnsPolicy": "Bls3!Zɾ", - "nodeSelector": { - "294": "295" - }, - "serviceAccountName": "296", - "serviceAccount": "297", - "automountServiceAccountToken": false, - "nodeName": "298", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "299", - "role": "300", - "type": "301", - "level": "302" - }, - "runAsUser": -6630145684297456260, - "runAsGroup": -982786583685356406, - "runAsNonRoot": false, - "supplementalGroups": [ - -7477362499801752548 - ], - "fsGroup": 1150055837641003771, - "sysctls": [ - { - "name": "303", - "value": "304" - } - ] - }, - "imagePullSecrets": [ - { - "name": "305" - } - ], - "hostname": "306", - "subdomain": "307", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "308", - "operator": "#yV'WKw(ğ儴Ůĺ}", - "values": [ - "309" - ] - } - ], - "matchFields": [ - { - "key": "310", - "operator": "ǩ", - "values": [ - "311" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1334110502, - "preference": { - "matchExpressions": [ - { - "key": "312", - "operator": "1ØœȠƬQg鄠", - "values": [ - "313" - ] - } - ], - "matchFields": [ - { - "key": "314", - "operator": "g\u003e郵[+扴ȨŮ+朷Ǝ膯lj", - "values": [ - "315" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "9-_56-__18Y--6-_3J--.48Y.q0": "O1-F.v" - }, - "matchExpressions": [ - { - "key": "3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1856061695, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF": "T.5vN5.25aWx.2aM214_.-N_g-..H" - }, - "matchExpressions": [ - { - "key": "B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT": "SY.g._2F7.-e" - }, - "matchExpressions": [ - { - "key": "7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og", - "operator": "NotIn", - "values": [ - "WT-M.3_-1y_8D_3" - ] - } - ] - }, - "namespaces": [ - "338" - ], - "topologyKey": "339" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1046355854, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "n_H-.___._D8.TS-jJ.Ys_Mop34_-2": "H38xm-.nx.sEK4.B._6" - }, - "matchExpressions": [ - { - "key": "9_.-.Ms7_t.U", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "346" - ], - "topologyKey": "347" - } - } - ] - } - }, - "schedulerName": "348", - "tolerations": [ - { - "key": "349", - "operator": "ȶŮ嫠!@@)Zq=歍þ螗ɃŒ", - "value": "350", - "effect": "缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw", - "tolerationSeconds": 3497863229537310760 - } - ], - "hostAliases": [ - { - "ip": "351", - "hostnames": [ - "352" - ] - } - ], - "priorityClassName": "353", - "priority": -1442230895, - "dnsConfig": { - "nameservers": [ - "354" - ], - "searches": [ - "355" - ], - "options": [ - { - "name": "356", - "value": "357" - } - ] - }, - "readinessGates": [ - { - "conditionType": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e" - } - ], - "runtimeClassName": "358", - "enableServiceLinks": false - } - }, - "ttlSecondsAfterFinished": -10286140 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.pb deleted file mode 100644 index dc90f6ab6e9d9d73ff4a9aee8670aa9c5a3d9033..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4701 zcmZWt33wDocAje4Aa@9!G~UhZ_!`Cr3z2TRt8ap_%w-VfFo!w3yKMpDkO2wADX;TM z0&$Ea1me&Lbb&Y|1Ojv+A&>%^Q(sK{*~aT@i4Q%z4!jVc}vT+(NEJumt<^Mx^m1WoUuA*Wro1~ReJW4d6{c+R%dL;WLlr6Lx@J0 zL822$ZX~C=eMRy5Vqep`^k|JILo<(-zUgZSdpXm4PVp7L9y#8biJuS@U6HWNtCA*a zimdQh)V0sPExb`sTvd=W!8ZHsuJ&z3wb!e<(c(cgQW>Nz8B8Ocp#(n5MN#GeIT^+?OeYnP?nQQ2?B4^(0WRc@+d*}AQqM?%<%YLPvn3nUSH|2VdqDx+WIbL zj0qojC%Ug7CE8Wt+wnWFreYftanr{UO<{?lu~Uage`yUy>X(o@V)mk7bk-W*s91cfsrV{2xoCHlAM$%yPq=8 z?~NZT4i?P~9u1VueSY+{D^p{;E23@Hk@LN&lqm8@v#qB@C65wS4|)P#)R^Q6k=CLu z(ufQ&p~FtQhbM0@GGjkKfInm}-L?H)GJ1d<9eetU+uJ(Zzd`PQpjXi2vGLYiUEnh1 z>8z2dhz4tj>{=EchPaXC3}d!oaO!+^ezqYQ>?CzP{LEORu#&N0GHc9ZMl4;%Vh&bM zHs)?J46ICFXv{GpzJ z(l;TVGK4^e8bn@K2z#QX?ejK6 ziol;NX_|z2T@fJMvLI<66*b0h{PWG$TL=Q)=sQ^bp!DBAyn{%@Wd)q5B;v9LBRxx{ zDMfHn3U-gkh;_D_&Bftn^XR2W@s)sg-57tDYomFzW!$yi*v=EdLq=aiDy8s{JrH_D z%%c>^gHphP%sgclbjSCc=&v33e6+17+@=0Da=E0hCenGy+}jEE6}XN=&(Mbk)08SO zWrLw)C>1k*>pK;@aI&u>Qc>2wZ+zrz{lxx5v4dx}Fu$Sg{yJZ$|6H`IGTz`F897+P zJW40Ys_L}En<7K0lEe31<7LWabN>o7GH4XXFTs}f#2vd(>JU(?pw^s}s^gI~rSWhF zlm>y;u*37^iC+fNp=kT5NFqsGXeF~0S8A=x&XwD!QOLp60H$1_Jt~e=ObyK>QO6fXI5_oG~1GA$pAATM5m>cVE;5x%0#JTLGB2=O2(SQ=C+pT>z@Xtz=Ki{oFK3pgqTVu z1&O!ik@p4izMvGMar7ASQ)MizMzp%~Z$O2K0W1)=B351B{L{aD^n-O!dsWrx+C*49 z=qa)i+js6N3s_M@;1G*0TPi%Hax{cY6IWPqpu=b+O*Vm5=2zrFoMGMZW#Nr0iFX|z z^j-B0a-m~Tw@HFXHXxD{h~xyKcp5!P)Dlt4a9VgMsUTDgLTf=Hnbl!d;+;c%CnraW zD<(&KYa#_+0oFPQoG_0gH+ggz5&NrGn6L3QS47-5acW_r8@G4&SwVw-dGF9@KaE56j*%V5KCC zolaH~Ba-5Li3T?q&JRLkAk(k}5e7IT5!QL#Ih33hL)!y^;hG12!@e*a8%;<71L!4E z^@1)kPMS#z9m>7d)YsA9?8_h5*BGnmVW9S8AzdYQWV;PEE-SEcSxtTRTD{rb5!{yA zUm0nt9BG!9%kk=+6JH3oPv>4UTXtetrOjDIPqsFp2+Sz3pIS>j|4V`SW-`xAfRphi0m1;lM6F5sbzTMju80@H~>qgTHxnwCZADkGbPqa5q^dGkYmI zn_fzfpr6!PLso#W3ECo-g@KsPvYezX;@0uZpjiSth18Z)_B{QqTj5DtvNCl;A1lw5HCCr_d#nLUUuK=f4l1cq+$nLe5r0V?~b36 z3_L~U*i2>`Jx0xDw}={EqiLJjoIG9PR*2V*D81Kz%)W>GKT%;gTwEHAPUfG}Uo zD+4(5byfU!q7_&;z^nEhA8k7`*b#~NPCnwg`_1+LNH|ORsrc)XNBH);g@p-NTD+B> zo!FiR)dCj(7kC8%yn^6nMvVRYXkF>D{?opudC^jDxOA1Z1L!s||ChK6Jq9$gJ$CHg zxr9GQ;ImurAy>%!vwv{Pt%CR42f+9Ez0%(;sYmoe%Qt*pzX-m8eUs4aYV{7VCo439 z=6=Gw*z&dlcP5{^yhxNUUc8$K%&0nMG&va-lWanBn2w@jVwK zrHy8F&(wHrSLEE8NW+=FbFuxGVJXgybFB}iz1+-D7ikp`FY@zKUW?e z2IvU?#gO*(-cM?8|5AHmPP!xB)AVM<(>n6nm2T+V-OIPWY$=leUL2DGn(oh*_lg!HY9CLqhwB>}ladx15b4tVc zn@uf+m;Ai-!5|WLD$4j8l(;O0(7q!l-b>v3`{>u;R)%~KW!XtU5I(Izs2?NSSLk`# zofFws#+s)p%=-O`-y1vI8}5<)EoRHbc-5ZJHvg_S#(zzWYPXS1JJwZxB#}31zKRkn L%^v`@bld(LRIeLP diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml deleted file mode 100644 index aef9598a2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml +++ /dev/null @@ -1,729 +0,0 @@ -apiVersion: batch/v2alpha1 -kind: JobTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -template: - metadata: - annotations: - "31": "32" - clusterName: "37" - creationTimestamp: null - deletionGracePeriodSeconds: 7323204920313990232 - finalizers: - - "36" - generateName: "25" - generation: 1905795315403748486 - labels: - "29": "30" - managedFields: - - apiVersion: "39" - manager: "38" - operation: B峅x4%a - name: "24" - namespace: "26" - ownerReferences: - - apiVersion: "33" - blockOwnerDeletion: false - controller: true - kind: "34" - name: "35" - uid: 谐颋DžSǡƏS$+½H牗洝尿 - resourceVersion: "1092536316763508004" - selfLink: "27" - uid: ^苣 - spec: - activeDeadlineSeconds: -1483125035702892746 - backoffLimit: -1822122846 - completions: -106888179 - manualSelector: true - parallelism: -856030588 - selector: - matchExpressions: - - key: rnr - operator: DoesNotExist - matchLabels: - 2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T: cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm - template: - metadata: - annotations: - "58": "59" - clusterName: "64" - creationTimestamp: null - deletionGracePeriodSeconds: -961038652544818647 - finalizers: - - "63" - generateName: "52" - generation: -1988464041375677738 - labels: - "56": "57" - managedFields: - - apiVersion: "66" - manager: "65" - operation: 聻鎥ʟ<$洅ɹ7\弌Þ帺萸 - name: "51" - namespace: "53" - ownerReferences: - - apiVersion: "60" - blockOwnerDeletion: false - controller: false - kind: "61" - name: "62" - uid: a縳讋ɮ衺勽Ƙq/Ź u衲<¿燥ǖ_è - resourceVersion: "11115488420961080514" - selfLink: "54" - uid: '@ʊʓ誒j剐''宣I拍N嚳ķȗɊ捵Tw' - spec: - activeDeadlineSeconds: -1689173322096612726 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "312" - operator: 1ØœȠƬQg鄠 - values: - - "313" - matchFields: - - key: "314" - operator: g>郵[+扴ȨŮ+朷Ǝ膯lj - values: - - "315" - weight: -1334110502 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "308" - operator: '#yV''WKw(ğ儴Ůĺ}' - values: - - "309" - matchFields: - - key: "310" - operator: ǩ - values: - - "311" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k - operator: Exists - matchLabels: - 2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF: T.5vN5.25aWx.2aM214_.-N_g-..H - namespaces: - - "330" - topologyKey: "331" - weight: -1856061695 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0 - operator: DoesNotExist - matchLabels: - 9-_56-__18Y--6-_3J--.48Y.q0: O1-F.v - namespaces: - - "322" - topologyKey: "323" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 9_.-.Ms7_t.U - operator: DoesNotExist - matchLabels: - n_H-.___._D8.TS-jJ.Ys_Mop34_-2: H38xm-.nx.sEK4.B._6 - namespaces: - - "346" - topologyKey: "347" - weight: 1046355854 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og - operator: NotIn - values: - - WT-M.3_-1y_8D_3 - matchLabels: - 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT: SY.g._2F7.-e - namespaces: - - "338" - topologyKey: "339" - automountServiceAccountToken: false - containers: - - args: - - "238" - command: - - "237" - env: - - name: "245" - value: "246" - valueFrom: - configMapKeyRef: - key: "252" - name: "251" - optional: false - fieldRef: - apiVersion: "247" - fieldPath: "248" - resourceFieldRef: - containerName: "249" - divisor: "909" - resource: "250" - secretKeyRef: - key: "254" - name: "253" - optional: true - envFrom: - - configMapRef: - name: "243" - optional: true - prefix: "242" - secretRef: - name: "244" - optional: true - image: "236" - imagePullPolicy: 姣>懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾 - lifecycle: - postStart: - exec: - command: - - "276" - httpGet: - host: "278" - httpHeaders: - - name: "279" - value: "280" - path: "277" - port: -78618443 - scheme: Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ - tcpSocket: - host: "281" - port: -495373547 - preStop: - exec: - command: - - "282" - httpGet: - host: "285" - httpHeaders: - - name: "286" - value: "287" - path: "283" - port: "284" - scheme: /樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - tcpSocket: - host: "288" - port: 88483549 - livenessProbe: - exec: - command: - - "261" - failureThreshold: 208045354 - httpGet: - host: "264" - httpHeaders: - - name: "265" - value: "266" - path: "262" - port: "263" - scheme: '{Ⱦdz@' - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "267" - port: 406308963 - timeoutSeconds: 2026784878 - name: "235" - ports: - - containerPort: -31530684 - hostIP: "241" - hostPort: -374922344 - name: "240" - protocol: Ú|dk_ - readinessProbe: - exec: - command: - - "268" - failureThreshold: -1131820775 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "269" - port: "270" - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "275" - port: "274" - timeoutSeconds: 747521320 - resources: - limits: - '?': "193" - requests: - '@Ȗs«öʮĀ<é瞾': "51" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ - drop: - - ŬƩȿ0矀Kʝ瘴I\p - privileged: true - procMount: FD剂讼ɓȌʟn - readOnlyRootFilesystem: true - runAsGroup: 256256810846755412 - runAsNonRoot: false - runAsUser: 2314355702080875607 - seLinuxOptions: - level: "293" - role: "291" - type: "292" - user: "290" - stdinOnce: true - terminationMessagePath: "289" - terminationMessagePolicy: ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷 - tty: true - volumeDevices: - - devicePath: "260" - name: "259" - volumeMounts: - - mountPath: "256" - mountPropagation: £軶ǃ*ʙ嫙&蒒5靇C'ɵK.Q貇 - name: "255" - subPath: "257" - subPathExpr: "258" - workingDir: "239" - dnsConfig: - nameservers: - - "354" - options: - - name: "356" - value: "357" - searches: - - "355" - dnsPolicy: Bls3!Zɾ - enableServiceLinks: false - hostAliases: - - hostnames: - - "352" - ip: "351" - hostNetwork: true - hostname: "306" - imagePullSecrets: - - name: "305" - initContainers: - - args: - - "179" - command: - - "178" - env: - - name: "186" - value: "187" - valueFrom: - configMapKeyRef: - key: "193" - name: "192" - optional: false - fieldRef: - apiVersion: "188" - fieldPath: "189" - resourceFieldRef: - containerName: "190" - divisor: "980" - resource: "191" - secretKeyRef: - key: "195" - name: "194" - optional: true - envFrom: - - configMapRef: - name: "184" - optional: true - prefix: "183" - secretRef: - name: "185" - optional: false - image: "177" - imagePullPolicy: 腬 - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: -33154680 - scheme: 跾|@?鷅bȻN+ņ榱* - tcpSocket: - host: "222" - port: "221" - preStop: - exec: - command: - - "223" - httpGet: - host: "226" - httpHeaders: - - name: "227" - value: "228" - path: "224" - port: "225" - scheme: 櫸eʔŊ - tcpSocket: - host: "229" - port: 731879508 - livenessProbe: - exec: - command: - - "202" - failureThreshold: -532628939 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -1365115016 - scheme: 町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅 - initialDelaySeconds: 1971383046 - periodSeconds: -1376537100 - successThreshold: 1100645882 - tcpSocket: - host: "207" - port: -1105572246 - timeoutSeconds: 1154560741 - name: "176" - ports: - - containerPort: -1629040033 - hostIP: "182" - hostPort: -958191807 - name: "181" - protocol: ʜǝ鿟ldg滠鼍ƭt - readinessProbe: - exec: - command: - - "208" - failureThreshold: 195263908 - httpGet: - host: "211" - httpHeaders: - - name: "212" - value: "213" - path: "209" - port: "210" - scheme: '%:;栍dʪīT捘ɍi' - initialDelaySeconds: -1510026905 - periodSeconds: 2025698376 - successThreshold: -1766555420 - tcpSocket: - host: "215" - port: "214" - timeoutSeconds: 437857734 - resources: - limits: - )ÙæNǚ錯ƶRquA?瞲Ť倱: "289" - requests: - ź贩j瀉: "621" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö - privileged: true - procMount: 龫`劳&¼傭Ȟ1酃=6}ɡ - readOnlyRootFilesystem: false - runAsGroup: 5929692523927062634 - runAsNonRoot: false - runAsUser: 1383845015160566234 - seLinuxOptions: - level: "234" - role: "232" - type: "233" - user: "231" - terminationMessagePath: "230" - terminationMessagePolicy: hoĂɋ - tty: true - volumeDevices: - - devicePath: "201" - name: "200" - volumeMounts: - - mountPath: "197" - mountPropagation: ɶ - name: "196" - readOnly: true - subPath: "198" - subPathExpr: "199" - workingDir: "180" - nodeName: "298" - nodeSelector: - "294": "295" - priority: -1442230895 - priorityClassName: "353" - readinessGates: - - conditionType: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - restartPolicy: 3ƁÀ*f< - runtimeClassName: "358" - schedulerName: "348" - securityContext: - fsGroup: 1150055837641003771 - runAsGroup: -982786583685356406 - runAsNonRoot: false - runAsUser: -6630145684297456260 - seLinuxOptions: - level: "302" - role: "300" - type: "301" - user: "299" - supplementalGroups: - - -7477362499801752548 - sysctls: - - name: "303" - value: "304" - serviceAccount: "297" - serviceAccountName: "296" - shareProcessNamespace: false - subdomain: "307" - terminationGracePeriodSeconds: 998876704495005296 - tolerations: - - effect: 缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw - key: "349" - operator: ȶŮ嫠!@@)Zq=歍þ螗ɃŒ - tolerationSeconds: 3497863229537310760 - value: "350" - volumes: - - awsElasticBlockStore: - fsType: "76" - partition: -156457987 - readOnly: true - volumeID: "75" - azureDisk: - cachingMode: ĦE勗E濞偘1 - diskName: "139" - diskURI: "140" - fsType: "141" - kind: 議Ǹ轺@)蓳嗘 - readOnly: true - azureFile: - readOnly: true - secretName: "125" - shareName: "126" - cephfs: - monitors: - - "110" - path: "111" - secretFile: "113" - secretRef: - name: "114" - user: "112" - cinder: - fsType: "108" - secretRef: - name: "109" - volumeID: "107" - configMap: - defaultMode: 1754292691 - items: - - key: "128" - mode: -675987103 - path: "129" - name: "127" - optional: true - csi: - driver: "171" - fsType: "172" - nodePublishSecretRef: - name: "175" - readOnly: true - volumeAttributes: - "173": "174" - downwardAPI: - defaultMode: -1008038372 - items: - - fieldRef: - apiVersion: "118" - fieldPath: "119" - mode: -1965578645 - path: "117" - resourceFieldRef: - containerName: "120" - divisor: "327" - resource: "121" - emptyDir: - medium: Šĸů湙騘&啞 - sizeLimit: "577" - fc: - fsType: "123" - lun: -658258937 - targetWWNs: - - "122" - wwids: - - "124" - flexVolume: - driver: "102" - fsType: "103" - options: - "105": "106" - readOnly: true - secretRef: - name: "104" - flocker: - datasetName: "115" - datasetUUID: "116" - gcePersistentDisk: - fsType: "74" - partition: 663386308 - pdName: "73" - gitRepo: - directory: "79" - repository: "77" - revision: "78" - glusterfs: - endpoints: "92" - path: "93" - readOnly: true - hostPath: - path: "72" - type: ħ籦ö嗏ʑ>季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -10286140 diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.json b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.json deleted file mode 100644 index 62045f119..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.json +++ /dev/null @@ -1,1077 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39", - "fields": {"40":{"41":null}} - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "51", - "generateName": "52", - "namespace": "53", - "selfLink": "54", - "uid": "@ʊʓ誒j剐'宣I拍N嚳ķȗɊ捵Tw", - "resourceVersion": "11115488420961080514", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "56": "57" - }, - "annotations": { - "58": "59" - }, - "ownerReferences": [ - { - "apiVersion": "60", - "kind": "61", - "name": "62", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "63" - ], - "clusterName": "64", - "managedFields": [ - { - "manager": "65", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "66", - "fields": {"67":{"68":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "71", - "hostPath": { - "path": "72", - "type": "ħ籦ö嗏ʑ\u003e季Cʖ畬x" - }, - "emptyDir": { - "medium": "Šĸů湙騘\u0026啞", - "sizeLimit": "577" - }, - "gcePersistentDisk": { - "pdName": "73", - "fsType": "74", - "partition": 663386308 - }, - "awsElasticBlockStore": { - "volumeID": "75", - "fsType": "76", - "partition": -156457987, - "readOnly": true - }, - "gitRepo": { - "repository": "77", - "revision": "78", - "directory": "79" - }, - "secret": { - "secretName": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -5672822 - } - ], - "defaultMode": -861289979, - "optional": true - }, - "nfs": { - "server": "83", - "path": "84", - "readOnly": true - }, - "iscsi": { - "targetPortal": "85", - "iqn": "86", - "lun": -1636694746, - "iscsiInterface": "87", - "fsType": "88", - "portals": [ - "89" - ], - "chapAuthSession": true, - "secretRef": { - "name": "90" - }, - "initiatorName": "91" - }, - "glusterfs": { - "endpoints": "92", - "path": "93", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "94" - }, - "rbd": { - "monitors": [ - "95" - ], - "image": "96", - "fsType": "97", - "pool": "98", - "user": "99", - "keyring": "100", - "secretRef": { - "name": "101" - } - }, - "flexVolume": { - "driver": "102", - "fsType": "103", - "secretRef": { - "name": "104" - }, - "readOnly": true, - "options": { - "105": "106" - } - }, - "cinder": { - "volumeID": "107", - "fsType": "108", - "secretRef": { - "name": "109" - } - }, - "cephfs": { - "monitors": [ - "110" - ], - "path": "111", - "user": "112", - "secretFile": "113", - "secretRef": { - "name": "114" - } - }, - "flocker": { - "datasetName": "115", - "datasetUUID": "116" - }, - "downwardAPI": { - "items": [ - { - "path": "117", - "fieldRef": { - "apiVersion": "118", - "fieldPath": "119" - }, - "resourceFieldRef": { - "containerName": "120", - "resource": "121", - "divisor": "327" - }, - "mode": -1965578645 - } - ], - "defaultMode": -1008038372 - }, - "fc": { - "targetWWNs": [ - "122" - ], - "lun": -658258937, - "fsType": "123", - "wwids": [ - "124" - ] - }, - "azureFile": { - "secretName": "125", - "shareName": "126", - "readOnly": true - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": -675987103 - } - ], - "defaultMode": 1754292691, - "optional": true - }, - "vsphereVolume": { - "volumePath": "130", - "fsType": "131", - "storagePolicyName": "132", - "storagePolicyID": "133" - }, - "quobyte": { - "registry": "134", - "volume": "135", - "user": "136", - "group": "137", - "tenant": "138" - }, - "azureDisk": { - "diskName": "139", - "diskURI": "140", - "cachingMode": "ĦE勗E濞偘1", - "fsType": "141", - "readOnly": true, - "kind": "議Ǹ轺@)蓳嗘" - }, - "photonPersistentDisk": { - "pdID": "142", - "fsType": "143" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "144", - "items": [ - { - "key": "145", - "path": "146", - "mode": 679825403 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "147", - "fieldRef": { - "apiVersion": "148", - "fieldPath": "149" - }, - "resourceFieldRef": { - "containerName": "150", - "resource": "151", - "divisor": "184" - }, - "mode": -783297752 - } - ] - }, - "configMap": { - "name": "152", - "items": [ - { - "key": "153", - "path": "154", - "mode": -106644772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "155", - "expirationSeconds": 1897892355466772544, - "path": "156" - } - } - ], - "defaultMode": 345648859 - }, - "portworxVolume": { - "volumeID": "157", - "fsType": "158", - "readOnly": true - }, - "scaleIO": { - "gateway": "159", - "system": "160", - "secretRef": { - "name": "161" - }, - "protectionDomain": "162", - "storagePool": "163", - "storageMode": "164", - "volumeName": "165", - "fsType": "166", - "readOnly": true - }, - "storageos": { - "volumeName": "167", - "volumeNamespace": "168", - "fsType": "169", - "secretRef": { - "name": "170" - } - }, - "csi": { - "driver": "171", - "readOnly": true, - "fsType": "172", - "volumeAttributes": { - "173": "174" - }, - "nodePublishSecretRef": { - "name": "175" - } - } - } - ], - "initContainers": [ - { - "name": "176", - "image": "177", - "command": [ - "178" - ], - "args": [ - "179" - ], - "workingDir": "180", - "ports": [ - { - "name": "181", - "hostPort": -958191807, - "containerPort": -1629040033, - "protocol": "ʜǝ鿟ldg滠鼍ƭt", - "hostIP": "182" - } - ], - "envFrom": [ - { - "prefix": "183", - "configMapRef": { - "name": "184", - "optional": true - }, - "secretRef": { - "name": "185", - "optional": false - } - } - ], - "env": [ - { - "name": "186", - "value": "187", - "valueFrom": { - "fieldRef": { - "apiVersion": "188", - "fieldPath": "189" - }, - "resourceFieldRef": { - "containerName": "190", - "resource": "191", - "divisor": "980" - }, - "configMapKeyRef": { - "name": "192", - "key": "193", - "optional": false - }, - "secretKeyRef": { - "name": "194", - "key": "195", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ")ÙæNǚ錯ƶRquA?瞲Ť倱": "289" - }, - "requests": { - "ź贩j瀉": "621" - } - }, - "volumeMounts": [ - { - "name": "196", - "readOnly": true, - "mountPath": "197", - "subPath": "198", - "mountPropagation": "ɶ", - "subPathExpr": "199" - } - ], - "volumeDevices": [ - { - "name": "200", - "devicePath": "201" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -1365115016, - "host": "204", - "scheme": "町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -1105572246, - "host": "207" - }, - "initialDelaySeconds": 1971383046, - "timeoutSeconds": 1154560741, - "periodSeconds": -1376537100, - "successThreshold": 1100645882, - "failureThreshold": -532628939 - }, - "readinessProbe": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": "210", - "host": "211", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "212", - "value": "213" - } - ] - }, - "tcpSocket": { - "port": "214", - "host": "215" - }, - "initialDelaySeconds": -1510026905, - "timeoutSeconds": 437857734, - "periodSeconds": 2025698376, - "successThreshold": -1766555420, - "failureThreshold": 195263908 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": -33154680, - "host": "218", - "scheme": "跾|@?鷅bȻN+ņ榱*", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": "221", - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": "225", - "host": "226", - "scheme": "櫸eʔŊ", - "httpHeaders": [ - { - "name": "227", - "value": "228" - } - ] - }, - "tcpSocket": { - "port": 731879508, - "host": "229" - } - } - }, - "terminationMessagePath": "230", - "terminationMessagePolicy": "hoĂɋ", - "imagePullPolicy": "腬", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "231", - "role": "232", - "type": "233", - "level": "234" - }, - "runAsUser": 1383845015160566234, - "runAsGroup": 5929692523927062634, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "龫`劳\u0026¼傭Ȟ1酃=6}ɡ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "235", - "image": "236", - "command": [ - "237" - ], - "args": [ - "238" - ], - "workingDir": "239", - "ports": [ - { - "name": "240", - "hostPort": -374922344, - "containerPort": -31530684, - "protocol": "Ú|dk_", - "hostIP": "241" - } - ], - "envFrom": [ - { - "prefix": "242", - "configMapRef": { - "name": "243", - "optional": true - }, - "secretRef": { - "name": "244", - "optional": true - } - } - ], - "env": [ - { - "name": "245", - "value": "246", - "valueFrom": { - "fieldRef": { - "apiVersion": "247", - "fieldPath": "248" - }, - "resourceFieldRef": { - "containerName": "249", - "resource": "250", - "divisor": "909" - }, - "configMapKeyRef": { - "name": "251", - "key": "252", - "optional": false - }, - "secretKeyRef": { - "name": "253", - "key": "254", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "?": "193" - }, - "requests": { - "@Ȗs«öʮĀ\u003cé瞾": "51" - } - }, - "volumeMounts": [ - { - "name": "255", - "mountPath": "256", - "subPath": "257", - "mountPropagation": "£軶ǃ*ʙ嫙\u0026蒒5靇C'ɵK.Q貇", - "subPathExpr": "258" - } - ], - "volumeDevices": [ - { - "name": "259", - "devicePath": "260" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "261" - ] - }, - "httpGet": { - "path": "262", - "port": "263", - "host": "264", - "scheme": "{Ⱦdz@", - "httpHeaders": [ - { - "name": "265", - "value": "266" - } - ] - }, - "tcpSocket": { - "port": 406308963, - "host": "267" - }, - "initialDelaySeconds": 632397602, - "timeoutSeconds": 2026784878, - "periodSeconds": -730174220, - "successThreshold": 433084615, - "failureThreshold": 208045354 - }, - "readinessProbe": { - "exec": { - "command": [ - "268" - ] - }, - "httpGet": { - "path": "269", - "port": "270", - "host": "271", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": "274", - "host": "275" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "276" - ] - }, - "httpGet": { - "path": "277", - "port": -78618443, - "host": "278", - "scheme": "Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ", - "httpHeaders": [ - { - "name": "279", - "value": "280" - } - ] - }, - "tcpSocket": { - "port": -495373547, - "host": "281" - } - }, - "preStop": { - "exec": { - "command": [ - "282" - ] - }, - "httpGet": { - "path": "283", - "port": "284", - "host": "285", - "scheme": "/樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "286", - "value": "287" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "288" - } - } - }, - "terminationMessagePath": "289", - "terminationMessagePolicy": "ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷", - "imagePullPolicy": "姣\u003e懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾", - "securityContext": { - "capabilities": { - "add": [ - "ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ" - ], - "drop": [ - "ŬƩȿ0矀Kʝ瘴I\\p" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "290", - "role": "291", - "type": "292", - "level": "293" - }, - "runAsUser": 2314355702080875607, - "runAsGroup": 256256810846755412, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "FD剂讼ɓȌʟn" - }, - "stdinOnce": true, - "tty": true - } - ], - "restartPolicy": "3ƁÀ*f\u003c", - "terminationGracePeriodSeconds": 998876704495005296, - "activeDeadlineSeconds": -1689173322096612726, - "dnsPolicy": "Bls3!Zɾ", - "nodeSelector": { - "294": "295" - }, - "serviceAccountName": "296", - "serviceAccount": "297", - "automountServiceAccountToken": false, - "nodeName": "298", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "299", - "role": "300", - "type": "301", - "level": "302" - }, - "runAsUser": -6630145684297456260, - "runAsGroup": -982786583685356406, - "runAsNonRoot": false, - "supplementalGroups": [ - -7477362499801752548 - ], - "fsGroup": 1150055837641003771, - "sysctls": [ - { - "name": "303", - "value": "304" - } - ] - }, - "imagePullSecrets": [ - { - "name": "305" - } - ], - "hostname": "306", - "subdomain": "307", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "308", - "operator": "#yV'WKw(ğ儴Ůĺ}", - "values": [ - "309" - ] - } - ], - "matchFields": [ - { - "key": "310", - "operator": "ǩ", - "values": [ - "311" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1334110502, - "preference": { - "matchExpressions": [ - { - "key": "312", - "operator": "1ØœȠƬQg鄠", - "values": [ - "313" - ] - } - ], - "matchFields": [ - { - "key": "314", - "operator": "g\u003e郵[+扴ȨŮ+朷Ǝ膯lj", - "values": [ - "315" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "9-_56-__18Y--6-_3J--.48Y.q0": "O1-F.v" - }, - "matchExpressions": [ - { - "key": "3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1856061695, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF": "T.5vN5.25aWx.2aM214_.-N_g-..H" - }, - "matchExpressions": [ - { - "key": "B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT": "SY.g._2F7.-e" - }, - "matchExpressions": [ - { - "key": "7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og", - "operator": "NotIn", - "values": [ - "WT-M.3_-1y_8D_3" - ] - } - ] - }, - "namespaces": [ - "338" - ], - "topologyKey": "339" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1046355854, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "n_H-.___._D8.TS-jJ.Ys_Mop34_-2": "H38xm-.nx.sEK4.B._6" - }, - "matchExpressions": [ - { - "key": "9_.-.Ms7_t.U", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "346" - ], - "topologyKey": "347" - } - } - ] - } - }, - "schedulerName": "348", - "tolerations": [ - { - "key": "349", - "operator": "ȶŮ嫠!@@)Zq=歍þ螗ɃŒ", - "value": "350", - "effect": "缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw", - "tolerationSeconds": 3497863229537310760 - } - ], - "hostAliases": [ - { - "ip": "351", - "hostnames": [ - "352" - ] - } - ], - "priorityClassName": "353", - "priority": -1442230895, - "dnsConfig": { - "nameservers": [ - "354" - ], - "searches": [ - "355" - ], - "options": [ - { - "name": "356", - "value": "357" - } - ] - }, - "readinessGates": [ - { - "conditionType": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e" - } - ], - "runtimeClassName": "358", - "enableServiceLinks": false - } - }, - "ttlSecondsAfterFinished": -10286140 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.pb b/pseudo/k8s/api/testdata/v1.14.0/batch.v2alpha1.JobTemplate.pb deleted file mode 100644 index b1f4c76e8b716a15748f393d752acd7b5a6b5e20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4749 zcmZWt33wDocAjc%kUIoV8t-OyeC#k7EQWN`U40XbWiEp-hdIpQ-E9jHhYUy{PI;YA z5{P3YArOZ~AS8i6NC*VzLgJ7Dnp261KihbHZ5$hBrpHbk%;Jr0Y@Am;BH4W5`*>aR zs`|ZG@BCYDXt_4}X?n<#j15ayj@g7WR_CnD5SYJ8&t5Vwb4||bj18I0t!L>E5sff| zL?@EmNcOn>MTxp%f7813ShY7pGmn+N?r(_rIMa7d@fW`uJ<*wopAZyXk+96Gk|t`3 ztngUWwNJh-yjf6ORgg2mHv8xh9#RF-iGDur8h(M8@(?EGj|Tkpk; zF_8mr#r74X#=0u}JAMn&RF9n=0>?Ebg&qh`ov|@R!|66eQ&?gsEITQzxGAi99{HVF zT!)7WypCm25d}q6M48ukUeb0XzHj{O59hj^aD@+jH&3<}zVlAz;uH`8ri=U%Scw9x za25wE$w`T_`ziDM-o)|ZP|@7bv0&NUXGdSZIyJt#BGz^^dcMa)i6W0Q+j>e=@+eXD zqG#bnuyI1PwP=epA_GL|Ny{ZZX}KhT<^MD+WqXks|M6$|hwP=hw!ckQKO;xSp5Eg2 zw$ApikozC#74&#)yfIf7xJ-FEYh)^-!5SjFmW78QZe%&bm~9xGI-i}NZAb8uOSDOP8^jgVU3Zxtk0FE7KPma}183kS4vjh8ao^Sig2X zGk8*VX70@F4U@O5%H5EPaG8t#6ZlsKm&g!NS#(pfHVz?sWjg_{~+YBiL|71ziB+ToI0PdFsN&BFvF>&)>ZnfS<5P(Mi!J|Ky z{>S@w5s84TfD)BNK-OTTXQ?!$2u@1D?hzUB&Q`OzIMQq$yA&^56 zyWSJuc`|g!=xy*&3J=)@p-{v;N|C%s0|_$olv!{&vFBu8&A4Y{ZAFnT^*7NgCB43sp+PjI3QXA`C^1UK%-{M?#V^$Nc0?=6`u2^Fo~@hM zcPM`F%ogTXv^`Mk?+l!abyX%Bd?TX=tC>gX0kWz(?eM0^P^#qcf75t{a@pL!0FDeC z#qm?9r9ByQ7xD}SwhC;`NvS#>NmCjRF`+bYyoMd#&rkl;pB_cqPeqeS<3eL;I051{ z$$=(}fi(!$6i2-`{HO1&WO7rQ>Y+4^w~eJVJL2v@WZXlwEYzh)@%Omd#aV5UmA?WLJk>iFXe1*H4ZXS4@ueR7VSZ0-Tius4=^F_I#+*ym~2Zl)1k( zTH(8d$h{@vVoAJi*((!w%9;c9ArAIrB2nQj_bY;RGX-N{iDQ9C6M)F+K$O|&U9=C; zyAb`PbxlcP>_j%XzN9$r*BtayF2o3y!=2R6cSGF83Xp*a;zQ^0|QkNx9 z#+KV;ksOm8pMG23-^N_XP5dRx_J7Pja;E9?(@jornylDA`J;IPeT*Ei2?Ym41HPie z9Y`2d{tHC%OBL)SYASXUS3n5?k&-85=F}j102bj2SX7)qR5uXK14PHEuqE+!U#RNs z2Ucb{{MYZ_N!E^gVDI7IFMGp)laerYIyp&%NQ(0X8q{F8KM;+9Ov4g*7{(v*u+Hnw zA>_6g+8_`NVebD8c44?Snve+dVYPq&b-_a+UDu2j5bw{G|S87#L=A-pNq6l=Uy>ec49cC%~?fH zwv12&W)#R!F!NXnvg9Zt2va2Yz&FF)q1H4~ix}D-5Cy7+PO;fwIA;e zo~0aL@9hc>a^3qVQI`y8YUskX8;C#cJ-l@BoAfJ5RT`rZS^EE|Qh89N3htqSuD-gh z=7l|Jk^Fe~*}qHdzdXy*3w;s}h|u^RTBky7U{$tPohmx@sH4H#b(?bCuf10}Aoa(V z?_JZTMyqQ*OaNfQwVW4HGwlfrTZ^w!^5iZskj1VzwEAKI)* zphA<~t}(HOqsuqH7VrhG-0o})T+I&E1}^vc7MZQvBBuegSXwlNXd%u1G0^hIw|$ux>1X`4 zF9-LAPnZ?8BDaZ6^qh(nHb;*(hmS|QYW!E2p@B2O#&8cGugRa@cQo#6oA#R=s1ztQ ztV5|{9a1;gm#9Z^*m;IMiN1I|5CC;4|IhNzWj378>wbD1~1174}}}~VCQRo zpZ|QUzGQx)>Edb9yD;fb82VF+7%b?`_beahy7TErH)@YJfBn~~-kaZkQFy5%WFnk0 zVRf!JY;mL;1{qjP5=ECM08!F`sB?g53(@PgmA3V>XzPw3SL7iFMIPFx$YcADec#+I zY3q4Vha5InRp+;@fw%ofeJJ(*$@kvd({b;I$9Zq0q3LdARr6gkF5w-hS&^6WAj3pn zE<`{TFQIBV`nN~v9f-y>Pd`I;HHI0!_0{JVOy8X9uZeDN3pD#Ly+w5E%n;azX-0(_ z;kO_#vr|4k`|sP584StfB-@x7BJ}zK`@^-tGq0>jY_BCpMP>xqlbBzv7@yeI{@Uo+ z?zV74pm}tx>SAz@x#L`DH#sIVdnr1bUP_OkpVV1HRsg^W+9H;Pg_zE=oTM${*73~1 zSpqwS+r*5eJ>o2bOE=h;0Mot7N_a9nvvvL@<3)+%*q7nIVem7JncOV?|Drr_2gaZi zi%b3N*IX{O9!Ib*>V4rk23f&@r&rm=$MxT%axkDdUymE$-eXRD#HBFE)&1_vjn8+hGD zgP+SzT(^Lm1Y0bAgBfUH&|EN2Bmsw^dyS&sLv#?)Tj^CI%d#RIWZCuX8a9Jv*TMG* zzf@h$=dfgtWp!O94>@<^n&oQdaxE)wlf>$*C}%GlgQtmroLP=%^Nc(`cdfy#++wg9 z;2~CHxfv|LV^-V5rVDxVn89-waVt0jPf{1Mx zaOQ^PDG|&N049T;PkO*wV=4jm24_stxOsEgtaNTst}!D!M+AhAnW0lfZOa;#Tf2qJojhIQ zCUAzrJVg)I396rws~Q`)`TsA(Fysb^l6n|2UDA%DZw8XF3VllekP1WtFrw<70fNS3 z8MZXRe(grd#U!F~e0Ji51b5w6-Z~e^B;Y7)~ zV8@(w8((}OUfmKn5zW6q1}(H!hM^w|Tr%4lv*P)?2~WX7I@F$^D;9hJ2n%b#u#pZ7 z3w_Q}MCV$K4e;w65CP4A42JI>?ELlzYx-ETg_qo;;s-9p3eJa0Vr8{jXm{drYhqVZ z-@$l&dC=E;%q;4GIdi3hGs}yt2|$o9=9T_A^JP`yPO=qPbAVUvJ3iQUW{@Kq_18b* zy7$$M|4b@N{h|2Fl1KRVdxeF`v9x$AJv(Wh2Gs%*|99{TWbg`tn;9|o?_;&4%lc0H zo94wzeUZ{tmIcslVE-@YF7z1S$oBa0`{$DS9Kla+zk^(1^Ur}nskaN>ZSNnxC+?U2 zc1azg7h1aEbNqSG4d|P=W>>4PA3a&F5j6J`=Ed&cr@fH4ShOU3dFJTAj#&K#Ptpd` z^)de!vmX<{gfa7yB^f%*Xpjsa>ksEFe6z!E#hnss>dfpr5J=8bz~aEw`mxLV=O27Z zS&qbd7GOMn{Q$G*OkOUuMjJCMvOBToVzji;JlZ`qQPUMYcP83!ruSTY|CM-2J|5fK z(LWvGqaNOcK8HmSrlTmiKECy7@S{Ih9v%wQ5&k5R_T}D>YVQ10b8=3)BhlUTdeqxG z^7@r%;n{GtkSN;ryz*A$m^CJC567fH00X%gAmfK)QqTa}9Y+IKX8Q{x#mQmFlfldj z4anAl=0o!bXz2`h1e&8wwZqcVMlD|VeC%u~pn~d($hJT^l&Q?ShsUoRSYz%xZ?@K( zJ>AiU%3zyhR<`Gu`-@{OC)JI!gXNo38_wTqYAL)F;H?h^k)Tsi#@C_5WigEQ9Xa_< zGVbr9UxHd0@郵[+扴ȨŮ+朷Ǝ膯lj - values: - - "315" - weight: -1334110502 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "308" - operator: '#yV''WKw(ğ儴Ůĺ}' - values: - - "309" - matchFields: - - key: "310" - operator: ǩ - values: - - "311" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: B-_-...1py_8-3..s._.x.2K_2qu_0S-CqW.D_8--2k - operator: Exists - matchLabels: - 2-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF: T.5vN5.25aWx.2aM214_.-N_g-..H - namespaces: - - "330" - topologyKey: "331" - weight: -1856061695 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3O_.J_-G_--V-42E_--o90G_A4..-L..-__0N_N.O0 - operator: DoesNotExist - matchLabels: - 9-_56-__18Y--6-_3J--.48Y.q0: O1-F.v - namespaces: - - "322" - topologyKey: "323" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 9_.-.Ms7_t.U - operator: DoesNotExist - matchLabels: - n_H-.___._D8.TS-jJ.Ys_Mop34_-2: H38xm-.nx.sEK4.B._6 - namespaces: - - "346" - topologyKey: "347" - weight: 1046355854 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 7o-x382m88w-pz94.g-c2---2etfh41ca-z-5g2wco8/3Og - operator: NotIn - values: - - WT-M.3_-1y_8D_3 - matchLabels: - 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/2I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT: SY.g._2F7.-e - namespaces: - - "338" - topologyKey: "339" - automountServiceAccountToken: false - containers: - - args: - - "238" - command: - - "237" - env: - - name: "245" - value: "246" - valueFrom: - configMapKeyRef: - key: "252" - name: "251" - optional: false - fieldRef: - apiVersion: "247" - fieldPath: "248" - resourceFieldRef: - containerName: "249" - divisor: "909" - resource: "250" - secretKeyRef: - key: "254" - name: "253" - optional: true - envFrom: - - configMapRef: - name: "243" - optional: true - prefix: "242" - secretRef: - name: "244" - optional: true - image: "236" - imagePullPolicy: 姣>懔%熷谟þ蛯ɰ荶ljʁ揆ɘȌ脾 - lifecycle: - postStart: - exec: - command: - - "276" - httpGet: - host: "278" - httpHeaders: - - name: "279" - value: "280" - path: "277" - port: -78618443 - scheme: Ɗ+j忊Ŗȫ焗捏ĨFħ籘Àǒ - tcpSocket: - host: "281" - port: -495373547 - preStop: - exec: - command: - - "282" - httpGet: - host: "285" - httpHeaders: - - name: "286" - value: "287" - path: "283" - port: "284" - scheme: /樝fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - tcpSocket: - host: "288" - port: 88483549 - livenessProbe: - exec: - command: - - "261" - failureThreshold: 208045354 - httpGet: - host: "264" - httpHeaders: - - name: "265" - value: "266" - path: "262" - port: "263" - scheme: '{Ⱦdz@' - initialDelaySeconds: 632397602 - periodSeconds: -730174220 - successThreshold: 433084615 - tcpSocket: - host: "267" - port: 406308963 - timeoutSeconds: 2026784878 - name: "235" - ports: - - containerPort: -31530684 - hostIP: "241" - hostPort: -374922344 - name: "240" - protocol: Ú|dk_ - readinessProbe: - exec: - command: - - "268" - failureThreshold: -1131820775 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "269" - port: "270" - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "275" - port: "274" - timeoutSeconds: 747521320 - resources: - limits: - '?': "193" - requests: - '@Ȗs«öʮĀ<é瞾': "51" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ĠLƐȤ藠3.v-鿧悮坮Ȣ幟ļ - drop: - - ŬƩȿ0矀Kʝ瘴I\p - privileged: true - procMount: FD剂讼ɓȌʟn - readOnlyRootFilesystem: true - runAsGroup: 256256810846755412 - runAsNonRoot: false - runAsUser: 2314355702080875607 - seLinuxOptions: - level: "293" - role: "291" - type: "292" - user: "290" - stdinOnce: true - terminationMessagePath: "289" - terminationMessagePolicy: ǕLLȊɞ-uƻ悖ȩ0Ƹ[Ęİ榌U髷 - tty: true - volumeDevices: - - devicePath: "260" - name: "259" - volumeMounts: - - mountPath: "256" - mountPropagation: £軶ǃ*ʙ嫙&蒒5靇C'ɵK.Q貇 - name: "255" - subPath: "257" - subPathExpr: "258" - workingDir: "239" - dnsConfig: - nameservers: - - "354" - options: - - name: "356" - value: "357" - searches: - - "355" - dnsPolicy: Bls3!Zɾ - enableServiceLinks: false - hostAliases: - - hostnames: - - "352" - ip: "351" - hostNetwork: true - hostname: "306" - imagePullSecrets: - - name: "305" - initContainers: - - args: - - "179" - command: - - "178" - env: - - name: "186" - value: "187" - valueFrom: - configMapKeyRef: - key: "193" - name: "192" - optional: false - fieldRef: - apiVersion: "188" - fieldPath: "189" - resourceFieldRef: - containerName: "190" - divisor: "980" - resource: "191" - secretKeyRef: - key: "195" - name: "194" - optional: true - envFrom: - - configMapRef: - name: "184" - optional: true - prefix: "183" - secretRef: - name: "185" - optional: false - image: "177" - imagePullPolicy: 腬 - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: -33154680 - scheme: 跾|@?鷅bȻN+ņ榱* - tcpSocket: - host: "222" - port: "221" - preStop: - exec: - command: - - "223" - httpGet: - host: "226" - httpHeaders: - - name: "227" - value: "228" - path: "224" - port: "225" - scheme: 櫸eʔŊ - tcpSocket: - host: "229" - port: 731879508 - livenessProbe: - exec: - command: - - "202" - failureThreshold: -532628939 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -1365115016 - scheme: 町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅 - initialDelaySeconds: 1971383046 - periodSeconds: -1376537100 - successThreshold: 1100645882 - tcpSocket: - host: "207" - port: -1105572246 - timeoutSeconds: 1154560741 - name: "176" - ports: - - containerPort: -1629040033 - hostIP: "182" - hostPort: -958191807 - name: "181" - protocol: ʜǝ鿟ldg滠鼍ƭt - readinessProbe: - exec: - command: - - "208" - failureThreshold: 195263908 - httpGet: - host: "211" - httpHeaders: - - name: "212" - value: "213" - path: "209" - port: "210" - scheme: '%:;栍dʪīT捘ɍi' - initialDelaySeconds: -1510026905 - periodSeconds: 2025698376 - successThreshold: -1766555420 - tcpSocket: - host: "215" - port: "214" - timeoutSeconds: 437857734 - resources: - limits: - )ÙæNǚ錯ƶRquA?瞲Ť倱: "289" - requests: - ź贩j瀉: "621" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö - privileged: true - procMount: 龫`劳&¼傭Ȟ1酃=6}ɡ - readOnlyRootFilesystem: false - runAsGroup: 5929692523927062634 - runAsNonRoot: false - runAsUser: 1383845015160566234 - seLinuxOptions: - level: "234" - role: "232" - type: "233" - user: "231" - terminationMessagePath: "230" - terminationMessagePolicy: hoĂɋ - tty: true - volumeDevices: - - devicePath: "201" - name: "200" - volumeMounts: - - mountPath: "197" - mountPropagation: ɶ - name: "196" - readOnly: true - subPath: "198" - subPathExpr: "199" - workingDir: "180" - nodeName: "298" - nodeSelector: - "294": "295" - priority: -1442230895 - priorityClassName: "353" - readinessGates: - - conditionType: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - restartPolicy: 3ƁÀ*f< - runtimeClassName: "358" - schedulerName: "348" - securityContext: - fsGroup: 1150055837641003771 - runAsGroup: -982786583685356406 - runAsNonRoot: false - runAsUser: -6630145684297456260 - seLinuxOptions: - level: "302" - role: "300" - type: "301" - user: "299" - supplementalGroups: - - -7477362499801752548 - sysctls: - - name: "303" - value: "304" - serviceAccount: "297" - serviceAccountName: "296" - shareProcessNamespace: false - subdomain: "307" - terminationGracePeriodSeconds: 998876704495005296 - tolerations: - - effect: 缔m葰賦迾娙ƴ4虵p蓋沥7uPƒw - key: "349" - operator: ȶŮ嫠!@@)Zq=歍þ螗ɃŒ - tolerationSeconds: 3497863229537310760 - value: "350" - volumes: - - awsElasticBlockStore: - fsType: "76" - partition: -156457987 - readOnly: true - volumeID: "75" - azureDisk: - cachingMode: ĦE勗E濞偘1 - diskName: "139" - diskURI: "140" - fsType: "141" - kind: 議Ǹ轺@)蓳嗘 - readOnly: true - azureFile: - readOnly: true - secretName: "125" - shareName: "126" - cephfs: - monitors: - - "110" - path: "111" - secretFile: "113" - secretRef: - name: "114" - user: "112" - cinder: - fsType: "108" - secretRef: - name: "109" - volumeID: "107" - configMap: - defaultMode: 1754292691 - items: - - key: "128" - mode: -675987103 - path: "129" - name: "127" - optional: true - csi: - driver: "171" - fsType: "172" - nodePublishSecretRef: - name: "175" - readOnly: true - volumeAttributes: - "173": "174" - downwardAPI: - defaultMode: -1008038372 - items: - - fieldRef: - apiVersion: "118" - fieldPath: "119" - mode: -1965578645 - path: "117" - resourceFieldRef: - containerName: "120" - divisor: "327" - resource: "121" - emptyDir: - medium: Šĸů湙騘&啞 - sizeLimit: "577" - fc: - fsType: "123" - lun: -658258937 - targetWWNs: - - "122" - wwids: - - "124" - flexVolume: - driver: "102" - fsType: "103" - options: - "105": "106" - readOnly: true - secretRef: - name: "104" - flocker: - datasetName: "115" - datasetUUID: "116" - gcePersistentDisk: - fsType: "74" - partition: 663386308 - pdName: "73" - gitRepo: - directory: "79" - repository: "77" - revision: "78" - glusterfs: - endpoints: "92" - path: "93" - readOnly: true - hostPath: - path: "72" - type: ħ籦ö嗏ʑ>季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -10286140 diff --git a/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json deleted file mode 100644 index fe419f327..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "CertificateSigningRequest", - "apiVersion": "certificates.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "request": "cQ==", - "usages": [ - "Ƣ6/ʕVŚ(ĿȊ甞" - ], - "username": "24", - "uid": "25", - "groups": [ - "26" - ], - "extra": { - "27": [ - "28" -] - } - }, - "status": { - "conditions": [ - { - "type": "憍峕?狱³-Ǐ忄*", - "reason": "29", - "message": "30", - "lastUpdateTime": "2050-07-09T05:54:12Z" - } - ], - "certificate": "WQ==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.pb deleted file mode 100644 index 20ee5faab47971b8827ec1c7cb04fce4a7a34710..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 366 zcmd0{C}!ZY;F3;GEh@=O%S=uzNiEjPwkX!i%-1h7OiC?DG!&9_Mo0!{rsrkmr3a-J zmZlb$2(4t|I>E@rXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$Z zZ+4_R?CFvnsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$b zb9OUEv2ih)3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA z3>J(^OopaijJiOjWdq|&n7l%Jli?_ zNLwt>G;<>cAw4d}LLnw26DcMmQza%NGcCbmi_G*-O$|FbOXJA?6J5`z%roNRVlpxp zVgZsCQaW7fT*A-VdY^8dYX7`@AZcYIPA;w54 H1|Fzy1~fBXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$Z zZ+4_R?CFvnsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$b zb9OUEv2ih)3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA z3>J(^OopaijJ80fWdq|&n7l%Jli?_ zNLwt>G;=KhE9M`vjq z*?*$z`ILD^TwF{>=0Yq$(n3myOPx#jSzGVZ%~S24cW*qjS@(GV)BP=4Kr<|*n2ZgS VI5=8fp5M(Wz#zmJDaD|~006NBg8cvh diff --git a/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml b/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml deleted file mode 100644 index bf2120b05..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: certificates.k8s.io/v1beta1 -kind: CertificateSigningRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "27": - - "28" - groups: - - "26" - request: cQ== - uid: "25" - usages: - - Ƣ6/ʕVŚ(ĿȊ甞 - username: "24" -status: - certificate: WQ== - conditions: - - lastUpdateTime: "2050-07-09T05:54:12Z" - message: "30" - reason: "29" - type: 憍峕?狱³-Ǐ忄* diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.json deleted file mode 100644 index 33d680aad..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.pb deleted file mode 100644 index 99e7ce245508f9a31a0116e5ce9ea73e1683b2b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 275 zcmV+u0qp*3ICB6B9|{&@Z*OvBX>MV3X>V>WYdCW*X>TufF%kt#Wnpt=66XO5$N>rg zG7 z5&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlL zHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5``93IZ}T5b=!N Z(D?uV|Nj9f*7%;A`Tzg_{{b2RA^^NOY0>}y diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml deleted file mode 100644 index 6e1bd448e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: coordination.k8s.io/v1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - holderIdentity: "24" - leaseDurationSeconds: -1978186127 - leaseTransitions: -1821918122 diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.json b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.json deleted file mode 100644 index ede080bcf..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.pb b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.pb deleted file mode 100644 index c20a8de2df9d913e57bf820da9c3b8444749bea6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 291 zcmd0{C}!Z2=MqcK&o4^J%u6iE%+J%ywkX!i%-1h76k_#BO)O3o`p(F8gOQ8TNQlu` ziqS-g(Ns(6NbAeR-A7gzdOe%hm1yx|VQ<2b6(?uty_m7y>_~Um(}HH&<6<-yVzfwN=VG)J zVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7 zgcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+O>ES7wsZQCwpgHP=2`+=d_d(ELL6Ld lK-yA>K}d>=$;d?DW6#|SKmG#&qsFx#^Jf19Go=`m7yzH1Ye@hA diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.yaml b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.yaml deleted file mode 100644 index 5d97f9c4e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1.Lease.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: coordination.k8s.io/v1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - holderIdentity: "24" - leaseDurationSeconds: -1978186127 - leaseTransitions: -1821918122 diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json deleted file mode 100644 index e7c63c313..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.pb deleted file mode 100644 index e3925c6fd3677642089a3bd56ea90dd434e8fa65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 280 zcmV+z0q6c}ICB6BBnlg2Z*OvBX>MV3X>V>WYdCW*X>TufF=AzOVKEW~Ol4tnWfJEB z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc8VUk3 eG!XHO-O%{||Ns91DAxF%oB99$|Nj9R03rajwri;X diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml deleted file mode 100644 index edef70b95..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: coordination.k8s.io/v1beta1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - holderIdentity: "24" - leaseDurationSeconds: -1978186127 - leaseTransitions: -1821918122 diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.json b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.json deleted file mode 100644 index 83e40d9eb..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.pb b/pseudo/k8s/api/testdata/v1.14.0/coordination.k8s.io.v1beta1.Lease.pb deleted file mode 100644 index 8a4b79b01468ff71ea79a8ddf67775f1cce182e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 296 zcmd0{C}!YN;gU|y&o4^J%u6iE%+J%ywkX!i%-1h7OiC?DG!$a>Nlh$H75dJ|b%T+M z(MX8VSc=g^iP2O`=}7C##ob3%7kWLL*Oh4TVqtH>krgLr=)IV+-t0(s*wZCDQjJ6m z%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV==ImySV&h^o7h<$X zV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK7%Uizm<&y-m<&z3 z7;S+{&4d(RPUw0%rR(M5nMdd8hCZFMMd`Zf6qm0Sd?g3IQ?_0W%r_G$H{tDk8*%>7$Fp zt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch z?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1) z<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5 zw8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5+w=(GBgqbGBp|kGBzR$#+S#q#-cVa%9U0s S0x~x;0x~!{0x~%o03rYzu3RGk diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.after_roundtrip.yaml deleted file mode 100644 index ea3377121..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.after_roundtrip.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -kind: Binding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -target: - apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: ƗǸƢ6/ʕV diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.json deleted file mode 100644 index 8c1cc88cd..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "kind": "Binding", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "target": { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "ƗǸƢ6/ʕV", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Binding.pb deleted file mode 100644 index 88afd711e796f5b68ca049432aa15e65e620f108..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 284 zcmV+%0ptE_ICB6B4GIEwF%kztX>Md`Zf6pL0t(mx3IQ?_0W%r_G$H{tDk8*%>7$Fp zt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch z?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1) z<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u)qnX8?Emh^5 zw8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k3I+-SF*yc;b#oGs0t(0h3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*57t9rg;U3&#*b4ZE5f}<=ZTl*w4LR!zZwEEG$H~rH5vdS E0E2jX-v9sr diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.after_roundtrip.yaml deleted file mode 100644 index 070217131..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.after_roundtrip.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -conditions: -- error: "25" - message: "24" - status: 谐颋DžSǡƏS$+½H牗洝尿 - type: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -kind: ComponentStatus -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.json deleted file mode 100644 index 5c20e5626..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "kind": "ComponentStatus", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "conditions": [ - { - "type": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "status": "谐颋DžSǡƏS$+½H牗洝尿", - "message": "24", - "error": "25" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.pb deleted file mode 100644 index 26753fa30a7d2bc14d5dd38810bed20f1335e4a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 322 zcmV-I0loffICB6B6$%1&F%l0$Z*6dIZe?zCQ*>c;b#oG+0t(mx3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k3I+-SF*y7t9rg;U3&#*b4ZE5f}<=ZTl* Uw4LR!zZwEEG$H~rH5vdS0BHPtRsaA1 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.yaml deleted file mode 100644 index d35ffad37..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ComponentStatus.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -conditions: -- error: "25" - message: "24" - status: 谐颋DžSǡƏS$+½H牗洝尿 - type: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -kind: ComponentStatus -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.json deleted file mode 100644 index 2365e0fd2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "ConfigMap", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": { - "24": "25" - }, - "binaryData": { - "26": "/Q==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.pb deleted file mode 100644 index 30562744f16fd35d208703ee523a06b6de3c643e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 250 zcmVrgG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_?3IZ}T5&|+c8V3pjGBy$c{Tcuw0FpIT AYXATM diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.yaml deleted file mode 100644 index bf86316a9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.after_roundtrip.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: v1 -binaryData: - "26": /Q== -data: - "24": "25" -kind: ConfigMap -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.json deleted file mode 100644 index 0f77e133c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "kind": "ConfigMap", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "data": { - "24": "25" - }, - "binaryData": { - "26": "/Q==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.pb deleted file mode 100644 index 540d106e39a0b611c320081afd4a42de2282298a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 266 zcmd0{C}!Z|=VB@|6ykKw&r8cp_f0GiddJ9hgOQ8TNQlu`iqS-g(Ns(6NbAeR-A7gz zdOe%hm1yx|VQ<2b6(?uty_m7y>_~Um(}HH&<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qs zsd~D5%8B;s;-g*1`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB= zKAp4W@b*OglT&J+O>ES7wsZQCwpgHP=2`+=d_d(ELL6LdK-yA>0mx!9G7(}jGL>Qn Ovdn}S|4K0^F#rGtTUO!# diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.yaml deleted file mode 100644 index d4a8edf50..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ConfigMap.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -binaryData: - "26": /Q== -data: - "24": "25" -kind: ConfigMap -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.json deleted file mode 100644 index edc827955..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "kind": "CreateOptions", - "apiVersion": "v1", - "dryRun": [ - "2" - ], - "fieldManager": "3" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.pb deleted file mode 100644 index b423ea24b3f5deabe89f9b892699cb08d24ce1cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi=3*){6ykL*N=+(^b diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.yaml deleted file mode 100644 index b115dc761..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.CreateOptions.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -dryRun: -- "2" -fieldManager: "3" -kind: CreateOptions diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.json deleted file mode 100644 index 6d2b57c90..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "kind": "DeleteOptions", - "apiVersion": "v1", - "gracePeriodSeconds": 4518808233936994290, - "preconditions": { - "uid": "ȕHH壬%龺ǟ橸章蒪ʤǎ\u003e渽蝧抰", - "resourceVersion": "2" - }, - "orphanDependents": false, - "propagationPolicy": "ZȢXQ", - "dryRun": [ - "3" - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.pb deleted file mode 100644 index d29af40a14b625e6d624bd3c99d90d5d70611a0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 96 zcmV-m0H6PBICB6B6AA)$F%k_#Wo%`1WlwN)X>V?G5At$hpXRB!=c}OTlB&w2$BsVcxV`9|r{;>V5&<$803roi$f8(LDgiSZ03ray CN-9AB diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.yaml deleted file mode 100644 index 842585490..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.DeleteOptions.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -dryRun: -- "3" -gracePeriodSeconds: 4518808233936994290 -kind: DeleteOptions -orphanDependents: false -preconditions: - resourceVersion: "2" - uid: ȕHH壬%龺ǟ橸章蒪ʤǎ>渽蝧抰 -propagationPolicy: ZȢXQ diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.json deleted file mode 100644 index 66d9dff60..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "kind": "Endpoints", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "subsets": [ - { - "addresses": [ - { - "ip": "24", - "hostname": "25", - "nodeName": "26", - "targetRef": { - "kind": "27", - "namespace": "28", - "name": "29", - "uid": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "30", - "resourceVersion": "31", - "fieldPath": "32" - } - } - ], - "notReadyAddresses": [ - { - "ip": "33", - "hostname": "34", - "nodeName": "35", - "targetRef": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "颋Dž", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - } - } - ], - "ports": [ - { - "name": "42", - "port": 1575426699, - "protocol": "ƏS$+½H牗洝尿" - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.pb deleted file mode 100644 index f7748e7b73be33002fac37e89a2d0d9608a2835b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 378 zcmV-=0fqi+ICB6B4+;WyF%k(yZe(z8X>N3L65av|$N>rgG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`{g0SZ700x~obG717RHxdFeI2r;nIU*Ru zo5X_UhnMJ+kHw1Un~KDVdFQu<=eU(B0y8i&0y8l>0y8oi0x~rs0x~udEeZlNGZG&P z0y8!e0y8%n0y8)w1?i%T$Au~aGdVH>G%z{>G%*?iGc+OsGc_6=3Ia4T5R0{(?*$qW Y#*b4ZE5f}<=ZTl*w4LR!zZw7{00h;5A^-pY diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.yaml deleted file mode 100644 index 044b67214..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.after_roundtrip.yaml +++ /dev/null @@ -1,59 +0,0 @@ -apiVersion: v1 -kind: Endpoints -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -subsets: -- addresses: - - hostname: "25" - ip: "24" - nodeName: "26" - targetRef: - apiVersion: "30" - fieldPath: "32" - kind: "27" - name: "29" - namespace: "28" - resourceVersion: "31" - uid: ěĂ凗蓏Ŋ蛊ĉy緅縕 - notReadyAddresses: - - hostname: "34" - ip: "33" - nodeName: "35" - targetRef: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: 颋Dž - ports: - - name: "42" - port: 1575426699 - protocol: ƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.json deleted file mode 100644 index e4fde7f38..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "kind": "Endpoints", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subsets": [ - { - "addresses": [ - { - "ip": "24", - "hostname": "25", - "nodeName": "26", - "targetRef": { - "kind": "27", - "namespace": "28", - "name": "29", - "uid": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "30", - "resourceVersion": "31", - "fieldPath": "32" - } - } - ], - "notReadyAddresses": [ - { - "ip": "33", - "hostname": "34", - "nodeName": "35", - "targetRef": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "颋Dž", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - } - } - ], - "ports": [ - { - "name": "42", - "port": 1575426699, - "protocol": "ƏS$+½H牗洝尿" - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.pb deleted file mode 100644 index 75286bd50aaa669a17419c46a8b12a9535113fa4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 394 zcmV;50d@XsICB6B4+;WyF%k(yZe(z8X>N3L67B*D*Z~RwG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#mA0SZ700x~ob zG717RHxdFeI2r;nIU*Ruo5X_UhnMJ+kHw1Un~KDVdFQu<=eU(B0y8i&0y8l>0y8oi z0x~rs0x~udEeZlNGZG&P0y8!e0y8%n0y8)w1?i%T$Au~aGdVH>G%z{>G%*?iGc+Os oGc_6=3Ia4T5R0{(?*$qW#*b4ZE5f}<=ZTl*w4LR!zZw7{062?*nE(I) diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.yaml deleted file mode 100644 index 50a737b8d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Endpoints.yaml +++ /dev/null @@ -1,62 +0,0 @@ -apiVersion: v1 -kind: Endpoints -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -subsets: -- addresses: - - hostname: "25" - ip: "24" - nodeName: "26" - targetRef: - apiVersion: "30" - fieldPath: "32" - kind: "27" - name: "29" - namespace: "28" - resourceVersion: "31" - uid: ěĂ凗蓏Ŋ蛊ĉy緅縕 - notReadyAddresses: - - hostname: "34" - ip: "33" - nodeName: "35" - targetRef: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: 颋Dž - ports: - - name: "42" - port: 1575426699 - protocol: ƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.json deleted file mode 100644 index 4fc2cbee8..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "involvedObject": { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "ƗǸƢ6/ʕV", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - }, - "reason": "30", - "message": "31", - "source": { - "component": "32", - "host": "33" - }, - "firstTimestamp": "2452-08-27T22:01:15Z", - "lastTimestamp": "2620-11-25T16:08:31Z", - "count": 1749009427, - "type": "34", - "eventTime": "2343-04-17T01:08:33.494361Z", - "series": { - "count": 1970127545, - "lastObservedTime": "1985-03-23T14:10:57.985776Z", - "state": "颋Dž" - }, - "action": "35", - "related": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "ǡƏS$+½H", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - }, - "reportingComponent": "42", - "reportingInstance": "43" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.pb deleted file mode 100644 index ef9da5d9067f423df3077722a7312106688dc433..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 407 zcmV;I0ciefICB6B3km{uF%ktuc4cmK68{1U$N>rgG75&|(WY9I;%F)|tgF*70#M0(}B zl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y` zw_z{Ilzrxrfhgv=m&Ar$8UislG5``K3IZ}T5&|+c8UivlA`8Zs$GFC#HZRJRRw@EA zH!=b;I649{IT`{pFd_moF)9cO0y8oa0y8r*2nef%=H56E06GW=|Gl}wOb`G-lZgMp z21)`mG*S!*k^hPDD-fu&-Rl8b8wk0Dx2p#d3<&YIi{$|jfd7Wp0~!VCqKn6cVgfTY zY9tB*Gd2G%z{>G%<1lG%|VuG&33iA^_9m Bh#LR^ diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.yaml deleted file mode 100644 index 8ff8aa34f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.after_roundtrip.yaml +++ /dev/null @@ -1,63 +0,0 @@ -action: "35" -apiVersion: v1 -count: 1749009427 -eventTime: "2343-04-17T01:08:33.494361Z" -firstTimestamp: "2452-08-27T22:01:15Z" -involvedObject: - apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: ƗǸƢ6/ʕV -kind: Event -lastTimestamp: "2620-11-25T16:08:31Z" -message: "31" -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -reason: "30" -related: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: ǡƏS$+½H -reportingComponent: "42" -reportingInstance: "43" -series: - count: 1970127545 - lastObservedTime: "1985-03-23T14:10:57.985776Z" - state: 颋Dž -source: - component: "32" - host: "33" -type: "34" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.json deleted file mode 100644 index 94dd6f3ad..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "involvedObject": { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "ƗǸƢ6/ʕV", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - }, - "reason": "30", - "message": "31", - "source": { - "component": "32", - "host": "33" - }, - "firstTimestamp": "2452-08-27T22:01:15Z", - "lastTimestamp": "2620-11-25T16:08:31Z", - "count": 1749009427, - "type": "34", - "eventTime": "2343-04-17T01:08:33.494361Z", - "series": { - "count": 1970127545, - "lastObservedTime": "1985-03-23T14:10:57.985776Z", - "state": "颋Dž" - }, - "action": "35", - "related": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "ǡƏS$+½H", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - }, - "reportingComponent": "42", - "reportingInstance": "43" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.pb deleted file mode 100644 index 84379018cc412b9f241bc78dd38e76b4216162d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 423 zcmV;Y0a*TPICB6B3km{uF%ktuc4cmK5|0B4*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}B zl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy<(#y` zw_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#k<3IZ}T5&|+c8Uivl zA`8Zs$GFC#HZRJRRw@EAH!=b;I649{IT`{pFd_moF)9cO0y8oa0y8r*2nef%=H56E z06GW=|Gl}wOb`G-lZgMp21)`mG*S!*k^hPDD-fu&-Rl8b8wk0Dx2p#d3<&YIi{$|j zfd7Wp0~!VCqKn6cVgfTYY9tB*Gd2G%z{> RG%<1lG%|VuG&33iA^=r&i4y<- diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.yaml deleted file mode 100644 index c947e898b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Event.yaml +++ /dev/null @@ -1,66 +0,0 @@ -action: "35" -apiVersion: v1 -count: 1749009427 -eventTime: "2343-04-17T01:08:33.494361Z" -firstTimestamp: "2452-08-27T22:01:15Z" -involvedObject: - apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: ƗǸƢ6/ʕV -kind: Event -lastTimestamp: "2620-11-25T16:08:31Z" -message: "31" -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -reason: "30" -related: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: ǡƏS$+½H -reportingComponent: "42" -reportingInstance: "43" -series: - count: 1970127545 - lastObservedTime: "1985-03-23T14:10:57.985776Z" - state: 颋Dž -source: - component: "32" - host: "33" -type: "34" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.json deleted file mode 100644 index ebd4b9a40..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "kind": "ExportOptions", - "apiVersion": "v1", - "export": true, - "exact": false -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ExportOptions.pb deleted file mode 100644 index a8556b4f89390d607759afaed6b5f5b7d85f1604..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35 qcmd0{C}!Xi=3*){6ykNQD9A4=@h>RJ%+D(pV&PyEV31-^VgLY}6ykDEE%7fX$;{6y7GmaNG?HRaVgLYf?FO0v diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.GetOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.GetOptions.yaml deleted file mode 100644 index a81415497..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.GetOptions.yaml +++ /dev/null @@ -1,3 +0,0 @@ -apiVersion: v1 -kind: GetOptions -resourceVersion: "2" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.json deleted file mode 100644 index 5595bff6d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "kind": "LimitRange", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "limits": [ - { - "type": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "max": { - "Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț": "2" - }, - "min": { - "峅x": "826" - }, - "default": { - ";Ơ歿:狞夌碕ʂ": "737" - }, - "defaultRequest": { - "Ƽ@hDrȮO励鹗塢": "874" - }, - "maxLimitRequestRatio": { - "UɦOŖ": "746" - } - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.LimitRange.after_roundtrip.pb deleted file mode 100644 index 55228d1ab12bdf4e1960e3805cd434e687337965..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 403 zcmV;E0c`$jICB6B5DEfzF%k+)X>DnAQekdqWfJxR3djKp0WuN+Ga3OjA^|ljBE*I1 zql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?X zIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp z4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$h zRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vcr~wM40SX)FguTR@#De9Am*|s^#fs>g zio}U|=eLFDxRnwt3MIw8=ZCrGhK=R3l|Sc;vBI-0$B*T|gevL1r{|5D=9PxXj>wx5 z0}25$8Vw2r<+Fu&5(NqaI5IXO8wwIT#-Qe{zdGlOp5>&B=c1L$f)WJ^12;1_DjNzC x#=JmiL~_WkPvwfS>A9EXp`sE63IjMdG%^ng235(XPsNrJ1quTDnAQekdqWfF!13fKV(0WuN+Ga3OjA^|ljBE*I1 zql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?X zIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp z4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0X+%=F*Xt*>5z)$l#1!2nZ=$h zRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM>I1&g71_}Z(IT8R8r~wM40SX)F zguTR@#De9Am*|s^#fs>gio}U|=eLFDxRnwt3MIw8=ZCrGhK=R3l|Sc;vBI-0$B*T| zgevL1r{|5D=9PxXj>wx50}25$8Vw2r<+Fu&5(NqaI5IXO8wwIT#-Qe{zdGlOp5>&B z=c1L$f)WJ^12;1_DjNzC#=JmiL~_WkPvwfS>A9EXp`sE63IjMdG%^ng235(XPsNrJ N1quT)W>aCB*JZgUbP3IQ?_0W%l@A^|ig)%2zBp#HD+ YrvW&@$L-MMzKo4tLIE{M02%-y0Hwzkwg3PC diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.json deleted file mode 100644 index 24f5b258e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "ListOptions", - "apiVersion": "v1", - "labelSelector": "2", - "fieldSelector": "3", - "watch": true, - "resourceVersion": "4", - "timeoutSeconds": -6346486728535475627, - "limit": 6780787122834727873, - "continue": "5" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.pb deleted file mode 100644 index a7da31fbd8f8c6887daf7b9a112f5899171947da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 zcmV-G0KflhICB6B5efo!F%k<*X>)W>aCB*JZgUbN3IQ?_0W%l@A^|ig)%2zBp#HD+ WrvW&@$L-MMzKo4tLIE`z03rZ)V-{=x diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.yaml deleted file mode 100644 index f242fa1a2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ListOptions.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -continue: "5" -fieldSelector: "3" -kind: ListOptions -labelSelector: "2" -limit: 6780787122834727873 -resourceVersion: "4" -timeoutSeconds: -6346486728535475627 -watch: true diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.json deleted file mode 100644 index c9f0f1a74..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "kind": "Namespace", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "finalizers": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ] - }, - "status": { - "phase": "谐颋DžSǡƏS$+½H牗洝尿" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.pb deleted file mode 100644 index 47b3cabe45681c1992781175e2de0e99684b9b51..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 294 zcmV+>0ond*ICB6B4+;WyF%k(*VQpn|aA9L*5{d!}$N>rgG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5``C3LEHzy~LZug5`&o=#!7dis+k)#EE(5 sw}t1pl^Pxj9O$r+>7t9rg;U3&#*b4ZE5f}<=ZTl*w4LR!zZw7{0AxCMAOHXW diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.yaml deleted file mode 100644 index 8bfb01217..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.after_roundtrip.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - finalizers: - - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -status: - phase: 谐颋DžSǡƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.json deleted file mode 100644 index 59f1dd52b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "kind": "Namespace", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "finalizers": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ] - }, - "status": { - "phase": "谐颋DžSǡƏS$+½H牗洝尿" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.pb deleted file mode 100644 index 2cfebe8f2c04107a2746bd613ac71b84f3ab556c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=SrICB6B4+;WyF%k(*VQpn|aA9L*5}E=E*Z~RwG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#k%3LEHzy~LZu zg5`&o=#!7dis+k)#EE(5w}t1pl^Pxj9O$r+>7t9rg;U3&#*b4ZE5f}<=ZTl*w4LR! IzZw7{02MTNmjD0& diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.yaml deleted file mode 100644 index 3b76a2900..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Namespace.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - finalizers: - - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -status: - phase: 谐颋DžSǡƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.json deleted file mode 100644 index cd42dacab..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "kind": "Node", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "podCIDR": "24", - "providerID": "25", - "unschedulable": true, - "taints": [ - { - "key": "26", - "value": "27", - "effect": "ǸƢ6/" - } - ], - "configSource": { - "configMap": { - "namespace": "28", - "name": "29", - "uid": "蛊ĉy緅縕\u003eŽ燹憍峕?狱³-", - "resourceVersion": "30", - "kubeletConfigKey": "31" - } - }, - "externalID": "32" - }, - "status": { - "capacity": { - "忄*齧獚敆Ȏ": "362" - }, - "allocatable": { - "B峅x4%a": "143" - }, - "phase": "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ", - "conditions": [ - { - "type": "P喂ƈ斎AO6", - "status": "'üA謥ǣ偐圠=l畣潁谯耨", - "lastHeartbeatTime": "2153-05-01T22:00:29Z", - "lastTransitionTime": "2688-04-12T17:13:50Z", - "reason": "33", - "message": "34" - } - ], - "addresses": [ - { - "type": "\u0026", - "address": "35" - } - ], - "daemonEndpoints": { - "kubeletEndpoint": { - "Port": -816398166 - } - }, - "nodeInfo": { - "machineID": "36", - "systemUUID": "37", - "bootID": "38", - "kernelVersion": "39", - "osImage": "40", - "containerRuntimeVersion": "41", - "kubeletVersion": "42", - "kubeProxyVersion": "43", - "operatingSystem": "44", - "architecture": "45" - }, - "images": [ - { - "names": [ - "46" - ], - "sizeBytes": -6225778594348390831 - } - ], - "volumesInUse": [ - "ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ" - ], - "volumesAttached": [ - { - "name": "Ņ£", - "devicePath": "47" - } - ], - "config": { - "assigned": { - "configMap": { - "namespace": "48", - "name": "49", - "uid": "/", - "resourceVersion": "50", - "kubeletConfigKey": "51" - } - }, - "active": { - "configMap": { - "namespace": "52", - "name": "53", - "uid": "¾\\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ(", - "resourceVersion": "54", - "kubeletConfigKey": "55" - } - }, - "lastKnownGood": { - "configMap": { - "namespace": "56", - "name": "57", - "uid": "ėf倐ȓ圬剴扲ȿQZ{ʁgɸ", - "resourceVersion": "58", - "kubeletConfigKey": "59" - } - }, - "error": "60" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.after_roundtrip.pb deleted file mode 100644 index 7defec07181408b1b4836eb4c047e0ad4b0d2587..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 736 zcmWkrTTc@~80`)hoACmUl9)9HT!WG((C*Icc1z*~!iziz67hkk5hG~SM1+JW#DpS+ z(%Oo06$=W*fJj9yh7xW`*_JIKBtG~e&$De~;twzy9ly8l0PZ&QBUkeg9V79&7^XTKqM_dls#M_J5|uhRF8-Dc~ZgG(b2+c z8d%(1suBLgi228_>gbqV#N2^ZmkN;=RUa~lKxk_rW#IJ3E0lAL+J6{OA{8hCg1L83ostT~gPXOnGH zyxII`_M9KcTK%Lbc9K;T8V?_tOAf(ak7Z)NQOX`5Rfr{ zDzbh}dsUh02&YE6jFHLcdNSmtQ}cŽ燹憍峕?狱³- - externalID: "32" - podCIDR: "24" - providerID: "25" - taints: - - effect: ǸƢ6/ - key: "26" - value: "27" - unschedulable: true -status: - addresses: - - address: "35" - type: '&' - allocatable: - B峅x4%a: "143" - capacity: - 忄*齧獚敆Ȏ: "362" - conditions: - - lastHeartbeatTime: "2153-05-01T22:00:29Z" - lastTransitionTime: "2688-04-12T17:13:50Z" - message: "34" - reason: "33" - status: '''üA謥ǣ偐圠=l畣潁谯耨' - type: P喂ƈ斎AO6 - config: - active: - configMap: - kubeletConfigKey: "55" - name: "53" - namespace: "52" - resourceVersion: "54" - uid: ¾\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ( - assigned: - configMap: - kubeletConfigKey: "51" - name: "49" - namespace: "48" - resourceVersion: "50" - uid: / - error: "60" - lastKnownGood: - configMap: - kubeletConfigKey: "59" - name: "57" - namespace: "56" - resourceVersion: "58" - uid: ėf倐ȓ圬剴扲ȿQZ{ʁgɸ - daemonEndpoints: - kubeletEndpoint: - Port: -816398166 - images: - - names: - - "46" - sizeBytes: -6225778594348390831 - nodeInfo: - architecture: "45" - bootID: "38" - containerRuntimeVersion: "41" - kernelVersion: "39" - kubeProxyVersion: "43" - kubeletVersion: "42" - machineID: "36" - operatingSystem: "44" - osImage: "40" - systemUUID: "37" - phase: 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ' - volumesAttached: - - devicePath: "47" - name: Ņ£ - volumesInUse: - - ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.json deleted file mode 100644 index c75e0c72d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "kind": "Node", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "podCIDR": "24", - "providerID": "25", - "unschedulable": true, - "taints": [ - { - "key": "26", - "value": "27", - "effect": "ǸƢ6/" - } - ], - "configSource": { - "configMap": { - "namespace": "28", - "name": "29", - "uid": "蛊ĉy緅縕\u003eŽ燹憍峕?狱³-", - "resourceVersion": "30", - "kubeletConfigKey": "31" - } - }, - "externalID": "32" - }, - "status": { - "capacity": { - "忄*齧獚敆Ȏ": "362" - }, - "allocatable": { - "B峅x4%a": "143" - }, - "phase": "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ", - "conditions": [ - { - "type": "P喂ƈ斎AO6", - "status": "'üA謥ǣ偐圠=l畣潁谯耨", - "lastHeartbeatTime": "2153-05-01T22:00:29Z", - "lastTransitionTime": "2688-04-12T17:13:50Z", - "reason": "33", - "message": "34" - } - ], - "addresses": [ - { - "type": "\u0026", - "address": "35" - } - ], - "daemonEndpoints": { - "kubeletEndpoint": { - "Port": -816398166 - } - }, - "nodeInfo": { - "machineID": "36", - "systemUUID": "37", - "bootID": "38", - "kernelVersion": "39", - "osImage": "40", - "containerRuntimeVersion": "41", - "kubeletVersion": "42", - "kubeProxyVersion": "43", - "operatingSystem": "44", - "architecture": "45" - }, - "images": [ - { - "names": [ - "46" - ], - "sizeBytes": -6225778594348390831 - } - ], - "volumesInUse": [ - "ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ" - ], - "volumesAttached": [ - { - "name": "Ņ£", - "devicePath": "47" - } - ], - "config": { - "assigned": { - "configMap": { - "namespace": "48", - "name": "49", - "uid": "/", - "resourceVersion": "50", - "kubeletConfigKey": "51" - } - }, - "active": { - "configMap": { - "namespace": "52", - "name": "53", - "uid": "¾\\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ(", - "resourceVersion": "54", - "kubeletConfigKey": "55" - } - }, - "lastKnownGood": { - "configMap": { - "namespace": "56", - "name": "57", - "uid": "ėf倐ȓ圬剴扲ȿQZ{ʁgɸ", - "resourceVersion": "58", - "kubeletConfigKey": "59" - } - }, - "error": "60" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.pb deleted file mode 100644 index f8d773f4b8952dc2d09bea8dd449c5e66b0e10b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 752 zcmWlV?@Lor9L9H#KN_b}J0--8&~8{VPPBsaeJ?V96?;lj?vmj2ru@7=q1Vrh_aI_VO9m5NcK7DfHUcR86GdF zp`O6zQe9DO;IaPPmai`lYh72_Hj60>W-z;oj4+)|D>9%O2qc04X1_^tF2@`|QV@_V zeEL=}GN}|v7>P_%nP%m460e+E&!hN~Jsuo96JCpVFY8^sbaC)(+%+FsED!)Tn*bL1 zsT6n=X3~vLQ*v!O-aD!fc17JN4W?j4LWiKSj4s+AlDxYAl1MNwG=<$;?Yd{-TEgXR zh^(HwUEUP^P)VKh$>m`>F{$UmRg zFFxqi*KCQ8bBT5zZ#4cH{T|8AG6+WFZihd3Da*i4!xF&6#EL$}Ld()YxZgNq+xzwV zFMC{ZJ_MMh#}*!7m4&gI05MB|h{b?NWq{xcKu9$pa#M9KQR0?L}3xGngFf*2kv9>j}S$`WE6N%Q1h{85@nc^BG7ODDy?A vfPw6I*}@;wh8t*mU$mckW@%4A?^%d$T&!)|w%v*a8K5%2DgedI8wA5YCrB7t diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.yaml deleted file mode 100644 index d7d3f9e00..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Node.yaml +++ /dev/null @@ -1,111 +0,0 @@ -apiVersion: v1 -kind: Node -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - configSource: - configMap: - kubeletConfigKey: "31" - name: "29" - namespace: "28" - resourceVersion: "30" - uid: 蛊ĉy緅縕>Ž燹憍峕?狱³- - externalID: "32" - podCIDR: "24" - providerID: "25" - taints: - - effect: ǸƢ6/ - key: "26" - value: "27" - unschedulable: true -status: - addresses: - - address: "35" - type: '&' - allocatable: - B峅x4%a: "143" - capacity: - 忄*齧獚敆Ȏ: "362" - conditions: - - lastHeartbeatTime: "2153-05-01T22:00:29Z" - lastTransitionTime: "2688-04-12T17:13:50Z" - message: "34" - reason: "33" - status: '''üA謥ǣ偐圠=l畣潁谯耨' - type: P喂ƈ斎AO6 - config: - active: - configMap: - kubeletConfigKey: "55" - name: "53" - namespace: "52" - resourceVersion: "54" - uid: ¾\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ( - assigned: - configMap: - kubeletConfigKey: "51" - name: "49" - namespace: "48" - resourceVersion: "50" - uid: / - error: "60" - lastKnownGood: - configMap: - kubeletConfigKey: "59" - name: "57" - namespace: "56" - resourceVersion: "58" - uid: ėf倐ȓ圬剴扲ȿQZ{ʁgɸ - daemonEndpoints: - kubeletEndpoint: - Port: -816398166 - images: - - names: - - "46" - sizeBytes: -6225778594348390831 - nodeInfo: - architecture: "45" - bootID: "38" - containerRuntimeVersion: "41" - kernelVersion: "39" - kubeProxyVersion: "43" - kubeletVersion: "42" - machineID: "36" - operatingSystem: "44" - osImage: "40" - systemUUID: "37" - phase: 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ' - volumesAttached: - - devicePath: "47" - name: Ņ£ - volumesInUse: - - ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.json deleted file mode 100644 index ca9a6afcd..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "NodeProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.NodeProxyOptions.pb deleted file mode 100644 index 33437115c84a4ab66a0fb4cc246412c38d0cd08a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi<6G%X2<)`}IX zjnpPWS(fews9g#OYa3V^C@pI#)P+(oVTWb$!8a45Z^qf#d8ltDzSMdy^KkAr-}(8@ zIdkU|(W#Jq1b=C$wJmKOoga5zY-_)G^0V__eA=d_cat(Ah^mN%kr_pn7IhOrF74j? zys2_4byid-2hO;&+hYyYu^((VebSp=Zlik*+p$e*>D&}d*p{tR=7>N3?)kMlo$bER zsI<)YKf0Q@{Y!QgoqmZRt|HO8iy%kEhJG$WutCGvV9`Bqb$P49<>ckg%~WaVf`$!4 zR|M+7hS`M;D}`bZYO8g@^^`Z93Uc3V-ip2NWtWPDvxl~auT;M6uCJ_&x_uu&HBJ?E zY8N>`Ua$79xf5=WmmIBThBi~xiIjWoE5DHNmv5>s5NvVv+KZ%?U}~zETA`=GpHFKd zNPP_$8yFt?_cyol-*b3S1cgID3sv>g3mc2Ets(EHUM*Og@dw7Ed%yz|F+HS2F*7tm zFr)C!LWmv&4CR>>#>@sU*DwQ|S3@~JvER^~E**{Y8If`P_)Uavk zD2`40h;l+Ea0n8olvZpyjeB7PC}0^O6a}9J1uWL|1|Sf$K+pm~i)+#+fN^x?#D0Qp zy>@y$yY*~GB#dn%qG;Hrry?pgGZ0s?$R;HwCWXFD9aw?GB1prI zNwH(av12!4hc{tIw4f=p8$ukl#?bXS)J)(sahky%1grlc%M+0oG9;UJLN(Dn|x*LDl|e( z3dVv)sI46c`WFtys`>nt@{Bh<;y(6g?^GVF6q8?X{1^<5Z%jr?85z!HxM*zHPIwb{ z{KbNwyX(*8{h39#P`!PlnqL3t!^&*JPcC`6yWT)=H8cCJn?KytOx_`HlbCGEQR_pj?fB9Lfn%PaBB7&%jSQwd6WNA@19^_K) zy)PQew~}W?WxW54JH0hpUm5+;c2g(4$;DQ>*RUPiq?XQ2!GvwuI%SUdDJ$ z3k^#1Y~Q1+@!P*jNw4JCuz_v^RnKJc;&#lqP`TSHgM-*wfNmqy&)51|^@ zs>vRZ3w0OS0k@+n>cmcRfV^JmS#dLNx0e{HqzBiNl}ysT_O)M#`-?Z#mk74FdhKOW zO)xc8Os&wf;Lm4O5v0Bbj13GA{rl7{|MvoZD1yQvpoOaXskycJx{X2a=N>IsnezL` zqTo(pLZ*k5C}xI62xb(XSqRaCfT29I!kF0*W(0tb;erL(!HE*^TGhCShzF5k2 zv5CA(-XV3eDMzg-We*(-RtuXm#oqJfe8x`~g3OchqlseHpIq^mphoZmN%Y)DH)R?Gpt0F{{bY>erf;! diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.yaml deleted file mode 100644 index a0eb0f58d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolume.yaml +++ /dev/null @@ -1,221 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - accessModes: - - 仭w-檮Ǣ冖ž琔n - awsElasticBlockStore: - fsType: "27" - partition: -321835912 - readOnly: true - volumeID: "26" - azureDisk: - cachingMode: rȮO励鹗塢ē ƕP喂ƈ斎AO6ĴC - diskName: "83" - diskURI: "84" - fsType: "85" - kind: 壝 - readOnly: false - azureFile: - readOnly: true - secretName: "71" - secretNamespace: "73" - shareName: "72" - capacity: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - cephfs: - monitors: - - "54" - path: "55" - secretFile: "57" - secretRef: - name: "58" - namespace: "59" - user: "56" - cinder: - fsType: "51" - readOnly: true - secretRef: - name: "52" - namespace: "53" - volumeID: "50" - claimRef: - apiVersion: "124" - fieldPath: "126" - kind: "121" - name: "123" - namespace: "122" - resourceVersion: "125" - uid: ¬轚9Ȏ瀮昃 - csi: - controllerPublishSecretRef: - name: "115" - namespace: "116" - driver: "110" - fsType: "112" - nodePublishSecretRef: - name: "119" - namespace: "120" - nodeStageSecretRef: - name: "117" - namespace: "118" - volumeAttributes: - "113": "114" - volumeHandle: "111" - fc: - fsType: "61" - lun: -655946460 - targetWWNs: - - "60" - wwids: - - "62" - flexVolume: - driver: "65" - fsType: "66" - options: - "69": "70" - secretRef: - name: "67" - namespace: "68" - flocker: - datasetName: "63" - datasetUUID: "64" - gcePersistentDisk: - fsType: "25" - partition: 1035515117 - pdName: "24" - readOnly: true - glusterfs: - endpoints: "29" - endpointsNamespace: "31" - path: "30" - hostPath: - path: "28" - type: 狱³-Ǐ忄*齧獚 - iscsi: - fsType: "45" - initiatorName: "49" - iqn: "43" - iscsiInterface: "44" - lun: -21009133 - portals: - - "46" - readOnly: true - secretRef: - name: "47" - namespace: "48" - targetPortal: "42" - local: - fsType: "100" - path: "99" - mountOptions: - - "128" - nfs: - path: "33" - readOnly: true - server: "32" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "129" - operator: Ɯ/C龷ȪÆl殛瓷雼浢Ü礽绅{ - values: - - "130" - matchFields: - - key: "131" - operator: 轫n(鲼Ƴ - values: - - "132" - persistentVolumeReclaimPolicy: 鈱$-议}ȧ外ĺ稥氹Ç|¶鎚¡ Ɠ - photonPersistentDisk: - fsType: "87" - pdID: "86" - portworxVolume: - fsType: "89" - volumeID: "88" - quobyte: - group: "81" - registry: "78" - tenant: "82" - user: "80" - volume: "79" - rbd: - fsType: "36" - image: "35" - keyring: "39" - monitors: - - "34" - pool: "37" - readOnly: true - secretRef: - name: "40" - namespace: "41" - user: "38" - scaleIO: - fsType: "98" - gateway: "90" - protectionDomain: "94" - readOnly: true - secretRef: - name: "92" - namespace: "93" - sslEnabled: true - storageMode: "96" - storagePool: "95" - system: "91" - volumeName: "97" - storageClassName: "127" - storageos: - fsType: "103" - readOnly: true - secretRef: - apiVersion: "107" - fieldPath: "109" - kind: "104" - name: "106" - namespace: "105" - resourceVersion: "108" - uid: ?øēƺ魋Ď儇击3ƆìQ - volumeName: "101" - volumeNamespace: "102" - volumeMode: Ʌ囥糷磩窮秳ķ蟒苾h^樅燴壩卄蓨MĮ? - vsphereVolume: - fsType: "75" - storagePolicyID: "77" - storagePolicyName: "76" - volumePath: "74" -status: - message: "133" - phase: ƣKʘńw:5塋 - reason: "134" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.json deleted file mode 100644 index 5f0a1c44e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "kind": "PersistentVolumeClaim", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "accessModes": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ], - "selector": { - "matchLabels": { - "p-g8c2-k-912e5-c-e63-n-3n.c83-b-w7ld-6cs06xj-x5yv0wm-k1-87-3s-g3/9_-.-W._AAn---v_-5-_8LXP-o-9..1m": "JTrcd-2.-__E_Sv__26KX_R_.-N" - }, - "matchExpressions": [ - { - "key": "g0d--o82-g50-u--25cu87--r7p-w1e67-8j/42M--n1-p5.3___47._49pIB_o61ISU4--N", - "operator": "In", - "values": [ - "t_k-_v.6" - ] - } - ] - }, - "resources": { - "limits": { - "p:籀帊": "219" - }, - "requests": { - "骀Šĸ": "986" - } - }, - "volumeName": "30", - "storageClassName": "31", - "volumeMode": "e0ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "dataSource": { - "apiGroup": "32", - "kind": "33", - "name": "34" - } - }, - "status": { - "phase": "s", - "accessModes": [ - "曢\\%枅:" - ], - "capacity": { - "ǛƓɥ踓Ǻǧ湬淊kŪ睴": "659" - }, - "conditions": [ - { - "type": "3fƻfʣ繡楙¯ĦE", - "status": "ĪȸŹăȲϤĦʅ芝", - "lastProbeTime": "2197-07-19T07:02:22Z", - "lastTransitionTime": "2641-12-26T14:46:27Z", - "reason": "35", - "message": "36" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb deleted file mode 100644 index 0b480f95f6c6a9aaf2daaedb025e222cf28e1911..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 721 zcmWlVO-$2Z9EaB$biOeL8$DPq+5}@r{-y8xwq46jlqh}>qN2oTUSUikV`DNHA~9jW z6pKa;C=d`o06$P;B$#ayHPMa@58gZ(jhA)X#iQQTasB0&Cr=)~5q6<6#7D5Ot=`ue zJ|FJ#1-njkw08%5d)u4N2ZU!OD8nI+2pknTRpPV?$&M9fN9^Yp4mvYdlaYUT1e3hRsVAM&0y^Qm+58h z)Oy5u1kPyQfH+g&vC_5!@tBA_rqbqpm$J)anX7%_l(lj*RKa7cxD2k7$Lb{>YZeE^ zt1j#;+_JJ`R$+EBH3JRV>7`Hcrpnc^%g*iSZYMczUpZ5xd5BB+!K1SL&^vp|9>`uD z&yU_rS@|i;zSf(I$8w1~LOI%k+@Y%6>;7!Q5=ziIf=!_mZ73}CrykgewZ$}ak*A9E zokRT`Y6?NC;U(Y)6BC~XUhwG@fAc!HP$&@jsdSs@Wq1tNJq2t

w=7-)CmWET;SKjA_qP^({l}z?R#|NS%c aQ!I5!Zuh6(-~QE=x{9hA;i)dVB-ej)GzrlF diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml deleted file mode 100644 index 61d201fe7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml +++ /dev/null @@ -1,66 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - accessModes: - - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 - dataSource: - apiGroup: "32" - kind: "33" - name: "34" - resources: - limits: - p:籀帊: "219" - requests: - 骀Šĸ: "986" - selector: - matchExpressions: - - key: g0d--o82-g50-u--25cu87--r7p-w1e67-8j/42M--n1-p5.3___47._49pIB_o61ISU4--N - operator: In - values: - - t_k-_v.6 - matchLabels: - p-g8c2-k-912e5-c-e63-n-3n.c83-b-w7ld-6cs06xj-x5yv0wm-k1-87-3s-g3/9_-.-W._AAn---v_-5-_8LXP-o-9..1m: JTrcd-2.-__E_Sv__26KX_R_.-N - storageClassName: "31" - volumeMode: e0ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - volumeName: "30" -status: - accessModes: - - '曢\%枅:' - capacity: - ǛƓɥ踓Ǻǧ湬淊kŪ睴: "659" - conditions: - - lastProbeTime: "2197-07-19T07:02:22Z" - lastTransitionTime: "2641-12-26T14:46:27Z" - message: "36" - reason: "35" - status: ĪȸŹăȲϤĦʅ芝 - type: 3fƻfʣ繡楙¯ĦE - phase: s diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.json deleted file mode 100644 index 2a6e285b1..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "kind": "PersistentVolumeClaim", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "accessModes": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ], - "selector": { - "matchLabels": { - "p-g8c2-k-912e5-c-e63-n-3n.c83-b-w7ld-6cs06xj-x5yv0wm-k1-87-3s-g3/9_-.-W._AAn---v_-5-_8LXP-o-9..1m": "JTrcd-2.-__E_Sv__26KX_R_.-N" - }, - "matchExpressions": [ - { - "key": "g0d--o82-g50-u--25cu87--r7p-w1e67-8j/42M--n1-p5.3___47._49pIB_o61ISU4--N", - "operator": "In", - "values": [ - "t_k-_v.6" - ] - } - ] - }, - "resources": { - "limits": { - "p:籀帊": "219" - }, - "requests": { - "骀Šĸ": "986" - } - }, - "volumeName": "30", - "storageClassName": "31", - "volumeMode": "e0ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "dataSource": { - "apiGroup": "32", - "kind": "33", - "name": "34" - } - }, - "status": { - "phase": "s", - "accessModes": [ - "曢\\%枅:" - ], - "capacity": { - "ǛƓɥ踓Ǻǧ湬淊kŪ睴": "659" - }, - "conditions": [ - { - "type": "3fƻfʣ繡楙¯ĦE", - "status": "ĪȸŹăȲϤĦʅ芝", - "lastProbeTime": "2197-07-19T07:02:22Z", - "lastTransitionTime": "2641-12-26T14:46:27Z", - "reason": "35", - "message": "36" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PersistentVolumeClaim.pb deleted file mode 100644 index 5a9c9ea2778fee542229e27dcf380eccd52b4fbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 737 zcmWlVTSydP9L0Agvh5?pKJuaQr3Q)+{^QJiGqW>74_Z=oLn=$c_|kP1U0pX<*GmMh zxn*Nfp_Sq#O}k))B#OI91v=~Pp|>EAqL-cBed)2@s`2T-;hZ0b==a z=BN|Z@WISOGdXBxriK&aP@Wu}Us*IR~?!sKL=$yaUHu+mZJuC z;U6r@OZR@XMy#IXou}!62MIGhVp?}QQ;X45>@hxs_9Az%F!jDW88h)tv_p1kIcQgA zraLiV#kL(o*Ep7l{C5U*GpH&Eb-GsuKNyniQ^5;9jX(fMK=A4Ws-fM}SOc0jBx)TE z(4lsQ#r7ufOQ3szgrJTT7!(A!EYPB&004w3s6h2I6=l#2h9F2yIPcWO7H!JQd&^u0SX2#2SERU4}YUgf;+K^|m>5Xz>K0UGixj&>IRA`7A&{f}ko8 zN~z)zsA2?5i)pham0l=Uz+tha0nXh@{XoNlmd_GN=6&ME;QEtv??Pt2FL7`6Q>r)8 zxi(Q?FUBh~&*oB}BZmw3AeP9OCB%6};cg%%gm>E`&npkv!jO2sGb7sJc5*2@x{Yt5|35^?L+`kb}2 oJZ-()jHb;o&h7sDr}rn9lxDs1oVx)?yTW=iYDTFAmAg_F*WdcY5fj}Ti7{4ze z34sosguEY+K*A&B2?-$yA>bt4Np~Eb59VWZMbs7grJpR~t_u$0p4%PAN#{FNb?V&z z{^!&^=bpPsOEb|A(Nwy?L@n96mKmN*dk~E`0EayK+Mf`L5<|@%~yzk`_Gb zeACtFt>l80?TRaZh3{C;I{X_!(G>~Hyees;rpOA9MP0jgYtPlJ{6kr(vrS7{_jP6G z)_ruS4<(MHk;)(~c|47Dh7$OV(KIDs8zqSL33D@ieWjkf-Dz&eP+@8;B?!DpL)$4q z%Af?n&vHi&wns0#@}1v+WR`7so2DPG>N`9 zj;650+!;qd1vfHdb=A1``0^@(C53KBu*Tuqzbnw48|W!xrqYw${eiq*|6ZrBvus8n z|I9!qJ6!0yloK23KN)aV`^)xv3OqGT6vW5&2%sqpg;i_t`Uh$>vOf+A4HUZ75v>3F zKYoTk6m5!qn5IOYp+vz(i5O3TCy{v!qy#$Idhv4KiHNDS<}d&C#ofp#G@S+uKo?aj znmrBf0a(<6h8zu90N)}=%8DmNor^85Dnu(HaaD`E_Vj~*xDAo*D7$fT&Ei|Qo6N+Fp z+2O5%w_8Dqppk5pBHJlNi6wfKH)X&m1x6|Q9t07kDV1kHr3wtChNGs!FjcaRrK7N< zML+nlWr(tr1_s7C&=X)LTby@(F8DF*q>WM)ph2l>F#?}dKvi|CsT#%5Fqy`aIBI~a zVe75WziGN39%QX;tNQvuB#x$f1k5#dI_va0{8=YGt&@ie?36CWAZ$91z%w0!rYi&J zVLA#{D+2Z!d=&%<76V*l3__U>LY)mliwB`EFh zuLsZ9|LM6<-|2OpCSO;L^z39}p=*4+N)R>TI_7nI6c+f{NkcV5bl zK6EZ&+s;`t0<|6PW4_EYf52cRBxE9bX_${7F+6|>GDDk9mYhF-`E8WV1aN|4e|Wfh z`|zPHDg5AZ&z@M~ouC3)L97jAf&^}K)72R~Nzc;d8 zVw|O47e&4@UsC>KD@lrq`KR1?C|$vXIF!CPK9T&Xc#!*VG#~eAsue z?Y&@Lx2u2f^gy4x^A%TDm=IJ{FqB6LmDY7W_$dr-BZRPGdH<6y+an~bKiuxS6v^l4 zuRhNGE^-@l{aTR^@eP4nM54cUCIY2)Mi>*S?X!R>%KyX^6@sbS(dGyYEGF2pY!>>LP)KA! zNy0`DcsuQ_^fz^Q8$*s08G8}^GCkE(GL-jh;6iD@+2zYBa#aO$TLLBBf%=0ldiRG4 zx_!=5!NV8hLUp~q_7>*x!S+DOg}{MKJbm!o>d?6+`5j+v7DOB}4@;1_SdxH_B*RLQ zl<1M(8y{Y~>hFq*F~ROd}*db3MjjwdO0#4rN_%H!q0`>}m5CI0jB{8EI>R$_h(}WDFE4 zQ}p2jN59D~ue$RMiphP@_3^cnUwAJeJR#WG5h}_J=C!Pi^L3wu?FopIH7RMcLFn;O zu=gi`5LTJqG^L>Ji)iASOkiaZT$3emO_nX!@-O#aJ$cnL*J_F`cb4}3?VkIr7sZtP z&D(nB!N`B#L%gfFzVz}5Z@xV|iA=IoRx?Nj%i10UQg?t<_+r#Oo-RZ*sfZKdts*dV z+CcN*xsf(k<{w~61(S-0VV8Qy)gtX0XbAS5BWj6BG}qnuB0rKr%tHEUVg=>V*IYFv zSX?ZJ4(HAJy|?QXZfUS1kBm^57-FI_Px|`0({_6<4tLHR>>cVE$#-Y^8_#>P)BQbl zDzVgS4Y+>iFWjP(DN#u9~oJv{G8C#81 zsF;flY5qpen7wKTx0qE8!(dk%J2$h2ww+}aO`5|zK|iw9V7Wz{K9`**$?M|Pf1#j} zH3EC|%_zDW(N0A3^hAYYU*%vbgI{DU;uecMYwYB9F%wf>^4 z(+kqmH?w$KhRTY(1bczHIfZ9sc0H@Yk7d_u+B;a9CK~gA^D1_pZg6t?BALT-(#m%^ zoU{-N5=3y3v0i7!F50?d!4})tw2WECMhKA(dmo10z(twA_5I&xqaiv+(WfXH%IRzB zPIkwJbrP9p{brF9we+`HAp<7WG;uAPE^dTZyVz8g-8pS7D;W|{h8RlRtFy$o74vn` zfN!@z>3O_@VXsurAWe>BnX|n9>23@E7o{!QxdDNqOhI? z?N(My&QMs5n~avDf)TDnTZ$D*Ufol>ns=G}v-}Ph)_x-snA6GbZ}F??5w($;_)gGM+!HV0P!nN*I=by1*jxNzq~#{tuApd^yFZ00BOAN5(wkFCMSq@i=djW*_gavp*Lo?2e$3 z$ZG!@SvXyQ25$r*ZhvN^JW$s1Zm22KeZ(W90a7>1(bg zPmjCTm7R%DxF0}~egKY-ktRTdCSbH55H$-NiJtJ5ulE%CN~%0g&mMnahv&lF;hb09 zEveJP&43`2pvqDsLLKNu8d4QAlibYcNgn7dydW2 zNLq{baWDE?or4!+?z;-AuKmwXj+f4p<^qZ_1414kS+97|r*}W;9)AT+VeklfC-Ryt zYz4s=1^yFc`U*Wl|9dFEAapo${=g+~)yikShM|IR8zEcc82V9l=aQk~cLq**&$`Y9 zvY|C)66r}PslMz&Hh8ik*ifRlD+8^UyccD6N3f$ibg00S%{-9|$v0Bs?`w3GC#1X= zs^6dDIpgj2oL*@&n~$Hoe{{CRWH*}+=G^=+$pQy85so?_U|$ji=v_oXCOVbqwAt?? zAP>#uGMX@l<`M+-@wC}||61v{Ti~ne=F4B?e;3IKONX-}G@2e@2wzwf)mXFnhtIxi z++;Cfv-!)9Jx3;4Ow-|oW{Zn}l5ju|NF&*=e_k0zYG{7HJAx#M(I_T#v~9HE2I7(g6G-xG5K8>hGX~CiI)<8F76#4-`qa+kdBKfBMLb3CD&cq!=2f-oU+1{C3_KnVS{B5-*;5SnJb>lpSR%jFy2 z_l^NZ7y~0L0;9U#YnOlr_;xSTzN8rr-O%u|G4t`7;sMH!8uU?=R}+cv=y7l GZu);6qdElu diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.after_roundtrip.yaml deleted file mode 100644 index a67f44514..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.after_roundtrip.yaml +++ /dev/null @@ -1,744 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -4642229086806245627 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "265" - operator: 嫙&蒒5靇C'ɵK.Q貇 - values: - - "266" - matchFields: - - key: "267" - operator: 廷s{Ⱦdz@ùƸʋŀ樺ȃv渟7 - values: - - "268" - weight: -1049103969 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "261" - operator: s«öʮĀ< - values: - - "262" - matchFields: - - key: "263" - operator: Ĭ4y£軶 - values: - - "264" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: o_-.N.9D-F45eJ7 - operator: Exists - matchLabels: - 19..c_uo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p6: O_4Gj._BXt.O-7___-Y_um-_8r--684C - namespaces: - - "283" - topologyKey: "284" - weight: -1905643191 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte - operator: Exists - matchLabels: - yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k: 8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S - namespaces: - - "275" - topologyKey: "276" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J - operator: NotIn - values: - - 8._Q.6.I--2_9.v.--_.--4QQ.-s.H.Hf - matchLabels: - 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8: 3..0c.-.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.T-V_D_0-D - namespaces: - - "299" - topologyKey: "300" - weight: -1952582931 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: vvm-2qz7-3042017mh0-5-g-7-7---g88w24/3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g9 - operator: NotIn - values: - - szA_j - matchLabels: - 6.-L..-__0N_N.O30-_u.y: hT.-z-._7-5lL..-_--.Va - namespaces: - - "291" - topologyKey: "292" - automountServiceAccountToken: true - containers: - - args: - - "191" - command: - - "190" - env: - - name: "198" - value: "199" - valueFrom: - configMapKeyRef: - key: "205" - name: "204" - optional: false - fieldRef: - apiVersion: "200" - fieldPath: "201" - resourceFieldRef: - containerName: "202" - divisor: "804" - resource: "203" - secretKeyRef: - key: "207" - name: "206" - optional: true - envFrom: - - configMapRef: - name: "196" - optional: false - prefix: "195" - secretRef: - name: "197" - optional: true - image: "189" - imagePullPolicy: ɘ檲ɨ銦 - lifecycle: - postStart: - exec: - command: - - "227" - httpGet: - host: "230" - httpHeaders: - - name: "231" - value: "232" - path: "228" - port: "229" - scheme: 捘ɍi縱ù墴 - tcpSocket: - host: "233" - port: -1766555420 - preStop: - exec: - command: - - "234" - httpGet: - host: "237" - httpHeaders: - - name: "238" - value: "239" - path: "235" - port: "236" - scheme: m - tcpSocket: - host: "241" - port: "240" - livenessProbe: - exec: - command: - - "214" - failureThreshold: -172061933 - httpGet: - host: "216" - httpHeaders: - - name: "217" - value: "218" - path: "215" - port: 1035477124 - scheme: ǚrǜnh0åȂ - initialDelaySeconds: 1669671203 - periodSeconds: -2026931030 - successThreshold: -1843754483 - tcpSocket: - host: "219" - port: -1024794140 - timeoutSeconds: 636617833 - name: "188" - ports: - - containerPort: -999327618 - hostIP: "194" - hostPort: 828249878 - name: "193" - protocol: M 宸@Z^嫫猤痈C*ĕʄő芖{| - readinessProbe: - exec: - command: - - "220" - failureThreshold: -199511133 - httpGet: - host: "223" - httpHeaders: - - name: "224" - value: "225" - path: "221" - port: "222" - scheme: ȇe媹Hǝ呮}臷Ľð»ųKĵ - initialDelaySeconds: -2047333312 - periodSeconds: -1373541406 - successThreshold: 480521693 - tcpSocket: - host: "226" - port: -540225644 - timeoutSeconds: -1477511050 - resources: - limits: - GS5Ǎ: "526" - requests: - '}穠C]躢|)黰eȪ嵛4$%': "980" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬 - drop: - - ï瓼猀2:öY鶪5w垁 - privileged: false - procMount: 傭Ȟ1酃=6 - readOnlyRootFilesystem: false - runAsGroup: 6160737734087677664 - runAsNonRoot: false - runAsUser: 246460675557743818 - seLinuxOptions: - level: "246" - role: "244" - type: "245" - user: "243" - stdinOnce: true - terminationMessagePath: "242" - terminationMessagePolicy: 綸_Ú8參遼ūPH炮掊°nʮ - volumeDevices: - - devicePath: "213" - name: "212" - volumeMounts: - - mountPath: "209" - mountPropagation: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - name: "208" - readOnly: true - subPath: "210" - subPathExpr: "211" - workingDir: "192" - dnsConfig: - nameservers: - - "307" - options: - - name: "309" - value: "310" - searches: - - "308" - dnsPolicy: 賲鐅臬dH巧 - enableServiceLinks: true - hostAliases: - - hostnames: - - "305" - ip: "304" - hostIPC: true - hostname: "259" - imagePullSecrets: - - name: "258" - initContainers: - - args: - - "132" - command: - - "131" - env: - - name: "139" - value: "140" - valueFrom: - configMapKeyRef: - key: "146" - name: "145" - optional: true - fieldRef: - apiVersion: "141" - fieldPath: "142" - resourceFieldRef: - containerName: "143" - divisor: "85" - resource: "144" - secretKeyRef: - key: "148" - name: "147" - optional: true - envFrom: - - configMapRef: - name: "137" - optional: true - prefix: "136" - secretRef: - name: "138" - optional: false - image: "130" - imagePullPolicy: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - lifecycle: - postStart: - exec: - command: - - "169" - httpGet: - host: "172" - httpHeaders: - - name: "173" - value: "174" - path: "170" - port: "171" - scheme: Ğİ*洣炽A@ʊʓ - tcpSocket: - host: "175" - port: -675641027 - preStop: - exec: - command: - - "176" - httpGet: - host: "178" - httpHeaders: - - name: "179" - value: "180" - path: "177" - port: 1781137795 - scheme: ş")珷 - tcpSocket: - host: "182" - port: "181" - livenessProbe: - exec: - command: - - "155" - failureThreshold: 327574193 - httpGet: - host: "158" - httpHeaders: - - name: "159" - value: "160" - path: "156" - port: "157" - scheme: 叚Fi皬择,Q捇ȸ{ - initialDelaySeconds: 753533242 - periodSeconds: 358822621 - successThreshold: 1946649472 - tcpSocket: - host: "162" - port: "161" - timeoutSeconds: 1130962147 - name: "129" - ports: - - containerPort: 654894632 - hostIP: "135" - hostPort: 33624773 - name: "134" - protocol: 譋娲瘹ɭȊɚɎ( - readinessProbe: - exec: - command: - - "163" - failureThreshold: -773009446 - httpGet: - host: "165" - httpHeaders: - - name: "166" - value: "167" - path: "164" - port: 1407547486 - scheme: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - initialDelaySeconds: -216367368 - periodSeconds: 2073854558 - successThreshold: -557582532 - tcpSocket: - host: "168" - port: -375094516 - timeoutSeconds: 578888856 - resources: - limits: - h^樅燴壩卄: "967" - requests: - Æ碛,1ZƜ/C龷ȪÆ: "750" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ʬ - drop: - - ʞĹ鑑6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ - privileged: false - procMount: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readOnlyRootFilesystem: false - runAsGroup: 6660890208081642035 - runAsNonRoot: true - runAsUser: 3218628390827875483 - seLinuxOptions: - level: "187" - role: "185" - type: "186" - user: "184" - stdin: true - stdinOnce: true - terminationMessagePath: "183" - terminationMessagePolicy: 'ɖgȏ哙ȍȂ揲ȼDDŽLŬp:' - tty: true - volumeDevices: - - devicePath: "154" - name: "153" - volumeMounts: - - mountPath: "150" - mountPropagation: 鏮嵒ƫS捕ɷD¡轫n - name: "149" - subPath: "151" - subPathExpr: "152" - workingDir: "133" - nodeName: "251" - nodeSelector: - "247": "248" - priority: 1995848794 - priorityClassName: "306" - readinessGates: - - conditionType: 鋎靀G¿əW# - runtimeClassName: "311" - schedulerName: "301" - securityContext: - fsGroup: -441585915417957997 - runAsGroup: 2456473031628327236 - runAsNonRoot: false - runAsUser: 4940823988154942939 - seLinuxOptions: - level: "255" - role: "253" - type: "254" - user: "252" - supplementalGroups: - - -3933586629366315370 - sysctls: - - name: "256" - value: "257" - serviceAccount: "250" - serviceAccountName: "249" - shareProcessNamespace: false - subdomain: "260" - terminationGracePeriodSeconds: -1448922471999191523 - tolerations: - - effect: =歍þ - key: "302" - operator: ūM鈱ɖ'蠨磼O_h盌3+Œ9两@8 - tolerationSeconds: 4473754095909577340 - value: "303" - volumes: - - awsElasticBlockStore: - fsType: "29" - partition: -1161251830 - volumeID: "28" - azureDisk: - cachingMode: l畣潁谯耨V6&]鴍Ɋ恧ȭ%Ǝ - diskName: "92" - diskURI: "93" - fsType: "94" - kind: "" - readOnly: true - azureFile: - secretName: "78" - shareName: "79" - cephfs: - monitors: - - "63" - path: "64" - secretFile: "66" - secretRef: - name: "67" - user: "65" - cinder: - fsType: "61" - secretRef: - name: "62" - volumeID: "60" - configMap: - defaultMode: -314157282 - items: - - key: "81" - mode: -983896210 - path: "82" - name: "80" - optional: false - csi: - driver: "124" - fsType: "125" - nodePublishSecretRef: - name: "128" - readOnly: true - volumeAttributes: - "126": "127" - downwardAPI: - defaultMode: 13677460 - items: - - fieldRef: - apiVersion: "71" - fieldPath: "72" - mode: 684408190 - path: "70" - resourceFieldRef: - containerName: "73" - divisor: "248" - resource: "74" - emptyDir: - medium: Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț - sizeLimit: "2" - fc: - fsType: "76" - lun: -1579157235 - readOnly: true - targetWWNs: - - "75" - wwids: - - "77" - flexVolume: - driver: "55" - fsType: "56" - options: - "58": "59" - readOnly: true - secretRef: - name: "57" - flocker: - datasetName: "68" - datasetUUID: "69" - gcePersistentDisk: - fsType: "27" - partition: 116584168 - pdName: "26" - readOnly: true - gitRepo: - directory: "32" - repository: "30" - revision: "31" - glusterfs: - endpoints: "45" - path: "46" - readOnly: true - hostPath: - path: "25" - type: ěĂ凗蓏Ŋ蛊ĉy緅縕 - iscsi: - fsType: "41" - initiatorName: "44" - iqn: "39" - iscsiInterface: "40" - lun: -1639873916 - portals: - - "42" - readOnly: true - secretRef: - name: "43" - targetPortal: "38" - name: "24" - nfs: - path: "37" - readOnly: true - server: "36" - persistentVolumeClaim: - claimName: "47" - photonPersistentDisk: - fsType: "96" - pdID: "95" - portworxVolume: - fsType: "111" - volumeID: "110" - projected: - defaultMode: 1794524651 - sources: - - configMap: - items: - - key: "106" - mode: -1870473043 - path: "107" - name: "105" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "101" - fieldPath: "102" - mode: -1009864962 - path: "100" - resourceFieldRef: - containerName: "103" - divisor: "272" - resource: "104" - secret: - items: - - key: "98" - mode: -1907421291 - path: "99" - name: "97" - optional: false - serviceAccountToken: - audience: "108" - expirationSeconds: 4696918449912036583 - path: "109" - quobyte: - group: "90" - registry: "87" - tenant: "91" - user: "89" - volume: "88" - rbd: - fsType: "50" - image: "49" - keyring: "53" - monitors: - - "48" - pool: "51" - readOnly: true - secretRef: - name: "54" - user: "52" - scaleIO: - fsType: "119" - gateway: "112" - protectionDomain: "115" - secretRef: - name: "114" - storageMode: "117" - storagePool: "116" - system: "113" - volumeName: "118" - secret: - defaultMode: -1946655205 - items: - - key: "34" - mode: -1261508418 - path: "35" - optional: true - secretName: "33" - storageos: - fsType: "122" - secretRef: - name: "123" - volumeName: "120" - volumeNamespace: "121" - vsphereVolume: - fsType: "84" - storagePolicyID: "86" - storagePolicyName: "85" - volumePath: "83" -status: - conditions: - - lastProbeTime: "2533-09-05T10:19:17Z" - lastTransitionTime: "2800-04-15T11:14:25Z" - message: "313" - reason: "312" - status: b轫ʓ滨ĖRh}颉hȱɷȰW - type: hp像-觗裓6Ř筿ɾ5Ų買霎ȃ - containerStatuses: - - containerID: "346" - image: "344" - imageID: "345" - lastState: - running: - startedAt: "2041-01-04T02:32:46Z" - terminated: - containerID: "343" - exitCode: 1387858949 - finishedAt: "2237-05-21T20:10:11Z" - message: "342" - reason: "341" - signal: 156368232 - startedAt: "2714-05-24T17:12:24Z" - waiting: - message: "340" - reason: "339" - name: "333" - ready: true - restartCount: -1372876567 - state: - running: - startedAt: "2912-12-15T17:53:00Z" - terminated: - containerID: "338" - exitCode: -299700271 - finishedAt: "2235-11-12T03:41:20Z" - message: "337" - reason: "336" - signal: -316291406 - startedAt: "2882-11-24T21:32:38Z" - waiting: - message: "335" - reason: "334" - hostIP: "317" - initContainerStatuses: - - containerID: "332" - image: "330" - imageID: "331" - lastState: - running: - startedAt: "2531-03-08T07:39:55Z" - terminated: - containerID: "329" - exitCode: -36217450 - finishedAt: "2213-09-09T00:43:38Z" - message: "328" - reason: "327" - signal: 1050889206 - startedAt: "2002-02-22T11:05:23Z" - waiting: - message: "326" - reason: "325" - name: "319" - ready: true - restartCount: 1272233359 - state: - running: - startedAt: "2034-12-24T21:21:19Z" - terminated: - containerID: "324" - exitCode: 420595064 - finishedAt: "2577-10-06T23:30:01Z" - message: "323" - reason: "322" - signal: 1195176401 - startedAt: "2237-12-07T03:53:03Z" - waiting: - message: "321" - reason: "320" - message: "314" - nominatedNodeName: "316" - phase: 7uPƒw©ɴĶ烷Ľ - podIP: "318" - qosClass: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - reason: "315" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.json deleted file mode 100644 index 2af28d8d7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.json +++ /dev/null @@ -1,1089 +0,0 @@ -{ - "kind": "Pod", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "24", - "hostPath": { - "path": "25", - "type": "ěĂ凗蓏Ŋ蛊ĉy緅縕" - }, - "emptyDir": { - "medium": "Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț", - "sizeLimit": "2" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": 116584168, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": -1161251830 - }, - "gitRepo": { - "repository": "30", - "revision": "31", - "directory": "32" - }, - "secret": { - "secretName": "33", - "items": [ - { - "key": "34", - "path": "35", - "mode": -1261508418 - } - ], - "defaultMode": -1946655205, - "optional": true - }, - "nfs": { - "server": "36", - "path": "37", - "readOnly": true - }, - "iscsi": { - "targetPortal": "38", - "iqn": "39", - "lun": -1639873916, - "iscsiInterface": "40", - "fsType": "41", - "readOnly": true, - "portals": [ - "42" - ], - "secretRef": { - "name": "43" - }, - "initiatorName": "44" - }, - "glusterfs": { - "endpoints": "45", - "path": "46", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "47" - }, - "rbd": { - "monitors": [ - "48" - ], - "image": "49", - "fsType": "50", - "pool": "51", - "user": "52", - "keyring": "53", - "secretRef": { - "name": "54" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "55", - "fsType": "56", - "secretRef": { - "name": "57" - }, - "readOnly": true, - "options": { - "58": "59" - } - }, - "cinder": { - "volumeID": "60", - "fsType": "61", - "secretRef": { - "name": "62" - } - }, - "cephfs": { - "monitors": [ - "63" - ], - "path": "64", - "user": "65", - "secretFile": "66", - "secretRef": { - "name": "67" - } - }, - "flocker": { - "datasetName": "68", - "datasetUUID": "69" - }, - "downwardAPI": { - "items": [ - { - "path": "70", - "fieldRef": { - "apiVersion": "71", - "fieldPath": "72" - }, - "resourceFieldRef": { - "containerName": "73", - "resource": "74", - "divisor": "248" - }, - "mode": 684408190 - } - ], - "defaultMode": 13677460 - }, - "fc": { - "targetWWNs": [ - "75" - ], - "lun": -1579157235, - "fsType": "76", - "readOnly": true, - "wwids": [ - "77" - ] - }, - "azureFile": { - "secretName": "78", - "shareName": "79" - }, - "configMap": { - "name": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -983896210 - } - ], - "defaultMode": -314157282, - "optional": false - }, - "vsphereVolume": { - "volumePath": "83", - "fsType": "84", - "storagePolicyName": "85", - "storagePolicyID": "86" - }, - "quobyte": { - "registry": "87", - "volume": "88", - "user": "89", - "group": "90", - "tenant": "91" - }, - "azureDisk": { - "diskName": "92", - "diskURI": "93", - "cachingMode": "l畣潁谯耨V6\u0026]鴍Ɋ恧ȭ%Ǝ", - "fsType": "94", - "readOnly": true, - "kind": "" - }, - "photonPersistentDisk": { - "pdID": "95", - "fsType": "96" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "97", - "items": [ - { - "key": "98", - "path": "99", - "mode": -1907421291 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "100", - "fieldRef": { - "apiVersion": "101", - "fieldPath": "102" - }, - "resourceFieldRef": { - "containerName": "103", - "resource": "104", - "divisor": "272" - }, - "mode": -1009864962 - } - ] - }, - "configMap": { - "name": "105", - "items": [ - { - "key": "106", - "path": "107", - "mode": -1870473043 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "108", - "expirationSeconds": 4696918449912036583, - "path": "109" - } - } - ], - "defaultMode": 1794524651 - }, - "portworxVolume": { - "volumeID": "110", - "fsType": "111" - }, - "scaleIO": { - "gateway": "112", - "system": "113", - "secretRef": { - "name": "114" - }, - "protectionDomain": "115", - "storagePool": "116", - "storageMode": "117", - "volumeName": "118", - "fsType": "119" - }, - "storageos": { - "volumeName": "120", - "volumeNamespace": "121", - "fsType": "122", - "secretRef": { - "name": "123" - } - }, - "csi": { - "driver": "124", - "readOnly": true, - "fsType": "125", - "volumeAttributes": { - "126": "127" - }, - "nodePublishSecretRef": { - "name": "128" - } - } - } - ], - "initContainers": [ - { - "name": "129", - "image": "130", - "command": [ - "131" - ], - "args": [ - "132" - ], - "workingDir": "133", - "ports": [ - { - "name": "134", - "hostPort": 33624773, - "containerPort": 654894632, - "protocol": "譋娲瘹ɭȊɚɎ(", - "hostIP": "135" - } - ], - "envFrom": [ - { - "prefix": "136", - "configMapRef": { - "name": "137", - "optional": true - }, - "secretRef": { - "name": "138", - "optional": false - } - } - ], - "env": [ - { - "name": "139", - "value": "140", - "valueFrom": { - "fieldRef": { - "apiVersion": "141", - "fieldPath": "142" - }, - "resourceFieldRef": { - "containerName": "143", - "resource": "144", - "divisor": "85" - }, - "configMapKeyRef": { - "name": "145", - "key": "146", - "optional": true - }, - "secretKeyRef": { - "name": "147", - "key": "148", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "h^樅燴壩卄": "967" - }, - "requests": { - "Æ碛,1ZƜ/C龷ȪÆ": "750" - } - }, - "volumeMounts": [ - { - "name": "149", - "mountPath": "150", - "subPath": "151", - "mountPropagation": "鏮嵒ƫS捕ɷD¡轫n", - "subPathExpr": "152" - } - ], - "volumeDevices": [ - { - "name": "153", - "devicePath": "154" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "155" - ] - }, - "httpGet": { - "path": "156", - "port": "157", - "host": "158", - "scheme": "叚Fi皬择,Q捇ȸ{", - "httpHeaders": [ - { - "name": "159", - "value": "160" - } - ] - }, - "tcpSocket": { - "port": "161", - "host": "162" - }, - "initialDelaySeconds": 753533242, - "timeoutSeconds": 1130962147, - "periodSeconds": 358822621, - "successThreshold": 1946649472, - "failureThreshold": 327574193 - }, - "readinessProbe": { - "exec": { - "command": [ - "163" - ] - }, - "httpGet": { - "path": "164", - "port": 1407547486, - "host": "165", - "scheme": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "httpHeaders": [ - { - "name": "166", - "value": "167" - } - ] - }, - "tcpSocket": { - "port": -375094516, - "host": "168" - }, - "initialDelaySeconds": -216367368, - "timeoutSeconds": 578888856, - "periodSeconds": 2073854558, - "successThreshold": -557582532, - "failureThreshold": -773009446 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "169" - ] - }, - "httpGet": { - "path": "170", - "port": "171", - "host": "172", - "scheme": "Ğİ*洣炽A@ʊʓ", - "httpHeaders": [ - { - "name": "173", - "value": "174" - } - ] - }, - "tcpSocket": { - "port": -675641027, - "host": "175" - } - }, - "preStop": { - "exec": { - "command": [ - "176" - ] - }, - "httpGet": { - "path": "177", - "port": 1781137795, - "host": "178", - "scheme": "ş\")珷", - "httpHeaders": [ - { - "name": "179", - "value": "180" - } - ] - }, - "tcpSocket": { - "port": "181", - "host": "182" - } - } - }, - "terminationMessagePath": "183", - "terminationMessagePolicy": "ɖgȏ哙ȍȂ揲ȼDDŽLŬp:", - "imagePullPolicy": "ʖ畬x骀Šĸů湙騘\u0026啞川J缮ǚb", - "securityContext": { - "capabilities": { - "add": [ - "ʬ" - ], - "drop": [ - "ʞĹ鑑6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "184", - "role": "185", - "type": "186", - "level": "187" - }, - "runAsUser": 3218628390827875483, - "runAsGroup": 6660890208081642035, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ɥ³ƞsɁ8^ʥǔTĪȸŹă" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "188", - "image": "189", - "command": [ - "190" - ], - "args": [ - "191" - ], - "workingDir": "192", - "ports": [ - { - "name": "193", - "hostPort": 828249878, - "containerPort": -999327618, - "protocol": "M 宸@Z^嫫猤痈C*ĕʄő芖{|", - "hostIP": "194" - } - ], - "envFrom": [ - { - "prefix": "195", - "configMapRef": { - "name": "196", - "optional": false - }, - "secretRef": { - "name": "197", - "optional": true - } - } - ], - "env": [ - { - "name": "198", - "value": "199", - "valueFrom": { - "fieldRef": { - "apiVersion": "200", - "fieldPath": "201" - }, - "resourceFieldRef": { - "containerName": "202", - "resource": "203", - "divisor": "804" - }, - "configMapKeyRef": { - "name": "204", - "key": "205", - "optional": false - }, - "secretKeyRef": { - "name": "206", - "key": "207", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "GS5Ǎ": "526" - }, - "requests": { - "}穠C]躢|)黰eȪ嵛4$%": "980" - } - }, - "volumeMounts": [ - { - "name": "208", - "readOnly": true, - "mountPath": "209", - "subPath": "210", - "mountPropagation": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c", - "subPathExpr": "211" - } - ], - "volumeDevices": [ - { - "name": "212", - "devicePath": "213" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "214" - ] - }, - "httpGet": { - "path": "215", - "port": 1035477124, - "host": "216", - "scheme": "ǚrǜnh0åȂ", - "httpHeaders": [ - { - "name": "217", - "value": "218" - } - ] - }, - "tcpSocket": { - "port": -1024794140, - "host": "219" - }, - "initialDelaySeconds": 1669671203, - "timeoutSeconds": 636617833, - "periodSeconds": -2026931030, - "successThreshold": -1843754483, - "failureThreshold": -172061933 - }, - "readinessProbe": { - "exec": { - "command": [ - "220" - ] - }, - "httpGet": { - "path": "221", - "port": "222", - "host": "223", - "scheme": "ȇe媹Hǝ呮}臷Ľð»ųKĵ", - "httpHeaders": [ - { - "name": "224", - "value": "225" - } - ] - }, - "tcpSocket": { - "port": -540225644, - "host": "226" - }, - "initialDelaySeconds": -2047333312, - "timeoutSeconds": -1477511050, - "periodSeconds": -1373541406, - "successThreshold": 480521693, - "failureThreshold": -199511133 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "227" - ] - }, - "httpGet": { - "path": "228", - "port": "229", - "host": "230", - "scheme": "捘ɍi縱ù墴", - "httpHeaders": [ - { - "name": "231", - "value": "232" - } - ] - }, - "tcpSocket": { - "port": -1766555420, - "host": "233" - } - }, - "preStop": { - "exec": { - "command": [ - "234" - ] - }, - "httpGet": { - "path": "235", - "port": "236", - "host": "237", - "scheme": "m", - "httpHeaders": [ - { - "name": "238", - "value": "239" - } - ] - }, - "tcpSocket": { - "port": "240", - "host": "241" - } - } - }, - "terminationMessagePath": "242", - "terminationMessagePolicy": "綸_Ú8參遼ūPH炮掊°nʮ", - "imagePullPolicy": "ɘ檲ɨ銦", - "securityContext": { - "capabilities": { - "add": [ - "ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬" - ], - "drop": [ - "ï瓼猀2:öY鶪5w垁" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "243", - "role": "244", - "type": "245", - "level": "246" - }, - "runAsUser": 246460675557743818, - "runAsGroup": 6160737734087677664, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "傭Ȟ1酃=6" - }, - "stdinOnce": true - } - ], - "terminationGracePeriodSeconds": -1448922471999191523, - "activeDeadlineSeconds": -4642229086806245627, - "dnsPolicy": "賲鐅臬dH巧", - "nodeSelector": { - "247": "248" - }, - "serviceAccountName": "249", - "serviceAccount": "250", - "automountServiceAccountToken": true, - "nodeName": "251", - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "252", - "role": "253", - "type": "254", - "level": "255" - }, - "runAsUser": 4940823988154942939, - "runAsGroup": 2456473031628327236, - "runAsNonRoot": false, - "supplementalGroups": [ - -3933586629366315370 - ], - "fsGroup": -441585915417957997, - "sysctls": [ - { - "name": "256", - "value": "257" - } - ] - }, - "imagePullSecrets": [ - { - "name": "258" - } - ], - "hostname": "259", - "subdomain": "260", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "261", - "operator": "s«öʮĀ\u003c", - "values": [ - "262" - ] - } - ], - "matchFields": [ - { - "key": "263", - "operator": "Ĭ4y£軶", - "values": [ - "264" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1049103969, - "preference": { - "matchExpressions": [ - { - "key": "265", - "operator": "嫙\u0026蒒5靇C'ɵK.Q貇", - "values": [ - "266" - ] - } - ], - "matchFields": [ - { - "key": "267", - "operator": "廷s{Ⱦdz@ùƸʋŀ樺ȃv渟7", - "values": [ - "268" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k": "8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S" - }, - "matchExpressions": [ - { - "key": "l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "275" - ], - "topologyKey": "276" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1905643191, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "19..c_uo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p6": "O_4Gj._BXt.O-7___-Y_um-_8r--684C" - }, - "matchExpressions": [ - { - "key": "o_-.N.9D-F45eJ7", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "283" - ], - "topologyKey": "284" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6.-L..-__0N_N.O30-_u.y": "hT.-z-._7-5lL..-_--.Va" - }, - "matchExpressions": [ - { - "key": "vvm-2qz7-3042017mh0-5-g-7-7---g88w24/3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g9", - "operator": "NotIn", - "values": [ - "szA_j" - ] - } - ] - }, - "namespaces": [ - "291" - ], - "topologyKey": "292" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1952582931, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8": "3..0c.-.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.T-V_D_0-D" - }, - "matchExpressions": [ - { - "key": "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J", - "operator": "NotIn", - "values": [ - "8._Q.6.I--2_9.v.--_.--4QQ.-s.H.Hf" - ] - } - ] - }, - "namespaces": [ - "299" - ], - "topologyKey": "300" - } - } - ] - } - }, - "schedulerName": "301", - "tolerations": [ - { - "key": "302", - "operator": "ūM鈱ɖ'蠨磼O_h盌3+Œ9两@8", - "value": "303", - "effect": "=歍þ", - "tolerationSeconds": 4473754095909577340 - } - ], - "hostAliases": [ - { - "ip": "304", - "hostnames": [ - "305" - ] - } - ], - "priorityClassName": "306", - "priority": 1995848794, - "dnsConfig": { - "nameservers": [ - "307" - ], - "searches": [ - "308" - ], - "options": [ - { - "name": "309", - "value": "310" - } - ] - }, - "readinessGates": [ - { - "conditionType": "鋎靀G¿əW#" - } - ], - "runtimeClassName": "311", - "enableServiceLinks": true - }, - "status": { - "phase": "7uPƒw©ɴĶ烷Ľ", - "conditions": [ - { - "type": "hp像-觗裓6Ř筿ɾ5Ų買霎ȃ", - "status": "b轫ʓ滨ĖRh}颉hȱɷȰW", - "lastProbeTime": "2533-09-05T10:19:17Z", - "lastTransitionTime": "2800-04-15T11:14:25Z", - "reason": "312", - "message": "313" - } - ], - "message": "314", - "reason": "315", - "nominatedNodeName": "316", - "hostIP": "317", - "podIP": "318", - "initContainerStatuses": [ - { - "name": "319", - "state": { - "waiting": { - "reason": "320", - "message": "321" - }, - "running": { - "startedAt": "2034-12-24T21:21:19Z" - }, - "terminated": { - "exitCode": 420595064, - "signal": 1195176401, - "reason": "322", - "message": "323", - "startedAt": "2237-12-07T03:53:03Z", - "finishedAt": "2577-10-06T23:30:01Z", - "containerID": "324" - } - }, - "lastState": { - "waiting": { - "reason": "325", - "message": "326" - }, - "running": { - "startedAt": "2531-03-08T07:39:55Z" - }, - "terminated": { - "exitCode": -36217450, - "signal": 1050889206, - "reason": "327", - "message": "328", - "startedAt": "2002-02-22T11:05:23Z", - "finishedAt": "2213-09-09T00:43:38Z", - "containerID": "329" - } - }, - "ready": true, - "restartCount": 1272233359, - "image": "330", - "imageID": "331", - "containerID": "332" - } - ], - "containerStatuses": [ - { - "name": "333", - "state": { - "waiting": { - "reason": "334", - "message": "335" - }, - "running": { - "startedAt": "2912-12-15T17:53:00Z" - }, - "terminated": { - "exitCode": -299700271, - "signal": -316291406, - "reason": "336", - "message": "337", - "startedAt": "2882-11-24T21:32:38Z", - "finishedAt": "2235-11-12T03:41:20Z", - "containerID": "338" - } - }, - "lastState": { - "waiting": { - "reason": "339", - "message": "340" - }, - "running": { - "startedAt": "2041-01-04T02:32:46Z" - }, - "terminated": { - "exitCode": 1387858949, - "signal": 156368232, - "reason": "341", - "message": "342", - "startedAt": "2714-05-24T17:12:24Z", - "finishedAt": "2237-05-21T20:10:11Z", - "containerID": "343" - } - }, - "ready": true, - "restartCount": -1372876567, - "image": "344", - "imageID": "345", - "containerID": "346" - } - ], - "qosClass": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.pb deleted file mode 100644 index 9c716927c467883412b4925f76c6d88b3ee3605a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4845 zcmYjV3wRVoww~(n82fs0Y*%)i^-3ItjgfA;tKYZ^1cVUf73BG?wh3SY2m}IA!uoxA z5|}Va$ol~aBs@Z1KzJk}1l(jMnTf0W!G0`U5%mi5(oZhpyimpgl=2b}(HAPldv4 z-|)%4UbJ!yjZ_9{$zy4xGnBxui>4_7+bBV_kDHb0>n-;b>_~Sz28+{TDM8>(8rnh$ zQYIzH4)ijZD$KK?5{Iwc5o)S&*RxA}`%VvZB~9^`f8gJn9pmq*a_xK*(9~E9Jr2w@ z#!Qcar_Pv|PbSd!;T=oN-7)kt@FFu-SDh=zS5Or!D|S1Abq?3=?SZcRKz9W*nV#tG z3l#MDcRGEiDy9VrPxhZ;hl+g{^I}7NM+44Uf5lEuk*AJ{f_T{;12l!9uxbt7_(+XL z_9sE1fkL-Bf{lOw$ItMCqD`@n(v-+ElqlFJ5#velB{ENdlt3q2FI?(95;3*b{pG*D zxEJY#rqW;m=%Q*xaZ}(OfJNP!m%sDw{jiChlK5Ck5_mL~lJIm>;wYMu#O0=BN|F+w zvm`T=q*zfRcrU3I(@KcB1R#=bqh#Jr$wDk8V@%27ROl&7(^0Ywp3qBHY(xVd#hT#> zePn%|g{Bm6LJ_PcJG3fzixs2@8p%c}vYk?tSfW>XQzrCMpqHZOAc!bUsXR;wr3wtC zhNGrJH&wEYrlYW=ML+zpZIH5*2l~f2&{JS0Tby@)F8VR-q>WM)ph2l>DFUBVKvi|C zsTRf1Fqp=ZIBI~aVe9SBziD|8?qsd+sQLO~B#x#=1k5!UPy?PC@YIwRG#*qcs5Eef z()3tL=P{)VortF?9W#_J+MangP|@V?%MPA69?WW9s!Vz_blT~4__L3C+9wVc*(qI$ zLD+N-foD1dO;`HSqjVIkUIqk2X&7^T&u+BGxQRWY3B-WzmO?)VewEKPll zbSAjEZktBK$QVKbLSP^kn1`@qJ{)!pLNbm70P_-2$}s06-#`^ZBv2fNv@v?lVtL5P zfT0XNMAN_hAaLx!%r}GQ8vpb{sQ1JgPmAwNo%H-fVxen%f=UoI;yUJadlVM<*a?Gm zgAFeX)C?S%KU5pqbA0e@;^u8LrUmLd-G_WxC;x!KN=VE?^rA2yL1K6S5oCron=E;M z{_@)>n+f0q#s26}?Utc^8&mm#!=9X2;+>!ZSwXXnrym33TLZ0CBa>?)dfn1=xqROk zYiO6}I2GM;zpp2fujea2p|n70ZX$ zzC0cwVg2Dw@5RV|j{fRu{&$hrm>btie28xf+&&Otm0W@7#0V=DRylxZzp{eGgGJsx z&hM=DI@boePY(3>8c&Cbh_DB+h<}Mp_T@7Xhr>i5)lLgzLbiP#Fh%*Fn4&^3RXf@c zfq}&YN0`k*{}Kv`EGS7>2Lf-Qz19AfPH%I_aU^pmqF<#ad&&k2o)4Ta4>-^GvP)bw z!Th#BSy!NO@5|oZp`tFI^H^~Ih4@fIkMDRJ^W?zsK-u}go-90d;OvUf*%tXdUwt-2 z9CjX-VCP~<0y>fmD@jtKhkI^*eEo|5OjL{sPD9i5FWXBhJ{-PsaY@3z`EuGl^+G5= z_hlsunRX#mf*>FMj%)|;jrc0)3ILD1sut9Uo(`PtHU?@nUvX|I`@Fk#VSFH`!(Zg+ zKe2JRqXjZ6EFrREAW@m3_wPCQO>Sk)-EUA#{=+j@uOI!wdlBJr!Bd@~lKfyn+v<2< z*HJj0fGAm$k`@O-Pl$qAAQ6PH-1N376>XVM6W3${D~sToEP-pXY`I=|sqf0sE1p?a zQ*@=Xy!UVS-KV`MrtELt_LC2X|NB1TU8RlXmyUP~?cqUWvP)$(lk8ww%RwM@2S|l4 zMO|a*VnmaSI38LRfuYm;TL;b#cet|t07EL6WIPO~)FZAoX?uTDu=gxcOUz1h!_6-W zBRhzhM?XufAU*n8YbFItOXbl1f|Jrgo#S-FSi#1#^ERh#KA6hovc^F&j89 zXJ_jMCuhu;IV>kFd!NHe^ROU61m_zmIx~9yrmb@~+D4~m&M?+Nh;%snFw_Pv%KWYG z|2`WD(OHTK%4$|J zB%lm2l(^Sti1AD3=%N90H&^5!Y8=mI8kv0hMvZw%gvo@tos;21|E3L)^}1RVO0`@PENt^ zt=fb&o?D;9Dy%4^u%O+Y%V`O}gz8z1GZt|QHy3&uI+p<}4uZ)_ixzQgIv3ByzeBNtm&acTyNZdLpBUH~XsnwotQ_1oWoGC?m#1Z5Cuvn>K7l1e>EsX< zpuPqn#6B4+?(m%{9c*3fcUE}2X7wKo_O))r(1sH?N2&k;DsBaOLYf;ncLW&{i6CqC zCw#@Vv)2Y{+x&&cCNJ_k3q0LB$WbN8#8rj=^{5gc^??Rk&gC=*DC^ChLv^E~Z}|4K zqL{3L`U7M6lkS>*Xk`_mQ^N-YWW+gu1BsAS9-rT-Xc$c@4*}}<=LSm_8iA_rptH!A zTbS%_AL1Vn=XSwy$J&u&jAOm;~fR=%9`qyL)z)ejF*e$+0Uan&sY4q3X!N zZmss_l~d85=iU8mY|Q!F#Xm#}1^&~9Q^k?j=-T!(}24KG)p5i`bxj<`?U-aRGFC_hK1brB7s%I4(H}JUm6p3 zSk>%f-3|5^0>xbsG!j|uUn2{*3((+oAjB=t4Oa##+TIVfWVsKxy4}b9JvE``>Pfze zdSBQ6guwZZq1xok?evQ@HQdHb9Ikiug!b-Lh8zp$g$_5p9X#He>AR2{>S|OxhkX?l zfg@Ez#gP&~(4d+UV0D5}VC`sXbY0KEPak%4U6~w%$c1?Nsl2}*I$BuV{l^5W_i+EI z!TNM>w)WQW;i2+3TrHk%caJMK3!!j5fFkt(TpuGvfCxpvNIf8G7Pt~U<*iKd6#L3* zJWfxJzqr$Le%4Ul>+ZI+so`QkkV#NwsTrY8xPQY|#moeE>%7peliteT2M;s{n$9mU zQUi5+#24MA`mOFm(>1cKMf;eS{q4?y3o#E|MK#y|=O@Q2=SXn@$(R8l_mf?(c+jW! zu62#Q47V`&gncLSnk{Sv!50Po8Zv!_9;5#~R9F<+pEaldqPJ$*b6-POLAZmEt$7sv zxVmlOVCj4P$GoRqX9KxVnldZt38`tm++sF(v?|zCrnsvE?H9clWOrw73`Z&n~7c~*CIw0U& z5(TJTL_sDxmFTp%4-t@u;&L%fm_u<10_u3$Y<_UP{M(H%tGfBp7lq$N_JpO=Srr=D z9$*MFEQ)HZ+5E$2-!-qdn6TOWKGk|jD{OVg3 zqbg7hoGHH$!f z)Ykc620%&X%HA8dBPql3LzVM?qX?c#@HD{t{-bL*qr!OSdhcF-I)bNzhsFQ6{P`$w UPUOKkQ2^&eyb@?DHj~}-|EiBWd;kCd diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.yaml deleted file mode 100644 index 2b6e1883f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Pod.yaml +++ /dev/null @@ -1,747 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -4642229086806245627 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "265" - operator: 嫙&蒒5靇C'ɵK.Q貇 - values: - - "266" - matchFields: - - key: "267" - operator: 廷s{Ⱦdz@ùƸʋŀ樺ȃv渟7 - values: - - "268" - weight: -1049103969 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "261" - operator: s«öʮĀ< - values: - - "262" - matchFields: - - key: "263" - operator: Ĭ4y£軶 - values: - - "264" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: o_-.N.9D-F45eJ7 - operator: Exists - matchLabels: - 19..c_uo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p6: O_4Gj._BXt.O-7___-Y_um-_8r--684C - namespaces: - - "283" - topologyKey: "284" - weight: -1905643191 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte - operator: Exists - matchLabels: - yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k: 8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S - namespaces: - - "275" - topologyKey: "276" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J - operator: NotIn - values: - - 8._Q.6.I--2_9.v.--_.--4QQ.-s.H.Hf - matchLabels: - 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8: 3..0c.-.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.T-V_D_0-D - namespaces: - - "299" - topologyKey: "300" - weight: -1952582931 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: vvm-2qz7-3042017mh0-5-g-7-7---g88w24/3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g9 - operator: NotIn - values: - - szA_j - matchLabels: - 6.-L..-__0N_N.O30-_u.y: hT.-z-._7-5lL..-_--.Va - namespaces: - - "291" - topologyKey: "292" - automountServiceAccountToken: true - containers: - - args: - - "191" - command: - - "190" - env: - - name: "198" - value: "199" - valueFrom: - configMapKeyRef: - key: "205" - name: "204" - optional: false - fieldRef: - apiVersion: "200" - fieldPath: "201" - resourceFieldRef: - containerName: "202" - divisor: "804" - resource: "203" - secretKeyRef: - key: "207" - name: "206" - optional: true - envFrom: - - configMapRef: - name: "196" - optional: false - prefix: "195" - secretRef: - name: "197" - optional: true - image: "189" - imagePullPolicy: ɘ檲ɨ銦 - lifecycle: - postStart: - exec: - command: - - "227" - httpGet: - host: "230" - httpHeaders: - - name: "231" - value: "232" - path: "228" - port: "229" - scheme: 捘ɍi縱ù墴 - tcpSocket: - host: "233" - port: -1766555420 - preStop: - exec: - command: - - "234" - httpGet: - host: "237" - httpHeaders: - - name: "238" - value: "239" - path: "235" - port: "236" - scheme: m - tcpSocket: - host: "241" - port: "240" - livenessProbe: - exec: - command: - - "214" - failureThreshold: -172061933 - httpGet: - host: "216" - httpHeaders: - - name: "217" - value: "218" - path: "215" - port: 1035477124 - scheme: ǚrǜnh0åȂ - initialDelaySeconds: 1669671203 - periodSeconds: -2026931030 - successThreshold: -1843754483 - tcpSocket: - host: "219" - port: -1024794140 - timeoutSeconds: 636617833 - name: "188" - ports: - - containerPort: -999327618 - hostIP: "194" - hostPort: 828249878 - name: "193" - protocol: M 宸@Z^嫫猤痈C*ĕʄő芖{| - readinessProbe: - exec: - command: - - "220" - failureThreshold: -199511133 - httpGet: - host: "223" - httpHeaders: - - name: "224" - value: "225" - path: "221" - port: "222" - scheme: ȇe媹Hǝ呮}臷Ľð»ųKĵ - initialDelaySeconds: -2047333312 - periodSeconds: -1373541406 - successThreshold: 480521693 - tcpSocket: - host: "226" - port: -540225644 - timeoutSeconds: -1477511050 - resources: - limits: - GS5Ǎ: "526" - requests: - '}穠C]躢|)黰eȪ嵛4$%': "980" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ȓƇ$缔獵偐ę腬瓷碑=ɉ鎷卩蝾H韹寬 - drop: - - ï瓼猀2:öY鶪5w垁 - privileged: false - procMount: 傭Ȟ1酃=6 - readOnlyRootFilesystem: false - runAsGroup: 6160737734087677664 - runAsNonRoot: false - runAsUser: 246460675557743818 - seLinuxOptions: - level: "246" - role: "244" - type: "245" - user: "243" - stdinOnce: true - terminationMessagePath: "242" - terminationMessagePolicy: 綸_Ú8參遼ūPH炮掊°nʮ - volumeDevices: - - devicePath: "213" - name: "212" - volumeMounts: - - mountPath: "209" - mountPropagation: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - name: "208" - readOnly: true - subPath: "210" - subPathExpr: "211" - workingDir: "192" - dnsConfig: - nameservers: - - "307" - options: - - name: "309" - value: "310" - searches: - - "308" - dnsPolicy: 賲鐅臬dH巧 - enableServiceLinks: true - hostAliases: - - hostnames: - - "305" - ip: "304" - hostIPC: true - hostname: "259" - imagePullSecrets: - - name: "258" - initContainers: - - args: - - "132" - command: - - "131" - env: - - name: "139" - value: "140" - valueFrom: - configMapKeyRef: - key: "146" - name: "145" - optional: true - fieldRef: - apiVersion: "141" - fieldPath: "142" - resourceFieldRef: - containerName: "143" - divisor: "85" - resource: "144" - secretKeyRef: - key: "148" - name: "147" - optional: true - envFrom: - - configMapRef: - name: "137" - optional: true - prefix: "136" - secretRef: - name: "138" - optional: false - image: "130" - imagePullPolicy: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - lifecycle: - postStart: - exec: - command: - - "169" - httpGet: - host: "172" - httpHeaders: - - name: "173" - value: "174" - path: "170" - port: "171" - scheme: Ğİ*洣炽A@ʊʓ - tcpSocket: - host: "175" - port: -675641027 - preStop: - exec: - command: - - "176" - httpGet: - host: "178" - httpHeaders: - - name: "179" - value: "180" - path: "177" - port: 1781137795 - scheme: ş")珷 - tcpSocket: - host: "182" - port: "181" - livenessProbe: - exec: - command: - - "155" - failureThreshold: 327574193 - httpGet: - host: "158" - httpHeaders: - - name: "159" - value: "160" - path: "156" - port: "157" - scheme: 叚Fi皬择,Q捇ȸ{ - initialDelaySeconds: 753533242 - periodSeconds: 358822621 - successThreshold: 1946649472 - tcpSocket: - host: "162" - port: "161" - timeoutSeconds: 1130962147 - name: "129" - ports: - - containerPort: 654894632 - hostIP: "135" - hostPort: 33624773 - name: "134" - protocol: 譋娲瘹ɭȊɚɎ( - readinessProbe: - exec: - command: - - "163" - failureThreshold: -773009446 - httpGet: - host: "165" - httpHeaders: - - name: "166" - value: "167" - path: "164" - port: 1407547486 - scheme: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - initialDelaySeconds: -216367368 - periodSeconds: 2073854558 - successThreshold: -557582532 - tcpSocket: - host: "168" - port: -375094516 - timeoutSeconds: 578888856 - resources: - limits: - h^樅燴壩卄: "967" - requests: - Æ碛,1ZƜ/C龷ȪÆ: "750" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ʬ - drop: - - ʞĹ鑑6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ - privileged: false - procMount: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readOnlyRootFilesystem: false - runAsGroup: 6660890208081642035 - runAsNonRoot: true - runAsUser: 3218628390827875483 - seLinuxOptions: - level: "187" - role: "185" - type: "186" - user: "184" - stdin: true - stdinOnce: true - terminationMessagePath: "183" - terminationMessagePolicy: 'ɖgȏ哙ȍȂ揲ȼDDŽLŬp:' - tty: true - volumeDevices: - - devicePath: "154" - name: "153" - volumeMounts: - - mountPath: "150" - mountPropagation: 鏮嵒ƫS捕ɷD¡轫n - name: "149" - subPath: "151" - subPathExpr: "152" - workingDir: "133" - nodeName: "251" - nodeSelector: - "247": "248" - priority: 1995848794 - priorityClassName: "306" - readinessGates: - - conditionType: 鋎靀G¿əW# - runtimeClassName: "311" - schedulerName: "301" - securityContext: - fsGroup: -441585915417957997 - runAsGroup: 2456473031628327236 - runAsNonRoot: false - runAsUser: 4940823988154942939 - seLinuxOptions: - level: "255" - role: "253" - type: "254" - user: "252" - supplementalGroups: - - -3933586629366315370 - sysctls: - - name: "256" - value: "257" - serviceAccount: "250" - serviceAccountName: "249" - shareProcessNamespace: false - subdomain: "260" - terminationGracePeriodSeconds: -1448922471999191523 - tolerations: - - effect: =歍þ - key: "302" - operator: ūM鈱ɖ'蠨磼O_h盌3+Œ9两@8 - tolerationSeconds: 4473754095909577340 - value: "303" - volumes: - - awsElasticBlockStore: - fsType: "29" - partition: -1161251830 - volumeID: "28" - azureDisk: - cachingMode: l畣潁谯耨V6&]鴍Ɋ恧ȭ%Ǝ - diskName: "92" - diskURI: "93" - fsType: "94" - kind: "" - readOnly: true - azureFile: - secretName: "78" - shareName: "79" - cephfs: - monitors: - - "63" - path: "64" - secretFile: "66" - secretRef: - name: "67" - user: "65" - cinder: - fsType: "61" - secretRef: - name: "62" - volumeID: "60" - configMap: - defaultMode: -314157282 - items: - - key: "81" - mode: -983896210 - path: "82" - name: "80" - optional: false - csi: - driver: "124" - fsType: "125" - nodePublishSecretRef: - name: "128" - readOnly: true - volumeAttributes: - "126": "127" - downwardAPI: - defaultMode: 13677460 - items: - - fieldRef: - apiVersion: "71" - fieldPath: "72" - mode: 684408190 - path: "70" - resourceFieldRef: - containerName: "73" - divisor: "248" - resource: "74" - emptyDir: - medium: Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț - sizeLimit: "2" - fc: - fsType: "76" - lun: -1579157235 - readOnly: true - targetWWNs: - - "75" - wwids: - - "77" - flexVolume: - driver: "55" - fsType: "56" - options: - "58": "59" - readOnly: true - secretRef: - name: "57" - flocker: - datasetName: "68" - datasetUUID: "69" - gcePersistentDisk: - fsType: "27" - partition: 116584168 - pdName: "26" - readOnly: true - gitRepo: - directory: "32" - repository: "30" - revision: "31" - glusterfs: - endpoints: "45" - path: "46" - readOnly: true - hostPath: - path: "25" - type: ěĂ凗蓏Ŋ蛊ĉy緅縕 - iscsi: - fsType: "41" - initiatorName: "44" - iqn: "39" - iscsiInterface: "40" - lun: -1639873916 - portals: - - "42" - readOnly: true - secretRef: - name: "43" - targetPortal: "38" - name: "24" - nfs: - path: "37" - readOnly: true - server: "36" - persistentVolumeClaim: - claimName: "47" - photonPersistentDisk: - fsType: "96" - pdID: "95" - portworxVolume: - fsType: "111" - volumeID: "110" - projected: - defaultMode: 1794524651 - sources: - - configMap: - items: - - key: "106" - mode: -1870473043 - path: "107" - name: "105" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "101" - fieldPath: "102" - mode: -1009864962 - path: "100" - resourceFieldRef: - containerName: "103" - divisor: "272" - resource: "104" - secret: - items: - - key: "98" - mode: -1907421291 - path: "99" - name: "97" - optional: false - serviceAccountToken: - audience: "108" - expirationSeconds: 4696918449912036583 - path: "109" - quobyte: - group: "90" - registry: "87" - tenant: "91" - user: "89" - volume: "88" - rbd: - fsType: "50" - image: "49" - keyring: "53" - monitors: - - "48" - pool: "51" - readOnly: true - secretRef: - name: "54" - user: "52" - scaleIO: - fsType: "119" - gateway: "112" - protectionDomain: "115" - secretRef: - name: "114" - storageMode: "117" - storagePool: "116" - system: "113" - volumeName: "118" - secret: - defaultMode: -1946655205 - items: - - key: "34" - mode: -1261508418 - path: "35" - optional: true - secretName: "33" - storageos: - fsType: "122" - secretRef: - name: "123" - volumeName: "120" - volumeNamespace: "121" - vsphereVolume: - fsType: "84" - storagePolicyID: "86" - storagePolicyName: "85" - volumePath: "83" -status: - conditions: - - lastProbeTime: "2533-09-05T10:19:17Z" - lastTransitionTime: "2800-04-15T11:14:25Z" - message: "313" - reason: "312" - status: b轫ʓ滨ĖRh}颉hȱɷȰW - type: hp像-觗裓6Ř筿ɾ5Ų買霎ȃ - containerStatuses: - - containerID: "346" - image: "344" - imageID: "345" - lastState: - running: - startedAt: "2041-01-04T02:32:46Z" - terminated: - containerID: "343" - exitCode: 1387858949 - finishedAt: "2237-05-21T20:10:11Z" - message: "342" - reason: "341" - signal: 156368232 - startedAt: "2714-05-24T17:12:24Z" - waiting: - message: "340" - reason: "339" - name: "333" - ready: true - restartCount: -1372876567 - state: - running: - startedAt: "2912-12-15T17:53:00Z" - terminated: - containerID: "338" - exitCode: -299700271 - finishedAt: "2235-11-12T03:41:20Z" - message: "337" - reason: "336" - signal: -316291406 - startedAt: "2882-11-24T21:32:38Z" - waiting: - message: "335" - reason: "334" - hostIP: "317" - initContainerStatuses: - - containerID: "332" - image: "330" - imageID: "331" - lastState: - running: - startedAt: "2531-03-08T07:39:55Z" - terminated: - containerID: "329" - exitCode: -36217450 - finishedAt: "2213-09-09T00:43:38Z" - message: "328" - reason: "327" - signal: 1050889206 - startedAt: "2002-02-22T11:05:23Z" - waiting: - message: "326" - reason: "325" - name: "319" - ready: true - restartCount: 1272233359 - state: - running: - startedAt: "2034-12-24T21:21:19Z" - terminated: - containerID: "324" - exitCode: 420595064 - finishedAt: "2577-10-06T23:30:01Z" - message: "323" - reason: "322" - signal: 1195176401 - startedAt: "2237-12-07T03:53:03Z" - waiting: - message: "321" - reason: "320" - message: "314" - nominatedNodeName: "316" - phase: 7uPƒw©ɴĶ烷Ľ - podIP: "318" - qosClass: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - reason: "315" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.json deleted file mode 100644 index b2f3956e9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "kind": "PodAttachOptions", - "apiVersion": "v1", - "stdin": true, - "stderr": true, - "container": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodAttachOptions.pb deleted file mode 100644 index 359a779b9ec310e263b45afdf89934d205cd9fb8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45 zcmd0{C}!Xi<6Z)8kwXHRf+X>V?G5-17*G7te603i0`=s29Y_EG diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodLogOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodLogOptions.yaml deleted file mode 100644 index 845f9e455..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodLogOptions.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -container: "2" -follow: true -kind: PodLogOptions -limitBytes: 5323465663502687351 -sinceSeconds: 1002466899136229878 -tailLines: -6357999603795826160 -timestamps: true diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.json deleted file mode 100644 index bdd91aa3c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "kind": "PodPortForwardOptions", - "apiVersion": "v1", - "ports": [ - -1477656590 - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.pb deleted file mode 100644 index da9223a26e243785ca890b04328a2da393fb618a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 zcmd0{C}!Z2=3*){6cP={PYK8`Dsjs%Do-p*@h>RJ%+D(p;^z4Df7AY7|ABx}ib071 E0HJ;pSpWb4 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.yaml deleted file mode 100644 index 1f83d977f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodPortForwardOptions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: PodPortForwardOptions -ports: -- -1477656590 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.json deleted file mode 100644 index 1ab7ba0c4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "PodProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodProxyOptions.pb deleted file mode 100644 index c52bc3375bcc74b85722e4def402c5a4d23939cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36 rcmd0{C}!Xiuc-7dD9OyvD;8qrVlF|90%}uugu2;H4N!tPBw>FHq4p#W@cwQ#nvH2LXvEy zcHLB3)66XYp_r0b>6(cL*WJ}htkjC2g4lJJsMI=`DfV`%cX{szkI(nZ?~HC|*c29C zl=E;8m<_B89lNago7vVj!X4Mp|N)|;Yx~6IpCRY9Zx5@>Fr`1tnW3mTakE@(_XIsZW z{tgycc%Yw3W`UK5vQ(VLLKzECCgQFm6_GJt_}XRrlsi~gVurFTF*+!PvQhzM)eX|= zSB>8ruXjg$?s(^|skZdvk=93(BZV2$zAMoNhbcPR6sRennguibhi&Z6U{lB+?9ei1 z8uR!pHq{iE2)mbjZLz`nc!wwC%nh{%>vH+j^iW-7qS_oE?^*J;L>p_u*Tc6b`vio7 zEnS1993vw1^T+e<0**05tYC;$0b)&r*g|J3hD5Rr0TwDMe~d-+)_AB`c$P(I<#m-q z;ut|gZ)RPee{azPIIpYvMdGyu1gPjDRIFx%K6<|N0gk~4wcMDvqjStbs7k`ogr~|p zRI%Z$Ew9cbQBOi|2ZwXGu6Mo9{!1zmp{h{Hzq!7)&yeQk7l*P8Nljx+SDX8XlQC2^ zDqCz&)iY7BF*|azGU&<~p!JFTw?4r>>qGq>UG53T*HPZSXn zm4=SIjCG$gLLV+a-8hj5C7N(JQJ+|-ryJh-{CI5&_4cF9@7V-2t)E9Y_=z o`_$80Y#_A_bM1!`h$5!}(~|SvtL+#nn9jro6(t{HU0_7!4?=(df&c&j diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.after_roundtrip.yaml deleted file mode 100644 index cbaca3309..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.after_roundtrip.yaml +++ /dev/null @@ -1,115 +0,0 @@ -apiVersion: v1 -kind: PodStatusResult -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -status: - conditions: - - lastProbeTime: "2942-12-08T14:55:02Z" - lastTransitionTime: "2763-08-05T14:40:52Z" - message: "25" - reason: "24" - status: -Ǐ忄*齧獚敆Ȏțê - type: (ĿȊ甞谐颋DžSǡƏS - containerStatuses: - - containerID: "58" - image: "56" - imageID: "57" - lastState: - running: - startedAt: "2017-07-05T09:59:20Z" - terminated: - containerID: "55" - exitCode: 172857432 - finishedAt: "2619-11-08T20:15:12Z" - message: "54" - reason: "53" - signal: -110482268 - startedAt: "2301-04-13T22:07:52Z" - waiting: - message: "52" - reason: "51" - name: "45" - ready: false - restartCount: 1993018368 - state: - running: - startedAt: "2378-05-17T18:35:29Z" - terminated: - containerID: "50" - exitCode: -1134418089 - finishedAt: "2448-04-25T19:46:34Z" - message: "49" - reason: "48" - signal: -106888179 - startedAt: "1981-05-09T15:33:51Z" - waiting: - message: "47" - reason: "46" - hostIP: "29" - initContainerStatuses: - - containerID: "44" - image: "42" - imageID: "43" - lastState: - running: - startedAt: "2149-06-18T16:38:18Z" - terminated: - containerID: "41" - exitCode: 254375933 - finishedAt: "2516-08-23T06:28:28Z" - message: "40" - reason: "39" - signal: 523306325 - startedAt: "2874-05-09T23:28:59Z" - waiting: - message: "38" - reason: "37" - name: "31" - ready: true - restartCount: 1246233319 - state: - running: - startedAt: "2399-02-06T09:57:06Z" - terminated: - containerID: "36" - exitCode: -1487653240 - finishedAt: "2777-11-15T04:18:59Z" - message: "35" - reason: "34" - signal: -1997863172 - startedAt: "2908-03-20T00:45:43Z" - waiting: - message: "33" - reason: "32" - message: "26" - nominatedNodeName: "28" - phase: ƗǸƢ6/ʕV - podIP: "30" - qosClass: ƕP喂ƈ - reason: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.json deleted file mode 100644 index 146d4fd0e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "kind": "PodStatusResult", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "status": { - "phase": "ƗǸƢ6/ʕV", - "conditions": [ - { - "type": "(ĿȊ甞谐颋DžSǡƏS", - "status": "-Ǐ忄*齧獚敆Ȏțê", - "lastProbeTime": "2942-12-08T14:55:02Z", - "lastTransitionTime": "2763-08-05T14:40:52Z", - "reason": "24", - "message": "25" - } - ], - "message": "26", - "reason": "27", - "nominatedNodeName": "28", - "hostIP": "29", - "podIP": "30", - "initContainerStatuses": [ - { - "name": "31", - "state": { - "waiting": { - "reason": "32", - "message": "33" - }, - "running": { - "startedAt": "2399-02-06T09:57:06Z" - }, - "terminated": { - "exitCode": -1487653240, - "signal": -1997863172, - "reason": "34", - "message": "35", - "startedAt": "2908-03-20T00:45:43Z", - "finishedAt": "2777-11-15T04:18:59Z", - "containerID": "36" - } - }, - "lastState": { - "waiting": { - "reason": "37", - "message": "38" - }, - "running": { - "startedAt": "2149-06-18T16:38:18Z" - }, - "terminated": { - "exitCode": 254375933, - "signal": 523306325, - "reason": "39", - "message": "40", - "startedAt": "2874-05-09T23:28:59Z", - "finishedAt": "2516-08-23T06:28:28Z", - "containerID": "41" - } - }, - "ready": true, - "restartCount": 1246233319, - "image": "42", - "imageID": "43", - "containerID": "44" - } - ], - "containerStatuses": [ - { - "name": "45", - "state": { - "waiting": { - "reason": "46", - "message": "47" - }, - "running": { - "startedAt": "2378-05-17T18:35:29Z" - }, - "terminated": { - "exitCode": -1134418089, - "signal": -106888179, - "reason": "48", - "message": "49", - "startedAt": "1981-05-09T15:33:51Z", - "finishedAt": "2448-04-25T19:46:34Z", - "containerID": "50" - } - }, - "lastState": { - "waiting": { - "reason": "51", - "message": "52" - }, - "running": { - "startedAt": "2017-07-05T09:59:20Z" - }, - "terminated": { - "exitCode": 172857432, - "signal": -110482268, - "reason": "53", - "message": "54", - "startedAt": "2301-04-13T22:07:52Z", - "finishedAt": "2619-11-08T20:15:12Z", - "containerID": "55" - } - }, - "ready": false, - "restartCount": 1993018368, - "image": "56", - "imageID": "57", - "containerID": "58" - } - ], - "qosClass": "ƕP喂ƈ" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.pb deleted file mode 100644 index 61ac9e044bba60fbb9087e4928f967bc2b0b93e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 734 zcmXxgUr19?90%}wPN|0**yWHu+$XyaF&5^%=l(v^x2&TU$Wm6{P$5StrOsr6u{*x9Yl%kTW)$LIIucUHGEY!VAE zNqBeWg)`YD`6Z?HtO9%Kxe`1U$1VXD5Da7GnOim>zC(oBQ~B^D`xPA z9qcZDQ^4!*(9&iab8rTmZ1PP6UCRw^k-@rXhdWS}9ccI0X5-}4Ky7HE(i|P{S@yJq z8>@pif_EnSc!c~dU4z9OBOvti$BXVfjxj@`5J*%W5>0@_LVGKLvS=FuEL2o{oJF*1 z7%CRbvIwodsc?uK!)xg6tn>5lZTbM`aaO*J{k8!Q6wW%TQe^?E3YEND8|(WFX>NXTD8rD{ z6vlL|xqmo;Kvko%#RgS99r+tGL$}KP&a43%UzYyHmkEZlY^+;bT=fzozVqwcvkfCN zx9RB*tpAHID*}{Nx^(1Kr2D+F^wG-L=E>MnS>uny;>#B5>4vv4KVFkWz5QtGd-r8- z!R7l!Zy;Og4Md8Je(LEhG?1G5x%R^`M3GW}X}RkD>zxEDg!ZxxDoQRSI?o8qAB2Vh A`2YX_ diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.yaml deleted file mode 100644 index 45c5fd94b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodStatusResult.yaml +++ /dev/null @@ -1,118 +0,0 @@ -apiVersion: v1 -kind: PodStatusResult -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -status: - conditions: - - lastProbeTime: "2942-12-08T14:55:02Z" - lastTransitionTime: "2763-08-05T14:40:52Z" - message: "25" - reason: "24" - status: -Ǐ忄*齧獚敆Ȏțê - type: (ĿȊ甞谐颋DžSǡƏS - containerStatuses: - - containerID: "58" - image: "56" - imageID: "57" - lastState: - running: - startedAt: "2017-07-05T09:59:20Z" - terminated: - containerID: "55" - exitCode: 172857432 - finishedAt: "2619-11-08T20:15:12Z" - message: "54" - reason: "53" - signal: -110482268 - startedAt: "2301-04-13T22:07:52Z" - waiting: - message: "52" - reason: "51" - name: "45" - ready: false - restartCount: 1993018368 - state: - running: - startedAt: "2378-05-17T18:35:29Z" - terminated: - containerID: "50" - exitCode: -1134418089 - finishedAt: "2448-04-25T19:46:34Z" - message: "49" - reason: "48" - signal: -106888179 - startedAt: "1981-05-09T15:33:51Z" - waiting: - message: "47" - reason: "46" - hostIP: "29" - initContainerStatuses: - - containerID: "44" - image: "42" - imageID: "43" - lastState: - running: - startedAt: "2149-06-18T16:38:18Z" - terminated: - containerID: "41" - exitCode: 254375933 - finishedAt: "2516-08-23T06:28:28Z" - message: "40" - reason: "39" - signal: 523306325 - startedAt: "2874-05-09T23:28:59Z" - waiting: - message: "38" - reason: "37" - name: "31" - ready: true - restartCount: 1246233319 - state: - running: - startedAt: "2399-02-06T09:57:06Z" - terminated: - containerID: "36" - exitCode: -1487653240 - finishedAt: "2777-11-15T04:18:59Z" - message: "35" - reason: "34" - signal: -1997863172 - startedAt: "2908-03-20T00:45:43Z" - waiting: - message: "33" - reason: "32" - message: "26" - nominatedNodeName: "28" - phase: ƗǸƢ6/ʕV - podIP: "30" - qosClass: ƕP喂ƈ - reason: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.json deleted file mode 100644 index bcee336e8..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.json +++ /dev/null @@ -1,1022 +0,0 @@ -{ - "kind": "PodTemplate", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "45", - "hostPath": { - "path": "46", - "type": "DrȮ" - }, - "emptyDir": { - "medium": "励鹗塢ē ", - "sizeLimit": "995" - }, - "gcePersistentDisk": { - "pdName": "47", - "fsType": "48", - "partition": -664310043, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "49", - "fsType": "50", - "partition": 13677460, - "readOnly": true - }, - "gitRepo": { - "repository": "51", - "revision": "52", - "directory": "53" - }, - "secret": { - "secretName": "54", - "items": [ - { - "key": "55", - "path": "56", - "mode": 1557090007 - } - ], - "defaultMode": 819364842, - "optional": true - }, - "nfs": { - "server": "57", - "path": "58" - }, - "iscsi": { - "targetPortal": "59", - "iqn": "60", - "lun": -314157282, - "iscsiInterface": "61", - "fsType": "62", - "readOnly": true, - "portals": [ - "63" - ], - "secretRef": { - "name": "64" - }, - "initiatorName": "65" - }, - "glusterfs": { - "endpoints": "66", - "path": "67", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "68", - "readOnly": true - }, - "rbd": { - "monitors": [ - "69" - ], - "image": "70", - "fsType": "71", - "pool": "72", - "user": "73", - "keyring": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "76", - "fsType": "77", - "secretRef": { - "name": "78" - }, - "readOnly": true, - "options": { - "79": "80" - } - }, - "cinder": { - "volumeID": "81", - "fsType": "82", - "readOnly": true, - "secretRef": { - "name": "83" - } - }, - "cephfs": { - "monitors": [ - "84" - ], - "path": "85", - "user": "86", - "secretFile": "87", - "secretRef": { - "name": "88" - } - }, - "flocker": { - "datasetName": "89", - "datasetUUID": "90" - }, - "downwardAPI": { - "items": [ - { - "path": "91", - "fieldRef": { - "apiVersion": "92", - "fieldPath": "93" - }, - "resourceFieldRef": { - "containerName": "94", - "resource": "95", - "divisor": "291" - }, - "mode": 2107119206 - } - ], - "defaultMode": -2077638334 - }, - "fc": { - "targetWWNs": [ - "96" - ], - "lun": -2040518604, - "fsType": "97", - "wwids": [ - "98" - ] - }, - "azureFile": { - "secretName": "99", - "shareName": "100" - }, - "configMap": { - "name": "101", - "items": [ - { - "key": "102", - "path": "103", - "mode": -1907421291 - } - ], - "defaultMode": -1570767512, - "optional": false - }, - "vsphereVolume": { - "volumePath": "104", - "fsType": "105", - "storagePolicyName": "106", - "storagePolicyID": "107" - }, - "quobyte": { - "registry": "108", - "volume": "109", - "readOnly": true, - "user": "110", - "group": "111", - "tenant": "112" - }, - "azureDisk": { - "diskName": "113", - "diskURI": "114", - "cachingMode": "n宂¬轚9Ȏ瀮", - "fsType": "115", - "readOnly": true, - "kind": "Ō¾\\ĒP鄸靇杧ž譋娲瘹ɭ" - }, - "photonPersistentDisk": { - "pdID": "116", - "fsType": "117" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "118", - "items": [ - { - "key": "119", - "path": "120", - "mode": 2036549700 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "121", - "fieldRef": { - "apiVersion": "122", - "fieldPath": "123" - }, - "resourceFieldRef": { - "containerName": "124", - "resource": "125", - "divisor": "852" - }, - "mode": 75785535 - } - ] - }, - "configMap": { - "name": "126", - "items": [ - { - "key": "127", - "path": "128", - "mode": 813865935 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "129", - "expirationSeconds": 3094703520378368232, - "path": "130" - } - } - ], - "defaultMode": -1253565243 - }, - "portworxVolume": { - "volumeID": "131", - "fsType": "132" - }, - "scaleIO": { - "gateway": "133", - "system": "134", - "secretRef": { - "name": "135" - }, - "sslEnabled": true, - "protectionDomain": "136", - "storagePool": "137", - "storageMode": "138", - "volumeName": "139", - "fsType": "140" - }, - "storageos": { - "volumeName": "141", - "volumeNamespace": "142", - "fsType": "143", - "readOnly": true, - "secretRef": { - "name": "144" - } - }, - "csi": { - "driver": "145", - "readOnly": true, - "fsType": "146", - "volumeAttributes": { - "147": "148" - }, - "nodePublishSecretRef": { - "name": "149" - } - } - } - ], - "initContainers": [ - { - "name": "150", - "image": "151", - "command": [ - "152" - ], - "args": [ - "153" - ], - "workingDir": "154", - "ports": [ - { - "name": "155", - "hostPort": -737070070, - "containerPort": -1417286635, - "protocol": "/C龷ȪÆl殛瓷雼浢Ü礽绅", - "hostIP": "156" - } - ], - "envFrom": [ - { - "prefix": "157", - "configMapRef": { - "name": "158", - "optional": true - }, - "secretRef": { - "name": "159", - "optional": false - } - } - ], - "env": [ - { - "name": "160", - "value": "161", - "valueFrom": { - "fieldRef": { - "apiVersion": "162", - "fieldPath": "163" - }, - "resourceFieldRef": { - "containerName": "164", - "resource": "165", - "divisor": "526" - }, - "configMapKeyRef": { - "name": "166", - "key": "167", - "optional": false - }, - "secretKeyRef": { - "name": "168", - "key": "169", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "i皬择,Q捇ȸ{+ɸ殁Ka縳": "499" - }, - "requests": { - "笓珣筩ƐP_痸荎": "787" - } - }, - "volumeMounts": [ - { - "name": "170", - "mountPath": "171", - "subPath": "172", - "mountPropagation": "¿燥ǖ_è绺", - "subPathExpr": "173" - } - ], - "volumeDevices": [ - { - "name": "174", - "devicePath": "175" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "176" - ] - }, - "httpGet": { - "path": "177", - "port": -662805900, - "host": "178", - "httpHeaders": [ - { - "name": "179", - "value": "180" - } - ] - }, - "tcpSocket": { - "port": "181", - "host": "182" - }, - "initialDelaySeconds": 578888856, - "timeoutSeconds": 2073854558, - "periodSeconds": -557582532, - "successThreshold": -773009446, - "failureThreshold": -1040245211 - }, - "readinessProbe": { - "exec": { - "command": [ - "183" - ] - }, - "httpGet": { - "path": "184", - "port": -2064088433, - "host": "185", - "scheme": "Do©Ǿt'容柚ʕIã陫ʋs", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 229600975, - "timeoutSeconds": -35598353, - "periodSeconds": -1697933829, - "successThreshold": -1438986781, - "failureThreshold": -330720710 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1348141491, - "host": "192", - "scheme": "Ȃ揲ȼ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - } - }, - "preStop": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 468716734, - "host": "199", - "scheme": "Cʖ畬x骀", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - } - }, - "terminationMessagePath": "204", - "terminationMessagePolicy": "ů湙騘\u0026", - "imagePullPolicy": "Ȗ脵鴈Ō", - "securityContext": { - "capabilities": { - "add": [ - "yǠ/淹\\韲翁\u0026ʢsɜ" - ], - "drop": [ - "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "205", - "role": "206", - "type": "207", - "level": "208" - }, - "runAsUser": -1473821783696471652, - "runAsGroup": 8318470556027199025, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "楙¯ĦE勗E" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "209", - "image": "210", - "command": [ - "211" - ], - "args": [ - "212" - ], - "workingDir": "213", - "ports": [ - { - "name": "214", - "hostPort": 1083816849, - "containerPort": 1655406148, - "protocol": "Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o", - "hostIP": "215" - } - ], - "envFrom": [ - { - "prefix": "216", - "configMapRef": { - "name": "217", - "optional": false - }, - "secretRef": { - "name": "218", - "optional": true - } - } - ], - "env": [ - { - "name": "219", - "value": "220", - "valueFrom": { - "fieldRef": { - "apiVersion": "221", - "fieldPath": "222" - }, - "resourceFieldRef": { - "containerName": "223", - "resource": "224", - "divisor": "217" - }, - "configMapKeyRef": { - "name": "225", - "key": "226", - "optional": false - }, - "secretKeyRef": { - "name": "227", - "key": "228", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Ŗ怳冘HǺƶȤ^": "698" - }, - "requests": { - "ldg滠鼍ƭt?": "747" - } - }, - "volumeMounts": [ - { - "name": "229", - "readOnly": true, - "mountPath": "230", - "subPath": "231", - "mountPropagation": "$", - "subPathExpr": "232" - } - ], - "volumeDevices": [ - { - "name": "233", - "devicePath": "234" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "235" - ] - }, - "httpGet": { - "path": "236", - "port": "237", - "host": "238", - "scheme": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c", - "httpHeaders": [ - { - "name": "239", - "value": "240" - } - ] - }, - "tcpSocket": { - "port": "241", - "host": "242" - }, - "initialDelaySeconds": 1288053477, - "timeoutSeconds": -163325250, - "periodSeconds": 1607133856, - "successThreshold": 1891896870, - "failureThreshold": -1321131665 - }, - "readinessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "0åȂ町恰nj揠8lj", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": -2049272966, - "host": "249" - }, - "initialDelaySeconds": -1188153605, - "timeoutSeconds": -427769948, - "periodSeconds": 912004803, - "successThreshold": -2098817064, - "failureThreshold": 1231820696 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": 1736916432, - "host": "252", - "scheme": "a坩O`涁İ而踪鄌eÞȦY籎顒", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - } - }, - "preStop": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": 824682619, - "host": "259", - "scheme": "縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ", - "httpHeaders": [ - { - "name": "260", - "value": "261" - } - ] - }, - "tcpSocket": { - "port": "262", - "host": "263" - } - } - }, - "terminationMessagePath": "264", - "terminationMessagePolicy": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "imagePullPolicy": ":hoĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵", - "securityContext": { - "capabilities": { - "add": [ - "Ǯń" - ], - "drop": [ - "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "265", - "role": "266", - "type": "267", - "level": "268" - }, - "runAsUser": -8865561464185465727, - "runAsGroup": -8271749906556661169, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ĉş蝿ɖȃ賲鐅臬" - } - } - ], - "terminationGracePeriodSeconds": -1799108093609470992, - "activeDeadlineSeconds": -1245112587824234591, - "dnsPolicy": "鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛", - "nodeSelector": { - "269": "270" - }, - "serviceAccountName": "271", - "serviceAccount": "272", - "automountServiceAccountToken": false, - "nodeName": "273", - "hostIPC": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -4782997474747062799, - "runAsGroup": -8992663220934524403, - "runAsNonRoot": false, - "supplementalGroups": [ - -4505867233821630574 - ], - "fsGroup": 6775077391312000638, - "sysctls": [ - { - "name": "278", - "value": "279" - } - ] - }, - "imagePullSecrets": [ - { - "name": "280" - } - ], - "hostname": "281", - "subdomain": "282", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "283", - "operator": "C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛", - "values": [ - "284" - ] - } - ], - "matchFields": [ - { - "key": "285", - "operator": "樺ȃ", - "values": [ - "286" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1650568978, - "preference": { - "matchExpressions": [ - { - "key": "287", - "operator": "¤7djƯĖ漘Z剚敍0)鈼¬", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "棂p儼Ƿ裚瓶釆Ɗ+j忊", - "values": [ - "290" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-1c--33vk78-8g/Jnf": "ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k" - }, - "matchExpressions": [ - { - "key": "a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "297" - ], - "topologyKey": "298" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -832805508, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV": "18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3" - }, - "matchExpressions": [ - { - "key": "n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n", - "operator": "NotIn", - "values": [ - "E__K_g1cXfr.4_.-_-_-...1py_t" - ] - } - ] - }, - "namespaces": [ - "305" - ], - "topologyKey": "306" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "szA_--_.-.6GA26h": "5Nj-d-4_4--.-_Z4.L3" - }, - "matchExpressions": [ - { - "key": "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT", - "operator": "In", - "values": [ - "5-.-.T-V_D_0-K_A-_9_ZC" - ] - } - ] - }, - "namespaces": [ - "313" - ], - "topologyKey": "314" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1873425934, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2": "1Ys_Mop34_-y.H" - }, - "matchExpressions": [ - { - "key": "4.B.__6m", - "operator": "In", - "values": [ - "3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - } - ] - } - }, - "schedulerName": "323", - "tolerations": [ - { - "key": "324", - "operator": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e", - "value": "325", - "effect": "滨Ė", - "tolerationSeconds": 6074530584991892487 - } - ], - "hostAliases": [ - { - "ip": "326", - "hostnames": [ - "327" - ] - } - ], - "priorityClassName": "328", - "priority": 147618179, - "dnsConfig": { - "nameservers": [ - "329" - ], - "searches": [ - "330" - ], - "options": [ - { - "name": "331", - "value": "332" - } - ] - }, - "readinessGates": [ - { - "conditionType": "Ȱ" - } - ], - "runtimeClassName": "333", - "enableServiceLinks": true - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.pb deleted file mode 100644 index a34b99212b073b6a343bafac8b575bebf2b53b49..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4467 zcmYjUd2|%VnV%YQxkKzp=W5C1##c^BWv;aw#0AqRm z9_WM-Ab~&+tc`0o?a1DqwsRAI!_D~-hbWIE7n0pbNpyRQB2A^< z)^}2@dQX}jZanmswkV0H};j* z?#o_eTh+e5x1gxuA8UtD>J$!XJkryra>(HAM9hfi?1Z}PL~=iwoEIEA<}Z0a*XJ28 z%TBZtBHDD6V<&Q+ohTlJVX4Z`j+A?X$2^gy6TW)<>tJoqSYKLF;MfP&k$nl)K$W-n zcOXrpHojywcLs5GD)V-#xa?GQ+o_f~>CJFy6P-asgDR3L5mi$qMbt%6){7(e&j0D= z#Q_(Xe5?A#+3x)7*Egk30})`VB&NeiA~2#E0*qvrT~ge$!ky)j)1?zduT3p1NS?)kM1_iAcBQ*d;a3E@>Y0G;GxQX^Vp0MSJ8qX&}M?OYc0(-JQbO zWrhD_3dg}fQSd*QfmV8_s7mwzF zS_Nb(y3@8O3C18u6`l1RCqDfyD&K8aNuph)BARDcr3JP%lQ_F7ud}7wRV4*Bt14{J zoM;U=qUsKm3W-%gh$g!18gbh-nrPP~YS-j>uv1eOpmY~}VV9=47)J+#A;KE$(Zvi0 zXV<}WojQ>lW_2mY2^3PPLn?Jhr4FeCjxO5rV3!WN3^5;3ZVqQR2oEfS0!wm1Pz=}x zQG?)7gTz~HfBtN$V>JI<X;QJo-&69k$buY?znXBEPoD-bH0&qdugzxD^xuYXdgrz6QVL9+9;Y1f1qxGP^ax064+m+04kVyBPkGg_^1?! zHV=rt2#ApqM`Ur8?T^TVxDU9WL_H@u?|?0YMTCk@Z~37Qr^eg(x!jAurG#gCDGLjg zTt8xC<~&M6mD`e)4Okq-%zKUU!+r}sho@hR@v6aC>Ug9}~^S9Axfs@Gm?^ymA^-p_@D z-ViE1AL-ej#kMN*R`a z45bhU+aigZ$vJ$L*52-5arLr^!ST!fGjFnkuNpf44EMwB8@E_Pry|3L#@lz!XM9c8 zQf4xd2J@UsA~+?HMD!emFI`iDxZg!pN(v9PMJ1JgVj6PT*iwxV-TmzN$?=94$4-nj zubilf9K1MwdCfb!7S0dVclpi)_g?x%B6CS%4$7j-!F|7-Wr51n5%g7Clbj>HWnC;q z(1}jnX#H+-LUV0-@l^4P(Lzrwb*aUO`%TmmS>jcYD9eAdM1})GA!jqhv9tdC(6K>l zU+2U@tL&6MaUiOlC6daz>lyB;X*S0<&7XEWI;u9tHyro>qdyQ+<2>^)zbDqR;>X&* z?21dcb+M)@wpy&d*!kh4bRXi(s3D5TCxao-BRP};s6^@HH4l2Bt;_;_#LE;yc(COUkD z{OpNNYp@~EV;$&?RMz?HBIUio!lvL*W8g?+r1h$MiP&KG0Rgd3y z{zh@b$NzA@5GB~yownekGZWU4NN>#{l=8IqfUhB3cQsJyF9>&cMaql9C2f0=Z9lS= zBWRn@@hG&TC!#SS8t8a5gnQyNn&m6DnlB|T9q-HvR9hFi0xc0wbFjHHGF0iWxWIZD zW&Mgmzp}-Dc`pCq{;H#eA(YVg@Sdlwvi|nxh&~^wKb)Hx_SCN)EA$WfJ#*)ew+Fk= zt+!5fg%6g5T2BVcyTUam;gSPiSRrfTA|NCM2wek2T4#I9wiV^P$}#UXXj@ccHK{?< zrkdvX>cg-8+qJUkc zum>7E)r>rL*mby=fD#X*^eDPBl{CP#+oZb0|8(&Sf!-Cu>Tp-dXp?^+*xETh zFmdeNvA)dZp{|o)23&lsmFNmT*=iZ|7ciE}zcKCe#(SULiyk`uRqlDVLgQVdXS9tO z;}^Y^)^K%d@IZ}q{E+x!WdHDJ8{4MybJ#kApJ_GaX9o+1C;GxoHKB^jk&@zZ&)kgQ zRSzsPM7|@At3n(!|0UcE6_X7ZOVaLbnvV4?Nhz6|d11+(R5M4zs(^P00yeR**}!{))IX z4!|eIGS1Mkk+fToGVvZ}mx)*Iz~(whAREo~%cMORgLNh`g_Y*I-LEYagiWvWbBMkk zV-=fH3e3v-df^>G#3sQn30tvgZZlUXf+_LkhuKJNW;qZ=mJpw z`jRwkZpjof`N`n;@=VvPC8oK;+(I_2+ngiFX3Qms56OPdgqTPST}YzpDvsku5O)c2 zFK~|ByoDyluvSo)E~M&KeulC#18>B#DT4}Zrpm(05?_S4Enp~?bRakf@4#sozXRZ1 z+@Nh1voV{)7!W7>D7m|KY}Phy)-&>U%iz1DWNl261QT*5;yg1?%*`}~t$R$I25w>< z3$K780qeVQ3dvi`+rg7(6vkSMUpJFs$qI8JHVrd%G5A0v@PWwuD4OWrJcFuiXJ^mtvh2i7Bi$H|WArAsu9qEa6=}Bp0M{+48A*$->SMDgO2W>B`uDO^!YE06>qmXPKGM_A}5Ef-qT~Xp)*%P zLq$x2%0LHUR|A2oAqqMOyB3Hlu}(o$2E5cL@KUH6104h)Ixw~GK?hM82vrRL9gDf2 zbFQ~THEmYu`M+Cj9V+qnzdtw7Z*}ZjkrwLjW-vnr7(9!c5o)Ull{JOh&ySa{GDB7U z;X{X`AVk+vpsx^3WXOU5;0Hnze>i$IRC0Er(j03E4GmJ@No#VsWOfh0;pZ7@)HI%5 z>Hp=u_vj(RE=Z#3ZX3J(2s{Vki2fMtAn+^z4s}!q3Xj>H|5Et%?Wys@pO^hL7RQ8- z8@kJ4L-FkJgR)qMNQHwNML`6*EkoGQP?^@UqPyq52NIxFSKKp`vqsNPjO=_N*fC%= z)Lc8he5@&QqV-y7Zqyv;y0A?9|I3&_Lj{iE_~_1+9nLQr3cg@12|&>O){cLUm2twq zo&3u`#ZoH{_B7v(fs^zK#Jv;^1oYauU=qAq7z*hw_$+^NGzJEBPxa?pWnKQ^sBVLS zcH=RyK@7O1iJ?Ljvw#{J&#*moMOxA5^O6Ooqc=c8bOu-ltxN(-`eq4^w~MVWVJ2Mfw@_*_-EsY3NthuW_OMigIHxT`Nx zd)Qy#+yC2Nv7@WFCtE`;-pYiM{lEXVq0QU8Hu{v3;IRU;@RS0o`%%GvUV7<|=ouy& jsuQ00E~r$AJ+UN--a_auf|sek^HW$ZNnaw!g4_0gHjt-7 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.yaml deleted file mode 100644 index 39cf09459..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.after_roundtrip.yaml +++ /dev/null @@ -1,692 +0,0 @@ -apiVersion: v1 -kind: PodTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -template: - metadata: - annotations: - "31": "32" - clusterName: "37" - creationTimestamp: null - deletionGracePeriodSeconds: 7323204920313990232 - finalizers: - - "36" - generateName: "25" - generation: 1905795315403748486 - labels: - "29": "30" - managedFields: - - apiVersion: "39" - manager: "38" - operation: B峅x4%a - name: "24" - namespace: "26" - ownerReferences: - - apiVersion: "33" - blockOwnerDeletion: false - controller: true - kind: "34" - name: "35" - uid: 谐颋DžSǡƏS$+½H牗洝尿 - resourceVersion: "1092536316763508004" - selfLink: "27" - uid: ^苣 - spec: - activeDeadlineSeconds: -1245112587824234591 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "287" - operator: ¤7djƯĖ漘Z剚敍0)鈼¬ - values: - - "288" - matchFields: - - key: "289" - operator: 棂p儼Ƿ裚瓶釆Ɗ+j忊 - values: - - "290" - weight: -1650568978 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "283" - operator: C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛 - values: - - "284" - matchFields: - - key: "285" - operator: 樺ȃ - values: - - "286" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n - operator: NotIn - values: - - E__K_g1cXfr.4_.-_-_-...1py_t - matchLabels: - 65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV: 18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3 - namespaces: - - "305" - topologyKey: "306" - weight: -832805508 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp - operator: DoesNotExist - matchLabels: - 6-1c--33vk78-8g/Jnf: ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k - namespaces: - - "297" - topologyKey: "298" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4.B.__6m - operator: In - values: - - 3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn - matchLabels: - a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2: 1Ys_Mop34_-y.H - namespaces: - - "321" - topologyKey: "322" - weight: -1873425934 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT - operator: In - values: - - 5-.-.T-V_D_0-K_A-_9_ZC - matchLabels: - szA_--_.-.6GA26h: 5Nj-d-4_4--.-_Z4.L3 - namespaces: - - "313" - topologyKey: "314" - automountServiceAccountToken: false - containers: - - args: - - "212" - command: - - "211" - env: - - name: "219" - value: "220" - valueFrom: - configMapKeyRef: - key: "226" - name: "225" - optional: false - fieldRef: - apiVersion: "221" - fieldPath: "222" - resourceFieldRef: - containerName: "223" - divisor: "217" - resource: "224" - secretKeyRef: - key: "228" - name: "227" - optional: false - envFrom: - - configMapRef: - name: "217" - optional: false - prefix: "216" - secretRef: - name: "218" - optional: true - image: "210" - imagePullPolicy: :hoĂɋ瀐<ɉ湨H=å睫}堇硲蕵 - lifecycle: - postStart: - exec: - command: - - "250" - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "251" - port: 1736916432 - scheme: a坩O`涁İ而踪鄌eÞȦY籎顒 - tcpSocket: - host: "256" - port: "255" - preStop: - exec: - command: - - "257" - httpGet: - host: "259" - httpHeaders: - - name: "260" - value: "261" - path: "258" - port: 824682619 - scheme: 縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ - tcpSocket: - host: "263" - port: "262" - livenessProbe: - exec: - command: - - "235" - failureThreshold: -1321131665 - httpGet: - host: "238" - httpHeaders: - - name: "239" - value: "240" - path: "236" - port: "237" - scheme: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - initialDelaySeconds: 1288053477 - periodSeconds: 1607133856 - successThreshold: 1891896870 - tcpSocket: - host: "242" - port: "241" - timeoutSeconds: -163325250 - name: "209" - ports: - - containerPort: 1655406148 - hostIP: "215" - hostPort: 1083816849 - name: "214" - protocol: Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o - readinessProbe: - exec: - command: - - "243" - failureThreshold: 1231820696 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "249" - port: -2049272966 - timeoutSeconds: -427769948 - resources: - limits: - Ŗ怳冘HǺƶȤ^: "698" - requests: - ldg滠鼍ƭt?: "747" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ǯń - drop: - - ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - privileged: false - procMount: ĉş蝿ɖȃ賲鐅臬 - readOnlyRootFilesystem: true - runAsGroup: -8271749906556661169 - runAsNonRoot: false - runAsUser: -8865561464185465727 - seLinuxOptions: - level: "268" - role: "266" - type: "267" - user: "265" - terminationMessagePath: "264" - terminationMessagePolicy: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - volumeDevices: - - devicePath: "234" - name: "233" - volumeMounts: - - mountPath: "230" - mountPropagation: $ - name: "229" - readOnly: true - subPath: "231" - subPathExpr: "232" - workingDir: "213" - dnsConfig: - nameservers: - - "329" - options: - - name: "331" - value: "332" - searches: - - "330" - dnsPolicy: 鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛 - enableServiceLinks: true - hostAliases: - - hostnames: - - "327" - ip: "326" - hostIPC: true - hostname: "281" - imagePullSecrets: - - name: "280" - initContainers: - - args: - - "153" - command: - - "152" - env: - - name: "160" - value: "161" - valueFrom: - configMapKeyRef: - key: "167" - name: "166" - optional: false - fieldRef: - apiVersion: "162" - fieldPath: "163" - resourceFieldRef: - containerName: "164" - divisor: "526" - resource: "165" - secretKeyRef: - key: "169" - name: "168" - optional: false - envFrom: - - configMapRef: - name: "158" - optional: true - prefix: "157" - secretRef: - name: "159" - optional: false - image: "151" - imagePullPolicy: Ȗ脵鴈Ō - lifecycle: - postStart: - exec: - command: - - "190" - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1348141491 - scheme: Ȃ揲ȼ - tcpSocket: - host: "196" - port: "195" - preStop: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: 468716734 - scheme: Cʖ畬x骀 - tcpSocket: - host: "203" - port: "202" - livenessProbe: - exec: - command: - - "176" - failureThreshold: -1040245211 - httpGet: - host: "178" - httpHeaders: - - name: "179" - value: "180" - path: "177" - port: -662805900 - initialDelaySeconds: 578888856 - periodSeconds: -557582532 - successThreshold: -773009446 - tcpSocket: - host: "182" - port: "181" - timeoutSeconds: 2073854558 - name: "150" - ports: - - containerPort: -1417286635 - hostIP: "156" - hostPort: -737070070 - name: "155" - protocol: /C龷ȪÆl殛瓷雼浢Ü礽绅 - readinessProbe: - exec: - command: - - "183" - failureThreshold: -330720710 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "184" - port: -2064088433 - scheme: Do©Ǿt'容柚ʕIã陫ʋs - initialDelaySeconds: 229600975 - periodSeconds: -1697933829 - successThreshold: -1438986781 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -35598353 - resources: - limits: - i皬择,Q捇ȸ{+ɸ殁Ka縳: "499" - requests: - 笓珣筩ƐP_痸荎: "787" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - yǠ/淹\韲翁&ʢsɜ - drop: - - \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - privileged: false - procMount: 楙¯ĦE勗E - readOnlyRootFilesystem: false - runAsGroup: 8318470556027199025 - runAsNonRoot: false - runAsUser: -1473821783696471652 - seLinuxOptions: - level: "208" - role: "206" - type: "207" - user: "205" - stdin: true - stdinOnce: true - terminationMessagePath: "204" - terminationMessagePolicy: ů湙騘& - tty: true - volumeDevices: - - devicePath: "175" - name: "174" - volumeMounts: - - mountPath: "171" - mountPropagation: ¿燥ǖ_è绺 - name: "170" - subPath: "172" - subPathExpr: "173" - workingDir: "154" - nodeName: "273" - nodeSelector: - "269": "270" - priority: 147618179 - priorityClassName: "328" - readinessGates: - - conditionType: Ȱ - runtimeClassName: "333" - schedulerName: "323" - securityContext: - fsGroup: 6775077391312000638 - runAsGroup: -8992663220934524403 - runAsNonRoot: false - runAsUser: -4782997474747062799 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - supplementalGroups: - - -4505867233821630574 - sysctls: - - name: "278" - value: "279" - serviceAccount: "272" - serviceAccountName: "271" - shareProcessNamespace: true - subdomain: "282" - terminationGracePeriodSeconds: -1799108093609470992 - tolerations: - - effect: 滨Ė - key: "324" - operator: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - tolerationSeconds: 6074530584991892487 - value: "325" - volumes: - - awsElasticBlockStore: - fsType: "50" - partition: 13677460 - readOnly: true - volumeID: "49" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "113" - diskURI: "114" - fsType: "115" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "99" - shareName: "100" - cephfs: - monitors: - - "84" - path: "85" - secretFile: "87" - secretRef: - name: "88" - user: "86" - cinder: - fsType: "82" - readOnly: true - secretRef: - name: "83" - volumeID: "81" - configMap: - defaultMode: -1570767512 - items: - - key: "102" - mode: -1907421291 - path: "103" - name: "101" - optional: false - csi: - driver: "145" - fsType: "146" - nodePublishSecretRef: - name: "149" - readOnly: true - volumeAttributes: - "147": "148" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "92" - fieldPath: "93" - mode: 2107119206 - path: "91" - resourceFieldRef: - containerName: "94" - divisor: "291" - resource: "95" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "97" - lun: -2040518604 - targetWWNs: - - "96" - wwids: - - "98" - flexVolume: - driver: "76" - fsType: "77" - options: - "79": "80" - readOnly: true - secretRef: - name: "78" - flocker: - datasetName: "89" - datasetUUID: "90" - gcePersistentDisk: - fsType: "48" - partition: -664310043 - pdName: "47" - readOnly: true - gitRepo: - directory: "53" - repository: "51" - revision: "52" - glusterfs: - endpoints: "66" - path: "67" - readOnly: true - hostPath: - path: "46" - type: DrȮ - iscsi: - fsType: "62" - initiatorName: "65" - iqn: "60" - iscsiInterface: "61" - lun: -314157282 - portals: - - "63" - readOnly: true - secretRef: - name: "64" - targetPortal: "59" - name: "45" - nfs: - path: "58" - server: "57" - persistentVolumeClaim: - claimName: "68" - readOnly: true - photonPersistentDisk: - fsType: "117" - pdID: "116" - portworxVolume: - fsType: "132" - volumeID: "131" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "127" - mode: 813865935 - path: "128" - name: "126" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "122" - fieldPath: "123" - mode: 75785535 - path: "121" - resourceFieldRef: - containerName: "124" - divisor: "852" - resource: "125" - secret: - items: - - key: "119" - mode: 2036549700 - path: "120" - name: "118" - optional: false - serviceAccountToken: - audience: "129" - expirationSeconds: 3094703520378368232 - path: "130" - quobyte: - group: "111" - readOnly: true - registry: "108" - tenant: "112" - user: "110" - volume: "109" - rbd: - fsType: "71" - image: "70" - keyring: "74" - monitors: - - "69" - pool: "72" - readOnly: true - secretRef: - name: "75" - user: "73" - scaleIO: - fsType: "140" - gateway: "133" - protectionDomain: "136" - secretRef: - name: "135" - sslEnabled: true - storageMode: "138" - storagePool: "137" - system: "134" - volumeName: "139" - secret: - defaultMode: 819364842 - items: - - key: "55" - mode: 1557090007 - path: "56" - optional: true - secretName: "54" - storageos: - fsType: "143" - readOnly: true - secretRef: - name: "144" - volumeName: "141" - volumeNamespace: "142" - vsphereVolume: - fsType: "105" - storagePolicyID: "107" - storagePolicyName: "106" - volumePath: "104" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.json deleted file mode 100644 index d64c77a0b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.json +++ /dev/null @@ -1,1024 +0,0 @@ -{ - "kind": "PodTemplate", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39", - "fields": {"40":{"41":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "45", - "hostPath": { - "path": "46", - "type": "DrȮ" - }, - "emptyDir": { - "medium": "励鹗塢ē ", - "sizeLimit": "995" - }, - "gcePersistentDisk": { - "pdName": "47", - "fsType": "48", - "partition": -664310043, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "49", - "fsType": "50", - "partition": 13677460, - "readOnly": true - }, - "gitRepo": { - "repository": "51", - "revision": "52", - "directory": "53" - }, - "secret": { - "secretName": "54", - "items": [ - { - "key": "55", - "path": "56", - "mode": 1557090007 - } - ], - "defaultMode": 819364842, - "optional": true - }, - "nfs": { - "server": "57", - "path": "58" - }, - "iscsi": { - "targetPortal": "59", - "iqn": "60", - "lun": -314157282, - "iscsiInterface": "61", - "fsType": "62", - "readOnly": true, - "portals": [ - "63" - ], - "secretRef": { - "name": "64" - }, - "initiatorName": "65" - }, - "glusterfs": { - "endpoints": "66", - "path": "67", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "68", - "readOnly": true - }, - "rbd": { - "monitors": [ - "69" - ], - "image": "70", - "fsType": "71", - "pool": "72", - "user": "73", - "keyring": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "76", - "fsType": "77", - "secretRef": { - "name": "78" - }, - "readOnly": true, - "options": { - "79": "80" - } - }, - "cinder": { - "volumeID": "81", - "fsType": "82", - "readOnly": true, - "secretRef": { - "name": "83" - } - }, - "cephfs": { - "monitors": [ - "84" - ], - "path": "85", - "user": "86", - "secretFile": "87", - "secretRef": { - "name": "88" - } - }, - "flocker": { - "datasetName": "89", - "datasetUUID": "90" - }, - "downwardAPI": { - "items": [ - { - "path": "91", - "fieldRef": { - "apiVersion": "92", - "fieldPath": "93" - }, - "resourceFieldRef": { - "containerName": "94", - "resource": "95", - "divisor": "291" - }, - "mode": 2107119206 - } - ], - "defaultMode": -2077638334 - }, - "fc": { - "targetWWNs": [ - "96" - ], - "lun": -2040518604, - "fsType": "97", - "wwids": [ - "98" - ] - }, - "azureFile": { - "secretName": "99", - "shareName": "100" - }, - "configMap": { - "name": "101", - "items": [ - { - "key": "102", - "path": "103", - "mode": -1907421291 - } - ], - "defaultMode": -1570767512, - "optional": false - }, - "vsphereVolume": { - "volumePath": "104", - "fsType": "105", - "storagePolicyName": "106", - "storagePolicyID": "107" - }, - "quobyte": { - "registry": "108", - "volume": "109", - "readOnly": true, - "user": "110", - "group": "111", - "tenant": "112" - }, - "azureDisk": { - "diskName": "113", - "diskURI": "114", - "cachingMode": "n宂¬轚9Ȏ瀮", - "fsType": "115", - "readOnly": true, - "kind": "Ō¾\\ĒP鄸靇杧ž譋娲瘹ɭ" - }, - "photonPersistentDisk": { - "pdID": "116", - "fsType": "117" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "118", - "items": [ - { - "key": "119", - "path": "120", - "mode": 2036549700 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "121", - "fieldRef": { - "apiVersion": "122", - "fieldPath": "123" - }, - "resourceFieldRef": { - "containerName": "124", - "resource": "125", - "divisor": "852" - }, - "mode": 75785535 - } - ] - }, - "configMap": { - "name": "126", - "items": [ - { - "key": "127", - "path": "128", - "mode": 813865935 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "129", - "expirationSeconds": 3094703520378368232, - "path": "130" - } - } - ], - "defaultMode": -1253565243 - }, - "portworxVolume": { - "volumeID": "131", - "fsType": "132" - }, - "scaleIO": { - "gateway": "133", - "system": "134", - "secretRef": { - "name": "135" - }, - "sslEnabled": true, - "protectionDomain": "136", - "storagePool": "137", - "storageMode": "138", - "volumeName": "139", - "fsType": "140" - }, - "storageos": { - "volumeName": "141", - "volumeNamespace": "142", - "fsType": "143", - "readOnly": true, - "secretRef": { - "name": "144" - } - }, - "csi": { - "driver": "145", - "readOnly": true, - "fsType": "146", - "volumeAttributes": { - "147": "148" - }, - "nodePublishSecretRef": { - "name": "149" - } - } - } - ], - "initContainers": [ - { - "name": "150", - "image": "151", - "command": [ - "152" - ], - "args": [ - "153" - ], - "workingDir": "154", - "ports": [ - { - "name": "155", - "hostPort": -737070070, - "containerPort": -1417286635, - "protocol": "/C龷ȪÆl殛瓷雼浢Ü礽绅", - "hostIP": "156" - } - ], - "envFrom": [ - { - "prefix": "157", - "configMapRef": { - "name": "158", - "optional": true - }, - "secretRef": { - "name": "159", - "optional": false - } - } - ], - "env": [ - { - "name": "160", - "value": "161", - "valueFrom": { - "fieldRef": { - "apiVersion": "162", - "fieldPath": "163" - }, - "resourceFieldRef": { - "containerName": "164", - "resource": "165", - "divisor": "526" - }, - "configMapKeyRef": { - "name": "166", - "key": "167", - "optional": false - }, - "secretKeyRef": { - "name": "168", - "key": "169", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "i皬择,Q捇ȸ{+ɸ殁Ka縳": "499" - }, - "requests": { - "笓珣筩ƐP_痸荎": "787" - } - }, - "volumeMounts": [ - { - "name": "170", - "mountPath": "171", - "subPath": "172", - "mountPropagation": "¿燥ǖ_è绺", - "subPathExpr": "173" - } - ], - "volumeDevices": [ - { - "name": "174", - "devicePath": "175" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "176" - ] - }, - "httpGet": { - "path": "177", - "port": -662805900, - "host": "178", - "httpHeaders": [ - { - "name": "179", - "value": "180" - } - ] - }, - "tcpSocket": { - "port": "181", - "host": "182" - }, - "initialDelaySeconds": 578888856, - "timeoutSeconds": 2073854558, - "periodSeconds": -557582532, - "successThreshold": -773009446, - "failureThreshold": -1040245211 - }, - "readinessProbe": { - "exec": { - "command": [ - "183" - ] - }, - "httpGet": { - "path": "184", - "port": -2064088433, - "host": "185", - "scheme": "Do©Ǿt'容柚ʕIã陫ʋs", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 229600975, - "timeoutSeconds": -35598353, - "periodSeconds": -1697933829, - "successThreshold": -1438986781, - "failureThreshold": -330720710 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1348141491, - "host": "192", - "scheme": "Ȃ揲ȼ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - } - }, - "preStop": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 468716734, - "host": "199", - "scheme": "Cʖ畬x骀", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - } - }, - "terminationMessagePath": "204", - "terminationMessagePolicy": "ů湙騘\u0026", - "imagePullPolicy": "Ȗ脵鴈Ō", - "securityContext": { - "capabilities": { - "add": [ - "yǠ/淹\\韲翁\u0026ʢsɜ" - ], - "drop": [ - "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "205", - "role": "206", - "type": "207", - "level": "208" - }, - "runAsUser": -1473821783696471652, - "runAsGroup": 8318470556027199025, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "楙¯ĦE勗E" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "209", - "image": "210", - "command": [ - "211" - ], - "args": [ - "212" - ], - "workingDir": "213", - "ports": [ - { - "name": "214", - "hostPort": 1083816849, - "containerPort": 1655406148, - "protocol": "Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o", - "hostIP": "215" - } - ], - "envFrom": [ - { - "prefix": "216", - "configMapRef": { - "name": "217", - "optional": false - }, - "secretRef": { - "name": "218", - "optional": true - } - } - ], - "env": [ - { - "name": "219", - "value": "220", - "valueFrom": { - "fieldRef": { - "apiVersion": "221", - "fieldPath": "222" - }, - "resourceFieldRef": { - "containerName": "223", - "resource": "224", - "divisor": "217" - }, - "configMapKeyRef": { - "name": "225", - "key": "226", - "optional": false - }, - "secretKeyRef": { - "name": "227", - "key": "228", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Ŗ怳冘HǺƶȤ^": "698" - }, - "requests": { - "ldg滠鼍ƭt?": "747" - } - }, - "volumeMounts": [ - { - "name": "229", - "readOnly": true, - "mountPath": "230", - "subPath": "231", - "mountPropagation": "$", - "subPathExpr": "232" - } - ], - "volumeDevices": [ - { - "name": "233", - "devicePath": "234" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "235" - ] - }, - "httpGet": { - "path": "236", - "port": "237", - "host": "238", - "scheme": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c", - "httpHeaders": [ - { - "name": "239", - "value": "240" - } - ] - }, - "tcpSocket": { - "port": "241", - "host": "242" - }, - "initialDelaySeconds": 1288053477, - "timeoutSeconds": -163325250, - "periodSeconds": 1607133856, - "successThreshold": 1891896870, - "failureThreshold": -1321131665 - }, - "readinessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "0åȂ町恰nj揠8lj", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": -2049272966, - "host": "249" - }, - "initialDelaySeconds": -1188153605, - "timeoutSeconds": -427769948, - "periodSeconds": 912004803, - "successThreshold": -2098817064, - "failureThreshold": 1231820696 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": 1736916432, - "host": "252", - "scheme": "a坩O`涁İ而踪鄌eÞȦY籎顒", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - } - }, - "preStop": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": 824682619, - "host": "259", - "scheme": "縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ", - "httpHeaders": [ - { - "name": "260", - "value": "261" - } - ] - }, - "tcpSocket": { - "port": "262", - "host": "263" - } - } - }, - "terminationMessagePath": "264", - "terminationMessagePolicy": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "imagePullPolicy": ":hoĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵", - "securityContext": { - "capabilities": { - "add": [ - "Ǯń" - ], - "drop": [ - "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "265", - "role": "266", - "type": "267", - "level": "268" - }, - "runAsUser": -8865561464185465727, - "runAsGroup": -8271749906556661169, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ĉş蝿ɖȃ賲鐅臬" - } - } - ], - "terminationGracePeriodSeconds": -1799108093609470992, - "activeDeadlineSeconds": -1245112587824234591, - "dnsPolicy": "鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛", - "nodeSelector": { - "269": "270" - }, - "serviceAccountName": "271", - "serviceAccount": "272", - "automountServiceAccountToken": false, - "nodeName": "273", - "hostIPC": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -4782997474747062799, - "runAsGroup": -8992663220934524403, - "runAsNonRoot": false, - "supplementalGroups": [ - -4505867233821630574 - ], - "fsGroup": 6775077391312000638, - "sysctls": [ - { - "name": "278", - "value": "279" - } - ] - }, - "imagePullSecrets": [ - { - "name": "280" - } - ], - "hostname": "281", - "subdomain": "282", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "283", - "operator": "C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛", - "values": [ - "284" - ] - } - ], - "matchFields": [ - { - "key": "285", - "operator": "樺ȃ", - "values": [ - "286" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1650568978, - "preference": { - "matchExpressions": [ - { - "key": "287", - "operator": "¤7djƯĖ漘Z剚敍0)鈼¬", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "棂p儼Ƿ裚瓶釆Ɗ+j忊", - "values": [ - "290" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-1c--33vk78-8g/Jnf": "ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k" - }, - "matchExpressions": [ - { - "key": "a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "297" - ], - "topologyKey": "298" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -832805508, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV": "18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3" - }, - "matchExpressions": [ - { - "key": "n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n", - "operator": "NotIn", - "values": [ - "E__K_g1cXfr.4_.-_-_-...1py_t" - ] - } - ] - }, - "namespaces": [ - "305" - ], - "topologyKey": "306" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "szA_--_.-.6GA26h": "5Nj-d-4_4--.-_Z4.L3" - }, - "matchExpressions": [ - { - "key": "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT", - "operator": "In", - "values": [ - "5-.-.T-V_D_0-K_A-_9_ZC" - ] - } - ] - }, - "namespaces": [ - "313" - ], - "topologyKey": "314" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1873425934, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2": "1Ys_Mop34_-y.H" - }, - "matchExpressions": [ - { - "key": "4.B.__6m", - "operator": "In", - "values": [ - "3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - } - ] - } - }, - "schedulerName": "323", - "tolerations": [ - { - "key": "324", - "operator": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e", - "value": "325", - "effect": "滨Ė", - "tolerationSeconds": 6074530584991892487 - } - ], - "hostAliases": [ - { - "ip": "326", - "hostnames": [ - "327" - ] - } - ], - "priorityClassName": "328", - "priority": 147618179, - "dnsConfig": { - "nameservers": [ - "329" - ], - "searches": [ - "330" - ], - "options": [ - { - "name": "331", - "value": "332" - } - ] - }, - "readinessGates": [ - { - "conditionType": "Ȱ" - } - ], - "runtimeClassName": "333", - "enableServiceLinks": true - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.pb deleted file mode 100644 index ff6aec627de1c1a882a3a9b9cab379c27c69c30c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4499 zcmYjUX>?RacJ6Ai`3+J}$V9O%)^s3&@84sHCQZ)lg-sh?=ZRx~ixml??sUFA6^1 zS5~(#XR&Q{`~Kd-;>Lfh8$zj5IHd7NPoK&mgSQhgBc8Jp>ar8b{bX`}aOjx7^!+@a zXS_To(N2hH(^0OS$oY1nc+iU=s`9fV6`tTRPo(*TuL1uiSl2VwmzESb_JMU|UxGDI z?JfBoXwwoM+>;=#^V7H~@HKcFUp<@aL7bh+yqzj8J5}9wswGZ(GhEh8XAse#iljbAcfpMtn^UKO3UFN#(_thL7|{#?MzYH;DehU} z&WgzCvWeo?CYr{}Uz;;;^y>1^foiL#KG=CJ(Jo0M(rvkRNzJ!Qng`8+h2Z1jV0ZBz zd2Sl0Fk+s|V$5@yfaiCfaA<;XyFu<5k7GM=Bz z#Tka;`YDKLyj|9v!8`S1-#vsMibw9JfDN82qVrg2bV@u*oX*)52ta}SD-xXr|70Gr zrYOKuoj2>RT9cihm3~qZ7mwzHSp{?|y3@8e3C5sE6`c(oCqDZ=s^4u_Nuph)BARbk zrG>V&lQ_F7ueYV!RV4)$t12weoM0g3HR85wG|{d})UL_%VWp-l zMCmU0!YWO3F^&!nL&h~&ql+01&aQ*&I&~s9%<59E6DVx04qL0k*6Ogez|lopKCIGV zl_3@&%FX5M27%n#4GJvD1xYbr8DtHTM-38hwf*VysgBWtb4~vf4a|dPf{5zqxv{r9 z#&OvVE#8)BH}s?EM=)pbaYPiIwpuig10_TxurctVj4wHlHx7RjTj&gb`|#+uvF)&( zMo%*#nF%Q_AgUXPb^-m2v315aAh2Dl6DgFxnQrT5I?Z zhxT?bVI=|4U-%A=j=bSLx;j$SAE__3>d*N`!tG_j)~-;^K%jjPaZHKIlxU-9I{bli z41_vu*O9>fG6Qg;Su~OYiHDC$foSuA=!=0EDRD#=SKI!8Jc#>%`&l${s5b{JfpUu@ zRCIbP4t+Q^-p0@4UH~p7JhMw#TBzju2^+KMp%}rAuF&{v*N@C`#WYbhs)=e$KzDxB z=P80y=w>OSh9ms1S3H5kE%y>3Z<6Tn4V=1gKbqE0kP{@JXn;_dlqGPUMIp;~(X;HU zI1uBjZsrSA2@pLdVelhU;RuM}JSCzF2yp|Ui9jT3z!Z@kNB-L?n&k98Xg@y1J$s@* ze06Z)3*pM{V0F#9>rMUwU-|oaQ233Zvh$Ii{n>1(GJhpo%Cu6^wE*fD2H+rtL_iKG zgq(YKN)^Uboi_KQ|KKQvJlGaX+)U2ltFrcX2TN*}PYjM<@t=8<6~1cd z{4?B-cWl~f4V{V%9~y7pxq$ICSxcG8R2nRDDv1!3L=w>)3SYXm6mh?cnv@hC&K8wa z{)uVGVPm2iBf9(9@ss0?FN~cSYgsi>8##Ds{L0#Qb}d>EYUuKv3GTi8t3(!(!~&E> zmxKFZIoky)Q%BHOV@-07^pf?*wPflp5t0}`~T4&h?#Mod05aBYgzGQ?O%1pCEU7HTOE@YYc6$uI4RwSI5X;qBJ#=L2=qt} zwBER1H$26~5~EOed|I&n{Ht$SSN3^3!+Q^g`!7U_4sIT6@V9ITT|OLXIvRCLVSB5{ zk0k|qD{xdkJ!U}TmoWo+)WH244F}?41`PKvL;aV>27;%1$lCF<;hu||BF)2d{{5OK z+&A)f3l~KCiqri=Q5&iV8ddU`4HYVks!|3JId}H_ZQ0&}Kv`&S#jgSftbx|$FOHoJ z)nEJ|c&aqi)D=G7o4*UnbJ9eIuZW*L(P<4f270Umy^*SVe|@B)H(1mh9BK+2iHux) zE9mKlg8?;2RThS-LM~Jd&XcOg?>ql-N#iH~aK8v8*w`Jn@S`&m){#hW?ID!%wD*9o zFOCdy#EFvQ;2xo6zwnw4*1YIUyR@cr=82;xwA&E3sNGCoUWB z%nsC87rFwi5l>67r86>A<*&TJdKqQ?ibB7##ea3K;Nkx2qeUT<(Dd-0r>&~t_7{jg z7il=0mlgIjtQjlv5BWXw7L2zCyU%T~PIZM3mWD2#3|4f7Yfr)@2eGh&tci<(kQ5+v zEf8tF?Je6jl=~{jqSv5pQH`BR4VpI9G{@H;e*LH3Gq*mvik!Ciqu2g&^M3b(p}$87 z-?t4`-)a1|;7##RQRLI6!;uq(>?(yd(BP?NJtC+CC>+XR|;#wU8SSV{(<1d&hdeXWABdjWvvKxodh@F;$y8uSNO?R>!81ou~hzz zXOy}n^IfI{R zH5cRri-srq!p*gz$}5r5l5x+xjNmm7h#4Z^5yw>{4x0Z`Zib4dR_US5;Ff`XFuFTE@1uu2fj-{$bsle0JHt;*iHbkEy)J0YV6 zYgy0;kJzU@xc>Dw4`Q(w+PS|XE{y|lim{9{bZjK;7Njh^hxujVRhigaF9~Fmxna4q z2V?NgB&M*+T)+FZMS`&Tb$%|GVMBZ$}}_$6T*HqGtkN<}awz5;P? zX9*b~n2on#0~2L8RsdM0;XQ<=VYooBl!x)wt%ihgPSQr4ZHUXvMKa{)WtJmTTxG5j zUX?)gF2Tff+d2W~Lyk18?1&10@zOvL$SzL=L~3fuOWI1R$YIu>35Lju-!;}nv=j<-W3&nS$w4!>?DgUCvA5jG7o zbqT~kB#42?{3x3CP36skM`s$~{5iy>a?8Q3t->x$lXAeYjMrs?*=1N~hr|@tm>YFr znUD^;NVf2w;q7p4M7)k`MPH@4ZJ48FoPuO?TVa?ML7_5J&XKUUS$cc;B%krY`K-UE^?f)-h0u2>7hU23< zS2LYoHWq%#S`vVu`xiU@Id+T_{_W(S|0%Y$;$Tn9-55AYuSDES(L_M6od+(#tA(ME z?!wOtCP#B%Q1?`SfmPn+ACB5K7-%;h0~^GETbdXuoMM(xL*p5?hwjMqjGXxWA5lz? z;pUcHuL>P++Y`C4H;O4lhAG6yF$H_fP?2E@QO@Q3RpFvu0Jy$``Fl8pd-}bJQ%P3e zz#EaquF$o8&s{&A7pUWZ{>EIZp?Lm_6DP+j182kil@o&#=d6J?tIxCDci|C`5E+nw z<^+TR2~m%)t8De&ynWyIX9gtT{lD}OiP1~mmZib6>ZN-T+K*5L zLQ(uc;BguS4MYLZ5W^2dF&yyBdct?f8aNSYt$8jA76`k&iKet7TNhfuK`qL>J11CJ zj>G4w!_AeduO`%fEij_^y24$3k-EeFLf`(s{WU9H#XZ>?YV}qnl=;-;*#_gf?aUi F{ugPksy6@t diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.yaml deleted file mode 100644 index 2a8c952c9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.PodTemplate.yaml +++ /dev/null @@ -1,698 +0,0 @@ -apiVersion: v1 -kind: PodTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -template: - metadata: - annotations: - "31": "32" - clusterName: "37" - creationTimestamp: null - deletionGracePeriodSeconds: 7323204920313990232 - finalizers: - - "36" - generateName: "25" - generation: 1905795315403748486 - labels: - "29": "30" - managedFields: - - apiVersion: "39" - fields: - "40": - "41": null - manager: "38" - operation: B峅x4%a - name: "24" - namespace: "26" - ownerReferences: - - apiVersion: "33" - blockOwnerDeletion: false - controller: true - kind: "34" - name: "35" - uid: 谐颋DžSǡƏS$+½H牗洝尿 - resourceVersion: "1092536316763508004" - selfLink: "27" - uid: ^苣 - spec: - activeDeadlineSeconds: -1245112587824234591 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "287" - operator: ¤7djƯĖ漘Z剚敍0)鈼¬ - values: - - "288" - matchFields: - - key: "289" - operator: 棂p儼Ƿ裚瓶釆Ɗ+j忊 - values: - - "290" - weight: -1650568978 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "283" - operator: C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛 - values: - - "284" - matchFields: - - key: "285" - operator: 樺ȃ - values: - - "286" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n - operator: NotIn - values: - - E__K_g1cXfr.4_.-_-_-...1py_t - matchLabels: - 65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV: 18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3 - namespaces: - - "305" - topologyKey: "306" - weight: -832805508 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp - operator: DoesNotExist - matchLabels: - 6-1c--33vk78-8g/Jnf: ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k - namespaces: - - "297" - topologyKey: "298" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4.B.__6m - operator: In - values: - - 3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn - matchLabels: - a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2: 1Ys_Mop34_-y.H - namespaces: - - "321" - topologyKey: "322" - weight: -1873425934 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT - operator: In - values: - - 5-.-.T-V_D_0-K_A-_9_ZC - matchLabels: - szA_--_.-.6GA26h: 5Nj-d-4_4--.-_Z4.L3 - namespaces: - - "313" - topologyKey: "314" - automountServiceAccountToken: false - containers: - - args: - - "212" - command: - - "211" - env: - - name: "219" - value: "220" - valueFrom: - configMapKeyRef: - key: "226" - name: "225" - optional: false - fieldRef: - apiVersion: "221" - fieldPath: "222" - resourceFieldRef: - containerName: "223" - divisor: "217" - resource: "224" - secretKeyRef: - key: "228" - name: "227" - optional: false - envFrom: - - configMapRef: - name: "217" - optional: false - prefix: "216" - secretRef: - name: "218" - optional: true - image: "210" - imagePullPolicy: :hoĂɋ瀐<ɉ湨H=å睫}堇硲蕵 - lifecycle: - postStart: - exec: - command: - - "250" - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "251" - port: 1736916432 - scheme: a坩O`涁İ而踪鄌eÞȦY籎顒 - tcpSocket: - host: "256" - port: "255" - preStop: - exec: - command: - - "257" - httpGet: - host: "259" - httpHeaders: - - name: "260" - value: "261" - path: "258" - port: 824682619 - scheme: 縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ - tcpSocket: - host: "263" - port: "262" - livenessProbe: - exec: - command: - - "235" - failureThreshold: -1321131665 - httpGet: - host: "238" - httpHeaders: - - name: "239" - value: "240" - path: "236" - port: "237" - scheme: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - initialDelaySeconds: 1288053477 - periodSeconds: 1607133856 - successThreshold: 1891896870 - tcpSocket: - host: "242" - port: "241" - timeoutSeconds: -163325250 - name: "209" - ports: - - containerPort: 1655406148 - hostIP: "215" - hostPort: 1083816849 - name: "214" - protocol: Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o - readinessProbe: - exec: - command: - - "243" - failureThreshold: 1231820696 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "249" - port: -2049272966 - timeoutSeconds: -427769948 - resources: - limits: - Ŗ怳冘HǺƶȤ^: "698" - requests: - ldg滠鼍ƭt?: "747" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ǯń - drop: - - ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - privileged: false - procMount: ĉş蝿ɖȃ賲鐅臬 - readOnlyRootFilesystem: true - runAsGroup: -8271749906556661169 - runAsNonRoot: false - runAsUser: -8865561464185465727 - seLinuxOptions: - level: "268" - role: "266" - type: "267" - user: "265" - terminationMessagePath: "264" - terminationMessagePolicy: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - volumeDevices: - - devicePath: "234" - name: "233" - volumeMounts: - - mountPath: "230" - mountPropagation: $ - name: "229" - readOnly: true - subPath: "231" - subPathExpr: "232" - workingDir: "213" - dnsConfig: - nameservers: - - "329" - options: - - name: "331" - value: "332" - searches: - - "330" - dnsPolicy: 鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛 - enableServiceLinks: true - hostAliases: - - hostnames: - - "327" - ip: "326" - hostIPC: true - hostname: "281" - imagePullSecrets: - - name: "280" - initContainers: - - args: - - "153" - command: - - "152" - env: - - name: "160" - value: "161" - valueFrom: - configMapKeyRef: - key: "167" - name: "166" - optional: false - fieldRef: - apiVersion: "162" - fieldPath: "163" - resourceFieldRef: - containerName: "164" - divisor: "526" - resource: "165" - secretKeyRef: - key: "169" - name: "168" - optional: false - envFrom: - - configMapRef: - name: "158" - optional: true - prefix: "157" - secretRef: - name: "159" - optional: false - image: "151" - imagePullPolicy: Ȗ脵鴈Ō - lifecycle: - postStart: - exec: - command: - - "190" - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1348141491 - scheme: Ȃ揲ȼ - tcpSocket: - host: "196" - port: "195" - preStop: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: 468716734 - scheme: Cʖ畬x骀 - tcpSocket: - host: "203" - port: "202" - livenessProbe: - exec: - command: - - "176" - failureThreshold: -1040245211 - httpGet: - host: "178" - httpHeaders: - - name: "179" - value: "180" - path: "177" - port: -662805900 - initialDelaySeconds: 578888856 - periodSeconds: -557582532 - successThreshold: -773009446 - tcpSocket: - host: "182" - port: "181" - timeoutSeconds: 2073854558 - name: "150" - ports: - - containerPort: -1417286635 - hostIP: "156" - hostPort: -737070070 - name: "155" - protocol: /C龷ȪÆl殛瓷雼浢Ü礽绅 - readinessProbe: - exec: - command: - - "183" - failureThreshold: -330720710 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "184" - port: -2064088433 - scheme: Do©Ǿt'容柚ʕIã陫ʋs - initialDelaySeconds: 229600975 - periodSeconds: -1697933829 - successThreshold: -1438986781 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -35598353 - resources: - limits: - i皬择,Q捇ȸ{+ɸ殁Ka縳: "499" - requests: - 笓珣筩ƐP_痸荎: "787" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - yǠ/淹\韲翁&ʢsɜ - drop: - - \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - privileged: false - procMount: 楙¯ĦE勗E - readOnlyRootFilesystem: false - runAsGroup: 8318470556027199025 - runAsNonRoot: false - runAsUser: -1473821783696471652 - seLinuxOptions: - level: "208" - role: "206" - type: "207" - user: "205" - stdin: true - stdinOnce: true - terminationMessagePath: "204" - terminationMessagePolicy: ů湙騘& - tty: true - volumeDevices: - - devicePath: "175" - name: "174" - volumeMounts: - - mountPath: "171" - mountPropagation: ¿燥ǖ_è绺 - name: "170" - subPath: "172" - subPathExpr: "173" - workingDir: "154" - nodeName: "273" - nodeSelector: - "269": "270" - priority: 147618179 - priorityClassName: "328" - readinessGates: - - conditionType: Ȱ - runtimeClassName: "333" - schedulerName: "323" - securityContext: - fsGroup: 6775077391312000638 - runAsGroup: -8992663220934524403 - runAsNonRoot: false - runAsUser: -4782997474747062799 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - supplementalGroups: - - -4505867233821630574 - sysctls: - - name: "278" - value: "279" - serviceAccount: "272" - serviceAccountName: "271" - shareProcessNamespace: true - subdomain: "282" - terminationGracePeriodSeconds: -1799108093609470992 - tolerations: - - effect: 滨Ė - key: "324" - operator: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - tolerationSeconds: 6074530584991892487 - value: "325" - volumes: - - awsElasticBlockStore: - fsType: "50" - partition: 13677460 - readOnly: true - volumeID: "49" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "113" - diskURI: "114" - fsType: "115" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "99" - shareName: "100" - cephfs: - monitors: - - "84" - path: "85" - secretFile: "87" - secretRef: - name: "88" - user: "86" - cinder: - fsType: "82" - readOnly: true - secretRef: - name: "83" - volumeID: "81" - configMap: - defaultMode: -1570767512 - items: - - key: "102" - mode: -1907421291 - path: "103" - name: "101" - optional: false - csi: - driver: "145" - fsType: "146" - nodePublishSecretRef: - name: "149" - readOnly: true - volumeAttributes: - "147": "148" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "92" - fieldPath: "93" - mode: 2107119206 - path: "91" - resourceFieldRef: - containerName: "94" - divisor: "291" - resource: "95" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "97" - lun: -2040518604 - targetWWNs: - - "96" - wwids: - - "98" - flexVolume: - driver: "76" - fsType: "77" - options: - "79": "80" - readOnly: true - secretRef: - name: "78" - flocker: - datasetName: "89" - datasetUUID: "90" - gcePersistentDisk: - fsType: "48" - partition: -664310043 - pdName: "47" - readOnly: true - gitRepo: - directory: "53" - repository: "51" - revision: "52" - glusterfs: - endpoints: "66" - path: "67" - readOnly: true - hostPath: - path: "46" - type: DrȮ - iscsi: - fsType: "62" - initiatorName: "65" - iqn: "60" - iscsiInterface: "61" - lun: -314157282 - portals: - - "63" - readOnly: true - secretRef: - name: "64" - targetPortal: "59" - name: "45" - nfs: - path: "58" - server: "57" - persistentVolumeClaim: - claimName: "68" - readOnly: true - photonPersistentDisk: - fsType: "117" - pdID: "116" - portworxVolume: - fsType: "132" - volumeID: "131" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "127" - mode: 813865935 - path: "128" - name: "126" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "122" - fieldPath: "123" - mode: 75785535 - path: "121" - resourceFieldRef: - containerName: "124" - divisor: "852" - resource: "125" - secret: - items: - - key: "119" - mode: 2036549700 - path: "120" - name: "118" - optional: false - serviceAccountToken: - audience: "129" - expirationSeconds: 3094703520378368232 - path: "130" - quobyte: - group: "111" - readOnly: true - registry: "108" - tenant: "112" - user: "110" - volume: "109" - rbd: - fsType: "71" - image: "70" - keyring: "74" - monitors: - - "69" - pool: "72" - readOnly: true - secretRef: - name: "75" - user: "73" - scaleIO: - fsType: "140" - gateway: "133" - protectionDomain: "136" - secretRef: - name: "135" - sslEnabled: true - storageMode: "138" - storagePool: "137" - system: "134" - volumeName: "139" - secret: - defaultMode: 819364842 - items: - - key: "55" - mode: 1557090007 - path: "56" - optional: true - secretName: "54" - storageos: - fsType: "143" - readOnly: true - secretRef: - name: "144" - volumeName: "141" - volumeNamespace: "142" - vsphereVolume: - fsType: "105" - storagePolicyID: "107" - storagePolicyName: "106" - volumePath: "104" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.json deleted file mode 100644 index 2183d7a40..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "RangeAllocation", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "range": "24", - "data": "cQ==" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.pb deleted file mode 100644 index 0409c8ee8a38d8cebcbbf5e3cace18f9fd0c0c07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 244 zcmV7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) uqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5&|+b8Ub+{03rb8|5ii* diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.yaml deleted file mode 100644 index c766a7cbb..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: v1 -data: cQ== -kind: RangeAllocation -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -range: "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.json deleted file mode 100644 index 976484804..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "RangeAllocation", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "range": "24", - "data": "cQ==" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.RangeAllocation.pb deleted file mode 100644 index ede0367dad6c488a18159feb67f01994da7717c3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 260 zcmV+f0sH=IICB6B6$%1&F%l0_VQyz-L2PVqV_|e@Z*CIe0Sedw3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k3I+-SF*yZ#l)!VWR%II0=^M}fEp#6 z??XVqMgc_uk%x!^BBC}RPcZ}C&~5hHIN8mb&(YagXS=#PlQo*%c^FOHbGyw<>W@=Z z_nv!R_uO-ScdM3bVSdP1cM|sLRU5K1wyaCtz9lPjL00DWoUDwD4LR(M=NUg@kia6* zfg~4_6J6fDk(M&=nRk=TMt7?nHg=^0#-m*7?C;K-DPZ32|Bthm?NfR|i zR(L_wwcp+@_;gQM{hsXkmKA49dkgnA{cHUYN}0kSl|@?GR0ip+mGJ3K#!3W-m58n< z7Ul(q4*N^q&-J;-E3y-aYr$ z%PQ!Jlim)OwFuJ)uM4uMh(u8pQRX$Cm$ZLtxb&x?+l`<66@f2hz4c!P|9$MnPf|dl zNLZ^Vq|q-CzNB;lUy8#js;=ioyYWOt@N!XN|`cR*Ja1kz@o8MNw)`YHjI4}b=rwsPcl}SXRR`^9}bO9aiT=fA`37eI;^rJ zJPUs^`vg#khOFAJHC!?$+dnV4UL5B{vq7y4GG*OvnV-a16%eEldt=wp&%cezcUcu7 z(W;0%nr&62xt3LvfJt6sNwX?SGAve9SfJU_DsV*6Z72mcTLmF1aadKsWmUyQt11ar zRh|tiRb?(pbHE!`shWe1=wL7eSA#VgNw>iln68O-C@FUO+&|#N!$pJypVVSNtAb5gKoMz|mznE$pEof_wWs4h42Nu=V zb2Yy^HsY}An$wbK)%8QLQE`OlSs=u2sYA0EkV1F?b_QM|9hdA!nufoMt+a=~et78X z*nU_}prp(xG!#WHT9=wAWNdzJYKtvCk53@v~v$EsK%wSi+XlM9R zo$fCW<#$nLB>@RP_U#`XdCPlfMWm=d(okYHwE0HDXUl@^o>1*T;Orn`s1TJ3(MF>_ zhywhGqTO-@aWE%R1)@x2LPP~34=+^!qRj@P&yOP#pA3YouzZ5ti1`4D3FRd^YlD|S zBO(yHxAMS8Q=Jxe7V|P46b($+y(SCJ%U2G*;D|{Q)R-iVGU)b? z``ks4hAtX1k++5a>!LeQ-g++);wBQCZ{T>x{b*RPBRgMPCu0$;`Zxf9LfO`)>Wk)F~lx>T9H43^T62m*1;fddR5V4whj zfEWl+ihx98EfCf51P!DB6$yxHx40htgP{V%!7^WDrZYBQwVB@?EUsNLF*ttFfAVd5 z@)ccUpJ9HGv3`>|bUZSAVEpX%Idoi=)a2rx04fE>nn?=@?VY?xnodoxS6UOZer0Ia7lTr{8$Tytv1EKAgWl+}{x?+P`6}(cii@bfG-bd?;#` zO!ronzZVoJt}vpqX)y&FyO=7_qYCa{ZQK_ZRiN;$=R^G$#s-2XddRBrQ{kR7>mx10 zFZ}mqcerolpXbhr^zBXa4@Gq-1SBfL_jD+5!URQ12O{Upn7uj6TM#G<0!=a6BhXboq+d858Ht!KOfuxvw`;-QaJCRQ3joT7pB( zfrF8eGw%f5-H;e?1_gz>p{NiGMT2}&bmyMapB6V=|CjqkD8a%b%`*4nlN08_NN?Q% zl>C%;pRXz0a5+%zFAR5kB9(i?C7t=mQi?2<2+Af@JV<@^v1m+)209*nLZdi=p7j-* ztrrp(kDt#9)S4ZhKzqd98f-lu8LIYIbesuTuy(d5W_!6>PoQE#|>DvA7 z2SdL`3Ey@O*4%9Ry5Md8KvCqk&E=7!g|wH#8Yu9B#^=$)u0dx4D!3^X522e=DJq%E z{EU`OL6g`YEqE!=yNp{I_LPja_y>Y#&W{gF9DZ-CFLP(j^2d8^Ig+LYivfFlR^mm{Uaqn&h_&b|nI z&@iW)Ed|-ZqTz|Ya7$gN>SCm%c-%cJJ$Ts-Y&v1P;+Pu5K=EJ1Oj9sfhp{N`+^T9= z+mw`?xsl}-?Mg9nRIG4#8^>V-a~pMxSBl13PUbMjtuV3|reMzCjO~UYY-Q&$Bvr&} z+D1v)ge6|nM4~F`+p(6Eu@f7qudPg5Du9qRufE4=u!`f1Uu3h7FU;DIyF6?AqFq~Z zw?jmATC#MVJ!p-8aOLh-4`RL-TA4p1CY1q1im`;#HLNG?zK$pu?#3O74ITKDuzCS#axUxZPG=Ivy;~0ES+C$%#$EKuhAG8 z{BmPC_l5|fcW?$4Hm~Mz9>hq+az>N^l)t$s6&sr}xlDF4IKDK~@$4eQSY~V@>(*?{ z;UpvG62ymO?=~PNB1IP>uR4n3m=VNWK+H>wEjMqTfiduM%Hnx~vYDMGFHgtov1CY~ z0vjn3_nOG=Ma(8J6pI=VoP)RFRE*yRM9;5NH}ct-&S4CYlfLBK9osgl8#Zd`c{?TW zU6ixdCyAT^d&c8DBahF`G`P*X44evXVhwYzgCY)VJ8?3}Tg_U*lV@Z)v>Lx@ECiNi z#yo83M#=*4fk@y3k=aoc|5eqsf=4;sgP1nNq%cdstWDewEF@)vVhOL_25J{$jV6h~ ztu)qY++r>bWRWcHJtK7~Y!$)AQVjCNv^>txUgv*KAQ1%i39>fVcs(mylnlI^Tf#17 z;w5fANKv*$Erfl`<(6O zl2a4a##no3Xi$JLX;m(>koExr*q@?CRby#O|3B}&M>iSTAc?BGEVTO(xDNpN9_%1+ zFMtuzRvRcfY_D0m|A?h=!XJ+P@i(!pb?8Xvu1H6I6jSgNQ}Ex%6!bD9@Dx+Aw2?zxeyzZ>8YWH5dao_hx3MAlGJom!z`JNl~f&Sd&$IVkmN6&d%7X`~| z7Ud&Uiclp&QT#yQb{Yi@L5 zi!$rV4i;A6a9d5drAqPDhR$9NjL1Gu*wYuOFZUPvN`Lt?dUO@nWOJz9Tb)o+`r$WC zo!-{f(W{gQmlc?Ws}xY(j|%_y!mFR4XF#+F*(r*|0hub&E0!pVpCNP$!PV4%{&Qd# zr8@{Yzv->LGu4qEUwk!xB9?BpeYb9P#o5i8uiodGY4&vN4i+8BU>UQoCvb4i=taNB5g&i2JaGLdHj4}N M$%#M|hs9<2e@t-lBLDyZ diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.after_roundtrip.yaml deleted file mode 100644 index 184693331..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.after_roundtrip.yaml +++ /dev/null @@ -1,708 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - "24": "25" - template: - metadata: - annotations: - "33": "34" - clusterName: "39" - creationTimestamp: null - deletionGracePeriodSeconds: 4303487026632006283 - finalizers: - - "38" - generateName: "27" - generation: -530163119072260397 - labels: - "31": "32" - managedFields: - - apiVersion: "41" - manager: "40" - name: "26" - namespace: "28" - ownerReferences: - - apiVersion: "35" - blockOwnerDeletion: true - controller: false - kind: "36" - name: "37" - uid: ³-Ǐ忄*齧獚敆ȎțêɘIJ斬 - resourceVersion: "1092536316763508004" - selfLink: "29" - uid: ^苣 - spec: - activeDeadlineSeconds: -1245112587824234591 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "288" - operator: ¤7djƯĖ漘Z剚敍0)鈼¬ - values: - - "289" - matchFields: - - key: "290" - operator: 棂p儼Ƿ裚瓶釆Ɗ+j忊 - values: - - "291" - weight: -1650568978 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "284" - operator: C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛 - values: - - "285" - matchFields: - - key: "286" - operator: 樺ȃ - values: - - "287" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n - operator: NotIn - values: - - E__K_g1cXfr.4_.-_-_-...1py_t - matchLabels: - 65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV: 18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3 - namespaces: - - "306" - topologyKey: "307" - weight: -832805508 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp - operator: DoesNotExist - matchLabels: - 6-1c--33vk78-8g/Jnf: ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k - namespaces: - - "298" - topologyKey: "299" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4.B.__6m - operator: In - values: - - 3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn - matchLabels: - a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2: 1Ys_Mop34_-y.H - namespaces: - - "322" - topologyKey: "323" - weight: -1873425934 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT - operator: In - values: - - 5-.-.T-V_D_0-K_A-_9_ZC - matchLabels: - szA_--_.-.6GA26h: 5Nj-d-4_4--.-_Z4.L3 - namespaces: - - "314" - topologyKey: "315" - automountServiceAccountToken: false - containers: - - args: - - "213" - command: - - "212" - env: - - name: "220" - value: "221" - valueFrom: - configMapKeyRef: - key: "227" - name: "226" - optional: false - fieldRef: - apiVersion: "222" - fieldPath: "223" - resourceFieldRef: - containerName: "224" - divisor: "217" - resource: "225" - secretKeyRef: - key: "229" - name: "228" - optional: false - envFrom: - - configMapRef: - name: "218" - optional: false - prefix: "217" - secretRef: - name: "219" - optional: true - image: "211" - imagePullPolicy: :hoĂɋ瀐<ɉ湨H=å睫}堇硲蕵 - lifecycle: - postStart: - exec: - command: - - "251" - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: 1736916432 - scheme: a坩O`涁İ而踪鄌eÞȦY籎顒 - tcpSocket: - host: "257" - port: "256" - preStop: - exec: - command: - - "258" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "259" - port: 824682619 - scheme: 縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ - tcpSocket: - host: "264" - port: "263" - livenessProbe: - exec: - command: - - "236" - failureThreshold: -1321131665 - httpGet: - host: "239" - httpHeaders: - - name: "240" - value: "241" - path: "237" - port: "238" - scheme: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - initialDelaySeconds: 1288053477 - periodSeconds: 1607133856 - successThreshold: 1891896870 - tcpSocket: - host: "243" - port: "242" - timeoutSeconds: -163325250 - name: "210" - ports: - - containerPort: 1655406148 - hostIP: "216" - hostPort: 1083816849 - name: "215" - protocol: Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o - readinessProbe: - exec: - command: - - "244" - failureThreshold: 1231820696 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "245" - port: "246" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "250" - port: -2049272966 - timeoutSeconds: -427769948 - resources: - limits: - Ŗ怳冘HǺƶȤ^: "698" - requests: - ldg滠鼍ƭt?: "747" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ǯń - drop: - - ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - privileged: false - procMount: ĉş蝿ɖȃ賲鐅臬 - readOnlyRootFilesystem: true - runAsGroup: -8271749906556661169 - runAsNonRoot: false - runAsUser: -8865561464185465727 - seLinuxOptions: - level: "269" - role: "267" - type: "268" - user: "266" - terminationMessagePath: "265" - terminationMessagePolicy: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - volumeDevices: - - devicePath: "235" - name: "234" - volumeMounts: - - mountPath: "231" - mountPropagation: $ - name: "230" - readOnly: true - subPath: "232" - subPathExpr: "233" - workingDir: "214" - dnsConfig: - nameservers: - - "330" - options: - - name: "332" - value: "333" - searches: - - "331" - dnsPolicy: 鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛 - enableServiceLinks: true - hostAliases: - - hostnames: - - "328" - ip: "327" - hostIPC: true - hostname: "282" - imagePullSecrets: - - name: "281" - initContainers: - - args: - - "154" - command: - - "153" - env: - - name: "161" - value: "162" - valueFrom: - configMapKeyRef: - key: "168" - name: "167" - optional: false - fieldRef: - apiVersion: "163" - fieldPath: "164" - resourceFieldRef: - containerName: "165" - divisor: "526" - resource: "166" - secretKeyRef: - key: "170" - name: "169" - optional: false - envFrom: - - configMapRef: - name: "159" - optional: true - prefix: "158" - secretRef: - name: "160" - optional: false - image: "152" - imagePullPolicy: Ȗ脵鴈Ō - lifecycle: - postStart: - exec: - command: - - "191" - httpGet: - host: "193" - httpHeaders: - - name: "194" - value: "195" - path: "192" - port: 1348141491 - scheme: Ȃ揲ȼ - tcpSocket: - host: "197" - port: "196" - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: 468716734 - scheme: Cʖ畬x骀 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "177" - failureThreshold: -1040245211 - httpGet: - host: "179" - httpHeaders: - - name: "180" - value: "181" - path: "178" - port: -662805900 - initialDelaySeconds: 578888856 - periodSeconds: -557582532 - successThreshold: -773009446 - tcpSocket: - host: "183" - port: "182" - timeoutSeconds: 2073854558 - name: "151" - ports: - - containerPort: -1417286635 - hostIP: "157" - hostPort: -737070070 - name: "156" - protocol: /C龷ȪÆl殛瓷雼浢Ü礽绅 - readinessProbe: - exec: - command: - - "184" - failureThreshold: -330720710 - httpGet: - host: "186" - httpHeaders: - - name: "187" - value: "188" - path: "185" - port: -2064088433 - scheme: Do©Ǿt'容柚ʕIã陫ʋs - initialDelaySeconds: 229600975 - periodSeconds: -1697933829 - successThreshold: -1438986781 - tcpSocket: - host: "190" - port: "189" - timeoutSeconds: -35598353 - resources: - limits: - i皬择,Q捇ȸ{+ɸ殁Ka縳: "499" - requests: - 笓珣筩ƐP_痸荎: "787" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - yǠ/淹\韲翁&ʢsɜ - drop: - - \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - privileged: false - procMount: 楙¯ĦE勗E - readOnlyRootFilesystem: false - runAsGroup: 8318470556027199025 - runAsNonRoot: false - runAsUser: -1473821783696471652 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - stdin: true - stdinOnce: true - terminationMessagePath: "205" - terminationMessagePolicy: ů湙騘& - tty: true - volumeDevices: - - devicePath: "176" - name: "175" - volumeMounts: - - mountPath: "172" - mountPropagation: ¿燥ǖ_è绺 - name: "171" - subPath: "173" - subPathExpr: "174" - workingDir: "155" - nodeName: "274" - nodeSelector: - "270": "271" - priority: 147618179 - priorityClassName: "329" - readinessGates: - - conditionType: Ȱ - runtimeClassName: "334" - schedulerName: "324" - securityContext: - fsGroup: 6775077391312000638 - runAsGroup: -8992663220934524403 - runAsNonRoot: false - runAsUser: -4782997474747062799 - seLinuxOptions: - level: "278" - role: "276" - type: "277" - user: "275" - supplementalGroups: - - -4505867233821630574 - sysctls: - - name: "279" - value: "280" - serviceAccount: "273" - serviceAccountName: "272" - shareProcessNamespace: true - subdomain: "283" - terminationGracePeriodSeconds: -1799108093609470992 - tolerations: - - effect: 滨Ė - key: "325" - operator: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - tolerationSeconds: 6074530584991892487 - value: "326" - volumes: - - awsElasticBlockStore: - fsType: "51" - partition: 13677460 - readOnly: true - volumeID: "50" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "114" - diskURI: "115" - fsType: "116" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "100" - shareName: "101" - cephfs: - monitors: - - "85" - path: "86" - secretFile: "88" - secretRef: - name: "89" - user: "87" - cinder: - fsType: "83" - readOnly: true - secretRef: - name: "84" - volumeID: "82" - configMap: - defaultMode: -1570767512 - items: - - key: "103" - mode: -1907421291 - path: "104" - name: "102" - optional: false - csi: - driver: "146" - fsType: "147" - nodePublishSecretRef: - name: "150" - readOnly: true - volumeAttributes: - "148": "149" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "93" - fieldPath: "94" - mode: 2107119206 - path: "92" - resourceFieldRef: - containerName: "95" - divisor: "291" - resource: "96" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "98" - lun: -2040518604 - targetWWNs: - - "97" - wwids: - - "99" - flexVolume: - driver: "77" - fsType: "78" - options: - "80": "81" - readOnly: true - secretRef: - name: "79" - flocker: - datasetName: "90" - datasetUUID: "91" - gcePersistentDisk: - fsType: "49" - partition: -664310043 - pdName: "48" - readOnly: true - gitRepo: - directory: "54" - repository: "52" - revision: "53" - glusterfs: - endpoints: "67" - path: "68" - readOnly: true - hostPath: - path: "47" - type: DrȮ - iscsi: - fsType: "63" - initiatorName: "66" - iqn: "61" - iscsiInterface: "62" - lun: -314157282 - portals: - - "64" - readOnly: true - secretRef: - name: "65" - targetPortal: "60" - name: "46" - nfs: - path: "59" - server: "58" - persistentVolumeClaim: - claimName: "69" - readOnly: true - photonPersistentDisk: - fsType: "118" - pdID: "117" - portworxVolume: - fsType: "133" - volumeID: "132" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "128" - mode: 813865935 - path: "129" - name: "127" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "123" - fieldPath: "124" - mode: 75785535 - path: "122" - resourceFieldRef: - containerName: "125" - divisor: "852" - resource: "126" - secret: - items: - - key: "120" - mode: 2036549700 - path: "121" - name: "119" - optional: false - serviceAccountToken: - audience: "130" - expirationSeconds: 3094703520378368232 - path: "131" - quobyte: - group: "112" - readOnly: true - registry: "109" - tenant: "113" - user: "111" - volume: "110" - rbd: - fsType: "72" - image: "71" - keyring: "75" - monitors: - - "70" - pool: "73" - readOnly: true - secretRef: - name: "76" - user: "74" - scaleIO: - fsType: "141" - gateway: "134" - protectionDomain: "137" - secretRef: - name: "136" - sslEnabled: true - storageMode: "139" - storagePool: "138" - system: "135" - volumeName: "140" - secret: - defaultMode: 819364842 - items: - - key: "56" - mode: 1557090007 - path: "57" - optional: true - secretName: "55" - storageos: - fsType: "144" - readOnly: true - secretRef: - name: "145" - volumeName: "142" - volumeNamespace: "143" - vsphereVolume: - fsType: "106" - storagePolicyID: "108" - storagePolicyName: "107" - volumePath: "105" -status: - availableReplicas: -1795212367 - conditions: - - lastTransitionTime: "2477-11-23T00:25:20Z" - message: "336" - reason: "335" - status: 淴ɑ?¶Ȳ - type: 篎3o8[y#t(ȗŜŲ&洪y儕l - fullyLabeledReplicas: 903393545 - observedGeneration: 1806442047290406758 - readyReplicas: 989101505 - replicas: -1998575610 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.json deleted file mode 100644 index 65b2594f3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.json +++ /dev/null @@ -1,1046 +0,0 @@ -{ - "kind": "ReplicationController", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "24": "25" - }, - "template": { - "metadata": { - "name": "26", - "generateName": "27", - "namespace": "28", - "selfLink": "29", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": -530163119072260397, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 4303487026632006283, - "labels": { - "31": "32" - }, - "annotations": { - "33": "34" - }, - "ownerReferences": [ - { - "apiVersion": "35", - "kind": "36", - "name": "37", - "uid": "³-Ǐ忄*齧獚敆ȎțêɘIJ斬", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "38" - ], - "clusterName": "39", - "managedFields": [ - { - "manager": "40", - "apiVersion": "41", - "fields": {"42":{"43":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "46", - "hostPath": { - "path": "47", - "type": "DrȮ" - }, - "emptyDir": { - "medium": "励鹗塢ē ", - "sizeLimit": "995" - }, - "gcePersistentDisk": { - "pdName": "48", - "fsType": "49", - "partition": -664310043, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "50", - "fsType": "51", - "partition": 13677460, - "readOnly": true - }, - "gitRepo": { - "repository": "52", - "revision": "53", - "directory": "54" - }, - "secret": { - "secretName": "55", - "items": [ - { - "key": "56", - "path": "57", - "mode": 1557090007 - } - ], - "defaultMode": 819364842, - "optional": true - }, - "nfs": { - "server": "58", - "path": "59" - }, - "iscsi": { - "targetPortal": "60", - "iqn": "61", - "lun": -314157282, - "iscsiInterface": "62", - "fsType": "63", - "readOnly": true, - "portals": [ - "64" - ], - "secretRef": { - "name": "65" - }, - "initiatorName": "66" - }, - "glusterfs": { - "endpoints": "67", - "path": "68", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "69", - "readOnly": true - }, - "rbd": { - "monitors": [ - "70" - ], - "image": "71", - "fsType": "72", - "pool": "73", - "user": "74", - "keyring": "75", - "secretRef": { - "name": "76" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "77", - "fsType": "78", - "secretRef": { - "name": "79" - }, - "readOnly": true, - "options": { - "80": "81" - } - }, - "cinder": { - "volumeID": "82", - "fsType": "83", - "readOnly": true, - "secretRef": { - "name": "84" - } - }, - "cephfs": { - "monitors": [ - "85" - ], - "path": "86", - "user": "87", - "secretFile": "88", - "secretRef": { - "name": "89" - } - }, - "flocker": { - "datasetName": "90", - "datasetUUID": "91" - }, - "downwardAPI": { - "items": [ - { - "path": "92", - "fieldRef": { - "apiVersion": "93", - "fieldPath": "94" - }, - "resourceFieldRef": { - "containerName": "95", - "resource": "96", - "divisor": "291" - }, - "mode": 2107119206 - } - ], - "defaultMode": -2077638334 - }, - "fc": { - "targetWWNs": [ - "97" - ], - "lun": -2040518604, - "fsType": "98", - "wwids": [ - "99" - ] - }, - "azureFile": { - "secretName": "100", - "shareName": "101" - }, - "configMap": { - "name": "102", - "items": [ - { - "key": "103", - "path": "104", - "mode": -1907421291 - } - ], - "defaultMode": -1570767512, - "optional": false - }, - "vsphereVolume": { - "volumePath": "105", - "fsType": "106", - "storagePolicyName": "107", - "storagePolicyID": "108" - }, - "quobyte": { - "registry": "109", - "volume": "110", - "readOnly": true, - "user": "111", - "group": "112", - "tenant": "113" - }, - "azureDisk": { - "diskName": "114", - "diskURI": "115", - "cachingMode": "n宂¬轚9Ȏ瀮", - "fsType": "116", - "readOnly": true, - "kind": "Ō¾\\ĒP鄸靇杧ž譋娲瘹ɭ" - }, - "photonPersistentDisk": { - "pdID": "117", - "fsType": "118" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "119", - "items": [ - { - "key": "120", - "path": "121", - "mode": 2036549700 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "122", - "fieldRef": { - "apiVersion": "123", - "fieldPath": "124" - }, - "resourceFieldRef": { - "containerName": "125", - "resource": "126", - "divisor": "852" - }, - "mode": 75785535 - } - ] - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": 813865935 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "130", - "expirationSeconds": 3094703520378368232, - "path": "131" - } - } - ], - "defaultMode": -1253565243 - }, - "portworxVolume": { - "volumeID": "132", - "fsType": "133" - }, - "scaleIO": { - "gateway": "134", - "system": "135", - "secretRef": { - "name": "136" - }, - "sslEnabled": true, - "protectionDomain": "137", - "storagePool": "138", - "storageMode": "139", - "volumeName": "140", - "fsType": "141" - }, - "storageos": { - "volumeName": "142", - "volumeNamespace": "143", - "fsType": "144", - "readOnly": true, - "secretRef": { - "name": "145" - } - }, - "csi": { - "driver": "146", - "readOnly": true, - "fsType": "147", - "volumeAttributes": { - "148": "149" - }, - "nodePublishSecretRef": { - "name": "150" - } - } - } - ], - "initContainers": [ - { - "name": "151", - "image": "152", - "command": [ - "153" - ], - "args": [ - "154" - ], - "workingDir": "155", - "ports": [ - { - "name": "156", - "hostPort": -737070070, - "containerPort": -1417286635, - "protocol": "/C龷ȪÆl殛瓷雼浢Ü礽绅", - "hostIP": "157" - } - ], - "envFrom": [ - { - "prefix": "158", - "configMapRef": { - "name": "159", - "optional": true - }, - "secretRef": { - "name": "160", - "optional": false - } - } - ], - "env": [ - { - "name": "161", - "value": "162", - "valueFrom": { - "fieldRef": { - "apiVersion": "163", - "fieldPath": "164" - }, - "resourceFieldRef": { - "containerName": "165", - "resource": "166", - "divisor": "526" - }, - "configMapKeyRef": { - "name": "167", - "key": "168", - "optional": false - }, - "secretKeyRef": { - "name": "169", - "key": "170", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "i皬择,Q捇ȸ{+ɸ殁Ka縳": "499" - }, - "requests": { - "笓珣筩ƐP_痸荎": "787" - } - }, - "volumeMounts": [ - { - "name": "171", - "mountPath": "172", - "subPath": "173", - "mountPropagation": "¿燥ǖ_è绺", - "subPathExpr": "174" - } - ], - "volumeDevices": [ - { - "name": "175", - "devicePath": "176" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "177" - ] - }, - "httpGet": { - "path": "178", - "port": -662805900, - "host": "179", - "httpHeaders": [ - { - "name": "180", - "value": "181" - } - ] - }, - "tcpSocket": { - "port": "182", - "host": "183" - }, - "initialDelaySeconds": 578888856, - "timeoutSeconds": 2073854558, - "periodSeconds": -557582532, - "successThreshold": -773009446, - "failureThreshold": -1040245211 - }, - "readinessProbe": { - "exec": { - "command": [ - "184" - ] - }, - "httpGet": { - "path": "185", - "port": -2064088433, - "host": "186", - "scheme": "Do©Ǿt'容柚ʕIã陫ʋs", - "httpHeaders": [ - { - "name": "187", - "value": "188" - } - ] - }, - "tcpSocket": { - "port": "189", - "host": "190" - }, - "initialDelaySeconds": 229600975, - "timeoutSeconds": -35598353, - "periodSeconds": -1697933829, - "successThreshold": -1438986781, - "failureThreshold": -330720710 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "191" - ] - }, - "httpGet": { - "path": "192", - "port": 1348141491, - "host": "193", - "scheme": "Ȃ揲ȼ", - "httpHeaders": [ - { - "name": "194", - "value": "195" - } - ] - }, - "tcpSocket": { - "port": "196", - "host": "197" - } - }, - "preStop": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": 468716734, - "host": "200", - "scheme": "Cʖ畬x骀", - "httpHeaders": [ - { - "name": "201", - "value": "202" - } - ] - }, - "tcpSocket": { - "port": "203", - "host": "204" - } - } - }, - "terminationMessagePath": "205", - "terminationMessagePolicy": "ů湙騘\u0026", - "imagePullPolicy": "Ȗ脵鴈Ō", - "securityContext": { - "capabilities": { - "add": [ - "yǠ/淹\\韲翁\u0026ʢsɜ" - ], - "drop": [ - "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "206", - "role": "207", - "type": "208", - "level": "209" - }, - "runAsUser": -1473821783696471652, - "runAsGroup": 8318470556027199025, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "楙¯ĦE勗E" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "210", - "image": "211", - "command": [ - "212" - ], - "args": [ - "213" - ], - "workingDir": "214", - "ports": [ - { - "name": "215", - "hostPort": 1083816849, - "containerPort": 1655406148, - "protocol": "Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o", - "hostIP": "216" - } - ], - "envFrom": [ - { - "prefix": "217", - "configMapRef": { - "name": "218", - "optional": false - }, - "secretRef": { - "name": "219", - "optional": true - } - } - ], - "env": [ - { - "name": "220", - "value": "221", - "valueFrom": { - "fieldRef": { - "apiVersion": "222", - "fieldPath": "223" - }, - "resourceFieldRef": { - "containerName": "224", - "resource": "225", - "divisor": "217" - }, - "configMapKeyRef": { - "name": "226", - "key": "227", - "optional": false - }, - "secretKeyRef": { - "name": "228", - "key": "229", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Ŗ怳冘HǺƶȤ^": "698" - }, - "requests": { - "ldg滠鼍ƭt?": "747" - } - }, - "volumeMounts": [ - { - "name": "230", - "readOnly": true, - "mountPath": "231", - "subPath": "232", - "mountPropagation": "$", - "subPathExpr": "233" - } - ], - "volumeDevices": [ - { - "name": "234", - "devicePath": "235" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "236" - ] - }, - "httpGet": { - "path": "237", - "port": "238", - "host": "239", - "scheme": "ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱\u003c", - "httpHeaders": [ - { - "name": "240", - "value": "241" - } - ] - }, - "tcpSocket": { - "port": "242", - "host": "243" - }, - "initialDelaySeconds": 1288053477, - "timeoutSeconds": -163325250, - "periodSeconds": 1607133856, - "successThreshold": 1891896870, - "failureThreshold": -1321131665 - }, - "readinessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": "246", - "host": "247", - "scheme": "0åȂ町恰nj揠8lj", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": -2049272966, - "host": "250" - }, - "initialDelaySeconds": -1188153605, - "timeoutSeconds": -427769948, - "periodSeconds": 912004803, - "successThreshold": -2098817064, - "failureThreshold": 1231820696 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": 1736916432, - "host": "253", - "scheme": "a坩O`涁İ而踪鄌eÞȦY籎顒", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": "256", - "host": "257" - } - }, - "preStop": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": 824682619, - "host": "260", - "scheme": "縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - } - }, - "terminationMessagePath": "265", - "terminationMessagePolicy": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "imagePullPolicy": ":hoĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵", - "securityContext": { - "capabilities": { - "add": [ - "Ǯń" - ], - "drop": [ - "ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "266", - "role": "267", - "type": "268", - "level": "269" - }, - "runAsUser": -8865561464185465727, - "runAsGroup": -8271749906556661169, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "ĉş蝿ɖȃ賲鐅臬" - } - } - ], - "terminationGracePeriodSeconds": -1799108093609470992, - "activeDeadlineSeconds": -1245112587824234591, - "dnsPolicy": "鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛", - "nodeSelector": { - "270": "271" - }, - "serviceAccountName": "272", - "serviceAccount": "273", - "automountServiceAccountToken": false, - "nodeName": "274", - "hostIPC": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "275", - "role": "276", - "type": "277", - "level": "278" - }, - "runAsUser": -4782997474747062799, - "runAsGroup": -8992663220934524403, - "runAsNonRoot": false, - "supplementalGroups": [ - -4505867233821630574 - ], - "fsGroup": 6775077391312000638, - "sysctls": [ - { - "name": "279", - "value": "280" - } - ] - }, - "imagePullSecrets": [ - { - "name": "281" - } - ], - "hostname": "282", - "subdomain": "283", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "284", - "operator": "C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛", - "values": [ - "285" - ] - } - ], - "matchFields": [ - { - "key": "286", - "operator": "樺ȃ", - "values": [ - "287" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1650568978, - "preference": { - "matchExpressions": [ - { - "key": "288", - "operator": "¤7djƯĖ漘Z剚敍0)鈼¬", - "values": [ - "289" - ] - } - ], - "matchFields": [ - { - "key": "290", - "operator": "棂p儼Ƿ裚瓶釆Ɗ+j忊", - "values": [ - "291" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-1c--33vk78-8g/Jnf": "ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k" - }, - "matchExpressions": [ - { - "key": "a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "298" - ], - "topologyKey": "299" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -832805508, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV": "18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3" - }, - "matchExpressions": [ - { - "key": "n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n", - "operator": "NotIn", - "values": [ - "E__K_g1cXfr.4_.-_-_-...1py_t" - ] - } - ] - }, - "namespaces": [ - "306" - ], - "topologyKey": "307" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "szA_--_.-.6GA26h": "5Nj-d-4_4--.-_Z4.L3" - }, - "matchExpressions": [ - { - "key": "3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT", - "operator": "In", - "values": [ - "5-.-.T-V_D_0-K_A-_9_ZC" - ] - } - ] - }, - "namespaces": [ - "314" - ], - "topologyKey": "315" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1873425934, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2": "1Ys_Mop34_-y.H" - }, - "matchExpressions": [ - { - "key": "4.B.__6m", - "operator": "In", - "values": [ - "3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn" - ] - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - } - ] - } - }, - "schedulerName": "324", - "tolerations": [ - { - "key": "325", - "operator": "p像-觗裓6Ř筿ɾ5Ų買霎ȃň[\u003e", - "value": "326", - "effect": "滨Ė", - "tolerationSeconds": 6074530584991892487 - } - ], - "hostAliases": [ - { - "ip": "327", - "hostnames": [ - "328" - ] - } - ], - "priorityClassName": "329", - "priority": 147618179, - "dnsConfig": { - "nameservers": [ - "330" - ], - "searches": [ - "331" - ], - "options": [ - { - "name": "332", - "value": "333" - } - ] - }, - "readinessGates": [ - { - "conditionType": "Ȱ" - } - ], - "runtimeClassName": "334", - "enableServiceLinks": true - } - } - }, - "status": { - "replicas": -1998575610, - "fullyLabeledReplicas": 903393545, - "readyReplicas": 989101505, - "availableReplicas": -1795212367, - "observedGeneration": 1806442047290406758, - "conditions": [ - { - "type": "篎3o8[y#t(ȗŜŲ\u0026洪y儕l", - "status": "淴ɑ?¶Ȳ", - "lastTransitionTime": "2477-11-23T00:25:20Z", - "reason": "335", - "message": "336" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.pb deleted file mode 100644 index e6b5cd9b425ecbbf6a7b02da56712c93d75e32a4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4644 zcmYjUdstLQmhWnOko!4F?={KS_GBj5NepSHF1POcI?4EsiiuIz$taV_4fsX`0&0|O zz7GLG8wC^vL>?lFh=|yLJjD!jL${f4<779hpQE$0&i3u@OxBp}&ckTpp6WI;=|9e` zt~zyIb?Tg7ZP9Wq%nups4#GaQa(#Bj=C!HYHfLqd&&u4Ela-ONK8Jnq9CIBpNMMoZ zK#~*5E~j@-q`B04_T6N&!JVpwn-09=Z4K0L;hOV`xAe{6$-ec%lSI)KNsxI}(nL*> z6x{DW%;?iJ%xK3|Fv!qrA%Uw$|5aoGJ|y1O8E2y#!3W-m59#A z7vu#85Bp2r&-J;-%ClWoLU@aYa;!wkvl7{jUIA8xogS%h2M@a=%}0F=_~*g8?$O@V zq`=`1%!9iV&Hid{@vlId>asD91G~n?Gn3$}vliAfJ^su6x32!}A^Z@`TLp==3bNzy zbfy!*KL!4&4y&L!t%B~F@OHSgS(r+AU64gZB#NqtGOzKxr2Sj{r9TheY53%C2z)E; zsrw@M@1r+=ngS92&Bot$C!_U*3 z%1&62>I6Q}F4<0)X#SgWMlgSYBOzljDR0Xd&wtTNA9 zWnw=Z8kv-UTvK2|fCv!xCAr{)XE@J*6o&g zNsLtiK?<=qbR7Nc+o*h}RS{fPMdZ;et0K*@tegN$@@h+(RZ)^*v!cQV&5l-rBZ_WA zDUb{*2vLc{stQi4D!QzyBv@5>7VK1&IVjBmU)ZH;4mzWQ!4PZ>_Gl#C1|u+C6Ya1v=jjdIOQ`02}1Vx8!y5fM~2|7tI z+yC(SWZOu=>84orxY0CVQElB<^Sfd*4y&#uSX@?JKZK?*afIhtAjEE|MKc+YLU;jA z20kL4m+VIxhrWvKw1>ZbcQ)d@svLqDX`I!qHDyn_#M0TBcs zq6f``RU*+<+3`eXu%lq4J$$KF_m_q8J1Db~h=d>e_Kys|J&2Es@}Y2ykXo`O#DUg3#dsb9d+XezW|z zHoh;WoyJGf9Zxe)#9M4%w|v&|=&o8|UgmB0|EDhyQ)55*u%J6uvl2$n-SxyJUO!)3 z9pmO}&Ubz^AhvUra)sCQ3ZNb!TqZZ`{JSs6yEt< zsPDpPfAB;%Svhtp+LHJuZ*4w)t~(!c)TRk^}2papR5O z+%H0j79MGqIUk=KHxEX7Y7d~~C%yZ8jp6#sfhvDtxXTl%*b^>k&qtQM$WnozY(m9@ z)Mp=y#)N2~F`uh?w4;94}+nH8up+dP5Rh`S}&(is`7@>jOeS|-qXB|yEh zB-}k+@NjSSp`s8kI+GsEtN6{AJ|LBD(E?6GsfuG4GG>!3s~f_84@zI03p65Hb&lkPJjz2}D|LdB?H|<-EaA?^P&Uf=Y8zg`zE}n(fPv zzWhVa$?G3qLUv2Sq04{1cE9Vv;IC2Qx9tPfw;I1Lc$+^^6!~3KS>$LT?WM2>3cR54 zdGxYt(3yY=Zc4>N=+tq@ZDVQ@jW1C?JTiCe_Nfoi0wn0)hVu{x@k*G@gHmoIO?7&9qYb(;02q0wjtM73d z?BY1%7uoET1zGEJmt}2RxN~#vHi)QBOO~#)2d(iBu6+5`gP8AyR^~5=No4@BVl3fw z4eLoeI589Nq;?s2*;Z_<7CExcShHB%i7{Ab5QAH0tlsg@b2)DPo9qijTZ6HJ4KW#3 zC2bA&F2`eo;8(d#*f6#jOJ&Xw*$TvL&g9a8F$-_PIwtZCECZ@c#XE_RilL8SF&E>F z8+8%m?4-3gOXn9Eb0vt+Ycxg%zsy+1y&;0=?VN#yO{+MZ2QgByoDpRJ%b#m2@= zE|Z-IjxWh{JhRX+mKqz$+SMC!ILU~)1o0u+y9|hlNYRDJtB&G0W*9LS5c48q%gvi> zU<|yRvS_ZLY+|R%%hK^WEEy80z($J1y(Y4I5VH{s#i9lT=ise472|gS@$+ld4SY7H zYZwFMq#rqV`_>KW`VCro-VOQkcbH z)<$kS7Lu|-v4mG`1+|N?Mw7(gRv2qFZV{ITvPc&9o{_o)j*4Jo2?qIMS{`R;uk$}A zkO%_%I9Zcxyq=XUN(SD=EoPT6@e(%=q$pdX7Q(sZa*Mge+wm628y>GBTi0h`$b#rk zgjB{EaFE=BMQRQfIT{zvkPKsWCO9Do;DjL7BB0U<^vxtdAkbofzyg7$0z`5Fk%c*Q zNwK-Z-s3U+Za;Fp`eqC|I)9urKQi3wZyPPnFguQgDtjZxhRmK5qjjN^mqLSks05XQ z4nkW4fz}WO9fY<8qDZt-5QPFSB?`P`z+X|20q-6_R3IsbLiZev5MtJsJbtFpezbP zG&LFO3Q-9~76cGK5YhF6k;|cyQ{z>}XlrP2K!7=EWiGRT_5lLepQ1)pV`)qOKkvOq zFB#e(iK;s-wEGcw4*>Zd>>%(ifEm$N6DT@twg0~8tDBP(hVGRAB^JlT8;xD%u_1qI z=s|g`LZraOjiMj|)s`Y`D5z9x`JUUSzXKAWRa2bP7G#Z_86V#EVz8s%Y^=R4%9L8T2F6se*>)W5VlaZMxca0xUGJE^qiZpscmv_&&aw0cS$NuQ87tDq|vtAiL zHdYxp74EAX9~eJv_P3k8?k&EyM?iw7Kmv*r5DFxCJ)y3$)qCyceczubkbqb6oC`yp z-8bt3eYwd~%u`24&U;%H21~0K<|DKhp$dee_<_LdGzuDs44@%~ABe)+;F?cUH@T9L(rW;1XXW!9M;EG)<2)79bTO2tG7LAAZx=?rm8WeM*V&SbU!e1YpjwOxoGUEuHFB7x0U+#KtTcW?(SLgH0FuU7!1&fYku#DN; g9XL39h>yQp7P#?Ko5czGWET*{VR2giAAEZCD*ylh diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.yaml deleted file mode 100644 index 12c625897..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ReplicationController.yaml +++ /dev/null @@ -1,714 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - "24": "25" - template: - metadata: - annotations: - "33": "34" - clusterName: "39" - creationTimestamp: null - deletionGracePeriodSeconds: 4303487026632006283 - finalizers: - - "38" - generateName: "27" - generation: -530163119072260397 - labels: - "31": "32" - managedFields: - - apiVersion: "41" - fields: - "42": - "43": null - manager: "40" - name: "26" - namespace: "28" - ownerReferences: - - apiVersion: "35" - blockOwnerDeletion: true - controller: false - kind: "36" - name: "37" - uid: ³-Ǐ忄*齧獚敆ȎțêɘIJ斬 - resourceVersion: "1092536316763508004" - selfLink: "29" - uid: ^苣 - spec: - activeDeadlineSeconds: -1245112587824234591 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "288" - operator: ¤7djƯĖ漘Z剚敍0)鈼¬ - values: - - "289" - matchFields: - - key: "290" - operator: 棂p儼Ƿ裚瓶釆Ɗ+j忊 - values: - - "291" - weight: -1650568978 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "284" - operator: C'ɵK.Q貇£ȹ嫰ƹǔw÷nI粛 - values: - - "285" - matchFields: - - key: "286" - operator: 樺ȃ - values: - - "287" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: n.j-6-o-h-9-15v-5925a-x12a-214-3s--gg93--p/c-o90G_A4..-L..-__0N_N.O30-_u._-2hT.-z-._7-5lL..-_--.VEa-_gn.n - operator: NotIn - values: - - E__K_g1cXfr.4_.-_-_-...1py_t - matchLabels: - 65--4-j8-9/v.3n-x.-_-_-Nm-_X3.1d_YH3x---.._1_.N_XvSA..eV: 18Y--6-_3J--.48Y.q.0-_1-F.h-__k_K5._3 - namespaces: - - "306" - topologyKey: "307" - weight: -832805508 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: a3-7bf46g-40883176jt-8/lv-_aLQbI2_-.XFw.8._..._Wp - operator: DoesNotExist - matchLabels: - 6-1c--33vk78-8g/Jnf: ExZ_r7-6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2k - namespaces: - - "298" - topologyKey: "299" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4.B.__6m - operator: In - values: - - 3-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7r-3.----._4__Xn - matchLabels: - a--g.u-2/p-9-4-Tm.__G-8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_-_2: 1Ys_Mop34_-y.H - namespaces: - - "322" - topologyKey: "323" - weight: -1873425934 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3---38----r-m-a--q3980c7f0p-3-----995----5sumf7ef8jzv4-9-35od/3.__-.0-z_z0sn_.hx_-a__0-8-.M-.-.-8v-J1zT - operator: In - values: - - 5-.-.T-V_D_0-K_A-_9_ZC - matchLabels: - szA_--_.-.6GA26h: 5Nj-d-4_4--.-_Z4.L3 - namespaces: - - "314" - topologyKey: "315" - automountServiceAccountToken: false - containers: - - args: - - "213" - command: - - "212" - env: - - name: "220" - value: "221" - valueFrom: - configMapKeyRef: - key: "227" - name: "226" - optional: false - fieldRef: - apiVersion: "222" - fieldPath: "223" - resourceFieldRef: - containerName: "224" - divisor: "217" - resource: "225" - secretKeyRef: - key: "229" - name: "228" - optional: false - envFrom: - - configMapRef: - name: "218" - optional: false - prefix: "217" - secretRef: - name: "219" - optional: true - image: "211" - imagePullPolicy: :hoĂɋ瀐<ɉ湨H=å睫}堇硲蕵 - lifecycle: - postStart: - exec: - command: - - "251" - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: 1736916432 - scheme: a坩O`涁İ而踪鄌eÞȦY籎顒 - tcpSocket: - host: "257" - port: "256" - preStop: - exec: - command: - - "258" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "259" - port: 824682619 - scheme: 縱ù墴1Rƥ贫d飼$俊跾|@?鷅bȻ - tcpSocket: - host: "264" - port: "263" - livenessProbe: - exec: - command: - - "236" - failureThreshold: -1321131665 - httpGet: - host: "239" - httpHeaders: - - name: "240" - value: "241" - path: "237" - port: "238" - scheme: ƛƟ)ÙæNǚ錯ƶRquA?瞲Ť倱< - initialDelaySeconds: 1288053477 - periodSeconds: 1607133856 - successThreshold: 1891896870 - tcpSocket: - host: "243" - port: "242" - timeoutSeconds: -163325250 - name: "210" - ports: - - containerPort: 1655406148 - hostIP: "216" - hostPort: 1083816849 - name: "215" - protocol: Ǹ轺@)蓳嗘TʡȂŏ{sǡƟ狩鴈o - readinessProbe: - exec: - command: - - "244" - failureThreshold: 1231820696 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "245" - port: "246" - scheme: 0åȂ町恰nj揠8lj - initialDelaySeconds: -1188153605 - periodSeconds: 912004803 - successThreshold: -2098817064 - tcpSocket: - host: "250" - port: -2049272966 - timeoutSeconds: -427769948 - resources: - limits: - Ŗ怳冘HǺƶȤ^: "698" - requests: - ldg滠鼍ƭt?: "747" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ǯń - drop: - - ǰ溟ɴ扵閝ȝ鐵儣廡ɑ龫`劳 - privileged: false - procMount: ĉş蝿ɖȃ賲鐅臬 - readOnlyRootFilesystem: true - runAsGroup: -8271749906556661169 - runAsNonRoot: false - runAsUser: -8865561464185465727 - seLinuxOptions: - level: "269" - role: "267" - type: "268" - user: "266" - terminationMessagePath: "265" - terminationMessagePolicy: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - volumeDevices: - - devicePath: "235" - name: "234" - volumeMounts: - - mountPath: "231" - mountPropagation: $ - name: "230" - readOnly: true - subPath: "232" - subPathExpr: "233" - workingDir: "214" - dnsConfig: - nameservers: - - "330" - options: - - name: "332" - value: "333" - searches: - - "331" - dnsPolicy: 鞎sn芞QÄȻȊ+?ƭ峧Y栲茇竛吲蚛 - enableServiceLinks: true - hostAliases: - - hostnames: - - "328" - ip: "327" - hostIPC: true - hostname: "282" - imagePullSecrets: - - name: "281" - initContainers: - - args: - - "154" - command: - - "153" - env: - - name: "161" - value: "162" - valueFrom: - configMapKeyRef: - key: "168" - name: "167" - optional: false - fieldRef: - apiVersion: "163" - fieldPath: "164" - resourceFieldRef: - containerName: "165" - divisor: "526" - resource: "166" - secretKeyRef: - key: "170" - name: "169" - optional: false - envFrom: - - configMapRef: - name: "159" - optional: true - prefix: "158" - secretRef: - name: "160" - optional: false - image: "152" - imagePullPolicy: Ȗ脵鴈Ō - lifecycle: - postStart: - exec: - command: - - "191" - httpGet: - host: "193" - httpHeaders: - - name: "194" - value: "195" - path: "192" - port: 1348141491 - scheme: Ȃ揲ȼ - tcpSocket: - host: "197" - port: "196" - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: 468716734 - scheme: Cʖ畬x骀 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "177" - failureThreshold: -1040245211 - httpGet: - host: "179" - httpHeaders: - - name: "180" - value: "181" - path: "178" - port: -662805900 - initialDelaySeconds: 578888856 - periodSeconds: -557582532 - successThreshold: -773009446 - tcpSocket: - host: "183" - port: "182" - timeoutSeconds: 2073854558 - name: "151" - ports: - - containerPort: -1417286635 - hostIP: "157" - hostPort: -737070070 - name: "156" - protocol: /C龷ȪÆl殛瓷雼浢Ü礽绅 - readinessProbe: - exec: - command: - - "184" - failureThreshold: -330720710 - httpGet: - host: "186" - httpHeaders: - - name: "187" - value: "188" - path: "185" - port: -2064088433 - scheme: Do©Ǿt'容柚ʕIã陫ʋs - initialDelaySeconds: 229600975 - periodSeconds: -1697933829 - successThreshold: -1438986781 - tcpSocket: - host: "190" - port: "189" - timeoutSeconds: -35598353 - resources: - limits: - i皬择,Q捇ȸ{+ɸ殁Ka縳: "499" - requests: - 笓珣筩ƐP_痸荎: "787" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - yǠ/淹\韲翁&ʢsɜ - drop: - - \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - privileged: false - procMount: 楙¯ĦE勗E - readOnlyRootFilesystem: false - runAsGroup: 8318470556027199025 - runAsNonRoot: false - runAsUser: -1473821783696471652 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - stdin: true - stdinOnce: true - terminationMessagePath: "205" - terminationMessagePolicy: ů湙騘& - tty: true - volumeDevices: - - devicePath: "176" - name: "175" - volumeMounts: - - mountPath: "172" - mountPropagation: ¿燥ǖ_è绺 - name: "171" - subPath: "173" - subPathExpr: "174" - workingDir: "155" - nodeName: "274" - nodeSelector: - "270": "271" - priority: 147618179 - priorityClassName: "329" - readinessGates: - - conditionType: Ȱ - runtimeClassName: "334" - schedulerName: "324" - securityContext: - fsGroup: 6775077391312000638 - runAsGroup: -8992663220934524403 - runAsNonRoot: false - runAsUser: -4782997474747062799 - seLinuxOptions: - level: "278" - role: "276" - type: "277" - user: "275" - supplementalGroups: - - -4505867233821630574 - sysctls: - - name: "279" - value: "280" - serviceAccount: "273" - serviceAccountName: "272" - shareProcessNamespace: true - subdomain: "283" - terminationGracePeriodSeconds: -1799108093609470992 - tolerations: - - effect: 滨Ė - key: "325" - operator: p像-觗裓6Ř筿ɾ5Ų買霎ȃň[> - tolerationSeconds: 6074530584991892487 - value: "326" - volumes: - - awsElasticBlockStore: - fsType: "51" - partition: 13677460 - readOnly: true - volumeID: "50" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "114" - diskURI: "115" - fsType: "116" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "100" - shareName: "101" - cephfs: - monitors: - - "85" - path: "86" - secretFile: "88" - secretRef: - name: "89" - user: "87" - cinder: - fsType: "83" - readOnly: true - secretRef: - name: "84" - volumeID: "82" - configMap: - defaultMode: -1570767512 - items: - - key: "103" - mode: -1907421291 - path: "104" - name: "102" - optional: false - csi: - driver: "146" - fsType: "147" - nodePublishSecretRef: - name: "150" - readOnly: true - volumeAttributes: - "148": "149" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "93" - fieldPath: "94" - mode: 2107119206 - path: "92" - resourceFieldRef: - containerName: "95" - divisor: "291" - resource: "96" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "98" - lun: -2040518604 - targetWWNs: - - "97" - wwids: - - "99" - flexVolume: - driver: "77" - fsType: "78" - options: - "80": "81" - readOnly: true - secretRef: - name: "79" - flocker: - datasetName: "90" - datasetUUID: "91" - gcePersistentDisk: - fsType: "49" - partition: -664310043 - pdName: "48" - readOnly: true - gitRepo: - directory: "54" - repository: "52" - revision: "53" - glusterfs: - endpoints: "67" - path: "68" - readOnly: true - hostPath: - path: "47" - type: DrȮ - iscsi: - fsType: "63" - initiatorName: "66" - iqn: "61" - iscsiInterface: "62" - lun: -314157282 - portals: - - "64" - readOnly: true - secretRef: - name: "65" - targetPortal: "60" - name: "46" - nfs: - path: "59" - server: "58" - persistentVolumeClaim: - claimName: "69" - readOnly: true - photonPersistentDisk: - fsType: "118" - pdID: "117" - portworxVolume: - fsType: "133" - volumeID: "132" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "128" - mode: 813865935 - path: "129" - name: "127" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "123" - fieldPath: "124" - mode: 75785535 - path: "122" - resourceFieldRef: - containerName: "125" - divisor: "852" - resource: "126" - secret: - items: - - key: "120" - mode: 2036549700 - path: "121" - name: "119" - optional: false - serviceAccountToken: - audience: "130" - expirationSeconds: 3094703520378368232 - path: "131" - quobyte: - group: "112" - readOnly: true - registry: "109" - tenant: "113" - user: "111" - volume: "110" - rbd: - fsType: "72" - image: "71" - keyring: "75" - monitors: - - "70" - pool: "73" - readOnly: true - secretRef: - name: "76" - user: "74" - scaleIO: - fsType: "141" - gateway: "134" - protectionDomain: "137" - secretRef: - name: "136" - sslEnabled: true - storageMode: "139" - storagePool: "138" - system: "135" - volumeName: "140" - secret: - defaultMode: 819364842 - items: - - key: "56" - mode: 1557090007 - path: "57" - optional: true - secretName: "55" - storageos: - fsType: "144" - readOnly: true - secretRef: - name: "145" - volumeName: "142" - volumeNamespace: "143" - vsphereVolume: - fsType: "106" - storagePolicyID: "108" - storagePolicyName: "107" - volumePath: "105" -status: - availableReplicas: -1795212367 - conditions: - - lastTransitionTime: "2477-11-23T00:25:20Z" - message: "336" - reason: "335" - status: 淴ɑ?¶Ȳ - type: 篎3o8[y#t(ȗŜŲ&洪y儕l - fullyLabeledReplicas: 903393545 - observedGeneration: 1806442047290406758 - readyReplicas: 989101505 - replicas: -1998575610 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.json deleted file mode 100644 index 1c0d34588..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "ResourceQuota", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "hard": { - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕": "57" - }, - "scopes": [ - "颋Dž" - ], - "scopeSelector": { - "matchExpressions": [ - { - "scopeName": "?狱³-Ǐ忄*齧獚", - "operator": "彀亞", - "values": [ - "24" - ] - } - ] - } - }, - "status": { - "hard": { - "ɘIJ斬³;": "753" - }, - "used": { - "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ": "995" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.pb deleted file mode 100644 index 3ce97ce000974c103cb7dd466bb6e83b4a3d8214..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 386 zcmV-|0e${!ICB6B6AA)$F%k_@Wpi(Ja${vtb#HWG65;|1$N>rgG75&|(WY9I;%F)|tg zF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7 z#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5``$3L^>|=!Ct*o5X_UhnMJ+kHw1U zn~KDVdFQu<=eU&;1PTH*HxdQuqKn6c8Y2oJ3KKu)i?PD9Eys`Lzl193y{G4mni2-( zy@2Gpo*Du&G#Ww*6AB8+n8dQ?maM|FI}!y712;7@5-SQKa>b6vfaaXCUg(RXX2!fg gXhd?zu21EPvFW*&<)Na)lOPfW3IjPgH5vdS07QM8C;$Ke diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.yaml deleted file mode 100644 index c747c278a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.after_roundtrip.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -kind: ResourceQuota -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - hard: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - scopeSelector: - matchExpressions: - - operator: 彀亞 - scopeName: ?狱³-Ǐ忄*齧獚 - values: - - "24" - scopes: - - 颋Dž -status: - hard: - ɘIJ斬³;: "753" - used: - 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ': "995" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.json deleted file mode 100644 index 7f7df22c2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "kind": "ResourceQuota", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "hard": { - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕": "57" - }, - "scopes": [ - "颋Dž" - ], - "scopeSelector": { - "matchExpressions": [ - { - "scopeName": "?狱³-Ǐ忄*齧獚", - "operator": "彀亞", - "values": [ - "24" - ] - } - ] - } - }, - "status": { - "hard": { - "ɘIJ斬³;": "753" - }, - "used": { - "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ": "995" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.pb deleted file mode 100644 index 7e2104785cf278ab7f92ec47d70a03c9bf46e1af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 402 zcmV;D0d4+kICB6B6AA)$F%k_@Wpi(Ja${vtb#HWG67m8H*Z~RwG75&|(WY9I;%F)|tg zF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7 z#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#lW3L^>| z=!Ct*o5X_UhnMJ+kHw1Un~KDVdFQu<=eU&;1PTH*HxdQuqKn6c8Y2oJ3KKu)i?PD9 zEys`Lzl193y{G4mni2-(y@2Gpo*Du&G#Ww*6AB8+n8dQ?maM|FI}!y712;7@5-SQK wa>b6vfaaXCUg(RXX2!fgXhd?zu21EPvFW*&<)Na)lOPfW3IjPgH5vdS0GO|wp8x;= diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.yaml deleted file mode 100644 index 08ebfd4c4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ResourceQuota.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: v1 -kind: ResourceQuota -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - hard: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - scopeSelector: - matchExpressions: - - operator: 彀亞 - scopeName: ?狱³-Ǐ忄*齧獚 - values: - - "24" - scopes: - - 颋Dž -status: - hard: - ɘIJ斬³;: "753" - used: - 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ': "995" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.json deleted file mode 100644 index 69f9ff089..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "kind": "Secret", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": { - "24": "LA==" - }, - "stringData": { - "25": "26" - }, - "type": "Ă凗蓏Ŋ蛊ĉy" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.pb deleted file mode 100644 index e958752603f35dd0f0d36af61c02c77124c7d103..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmV+k0rviDICB6B3bQ16Z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6= zaZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(y zg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8 zyOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t z!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc2MPi*G!g+U8W6;S<%gH(laIxU=$nefiFqOj P3IZ}U5&|+d8UP{yQ{!Gg diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.yaml deleted file mode 100644 index b203c48d4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.after_roundtrip.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -data: - "24": LA== -kind: Secret -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -stringData: - "25": "26" -type: Ă凗蓏Ŋ蛊ĉy diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.json deleted file mode 100644 index 02069c270..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "kind": "Secret", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "data": { - "24": "LA==" - }, - "stringData": { - "25": "26" - }, - "type": "Ă凗蓏Ŋ蛊ĉy" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.pb deleted file mode 100644 index 154f3fc8cc43c1d0d2d9400404f5b642a3e8fa44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmV+!0p|W|ICB6B3bP|993fKV(0WuN+Ga3OjA^|ljBE*I1ql?6= zaZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(y zg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8 zyOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t z!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM>I1&g71_}Z(IT8R82MPi*G!g+U8W6;S f<%gH(laIxU=$nefiFqOj3IZ}U5&|+d8UP{yP(5Ea diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.yaml deleted file mode 100644 index ebea0bee6..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Secret.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -data: - "24": LA== -kind: Secret -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -stringData: - "25": "26" -type: Ă凗蓏Ŋ蛊ĉy diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.json deleted file mode 100644 index 5760b921b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "kind": "SerializedReference", - "apiVersion": "v1", - "reference": { - "kind": "2", - "namespace": "3", - "name": "4", - "uid": "wȉŏ軂:鹼(c螂z=lx*", - "apiVersion": "5", - "resourceVersion": "6", - "fieldPath": "7" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.SerializedReference.pb deleted file mode 100644 index 75adbf89e973a89800003c2ac9e78ecd7b6a1322..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 81 zcmd0{C}!Z24rX? zv*qyiME#RfYM)JP)OfaY`jNI+plRkt3_^1lxtzI}j7)^2U$pE!GW$r=)As2vCifrh zdNI4}NN45q?XAyuOqH0qy>rK}|3JW~#LvMX@cG-sqafaYMkxl3=WWdw*@ZZOhL{R5 z8JS5j8JR0_9bb5?KUhWk&|VKMCL;?g&SzWZKHaeY>D~q>CL>EPCS!vjCS$`WmKXC@ sIwefL_4g~pv<$`~UM_Bqj<*+fL2Q%a;o{-~8f|PO#AIwN#h}Ch07r43hyVZp diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.after_roundtrip.yaml deleted file mode 100644 index b5eb08cb6..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.after_roundtrip.yaml +++ /dev/null @@ -1,59 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - clusterIP: "27" - externalIPs: - - "28" - externalName: "31" - externalTrafficPolicy: 螩B - healthCheckNodePort: -21009133 - loadBalancerIP: "29" - loadBalancerSourceRanges: - - "30" - ports: - - name: "24" - nodePort: 2048967527 - port: -1493017703 - protocol: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 - targetPort: -123438221 - publishNotReadyAddresses: true - selector: - "25": "26" - sessionAffinity: 洝尿彀 - sessionAffinityConfig: - clientIP: - timeoutSeconds: -1487653240 - type: ǡƏS$+½H -status: - loadBalancer: - ingress: - - hostname: "33" - ip: "32" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.json deleted file mode 100644 index 3d7855972..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "kind": "Service", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "ports": [ - { - "name": "24", - "protocol": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "port": -1493017703, - "targetPort": -123438221, - "nodePort": 2048967527 - } - ], - "selector": { - "25": "26" - }, - "clusterIP": "27", - "type": "ǡƏS$+½H", - "externalIPs": [ - "28" - ], - "sessionAffinity": "洝尿彀", - "loadBalancerIP": "29", - "loadBalancerSourceRanges": [ - "30" - ], - "externalName": "31", - "externalTrafficPolicy": "螩B", - "healthCheckNodePort": -21009133, - "publishNotReadyAddresses": true, - "sessionAffinityConfig": { - "clientIP": { - "timeoutSeconds": -1487653240 - } - } - }, - "status": { - "loadBalancer": { - "ingress": [ - { - "ip": "32", - "hostname": "33" - } - ] - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Service.pb deleted file mode 100644 index aec9eff4fbf932cf8ce3c38456fa5c499032476e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 418 zcmd0{C}!Z|Kxms|&rJ z&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPtw@wrqz z-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b--Da0T&hmp&fi^<4DNcu&~ z-XpV*G(Byf{$g_f(XJP>yN+~LKHuK@e8*IYncF*e{Q3_Bj7t0*3<96OO*{(X{b!V7 z(0Ja~e32b!B9oD+5R;La6qAv;64&vC$NGa+v=8m|&|)&Ou;P5SW$x1r`=9P@aAGpD z^kOnL2x2lejAD5)Z>3Yhcg z0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2 znZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=VcH3|YUG!ggio}U|=eLFDxRojbGB+{;GB`Q{GC3Lq3Ia1QAORWxA^;v)YjFSo diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.after_roundtrip.yaml deleted file mode 100644 index 62daa0ee0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -automountServiceAccountToken: true -imagePullSecrets: -- name: "30" -kind: ServiceAccount -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -secrets: -- apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.json deleted file mode 100644 index b06268b12..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "kind": "ServiceAccount", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "secrets": [ - { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - } - ], - "imagePullSecrets": [ - { - "name": "30" - } - ], - "automountServiceAccountToken": true -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.pb deleted file mode 100644 index ea0c3459f7e20fc902bc82050acff789bb85377b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 315 zcmV-B0mS}mICB6B6bb@%F%k|_WpZ|DV`V{OV{dhCbP}2Z3fKV(0WuN+Ga3OjA^|lj zBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOi zHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg z0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0X+%=F*Xt*>5z)$l#1!2 znZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM>I1&g71_}Z(IT8R8H3|YU zG!ggio}U|=eLFDxRojbGB+{;GB`Q{GC3Lq N3Ia1QAORWxA^`C8Z0G<0 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.yaml deleted file mode 100644 index 047071666..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceAccount.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: v1 -automountServiceAccountToken: true -imagePullSecrets: -- name: "30" -kind: ServiceAccount -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -secrets: -- apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.json deleted file mode 100644 index ab28cd774..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "ServiceProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.ServiceProxyOptions.pb deleted file mode 100644 index 1685c9cc9bf57c9a27b70b3e7ea0767f121fb633..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 vcmd0{C}!Z2n>)ZEh0#LUFV!otkZ!qnJUib06cNQ%)|Ny6^gj=eADE`Qdw;pNT=C-z01SQHWX zVoy`7mNgfni4dcy6r-7vGMDtTg&SgH4=+2>^K9J?qvsv-5A8X$D!=Sy$F^e=g&57H e7%eoOEIsw+-+v%rG-5D#`|9li2uF%Ri2(rNa!VZm diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Status.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.Status.yaml deleted file mode 100644 index 8e5da3a29..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.Status.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -code: -467962515 -details: - causes: - - field: "8" - message: "7" - reason: 桰]]æȌ殸2爟¼ªov鈶Ƒ - group: "5" - kind: "6" - name: "4" - retryAfterSeconds: -309161244 -kind: Status -message: "3" -metadata: - resourceVersion: "17435791464288618533" - selfLink: ȉŏ軂:鹼(c螂z=lx* -reason: '>渽蝧抰鹐ȾZȢXQ輂]' -status: "2" diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.json deleted file mode 100644 index 831354293..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "kind": "UpdateOptions", - "apiVersion": "v1", - "dryRun": [ - "2" - ], - "fieldManager": "3" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.pb deleted file mode 100644 index 411dbc582cde9d3a968fdd6824f09d48aefe6ca9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi=3*){6ygmnNJ%V7^)D#N%+D(pV&h^o5@Ix#Vo+iL0IO{XEC2ui diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.yaml deleted file mode 100644 index 2102aa891..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.UpdateOptions.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -dryRun: -- "2" -fieldManager: "3" -kind: UpdateOptions diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.json b/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.json deleted file mode 100644 index aadfba67a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "type": "2", - "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}} -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.pb b/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.pb deleted file mode 100644 index 845f8ab8a1de26987d1c82c856da2439eca0acb7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 121 zcmWm6F$=;l5QgChP8l;g-YiO;B&&a+xL?y7jwa2~ON&za-#xdF=Yw~8s`F>>f(z_V zk1+aS2NZtOqFiT)Kp!lU>6U7_Zyj7=;(0WGt=ekozd~jzlpyY~kYrA%5WB;)VOwom PaYN2HWcnY+#ew?)N<}2L diff --git a/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.yaml b/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.yaml deleted file mode 100644 index a146a30f0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/core.v1.WatchEvent.yaml +++ /dev/null @@ -1,8 +0,0 @@ -object: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -type: "2" diff --git a/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.json deleted file mode 100644 index 9bb73a46d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "events.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "eventTime": "2600-06-10T04:50:19.358488Z", - "series": { - "count": 2114329341, - "lastObservedTime": "1999-07-03T22:31:10.529225Z", - "state": "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - }, - "reportingController": "24", - "reportingInstance": "25", - "action": "26", - "reason": "27", - "regarding": { - "kind": "28", - "namespace": "29", - "name": "30", - "uid": "DžSǡƏS$+½H牗洝尿彀亞螩B峅", - "apiVersion": "31", - "resourceVersion": "32", - "fieldPath": "33" - }, - "related": { - "kind": "34", - "namespace": "35", - "name": "36", - "uid": "4%a鯿r", - "apiVersion": "37", - "resourceVersion": "38", - "fieldPath": "39" - }, - "note": "40", - "type": "41", - "deprecatedSource": { - "component": "42", - "host": "43" - }, - "deprecatedFirstTimestamp": "2149-06-18T16:38:18Z", - "deprecatedLastTimestamp": "2567-05-09T03:50:37Z", - "deprecatedCount": 254375933 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.after_roundtrip.pb deleted file mode 100644 index 0ea68ac211dd8281517a9842128eb6f3a31e8a57..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 464 zcmV;>0Wbb*ICB6B9tss@c4cmKb1rK*b1rFbFLp6vWprUN5(PzeWo~p5r2`7c0SW;! z5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvl zGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD1 z0x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-01^xci_ON4N)W)W z_^JUKEeQR!nD7S@3<$2C`nv-VsH&~}0U8(OhnMJ+kHw1Un~KDVdFQu<=eU(V#l0c| zGBhdzGBq*+GB!E_GB-j!3IZ}X5&|+g8UiygA|uCzQ^%pkk5eQo!o5i6iI?WIo#n8< z<-LI9x}NBssY2zmg(?CwF){)(GCBe?GfE)}0y8uc0y8xl0y8!u2Q(#N>94R5$j1>?7atH{G^3Ž -type: "41" diff --git a/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.json b/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.json deleted file mode 100644 index 00d0fc433..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "events.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "eventTime": "2600-06-10T04:50:19.358488Z", - "series": { - "count": 2114329341, - "lastObservedTime": "1999-07-03T22:31:10.529225Z", - "state": "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - }, - "reportingController": "24", - "reportingInstance": "25", - "action": "26", - "reason": "27", - "regarding": { - "kind": "28", - "namespace": "29", - "name": "30", - "uid": "DžSǡƏS$+½H牗洝尿彀亞螩B峅", - "apiVersion": "31", - "resourceVersion": "32", - "fieldPath": "33" - }, - "related": { - "kind": "34", - "namespace": "35", - "name": "36", - "uid": "4%a鯿r", - "apiVersion": "37", - "resourceVersion": "38", - "fieldPath": "39" - }, - "note": "40", - "type": "41", - "deprecatedSource": { - "component": "42", - "host": "43" - }, - "deprecatedFirstTimestamp": "2149-06-18T16:38:18Z", - "deprecatedLastTimestamp": "2567-05-09T03:50:37Z", - "deprecatedCount": 254375933 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.pb b/pseudo/k8s/api/testdata/v1.14.0/events.k8s.io.v1beta1.Event.pb deleted file mode 100644 index e08f3dee9194638a6d4c54e01293f8b95f2b9e2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 480 zcmV<60U!QrICB6B9tss@c4cmKb1rK*b1rFbFLp6vWprUN5(PzeWo~p5wF3&+0SW;! z5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvl zGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD1 z0x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r#5DE?o0x>ue2nq%Y z0x>xf01^xci_ON4N)W)W_^JUKEeQR!nD7S@3<$2C`nv-VsH&~}0U8(OhnMJ+kHw1U zn~KDVdFQu<=eU(V#l0c|GBhdzGBq*+GB!E_GB-j!3IZ}X5&|+g8UiygA|uCzQ^%pk zk5eQo!o5i6iI?WIo#n8<<-LI9x}NBssY2zmg(?CwF){)(GCBe?GfE)}0y8uc0y8xl z0y8!u2Q(#N>94R5$j1>?7 WatH{G^3Ž -type: "41" diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.json deleted file mode 100644 index 6cec514e7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.json +++ /dev/null @@ -1,1063 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": 6808883506426686803, - "runAsGroup": 4559267523176571, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ğ#咻痗ȡmƴ" - }, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -1942612426, - "containerPort": -1222594476, - "protocol": "遼ūPH炮掊°nʮ閼咎櫸eʔ", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "627" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "280" - }, - "requests": { - "": "809" - } - }, - "volumeMounts": [ - { - "name": "236", - "mountPath": "237", - "subPath": "238", - "mountPropagation": "å睫}堇硲蕵ɢ苆", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": -57352147, - "host": "244", - "scheme": "Y鶪5w垁鷌辪虽U珝", - "httpHeaders": [ - { - "name": "245", - "value": "246" - } - ] - }, - "tcpSocket": { - "port": "247", - "host": "248" - }, - "initialDelaySeconds": 411878451, - "timeoutSeconds": 1676588692, - "periodSeconds": -254454655, - "successThreshold": -1925916855, - "failureThreshold": -1553779100 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "}", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": "267", - "host": "268", - "scheme": "@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": "271", - "host": "272" - } - } - }, - "terminationMessagePath": "273", - "terminationMessagePolicy": "Ŭ", - "imagePullPolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "securityContext": { - "capabilities": { - "add": [ - "ɵK.Q貇£ȹ" - ], - "drop": [ - "ƹǔw÷nI粛E煹ǐƲE" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -378701183370790036, - "runAsGroup": -8656955128235291182, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Z" - } - } - ], - "restartPolicy": "0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭", - "terminationGracePeriodSeconds": 3211788672813464064, - "activeDeadlineSeconds": 3932374770591864310, - "dnsPolicy": "ħ籘Àǒɿʒ", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "runAsUser": 8519427267030036521, - "runAsGroup": -4151726557168738613, - "runAsNonRoot": true, - "supplementalGroups": [ - 1875040261412240501 - ], - "fsGroup": -3078742976292946468, - "sysctls": [ - { - "name": "287", - "value": "288" - } - ] - }, - "imagePullSecrets": [ - { - "name": "289" - } - ], - "hostname": "290", - "subdomain": "291", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "292", - "operator": "Z1Ůđ眊ľǎɳ,ǿ飏騀呣", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "ƻ悖ȩ0Ƹ[", - "values": [ - "295" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1694108493, - "preference": { - "matchExpressions": [ - { - "key": "296", - "operator": "U髷裎$MVȟ@7飣奺Ȋ", - "values": [ - "297" - ] - } - ], - "matchFields": [ - { - "key": "298", - "operator": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "values": [ - "299" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7": "OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P" - }, - "matchExpressions": [ - { - "key": "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J", - "operator": "In", - "values": [ - "3-___t-Z8SUGP.-_.uB-.--.gR" - ] - } - ] - }, - "namespaces": [ - "306" - ], - "topologyKey": "307" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -205176266, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "U.8N": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "314" - ], - "topologyKey": "315" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - } - }, - "schedulerName": "332", - "tolerations": [ - { - "key": "333", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "334", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "335", - "hostnames": [ - "336" - ] - } - ], - "priorityClassName": "337", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "338" - ], - "searches": [ - "339" - ], - "options": [ - { - "name": "340", - "value": "341" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "342", - "enableServiceLinks": false - } - }, - "updateStrategy": { - "type": "鮽ǍJB膾扉A­1襏櫯³£h刪q塨", - "rollingUpdate": { - - } - }, - "minReadySeconds": -252352702, - "templateGeneration": -760386548196033671, - "revisionHistoryLimit": -10743562 - }, - "status": { - "currentNumberScheduled": -1479988716, - "numberMisscheduled": 1262074531, - "desiredNumberScheduled": -1187060809, - "numberReady": 2120236947, - "observedGeneration": 1978183201838311335, - "updatedNumberScheduled": 1131069811, - "numberAvailable": 1834151037, - "numberUnavailable": -323707040, - "collisionCount": 624976070, - "conditions": [ - { - "type": "厶s", - "status": "ǣ普闎Ť", - "lastTransitionTime": "2291-09-10T04:26:58Z", - "reason": "343", - "message": "344" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb deleted file mode 100644 index 10b8e914c9f8e9d2307177a8e1fed2046c124681..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4618 zcmZWs3se+Wn(o^ulA0vjQ+Z5Jd$Q@YiD5{psC(3J6JagNU{%+Jipdt*&bUUC6W&&*$j`TM3V%gkPrvoJHCzd3>P zBMuQB$qqzaNJ(;e-j1|v@pP<94K-CQ)5FbMf8%KjG>GAb6RKy+lHlQUndD)t8Y(4< zq)}bgRYjGEZ0LXbqV&U(E&EH>rdZ}3uQ>D8+XpV~??Y+v9MX8Cr;p>1!CSGk%E?(V zaaghJdT?4%u&>TvzA4XJHCVeg$%?UL(NV4y(;_QYs*nJpD*r@eTUD^GD$=sY+axRw z?msYSzK0#g*kx%n$aQxF!KblOx? zP)x8tpYWZJbDfB@$`WstvBN48msOUNCJb(yXAbW^7v5SEd}~X(_qeYsa^mE0^T|!& zijv^A%J9y%mmu$0HZ)b!AQ(z?su(J!dU->|v3>6j?bIOex4Z9s>%QFh!Hl#7Frk16 zHJ!a_@TRlOQ^{ea*!AGE^Fv$9{pU746F3*@EJ?D;hJ;w=DJim2xeDD6qLjCQumXu4 zd5pUe&si1BUybJ;fEU7#Gd;(`m94+zf666z%b)f%c}^zrW4SohP#lkdgv?tNYQOq^ z#g%`22Y<+EaoKLIw zfAz_w$DC*q2Wy~MrFN8(4DX;#Rqem8?7#O-RL*5pwIr*mOO{Di)tF*gFov^g(o##h zRl}*UStGnvlkJuT5R67`mNYP_ff7x1ST)UM)$}B*W)Q0`O@f^|o`TXH@Pu8u>|h)U zPD4I**rThfARryw*L6E`u~j42&RGpOSOX5$fP*#UB;XrVLPfC4fL(@KigfN7_@VKP zr31@w*tj?>NjwnD%uvaB>-L$C|2G3 zz~HGc6{;QWMbB_>7Fg2wN7zGWe8Yb2>a~wzn(XIp?ynv_7<33d3__UM#~8F?;sPSK zqw$PQ8C!t};h`o0(FhQ|3q8qJ4Ok_ThL?AzP;%nN^qiuSci_CM;wR| z!o*~E)JwRGaah*vmLVjaa)+ zrzMGnq)4Bj$JrCxEWlTYi}?lR0ffdR6h08o#S!RqKr{ys-37!*iX%iKQ(%c;ThFoU zAIIFWU%OS>8>?4JKhW)EFW&}3fG?r913qKBd}yFfJ01+8lr@s3_GdJ z|4V|!cKqF|pR#m*ha5~1rLIR`iS)E98-h(Gk+ap|{`T;m3yX(q8#pebAbZ{C=MTg?OOAe67Sov+=)4+<|wYZ=|UvFDG2pG=E^Tzc1hu) z4UMb;jXbuM<^&9eN}AGx~$$~?X1TT%I-16jwhvG zL@M5KAB&vdyf(PKana1@BBkxY>i+D&(dU0X&^^5KNU-C$v-s=d-tQU?2cAv5({Vj? z>D}K2RPuo5$ndF#fnwi|z{Q~*Fl@k2Rw$a0!ftyi5WD~gS!($WT4~9h%dyCGmVBK; zWV!;8>8kDMt#I2X{ocj`J96Is=3vF&gEvbZiGRNP`;o5yE^GM^N$+3S_orQdC_6RC zCK_yEw^rASqD5ttqBvqmRgB^tX!kg-331c76z*w|GzdRF4SPF1+lTj8dHQ`df$nF0 z7b7jTk+$OC_7?ELka?I9#Gw372Kz##yZlF`!E?W63kts^p*ynsdaUR1vpE-&Q~5_1 zM>@`iTWX$saf$!H6fM%y5^O#1uVPy?egc!x`JWAyglfwI4gTuz=KkQ`+TgZro`Ww8 zZev0Qe=3fQdGcO zSbqgn&*Rr{FH(UjnS!7RO0GcR0sjQ{uMyxE7D%3KfFv+pFA#)mz<`2Ag!JXhXtqL= zXNW67S(Z6RVZOX%rbcm{Lk6aqFQn-U7tfprCdKtBU|A4XEa2m0Np%3x_#Twdv$?)0 zR@8hO;`Sj<=Ef`*^||~ra|KfWJbMTku8g|Ua(rgMc_0fGeanlSHaRoVXYvnPtFjiNx>JvOrzopQ{`Dp zW*V{ynrF+R37M6IBC|-!%hCD!r>)7%o4Y1|df^*+`QSK)iz;KqanZ^(Bd!i{i@8)? zquQE6u~5hr3<9}RlQjc?YZgFOP&R*^C@#-iDaeA5h8GoVkc}DU^FnU^!dJuN#+xMUXP_W!}Z{OXkd50YT51Du`wV;bYlfZH-?WQXv0{=w(gtl$Hv-&|9Rriu{q$f2U^|TgH3sX68*KIR$tvBPrLt| zx7YI)+ZLVI7`ivSkIrkXG8m&q=QY+CjL~8+26}dMJ_9CW%^J3Vo zvj=qI*tEs0>0xMkkF51y^fp8qs=d2H#ofWOhFQMzgFS4rV4a1bYd=gDtg}#b!?x$> zl^BiD={@dPr@eCed zK-lq<=leUn2cov1^#P9p)?;F&f7~7%=dduAV!QHrSzoM1?KOYd@}AXsYX3k-eBx&Z zZ=a5}L+Q59Uy9P<>+$)RNtI7zCbjQ_H5jTh4AIL&~soy za7W+p?%n?8?7`E~S&X(J_^e=G1b{Z80~o8{&tj}bXYoU!l9RsbQ0+n8R~hN+j#P9E z)klXj2CN9Dj@uCGLa7{7j?CM<`@LNgL#Nv}1~=EQ&K~GuWkp?2Om_G9y9V2*WB2*+ zh4zf_?<$}3)I|=pdw0GXI$aUk+?x3L`wasl2aj~zK+&%Y8NPF2tLkPIsrgZ>|MDns zzk(iRw&2FevH^tc0|z8ZeYW^sY*auN{gu(&M$2QJ>ossI20 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml deleted file mode 100644 index 98e09dd70..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.after_roundtrip.yaml +++ /dev/null @@ -1,720 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -252352702 - revisionHistoryLimit: -10743562 - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 5087509039175129589 - finalizers: - - "42" - generateName: "31" - generation: 3974191383006284807 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: true - kind: "40" - name: "41" - uid: ',Q捇ȸ{+ɸ殁' - resourceVersion: "11397677413428459614" - selfLink: "33" - uid: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - spec: - activeDeadlineSeconds: 3932374770591864310 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "296" - operator: U髷裎$MVȟ@7飣奺Ȋ - values: - - "297" - matchFields: - - key: "298" - operator: ʁ揆ɘȌ脾嚏吐ĠLƐ - values: - - "299" - weight: -1694108493 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "292" - operator: Z1Ůđ眊ľǎɳ,ǿ飏騀呣 - values: - - "293" - matchFields: - - key: "294" - operator: ƻ悖ȩ0Ƹ[ - values: - - "295" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8 - operator: DoesNotExist - matchLabels: - U.8N: N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz - namespaces: - - "314" - topologyKey: "315" - weight: -205176266 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J - operator: In - values: - - 3-___t-Z8SUGP.-_.uB-.--.gR - matchLabels: - 546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7: OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P - namespaces: - - "306" - topologyKey: "307" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: VKPg___KA-._d._.U8 - operator: DoesNotExist - matchLabels: - 4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B: V.Z__Lv8_.O_..8n.--z_-..W - namespaces: - - "330" - topologyKey: "331" - weight: 789384689 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X - operator: NotIn - values: - - X_._D8T - matchLabels: - 8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3: 4-Tm._G - namespaces: - - "322" - topologyKey: "323" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "627" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 軶ǃ*ʙ嫙&蒒5靇 - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: k_瀹鞎sn芞QÄȻ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "266" - port: "267" - scheme: '@Ȗs«öʮĀ<é瞾' - tcpSocket: - host: "272" - port: "271" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1553779100 - httpGet: - host: "244" - httpHeaders: - - name: "245" - value: "246" - path: "243" - port: -57352147 - scheme: Y鶪5w垁鷌辪虽U珝 - initialDelaySeconds: 411878451 - periodSeconds: -254454655 - successThreshold: -1925916855 - tcpSocket: - host: "248" - port: "247" - timeoutSeconds: 1676588692 - name: "216" - ports: - - containerPort: -1222594476 - hostIP: "222" - hostPort: -1942612426 - name: "221" - protocol: 遼ūPH炮掊°nʮ閼咎櫸eʔ - readinessProbe: - exec: - command: - - "249" - failureThreshold: -31530684 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: '}' - initialDelaySeconds: 1030243869 - periodSeconds: -185042403 - successThreshold: -374922344 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -1080853187 - resources: - limits: - "": "280" - requests: - "": "809" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ɵK.Q貇£ȹ - drop: - - ƹǔw÷nI粛E煹ǐƲE - privileged: true - procMount: Z - readOnlyRootFilesystem: false - runAsGroup: -8656955128235291182 - runAsNonRoot: false - runAsUser: -378701183370790036 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - terminationMessagePath: "273" - terminationMessagePolicy: Ŭ - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: å睫}堇硲蕵ɢ苆 - name: "236" - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "338" - options: - - name: "340" - value: "341" - searches: - - "339" - dnsPolicy: ħ籘Àǒɿʒ - enableServiceLinks: false - hostAliases: - - hostnames: - - "336" - ip: "335" - hostPID: true - hostname: "290" - imagePullSecrets: - - name: "289" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: ğ#咻痗ȡmƴ - readOnlyRootFilesystem: false - runAsGroup: 4559267523176571 - runAsNonRoot: true - runAsUser: 6808883506426686803 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - priority: -2137775067 - priorityClassName: "337" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭 - runtimeClassName: "342" - schedulerName: "332" - securityContext: - fsGroup: -3078742976292946468 - runAsGroup: -4151726557168738613 - runAsNonRoot: true - runAsUser: 8519427267030036521 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - 1875040261412240501 - sysctls: - - name: "287" - value: "288" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: true - subdomain: "291" - terminationGracePeriodSeconds: 3211788672813464064 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "333" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "334" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 1637061888 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 啞川J缮ǚb - diskName: "119" - diskURI: "120" - fsType: "121" - kind: ʬ - readOnly: false - azureFile: - readOnly: true - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: -1853411528 - items: - - key: "108" - mode: -885708332 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -861583888 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -332563744 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "40" - resource: "101" - emptyDir: - medium: Ň'Ğİ* - sizeLimit: "695" - fc: - fsType: "103" - lun: 324963473 - readOnly: true - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1706940973 - pdName: "53" - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - hostPath: - path: "52" - type: _Ĭ艥< - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1884322607 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - readOnly: true - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - volumeID: "137" - projected: - defaultMode: -740816174 - sources: - - configMap: - items: - - key: "133" - mode: -2137658152 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1617414299 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "763" - resource: "131" - secret: - items: - - key: "125" - mode: 1493217478 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -6753602166099171537 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 62108019 - items: - - key: "61" - mode: -1092501327 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - templateGeneration: -760386548196033671 - updateStrategy: - rollingUpdate: {} - type: 鮽ǍJB膾扉A­1襏櫯³£h刪q塨 -status: - collisionCount: 624976070 - conditions: - - lastTransitionTime: "2291-09-10T04:26:58Z" - message: "344" - reason: "343" - status: ǣ普闎Ť - type: 厶s - currentNumberScheduled: -1479988716 - desiredNumberScheduled: -1187060809 - numberAvailable: 1834151037 - numberMisscheduled: 1262074531 - numberReady: 2120236947 - numberUnavailable: -323707040 - observedGeneration: 1978183201838311335 - updatedNumberScheduled: 1131069811 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.json deleted file mode 100644 index c156c17d7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.json +++ /dev/null @@ -1,1065 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "runAsUser": 6808883506426686803, - "runAsGroup": 4559267523176571, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ğ#咻痗ȡmƴ" - }, - "stdinOnce": true, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": -1942612426, - "containerPort": -1222594476, - "protocol": "遼ūPH炮掊°nʮ閼咎櫸eʔ", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "627" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "": "280" - }, - "requests": { - "": "809" - } - }, - "volumeMounts": [ - { - "name": "236", - "mountPath": "237", - "subPath": "238", - "mountPropagation": "å睫}堇硲蕵ɢ苆", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": -57352147, - "host": "244", - "scheme": "Y鶪5w垁鷌辪虽U珝", - "httpHeaders": [ - { - "name": "245", - "value": "246" - } - ] - }, - "tcpSocket": { - "port": "247", - "host": "248" - }, - "initialDelaySeconds": 411878451, - "timeoutSeconds": 1676588692, - "periodSeconds": -254454655, - "successThreshold": -1925916855, - "failureThreshold": -1553779100 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "}", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "k_瀹鞎sn芞QÄȻ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": "267", - "host": "268", - "scheme": "@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": "271", - "host": "272" - } - } - }, - "terminationMessagePath": "273", - "terminationMessagePolicy": "Ŭ", - "imagePullPolicy": "軶ǃ*ʙ嫙\u0026蒒5靇", - "securityContext": { - "capabilities": { - "add": [ - "ɵK.Q貇£ȹ" - ], - "drop": [ - "ƹǔw÷nI粛E煹ǐƲE" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "274", - "role": "275", - "type": "276", - "level": "277" - }, - "runAsUser": -378701183370790036, - "runAsGroup": -8656955128235291182, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Z" - } - } - ], - "restartPolicy": "0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭", - "terminationGracePeriodSeconds": 3211788672813464064, - "activeDeadlineSeconds": 3932374770591864310, - "dnsPolicy": "ħ籘Àǒɿʒ", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "runAsUser": 8519427267030036521, - "runAsGroup": -4151726557168738613, - "runAsNonRoot": true, - "supplementalGroups": [ - 1875040261412240501 - ], - "fsGroup": -3078742976292946468, - "sysctls": [ - { - "name": "287", - "value": "288" - } - ] - }, - "imagePullSecrets": [ - { - "name": "289" - } - ], - "hostname": "290", - "subdomain": "291", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "292", - "operator": "Z1Ůđ眊ľǎɳ,ǿ飏騀呣", - "values": [ - "293" - ] - } - ], - "matchFields": [ - { - "key": "294", - "operator": "ƻ悖ȩ0Ƹ[", - "values": [ - "295" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1694108493, - "preference": { - "matchExpressions": [ - { - "key": "296", - "operator": "U髷裎$MVȟ@7飣奺Ȋ", - "values": [ - "297" - ] - } - ], - "matchFields": [ - { - "key": "298", - "operator": "ʁ揆ɘȌ脾嚏吐ĠLƐ", - "values": [ - "299" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7": "OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P" - }, - "matchExpressions": [ - { - "key": "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J", - "operator": "In", - "values": [ - "3-___t-Z8SUGP.-_.uB-.--.gR" - ] - } - ] - }, - "namespaces": [ - "306" - ], - "topologyKey": "307" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -205176266, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "U.8N": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "314" - ], - "topologyKey": "315" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "322" - ], - "topologyKey": "323" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "330" - ], - "topologyKey": "331" - } - } - ] - } - }, - "schedulerName": "332", - "tolerations": [ - { - "key": "333", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "334", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "335", - "hostnames": [ - "336" - ] - } - ], - "priorityClassName": "337", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "338" - ], - "searches": [ - "339" - ], - "options": [ - { - "name": "340", - "value": "341" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "342", - "enableServiceLinks": false - } - }, - "updateStrategy": { - "type": "鮽ǍJB膾扉A­1襏櫯³£h刪q塨", - "rollingUpdate": { - - } - }, - "minReadySeconds": -252352702, - "templateGeneration": -760386548196033671, - "revisionHistoryLimit": -10743562 - }, - "status": { - "currentNumberScheduled": -1479988716, - "numberMisscheduled": 1262074531, - "desiredNumberScheduled": -1187060809, - "numberReady": 2120236947, - "observedGeneration": 1978183201838311335, - "updatedNumberScheduled": 1131069811, - "numberAvailable": 1834151037, - "numberUnavailable": -323707040, - "collisionCount": 624976070, - "conditions": [ - { - "type": "厶s", - "status": "ǣ普闎Ť", - "lastTransitionTime": "2291-09-10T04:26:58Z", - "reason": "343", - "message": "344" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.pb deleted file mode 100644 index 30c991ceee614de047c101344c89a1d3d6481303..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4650 zcmZWt3sh9s)t)mblH0^iZyueFfBsCy#88rZx#!$-U#6`}d}3mJ$IvFXB1EHt3W$i! zT0jgh5fDM~g(6ZB6crRjA|}HOGecIaRnr>VrY0*h%(O|GHqk%T*!=s<@F!X8XSw#h zbIv~ddG_Alb(NlL;U3}m%!0hk?A%w^WalR5e9@tHQ5U?^Z5Ua=dK|R z5gy47L|sTpa(Ui}v~2NotV<0wRW8-T&0Bx%X$v%p;l|^tXUpQ?p|hFf0jwG-C5og` zUDj1am56NUfBLNCz2Yrwv9!|3Sut@~ zvFsW#ZEDS({|VShDCS$BJp86)TnK=fJA+k49=MgY}h>mR;T^VNr1J zsev;~lLPgyg|-zZhI)5;N?!tLT9S<$3+y_dz{SJU;4S>IN4foo`vpghY;9wPMwNAv z5d9+pp;#8^>h*#ys5z8MG(&-%<@z!rtTK}46o@nUcUSiHSMM0dC zw?Z@pVS!1fPB8_=1pV^}-~R~Lk2tF=@m3i-tTJ&~WjSg5VC`IUc<0&h*6QHvThhJ9 zd|i>_Cx)9(Yzmhb2Wu`j9=on?Yb4lBj3u}{qlZ7uVk-SlMOY^bw1$toKXVws?%&`RY> z^k2YAc?&Qru|QKb7HFzLpl?6SU5B76n7Pm1(2lI8^j$CZl$gy))0}^dOq76v2At%AQ zK_yfOrwlk{s3l0}o`fG7#Mf%*uw*!FTpX4p9tdV?sN}qH^Yn-RiTY&wd`m;{>*#AG z`Y~f9wr#s^??w)ImBAi(&^mN4+fkSZ)sA+fCppLkmNfoB_R!h7VZVCi>iaQC_Ol=C ztr|%TI*1+sCd~9>3{o+10g>C$IJQjLvH~8$Lrnsr5g>XOdW`KFuuCMzeZhvN;F*1? z!*6!_cBca?!HE`P9Xfgrall3hW0T!cE8%j+VOh6ZhL8w*G7|yUl-Wyh)E`O+yvq}T z&=ep_DiC$9WiOJ=JYA63jeCx+ukumlwd z1T#gNDm#Op-S|2d0f#dxPbSe|$ueW3_G|C|adYfeIgyJ+QC4inFNSUpU1@AN$bv7c zw#yASn(jtZa~;`%1&RfT4x7|)T9TMciu4hBggvp%0_zHKF}t8VfY2C+!Uy8HI0Bsz zh~@yIyMP!;afC=@GHelS>p6Pu!arbZ*R_H{R_>os#GE$#nr&Q)6ku@-1){`C>XdT|y@mlae*>H1LxZ!l* zV0cR@fh}V`Brz?jh!TDhoTM`U!vu@%*jraVX5st>IhY_yT@Sq&>1kIs1e=N@XR5;e z?crVL7Y*0!OJZJ7$ULDcRL?yLD5{yopHSV_UEb|M_WDoH?T>dBA9=4dCNnY6c_k8y zq4e=5ReNqnHKpZplVYYAJX~p*di?*1Q=l3MWDLC))yI-X6#6}V(9U2*we72F{(GGL z{OxzYj^)L<@5>Jlk0@>Q?R_^^$&$x?=kwTV`XR*4jcSGdr!cMhcUle5s!A??l{sA0 z8)>S}%??*K%^TS4?~9rN-4XW5_soEv2rHD2NrbM*B&zDS5>Ep)?O@k58*)H*AsV|tngVucD%=iD zbAEE`aNtf`>tAo9L<^t-%jC;@+WdcLt^ceHrJ}SVWGP3MT4dSHx)32U+%2{5i3Ug5t=09yXi*s@D2^CXC8M|w?Ht23A#N&{!aV_; z2I0r0VQ;5r+wk5>Prt7^(EXI}LZqc8(pD7Q)&e#dG7mF?7?l6PU|*T-cfx-Mf)U706j>gj;H zR87FS*@9$1SI36DEO{0&1#!vr4I*GGQ54M=3f5+dqQ=Y5FOfx@VZJz1E`W2egH3Uc zxg>wV6j98?iwksfmH^mGQ2~Ep{Y4NxmtVs@M+K^63W6pmIRb?T{3CFFjR3!}KyqaR zIAP(Hd_l+pOeknXNME*;W+^mzy0`*_tukjT%$DcP)F{q#$gpVU32FL*MKk7tN^yM( zXcolf^Z7VgQXN1vz6T}rY;I_Z6*b?6xIKuIxlxNmeGdQR9KjUw^M!e2U7`4bC{l1# z6aXTMGnOyZOfAKn3Jwb5D!RUq&)^nn>xH~mGo#io&yq!1&tEOzLNFSFnIYuMD`9J+ zuvQS(Cua!Mq+p9+rcv?PDe}z4GYr`T$+Kk9gvd%lp;;*9X6yXDQ`cnX&RLT;t>D$% zJTM%?MU}DQxM1a)5m%46MO><`QEg3uSRmvG27%bA$(jK`b`?Na5H@d}C@#xgA;^M| zh8N~oH5fg{k^NFq0546N7o((xIgpi3Z@Gg#DJbUhPaC-I>K{PWUo{Ro} z1Z4?Klksi@lpI7IFuJh<(-kYwWw8RI8!IrnF?=*Z8^$WOb$`%)bhJJAm*anq%>kD^ z(CY3UY|0H3>n{(r`sx>Y+Wlv}y`Ib>@n0*mfPcv}LqC@b*Bj)!Ehmr5hz)?|JJI^v34CzsH7X+FEXU zR5KvzB#>obo&$`~f75$6p1}hQ2s?h#Jb#CGe^eK=K3JoG^%z^pAGZa^I4o>Qv0eVO zv@cep_UgZGdE4qdxp$x=KJk+SH&4adp>)&dFG1<>HTg_TrOGEVmD;z?8VuDLhHG@B z>UhjK!Vo(F#Qq)rkQi)|WPV9>R!NlqIrL9J<;qXQW_3$W?mm&`^qd|U&;Ib68;u)i!b*xoy{FdhCAz`~CU zm!0vPA2{Le^LEenoSs03wmm-a>Cl0#8AI)WjM$vQ%r-28eoSFbVa0jn`lU}A{!w({ zC%Jq4U4!k@u=`y2e0xUtw-rx&>LUl+z1v?3ohlD)ZcY63oyLLN2M%{! zN71hf8NPersOn}FsrgZ>|I!F>zlDV($zkBVSzr|0!(SJD@YaTNP w-!5*q&Y!@I3Rd^z@|>?Fw5v0+v)X&ek&sa5z7l@iW^sY(auN{gu(&M$3#ik}x&QzG diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.yaml deleted file mode 100644 index dedb6b6e1..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DaemonSet.yaml +++ /dev/null @@ -1,726 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -252352702 - revisionHistoryLimit: -10743562 - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 5087509039175129589 - finalizers: - - "42" - generateName: "31" - generation: 3974191383006284807 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: true - kind: "40" - name: "41" - uid: ',Q捇ȸ{+ɸ殁' - resourceVersion: "11397677413428459614" - selfLink: "33" - uid: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - spec: - activeDeadlineSeconds: 3932374770591864310 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "296" - operator: U髷裎$MVȟ@7飣奺Ȋ - values: - - "297" - matchFields: - - key: "298" - operator: ʁ揆ɘȌ脾嚏吐ĠLƐ - values: - - "299" - weight: -1694108493 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "292" - operator: Z1Ůđ眊ľǎɳ,ǿ飏騀呣 - values: - - "293" - matchFields: - - key: "294" - operator: ƻ悖ȩ0Ƹ[ - values: - - "295" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8 - operator: DoesNotExist - matchLabels: - U.8N: N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz - namespaces: - - "314" - topologyKey: "315" - weight: -205176266 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J - operator: In - values: - - 3-___t-Z8SUGP.-_.uB-.--.gR - matchLabels: - 546g-40883176jt-e8b---67-1sn-09143193c/I2_-.XFw.8._..._Wxpe..7: OX3.1d_YH3x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6P - namespaces: - - "306" - topologyKey: "307" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: VKPg___KA-._d._.U8 - operator: DoesNotExist - matchLabels: - 4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B: V.Z__Lv8_.O_..8n.--z_-..W - namespaces: - - "330" - topologyKey: "331" - weight: 789384689 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X - operator: NotIn - values: - - X_._D8T - matchLabels: - 8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3: 4-Tm._G - namespaces: - - "322" - topologyKey: "323" - automountServiceAccountToken: true - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "627" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: 軶ǃ*ʙ嫙&蒒5靇 - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: k_瀹鞎sn芞QÄȻ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "266" - port: "267" - scheme: '@Ȗs«öʮĀ<é瞾' - tcpSocket: - host: "272" - port: "271" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1553779100 - httpGet: - host: "244" - httpHeaders: - - name: "245" - value: "246" - path: "243" - port: -57352147 - scheme: Y鶪5w垁鷌辪虽U珝 - initialDelaySeconds: 411878451 - periodSeconds: -254454655 - successThreshold: -1925916855 - tcpSocket: - host: "248" - port: "247" - timeoutSeconds: 1676588692 - name: "216" - ports: - - containerPort: -1222594476 - hostIP: "222" - hostPort: -1942612426 - name: "221" - protocol: 遼ūPH炮掊°nʮ閼咎櫸eʔ - readinessProbe: - exec: - command: - - "249" - failureThreshold: -31530684 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: '}' - initialDelaySeconds: 1030243869 - periodSeconds: -185042403 - successThreshold: -374922344 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -1080853187 - resources: - limits: - "": "280" - requests: - "": "809" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ɵK.Q貇£ȹ - drop: - - ƹǔw÷nI粛E煹ǐƲE - privileged: true - procMount: Z - readOnlyRootFilesystem: false - runAsGroup: -8656955128235291182 - runAsNonRoot: false - runAsUser: -378701183370790036 - seLinuxOptions: - level: "277" - role: "275" - type: "276" - user: "274" - terminationMessagePath: "273" - terminationMessagePolicy: Ŭ - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: å睫}堇硲蕵ɢ苆 - name: "236" - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "338" - options: - - name: "340" - value: "341" - searches: - - "339" - dnsPolicy: ħ籘Àǒɿʒ - enableServiceLinks: false - hostAliases: - - hostnames: - - "336" - ip: "335" - hostPID: true - hostname: "290" - imagePullSecrets: - - name: "289" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: ğ#咻痗ȡmƴ - readOnlyRootFilesystem: false - runAsGroup: 4559267523176571 - runAsNonRoot: true - runAsUser: 6808883506426686803 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - priority: -2137775067 - priorityClassName: "337" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 0)鈼¬麄p呝TG;邪匾mɩC[ó瓧嫭 - runtimeClassName: "342" - schedulerName: "332" - securityContext: - fsGroup: -3078742976292946468 - runAsGroup: -4151726557168738613 - runAsNonRoot: true - runAsUser: 8519427267030036521 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - 1875040261412240501 - sysctls: - - name: "287" - value: "288" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: true - subdomain: "291" - terminationGracePeriodSeconds: 3211788672813464064 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "333" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "334" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 1637061888 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 啞川J缮ǚb - diskName: "119" - diskURI: "120" - fsType: "121" - kind: ʬ - readOnly: false - azureFile: - readOnly: true - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: -1853411528 - items: - - key: "108" - mode: -885708332 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -861583888 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -332563744 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "40" - resource: "101" - emptyDir: - medium: Ň'Ğİ* - sizeLimit: "695" - fc: - fsType: "103" - lun: 324963473 - readOnly: true - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1706940973 - pdName: "53" - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - hostPath: - path: "52" - type: _Ĭ艥< - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1884322607 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - readOnly: true - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - volumeID: "137" - projected: - defaultMode: -740816174 - sources: - - configMap: - items: - - key: "133" - mode: -2137658152 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1617414299 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "763" - resource: "131" - secret: - items: - - key: "125" - mode: 1493217478 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -6753602166099171537 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 62108019 - items: - - key: "61" - mode: -1092501327 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - templateGeneration: -760386548196033671 - updateStrategy: - rollingUpdate: {} - type: 鮽ǍJB膾扉A­1襏櫯³£h刪q塨 -status: - collisionCount: 624976070 - conditions: - - lastTransitionTime: "2291-09-10T04:26:58Z" - message: "344" - reason: "343" - status: ǣ普闎Ť - type: 厶s - currentNumberScheduled: -1479988716 - desiredNumberScheduled: -1187060809 - numberAvailable: 1834151037 - numberMisscheduled: 1262074531 - numberReady: 2120236947 - numberUnavailable: -323707040 - observedGeneration: 1978183201838311335 - updatedNumberScheduled: 1131069811 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.json deleted file mode 100644 index 43a9db28f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.json +++ /dev/null @@ -1,1072 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "rollbackTo": { - "revision": 1503865638277557961 - }, - "progressDeadlineSeconds": -94103882 - }, - "status": { - "observedGeneration": -5187798234288383520, - "replicas": 1170997513, - "updatedReplicas": 44905239, - "readyReplicas": 1866809652, - "availableReplicas": -164761311, - "unavailableReplicas": -1844415313, - "conditions": [ - { - "type": "很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "status": "PPöƌ镳餘ŁƁ翂|C ɩ", - "lastUpdateTime": "2646-12-03T23:27:38Z", - "lastTransitionTime": "2449-11-26T19:51:46Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": -305244896 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.pb deleted file mode 100644 index 697efd215dd81d3d539c6bde9c4f3737062adb82..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5176 zcmZWt3s_V~mhNg|LhfW{IybN0o_t?=JDLzoUGA;>c4iXeD~d)1A5mtLI}*`}4?sY9 z#Q8o@5Clb35CjxOqP!GA0eM6w^n-5ln2A|;XE&Qo;^y`vF-DV2CK(fFPj#D}eBbiH zsk*1CPMve=)T#flQOmV3PKM1W$jivgeK{*LH))%Yo{_gkV3|1?*_*NoH)mw#u~i9- zA2EoqNOT~{h2%t+rz~=!%G0$aIe4^kjTSz>_qU$*Km!+U=utdXE6uhG8RULJ(G`iv zyees;rpO9UL|uFD+K$U5Rm~;Yvn)$bSM={JYk9kQ1f|`{AeBX0`dtjtS*yTra57eb zIIM!``q`W!bEMW^{z|U5(zh==(JBbMMMF7OK`OEeawWnrRbl@*Qd4QxRz^-7_8!G6 z%;xj%!8J*N+TREFmm~y->OH$&0BI_*u!p9_-`Mm1pT7A!{2;d3%B*Jee0>|nn|Ul0 z%6Pq)lss>Krdo(qiNpMJE0(0Dq;QJ~Cvc0nO?WkDa9EN!ZY^gR>)D6rVMD~3*uaJ% zZpFY`Y8afl0FR7F)HnxY6A{1Qp#wbS1Ybziws)+4~Nm+rh#@t4xB(LbZKcn~dvXeFKY zROo3N2xFCahgA|>&Y5X1nq6I?J#C@-irI;ty2(=S{&3}?SGG?yxL%CBdLq#(>JST- z9IHf%tddxX9)iUZ`xEozh_7t=Y(WA%f!pm@KkZS+ajVURrrG8a7VkqHIuI zR_q@h{$?T;O-@VVJ-`M#WX)lfb@CWvRe1J3paN@Ei2a*e<$w8GRD%7Zi|4++6%%He z!N3gILy_#3S&7gG!HQy!RQP+WE~}y@S{04A%&;o@OiSt=j8)}VS<CdqI3teuu2mhlp{G&B6weeHJY*k zT%&>hnr25XI;!W`8LJM*ufy@{aQwQM2z*`QQ4y@tVU@1zKsxgze5fpCX~5DQ_cCz; z&$B=T2Y6CdiL>P7&C!_kwy!>Y`}0`05JXK!Lb`h@I#clr2%V z3?@ROBmz+h5Umf*qN6&D65cV@tR3~VhW3=Z`zHqcO_8B$Ps^j`fss&sz5n=T-}%DO zzy$*&5Fr7PyUl$&BPFBWuBF3>0U?A?A>w#ceTeKhK?IjhA`Zqxx&g#EHAE7?{m>8s zM4SOcngv8o2BIuQm(T&klp^LAQLBl>+F%W#-XMxSJbvuGIH!dbm?X+o+33d9B_!s5 zxVErc)c=rzo%NRkx8v6llP8j>JW-_6B>SGap{rAz76@(llx_cd_SS#3)_nc$7y|!^ zimjySS}5k^|3r3}B2lX(4F)A0jG)%Y{1x;FZ3UYJ_%d-(mEigSkzzAscH%B3j?g0@ zg6sgIxPYjMKpG#W=CvKMn`VD+{8--|u7?&*9tky^U+^#4zww;Pg|}vxyVWxs zsE1XApOFl!z&Ai-$5RY!Nr*zfRB9d};1L2Ip<$~#enve>sAq^M*e$Nx-*8++6yf>_ z%)`um!P>T@z=c4yGj;q_xOiaRx>=iOIuJqZy-a+dH`%{C^xApKk~KA1r2^sVfia>C z#)wMdBg(`%v;BzK&}a@<&-uOC^4iwPYX5Mk`B3Vkg)1L_p1>?Mbq8Wzh^iy;EJPlW z1orNDL|sQDLW$^l#J$(7Dhm&uT#}tX(GhIwjuf8{w>1my2Jb=tF<*BgwH8ty5ZPg4 z{%<+8Us7#veEIjbDfY6?=6%R{>CLO*I}@rW-rjo$fBd_fdtzsqwhJ+-F(ovJBv_@h zOuWUm^UH7l80Vm>$h_;P{&w$~>A~hfUv+p_PjpYnq%cGr4>CW8*(H6Gy|Mf3uu#5e z`zT^o#CEVBJF@>wtm{15_`!$Y(>_Z0=E|Pyar}+1zv%uh%1A$fm}jGk$P)V`C<5vA z2XkbF>Y=*s4z-?&)SvTr9_(1-tqYCq=gr=_BDl3G6K@Wmofc|5wUV74sy-Xu-|FoTcC<&j z2R4QF*8MU(cw+vpD^+rKU;bd? z@~ywtzmkCHyEpUo*WVud?#!pvpP=LiJ;$C4HW-;TM9L~77u(&{5BYmNEyk}Vy4_vL!H$Z@Lp61gfvy?O zOFM7A-+TSD(SDTB{!Z!j((=v=OGy0V6a9gj$k|un?E}*wqY+h^1w>5-qNM`SSE1jc z-&t}NGt?OxJy{J>Inf}M6HT;TJ?cGp@cLiNAFv~5+s%^NTi1NSS5d-eJ3Yfk#|~7v z5#RXP;WO`l_vN{n(M>dZOEkHN-hU0=ETC#7rP={Bb{DginaMoGz-vP^ouzRPuO4J; zq6@6+^6*(}dE*KxRL8wfBs8PDgI z12Dwga=g-*WAJ#P@ys&zo;g_=xqvF?7QCFB$Hs}g=l~+I9VmXZZ0w!ewl^WB8ZmR3 z`wBoI%xO3|8xX66mv81)v)o1vwgfFwjF&X-SuWks4IzumH`XlR3{k+w0{jf1>hvPc z(4ON3b}l350}5WN;aoK@DQy*=176w4aYBm98Jj>-3a4-j07@G=w~YgI3x85dO4k3= zl_CKV%8Ga5m`jN9B4!Eml#0ayEGFq|49uq*T$*7l+NK%Y5`*KkOb}E={i8h3tz5|E zF3;oe3c$~@f;n{#CmKuHpF$bHt=LR~_eM@;bC{<N+fIAUHb%+|Kx+;vb? ztk1_Aim(Ee2nHZW8JD+Qdh0#3=`6)t1T zMtQCQ=f|y@kGYMU%55_6^P0duonvI04E}c&7zL zu$}zu+#7NB@4{CBS3EL5(lTWBberwn?w-)W(a@e^GQ&NvIx^5H=bJ}M=t44MAzesi z!i(@U0|`q|AOk{u3uqutP$|k%V<<}yV*mpHC1nDjhye^ih2$fs06AwZW;kZrV*g>^ zfaK}$?Dn>VkBkKl`FDoT^+jsR!sXp-=bMA4%oB}y6kn(y9RNvgX1MZbio4W5;;)?k zwC}We?i3x>RX!PBI6+mScnk18^tHrk<6Z87$upkfU%5L%M=wqmFZOl^+9wXXOLM|a z`@+2yft~Zc#|X^TQ_B$)z#t017yA@#M3z42U%a>X-53I+7(mb@*8^NixUYQtgn!8F zI_n#nsLgi|W-g$wr2w@95al1Qr2sVqa5P(g!=L(MPrtqQt-$wIr>~;s-(o-^;ftHS zGx=-BzrFfx^!-mOL(IyUCOSI0YDZ-0L+mZY2qZu%x~gAxCg#xr;D zpVe1)#--OG=9#D-kf$G`dMH1@2SKMXr9(^wI%dcA1Sn5<{vVbT$XCE2?9%8n%Zn_9 zw2&XEP7}u`Kek3O6)(GNp7wd3Q=#4lck#r5z}VygDvHH*b2fN#&x%ObVE9D!)aO?ETV|^4 zL*}c){>o6>KyYXI_=UVkYYP|Y@0w`54KiqnL}+3pv_v9;=selddE$fd*K2GE79Ih} zc<0cirvKP~vGXmId@qiSoeJ(aV;(uh}gK2e&L= zm*yWahx#^$yLZtWFAA=BvvhZ$BiK@$aP{Mgv+ss3?>~&9#g_#(@caYL<5vcIV{;OEBCprPt_#UvrkfWl%-R-gwjOu4ht8DDHS2e!lF)&XU~O~w zwex|4k)}4^=nJ9Jwm=DMU%J#i;M)_aI~Qqd@Rs;WLSs9&&vphnTydhrCjt>jeEcV$ nmP{_OS!Tq?U;3!GU$a@X^E>MPcIV7vokQ1R|E+LXT$cX@h+pIr diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.yaml deleted file mode 100644 index 820e69568..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.after_roundtrip.yaml +++ /dev/null @@ -1,728 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -721017134 - paused: true - progressDeadlineSeconds: -94103882 - replicas: -1978186127 - revisionHistoryLimit: -2062497734 - rollbackTo: - revision: 1503865638277557961 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: Ŗ鱓;鹡鑓侅闍ŏ - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -164761311 - collisionCount: -305244896 - conditions: - - lastTransitionTime: "2449-11-26T19:51:46Z" - lastUpdateTime: "2646-12-03T23:27:38Z" - message: "341" - reason: "340" - status: PPöƌ镳餘ŁƁ翂|C ɩ - type: 很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ - observedGeneration: -5187798234288383520 - readyReplicas: 1866809652 - replicas: 1170997513 - unavailableReplicas: -1844415313 - updatedReplicas: 44905239 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.json deleted file mode 100644 index e224c9b3e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.json +++ /dev/null @@ -1,1074 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "runAsUser": 1162216870203002790, - "runAsGroup": -3651020110942663855, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "-鿧悮坮Ȣ幟ļ" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "214", - "image": "215", - "command": [ - "216" - ], - "args": [ - "217" - ], - "workingDir": "218", - "ports": [ - { - "name": "219", - "hostPort": -1336170981, - "containerPort": 1179132251, - "protocol": "Kʝ瘴I\\p[ħsĨɆâĺɗ", - "hostIP": "220" - } - ], - "envFrom": [ - { - "prefix": "221", - "configMapRef": { - "name": "222", - "optional": true - }, - "secretRef": { - "name": "223", - "optional": true - } - } - ], - "env": [ - { - "name": "224", - "value": "225", - "valueFrom": { - "fieldRef": { - "apiVersion": "226", - "fieldPath": "227" - }, - "resourceFieldRef": { - "containerName": "228", - "resource": "229", - "divisor": "99" - }, - "configMapKeyRef": { - "name": "230", - "key": "231", - "optional": false - }, - "secretKeyRef": { - "name": "232", - "key": "233", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "攤/ɸɎ R§耶FfBl": "326" - }, - "requests": { - "ɱJȉ罴": "587" - } - }, - "volumeMounts": [ - { - "name": "234", - "readOnly": true, - "mountPath": "235", - "subPath": "236", - "mountPropagation": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "subPathExpr": "237" - } - ], - "volumeDevices": [ - { - "name": "238", - "devicePath": "239" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "240" - ] - }, - "httpGet": { - "path": "241", - "port": "242", - "host": "243", - "scheme": "Í勅跦Opwǩ曬逴褜1ØœȠƬ", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": "246", - "host": "247" - }, - "initialDelaySeconds": 1419770315, - "timeoutSeconds": 300356869, - "periodSeconds": 1830495826, - "successThreshold": 1102291854, - "failureThreshold": -241238495 - }, - "readinessProbe": { - "exec": { - "command": [ - "248" - ] - }, - "httpGet": { - "path": "249", - "port": 972978563, - "host": "250", - "scheme": "ȨŮ+朷Ǝ膯", - "httpHeaders": [ - { - "name": "251", - "value": "252" - } - ] - }, - "tcpSocket": { - "port": -1506633471, - "host": "253" - }, - "initialDelaySeconds": -249989919, - "timeoutSeconds": -171684192, - "periodSeconds": -602419938, - "successThreshold": 1040396664, - "failureThreshold": -979584143 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "254" - ] - }, - "httpGet": { - "path": "255", - "port": "256", - "host": "257", - "scheme": "碧闳ȩr", - "httpHeaders": [ - { - "name": "258", - "value": "259" - } - ] - }, - "tcpSocket": { - "port": "260", - "host": "261" - } - }, - "preStop": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - } - } - }, - "terminationMessagePath": "270", - "terminationMessagePolicy": "ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞", - "imagePullPolicy": "=E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展", - "securityContext": { - "capabilities": { - "add": [ - "庰%皧V" - ], - "drop": [ - "现葢ŵ橨鬶l獕;跣Hǝcw媀瓄\u0026翜舞拉" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "271", - "role": "272", - "type": "273", - "level": "274" - }, - "runAsUser": 8876559635423161004, - "runAsGroup": -1576913564542459711, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ĠM蘇KŅ/»頸+SÄ蚃" - }, - "tty": true - } - ], - "restartPolicy": ")酊龨δ摖ȱğ_\u003cǬëJ橈'琕鶫:", - "terminationGracePeriodSeconds": -5370059306928520750, - "activeDeadlineSeconds": 5724260086168234152, - "dnsPolicy": "'ǵɐ鰥", - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "runAsUser": 1517677345437208428, - "runAsGroup": 4640906527069599386, - "runAsNonRoot": true, - "supplementalGroups": [ - -6499508485510627932 - ], - "fsGroup": -4389239449149439507, - "sysctls": [ - { - "name": "284", - "value": "285" - } - ] - }, - "imagePullSecrets": [ - { - "name": "286" - } - ], - "hostname": "287", - "subdomain": "288", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "289", - "operator": "", - "values": [ - "290" - ] - } - ], - "matchFields": [ - { - "key": "291", - "operator": "亏yƕ丆録²Ŏ)/灩聋3趐囨鏻", - "values": [ - "292" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -938421813, - "preference": { - "matchExpressions": [ - { - "key": "293", - "operator": "蹔ŧ", - "values": [ - "294" - ] - } - ], - "matchFields": [ - { - "key": "295", - "operator": "x$1", - "values": [ - "296" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0": "8yP9S--858LI__.8____rO-S-P_-...0c.-p" - }, - "matchExpressions": [ - { - "key": "f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -902839620, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "x3..-.8-Jp-9-4-Tm.Y": "k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01" - }, - "matchExpressions": [ - { - "key": "w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P": "d._.Um.-__k.5" - }, - "matchExpressions": [ - { - "key": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C", - "operator": "In", - "values": [ - "p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1505385143, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81": "o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - } - ] - } - }, - "schedulerName": "329", - "tolerations": [ - { - "key": "330", - "operator": "抷qTfZȻ干m謆7", - "value": "331", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "332", - "hostnames": [ - "333" - ] - } - ], - "priorityClassName": "334", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "335" - ], - "searches": [ - "336" - ], - "options": [ - { - "name": "337", - "value": "338" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "339", - "enableServiceLinks": true - } - }, - "strategy": { - "type": "Ŗ鱓;鹡鑓侅闍ŏ", - "rollingUpdate": { - - } - }, - "minReadySeconds": -721017134, - "revisionHistoryLimit": -2062497734, - "paused": true, - "rollbackTo": { - "revision": 1503865638277557961 - }, - "progressDeadlineSeconds": -94103882 - }, - "status": { - "observedGeneration": -5187798234288383520, - "replicas": 1170997513, - "updatedReplicas": 44905239, - "readyReplicas": 1866809652, - "availableReplicas": -164761311, - "unavailableReplicas": -1844415313, - "conditions": [ - { - "type": "很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ", - "status": "PPöƌ镳餘ŁƁ翂|C ɩ", - "lastUpdateTime": "2646-12-03T23:27:38Z", - "lastTransitionTime": "2449-11-26T19:51:46Z", - "reason": "340", - "message": "341" - } - ], - "collisionCount": -305244896 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.pb deleted file mode 100644 index 2de6be569c0d6087b3121dfbbef31d4dbedbb50d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5208 zcmZWt3wTsTmhS3^#=Fi;dwooAkKbo+3lf8Mb8p=@Gb-{D0s;vSA+vgiNMPiVgd~uM z&i5sdkPsjQNJvNmfe;}t$ODp)hh$AZ(j6Z&;#D4`ABqU-I65e^r@C>+@7sLI zsk*1CPMve=)T#eula^~?oD7>$ke88}`%+eBZqjxkJtJ?ez%p|)vNvZHZpp~ZV>=U= z_Yi{!i$n*KTu4rIdCDRu_jo$DCI^pIuGPXP_WjP&7O3aK_1%hR&nmO^LI$~CP;^Bi zGOtRSs423-6H(XRzqaFY$)2W??AexOXDa%4mNmcKG=kFZWRS`tE&VPA>8w@YH#!-s zKpa*v@o-Cfb;v!*q>}XYPbnXD#fhY4JDqe(A3xzV?ASNZxUy!L5VpZZW|Ln@8sVOPk62b}GVs0~D!x@Rk_{r>?{+vyA!dMZ~-!Yl5;x*73Rm4a3h%7|U486P0v~ zc^zXS;%$Py1&cDq>$vS%iU5oAh4VYJj z^rSV(D{@|3hY1H-%rlm6Hw>aIS`7+JS(25vFw>zH8ihs{Z^&Dh5Cg;-&vHu)&RDB( zdisKm>lSdBlMQa62CCzy7v_T%Ajl9DM~{nn7co|mXRV^(u!_WG6~)Ado(~VVyz*FN zq$k7QVfHslQ>Uc_dR7&=_XjJ_6IN73RU(?A2paqnN#?aP-wkzLxl-0GKp2$nyixJz z($3NMP+B~QmO-?VPJ1f!w2g$ZO1#4=2`=ZXv=_|I&d}c0P+i5GL{IHxsrNv*^6<;A zOw_wxh`f3-(JJZ?8%yJgAQStm6KJ${{BFpyPy3>#+LPHxc1B@r*}AfzI|h;csDzRiBpK+ zcmO7gtW}omUyPSl-i(Hk6S*iGOpz7)M@PP$h((vvl6ViW!7f>ISY@3&%2*Yiy$`6s zS`}jd_E!0y{~DEG|M=p$Z*IkeS!OaY1NKlPyJdDF^g*zq*drDGZmY|xsEJlZ<1I6- ziayJddIw`w`PG(mt12YJI+d_iRkWj2h<8=8p)|NzDy&x(hgDTwR#i*1syeZ1{7hJ> z3A0eT16o+6i4Mw%ftyh&jJw~;7L^_&XQ9%M`PC8zW(g(FJj$F^bnm% zY!#B1fmikS|6HCM|Bt_ykn|aGwNvx?Jalr zPYn1QBSTf5=10tfBcZxF|A{TW^M#>-3kFCaLINUpoBMZ0N=Ch%%Z3pHLI|Nk#PO*5 z5b1G(2rivO9E^!{1BiKQh$Mjfp&n;aw$FCzMPb5)!qDZGn_Pw=3 zSEo2F5Zdr5+y1rZ)_=8BfAj7b0{@AMt)%fyxgOUzLP-|rV3VN8f zg3SVanYgG*aD9MCu^BQuaTgOu=n)V>b^uXaK-5GakUQv*Zfkt=+K$*wv%f!nyzdUz zFBeT74b`7t_|MtD^_8L(F}_n%1Pig+P@vb^LU=cwqke*_&xP5JBv{ zOnjg>*}psV+Ih;7H8okK0^#a`F`^8{h)Uwa%EURd?WkGbU=CN!{e#*3+P29m|8S`3 zaOxw4tEN9kV3wM?12NA>)sc7>B9BM{dv`pdt|JnmM07pu-e>M93lE-Jnw>w<9&GH2 z6rT^bHVN)}?;-zjUsocv7E&M(*V`rJR3o)rNB{Ya6Sf#T}yv4TjtMC38=b);{yz6KFHt*RP!KOi9Rd`o- zbWg~nFhm>=GQWV?C4G~P`+sUIAT`BcCa5mdf;rV>pa%*;YUBvK1%rZ%HHd7 z{EctE?D{^+NI!{~XQGP868ktP0_pWfb7Y0;p}Ou4wVaOBo%6Tn#B`u1E9*b88?tR2 zfn>WnDo7#h6Cemu>yLsI2?Qy!%i%c`sXp_F*;VX2;k}@(aEAAsE_C-UN)A*df_-u_^FTcm4Xb7)`fufu~U7fc*|G2iSc4jn3eG&I%}t~eIl zvl~JQvKLXQi&Yv3st94FO3tp!A5L7p^_RMr6A*m|XTARV+hgCK{jBO!l>DIQ__N{q z@|miJv~vAE=J> zyb5n0mZaR2icnF0_*x@cz>a<_LB>{B76JB`@B_;C51}b!zFvf z@IbZM*cRD8Lgy1!h=1dx`(I-5%uZ$C4J5kAP6-dycu&(A68j6v0&5GVQd4w=y z5z~*DV#KW8n6WNb!ctz5UI3s_#29|DE&}u;SOjdC!SmaSa1o!IiM8Js;H_%`Q)X#f zM7)mAOv)}aG%RvlE+Ezdjw~|B)@=sA9M9Rxvs1OgW%_cAHCbD{5Ktc=Kf}mbikIVM z2Ie@9f04u4EYCRCbGT?b2rxJqFW^=HP{iB{yvmqs@OY8&^m6u|xmg*xfHLP5yp)^A z#)-V>03xyND1NkT?48@THzKAAG4q)F3P2&uX*f9>5Uhk(Y~j|h+$IgS1T9jG7d7q~ zF5S=#A&bj5)-L1>QNYGR{4}8K^dipCp5+C09wX-iDqg4ITs1E#Z8e??UfINPLW;^6 zn?X_vr*I1aS{pjIoddKBe^N?H*8kI$A^{P~j(6giONj9zW-0Teip2sfCh2Pp%%>V$ znqe&7t{L1?gX6SJ5L86{qddp0TEyk9$m8%zz|*pVIdv{48q3(9L0Q19+(Lo)CQfE^ zm?uGhEEWgc!k&O$vjFdDz+fcYU`EUk;4t5cq{SL(s z_D9~D!d^$r{~+cBVqPfB*0$o@^-yGN$j2LtumY6{<~L&~*3!3NWi!cuIs|W$w~G)< zSWn7(ntM(*FjNPt1e~)HPRZaEE@SH^d7c61$E{v~xlNqPZ8q?8n!rAlWhkJcAQ)=) zYViA(#hVM@Z1asgI0c!L_|$x9!(2Eb4i_lv((z)IdI~>dkWF*4mm31)=ZDwf)oHkZ z#={zLTBad`ZmTzAaaq2BbJPt#)-?C6S|LK*gTr1jjJ4cS@{ExTwiA`wt~DT_dJFOb zxDaH>-hvDRf~)~Rll8<^zGSDICo5xD%LNap^T}WlZi|`Z!2}@8Q148`^Xdq5dDauk~C`%Ay00RIe zWdfjx0SrNf0FN@pc8;CXTpEbHa`L!@U)OoeR9j3Cz_~%MldBAPT@2`y_2dmOkiT zzQ6C?7y_dhK+q)D16)eDuYCNZf5`0Y@eNJX28W>riRot+6%A^%cM&a~XP zc)Kp3n&^V--i^L)&*9)`eVVzuAy~VQe=Mp6krTfgQlZb*5L6>ah9sPqb z8TRV8f4CM)QqF@neUrDri2q8%**o~p>#929(rXd(bW{(>(~nX;lpo=PpwpPrA*KTD zb7Fe}lqWp@cgqRnE8q}zS@fCZMV3NZ$d6Q~i4&8bSfiMVmt8hb+kDUIP;b4vc;aAS zZ1Nx#NO%f7c=fgsSDS09?}{QSUfT$KJ%{xU=@Ye!7yBy%$M81aNN~sDqL&$wvHLFk z)>H5437*=!GSWF1K3O&O*;W4LSt|QW^VMO0WvF!^xU+oxLSCe$nTzyyPBh#G8MH(q zG%*rdA`wA!o@(wm`QiBM)wTo+j{s!6bNEu@e;l~j@fJ$H7e~fU2X~w`kDm3nm_yB; z(PD&tf-eLLwW7XLC?3Aul_|b(3f{3$<6yY8DnDbQ+}*aVAb6^2m2Xd);63X(5NfK7 zLJNUD^MWR{A=HNmAZ`Ha_XaBmx2{;9<{vSK`nH6-cF`Lz3a)swba$XV*j$`&^^=O8 zcSDyC96{0ION6=xW8GOTxSR!h3dwyK95{yCWsl8Pasm{$OKmu(di^+nD(&m91Y#$Yp2l_a2V) z9{P1;=tShep-(QBMe6o>_p_FSOK;V;#o~(}u6DP@0#Jh*Gd}RanB51ap3d;!^Z@8~&uhrKR%{sHHSD}%kUISJj7*Q;aKg=8=@%!?If zO*1xIPPp4bXG`Xpb-PkY=-^1OrYZc|`M{w_W2aR%C5aiYX00ue}j{HLFlOfI!qX2!=~`nb1WvstwBJ8J)W=d9x$L)T*e Kt#DXemj4AEHRmG$ diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.yaml deleted file mode 100644 index 70083d146..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Deployment.yaml +++ /dev/null @@ -1,734 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: -721017134 - paused: true - progressDeadlineSeconds: -94103882 - replicas: -1978186127 - revisionHistoryLimit: -2062497734 - rollbackTo: - revision: 1503865638277557961 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: Ŗ鱓;鹡鑓侅闍ŏ - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 5724260086168234152 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "293" - operator: 蹔ŧ - values: - - "294" - matchFields: - - key: "295" - operator: x$1 - values: - - "296" - weight: -938421813 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "289" - operator: "" - values: - - "290" - matchFields: - - key: "291" - operator: 亏yƕ丆録²Ŏ)/灩聋3趐囨鏻 - values: - - "292" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: w9-9d8-s7t/ZX-D---k..1Q7._l.._Q.6.I--2_9.v.--_.--4QQo - operator: DoesNotExist - matchLabels: - x3..-.8-Jp-9-4-Tm.Y: k8...__.Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M01 - namespaces: - - "311" - topologyKey: "312" - weight: -902839620 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: f.-zv._._.5-H.T.-.-.T-V_D_0-K_AS - operator: DoesNotExist - matchLabels: - jeds4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0n/py_8-3..s._.x.2K_2qu_0S-Cq0: 8yP9S--858LI__.8____rO-S-P_-...0c.-p - namespaces: - - "303" - topologyKey: "304" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - yp8q-sf1--gw-jz-659--0l-023bm-6l2e5---k5v3a---9/tA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W81: o_6Z..11_7pX_.-mLlx...w_t-_.5.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "327" - topologyKey: "328" - weight: 1505385143 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..--3C - operator: In - values: - - p_N-S..O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.Cw - matchLabels: - 7-3x-3/9a_-0R_.Z__Lv8_.O_..8n.--z_-..6W.VK.sTt.-U_--56-.7D.3_P: d._.Um.-__k.5 - namespaces: - - "319" - topologyKey: "320" - automountServiceAccountToken: true - containers: - - args: - - "217" - command: - - "216" - env: - - name: "224" - value: "225" - valueFrom: - configMapKeyRef: - key: "231" - name: "230" - optional: false - fieldRef: - apiVersion: "226" - fieldPath: "227" - resourceFieldRef: - containerName: "228" - divisor: "99" - resource: "229" - secretKeyRef: - key: "233" - name: "232" - optional: false - envFrom: - - configMapRef: - name: "222" - optional: true - prefix: "221" - secretRef: - name: "223" - optional: true - image: "215" - imagePullPolicy: =E埄Ȁ朦 wƯ貾坢'跩aŕ翑0展 - lifecycle: - postStart: - exec: - command: - - "254" - httpGet: - host: "257" - httpHeaders: - - name: "258" - value: "259" - path: "255" - port: "256" - scheme: 碧闳ȩr - tcpSocket: - host: "261" - port: "260" - preStop: - exec: - command: - - "262" - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "269" - port: "268" - livenessProbe: - exec: - command: - - "240" - failureThreshold: -241238495 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "241" - port: "242" - scheme: Í勅跦Opwǩ曬逴褜1ØœȠƬ - initialDelaySeconds: 1419770315 - periodSeconds: 1830495826 - successThreshold: 1102291854 - tcpSocket: - host: "247" - port: "246" - timeoutSeconds: 300356869 - name: "214" - ports: - - containerPort: 1179132251 - hostIP: "220" - hostPort: -1336170981 - name: "219" - protocol: Kʝ瘴I\p[ħsĨɆâĺɗ - readinessProbe: - exec: - command: - - "248" - failureThreshold: -979584143 - httpGet: - host: "250" - httpHeaders: - - name: "251" - value: "252" - path: "249" - port: 972978563 - scheme: ȨŮ+朷Ǝ膯 - initialDelaySeconds: -249989919 - periodSeconds: -602419938 - successThreshold: 1040396664 - tcpSocket: - host: "253" - port: -1506633471 - timeoutSeconds: -171684192 - resources: - limits: - 攤/ɸɎ R§耶FfBl: "326" - requests: - ɱJȉ罴: "587" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 庰%皧V - drop: - - 现葢ŵ橨鬶l獕;跣Hǝcw媀瓄&翜舞拉 - privileged: true - procMount: ĠM蘇KŅ/»頸+SÄ蚃 - readOnlyRootFilesystem: false - runAsGroup: -1576913564542459711 - runAsNonRoot: true - runAsUser: 8876559635423161004 - seLinuxOptions: - level: "274" - role: "272" - type: "273" - user: "271" - terminationMessagePath: "270" - terminationMessagePolicy: ƚ绤fʀļ腩墺Ò媁荭gw忊|E剒蔞 - tty: true - volumeDevices: - - devicePath: "239" - name: "238" - volumeMounts: - - mountPath: "235" - mountPropagation: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - name: "234" - readOnly: true - subPath: "236" - subPathExpr: "237" - workingDir: "218" - dnsConfig: - nameservers: - - "335" - options: - - name: "337" - value: "338" - searches: - - "336" - dnsPolicy: '''ǵɐ鰥' - enableServiceLinks: true - hostAliases: - - hostnames: - - "333" - ip: "332" - hostNetwork: true - hostPID: true - hostname: "287" - imagePullSecrets: - - name: "286" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: -鿧悮坮Ȣ幟ļ - readOnlyRootFilesystem: true - runAsGroup: -3651020110942663855 - runAsNonRoot: false - runAsUser: 1162216870203002790 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - stdin: true - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "279" - nodeSelector: - "275": "276" - priority: -895317190 - priorityClassName: "334" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: ')酊龨δ摖ȱğ_<ǬëJ橈''琕鶫:' - runtimeClassName: "339" - schedulerName: "329" - securityContext: - fsGroup: -4389239449149439507 - runAsGroup: 4640906527069599386 - runAsNonRoot: true - runAsUser: 1517677345437208428 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -6499508485510627932 - sysctls: - - name: "284" - value: "285" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "288" - terminationGracePeriodSeconds: -5370059306928520750 - tolerations: - - effect: 儉ɩ柀 - key: "330" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "331" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -164761311 - collisionCount: -305244896 - conditions: - - lastTransitionTime: "2449-11-26T19:51:46Z" - lastUpdateTime: "2646-12-03T23:27:38Z" - message: "341" - reason: "340" - status: PPöƌ镳餘ŁƁ翂|C ɩ - type: 很唟-墡è箁E嗆R2璻攜轴ɓ雤Ƽ]焤Ɂ - observedGeneration: -5187798234288383520 - readyReplicas: 1866809652 - replicas: 1170997513 - unavailableReplicas: -1844415313 - updatedReplicas: 44905239 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.json deleted file mode 100644 index 6d3898065..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "DeploymentRollback", - "apiVersion": "extensions/v1beta1", - "name": "2", - "updatedAnnotations": { - "3": "4" - }, - "rollbackTo": { - "revision": 4518808233936994290 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.DeploymentRollback.pb deleted file mode 100644 index 00901c52c3285fcaea35800eb0ad3f6555071f73..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75 zcmd0{C}!Z&;1Wu$C`rvL&dkp%)-N+mN-aq=6cTbtEy&5Q%uUTJ3ChpONlHx4782)T eG!kOtVl)4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRkt3_^}vd|XUMCPEw> zi~4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hARwv zQiwsw5hP+{BE-SLD8L}aWMm4IV=^)mVlpz9QU$Usgyew%Bn@O)3W;(t85;=kb1(>8 fS=~14KL{{NF-Y-nad81P85;^Q85>D4C@}y4ZOmuH diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.yaml deleted file mode 100644 index 8549ec301..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Ingress.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - backend: - serviceName: "24" - servicePort: "25" - rules: - - host: "28" - http: - paths: - - backend: - serviceName: "30" - servicePort: -213805612 - path: "29" - tls: - - hosts: - - "26" - secretName: "27" -status: - loadBalancer: - ingress: - - hostname: "32" - ip: "31" diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json deleted file mode 100644 index a82d58545..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "kind": "NetworkPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "podSelector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "ingress": [ - { - "ports": [ - { - "protocol": "ÐƣKʘńw:5塋訩塶\"=y钡n" - } - ], - "from": [ - { - "podSelector": { - "matchLabels": { - "y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk": "h-JM" - }, - "matchExpressions": [ - { - "key": "44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7", - "operator": "In", - "values": [ - "17_.8CnT" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "rSf5_Or.i1_7z.WH-..T": "2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0" - }, - "matchExpressions": [ - { - "key": "83.SD..P.---5.-3", - "operator": "NotIn", - "values": [ - "hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q" - ] - } - ] - }, - "ipBlock": { - "cidr": "42", - "except": [ - "43" - ] - } - } - ] - } - ], - "egress": [ - { - "ports": [ - { - "protocol": "ƯĖ漘Z剚敍0)鈼¬麄p呝T" - } - ], - "to": [ - { - "podSelector": { - "matchLabels": { - "9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm": "2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P" - }, - "matchExpressions": [ - { - "key": "Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8", - "operator": "NotIn", - "values": [ - "q.0-_1-F.h-__k_K5._3" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u": "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - }, - "matchExpressions": [ - { - "key": "5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M", - "operator": "NotIn", - "values": [ - "D.GgT7_7P" - ] - } - ] - }, - "ipBlock": { - "cidr": "56", - "except": [ - "57" - ] - } - } - ] - } - ], - "policyTypes": [ - "h4ɊHȖ|ʐ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb deleted file mode 100644 index 7ca8dee4cff14076dcf12e7182929fa61887a937..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1280 zcmXw1%WqXh81K0#mPs_`gjM6SCPdKhyL0BuoQDRLQhK4#+rllSZ9+cp`_=nC_o*&; zDYPMiL8t~H4K6TB*!YH(6jE3iHzp?TOm0Ir{t3o`gh?io`DW&u->c{~2H0!NOm~8G zxsk7w8{w9fNC$Dtd^Va6+Ld~7sr@eDJ3Gi33?D=cJ*p^#+{KR4Rz-@35&$p?+Qi}yaQ z?g&{HAMlKN$dbK~r4|j)R~_@!jdP3r3yT}qzPNh@4)-sAf9I!o`2K~D*3Tb%ef^h9 zs~;cL-CQwX9v@^^4fYO`e%bA&T&Zdt9uEORS~kdqCV1e~rQ|ZD^hwrB3Ml&FXa^(a zW?QWXopblD?SHU*_hkDm)n8e9c>SCH%8$c4 zyBnXal+FJ_>@S1$SiK8fsBlm<5YS7t05lQ~aYy(GD5StkN~QOnu9pGYnrvH>vV14& zr2z64^1u&^Of;!L<2f`7o}jGa)FeVoHa(XJ+$yy(?I2;bpn{_LR1U@`%y~90B@{fR z>_#OEvW0C0b`P}QR$h7?NK3)(4757j;^6a|MwS;TE_kj05C<;{(1UUS2`B76)@jgk z3BBFrY4f7N4zR8DSVqxg9rG5sJv_1(5T{KkAWCx>XuUaV!O7{)a94vTqU6{ zo7!`+@yv)u+=~GcH^qveveW~>eUx#Eg+>qD zh4viG`8IT%L_S+0-KRD*$U;(>A!!fY*u-9DFW$SkdU5^s@_hfym+POO<=Zz--~R2p zjbBez`{%!!HqUHg{}}9q!QS&h_$nSi#jRyBE_49uZp(2JCD&>~S!Vop5p3;|5?U>Q zD(E6e&@4sP3Fk`Yy8?ZpIoJymwQ8V=X~xJ^@)4U_7f4YIQz~wc>jFAilBkD;SO~__ zUV^5yU2jL46?-a9REE(Mps!oZBPRbdYC2iamO*_&h?pGzd7LClQZQ6en#CP4mr35V>j8 z-Xpo779L;Fpl9~PfwE=vAc?ze8q<(w$IP8u_0aF5HSL t6e@nCgJR+d$StE7$xgfEPCfEVIc7+?!z?H7FYaBt_~C~Z diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml deleted file mode 100644 index 2e2ca1261..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml +++ /dev/null @@ -1,89 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: NetworkPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - egress: - - ports: - - protocol: ƯĖ漘Z剚敍0)鈼¬麄p呝T - to: - - ipBlock: - cidr: "56" - except: - - "57" - namespaceSelector: - matchExpressions: - - key: 5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M - operator: NotIn - values: - - D.GgT7_7P - matchLabels: - G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u: O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF - podSelector: - matchExpressions: - - key: Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8 - operator: NotIn - values: - - q.0-_1-F.h-__k_K5._3 - matchLabels: - 9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm: 2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P - ingress: - - from: - - ipBlock: - cidr: "42" - except: - - "43" - namespaceSelector: - matchExpressions: - - key: 83.SD..P.---5.-3 - operator: NotIn - values: - - hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q - matchLabels: - rSf5_Or.i1_7z.WH-..T: 2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0 - podSelector: - matchExpressions: - - key: 44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7 - operator: In - values: - - 17_.8CnT - matchLabels: - y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk: h-JM - ports: - - protocol: ÐƣKʘńw:5塋訩塶"=y钡n - podSelector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - policyTypes: - - h4ɊHȖ|ʐ diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.json deleted file mode 100644 index 0d723e167..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "kind": "NetworkPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "podSelector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "ingress": [ - { - "ports": [ - { - "protocol": "ÐƣKʘńw:5塋訩塶\"=y钡n" - } - ], - "from": [ - { - "podSelector": { - "matchLabels": { - "y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk": "h-JM" - }, - "matchExpressions": [ - { - "key": "44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7", - "operator": "In", - "values": [ - "17_.8CnT" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "rSf5_Or.i1_7z.WH-..T": "2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0" - }, - "matchExpressions": [ - { - "key": "83.SD..P.---5.-3", - "operator": "NotIn", - "values": [ - "hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q" - ] - } - ] - }, - "ipBlock": { - "cidr": "42", - "except": [ - "43" - ] - } - } - ] - } - ], - "egress": [ - { - "ports": [ - { - "protocol": "ƯĖ漘Z剚敍0)鈼¬麄p呝T" - } - ], - "to": [ - { - "podSelector": { - "matchLabels": { - "9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm": "2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P" - }, - "matchExpressions": [ - { - "key": "Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8", - "operator": "NotIn", - "values": [ - "q.0-_1-F.h-__k_K5._3" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u": "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - }, - "matchExpressions": [ - { - "key": "5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M", - "operator": "NotIn", - "values": [ - "D.GgT7_7P" - ] - } - ] - }, - "ipBlock": { - "cidr": "56", - "except": [ - "57" - ] - } - } - ] - } - ], - "policyTypes": [ - "h4ɊHȖ|ʐ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.pb deleted file mode 100644 index 88d70aa0b35e739df2b0a07475cd1310b4edd52c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1296 zcmXw1%WqXh81K0#mPsUJ!m9CE6C&vM-8pk+&O?JrDJ>LwTWBe56Y_cAuip3jstaBU zZHQnHszFGD3ycyrzF{SW01I~}CT@($ZRo~7!8njG$z*cA`OY`LSKhDnvDX++w(H4a zEn6zq!c9AttVeDBd?Z9TNzus zvKaLrt(<*-_4_ zP2M>D!--Q@f4_Xon%~GQk6V81Ic5bsWQ*J@EM&`pknId^9`5#TUAX_r2erG4_dYG} z2-&vi^Q~&gR^5=T7pz_p^=W40s>Z|pqSr}yN>>CtSrVkO9Z(Am@WHJrB~(J2 zo3tO7kPpI2DBKMwBftbevr5}`fZQU-(8&M7cF*xZLLnFG)+`7Ym?W-BYOdHnkxwrn!~!$Tc8n~+|G>f z40s|+Pe1~*hoifxH8(Yu8ZwBxQ-CD+2;1U2I5mtoY5oC?;P7W7rMhwFjZCL&6r!>! zbOCT5rQCe3)&*~&H3xHn18p~!O&7?_sSNb9kdi#4oPiq~*vst2dpB1vuH9aq@16N_ z?enu@`}*nIzkRp<>&bHO{8!Wb%m((4#ZFl4y#QpOqje~Gl~l@uHbB*Dx^ArC*$pVF zRM5(UV?5H*s0C04Qv?NurA)iwOo6{EF(8_Qy)a%W*9|el7=?~MW>e_^X_~@>jyhwe zfNq);nq?#A>LW=%Mw7;_w?`W#XEI7ugy95WU`EWNAR8%@Mk-O+b@c?P(HzpyY#k@S zcuz1#jRN>j#oAgyBb5y!m@#S2(|&D&&M#SPhHV=)L7o96_n5O3h*8>QK)?aBiA01V zIN=Cr@HZzwW~R}2kK}<~c+y}%&+Lf;rHkl89Ctf3Vj#_q@SSYC25Hjd8&MXT%>u|u z*8@kGaM@la+>B_HI(npya{MXCO~W{vp7zL_eC(HYc}RPMETbMQ?!ABU!-wYv`Ud;{ E2k%FL8UO$Q diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.yaml deleted file mode 100644 index dae47ddc7..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.NetworkPolicy.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: NetworkPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - egress: - - ports: - - protocol: ƯĖ漘Z剚敍0)鈼¬麄p呝T - to: - - ipBlock: - cidr: "56" - except: - - "57" - namespaceSelector: - matchExpressions: - - key: 5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M - operator: NotIn - values: - - D.GgT7_7P - matchLabels: - G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u: O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF - podSelector: - matchExpressions: - - key: Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8 - operator: NotIn - values: - - q.0-_1-F.h-__k_K5._3 - matchLabels: - 9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm: 2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P - ingress: - - from: - - ipBlock: - cidr: "42" - except: - - "43" - namespaceSelector: - matchExpressions: - - key: 83.SD..P.---5.-3 - operator: NotIn - values: - - hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q - matchLabels: - rSf5_Or.i1_7z.WH-..T: 2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0 - podSelector: - matchExpressions: - - key: 44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7 - operator: In - values: - - 17_.8CnT - matchLabels: - y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk: h-JM - ports: - - protocol: ÐƣKʘńw:5塋訩塶"=y钡n - podSelector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - policyTypes: - - h4ɊHȖ|ʐ diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json deleted file mode 100644 index 976aedbc0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "kind": "PodSecurityPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "privileged": true, - "defaultAddCapabilities": [ - "ǸƢ6/" - ], - "requiredDropCapabilities": [ - "VŚ(ĿȊ甞谐颋" - ], - "allowedCapabilities": [ - "SǡƏ" - ], - "volumes": [ - "$+½H牗洝尿彀亞螩B峅" - ], - "hostNetwork": true, - "hostPorts": [ - { - "min": -827642756, - "max": -1487653240 - } - ], - "hostPID": true, - "hostIPC": true, - "seLinux": { - "rule": "", - "seLinuxOptions": { - "user": "24", - "role": "25", - "type": "26", - "level": "27" - } - }, - "runAsUser": { - "rule": ":狞夌碕ʂɭîcP$Iņɖ", - "ranges": [ - { - "min": 6715860513467504728, - "max": -7606590868934742876 - } - ] - }, - "runAsGroup": { - "rule": "ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(-", - "ranges": [ - { - "min": 4788190398976706073, - "max": 7506785378065797295 - } - ] - }, - "supplementalGroups": { - "rule": "?øēƺ魋Ď儇击3ƆìQ", - "ranges": [ - { - "min": -9190478501544852634, - "max": -8763960668058519584 - } - ] - }, - "fsGroup": { - "rule": "託仭", - "ranges": [ - { - "min": -7003704988542234731, - "max": -2225037131652530471 - } - ] - }, - "defaultAllowPrivilegeEscalation": false, - "allowPrivilegeEscalation": false, - "allowedHostPaths": [ - { - "pathPrefix": "28" - } - ], - "allowedFlexVolumes": [ - { - "driver": "29" - } - ], - "allowedCSIDrivers": [ - { - "name": "30" - } - ], - "allowedUnsafeSysctls": [ - "31" - ], - "forbiddenSysctls": [ - "32" - ], - "allowedProcMountTypes": [ - "¬轚9Ȏ瀮昃" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.pb deleted file mode 100644 index 1d628a47cff6b347246a4173e09e7032e015f418..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 628 zcmV-)0*n1?ICB6BCkhf}cywiMb7^mGb1!x=Vr6t;F%l6_Z)8(tV|8+Aba_y3Y-wY8 z62Jrs$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGt zF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`|t z0tf*T2FJL@qBbuY5mv>TD8#?WiszJ`=&+FKqKhI0Q^%pkk187^E5f}<=ZTl*w4LR! zzvaDv(gcBuT}F$(9lo2-vW;(%|vo znOzX1*{I9^y#2S90b()=7(c_f#FNIl>8*>zj^%`h<%hd7#)iYJQ4$si=7zZZ?~k{- zfB_KT?}3-ghKjI;0cs!$2I#1l+qn*XRC@m5c2$_tl3g5 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.yaml deleted file mode 100644 index 0d1606772..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.yaml +++ /dev/null @@ -1,87 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: PodSecurityPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - allowPrivilegeEscalation: false - allowedCSIDrivers: - - name: "30" - allowedCapabilities: - - SǡƏ - allowedFlexVolumes: - - driver: "29" - allowedHostPaths: - - pathPrefix: "28" - allowedProcMountTypes: - - ¬轚9Ȏ瀮昃 - allowedUnsafeSysctls: - - "31" - defaultAddCapabilities: - - ǸƢ6/ - defaultAllowPrivilegeEscalation: false - forbiddenSysctls: - - "32" - fsGroup: - ranges: - - max: -2225037131652530471 - min: -7003704988542234731 - rule: 託仭 - hostIPC: true - hostNetwork: true - hostPID: true - hostPorts: - - max: -1487653240 - min: -827642756 - privileged: true - requiredDropCapabilities: - - VŚ(ĿȊ甞谐颋 - runAsGroup: - ranges: - - max: 7506785378065797295 - min: 4788190398976706073 - rule: ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(- - runAsUser: - ranges: - - max: -7606590868934742876 - min: 6715860513467504728 - rule: :狞夌碕ʂɭîcP$Iņɖ - seLinux: - rule: "" - seLinuxOptions: - level: "27" - role: "25" - type: "26" - user: "24" - supplementalGroups: - ranges: - - max: -8763960668058519584 - min: -9190478501544852634 - rule: ?øēƺ魋Ď儇击3ƆìQ - volumes: - - $+½H牗洝尿彀亞螩B峅 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.json deleted file mode 100644 index fcfcd46d0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "kind": "PodSecurityPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "privileged": true, - "defaultAddCapabilities": [ - "ǸƢ6/" - ], - "requiredDropCapabilities": [ - "VŚ(ĿȊ甞谐颋" - ], - "allowedCapabilities": [ - "SǡƏ" - ], - "volumes": [ - "$+½H牗洝尿彀亞螩B峅" - ], - "hostNetwork": true, - "hostPorts": [ - { - "min": -827642756, - "max": -1487653240 - } - ], - "hostPID": true, - "hostIPC": true, - "seLinux": { - "rule": "", - "seLinuxOptions": { - "user": "24", - "role": "25", - "type": "26", - "level": "27" - } - }, - "runAsUser": { - "rule": ":狞夌碕ʂɭîcP$Iņɖ", - "ranges": [ - { - "min": 6715860513467504728, - "max": -7606590868934742876 - } - ] - }, - "runAsGroup": { - "rule": "ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(-", - "ranges": [ - { - "min": 4788190398976706073, - "max": 7506785378065797295 - } - ] - }, - "supplementalGroups": { - "rule": "?øēƺ魋Ď儇击3ƆìQ", - "ranges": [ - { - "min": -9190478501544852634, - "max": -8763960668058519584 - } - ] - }, - "fsGroup": { - "rule": "託仭", - "ranges": [ - { - "min": -7003704988542234731, - "max": -2225037131652530471 - } - ] - }, - "defaultAllowPrivilegeEscalation": false, - "allowPrivilegeEscalation": false, - "allowedHostPaths": [ - { - "pathPrefix": "28" - } - ], - "allowedFlexVolumes": [ - { - "driver": "29" - } - ], - "allowedCSIDrivers": [ - { - "name": "30" - } - ], - "allowedUnsafeSysctls": [ - "31" - ], - "forbiddenSysctls": [ - "32" - ], - "allowedProcMountTypes": [ - "¬轚9Ȏ瀮昃" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.pb deleted file mode 100644 index 7ca1cf398db1d77b1556d41460606c9252a15007..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 644 zcmV-~0(<>yICB6BCkhf}cywiMb7^mGb1!x=Vr6t;F%l6_Z)8(tV|8+Aba_y3Y-wY8 z63_$+*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGt zF*S+-JqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_| z3IZ`W5(o+g3IZ`X5&#nN0tf*T2FJL@qBbuY5mv>TD8#?WiszJ`=&+FKqKhI0Q^%pk zk187^E5f}<=ZTl*w4LR!zvaDv(gc zBuT}F$(9lo2-vW;(%|vonOzX1*{I9^y#2S90b()=7(c_f#FNIl>8*>zj^%`h<%hd7 z#)iYJQ4$si=7zZZ?~k{-fB_KT?}3-ghKjI;0cs!$2I#1l+qn*XRC@m5c2$_t< ezsR}7xk3=Hq1DCpu-%qux&Z_V0y8ig03raxJrySa diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.yaml deleted file mode 100644 index e4fb3e331..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.PodSecurityPolicy.yaml +++ /dev/null @@ -1,90 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: PodSecurityPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - allowPrivilegeEscalation: false - allowedCSIDrivers: - - name: "30" - allowedCapabilities: - - SǡƏ - allowedFlexVolumes: - - driver: "29" - allowedHostPaths: - - pathPrefix: "28" - allowedProcMountTypes: - - ¬轚9Ȏ瀮昃 - allowedUnsafeSysctls: - - "31" - defaultAddCapabilities: - - ǸƢ6/ - defaultAllowPrivilegeEscalation: false - forbiddenSysctls: - - "32" - fsGroup: - ranges: - - max: -2225037131652530471 - min: -7003704988542234731 - rule: 託仭 - hostIPC: true - hostNetwork: true - hostPID: true - hostPorts: - - max: -1487653240 - min: -827642756 - privileged: true - requiredDropCapabilities: - - VŚ(ĿȊ甞谐颋 - runAsGroup: - ranges: - - max: 7506785378065797295 - min: 4788190398976706073 - rule: ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(- - runAsUser: - ranges: - - max: -7606590868934742876 - min: 6715860513467504728 - rule: :狞夌碕ʂɭîcP$Iņɖ - seLinux: - rule: "" - seLinuxOptions: - level: "27" - role: "25" - type: "26" - user: "24" - supplementalGroups: - ranges: - - max: -8763960668058519584 - min: -9190478501544852634 - rule: ?øēƺ魋Ď儇击3ƆìQ - volumes: - - $+½H牗洝尿彀亞螩B峅 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json deleted file mode 100644 index da3978ba8..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.json +++ /dev/null @@ -1,1050 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "runAsUser": -6722299225018603773, - "runAsGroup": 6637292039508172491, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "嫙\u0026蒒5靇C'ɵK.Q貇" - }, - "tty": true - } - ], - "containers": [ - { - "name": "215", - "image": "216", - "command": [ - "217" - ], - "args": [ - "218" - ], - "workingDir": "219", - "ports": [ - { - "name": "220", - "hostPort": -1762049522, - "containerPort": -1478830017, - "protocol": "÷nI粛E煹ǐƲE", - "hostIP": "221" - } - ], - "envFrom": [ - { - "prefix": "222", - "configMapRef": { - "name": "223", - "optional": true - }, - "secretRef": { - "name": "224", - "optional": true - } - } - ], - "env": [ - { - "name": "225", - "value": "226", - "valueFrom": { - "fieldRef": { - "apiVersion": "227", - "fieldPath": "228" - }, - "resourceFieldRef": { - "containerName": "229", - "resource": "230", - "divisor": "43" - }, - "configMapKeyRef": { - "name": "231", - "key": "232", - "optional": false - }, - "secretKeyRef": { - "name": "233", - "key": "234", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ",铻OŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "235", - "mountPath": "236", - "subPath": "237", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "238" - } - ], - "volumeDevices": [ - { - "name": "239", - "devicePath": "240" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "241" - ] - }, - "httpGet": { - "path": "242", - "port": -342705708, - "host": "243", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "246" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "247" - ] - }, - "httpGet": { - "path": "248", - "port": 474119379, - "host": "249", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "250", - "value": "251" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "252" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "253" - ] - }, - "httpGet": { - "path": "254", - "port": 963670270, - "host": "255", - "scheme": "ɘȌ脾嚏吐ĠLƐȤ藠3.v", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - } - }, - "preStop": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "\\ ", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "«丯Ƙ枛牐ɺ皚", - "imagePullPolicy": "I\\p[", - "securityContext": { - "capabilities": { - "add": [ - "ĨɆâĺɗŹ倗" - ], - "drop": [ - "晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "273": "274" - }, - "serviceAccountName": "275", - "serviceAccount": "276", - "automountServiceAccountToken": true, - "nodeName": "277", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "278", - "role": "279", - "type": "280", - "level": "281" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "282", - "value": "283" - } - ] - }, - "imagePullSecrets": [ - { - "name": "284" - } - ], - "hostname": "285", - "subdomain": "286", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "287", - "operator": "胵輓Ɔ", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "290" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "291", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "292" - ] - } - ], - "matchFields": [ - { - "key": "293", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "294" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "301" - ], - "topologyKey": "302" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - } - ] - } - }, - "schedulerName": "327", - "tolerations": [ - { - "key": "328", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "329", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "330", - "hostnames": [ - "331" - ] - } - ], - "priorityClassName": "332", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "333" - ], - "searches": [ - "334" - ], - "options": [ - { - "name": "335", - "value": "336" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "337", - "enableServiceLinks": true - } - } - }, - "status": { - "replicas": -1280563546, - "fullyLabeledReplicas": 163034368, - "readyReplicas": 1631678367, - "availableReplicas": 1298031603, - "observedGeneration": -3092144976843560567, - "conditions": [ - { - "type": ".¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ", - "status": "óƒ畒Üɉ愂,wa纝", - "lastTransitionTime": "2488-07-22T04:14:34Z", - "reason": "338", - "message": "339" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.after_roundtrip.pb deleted file mode 100644 index 1a169e9c2fc04efd7ef37c6cb76e41fe1b9ea51a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4736 zcmYjV33OCdnyy>&}k%9ji!G1FhAY#!h*gxIoicd93n9qhm0IJi*JFEE377h^nB< zlI$dcrvCTc;`fRwj}&FiH?2NX-dD2c_@9mpqm9!Uq_9X$n!zBAHS^AGcE-#To0%6J zk1Z@Ph8sL(e{_vkOzh8!G4s6Bq@o-%FBX`2sRCh`DzpC{tgSE_DuV6JuSl`WI z?A*0uV>+*^oG!R@tk2KpcIcSPR`ooxeCxVJdZMQCn+2@kRFzF-@Cv*{mvkHMKX4rtSLR+V~mT(((f)Cs>opXYD z=W0dg7H}I=Fka|XxI~@H*Yowv^|m5A(}x(d;AG7LZ!-(TVHSj#p9ju%7Z@WY!GSi} z^O|w+p#NketRF8q;YTD%5k-NBqT&?P`@MnM#=7>iKZo^uec)ZttwP-e|kYL>=W-))8&X^^hy)~WrS9l@p&phV?^;eB6X97j7 z^Muri;Z$}O^Q3>M)%RNS=-IK8aYkihobT!}qo|3EWFiDnvspk;V9kj@?}hf4!z?Q?W?6Nb=9pz|u4(Nw#;iCKOi5;ij|X9eux3TD zqO}m2B3euvVc#pDM3HS~MRAxFHO8!H#H>2!fTYULH6_{L2~w(Hqa4w0ih-1?Afw9L zAUYLXS5+%=&`~YN%9u4+Yz-D$gT>Z_7~pH76BU4z22z?_j8x_~@S(7jr2>nlDS~%8 zSs*+$Bk}fcZhugEKNORtrt81lKZIT@(9?7xu@qKZ8x5Z*8+;4k6gA40BM^-9E=H63v6EMt;mO>5eb2JVGa;+J`gD$h`ieL7gU9q62v?e3XO;? zO&y^j6WRLBq^B6!O)SsEQm(>=4AZ!YX8Rei;2;9wsUb}e?OlIu9efZT8i(Zk z1pSged5a175^+#x;4lCY!!soI-gG8{@Zde+Wg8I10Yr@fq7ec^#A&H1H3q_)+j{lf z=Oh0Jx$CgF2QrrWdk@F?_Y6(ePV~ls4B_X*QyHp`$hPMhFi0Q?KvWtQA&_PwIOz@( z1>0jZgGAsdkHGRi{00XJgpTIR%xvZt&jss;SB-Z}woRQe`Wk%g#aTw_<;j6SdyBum zpB{46DYLNayj=_EmmOJ|1PVy!+MEhvBVnqxwX_@pS60m&cpNFMm4NHGU;? z^2GS?RMSg=3nkvu(2!zi#8BgaNN}be0SzBrYl^X%C`Y!mdaj*8)^jI&x@Z!AM0WSh zuPP#oh278`PXubu_!_Uy_0^PZ zU%7d*_<70bY!8{2V2crnhwVm%z8!skDl%kWB9;%oxp6JhTK?h1-bnjvcaDD_8Qt;q z)qg}f$LkyJgimwQQN+9yvJD&Md9W>sA=^LPe)Fw}kZnnF*t|`iszB+8(X!vDtsOhD ze4^IV5okOiaCu=5Wa@zuN&pJ2g9Jx_NE$mgq#Ek$v!EIZ>?2X(ahX7JWx-*7#U9ci z(-g|#6h53mb;`;%AZpIErLSbYT(FZ7n8yKz>~*(|UGg@L4;h7xtligKXY@C&ch~9@ zJ@b4G9kJd)Z;gHJXlJ0Xe^KiE?G|K%(?n#t6%{y0MB!nND8$}VS^7y&>CHWJqfOAZ zOmjZ`#6Z=L%NMK`@!|MC5fw$Fb= z!~|UiJfi17fzm@1C_O}x*8))z&?dA6<*Z_83<}MvqCpI*6Jk(#OUKt|x;jSd-s?eD zligRi_s`{r|K8(9(f8h;INjaUe)kG;9t`e%|5EYws-+<-&{;rGD1f6wRIwNV1%w4u zu0uy=Fb#-N898JO`b<=yq%Ux}eqt}Rs6y+7hsLt*rtx~uiHX>_Rp*7bCKnZ)TFw@Qy^pUcMFi*boq zPs`v`oXjl{^hKPWnSd8*fXnh$N*s|AH|*v};tDAJ&it$JUCss(DR(E% z-I@{#CvAtAh1GnlX|XHyG|X`T6m|Mrrl;}A38^_EJ3VgqR#&czjS!%F10n1w6xAHK z(Hw3qYztzl5%VH5YcYrQtkt@{Gm9h3br;T56phmX=SrY&4J!&iO3=ToPtms%kX2m}DQgB;{hN6(z8N;b`W+CYp3ZIKAlHlOqGoBpajpe| z1%0_r5+TjJLVZ`+KSnit`RC&gZx$I$5;KeWx5VTu8B2IK4>rZvBsEc&0i&-GWfsX` zTu#KxG0xLBg6TA@i)(ZpzH;@QbXAwawE@x(3m_%%Ia}~DDPNyguxkDWxFdm==EZqn zoJe4t$Snw{(uT@r(5?>Ek%x*4L`wMD@vv?e`3nB3`Bd1_~wxFbV}QN(jIRiWKhQ z0LUm4U~RaE^9qG*3P85`67vXSqK#S7WHy?yCmKh)R&Db27mb|@6jlWWPX|k@QryQp zCtvcPuL-u+u@o9e@w2HVIfPpP6~nt4^O&!?$y>eEKX~3fWVBr*z|__jBPM}XUmoh% z@90DLsip9$2-#4fS@|0qJ*_(?F6R6D2X%LgYV0ow7F{0iUcH328eXNLs{hoicqnba z(JVE0jX|@usO{t1X8Y~V^7l}5;KCbkhg0ZuzyCjf52K=uE@olK2Pk>J28B@QXyY9U zUYQDYOh8hO$l&lHPkqQ9)HawS{(p1i0hI$swiF${>ks1stEZ{`)^vMOcg^=Tuwosra72k&45we6*xK)ikDE7 zPoPfBWa#`azP#QSjwpl?pmcA^63-dHHZF8`F=(QbGDRL@x9Z{1xF8#hn!BK%hY5CNJVFWO7~ zRCaUUe%}Xe=wau6>&nT`TSl5|UWtFw=x&}JsH>BLN6Qxc%GP5`?$&yn#KZ`r(Oy@i4LPXEz{7vepY{-R1>X9YdHnq#Jaq$AG1 z?{(u+Q?RW^j{c9yL+;_pGtpxYt{po0+4;inQRvbl(EEZQ@S||p1>!;F2X6+$SEs+A znP7_E69hrD!A2I~J`O~_g-o9yGh_OUiYQ+oWPi}t^u-L@e@30WcJAoI8(raNe_dhS z_s*TJJJ*j_zK86`|F)-Mdh}P5_dc6OUSwjp(ZN7p@l<`Fq0&Ctm+e1s*4^sAT%P7B zn`}1D?>Bl*`FbuIC+oeiRPGBCb^e2O?jzoPzS837b|v~R9koS8o&K=!{%犵殇ŕ-Ɂ - values: - - "292" - matchFields: - - key: "293" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "294" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "287" - operator: 胵輓Ɔ - values: - - "288" - matchFields: - - key: "289" - operator: ØœȠƬQg鄠[颐o - values: - - "290" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "309" - topologyKey: "310" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "301" - topologyKey: "302" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "325" - topologyKey: "326" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "317" - topologyKey: "318" - automountServiceAccountToken: true - containers: - - args: - - "218" - command: - - "217" - env: - - name: "225" - value: "226" - valueFrom: - configMapKeyRef: - key: "232" - name: "231" - optional: false - fieldRef: - apiVersion: "227" - fieldPath: "228" - resourceFieldRef: - containerName: "229" - divisor: "43" - resource: "230" - secretKeyRef: - key: "234" - name: "233" - optional: true - envFrom: - - configMapRef: - name: "223" - optional: true - prefix: "222" - secretRef: - name: "224" - optional: true - image: "216" - imagePullPolicy: I\p[ - lifecycle: - postStart: - exec: - command: - - "253" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "254" - port: 963670270 - scheme: ɘȌ脾嚏吐ĠLƐȤ藠3.v - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: '\ ' - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "241" - failureThreshold: 2040455355 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "242" - port: -342705708 - scheme: fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - initialDelaySeconds: 364078113 - periodSeconds: 828173251 - successThreshold: -394397948 - tcpSocket: - host: "246" - port: 88483549 - timeoutSeconds: -181693648 - name: "215" - ports: - - containerPort: -1478830017 - hostIP: "221" - hostPort: -1762049522 - name: "220" - protocol: ÷nI粛E煹ǐƲE - readinessProbe: - exec: - command: - - "247" - failureThreshold: -1920661051 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: 474119379 - scheme: 萭旿@掇lNdǂ>5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "252" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ',铻OŤǢʭ嵔棂p儼Ƿ裚瓶': "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ĨɆâĺɗŹ倗 - drop: - - 晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: «丯Ƙ枛牐ɺ皚 - tty: true - volumeDevices: - - devicePath: "240" - name: "239" - volumeMounts: - - mountPath: "236" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "235" - subPath: "237" - subPathExpr: "238" - workingDir: "219" - dnsConfig: - nameservers: - - "333" - options: - - name: "335" - value: "336" - searches: - - "334" - enableServiceLinks: true - hostAliases: - - hostnames: - - "331" - ip: "330" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "285" - imagePullSecrets: - - name: "284" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 嫙&蒒5靇C'ɵK.Q貇 - readOnlyRootFilesystem: false - runAsGroup: 6637292039508172491 - runAsNonRoot: false - runAsUser: -6722299225018603773 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "277" - nodeSelector: - "273": "274" - priority: -852112760 - priorityClassName: "332" - readinessGates: - - conditionType: "" - runtimeClassName: "337" - schedulerName: "327" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "281" - role: "279" - type: "280" - user: "278" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "282" - value: "283" - serviceAccount: "276" - serviceAccountName: "275" - shareProcessNamespace: false - subdomain: "286" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "328" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "329" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1298031603 - conditions: - - lastTransitionTime: "2488-07-22T04:14:34Z" - message: "339" - reason: "338" - status: óƒ畒Üɉ愂,wa纝 - type: .¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ - fullyLabeledReplicas: 163034368 - observedGeneration: -3092144976843560567 - readyReplicas: 1631678367 - replicas: -1280563546 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.json deleted file mode 100644 index 954aa915e..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.json +++ /dev/null @@ -1,1052 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "runAsUser": -6722299225018603773, - "runAsGroup": 6637292039508172491, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "嫙\u0026蒒5靇C'ɵK.Q貇" - }, - "tty": true - } - ], - "containers": [ - { - "name": "215", - "image": "216", - "command": [ - "217" - ], - "args": [ - "218" - ], - "workingDir": "219", - "ports": [ - { - "name": "220", - "hostPort": -1762049522, - "containerPort": -1478830017, - "protocol": "÷nI粛E煹ǐƲE", - "hostIP": "221" - } - ], - "envFrom": [ - { - "prefix": "222", - "configMapRef": { - "name": "223", - "optional": true - }, - "secretRef": { - "name": "224", - "optional": true - } - } - ], - "env": [ - { - "name": "225", - "value": "226", - "valueFrom": { - "fieldRef": { - "apiVersion": "227", - "fieldPath": "228" - }, - "resourceFieldRef": { - "containerName": "229", - "resource": "230", - "divisor": "43" - }, - "configMapKeyRef": { - "name": "231", - "key": "232", - "optional": false - }, - "secretKeyRef": { - "name": "233", - "key": "234", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ",铻OŤǢʭ嵔棂p儼Ƿ裚瓶": "806" - }, - "requests": { - "ɩC": "766" - } - }, - "volumeMounts": [ - { - "name": "235", - "mountPath": "236", - "subPath": "237", - "mountPropagation": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "subPathExpr": "238" - } - ], - "volumeDevices": [ - { - "name": "239", - "devicePath": "240" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "241" - ] - }, - "httpGet": { - "path": "242", - "port": -342705708, - "host": "243", - "scheme": "fw[Řż丩ŽoǠŻʘY賃ɪ鐊", - "httpHeaders": [ - { - "name": "244", - "value": "245" - } - ] - }, - "tcpSocket": { - "port": 88483549, - "host": "246" - }, - "initialDelaySeconds": 364078113, - "timeoutSeconds": -181693648, - "periodSeconds": 828173251, - "successThreshold": -394397948, - "failureThreshold": 2040455355 - }, - "readinessProbe": { - "exec": { - "command": [ - "247" - ] - }, - "httpGet": { - "path": "248", - "port": 474119379, - "host": "249", - "scheme": "萭旿@掇lNdǂ\u003e5姣", - "httpHeaders": [ - { - "name": "250", - "value": "251" - } - ] - }, - "tcpSocket": { - "port": 1498833271, - "host": "252" - }, - "initialDelaySeconds": 1505082076, - "timeoutSeconds": 1447898632, - "periodSeconds": 1602745893, - "successThreshold": 1599076900, - "failureThreshold": -1920661051 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "253" - ] - }, - "httpGet": { - "path": "254", - "port": 963670270, - "host": "255", - "scheme": "ɘȌ脾嚏吐ĠLƐȤ藠3.v", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - } - }, - "preStop": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "\\ ", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "«丯Ƙ枛牐ɺ皚", - "imagePullPolicy": "I\\p[", - "securityContext": { - "capabilities": { - "add": [ - "ĨɆâĺɗŹ倗" - ], - "drop": [ - "晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ȱ?$矡ȶ网" - }, - "stdin": true, - "stdinOnce": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": -549108701661089463, - "activeDeadlineSeconds": -11671145270681448, - "nodeSelector": { - "273": "274" - }, - "serviceAccountName": "275", - "serviceAccount": "276", - "automountServiceAccountToken": true, - "nodeName": "277", - "hostNetwork": true, - "hostPID": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "278", - "role": "279", - "type": "280", - "level": "281" - }, - "runAsUser": -5860790522738935260, - "runAsGroup": 5267311692406174869, - "runAsNonRoot": false, - "supplementalGroups": [ - -4369115231127764890 - ], - "fsGroup": -4765779537771254535, - "sysctls": [ - { - "name": "282", - "value": "283" - } - ] - }, - "imagePullSecrets": [ - { - "name": "284" - } - ], - "hostname": "285", - "subdomain": "286", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "287", - "operator": "胵輓Ɔ", - "values": [ - "288" - ] - } - ], - "matchFields": [ - { - "key": "289", - "operator": "ØœȠƬQg鄠[颐o", - "values": [ - "290" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 410611837, - "preference": { - "matchExpressions": [ - { - "key": "291", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "292" - ] - } - ], - "matchFields": [ - { - "key": "293", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "294" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "301" - ], - "topologyKey": "302" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - } - ] - } - }, - "schedulerName": "327", - "tolerations": [ - { - "key": "328", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "329", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "330", - "hostnames": [ - "331" - ] - } - ], - "priorityClassName": "332", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "333" - ], - "searches": [ - "334" - ], - "options": [ - { - "name": "335", - "value": "336" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "337", - "enableServiceLinks": true - } - } - }, - "status": { - "replicas": -1280563546, - "fullyLabeledReplicas": 163034368, - "readyReplicas": 1631678367, - "availableReplicas": 1298031603, - "observedGeneration": -3092144976843560567, - "conditions": [ - { - "type": ".¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ", - "status": "óƒ畒Üɉ愂,wa纝", - "lastTransitionTime": "2488-07-22T04:14:34Z", - "reason": "338", - "message": "339" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.pb deleted file mode 100644 index 74b024159bb5fd41177ea854c204c11654695aa0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4768 zcmYjV33OCdnyy3u_h$Arc^vjX=;;mZ~V-Osjy7b_?UHML8U8bks(4{#%7-x=#4td;h)n zU+?|@?~sG!M2LguBVMxY`k=7laAD>=)2h>Dy~Vqa{ps)!+Axhl3X9al=?v0XGwS_`b|&GtWCsD#|wVV!oM|%FzojRc8M^SW|A)mj~OL#*X53#^DR@ z{)8BB{p-H{g;Bo2hS5EL0BK6Jg?S97t864Q4W1fnV(T4|UsZl`?Yp1ghuAxaDMZX- zCsr}W=~=sya&eZF9s1gukqHj*PA(hcR5gjIs_4ZxXPAQ&cvE z!OQVtUDCN6j!Rq=%W1mK3HlBm)^O6?^;mxib3!Vo=pYNkQJ69<>H=o;(jPU}e!X@Zjo}Q;?th4R6Gh>J`3r^N7@HVqR9A-g? z{$=1ySH3Y^9PDqEJ#QEX4){+rKt6fN2|pr9iYN+16cwkS-tP(2G}N}8`6cA@tphjr z-ng~@@G#mC2{I*+DJRl51>V%HGZ?ezw3$WTF?FQheIVK_XyHVPB;PCw<>+~sAhLFE zz2{({q&Ik>Y^-v8*k4kZH*q}1*FX4L@K}%kO5rRJA%*iO%HceU3gmHoCi6GQsl>B4 zr!oHuFNFPt=UkxfigEdLps;1GkTO1$!p>x#^bfZ9-e?**GkPM{sA!1wT{&tLHnI`S z6hYK%7FZ~-W=XWZ-|^G_X?Emz95~>LBwO9(S9LpzeiRtsk)+zpl183p%(9b(O(pZJ zStiz!;;+ggtotj*FCjac%>W<7$)eRXF9zO0kStrTjUB!6eQ3Wq%(4<~mQ|-|wprHZ znAS{X%!)JKlxSA?I9RL@)~pCtv<5s=M2l$yoC^hnD6-A0C=RotMw=Clm{sR&SgG=J zOo=vl!YWm;QI2RgMMDZySfk2Y!8;X9S5+%=&`~Yh%9u4sz6QzHAo-dQ4SY>>qI_7T z!75EILMrn+_)s9&W=#ba4bv3f>12WMRE@;jzq$2M$^DQ|mg>&`a{m~5Ek{q&iNsP+ zesv^#!ffy@fKl)eYtf^0SfX-dtEm~yVjvB?Q(>Q^50&yY>w*5SOMeK7vtGUbUOD8X z6+HptJk`(hAdn{xAi^p16lIH)Em=*JCr1NO2oSXg{f3TeFiM=ZDS?ZvFoEz@C-i6sf z#CbrZI3V&W(_c^}Vu}&-RLC_VvNUvrx=dv2Hxr&BWH+%q6GOQQ8&XXDCYtRRz=DGb zgr|x$L9}=NwPoNzC=|A^Jb{Gd2?CuaS}PB~W>)$;%Q8V5X3u_2JJC3fQ z;)rZ}kpYDSf&fINZV>`uCW4dhFj25QMk7cBp7IE!_u)4fNWgV8PiAH@zj`iMH?(rB zeWG>pw9#AdYb(k$N-jAxND6C2asw@MN z-ur&`b375KIqhq>GRIe4x^2a#iJ})JqoXaPUV<$~Bp$XKUG(k9hm#Q@{SvW! z{LS^N5!SMgFZ4v%-?($^hlr^5udn(e+jGCI!W0z}f-IU&(d zU!MihP+%X443EnMf-4IS^K15y1eu0V4u|mJ3@TGrwgOSJr!ILd^VR$vjKDk&FlCRs zb@ZaQVQkPSXkhKWrdp$~VV%21AMc*)t8b6-4tT5WYeqT(1$_%s=54be8=NL0)2*n$ zK_Utddqg4j?uwGz-6c16&xtZY8#B!*zJC2w<>29dDeh6v+223oKi1;u^IzUyfKVAi zH3&7+>O`QbJQ8w>2q5|4t7w6e#*TD-HgIOV(RcKae{YTVqQANM6fH!6nm{!a8Ko#`z#s`>*}O>xUc2mkQd z<#QufUi6pu`npTU4q$H~T}4<2ohz_2a*TZi{??9Q!+B3{4(JL{$)E%=2k#%v?^7#|t3LX&lF|Rychd1YxUEnEe2AKW3xiG#7 zHo>~>;G~|$ZRH@=i)d0aHQ+ec0KtO3OeYBtW?rGTtLz^m>%aQ*v4=N}bS9CR$^2VF zQl^Y0yo(2&Voai%pv!>SR|B*~GANf5@G^{Z^$nmp73<<^U5Bq6eFx3z61YY{_#pvO zJfFQ8FO~B2x%n&St%o}lSZQ9A3(AQE%8A^JfGVx1bUN+oP#t-wxIk1uL6R0dg{Sv3 z7?OF*^}fO32^ENLd#FA!jAYl;vPPpdBvb?gQD5PohcyedL8RA^TIh6Yc|_VEjO{=Na--K-k> zii3rh#=2H5rmcoosjKQgH7g!U8*nsB^<87YY%Og4^p@FvtE21#6csrC*1O>lI^7@s z&)>tSXoHJc5V8SE-fux56gt{?2ZNUzJ5 zhwl2rxWMXZY`ZzlUf5OrLl|yFohkbAlQ0^0?mty|b9&;ND2x$!fblfVfa57%x%0p8 z{*22h=+iU@6RhqxsyYKlhC}`mit-86i5U!?|K(TLdcz)tFang0F!FE;R4Q?bKgW|e zVcQX>?68cLET1^*yLild!MC?Jc<@N5VFSd6QT3tJK>N3Eg$)l&)wTklbY}m`d(cxH zINuYj*&Qf-bJJp@zr$#2&Y5pi6|VHQ=5J=6W~Ocm_O!511TO5}89T>w&^6NK?wjl$ zEqLDD`LJ>G6feSmB>)ki>G7hy_)n!b_U`k2)QTQ8;$bw zvqml%MW;PS`QYy27v$HyEn}sje$K1(NT~ctgnG~txOD>9wRsMYHG50vKI<(A)OGle z)V~zxsqhz8_&Unz;nf^7{KM_B{=IJ+7aN1E-E!1_OdNC%O`MJzeQ@>QiO)!Y7bl$mktl|S?KlZoX<O??0PRPr(t&5aBM zdW$CO0`(R4iQX*#@iXog|E022Pw7OHac-Z{ebU!`!8lRpg;crEkJtJS)VdFQ_xehT hp4*w=zj(wJ8F}jCg8R=~;LaupaGekY&1Q0#{trFn{x|>t diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.yaml deleted file mode 100644 index 9f8c6810a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicaSet.yaml +++ /dev/null @@ -1,716 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -11671145270681448 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "291" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "292" - matchFields: - - key: "293" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "294" - weight: 410611837 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "287" - operator: 胵輓Ɔ - values: - - "288" - matchFields: - - key: "289" - operator: ØœȠƬQg鄠[颐o - values: - - "290" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "309" - topologyKey: "310" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - 4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/F.h-__k_K5._..O_J: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "301" - topologyKey: "302" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "325" - topologyKey: "326" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "317" - topologyKey: "318" - automountServiceAccountToken: true - containers: - - args: - - "218" - command: - - "217" - env: - - name: "225" - value: "226" - valueFrom: - configMapKeyRef: - key: "232" - name: "231" - optional: false - fieldRef: - apiVersion: "227" - fieldPath: "228" - resourceFieldRef: - containerName: "229" - divisor: "43" - resource: "230" - secretKeyRef: - key: "234" - name: "233" - optional: true - envFrom: - - configMapRef: - name: "223" - optional: true - prefix: "222" - secretRef: - name: "224" - optional: true - image: "216" - imagePullPolicy: I\p[ - lifecycle: - postStart: - exec: - command: - - "253" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "254" - port: 963670270 - scheme: ɘȌ脾嚏吐ĠLƐȤ藠3.v - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: '\ ' - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "241" - failureThreshold: 2040455355 - httpGet: - host: "243" - httpHeaders: - - name: "244" - value: "245" - path: "242" - port: -342705708 - scheme: fw[Řż丩ŽoǠŻʘY賃ɪ鐊 - initialDelaySeconds: 364078113 - periodSeconds: 828173251 - successThreshold: -394397948 - tcpSocket: - host: "246" - port: 88483549 - timeoutSeconds: -181693648 - name: "215" - ports: - - containerPort: -1478830017 - hostIP: "221" - hostPort: -1762049522 - name: "220" - protocol: ÷nI粛E煹ǐƲE - readinessProbe: - exec: - command: - - "247" - failureThreshold: -1920661051 - httpGet: - host: "249" - httpHeaders: - - name: "250" - value: "251" - path: "248" - port: 474119379 - scheme: 萭旿@掇lNdǂ>5姣 - initialDelaySeconds: 1505082076 - periodSeconds: 1602745893 - successThreshold: 1599076900 - tcpSocket: - host: "252" - port: 1498833271 - timeoutSeconds: 1447898632 - resources: - limits: - ',铻OŤǢʭ嵔棂p儼Ƿ裚瓶': "806" - requests: - ɩC: "766" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ĨɆâĺɗŹ倗 - drop: - - 晒嶗UÐ_ƮA攤/ɸɎ R§耶FfBl - privileged: true - procMount: Ȱ?$矡ȶ网 - readOnlyRootFilesystem: false - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - stdin: true - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: «丯Ƙ枛牐ɺ皚 - tty: true - volumeDevices: - - devicePath: "240" - name: "239" - volumeMounts: - - mountPath: "236" - mountPropagation: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - name: "235" - subPath: "237" - subPathExpr: "238" - workingDir: "219" - dnsConfig: - nameservers: - - "333" - options: - - name: "335" - value: "336" - searches: - - "334" - enableServiceLinks: true - hostAliases: - - hostnames: - - "331" - ip: "330" - hostIPC: true - hostNetwork: true - hostPID: true - hostname: "285" - imagePullSecrets: - - name: "284" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 嫙&蒒5靇C'ɵK.Q貇 - readOnlyRootFilesystem: false - runAsGroup: 6637292039508172491 - runAsNonRoot: false - runAsUser: -6722299225018603773 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "277" - nodeSelector: - "273": "274" - priority: -852112760 - priorityClassName: "332" - readinessGates: - - conditionType: "" - runtimeClassName: "337" - schedulerName: "327" - securityContext: - fsGroup: -4765779537771254535 - runAsGroup: 5267311692406174869 - runAsNonRoot: false - runAsUser: -5860790522738935260 - seLinuxOptions: - level: "281" - role: "279" - type: "280" - user: "278" - supplementalGroups: - - -4369115231127764890 - sysctls: - - name: "282" - value: "283" - serviceAccount: "276" - serviceAccountName: "275" - shareProcessNamespace: false - subdomain: "286" - terminationGracePeriodSeconds: -549108701661089463 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "328" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "329" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1298031603 - conditions: - - lastTransitionTime: "2488-07-22T04:14:34Z" - message: "339" - reason: "338" - status: óƒ畒Üɉ愂,wa纝 - type: .¸赂ʓ蔋 ǵq砯á缈gȇǙ屏宨殴妓ɡ - fullyLabeledReplicas: 163034368 - observedGeneration: -3092144976843560567 - readyReplicas: 1631678367 - replicas: -1280563546 diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.json deleted file mode 100644 index 46a4b767b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "kind": "ReplicationControllerDummy", - "apiVersion": "extensions/v1beta1" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.pb deleted file mode 100644 index a6df03398ae0652802a142023612e0aa82ad36f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmd0{C}!X?;1Wu$C`rvL&dkp%)-N+mN-aq=6p{)`Ey&4CPAmb6I_Kw=6y@jSq!zi9 O=H^xkF-S2eF#rHrkQ0Oe diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.yaml deleted file mode 100644 index 9089d17ee..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.ReplicationControllerDummy.yaml +++ /dev/null @@ -1,2 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicationControllerDummy diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.json deleted file mode 100644 index 7fc21892b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.after_roundtrip.pb deleted file mode 100644 index f01039856482ddb2f53fc4316575aecf97526dd0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 283 zcmV+$0p$K`ICB6B8wwI-cywiMb7^mGb1!x=Vr6t;F%kt+V_|G%67vBH$N>rgG75&|(W zY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG} zkc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`__2>;5Ct@!`{|Nj9R h83?TIip2l_|Ns915(o+cGBgqbGBp|kGBz3jA^>|1X>5?6(Mk0o0mS!eKrUvFF z7RDB4re+34#+DYh-!)xr?4HwD;KUHHwqt8^>-=+bb~8q?aWR?;FXpdqw{n_pU&BGczdG$$tktZCN^q3+d2J6TP)Btb1eZbKA>_7Ar3A!AZ;nc tAjHk_|5V@FAOC@XQA(0y&AYB6AohPopc*D46CoxeQz<4RGbsio1_0SWYHR=i diff --git a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.yaml b/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.yaml deleted file mode 100644 index 204ccf244..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/extensions.v1beta1.Scale.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Scale -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - replicas: -2052872833 -status: - replicas: -125651156 - selector: - "24": "25" - targetSelector: "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json deleted file mode 100644 index e9b98ea86..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "kind": "ImageReview", - "apiVersion": "imagepolicy.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "containers": [ - { - "image": "24" - } - ], - "annotations": { - "25": "26" - }, - "namespace": "27" - }, - "status": { - "allowed": false, - "reason": "28", - "auditAnnotations": { - "29": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.pb deleted file mode 100644 index 7fbd0b3720474ecd808d0ce1ee3ee2353040a7db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 298 zcmd0{C}!Z&;*!qHO-xTM$j`}4uGGu6DAvo&*Do_n%qhr7G!)|Y1W5*^mSv`v3w>tf zI>E@rXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R?CFvn zsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUEv2ih) z3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(^ zOopaijJiOjWdq|&n7l%Jli?_NLwt>G;<>c rArUSXE+!)rAr2sED#T=DCdFiAE+xRh0AyQ8fkc5WFgB24P+|Z80UKc= diff --git a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml deleted file mode 100644 index 27763f421..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: imagepolicy.k8s.io/v1alpha1 -kind: ImageReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - annotations: - "25": "26" - containers: - - image: "24" - namespace: "27" -status: - allowed: false - auditAnnotations: - "29": "30" - reason: "28" diff --git a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json b/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json deleted file mode 100644 index 4de28135b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "kind": "ImageReview", - "apiVersion": "imagepolicy.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "containers": [ - { - "image": "24" - } - ], - "annotations": { - "25": "26" - }, - "namespace": "27" - }, - "status": { - "allowed": false, - "reason": "28", - "auditAnnotations": { - "29": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb b/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb deleted file mode 100644 index ab012bd02c388d6e91c7a4399f4b629f224e689e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 314 zcmd0{C}!Z&;*!qHO-xTM$j`}4uGGu6DAvo&*Do_n%qhr7G!)|Y1W5*^mSv`v3pF!w z-C*QmG!kMomSQwfVl>rKI@0=barcqcg3X?%=Fxe&p-<;*IlMhl|Kya~XA>JWp6#4|q%9U`nz@z$ z7avf$g%Af98<4gXVh|GHV&P&kG69M(8JP+(8JS5j8JSB7a4-Pb7E&Nlpo@$Rq!^SK E0Jm*o8UO$Q diff --git a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml b/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml deleted file mode 100644 index e41290f48..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: imagepolicy.k8s.io/v1alpha1 -kind: ImageReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - annotations: - "25": "26" - containers: - - image: "24" - namespace: "27" -status: - allowed: false - auditAnnotations: - "29": "30" - reason: "28" diff --git a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json deleted file mode 100644 index a32cc3763..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "kind": "NetworkPolicy", - "apiVersion": "networking.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "podSelector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "ingress": [ - { - "ports": [ - { - "protocol": "ÐƣKʘńw:5塋訩塶\"=y钡n" - } - ], - "from": [ - { - "podSelector": { - "matchLabels": { - "y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk": "h-JM" - }, - "matchExpressions": [ - { - "key": "44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7", - "operator": "In", - "values": [ - "17_.8CnT" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "rSf5_Or.i1_7z.WH-..T": "2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0" - }, - "matchExpressions": [ - { - "key": "83.SD..P.---5.-3", - "operator": "NotIn", - "values": [ - "hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q" - ] - } - ] - }, - "ipBlock": { - "cidr": "42", - "except": [ - "43" - ] - } - } - ] - } - ], - "egress": [ - { - "ports": [ - { - "protocol": "ƯĖ漘Z剚敍0)鈼¬麄p呝T" - } - ], - "to": [ - { - "podSelector": { - "matchLabels": { - "9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm": "2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P" - }, - "matchExpressions": [ - { - "key": "Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8", - "operator": "NotIn", - "values": [ - "q.0-_1-F.h-__k_K5._3" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u": "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - }, - "matchExpressions": [ - { - "key": "5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M", - "operator": "NotIn", - "values": [ - "D.GgT7_7P" - ] - } - ] - }, - "ipBlock": { - "cidr": "56", - "except": [ - "57" - ] - } - } - ] - } - ], - "policyTypes": [ - "h4ɊHȖ|ʐ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb deleted file mode 100644 index b1ddeb28d333659aa287b804c2d38a08b7c1370b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1282 zcmXw1+iz4w81GpW%Oo0e(x=926N#YTw{zyqoQnpPwsfJ;ZDC7kn~=}FbkAP8*X~_? z;HJ=q2nL}Tgf#eoQNoLNc#=XW55^Z06W>g>XsJ@!-p0z=_g8PME#t=WEoXIUs{7SXbE403d`Ak!UFq4LqZ}@5-}~#I<9{4mx^k>M z*fVkS^!F!DUHk3IZDV#TGhEZ~63;NhH$xWBy~0A4=nq-;z;nZ$?(GW?KKWqb-s1gF z%R57s#d|!X8nR?3WT{01^i{`vb@SX}_rl`l^~?9J!r|_f@9zE>53gPLX#M=L*Vli( zwEFQ;-OUv}=J8&3&0y~^=@;F0%9X0Z;qee4q-BGguY(6pRZ1>XN}mK?Qb67hM_U*% zxAHM;V_+U-+Z_)naj=Pyia1F?2Y^}#z?+5HyhZxZULY7WL;H&T;mK+;1py`u>N@_f9t7Qr(rMjT>KgSAH1S z)!zJUrD*;eVt*Q}!>Vm)Ly3c`fPhY_0icm^h&#ehKrRJdQYyXobiD}B)MT5Ql;t~t zmjcLI$ZLLBq@zg%8qc9=@B{^lQ=JGgS@&EbaLd%hIR^>LIaSM>Pi0_q%$#MTQbNvC z%3df1ARE|JV0S?KZDpm`f;lO;orXq>TO52|(a5qQ#Rbpg0OH^U039gSAmN1F$2#>| zE}=J6oHQ>Q>;UVl#?p$$tC+RO?ckBUfH-MN0a2R4n%0}67Mz^+6n8avA_~SKh1tXL zA!^RVM$>~DaVG{y+#F%gdp5>~5hwH;Pzbj9bhK2{?!1v{ceFxOmW2)g?xVDm&n?LrHn>NXrFQE;s~6lL0P=E2q;DWTN@ zD1$D71kF+ePB>FA-xcT+&A?t5tCVY+m}ZPzB_FY=w1E`GFs0)5s4k!rkVHK!#9VD; z&P&jQw(IRky<|_siHb0s0`zr@S>$9PWdfuUl^sWolZ@n$2B&K{4%&Ny8LAh+dm>g} z1+`Qbj9^BmIZykQ4!U{CU{h>+LZ9SVd_lczqNO~~h7x@RxlYxk}` za8qbQ1cOivLK=L)DB;CBJV_yx2j5Igd@&~5v@iY%#sR}5lgat!JKy|nd2haly~g^A zv$bZan$H#k%zN{gErlDF`F!;M>Ue1`n{1nZZDD^H%n+tw_ZxD+P&)@!PH)^;T=}Ll zvUY7D?yWDMdw=ET>JqLm-F8+MC%a$$G%NZn$9JSq+?Af~Im+R}_Psy~ zTHYD5EZ*Z8)sQ7SAxkY7yL78#zPfRKp?h&*UZ~kjE7e*ezbPs`0Hyw zUtan6n4aeD+{U)*cF*i(oAv3NJ?4pCcHLm_FzFZFcFL8i!r{phAf#o3oU4NePE|@S zQ%c_iUQ$5b4@X-VF*oy3Y-3;^W7{1MDRHQYkcv1-KnH+Y2*8_#nY=~%(w-+6G(-D~ z{o#pfG6e#GXfMSYM8Y{RMTZFiqqPhYK#b(jZURO6{X@cB-o##FFWfu-;KqSROZQJT z-%{P>#r2zCcb9({*wxf!zV^zm=6<3udL@b{ZNjZgKE=MI+0K6c;>`1Binc z0Cb>OgM<@ypXk(UxrE-H;)Hq0UiDEZU>L<1H=ha3W(A)*0kOnwczBm zC%LP^6Hzb*Da;;;@1f>&Y$QFX5qDyM#LZ#0&9gB!ggCDM0fk_j&qhl%?amvSc1J5j zWm)I|;C@Ow`P_U5+_~m7O#3#poJ2M#ke*ZN?`0t=%#gJEZ*5{Pvlk!SUb(b(cWI`3 z_KUU8&+#1_XYT&`?Zz*s%H0cJPMBvmvA+#=(qQlTAbb_CLCLM8(=N0Cs&2z^5(U?) zLs6#vW*%(qkrG-hfHLSJNYE@r;Dj>;^Id^H(KPIX(Mq|diD|~jRq`>LN*hQ~3{xs@ zkLUtA0ZG)$Ld?~MXT1cCYrEc#)JyhwoTvyxDL`M3m_be!QYJtuQQ2|S7|BQuX>h8B zW1zh!n5KFGyr*LIRZvT1!7yfYn)7r(>7bjJ4K~TPM|6-UL5jWlEcrY_yEOcYNkrgLr=)IV+-t0(s*wZCDQjJ6m z%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV==ImySV&h^o7h<$X zV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK7%Uizm<&y-m<&z3 z7K)#s}laaZUDv)I%B+n(wB@JX*3W;(t85;=kb1(>8S=~14 bKL{{NF-Y-nad81P85;^Q85>D4C@}y4KV)c~ diff --git a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml deleted file mode 100644 index 411e67894..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: networking.k8s.io/v1beta1 -kind: Ingress -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - backend: - serviceName: "24" - servicePort: "25" - rules: - - host: "28" - http: - paths: - - backend: - serviceName: "30" - servicePort: -213805612 - path: "29" - tls: - - hosts: - - "26" - secretName: "27" -status: - loadBalancer: - ingress: - - hostname: "32" - ip: "31" diff --git a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.json b/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.json deleted file mode 100644 index 56177657c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "kind": "Ingress", - "apiVersion": "networking.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "backend": { - "serviceName": "24", - "servicePort": "25" - }, - "tls": [ - { - "hosts": [ - "26" - ], - "secretName": "27" - } - ], - "rules": [ - { - "host": "28", - "http": { - "paths": [ - { - "path": "29", - "backend": { - "serviceName": "30", - "servicePort": -213805612 - } - } - ] - } - } - ] - }, - "status": { - "loadBalancer": { - "ingress": [ - { - "ip": "31", - "hostname": "32" - } - ] - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.pb b/pseudo/k8s/api/testdata/v1.14.0/networking.k8s.io.v1beta1.Ingress.pb deleted file mode 100644 index 87adf8d10983b9639710063a7fcd2ceb951103e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 349 zcmd0{C}!YN;gZZtEh*10%FfJ7*UPpj*2~P-FEdO^ElD&KV)x8TFG?*g7Fxr^b%T+M z(MX8VSc=g^iP2O`=}7C##ob3%7kWLL*Oh4TVqtH>krgLr=)IV+-t0(s*wZCDQjJ6m z%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV==ImySV&h^o7h<$X zV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK7%Uizm<&y-m<&z3 z7;S+{&4d(RPUw0%rR(M5nMdd8hCZFMTufF=1?QXkjrD3{rJ&bZKp6Lu_Gla}v=3 z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc1PTH& IG#UUR0J+p#AOHXW diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml deleted file mode 100644 index 1cc8297a9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: node.k8s.io/v1alpha1 -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - runtimeHandler: "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.json b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.json deleted file mode 100644 index b8cebe2e2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "runtimeHandler": "24" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.pb b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.pb deleted file mode 100644 index dbfdf1022c96680ec770f7666a3e3b06b03e4e5e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 274 zcmV+t0qy>4ICB6BBnlL6Z)9aIYdCW*X>TufF=1?QXkjrD3{rJ&bZKp6Lu_Gla}wbJ z3fKV(0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM> YI1&g71_}Z(IT8R81PTH&G#UUR0GNMVmjD0& diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.yaml b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.yaml deleted file mode 100644 index c2fefa7f9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1alpha1.RuntimeClass.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: node.k8s.io/v1alpha1 -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - runtimeHandler: "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json deleted file mode 100644 index a9f39f3b4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "handler": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.pb deleted file mode 100644 index 18ce5ccb02e6d3093c6b91942e01c83c5fdb408d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 255 zcmVTufF=AzOVKEX6Qgv>0X>DagY+-YA63+n& z$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zEeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_+GBg?h FA^@4lTBHB~ diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml deleted file mode 100644 index deee3dacf..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: node.k8s.io/v1beta1 -handler: "24" -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.json b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.json deleted file mode 100644 index 452bcf2db..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "handler": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.pb b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.pb deleted file mode 100644 index 860afed90adf107896cf76966928ed4d9deb24d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 271 zcmV+q0r387ICB6BBMK94Z)9aIYdCW*X>TufF=AzOVKEX6Qgv>0X>DagY+-YA65jy| z*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zJqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W V5(o+g3IZ`X5&#kcGBg?hA^>isTpIuY diff --git a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.yaml b/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.yaml deleted file mode 100644 index f67761158..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/node.k8s.io.v1beta1.RuntimeClass.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: node.k8s.io/v1beta1 -handler: "24" -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.json deleted file mode 100644 index ebae003f2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "kind": "Eviction", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "deleteOptions": { - "gracePeriodSeconds": -8496244716696586452, - "preconditions": { - "uid": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "resourceVersion": "24" - }, - "orphanDependents": false, - "propagationPolicy": "牗洝尿彀亞螩B峅x4%a鯿rŎ", - "dryRun": [ - "25" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.pb deleted file mode 100644 index 392909b5f53fb49a0259b10c893863b64f2df2eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 334 zcmV-U0kQsTICB6B8VU|@Z)|B}c`tS`Vr6t;F%k$xc4=dDX>V>4rveJd0SW;!5&<(B z0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvlGBq$a zG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZ zAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-01{dVtnP}$pU%;XiUATO z3LiEv%9U2dnkdA-$cpEbp6IZU>7t9rg;U3&#*b4ZD-r@SG#CIPAm@pf=CqyVu)pQK gfaJQK=$@%U<+Fu&G$mo_ufKA|jw%8&H5vdS0D_c;1^@s6 diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.yaml deleted file mode 100644 index c0c23e535..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: policy/v1beta1 -deleteOptions: - dryRun: - - "25" - gracePeriodSeconds: -8496244716696586452 - orphanDependents: false - preconditions: - resourceVersion: "24" - uid: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - propagationPolicy: 牗洝尿彀亞螩B峅x4%a鯿rŎ -kind: Eviction -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.json b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.json deleted file mode 100644 index f91e9d94d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "kind": "Eviction", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "deleteOptions": { - "gracePeriodSeconds": -8496244716696586452, - "preconditions": { - "uid": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "resourceVersion": "24" - }, - "orphanDependents": false, - "propagationPolicy": "牗洝尿彀亞螩B峅x4%a鯿rŎ", - "dryRun": [ - "25" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.pb b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.Eviction.pb deleted file mode 100644 index c04f98b72421647ce4fe17919ce9a00c01ac0871..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 350 zcmV-k0iphDICB6B8VU|@Z)|B}c`tS`Vr6t;F%k$xc4=dDX>V>4w*m^-0SW;!5&<(B z0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvlGBq$a zG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZ zAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r#5DE?o0x>ue2nq%Y0x>xf z01{dVtnP}$pU%;XiUATO3LiEv%9U2dnkdA-$cpEbp6IZU>7t9rg;U3&#*b4ZD-r@S wG#CIPAm@pf=CqyVu)pQKfaJQK=$@%U<+Fu&G$mo_ufKA|jw%8&H5vdS0HryHeED*I&&f=#)GsqkN-aq=6cP@|PjSgCE-Ec3$;{7lDosgGEfHGJ%yoj1 zi_u7k(O8PnM2XQ4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRkt3_^<- zh2}GI*>Raz=9yQfn46du8t8(7k*<-6p|P$>PN}Yiu33?ZiGfLqDNrWeBH2hc+fv`J zLeE`@&A?Z$QZHR7mP^gdLN7ikuv||!#oa7fSI^{N diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml deleted file mode 100644 index 8f4b018ea..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: policy/v1beta1 -kind: PodDisruptionBudget -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g -status: - currentHealthy: -1628457490 - desiredHealthy: 1184528004 - disruptedPods: - "30": "2331-08-21T12:12:02Z" - disruptionsAllowed: 925313537 - expectedPods: -144625578 - observedGeneration: -4178463431261421654 diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.json b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.json deleted file mode 100644 index e5f9358b2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "PodDisruptionBudget", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - } - }, - "status": { - "observedGeneration": -4178463431261421654, - "disruptedPods": { - "30": "2331-08-21T12:12:02Z" - }, - "disruptionsAllowed": 925313537, - "currentHealthy": -1628457490, - "desiredHealthy": 1184528004, - "expectedPods": -144625578 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.pb b/pseudo/k8s/api/testdata/v1.14.0/policy.v1beta1.PodDisruptionBudget.pb deleted file mode 100644 index 4a9041dba8f60edac5e7d2f911cf20897846ceb8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmd0{C}!YN<>D*I&&f=#)GsqkN-aq=6cP@|PjSgCE-Ec3$;{7lDosgGEfLz!%yom2 zi_u7k(O8PnM2XQ4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hAR zwvQiwrl5u?z2MlL%p6U#jF$`o@G(?SDXFfh_JGBGsPHOVQ}wa_&yGBGhQ zNihY=q+28#>1JE%`&H<<3$Ypa>Q(Bc3&nD&nOW$?Ck2-4>87}wCF|;$>FUN;=;`Vj zl;=ie8^!}Ajf>-TorIV?^Q81cijq@wjr4Tm<6Yx}%i`mW%)BGwgW~mc_54aQ^x}1O zgX2wH9OHFO;fIcub5aQsNwE6ZyEdd6J#w&AnGAq1$ fz3=rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zEeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`|t0tf*T z2FJL@qBbuY5mv>TD8#?WiszJ`=&+FKqKhI0Q^%pkk187^E5f}<=ZTl*w4LR!zvaDv z(gcBuT}F$(9lo2-vW;(%|vonOzX1 z*{I9^y#2S90b()=7(c_f#FNIl>8*>zj^%`h<%hd7#)iYJQ4$si=7zZZ?~k{-fB_KT z?}3-ghKjI;0cs!$2I#1l+qn*XRC@m5c2$_tWI+ z%6_hrO^v*{$B!raE~fgX7~WMTjfHEdERwM>M#^L`8(ErVOpJk|E$olqE$a@~pu<*- zS%V$3t!=~K2BV-{1%Vj>w(2wl7KD?Ahq(|ZDJ@RYI?eTFDe8&0zi1FR(QVV?Bx%4{ zP>++wW}Gx};F5we=v=y+lRR8{v|sQS+?57rVsn*+3C~OUts`Ha_wmjOrOm7-phm%2 zq=qWREeJ#VxEdhUN>~gqh1$$AVIZGhigQViKNadu2VA;Sr7I(%TYon1!t!EC^0iN% z8InRv(xQDQ;!pYC7fYYo44^1meYi1kaCoc;5FNW~k-sPL3Mc`0vLJ>Ch*L&{Qzk7= zF*=+wmy~m`nA$6xVM1~dyd%w#sOsziY2gjAVUe30f5tFKsnS0pjn0LNR2ad-(u<1+%|Rscea+1NnmslOCYnfEn_3EGOp}Od(rl7V(i-s) zr78)cLcj{4BK05?@uH~o=vLc{H&31unu~u!_xijKFHc$c3cW(lH&$|a%(a^Ly+)~% zYnHq!mW7WcZ@SI2Ggm7uzgcX|d6lBJdx9PiO1MT0otP0~MI*uHWTzkO)^CirdpU9R z{>9zk$z`cxM2pHgG;J(~z*V zlefHPvZ}kYCQk!Y8PqH^q?D$E(sXOdxb$q6yqz@xW+X1&lql2gyz3|MPAe?Lgsw!C EV~OsTDF6Tf diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml deleted file mode 100644 index c514d0372..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml +++ /dev/null @@ -1,50 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: 1d3-7-fP81.-.9Vdx.TB_M-H5 - operator: NotIn - values: - - Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H - matchLabels: - An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q: 7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.json deleted file mode 100644 index 2f02c3ed9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.ClusterRole.pb deleted file mode 100644 index 13669a15a56b58fc25fc420f714943f8be510dbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 499 zcmWNLO=}ZT7=?33ta61Smu?(fXci)o_igTc-dVV46ihUcv^KRA$~8?Q#-y1flcY7` zB1%;fM1_DALPhFA5OJfZWa(7x#+@LzPG~m%24{8PIS+?Z5?+X&qbKWY*&Jq@jazQL z*v>YJZUsxi!=gLe;_TRka?@)R>I-hUz=ntDA3}-7h^`VNOw35w-+`_pPf;XE1=q^@wI zt#GqT&IhW+PEVe7NB!<(_vPLWWJZIJ-#%w&_xtz8&pT(wUtjnSSA#V>a-2>Fx?o4? zRFDn}u^Fmp22(UsRWvKCXm&)=g!+R}pU@n2<|+Wtl3;=q$>lV-;2`ocNHgH(hSN$) zz!cs=339;{GM>yJ3Y7Egj1BoqRu0etkedh)-B@2KaT%1l7uc~Hu1lz~ReFNwb+F-P zT5tq(mhzjp7?UZ8o9ysaw~?r*&b*Ml{>j4VL0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1& zm@ep;uQtSsR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQ zg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^Z zF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B w#D-lO0x>r-01^-i0x~ob0x~rk0x~ut0x~xm3ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiur zn6cjMNO#!NB|B1$L=4R=%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7 z`RC^BW{hIvVl)?Gv`Av-Vzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF z4GkD97>k$;O{$m-O}iLvflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zR zbNZ3CSfFX4ICB6BBnljIVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp5!1X6EoWfI{5 z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc6bb?| YG!gcg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM> oI1&g71_}Z(IT8R86bb?|G!grgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143 zF*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8Uisl pG5`_~3IZ}T5&|+c8UivlA_6iu8Vm{oGB^?fGC3LoGcXzeA^?_>VP^mU diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml deleted file mode 100644 index 12f27d0b0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.json deleted file mode 100644 index 162720f28..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiGroup": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.pb deleted file mode 100644 index 6723a1c7865bfa31e56022de666086c67ae88da7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmd0{C}!Z&=8`E&N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEbS44$99-b;`_3$;?X^ z`pw97gOQ8TNQlu`iqS-g(Ns(6NbAeR-A7gzdOe%hm1yx|VQ<2b6(?uty_m7y>_~Um z(}HH& z<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1`U|v}3=It!EEtQJ z3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+O>ES7wsZQCwpgHP z=2`+=d_d(ELL6LdK-yA>K}dj$$;d>A$;ecS$;eEJ$;e!a2Pk3z6tR?IGB%K6P+|Z8 D%%fu7 diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml deleted file mode 100644 index b5add8512..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json deleted file mode 100644 index 4d503ca19..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.pb deleted file mode 100644 index 2a7f395825e5c294ba931a93094edd6692dba77b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 489 zcmWNL&ubGw7>0LNR2ad-(u+Ci9z+7)*Uap%*<+(%qKTxnsijcHZBl7WnoY7vS|c8! zR3$-F2v{Lhq#lGKUKEuc-D-RB=Bej|=HlPrUZ3~jbG0$&S5~#XQ}mEf!Zl*Vh^Z4Ru7_Kb-F~=NzcJqF zdE(^#i@V{+qisCd{%nW+h0%xat9**tu5EHF;h4e@wq+-{;fmvbkN@>2mbua7CMyB)`r{8NWd&UKnZfr5;B#^ zBMOwW+GPid*X;tJ4InoWAhEH&RAw?7jUcjNWi~s-t diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml deleted file mode 100644 index 39ccf543a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml +++ /dev/null @@ -1,50 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: 1d3-7-fP81.-.9Vdx.TB_M-H5 - operator: NotIn - values: - - Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H - matchLabels: - An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q: 7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json deleted file mode 100644 index 7e83822b2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb deleted file mode 100644 index 4f0ff51a0eec5e2218ad1845f0f1435529444f3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 505 zcmWNL&ubGw9L0B5tTIB8p%-(~J%|Lp)6D*yIe2IkOf-?SHnkMWxJ@FBNwY~dNo&MI zl&U0%3IQvGiqwN3;zd!((XHA`Z-U@Cp}F`sxTgo7_u=tM+*dHeT7AvUQMcJx_v*#A z+bDV!TH-z}db2I&maFS7Bd0Evn|`BEU+~HWGCYR=AdGZ^j0iF{WJR@Ld$QLH-q)^< zce^e>dh_&F@a|xT9_@UzgWl5U?bm`n!)#%jx)pOwZgAVOW4a;u-+vE&cY1?PHLhen zJo)@^`}N^qh*qXBatPvUComF3WwASFvC8y_$_#D#a(guF|9X7S-|zl-R*kBR#T1U} zDl^+Ev%2VFsM_S*+fh|_bXDh(p9lvC=dhTo060K&8E?8V9QdvqlmGk7h1Nkd<4yX+vwcg0x>fp4n%t8yOhX>dvnE# z#*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KO zk%1`YxtGL-T^a&0H!=Vc5DEe^G!g zkrgLr=)IV+-t0(s*wZCDQjJ6m%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HT zU~R|N=GOV==ImySV&h^o7h<$XV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na z$NCGjm<$aK7%Uizm<&y-m<&z37;S+{&4d(RPUw0%rR(M5nMdd8hCZFMi=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r- e01^}m0x~oj0x~rs0x~u#0x~x;0x~!n03rZEJYV+! diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml deleted file mode 100644 index a97ed522f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.json deleted file mode 100644 index d0d79f1e4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.pb deleted file mode 100644 index 81301ec3ff2afc699797ed3ff3d5aefa03ea0449..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 296 zcmV+@0oVR(ICB6BDheWUVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6uY;b5{F%kq) zZ){}}@c|0h0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r# u5DE?o0x>ue2nq%Y0x>xf01^}m0x~oj0x~rs0x~u#0x~x;0x~!n03rZir(tdY diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml deleted file mode 100644 index 5799c9346..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json deleted file mode 100644 index 33ed28e7f..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiVersion": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.pb deleted file mode 100644 index f2f8ce471d6a5a6c08c5b5d8204ea3678b136e84..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 297 zcmV+^0oML&ICB6BF$yAbVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6uY;b5{F%k<> zZ){~kX>Md`Zf6qf0Sd?g3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)b zF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=- zpU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSv zFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-| vhFuy0F*h;*5)cXkGBgqbGBp|kGBzRtGB+9w3IZ}X5&|+g8Uiyg8UP{yDDPvc diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml deleted file mode 100644 index 1a289ba8a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiVersion: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json deleted file mode 100644 index 5c047d716..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiVersion": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb deleted file mode 100644 index 0ddd87f29daffe690fcdfd128dfc1061110fdb39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 313 zcmd0{C}!X?4rX?v*qyiME#RfYM)JP)OfaY z`jNI+plRk>0$hARwvQiwrFfQ!kg;+$bttI@NaL&XwzgX5(*gw&yuKoC*&ls?phI-YcNjZr$~p<*wH% z`!%fa0L%VdhviExk16M_RNFzT)LitdC1w809}JJ4J_ru`KVQ`2GGm&=NmFKK zS7uh9K&0Br?DS=SJnT>R-W={iZan(@9ITK)B;K~hwBI7Q(K@xAbqe4uo HQcU^}1520y diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml deleted file mode 100644 index 8c64e4839..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml +++ /dev/null @@ -1,50 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: 1d3-7-fP81.-.9Vdx.TB_M-H5 - operator: NotIn - values: - - Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H - matchLabels: - An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q: 7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json deleted file mode 100644 index 9c880ee15..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb deleted file mode 100644 index edbfa669d574ab63a67da31472279f4d88b657ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 504 zcmWNL&ubGw9L0B5tTIB8p%?dLa}Wu9r#t&|=HQ`GFwsQP+SF1gW12*aNwY~dNo&MI zl&U0%3IQvGiqwN3;zd!((XHA`Z-U@Cp}F`sxTgo7_u=tM+*h!UXY1?P9L+Wxx4n9? zooy7o3N3M;7QML^TQ4-SjGVeyZu*TvebFly$nY5cgD^4(GBspHkR6Q#+mpRs@V<6s zyxYz4qc=})2Ja4b=+VwcC+IDY-hM3@Gt3c=W!SoFag#f?qZ_8+fB!xB-RTWF)tHk0 z@Z|Hu?bnBcAzGcn$R&ucpTI~EmFaiRVwD-1%FM|0rS@pp|MmEuzu*1wtQu7r(-n^D zDzn-uv%Ba*s5)eJ^1M6hcPD$V_IDvO8hrZxB|CS}zdwG_IY0jPGI+EWuDQ|EcskTM zIfWQI~sWkP9gWNB_^66*m9$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3r zk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxr zfhgv=m&Ar$8UislG5`_~3IZ}T5&|+c8UivlA_6iu8Vm{oGB^?fGC3LoGcXzeA^-!0 BW-b5# diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml deleted file mode 100644 index efce3c98d..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json deleted file mode 100644 index 39694cb12..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "ClusterRoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiGroup": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb deleted file mode 100644 index 6c626d52f05ddf2c401701167ee7b7d5b61efa11..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 319 zcmd0{C}!X?=Ta<6N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEdO^ElD&K5^~NdEiOqd z3d+w(b;`_3$;?X^`pw97gOQ8TNQlu`iqS-g(Ns(6NbAeR-A7gzdOe%hm1yx|VQ<2b z6(?uty_m7y>_~Um(}HH&<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1 z`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+ zO>ES7wsZQCwpgHP=2`+=d_d(ELL6LdK-yA>K}dj$$;d>A$;ecS$;eEJ$;e!a2Pk3z P6tR?IGB%K6P+|Z8h6ZP) diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml deleted file mode 100644 index 0fa91de25..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json deleted file mode 100644 index 8500b3396..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.pb deleted file mode 100644 index 049d4ee401b395243c290363c6ef3f0fdae272a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 279 zcmV+y0qFi~ICB6BDGDKSVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6vWprUN5(H9j zY-JMR0Sd?g3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio z<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM z0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|l zdIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;* d5)=voGBgqbGBp|kGBzRtGB+v$GB_FlA^^-$UuysW diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml deleted file mode 100644 index f8f0d2372..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.json b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.json deleted file mode 100644 index 65b57664a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.pb b/pseudo/k8s/api/testdata/v1.14.0/rbac.authorization.k8s.io.v1beta1.Role.pb deleted file mode 100644 index 8410f419b49c44080d6d959f17dad3eba1e9420d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 295 zcmV+?0oeX)ICB6BDGDKSVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6vWprUN5(H9j zY-JMh0Sedw3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio z<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM z0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|l zdIB*uiUBocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@ t3JwYaF*p(k3I+-SF*ycg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z# z05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL- uT^a&0H!=Vc5DEe^G!gkrgLr=)IV+ z-t0(s*wZCDQjJ6m%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV= z=ImySV&h^o7h<$XV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK z7%Uizm<&y-m<&z37;S+{&4d(RPUw0%rR(M5nMdd8hCZFM7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY} zG88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr> zIARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*u ziUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5dX@K Ut@!`{|Nj9P03rf1G#UUR0P!+p7XSbN diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml deleted file mode 100644 index 999afba88..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: scheduling.k8s.io/v1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.json b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.json deleted file mode 100644 index e24a81a4c..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "value": -2052872833, - "description": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.pb b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1.PriorityClass.pb deleted file mode 100644 index 45397f21fa4575bb7154bda84b289379cc594717..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 286 zcmV+(0pb2@ICB6BB?=UCV`yb$b!=&FXD(|vb1rFbFLp5!4N!7vZ*pmLc|&Yrb8`~x z0Sedw3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY} zG88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr> zIARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*u ziUBocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYa kF*p(k3I+-SF*ya%pdJX>@r* zY+-YA65Ig_$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143 zF*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8Uisl aG5`?&%8sr0|NsC00T=)x0x~oj03rZVPG(vF diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml deleted file mode 100644 index c24eef0ed..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: scheduling.k8s.io/v1alpha1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.json b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.json deleted file mode 100644 index 81f7b5dca..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "value": -2052872833, - "description": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb deleted file mode 100644 index 34143bcf1d41a8bd024294dbdef052ea1d6d7647..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 292 zcmV+<0o(p-ICB6BD+(HOV`yb$b!=&FXD(|vb1rFbFLp6uY;b5{F%k_>a%pdJX>@r* zY+-YA66^sA*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143 zF*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8Uisl qDi8_|3IZ`W5(o+g3IZ`X5&#hY%8sr0|NsC00T=)x0x~oj03rZ#hG)?L diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml deleted file mode 100644 index 4c21542dc..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: scheduling.k8s.io/v1alpha1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json deleted file mode 100644 index 4c43d0983..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "value": -2052872833, - "description": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.pb deleted file mode 100644 index e39c6b97868dc656b9829428e76c4e419f0cbd86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 275 zcmV+u0qp*3ICB6BDhe5MV`yb$b!=&FXD(|vb1rFbFLp6vWprUN5)DvtX>W3Aba_K; zVRLg5+yM&60SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r- Z01*Gmj;;9r|Ns917yu#yGBg?hA^_mKW$pj~ diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml deleted file mode 100644 index 15436bbc5..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: scheduling.k8s.io/v1beta1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.json b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.json deleted file mode 100644 index 7f6ab9f81..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "value": -2052872833, - "description": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.pb b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.pb deleted file mode 100644 index c47bbfec79e209232d4fe79ef17d19ce784c2528..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 291 zcmV+;0o?v;ICB6BDhe5MV`yb$b!=&FXD(|vb1rFbFLp6vWprUN5)DvtX>W3Aba_K; zVRLg5>;Vec0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r# p5DE?o0x>ue2nq%Y0x>xf01*Gmj;;9r|Ns917yu#yGBg?hA^`d`XJr5Y diff --git a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml b/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml deleted file mode 100644 index f04dd63f4..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: scheduling.k8s.io/v1beta1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json deleted file mode 100644 index 66eb88b19..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "kind": "PodPreset", - "apiVersion": "settings.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "env": [ - { - "name": "30", - "value": "31", - "valueFrom": { - "fieldRef": { - "apiVersion": "32", - "fieldPath": "33" - }, - "resourceFieldRef": { - "containerName": "34", - "resource": "35", - "divisor": "904" - }, - "configMapKeyRef": { - "name": "36", - "key": "37", - "optional": true - }, - "secretKeyRef": { - "name": "38", - "key": "39", - "optional": true - } - } - } - ], - "envFrom": [ - { - "prefix": "40", - "configMapRef": { - "name": "41", - "optional": false - }, - "secretRef": { - "name": "42", - "optional": false - } - } - ], - "volumes": [ - { - "name": "43", - "hostPath": { - "path": "44", - "type": "訩塶\"=y钡n)İ笓珣筩Ɛ" - }, - "emptyDir": { - "medium": "_痸荎僋bŭ", - "sizeLimit": "837" - }, - "gcePersistentDisk": { - "pdName": "45", - "fsType": "46", - "partition": -656741678 - }, - "awsElasticBlockStore": { - "volumeID": "47", - "fsType": "48", - "partition": 459991461, - "readOnly": true - }, - "gitRepo": { - "repository": "49", - "revision": "50", - "directory": "51" - }, - "secret": { - "secretName": "52", - "items": [ - { - "key": "53", - "path": "54", - "mode": 614353626 - } - ], - "defaultMode": -649405296, - "optional": false - }, - "nfs": { - "server": "55", - "path": "56", - "readOnly": true - }, - "iscsi": { - "targetPortal": "57", - "iqn": "58", - "lun": 578888856, - "iscsiInterface": "59", - "fsType": "60", - "readOnly": true, - "portals": [ - "61" - ], - "secretRef": { - "name": "62" - }, - "initiatorName": "63" - }, - "glusterfs": { - "endpoints": "64", - "path": "65" - }, - "persistentVolumeClaim": { - "claimName": "66" - }, - "rbd": { - "monitors": [ - "67" - ], - "image": "68", - "fsType": "69", - "pool": "70", - "user": "71", - "keyring": "72", - "secretRef": { - "name": "73" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "74", - "fsType": "75", - "secretRef": { - "name": "76" - }, - "readOnly": true, - "options": { - "77": "78" - } - }, - "cinder": { - "volumeID": "79", - "fsType": "80", - "secretRef": { - "name": "81" - } - }, - "cephfs": { - "monitors": [ - "82" - ], - "path": "83", - "user": "84", - "secretFile": "85", - "secretRef": { - "name": "86" - } - }, - "flocker": { - "datasetName": "87", - "datasetUUID": "88" - }, - "downwardAPI": { - "items": [ - { - "path": "89", - "fieldRef": { - "apiVersion": "90", - "fieldPath": "91" - }, - "resourceFieldRef": { - "containerName": "92", - "resource": "93", - "divisor": "458" - }, - "mode": -836939996 - } - ], - "defaultMode": -675641027 - }, - "fc": { - "targetWWNs": [ - "94" - ], - "lun": 599310027, - "fsType": "95", - "wwids": [ - "96" - ] - }, - "azureFile": { - "secretName": "97", - "shareName": "98" - }, - "configMap": { - "name": "99", - "items": [ - { - "key": "100", - "path": "101", - "mode": 587975894 - } - ], - "defaultMode": -1697933829, - "optional": false - }, - "vsphereVolume": { - "volumePath": "102", - "fsType": "103", - "storagePolicyName": "104", - "storagePolicyID": "105" - }, - "quobyte": { - "registry": "106", - "volume": "107", - "readOnly": true, - "user": "108", - "group": "109", - "tenant": "110" - }, - "azureDisk": { - "diskName": "111", - "diskURI": "112", - "cachingMode": "Mȗ礼2ħ籦ö嗏ʑ\u003e季Cʖ畬x骀Š", - "fsType": "113", - "readOnly": true, - "kind": "湙騘" - }, - "photonPersistentDisk": { - "pdID": "114", - "fsType": "115" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "116", - "items": [ - { - "key": "117", - "path": "118", - "mode": 663386308 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "119", - "fieldRef": { - "apiVersion": "120", - "fieldPath": "121" - }, - "resourceFieldRef": { - "containerName": "122", - "resource": "123", - "divisor": "354" - }, - "mode": -1545709933 - } - ] - }, - "configMap": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1562726486 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "127", - "expirationSeconds": 6413320236483872038, - "path": "128" - } - } - ], - "defaultMode": 411507758 - }, - "portworxVolume": { - "volumeID": "129", - "fsType": "130" - }, - "scaleIO": { - "gateway": "131", - "system": "132", - "secretRef": { - "name": "133" - }, - "sslEnabled": true, - "protectionDomain": "134", - "storagePool": "135", - "storageMode": "136", - "volumeName": "137", - "fsType": "138" - }, - "storageos": { - "volumeName": "139", - "volumeNamespace": "140", - "fsType": "141", - "secretRef": { - "name": "142" - } - }, - "csi": { - "driver": "143", - "readOnly": false, - "fsType": "144", - "volumeAttributes": { - "145": "146" - }, - "nodePublishSecretRef": { - "name": "147" - } - } - } - ], - "volumeMounts": [ - { - "name": "148", - "mountPath": "149", - "subPath": "150", - "mountPropagation": "ȥ啕禗Ǐ2啗塧", - "subPathExpr": "151" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.pb deleted file mode 100644 index 0eff813943c4efe6b3752b58ebf51a2f3067f4bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1444 zcmXw2Yit!o6y6!M!UXZM0kc_tcv*vio9uSyxwB0qP%%Udq<|W1Le{=gpje?$5_O|2(wk#X#&Q|I1o`Y}X`fqdwi>g=&Cc{W*u9Z|FL&<_ZA`-rX@V(pG3DNjCA;#M+eY4h zyLmW!y>)X2QyN+tHDM}tVJfr82Ulg!Egs6|+p@*p1`iTfX*HlMtb(m0+pYHOy~_ zOIPd&mf9uZ@?d9BZ?7fKDIFx$E4K%J?NU|a2g>)89f9wM+uy8gpa~dxbK;lV_@zd- z^p&QXTAu}elDwF#-j*axy}Tw_l>~mUV(Ypf@%`0_Sh6_rWdirFWcFf$d1zx!-H1#D zoq^8nr$7^+N%wIwB@Tr2bE_)hjdaqoj2ZX!ycA#2CFbcWmwTg)+%UDu{BmT zR(u)6DPTuQ$65s)DwVP-;Tb82SK7rY_HYzta6}o7SQ$h{d=aX4VTY(lx&~2DFz_8g zOr$qJGZB=oL&x&Ks%aCDs$mwIyI2bkYnd^)3awobr6Ee|y(l73wvK^&9K#S}>cZe+ z2#dKHoRB)**Zup0zb80LT|ILD>SXU(GzbpnxKEf`JW!lQ%SRFyoSq!;j?N}e8 zd1j(fAnlp%XiQ4V=II@V`NP0=dA%jGen6ga<;NMRN?S3~ZhZY&ruX zW>er>eU27_l~S<6=X-YfNJpXX3d@}?e0J*E#e7HW=;4L=!QK}}j}_X_?I@nzJ^V2w zpnN`JC1XR!i~XHnL#coWlR$ohro(~7aNxk;C<@@nO>)i*50rCY8#ci}$TASB97MDX zgs!k|qQi(BKx7Uv&hW)e$22mzwUhhh%oUtQHYKG7jcs!=GjuTO&NRAdolOwVrAQwg zeAxZx1UGJaA|Dg>Y~v=4n{v+nc>ma>9Uifvjzy_c*^%Fho#%GH4*W5lI)AAvhwdN; zjNCLOLcj%uA({FFyN8}JJBPmpoA69U@I^qVNslPAz(9J^AqMVbn3*|pGT+`_IMwlO RE6cZc季Cʖ畬x骀Š - diskName: "111" - diskURI: "112" - fsType: "113" - kind: 湙騘 - readOnly: true - azureFile: - secretName: "97" - shareName: "98" - cephfs: - monitors: - - "82" - path: "83" - secretFile: "85" - secretRef: - name: "86" - user: "84" - cinder: - fsType: "80" - secretRef: - name: "81" - volumeID: "79" - configMap: - defaultMode: -1697933829 - items: - - key: "100" - mode: 587975894 - path: "101" - name: "99" - optional: false - csi: - driver: "143" - fsType: "144" - nodePublishSecretRef: - name: "147" - readOnly: false - volumeAttributes: - "145": "146" - downwardAPI: - defaultMode: -675641027 - items: - - fieldRef: - apiVersion: "90" - fieldPath: "91" - mode: -836939996 - path: "89" - resourceFieldRef: - containerName: "92" - divisor: "458" - resource: "93" - emptyDir: - medium: _痸荎僋bŭ - sizeLimit: "837" - fc: - fsType: "95" - lun: 599310027 - targetWWNs: - - "94" - wwids: - - "96" - flexVolume: - driver: "74" - fsType: "75" - options: - "77": "78" - readOnly: true - secretRef: - name: "76" - flocker: - datasetName: "87" - datasetUUID: "88" - gcePersistentDisk: - fsType: "46" - partition: -656741678 - pdName: "45" - gitRepo: - directory: "51" - repository: "49" - revision: "50" - glusterfs: - endpoints: "64" - path: "65" - hostPath: - path: "44" - type: 訩塶"=y钡n)İ笓珣筩Ɛ - iscsi: - fsType: "60" - initiatorName: "63" - iqn: "58" - iscsiInterface: "59" - lun: 578888856 - portals: - - "61" - readOnly: true - secretRef: - name: "62" - targetPortal: "57" - name: "43" - nfs: - path: "56" - readOnly: true - server: "55" - persistentVolumeClaim: - claimName: "66" - photonPersistentDisk: - fsType: "115" - pdID: "114" - portworxVolume: - fsType: "130" - volumeID: "129" - projected: - defaultMode: 411507758 - sources: - - configMap: - items: - - key: "125" - mode: -1562726486 - path: "126" - name: "124" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "120" - fieldPath: "121" - mode: -1545709933 - path: "119" - resourceFieldRef: - containerName: "122" - divisor: "354" - resource: "123" - secret: - items: - - key: "117" - mode: 663386308 - path: "118" - name: "116" - optional: true - serviceAccountToken: - audience: "127" - expirationSeconds: 6413320236483872038 - path: "128" - quobyte: - group: "109" - readOnly: true - registry: "106" - tenant: "110" - user: "108" - volume: "107" - rbd: - fsType: "69" - image: "68" - keyring: "72" - monitors: - - "67" - pool: "70" - readOnly: true - secretRef: - name: "73" - user: "71" - scaleIO: - fsType: "138" - gateway: "131" - protectionDomain: "134" - secretRef: - name: "133" - sslEnabled: true - storageMode: "136" - storagePool: "135" - system: "132" - volumeName: "137" - secret: - defaultMode: -649405296 - items: - - key: "53" - mode: 614353626 - path: "54" - optional: false - secretName: "52" - storageos: - fsType: "141" - secretRef: - name: "142" - volumeName: "139" - volumeNamespace: "140" - vsphereVolume: - fsType: "103" - storagePolicyID: "105" - storagePolicyName: "104" - volumePath: "102" diff --git a/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.json b/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.json deleted file mode 100644 index 2f5769484..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "kind": "PodPreset", - "apiVersion": "settings.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "env": [ - { - "name": "30", - "value": "31", - "valueFrom": { - "fieldRef": { - "apiVersion": "32", - "fieldPath": "33" - }, - "resourceFieldRef": { - "containerName": "34", - "resource": "35", - "divisor": "904" - }, - "configMapKeyRef": { - "name": "36", - "key": "37", - "optional": true - }, - "secretKeyRef": { - "name": "38", - "key": "39", - "optional": true - } - } - } - ], - "envFrom": [ - { - "prefix": "40", - "configMapRef": { - "name": "41", - "optional": false - }, - "secretRef": { - "name": "42", - "optional": false - } - } - ], - "volumes": [ - { - "name": "43", - "hostPath": { - "path": "44", - "type": "訩塶\"=y钡n)İ笓珣筩Ɛ" - }, - "emptyDir": { - "medium": "_痸荎僋bŭ", - "sizeLimit": "837" - }, - "gcePersistentDisk": { - "pdName": "45", - "fsType": "46", - "partition": -656741678 - }, - "awsElasticBlockStore": { - "volumeID": "47", - "fsType": "48", - "partition": 459991461, - "readOnly": true - }, - "gitRepo": { - "repository": "49", - "revision": "50", - "directory": "51" - }, - "secret": { - "secretName": "52", - "items": [ - { - "key": "53", - "path": "54", - "mode": 614353626 - } - ], - "defaultMode": -649405296, - "optional": false - }, - "nfs": { - "server": "55", - "path": "56", - "readOnly": true - }, - "iscsi": { - "targetPortal": "57", - "iqn": "58", - "lun": 578888856, - "iscsiInterface": "59", - "fsType": "60", - "readOnly": true, - "portals": [ - "61" - ], - "secretRef": { - "name": "62" - }, - "initiatorName": "63" - }, - "glusterfs": { - "endpoints": "64", - "path": "65" - }, - "persistentVolumeClaim": { - "claimName": "66" - }, - "rbd": { - "monitors": [ - "67" - ], - "image": "68", - "fsType": "69", - "pool": "70", - "user": "71", - "keyring": "72", - "secretRef": { - "name": "73" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "74", - "fsType": "75", - "secretRef": { - "name": "76" - }, - "readOnly": true, - "options": { - "77": "78" - } - }, - "cinder": { - "volumeID": "79", - "fsType": "80", - "secretRef": { - "name": "81" - } - }, - "cephfs": { - "monitors": [ - "82" - ], - "path": "83", - "user": "84", - "secretFile": "85", - "secretRef": { - "name": "86" - } - }, - "flocker": { - "datasetName": "87", - "datasetUUID": "88" - }, - "downwardAPI": { - "items": [ - { - "path": "89", - "fieldRef": { - "apiVersion": "90", - "fieldPath": "91" - }, - "resourceFieldRef": { - "containerName": "92", - "resource": "93", - "divisor": "458" - }, - "mode": -836939996 - } - ], - "defaultMode": -675641027 - }, - "fc": { - "targetWWNs": [ - "94" - ], - "lun": 599310027, - "fsType": "95", - "wwids": [ - "96" - ] - }, - "azureFile": { - "secretName": "97", - "shareName": "98" - }, - "configMap": { - "name": "99", - "items": [ - { - "key": "100", - "path": "101", - "mode": 587975894 - } - ], - "defaultMode": -1697933829, - "optional": false - }, - "vsphereVolume": { - "volumePath": "102", - "fsType": "103", - "storagePolicyName": "104", - "storagePolicyID": "105" - }, - "quobyte": { - "registry": "106", - "volume": "107", - "readOnly": true, - "user": "108", - "group": "109", - "tenant": "110" - }, - "azureDisk": { - "diskName": "111", - "diskURI": "112", - "cachingMode": "Mȗ礼2ħ籦ö嗏ʑ\u003e季Cʖ畬x骀Š", - "fsType": "113", - "readOnly": true, - "kind": "湙騘" - }, - "photonPersistentDisk": { - "pdID": "114", - "fsType": "115" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "116", - "items": [ - { - "key": "117", - "path": "118", - "mode": 663386308 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "119", - "fieldRef": { - "apiVersion": "120", - "fieldPath": "121" - }, - "resourceFieldRef": { - "containerName": "122", - "resource": "123", - "divisor": "354" - }, - "mode": -1545709933 - } - ] - }, - "configMap": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1562726486 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "127", - "expirationSeconds": 6413320236483872038, - "path": "128" - } - } - ], - "defaultMode": 411507758 - }, - "portworxVolume": { - "volumeID": "129", - "fsType": "130" - }, - "scaleIO": { - "gateway": "131", - "system": "132", - "secretRef": { - "name": "133" - }, - "sslEnabled": true, - "protectionDomain": "134", - "storagePool": "135", - "storageMode": "136", - "volumeName": "137", - "fsType": "138" - }, - "storageos": { - "volumeName": "139", - "volumeNamespace": "140", - "fsType": "141", - "secretRef": { - "name": "142" - } - }, - "csi": { - "driver": "143", - "readOnly": false, - "fsType": "144", - "volumeAttributes": { - "145": "146" - }, - "nodePublishSecretRef": { - "name": "147" - } - } - } - ], - "volumeMounts": [ - { - "name": "148", - "mountPath": "149", - "subPath": "150", - "mountPropagation": "ȥ啕禗Ǐ2啗塧", - "subPathExpr": "151" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.pb b/pseudo/k8s/api/testdata/v1.14.0/settings.k8s.io.v1alpha1.PodPreset.pb deleted file mode 100644 index 311bc9a355d501814dafa4088d6e86b84e2ae203..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1460 zcmXw2Yit!o6y6!M!iad8fY~fRysW{%O?JC8J2N}m1OgR9#6U_>gCu0_D+P)LTI6L+ zc!-kQV0pB(m|CnY&r(pMNCp1LEtZ=20|PPe!-VAa_F`f%#u!whXIkAK=bZV@W6t@` zPJ?c?$Q)uf*KOIduCcz^Z_v&Dx{aks{!qutpmJ=SyJjoj%Qo&H$o1(j=gE#G&kj?Z8!R)WhQ5<1jMs(^>F zzWd9bTf1Ajc5f=TDhBp{xp&|3@4GIe)g=T)6zS?G2#P6Y!TL18j60Zx?zF`_^OxI( z-+#M#D0{tiQwB2@SQ<59CU#;bvuHkqDmuG(Fq?177JH8kb$hSoyS}*gRaNPYws%Gk z?VdY2*pYj04OELVDKZVhHJwaKK*!XgeN)JBL>3ScH%2>ZBOx~j-uTBoE?DS^4R3kc zQ%ynyqE>>ZUe|E1Aue6M-CsgWf@S^=zn-ok&nxXG)ho97UhNW94?S z-M|uXhRumrPVq~PPU$O6HMJi1y(D=tS-CYyxO#b2QknRkzkJJDKk>YkiCDZS@niz` zui$hM!C^pg$ef5w2AhK&(x<@^U`gk3GARy(GnG6BkOC;OkvnnHaEfi@*aV9J=7tEt zQkFAe@s#EM0aS>PJ}4ox!4P!T*y%I*o{R4M9mT^vjq`G!7S0_hwDuMT&Rjo8pCL~r zg^o*O2R_K}ZK)m_pm4PgBWEV0N{WTDZ{GU(`lEl~Lut!R0UQCW?Gr!r-$iMZnF$XD9IDt2)cWN^edj(8blM&UwK z?SO`?NIC{l&@k{FK~ALC!!QxFt^?b0!K+ylkg8!9I&`oWF4i(*a1~fPAxlG+)_YJy zpluxk_c(?n#>|1m#gG<D}) zLtq<};2>lf2vrUuS_(o}SU1rjMD`;xi~ z&YbDSHly=#!b2(2M+P2t|2fW$lOC_f1)XWaqzO~@*`Mwoo$$j?Y^dW=>ST8Kw_@kH zU9SUwT&K=o>dK)z$OdO季Cʖ畬x骀Š - diskName: "111" - diskURI: "112" - fsType: "113" - kind: 湙騘 - readOnly: true - azureFile: - secretName: "97" - shareName: "98" - cephfs: - monitors: - - "82" - path: "83" - secretFile: "85" - secretRef: - name: "86" - user: "84" - cinder: - fsType: "80" - secretRef: - name: "81" - volumeID: "79" - configMap: - defaultMode: -1697933829 - items: - - key: "100" - mode: 587975894 - path: "101" - name: "99" - optional: false - csi: - driver: "143" - fsType: "144" - nodePublishSecretRef: - name: "147" - readOnly: false - volumeAttributes: - "145": "146" - downwardAPI: - defaultMode: -675641027 - items: - - fieldRef: - apiVersion: "90" - fieldPath: "91" - mode: -836939996 - path: "89" - resourceFieldRef: - containerName: "92" - divisor: "458" - resource: "93" - emptyDir: - medium: _痸荎僋bŭ - sizeLimit: "837" - fc: - fsType: "95" - lun: 599310027 - targetWWNs: - - "94" - wwids: - - "96" - flexVolume: - driver: "74" - fsType: "75" - options: - "77": "78" - readOnly: true - secretRef: - name: "76" - flocker: - datasetName: "87" - datasetUUID: "88" - gcePersistentDisk: - fsType: "46" - partition: -656741678 - pdName: "45" - gitRepo: - directory: "51" - repository: "49" - revision: "50" - glusterfs: - endpoints: "64" - path: "65" - hostPath: - path: "44" - type: 訩塶"=y钡n)İ笓珣筩Ɛ - iscsi: - fsType: "60" - initiatorName: "63" - iqn: "58" - iscsiInterface: "59" - lun: 578888856 - portals: - - "61" - readOnly: true - secretRef: - name: "62" - targetPortal: "57" - name: "43" - nfs: - path: "56" - readOnly: true - server: "55" - persistentVolumeClaim: - claimName: "66" - photonPersistentDisk: - fsType: "115" - pdID: "114" - portworxVolume: - fsType: "130" - volumeID: "129" - projected: - defaultMode: 411507758 - sources: - - configMap: - items: - - key: "125" - mode: -1562726486 - path: "126" - name: "124" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "120" - fieldPath: "121" - mode: -1545709933 - path: "119" - resourceFieldRef: - containerName: "122" - divisor: "354" - resource: "123" - secret: - items: - - key: "117" - mode: 663386308 - path: "118" - name: "116" - optional: true - serviceAccountToken: - audience: "127" - expirationSeconds: 6413320236483872038 - path: "128" - quobyte: - group: "109" - readOnly: true - registry: "106" - tenant: "110" - user: "108" - volume: "107" - rbd: - fsType: "69" - image: "68" - keyring: "72" - monitors: - - "67" - pool: "70" - readOnly: true - secretRef: - name: "73" - user: "71" - scaleIO: - fsType: "138" - gateway: "131" - protectionDomain: "134" - secretRef: - name: "133" - sslEnabled: true - storageMode: "136" - storagePool: "135" - system: "132" - volumeName: "137" - secret: - defaultMode: -649405296 - items: - - key: "53" - mode: 614353626 - path: "54" - optional: false - secretName: "52" - storageos: - fsType: "141" - secretRef: - name: "142" - volumeName: "139" - volumeNamespace: "140" - vsphereVolume: - fsType: "103" - storagePolicyID: "105" - storagePolicyName: "104" - volumePath: "102" diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json deleted file mode 100644 index 3720f89df..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "provisioner": "24", - "parameters": { - "25": "26" - }, - "reclaimPolicy": "ǸƢ6/", - "mountOptions": [ - "27" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "ĉy緅縕\u003eŽ燹憍峕?狱³-Ǐ", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "28", - "values": [ - "29" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.pb deleted file mode 100644 index d3311ab2d9b0ad7ac0a72d066621a187ce7f6b93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmd0{C}!YNKxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPt

w@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)+1|cRR6DbZZCL>cI z%S?&w_>Nlh$RzBa}`h3S!yQ6!bx9@z`*86nxRQu=M8xL*PJ>Kuc Q#Rbx70n}+J#h}Ch0B#j@QUCw| diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml deleted file mode 100644 index f65974eb3..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml +++ /dev/null @@ -1,43 +0,0 @@ -allowVolumeExpansion: true -allowedTopologies: -- matchLabelExpressions: - - key: "28" - values: - - "29" -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -mountOptions: -- "27" -parameters: - "25": "26" -provisioner: "24" -reclaimPolicy: ǸƢ6/ -volumeBindingMode: ĉy緅縕>Ž燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.json deleted file mode 100644 index ecc6d4afe..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "provisioner": "24", - "parameters": { - "25": "26" - }, - "reclaimPolicy": "ǸƢ6/", - "mountOptions": [ - "27" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "ĉy緅縕\u003eŽ燹憍峕?狱³-Ǐ", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "28", - "values": [ - "29" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.StorageClass.pb deleted file mode 100644 index fd0c46dd649951aa0972d9745be8f6a74c9d9cdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmd0{C}!YNKxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPt

w@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b-- zDa0VeWMm@6!Np``3S^lnu^r!WY>}D17L$>=0i%`NkŽ燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json deleted file mode 100644 index c8c56f6a2..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25" - }, - "nodeName": "26" - }, - "status": { - "attached": true, - "attachmentMetadata": { - "27": "28" - }, - "attachError": { - "time": "2901-11-14T22:54:07Z", - "message": "29" - }, - "detachError": { - "time": "1999-07-03T22:31:10Z", - "message": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.pb deleted file mode 100644 index 59b56ff622f6976d77dad2411c32e95a040c44b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 315 zcmd0{C}!YNKxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhl zhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)+1|dE! zCL#C3y_ zi_u7k(O8PnM2XQ4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hAR zwvQiwqa$Tu<(VgZt-QcOl>QaT)rKv^aub0H=p3n@M>4vzk7Ymem$FaY_M UN+ABadB1iugZRbSW?N!N|pEB*bVe#b~0$XsV@jr1j5?6(Mk0o0mS!eKrUvFF7RDB4re+34#+DYh-!)xr?4HwD;KUHHwqt8^>-=+bb~8q? zaWR?;FXpdqw{n_pU&BGczdG$$tktZCN^q3+d2J6TP)Bt zb0Y>JJ}xFB6CoBLX)48JWG1D_~Um z(}HH& z<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1`U|v}3=It!EEtQJ z3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+O>ES7wsZQCwpgHP z=2`+=d_d(ELL6LdK-yA>K?ukHDXJsyHICCy(Z!dN+Vr6t;F%k(wQ%OW}X?A6D643z) z$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zEeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_;2mlZP H8UP{y9qL*e diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml deleted file mode 100644 index dc7652848..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSIDriver -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attachRequired: false - podInfoOnMount: true diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.json deleted file mode 100644 index d9727cf62..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "CSIDriver", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "attachRequired": false, - "podInfoOnMount": true - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.pb deleted file mode 100644 index 92798dc3dd4f2a1a2dbdca85fa1fc23b131bf7b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 273 zcmV+s0q*{5ICB6BBMKICbZ>HDXJsyHICCy(Z!dN+Vr6t;F%k(wQ%OW}X?A6D65#;~ z*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zJqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W X5(o+g3IZ`X5&#ke2mlZP8UP{y@y1({ diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.yaml deleted file mode 100644 index 4a41637ba..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSIDriver.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSIDriver -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attachRequired: false - podInfoOnMount: true diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json deleted file mode 100644 index 33d909c16..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "CSINode", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "drivers": [ - { - "name": "24", - "nodeID": "25", - "topologyKeys": [ - "26" - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.pb deleted file mode 100644 index 3b7e3c7896be708bcfa6ee28a1c2db40b170a0e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmV+k0rviDICB6BAqp0AbZ>HDXJsyHICCy(Z!dN+Vr6t;F%kzuQ%O#5WMvZD0Sd?g z3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3 zIW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA1 z0XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO z0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5)KLs3IZ}T P5&|+c8Uivl8UP{y&{A5n diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml deleted file mode 100644 index 6d0092ea9..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSINode -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - drivers: - - name: "24" - nodeID: "25" - topologyKeys: - - "26" diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.json deleted file mode 100644 index 9f53116e0..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "kind": "CSINode", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "drivers": [ - { - "name": "24", - "nodeID": "25", - "topologyKeys": [ - "26" - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.CSINode.pb deleted file mode 100644 index a56b23c3c73f1ba94b833c016fbfc52238afaa7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmV+!0p|W|ICB6BAqp0AbZ>HDXJsyHICCy(Z!dN+Vr6t;F%kzuQ%O#5WMvZT0Sedw z3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3 zIW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA1 z0XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k f3I+-SF*y5O!M0<7d(XM0t1zJpoh6W54j73a_CRI#^rd^D> zK&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefgHflWEIsHgmEYLJ_BL*QRBNHhO zE+!*WAj?dN?f8yki_G-3n2gK~7_H=vbXGp!-uisURJ)^lpSSOP*4F!U^Hlri-5U>W V);-?u#Ki^DX#vz}DaD|~006qeb}0Y= diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml deleted file mode 100644 index 8dd0ff3b8..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml +++ /dev/null @@ -1,43 +0,0 @@ -allowVolumeExpansion: true -allowedTopologies: -- matchLabelExpressions: - - key: "28" - values: - - "29" -apiVersion: storage.k8s.io/v1beta1 -kind: StorageClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -mountOptions: -- "27" -parameters: - "25": "26" -provisioner: "24" -reclaimPolicy: ǸƢ6/ -volumeBindingMode: ĉy緅縕>Ž燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.json deleted file mode 100644 index 941571977..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "provisioner": "24", - "parameters": { - "25": "26" - }, - "reclaimPolicy": "ǸƢ6/", - "mountOptions": [ - "27" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "ĉy緅縕\u003eŽ燹憍峕?狱³-Ǐ", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "28", - "values": [ - "29" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.StorageClass.pb deleted file mode 100644 index 3aff29c90eb88dd4dfa72aab780d329b1e80959d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 342 zcmd0{C}!YN;}R<_$uCMwPu0t|DAvo&*Do_nN-aq=6ygbnh&$&b78eUGX5zZR$i-+R z#AqzVXrjbus-<+K_2uI3BdZI&p3Un@w0N5O!M0<7d(XM0t1zJpoh6W54j73a_CRI#^rd^D- zK&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefgHflWEIsHgmEYLJ_Edee*pmGZ# z4lXtzZ7IYc#AIY5#lgj7WC~=NDX|^jacq&9z7~^_xdEe<+>y@8=i6JK@0eŽ燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json deleted file mode 100644 index 2697edfef..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25" - }, - "nodeName": "26" - }, - "status": { - "attached": true, - "attachmentMetadata": { - "27": "28" - }, - "attachError": { - "time": "2901-11-14T22:54:07Z", - "message": "29" - }, - "detachError": { - "time": "1999-07-03T22:31:10Z", - "message": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.pb deleted file mode 100644 index bee698659338f7da1ed087b4fea5118e35ad6ce2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 320 zcmd0{C}!Z&;u0$^$uCMwPu0t|DAvo&*Do_nN-aq=6cPx_&neAKbu1}KOwPzn%_|Y= zWa2u($i-+R#AqzVXrjbus-<+K_2uI3BdZI&p3Un@w0N5O!M0<7d(XM0t1zJpoh6W54j73a_ zCRI#^rd^D>K&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefgHflWEIsHgmEYLJ_ zBL*QpE+!)rAr>HMD#c`ECZ)r{D8vEenF}!)SxE75ad7lsTYD^5fC0$2R08qW&HJ^R N8N@d>kYZ3`0059jXU_lt diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml deleted file mode 100644 index ff9bbcb10..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attacher: "24" - nodeName: "26" - source: - persistentVolumeName: "25" -status: - attachError: - message: "29" - time: "2901-11-14T22:54:07Z" - attached: true - attachmentMetadata: - "27": "28" - detachError: - message: "30" - time: "1999-07-03T22:31:10Z" diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.json b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.json deleted file mode 100644 index b640ebc7b..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25" - }, - "nodeName": "26" - }, - "status": { - "attached": true, - "attachmentMetadata": { - "27": "28" - }, - "attachError": { - "time": "2901-11-14T22:54:07Z", - "message": "29" - }, - "detachError": { - "time": "1999-07-03T22:31:10Z", - "message": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.pb b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.pb deleted file mode 100644 index 7ab79415480c481a38de049fec1df0b0811eb7d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 336 zcmd0{C}!Z&;u0$^$uCMwPu0t|DAvo&*Do_nN-aq=6cPx_&neAKbu1}KOwPzn%_|X_ z$;5Sok&Dqth|ySz(L{;SR7>ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!N zB|B1$L=4R=%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIv zVl)?Gv`Av-Vzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$; zO{$m-O}iLvflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFX< zS^`{rK;;%f99(Qb+ER!?2*@`w5n=(7rcz8sW>PvFj6hi?BXc1pBMT`$E)I_VYip0? Z3NQfqmP#Q0x_Q5LGlTfX22u=43;^Z|X+{75 diff --git a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml b/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml deleted file mode 100644 index 8a79e4d7a..000000000 --- a/pseudo/k8s/api/testdata/v1.14.0/storage.k8s.io.v1beta1.VolumeAttachment.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attacher: "24" - nodeName: "26" - source: - persistentVolumeName: "25" -status: - attachError: - message: "29" - time: "2901-11-14T22:54:07Z" - attached: true - attachmentMetadata: - "27": "28" - detachError: - message: "30" - time: "1999-07-03T22:31:10Z" diff --git a/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.json b/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.json deleted file mode 100644 index 4aced0a7f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "kind": "AdmissionReview", - "apiVersion": "admission.k8s.io/v1beta1", - "request": { - "uid": "ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ", - "kind": { - "group": "2", - "version": "3", - "kind": "4" - }, - "resource": { - "group": "5", - "version": "6", - "resource": "7" - }, - "subResource": "8", - "requestKind": { - "group": "9", - "version": "10", - "kind": "11" - }, - "requestResource": { - "group": "12", - "version": "13", - "resource": "14" - }, - "requestSubResource": "15", - "name": "16", - "namespace": "17", - "operation": "¡ıŵDz", - "userInfo": { - "username": "18", - "uid": "19", - "groups": [ - "20" - ], - "extra": { - "21": [ - "22" -] - } - }, - "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "oldObject": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "dryRun": false, - "options": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}} - }, - "response": { - "uid": "輂]¨\u0026桰]]æȌ殸2爟¼ªov鈶", - "allowed": false, - "status": { - "metadata": { - "selfLink": "(湗Ć]ʪƬ滈憴Uą飋ī", - "resourceVersion": "71208173751669476" - }, - "status": "23", - "message": "24", - "reason": "Hr鯹)晿\u003co,c鮽ort昍řČ扷5Ɨ", - "details": { - "name": "25", - "group": "26", - "kind": "27", - "uid": "Ƣ6/ʕVŚ(ĿȊ甞", - "causes": [ - { - "reason": "颋Dž", - "message": "28", - "field": "29" - } - ], - "retryAfterSeconds": 1001983654 - }, - "code": 153738858 - }, - "patch": "fQ==", - "patchType": "-Ǐ忄*齧獚敆Ȏțê", - "auditAnnotations": { - "30": "31" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.pb b/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.pb deleted file mode 100644 index 34f4aeb2a8a6b12d7c133305e8f7d2b2633bfe0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 732 zcmchUOK%cU6vt<7ZBnl$wX-mFHa0iWAXYl}4$KV1jgJMoY_xI1Vt`qUK!-3CwGA61 z1nt9UB$XPieWX>|)JJ?2rIOI$5x#>v89IInZx?=rZcfhmos;wb=bV^gGVmfCR-*~s zG<9Rr6H`o&Zj5DcSWByz8@%$rGp=QH?H;$@4=a7}Y~xw?bFN(s2D@w9=bT?ZTFdtP z-QL#QgXiVWdTW6@4q3vnBF}nxn)*0a;#nE7iW^{w04xUv>MPc##@Fl9SBD|M3J0*C z2Sh*+0)n|?G?JT97@k3DQlHRLhu%;CY4_DcGOl?dMuJ*IqbR0NMk&8GWu}e9tp`bs zGBc?~P+$h7v}9b5s3r>FETw5RJwU6RDXBgUilab?QgW_?44cGD=gQm^|Fz13g1pKe2Iku zJmaz}i&j3=DL1$6p9MSr<+hb`)@H3OZb-&NP_Qh@J}gOouPpHl2ME<6UNjO+IUgz) z>{9KrF&c4p_KZ~8emUPLS#$Q|@4n`uTcYpv(Rqo^%V-exJFBy;90dvme%Hq9Kfn9P zP;*rp>l7y%OD?O{e$spKM)+IZyn)!P`}C#O({AmN+u7Uf%`e%-e0!n&YQIbdAP@x( Jh?r*(^AF%V1)2Z= diff --git a/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.yaml deleted file mode 100644 index 2e9e90ee7..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admission.k8s.io.v1beta1.AdmissionReview.yaml +++ /dev/null @@ -1,80 +0,0 @@ -apiVersion: admission.k8s.io/v1beta1 -kind: AdmissionReview -request: - dryRun: false - kind: - group: "2" - kind: "4" - version: "3" - name: "16" - namespace: "17" - object: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 - oldObject: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 - operation: ¡ıŵDz - options: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 - requestKind: - group: "9" - kind: "11" - version: "10" - requestResource: - group: "12" - resource: "14" - version: "13" - requestSubResource: "15" - resource: - group: "5" - resource: "7" - version: "6" - subResource: "8" - uid: ő岅ȕHH壬%龺ǟ橸章蒪ʤǎ - userInfo: - extra: - "21": - - "22" - groups: - - "20" - uid: "19" - username: "18" -response: - allowed: false - auditAnnotations: - "30": "31" - patch: fQ== - patchType: -Ǐ忄*齧獚敆Ȏțê - status: - code: 153738858 - details: - causes: - - field: "29" - message: "28" - reason: 颋Dž - group: "26" - kind: "27" - name: "25" - retryAfterSeconds: 1001983654 - uid: Ƣ6/ʕVŚ(ĿȊ甞 - message: "24" - metadata: - resourceVersion: "71208173751669476" - selfLink: (湗Ć]ʪƬ滈憴Uą飋ī - reason: Hr鯹)晿bg_3x~DZLEF& z=alvWwH(XPOw~4+&MebXHQix<{~kDuHOV$Sa38s_oV4 z;l109O&D!&Jb3a`JlI-&xAW=Zxy~=Q>et>9Y_{ej{~S|f%^)u+L_~|on(dc0cIMxQ z>wljlQdj`fA63piTN`V9cCNnDtnROF9(;e}@NVtt^2pOWd)G(0UfX>f*I61^90y<;KdAuCrF^F)JV+k>FK_zm3 z-cQ4-jd6|@Ug56F&ElZO1uu``AV(gz&`CtH$%x<(bN!6-ymqYdpuWSlwpxE256OlR zJ#}TMtG{urb+hx;ZRgVQ=1TkV(!_hRvLY$-j22vR)0{*70W8kYW57|*c@2N zpgHHjc#ij6gsW`qje$y}ha>dyUX2f5EDwuk0?JLB^XMfU1iCN)LWt!;h@1+$DR0m% N_0Efb=l2DC{{iheEDZnv diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml deleted file mode 100644 index 8b75c8275..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.after_roundtrip.yaml +++ /dev/null @@ -1,71 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: MutatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "44" - clientConfig: - caBundle: RA== - service: - name: "27" - namespace: "26" - path: "28" - port: 2114329341 - url: "25" - failurePolicy: 狞夌碕ʂɭ - matchPolicy: cP$Iņɖ橙9 - name: "24" - namespaceSelector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3: U-_Bq.m_4 - objectSelector: - matchExpressions: - - key: 4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B - operator: DoesNotExist - matchLabels: - 81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i: i.Fg.Cs_.8-EA - reinvocationPolicy: ȉ彂 - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗 - resources: - - "31" - scope: ȎțêɘIJ斬³;Ơ歿 - sideEffects: ŴĿ - timeoutSeconds: 1525829664 diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json deleted file mode 100644 index 2d603a44e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "kind": "MutatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "webhooks": [ - { - "name": "24", - "clientConfig": { - "url": "25", - "service": { - "namespace": "26", - "name": "27", - "path": "28", - "port": 2114329341 - }, - "caBundle": "RA==" - }, - "rules": [ - { - "operations": [ - "ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗" - ], - "apiGroups": [ - "29" - ], - "apiVersions": [ - "30" - ], - "resources": [ - "31" - ], - "scope": "ȎțêɘIJ斬³;Ơ歿" - } - ], - "failurePolicy": "狞夌碕ʂɭ", - "matchPolicy": "cP$Iņɖ橙9", - "namespaceSelector": { - "matchLabels": { - "MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3": "U-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - }, - "objectSelector": { - "matchLabels": { - "81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i": "i.Fg.Cs_.8-EA" - }, - "matchExpressions": [ - { - "key": "4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B", - "operator": "DoesNotExist" - } - ] - }, - "sideEffects": "ŴĿ", - "timeoutSeconds": 1525829664, - "admissionReviewVersions": [ - "44" - ], - "reinvocationPolicy": "ȉ彂" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.pb deleted file mode 100644 index c6845f9065a780ca9d050dde64fbe6ccf3a4313e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 931 zcmX9-OKe+36!m**Q+R4CG=hy`QQQbsLHGL2`_2<$5!Xo_6Q@bjBvMo~*tO%>sr~#- z;vggvltLV!MM~NfqL6+Td>VnE6`-n$)Y_?C2^L5QB-VD44PwC-iHVraId|^8XU^Qw zOtGRz2`Zh@cqUaWrrc~HkxUg!g=k4|oMJ^xx&CPyOO&FNyc8*yL?W9UOT;E!cj~m8 zok%6i{}+>AJCr{pMbe0*dnLmsnO(lx;{NUB+SmDTd!rgQ4*T=3h2Q3v*XMHq&*0Vv_upIm{Fn6y(s+j=*+gQo zBZ}k@nX2g%icB@HOm*M!;9Tp$O5^>vi}mWxm0Xuhsp?@;L8iu>OwFqFx+t~C%llWW zt(EHj?HlzC7-_BFd;CMx-&}d8{mJ~P_D|Pqm){g>cGq*taZ%35GfIa*hj_?8hZI>e z$cqXQXc1Yny|Ttm{Cj`x?;}JCioo=Sm6K0bN9&)Ss%;R#rbA@f;#>Xa*mS_h6p!+G z=yXFbpdoxt_m5#ZE!+hVx$vk1H&9QJV=3%S;^`ts20h)Rpu~&}6ji2+ahe)9$?~)* z=5{b#v8>XxW)~pCX26R3%^3&AGQ9gNTw@M6bIZ=&#d@|UXRc7A32sSga7~l diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml deleted file mode 100644 index 47833d481..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.MutatingWebhookConfiguration.yaml +++ /dev/null @@ -1,74 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: MutatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "44" - clientConfig: - caBundle: RA== - service: - name: "27" - namespace: "26" - path: "28" - port: 2114329341 - url: "25" - failurePolicy: 狞夌碕ʂɭ - matchPolicy: cP$Iņɖ橙9 - name: "24" - namespaceSelector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3: U-_Bq.m_4 - objectSelector: - matchExpressions: - - key: 4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B - operator: DoesNotExist - matchLabels: - 81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i: i.Fg.Cs_.8-EA - reinvocationPolicy: ȉ彂 - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗 - resources: - - "31" - scope: ȎțêɘIJ斬³;Ơ歿 - sideEffects: ŴĿ - timeoutSeconds: 1525829664 diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json deleted file mode 100644 index 69cf7b404..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "kind": "ValidatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "webhooks": [ - { - "name": "24", - "clientConfig": { - "url": "25", - "service": { - "namespace": "26", - "name": "27", - "path": "28", - "port": 2114329341 - }, - "caBundle": "RA==" - }, - "rules": [ - { - "operations": [ - "ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗" - ], - "apiGroups": [ - "29" - ], - "apiVersions": [ - "30" - ], - "resources": [ - "31" - ], - "scope": "ȎțêɘIJ斬³;Ơ歿" - } - ], - "failurePolicy": "狞夌碕ʂɭ", - "matchPolicy": "cP$Iņɖ橙9", - "namespaceSelector": { - "matchLabels": { - "MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3": "U-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - }, - "objectSelector": { - "matchLabels": { - "81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i": "i.Fg.Cs_.8-EA" - }, - "matchExpressions": [ - { - "key": "4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B", - "operator": "DoesNotExist" - } - ] - }, - "sideEffects": "ŴĿ", - "timeoutSeconds": 1525829664, - "admissionReviewVersions": [ - "44" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.pb deleted file mode 100644 index 4e527d3879a957119cb56aef65b00ab9bb2b7766..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 910 zcmX9-&u<$=6!xx4D^@Ls5nPOfiW{LS=soZ3&slMbo1~6O(xhn|sR9jl?KtbiUfb*Z za1atHN})E;A|-7KQAmFrfHnd_D?ky7)Y_?C32ul3XFJIO#6N(YUcQvhxPG~mD2p7YnUAg)o}fBTbn>R+|iaDVMvt6qz@ z@BNh4UZj>|8Jelu2Gf~kTB@cy?9ab1|GrdPUn)cbBU>Lm`e6CX-`2OKi$@j7CK5{? zQzVDTRL!1LWU2*as)t_aU2Jc!G(UXTZ&Y`$6}n|g)c})9GBp-uYE~r>trmIp;Ci*a zQa!kPtFZy&?e&LGeoTa0EAMqaTRPqO`DXpf+k(y30_3kFimVyrWrc`n5m~c?vc^vS z`)KW-V?^o|zzoKeQ_oi8jn7Zlcbe6`m5u%Ht{>c~JzXAqdVBZUSl8>1e~Ip0y-7|9 z1|e5hgR)LTFEu}He(~g+)>{4h&W#6;e|Teev$M4mI}m zkq7cY+N;`_;8@`m?y1}?4r^TS@*y1N$P*Si$!Ine6&zx2fN`GJjx-+Dci84;>yPIm zvSGxIUmEEeXk2OC=zM+4Isd+_T$PjsMhl*}V$PzrUP0Yai(rAPrBqFw$^s;SWdIf- zUxuV8P#a7Jd2z6rnxsxRik#yV#9#;=egTW%*;s+GQFMBsAJ7m2=LRP*n-#Jmh+K%% zfg7m1Px# diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml deleted file mode 100644 index ca1145250..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.after_roundtrip.yaml +++ /dev/null @@ -1,70 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "44" - clientConfig: - caBundle: RA== - service: - name: "27" - namespace: "26" - path: "28" - port: 2114329341 - url: "25" - failurePolicy: 狞夌碕ʂɭ - matchPolicy: cP$Iņɖ橙9 - name: "24" - namespaceSelector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3: U-_Bq.m_4 - objectSelector: - matchExpressions: - - key: 4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B - operator: DoesNotExist - matchLabels: - 81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i: i.Fg.Cs_.8-EA - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗 - resources: - - "31" - scope: ȎțêɘIJ斬³;Ơ歿 - sideEffects: ŴĿ - timeoutSeconds: 1525829664 diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json deleted file mode 100644 index fad1e4a27..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "kind": "ValidatingWebhookConfiguration", - "apiVersion": "admissionregistration.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "webhooks": [ - { - "name": "24", - "clientConfig": { - "url": "25", - "service": { - "namespace": "26", - "name": "27", - "path": "28", - "port": 2114329341 - }, - "caBundle": "RA==" - }, - "rules": [ - { - "operations": [ - "ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗" - ], - "apiGroups": [ - "29" - ], - "apiVersions": [ - "30" - ], - "resources": [ - "31" - ], - "scope": "ȎțêɘIJ斬³;Ơ歿" - } - ], - "failurePolicy": "狞夌碕ʂɭ", - "matchPolicy": "cP$Iņɖ橙9", - "namespaceSelector": { - "matchLabels": { - "MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3": "U-_Bq.m_4" - }, - "matchExpressions": [ - { - "key": "p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0", - "operator": "In", - "values": [ - "D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n" - ] - } - ] - }, - "objectSelector": { - "matchLabels": { - "81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i": "i.Fg.Cs_.8-EA" - }, - "matchExpressions": [ - { - "key": "4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B", - "operator": "DoesNotExist" - } - ] - }, - "sideEffects": "ŴĿ", - "timeoutSeconds": 1525829664, - "admissionReviewVersions": [ - "44" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.pb deleted file mode 100644 index 5e35fa3645a06c47234f6d2f2d7ce8126a2376c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 926 zcmX9-TW=dh6!xx43ahq4BX}_qDsF_TpmV&l*I6MR;wGtMk~C==N2)->x^^5pvDfxG z7Y8Acq7-TaEmG2^5QX&ez%2qnD?k;B)Y@rW1aAl=p6w(LApQUn6EQE}cjlb)%{ON> zQ_K%2eM+aB%w>E(Eq)6q{U)&=MLo$Ns%-n=|RZ|NoH55zO;Y4R{ydXYp+*bws-S`H|n1?S8;FkYpY(1 zx9AHJM7QDFaEYzTU#td0>hi{-Fs*0(_h!_OXoWj$tDs@ z99ATU$W+Z9S7fRMWvYjc^(?gRFYmnjrr)S;Unz9Sl&S$Hm1Jrx$keP#uZU8Mys&?@ z+FGve-@egUhq2b$-G|@1;pXyN?T;2uwtu`{zx29Lv%8*Fj)`(co>V#nIwU~;I;6;& zL7r2HK#Rzl9h5b8{NH=4{~RV#j|j|QOgZs*CEob>WPNL=y1Tr-_s!M)TeU|^qmOQG zUm5Lu>A_FY-OJa>385hD>uONeY3SLV4|hI!_(gNI{%!l(R}a2>d3&S1xfMFPTU&44 zd4KoT%Hxa8&8}Z0MOR)Nj1G(;GUSPoIfUeC>jIz!z~>P_oy(n{qMV^lo*DxlDPoQr zWJOY5E10Sd0ETUY;S>b(EP4=6Q~(@7>;rIoP+`WL&T0TuEfhs$i){_m@We2q2*pUmvo&AkV&1>z?Z#ZY)mX*trGS6ti6IaYx)YdDgJ8BUu z$Y@DbQzx?kF0eGf0_4k(5D997$sjKdHj@+72}hB0oP-z*qQlQ&5j-0!Fgk)xH}nA- z!r<({IA*iLRs@j?b2@MX^$a%Ssi$g#c20$3G WJcy7ZJzmNm^2)vQ;tK`?p}>EL*eYNE diff --git a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml b/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml deleted file mode 100644 index b81371dd3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/admissionregistration.k8s.io.v1beta1.ValidatingWebhookConfiguration.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1beta1 -kind: ValidatingWebhookConfiguration -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -webhooks: -- admissionReviewVersions: - - "44" - clientConfig: - caBundle: RA== - service: - name: "27" - namespace: "26" - path: "28" - port: 2114329341 - url: "25" - failurePolicy: 狞夌碕ʂɭ - matchPolicy: cP$Iņɖ橙9 - name: "24" - namespaceSelector: - matchExpressions: - - key: p503---477-49p---o61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-0/fP81.-.9Vdx.TB_M-H_5_.t..bG0 - operator: In - values: - - D07.a_.y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__n - matchLabels: - MHLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8.3: U-_Bq.m_4 - objectSelector: - matchExpressions: - - key: 4m-s0833--52-9guv59s-3------6tv27r-m8w-6d/5w9-Wm_AO-l8VKLyHA_.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o-B - operator: DoesNotExist - matchLabels: - 81po6c-m6173y.390q-6-i2d020hj--a-8g--z-nt-b-6-17-58-n---5df19/H.__.h-J-M.9_T.q-o7.y-SQ.9A-F-.4--_vLW.jj-.5B.._.5_3-_4.3i: i.Fg.Cs_.8-EA - rules: - - apiGroups: - - "29" - apiVersions: - - "30" - operations: - - ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+½H牗 - resources: - - "31" - scope: ȎțêɘIJ斬³;Ơ歿 - sideEffects: ŴĿ - timeoutSeconds: 1525829664 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.json deleted file mode 100644 index 21a081ff9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": 1089963290653861247 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ControllerRevision.after_roundtrip.pb deleted file mode 100644 index e1aef3b40e82b26bf9089952c8f9f375ce74dae6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 357 zcmd0{C}!Z24rX?v*qyiME#RfYM)JP)OfaY`jNI+plRkt3_>YfN!3b;1({)~ zMIhfPSt+GfB<2?6r0ON-=K_O3Nk=I=GcN@w?p#`2lAjw=S&#}8D=tV)R4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hARwv zQiwq)g)6CADX}0kEVT&aTO}){)QZI1f}B*nu2<=*g zS3(jV0TRL^An@}_fP{b$2!xu&T`^=sQ#Fanrt$t~YyVu+ zu&<_kf^E*Jx>we1IB;!WFUlSvAYDX8?nnWdqMb@bF2PQj(@tgg1Cy#ly*vH2t1Eo< zgImi}?UYJ319|LJskT$K9${eB#9zj?)rWT0#}4oI?Z*p4`_2tq$Vm(A{6n~@CMA4v zmv`ffAWdgBG4Qx>013|tin&x@m9H!6G6~237-kBUu~M=e8(8xwilpSLFjHvcF z&0a~SiX)_1WECkCUlhh@2C;JIRuP;(Rm;Of!`NC$FqW!Hvx}((lX8WHCy4fGOPy&8 zJbC$;5o}qLt@$e~i)k~mta%o}WOn6ZVqrYrQYMYJuxf$+xlH`mFNM=cu*;HYm#Nb( zGq+uqQy(APHphzW>WOaN5?a@g>pL~n9qa6h9PC;ht*Z%b+Z5e#JOkoRWmDI59h^~^ zp{S-t6{EJb?&RJ-26yNX_d935{igqow%4a*CxHqTRA{;UO@}vwM_!Sfc7?hhcxrBV zbFIH;^^<{~@adXVyKG8`M_ysoc15m7KL%Dsv;ngUf%UqC_eKbIm5SF#2tR=rCXTec zC!?E=JR?3RB>8He@b33^rHaFaVVbEr9{~#yG7N)Bs^(bJ zeywqY3#Eb<6--kNr(HD}n5RkNLqMr$*O=o>P3>3zjxTn6apT%ATxhHSb0An#9B4us zyn{4NbG*5!@7sUH`P_C*Pqk}?WE*SO%yG7P_X&1g%ChC!bvhju>rAxkvconHoY9qJ zTQ;cFL5Qw7?Yi!^>qe?wH<{g##==U2jzhUlc)}_}cJdJgjD~m`u*T4ez##+7Hw*`I z^I6m55bP#wtO*-y!p53%DvXQECilm!gk&5>Wy4_$ zA_8+V7XfL>?Nw;pAB8b^m&XE8CIC^V1JUN#-a@;Oun7r|#+_q|$m7Pi(@b*=ezev< z++`D~kj6)KF|L?<&P?ZnFa#$K2<3`&O?HJo`|z7Y1e~t8JekFVCCi*mas1`och)De z%7xrKin5yAc`bZ5c)j)TAs&2LOMa{Q!~NgJx8^QD+(2k55XMxPVsi3^p}On$4#TdqZ9%)+ zF?F!3EYKQm?+zS~)gKKV?TYob_;(D}@@2}{8GIR+2;M(0fKJB!XEKEY3lG>3Cd)h) zvY|R3-~nJVY&DZrhs}NOTjSq4oVC%yLxK?7av`+&M6|6hou6|9!VhfG=2rrT;^*E_ zra#Mt7~D_j2jGGtrH*D}2hP6`JKwHWh4$CPE;L5_+M~O#ER1Yz^YvB*Psfh#8@N21 z0WY0bAv_^BsfAeS;9UH6FY*%yH%J z>)#||-uNC-LYlMKd#?9R#)0??YNuJ{OQ)$Hzm%U z^nSyeSBB?yBOx=P)fArwtx)#9)2hJpS3+PmhNffJGa zeQ|4`3Idn%g9tz^gb_{5ip$k>k#B}(h}_zyn#-@4Gt$3qMY!jHUcC(oOc<44G}!5F314o_4sF^K zZr&{YDpq&7|77ga`tndy+k&Z2$JVxsLTTW{#9t4bjqEs9v1AWoG zoq;asVPGuf7PARJY?3&9c3CBWyQeZRTfBhaYD_F0t0glDsK=OO zPR_wr;ZkDYJTg(Xrhp+?Q^a91Z=W({;ud>S-#5Ncq6Ud;?7|mFC>5T~nZ>9A$Z)n* zhzYSQ_z!1e@u}I;d^~a4A~Ff4Fr&p& zaGu08f|o2PAry>SfU#OyWSL|Zk;NJ$%*@3V#YG(Fdhjw?$*WjgBv&uN6j!B9fk9wf zXyH~KgC?>{LkXUSa8YEN(j~Mg98)qMPmnE=OZ7ZR!E(Hc6wJ*w%Poye zB)EWT8KS1n#S5`jflDjLlSOdrP%V;4v1cLAHc2A|%Zk;>a2LTOD;<+!qLUH}FDeuB zg(v0e^eU2WS(zlW8YHGyTbUN|SSuh=3oNV~WtIk3P-^K}@pPaINa>O)OV8m4$H10k zS!()JW~o^jQn0&btddppQ|wKK#hr99-{fiq^NR{yl>cbKXi}K5s)5 zRvY~BJ;0y_01RrV?nlb~SADIq)<$1Tc+J_+#@6(qOM~ZmH>SJ`Q0M~RBOPjRSD+j0 zKJiAwa7W&KED^Yi{%Y`X%%~1SPL6%8H0l+}t9pASj zoE(e74Q0ghbNwB@194p@$E2nLSedh}eWxijl7ky+s>yGCy0JHbmmFI@Xn57`I@AaLX;eBO{ z5^Neh_UZ7;oAZP1fIxXehO!Ps2K`ilhD=r0tzftRQhP)2MSv{uv&Fc}Yd+h3X6wg0 z=yb=t!6VUg9r>}tmq*>aS|7d8_xo|r$1ZHhjpG&gNdwmFYY?hKwrvP*Yy6@GkS-2V zsHS{}SE!~Y!|m*$a81`xV|eS!#?Yo%@7Y*gN3c1LRj9#p*`UV}>PEkUek((AEc9>Y z2h4Oo@Y`pWN6sJg9SU#j4DCFYvg^}Z-slHk_s@;r$z%oA$_nj=bEq&ssz22bN$llY z=%*k`fozZ!1=1fL0M}$i`wK!h(2s=sOP(F98|(@-t^b&>)o&wo7d;+qUZnMR`gi$G z_g}bq^=Ra9eXuRKp}%LaGtzP9*>Lxs;4$aVg-34oH2IE1IxYrk26`sW5A5}x3Lm*D z+FY9tynpRJslLDNpNTwkZb3=^bN7?=iLd0Qw-0}nxM(>(KYgdk?)u`RS6fiZ2TeP! zojCf*hB_p*bY6Wqaa}Vu9z5QfSU2vg*S2J&zxL&p4QSqT!efz^J|%SQQfSiw-=)~8 y`q06?K+7mkS&6?PaDI89K^&5姣>懔%熷谟þ蛯ɰ - enableServiceLinks: true - hostAliases: - - hostnames: - - "341" - ip: "340" - hostPID: true - hostname: "295" - imagePullSecrets: - - name: "294" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: Rƥ贫d飼$俊跾|@?鷅b - readOnlyRootFilesystem: false - runAsGroup: 3541984878507294780 - runAsNonRoot: false - runAsUser: 6743064379422188907 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "285" - nodeSelector: - "281": "282" - preemptionPolicy: ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ - priority: -1662855542 - priorityClassName: "342" - readinessGates: - - conditionType: l=ƈư呄 - restartPolicy: ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - runtimeClassName: "347" - schedulerName: "337" - securityContext: - fsGroup: -3979882341327374195 - runAsGroup: 6134106493278592168 - runAsNonRoot: true - runAsUser: 5824892309487369487 - seLinuxOptions: - level: "289" - role: "287" - type: "288" - user: "286" - supplementalGroups: - - -4964947941541214699 - sysctls: - - name: "292" - value: "293" - windowsOptions: - gmsaCredentialSpec: "291" - gmsaCredentialSpecName: "290" - serviceAccount: "284" - serviceAccountName: "283" - shareProcessNamespace: true - subdomain: "296" - terminationGracePeriodSeconds: 1221494839594199191 - tolerations: - - effect: ^zgf+y>ICruc$U;IV5QsD9 z5VnLQECCV%5)gQ736K!BKp>1schc!mj)L=Cm>HL$H&LG+WqdOF=Ka-;9s}pU_g4M& zuT}s5RTmo-HsO9@bWVABMe1@Yj+vBGP+GQRUO}Z8cvN@?35bbEb|J-s)D(|zUF<-E zuVd--@Sge{Bf4+n?|nyxTS>IFQ}Z=shW@LkfZb0uQ&X5K>53s6nyN`mHjV3_t^P|* z!|s~$G~4Xsb!XPB+k0hqFUlSzAYDX8?q~s-qMb@bZoy8O%T8s_J(H?Kz1st|FID*K z2RE0e*eR842J+geQf;SdJ$f2gHSt%mE%l-8^|1px{d@3&(C*U%=W?uK)N@cdWB3vajonfDx12d>)?#S3`I3Hsu;Dcb;n-*Q*fIOdAN1zyKnp7XnTE1b`q#iL4}sf-*k90 zcqSCdWml-@o+svnH`WGvUV41ECw!tN#V(r?;+arbwOx_x(SHJ~BHDmiO$1ue5`k89 z2(-^Fyaz#7sd#Oa@KbnU;%LivEV|*~Q{ufslE3yb-yUCAia1gjp_!`d0pO5DyQ(;^ z{kiVyH~)q|?6l1VXLQA3%LbJ?2+=i{UDrK!-AJ+PCbJvTI9O@W@hH~?PgrHh zEAO2t5C&%Xv&7p7Oul4BXoRK-2cHZ8FT<|J` zJ@8PrqPzKw%0*~SvWsq2@iIb8XWj7f%fB$^}+NlWoi% zJaz#Iz{VJ7ll$XV!sZ-7Wy5I;A_8+V7XjOp+pEyHKMG^;E{_AEqybT<1JP#NuA&`C z*norw`KU^Ic>9&bfNadrt7+1_aXQu037=jZBgmOi?Cc8tQeei7} z0xox4p3LIGl4Z`OINy2q?X`(rNMr z-ajjVPR9LbGKB*R4@d};WgZLJP+j-%05BO+&1BVS^W6E?__q#c?GfQVL5OWS7ut9< z+SZrO&$$8N2exSQnc@BMb8jfqpXNdg?kDsMa6yq$9%17K&ORSI+pboH_SD4AHAef| zqdPAxh-_~2_f`c@#18EqxHyXeFP&Qs*%iX1 zxKb!-4})k(%nvdZP^zjPTU@8ggQ4oKp9%kwWOHRep75yCpXM-nvtDYJ-8rjnqw+5;pa4A2E0MtSl(ZsB{Tum2wGBiWv);85#eC^Iw z=ef~L&;2REouQ7Mk4Cp{Rby?n6CWEsGlRq>>pYS={gGrSnlK_40a3i818bItd-m$p zTadtnvH3-VoxYav#n$Z5hF#(2jnc1Ubr<`O#V)KZ4>h&TpZa8Mb-O5(4j-NPn}Ji2 zZHFDm1+|7j%>}}f3RM?~;a+<>c>2rFYmOa7$u{1Z#`{}NMF-vs-1sY+?i$`3?b#Py zy>&uaYWPUoi&ekzxB4&M=sD`YG?#A&9V!Sjq*cgPhtL*e+rJQhp?t#@8^ zhiyOldH;dH`A|pK;Q68LRRiaiOpA2CJUO!Nd^@jIOyTY-vTLlrH`w}o^wgT+cEBf* zRZaf$=1}u<&jsp-_uyrNz2Vg@fursnZ+<>>{iDb?j^w(!*umhTp1=JMVh_&BA6os4 z8ajO7nQ-m)MaC5d3xtkl;)_mc+)YyxXH-2&L23~h+cwyeo>>rCfAO&?llZhE-W(ykjf5Z)77C9orTGBPR;0?5kfO>d1xBtl z!6IZft-zVYBnkmS@|KBDEQS|sWfRGw#9CBHtTL-y)6@)0nOa1ww5&>!fpyEW@bgxw zSSA=N6pSlC@-m#SFpTp`%1n+B6^$;(lI{hB2VVx3rNzrqGpPYO$z+1rByr@dvPuAZ zPh?=WXgYiOP(X39%GU@IR{&XONfE<$VAzi0)}Kw5l6_peae)Ho9sz_-}*y| z8YHf=3tu9kRCqdPCZh@<#aUJ%Cd9JfKm5(G3Ta-}i(bN~Ecgdj(DIcQ*hNSMvB(O- zW>`zbCuT|W@WiDH$t0ML{t z@QckU)BocBC|;Ik<@7+gR|h8OtcjP$}vVl5zeh2@;=J6vVpXG9XSl?Gj8To@!eWL^b2)?5$>n7*D3?`Gtm0)a z7JKmuDOH|IaxK%MWu(f=nFauzVrv?nfGs(>!pl$&2AL7Wub>#Z`dT3La0m@WtXYE|iC ztVpC-Eyqm5%hakuT$pR*U=14*RYUa`2M5@N;Ru*=Z0Z=j?Dx5DqUppQ%kfH5FelqAw=^=5-~y^;h?+VFFThp>F0GtE7Q!t=wMZt#-UWQONg63w zTC7fny9p*)>6jD~os?L3VVRgOJT6zKSCMqf$|RZ9AThn#%Cv~rS`Hhvz{0vwW@%sr zrIwx*-wt#>DP3G;={fx17}%05OHH53EHx`*LKZ1pur!k~P_(i@Wh>__(ur0AZptdS zDQmkBP<=n@AI0Gi6gvvd6$lhNs+uVyC|o)L`cREJPW`?8*hpvSZ=HWlv|NvK_+bC3 z!95kjHOB9P2Zy%L_q7Ll{O5gZ_%gu<=wlSF4?poW z2iN+WqV+8={ei)VId_FHkGCNTs}2760bo!A00uQw&jaOw%l_6_Yoosq;vSyf%A5Eci&h2DEYm!e|iH+f8N)7Gf{W4 z%Y`X%%~1SPK$b~G0l+}tE&q3;TpWwS4Q14`a{?Xyy>VS8$E2nLSedh}e!D3&nu8l^ zs*bCluJ29YCFiF18(y`$PwpP*7?u3VE4NN3aD{YhD6ksk!fkwFLZv1qbCvq{xQ3b> z6`Q7KWUR3>;T+>P9tJm_ADm;*Hef`)17e^{a1aBx8g5X>ftNo6gP<2ln&%gfMw^cp zyZslUr;ipzR&5yCT^i`>@AaRW;XCuF5^Q>8+>_x~Hs%N00fF*{3}qdN4Em`84VkL$o5AkD zh4zNv3jkT*XN~a}SADkg5姣>懔%熷谟þ蛯ɰ - enableServiceLinks: true - hostAliases: - - hostnames: - - "341" - ip: "340" - hostPID: true - hostname: "295" - imagePullSecrets: - - name: "294" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: Rƥ贫d飼$俊跾|@?鷅b - readOnlyRootFilesystem: false - runAsGroup: 3541984878507294780 - runAsNonRoot: false - runAsUser: 6743064379422188907 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "285" - nodeSelector: - "281": "282" - preemptionPolicy: ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ - priority: -1662855542 - priorityClassName: "342" - readinessGates: - - conditionType: l=ƈư呄 - restartPolicy: ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - runtimeClassName: "347" - schedulerName: "337" - securityContext: - fsGroup: -3979882341327374195 - runAsGroup: 6134106493278592168 - runAsNonRoot: true - runAsUser: 5824892309487369487 - seLinuxOptions: - level: "289" - role: "287" - type: "288" - user: "286" - supplementalGroups: - - -4964947941541214699 - sysctls: - - name: "292" - value: "293" - windowsOptions: - gmsaCredentialSpec: "291" - gmsaCredentialSpecName: "290" - serviceAccount: "284" - serviceAccountName: "283" - shareProcessNamespace: true - subdomain: "296" - terminationGracePeriodSeconds: 1221494839594199191 - tolerations: - - effect: ^CAgZnZ}QO%Oy-P^NxA z5fDW{e1Iq_2?{9hmw*udF6T{Cx0iGKU2|?ao>yZwb*o!h&HdInI?ef=-?#Vv)>_~C zzHfbx|H{(xP0T~gl(o6J`O^yomU$r~chlw_*%>)o+2VM{ix@;$BwCSVM{p&yA|iY6#wbr4Dz6$=!!&SUX?UaQ)GoFqOM)Ox$9E# zzT?HYvrS7o_Y9VlHNJCv6s6w7AeBX0+7t%qtXbeQZH!qUR5 zg?oQ)f>{uFlZNulf>dM{Dx67zl|8nSlcQpX&Cc5#ze&11U(yzGREm#!DdB(Nz(cq7{ee|=|j)Q zJl-a6$|M*IeC`(bQh`lyM%D(*t3ulJHAyS;)}>>@ffjR(6$OStl!dE7fxDA8Z(WdM zRd*OWjLp0uZ%HNwh&2{-$p&YvRX9B@F*7}p!<=kz3p7w2&stCjR)8QwP^>5Hi~})d zk!Q`KU^R=xZWhIaM_vwHXnO6b@Muql_nd#QL7Mu+GG9+hkz;?LVt}xsDykCE6h+YB zPb8VwI=>s~xOT0qTYzIPE%{>4*QM=aAEDG(5G{jfC5^tR@TO%F#w_txvn1GUGgDvj zx3>o?PX~|enUmnGoh)@72vyYm;Wbaa{gv>U<^;2-LoAr`%n~UwOJW83H7u6cfAP1B zy31D1Um<&{K#~ln{-KR2o5Gl7f&J+oCJtT*%dDEL4h#& z(7@Tu;Lg45-As%^1nWaES!B(!WchrewBlAIY;4F**`T_tSUx%WttT2yHdDgAzy>>H z&1#l)GL11SJo^Apfi)|{^6gLMUw_`1ZSB3PxvDqY!ybmkfOP+7{-fTdgSXJQ1NXMqS-@T95|TXD;+v8eTN zU;Xu+&!evu=n*=T#O-Mfeie126~0CAB|M~q=w3Q3Q$dQwbPP>nK$^g->_haSQNC{Z z>Wd!gN=RtSmCH4LWHU9P2Vq>G3J3xS6o?&&cn&>G*%D>TU?Mz}1RyE_qV=KKbX12? z!ds{M505#Uf|cctLC<+_LwKax+4#8s;Ars35$~yN_rQ+e`C$Vj5Fs9sU-q z?Mp8p280kog@_Xo^&zrj1QA?1i8vS&=>`zv)DTGk_rrq_AmR)l(rh4d5)fr6dLJD` zOeta>j#y13HV)Ph>J6e;LKAOXjS~DH63x z(qK^1!3b)N%wI!~(x(t-0=`V_R3%6sAX0RO%vMcdVhB`hAgUFJW(T4t#1O(06^4iq zcj3P-eP*^?Zy9a6%l>HK&>?qSVoFAE_t=y3UhwbT73v!E9r9LAHs)*$mo?CZWX3|e zkjf;g^?3$%B?KHnh|WSF66y#Nb%d(&*88Y830MyVQpbM#8=``U5EZj$K!unRJX)fK zhwEq=&@_Ra#{4$bH|}f>bnkNh)L7}a2EKC zh$>hnY6*|}hIB`zf1q*VVz9o&R~HWqu|jzw zD%Db@r>n{kDym|;aI?DQz$e|^2T;6;qMVsmdfvVI*Q?!MKb#cvjH`AzJ!}>7j;PvB zWZHvJ4T72oHH{F6mx!?hnt=88s~m@#(EYYTcXz07+<&6!$}{PPzme&FDH z{#*Tyvk#Mp!c~Vt1Kok~!#4MYP{VP>y*J!E0No7qgBnLPel`#x2?$vZL|l!2Z+g{~ zm&#DKQ(q~tZ&fQ6~iV%YXgSP+7iRvyC(X=Cyu)N zJT0yoPi3IDM|0IWdp3sKs^{1hYm5jT4@#rR3+%m<)t&=8QUm8ZmQHli5yGB`VFnP> zikKzL^Sqp$iFFBUPrZq&mzhkoX;g^;&dz-62^e-QYCKD zEHN=_deH#ToxOnxFob^U(GB^k0 zJZ>()T!ER0``dPtIT7$7z`za8G`aE zE||Us7Z_WOZQy)k0ZhjtPG`*k*`H5eg^hfiy>%A%qHJJ*=P3ftTLse$Ug0vfWXW?4 zEMabSBIdFrK ztaGocF?8ahug+T%>hBBJl!eMW(i8ndt^Vd?TPdIb5W+sfJdmFgsyMmKQR*G_Ry_T@ zyVKv_N=J2-Pl8S;s7eGy0g8urE#ZlYcE|b2F6Yi?9cP0l$0v6tyE=Sro}-S^yimjb zQ12dJNuuiw0(14{mzS$Ph=u{}e}X32AL5pU`pPGoy(9ki z9`}gnaG_%;X8~<{0^A6IC_lG70d5As(c%W{-|dScK}+x3z8}pt_nw+RMd5t>m$!On z@;6U?cjLP#x+p_TN>me_odHszW>ZZ%o4y#ojrOS~x?sOQ)7|Z?3yjsL`u83S)K>9N zMYPbV%XRTKwCV0VGl?j)5p*f8{M_JBREDMIogZ)B1{eo#xhH>&>>cmDcC70z{<9<1 z=VH=o5i={I2bBM5R1f72%n)=MQ#!0edAPAn~GyV=fyU}>KW=aH~@mePE^*q)! zqI+r=E%H|QPU3Cu(ZH^{qB_KgjKw|t@6LK>PoSl8Rk(d9)LcDvaf-Kbrpo@>f98U> zB6#|Iprm|acx$++kqZyDdyYZ#r_Gh#dB1qD^k}HMGg$NHM60v>C7Yw$(J|3}eYo3QA2`_%+*{+j5WyYv)Gd$&vwr$%3Eyq*b`%(p0m-9gIctr$; z2pUZ^O=v@=K185*iVAywpkipt%Jr$!D01BrMOw#2eFEx*#Cy?&x{6EDaCjg63S>%fe4<3G5Y{39Yar4`2wg)@Gfz49 zxkp|Ll#K=2i$i<+Li=`yx@!abyTipb8Pb!^{egzs!0DPmZ9~qdRJQy#guX|yTQ+)* zI!}7uuuo-d;UiV9{jL(%KG*)&T|51){jLswPi2PVRPu69#r5G<))asFnzQ>Z{!i`S zhoVYpDDnHwUBkEIzX`?u;JsP=eLT9rl%|Ex!~#j z?tx%)f9S|ipy5p5K$jhiQ4)ZtBsTWXZ|%RD7-yOh8~e?Xu1mAyOqz4p-->2_c犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1983336623 - collisionCount: -1126236716 - conditions: - - lastTransitionTime: "2537-02-03T18:59:02Z" - lastUpdateTime: "2588-11-29T14:40:30Z" - message: "347" - reason: "346" - status: ȔªɛȨç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥摮 - type: Bb偃礳Ȭ痍脉PP - observedGeneration: 5388474454004966524 - readyReplicas: 351886404 - replicas: -1376803266 - unavailableReplicas: -172900943 - updatedReplicas: -1722716613 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.json deleted file mode 100644 index d6b20f119..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.json +++ /dev/null @@ -1,1088 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "strategy": { - "type": "闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1173434715, - "revisionHistoryLimit": -853633578, - "paused": true, - "progressDeadlineSeconds": -2030004486 - }, - "status": { - "observedGeneration": 5388474454004966524, - "replicas": -1376803266, - "updatedReplicas": -1722716613, - "readyReplicas": 351886404, - "availableReplicas": 1983336623, - "unavailableReplicas": -172900943, - "conditions": [ - { - "type": "Bb偃礳Ȭ痍脉PP", - "status": "ȔªɛȨç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥摮", - "lastUpdateTime": "2588-11-29T14:40:30Z", - "lastTransitionTime": "2537-02-03T18:59:02Z", - "reason": "346", - "message": "347" - } - ], - "collisionCount": -1126236716 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.Deployment.pb deleted file mode 100644 index 9fad7002582bb9f55a5a91a62af4000f9469c5b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5187 zcmYjU3wTsTmhS4PWbV3dd)3*V)^BWE#2Bs1y>;KLjywcHfbfoxRqqfIkc5PgKmr;4 zK0*=#A%yTq2n2{EkOcC6k%YwXZTcNY*B7&Xi_Qu|zZ}HTRaa$n_Ea~F(_eq*-g~O* z)H$cl z-sfuHk{mo$xmF9G-v3)yo4=k5*LN$feW`&n!XW1FEKx}3~blmqsabWa_ui|$F z?n=*ryhO7g@ForAn+2)ZEXbAUIhd-jk40)K14k+&&BxrQ@T$Ox0q4-#>HZ_H2M?Ac z1V@g#cE1eL)I>a2-9^+f!aRiC{3-QVDc*b`=E4Wk$7g&61XSlA)s z4dV3Vc}cnI4y;NX<`=J8vV7SxE`@Lcw}{(>*Kh`hC5huQIK$Y$J~9s*BF@DIHVkna z2HsM`;M7%k)n;QJJC2ywWKB?VWF2R0*D(AxVk~2AtEi-7%vv!bgIJ{xy#Vugo4hHDU@Y)?Ti{CtHo=+M8!)d5>C@LFugqVUfe8m%%r#aN z8U|4ot_B6}PT9P5L9R{RVeBwA^M<@7g%}{#Sj?puoUvBn^z@{xj3f?ovcWCTKy^H8 zK@nI1f(${ibvl?25Mvg3)+`D(vq&6fQA~W~CYsZT8P_oNm( z4+JX*2rH_hDiKXl1P%T~l6kH3`;m@o*UGyE2!pcHFZX;?);{(TN{a{4GKf~v>6;2~ zS{7l<5^pn0g2O&D?Ug`#d#LJ6=;)p~iLTnoGWWr7W!>*y^VU0FiJWatG>baKhAH1H zkz%tXR-z|ivBdsUpk>rkzHr+XL+ybzXI zHCY`T9Q5}&2iadSmd(?`wVl~^_r>tQxvbF6z3kmgoI(WKLoiun&9Y?uVxp|_Ry2(4 z$U)g)imX^aJ@%b97F~8z;=RBIyJXE~mUS|XF)KX#08oK7E5!QUPZi(%5S3uPI^O^7 zPcdPp84S#TJrv1mnw<#mAXrhXkv+a{v%{>YiDpIPO*71jKGU@PF2=0#t4--#G_(ZrNb&+*@blG8Te4a;bvU} zmTtSBi4%C91tQqMld4MWB`vqcV%A%}{_{Iu#9k}WBXlOQ>}d^s9dn}%zD4jQJfuVD zUOFsOL5kIM98F_Dn!u~XS84*tZfZgg!ni;c5Cjk?5C;(P zJbIY2CCZk;M0hBPKvV)m>qE2Ys1Boqw@nQk8FMv-sw$j=-V45l$Vj!T@$tZ+(a_PO zzSB9LfgPa>!v;toLINVc2plMll#IFCmtI5+2qAO_wVFt*1=bMi4Wd}X6K`CJvzu6fnNGPX z8{L??gv9(0X$-qX{SPJDe)O{ccKq66@d51mXd~>p_r5Z8(CorGef(_o}BkW zVDGMQ*O>pXuWGU}cVncyfi5I77Se@OCQ)tAGq5Wm;0Qu=76Oq_N068!RF${gN4-hF zdLWQGj@#c56-0!nm^}k3#FWsnQY|uEN6Ubw3G6iH*J=K7S97p?pYyQd?GLn_4AdVF zT&#ZK^+4mB+a{}7NDDxqW}+<3^5drgC$heC<7!Eqz4U*-|IfID|M_q%p8xD* zTjO7&8I$%pvof}^&gvjb=KsF244FgV5P$jd^*4JbF8wA{IT-A!aMxmgN#I2Hi_xv= z;SyQ0S(rQOLRkckVky1(nKxE0t>?qO&e(4Dv4M6EN@(-G7tdeqZM}4N`UqlHNB4)i z`5fI}`+0vI_E&g^&2>0Z)A@LyW2fh|dstg(5ASQ;;p|Lu&jxGDHf?(?*m82Jvy1aphfkiLJRwI)dY+pb zXe^6~r;()S{~%ta@uUh_KuG>Qu2FB}#%aa5Oac=ZYC6I`ma@=uEb_+gm*!5iMCuy@ zCEdw^(*D5s+2ByW6g)7Br^2y9c_J#+Ql+P>$`C55V!wE^y5-=f-Q5RKf{CJ_nV-6 zGtdue9MSmMK!juR=J>ttxbsqZa^LPDXbQ9=HaYPqp(+xFxNSaUO<_t9gPErp8y%I|`y##7o@4)(;;s!H8cp5^D(DLP&vXn>YBK%Q*roCQ zL4Q{qn*^;57&>cDigfRq=!={@=IQgcxNE#s!QLLtUF+)E7-_4X<4|mIB6K_`jUq3w z_fA%O5AH|{Ug%gl(Md-Ldoqq0KujxQmN3ura!wZ3C9FZ=-6&@(TNJ>FTeo3;dKO?Z zPMJT8D06TDmy(4uuw+OW1J+BExJ9$Xq}2H$doPbQ%q<2khYQ)2%)>(Q+?58$i5YVW z#Vm?hjXXf6+wwS)at9T1>$yBbG?I-KvvgfvuyD?Dt^nip9Q_v;!Wx5$L&$L0vP%-Vtk0%!DJ8xXKQ#Jz*I~!x2}Ix64tH7#aP}ziq>t0 z)913+Vg-xB1`OQISWGWgKx=^A@QERR3UHnd44i}4rLW7D0Sc?R(^KbgoVwZAE^?rS zmdxHyG(*(3=U^^(J6AAwp){La$UKw5EiO=vt=v)r<|T1lw!T;cbi3BT{Bna!GmJ%r zn!zmrk3j9djfx*!yn0FQdLu0boP%*bHy2kSJ)jnmFct#JCaM5Pr3UTa`o6 zbv6gi+<@m(WS*zP{eXQ|fYqY0$N;mALc+;;u*n+C6>TtZy0+F(431wW8Js3@3jtR1 zFuIMK$K`DSdqnnC=CM2shLWO8L3tGyPG5ryjjhHuaK5nsrehIjux5bp&u6T{Mgh** zI*WTzHZZ{TQ~~F&f@ub?aG6`O<+%oyFt<7hbJ?8AZ8GqS+Gft!o-E)^^Jc9Ey9nf# z2u*Pq#ozom@MEkNvyl8J5%UrwB^gF4ms)HnTvD--YH;~RA!w0lU{%{}C}|ug2!@)s z8bT>&(WdPj#}ye_>{LOUQg98B`ZVP+gRcBcO5< zx(bj%kfF&5GMtql17r|nfD8g$I-yw#iePE^y#K8@>tDk+`T#N{MH)u}-5r6p4rh1h z@K~s7Cz;{AuqJZhyj&DGRYDg=A%g%d0p4#z20?*nfLkqv3<53jf*Qk4f*6Ag023)w zw3=d&K~O1>R4HUgVL0ZA6yGt=1<7^Jwb$JkK6%Ms=PM2O_eE;T!xbGFNr9o(K=bjf z6i@&NVIN^0D98<0o?7NC^Nso{pMKuc8R&1Nqq@o`LnjneC5oZ|#lyRn_{2oJ^TK48 zYv;4hbD>k?lRHz~9sV}&F=ttRxZyy!caOg`$^8a_x%%=78pI$9u4C+P=tE@x1zO)% zSN4Ap3j^B!1Wj^0#4QW=RZKMdMgr|Uo)PbnBIi)<0^0TjxDfzRer|gL+zf!DSqAIh z?TaBnYwz3sAI)~po|-?z;C#YYw|ZytH&1_m*8%_)7^P?5>aR)=#r)4{NPYbhPCFM zA8+0U7>90oCV!0Xo#4B6yz4Ih^P|=0cc|59JQb5Of+-I>eO!+??2+ zw0ZIT&z2J?=)fWD(rAn2MOK2Iz)Mj);XOThJ%%TE*KXobSG}tz z*iyAB(moV!uAaI$)z>&vW&bsB_M)#cbml^^v|?g-Yow`>iww4Vk3;jP&6VDK2)+3b zdh;QIXs;hTtN_aWfX=88cj4!XhWtxM4)$y3VVOBa%juS^=ZD*z(`+C zxMMdh(151n17&;t=Yowp6K-7J)AK>-^1)*$dfgI5TE|6w0_ugt`_RR@%FD5Ecpv=| zWJ+*+qC{*E)*=9FAks$&T|-YZPr3GaMqUe+j|JOH!h8F|`*w%BYl8>6BPBJN(vz+O z!G_x4nVMj2L+)o(w)_`_en9bCHhPb_PI=#OOl9nmqx;%*++J(v?H%D?CkVFNonXzzpo>7bbq*P@6x4gqVLGW zd4Gei&Dk2犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1983336623 - collisionCount: -1126236716 - conditions: - - lastTransitionTime: "2537-02-03T18:59:02Z" - lastUpdateTime: "2588-11-29T14:40:30Z" - message: "347" - reason: "346" - status: ȔªɛȨç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥摮 - type: Bb偃礳Ȭ痍脉PP - observedGeneration: 5388474454004966524 - readyReplicas: 351886404 - replicas: -1376803266 - unavailableReplicas: -172900943 - updatedReplicas: -1722716613 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.json deleted file mode 100644 index f1fbd215b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.json +++ /dev/null @@ -1,1060 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216" - }, - "runAsUser": -7286288718856494813, - "runAsGroup": -5951050835676650382, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷" - }, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "217", - "image": "218", - "command": [ - "219" - ], - "args": [ - "220" - ], - "workingDir": "221", - "ports": [ - { - "name": "222", - "hostPort": -1470854631, - "containerPort": -1815391069, - "protocol": "Ƹʋŀ樺ȃv", - "hostIP": "223" - } - ], - "envFrom": [ - { - "prefix": "224", - "configMapRef": { - "name": "225", - "optional": true - }, - "secretRef": { - "name": "226", - "optional": true - } - } - ], - "env": [ - { - "name": "227", - "value": "228", - "valueFrom": { - "fieldRef": { - "apiVersion": "229", - "fieldPath": "230" - }, - "resourceFieldRef": { - "containerName": "231", - "resource": "232", - "divisor": "508" - }, - "configMapKeyRef": { - "name": "233", - "key": "234", - "optional": false - }, - "secretKeyRef": { - "name": "235", - "key": "236", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "剚敍0)鈼¬麄p呝TG": "305" - }, - "requests": { - "瓶": "806" - } - }, - "volumeMounts": [ - { - "name": "237", - "readOnly": true, - "mountPath": "238", - "subPath": "239", - "mountPropagation": "", - "subPathExpr": "240" - } - ], - "volumeDevices": [ - { - "name": "241", - "devicePath": "242" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": 1096174794, - "host": "249" - }, - "initialDelaySeconds": 1591029717, - "timeoutSeconds": 1255169591, - "periodSeconds": 622473257, - "successThreshold": -966649167, - "failureThreshold": 817152661 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": "252", - "host": "253", - "scheme": "ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": "256", - "host": "257" - }, - "initialDelaySeconds": -394397948, - "timeoutSeconds": 2040455355, - "periodSeconds": 1505972335, - "successThreshold": -26910286, - "failureThreshold": 1214895765 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": "264", - "host": "265" - } - }, - "preStop": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": -1675041613, - "host": "268", - "scheme": "揆ɘȌ脾嚏吐", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": -194343002, - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "Ȥ藠3.", - "imagePullPolicy": "t莭琽§ć\\ ïì", - "securityContext": { - "capabilities": { - "add": [ - "Ƙ枛牐ɺ皚|懥ƖN" - ], - "drop": [ - "擓ƖHVe熼'FD剂讼ɓȌʟni酛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -2142888785755371163, - "runAsGroup": -2879304435996142911, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?" - }, - "stdin": true - } - ], - "restartPolicy": "ȶ网棊ʢ=wǕɳɷ9Ì", - "terminationGracePeriodSeconds": -860974700141841896, - "activeDeadlineSeconds": -5860790522738935260, - "dnsPolicy": "w(ğ儴Ůĺ}潷ʒ胵", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -7059779929916534575, - "runAsGroup": -4105014793515441558, - "runAsNonRoot": true, - "supplementalGroups": [ - 830921445879518469 - ], - "fsGroup": 7861919711004065015, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -379385405, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "岼昕ĬÇó藢xɮĵȑ6L*Z", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "绤fʀļ腩墺Ò媁荭g", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-d42--clo90---461v-07r--0---8-30i-uo/9DF": "AH-Q.GM72_-c-.-.6--3-__t" - }, - "matchExpressions": [ - { - "key": "8SUGP.-_.uB-.--.gb_2_-8--z", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1258370227, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "N-_-vv-Q2q7": "3.4....-h._.GgT7_7P" - }, - "matchExpressions": [ - { - "key": "ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32": "0U1_-__.71-_-9_._X-D---k..1Q7N" - }, - "matchExpressions": [ - { - "key": "2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1289969734, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO": "" - }, - "matchExpressions": [ - { - "key": "8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q", - "operator": "NotIn", - "values": [ - "0..KpiS.oK-.O--5-yp8q_s-L" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "}缫,", - "value": "337", - "effect": "ɉ愂", - "tolerationSeconds": 5005983565679986804 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": 178156526, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "糮R(_âŔ獎$ƆJije檗" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "ʜ_ȭwɵ糫武诰ð" - } - } - }, - "status": { - "replicas": 2001693468, - "fullyLabeledReplicas": 831250275, - "readyReplicas": -1641645377, - "availableReplicas": 1652763817, - "observedGeneration": 8116344374862020441, - "conditions": [ - { - "type": "ŗÑ\"虆k遚釾", - "status": "佼!­ʅ墘ȕûy\u003c", - "lastTransitionTime": "2275-03-02T02:41:54Z", - "reason": "346", - "message": "347" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.pb deleted file mode 100644 index 6657bd4d9282cc3b4216f8cfc13179671337fae2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4875 zcmZWt3sh9sxt=}vAg5W$cw)?SlE%p-O$oRAaP~fLZ;3sHg~{K>;HI;tLQIP{YjN3{A4~FuB^hdK1&kt1H)Nnlv@$asNG|ZP&W9@IUAL zd+&e$ul@hucCDUg;U4A2r{(12B^3~!Tbz-zZuRoCmoxJD$WJ*R;t=JL#Am>N)Oj5W)?oRL_oOfusEybRtm=Ri=ul$-1PgiYijc(Es~p z$p^(d4i)E2w=C?c>@6)n{Pv*%lsb+>8jtk!@f(nl^&j8)+Yj(V{AY+OMqILpb&T=)4V#x2;0;P{^lMFa4j4d0 zAs6G7`f`fbVuR2O1uw@Ls)W~LDR2EMT!gW-u~302Nm`-CD|v#7vAJ2mSlpDAx|W!_ zU`lx=Hm7e8vP>*&(9HrmclDB4W}2as6%y8Prp{+_cpgqR6;sF;g!I`n1;aE2$=pa_ zji5~X6*gbSg0xc5Oqw}=xiXs{J3l-BrS%SA%rll4dC9`BHi8bq98(ZsdvT#=3NH$& z85qwHH6hIu3e7?@d#R)MDXtfBR!QWo5^-21>at2w;v?Zxokf9*rIEfC)%SX!t}b+} z9^yw75q?xrG+CCYENh~q-#r`NUB9RG)FTkT%XQbb|JRM$Ll;qMJjhf)rkc*)GKokp~PDi*?zU{huU#Yk z-BoXyPL%i{Fu(#ucUTpJKEYX4k$(s%;jJpQmzCbG9BZ%LF*1mpXbJ~>5U0v^%k(68 z2SKW8f5+Q&=}t7iTvk;}w5qyjnPOFqsg}iKIIAYUVoA4ZBn1|0l(%Y<9W4gSG}&fJ zg}m25h^9KMn&z@VU4b?0qb;7UDxf% z#YT->J7+Z@*aigKfM6R^BJd4aL`AU5fK`TCf^_a*;6vjXO9vKnQydXR9tdIED8%{I zjX#v#joM_}+5WEk`{-*GdV)=)wyjlf4aZKD1HL6t3Lf$v^dK8nm>kt^X++O*5C$S@ z{G;rlGrnQ3>-)0e+o(AETX)~Df|#_Ri7-ys{)B))LR~3y6c6l(L!9a8yS~**GGB z+eVQ9V-k}B$;-5rNz@vdQh1l90FkEyQBr`Y3oY-VYQ&Wy?(wK;ROXrMC^MO=_OGt^ zN|4jS6E2ByH9opAvzr=@3BZDb2!ybW3`usj|4(!OcTrb3V)7&!l_yDTnryE=^n3Ss z$XVtdNwIad9=zH2{q|E}E|FB*zRTZTwf+IwVNhoF$U5+41Jq}BDB>q*GJ6u61^5be zF=gN|0Fh%e6uxFW7e@&!rUVvKVz}Zc6%&CF3XY+a+79e{Z}^*7xLVu0n(pQKgCqT; zJG@(i$1nIw3)p;V${aSIiK4pWmmF+HDY%t_$zVB^2z#f@az)e~4>9*qW+w$ZEv|dt z;72N{b_9oOGB+u(y)jrI$j%6+0} zKjJiQ;z&cV>0oI4ZvTZ)W8=RED_$SjKcAl*+`D&VfAX@7(6+&!&6*L|UJ^bz=-=zB z9zDE%b)@_tXl&7YtI3v@2a)Hhzg(|q%8d-*k# z^0@a{=s>9+>EG`^lj7SR8tUe1)dpLuMq8fWbfwPU?e8<()y{@b z{hh~3-rDvhN;vvuSNqZ7Js+GzbmFE2&*4B>kN2eK!j|Ar-{_ujX)m-W(1UqZ7pDUu zDM09AAkr)7RkX^Io60fsbrw9G9ROVg^L5SkZu6ed|K4sZZ9;bBEbln9>-N=R&yNzm zzSDNCW7J=hCH~pd_TjnfrDa!GAB>~WXMm9D>|KW%M|Go!9cqJ?AfV9jfkIFC%XscI z;udoYxkNUq@K5?H0yTZ%ngc0wJ?DS>>ClsvPaPkMTNwd&l&R0k9ek$;-i55hkd8aSFcy45onE^iOCTyXCRbQFhcx>mADl<&22 zg$C$|ahqE#!a4tiqc%1h0`$J0LWZiu4U#VQFZn-s=kQxg!yam3M`v4sD{l{S(rOb zN?tbGkWAR)B}p&=%Zj+jEE4n9o5E)P!5P^Zc>qeIs)Oc4W18!Z@-f`!i2DR_yAYRU zP*5gI#cOp8cp77xk)OFrCd<Ydj-z`VQU3} zEYjxl^SKx3OQ3{l2n7%U6aLAI771W`vXHzH;JyhVT|%-l)?qx0`Bwl)o^RrH;AvsT zY%TBq8BO8*NL1x_TjNJA*M!FK6;|#W#Qg_Xv@#bLYU|hK7#buC2GjDHU36s{E}){4 zgQ*H)b12RS|KN2xq>_?NAjxu6tbi+EuDD6g%@UI`&D8l25R7w$nJfmnnPIM@f?(=- z;3iYrY~mC%s;dTS;!O*93%{9LqNhXVN$Eseo|cYtatal=8W=fPC75o?AnGdE55m0` z=Vb|Wa{*!LEYWn>7JPzLP0Y_M!W(m>^-0+UW-7+1E3vug{w3tcq9Dx4S^ct*JqHU5 zn54oSeS?{Y=RzJx61YT?8xc^Y1swu_K@{j!M1ce$3bbaT7>RL&T@PVMCAJUGoxeEN z{_%moU5Oz|*CcOAQgCmD|CnbeT-vxGvTdKgCb07yTSOVkAkb=nXfc#QREDoqgP{zf zF?^*(@s*@0F_Zy#kud>v$4~~*7^2hwQBGI52RI8u5DHYB1kRZjc&&ZGtHE={p3~v2 z)#3h*NLh7;yUBO#*P$~zBh7nwz{Y?Cq0kUbjlwDb?eMNAJ`}8J@Yk#k^`CK{547}9 zU>b|>H+}*D9vVNcJTA~}aoi_vhR(o;F$2Y9b8*P;zpoDPuoF-P&+*k)3^k zn)dK(7o+x4b_tTesioy?4!Ea0|+ER4NrECY6f+fN~=1WTNV_dCTTqIUT%k z*xwV}-W%EfS`=l#4FpE@ds4$kzrGw(Jc=?zV+|l*G506_{l3z0_u0tq@^Hn870H3V zwm@rR{)>T{;sySeqAlDL+?W-Sv(5a(a8LQBnNxlH^M*U!=SEL@w*JE1eh*a;*2v+1 zGJr_XR*CFv9scgKfsgOpYD5VriYmVFy?vnndZ?!hrTip(rqW-U>^(Bl?CtSfx^muh z7yGschDy9Wfq}j#t{@B&6Ll-HR3daAR}i>_M!^J8;Sw3c6+~5RmKHQQFwpF;ja=+} zHBi<4?C@Zqq|4VtBITvet6Tid-ij#RAUZoIIysIkXAyK-NmBW-TS9}KKWB$mbB*#d-wD?0G4qX^;`_si!)p7Rg-|u?=?QQONbDWpHI&eFd-3jg2tM`qg zI`^=*-d*boAK11wQrsA+xX4fVbZGFY;jYp0Kud$K&OK203rBqX7gxXi{AnB9BqbSc Ml9H@BEH2Cc0cS5LBme*a diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.yaml deleted file mode 100644 index 8343a997f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.after_roundtrip.yaml +++ /dev/null @@ -1,718 +0,0 @@ -apiVersion: apps/v1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -5860790522738935260 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: 岼昕ĬÇó藢xɮĵȑ6L*Z - values: - - "300" - matchFields: - - key: "301" - operator: 绤fʀļ腩墺Ò媁荭g - values: - - "302" - weight: -379385405 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "296" - matchFields: - - key: "297" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "317" - topologyKey: "318" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "333" - topologyKey: "334" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "220" - command: - - "219" - env: - - name: "227" - value: "228" - valueFrom: - configMapKeyRef: - key: "234" - name: "233" - optional: false - fieldRef: - apiVersion: "229" - fieldPath: "230" - resourceFieldRef: - containerName: "231" - divisor: "508" - resource: "232" - secretKeyRef: - key: "236" - name: "235" - optional: true - envFrom: - - configMapRef: - name: "225" - optional: true - prefix: "224" - secretRef: - name: "226" - optional: true - image: "218" - imagePullPolicy: t莭琽§ć\ ïì - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "265" - port: "264" - preStop: - exec: - command: - - "266" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "267" - port: -1675041613 - scheme: 揆ɘȌ脾嚏吐 - tcpSocket: - host: "271" - port: -194343002 - livenessProbe: - exec: - command: - - "243" - failureThreshold: 817152661 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - initialDelaySeconds: 1591029717 - periodSeconds: 622473257 - successThreshold: -966649167 - tcpSocket: - host: "249" - port: 1096174794 - timeoutSeconds: 1255169591 - name: "217" - ports: - - containerPort: -1815391069 - hostIP: "223" - hostPort: -1470854631 - name: "222" - protocol: Ƹʋŀ樺ȃv - readinessProbe: - exec: - command: - - "250" - failureThreshold: 1214895765 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "251" - port: "252" - scheme: ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ - initialDelaySeconds: -394397948 - periodSeconds: 1505972335 - successThreshold: -26910286 - tcpSocket: - host: "257" - port: "256" - timeoutSeconds: 2040455355 - resources: - limits: - 剚敍0)鈼¬麄p呝TG: "305" - requests: - 瓶: "806" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƙ枛牐ɺ皚|懥ƖN - drop: - - 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - privileged: true - procMount: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - readOnlyRootFilesystem: false - runAsGroup: -2879304435996142911 - runAsNonRoot: false - runAsUser: -2142888785755371163 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdin: true - terminationMessagePath: "272" - terminationMessagePolicy: Ȥ藠3. - volumeDevices: - - devicePath: "242" - name: "241" - volumeMounts: - - mountPath: "238" - mountPropagation: "" - name: "237" - readOnly: true - subPath: "239" - subPathExpr: "240" - workingDir: "221" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostPID: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷 - readOnlyRootFilesystem: false - runAsGroup: -5951050835676650382 - runAsNonRoot: true - runAsUser: -7286288718856494813 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "340" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: ȶ网棊ʢ=wǕɳɷ9Ì - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "336" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1652763817 - conditions: - - lastTransitionTime: "2275-03-02T02:41:54Z" - message: "347" - reason: "346" - status: 佼!­ʅ墘ȕûy< - type: ŗÑ"虆k遚釾 - fullyLabeledReplicas: 831250275 - observedGeneration: 8116344374862020441 - readyReplicas: -1641645377 - replicas: 2001693468 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.json deleted file mode 100644 index 1e67286c9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.json +++ /dev/null @@ -1,1062 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216" - }, - "runAsUser": -7286288718856494813, - "runAsGroup": -5951050835676650382, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷" - }, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "217", - "image": "218", - "command": [ - "219" - ], - "args": [ - "220" - ], - "workingDir": "221", - "ports": [ - { - "name": "222", - "hostPort": -1470854631, - "containerPort": -1815391069, - "protocol": "Ƹʋŀ樺ȃv", - "hostIP": "223" - } - ], - "envFrom": [ - { - "prefix": "224", - "configMapRef": { - "name": "225", - "optional": true - }, - "secretRef": { - "name": "226", - "optional": true - } - } - ], - "env": [ - { - "name": "227", - "value": "228", - "valueFrom": { - "fieldRef": { - "apiVersion": "229", - "fieldPath": "230" - }, - "resourceFieldRef": { - "containerName": "231", - "resource": "232", - "divisor": "508" - }, - "configMapKeyRef": { - "name": "233", - "key": "234", - "optional": false - }, - "secretKeyRef": { - "name": "235", - "key": "236", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "剚敍0)鈼¬麄p呝TG": "305" - }, - "requests": { - "瓶": "806" - } - }, - "volumeMounts": [ - { - "name": "237", - "readOnly": true, - "mountPath": "238", - "subPath": "239", - "mountPropagation": "", - "subPathExpr": "240" - } - ], - "volumeDevices": [ - { - "name": "241", - "devicePath": "242" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": 1096174794, - "host": "249" - }, - "initialDelaySeconds": 1591029717, - "timeoutSeconds": 1255169591, - "periodSeconds": 622473257, - "successThreshold": -966649167, - "failureThreshold": 817152661 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": "252", - "host": "253", - "scheme": "ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": "256", - "host": "257" - }, - "initialDelaySeconds": -394397948, - "timeoutSeconds": 2040455355, - "periodSeconds": 1505972335, - "successThreshold": -26910286, - "failureThreshold": 1214895765 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": "264", - "host": "265" - } - }, - "preStop": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": -1675041613, - "host": "268", - "scheme": "揆ɘȌ脾嚏吐", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": -194343002, - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "Ȥ藠3.", - "imagePullPolicy": "t莭琽§ć\\ ïì", - "securityContext": { - "capabilities": { - "add": [ - "Ƙ枛牐ɺ皚|懥ƖN" - ], - "drop": [ - "擓ƖHVe熼'FD剂讼ɓȌʟni酛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -2142888785755371163, - "runAsGroup": -2879304435996142911, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?" - }, - "stdin": true - } - ], - "restartPolicy": "ȶ网棊ʢ=wǕɳɷ9Ì", - "terminationGracePeriodSeconds": -860974700141841896, - "activeDeadlineSeconds": -5860790522738935260, - "dnsPolicy": "w(ğ儴Ůĺ}潷ʒ胵", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -7059779929916534575, - "runAsGroup": -4105014793515441558, - "runAsNonRoot": true, - "supplementalGroups": [ - 830921445879518469 - ], - "fsGroup": 7861919711004065015, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -379385405, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "岼昕ĬÇó藢xɮĵȑ6L*Z", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "绤fʀļ腩墺Ò媁荭g", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-d42--clo90---461v-07r--0---8-30i-uo/9DF": "AH-Q.GM72_-c-.-.6--3-__t" - }, - "matchExpressions": [ - { - "key": "8SUGP.-_.uB-.--.gb_2_-8--z", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1258370227, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "N-_-vv-Q2q7": "3.4....-h._.GgT7_7P" - }, - "matchExpressions": [ - { - "key": "ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32": "0U1_-__.71-_-9_._X-D---k..1Q7N" - }, - "matchExpressions": [ - { - "key": "2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1289969734, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO": "" - }, - "matchExpressions": [ - { - "key": "8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q", - "operator": "NotIn", - "values": [ - "0..KpiS.oK-.O--5-yp8q_s-L" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "}缫,", - "value": "337", - "effect": "ɉ愂", - "tolerationSeconds": 5005983565679986804 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": 178156526, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "糮R(_âŔ獎$ƆJije檗" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "ʜ_ȭwɵ糫武诰ð" - } - } - }, - "status": { - "replicas": 2001693468, - "fullyLabeledReplicas": 831250275, - "readyReplicas": -1641645377, - "availableReplicas": 1652763817, - "observedGeneration": 8116344374862020441, - "conditions": [ - { - "type": "ŗÑ\"虆k遚釾", - "status": "佼!­ʅ墘ȕûy\u003c", - "lastTransitionTime": "2275-03-02T02:41:54Z", - "reason": "346", - "message": "347" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.pb deleted file mode 100644 index aae564e903f880a715c4900b31e20565e4bd5de5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4907 zcmZWt3sh7`n(k_RkUKd^dt*#bCzEtKS%sgW%h!lVNAh4Ji0T5DlE-As~`hso;fnN7^3UvsiXGs$F(dF)@^Iy2{NAN}vW ze^veUzv}o~{ik!Gl$4dbp+LHP11BlMrq?sd{!S3miF@K_?Q`P-Uu!nygE@s;DBB4E?`v zmV8*e<3MrFbj!l-%D&R_L+>0IK&j(6r13~kAI~9!w-RxUld}@)uoB7j(2SzMz#d=4 zZ}YrWBfD}Et%Qgc9pzeyTx2Cm6?y@ts{GTD+N!{wsz}>D??JpYaG=-SpO)m`vn5zp zoDe+U=-KugkftTtxQAf6&c}1(;A!v{-uF!W?dm_g`_~`ghxpGCSB$u15$hP^^&2)X zFTfj=-00Vu>>MzNh(a#LEA{0Ruf+zT846yGGgJw$$5P($qfz?f$&G4hgyUv2~) zggK@l!uH}q%@ke|QZq1~A!cdD4HxwRF*YS((j%L*EZI-oqPo1dAZ@*_W!z3cidZf^X~_KIu6+Gq9s^X7JL%Kyed4mWz{Q!(oGk z5^q&x`_=Xz>&7{e>tW!4DT-=$SG{dIQR0KZ0E-meVO0$J1ZP!69+FBWyj7+4veMg? zW9@Z2Mh1}+P2qqK;#ApgnVtmiAV^j1?|Khjx)aSemsQmgt*S0srdU;Ds%7yQ&Z>#8 zTGFi=NrA;0<*k}zM~lHSO}1H5;aq4SL{lABO>wVxvZ`owFJcd;@}SK=2JI5%`8Iq9Ryjz$!y6K|1%( z@S%aTt%eRP=B79ziaZd)wo!=l>l?o>yBoF1wzK0s_Ycw6D)a=KNNroI-X4yfFb8}~ zpcFjhdh{S0R+t>sZfQo7IS2z0HU3fd&>7#bH}rp1@m*A${q4ISR6$Hy(L@+0Y=1&P zAfYZGQYU(xv1P_q>=wpT6M<+Hh<*nBoQ)bVN<~Lp_(Cg8pd`UUAC3&1%J6jt`u5Au z{?j7=sSAjMnUu1b(r{EqNZ~jlf!jur0Amu90?Ev@l}XeZnNoO{rT~$r15r|ds0%Ic zqiV#JBJT01X;kK!>nJmss`jt1_)3t|!V@luaWy`=F|(T*jtRhmg9(JNjSNY4cKlDv zx$mQ{aKz+EG%8P$*fiN*ec*TQ@sP93J(6PUYTJLa|A*}-!CWG#wmp}>ziRzGvcn*p z7$7?EWdqb_b|~Vf=qdIjHVg0->SD^kVE`h>W+;5kcrK0-SWF2lro?c?Q7R?^Aru@# zDYfm}^ZxL+v2e9@bRWEz=MRpY8{OgE8a#HvS6aa4OH<~s`Aihm9lzjUGfKg&6if!o zsYKX2WtJngU*+l4e6-g`|TOl96bkaa0x;|0kCk-AtDF7hw{VqzB>= z^9hv|MpW11zOGPNW3XnI=h!Syd+2nNd+U{Y|E1CTK;=*(GlaR9f_o=$T)f3Ly6<|` z7>9+i4BLkvU;WEid;j2@AB}N#d=frpO*q|G*%Qlev7!8f^0?Fz#Jw8TKoR*DKpK>^ z`x+<|G*Bd$!#k9H<*;{PwCPvjo>G4&G{4Z+I`4VoN<&lu1r7leYB;BVTd6XRW-Gh- z&Ar2EA9(ZbTjQNy9Ikn1Y{D6L!=G8uenetJce{H`dN1OZ#gx$be`QJ-e^Ww*e4;9G z*+=!Fy>xWm&2jjVw| znmZvsyt6x0J2c$xsra?iebRlrXfNV4ZsJH&@ZkQ?_FDgiP;>LY2P@tf**l+qD!6<1 z$ll~-8KG^1Kc6)tu)QRFV$i?aS3P=Y{pv{he#j9xPgG;Mr^%q4ra-=Esxweu`SFg+ z11+DT1PgRB%hWgDxYKg;Zb$hwl=8UuXlP%l9yzzye>%mtJv7wo-4;IB;=SNI^^3(U zMKqQon!XjGN@S@;Q2d~HQK%0OM7>TG*!JG5YJ-Y5-ghM2cvuoTS#hE=I~_80JnB0e z8mbGnRgJd3u<1&JzsKKixT~E_pZU9vmb|^~E0l2LtL}~?!}TAYKy>1!1ka&BS+Dnm z=falYQ2%IsxU>&i6zIXcs*BTskQ5+vF%aoh^cq@a$xY>$`8o@p&JKXCg88~;d#|NF z^uM>;OAjJDa+Y@<*me7AvF9fV-`r`x);a30$rAtMY5(Z#_0qB{tPjRf=rcgbboQ=8 zjib6z#16GVOAt^106?K9{CPZg3UQ0Mg#qHQv3u`ggI` z#Lwdz zKW^sc)p_}OJZx;h?$8MPQG8FN?AjRq1mao{=i+`cADg(K0575&H2x7ukOlbRRe~wZ zUb#dwwT1j|xwV=3t21N(oOorHoP+g3Y~cJ1U187{OHrDOvv3;58vwbB%eBm$B&yDy zM%9;ao-lt6UV&v(2Gy{cDhqR`Ny*D*8hBM(4o zRCUmtXiRh6Q9g$I0&$-rZWrRR3<}C*sd%l90bgTGGx9T6$z*vNz-nbB-LyQLGPN?X zBH_)XFbc~hrmdEgl__BOS5yGo14PEj!V+*O7M9>;<_uHBbIfVjG|W`g5pb3P>t4k(K-gMAAd9s5{Cw_3`Z6eC8bSd?z=Z$uqD2DOo-8D91o&@4 zNSBbTjCB~#V*V8XqUW1<9e7%pFT5J5s<(kkKzQW3Vi@5*bidN?0 zLT&xJ97BU-!C+cGvx}}w!v$1SaxhgvY!1cw;2*qBhg4Fs2_#vLiWP7L%oR7uxmjXT zrkOe)0)la_Fq6eVH#5w2R1i!(58Px*n@yZzMs?LdO}uFVKFjFy3 zU5U*__b(+s6$N2V&gxf$>^WFiz$6vs=o`#DJQwmnlE5XB+>C%Kt>^#%45C1k!^eYHG!RH z*&@nN27y)sM2n#eqB4A?8VqF+jo~XTimxP1iJ=U@i;M}VJBBid#t@|jh;q8ZJ-}HQ zf>5C1Byi5O!0R0gUJITr_M8fDtqz~-jFeSpxDWb{{wj2OXQZW`2W$*T5DE>^)F`Y1 z&<^i<;zPljCV$Q9(7Ds@^MTf03QS}1{l-rKz(eCFx^%zi5*->3(G`~?)Y#~2$r|Y` z44pk^x|{XDuF^>HptoybGV6~-XQt}f-@7hhrIzT1ZRgFvIjg<6^^+S`=Z*Ht4^cw6 z=ki-I7mDudfBZ7mepB$$&}bZM%>=FqVOk84Mp9 z@;~ec1sgc3t$6>rGeNAoG#yN|-c77KFh6yK2Zv7#4SrF?wtFMhuKaRL1v0XKu zg&B%9>+hfc<*obIhUnIYi;L{+57cyoU%wc&m$FL;g-b{b58S%_Zr{CY27_BrmZMUs zC^4y2{5zBrStk=!m(5!?@5-s*g+u<{;P$@A-q)ij18yKNs^60uKJv}wnBq~CAsTA{ z`HHze^Y8VQhI`ILYRkhF$5$i=`r89-&G|0{YKj;5TZ^`EPjF*aM9#GE6T`jbn`Tb+ z?adqRa-SVN;o17UyW<|JAgqzYUpjzD&{m1;Y#aXm^MOz9+-gP%D2gh+^u4q1-1Sgz zH%j?g_;jVeG}(K2q{Z9oxpd{c=`Qwd4-A!fdjkXgQCvY7Bqr)sWT`~xKCU2e35|jY zqQWIIhAW7w*etE+slY&szb$N~t&*b63KuNdnAc>ThzMyXLw|Fa}c!TKdoap2j zvYbKCX(dVJ$8HG?cKr)GyqasQe|xa3B;l*tGZ*jP>K&XJy+KJ5WS%4$!*H}^(T8q^ z?kss9O=9o%LA=V hz6SR|;q#98_%E-1_r)_dxJgPf+$1Ggb68xK{{!%#DzyLr diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.yaml deleted file mode 100644 index 6fa2b339a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.ReplicaSet.yaml +++ /dev/null @@ -1,724 +0,0 @@ -apiVersion: apps/v1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -5860790522738935260 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: 岼昕ĬÇó藢xɮĵȑ6L*Z - values: - - "300" - matchFields: - - key: "301" - operator: 绤fʀļ腩墺Ò媁荭g - values: - - "302" - weight: -379385405 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "296" - matchFields: - - key: "297" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "317" - topologyKey: "318" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "333" - topologyKey: "334" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "220" - command: - - "219" - env: - - name: "227" - value: "228" - valueFrom: - configMapKeyRef: - key: "234" - name: "233" - optional: false - fieldRef: - apiVersion: "229" - fieldPath: "230" - resourceFieldRef: - containerName: "231" - divisor: "508" - resource: "232" - secretKeyRef: - key: "236" - name: "235" - optional: true - envFrom: - - configMapRef: - name: "225" - optional: true - prefix: "224" - secretRef: - name: "226" - optional: true - image: "218" - imagePullPolicy: t莭琽§ć\ ïì - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "265" - port: "264" - preStop: - exec: - command: - - "266" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "267" - port: -1675041613 - scheme: 揆ɘȌ脾嚏吐 - tcpSocket: - host: "271" - port: -194343002 - livenessProbe: - exec: - command: - - "243" - failureThreshold: 817152661 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - initialDelaySeconds: 1591029717 - periodSeconds: 622473257 - successThreshold: -966649167 - tcpSocket: - host: "249" - port: 1096174794 - timeoutSeconds: 1255169591 - name: "217" - ports: - - containerPort: -1815391069 - hostIP: "223" - hostPort: -1470854631 - name: "222" - protocol: Ƹʋŀ樺ȃv - readinessProbe: - exec: - command: - - "250" - failureThreshold: 1214895765 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "251" - port: "252" - scheme: ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ - initialDelaySeconds: -394397948 - periodSeconds: 1505972335 - successThreshold: -26910286 - tcpSocket: - host: "257" - port: "256" - timeoutSeconds: 2040455355 - resources: - limits: - 剚敍0)鈼¬麄p呝TG: "305" - requests: - 瓶: "806" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƙ枛牐ɺ皚|懥ƖN - drop: - - 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - privileged: true - procMount: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - readOnlyRootFilesystem: false - runAsGroup: -2879304435996142911 - runAsNonRoot: false - runAsUser: -2142888785755371163 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdin: true - terminationMessagePath: "272" - terminationMessagePolicy: Ȥ藠3. - volumeDevices: - - devicePath: "242" - name: "241" - volumeMounts: - - mountPath: "238" - mountPropagation: "" - name: "237" - readOnly: true - subPath: "239" - subPathExpr: "240" - workingDir: "221" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostPID: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷 - readOnlyRootFilesystem: false - runAsGroup: -5951050835676650382 - runAsNonRoot: true - runAsUser: -7286288718856494813 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "340" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: ȶ网棊ʢ=wǕɳɷ9Ì - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "336" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1652763817 - conditions: - - lastTransitionTime: "2275-03-02T02:41:54Z" - message: "347" - reason: "346" - status: 佼!­ʅ墘ȕûy< - type: ŗÑ"虆k遚釾 - fullyLabeledReplicas: 831250275 - observedGeneration: 8116344374862020441 - readyReplicas: -1641645377 - replicas: 2001693468 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.json deleted file mode 100644 index bafd7fa60..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.json +++ /dev/null @@ -1,1179 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "346", - "generateName": "347", - "namespace": "348", - "selfLink": "349", - "resourceVersion": "15930892079168115837", - "generation": 1599344877585039625, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 8854032467905298740, - "labels": { - "351": "352" - }, - "annotations": { - "353": "354" - }, - "ownerReferences": [ - { - "apiVersion": "355", - "kind": "356", - "name": "357", - "uid": "D很唟-墡è箁E嗆R2", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "358" - ], - "clusterName": "359", - "managedFields": [ - { - "manager": "360", - "apiVersion": "361" - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "372", - "storageClassName": "373", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "374", - "kind": "375", - "name": "376" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "377", - "message": "378" - } - ] - } - } - ], - "serviceName": "379", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": 3145429786196118388, - "replicas": 1256299227, - "readyReplicas": -63012996, - "currentReplicas": 1538760390, - "updatedReplicas": 346775159, - "currentRevision": "380", - "updateRevision": "381", - "collisionCount": 1836894267, - "conditions": [ - { - "type": "囨汙Ȗ\u003e\u003c僚徘ó蒿", - "status": "誀ŭ\"ɦ?", - "lastTransitionTime": "2741-08-01T23:33:42Z", - "reason": "382", - "message": "383" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.after_roundtrip.pb deleted file mode 100644 index 3461d127f04ede84ac6ac84a5636319230421bb5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5664 zcmYjV3s@9Kww@jmC7s*^JBd3x=36JDF$Pm@clFzwhi?%T6_qHPq$7exP(jp6cI$;pn&i#Gt7hBeM-ZRhqihM31FMug=KWIyIYT9$c2WIx}T$)`n#%natfOw1=W8%us@r677@}ZFd#~ z>-IUDHplu-6s=YRC-=YRZ17gHfyx%yxi7&ubs+^m#><*4Vu@2kRZwL~=CGitS8naN zoWJi_e#T7GlIA^KI}2*wJ=RAhj-n}rq12?&G^H_So=dgSW*%G3ykLKLcCOKP*i-nY zt;0pG0~yg~p65&|wZ+Vfxn^D}q7V#~nJ0s#MaJQxU|rSl3ADmE*6HY3J=J^oP2a)% z$-aw6oV#BEX$m$m1J6W$U3~SuAN~n{6m!f>ucEaaEgPYY9OAc2Xq_-Mc5Y0%vK=WR zi?~HA7RN7L%En=qXBV;?&?;7EktnikGOO$Bm?!2UT|ntbN4hR#A>b|1byit{R&3Je zG6NL-hNSZHMoB}-+f)R9>k*QWnkmRh2yq%hSU_34wh;*uLdk6QCYgsp;@a&9K_^nk zN85@xlqGFQ#R&0S#%B1X02`x}v~`G6_@t?;VwZ1OlZ-G6TFlXxW$QYY7pw#Y?vLA) zIX~U1Y}dEzn>bzC9EWuft1n{XbXH$2vszM2YH|#VSV?E+tDriXF+T^a06{u0TaVjm z2Su9&jxh_o)huAUSrDS1cqPzV`^GcDzSa~^qtR6@PJC*qw>2Txallv9i5Wo=6cMYk z%&YK^MTt|J?_4~0{dz$Q58J+L=hu6_+tt+nF_jnzq9qV5Cy|x{Ej1O>W|6a+Mc!_k zp7^TK)Z{NdCGReIkBuTLAAKB=F(X?6OnO{cHQP98)y<()q*VW~1cXTnor=vDa3Y0ge z*@k-qoo7@1d3%}r=?EF~*2iJ6z?db`^5xL3qMt%xW25YZ4XR7B<%e8@y?|%skGfksm1gs&87SqgVXoFx` zwgmThTFiE{tVEk-l`~B<%i45P{C%`p;Z~ZG%nBb1^AyaO6~RKqkAk)sMJ2+?QDD9z zTg{4MH!EtiS<$dr<)*<*m7h)}S>X$_RKZF(qK%3M@2fCJl~chrD(J7O7RpX~wJjFf ztikqcu>Bfrza~TjUlTbh7iMWNOOtm{8vQK%P#D5efu&i;&=EYxF+g}Lcv4ZYEx-P! z{;>5?w?BXP%W$)ZdV-9^QG3q#Z-?Dzh2H}B5X>+>Hu;yJm|)w$i@eL)8an4e7H2aE$d zgZcf#O-p(y8iZg>ga|_+^&zq&cmZ5GLb1>%kOd&di6J5n?uQS?K!j;P#F;>(SRnEe z>I15bqIXgBxRBLYWTIdWCf>lZB{1~Xl?a=O;pwS_t1zL3iA!+U|8Q(!wUGZI1>25X z_TGzMYgnFuL-GWH3==KIZ!q{CK8!gvA#&dsu+VKFxD6dL`)ok!;VlC&iXL%CI;()z|pba`wdZn1&E57(;!2P z_E+sxgBL1D8cOxusjvTe~)@SZ; zy0kO~Jk8#M)5ufh5Lpnfqg>m@bbbxFM9Fch?BpLE49BeGh3~^7_`#X+; zdx&Vo{)gv$<-0ayz2U1rKGAWW^^^pTH;x>Wg88k_&oOFtg~gLdlC^&muaJ0B_*5Wx z%P41`yJr2Q+;n;}9pSG%%sd&lz*QA|Yxm1@hU$ZrHAa3*tg*Ah7&z_g=@5Mf`p`t! zR!C1+AzCVAcNGajMUid2w@T^{e%jJf!Q6lA^Fk zj1YP2ghheM!Ue+xQ-}J3Z(W$O%&{wQbf>q@Iq*!dpeQ)d;3ygDv{e^eEq?pF|LHAnuUU<9k+crytl0#+&!(+LG7|W82)LV&kd!Nf z)&R5NCxY{{6=i6^KpWATq%~<0Kwl+&YQij*RW|9{1QxVVW0^5n)dh9iM#QFXW4F#( zAkJhK(9b5bi?%9yCc8w3aWO2LrY%wd&92rF7q7F4y1p=5)!D`15y;*5Q1D}mRxVCo zt0%^Ra}e6X&H&?;sI#ibE&v$KL2nj2m(AD=_6W@D^phC~ z48=Jqy!<-Kp1KNU>zR5MIA5O+!;yfJ88blk7n4^YeJk3SIfH#k(hYq&Npo~0B6ejAV$)cK-JqkF)J?3uEtW?c=FV6Nc40VM0u;pyROGEsjJx4n%)sG4 zPSG#ZVvMdQunD=k%*N#E2|Bw)&ju}0bfl=8bUBe_d0tmCRzfIkT)1Hy%d$CoDl<`# zSdoj*5!cOTNtA7qlatUwg}4gM({b9YjAc3xd3<~_TA7Hpfx7G}@Km}k!S!$D1|%%W z(a{!V-LHG{Xu@(~YdQiit=IL{>|#7mj|J5Q0aO>nqZCl7mbwOzftR4j@e=G6F9BrW zC4dY(Tq>bh@-iP)|3$~!5tg3=H`@U+!~|^C z#d)e+-J zD#xxZf$9T+wmsgRF~e_R7^}q>k{||AaQ$LlARmEw1WMmGSN4Ax4g*sEcvZAN&MpnK z7Y@~VE*ed(u8Z!&IgXz6`K0Xea3cUB|5o;RxETOPjq0j=uRV+eEp6|3@0x9{J*9sM z!}-bI{M0s`yLIx;%{yUqQ9#iNVNEn<8c2nlO*Cn){d(XY+9#T5ynRfntHoL2>#s~S z_8#?>@8_NgX`vC9Yr;Kf)6#r;gd)&}*Tks8#;%^Q3`^;|cW>PT7-c`XM(&2zp6t1P z^!$C?7e`7OBa+G~dPYbONdJ?F9`dg+gV#t*X%JK1v$Mi$lH$d2zgdnUp#ujqOF|`< z6BrR{0w;#>g!|;kjWC|zBzu&zVXpIxzpc`d=PvUOj+BKE1V`{0_bWcTS#!8_bO@hu zYAW!xEzIym&0W55p{K}u0%f`Sd^;*~D=1o^Ev^fHbXGcBef7mFf=xYvx{`^D50VEf|5UecXW`I=%wTN|8|-RwABEyiiYvMKU~==p{w?M1J_Z z^PvA&Q3!_cDmiE>-$0q#DGaq!keM;QqMpsm*Cu-UjEn6X1Lt;=1Py39(%7}vd)8Nz zH~Hp`J*^-5FCVO;Lf0)pAbDKSh9F;voQLYID7qXDhYzT+AX9|x6GUuLmSBEqiuknifUmmTcdFD^UY-6Kku7~i zQ9n|Vo7cOmoG09G*<0?TYbhcWHdp`v4g}&z5VdF%Jb+1>z^NK+yauTSE}W{MsC##` zoY?2gCL&?$vpL7<`L0?~@7hhZMPJiyTsWFDSB-lymXmpHmz#liB9;HgSx zBK-(G%2!tBYsd?|a{zi8Lr03Mf*tL#-jksuq!McsY+p~0r^jWoX`-?S-o$2ahj*@= zHSA_q)j5vk^f<=E%%#UKSsS+vO27)8U6PJof=4Z#&4tPb6%6TfQGBSRjbEqh;sPjx zvWk=$8{%~xzB*bp8!gqK^zmScBH*#>XAjl7293tf*Ckhh=Yr>ux6fbPJ?#-NiR4>B zA!QAoH#*>2Y&4zp?;SMCF1UMrmktKI_xU;tjPmZMU3)e$6Wq1IffN1{EsoQ^#t!F^ z7uNWD_NNWi28vI)YTY$Mm;CwN)(P~uEMHs6#^L?)P?z`MYn~&|sjvD6k1Y>W?r~fq zcRGl>SbDrSf2h~p=0DRtaxhqPJjK^r=igW7+coGL%!_&1)6P6F-&cELxXIs~XN`>9 zedK1z^HC;yWMt2$BWFiN!Bd6+4K)21_vu%@gJ@lY8)犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "353": "354" - clusterName: "359" - creationTimestamp: null - deletionGracePeriodSeconds: 8854032467905298740 - finalizers: - - "358" - generateName: "347" - generation: 1599344877585039625 - labels: - "351": "352" - managedFields: - - apiVersion: "361" - manager: "360" - name: "346" - namespace: "348" - ownerReferences: - - apiVersion: "355" - blockOwnerDeletion: false - controller: false - kind: "356" - name: "357" - uid: D很唟-墡è箁E嗆R2 - resourceVersion: "15930892079168115837" - selfLink: "349" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "374" - kind: "375" - name: "376" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "373" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "372" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "378" - reason: "377" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "383" - reason: "382" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "380" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "381" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.json deleted file mode 100644 index 05162a9b4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.json +++ /dev/null @@ -1,1182 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "346", - "generateName": "347", - "namespace": "348", - "selfLink": "349", - "resourceVersion": "15930892079168115837", - "generation": 1599344877585039625, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 8854032467905298740, - "labels": { - "351": "352" - }, - "annotations": { - "353": "354" - }, - "ownerReferences": [ - { - "apiVersion": "355", - "kind": "356", - "name": "357", - "uid": "D很唟-墡è箁E嗆R2", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "358" - ], - "clusterName": "359", - "managedFields": [ - { - "manager": "360", - "apiVersion": "361", - "fields": {"362":{"363":null}} - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "372", - "storageClassName": "373", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "374", - "kind": "375", - "name": "376" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "377", - "message": "378" - } - ] - } - } - ], - "serviceName": "379", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": 3145429786196118388, - "replicas": 1256299227, - "readyReplicas": -63012996, - "currentReplicas": 1538760390, - "updatedReplicas": 346775159, - "currentRevision": "380", - "updateRevision": "381", - "collisionCount": 1836894267, - "conditions": [ - { - "type": "囨汙Ȗ\u003e\u003c僚徘ó蒿", - "status": "誀ŭ\"ɦ?", - "lastTransitionTime": "2741-08-01T23:33:42Z", - "reason": "382", - "message": "383" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.pb deleted file mode 100644 index 3bc44f19af6e5809511ba451d24ca33b951fb383..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5714 zcmYjV3s@9Kww@jmC7s*^JBd3x=36JDQG=eM-ZRhqiZM31FMugS>RHZ7ZH9$cQeCNpJS*2d*2nM}(w^hXp;VTKZ{lxU}5D1&F<#bW5lfsRs)8y@GKU3Cy?T4+ zmHhq3^D}0dmNxJ0+Eq~V&hb7faTHA{45cQGrYVgv^IWQpHuKnO<^}u1b8?NoBc8%P zZ5u9f9n6R}^E_u#sjX&S%r)~;5%nAlm6<1lrA5Y(qF`Os@JY1NINs^#Su@RhW_flIyAiEsbry*t%O^eg?zMah(lS@##D?D&t+_ZUkb1>N=aLfIE7D|wmNpj*0sq9v!KOX zeR;O7V|n2!P~iT!&6x|*t;!C4hrXH9r7dw-2eJBMHcn^tH8QIu#iS<3u!xm(c7Y12 zqnQhGzzPtg^Rl(sPJckrW`SeO0&g`7*lret=qFwd^wz%qbg-{A#nWhXRf`j!TIOv{ z$aNg_6?I}pPy|K9sx0#={9{q#)aD;9oxgFTpoNDp*uCqkz2EL`>i>vJj0DjVh?bK` zOM#Y}ifOaRSd)K9+)qcyn72L-g9XMciIy*hb{E|Z zg^`W26E>J4$(B#5zITVC%Vvsx2-skkq*~3Ah9}WxnPVOW$}?seTfYCL@Y^3l5-isT zI==fQEX*{Wh7quaELu#nqM;3fW!Vzk>uE9D&9V}0mQ~I)-7IS}O!4>8W`$d2N-`^a zEX-3dV^#zU6%X;Qh*4A`oGb5bh=PHr?bIyNt3fa3tP_nR{mxo{aiOEj-R-FkUMg|cOfbs& z{6~*^PHl2^?(lbC)IkE~r%?C-2Gh{%Kc;e#;{VLA|T77!^Gh`f|~pDLs1-4s18WHlCOlV=^5*+qF9Aj85oto z`X|quW9-`*xX|xC>?t0pN#77Gs3sHf^o3+1k%<-S3pA{XF*pKaje$VK#1S~`2u0zn z4-;=bn8NDTQ-Y{w|XN{CFa4cjYmRJDJ0-s?)0m}q6dc3zsa}*n$HA92`%6e~wzo*=D z%yGcjUl8c2Uy_l7VU!l1LoW}hC1Qri5C!IeNQ$@-iy|SC{V~tsz@<8Gsk=IRs_HuJ z-_vO9sg5SLLaGCzz@eifO;I;0K5j5uO@yUJ{rrjHpe*m)x}G0l+x5*4{~a;qe?RPx zE- z3@uGI7fYfwivCqyNQ=Ocqjuf?)E!Qjmd1dmIlP*!zq83jO=)ny7s*|3J3DxP(j|&s z6gS@ zzxBDfM$PW9coIpn_HW`95>E=B3IuN*xY zeXz2|$Zv@?c6As7XM8;!qVHfInh4tp=?N=DONH#NB0;DqvaR=aN&TTuT3QZKQ%nQ} z&A8V3?)A^Ew|qM;HsYD#@_4e@3YZ}v!SO(ZRn)7d*GyXzX=1%f&YLQM^{Nckt4h>6o#)>^bF{tf z9A%+wZx4JK{PWGX+)qvUuhxpI*S_c|{DI;MPBxc){rS6IA+!k8r3kF?v&e!f*(6oV zB_~_MJ1L-m4}d}m=^0JuQ#7Kd(pJ(dF%JjZN?cX{88=++FYAll04iuQ^B<%SP--ms zsWM9=yxN)M$!xo9jS!&X zL248@o_T1b#C>Q-qObe>(xGP3gP9W%bSFihrRXK}3!Jnm6=@<;A@OdI(&Q~N;Ka-< z#7#>DOvcLdXJUCa+Q!DEqGTlMB0_-m5=C~=Od%#=zQ8=hAr-NUfy<(7W(7Tt&z-wM zXIUY6cD9g8Fsq&c$TTa1#c{u)LUtXSp$mGfzI>*pNedRvj%T+aw2meJx!EvBXC)NF zt{^hm6$uO|4F^zwBKm(+Q-RT9Up_PmBZSAhea83$PcWMj&NK;8kmB1pPim4^wbM z`27-gQjigQwU`8AY1Z8gf)GxaQRzP_(D2f-U$lD(qKZkQM1Bd?vMZZLgF}j|>Cgkce8$7!=Omg_v^ z@$t!MRU+CB>awfBQ|Y<{*TYpCk+3vJM_ZNkzwXJS2`hwc=?J{ELD$!?OYnR>7E~7m zP+bs@Q9z|y>N-FMUV4aj*%Y0P*=N)fFSbhrJY6r*=6Rf#p zw465@&O2KChx`4-d3d^`dv&n8QOYq+=97sb$iPEMfc8Dez{?N~aH}PdfhQ@RSHjqd z7s8MMU?O1(7E>59@CpHv3V{r9G)q4f=c#gai_UY-eZw_@6NBCg&#pj6d$6=1Pb&PqQ zd<5nZD1BdFJ@7#|3`qUsRnh)9yDZRNI8^7kWHhz9F1e57IC|0-kg~_ajR1)JTiN5` zW&j*Ds;lzd_AnB(w7u>9*=%#|E&WRv&QJOJZrcp*_NgCk{SZbM1r(hS)nsS-!WhL0q*IL78-H6CftKIEzM^}C<1MGO^hmR z?CJ^2u#~>@^X+>8qwKD03gW zM~mb9P}9weEv`!6$!h<;Qg3evcaU2X=A{tsFqKkN2zT&+v_fEmm;Z%3csYbSZ2a(` zzq%)Ix+EvXUFc}Y+U~1Ap5WS_$PZs|9`YYA3c(OwB?nFA8z@sdg`su|GBd_k)U##9 zxZ_0NaxP-AAR3^`$cXdQ4HQDfZ(K1 zn@|+mAfxt_qrrb6f39(KPdtu>PAT*%0u416h*m_|U>>|Y zz|j(9KAM613^Xw86eLmsw#>x5N6`;1b#%LmgXJB;)0NCb`Vo4RudL43kQaLS06aB@ zjucl1JKAHtr$T8-CH5)UzJVT3kIQ7!L}f9&n$6h(FJU=r*)6Q9a~#X*aUgvjJ$~uB zxb09BR_g51bo3%Td+BU0)Iz9fNS}w|Lq%@ z2ip_@kKHh5sMa-TG6Cxppiy?w z-Rrx2DA>K<*I8hccTaZh-ONmI*9Hep`cJkv&iEQToJXHu>+d;`HdGrZKJBV?*9=|u z=XYBt(BravZ6%wA56DAZ-b1f?jy|it;vYP|B2c;4ahcrmAQEHg@!tHQUU!@SZ1>2a zV9kjXUvHg%f1Pjlpl>iQ<|R)%^S}aM?aARLe{-HSGIGz+TP4p$ne35~J)ex68x;kQ z8v;Cu08vRx!_@5Qn4Xa6J6jkWta#afq-v;fxa^rgZ{Ht--Fw#gtIr0`b@-1S5GOMa zMxOnjyY=DpJL5~w`MOco&5?I1j^|hZqvM0AQCGY6{PjM|Prv+dJv_wby8QQR_fPpp zfAbj%)`MptAbd<;={KK^ikIofjp_zpTa~Bc`Dcw?$BcnWM@OJ+ka-}`m^a*P_tw7v X%Kzn~uD>OM@-UG^8@wBt?56(*LyvR+ diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.yaml deleted file mode 100644 index 45a83b04d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1.StatefulSet.yaml +++ /dev/null @@ -1,810 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "379" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "353": "354" - clusterName: "359" - creationTimestamp: null - deletionGracePeriodSeconds: 8854032467905298740 - finalizers: - - "358" - generateName: "347" - generation: 1599344877585039625 - labels: - "351": "352" - managedFields: - - apiVersion: "361" - fields: - "362": - "363": null - manager: "360" - name: "346" - namespace: "348" - ownerReferences: - - apiVersion: "355" - blockOwnerDeletion: false - controller: false - kind: "356" - name: "357" - uid: D很唟-墡è箁E嗆R2 - resourceVersion: "15930892079168115837" - selfLink: "349" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "374" - kind: "375" - name: "376" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "373" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "372" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "378" - reason: "377" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "383" - reason: "382" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "380" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "381" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.json deleted file mode 100644 index 2ef9c9a7a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": 1089963290653861247 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.after_roundtrip.pb deleted file mode 100644 index a92e15a7a021c79a6033694cc892f5085ed24052..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 362 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-A^a?Z~yDay~uNi7OWEz2y<%+C|r&BS$rk&Dqt zh|ySz(L{;SR7>ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iL% zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iLv zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXVp(ElPGV9{DoCPM;{U0> PwJ&~6nZPf_pu_+GP`rej diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.yaml deleted file mode 100644 index 0dde208b1..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.ControllerRevision.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: apps/v1beta1 -data: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -kind: ControllerRevision -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -revision: 1089963290653861247 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.json deleted file mode 100644 index cd922456e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.json +++ /dev/null @@ -1,1089 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "strategy": { - "type": "闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1173434715, - "revisionHistoryLimit": -853633578, - "paused": true, - "rollbackTo": { - "revision": -9097966625998465286 - }, - "progressDeadlineSeconds": 787287347 - }, - "status": { - "observedGeneration": -5913324997018604801, - "replicas": -1158620766, - "updatedReplicas": 1221768764, - "readyReplicas": -1159900491, - "availableReplicas": -882790979, - "unavailableReplicas": -1006636575, - "conditions": [ - { - "type": "雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ", - "status": "ɩ繞怨Ǫ", - "lastUpdateTime": "2811-10-04T08:41:37Z", - "lastTransitionTime": "2682-02-22T19:36:37Z", - "reason": "346", - "message": "347" - } - ], - "collisionCount": 1813037030 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.after_roundtrip.pb deleted file mode 100644 index 95350e1adb873b25b520219ade7a86e375a76bf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5156 zcmYjU3v^V~xt={yNl(3YJZd`~U3DA*V{{+R+2_r*m4`qG5FkK=TUR#VoZ{d2 zT5xxHLU3rmYwOD(O(iC_aZ>!v+E3p3<_Gv8_K=xb!RV!W3C6iR7BI0r4UZw=5y=t3eMoLByn6OXBcbP$7W+g#Ch1jh9Pdiz*}S(oVpAz z%Qt4T7ZCHRtO-i4tmDj$8iwCmjAg79i%JH@ypAyu@diQ9#iERHCRdWL2rx-ny$NF& z#43I0MVQAMb3_-CS zb}&xFm_?p7i-OH85{Fq76CZmyJly)~(~*&$EMG@ppjnzYX|ca2t<1SASkq5fQ598* zXo@0e@F$YYYhB+CoxXats#}0}31gOcn^_VZ z_G#(A4Rm&fYLAEZZ=0FuY8bC{?+({A{{B^OljFCM6UP$Gq7J!WDl|)^%q)pD=ohe9 zVt*QF8}U>vowG#t?gU9P?D_|GrfLFXmIe0v`xpzn5SCdsUKbn~@b@|g*k3Z1{K?^l zt{l62INX0KJG6N_doL5G5W)5cOcq(QELp!8tE~Ahnl^UiplmQ*R;-^M_{JN{Cc7!| zeqe(ivSu^OI+@Iv6`p+vsKA;PV*Td(>aTA_C0MUq===NkF=3{u49ox>iexp-NQ8F~ ztSHvVHea{dVOG>cv!d~)sb)o=W=g$>F{}J?Q-)a;l3|@nShFfxQR;p0E?H1IoE#O_ ztBTF6st&WNC7M;8m^FSXtki^QD8mL%Sfz#+SgY`-oh0$-PSR0gYbSfwjlkj^{{A1X^(8nATRgG`*j^DGd-29Z=%VlQv| zZZzh-<*UEE{YC7x20cb+63e!ep|4_Lw86Isv4n@T2i;GHWhzLqnhv7L3`i4rm3@Rh zG|JblU)}7Xp@ai%{p50e0NG8g=wTQar~!fi0tMm#B6grhDO;j!8C-;ik_bd4K(t;o zgO2JjN_gAEz`jveYpAx`Ip96#YmN-nxmunK>=_B|-|st`>*?PVI(Oax2}DRh#nnZJr2r%%CR0=`Tf)Fe1QK&03VncX>oi6c<4fv7ehngfWQ7)JP+kjf;g?Rf^Y5(0rBL}wup2@M2^1wvJM+XFP31iS|VN5^sJ8?u6kkQFngLWP(R zI#8iS&NtFBplJd-nfX<^|AOmSuzQDduj1_sv>y&M9SjWDz3^I~<&6#Fbu1hUMNFn1 zK(HWYL{z~uQA>Q>Kd3uv1N|*y7eh^L{>IQ?gYTeoXJAKFc(83@K`DV*dTJ@NBx;sK zSSmvj*`LHC8b%^Xl*o>UeS5=0$Ncr)=8|VL&+*XKj=s_EtuS+ZG}yXHb!1dd{1H;7IJtQOQtG;b0R*VQF{<-raH# z!b3%?j$b_&Y^Yqf;niT<;fc;OoUbl?xMTc~94YVl^{hZkWlTKHBt`!>@hZ(HRmcWH z3h#4`cw5#^F3V#Qn7B~uKK6-}d7cB2*SEejYpgBO)DkG~P7YM`1umQj4)#gGT_boR zY%7!}qEahWy1S|jsiG?O;Tv^ryFcyj-i;DW6y;3&r01P0f4S2A^`psg&$=5@>1L~N z?ue>wMy72D)g!2hP}2y3e2F?spb6OSyvi2TiXOC=db-2C7XpV{p9&A2TIp`+pe2e( z)CozjJ-HyRMkW-v^(p@`t8kCpVYp2CiJJ9 zD4~DPyMgceoTnZok3@Fv4fl5kFYL2>hQrN=6wmg^v3}@gU?0>tqVY3;2+2T5DiCow z`km<&Q(-zoz1Qe@(`4{oQ^0#owY=Sb`mGcDd(WOiR%Czc!e1kQxb~)ZQo?`tG+zGX zi@xe_5npwrYtNUTzvCC9N}w;r5nY%;6>4;oG`)Mui#K3?N;Y6HPMI^EC^K;pmy(S$v1CXX z1GY<-xcSq?q_jCAdq0mg%q;*ehfCO{%%eittfdCWiJ3D?#B7RDjRHWT8wxm*au)@1 ztGNP0G?I-a({){*J8xzxSA_9uj{eI^V2#1aIEh>6f|3X9P=Jx+z4(2zg);I%cW>Khl60Q!E-1QFVNvWz&Qal1HY){bH>JG0k4}qeL46=;B1M|6wjmh8y^R5$7(SPhyO5Q zUSgyq!${-O$_#}|Dl^gyuFxm}E3yo%YWaqe&T)cZs0GU*m2&5=+sJWTsgcc26lG50 zQ%j{aFK{%=HY%AJc)m(Qh36O~XJ)|?Lx4K|cqU$+jyHn2+zN<;Z64b^TYQ=R8lM9y`{rGX>m zbYT=S2+$JX{SIUh6vzg+wNl6+&=N1GG3+FWF~|TgkupWADFzt?l>$kXLWUHEV0u#XHcZyX(X_qR>XrB};Y3z+g;Pl8Z%1_}_^uv2 za}WRd{<@C1j0VI^kJh&ID}mkZLz$_ zO3)K{DT*h&N5`+l@B}YAEUxz1u9Km&P0r2UJ^qX1d!h(}r}&J&i_fmN?5m#;#b>;h z4Sct9Wz*jM7 zVVd^Q4~^&ce%3m?7bQO)uImcbzcF^wRsE9P+3h?%)_LuGx2Gw1q&c*`-aj109rV^j z1UZU3O!Wvwafbj%D+)FQq@h{)z0<}8-s0!(mXrT1@{@( z?$Du{C=3xadeAhX9hrI&f!--9?1RCY!Szd5r~5_%L%q4-(_3kQ1~eTXsNC*96>Qm@ zaQ)i0p7%qSb{{~|>y{|eIxgyCP%k9jhlU$#F2&N}J@j*sDZ%!M60t#AivX;FNFO0| z6+Oc|?b_iPdNo)z8tg0&Z|@E7*c$F`2=3~Rl-FlTPq}sln;U}1>w^u=d7n|)@?R0U zh2qz*^&W5?@xJbu$k-$Mce;1EE8IKWyIyl|4xH?BpAPiYW;u_hqG8(*m)})GfG1lY%`1N@M@fAL`~P9KHKO<*F73H>-5dEw7qYbWIsbSE zJ&#@=_uONDO@{`|uo@J<#plOoN>J)tO2t+0E@qhSR*R2eTX=;4D`)b9犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -882790979 - collisionCount: 1813037030 - conditions: - - lastTransitionTime: "2682-02-22T19:36:37Z" - lastUpdateTime: "2811-10-04T08:41:37Z" - message: "347" - reason: "346" - status: ɩ繞怨Ǫ - type: 雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ - observedGeneration: -5913324997018604801 - readyReplicas: -1159900491 - replicas: -1158620766 - unavailableReplicas: -1006636575 - updatedReplicas: 1221768764 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.json deleted file mode 100644 index fb7f229e5..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.json +++ /dev/null @@ -1,1091 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "strategy": { - "type": "闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1173434715, - "revisionHistoryLimit": -853633578, - "paused": true, - "rollbackTo": { - "revision": -9097966625998465286 - }, - "progressDeadlineSeconds": 787287347 - }, - "status": { - "observedGeneration": -5913324997018604801, - "replicas": -1158620766, - "updatedReplicas": 1221768764, - "readyReplicas": -1159900491, - "availableReplicas": -882790979, - "unavailableReplicas": -1006636575, - "conditions": [ - { - "type": "雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ", - "status": "ɩ繞怨Ǫ", - "lastUpdateTime": "2811-10-04T08:41:37Z", - "lastTransitionTime": "2682-02-22T19:36:37Z", - "reason": "346", - "message": "347" - } - ], - "collisionCount": 1813037030 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.pb deleted file mode 100644 index d67ba728c3f2d0cfd3df3ef016f252462e095d1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5188 zcmYjU3tUxIx36NU>3Cj^+1S)f*;Myi=h!socYfdA`&(;$ z>-)a-J^m|OD=;xO=H4}Vc?Hvog!IfUYXp{gJ~MCQrfoTyxm(zy3CxFxL4-x34M`3p zCpugek+waquFc88V^wRk@bSIBb#?k1xo~5T;@XoMIB_A9JSZr-A`zKaB~8>6S>cJO zYgcaWxLmsDNNL_I(~|C8gJl&hZygy$Y4qQvn z@L1R;Nc!O9Of6TT)b@QQZ9vX0=JOch*xt4hb4*QGC0Fn&pt928zRod z1~v?_5Cd2*dJYz4 zj5D~RO^N`Mq;=achC!^-hhBhrTqtkMA{YyN-e&kxflY8`_Ik{#Li)7T$t&{LW?;gB z7ITc{MTS9?1*<@TyHhr8nV)M@w;9`vO}rs*P9X+}H5PFx24}2MI6XZnDx9fFMIqY~2p#J;azro;8bt%`6g!Srii=c_}>7`pT1$(cVno>A+yKGD(fUu$}suIx@MbO|+B$?N`zZpJr?OH{T0AWyGc5ByHIzk#2p!rrJJD4?QSRO!u4?$*E8a%OZz3n#63wCx zv0=(LOQggsiB;$cSS+zW544YZDpt%}E_?TaBsmrZk`jvoNrfnQ-_BG_V$8C@et!>R zffvFuD<^7#gMF9XTi)Opz7qCrw{_W6@~a6|HC)#Jeh4P#R>G3hPzHW>!^)S=AEFs!q%rKOI(T!VHvdgD0%gL>uKu zc9aOGp}`tW$pY7CpueVBk%Nxv`BuiPLpbOV4myN`E+ztBmv~eHt8`eUD?5MgKrUh z2@k0b-AjjMDoC-K4x_0INE3LKeTY6Z%Ga%5-s+{Ugao&Ke5E#k?50-qAdCxC0YLzP z0&xHlPosw^TcT_kOoWG$2t*}7v_3S8j_NQinYsm;=KnNjJh&UcqA0jp7P15uWscTpW;$`SK$)M_HJ7Fa{5H;7^lkH2;$&Te7_ zW*X(HY;i_{QCK6NEN=%9i(g zzyGMU_HXZ9Lf}79v6MF748@%MzsL$xAg_REFevF@1hq!yuc1fjQ?QtTFB1n<3DO6M z6q_NldnYk*1S&cZ)doa!0MQfU2;qqeLqxEQ{NeIvX6yC#(bl^hj|LAM@H8Z)W`=f- zJu&zB!0sL4vt#}PzUqmV+zpY6X1b6}UqBa9nMAcc$H1w!S(IPQEyR1guOV%Bu15R*bpWm@Dy11$rZCa_bPU#0mky4r$0dz=RpZ-1ck zXrS?MV5H{xR|74t7f#f$kQR!VOf3LsfzODjf@PwX_^5wKcUA`mTE;Jh8r%I1p`m); zVdvh!o{I2L`{KM}0<-jG#mw@kS`uNY3`t~v7LTYKi6l`XJ0A2M2oJaUYrV}yPidYL zp`E7#JDU@!tx)QKsE~9_yvcH{;iFEo%|uz6<-1P;PGo)S#?{g|d)Z&V`JcFi|9gKd zp8xb{XUjjL8I$%Zvm&;!&gvjb=Kr~|44FgV5P$K~_1DjhU;1^ZYA|@V(p``JrGXg&TRJ_cVEy}*u#4|wmHu&NcPu8b%5#$^T@yG z0M!&Y68lnAGSpK@Y@#SEb^#f)YQjfPPaKgW zrM=J23AB{Q#M4Mp^nVer(s)vZEFdKR9@nV1Wy92xTqc2u3$-3(A4^%_X^OnI^Tj#i z?UBZoKxt2MpsYV|@nmqQUkdIU#gpM!p*#_lYN^uGRb>bjRk4rUtZCo>Nl(vylwhJL zXvW9AZ(sfM)t;{&PL6xpUB8STwhDPiRBbyl?Lw#)K~033MhL`9)K~&dz;@?VwxCvY zzrEPg6YjehINJI|c<9s`cl~KvqKHI|kObS~i^7eS3)~gc#z!NsU3hA_vpjsb%-`m^ z_++G_Dsr*YSu;LhZ?5>b`i--pKi)zK19k5NzU_COdYC*E*?S;7&=b6P(C!%tHy=?v zyCZD_(9J+UsBuK&X8{qCfskcD#8v3Grk73mX$-Yqqxq)EV7;b*^_psVYv9bAClB?V zJB6&s{^rHMM1Ft$4eykM|L$$L^6}^WmERz~;#hax7oWZD7o(d%Uy38TFpF-e(L>Vo z5}MgM*@1upJ^%_WWM~poiWtm11uz&mGJ9X-T#cvcKU3WGp}NuJ4WNRqu>VHK0Hr3= zPmNs??;rG^jboFbwE;tC?MacI9pinGqfMSZZ@atJTOB;ttGVl4y&EE(HM1RxElz}v z2c=Qu1@_*F8t?vXX~FYnmW+4P5yBpgV+Ih@ftbb2bG)3Bg>?yQPSyFH6GOHMj)J z>q+t2O>p{L_8P2UQCN?Gy9tZwB?@Q_up2%xrbm z8CyjTw9t~-`-x_V+SVM*dF1OC^KT zByIt~Y92-lxw%~4X0S(OUuGW5!(b>W&J>iFanZEZxX9RI6oT`O`7j-eID<6IYEZA5@di3f((#BfJ-MdOFW* zp!1BgCv;#eRK1-{cb;DzIe%I%4je0`3!{)hfR+I7cOZkHKs3OumO=)BmUuypVJAV1 zK?Z<{lqp(GF~}gO6iBKRGNdpZGbP2>#`5Sy?;r_lzZAG~9Oh!^* zs3XvJcnbv-07BSDmt|d+x z?{c1>IP2Q}jPq3J*u{zMDeg1=PH&U5JU`sLFMMv7zbwi98iBd`vPv4nAPTNy?62uV zWd9vn-xpW*z84Dv+W!Piay-N>4fj=!xA}$xUA>-R@4;f{Q0{!%_5`>Q08xHwdji}H zfTLLk8{h7WAwlc8H~rt4?Veq=AH?8%!WZA3o59~a{>_bVV(6j*F{v?4bapyOg_=z@ z>2AGs@ebOjn&^V#{wzIe~%>9KtS%wpd9-GfUoDX?qS_qzi^?i%6|+OdPajg8cG@vBQjRc zh5vFjx_X1{)hi=iL*cfX$%|5bEi+X1KLRI5d{vT3fitV3+qWG=JJ$ z>CK1Gn-8HkA0mkM#<4ojjW62FB}^}!Rh!TRRhPpNGAF9_X6@tZezn_S1duQ?_&_Q;{V?tShu_a67YSKZqK z9sTYzf!^v&=kb(f-m2>tI#^S}m20k^yZ8^fZiiz^X=v8Z<8OEGxDdW|^^c_}ssHf6 z-_5oL6#v8Jy4yFrk-v8%OKZRL4|mY>*o_I#UG~?n?7R|No^bU~KimQDWGOQx(tN@* z_EM<)gugV@v~QMw#CLG~w7=Qc>FfyZtqzx-1?5Ir#(yd_d@Q)V(|g(hhA4?ZR1zQm o`@eSIPPdq*$H%*`m3_3_V$udre)U0Y=NZ8t#y`2oW^$PRAAxAjGynhq diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.yaml deleted file mode 100644 index 65cf0b5a3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Deployment.yaml +++ /dev/null @@ -1,746 +0,0 @@ -apiVersion: apps/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 1173434715 - paused: true - progressDeadlineSeconds: 787287347 - replicas: -1978186127 - revisionHistoryLimit: -853633578 - rollbackTo: - revision: -9097966625998465286 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: 闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -882790979 - collisionCount: 1813037030 - conditions: - - lastTransitionTime: "2682-02-22T19:36:37Z" - lastUpdateTime: "2811-10-04T08:41:37Z" - message: "347" - reason: "346" - status: ɩ繞怨Ǫ - type: 雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ - observedGeneration: -5913324997018604801 - readyReplicas: -1159900491 - replicas: -1158620766 - unavailableReplicas: -1006636575 - updatedReplicas: 1221768764 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.json deleted file mode 100644 index 8d2b643ff..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "DeploymentRollback", - "apiVersion": "apps/v1beta1", - "name": "2", - "updatedAnnotations": { - "3": "4" - }, - "rollbackTo": { - "revision": 4518808233936994290 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.DeploymentRollback.pb deleted file mode 100644 index 5a9f4672c3b708d8299d39bda8dbcfd21fa92859..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 69 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-A^a!D=7$*;^!%_|AY&&f$jOwJY(=VCMxV&h^o Y7GgA!;^O%9f7AY3Els!Wq!^SK0K)1N7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5(^0b%8sr0|NsC00U8+ytnP}$ b|NsC0{{a#R3IZ}T5&|+c8Uivl8UP{ypD1R` diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.after_roundtrip.yaml deleted file mode 100644 index f3bdf6720..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.after_roundtrip.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1beta1 -kind: Scale -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - replicas: -2052872833 -status: - replicas: -125651156 - selector: - "24": "25" - targetSelector: "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.json deleted file mode 100644 index 8a42011e1..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.Scale.pb deleted file mode 100644 index 331be8c0b4d4157c7a268000cffaa05b1a97077e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 293 zcmd0{C}!Xi<>E;!C@9u1GfYY?Ni-B<4NgwXNfl~l;<~}e#b_kNXe`BOqQq#brF5kA z<>Kxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b--Da0Ve&GG+K n-`XGlfq+p;l4H%gt|K7!e@37hCLcRCL=Q`1|T&kj_8oUyE28Fdt-0Rb9==6XR8&$L?1%&Ug-*oHt^4`v^?oF?2Kg#TJs@vn#xnu5ar^ClL*4$&xIp!E+ zjyc9ZXQsN#L{Fpd+K`>SYgQhgnx3leCwjDa=rUl@jfg z6lZr9hguFfJ9Z@aPnB&@gQpL_GiahujL`MjYIq%32hc;B`k{1 zQuZK4WD&P~?TVyTtJp-$^6WBpD_YO$ED}YQO=ER^GxN|Qqzfnu=}6awTm-z8y3Q(V z(c10$B4&)DUy)Q^-X>`%ZMTZxZwo>aQgZ}36(LST2n#5e*R~-+LMV;R+b;7kNZhms zA?QR3`DnWkhjOK@85kj+%iaOM6kubNp1B!u3ZFV_eZrcZ8`BVGL5qd@>O5V?^3rvn z!0n0KbCzUTl|A|%eLJU1I}))DV)f;0qR#3YWL8U!&q#}B5i9BJ5*1WObC=|U6(C6G zW$Q^h?VxD0z%gclx0(fPHw!}CLoWn}n_qc6G}4{!Z8ruQ#hH(+@^vQ{IF9(s`Y|IY zf+Av7mU$Kau_$qB=MR_8U%OV^#lyDm-}hDNxBELrKcG^gL9_&-Qg&-^llj)4Yd=(Up-{(%8suVaAuJsq?C z(O^wyrp+}R>_3+gC_KpAPDja@w>|)a1;#9imM6f+rOP z+lpF$8jV;V^UY^(eGzGvQ4f)kIHvS$;G2jWt?*j_U&2SMqV6Ky5)mX@OvkB5X^_Tq z3iAN@sD!UszWJ(~xDpPu<>L=44a#O}rtXJ+o+!ZcAdts)AVNDejj%<+mcT^#$ZT7>F<%h&T_3 zlmJ9tNxe%|QS^Qa@-rEXMJ9%Ph&Qlo2~NEBVU*3p@boOgRhaO?#3eZ5e>k?VTG;=P zf^BtIe7EA)8j&a9uslH^!$eDY&7~W++e{GJ@KcI;zx$Vunk&D1Z=3@E335zP@CFH86rGC~?=Q>Ez4Dn1C-~J5dRa4-hdjLShb2rK2!pY#@pih-wF- z#YJJvVFkJ{A2a-)S3WmeuD6af-)5iguda62#wVu-4vapwXn}EXZ}7sXui9Ha*_5>< zRNP1=;@L~dL?RO_)@Ny06=QG&#u@{Gh>0U`#1V?ZS??y^#9%!TI6C%Qzac8H08ue- zHe`sYfrfo*=wdBN1FFh1kJ5ig@r^lK{9T6})v~A0Xgg`tA2)_87QAXSUCy1XVBlED zLISY>oCQ9^f&!KaYTR_+kme{i`kN-k1NE)G+Q3ka_qgM*ai};r)Vd-&AHyguDW6^) zR!hVTks%7q9nlnVBNjzMB>Vl|>fogoU!|up?+Mj?CUBtLIM5hJY!!*+q5_AGjyAnJLlx^Q%fB5&P*#CKdG@ASLWLwkU!Y3x>ReDWiVU5v1 zmc;#IVF^wShE06%h3l7lCdQu$lnwYVl(=e;ugEyj^;~#qvbk6itugek>OxusjvTY^ z=BJ)Wy0o+hy`7QOY@_`hZYs9T^G-B(wdd^k?Wvb2dR=&Z$eT}-_0`|j*I<2_vs<0j zp~}t~#`!|`Y1c({jV*ZS>>fwY(ga^+SO>_iFb@Bd4vUWx*I~T9e94>L~E$N$tdbdF!uEsW3T&%`b7Vc z5i}FF719${h?WZ3T}6UWQDocj&5G8epLBH{rD9D4<;?lG`|YcrUG4gIT0+#5u9_sW z*$SLHtf+;Qsg$BBDaeVC(=dj32^)){2v~15r5LK2y4RNP?h5vf87G?`3l5#z;HqgS zDGH0k2$8qWSRSk|S?VgDH8B!;?cx)w9s7gF_xW0!V~>Z5%R*yqj*5wXTVwIZY=6}|#!r2YbJOqxp~Ka|{x1L6F`Iih*my#A9}KnhLp1~aAje^qn+JqX0D_Z% z2urqINCm7F(K0_#;7tXGwoxBAb&`FdS%&pFCM+1?!cGW6%`Z+ISw{kQJg z4?q5*ujB`cD?Zg(_4Vg(`-Jc!P?w^x#?K=Qs$`Q?t$>_t4ezCZ0v-SgC1hwST}07{ zeuB1=UWvIo)KlSZ_}4^NO`vKdVGF3B$;`iyK0u)fg72;z4Q@IG(v{vchw8Pl|u={K|<= z(u0|kQFK2=pQY#(^s}6_EdyyHQX%nfkuv2SGT_3TT*S@F01U>;i|1l_KH9}5W}q}A z>LNmb?NUT`*<2w$d9lFU#UT~3%YnNo2?6ag1&mLrb$bd&QD@@A+(7l{{?w4M`tAz&#oad*)_=wC=CZtfFk<8RP^DG zI>K-TF!L3P+z0m1X;?;?D%uFJ6yfxoO)rc5#to^i{HECC_JBWxKvxU_lEtfw>o}x}fgfhS;p# z?5>4N#d*w9`pGnQ`7TAzVOQ!fE}msGwdE?H*$q14l5{pj*O%p~I=ccq0=fGZ3ci2& zx)oWQ^pr$!4njNGg#dFQY6Mb-1YWgPM$zw5w2Oip!S7eFYqt?JoymeTH>1S_iDzqY zA7Gy1VYZ+z)4^;#53^D>EV3T4`I~i=s&3F_o#j@EI;)E8Qh?DM^yadQ*z6r(kHEZ4 zKb(!gP@JF6%P*t6S?f`ro}=f2^YtY#90@3mF#}|OHf=4^ccE=LbJ^!49RWN~=F!fz zFihuUHho8?v`|MPV%NnZHj`D@tvY&6-OlQ}6L_?B(cE=l7lyMXKvBF%Mc@3$_&Jh` z894kWDf)R@jMw#KHn~8T+4urIS!Z|Zd7wqQjudsfE~l_8&+AI|ItZn0%eL-jSvFtK zU}g#uD{@Ks;^qY`iL%{tS}Izm5LcnaI?kM*y;|oXk55lS>r&8eP?uc~p32fCxc;r% ziiDNi zC4daP1dxG;OC=ObUgl$3Kks`Z%JR41jb4BZ@u8+mM%Q_x?YyHaP(2zbFT}GQgX=?s z?NYvRs)$SsLk1p70<>>I2403}fLkkp3_MBkyb{4qybys5022vQu$Ur{fmaBSR0w29 zq*?lrL~nz8P;{Pi9&|MYPmcR)z59ZFy`jqDV9EKkcw^|S(Q-V8015yh%tQ2jyRw31 zr&c-kdq=!wPdw}HH2ThxUQOW=pc3+m97a)q;-Rg^Ju=bZ7@WM|EPTpwE^umWvM|wg z-q+@7aO~e1Y&;U|DfR7(cfE#Ttd>+lf*3@>^^19id<5nmD1Bdlc=)|Y7?AqMtD^k@ zc2%&qWTM4;$>`{IU-BHwcMN4MA!Uz;8vzjcx3b5>%>X!R%s~Cyy%8j6>3P%lv)Se@ zt^AJ&oR9tbr=B_7&C@^J_#uKWiYYodqKU@L2C0yD`$Q9sx8IxL?sC@p zN9$9JgU9_fhq=eYT4==Ons5u+balQyNfBtnYhp}E`@m2{hNbeYpKsm*7*#*HCw~sF z9qYYz{K9SA=XDkBQK>Z)JvXcer2j{W9`dg+gV#t*X%JJsbMqr>lH$d2zgdnUp#ujq zE5jw06BrR{0w;#?gy;0+^$4EeBzugrZISbApr_tZ=&ACJPgaEy1V`{0_bWcT(R8eG zY8an!Y6kGNos8>}=BZh>%vu~^{=KyYwG=JT7Wc(JI_sU?{?_ufp^l+oOU2CP z$=;?p3iCVT^ZI!m6nIl3I@CpxZQ>~h!pPc;S(R{Dm+ zxP#o9FfWC1hpCdH!nlJ6q!k7my!;Q`!OLOXVdGunfySZWnTq^$Pl=-~celUwM6&x( z3h%n$JQ_Gr7KS0bN)DRJw^62E3PbG_WaeIf+0c$Pn^L?Z#--kE!Se@5f(A4lZR|hj zJLhjIjJKgR~{kZdx`_e1^;!%G`QSe}I@X&!^SB?KjSE#5mU3|=W#NSxsKU3+iY0UbR z$d|M9f%@h#|8!P|-2Lf>63`;8YDZUW3#E7fw}B z)PsAwFC6=>u;D>?3F+Tk^P~T--+ob$LKK6y2_QH%+$Ks&V#X7MPk@D_*dJVAjFlS4 znvl_a+R+xcP_)pfJCKCqpi>IJfW&O!^*riodGG-&PoY=K%C{FC8te5B2pX_)dqDkV>pkuzd?Xot~D%W{S#kcoSQ& z2j02zH?lieRp&UC(-RpJvxuI)a#P}NC;@AAc4ZcN4j#31wg4(0R4}A3LP_D0Hhr_M zi%X#l$|_RkZcWm4`08l=0<=nl(#L}(ihv*7vS6awJ#Mu3zbv_ny%)XJzL7xr;Ou+A zB$96hg_JdT-sppCvC(llaB$qHy6749Up^WdJml{$HfjbRbC+&sW_X%IW2XYAx*V_j z+xwh#&uk0~9nPF+4wj#BH+z~UE(eMRtuyFpx&EGtZLY)e#DMSUOWwMt)E5KeC)Nb( zOC6WVoettIfu8Owni%%<1kMgl9t|~}O!p7B1P-3*(>n_A+-Y@i(7xbp$#K ztTXm#9b>XbM-P26d2UJ!JY@**00KlMEe%uiXJdLsivMg$XuS4?z_Esjc30Jt z!QqiVh6WF83N)S#p6d(L9Tp#B?uR z6zyx7YVn@A@>wL|+FlzRuACbC-CKVtjATJr7T$h<@bQj`|NAJC{*%_y4>@b+I4-zG z{m0L{j|M7BT<1cUj|STdU7dDcEAz0UE;v#h8m%-2dW;KQj)qmC`h&5dx+-_6yDwN- Z;VJ_=Js;Kv62MLnPQnl#luUNh{{tW=kOlw% diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml deleted file mode 100644 index 5aeb5d6f8..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.after_roundtrip.yaml +++ /dev/null @@ -1,801 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "379" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "353": "354" - clusterName: "359" - creationTimestamp: null - deletionGracePeriodSeconds: 8854032467905298740 - finalizers: - - "358" - generateName: "347" - generation: 1599344877585039625 - labels: - "351": "352" - managedFields: - - apiVersion: "361" - manager: "360" - name: "346" - namespace: "348" - ownerReferences: - - apiVersion: "355" - blockOwnerDeletion: false - controller: false - kind: "356" - name: "357" - uid: D很唟-墡è箁E嗆R2 - resourceVersion: "15930892079168115837" - selfLink: "349" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "374" - kind: "375" - name: "376" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "373" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "372" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "378" - reason: "377" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: -1147281085 - conditions: - - lastTransitionTime: "2606-05-01T09:09:27Z" - message: "383" - reason: "382" - status: ×軓鼐嵱宯ÙQ阉(闒ƈƳ萎Ŋ - type: Ė@îż暬Ƒ琇ũ齑誀ŭ"ɦ - currentReplicas: 1913559840 - currentRevision: "380" - observedGeneration: -5753617402405166224 - readyReplicas: -1653255608 - replicas: 1952497813 - updateRevision: "381" - updatedReplicas: -803838090 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.json deleted file mode 100644 index 3f6e84fb6..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.json +++ /dev/null @@ -1,1182 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "346", - "generateName": "347", - "namespace": "348", - "selfLink": "349", - "resourceVersion": "15930892079168115837", - "generation": 1599344877585039625, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 8854032467905298740, - "labels": { - "351": "352" - }, - "annotations": { - "353": "354" - }, - "ownerReferences": [ - { - "apiVersion": "355", - "kind": "356", - "name": "357", - "uid": "D很唟-墡è箁E嗆R2", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "358" - ], - "clusterName": "359", - "managedFields": [ - { - "manager": "360", - "apiVersion": "361", - "fields": {"362":{"363":null}} - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "372", - "storageClassName": "373", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "374", - "kind": "375", - "name": "376" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "377", - "message": "378" - } - ] - } - } - ], - "serviceName": "379", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": -5753617402405166224, - "replicas": 1952497813, - "readyReplicas": -1653255608, - "currentReplicas": 1913559840, - "updatedReplicas": -803838090, - "currentRevision": "380", - "updateRevision": "381", - "collisionCount": -1147281085, - "conditions": [ - { - "type": "Ė@îż暬Ƒ琇ũ齑誀ŭ\"ɦ", - "status": "×軓鼐嵱宯ÙQ阉(闒ƈƳ萎Ŋ", - "lastTransitionTime": "2606-05-01T09:09:27Z", - "reason": "382", - "message": "383" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.pb deleted file mode 100644 index 7036d4a843ea33a4b18d1dc8cb795a6d59851b63..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5762 zcmYjV3s_avw%%(~N~>T&nk_8oUyE28Fdt-0Rb9==6XR8&$L?1%&Ug-*oHt^4`v|?oDrNKg#TJs@vn#xnu5ar^ClL*4$&xIp!E+ zjyc9ZXQsN#L{Fpd+K`>SYgQhgnx3{gWHrmW%tC<(tTZ z2yNpKzehrwg;@!U;6rY%38E`yS|7Sqv%&8m6x|k8cN%(BKX^akc8A6K~6=8(-6V}%H_3f zNRSXpWAnDlJPZ;y?Li1SkwQM&F2tc+X=?^Xi086*z%K>Z7^P=!Mx4T@&RUn;`W>+Syp9_zDM8A>C%owtb zI=e&#)zRD~`CtVI(s|k1X{X<#XtTgEW`Vbw1#CA9Lfk_y1c#enc|0`Io$hTn1{%eg zkF4@_Cl@%5_{;h+BPfC*VpW!T75=d(acbuem(E|mUfjh)80_EoRq40;J4QdCQlde$ z1fu0s(o&$MW?l;r zrqD6azzn^1vcf+w;Olh^Fu$W?wm%xI>CCjbhJ*d*G6IDMncL|o8S~Z$V6ecLCDHQ5 z#Qw6M!eL~i?1T-bNV4VQhVMO*=(3sO?gBR0C8<`kq~S+tv&=E~0p%I9j4j{)Qu6JO zVF{LNV}0NK5)o#aO~VLSLl!Njd2!GN!Ln=#m3q6(cC)O+nPrtT%{I&098=P5v{~WS znNrOPp8)d|%$OCyLM1`GD`E_l0w+s>`HE~cD~jE$sBvaR!)BG64Kr1K4wY(!FU(Q} zE8&PXDh_r-g*mF60j^O&e^s?mcG9cuw9sY^!a;*@&>$Q%ArAPO$Wa9_OM_XOyqD7G zC*g+z4mWEmur%wvbQI5V3=rN5o>UZUD{B2|G-7?sH=n)rMWk6qJw!(0n9{R>Zz68A z!fye52_LbFx{Gv6M38JT9j6|pK^o5~%md`3624~n=BsYvN;u$_kFHi4l+Dyk-4Fdd zQGn+`Adl@pgm!8gVT*(uEEaL#+)twu0xJ$ z+0$pVoiyr?8^aX~UNxF7=T25Ia4cjYfmi^}0-s?)0m}q6Zn|$sbCetXO%vmR`c_|U zV5r7>+;P}AR2&>?U6GxSVU(7XPp=NEC1Qri5C!IrXo|QIiy|SC{eEwC@KTGf($kpt zgz7#MIM8k!XpAGaLaGCzz@ej~O)=MNKWsBwO@yV!{QR-upe%3QxKFN@asOCYf|G+`6CZrxlgm95Tm07u)fUMt!P~G7CdxzkE3U4g0C{H17uei zhyO_j$fm#%nHR#6A)ms*#sf68C8e{1e5{??N-9T!+{Met<% zP;*ht6$q)wGiog+*e7$XjPD57w6~brsK=7zw?0@rl)r{lVk= zd@atg$3w+sp|Lhc#YDfYvG}9%H!cMJ`ztE8zv><1r#{EIY50NA;p$+2mw)V-%{?4! zJR!RehFbcent^_h2+SRacF(drPRTV!mCr zMhQ^yAT2H3A-jpq)&)I5Up-gTq$Nw|C$YN_+QgFof;^a` zvl5DD*ASWPnq&r)h65--5&d5(`tXMxVYmVq`U*vRDS8i`hGmqgqKyDk5l+w9^s>lr z+<*#@v>E4b+zz|XW^O<-68OysxZ9DCS|Eeg0K4HQg7dQrWoy7d+t9|;jhPZaVI^x; z@_d$6w(GkE7PL?kn0v9R3+nD|h|Su~?pnB1oX0GspG;$y?^5&}cBKyE;#oFRTdo4S z-Jl~bNoP}ZeOaEWvn#+Okh^c8;`^7cTamR%Pe}ylAheTR2(TBTMj&NK;8km76#Xtm zyC}FJ{B8xib{j$0nJhSSGg?fLdA0`k1Li3nW()c<9n9AAFe_!lBI^;Gzgb7A>IPlb zS#Fi6v#Q801z62NZ!Wut&E5g_2+Yg$!`TQ7#rf&H{4&a$wI1c^IeIQQUta>lk$}<| zGeG!f)7Bz=7uuFHmwiss5y16i9_?HU!*ot&(|2S_3w0zSc3nJTGg*b*s-x%B?X12# zfk#^x&0Pm}VK`d?6vc~F^vw^ApCh@Lfx~~2qMxV5cwJ9slM8g2jW5uXb#|wo2U?`- zNKv=zath1xysl)ggHYPGZ0l~8W%Kn6W~LyqBA1jeZeGBWDBCTkrJ`jDaTQvu*2bsNLZP#qn*m;U-#s`HSC;AMygxYZKKz>^fu zD-rC(3lYcwFp)3?izxybc!dB-g+PWxnx!8}^ftH$Mdvx^L041o%c0 zmYh$EH-^p{Eyr^Rpa2lUJVf8OD=S!bYL#QZcf?!v#Ix>Bqwg%~)f6rPDj~1PVH5=@ z9@=W$BNH8t!O08G!lxYP0;k3%3lm-EeQllw$Nrtc#v{R=Qs2IK*J~KYYDpy|h(Q!w z$CzixM_}%O()ab%!|z4HfYd);73~kOtAf2H6D{6LMn|{%lIK{yV<>A0DSJHJ2!P1H zl|3GA2Eb8c2I}ALjUYiw&zruV%{F&w<$p%teC*dh^~~XJp8ny+4-s@xOwq{^O*CdU zNQInDH0f;qYU~!;Cz@!y{oV|Bm$TMCTAyMZJnpYK%sn2~LL)BMgj>+2tMm0qia;A) z6Jtu+2ZkatER}EleDfB-sQSr0`Ez*fSnu`Y7jEM|ud8T}O0A*jxnVsZ{Xa_dkbi|4 zyhdV5gP8K2n;%(|6fchZ&2kJ09XOa-87{G$z=%*2I5CVTJf|l=iQoxNvd1{v7CFxb zdg>j8o+{t?WK|eJa0H)mzv8nSO~)#yhVdDvW&mH?$+#|Qo|KF>PRLoqS>}{H(F#l@2KI|IH?jW}&%u8Y1VXCC4Fz(<1X@$WCFaHB~@NyV; z*m&1?pm8X8rXoMxQ{rgL-R*BZk?cN{!n-awj|NVZg<%MG{OJGdw_g;b5XIna z0tikGw~3OHnDGSR6JQ}J_6HXjW2MHiCS)|9cC-a96fHFB4kY0?=#;{*BG6C^fM{iu z4d%hi0~{?u=HnQ+&p-piPC+6SV9QL*I~0BAO2?qPJXF&cI#bWgr0=1p_^Vp{ZH3{N z55QCR($V7jP+xC??{qjVsl+}7+qclu>1jD^rl>53SF;6s;3X`7BfEoDb&g{>JrSfY zqNlIil(-v;!djhOnT4K%XD^*CfLaJO4e5(eQn<)X->mE6QYehFij=uqlXM-vI$FN~ ztidWQX%kA?;h`TL8Fn!(51rQ4Yqp61Zlslcf&$Ls#~K4;xC8v{d!GbfsZ9wzo%lG>##gA;5+(~x9%zR#lZN9HNpB)$7OQMgGfxEr~8T~hCMxj zvxAdILro{s{lhJRLoNROE-nC#KfLmy9` zn-T+$8v;Cu08vRx!_@rQn4Xd1KU)$SuYDnKtYMUj*9M0x zr^bHw)}IR_c@dU{*B~H#ykp}3K8zHEq_y-z&e}PS3$9WB@$>GZfyxrsxzOdK!S+H| zr`^}eJnX0oj#P(6D~*93<3g9CVO6O9U~H(a%3bR23szRR%D_&~)!IM;*a^Z(V8RoV H$!_|890Zjk diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.yaml deleted file mode 100644 index 00f73f3b3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta1.StatefulSet.yaml +++ /dev/null @@ -1,810 +0,0 @@ -apiVersion: apps/v1beta1 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "379" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "353": "354" - clusterName: "359" - creationTimestamp: null - deletionGracePeriodSeconds: 8854032467905298740 - finalizers: - - "358" - generateName: "347" - generation: 1599344877585039625 - labels: - "351": "352" - managedFields: - - apiVersion: "361" - fields: - "362": - "363": null - manager: "360" - name: "346" - namespace: "348" - ownerReferences: - - apiVersion: "355" - blockOwnerDeletion: false - controller: false - kind: "356" - name: "357" - uid: D很唟-墡è箁E嗆R2 - resourceVersion: "15930892079168115837" - selfLink: "349" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "374" - kind: "375" - name: "376" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "373" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "372" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "378" - reason: "377" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: -1147281085 - conditions: - - lastTransitionTime: "2606-05-01T09:09:27Z" - message: "383" - reason: "382" - status: ×軓鼐嵱宯ÙQ阉(闒ƈƳ萎Ŋ - type: Ė@îż暬Ƒ琇ũ齑誀ŭ"ɦ - currentReplicas: 1913559840 - currentRevision: "380" - observedGeneration: -5753617402405166224 - readyReplicas: -1653255608 - replicas: 1952497813 - updateRevision: "381" - updatedReplicas: -803838090 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.json deleted file mode 100644 index a09016f5b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "ControllerRevision", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}, - "revision": 1089963290653861247 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.after_roundtrip.pb deleted file mode 100644 index 4e46d7c614b996042eaec3f8c6f5fafb112fc68f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 362 zcmd0{C}!YN;^IjxC@9u1GfYY?Ni-4?a?Z~yDay~uNi7OWEz2y<%+C|r&BS$rk&Dqt zh|ySz(L{;SR7>ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iL% zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiurn6cjMNO#!NB|B1$L=4R= z%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7`RC^BW{hIvVl)?Gv`Av- zVzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF4GkD97>k$;O{$m-O}iLv zflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zRbNZ3CSfFXVp(ElPGV9{DoCPM;{U0> PwJ&~6nZPf_pu_+GQX_<% diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.yaml deleted file mode 100644 index 186ddf8fc..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ControllerRevision.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: apps/v1beta2 -data: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -kind: ControllerRevision -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -revision: 1089963290653861247 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.json deleted file mode 100644 index ee678f506..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.json +++ /dev/null @@ -1,1078 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217" - }, - "runAsUser": 6743064379422188907, - "runAsGroup": 3541984878507294780, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "Rƥ贫d飼$俊跾|@?鷅b" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": -1167973499, - "containerPort": 692541847, - "protocol": "Gưoɘ檲ɨ銦妰黖ȓƇ", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": true - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "385" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": false - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "鎷卩蝾H": "824" - }, - "requests": { - "蕵ɢ": "684" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "2:öY鶪5w垁鷌辪虽U珝Żwʮ馜üN", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": "246", - "host": "247", - "scheme": "}", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": "250", - "host": "251" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "readinessProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": "254", - "host": "255", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": -289900366, - "host": "258" - }, - "initialDelaySeconds": 559781916, - "timeoutSeconds": -1703360754, - "periodSeconds": -1569009987, - "successThreshold": -1053603859, - "failureThreshold": 1471432155 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "259" - ] - }, - "httpGet": { - "path": "260", - "port": "261", - "host": "262", - "scheme": ":贅wE@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - } - }, - "preStop": { - "exec": { - "command": [ - "267" - ] - }, - "httpGet": { - "path": "268", - "port": -1718681455, - "host": "269", - "scheme": "*ʙ嫙\u0026蒒5靇C'ɵK.", - "httpHeaders": [ - { - "name": "270", - "value": "271" - } - ] - }, - "tcpSocket": { - "port": "272", - "host": "273" - } - } - }, - "terminationMessagePath": "274", - "terminationMessagePolicy": "£ȹ嫰ƹǔw÷nI粛E煹", - "imagePullPolicy": "ȃv渟7", - "securityContext": { - "capabilities": { - "add": [ - "djƯĖ漘Z剚敍0)鈼¬麄p呝TG;邪" - ], - "drop": [ - "mɩC[ó瓧" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "275", - "role": "276", - "type": "277", - "level": "278" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "279", - "gmsaCredentialSpec": "280" - }, - "runAsUser": -6244232606031635964, - "runAsGroup": -2537458620093904059, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "ɟ踡肒Ao/樝fw[Řż丩Ž" - }, - "stdinOnce": true - } - ], - "restartPolicy": "ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ", - "terminationGracePeriodSeconds": 1221494839594199191, - "activeDeadlineSeconds": -1172377136758373368, - "dnsPolicy": "Ndǂ\u003e5姣\u003e懔%熷谟þ蛯ɰ", - "nodeSelector": { - "281": "282" - }, - "serviceAccountName": "283", - "serviceAccount": "284", - "automountServiceAccountToken": true, - "nodeName": "285", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "286", - "role": "287", - "type": "288", - "level": "289" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "290", - "gmsaCredentialSpec": "291" - }, - "runAsUser": 5824892309487369487, - "runAsGroup": 6134106493278592168, - "runAsNonRoot": true, - "supplementalGroups": [ - -4964947941541214699 - ], - "fsGroup": -3979882341327374195, - "sysctls": [ - { - "name": "292", - "value": "293" - } - ] - }, - "imagePullSecrets": [ - { - "name": "294" - } - ], - "hostname": "295", - "subdomain": "296", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "297", - "operator": "t莭琽§ć\\ ïì", - "values": [ - "298" - ] - } - ], - "matchFields": [ - { - "key": "299", - "operator": "ȿ0矀Kʝ", - "values": [ - "300" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1281792166, - "preference": { - "matchExpressions": [ - { - "key": "301", - "operator": "", - "values": [ - "302" - ] - } - ], - "matchFields": [ - { - "key": "303", - "operator": "粕擓ƖHVe熼'FD", - "values": [ - "304" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "q1d---x/31..jtFe8b_A_..P1s-V.9.4..9..cu": "i.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_m" - }, - "matchExpressions": [ - { - "key": "x4--s--xu-d42--clo90---461v-07r--0---8-30iu/V18_...E.-2D", - "operator": "NotIn", - "values": [ - "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - ] - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1129218498, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1py_8-3..s._.x.2K_q": "N0S-CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.3" - }, - "matchExpressions": [ - { - "key": "b-skj5---r-q34cshj3zi-1-w/F---.M.U_-m.-P.yP9S--858LI__.8____rO-S-P_-...0c.-p", - "operator": "In", - "values": [ - "9F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..M" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "1j2--a.pp9-8--m-cbck561-72-l84--162-gk2-99v2xu-3po4--3os1-5-ufkr-x0/3G.b_9_1o.w_aI._31-_I-A-_3bz._8MU": "P_3..H..k9M86.9a_-0R_.ZI" - }, - "matchExpressions": [ - { - "key": "8-e-l203-8sln7-3x-b--55039780bdw0-1-47rrw8-5ts-7-b-p-5-5wmi-40.k5p-26-u5wg-gb8a-6-80-4-6849--w-0-2u/8_.O_..8n.--z_-..6W.VK.sTt.-X", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1262074531, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "1.O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.C.-e16O": "5Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-Wo" - }, - "matchExpressions": [ - { - "key": "3zHw.H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7X", - "operator": "In", - "values": [ - "T.miw_7a_...8-_0__5HG2_5XOAX.gUqV22-4-ye52yQh7.6l" - ] - } - ] - }, - "namespaces": [ - "335" - ], - "topologyKey": "336" - } - } - ] - } - }, - "schedulerName": "337", - "tolerations": [ - { - "key": "338", - "operator": "Uȍ", - "value": "339", - "effect": "^\u003cu綡Ţ搯唧", - "tolerationSeconds": 5874355269862618775 - } - ], - "hostAliases": [ - { - "ip": "340", - "hostnames": [ - "341" - ] - } - ], - "priorityClassName": "342", - "priority": -1662855542, - "dnsConfig": { - "nameservers": [ - "343" - ], - "searches": [ - "344" - ], - "options": [ - { - "name": "345", - "value": "346" - } - ] - }, - "readinessGates": [ - { - "conditionType": "l=ƈư呄" - } - ], - "runtimeClassName": "347", - "enableServiceLinks": true, - "preemptionPolicy": "ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ" - } - }, - "updateStrategy": { - "type": "丑ť竹ɁøCSɛĭ楿", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1238814605, - "revisionHistoryLimit": -20831990 - }, - "status": { - "currentNumberScheduled": -258261674, - "numberMisscheduled": -555161071, - "desiredNumberScheduled": 574445425, - "numberReady": 315650291, - "observedGeneration": -8643620228921243425, - "updatedNumberScheduled": -2079336554, - "numberAvailable": -217444218, - "numberUnavailable": 165914231, - "collisionCount": 279165516, - "conditions": [ - { - "type": "疾4姺剟ź魊塾ɖ$rolȋɶuɋ", - "status": "7Ƕg續", - "lastTransitionTime": "2292-08-23T15:17:28Z", - "reason": "348", - "message": "349" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.DaemonSet.after_roundtrip.pb deleted file mode 100644 index 7eef9b3931e4c9c1b8ec83ca57b4c8ec0849610a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4942 zcmYjV3v^V~)t)m5gj?$$uiB2|>T)_Frjc`U&$(}W@g{%}o*|~Sw|N=JgM>*S5Zko~ zuY@E#0wjb-K;Y+<00{vh5C}DyNoJ zoqhKH&J-IJHsN96-kkFCinJ9px1chIiK8ax6qJ@NonKHX9vdV0k${+pWG7PGNKJKn z*T)VucsrKO2=A-UF`@@H{my$V&`P4Motn2HGxXm*1?)kpnVP~>NmmTn&{R!gvT0oZ zY|Wo*8ur$dPqfWBS@-JN_4}{x?M2xm1f+||$Q>ylQ?yg5$R*e*bK0rwzHf4MsCS3I z_T>s+{ot1JR6C`T%|ISIRjTb&tw$JGHSw3Rt@WWD^|3>{eEaai(B88H=X25mJN^)E zs!0i7*y-KyB1qGjO$_@`0f?_V!SLN%9x=h0HKZcn?WvrAe#|G9siXtibD$Eob zc?=huX|q?7Y2pZJ7Fk6K#TSJ!nnA4Gxm5(`Pt)=+(J;1F5{#v)((Gbt!K7Sa;fbPs z`ch}w0#9B(W&~T-6l?wp%VOHhENh-cFqvJsm{=Ikx0J~fEUa3fe=ZaM^-JLt66~@h z+GXmr%gk+;<5pBS%LSVfv;r$VUU8Ul+5yDU5 zg^43A?}_Nf!%vI%3rW7(C%pT-U8&-5VVGvB&WC_Q7VWCyxb~;Ix4-!h{2`akoeaZZ zlBzjYw_j}>;X{yn6(@E@jzr?K+(Si*+X2b=hH? z2hQk9vMn1_>L5hdoOWGz+jS$=uA9tmNaJ9oLC2$9Cp=-5Av^hq0!BkT4OnAnMc|MD z<{O3sx%sT=aR_!3Hr9lVHDO~-ITglDMMBlE%7j&>wgwr(lklO7e8_+y)0r#`qmm>7 zpW%-4`;`27Lv!fc_-j4-IcH?aO}p;wMoxH@!5(-h+hD`ssd5pT1MNmn z3a}Sc(#41P!{Fnlg@fK;(Ax2p?AXunHc+ zLrVpsGayDc8qH@-m}Qdlr=jM3q4RAsB9~4L?al>OMpJCe9z1ao3Bbk}XOsKmRzflk zqq5C9hV97FPQyhPJ z@7;BYta2eYkD{z5cU}$O30`YGbdU#M){@_D{&3%S@vV6uIe9~K`>pYB9nRY0!UKX3+k8H>>3FoQFP)!r1Hun%(dJhJ z2jl17P-Z;Cg&5pV=m+3}BBegg#toc%A$G1^tqSd{iJfnZ_O(ZMU0xX3(&p=}3Z9A` z**kD)HUnNduR?e(ZU+<|$StO*;;1APm!@bSQqkS$52@S}h5M!OWAi2KP zHOz7O&Kut*V&!W4>c&yNLH|K1twVd?NE|82+yC#+6QkJ`!sNJ8C~1#@XxNw^WGbLk zRo%9@PL&5k)tx^R{wv9r-2KIk+X-1t8y`24_jdiW-tO4E`5)Kr9;?f3x3=F&X#RA| z8ygenPP*Rk*5%>3-AKqxXf?&BKr58J@3m@h0-46#j&aem>#L@W_qSB^cMO~hp7O4K zdf<3uUtioBsDi+y{3rrY3t>bPv*L0!UF4gg86vl~spit_cT=73jb^$ZObzY|b?h1w z-L_4Qwbf2~BJk==5|^y=Nb2-QlA&nAh+G6j@r?AZT@mituUBtH0ux5(7Y%lLTf&!G zvqKwqhnqJ^zlzme>OT>?xUM|Z)V5&SQ?WJeqEH$*KIzv3XCm8=CL<@*8U{5N2;Wqw zx0{o2>+ zyL7YXxbN~jo(?)x5N1fLk*yA)t;n{U7cMwB;;48mmjV4n z^1H3j;OIwwBpthOWZUVEQ(G6tm6+TSQ=Z5bLQ?`l ztNAfEl{E+`z$>8IHuP1JuuL!nP51?$)W!QNqnl4gwqEW(>aG2aYoK%B1Q-F03ThxT zO>va}iWJ$udSsW?w!8o^5zln@F=Ex=eUEwW59i^yUP5}wb+6~#py=X&rmS;?zdTqIX7!4y}e zO@%>VTWH}@g6EJ`bIkb=2-SFgI#^|Jt2`NaKAsadM#>|&JPvlTIn|nkJ(crcAP{^u zRR@C$2+8mOpPZ3iSV^pf1h2F_lVHPU@qj=(lK~%Wy+=4=7k1eNFspzT!CvH$@^TYm zk4tf0ZeFpfQLHmuV!)13jp4##hD~z?gRPUx%V1D0tDsoL%U>$?;FVIEJdNa9rbWw0 zm6bCc06E3hbUXoDa&9%Tj9Cjs#~cgdmrh8rIm^(9nPXuIV0rd*aT@|N3|xRqm?UGP zqGYL#<&`)W!lz0Aunj3Uze<8QDZ0l~Wni_k0_!kc4*J!q(j{1tNU>UunTD6ERfV`P z*T}&dHYBWI%}`8?t01x1@-#@O49F>CDcl{Zc__6-By%RISWroDmU!>vvVsc8vneZ= zR8&H&7#wyPTJ}wpbm(^Yy?ey#NVtlGmxQqt(t2VxEXS10#}j3XeT@X zO>_!^fU-HlQQ#f`CC<0yW&ULv(hL9$ROj6V9?-`qTpxboZ4R#UHAU-NUj99U5p&*3 zVLop|6jmGj@dLo11^^6dsP2c#{a1XgvDQXkOL+B}(1zCZp^Jm(csHiJ3sC3+KOh}y za95xk>^lBt!*EC7wSfzES9jl6{V3)AbANmjNq;)fdn-|Qvde|3am`TtQ$dzVMFGG- z-)-M_Bb*$I!VP7_b94P2zWs4sCdZ_v0$7=|t$DX8G?IfGYO2X^f4ZSJftMVcKWKQ( z?mE49pkqYJC$HQ-o4^&)?IHgflnb}-NePvjn8H=+-{Tr;a#U=Z?%}b<&V+M}-*_0@ zcz$q>LEC^4`7VfoF2O+z+-kT%9f$UO1_nVdk~H_jW1`I`i(S5p(X+>kBC9tJ?e+}q zUAkBrI2;EtaPI*&rL#Gr}L$<95ZfpFa z1&}TdQmCeUk5{OsCd2LQfpAUNP-A$@E5^{qSnruwT}QAvj#a3^bJ?KB5b8$1f_^JQ zaxC<3;s?xh-}l?6mq*SW@Er_q?F{WWnzHlLTi)mg-}KLo-^pYJ*2)U)hjXYfKdL|3 z5J~Li+vsN?N`Y*U6$R2C9st*5Mf(dvAEBQJqe`9`tQ+hKHLd%YuhlIhlPi3_B8npM>;M9Y6f~H%@6GH zo(vzpBHCP=_Funxk5u1Z_s>M0IX9!E|GD$Yy2Mv<(>sU0PF%DcU!1z#WOsdeA4F`_3Cf1Gr`t{8j>92pac|Dr5姣>懔%熷谟þ蛯ɰ - enableServiceLinks: true - hostAliases: - - hostnames: - - "341" - ip: "340" - hostPID: true - hostname: "295" - imagePullSecrets: - - name: "294" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: Rƥ贫d飼$俊跾|@?鷅b - readOnlyRootFilesystem: false - runAsGroup: 3541984878507294780 - runAsNonRoot: false - runAsUser: 6743064379422188907 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "285" - nodeSelector: - "281": "282" - preemptionPolicy: ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ - priority: -1662855542 - priorityClassName: "342" - readinessGates: - - conditionType: l=ƈư呄 - restartPolicy: ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - runtimeClassName: "347" - schedulerName: "337" - securityContext: - fsGroup: -3979882341327374195 - runAsGroup: 6134106493278592168 - runAsNonRoot: true - runAsUser: 5824892309487369487 - seLinuxOptions: - level: "289" - role: "287" - type: "288" - user: "286" - supplementalGroups: - - -4964947941541214699 - sysctls: - - name: "292" - value: "293" - windowsOptions: - gmsaCredentialSpec: "291" - gmsaCredentialSpecName: "290" - serviceAccount: "284" - serviceAccountName: "283" - shareProcessNamespace: true - subdomain: "296" - terminationGracePeriodSeconds: 1221494839594199191 - tolerations: - - effect: ^LR1uCOjbAm0ea=p1P9ex7UWlmfk%b+kbszoWEWCANKNth zHpC9p`#P7;4DYGSHlq7B|K4|Gq?JTlyEI>YM(96#^Vxk=Gc|>&lCBuCp{bh0WYhTY z%eDViUBA1!Y?5v6@!D6{ZPJ!4nafUP&)rk1LVY^| zH7}L>>xQW zZmLcWpWEr%_yS1NQyjwGz;1|1!Wej(qD_4NVPP*4o)HvtnZ7ztSJdSaj{h;t6e?q- zcm+1F=2a9)$x~sbz{q8|$V{EHicA;BNVCamQXsw{JgOPQ%9&S5aNcw+7ZVL*YZbv* zsw~MWq83cbBf&09qFtsgyUaXxSx$L)sBx|p+1VT2yd|`*KF5E2xF^=t9og6YQna=@ z)VL|S{YX0Gfy$YwfX@{}kM=LmqCN`u^6yo9%B*%Sr+jDyYzM z_?r%I2G4{dx$Fw{-2KG7@aCF8?@N!5^oCDVr`TmvLOc@+tFkL{9r|}*RYV&wtBF7> zS|ZSj4uST$g%2R;DiyDc5q=IYOdMed`i4WNb=V_=G)`zP7y~7qcl@>-47hH zXjc{Il|R?M{oTLd54mj~2MmLWs^(nNak*iP8>QR@BVej(xa_LQz+6od?*&RlyT+U+ zt82dfXMC~q>rXHL%8kYgFb9G)#fc`R!aGRQH0N8J`oI6*IG@L^=_z*2kZj}anmNHX z{|>>fOPRJDyH01qVx5V0U3S{$gEP9~uw{Wt9fatb%dYDlyKbb|b(7f*X*{en=meDG zf+wspWEUS%z-WlC0c#Ac5F9eVe8X@e51%!?PQh+MqD@G&35ho46c{%Z301)=6IPkp zT4V^1!-o#>wVMVEnJ$Mgib|3QgmN{CDN zkPBXAum>K>Hgp%CQMm}siQ3TP0_1{9x_Cc-7<}AxzH{ZB_Y;zwy?@)?a62(*Ke`W? zDA!LZNTtjJMD9Qj@?nJ!tKcC#v=ksZ17h@`aeUT-oa^b{qTMn=? znrvhC;IZ>a05--rn>-M=5;o^3DjQB)5D}P@xd_;%++Kyo{ZSZ$cX>PzWfBl|CJ=3| z?QOIZ37e4cVB9&Th&*nLJIyrb&?jpHqun-<3aNZl7vqY#=gf5714D2Efl#hU*JO9- z%a3m*BH(hz<;g4_ELrAkiu1kq-(8>BRc_?rQIu6j*X8id;FZ<``+4wX&GB~g$9uky zr{)9X1Qs|fKn$2vOt&qCyQE5=qKEjCI&3hmG7q;4jt3AW!J&#xV}(%+N*fT=|kP6Bdy_%o{=N5x;JW9snjos+p`hZJyiT8voYetUV&!D+sYI zXG5EhM%(+-_&GNq{J<7%esyGj{M;ML%%`~!gZl~n0$fm}ltg5?2Z(?O_lNiTP2c0!mfYV~gulc`#Jn^$X$Ol5CEiuRghvkma)Ral^5@`yX|7 z=awyhzjFInU2MO${boY*7hB)hlsI?NhxKn=9G%mHgp7n%Q+yJ%LfQL4s|F{KY0Tps zA3eRHa_WRYOZh-qE?3h3-({o=+a95~v*Q3#G+tgTl&E&^MUY$kal64+Qo&H2J6ipbB3xO!!v4M3f z!@Ya;szxL*VO(C}P?xVIe4#Zfw5cuJyjl89toFjdvDo?bWud0_h0~vmt?dwnl98j6 ze>-?8vi-0FxuDiCsJTFRQlaVsG2H7<2Ty-}z53Wulx*XjX@bAyRCMrzz}3H?nXZw& z(cXR0wc93^riPESzgYQOf2;q()!w82i}U$*(4m4bLt2AuwFosLTN^K2aB##sx5 zbO1hytZDL}Gl!d>doEBnvInmi>I<)J2^@9reCzt~ho45ib0pW+#tsG#_5SsL5PNV= z-tgLI)X?Dr&xC7sJQCS>Hrl;+us`~8*GMG89Ic>Fd#&R>DYR+b!%Ho{k6GH0StWN2Dy(xH=Wf4@V-0<<7mq5vY` z!9ay;lPClT$z35nu@qjgl|>|r5^G5Tu}ZBnO;gh?WqKj8CS_KTbgWyJ zg`c-d#8SanrC?kRl2_n7g<+gqTxxQJsAzO0mUJ&5JoqxOEG=D;nn4ZFNv0Carii2G zlvV)Pdmq++t7a zzvT}lYLK|bE_{uI65;9W*^DZH6z5n4m=Mc?|L`}70f z#3HK*n`JE*pO_;pz>}9RCR1PvGg>qa=SoZ?cy%%FbHgmEL=kHT(Wwuxc~y88qduDs|;?HHytm)bK}NH zxdfNR!7nzaS(CB1V!`tSg3qSuU~oPm>0aQI)6)tnh_#5|RhD-$By2Vh2(&X9@Im7p z!Xdk`%PxRf`Lqynkxk0VOo%-$!MQoPMXE-z&Tz2-8KWA*1w{;-=1K;slgmnBP%bT} zSj8(|Eb`)2QmQXopsVycM zvq<^E3W77myQY-pm%~1rx@u{81;mQMVV9w0Uqwj=ZiL^zL;Mg4myz(I@C1czJt+&8 zV@ej_NwP(9sGbX3uneyz`SY^OGD{|Mln zo1~Ha-nTAOb(Mhp|7nh28!sBvPS|v%dtPGM-1rpP$tPG2It(CA*^DV3! zrIrR(P-^L!@$Entl9HvBmY&TIj)5)7vedNc%u+McCuWj@Mawf714XOzRknKG5}jzp z;HIpCo3hr1fa?3vz!(mPpx9Apu0WvJQPoTtMd8v3(1&W&aq4d!$3{Ctf9?89qUCy= zBL@dg4eco(sWyHWJUF~#p|2y*>p$mP$CohpC3BIyD{ZmfI=7e5$RBay8_){*U>lYM>|Je8$4%s_w;`=fRaBr^QSkF^yhtj z*AjInt4x>{*9^r!1!S326aWnL-|&Aw#>KHH+)&0mJ1@}b-y7Fua!hI}fR#Dh+IO2m zV>!5?rs{b6i;aB=yyV>SQT=On_sQLZonw+ef91yM1g?;73wxWUf;G z0oPEIqhizajE*&QC7fgY#>3#o^P_VN+6Iisw?Pba2@Yc5R>KYIJn-_DU=Z{oN%K7L zXteowk=uVhdirQ#WX-1GHt+E6WlN;NgK-c8_a0y~ekz$`1o&|R2=xlleTM@z`Js+; zX;rI*hXkAWV6^6}@8V$hK%f8AEZ?h-D#4~l#y=T;WpiGz0}v>0$WYdS$e^Dp(2%L> zz835WobRX)z5tK~e%6?9Va=DjPHz2dJDusAKXfp9x-&0!;KI18m+GQt`~NWE+1S|) zIdQxKKY74t*p=iIEM-gpt|Grkwh-vM!x`23hV}1QDFPS1K^shXzwBPDf*dkXYtcR zwL{&ZruCokwfc30ZlZ^S&5N~xuE0+JiGj0MFCB^;s0+3SHw^R+bwxT)J{|693m$eo zAl!eox574`LCN5geuTI=(vb(?jAjr)$YCe}^(_Vq34 zX|I2?WdoZ3jPOvTrC$jhJ|Eh&*MB~Cye_n_f23ucx3oA=KXPWpNWC~#A3jqMIp5$) XN~*1?{`L`v%>xb^DL_n@&13t25姣>懔%熷谟þ蛯ɰ - enableServiceLinks: true - hostAliases: - - hostnames: - - "341" - ip: "340" - hostPID: true - hostname: "295" - imagePullSecrets: - - name: "294" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: Rƥ贫d飼$俊跾|@?鷅b - readOnlyRootFilesystem: false - runAsGroup: 3541984878507294780 - runAsNonRoot: false - runAsUser: 6743064379422188907 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "285" - nodeSelector: - "281": "282" - preemptionPolicy: ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ - priority: -1662855542 - priorityClassName: "342" - readinessGates: - - conditionType: l=ƈư呄 - restartPolicy: ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - runtimeClassName: "347" - schedulerName: "337" - securityContext: - fsGroup: -3979882341327374195 - runAsGroup: 6134106493278592168 - runAsNonRoot: true - runAsUser: 5824892309487369487 - seLinuxOptions: - level: "289" - role: "287" - type: "288" - user: "286" - supplementalGroups: - - -4964947941541214699 - sysctls: - - name: "292" - value: "293" - windowsOptions: - gmsaCredentialSpec: "291" - gmsaCredentialSpecName: "290" - serviceAccount: "284" - serviceAccountName: "283" - shareProcessNamespace: true - subdomain: "296" - terminationGracePeriodSeconds: 1221494839594199191 - tolerations: - - effect: ^CAgZnZ}QO%OytP^NxA z5fDX0e1Iq_2?{9hmw*udF6T{Cx0iGKU2|?ao>yZwb*o!h&HdInI?ef=-?#Vv)>_~C zzHfbx|H{(xO^lVfcWrKN{`5j2Eu&y9VVM^)ayM<>o}H0Xz?Q@_Uc?~6BGHN@JCYOZ z&hl{cUT6E3q`=9_wOZ)ZzTZ3BeDz$YzFTqbP4S-|&L9s8impgR=2b}(HAPl#O+>^)wRJKMChbN66rdE-0BM^WlM3{qL7rA=Xw&YA^2)5e$uVl@k*{k|89{iBDy z6@SQgRl4`*CYS|*H)$x(EJ(#>L9Rp?rYh`X;hIYS;mUCHQP)Yl%71*oF|>BN@9^t^ z110f+kt5DsFM~9dnAqwkV!x=m^6s~PhaX~(o0&C?UZfXdoXullyNox8)05^U=BV4T zDsh-!ylTnvWy`o^!U^0WZWCU^861`*j!WkZV*~rhJZy+K2OHQh#H|>3OAUilSK(Eg zjd|=iVqTLqLCKbNoW4!N@Y{&7jI{z$NyC`eF(xA3D(Kl*lrc`{3O6ePOp?}b#~22& zN*{VY=J8f}QzpS!;B&XYmkMlxGqN^dUKP@&uSr^&w=NwM4z!qStSB@LqAXku3f!H% zxnMz#Ro!lEH#YNzyd{|!Al6vSB^#WvR^jxt#LVEzm%9JZnJ_SOJ0zL9w2& zGY-UW_g4HY%yIB+y9(g%*q3N}!!lOMI-gExJ25IUO%X~d4#g6@f$^pWPs;Ejt zQxrjiKapf!>-=t{Mmb7e}(MX2a;qs^$%@K`4q-13+zw#Fmdn#A--y|Ixsls>vIgUzhUAwPYcy{ zX4za9LIYvdUYLu(2UKWrOOnV)^9gx1MM;*-Q!d z0vqg*HLF?H$u!2S@azLX1=g$(%eOyOeEoeyg5~OX|2IEHg_&kBFa!2bB#UWw0=$D@ zMX`i;d%Mkcv!W)L6^%E|Fe~~@)AG9*v&yeFrI}SB3D&8EHLIcpEx!ler8txdnWMsb zRk4~?)oxa`1hc9Wv&PSWm6|XUrCH$#t2EI{Ig$+}fcG_6qbZr-8V&T=Y$YwX z#-i58ef8IOK99auqDSaV61TfG_*K-6R`?ddm++7dqI>DEOa&Z$=Z6iDK!kWie&OF= z8ZH@gwJ*JZ7!X1T6(UYV)Q8B95kzq5B;sI9q#HntQ$r*H+z$^zfQU1INV9>+NkEjP z=zVk$F=dE(IAS%C*f>~2s5gjW2~E6lImTvU1!g+ss%&Iq>Jk$5Kcp?}7V$rnVB3*P zzT5F@jmi^AM4l+pX_BR?cI3w0HWP$4e9Cbj_Wbm5Q_VLYTtwhMQHd*QxEYK(`M;3` zrbyH(NrOR22P3F8GJg#{N}ocU3HUOxQMIA%+m1 zs4zr?xC{Sv=`*wCddq0jUG_%x5>qmQyT+cJ_kw@V&QRBw?~u1@vN304xV(Wb zBr_J$g;XX{tE#H>5kN`~!^>7lZXJzPjL0t@oH?pMP(8XsBgLZV`c5`tl-XMMN!$ zuvCU5vcHH$)Qv=vD3R?CdJlz0nte5%hQg;c_vzrSbN*co3Dj1JS}v)ObWE%%?poc) zZDy;9vb4A#Kk++|<((T>OJZ!L|NGs4#>D^6hhwq)rzhGPe~4sE>g&wP=*Bv$gDjc< z$Hp>b4uM1b)yvo4?47vyyI|#DpsT`Fi+v^jJMGS2)T-$4Y(8&he+h<(1*_Hb?cufUTkYO4VCk!9Rb2 z;s*}C=fBnOIQuYpD7^1bXrMbVe%R)|5NbHCxc7vc2cVmQeo*6x#?J;KBmp7IfrzWo z?@h0o@=_UUy+-p*lfimT0qZq2?wx^-x6d5u>phDs$oBU5-@^ZK{VmTE@qg^8yL{#I z{)+DqUw*Rl;Fq7h>k}iJKwpX>x-gq=sL?~x^kSOXI@yVU0v-SgEo5j4Q-T=GJPj}x zI5K-*xVPGU^xu+QwZVgxy9$p|t@+XKjh$?wu2T z;S)#QeV!Iqji)Nm+oQQ^ojn`FZPjz^iZw=rjt8YtJ2j_FinK&IwhJ-O- zyHtr=G)qiOnJ=>U@>s*%V&HPPkX^|gpFKBrL3q!`u61thvPmm|q{P$0LS z%QZwJ$yhN<*X0EZ=Pc*)F<#Hne{mtKF*q3~ax1A!Ze znJ*!FAK1>M69s2!cpbn}Ofm}AzbXmq*5YC;Zy-hMHpA(2S!=O^MPUO5?q)2e6)T`M zz-;)$kU#l2R|f{p#_Q77Wyt`2)tu=mb2v`jY-|%b&_YXM?lt40C0)PQ-39G9gp)&R|}H88*2;8G1^QK4pVOTZ&gyKkf52N$nilC$1O zO$O&+oX5=tmTn-mpA}%W zXe=_oY@?8HaxQGL26IIl44kH|H57y6mq`YvN!&t!(L9W9<>qm@TfiQXeU*7E7lWas zC__+Q#f8(?;6kIo*b2@!7Ql2Y;&j#wkp21eRoKYK*#)z>7i9wjJWmmD-YS@8@Cui) zB}<-bU2IjBQB*-ZXF4YOsqyZi&zohf(a!kNrPJYcUJSe*!Tt zF;b#oq;M(4hQcKl8z}~tXB2`K83tCh&4!Z7ae`o|xvL?RvKMXI#&KMck;zUKWlrLk z7fBml;AoU>Q_|D$B9*!d&o@ZcoZJP=W&T4dln zb;F%Ac_3w_n4g2eOB)SiEw_ZsH(}t9FnXj`M56=g-MS{*xti zVFWS=&=TPNHe?VKhz7W|Qph0C5-+Gx>?DX$$N(^rGDV9i3K;~I0!fuZhGd3go=El{ zb)T1fYe@7o8`%7qjUtZq#K{O0#{}VLH{t&k;)K@Xl z>>cs9_qazqhl?CTISXjp6W~SwMESYx32-w2jutmq|88Ft30ivJ_WfwKxp&w6DGKM~ zzr58ulfQZDyBps{(M368QlgsZ>$&;M*Wfr1Vk!Y+-pSYBi$ z=n1?O!4sZSlh>nof|u=a&bE2Z)?jbFV~6LU@8aaa2!h}#KI8A;vm1?vYo%-md`oPJC;GP=ag$VATwKtR<2L=j`~OXvO^uaXn_Va9qTXK<2xH@+!24{ z`tF_&f|m{)MUm^4DAGDE>Jv~eB;JcI)Ky-JhQs^lS0Gb@;}a!fg|HR@SObwhLg*TL znt95(*FExDpnNRQUJ}~V7uvfk)Lk3c-yJTg$&j9O?hiE722R%mY8!GsrLyI}A@n_p z-Llbh)OphLhJ7ky3m@6%+V3iL?RD*c-L=Et+VAS{_f%y#P9-n*R9+u$WliyyuQ|K# z;{VkCeJHAwh7!N;+&O$Z{+m$j58j(4|9A4Uza+(t|8e~G#n>|Xv1>A#M7HizS9+(! z_ug`MM$?YG!mzW`{3WHq)BWC#;E{cyvOPTU|&_Jqzlv犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1983336623 - collisionCount: -1126236716 - conditions: - - lastTransitionTime: "2537-02-03T18:59:02Z" - lastUpdateTime: "2588-11-29T14:40:30Z" - message: "347" - reason: "346" - status: ȔªɛȨç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥摮 - type: Bb偃礳Ȭ痍脉PP - observedGeneration: 5388474454004966524 - readyReplicas: 351886404 - replicas: -1376803266 - unavailableReplicas: -172900943 - updatedReplicas: -1722716613 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.json deleted file mode 100644 index cadcdc13f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.json +++ /dev/null @@ -1,1088 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "strategy": { - "type": "闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1173434715, - "revisionHistoryLimit": -853633578, - "paused": true, - "progressDeadlineSeconds": -2030004486 - }, - "status": { - "observedGeneration": 5388474454004966524, - "replicas": -1376803266, - "updatedReplicas": -1722716613, - "readyReplicas": 351886404, - "availableReplicas": 1983336623, - "unavailableReplicas": -172900943, - "conditions": [ - { - "type": "Bb偃礳Ȭ痍脉PP", - "status": "ȔªɛȨç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥摮", - "lastUpdateTime": "2588-11-29T14:40:30Z", - "lastTransitionTime": "2537-02-03T18:59:02Z", - "reason": "346", - "message": "347" - } - ], - "collisionCount": -1126236716 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Deployment.pb deleted file mode 100644 index a6f231834ed228b9f8484ae2036ecb7535e8b394..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5192 zcmYjU3wTsTmhS4PWbV3dd)3*V)^BWE#2Bs1y>;KLjywcHfbfoxRqqfIkc5PgKmr;4 zK0*=#A%yTq2n2{EkOcC6k%YwXZTcNY*B7&Xi_Qu|zZ}HTRaa$n_Ea~F(_eq*-g~O* z)H$cl?d)MaW6-+M_(lfWNB`otoX5OaFJ908}x3Z@bn2!*H2#Z7;k{n1* zbhyeR&HG&KTatsPD%Wb^)BAtxYV+4~;redHwJ$YrW;l~PC@8uj5t&ydP1F=w;fbhg zS8ndQT(a*(N#1PJ(#}1DrR9z9oESxE_b^Chk(NG%K{{&|_$)hP7KqI(h>rVSC=QGs z@m2h;z+LG%ke6r{1m2{fe6t`Gn+3TNJqJ@2_OVD!W#C9*hl7JL&Uk* zz=k1i!@yf=7@WEaui9+PW5*Hmnyd**j;!O1?HY#PMvP^wZ55StjCmbnBI0d=o`Xdh z;|#8Fvm(GGY5fk2VGyhIp%-8tZ<9A=5sU>sZwq{>z$Q2|djsZGA$|IqkPGNpRR_ro9qqZx2`?%uB`jrYup#EqMeMZ_Jwj&^%bwQI*D*KR;9CS= z!b3WQ?xn*r6{J{A$I&zfqzSyrK13fHTRb8XpfF z8Vwyi>N}m|8Q2lJFl>MXA|xR4i@<@>NXeMHed$HSfDl5c5OE@^K16z)Ac9LL5eH); z-2h^q8X^hces~Z9M4SOcnhiuw2BIuQ@1sMADMQS|QLBl>T3`*K-XMxKJn_brIJ=1z znCXG}zb2moH8|XqZV{o>#Pp4Wd83P%aAz)4)K>SUw^ZA;?i$Im4m^q3U@8`mjq69 zzZl(`9xjn3n}xZfE|f*!D3;QjpLt{D(t1AZ>x}JY9~)@*poBK>d-43$-quTZr;i|J zb##BIo6phxwV(IbVSj~p*j$GrHJy(KI(B+ayN9)v_VB*e9nRi`$^M$C4p3cT9{C3y zpqc_lVqcC*hI$H#O%#Qt?iqY<*Ku$U6|Fjc{cNzdY}2;af-NVfI=eVub@=4@$rEy< zr02Q0fyT0!cp6EH{tx0+8c(W_1%%|^;~MogZk$$}%Oo&yp{673V<`(g$0Bd+erfJR zOQgOrP|}?oDD4l7pA8Q6OTh!9cq$w#lqaH6EmeBDstlo`D)x&vt6L6!+TDE+C737* zn)yl3yI22wwfmcgljELo*Dj}rtwP=rRojV7dl0HYP!pl15d!fNHI_gVu-$%@EvO0I zZ!hw6hx^6@C!3xO51m`p}Tzg#AxJ=;ip$P%fiP?{mriN zry}K*k?}TX^~8X^q5PAox4J@q{1PP$9C|NstKWIKROg|uK7ZFQMmK@J6i0MnHr-I8hotGn zG_!TG3jqau02Ert&=jTwF_?K8U@&lG_P$7OwddHsrMPQDhene(f(p9A{xcl|l$uOG zHFjydf6(6*$0k8*1BTAplOo-_Ci)^Lk9qpME$$j`Rj{{5bJx0hHb&a2=QtEwoCqBc zN~6dN?7frK-h(^Rf)_fLPIS@{!k&y{1`yMVm?g~fyquGTbqQ-wcsI(~$`%E1;?`}L zpPmJnj8o>%BFY?Gz@=p23@jNE#(?$GByQ0xF)4Mv$ll9i4Recu%i%(HCG)UQJa?tR zabm`tLNSYCRwECP>9#zMq})M;+);qBSp(V5T6U`8{?Kzms-Od%vT`0|F7c$ReaEl96V=K4RfO$zAm#r_>0Nt)NFu&a3 z(hOr!p=NMPz#~w*Z=>P|7q4EDyWU7k0q0tc3sED|HY5s~ttO6nA2DtOH-uj; z;a25Pbe+wCGdJM*6q)Dga6e$56=1b!EHc1sqmXcN9&EA(b442roUW}k6occJNd~7$ z+(LlWJdAGR=5cvjz#fr(m3b@=gQ27-Q&3*Th11vILSw734V-T*fazGo8LSx~{PP*B zuu*_>w$9>Slno4UJypQ@t6-YJD_rK5YKt%gv_S+r?8$8kkQ7CTjxIf-9hByD(sqfxe9$wUoE)bU3% z@ai6kPLx&8sJt-A%j3myr9OglOV<* z1HeSe6s@KhWDryeBvlF-QW%bTBE@&ib3t;QbM19EhEHDd*ZE4r{e6*|@^D2*Mp9s? zHPC!~D+Lq)LfA)`2MTh-m8X_D%Y380%BP?AbO!oc>8P&q$)0MV6MKrf(9{&g6kOj8~PC0 ze}UHb)s_7p#KM5~KS7fm4{^)FeH9bUzL7wCk7vYtq{umxyMVSm0d539l%Lz405=2R zXqLhHcl%;U(AxX9|3|akv!~_{F*u*_)vex{{LRzf-}pX;F3J&;8q-8)XMj|w*;JFx zrZ2~DqkXE0E;#Pb@^riEf@Ae*fxX9rwfp&}qFU(G<+^wq+H`lGokSGc2)bmcI6pWP zlVPoS=f|730mh+Qp2;7hdnfp=9q+n}|NLn6`MC62#LSB70p))h)kC=hGX$N+lnycF zKQ||~Cv9Fl|Fh);3OaBIyENKjd6AW%C-71fPk2vHUXS4kUUpbqZS!2Mq27AuPVXWA zrO8841i@2$#^1qbHyV%BOo`$%UdsZ$p3k~RbZ_mVMZQY^DZI@y8r)S^T!$Euv3iF8 z-Bs`E3AR+NinI@fo2#cTPW3g;RM~$GoW1C)44t_UEUlOr-Wq9Y+AF zA3|?Fgx-9JAlmE44tZ{T-8}ep3|g3Ge)PAx3x_{zx_B5RKN_y?4As0j(dw#r$?oiS zc1*NiAMWMsWwdH4#CM;to>{LQ&iy0Md$r4MF)k?huqH?yw8)OQD9L z@R{nOOmBs=ZQJ%>%ZXIazBIwzXpC}OZl=MUAuHoD9--P1->bqI;f2ThG zQ?h0J_v5!O#@5k~-IK8-vUi{Uq<2a}?=4SfEbYiE3_CkLP*NH?)9>pD9o-);+q-lr zo9H_-ao*qHYjd^+_g95Wx犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1983336623 - collisionCount: -1126236716 - conditions: - - lastTransitionTime: "2537-02-03T18:59:02Z" - lastUpdateTime: "2588-11-29T14:40:30Z" - message: "347" - reason: "346" - status: ȔªɛȨç捌聮ŃŻ@ǮJ=礏ƴ磳藷曥摮 - type: Bb偃礳Ȭ痍脉PP - observedGeneration: 5388474454004966524 - readyReplicas: 351886404 - replicas: -1376803266 - unavailableReplicas: -172900943 - updatedReplicas: -1722716613 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.json deleted file mode 100644 index 34cd9c5ee..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.json +++ /dev/null @@ -1,1060 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216" - }, - "runAsUser": -7286288718856494813, - "runAsGroup": -5951050835676650382, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷" - }, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "217", - "image": "218", - "command": [ - "219" - ], - "args": [ - "220" - ], - "workingDir": "221", - "ports": [ - { - "name": "222", - "hostPort": -1470854631, - "containerPort": -1815391069, - "protocol": "Ƹʋŀ樺ȃv", - "hostIP": "223" - } - ], - "envFrom": [ - { - "prefix": "224", - "configMapRef": { - "name": "225", - "optional": true - }, - "secretRef": { - "name": "226", - "optional": true - } - } - ], - "env": [ - { - "name": "227", - "value": "228", - "valueFrom": { - "fieldRef": { - "apiVersion": "229", - "fieldPath": "230" - }, - "resourceFieldRef": { - "containerName": "231", - "resource": "232", - "divisor": "508" - }, - "configMapKeyRef": { - "name": "233", - "key": "234", - "optional": false - }, - "secretKeyRef": { - "name": "235", - "key": "236", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "剚敍0)鈼¬麄p呝TG": "305" - }, - "requests": { - "瓶": "806" - } - }, - "volumeMounts": [ - { - "name": "237", - "readOnly": true, - "mountPath": "238", - "subPath": "239", - "mountPropagation": "", - "subPathExpr": "240" - } - ], - "volumeDevices": [ - { - "name": "241", - "devicePath": "242" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": 1096174794, - "host": "249" - }, - "initialDelaySeconds": 1591029717, - "timeoutSeconds": 1255169591, - "periodSeconds": 622473257, - "successThreshold": -966649167, - "failureThreshold": 817152661 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": "252", - "host": "253", - "scheme": "ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": "256", - "host": "257" - }, - "initialDelaySeconds": -394397948, - "timeoutSeconds": 2040455355, - "periodSeconds": 1505972335, - "successThreshold": -26910286, - "failureThreshold": 1214895765 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": "264", - "host": "265" - } - }, - "preStop": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": -1675041613, - "host": "268", - "scheme": "揆ɘȌ脾嚏吐", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": -194343002, - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "Ȥ藠3.", - "imagePullPolicy": "t莭琽§ć\\ ïì", - "securityContext": { - "capabilities": { - "add": [ - "Ƙ枛牐ɺ皚|懥ƖN" - ], - "drop": [ - "擓ƖHVe熼'FD剂讼ɓȌʟni酛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -2142888785755371163, - "runAsGroup": -2879304435996142911, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?" - }, - "stdin": true - } - ], - "restartPolicy": "ȶ网棊ʢ=wǕɳɷ9Ì", - "terminationGracePeriodSeconds": -860974700141841896, - "activeDeadlineSeconds": -5860790522738935260, - "dnsPolicy": "w(ğ儴Ůĺ}潷ʒ胵", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -7059779929916534575, - "runAsGroup": -4105014793515441558, - "runAsNonRoot": true, - "supplementalGroups": [ - 830921445879518469 - ], - "fsGroup": 7861919711004065015, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -379385405, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "岼昕ĬÇó藢xɮĵȑ6L*Z", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "绤fʀļ腩墺Ò媁荭g", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-d42--clo90---461v-07r--0---8-30i-uo/9DF": "AH-Q.GM72_-c-.-.6--3-__t" - }, - "matchExpressions": [ - { - "key": "8SUGP.-_.uB-.--.gb_2_-8--z", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1258370227, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "N-_-vv-Q2q7": "3.4....-h._.GgT7_7P" - }, - "matchExpressions": [ - { - "key": "ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32": "0U1_-__.71-_-9_._X-D---k..1Q7N" - }, - "matchExpressions": [ - { - "key": "2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1289969734, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO": "" - }, - "matchExpressions": [ - { - "key": "8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q", - "operator": "NotIn", - "values": [ - "0..KpiS.oK-.O--5-yp8q_s-L" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "}缫,", - "value": "337", - "effect": "ɉ愂", - "tolerationSeconds": 5005983565679986804 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": 178156526, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "糮R(_âŔ獎$ƆJije檗" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "ʜ_ȭwɵ糫武诰ð" - } - } - }, - "status": { - "replicas": 2001693468, - "fullyLabeledReplicas": 831250275, - "readyReplicas": -1641645377, - "availableReplicas": 1652763817, - "observedGeneration": 8116344374862020441, - "conditions": [ - { - "type": "ŗÑ\"虆k遚釾", - "status": "佼!­ʅ墘ȕûy\u003c", - "lastTransitionTime": "2275-03-02T02:41:54Z", - "reason": "346", - "message": "347" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.after_roundtrip.pb deleted file mode 100644 index bf53ee592ff662a7f03d6f3fffddcea9efc3e2c6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4880 zcmZWt2~<>9nyy>8kk_81d@-iFl1?g>beb@IAMf6`JDs!|7lOM{JI!>T7f^6T5DP(xK=6`kZ{F&XVSJ&Ebm)+b{$opjomW&T^G-F?o~!T-JY z-+TZ2Z}smd}!a2AJX*oH0Nd+W5BR`Gu+~SO!b*q=By_}KHM}Err5Qiv_BnOgR zNJ(^g$|J2iJe?a-f`_Wo^l)>{tDfWj1|i&VO7-km7C73UK_?N_P-Uu!nygE@s;DBB z4E?`vmV8jW<6v>lbj!l7%HGoQ!*3rPK&j(6r13~kAI~9!w-RxUld}@)uoB7j;EbZc zz&>Ba@AAA=BfD}Et%Qgc9pzeyTx2Cm6~Zu8<)4b|t_tj{inKO*58uyL{-@(_SO4*yzx@C|#D9jkV#FnjSjQNz->`Xk0p6hGM!(i% z=YRo36ml_MsV}E^Ej9?vQ1Eh`p-Ol?mh#rG!bKQM8w(YflB5-CypkuV7@L~~jKxh^ zscVU;3#OE3VsrWiAB|aQJ)map{SQ_bTQGKrm z>gqzr>LGqa5#dJ_MU!QT%CaU(`rWhP-SvA~PdyCryIgl|`+wc2J$MnN#)C`+WUA@x zO@lXm&1B9hiw>(yTw{j&+;xdo$%q9`rbSj+szN`92{P~W@AK^sm-R+^D!tVs7ei&m zg;$Ow1^dqbCUW>}=u+{sAVPt-ee)#u(Kybk5dPXY?ooK5{6ycG@ZL*-p{{Uo^E4@Q zWFV7&f_o%%zB%}M z2UJ&7ySwTw(}@x%00S&gbcaYZiB?q?EmN$jG1ano3}@BES1jpPjikV0jq+AavZKXd znI_vTsgU;?2+>rBRnuHnO;5CH2DR$q6j-T~sg`sHJYkhCIT%NFS`xwKI;_#vHDH|% zs_VKPx!9L@z8L-MwOOVd}3w&riW9h(RZi*wK$O9p4 z8-+N(y77myyHT5LJKNuNe;<9VLXWeF)V8(it>M^-a=^C)O2I?kgC?+Hg~?IvmL~Kp z2Vo$h#y`RyI^!Gmy1p+fzKx2rzjgQhDu_u7ngrv7?N0~@B-8~&>OhY%w#?Xy-NJZk zA`p!N(a)lvu~7p?spyCcUub~|lq6W_Ly>{g8NQA{?*aLlpDyyBzJNHGNhzBt4M%l^ zl#L@2xNQ^(FeWi6ki1M=nMAFTDTQ}w3J`fZ5G4hOy3q0-szzKX;vS2dMrEG4jxv*} zYX9nruLLw%kn-)}z!<`PM@?YsQlRqG#+9R_7)kE{b(ISC zpD@xty2HCQc>IE|w1CZ*rp#gUnJB6|e#yaRl!99+m<*OviLiIdELTL`@gQ>_Wp+}q z)8e}K4SuAOYDaLmp5!J6wl@XqYQ*Ovm4m}4A{WYX0=2I#fm#Sh8`_e@< z1-w8d&4$1VNe3$=Bhf(3uAJ)+>AbmqzylDu)u8A?eS>d& zIL6ujarn43;Y@F3cPzify7KqS<5Eiy_exX)MdY6cX;9McYoJijK#^Py?@;!YBi@10 zhF^!fOZ^?t+(KJxz2}W9bx{QrI0R6b;hg?`rOG&(t?cI4_YS9h;ElU)j(2{3q~`6h z31{7Pe_=uU0f}{8ZSFDYJ&0QtQ$pwel__ETT?rNPiK@h9AL;)$PlM-l@L2WINM~QT zb>}nlmiZ1()uJk>aDJ#N{gVnRQwmC8%)P408z5KJ_=mtp-Tu}au~cy|Ppi7i7TmSX z-{7kbmt71r?F#JP9h1sZL=zp8IkxK9;f~gr)=~FrWDN|`+==<&on4{bL&I&Jir+Zh zr`#us_9IT?CXF-%4;=_?-|fE;YHIrTV8!br`{(md2KVkA*`K^DBeZSsXR~GmwwHuY z4*K`{sz(p6UmYnw067BZiE1qOG#QlB6v!7%bq4lSezfEAK=UUk!2+GjGWCtu?=;`M z+g^SRr99?67HTZjBmMjRXHtCILqk2@ZQ(=B-V46dzg)~xL}MwU>01%1M3&tMiXRj& z3iaWEsMo0i+unOsZBX&X`;La|k4QoXD^65qr$eTWM||f(L$$%ys?nC`H(jaocl-Mc zceS(OQ-9~NlDD>fi4u-}+0}k@c+UqX5uLOt!E-oJ*5f_txv(WT)Hk{(T-pmQ3iM!J z)y3&RND2_T7>M)=dKIm*;N)I7Ba+Y@-+;#hE zvFAq#U*BoF)-md@$rAtUY5VZp_0qB{tPjRf=rcgbboQ=8jib6z#16GVOAt_K_&}j2 z{AE0M8gYxcgj){rgyJ;^%SCvLy!Z2%H@ZHq?1e zxGUV<;rf=%{*#_wU#&VfG1UQuL*$=k^@H$_h6avij&Ah~hRfRnEf?H-0v*NSny!^> z66JfXTp^dm&E%d_@d}w@ynJ1@0ay#mDk;FC1|X4r=~xn1I;fEhHDuxaM=&u|X?<)yP13fL4jPKO~ZtV}my8otMl^nc-Yv0-Juco zq4@4d*|jnJNyIfH&c*#`J~nYd0bWEmX#B&HAPexrs{~V+y>f|WY76<_aceX4S7*oo zF!9PPIS1>7*ueQ2y279?mZCHlXW=xAHvlphmus0hNmQLZjjAu=JYoJCyaLOn460!> zRTkz>laiOsHY5}Fcu5jWz_KDPGK<8#^`@|ypD-gkBM(4nRCUmtXiRh6Q9g$I9C4o@ zZWrRR3<}C*sd%l90Z(I0Gx9T6$z*vNz-VP9-LyQLGPN?XBH_)XFbcyZrmdEgl__BO zD=L8P0TSb6VF@@C3rp}abA~D6Ip#EM8fL2bq9AD5=4R-ePl!ti0B=*!2sq1tb+6zV zAZ)E5kVV>jem?gCeF>B>4WR%cV8TCn(INqCPZp9l0^Bztq)SLv#yX5=G5-nx$@5LT z4m>T)n62ggKcgv}ABn2`ZfpF=<(kkKzQW3VgSh|TidN?0LT&xJ97BU-!C+cGvx}}w z!v$1SaxhgvY!1cw;2*qBhg4Fs2_#vLiWP7L%oR7uxmjXTrkOe)0)la_Fq6eVH#5w2 zR1i!(58Px*n@yZzMs?LdO}uFVZ{as{OZ0TeJSm-M%hS?vPEMf$R|6vls|3?c8AM$L z`$4$Z;=C+@ZZ04!oh6zM+k#K9s)_lTMR;S5v_2`jz)ZzBbtN_z-M@tVSQLagIjdh5 zvgcr70h3giqi-Xyp!lg|MBHQ-)YXUpZu|<@j3<9kNh!#T`L}mC& zH5keu8pBsw6kkc25!cMN3^jUh@65ao1*dw{br1ff91N#LAmf!Ep>yc#@L z>^U9YS{?51h?G@lxDWY`{W^4JXQX)#57-!xAQT#+sZm%3pdH@z#0P^l4gQ+dq5d=O z^MRHg3QS}1{l-rKz(eCFx^%zi5*->3(G`~?RA29F&Kl_{44vyY-A#I6S81ep(A&8% zne|7aGgEc#A6=KQQcHBhw)1A7-)b*z`S^y_d84iJ1C$W%zWip)g`)fVpT3B--_$&A z2J1is%Jp;XL3oB?&PRqu<5+7Za7`E+8QAaJ8{N-f_|TC5X+J2~z)@|*2X2O9z1i+- zXuUShS=_nv+ZZrRI8}1%kFm>wSldy3ZG8F(#4U;Ks_`t$P^?*h|Lm`C-oG|Pw>Df{ zWM^NXrak=H#i+fMT|y{aLSlH}*6nwC?_Dz(+=8+kl}bg4Nu}aHpq$7$nW(yK-m-aD zP6sa>_V)z0_eS==7DX9w1A$Tfp49NsuP?_GkD?6GSOdsc%>9XfzppgheKxYYJX~>N zMRK68EzsJO|6-t~c!9sAXbbl^H)ciTY%@P8+*7`3=2YMQyx~swxzUrJt-o-$-$NCI zHFEf$3?LG;RU$iEhrj!5;Nv^Dnot6YqKYqkZ#VW|5A}4Rl%IspRQgMky+=lxy*-{w zSI(R6V&C?_P>HuEFwhsp6@)=zqHaZ&N`&s?3IdnVD3~BBTq0w*f~bnk(t@503^e;| zBNsbg4ODeMJ3JUD>GB;Sk@C{#)h+&JZ$%Vu5S^V9og7D&vj{q^B&qz^Euq2ApR>cO zxyJgp2g^zlzTAEG;@w+4gEONyC`p3MlO$spj zK;&x(eS&_>JsRphxj4aew|Mu3YIZ&|vMt5aoe}J)|1*=J+(PIZ^zi6G)7Q1h-y7=g z40at0pE~V6?fkB{;nsLZTKvHehc1k_{psSV>NxxL?{~fb_BQvsInGO8HQtV8cS8I1 z>V4y=&OPL犵殇ŕ-Ɂ - values: - - "296" - matchFields: - - key: "297" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "317" - topologyKey: "318" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "333" - topologyKey: "334" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "220" - command: - - "219" - env: - - name: "227" - value: "228" - valueFrom: - configMapKeyRef: - key: "234" - name: "233" - optional: false - fieldRef: - apiVersion: "229" - fieldPath: "230" - resourceFieldRef: - containerName: "231" - divisor: "508" - resource: "232" - secretKeyRef: - key: "236" - name: "235" - optional: true - envFrom: - - configMapRef: - name: "225" - optional: true - prefix: "224" - secretRef: - name: "226" - optional: true - image: "218" - imagePullPolicy: t莭琽§ć\ ïì - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "265" - port: "264" - preStop: - exec: - command: - - "266" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "267" - port: -1675041613 - scheme: 揆ɘȌ脾嚏吐 - tcpSocket: - host: "271" - port: -194343002 - livenessProbe: - exec: - command: - - "243" - failureThreshold: 817152661 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - initialDelaySeconds: 1591029717 - periodSeconds: 622473257 - successThreshold: -966649167 - tcpSocket: - host: "249" - port: 1096174794 - timeoutSeconds: 1255169591 - name: "217" - ports: - - containerPort: -1815391069 - hostIP: "223" - hostPort: -1470854631 - name: "222" - protocol: Ƹʋŀ樺ȃv - readinessProbe: - exec: - command: - - "250" - failureThreshold: 1214895765 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "251" - port: "252" - scheme: ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ - initialDelaySeconds: -394397948 - periodSeconds: 1505972335 - successThreshold: -26910286 - tcpSocket: - host: "257" - port: "256" - timeoutSeconds: 2040455355 - resources: - limits: - 剚敍0)鈼¬麄p呝TG: "305" - requests: - 瓶: "806" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƙ枛牐ɺ皚|懥ƖN - drop: - - 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - privileged: true - procMount: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - readOnlyRootFilesystem: false - runAsGroup: -2879304435996142911 - runAsNonRoot: false - runAsUser: -2142888785755371163 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdin: true - terminationMessagePath: "272" - terminationMessagePolicy: Ȥ藠3. - volumeDevices: - - devicePath: "242" - name: "241" - volumeMounts: - - mountPath: "238" - mountPropagation: "" - name: "237" - readOnly: true - subPath: "239" - subPathExpr: "240" - workingDir: "221" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostPID: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷 - readOnlyRootFilesystem: false - runAsGroup: -5951050835676650382 - runAsNonRoot: true - runAsUser: -7286288718856494813 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "340" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: ȶ网棊ʢ=wǕɳɷ9Ì - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "336" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1652763817 - conditions: - - lastTransitionTime: "2275-03-02T02:41:54Z" - message: "347" - reason: "346" - status: 佼!­ʅ墘ȕûy< - type: ŗÑ"虆k遚釾 - fullyLabeledReplicas: 831250275 - observedGeneration: 8116344374862020441 - readyReplicas: -1641645377 - replicas: 2001693468 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.json deleted file mode 100644 index 408a61371..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.json +++ /dev/null @@ -1,1062 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216" - }, - "runAsUser": -7286288718856494813, - "runAsGroup": -5951050835676650382, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷" - }, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "217", - "image": "218", - "command": [ - "219" - ], - "args": [ - "220" - ], - "workingDir": "221", - "ports": [ - { - "name": "222", - "hostPort": -1470854631, - "containerPort": -1815391069, - "protocol": "Ƹʋŀ樺ȃv", - "hostIP": "223" - } - ], - "envFrom": [ - { - "prefix": "224", - "configMapRef": { - "name": "225", - "optional": true - }, - "secretRef": { - "name": "226", - "optional": true - } - } - ], - "env": [ - { - "name": "227", - "value": "228", - "valueFrom": { - "fieldRef": { - "apiVersion": "229", - "fieldPath": "230" - }, - "resourceFieldRef": { - "containerName": "231", - "resource": "232", - "divisor": "508" - }, - "configMapKeyRef": { - "name": "233", - "key": "234", - "optional": false - }, - "secretKeyRef": { - "name": "235", - "key": "236", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "剚敍0)鈼¬麄p呝TG": "305" - }, - "requests": { - "瓶": "806" - } - }, - "volumeMounts": [ - { - "name": "237", - "readOnly": true, - "mountPath": "238", - "subPath": "239", - "mountPropagation": "", - "subPathExpr": "240" - } - ], - "volumeDevices": [ - { - "name": "241", - "devicePath": "242" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": 1096174794, - "host": "249" - }, - "initialDelaySeconds": 1591029717, - "timeoutSeconds": 1255169591, - "periodSeconds": 622473257, - "successThreshold": -966649167, - "failureThreshold": 817152661 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": "252", - "host": "253", - "scheme": "ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": "256", - "host": "257" - }, - "initialDelaySeconds": -394397948, - "timeoutSeconds": 2040455355, - "periodSeconds": 1505972335, - "successThreshold": -26910286, - "failureThreshold": 1214895765 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": "264", - "host": "265" - } - }, - "preStop": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": -1675041613, - "host": "268", - "scheme": "揆ɘȌ脾嚏吐", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": -194343002, - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "Ȥ藠3.", - "imagePullPolicy": "t莭琽§ć\\ ïì", - "securityContext": { - "capabilities": { - "add": [ - "Ƙ枛牐ɺ皚|懥ƖN" - ], - "drop": [ - "擓ƖHVe熼'FD剂讼ɓȌʟni酛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -2142888785755371163, - "runAsGroup": -2879304435996142911, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?" - }, - "stdin": true - } - ], - "restartPolicy": "ȶ网棊ʢ=wǕɳɷ9Ì", - "terminationGracePeriodSeconds": -860974700141841896, - "activeDeadlineSeconds": -5860790522738935260, - "dnsPolicy": "w(ğ儴Ůĺ}潷ʒ胵", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -7059779929916534575, - "runAsGroup": -4105014793515441558, - "runAsNonRoot": true, - "supplementalGroups": [ - 830921445879518469 - ], - "fsGroup": 7861919711004065015, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -379385405, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "岼昕ĬÇó藢xɮĵȑ6L*Z", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "绤fʀļ腩墺Ò媁荭g", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-d42--clo90---461v-07r--0---8-30i-uo/9DF": "AH-Q.GM72_-c-.-.6--3-__t" - }, - "matchExpressions": [ - { - "key": "8SUGP.-_.uB-.--.gb_2_-8--z", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1258370227, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "N-_-vv-Q2q7": "3.4....-h._.GgT7_7P" - }, - "matchExpressions": [ - { - "key": "ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32": "0U1_-__.71-_-9_._X-D---k..1Q7N" - }, - "matchExpressions": [ - { - "key": "2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1289969734, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO": "" - }, - "matchExpressions": [ - { - "key": "8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q", - "operator": "NotIn", - "values": [ - "0..KpiS.oK-.O--5-yp8q_s-L" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "}缫,", - "value": "337", - "effect": "ɉ愂", - "tolerationSeconds": 5005983565679986804 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": 178156526, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "糮R(_âŔ獎$ƆJije檗" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "ʜ_ȭwɵ糫武诰ð" - } - } - }, - "status": { - "replicas": 2001693468, - "fullyLabeledReplicas": 831250275, - "readyReplicas": -1641645377, - "availableReplicas": 1652763817, - "observedGeneration": 8116344374862020441, - "conditions": [ - { - "type": "ŗÑ\"虆k遚釾", - "status": "佼!­ʅ墘ȕûy\u003c", - "lastTransitionTime": "2275-03-02T02:41:54Z", - "reason": "346", - "message": "347" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.pb deleted file mode 100644 index 73ce6b22fd1256896d1080492ff0e6cc68ddd48f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4912 zcmZWt2~<>9nyy>8kk_81d@-iFl8%*1#wN_%$Gi9KPLfvRLU1=~r$4S#39Nf$$?}S zQW9OB@<{7;Pv?e|;Gya?J=|RTn&-H`Q3yAlQa#(31&*H2pc9B{s4`VVP1Yq{RaB8m zhW_8TNF$yo_?Sc&9%ct%m6 zf3L6Nw|U;`;hi~&RzgIJj&iL;F0vA(8odBhRsQM7uIj+v>PYK;?;*T2aInYSmzLz; zyCqmxoDjUw;Mw*YkftTtxQAi7&c}0O;A!v{-uF!Woti(q`_~`ghxpGCSB$u15$hP^ z^&2)XFTfj=-00Vu>>MzNh(a#LEA{0Ruf+zT846yGGgJw$$5P($qfz?f$&G4hgy zUv2~)ggK@l!uH}q%@ke|QZq1~A!cdD4HxwRF*YS((j!O?`qiHdg@V#=au^FRsVIf z?%*Yq8V@oRkg2A#Hx1tOH4{0jEIO<*ag7@4bJr(YB_kF{nHE`PsTw^G6J*}$-|O2K zF6)i-RC;TMFNMmA3$GqY3ie(2b>#5b(B&7^d>k;69DT-=$SHEpKQQ|mYfJKV#uqp<9lC!EJ4@spG-l|f2 zS?Qh1(e}FS!vn~Prf|RqajI;$OizM$5TvU1cfE%$-;L&*%c^RLR#g`*Q>>~n)v|aL zXVt`4E$LQ`q`+d0@>Wf;eE$I$; z!YW;IFpliBBti&uSfi_Jz&agN*L6E`u~8$}&RGozz5&5EAozxq2z)~pQ4y>%V3nbk zAf5YX_|U-FRzn9Cb5k4`-kXjHF}awq_(ZqZx6*z zm;=5gPzoOMZZwV!D@=}Rw=|*29E5?08vhu3=!|dJ>-)Z{_%15W{`S2Osv#yVXabBA zwm%^tkWd#8sRKR1*fL`)b_?UFi9j?8L_dpu&PELwrJ^G)e6a;4P?BJwk3{-UXZSh- zy$9rH|7nr`^hLzMOiI~IX(*~Aq;MROz-=Q)fH8?lfn;Xd$|P!yOewreQ-H|RfhZ|J z)P|g;R%<-xEdebnAuGY$9Q1D!309sMusFi z+yAHe{P$5;IAZc78kHwWY?^GZIruyGSjbuC9!arvwjQ|E_e0ewFqcTGZSR%uuUUVO z>@Wx?28a%P*#PyK9g6rVn#7*OW&yrJT}&A`3_#@A427>9%f(Rwiz$J{lo+l!O2tGV zgo0xzrMCTh-yixm7OvLzu0!|peBAK)k?r2C!Q&Twr3GxhG-VE(&qPt(@e2+%qZHgq z!DO(UN`$>rX1OBjj)$51D6^A-ofg;qZ}20PR6ByhHHn)TsA>w<*NV?YDhGy6L@t)) z1nOR20<{s2HY6G3T4>KX_N9wz3V4A^nhk*!k`7i#MxuqrQCVF4pImBmGg;zagh^16 z9*RfICsbA#QC&~?Izwd*!P=dk&rhVk4r5<+^bOy6p?=c zq(Mo0pn*a`14VK8h;h;F73nNm;!WA0T|-T=9( z#yh`zZjHQZ$d0N$7w&2cf{zhL-xa?A(X=h;9u9#GoBAV!!$gx$&4tKQ1w2r!0 zBWqxg=8n$~@8}Bc8XRi#RQ%fMKIJ}9v=4C_H(|Ijc<4Z=YM1|FsHy4SgB5QK@0-t0 z3hvo6yf1lKMrhl>&u7gDRF#BJ4*2)@YDNyPUmYnw067BZiE1qOG#QlB6v!7%bq01< ze!TrkfAgm(!2+GkGWE?j?l#}L*Is@dr99z17TRB`N6zo_pGommg$8@P+ro#My%&9_ zf3cXQh{jSx)3+j2i7dMi6hA0l6zao6QLj@4w!QzV+Mwc%^&Jg29Fc?$R-CBJPKQh# zkNM7p2J3>Y)gvu0Y`R+S@Amf@?iy#~Xa3G(C2w#03MCxuy15{xU?5q6zIXcs*BTskQ5+vF%aoh^cq@a$xY>$`8o@p&JKXCg88~; zd#`zS=zs6Dl^#NNMAeSs#p}&}V>< z>FiyH8b@`bh#hK!mLQ-20DwYI`14rqG~yO>3%Nu#s_;+wD+0BB;oAKvb3GS+^V#5; zq029Zs(XVcE4=mCUkoZ4D(_-*HGX1#VCU9QOIxI&+t;2OXlfg2-4Hlj#^&gJYP@?- z&F^BZiJ!+!W=jm-5jZ;#Y^?X3a96my!woH){U<%WzB+YoVyXiQhsZy}>IdN;5A`3- z9NFp_2$#19S}wYG2Re$wwOuROB+B<%xk4_Bo5?+=;uSK*c=@_)1F#pCRZ@UO4L~FN z(y=72#v8Mfj2W|d`?O@dNSHlOqb7hz0W+v5Vbjd#pXD6-D@$iD6tF35oDM@+Seb6Z zG=QZ={Fs@WSLfyD@vyN0yF(-FL-E~_vg@PxlZb0ZoQwO(d~D)^0=$TB(D+9sK^EYL zR|%#td*u?%)E4r;<<@5Aug;JGaN?C&at_uDv4Qh5bcI1*EJbN9&cbOJZvf;jF4r=1 zlBha+8dYDydBXfPcmrG)ZKW;{L zMjn9FsOq3O(U|7CqkI(i1>!zM+)l)085ESsQt?_H1HQ(XX5?qClF9NkfYr)Mx@mbf zWol(&MZ%j&VHB22Oj|7}D^tMmS5yGo14PEj!V+*O7M9>;<_uHBbIfVjG|W`g5pb3P>t4k(K-gMAAd9s5{Cw_3`Z6eC8bSd?z=VJDqD2DOo-8D9 z1o&@4NSBbTjCB~#V*V8XqUW1<9e7%pFUDo*FE486fe1(tAde(Rf6fJ45F@r{UF?HabA`{Hy03=&JskY4fJrLM(KncRcrN6DB!NpLxd{PPTF^lN7({_y zMHEO7qCjgVijf#c*!2;HRAT$++=WY{?Vs%b>(v;dbWQY@Bn9_W_>Xx8!=+6NBHQ-* zYXdvZu|<@j3<9kNh!#T`L}mC&H5keu8pBsw6kkc25!cMN3^jUh@65ao1* zdx*0z1ff91N#LAmf!Es?ycRrH>^U9YS`$9s5h<(5a3As=`&H=7j!5%v9S zIcvD5Fm&#`>2A^kJ4++Q1K!Ss$*eyTotdg@fA6}4m0F@3wjH+u=dJeQmQQY4oj2Pm zKST-P?kjJ_TqwG4{PD|J`%TT`X0Q%Kpj6V#@6d&oW-3xzKa3Fgi|HA{}8(@h;py!VSi7ssyDLl^(e}K8wiZ*_oar9esd+Jcob!b z#u`ArV(!oU`+TM0?z53y<>87GE0P0!ZGqON{Fef?#S8o`MO(Nhxlt=3XPfy6;hyqM zGpG9Yf&RWIt{@B&6Ll-HR3h{MR}i>_ zM!^J8;Sw3c6+~5RmKHQA(BJH@i(Kk_El}M(d1xR|(&aluBITtos9XHa-ij#RAUZoI zIysIkXAyK-NmBXITS5b!|H2Nh<{Is<3YL{5e6{QBrF*w~24+TYP?7|hCrQQ-9Boq-rZmLydysT%WL0#@r(^_l9CKJNlDfm7MJD!07uI#jQ{`u diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.yaml deleted file mode 100644 index fc8049f38..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.ReplicaSet.yaml +++ /dev/null @@ -1,724 +0,0 @@ -apiVersion: apps/v1beta2 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -5860790522738935260 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: 岼昕ĬÇó藢xɮĵȑ6L*Z - values: - - "300" - matchFields: - - key: "301" - operator: 绤fʀļ腩墺Ò媁荭g - values: - - "302" - weight: -379385405 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "296" - matchFields: - - key: "297" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "317" - topologyKey: "318" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "333" - topologyKey: "334" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "220" - command: - - "219" - env: - - name: "227" - value: "228" - valueFrom: - configMapKeyRef: - key: "234" - name: "233" - optional: false - fieldRef: - apiVersion: "229" - fieldPath: "230" - resourceFieldRef: - containerName: "231" - divisor: "508" - resource: "232" - secretKeyRef: - key: "236" - name: "235" - optional: true - envFrom: - - configMapRef: - name: "225" - optional: true - prefix: "224" - secretRef: - name: "226" - optional: true - image: "218" - imagePullPolicy: t莭琽§ć\ ïì - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "265" - port: "264" - preStop: - exec: - command: - - "266" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "267" - port: -1675041613 - scheme: 揆ɘȌ脾嚏吐 - tcpSocket: - host: "271" - port: -194343002 - livenessProbe: - exec: - command: - - "243" - failureThreshold: 817152661 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - initialDelaySeconds: 1591029717 - periodSeconds: 622473257 - successThreshold: -966649167 - tcpSocket: - host: "249" - port: 1096174794 - timeoutSeconds: 1255169591 - name: "217" - ports: - - containerPort: -1815391069 - hostIP: "223" - hostPort: -1470854631 - name: "222" - protocol: Ƹʋŀ樺ȃv - readinessProbe: - exec: - command: - - "250" - failureThreshold: 1214895765 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "251" - port: "252" - scheme: ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ - initialDelaySeconds: -394397948 - periodSeconds: 1505972335 - successThreshold: -26910286 - tcpSocket: - host: "257" - port: "256" - timeoutSeconds: 2040455355 - resources: - limits: - 剚敍0)鈼¬麄p呝TG: "305" - requests: - 瓶: "806" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƙ枛牐ɺ皚|懥ƖN - drop: - - 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - privileged: true - procMount: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - readOnlyRootFilesystem: false - runAsGroup: -2879304435996142911 - runAsNonRoot: false - runAsUser: -2142888785755371163 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdin: true - terminationMessagePath: "272" - terminationMessagePolicy: Ȥ藠3. - volumeDevices: - - devicePath: "242" - name: "241" - volumeMounts: - - mountPath: "238" - mountPropagation: "" - name: "237" - readOnly: true - subPath: "239" - subPathExpr: "240" - workingDir: "221" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostPID: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷 - readOnlyRootFilesystem: false - runAsGroup: -5951050835676650382 - runAsNonRoot: true - runAsUser: -7286288718856494813 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "340" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: ȶ网棊ʢ=wǕɳɷ9Ì - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "336" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1652763817 - conditions: - - lastTransitionTime: "2275-03-02T02:41:54Z" - message: "347" - reason: "346" - status: 佼!­ʅ墘ȕûy< - type: ŗÑ"虆k遚釾 - fullyLabeledReplicas: 831250275 - observedGeneration: 8116344374862020441 - readyReplicas: -1641645377 - replicas: 2001693468 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.json deleted file mode 100644 index 27b29b71c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.pb deleted file mode 100644 index a2c784a142bd2d3feff3a8af833285df84128e7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 277 zcmV+w0qXv1ICB6B6$%VtaBy=kb}?dQbYU_Q1yf^TY-JMj0Sd?g3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5(^0b%8sr0|NsC00U8+ytnP}$ b|NsC0{{a#R3IZ}T5&|+c8Uivl8UP{ypekm~ diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.yaml deleted file mode 100644 index b0c420b7b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.after_roundtrip.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1beta2 -kind: Scale -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - replicas: -2052872833 -status: - replicas: -125651156 - selector: - "24": "25" - targetSelector: "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.json deleted file mode 100644 index fd4f6fbba..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.Scale.pb deleted file mode 100644 index d6335b919c3c6113510415e3193ef071d4db62f9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 293 zcmd0{C}!Xi<>E;!C@9u1GfYY?Ni-5-4NgwXNfl~l;<~}e#b_kNXe`BOqQq#brF5kA z<>Kxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b--Da0Ve&GG+K n-`XGlfq+p;l4H%gt|K7!e@37hCLcRCL=Q`1|3nf6dLg&9h)Qlg!b zqV3LtVBKD4)23M8@uF2~;KaVyoekbfHc;6jJNG6SC(ozg$9P$jMJ#cOs0ykq$s86m z_43W_m-6=>&Ci%&THL(5YezxNdq?}I#8EV*FqE1!nx-_y%yX$W+RS6CnHTI2&&oCW z4tWayv}L%+wLc@;%=4T{r8b*+G1tsXMHGUeGV@fhw8%JA6s)TnK8}_fM>`!otEPAl zz2!TQKgoCDuyfa|AWgw0X5iV#Z;G$H|KmU5k7ACR>6NsWqh%wsfkXT@39S{T#LkIH zSGFNVWD&P;`J(tGOV~Kf^6Ub3JzB}?ED}YQO=fj{E%W3Yqzfn==}6awECjs8y3Q)g z(ejP@9A-xZyiDsQZofP2_a5H2n#5S*ES$QLMWNd-YD}hNL;fG zA?QR3`Dj}Zhq9#gsTd)i%h&|J6kubNlC~Cc3ZFD(W$d!etCJCCL5tb?(rjJF^86K` z!2NL>Gv}pSm2LVqeIut!o8qtzV)cb=oX+a2WL8UxNllJn5i9BJJQY+&)92-Y6(C6G zW$Q6J?VxD0z%gclx0(fPHw!}aldlGPYu|h}*w>okX*9a3#R*R@@wO)9I`;dDIx!;bGf%?)YZ+_dA>VKcNyML9_&-fzo$*l0PFi*jZSrIH${3vLPQB)$F z90lepvem38cC(^Jn-vY4Rc~k@HLU6a$%MRvov`-rP0s94}~Et66f+rOP z+w$x0^oOmFy7k3-Uxk}R)RSZ+j@o_Ne=F=pEBqF~m+%qGsE0_mLKpxwH2#wTO!WIcz0u$jQM*~qX z5Vf6}L3%al#hi75aj4%}>n|>Jbh*1d)xirT&YJN?S)c##Vb6&TuFh@#?(;fG!2Bc% zKVaX zuq|7OiZM6>V~v48#KaLe>5y#vlVU&~&{LD}75G#oQ3j~Klrv)(dlE@q9CFmNnn zA(mJG&H|rdK>^DIHF})4M{^V#oi#&){>pl9g}2D$PfkQfk=wD5sM-rlKnBy!N7$&Z>hUFd$Q^}>EG38?5d6?wu;1ZQGr88N1CFp zReaiDwwee_jk^1p;h-$<-ME?`VcYTD?f;IL^uHhXM{=JZYpD4-bYc?UqL+mi))){jQ& zU}^Js<7}Sm#PE4_nJuvQ^fpJ^{8(>kNC(KSFb@Bl4vj7pHFk6u1E+jF9inf4 zADRH$3h4NlTHO7|XY6-Lt7{_X#3G|#Q(?FrU(LNx>ZAje^qn*oH61%l&& z2rH=9O>dYsC(^`vm7F(K0_#;7tXGw&_d3tMd+Km|+ZoD2+1?%aI{4@7@3^0y^k1zN zm#=))QFxo;3XV6Ief#D6ULmvy)TIcl@iWMRD%m7e%OxjU!`msKfCqp=3F#S4=TkJI zC(~BaD=`lT+e%zj{~0%2?l0?$T?Z;?GV>p#4^U_<`KdCCBfVYTa}i7olr~^!j4dYE zvVEvMc&y6R?yes$br<{ETGiolXY0CPL&;3LY>g10;z4Q@IG%ZEq{Mw-TcWS~?Bbzj z(u0{}5p*X-pQh+V^h=zyAr)yNQX%oKlhWi(GT_3@EW}Mo1q{Z@bEji@CfdTrrJ`gc z>LNmb?Gi23xUg`Y-Slfmd~BNOlMgkd1khdN-(OP0Z23}gT-;b zqCj>Ho1qJOtiE)*rb+YW&x~icAhd=h|GC*PM`tAz!!9E-*<}d~C=CZtfFk;TROG%- zn?i5}F!Lpf+y}PN$yi2dDq0P&6ycQ2HE)Rg>QyKgNo#S=>W#4bY}zU$BY|IwfV&Y1 zNx3p;4KN#iA~-)=P=*E!v;nP7TAd~V^i|TQB+O)4Wuv}TU_lEtmKlRpT~N1fKy3O} zcFXMf;tXa!{aiA;aEqd6vWs;X7sIk?+Cml3>?$2`@j9ER>kG0~om~VTf!uu$1wXcM z#iH~zdSVxEs#J z3>^Mr6#WV<#^`zin~pmlIi*=XE7x1%%Ru1?#u6ESsaJ zG7|)e6}k8vaqTRYMA=q3ISDOLh^x?C9jDFASgP}o$Hyh36^UposLQSdPo?V;T>nni%nYwdiWkTIW;uq04jjxZ z4wYC=U__`1oEX9r?h_-|!+3&|>`~5!InLAmwn|5yyUaT{QWioG9KmPYulVdn&7soK zA$-QEsleAZGs71&clm+^o+9sYl;!I4ZLi3!plE@%xX%C4S?O%`)fX=hHuVJRN+v8! z@YGCGnBN(vdObz{lij`@g+u2vgS9nmu&c>^1d2Z?uH@!}$;}6on-As%TV;Ql>&C6R zu3KSfVVd^IKP$QqeqP&qkcu4_C~5YWUK~2@EPTc0XmOk!YPx>D#Z~D$UhUsg>g^5T z4svV4ycEJ6rc#Ou;SL^7F#1oKN%#AlrQebwc@lcm1$>h#Zv zZ0T!?`iY9%w9Z}SJnnwm-f|yZOA(>4!2$qqAP`4_s70IL0Zh^aPSs%JHApRR;Zy}h z-Lt**+@T-xs-A$Ckk0MpKl#4<{;S+Xq8PkQ0KrM2Hc?U%QzsKX0Tz;Ce`1y~u-iCP zgN)h}jt2j^{Mp9gUGX>?I;GGn2sG4OAX*XiFwBFO2RK@S%)|4?2NeC_Vn?^DI9T2h zJXy(1pdX<}`O4~i4SAt=4nR+1=tyy8u%kWJdm@yCRAP;S?d#}q^w>-`O;i@bo7k*v z@XnR9n%%^zI>)h`9>?eiCRPkjVT zBKcNONLhpDjSjdL8%-ztdj^fN^X^{X#RI|ay}r%@qrCeW*Y1tXcz11Z;JE*Ii{q59 zvBP=z#nt|veQ86rf#Q>{T6fLRMSp&`bv!*b%hy)2VR)ZB)a5TCYNqss!7 zyB!zFoettImLBKLAL@0t`A>I`90=ANOY!yA`S;fOb`JUm^I~4{v@;LP^VJ?7Zt^$h zStBEN9llZWLX^oK8QJsM$eB@5@RT9I0|*e6v@}f3oQmo3iN4c?!NH1G{fDZC8i&iC z3-tE=G1$FpjlcSI;7o`A@ILVw=E2C*|8u84oNT9k?KxXF%DOS~R>jf$>VI^6G&$;W z*RH?bXZiV;+gHOwY_5xczjFVifAlw>qF_CE^Z~-h^p$@1#i)3he%z>T@U>NWDqeiv s*m1-dsC0A$$_AMS0*!gY&3147OQ8H;KI!^fA}9|NNo>I@k;!iQe?MArIRF3v diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml deleted file mode 100644 index 057e7ccb5..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.after_roundtrip.yaml +++ /dev/null @@ -1,801 +0,0 @@ -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "379" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "353": "354" - clusterName: "359" - creationTimestamp: null - deletionGracePeriodSeconds: 8854032467905298740 - finalizers: - - "358" - generateName: "347" - generation: 1599344877585039625 - labels: - "351": "352" - managedFields: - - apiVersion: "361" - manager: "360" - name: "346" - namespace: "348" - ownerReferences: - - apiVersion: "355" - blockOwnerDeletion: false - controller: false - kind: "356" - name: "357" - uid: D很唟-墡è箁E嗆R2 - resourceVersion: "15930892079168115837" - selfLink: "349" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "374" - kind: "375" - name: "376" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "373" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "372" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "378" - reason: "377" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "383" - reason: "382" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "380" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "381" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.json b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.json deleted file mode 100644 index 69cd83a36..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.json +++ /dev/null @@ -1,1182 +0,0 @@ -{ - "kind": "StatefulSet", - "apiVersion": "apps/v1beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "volumeClaimTemplates": [ - { - "metadata": { - "name": "346", - "generateName": "347", - "namespace": "348", - "selfLink": "349", - "resourceVersion": "15930892079168115837", - "generation": 1599344877585039625, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 8854032467905298740, - "labels": { - "351": "352" - }, - "annotations": { - "353": "354" - }, - "ownerReferences": [ - { - "apiVersion": "355", - "kind": "356", - "name": "357", - "uid": "D很唟-墡è箁E嗆R2", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "358" - ], - "clusterName": "359", - "managedFields": [ - { - "manager": "360", - "apiVersion": "361", - "fields": {"362":{"363":null}} - } - ] - }, - "spec": { - "accessModes": [ - "Pöƌ镳餘" - ], - "selector": { - "matchLabels": { - "t.k47M7y-Dy__3wc.q.8_00.0_N": "" - }, - "matchExpressions": [ - { - "key": "PfNx__-U_.Pn-W23-_.z_.._s--_F-R", - "operator": "In", - "values": [ - "g__4K..-68-7AlR__8-7_-YD-Q9_-_1" - ] - } - ] - }, - "resources": { - "limits": { - "撣樀": "688" - }, - "requests": { - "4Y鳲Jɡ": "987" - } - }, - "volumeName": "372", - "storageClassName": "373", - "volumeMode": "iD¢ƿ媴h5ƅȸȓɻ猶", - "dataSource": { - "apiGroup": "374", - "kind": "375", - "name": "376" - } - }, - "status": { - "phase": "嫡牿咸Ǻ潑鶋洅啶'ƈo", - "accessModes": [ - "Ǣ龞瞯å檳ė\u003ec緍k¢茤Ƣǟ½灶" - ], - "capacity": { - "u汎mō6µɑ`ȗ\u003c8^翜T蘈ý": "37" - }, - "conditions": [ - { - "type": "ɁºDZ秶ʑ韝e溣狣愿激H\\Ȳ", - "status": "I梞ū筀", - "lastProbeTime": "2489-11-15T17:36:06Z", - "lastTransitionTime": "2023-10-20T16:52:07Z", - "reason": "377", - "message": "378" - } - ] - } - } - ], - "serviceName": "379", - "podManagementPolicy": "C", - "updateStrategy": { - "type": "Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4'", - "rollingUpdate": { - "partition": -186717017 - } - }, - "revisionHistoryLimit": 1684743280 - }, - "status": { - "observedGeneration": 3145429786196118388, - "replicas": 1256299227, - "readyReplicas": -63012996, - "currentReplicas": 1538760390, - "updatedReplicas": 346775159, - "currentRevision": "380", - "updateRevision": "381", - "collisionCount": 1836894267, - "conditions": [ - { - "type": "囨汙Ȗ\u003e\u003c僚徘ó蒿", - "status": "誀ŭ\"ɦ?", - "lastTransitionTime": "2741-08-01T23:33:42Z", - "reason": "382", - "message": "383" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.pb b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.pb deleted file mode 100644 index d7682622f6219d590571153d0106806d788144df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5719 zcmYjV3s@9Kww@jmC7s*^JCB_m^R1K7sKHd*UH$gv;afySMJ386>4=~a6j6C7n|vRr zh$14QAc#r?MFf#IC?I^x4D%p2xp}#pyT-lIYtJJw=4G-mCfR#x#%z|4?{v+ns#E8j zI(5!pm8Nbr(PQa{R%c{votn)jrDU$g%!A7^S7)ZI&DyXmC6j4+mj0NcDa=rUl@jfg z6m54F1nc%Wn>NS#P86+H11I;t=4|j*vVqDL*|{&lICUWfKgP?NEMkdML{(5_N#?Mi zsaJ08xSYT5SboM#(~{;rT{{bE-aXbwC61ygg`w1>(KMwoW}Zv6(Pkc7&AecLcy_MQ zci2<-r>(<9t^*m-W}fFvDz(MTi@9cADx#i;p)&JSu(ZfHTokOU8a{zm7{@vtJ*%gB z55MUU%%@6aFaXn3-NhYdKmr zLK`{6Z@3QbZPUi&iX-U%Hfy!z|A(WH+Eytj;1)WZ7g^*Vi#m&PBR_ z(vgmIUC2VfTcYc%vI4Exq|aprDEbXa<>if%hLX3b2>#Y1Bq23ZkdqMNG=#8#vUqJH z5+sC@+3Za+4}-+D+Yy3Jq>zuc6>%s_+K`G7;<=2?@Jj(UMk#6Q5U21-Q&+_<-?And zVHUKQqc6+Wbu2Gf2@2dFw<&Xex>eb(Z`U_*y0keC>mXKN#K!5YzFKCrq?pv?7#6XT z&dygsbu?ps4p;$#bY8YL+vyJ}+AMI4S>UZ^0o%=j5dGvUf!^9To(cA~rg$2Su4-|@ z(@VXr3Av5~zM@Xd2#TPHSe0d7g?}tcoZ5Wn;<@YB3tD&xgIznn-t*nArv8tq#7Gb= zfoM62v=nHmshBp4oYgGycH8vCSB<77fAJ~*kv+4bo#i9Dh7SgcD*p6_yVCw@@N`|Y zS8tPjCt$hFj!#Bl4$vI zXjjqQP#D=LJ7I$IZi?x@@NChky-sNvhQ>X?P-SmO188pgd!ivE_$f3cvd? zB*AiRpyT^r!op0`Xcz%&$fCtGGaA|;Se7lpJ)Rb`-7G87W?AJ-)6B9q-4uTxZC1FI zrX;h%$HF`XGiF7wQ1KA&iWo&D!pTx#z9L)Aiefh_YP4C=uvz7%!AzB(P9<643$s+g zN;sm8iiX`#VU8-Nf@@UJUsWxXo%Cv3EVNmJaL^zeGzbSxhz7nUa#SwN(qNV*@1QjL zS@@xV!_ArsEX_KGj^H_t0m56slZt|E`So}E!`4UL{`}o9!_6Yp|`F? z*h~yhPbFN12`x-qg2VoYV+^Z>{0}MGcI2}6Ui@0a@&p``CkSMiXelngc=LXn2|^ow zN>LxR{_;s}>GvNFQs6&9j>@mTFa|9)np=`wt!3|GO=QPk%m<<21j75F%XEDI0A^JV40vskMs6uj$)&;W@yk~S?{gz z_mq2%I`$j;3IaX#i!*XCjMCzB=w%_bM9dHwqQE>5Nf9?@Vo9_{(Z8w-X%RSb)XrO&u+o>O2%IZ60r&%X6I^zMw9*1@@iU?r2*O>n#oG0NEAB z;eXQsvMF#x=9Q3S$ft0yu`DyhJzekbI126|q80lep7WLO+K}~zum1Q1$9dLM5;)#C za!d;5w?03|sM!@3Pa;Xy{!P3>;z{9Cf#5BpoPF+^^%HZ`>B)42zxFWmRNMkrRq(Cd zFV7jO4_4L~`7N==&JJVXw6CW_^d0C!6JT2*Jz<4tsgT`OBnTBnw)NgBsXzE>OUprO zvWcLe=~r9dyY~6DmhZ;KMm#%Q9#1w~fpdoyHIFjwp{P;{aw6n3j3Hh^#$qS})_YAU zimIi?*m7Jgf%XC8c&)L<(<&7joVUZXi^49T-0+odeh6|<+^#$L$FlCuzSK#PQ zZ=G}CnP5RtaG=3aGSq3SF1T9!_Idx`zosU4mc4J>?QonOiysf}KNRR}@eLfdxq1WD z$7I*uU|lCvGtdum99FrRK=@c7I39?wl6uYbx@k)yO{`bRc~d2@UX{UmRf&4H^V~b9 zkF>X)r7V=~oq?}{f4=dy`{~L5)mm}o>X#jbcPOslM043UU%clPLW@9MiohB_lPsu` zO;WX7aN=BkCA_Q13QDhg+5MmPM3Cu$rQW3idxGc(MmeXVT z+&Rm2mKBm`WeceUv+5auOtUgr9QP|KWY@A8x}eAE%VubrG=IUYcy=p7YgzK2n+2IccM}qla%IpOU^o0kaDKL;3=J4)BU+QRCQSk;tfWs( zn8mWnCViX0f);8lGX|@=pl;iU*z|4e);SBrnal$E*<^OnRz=Tbm*_AqhGo;VMJk}% z)jHzhbv9Ag7iOzEyBItIx%(a}er(ao#p!GH#5iycLR;850DB>71X6|sUbU7+&>v9r zFa+@ka5>PT@ z1_=LR@(QGHMH@3`urEnE0=S;Qqb)07n9j*;%H}j_j*djcu8cu!8mq7ybo7$CiPg8o z@@T`{87sjq3};J#qIiLdy!DCkb2t|>aQKf?^vkpuqw5K5Lar{eF}Zqz&Ti4OL5ma} zDe5L&PGni0*OiQw5K0>tZrH}MY>uAFOb{ei>z+KCuw2-hj=)Rnb$vCv7|+vV zL3Kd@)dle=1yrh~t^s7=B`9*d1bf9x02z1*AOjDVPAHbV%tzIK(eZYK<)^^Sc7O~q z!J3Ok%Q>UroTJ5msNY|lho?EZR|UHpr5xi#KA9MT3_O$sXy1bjybRF*w^{-jc#`6I zC5)YTAq*J+CK9G#F@+%muMi-q5XcZmv-Hz(o+?+j=sfG(J6sbuKIpCR>GKp#dC}Eubeti*n!?3GCFB)3grWe& zLtBl0dZ@|KJ#yZe_nhOb|HQyZUfl3GZ-cwav1?19`aqypm4HD-(^qM}6h{xo1LJXvF23a1YwFG@l-!2(;lf zF{-e!t0yeOQu^-Cx9$Oqvb(O4pF?X;_FO-D{yy%DBPERyN#zthBcunU|A|Bo`B#|1 zYb2&Lh$-*cS>ZKF@#47OEXR=0frFVPp%Tjpj0iP>6GM2yeRAYR7*BALJ<8cI*LlX@ zR_Vxdmw5+A%0dW&BlwK_6`$R#Ib1qAgwHrN75Lf~X85A!E?>CNQ{+8?vRr+>9TmA1 z6fMve*M&biE1j*r`r;MArk+4u$%I7-o|@?j^E=~oucyd=s@u1-aOgs2u(pN`b~U+= zLh&cXmE3$Vx%psn^TE7etL!gx-Mn4bbvq0#Ow&L9XGQm+&uV)QQL*C!CC&cQOG9Uz zg)iG2Esk?TO*byIxGH@os{MOQy}cpaL2gZ$mqNJ1R7z1H+`$9V3V{t?{ul1xYl)#NC|eDlVh)(`!c4^~m3>y{vpJT7QMkS|2e zL-ke^T@HuC2h(mtb8RtIN#W#Ef{l2FBz~1)2zTJVA za^HcLV18+eILUdyS6%KqRq89RPXCO^mcF8>AF0UA>)ln(6YjU{f4+~Dbm)K$765<) zfjAOGE!qSRWRfOusspl^DTQ7|prPgh(TXS= z%!8K)I9h_tM>BArfd+=1faXgM|-UIWGF4E#6AVv*VE(Zv6*a|s4Rk4v)S9>B`jwRyO~vWj$=7J4y4be z$1PbKw+)KI3Y}e&j$VRiFP+VWS_m}_>2pzhsK||5r|aSZD2%d-lo=c1bsfGsS~VLj z)u0&iV4EV~C)Up%s&x$-jh(Mct^&^m&mnK0zqotaBVY^3z=A>w9Xxn+z(v_;I_cj# zXp~)W_xdg!40iAHbru-q-IH8Z)4s+I=aCoI_^w=z4Tgk@Z{qj(k_uy-uBhRU?`Uj6K4^-}PTq3tTh{RZWoHu`{*WKnn z(>-!9SaUqZ*IVb`SLfR`=o`$7dD+v>JTTu^dt$iB-<)TSjNENA0}9sVQx z#YxPAk!SwrZhbiYPXEetu5OfdQ{?T6WBJwp==g9-)RnH?f4$H0(=T_fg@@Q&m;QeB z{>lI7Z$3@IdhiScgpcVf{r2-w@iP6mQQhEctMXL5@SL&ps4-CK=m?YzG7khA^M;%4 a-uf3o`M-SJ^|wS&9ww4#gLfm7-Sq!z@^#k$ diff --git a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.yaml deleted file mode 100644 index 7f8c43069..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/apps.v1beta2.StatefulSet.yaml +++ /dev/null @@ -1,810 +0,0 @@ -apiVersion: apps/v1beta2 -kind: StatefulSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - podManagementPolicy: C - replicas: -1978186127 - revisionHistoryLimit: 1684743280 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - serviceName: "379" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - updateStrategy: - rollingUpdate: - partition: -186717017 - type: Z槇鿖]甙ªŒ,躻[鶆f盧詳痍4' - volumeClaimTemplates: - - metadata: - annotations: - "353": "354" - clusterName: "359" - creationTimestamp: null - deletionGracePeriodSeconds: 8854032467905298740 - finalizers: - - "358" - generateName: "347" - generation: 1599344877585039625 - labels: - "351": "352" - managedFields: - - apiVersion: "361" - fields: - "362": - "363": null - manager: "360" - name: "346" - namespace: "348" - ownerReferences: - - apiVersion: "355" - blockOwnerDeletion: false - controller: false - kind: "356" - name: "357" - uid: D很唟-墡è箁E嗆R2 - resourceVersion: "15930892079168115837" - selfLink: "349" - spec: - accessModes: - - Pöƌ镳餘 - dataSource: - apiGroup: "374" - kind: "375" - name: "376" - resources: - limits: - 撣樀: "688" - requests: - 4Y鳲Jɡ: "987" - selector: - matchExpressions: - - key: PfNx__-U_.Pn-W23-_.z_.._s--_F-R - operator: In - values: - - g__4K..-68-7AlR__8-7_-YD-Q9_-_1 - matchLabels: - t.k47M7y-Dy__3wc.q.8_00.0_N: "" - storageClassName: "373" - volumeMode: iD¢ƿ媴h5ƅȸȓɻ猶 - volumeName: "372" - status: - accessModes: - - Ǣ龞瞯å檳ė>c緍k¢茤Ƣǟ½灶 - capacity: - u汎mō6µɑ`ȗ<8^翜T蘈ý: "37" - conditions: - - lastProbeTime: "2489-11-15T17:36:06Z" - lastTransitionTime: "2023-10-20T16:52:07Z" - message: "378" - reason: "377" - status: I梞ū筀 - type: ɁºDZ秶ʑ韝e溣狣愿激H\Ȳ - phase: 嫡牿咸Ǻ潑鶋洅啶'ƈo -status: - collisionCount: 1836894267 - conditions: - - lastTransitionTime: "2741-08-01T23:33:42Z" - message: "383" - reason: "382" - status: 誀ŭ"ɦ? - type: 囨汙Ȗ><僚徘ó蒿 - currentReplicas: 1538760390 - currentRevision: "380" - observedGeneration: 3145429786196118388 - readyReplicas: -63012996 - replicas: 1256299227 - updateRevision: "381" - updatedReplicas: 346775159 diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json deleted file mode 100644 index 7ecdc65f3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "kind": "TokenRequest", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "audiences": [ - "24" - ], - "expirationSeconds": -8496244716696586452, - "boundObjectRef": { - "kind": "25", - "apiVersion": "26", - "name": "27", - "uid": "Ă凗蓏Ŋ蛊ĉy" - } - }, - "status": { - "token": "28", - "expirationTimestamp": "2095-08-29T22:12:41Z" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.pb deleted file mode 100644 index 03d36f1bf8d5655ef90ca524f3500d10de48eaeb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmV-H0lxlgICB6BC<+*1b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3{-DxWo}Ysadl;L zbP|jL3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwt zq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRM zHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt z0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc zFA4%OG#VZX0x~rc0x~ul0x~xu5X6GzhnMJ+kHw1Un~KDVc_6Irio~DJ(Tj=!8V(8q TGB^?l2-(Q;;tmi18UP{y-Y#?` diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml deleted file mode 100644 index 3051cc307..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.after_roundtrip.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "24" - boundObjectRef: - apiVersion: "26" - kind: "25" - name: "27" - uid: Ă凗蓏Ŋ蛊ĉy - expirationSeconds: -8496244716696586452 -status: - expirationTimestamp: "2095-08-29T22:12:41Z" - token: "28" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.json b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.json deleted file mode 100644 index 8d16df9e0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "kind": "TokenRequest", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "audiences": [ - "24" - ], - "expirationSeconds": -8496244716696586452, - "boundObjectRef": { - "kind": "25", - "apiVersion": "26", - "name": "27", - "uid": "Ă凗蓏Ŋ蛊ĉy" - } - }, - "status": { - "token": "28", - "expirationTimestamp": "2095-08-29T22:12:41Z" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.pb b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.pb deleted file mode 100644 index 27d10cb05c4ed2646c6cecfd3b22b40082fde099..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmV-X0j~aQICB6BC<+*1b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3{-DxWo}Ysadl;L zbP}8b3fKV(0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwt zq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRM zHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt z0x>m;0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc z4hjM>I1&g71_}Z(IT8R8FA4%OG#VZX0x~rc0x~ul0x~xu5X6GzhnMJ+kHw1Un~KDV jc_6Irio~DJ(Tj=!8V(8qGB^?l2-(Q;;tmi18UP{yFvWG7 diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.yaml b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.yaml deleted file mode 100644 index 0a5a3ae49..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenRequest.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "24" - boundObjectRef: - apiVersion: "26" - kind: "25" - name: "27" - uid: Ă凗蓏Ŋ蛊ĉy - expirationSeconds: -8496244716696586452 -status: - expirationTimestamp: "2095-08-29T22:12:41Z" - token: "28" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json deleted file mode 100644 index ddb8ef806..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "kind": "TokenReview", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "token": "24", - "audiences": [ - "25" - ] - }, - "status": { - "user": { - "username": "26", - "uid": "27", - "groups": [ - "28" - ], - "extra": { - "29": [ - "30" -] - } - }, - "audiences": [ - "31" - ], - "error": "32" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.pb deleted file mode 100644 index b77fa54d3a1ccc309a8b3db08e8debae355a519c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 303 zcmV+~0nq+yICB6BCkhy0b#!QDZggp5VRUJ4ZZ2y$b1rFbFLp5!3si4wWo}Ysc4=jI z68ixP$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGt zF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_? z3IZ}T5&|+c8YBn+5*P{sGBy$dGB+9mGB_d%3IZ}Y5(EkYGcXzgGcqCqGcg(fA^;<) BVS@kw diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml deleted file mode 100644 index 5e7a0ccaf..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.after_roundtrip.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "25" - token: "24" -status: - audiences: - - "31" - error: "32" - user: - extra: - "29": - - "30" - groups: - - "28" - uid: "27" - username: "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.json b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.json deleted file mode 100644 index 8894631d0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "kind": "TokenReview", - "apiVersion": "authentication.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "token": "24", - "audiences": [ - "25" - ] - }, - "status": { - "user": { - "username": "26", - "uid": "27", - "groups": [ - "28" - ], - "extra": { - "29": [ - "30" -] - } - }, - "audiences": [ - "31" - ], - "error": "32" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.pb b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.pb deleted file mode 100644 index 6bbede7fe0dc42af3e3c960bee5174a5a358cc6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 319 zcmd0{C}!YN=aNV)Ey+mDE6GewEXmBz)62Ff*2~P-FEbS44$03>%?nB`%SSp4) z!N|pEB*bVe#b~0$XsV@jr1j5?6( zMk0o0mS!eKrUvFF7RDB4re+34#+DYh-!)xr?4HwD;KUHHwqt8^>-=+bb~8q?aWR?; zFXpdqw{n_pU&BGczdG$$tktZCN^q3+d2J6TP)Btb1eZb zKA>_7Ar3A!AZ;nc0Aw*4nFui%nM$c}FbGKid1gSKxfGL;g%TH#XDP(O#bj(C#bj)x M#AIwJ#h}Ch0M#2}djJ3c diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.yaml deleted file mode 100644 index a2e5068c6..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1.TokenReview.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: authentication.k8s.io/v1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "25" - token: "24" -status: - audiences: - - "31" - error: "32" - user: - extra: - "29": - - "30" - groups: - - "28" - uid: "27" - username: "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json deleted file mode 100644 index ff2ba1fde..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "kind": "TokenReview", - "apiVersion": "authentication.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "token": "24", - "audiences": [ - "25" - ] - }, - "status": { - "user": { - "username": "26", - "uid": "27", - "groups": [ - "28" - ], - "extra": { - "29": [ - "30" -] - } - }, - "audiences": [ - "31" - ], - "error": "32" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.after_roundtrip.pb deleted file mode 100644 index 94bc804f89ec9fab15fcab9fee800beb291da8ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 308 zcmV-40n7etICB6BED9ZAb#!QDZggp5VRUJ4ZZ2y$b1rFbFLp6vWprUN5(`vsYh`Xy zWp-(0cM|&n3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI z#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZge zS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}11 z0x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0 zH!=Vc2nqr+G!gy1~fBXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R z?CFvnsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUE zv2ih)3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(< zOok>^OopaijJ80fWdq|&n7l%Jli?_NLwt> zG;=KhECq{L)wD8-<}001CnWKsYC diff --git a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.yaml deleted file mode 100644 index c047c1f52..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authentication.k8s.io.v1beta1.TokenReview.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: authentication.k8s.io/v1beta1 -kind: TokenReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - audiences: - - "25" - token: "24" -status: - audiences: - - "31" - error: "32" - user: - extra: - "29": - - "30" - groups: - - "28" - uid: "27" - username: "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json deleted file mode 100644 index 14a1e90c1..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index 13bb489df622ee371ac068221659f9c0f31f3117..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmWNKze~eF9K~~AMCA~NLr{W4%_IeD?k+zrPAX2~Ac_uxU@QUKimj%tP;sbIl@w8- zV8v1q9Rv{!XHcXiQg4O>kl8hRV1le*gA<^2JI%H7U(L96j$BuD&bp zXsHt;lOVC$g^@*os__s8%4DEi>7B|o-b=N^9rx4wI!T3rQdJUY3#gU@s(WZ8Pz^HF zKJ^+UuYGgzSshtuRGvOw?9qB@w|SNyZoZxS2g|{l$s{t42Qe^>0Mlh)h62nC0}~9G pH3nQI-559}z=Lg^(;M(m%ETYFhvR diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml deleted file mode 100644 index 303a58b9c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.after_roundtrip.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: LocalSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json deleted file mode 100644 index dbbcf624e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.pb deleted file mode 100644 index ff00cc0ef21703e16af15c708b3a32af04bcf089..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 363 zcmWNL&npCB9LDGUrlmJYZ;B=d=Aa zFdbcgoW_4oZ|x{QQMr2bSqrsY+hmsEn1T!2vJJ*v@$@pfie{+*O~^imFL3y-bU~mz8x;X48_qT0rjBJ|kvge11MaAe4T|iA?A;EeDw^^SWj|}u diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml deleted file mode 100644 index 0e902967d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.LocalSubjectAccessReview.yaml +++ /dev/null @@ -1,57 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: LocalSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json deleted file mode 100644 index 9ee06ee7f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "kind": "SelfSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - } - }, - "status": { - "allowed": false, - "denied": true, - "reason": "33", - "evaluationError": "34" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index d0dc1615138af8f8d31f475ba23d4093734f7590..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 322 zcmV-I0loffICB6BG71-Ab#!QNa%p;DbZKvHE^9b*E@^Ksb}i=AMdSIOw5`V8p1& zm@ep;uQtSsR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQ zg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^Z zF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B z#D-lO0x>r-01_w)90~$5G!gax}!nO)2Nub}#-0bNXIBebd61FvFcrKDUrr@rq8)%Pb|*!cTaa{sJYP z6Yk>tM1C&iCUZl{r0e_RZozX`$r0cmgb^c%%Scy{p(^24sTzOBY<2hN&@bi{HPE?^3y1$_`6ox4RFUTjyWZ7c||3 zkwuW0YsSbXK($mi2FhfhTxlCAMlY3*oi+b0c;C;eK&d7Pv;tHw0yP3O7*mtA*6AYL=09=bDa7utPxwS=#%VpqtH7$Fpt8q%^o{C{O=%I~Z#Hh)b zF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=- zpU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSv zFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-| zhFuy0F*h;*5(EkYGBg?@3J?kcGBpwcGBz3lGB+XuGB^?l3IZ}Y5&|6)%B)H($;{8w%eE-i%gom=GZYdFPR&URE=|fxO)d#4%}Ff| zN-fJwEf;EK;<~}e#b_kNXe`BOqQq#brF5kA<>Kxms|&rJ&Ff0Ec(JfI;mC@UGxT1} zSZ{WuJM8I_9jQhlhGv##CPtw@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH z{YYCZ&@^)`0WLnEatk32E;b--Da0Ve!o_4{BBjJ70HjTYn2gM%n2gMon2bPbn2dm~ RF*cB3P+~GRlwwd~0055GW(NQO diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml deleted file mode 100644 index bb029b988..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SelfSubjectRulesReview.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - namespace: "24" -status: - evaluationError: "31" - incomplete: false - nonResourceRules: - - nonResourceURLs: - - "30" - verbs: - - "29" - resourceRules: - - apiGroups: - - "26" - resourceNames: - - "28" - resources: - - "27" - verbs: - - "25" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json deleted file mode 100644 index bf8764ff7..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index 8bd8f4b437a2127846a59c5708c273d55030008c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 342 zcmWNK&npCB9LDGUCiEtUmr|1hbJCVE@B7ZY^Ntg8auRV+%GjpNZrNoPwQ^YUquGSo zLN*cyCAkoCG{nWt$$7Tji@(8Kp2PF`^gLM^C|Ji`?n+@Hx9k_)f}dN|vog^A+`uX& z9g{2b882NJPN%&fnDAD8Z;hM*{zMotg1CxI4OuBI+HPExquZsi+Ii^8`sMyybn|th z*H7+6RGyBnpFP$|g(FO68MZ086qYa;cjWKi=1-|yE#*g)@w>gpt?i5N>MNRQ#>gf} z&bMIX5THh;2Loj)P_DI)7US2-=k9v&9)29;Q$VSqNVE*pECRJc)Ssw=^fnH|xDqz5 zPT$Y_r{e0v+mk!+RoSQ=mHKKg$I;GgvSu@d4B>7J%p|}p6`0U~*(qR>0dod{8>AHj jrv!NN&bbEMOyQ)lNK=x60k_q*Rwdyw;Z6@y6;1gEA9!eH diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml deleted file mode 100644 index 67defb413..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.after_roundtrip.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.json deleted file mode 100644 index e9aadf558..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "groups": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.pb deleted file mode 100644 index 340fdc9670022251f32551312aadba76f3bb037b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 358 zcmWNL&nrYx9L3-LrlFfAT}r(ycq_d!^X|Rx$9+m6D=QHTrHtv78D;PWHL@7;qc;gP zWzRN{iP;fQpXC}bG-U|=QzW~snz v4Va??6AYL;2;7h)a7uv7H=Jw0O&!a`A}vyF2Ha8G+Z5Rg*}J_+RW#)vuUTo` diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.yaml deleted file mode 100644 index faa8e72d7..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1.SubjectAccessReview.yaml +++ /dev/null @@ -1,57 +0,0 @@ -apiVersion: authorization.k8s.io/v1 -kind: SubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - groups: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json deleted file mode 100644 index cdf0a95d8..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "group": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index fb583693aaf7ecc6cf2772ccc3eb94cfa61b660d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmWNKze~eF9K~~AM9U!#hl7L;HIo!tb9ec1aZ+&-2T^no1k)0*Dz-Llg^EL!s-%bt z1uGUsbPz;b6ctBPsf(MFbBkU48_e>C_xbSNs&FMNaM;f0mebi((axpP>+x0L##8Cx z0!=tMo05U4bkbg%%_mlzWNs{(bX<4FDWsfDat^qOFk%F88EFdAql#bdTvz#f?{-*Ow?$5AE)P6nn_ZEXSlSyP0hcPgX0Mlh)h62ot t0uv0FH3D2EAq<=n;K4iR3UDoogGMJ^K^hFWDffn?fQx`z5hP2B^ba*hY%%}< diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml deleted file mode 100644 index 9017adaf1..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.after_roundtrip.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: LocalSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "35": - - "36" - group: - - "34" - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" - uid: "37" - user: "33" -status: - allowed: false - denied: true - evaluationError: "39" - reason: "38" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json deleted file mode 100644 index 16a03566a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "kind": "LocalSubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "group": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.LocalSubjectAccessReview.pb deleted file mode 100644 index 0664b719f541c98f2b17cbbb24e14ee5281f81c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 368 zcmWNL&npCB9LDGUrlmJYZw{Iqn3JZgdEa+_yrUFyl7onYQf9X)i!5eQD~BaNnoX!J z)V9((s7)?}91U@CQ_6Wad+|4TFV9oY^XchX5P^aP?(o(!bLrJo*2|>QOYsE}#8c_s zb(-)q9wqIg>7=(fv6h(klbOL}(hq`he?8@IkP6^$gb^c%tH{)lrEAe{y_}CKDee=YS)R*QEp4_@y_VXJnM>#jYWMtd`I&Cy$Ni^K(K!ZGPCQOE%9 zz`#rb%u<2b8Zbu(CKxcc54a&o;FJKDZ#dV0n>v<>MH-~q47j5a-y zYGq?|L1SZOb8}KrgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3r zk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxr zfhgv=m&Ar$8UislG5``N3LFXoGBgqbGBp|kGBzRtGB+v$GB`2k5&|6)%B)H($;{8w%eE-i%gom=GfYY?Ni-A^4^GWV3ocE{N=+_t zOioTME)Gg9%S_~Um(}HH&<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1 z`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+ zO>ES7wsZQCwpgHP=2`+=d_d(ELL6LdK-yA>K}ds3hKtF_M2N}AREo*SOo_?JT#L!b n!idSp(u&F00H~75*ieYc*hq?pg8@hzOEDRnC@@MfC@}y4D<^6$ diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml deleted file mode 100644 index 76ab7fa99..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectAccessReview.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectAccessReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - nonResourceAttributes: - path: "31" - verb: "32" - resourceAttributes: - group: "26" - name: "30" - namespace: "24" - resource: "28" - subresource: "29" - verb: "25" - version: "27" -status: - allowed: false - denied: true - evaluationError: "34" - reason: "33" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json deleted file mode 100644 index fe5c77fcf..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "kind": "SelfSubjectRulesReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "namespace": "24" - }, - "status": { - "resourceRules": [ - { - "verbs": [ - "25" - ], - "apiGroups": [ - "26" - ], - "resources": [ - "27" - ], - "resourceNames": [ - "28" - ] - } - ], - "nonResourceRules": [ - { - "verbs": [ - "29" - ], - "nonResourceURLs": [ - "30" - ] - } - ], - "incomplete": false, - "evaluationError": "31" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.pb deleted file mode 100644 index 1ec167250f07ac6b738ce1ef278484eded3178cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 312 zcmV-80muGpICB6BHVPbJb#!QNa%p;DbZKvHE^9b*E@^Ksb}?dQbYU?P7E@(xW>a-y zYGq?|Qgv))b5dn?X=Qg3^#KaV0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5` zV8p1&m@ep;uQtSsR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3 zt%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{ za4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvY zDCW7B#D-lO0x>r-01^ZW0x~ojA_@=+0x~rc0x~ul0x~xu0x~!f2nqr+IT8XhFc<(L K0y8lh03ra^jArHl diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml deleted file mode 100644 index 0a179056a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.after_roundtrip.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - namespace: "24" -status: - evaluationError: "31" - incomplete: false - nonResourceRules: - - nonResourceURLs: - - "30" - verbs: - - "29" - resourceRules: - - apiGroups: - - "26" - resourceNames: - - "28" - resources: - - "27" - verbs: - - "25" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json deleted file mode 100644 index 63e697700..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "kind": "SelfSubjectRulesReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "namespace": "24" - }, - "status": { - "resourceRules": [ - { - "verbs": [ - "25" - ], - "apiGroups": [ - "26" - ], - "resources": [ - "27" - ], - "resourceNames": [ - "28" - ] - } - ], - "nonResourceRules": [ - { - "verbs": [ - "29" - ], - "nonResourceURLs": [ - "30" - ] - } - ], - "incomplete": false, - "evaluationError": "31" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.pb deleted file mode 100644 index 494fb596f3c20612e24197d79d05e5e38a41b43f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 328 zcmd0{C}!X?6)%B)H($;{8w%eE-i%gom=GfYY?Ni-A^3r@{R3ocE{N=+^a zD$PkP4oWS{Of45`W#YQQ$i-+R#AqzVXrjbus-<+K_2uI3BdZI&p3Un@w0N5O!M0<7d(XM0t z1zJpoh6W54j73a_CRI#^rd^D-K&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefg zHflWEIsHgmEYLJ_Edee*pmGZ#4lXtzZ7IYc#KOg7WFn=+B><#Ng_w-Yq?nA%m6(h` WYM6|Gt}!-{U{GQ*Hk4veVgLZ)-Dlna diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml deleted file mode 100644 index c395c30b4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SelfSubjectRulesReview.yaml +++ /dev/null @@ -1,52 +0,0 @@ -apiVersion: authorization.k8s.io/v1beta1 -kind: SelfSubjectRulesReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - namespace: "24" -status: - evaluationError: "31" - incomplete: false - nonResourceRules: - - nonResourceURLs: - - "30" - verbs: - - "29" - resourceRules: - - apiGroups: - - "26" - resourceNames: - - "28" - resources: - - "27" - verbs: - - "25" diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json deleted file mode 100644 index 0af5bef80..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "kind": "SubjectAccessReview", - "apiVersion": "authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "resourceAttributes": { - "namespace": "24", - "verb": "25", - "group": "26", - "version": "27", - "resource": "28", - "subresource": "29", - "name": "30" - }, - "nonResourceAttributes": { - "path": "31", - "verb": "32" - }, - "user": "33", - "group": [ - "34" - ], - "extra": { - "35": [ - "36" -] - }, - "uid": "37" - }, - "status": { - "allowed": false, - "denied": true, - "reason": "38", - "evaluationError": "39" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/authorization.k8s.io.v1beta1.SubjectAccessReview.after_roundtrip.pb deleted file mode 100644 index 22e7dbdb479d5c02fc3f547ed31ad6f66a78dca9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmWNKze~eF9K~~AMCA~N(r?TS( znsD+qB|{5aiL{f&`ocl(S7P0XGpwj36!}O+k88@yp$tihsW`+irNa=v*JK z`gg5byik9U+pPEH~YN}1iJEM+l^S~)B&noX!J zt2Pn`CAkoCG{nVCDd*kn#oyq)JWoB(r>AE@1PbOj?yctMax2+_m(S)FlM5n9W^<`E zn)dS^C0!G%>3KhsAIfC>AQ<=8vi>@`2K{cWR~HWf(zTS4aQyZ^SAX?EZ2%l!^+sr-u-sz?6dZa zrehd61c`JjMlJzr%qK8VrUKE@r zXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R?CFvnsYW7( zW|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUEv2ih)3o%+G zv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(^Oopai zjJiOjWdq|&n7l%Jli?_NLwt>G;<>cAuTQ* zE+!)rAtobJDJCN`fsZ|RFZ}oq1dI}Yx6b&$u5jevs&)Us0#b?``|mxQdt%qq1)muu cI)DFBQke7QebZmCq{fd`EAOyLF(@$r0B)~{Z2$lO diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml deleted file mode 100644 index 821ec3bb3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.after_roundtrip.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" - targetCPUUtilizationPercentage: -439697596 -status: - currentCPUUtilizationPercentage: 1804227960 - currentReplicas: 73350537 - desiredReplicas: -799278564 - observedGeneration: -918288109031280833 diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.json b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.json deleted file mode 100644 index 37896ba2e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "24", - "name": "25", - "apiVersion": "26" - }, - "minReplicas": -1978186127, - "maxReplicas": 2114329341, - "targetCPUUtilizationPercentage": -439697596 - }, - "status": { - "observedGeneration": -918288109031280833, - "currentReplicas": 73350537, - "desiredReplicas": -799278564, - "currentCPUUtilizationPercentage": 1804227960 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.pb b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v1.HorizontalPodAutoscaler.pb deleted file mode 100644 index 01364d2142d32a0e716a784a15b0e78762451bdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmd0{C}!Z&3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R?CFvnsYW7( zW|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUEv2ih)3o%+G zv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(^Oopai zjJ80fWdq|&n7l%Jli?_NLwt>G;=KhENdb;2&*pU{TD(};n{Z^s$r*YtW~?_m(jE46$&OSb5koUeGZQ0I19KA#V+%7= zGXo=ION-m@nyxl>&uJ`hVhC8&*pU{TD(};n{Z^s$r*YtW~?_m(jE46$&OSb5koUeGZQ0I19KA#V+%7= zGXo=ION-m@nyxl>&uJ`hVhC8NJ365>twoBZDm<_bDYoh$+TL8` zAiC2*sO#S1^xVYY?4kXMss8Dsop}yIv@EW4If#*V5Z14N+-j;@mX7t$4fZdMzdbbu zyXQtPOn&LlzdrcV{P6?Z<}bgMdG&dzX6ae#!fLc0IdnsH=*;QR&79k>-}>&(-||p4 z|8;Trw{@1$pW?i)TY=VQ#10rZr0fIsdk&dXJq@BpiehiF6$=2LFp3KVFabt;wV_u4 z#0W6eQ5JLNR(2B{6_^#&gYW^SVQdLK?QS(1mlHll1Fn>li0bmpC$Gb2}@ zTuxQDjJ)&GqKt7wL2*>t+`@DQW-MYrm_h<bhLpP4+nF!q)D`wCf%s17CvfKj;` z|B^*qHx;x8J<@1XNST31I4YLS#4VFURA^$SMul75QI07Sf(0;xq6Se{ScKg%BP7$O zb_14$B`X2PLm^y}Y7$)*m>8n+t&|GcP_1^NP+Vipq&*dk_r^d{V7D+o1uGCT%rF=l z=ag9H-XsKh03d=%52LZ(6zhf#XoF}A0Oh1T-_u##wCqkKC9(hoSd#!Ww_x1f1HxZk zU3NFLWdse)aHf&NB+CR^mgS71GDOTEsY`KD2GSifB~OGm0>~TcmTVfl5yvH-g1}A* zmJn?ob%QN?Qz@`pz%GeF9T<8^vzm)G$|B2`ixiqycyT3_pLOHjyB1tepiPTc4n93K zl=&cYvSM-gkY}nd|JuaT$xAus{=D=4y5;;Cv-2)V22HMxE9fz_s=Lrq9}eMgK*$;3 zatZ)?-E!OoG)S~kUa$Hh>Y~tW5l%XLfhVbDCn)d~m3ip#ZqQ_2ad`#KumMIgZKnVX zDg%^Kvd6kSsRa(~*Vo*Hm@!z?V zvRyP0Oa+SsFs;^7D^L?bRJ?#fO2p7@3&a>hVnQ^;U%kb|$PW$vFnU_$hcn5XnaMZr zyx;phr;{gh5JnI9ds6Xa&>!iDwRw8=Kq%!W>c-M|cSj~3OZg+!@z#R>Dni}r!L{g? zf)rgF1UpRUA#q8=FsJ(CgBM=yfA71|38iH>xwh86NA?d>`hJ$OdsiTI|$KoxYF$)M#e$dfU;edn(F4oqXV;p1B>JDOpU?L z+0pZpU->=P2Vb5$wr}g)rMI)My&%;rcOF_N%ek71R?F2^bJY2jXf1N+hU(Cn)1jMr zciy=D{oTLip=|o=!tifvTvIF2qo(J^P{Y*7*6fvQ1M`Dp3!ffcJauTMzi#H_^pU#9 zpHjb7mQ^gN!ljCAf@;oHXay&l>x_cR(S2>K!}dg=84C=CVW>Q)i_SWm;1DYZ5i+R& zK_Lcm5wr)e5Y<9pYbWfC3qwG$)h!?WQPWUckgj7{RU+zoh0x9NCQ&Ozu`kt*1wfrJ ziVFlV0Y;?8&?^CA1eoe5i#hYFdI*jR%nBMo)B&b#*b;i!7i1s>YMZ!QT4pwJ9#oKn zTB>{^n(f?+wxfIofXfBe0EAX;30#C*LIA~@h5Z8ei6ZquO|XPdmkvNwVxPdmZ(=)8 zy1P`}hBiMZ4GUtMfLohHM=vRr4dQn2LM66EJx;`z4c^Z%K(e0c0gQdJrE>1tfO6~D z%;6iOGwJ}@58%qIWQQxYAPc-AyQo~r<5@uh6 zX33z0Pu+qZ@`elLC^IrefiaDQpvHh&&^X1#>gtkoM>3UMwyF`AbS&w2ezPif`sOcp zzL+@nW8@%ak(ot0?QwuSTkdrF?Y_Ez%h*~u?&e3E_TnaMNrV_&Pk zFO$WH>R@t1Fe+E$U$Thnrh;~%N1AO4X*1B#78Ofo5|+s!Dm1Y}qr$6hufUWE!2*~; zQIlvWEW+NH5tivwy9vw2QdNKx;V>>qw}@^FObk)^R!W6!s8PF6IH9p1iKIh`z8FXf z>{jNdU8a` zYZ8E9E5?yt5dMmqvU{N|A!ulZGlLu^St8J~EN2vzA!3F|Lz;^+knWf%c_O?SK;BTV zWYgfyI3e*A1a?TUgy<|+*V}S7RRVhjJSQ<|07EYcs`+SxY_ejhNul|K4_8t7Sr6{J zXTkLZ+PH9e|I<@L*$=ZPDi?+iluz}0u1+kTxR`hL&$}P2S<0U=+kH_oXmWL2L64yo zJ%yI~a2U4*gxmvM?gD^5uiWkenj~6jpHF=WbyEmhgp;m5;3;a^NeVnoWgdE>2Q-;i zLSBJ0Y=Du<*l7TR$^fO5oUtxXY5{~attSH+Eg1veo`!^90v_j43a#26tBd#A9;*>! zL(UdM`~P6%`ZA0LwRHon?InTvOGoEE8<`(}T~!xO?4KNce){;Xh0Fc+_2YBnL(bgX WTeCk8)#v5792RpsEYq3e%J~O}g5IJ4 diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml deleted file mode 100644 index 7aeb5cc5d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta1.HorizontalPodAutoscaler.yaml +++ /dev/null @@ -1,132 +0,0 @@ -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - metrics: - - external: - metricName: "44" - metricSelector: - matchExpressions: - - key: JfB._.zS-._..3le-Q4-R-083.D - operator: Exists - matchLabels: - cd525-6ni4-g3-s-98w-4-27/03f_--0..L.0qQ6W-.d.20h-OK-_8gI_z_-tY-R6S17_.8n: 7z.WH-.._Td2-N_Y.t--_0..--_6yV07-_._N - targetAverageValue: "602" - targetValue: "201" - object: - averageValue: "591" - metricName: "30" - selector: - matchExpressions: - - key: 2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ42M--n1-5 - operator: In - values: - - Ou1.m_.5AW-_S-.3g.7_2fNc5-_.-RX8 - matchLabels: - g5i9/l-Y._.-444: c2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am64 - target: - apiVersion: "29" - kind: "27" - name: "28" - targetValue: "810" - pods: - metricName: "37" - selector: - matchExpressions: - - key: G-___196-.dX_iv1H.__.h-J-M.9_T.qo - operator: In - values: - - 5.--sT52b..N.-.K8 - matchLabels: - 5--.K_.0--_0P7_.C.Ze--D07.a_.y_C: 0_5qN2_---_M.N_._a6.9bHjH - targetAverageValue: "109" - resource: - name: S5Ǎʜǝ - targetAverageUtilization: 87018792 - targetAverageValue: "274" - type: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" -status: - conditions: - - lastTransitionTime: "2685-12-24T19:19:52Z" - message: "76" - reason: "75" - status: 蠂Ü[ƛ^輅9ɛ棕 - type: v1b繐汚磉 - currentMetrics: - - external: - currentAverageValue: "439" - currentValue: "821" - metricName: "68" - metricSelector: - matchExpressions: - - key: 3-c7181py-8t379s3-8x32--2qu-0-k-q-0--85.4-4tz9x--43--3---93-2-2-37--e00uz-z0sn-8hx-qa--0o8m3-d0w7p8v9/7W..4....-hD - operator: Exists - matchLabels: - uB7: f.gb_2_-8-----yJY.__-X_.8xNN - object: - averageValue: "404" - currentValue: "811" - metricName: "54" - selector: - matchExpressions: - - key: q05c1lxeqyn-5--9d5a3-7bf46g-40883176jt-e8b--i.1v53nyx5u-o-k-md--381l/KpDZ-._._t__2--A.0.__cd..lv-_aLQI - operator: Exists - matchLabels: - Y93-x6bigm_-._.q768-m_0_F03_J: L.35__5b.5-CX_VBC.Jn4f__.39X...-tO-.qff.ExZ_r7-6.-m..-_-.f9-Q - target: - apiVersion: "53" - kind: "51" - name: "52" - pods: - currentAverageValue: "777" - metricName: "61" - selector: - matchExpressions: - - key: 6.-L..-__0N_N.O30-_u.y - operator: Exists - matchLabels: - 6e1Vx8_I-.-_56-__18Y--6-_3J--.48Y.q.0-_1-F.h-__kK: 9_..O_.J_-G_--V-42Ec - resource: - currentAverageUtilization: 1962818731 - currentAverageValue: "559" - name: 輂,ŕĪĠM蘇KŅ/»頸 - type: :贅wE@Ȗs«öʮĀ<é瞾 - currentReplicas: 310937924 - desiredReplicas: 912103005 - observedGeneration: 6319752985051851078 diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json deleted file mode 100644 index 48fbd3e81..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.json +++ /dev/null @@ -1,240 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v2beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "24", - "name": "25", - "apiVersion": "26" - }, - "minReplicas": -1978186127, - "maxReplicas": 2114329341, - "metrics": [ - { - "type": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "object": { - "describedObject": { - "kind": "27", - "name": "28", - "apiVersion": "29" - }, - "target": { - "type": "H牗洝尿彀亞螩B", - "value": "52", - "averageValue": "835", - "averageUtilization": -1161251830 - }, - "metric": { - "name": "30", - "selector": { - "matchLabels": { - "8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s": "8TB_M-H_5_.t..bGE.9__.O" - }, - "matchExpressions": [ - { - "key": "0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c", - "operator": "In", - "values": [ - "LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A" - ] - } - ] - } - } - }, - "pods": { - "metric": { - "name": "37", - "selector": { - "matchLabels": { - "d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y": "8j" - }, - "matchExpressions": [ - { - "key": "vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "蚛隖\u003cǶĬ4y£軶ǃ*ʙ嫙\u0026蒒5靇C'", - "value": "815", - "averageValue": "377", - "averageUtilization": 2126876305 - } - }, - "resource": { - "name": "ȉ彂", - "target": { - "type": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "value": "970", - "averageValue": "603", - "averageUtilization": -88173241 - } - }, - "external": { - "metric": { - "name": "44", - "selector": { - "matchLabels": { - "yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k": "8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S" - }, - "matchExpressions": [ - { - "key": "l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "", - "value": "891", - "averageValue": "765", - "averageUtilization": -2717401 - } - } - } - ] - }, - "status": { - "observedGeneration": -6410519298686885049, - "currentReplicas": -740777212, - "desiredReplicas": 1741405963, - "currentMetrics": [ - { - "type": "崟¿", - "object": { - "metric": { - "name": "51", - "selector": { - "matchLabels": { - "0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt": "0E.-2o_-.N.9D-F45eJK7Q5-R4_7A" - }, - "matchExpressions": [ - { - "key": "b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a", - "operator": "NotIn", - "values": [ - "F._oX-F9_.5vN5.25aWx.2aM214_.-C" - ] - } - ] - } - }, - "current": { - "value": "168", - "averageValue": "500", - "averageUtilization": -1562283537 - }, - "describedObject": { - "kind": "58", - "name": "59", - "apiVersion": "60" - } - }, - "pods": { - "metric": { - "name": "61", - "selector": { - "matchLabels": { - "p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G": "9.M.134-5-.q6H_.--t" - }, - "matchExpressions": [ - { - "key": "7U_-m.-P.yP9S--858LI__.8U", - "operator": "NotIn", - "values": [ - "7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m" - ] - } - ] - } - }, - "current": { - "value": "886", - "averageValue": "310", - "averageUtilization": 757223010 - } - }, - "resource": { - "name": "臜裡×銵-紑浘", - "current": { - "value": "370", - "averageValue": "1", - "averageUtilization": -1095116290 - } - }, - "external": { - "metric": { - "name": "68", - "selector": { - "matchLabels": { - "ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - } - }, - "current": { - "value": "386", - "averageValue": "882", - "averageUtilization": -500012714 - } - } - } - ], - "conditions": [ - { - "type": "蚢鑸鶲Ãq", - "status": "", - "lastTransitionTime": "2132-02-01T06:56:28Z", - "reason": "75", - "message": "76" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.pb deleted file mode 100644 index 51354483682276064b0e63342eac88e3fc075027..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2070 zcmX|?ZEPGz8OOa_@}f}%)g&VBAyn5?P#HbX?auD(<u*C$`V7o%kiLok(an-<{7s z+jnQ*`ObF;i8OW7I7Lk&w|S}KDhW~x0UCuQZHP)l@m~D!vqKpFi;S0fdT@ z@|+7@X{6oJ?Cku1&;S4IsLItaWZR-s`AjYr9UDm}!v!&z$VUa=5y?!Blr!mkbgU~A zZ~Whi#3cXVbL_Uk48aX2WVrQ)Y^YzHSwDYd@xny=>cVVPRnC6zTZ?bpIf<2%Z+eSI zo>}?++X=DV_5#lp((+y9C{KEpa02zgU!T2q;K=-eY*S6wk6*ZQaOSmN&tEt8Z)S$i z4K=uh838wKD^vSaAeyfYlly)UOuyO@y5zK-~IE?7AgxrXyTt?rWBz~>>=gI zy4lLP_y4o;sn7|NnU2Menry~kDOG|DxG)a>B!Cqi_Xb@67^5*6i>HK3vvd^zgtu|$ z7Xru+TQK5=14Mfaw4`}i3<@0@uoFwDLH9_dBOQH+3iV)j5h32{<@gS@w@G(GL`#i% z#KG2P47A2QoX)Y!%1(dZ>8JTF1^~kHgj$H=+dR;>Z^foRbTZi zr*8R&AKk0^>|>+hHwJr?aJnvk!(e^vOQlZjwq#p$KiFgv^2-Pn1EK(}&_;Lr9A}iH z>O^4QPBmeq1^PgbjB0>hzK1oBDFPj~($GkTBtz|k2y{+l z^F)|Df|iUSm1m+vPSw2_mr5>j zDbK%XH6w@&#cVeQyP(CDiT0=cZV5fE_8WPW`GY}{gc7~zBqY;PrDMVgw|D7Gqjnpy zUE~}b=7gPbhX?G@1(Rr+eJ~{v`0eQ2qTcVKB{%I7^PGP$Qb0>e4 z5fj@}RYKCTYXA19nG+vv5C~CclZu-%2$`N0S~WJ3F9UxW!fkVxJ6buYaV)X#Jm2V5E$JmZbfy4-!7^u-v+ev{9Ie<*oDPnp|QT}aDKyp+-5ER7p6gb%oO**--094SP zrGDzd-f`5r6%@Ihm~`uy!ygw^WWdgxuk+ZY9mELYXwa!V45AvW9-G&(&leQ6XUdRD z6X!A+550bT`qQjz*n$4A8-Y=x_Wj@8IkpiML)5c}E2qz`AA5WK>ZO|pCwNV0>(=>$ V_n+VPNKL)z%Ldc;LN)a@{{=Pbi)R1; diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml deleted file mode 100644 index 177bdbc55..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.after_roundtrip.yaml +++ /dev/null @@ -1,159 +0,0 @@ -apiVersion: autoscaling/v2beta2 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - metrics: - - external: - metric: - name: "44" - selector: - matchExpressions: - - key: l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte - operator: Exists - matchLabels: - yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k: 8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S - target: - averageUtilization: -2717401 - averageValue: "765" - type: "" - value: "891" - object: - describedObject: - apiVersion: "29" - kind: "27" - name: "28" - metric: - name: "30" - selector: - matchExpressions: - - key: 0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c - operator: In - values: - - LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A - matchLabels: - 8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s: 8TB_M-H_5_.t..bGE.9__.O - target: - averageUtilization: -1161251830 - averageValue: "835" - type: H牗洝尿彀亞螩B - value: "52" - pods: - metric: - name: "37" - selector: - matchExpressions: - - key: vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W - operator: Exists - matchLabels: - d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y: 8j - target: - averageUtilization: 2126876305 - averageValue: "377" - type: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - value: "815" - resource: - name: ȉ彂 - target: - averageUtilization: -88173241 - averageValue: "603" - type: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - value: "970" - type: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" -status: - conditions: - - lastTransitionTime: "2132-02-01T06:56:28Z" - message: "76" - reason: "75" - status: "" - type: 蚢鑸鶲Ãq - currentMetrics: - - external: - current: - averageUtilization: -500012714 - averageValue: "882" - value: "386" - metric: - name: "68" - selector: - matchExpressions: - - key: v8_.O_..8n.--z_-..6W.K - operator: Exists - matchLabels: - ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3: 29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1 - object: - current: - averageUtilization: -1562283537 - averageValue: "500" - value: "168" - describedObject: - apiVersion: "60" - kind: "58" - name: "59" - metric: - name: "51" - selector: - matchExpressions: - - key: b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a - operator: NotIn - values: - - F._oX-F9_.5vN5.25aWx.2aM214_.-C - matchLabels: - 0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt: 0E.-2o_-.N.9D-F45eJK7Q5-R4_7A - pods: - current: - averageUtilization: 757223010 - averageValue: "310" - value: "886" - metric: - name: "61" - selector: - matchExpressions: - - key: 7U_-m.-P.yP9S--858LI__.8U - operator: NotIn - values: - - 7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m - matchLabels: - p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G: 9.M.134-5-.q6H_.--t - resource: - current: - averageUtilization: -1095116290 - averageValue: "1" - value: "370" - name: 臜裡×銵-紑浘 - type: 崟¿ - currentReplicas: -740777212 - desiredReplicas: 1741405963 - observedGeneration: -6410519298686885049 diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json deleted file mode 100644 index f6c00ac85..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "kind": "HorizontalPodAutoscaler", - "apiVersion": "autoscaling/v2beta2", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "scaleTargetRef": { - "kind": "24", - "name": "25", - "apiVersion": "26" - }, - "minReplicas": -1978186127, - "maxReplicas": 2114329341, - "metrics": [ - { - "type": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "object": { - "describedObject": { - "kind": "27", - "name": "28", - "apiVersion": "29" - }, - "target": { - "type": "H牗洝尿彀亞螩B", - "value": "52", - "averageValue": "835", - "averageUtilization": -1161251830 - }, - "metric": { - "name": "30", - "selector": { - "matchLabels": { - "8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s": "8TB_M-H_5_.t..bGE.9__.O" - }, - "matchExpressions": [ - { - "key": "0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c", - "operator": "In", - "values": [ - "LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A" - ] - } - ] - } - } - }, - "pods": { - "metric": { - "name": "37", - "selector": { - "matchLabels": { - "d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y": "8j" - }, - "matchExpressions": [ - { - "key": "vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "蚛隖\u003cǶĬ4y£軶ǃ*ʙ嫙\u0026蒒5靇C'", - "value": "815", - "averageValue": "377", - "averageUtilization": 2126876305 - } - }, - "resource": { - "name": "ȉ彂", - "target": { - "type": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "value": "970", - "averageValue": "603", - "averageUtilization": -88173241 - } - }, - "external": { - "metric": { - "name": "44", - "selector": { - "matchLabels": { - "yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k": "8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S" - }, - "matchExpressions": [ - { - "key": "l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte", - "operator": "Exists" - } - ] - } - }, - "target": { - "type": "", - "value": "891", - "averageValue": "765", - "averageUtilization": -2717401 - } - } - } - ] - }, - "status": { - "observedGeneration": -6410519298686885049, - "currentReplicas": -740777212, - "desiredReplicas": 1741405963, - "currentMetrics": [ - { - "type": "崟¿", - "object": { - "metric": { - "name": "51", - "selector": { - "matchLabels": { - "0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt": "0E.-2o_-.N.9D-F45eJK7Q5-R4_7A" - }, - "matchExpressions": [ - { - "key": "b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a", - "operator": "NotIn", - "values": [ - "F._oX-F9_.5vN5.25aWx.2aM214_.-C" - ] - } - ] - } - }, - "current": { - "value": "168", - "averageValue": "500", - "averageUtilization": -1562283537 - }, - "describedObject": { - "kind": "58", - "name": "59", - "apiVersion": "60" - } - }, - "pods": { - "metric": { - "name": "61", - "selector": { - "matchLabels": { - "p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G": "9.M.134-5-.q6H_.--t" - }, - "matchExpressions": [ - { - "key": "7U_-m.-P.yP9S--858LI__.8U", - "operator": "NotIn", - "values": [ - "7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m" - ] - } - ] - } - }, - "current": { - "value": "886", - "averageValue": "310", - "averageUtilization": 757223010 - } - }, - "resource": { - "name": "臜裡×銵-紑浘", - "current": { - "value": "370", - "averageValue": "1", - "averageUtilization": -1095116290 - } - }, - "external": { - "metric": { - "name": "68", - "selector": { - "matchLabels": { - "ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3": "29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1" - }, - "matchExpressions": [ - { - "key": "v8_.O_..8n.--z_-..6W.K", - "operator": "Exists" - } - ] - } - }, - "current": { - "value": "386", - "averageValue": "882", - "averageUtilization": -500012714 - } - } - } - ], - "conditions": [ - { - "type": "蚢鑸鶲Ãq", - "status": "", - "lastTransitionTime": "2132-02-01T06:56:28Z", - "reason": "75", - "message": "76" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.pb deleted file mode 100644 index 231fa3e2519d7e5fd9ab0a114364e59353b768e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2086 zcmX|?eQX>@8OFU^;zXmWM3acPhfrNpL1py5w>!JDJBxtIPHdlDJMl-{IFZnBzB^xh zw(riq^PTSy5^3tDaf+HmrunGjDhW~x0UCuQZHP)l@npApR-XJ`3^n2M84< z|Y{!iDjUmHC;ds+|4KHx^#Ma}p~j-|!ZW zJhS}0w-REj?FF7Iq~*KHQJ(ZH;RNdUe|`4efg^JVvduN!KYHQH!Rc3jHFw?ESIZ2a z8)|SPGXiefR;r$vwg{QF)9}cS^78fB+lRiHyEU`;Qnt~wZL3BZ6Q=E!O5+Zf1|ra>X~XTKWxm z4ZpFGJ3n7W z`_24Q%#=}2ckqC!2`Q$&cj zc{#pK?QYgx5YbX&9&xa(1p}>d7pHUVu(IP|fe!%)NQ@-G^6e;y643E1kO5B0%Ej>va#kkp?4h5a<0R33NPVCoe2q7X+dwwYiooS#|Gz35y z^TH|uLOxE%PshhJHicd^*)I)(l~^wBz!Zo=m4Sq*WXyq5nT|LG5VKqqgW!Sf zgH({NB8U&!0L2(RWQ!9pL|7*5VH^Ci<%C-S39Bx2?!iswTg&(@5cg|O?UtK!bc=y!ug;QUs96v7C&K%nQ zMP9XuEvs&Ee82wKnV0{yvEgfM!|lV%Z$HZ=3*El9eBt8awWZnO%{SBStCwDBS)IPN zbae4jOZC;jx2mstmQ%m507YoKE8{!j4A>h zw$jitA(dymL{8Ox7?)9}gC@{R5_`IA#8f`<39!$ynspd~ zT~*|Jvi`N>zkBepqR=mDH!Usx<;KZ-?>_gMQTN>92lMyWrPd#L@Z+D=Hoj2HHY{I$ z^_?61zQKM&(xuJs8Z1HXj_18ZwW8z7RS=9zs{nQeto?;jxI3zK8g|4113K_Nv^3$_ zpG2L}S@^2r|3M^N*^77)_}ZO*eOxS z=$-=4mja37UW6tg&tvRSzhA=`LN}JWgFXNyRcAXzLiPV&+fzR1Y`4~vSrnZ*2N~ZF z$b};ywbsxxju^}BuYPr(y}M9!f>ym9Ch~oIkqRMN{V~3^s$D6ss@<`zx)0_KubB_(2>#q)a|SCW zim{APq;&`+bsM_`)rYEhig7khjU`3hiZD>4qqdU*8*%`dtW(7FsG|Jao`B?tfFLM{ zsY!6M8Jcu*VF9S1BTN0%h23MQbsH#hJ2C0eF^4}csK|g_IbY|oTRVsm#F3y&c^E`B zSiLr{XP+r3YR{A*l_t(*G9G$+@aa#ovTg_Z$6XJM5_RwW_Rg{Os2HMwJzP0`Ztd7x iYgaGbJUGs4LYp?t9lZbimd!N{rY{>!-wV|=)chB;5scmd diff --git a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml b/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml deleted file mode 100644 index 12e09b7b5..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/autoscaling.v2beta2.HorizontalPodAutoscaler.yaml +++ /dev/null @@ -1,162 +0,0 @@ -apiVersion: autoscaling/v2beta2 -kind: HorizontalPodAutoscaler -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - maxReplicas: 2114329341 - metrics: - - external: - metric: - name: "44" - selector: - matchExpressions: - - key: l8-r1/0n-A9..9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jte - operator: Exists - matchLabels: - yM_4FpF_W-1._-vL_i.-_-a--G-I.-_Y33k: 8U.-.5--_zm-.-_RJt2pX_2_28.-.7_8B.HF-U-_ik_--S - target: - averageUtilization: -2717401 - averageValue: "765" - type: "" - value: "891" - object: - describedObject: - apiVersion: "29" - kind: "27" - name: "28" - metric: - name: "30" - selector: - matchExpressions: - - key: 0pq-0-7-9-2-ekg-071a-2y-y-o0-59.u5oii37/g.7_2fNc5-_.-RX-82_g50_u__.c - operator: In - values: - - LI--U.v.L.U_8f.-H2._67yg-Ln-__.-__2--z.t20w-.-td---ndm_.A - matchLabels: - 8y-o-4-m-7r--0am6b4---l---rcdj24r-----v--26-----7v9-th0-i4/9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._bQw.-dG6s: 8TB_M-H_5_.t..bGE.9__.O - target: - averageUtilization: -1161251830 - averageValue: "835" - type: H牗洝尿彀亞螩B - value: "52" - pods: - metric: - name: "37" - selector: - matchExpressions: - - key: vs-3-d/M.-F_E2_QOuQ_8.-1_57__JR.N-1zL-4--6o--Bo-F__..XR.7_1-p-W - operator: Exists - matchLabels: - d3-x-2v4r--5-xgc3-yz-7-x--c04.2b-6-17-58-n---5df1--wc-n-pwr-f5--r1i1-7z03/F-.4--_vLW.jj-.5B.._.5_3-_4.31-4.xXe..03Y: 8j - target: - averageUtilization: 2126876305 - averageValue: "377" - type: 蚛隖<ǶĬ4y£軶ǃ*ʙ嫙&蒒5靇C' - value: "815" - resource: - name: ȉ彂 - target: - averageUtilization: -88173241 - averageValue: "603" - type: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - value: "970" - type: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - minReplicas: -1978186127 - scaleTargetRef: - apiVersion: "26" - kind: "24" - name: "25" -status: - conditions: - - lastTransitionTime: "2132-02-01T06:56:28Z" - message: "76" - reason: "75" - status: "" - type: 蚢鑸鶲Ãq - currentMetrics: - - external: - current: - averageUtilization: -500012714 - averageValue: "882" - value: "386" - metric: - name: "68" - selector: - matchExpressions: - - key: v8_.O_..8n.--z_-..6W.K - operator: Exists - matchLabels: - ewco28---f-53-x1y-8---3----p-pdn--j2---2--82--cj-1-s--op3w.nl84--162-gk2-99v2xu-3po4--3s/2-.8-Jp-9-4-Tm.__G-8...__.Q_c3: 29_.-.Ms7_t.P_3..H..k9M86.9a_-0R1 - object: - current: - averageUtilization: -1562283537 - averageValue: "500" - value: "168" - describedObject: - apiVersion: "60" - kind: "58" - name: "59" - metric: - name: "51" - selector: - matchExpressions: - - key: b9g-qy5--ar-gn58nc23/JP_oA_4A.J2s3.XL6_EU--AH-Q.GM72_-a - operator: NotIn - values: - - F._oX-F9_.5vN5.25aWx.2aM214_.-C - matchLabels: - 0dt6e-3-dq848-9q50v-1o-0hvy/Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._Bt: 0E.-2o_-.N.9D-F45eJK7Q5-R4_7A - pods: - current: - averageUtilization: 757223010 - averageValue: "310" - value: "886" - metric: - name: "61" - selector: - matchExpressions: - - key: 7U_-m.-P.yP9S--858LI__.8U - operator: NotIn - values: - - 7-_pP__up.2L_s-o779._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7m - matchLabels: - p7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x--43--3---93-2-23/Xfr.4_.-_G: 9.M.134-5-.q6H_.--t - resource: - current: - averageUtilization: -1095116290 - averageValue: "1" - value: "370" - name: 臜裡×銵-紑浘 - type: 崟¿ - currentReplicas: -740777212 - desiredReplicas: 1741405963 - observedGeneration: -6410519298686885049 diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.json deleted file mode 100644 index 43ba0886a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.json +++ /dev/null @@ -1,1070 +0,0 @@ -{ - "kind": "Job", - "apiVersion": "batch/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "parallelism": -1978186127, - "completions": -1821918122, - "activeDeadlineSeconds": -1888486794478722029, - "backoffLimit": -596764376, - "selector": { - "matchLabels": { - "l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "Šĸů湙騘\u0026啞", - "resourceVersion": "6776706803848751502", - "generation": 1142764901371385923, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 986128679342689494, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "ºɖgȏ哙ȍȂ揲ȼDDŽL", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "bJ5ʬ昹ʞĹ鑑6NJPM饣`" - }, - "emptyDir": { - "medium": "z徃鷢6ȥ啕禗Ǐ2", - "sizeLimit": "387" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -347579237, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 903876536, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 2022312348 - } - ], - "defaultMode": -963895759, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -539733119, - "iscsiInterface": "67", - "fsType": "68", - "readOnly": true, - "portals": [ - "69" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "770" - }, - "mode": 1539635748 - } - ], - "defaultMode": -388204860 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -573382936, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": 1825892582 - } - ], - "defaultMode": 1532914928, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "", - "fsType": "121", - "readOnly": false, - "kind": "坼É/pȿŘ阌Ŗ怳" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1629040033 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "908" - }, - "mode": -239847982 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -1305215109 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 8048348966862776448, - "path": "136" - } - } - ], - "defaultMode": -556258965 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 273818613, - "containerPort": -522879476, - "protocol": "N", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "587" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "倱\u003c": "920" - }, - "requests": { - "贩j瀉ǚ": "455" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "Ɋł/擇ɦĽ胚O醔ɍ厶耈 ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "腿ħ缶.蒅!a", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1154560741, - "timeoutSeconds": -1376537100, - "periodSeconds": 1100645882, - "successThreshold": -532628939, - "failureThreshold": -748919010 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": -1477511050, - "host": "192", - "scheme": ";栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -709825668, - "timeoutSeconds": -1144400181, - "periodSeconds": -379514302, - "successThreshold": 173916181, - "failureThreshold": -813624408 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 200992434, - "host": "199", - "scheme": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": "206", - "host": "207", - "scheme": "ɋ瀐\u003cɉ", - "httpHeaders": [ - { - "name": "208", - "value": "209" - } - ] - }, - "tcpSocket": { - "port": -1334904807, - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "å睫}堇硲蕵ɢ苆", - "imagePullPolicy": "猀2:ö", - "securityContext": { - "capabilities": { - "add": [ - "5w垁鷌辪虽U珝Żwʮ馜üNșƶ" - ], - "drop": [ - "ĩĉş蝿ɖȃ賲鐅臬" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217" - }, - "runAsUser": -1799108093609470992, - "runAsGroup": -1245112587824234591, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ǵʭd鲡:贅wE@Ȗs«öʮ" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": 1702578303, - "containerPort": -1565157256, - "protocol": "Ŭ", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": true - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "157" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": true - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ŴĿ": "377" - }, - "requests": { - ".Q貇£ȹ嫰ƹǔw÷nI": "718" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "樺ȃ", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": -88173241, - "host": "246", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": "249", - "host": "250" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "readinessProbe": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": -1710454086, - "host": "253", - "scheme": "mɩC[ó瓧", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": -122979840, - "host": "256" - }, - "initialDelaySeconds": 915577348, - "timeoutSeconds": -590798124, - "periodSeconds": -1386967282, - "successThreshold": -2030286732, - "failureThreshold": -233378149 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": 1385030458, - "host": "259", - "scheme": "Ao/樝fw[Řż丩ŽoǠŻ", - "httpHeaders": [ - { - "name": "260", - "value": "261" - } - ] - }, - "tcpSocket": { - "port": "262", - "host": "263" - } - }, - "preStop": { - "exec": { - "command": [ - "264" - ] - }, - "httpGet": { - "path": "265", - "port": -1589303862, - "host": "266", - "scheme": "ľǎɳ,ǿ飏騀呣ǎ", - "httpHeaders": [ - { - "name": "267", - "value": "268" - } - ] - }, - "tcpSocket": { - "port": "269", - "host": "270" - } - } - }, - "terminationMessagePath": "271", - "terminationMessagePolicy": "萭旿@掇lNdǂ\u003e5姣", - "securityContext": { - "capabilities": { - "add": [ - "ȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄" - ], - "drop": [ - "rʤî萨zvt莭琽§ć\\ ïì" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "272", - "role": "273", - "type": "274", - "level": "275" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "276", - "gmsaCredentialSpec": "277" - }, - "runAsUser": -5738810661106213940, - "runAsGroup": 3195567116206635190, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ƖN粕擓Ɩ" - }, - "stdin": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": 6353399950510297907, - "activeDeadlineSeconds": -4714205176074910759, - "dnsPolicy": "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "287", - "gmsaCredentialSpec": "288" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "supplementalGroups": [ - -2685189273294986757 - ], - "fsGroup": 4439992350792424628, - "sysctls": [ - { - "name": "289", - "value": "290" - } - ] - }, - "imagePullSecrets": [ - { - "name": "291" - } - ], - "hostname": "292", - "subdomain": "293", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "294", - "operator": "ȶ网棊ʢ=wǕɳɷ9Ì", - "values": [ - "295" - ] - } - ], - "matchFields": [ - { - "key": "296", - "operator": "WKw(", - "values": [ - "297" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 852780575, - "preference": { - "matchExpressions": [ - { - "key": "298", - "operator": "ĺ}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪", - "values": [ - "299" - ] - } - ], - "matchFields": [ - { - "key": "300", - "operator": "o啛更偢ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "301" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O-7___-Y_um-_8r--684._-_18_...E.-o": "y.N.9D-F5" - }, - "matchExpressions": [ - { - "key": "A4A.J2s3.XL6_EU--AH-Q.GM72_-c-.-.a", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "308" - ], - "topologyKey": "309" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 218453478, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4uB-.--.gb_2_-8-----yJY.__-X_.8xN._-_-vv-Q2qzW": "04....-h._.GgT7_7B_D-..-.k4u-zA_--_.-.6GA26C-s.Nj-d-4_4--.-_4" - }, - "matchExpressions": [ - { - "key": "y-9-te858----38----r-0.h-up52--sjo7799-skj5--9/H.I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.7", - "operator": "In", - "values": [ - "q..csh-3--Z1Tvw39F_C-rtSY.gR" - ] - } - ] - }, - "namespaces": [ - "316" - ], - "topologyKey": "317" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "S9_Z_C..o": "x3..-.8-Jp-9-4-Tm.__G-8...__.Q_c8.G.b_9_o" - }, - "matchExpressions": [ - { - "key": "3--j2---2--82--cj-1-s--op34-yw/g_I-A-_3bz._M", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "324" - ], - "topologyKey": "325" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1309338556, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "3--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-D": "7r-7" - }, - "matchExpressions": [ - { - "key": "3-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....70", - "operator": "NotIn", - "values": [ - "k.j._g-G-7--p9.-_0R.-_-3_L_2--_v2.5p_..u" - ] - } - ] - }, - "namespaces": [ - "332" - ], - "topologyKey": "333" - } - } - ] - } - }, - "schedulerName": "334", - "tolerations": [ - { - "key": "335", - "operator": "ʗp壥Ƥ揤郡ɑ鮽ǍJB膾扉A­", - "value": "336", - "effect": "8 u怞荊ù灹8緔Tj§E蓋Cȗä2 ", - "tolerationSeconds": -3940998112084713632 - } - ], - "hostAliases": [ - { - "ip": "337", - "hostnames": [ - "338" - ] - } - ], - "priorityClassName": "339", - "priority": -98449771, - "dnsConfig": { - "nameservers": [ - "340" - ], - "searches": [ - "341" - ], - "options": [ - { - "name": "342", - "value": "343" - } - ] - }, - "readinessGates": [ - { - "conditionType": "Ö埡ÆɰŞ襵樞úʥ銀ƨ" - } - ], - "runtimeClassName": "344", - "enableServiceLinks": true, - "preemptionPolicy": "x柱栦阫Ƈʥ椹ý飝ȕ笧L唞鹚蝉茲ʛ饊" - } - }, - "ttlSecondsAfterFinished": -777847767 - }, - "status": { - "conditions": [ - { - "type": "ś錏嬮#", - "status": "裦i÷", - "lastProbeTime": "2124-06-12T21:00:01Z", - "lastTransitionTime": "2942-03-25T09:53:33Z", - "reason": "345", - "message": "346" - } - ], - "active": 190279315, - "succeeded": -2138953220, - "failed": -1141969778 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.pb deleted file mode 100644 index 46d8ea0d3d3d2393c1882964c121dc637a3d479b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4754 zcmYjV2~<>9nyy=@!8g-M&CAkts?+JRGG~USy^nX_{!G#hs8Iv^{qO(%m-Sk%iFt&H&RDr+)w;Mm!bT-!Ww5vYo$(+B2`mzANOB-K*5TS2YAttl zZ%*>Jl&#c)M=M`*b$J`OV8bcJRsOQC?c5sSF{0>-B*?rfX`-gc3NMJd_USjp9~6}z zEXqzaE$P{Pwq)nww-1h>^cf6NS)^q=#2}qD6F$?u>?a z;@0glrhl@k#U&b?fjPXKGZGRuL0g`IWo&54E0*9ataBXMfDJlY&e!vjVdP?NJ4`TS z*2HdL#AVn>+{|r+_RX4+CnUd~_PnuD*T`xStN3?IG{Rv{e|hybE-lemj29ZRv4u4+ z+GHb(G2TRQw#zwcujvoB z-@EhmBd}9f8c#L+_2W-J{7HH=sFOjRl0n~8c+)a}$(SYHW|oNKr{m|n^=mzQeKn1q zN>8zWZ@*`B-sFztShJ|}NHgV_C85A9iDl?tVUEO_V3rJf()$bM)(plh6ZS7Nn5W=H zV67QR^3+Lx!|+s#YdExTpE6mtWO1my^)>cM=FtM*g_6+FF~!sFtE&ri9GKiIu+y0+ zQB!S?!)%c?%aXNu_~mlpu(Y}GZ5f!F640M8KMY5U_PaBT`+6>9GIz* zc$8s-C(P1B8*PyQHF#ZvIhv9Q7HNQA)2zrrd-WVEW7c7-b=YbhwptfspKtH3+5^a{PCfcUNf=~qzT0e@Ry*l&?yp8q>B*r8>>N_;*+!L4W zx#(^PHB`9k{e@@FBL;>F0v#%jhw(wQMiCL*HHA3n6R8@ATZ&X7VM`=IfOl~Y2q_VS zoCHEyV!Di)5mSj6d)O>NVjrivskwq;{Zm`>-y<2sZej@&N4r!uygD^ph&UL|AS@Yn zu+D4t%h%qmq(O5Z*&<3sA*@ss=`hLq-Mx4AeHZSB*rlElWlQ0uzuma{;pZP^fxAS- za_#aLw<25d39`ZniJB*A&?)HWVCydEqcAumJq&Y9p0dy{y`5Okb3)E0S zBrHUg07iij!!DLp+r!j-f(V-{h%!X&gKvd?tKmcS6K0xwz;!WvmQ|H~ig}z{8tg9} zZ}klOy89-ECu{SaLz@=SewAoRKd0(6Y8y}sz?S&f>HedJuJux?{Zwy8Fjc@+!)9T2?jDEzt9D$;;&rm2D%TOp2L$%W*D0Ih9 z6SCs`U59>`|EjyeJ$m)rarao(-;q}6ZNSyB2*f!s#=K9Ze*%PsEH;l0dm32unPpmf@}|7RSV5>!Rj9W zfs66}s?rT9t0#+pE&DoKPtfEfNEC=9+D!H{9ZfgB|LfoCR>XW<`u$tMYd5?XkYM)} z9(c*$xZgK;V41VpnCMOL*S5uZ&v~otspFl&!a*P;fI<(SswYMX8lMD$q=FDum|jEc zOgXPG)L;$HyP!#6uqK1SnquiK-|=Pdjt_UnTTS-woPT)#^5y-Xe}ZBLhDYCftFP#t z=lGHTYY0F>8kD)CpyD|FkA1~EMv1=Gi`!sfz z>--!3v7xE`!IHDV(VB@}o|@ortG9ZxIqz56L|b6j2|7_{C18Fau$U}gU9-P=z*lt4 zTk5ME3RX5ICA)@ydv)ye_{Cob%Fgs13Q5?2P%_UeDc<%feESl0{x;@1baacilSn7Ggq($znKZYa)!r+}aES=4nte zV!S=+6%L@RFgR^n3dMl)^6*k&bHQ@!q!@Ai==c zfDdIsf}qUBxm-#nUX3LKN<$7C5}U`QZpS*_vPP4`ONn8bgL!Tp-kL2780ThYsj9By z-1V7Izv^)dxkVxc!|}MlDByE98Qi*U23~0xJfP(kV-Cs>C{3T-%yFx7*I^Okbdr{r zFY3=5b8*g=mtNu4rh)^A0uCUmtZ`Bi)$Gaarsyw~5pO4JTy-I0>h1 zgcTQH4Gc95ZmF?K;}&okhHhlB3Nss4$ONDmej5B%WnzMJG0w^sCA>X9ZmqEhCtyR& zD1b8fM>`-u?2B+jPoZd6*ZX@TnVCI`m|6s}N^wg|mvZ2;h1|lecs)3s$7y8anhh8~ zPhHMI&Ar9I8vyA%cAA=lRrXaTMuc%Vhnr75q#0|B4FX`+0FG*i;HD%RI~=F-?DUkZ zE#Rh@^;{-rti=nU(8t+2Yzm(W0*gkn0mi^(fRnRf(pGSpC;(znY(gNVW9Z;Rl(r%B z5MWUd8dN^A9vemAPW2RYDa7)Blb&K^t+@Nau1Lk^Kq<6epbSkEI#p343{4bTmOy@` zbsxY35iUz)D4xTN48<006rucj@J-7x70R*1rx{>qU*YLzDFf>Q&$7(S;K1?BK;fRr zCfX*+a*|B-(mV(c6_7$*`*UxZyEx8YQ|j$-jRi}ZUJUK3^;Y_-27`sW$BzgwMo;}c zlT1@6fr6LNhsZwQTtagff!y_QaOXu=XJB-Y3+~@JYb9k4qEXWT`9Bz%Xw*DSxA=Un zj%n7L*WUh1goW&P%D<|Z7IXGyadE^&e9PN6nj++x-h`O7;nkslP6o9)33J%3>mwKc z$zcSl>ZhOaAE{hDb;8x1=C5q3{2*L8+DKy5mXrE`P`A*aZ`PS>6W!iGFWasI0@+(H9!2_tbtygpJAF~DYmcDT5M zAUO{ODhh=;&cT8Mhxk2^{`a02(3$j;aw{R_KibYM3x< z69q125dtTQY(YTa&i25e?l*i#N&`pxgLP-U$Aaa%!URq|-ier{$-|8=H309UlhXX~!T41O) zEpxncez2x|uIGTWO|Zv&apAJB>d$?hUKGB{i1hX%irP3$3AzW>RhC|g)ODB96R@@f zSVW1~;7o|Lun;BjBV_s#?rk<_z3=c*=PqxbyCv9u*5B3QJU`VQDl44m`U;du(shLH zAiT|g__Y5>N2sBDqI9a=-!|+V3$-5d)CEpkLLwkZ1{Zq}M_A;%j|Jo85K<1){{vPsIQjqp diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.yaml deleted file mode 100644 index 86836fe62..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.after_roundtrip.yaml +++ /dev/null @@ -1,727 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -1888486794478722029 - backoffLimit: -596764376 - completions: -1821918122 - manualSelector: true - parallelism: -1978186127 - selector: - matchExpressions: - - key: U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t - operator: In - values: - - M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5 - matchLabels: - l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5: "" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 986128679342689494 - finalizers: - - "42" - generateName: "31" - generation: 1142764901371385923 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: true - kind: "40" - name: "41" - uid: ºɖgȏ哙ȍȂ揲ȼDDŽL - resourceVersion: "6776706803848751502" - selfLink: "33" - uid: Šĸů湙騘&啞 - spec: - activeDeadlineSeconds: -4714205176074910759 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "298" - operator: ĺ}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪 - values: - - "299" - matchFields: - - key: "300" - operator: o啛更偢ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "301" - weight: 852780575 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "294" - operator: ȶ网棊ʢ=wǕɳɷ9Ì - values: - - "295" - matchFields: - - key: "296" - operator: WKw( - values: - - "297" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: y-9-te858----38----r-0.h-up52--sjo7799-skj5--9/H.I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.7 - operator: In - values: - - q..csh-3--Z1Tvw39F_C-rtSY.gR - matchLabels: - 4uB-.--.gb_2_-8-----yJY.__-X_.8xN._-_-vv-Q2qzW: 04....-h._.GgT7_7B_D-..-.k4u-zA_--_.-.6GA26C-s.Nj-d-4_4--.-_4 - namespaces: - - "316" - topologyKey: "317" - weight: 218453478 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: A4A.J2s3.XL6_EU--AH-Q.GM72_-c-.-.a - operator: Exists - matchLabels: - O-7___-Y_um-_8r--684._-_18_...E.-o: y.N.9D-F5 - namespaces: - - "308" - topologyKey: "309" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....70 - operator: NotIn - values: - - k.j._g-G-7--p9.-_0R.-_-3_L_2--_v2.5p_..u - matchLabels: - 3--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-D: 7r-7 - namespaces: - - "332" - topologyKey: "333" - weight: -1309338556 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3--j2---2--82--cj-1-s--op34-yw/g_I-A-_3bz._M - operator: Exists - matchLabels: - S9_Z_C..o: x3..-.8-Jp-9-4-Tm.__G-8...__.Q_c8.G.b_9_o - namespaces: - - "324" - topologyKey: "325" - automountServiceAccountToken: true - containers: - - args: - - "221" - command: - - "220" - env: - - name: "228" - value: "229" - valueFrom: - configMapKeyRef: - key: "235" - name: "234" - optional: true - fieldRef: - apiVersion: "230" - fieldPath: "231" - resourceFieldRef: - containerName: "232" - divisor: "157" - resource: "233" - secretKeyRef: - key: "237" - name: "236" - optional: false - envFrom: - - configMapRef: - name: "226" - optional: true - prefix: "225" - secretRef: - name: "227" - optional: false - image: "219" - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "259" - httpHeaders: - - name: "260" - value: "261" - path: "258" - port: 1385030458 - scheme: Ao/樝fw[Řż丩ŽoǠŻ - tcpSocket: - host: "263" - port: "262" - preStop: - exec: - command: - - "264" - httpGet: - host: "266" - httpHeaders: - - name: "267" - value: "268" - path: "265" - port: -1589303862 - scheme: ľǎɳ,ǿ飏騀呣ǎ - tcpSocket: - host: "270" - port: "269" - livenessProbe: - exec: - command: - - "244" - failureThreshold: -1131820775 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "245" - port: -88173241 - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "250" - port: "249" - timeoutSeconds: 747521320 - name: "218" - ports: - - containerPort: -1565157256 - hostIP: "224" - hostPort: 1702578303 - name: "223" - protocol: Ŭ - readinessProbe: - exec: - command: - - "251" - failureThreshold: -233378149 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: -1710454086 - scheme: mɩC[ó瓧 - initialDelaySeconds: 915577348 - periodSeconds: -1386967282 - successThreshold: -2030286732 - tcpSocket: - host: "256" - port: -122979840 - timeoutSeconds: -590798124 - resources: - limits: - ŴĿ: "377" - requests: - .Q貇£ȹ嫰ƹǔw÷nI: "718" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄 - drop: - - rʤî萨zvt莭琽§ć\ ïì - privileged: false - procMount: ƖN粕擓Ɩ - readOnlyRootFilesystem: false - runAsGroup: 3195567116206635190 - runAsNonRoot: true - runAsUser: -5738810661106213940 - seLinuxOptions: - level: "275" - role: "273" - type: "274" - user: "272" - windowsOptions: - gmsaCredentialSpec: "277" - gmsaCredentialSpecName: "276" - stdin: true - terminationMessagePath: "271" - terminationMessagePolicy: 萭旿@掇lNdǂ>5姣 - tty: true - volumeDevices: - - devicePath: "243" - name: "242" - volumeMounts: - - mountPath: "239" - mountPropagation: 樺ȃ - name: "238" - subPath: "240" - subPathExpr: "241" - workingDir: "222" - dnsConfig: - nameservers: - - "340" - options: - - name: "342" - value: "343" - searches: - - "341" - dnsPolicy: 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶 - enableServiceLinks: true - hostAliases: - - hostnames: - - "338" - ip: "337" - hostPID: true - hostname: "292" - imagePullSecrets: - - name: "291" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "587" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 猀2:ö - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: 200992434 - scheme: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "207" - httpHeaders: - - name: "208" - value: "209" - path: "205" - port: "206" - scheme: ɋ瀐<ɉ - tcpSocket: - host: "210" - port: -1334904807 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -748919010 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 腿ħ缶.蒅!a - initialDelaySeconds: 1154560741 - periodSeconds: 1100645882 - successThreshold: -532628939 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -1376537100 - name: "156" - ports: - - containerPort: -522879476 - hostIP: "162" - hostPort: 273818613 - name: "161" - protocol: "N" - readinessProbe: - exec: - command: - - "190" - failureThreshold: -813624408 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: -1477511050 - scheme: ;栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼 - initialDelaySeconds: -709825668 - periodSeconds: -379514302 - successThreshold: 173916181 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: -1144400181 - resources: - limits: - 倱<: "920" - requests: - 贩j瀉ǚ: "455" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - drop: - - ĩĉş蝿ɖȃ賲鐅臬 - privileged: false - procMount: ǵʭd鲡:贅wE@Ȗs«öʮ - readOnlyRootFilesystem: false - runAsGroup: -1245112587824234591 - runAsNonRoot: true - runAsUser: -1799108093609470992 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: å睫}堇硲蕵ɢ苆 - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: Ɋł/擇ɦĽ胚O醔ɍ厶耈  - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - preemptionPolicy: x柱栦阫Ƈʥ椹ý飝ȕ笧L唞鹚蝉茲ʛ饊 - priority: -98449771 - priorityClassName: "339" - readinessGates: - - conditionType: Ö埡ÆɰŞ襵樞úʥ銀ƨ - runtimeClassName: "344" - schedulerName: "334" - securityContext: - fsGroup: 4439992350792424628 - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - -2685189273294986757 - sysctls: - - name: "289" - value: "290" - windowsOptions: - gmsaCredentialSpec: "288" - gmsaCredentialSpecName: "287" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: false - subdomain: "293" - terminationGracePeriodSeconds: 6353399950510297907 - tolerations: - - effect: '8 u怞荊ù灹8緔Tj§E蓋Cȗä2 ' - key: "335" - operator: ʗp壥Ƥ揤郡ɑ鮽ǍJB膾扉A­ - tolerationSeconds: -3940998112084713632 - value: "336" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 903876536 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: "" - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 坼É/pȿŘ阌Ŗ怳 - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1532914928 - items: - - key: "108" - mode: 1825892582 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -388204860 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: 1539635748 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "770" - resource: "101" - emptyDir: - medium: z徃鷢6ȥ啕禗Ǐ2 - sizeLimit: "387" - fc: - fsType: "103" - lun: -573382936 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -347579237 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: bJ5ʬ昹ʞĹ鑑6NJPM饣` - iscsi: - chapAuthDiscovery: true - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -539733119 - portals: - - "69" - readOnly: true - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -556258965 - sources: - - configMap: - items: - - key: "133" - mode: -1305215109 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -239847982 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "908" - resource: "131" - secret: - items: - - key: "125" - mode: -1629040033 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 8048348966862776448 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -963895759 - items: - - key: "61" - mode: 2022312348 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - ttlSecondsAfterFinished: -777847767 -status: - active: 190279315 - conditions: - - lastProbeTime: "2124-06-12T21:00:01Z" - lastTransitionTime: "2942-03-25T09:53:33Z" - message: "346" - reason: "345" - status: 裦i÷ - type: ś錏嬮# - failed: -1141969778 - succeeded: -2138953220 diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.json b/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.json deleted file mode 100644 index e85f447ad..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.json +++ /dev/null @@ -1,1072 +0,0 @@ -{ - "kind": "Job", - "apiVersion": "batch/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "parallelism": -1978186127, - "completions": -1821918122, - "activeDeadlineSeconds": -1888486794478722029, - "backoffLimit": -596764376, - "selector": { - "matchLabels": { - "l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5": "" - }, - "matchExpressions": [ - { - "key": "U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t", - "operator": "In", - "values": [ - "M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5" - ] - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "Šĸů湙騘\u0026啞", - "resourceVersion": "6776706803848751502", - "generation": 1142764901371385923, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 986128679342689494, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "ºɖgȏ哙ȍȂ揲ȼDDŽL", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "bJ5ʬ昹ʞĹ鑑6NJPM饣`" - }, - "emptyDir": { - "medium": "z徃鷢6ȥ啕禗Ǐ2", - "sizeLimit": "387" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -347579237, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 903876536, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 2022312348 - } - ], - "defaultMode": -963895759, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -539733119, - "iscsiInterface": "67", - "fsType": "68", - "readOnly": true, - "portals": [ - "69" - ], - "chapAuthDiscovery": true, - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "770" - }, - "mode": 1539635748 - } - ], - "defaultMode": -388204860 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -573382936, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": 1825892582 - } - ], - "defaultMode": 1532914928, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "", - "fsType": "121", - "readOnly": false, - "kind": "坼É/pȿŘ阌Ŗ怳" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1629040033 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "908" - }, - "mode": -239847982 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -1305215109 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 8048348966862776448, - "path": "136" - } - } - ], - "defaultMode": -556258965 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 273818613, - "containerPort": -522879476, - "protocol": "N", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "587" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "倱\u003c": "920" - }, - "requests": { - "贩j瀉ǚ": "455" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "Ɋł/擇ɦĽ胚O醔ɍ厶耈 ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "腿ħ缶.蒅!a", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1154560741, - "timeoutSeconds": -1376537100, - "periodSeconds": 1100645882, - "successThreshold": -532628939, - "failureThreshold": -748919010 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": -1477511050, - "host": "192", - "scheme": ";栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -709825668, - "timeoutSeconds": -1144400181, - "periodSeconds": -379514302, - "successThreshold": 173916181, - "failureThreshold": -813624408 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 200992434, - "host": "199", - "scheme": "ņ榱*Gưoɘ檲ɨ銦妰黖ȓ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": "206", - "host": "207", - "scheme": "ɋ瀐\u003cɉ", - "httpHeaders": [ - { - "name": "208", - "value": "209" - } - ] - }, - "tcpSocket": { - "port": -1334904807, - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "å睫}堇硲蕵ɢ苆", - "imagePullPolicy": "猀2:ö", - "securityContext": { - "capabilities": { - "add": [ - "5w垁鷌辪虽U珝Żwʮ馜üNșƶ" - ], - "drop": [ - "ĩĉş蝿ɖȃ賲鐅臬" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217" - }, - "runAsUser": -1799108093609470992, - "runAsGroup": -1245112587824234591, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "ǵʭd鲡:贅wE@Ȗs«öʮ" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": 1702578303, - "containerPort": -1565157256, - "protocol": "Ŭ", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": true - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "157" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": true - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ŴĿ": "377" - }, - "requests": { - ".Q貇£ȹ嫰ƹǔw÷nI": "718" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "樺ȃ", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": -88173241, - "host": "246", - "scheme": "Źʣy豎@ɀ羭,铻O", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": "249", - "host": "250" - }, - "initialDelaySeconds": 1424053148, - "timeoutSeconds": 747521320, - "periodSeconds": 859639931, - "successThreshold": -1663149700, - "failureThreshold": -1131820775 - }, - "readinessProbe": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": -1710454086, - "host": "253", - "scheme": "mɩC[ó瓧", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": -122979840, - "host": "256" - }, - "initialDelaySeconds": 915577348, - "timeoutSeconds": -590798124, - "periodSeconds": -1386967282, - "successThreshold": -2030286732, - "failureThreshold": -233378149 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": 1385030458, - "host": "259", - "scheme": "Ao/樝fw[Řż丩ŽoǠŻ", - "httpHeaders": [ - { - "name": "260", - "value": "261" - } - ] - }, - "tcpSocket": { - "port": "262", - "host": "263" - } - }, - "preStop": { - "exec": { - "command": [ - "264" - ] - }, - "httpGet": { - "path": "265", - "port": -1589303862, - "host": "266", - "scheme": "ľǎɳ,ǿ飏騀呣ǎ", - "httpHeaders": [ - { - "name": "267", - "value": "268" - } - ] - }, - "tcpSocket": { - "port": "269", - "host": "270" - } - } - }, - "terminationMessagePath": "271", - "terminationMessagePolicy": "萭旿@掇lNdǂ\u003e5姣", - "securityContext": { - "capabilities": { - "add": [ - "ȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄" - ], - "drop": [ - "rʤî萨zvt莭琽§ć\\ ïì" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "272", - "role": "273", - "type": "274", - "level": "275" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "276", - "gmsaCredentialSpec": "277" - }, - "runAsUser": -5738810661106213940, - "runAsGroup": 3195567116206635190, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "ƖN粕擓Ɩ" - }, - "stdin": true, - "tty": true - } - ], - "terminationGracePeriodSeconds": 6353399950510297907, - "activeDeadlineSeconds": -4714205176074910759, - "dnsPolicy": "倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶", - "nodeSelector": { - "278": "279" - }, - "serviceAccountName": "280", - "serviceAccount": "281", - "automountServiceAccountToken": true, - "nodeName": "282", - "hostPID": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "283", - "role": "284", - "type": "285", - "level": "286" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "287", - "gmsaCredentialSpec": "288" - }, - "runAsUser": 4614883548233532846, - "runAsGroup": 3850139838566476547, - "runAsNonRoot": false, - "supplementalGroups": [ - -2685189273294986757 - ], - "fsGroup": 4439992350792424628, - "sysctls": [ - { - "name": "289", - "value": "290" - } - ] - }, - "imagePullSecrets": [ - { - "name": "291" - } - ], - "hostname": "292", - "subdomain": "293", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "294", - "operator": "ȶ网棊ʢ=wǕɳɷ9Ì", - "values": [ - "295" - ] - } - ], - "matchFields": [ - { - "key": "296", - "operator": "WKw(", - "values": [ - "297" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 852780575, - "preference": { - "matchExpressions": [ - { - "key": "298", - "operator": "ĺ}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪", - "values": [ - "299" - ] - } - ], - "matchFields": [ - { - "key": "300", - "operator": "o啛更偢ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "301" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O-7___-Y_um-_8r--684._-_18_...E.-o": "y.N.9D-F5" - }, - "matchExpressions": [ - { - "key": "A4A.J2s3.XL6_EU--AH-Q.GM72_-c-.-.a", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "308" - ], - "topologyKey": "309" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 218453478, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4uB-.--.gb_2_-8-----yJY.__-X_.8xN._-_-vv-Q2qzW": "04....-h._.GgT7_7B_D-..-.k4u-zA_--_.-.6GA26C-s.Nj-d-4_4--.-_4" - }, - "matchExpressions": [ - { - "key": "y-9-te858----38----r-0.h-up52--sjo7799-skj5--9/H.I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.7", - "operator": "In", - "values": [ - "q..csh-3--Z1Tvw39F_C-rtSY.gR" - ] - } - ] - }, - "namespaces": [ - "316" - ], - "topologyKey": "317" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "S9_Z_C..o": "x3..-.8-Jp-9-4-Tm.__G-8...__.Q_c8.G.b_9_o" - }, - "matchExpressions": [ - { - "key": "3--j2---2--82--cj-1-s--op34-yw/g_I-A-_3bz._M", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "324" - ], - "topologyKey": "325" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1309338556, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "3--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-D": "7r-7" - }, - "matchExpressions": [ - { - "key": "3-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....70", - "operator": "NotIn", - "values": [ - "k.j._g-G-7--p9.-_0R.-_-3_L_2--_v2.5p_..u" - ] - } - ] - }, - "namespaces": [ - "332" - ], - "topologyKey": "333" - } - } - ] - } - }, - "schedulerName": "334", - "tolerations": [ - { - "key": "335", - "operator": "ʗp壥Ƥ揤郡ɑ鮽ǍJB膾扉A­", - "value": "336", - "effect": "8 u怞荊ù灹8緔Tj§E蓋Cȗä2 ", - "tolerationSeconds": -3940998112084713632 - } - ], - "hostAliases": [ - { - "ip": "337", - "hostnames": [ - "338" - ] - } - ], - "priorityClassName": "339", - "priority": -98449771, - "dnsConfig": { - "nameservers": [ - "340" - ], - "searches": [ - "341" - ], - "options": [ - { - "name": "342", - "value": "343" - } - ] - }, - "readinessGates": [ - { - "conditionType": "Ö埡ÆɰŞ襵樞úʥ銀ƨ" - } - ], - "runtimeClassName": "344", - "enableServiceLinks": true, - "preemptionPolicy": "x柱栦阫Ƈʥ椹ý飝ȕ笧L唞鹚蝉茲ʛ饊" - } - }, - "ttlSecondsAfterFinished": -777847767 - }, - "status": { - "conditions": [ - { - "type": "ś錏嬮#", - "status": "裦i÷", - "lastProbeTime": "2124-06-12T21:00:01Z", - "lastTransitionTime": "2942-03-25T09:53:33Z", - "reason": "345", - "message": "346" - } - ], - "active": 190279315, - "succeeded": -2138953220, - "failed": -1141969778 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.pb b/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.pb deleted file mode 100644 index f6a6ecc0e4909aa32053ff79833ed669f607d8a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4786 zcmYjV2~<>9nyy=@!8hGW&CAkts?+JRa%P66y^psqCUygARDwhaMnk60i>R%^1q219 zC+Dy!S}dY0vM4UBiXb9_2uKfA1y!W8XcDtc(m82sizjLAcGAWeo&VM|J>i`C-+OoY z@Av=zz5n-LHmSKL>JchBW6k!p8{_ggIw~nEgRcKK>O({!o<@QVi4G*iI^4U%t>y0S zZApO^=NdJ1yz*6dm#={dHJp*%2 zMcIj_ElO@Jj#T0oTx)IA87SfdfS`f#E~$ zJ--8OO00!?7>28KG&KvJ8f~IOj_8{epT2YZKKvoe)!Qx2-$q`oHQvjg|99w&-;W#< zh)ShWHVe61H{t?}g&n&jO#UQAjZ4%S9W!_pqbDS6g|<8$OITNvS1-p|SYsG&GuFvy zDPPM=hLOvdT`)nHVCl`2uoCNu+n6oTzD?Eh_~h5pp3~Q8Dz{F+3jY0am18iYy|iv8 zla{D2!%K8Y-%gvCZnbgCFy6}HY>5$cT^AKb7q#rAiF%gIEq!sNh;f3>tbQJ#Ez{Dp z+$GE^DF*RDJ9Q3GW`U*60%tP|yu&OAu@=uU_XW?Hz;I)@tKr}MbuIj(vZBZeE32%a zimD=U63eTuzNSCke)rB-k3i(EHlAtt+ee>#@YD2YP$z*pIfJ|@@TO+|iZY9=%`9?` zpG{o!)o<|b_t!LfE4{^m{r%q2g;S-;v1UPIk!s2@i+q7u6rAWum?P3Am?ar85@jPs zq5_WU{U!Ac#7pAnzs{nbf)}2)W+X||rvnYc(=G1d@PPyJlymvAaC_^k^pn)11^!DV z;h__OO zi6Yy~isCRUYOGn&c(cmRgPAH9k1}lVgjuR!BP}AJhA5~oN0l?dA{Fqfsuej%ua;w_ z%o>DVgV1XbdQFIhc1>ha0nE~1mL?Y?k@^q#P{8?SO@$`S_ODbF$FejC&IV3Y6xQB$ ztLC$r7WY>-Ck+RZ_(4B!35~t+wPCFdz6HA}79Qe3^b^u85goGC)P&|xpon7?+Cm;G zY1gcQ%kKteS#Nyw?Z-3irW5Ef=;Fw-90$5M-T^{5g?>(&Mba!;O{7hZ1)=aD)P590 zdNt_fSsUr)xfm1wsQ<{QYhPTpcihtuZm96o2MW(!L=+6=c`{U(h~R_W8^sCWu4%+T zpFq^WJ|;*-E@Fwu^YAXr10g1Ykdi>i%S~5MGomUHWsjJ}i}d3}H!+u&t$%K7{)drK z>?WF{;z*Z5M^-0>^M-@rOu~{82WzZqzjFPZO0sG0Bb%XA;3G-}feaI^-`#urz;}^; z*t^72f@CSY{P&yJKKSgzEO3_~TdrUE{2L<_A0sP_fP(}=g-%g}jY7jo<5a&Hl29UX6=5Hy`&J#mv|5u{})O#|sc#UXWndKKPc&w-Py2 zKc!}P2HfM3v#coeQ`F#oq*s(4>v z@KVp*aLvdIvBVhSQyzS3p=L*;$T}kI8sI$3;m+NiGp$|D;cI65cgJouM#bFi|2AOk z1Ge#C=QSgG>3b2C7Qq0yO#qFM*$9Ss+v=GqSWq+$2f1 zCnz$$@K%rK2h5~hwv-M`4@6nt^RxwwO<=ETx$>nEo|s$JH-`+qW1Bzyq}rI6(T}K? z3@8fy41uE36oE21R6El^p*en*kQEo`I`aGcS3C`#(Q6k@dd9M*j(J8RkRU-u@iO-# zZ^$ITkQ7%(^vWVVAM`?EB#@`ysC626BFbgi@tFJ4RF&`C+^O+!>;7<8q5nYZRF$Eb z_*wq3pJn1_h0O%P<(LYp5EW0&@g9v=!mX|T_KRL;ux&6mVsHvH(PbE7-A-h#k3K80iOw|ZAk%YxV zE|?v00WVvS?ZK;JAz3a|-4i%89v`SG+nlm)s`xjOzq9oeNlv^-fQW+4WIxx@bo2Ya z{k?8=%tvM4zZtrI({~B+c7Nfa7Xyt4{ey>Ax~lcb-h@DHTb%ELugab}(HSZn1VRER zt7xMs=Vgi*tipNcRS^tUB`{c(ExqNXU-XuKushyrvVZ6L z<9k=G9Q^EK6f-b9`tF;3MQ_h%ORio$RWW>cNQ$hXl2~YLB3Tb82ZUNcPO`=oBapn4 zNZ}xQdluD&D20-!IiwfTq<1hlb|BE|oIWu>f2z)R&NrmFDgX$O5ikR<$@Gj>&*#UG z7KPptee_S4>!axP6efKtJ;#0V^}yKB^ubWc`Os+1o^J=L7|Yjv_MxaSm^ zsL>)YKM+_RuF7@S4V-o>Oa+Cu!CM9-xh31R}1 z#ODgk>SS48v=WN3C3pq1c$vcMcrDb5%o=*uqMfhhZqKD*DM-lztI_vRbfCL#BmE7c z!idVE7;#4;jK$1`3?1gFP(ot7E9qqhpsdyzb!Q5}fb;V33VvI`DtbOE0vZNyWOQcn zhBQT267_``8kkMu4qT9+W30o6yf}fE7vNkbB@?g1q7J1ZgLRS4qf&Qa4R2qsN|B|6 zh|Iw(vk~vemUxVFGqV&$({S#lOsHqIxFyU|fq-FHT%Z@Qxm$H+<4zr~(RCKkGRrUn z1eR<q15Wl*K=a01ta#fFpVaMZ3G++izrM`Z%I$5$sihTU@b% z0hcXdmh8Zr!09Yb5djPY~C9G1MZ`m@zFyzV z17;QAD7pY{N+NrQVHB30nUb{~+!V8k$z=2mcrg_II9r3Du&E%hpeO5K3|tNvDH|s3 z0GA0oAQprs1X4VK4nIU_8!`_EEDAz}%16>-qd2&8Jq2AdXZhbLZ!xk~+o@&Uqj$jzppFo?C^K= zg-7bWH4%y>6+RCY{y!bXvxI+G0qiBooE7O`lLs)_gHnfubIY@eBidIUEUbRkx6jZ+ z2#3`k)Fq8KMoJ6=Y$j-ji#-S~=b>OlAwSPGSa1kY&roxue1A((c&H+D=~Sq3Y-Mo& z5zk2ebZ@xhuxm8M+c-H$KjA*<-sd?QIx_C7_m+gt^@po>hsu7SY>pu12xW7GvN_3q zqqF$_-a`jVg9c@z_~ZA#b)K$o`Jb;*l6C6*bkDkQ|M7XDf!+Cw;=T2`6Wy-C>D~x| z!@m+hgF)b^8o_0S+&G|yiLf>&!^O-Xa88yi2ngKO9z4?hy8l>N@OXcy?!50rsC-X^ zz&Vv19+m4ts2`;R2f;swrRKJ>+WR?J=KUy5g_;OJAoCMXoXexxEO2 zIzdu`=0$atWtWY*?h1MW))oPaAaXW169OqL1X1`9nZAH~o6S}4KYHA?$Jgg+3ALXO zbhWrHPPd1hg_B)hf-+IOfzTaK-)~b(2{`|w1a+v-P8O1w` diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.yaml b/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.yaml deleted file mode 100644 index 3420ec9bc..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1.Job.yaml +++ /dev/null @@ -1,733 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -1888486794478722029 - backoffLimit: -596764376 - completions: -1821918122 - manualSelector: true - parallelism: -1978186127 - selector: - matchExpressions: - - key: U-_Bq.m_-.q8_v2LiTF_a981d3-7-fP81.-.9Vdx.TB_M-H_5_t - operator: In - values: - - M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.W5 - matchLabels: - l3snh-z--3uy5-----578/B_._-.-W._AAn---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_5: "" - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 986128679342689494 - finalizers: - - "42" - generateName: "31" - generation: 1142764901371385923 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: true - kind: "40" - name: "41" - uid: ºɖgȏ哙ȍȂ揲ȼDDŽL - resourceVersion: "6776706803848751502" - selfLink: "33" - uid: Šĸů湙騘&啞 - spec: - activeDeadlineSeconds: -4714205176074910759 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "298" - operator: ĺ}潷ʒ胵輓Ɔȓ蹣ɐǛv+8Ƥ熪 - values: - - "299" - matchFields: - - key: "300" - operator: o啛更偢ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "301" - weight: 852780575 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "294" - operator: ȶ网棊ʢ=wǕɳɷ9Ì - values: - - "295" - matchFields: - - key: "296" - operator: WKw( - values: - - "297" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: y-9-te858----38----r-0.h-up52--sjo7799-skj5--9/H.I3.__-.0-z_z0sn_.hx_-a__0-8-.M-.7 - operator: In - values: - - q..csh-3--Z1Tvw39F_C-rtSY.gR - matchLabels: - 4uB-.--.gb_2_-8-----yJY.__-X_.8xN._-_-vv-Q2qzW: 04....-h._.GgT7_7B_D-..-.k4u-zA_--_.-.6GA26C-s.Nj-d-4_4--.-_4 - namespaces: - - "316" - topologyKey: "317" - weight: 218453478 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: A4A.J2s3.XL6_EU--AH-Q.GM72_-c-.-.a - operator: Exists - matchLabels: - O-7___-Y_um-_8r--684._-_18_...E.-o: y.N.9D-F5 - namespaces: - - "308" - topologyKey: "309" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....70 - operator: NotIn - values: - - k.j._g-G-7--p9.-_0R.-_-3_L_2--_v2.5p_..u - matchLabels: - 3--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-D: 7r-7 - namespaces: - - "332" - topologyKey: "333" - weight: -1309338556 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 3--j2---2--82--cj-1-s--op34-yw/g_I-A-_3bz._M - operator: Exists - matchLabels: - S9_Z_C..o: x3..-.8-Jp-9-4-Tm.__G-8...__.Q_c8.G.b_9_o - namespaces: - - "324" - topologyKey: "325" - automountServiceAccountToken: true - containers: - - args: - - "221" - command: - - "220" - env: - - name: "228" - value: "229" - valueFrom: - configMapKeyRef: - key: "235" - name: "234" - optional: true - fieldRef: - apiVersion: "230" - fieldPath: "231" - resourceFieldRef: - containerName: "232" - divisor: "157" - resource: "233" - secretKeyRef: - key: "237" - name: "236" - optional: false - envFrom: - - configMapRef: - name: "226" - optional: true - prefix: "225" - secretRef: - name: "227" - optional: false - image: "219" - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "259" - httpHeaders: - - name: "260" - value: "261" - path: "258" - port: 1385030458 - scheme: Ao/樝fw[Řż丩ŽoǠŻ - tcpSocket: - host: "263" - port: "262" - preStop: - exec: - command: - - "264" - httpGet: - host: "266" - httpHeaders: - - name: "267" - value: "268" - path: "265" - port: -1589303862 - scheme: ľǎɳ,ǿ飏騀呣ǎ - tcpSocket: - host: "270" - port: "269" - livenessProbe: - exec: - command: - - "244" - failureThreshold: -1131820775 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "245" - port: -88173241 - scheme: Źʣy豎@ɀ羭,铻O - initialDelaySeconds: 1424053148 - periodSeconds: 859639931 - successThreshold: -1663149700 - tcpSocket: - host: "250" - port: "249" - timeoutSeconds: 747521320 - name: "218" - ports: - - containerPort: -1565157256 - hostIP: "224" - hostPort: 1702578303 - name: "223" - protocol: Ŭ - readinessProbe: - exec: - command: - - "251" - failureThreshold: -233378149 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "252" - port: -1710454086 - scheme: mɩC[ó瓧 - initialDelaySeconds: 915577348 - periodSeconds: -1386967282 - successThreshold: -2030286732 - tcpSocket: - host: "256" - port: -122979840 - timeoutSeconds: -590798124 - resources: - limits: - ŴĿ: "377" - requests: - .Q貇£ȹ嫰ƹǔw÷nI: "718" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - ȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄 - drop: - - rʤî萨zvt莭琽§ć\ ïì - privileged: false - procMount: ƖN粕擓Ɩ - readOnlyRootFilesystem: false - runAsGroup: 3195567116206635190 - runAsNonRoot: true - runAsUser: -5738810661106213940 - seLinuxOptions: - level: "275" - role: "273" - type: "274" - user: "272" - windowsOptions: - gmsaCredentialSpec: "277" - gmsaCredentialSpecName: "276" - stdin: true - terminationMessagePath: "271" - terminationMessagePolicy: 萭旿@掇lNdǂ>5姣 - tty: true - volumeDevices: - - devicePath: "243" - name: "242" - volumeMounts: - - mountPath: "239" - mountPropagation: 樺ȃ - name: "238" - subPath: "240" - subPathExpr: "241" - workingDir: "222" - dnsConfig: - nameservers: - - "340" - options: - - name: "342" - value: "343" - searches: - - "341" - dnsPolicy: 倗S晒嶗UÐ_ƮA攤/ɸɎ R§耶 - enableServiceLinks: true - hostAliases: - - hostnames: - - "338" - ip: "337" - hostPID: true - hostname: "292" - imagePullSecrets: - - name: "291" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "587" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 猀2:ö - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: 200992434 - scheme: ņ榱*Gưoɘ檲ɨ銦妰黖ȓ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "207" - httpHeaders: - - name: "208" - value: "209" - path: "205" - port: "206" - scheme: ɋ瀐<ɉ - tcpSocket: - host: "210" - port: -1334904807 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -748919010 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 腿ħ缶.蒅!a - initialDelaySeconds: 1154560741 - periodSeconds: 1100645882 - successThreshold: -532628939 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: -1376537100 - name: "156" - ports: - - containerPort: -522879476 - hostIP: "162" - hostPort: 273818613 - name: "161" - protocol: "N" - readinessProbe: - exec: - command: - - "190" - failureThreshold: -813624408 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: -1477511050 - scheme: ;栍dʪīT捘ɍi縱ù墴1Rƥ贫d飼 - initialDelaySeconds: -709825668 - periodSeconds: -379514302 - successThreshold: 173916181 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: -1144400181 - resources: - limits: - 倱<: "920" - requests: - 贩j瀉ǚ: "455" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - drop: - - ĩĉş蝿ɖȃ賲鐅臬 - privileged: false - procMount: ǵʭd鲡:贅wE@Ȗs«öʮ - readOnlyRootFilesystem: false - runAsGroup: -1245112587824234591 - runAsNonRoot: true - runAsUser: -1799108093609470992 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - stdinOnce: true - terminationMessagePath: "211" - terminationMessagePolicy: å睫}堇硲蕵ɢ苆 - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: Ɋł/擇ɦĽ胚O醔ɍ厶耈  - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "282" - nodeSelector: - "278": "279" - preemptionPolicy: x柱栦阫Ƈʥ椹ý飝ȕ笧L唞鹚蝉茲ʛ饊 - priority: -98449771 - priorityClassName: "339" - readinessGates: - - conditionType: Ö埡ÆɰŞ襵樞úʥ銀ƨ - runtimeClassName: "344" - schedulerName: "334" - securityContext: - fsGroup: 4439992350792424628 - runAsGroup: 3850139838566476547 - runAsNonRoot: false - runAsUser: 4614883548233532846 - seLinuxOptions: - level: "286" - role: "284" - type: "285" - user: "283" - supplementalGroups: - - -2685189273294986757 - sysctls: - - name: "289" - value: "290" - windowsOptions: - gmsaCredentialSpec: "288" - gmsaCredentialSpecName: "287" - serviceAccount: "281" - serviceAccountName: "280" - shareProcessNamespace: false - subdomain: "293" - terminationGracePeriodSeconds: 6353399950510297907 - tolerations: - - effect: '8 u怞荊ù灹8緔Tj§E蓋Cȗä2 ' - key: "335" - operator: ʗp壥Ƥ揤郡ɑ鮽ǍJB膾扉A­ - tolerationSeconds: -3940998112084713632 - value: "336" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 903876536 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: "" - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 坼É/pȿŘ阌Ŗ怳 - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1532914928 - items: - - key: "108" - mode: 1825892582 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -388204860 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: 1539635748 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "770" - resource: "101" - emptyDir: - medium: z徃鷢6ȥ啕禗Ǐ2 - sizeLimit: "387" - fc: - fsType: "103" - lun: -573382936 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -347579237 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: bJ5ʬ昹ʞĹ鑑6NJPM饣` - iscsi: - chapAuthDiscovery: true - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -539733119 - portals: - - "69" - readOnly: true - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -556258965 - sources: - - configMap: - items: - - key: "133" - mode: -1305215109 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -239847982 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "908" - resource: "131" - secret: - items: - - key: "125" - mode: -1629040033 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 8048348966862776448 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -963895759 - items: - - key: "61" - mode: 2022312348 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" - ttlSecondsAfterFinished: -777847767 -status: - active: 190279315 - conditions: - - lastProbeTime: "2124-06-12T21:00:01Z" - lastTransitionTime: "2942-03-25T09:53:33Z" - message: "346" - reason: "345" - status: 裦i÷ - type: ś錏嬮# - failed: -1141969778 - succeeded: -2138953220 diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.json deleted file mode 100644 index 9d95e40de..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.json +++ /dev/null @@ -1,1114 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "schedule": "24", - "startingDeadlineSeconds": -8817021678265088399, - "concurrencyPolicy": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "suspend": false, - "jobTemplate": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɭîcP$Iņ", - "resourceVersion": "14926502199533077124", - "generation": -1382274715716350298, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -8477149434422619117, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "+½H牗洝尿彀亞螩", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "4%a鯿r", - "apiVersion": "40" - } - ] - }, - "spec": { - "parallelism": -110482268, - "completions": -54954325, - "activeDeadlineSeconds": 8559948711650432497, - "backoffLimit": -907310967, - "selector": { - "matchLabels": { - "WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U": "UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9" - }, - "matchExpressions": [ - { - "key": "GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0", - "operator": "NotIn", - "values": [ - "YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "52", - "generateName": "53", - "namespace": "54", - "selfLink": "55", - "uid": "³ƞsɁ8^", - "resourceVersion": "8685765401091182865", - "generation": 2849222499405033998, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -671981934547025691, - "labels": { - "57": "58" - }, - "annotations": { - "59": "60" - }, - "ownerReferences": [ - { - "apiVersion": "61", - "kind": "62", - "name": "63", - "uid": "Ǡ/淹\\韲翁\u0026ʢ", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "64" - ], - "clusterName": "65", - "managedFields": [ - { - "manager": "66", - "operation": "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ", - "apiVersion": "67" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "72", - "hostPath": { - "path": "73", - "type": "ȸŹăȲϤĦ" - }, - "emptyDir": { - "medium": "芝M 宸@Z^嫫猤痈", - "sizeLimit": "179" - }, - "gcePersistentDisk": { - "pdName": "74", - "fsType": "75", - "partition": -2127673004 - }, - "awsElasticBlockStore": { - "volumeID": "76", - "fsType": "77", - "partition": 717712876 - }, - "gitRepo": { - "repository": "78", - "revision": "79", - "directory": "80" - }, - "secret": { - "secretName": "81", - "items": [ - { - "key": "82", - "path": "83", - "mode": 147264373 - } - ], - "defaultMode": -1249460160, - "optional": false - }, - "nfs": { - "server": "84", - "path": "85" - }, - "iscsi": { - "targetPortal": "86", - "iqn": "87", - "lun": 1029074742, - "iscsiInterface": "88", - "fsType": "89", - "portals": [ - "90" - ], - "secretRef": { - "name": "91" - }, - "initiatorName": "92" - }, - "glusterfs": { - "endpoints": "93", - "path": "94" - }, - "persistentVolumeClaim": { - "claimName": "95", - "readOnly": true - }, - "rbd": { - "monitors": [ - "96" - ], - "image": "97", - "fsType": "98", - "pool": "99", - "user": "100", - "keyring": "101", - "secretRef": { - "name": "102" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "103", - "fsType": "104", - "secretRef": { - "name": "105" - }, - "readOnly": true, - "options": { - "106": "107" - } - }, - "cinder": { - "volumeID": "108", - "fsType": "109", - "secretRef": { - "name": "110" - } - }, - "cephfs": { - "monitors": [ - "111" - ], - "path": "112", - "user": "113", - "secretFile": "114", - "secretRef": { - "name": "115" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "116", - "datasetUUID": "117" - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "857" - }, - "mode": -1305215109 - } - ], - "defaultMode": 186998979 - }, - "fc": { - "targetWWNs": [ - "123" - ], - "lun": 1179332384, - "fsType": "124", - "readOnly": true, - "wwids": [ - "125" - ] - }, - "azureFile": { - "secretName": "126", - "shareName": "127" - }, - "configMap": { - "name": "128", - "items": [ - { - "key": "129", - "path": "130", - "mode": 926891073 - } - ], - "defaultMode": -1558831136, - "optional": true - }, - "vsphereVolume": { - "volumePath": "131", - "fsType": "132", - "storagePolicyName": "133", - "storagePolicyID": "134" - }, - "quobyte": { - "registry": "135", - "volume": "136", - "user": "137", - "group": "138", - "tenant": "139" - }, - "azureDisk": { - "diskName": "140", - "diskURI": "141", - "cachingMode": "ÙæNǚ錯ƶRq", - "fsType": "142", - "readOnly": true, - "kind": "?瞲Ť倱\u003cįXŋ朘瑥A徙" - }, - "photonPersistentDisk": { - "pdID": "143", - "fsType": "144" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "145", - "items": [ - { - "key": "146", - "path": "147", - "mode": -1120128337 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "148", - "fieldRef": { - "apiVersion": "149", - "fieldPath": "150" - }, - "resourceFieldRef": { - "containerName": "151", - "resource": "152", - "divisor": "580" - }, - "mode": 1669671203 - } - ] - }, - "configMap": { - "name": "153", - "items": [ - { - "key": "154", - "path": "155", - "mode": -1950133943 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "156", - "expirationSeconds": -8801560367353238479, - "path": "157" - } - } - ], - "defaultMode": -427769948 - }, - "portworxVolume": { - "volumeID": "158", - "fsType": "159" - }, - "scaleIO": { - "gateway": "160", - "system": "161", - "secretRef": { - "name": "162" - }, - "protectionDomain": "163", - "storagePool": "164", - "storageMode": "165", - "volumeName": "166", - "fsType": "167", - "readOnly": true - }, - "storageos": { - "volumeName": "168", - "volumeNamespace": "169", - "fsType": "170", - "secretRef": { - "name": "171" - } - }, - "csi": { - "driver": "172", - "readOnly": true, - "fsType": "173", - "volumeAttributes": { - "174": "175" - }, - "nodePublishSecretRef": { - "name": "176" - } - } - } - ], - "initContainers": [ - { - "name": "177", - "image": "178", - "command": [ - "179" - ], - "args": [ - "180" - ], - "workingDir": "181", - "ports": [ - { - "name": "182", - "hostPort": 1971383046, - "containerPort": 1154560741, - "protocol": "涁İ而踪鄌eÞȦY籎顒ǥ", - "hostIP": "183" - } - ], - "envFrom": [ - { - "prefix": "184", - "configMapRef": { - "name": "185", - "optional": false - }, - "secretRef": { - "name": "186", - "optional": false - } - } - ], - "env": [ - { - "name": "187", - "value": "188", - "valueFrom": { - "fieldRef": { - "apiVersion": "189", - "fieldPath": "190" - }, - "resourceFieldRef": { - "containerName": "191", - "resource": "192", - "divisor": "832" - }, - "configMapKeyRef": { - "name": "193", - "key": "194", - "optional": true - }, - "secretKeyRef": { - "name": "195", - "key": "196", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°": "465" - }, - "requests": { - "oɘ檲ɨ銦妰黖ȓ": "793" - } - }, - "volumeMounts": [ - { - "name": "197", - "mountPath": "198", - "subPath": "199", - "mountPropagation": "oĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵ɢ", - "subPathExpr": "200" - } - ], - "volumeDevices": [ - { - "name": "201", - "devicePath": "202" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 290736426, - "host": "205", - "scheme": "ö", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": "208", - "host": "209" - }, - "initialDelaySeconds": 322201525, - "timeoutSeconds": -1784033404, - "periodSeconds": 66472042, - "successThreshold": 2130088978, - "failureThreshold": -1064240304 - }, - "readinessProbe": { - "exec": { - "command": [ - "210" - ] - }, - "httpGet": { - "path": "211", - "port": -566408554, - "host": "212", - "scheme": "劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立", - "httpHeaders": [ - { - "name": "213", - "value": "214" - } - ] - }, - "tcpSocket": { - "port": -31530684, - "host": "215" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": "218", - "host": "219", - "scheme": "n芞QÄȻȊ+?ƭ峧Y栲茇竛", - "httpHeaders": [ - { - "name": "220", - "value": "221" - } - ] - }, - "tcpSocket": { - "port": -592581809, - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": 1702578303, - "host": "225", - "scheme": "NŬɨǙÄr蛏豈ɃHŠơŴĿ", - "httpHeaders": [ - { - "name": "226", - "value": "227" - } - ] - }, - "tcpSocket": { - "port": -1047607622, - "host": "228" - } - } - }, - "terminationMessagePath": "229", - "terminationMessagePolicy": "ȉ彂", - "imagePullPolicy": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "securityContext": { - "capabilities": { - "add": [ - "þŹʣy豎@ɀ羭," - ], - "drop": [ - "OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "230", - "role": "231", - "type": "232", - "level": "233" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "234", - "gmsaCredentialSpec": "235" - }, - "runAsUser": -739484406984751446, - "runAsGroup": 1898367611285047958, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "籘Àǒɿʒ刽ʼn" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "236", - "image": "237", - "command": [ - "238" - ], - "args": [ - "239" - ], - "workingDir": "240", - "ports": [ - { - "name": "241", - "hostPort": 622473257, - "containerPort": -966649167, - "protocol": "eLJèux榜VƋZ", - "hostIP": "242" - } - ], - "envFrom": [ - { - "prefix": "243", - "configMapRef": { - "name": "244", - "optional": true - }, - "secretRef": { - "name": "245", - "optional": true - } - } - ], - "env": [ - { - "name": "246", - "value": "247", - "valueFrom": { - "fieldRef": { - "apiVersion": "248", - "fieldPath": "249" - }, - "resourceFieldRef": { - "containerName": "250", - "resource": "251", - "divisor": "700" - }, - "configMapKeyRef": { - "name": "252", - "key": "253", - "optional": true - }, - "secretKeyRef": { - "name": "254", - "key": "255", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "騀呣ǎfǣ萭旿@掇lNdǂ\u003e": "44" - }, - "requests": { - "$MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫": "130" - } - }, - "volumeMounts": [ - { - "name": "256", - "readOnly": true, - "mountPath": "257", - "subPath": "258", - "mountPropagation": "藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0", - "subPathExpr": "259" - } - ], - "volumeDevices": [ - { - "name": "260", - "devicePath": "261" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "|懥ƖN粕擓ƖHVe熼", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": -327987957, - "host": "268" - }, - "initialDelaySeconds": -801430937, - "timeoutSeconds": 1883209805, - "periodSeconds": -236125597, - "successThreshold": 385729478, - "failureThreshold": -1285424066 - }, - "readinessProbe": { - "exec": { - "command": [ - "269" - ] - }, - "httpGet": { - "path": "270", - "port": -1273659804, - "host": "271", - "scheme": "/ɸɎ R§耶FfBls3!", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": -1654678802, - "host": "274" - }, - "initialDelaySeconds": -625194347, - "timeoutSeconds": -720450949, - "periodSeconds": -630252364, - "successThreshold": 391562775, - "failureThreshold": -775511009 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": -1213051101, - "host": "277", - "scheme": "埽uʎȺ眖R", - "httpHeaders": [ - { - "name": "278", - "value": "279" - } - ] - }, - "tcpSocket": { - "port": 1260448044, - "host": "280" - } - }, - "preStop": { - "exec": { - "command": [ - "281" - ] - }, - "httpGet": { - "path": "282", - "port": 1689978741, - "host": "283", - "scheme": "緕ȚÍ勅跦", - "httpHeaders": [ - { - "name": "284", - "value": "285" - } - ] - }, - "tcpSocket": { - "port": 571739592, - "host": "286" - } - } - }, - "terminationMessagePath": "287", - "terminationMessagePolicy": "ǩ", - "imagePullPolicy": "輓Ɔȓ蹣ɐǛv+8", - "securityContext": { - "capabilities": { - "add": [ - "军g\u003e郵[+扴ȨŮ+朷Ǝ膯lj" - ], - "drop": [ - "" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "288", - "role": "289", - "type": "290", - "level": "291" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "292", - "gmsaCredentialSpec": "293" - }, - "runAsUser": -5821728037462880994, - "runAsGroup": 4468469649483616089, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "碧闳ȩr" - } - } - ], - "restartPolicy": "q埄趛屡ʁ岼昕ĬÇó藢xɮĵȑ6L*", - "terminationGracePeriodSeconds": -2321746767245155166, - "activeDeadlineSeconds": 6764431850409848860, - "dnsPolicy": "fʀļ腩墺Ò媁荭gw忊", - "nodeSelector": { - "294": "295" - }, - "serviceAccountName": "296", - "serviceAccount": "297", - "automountServiceAccountToken": true, - "nodeName": "298", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "299", - "role": "300", - "type": "301", - "level": "302" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "303", - "gmsaCredentialSpec": "304" - }, - "runAsUser": -5640668310341845616, - "runAsGroup": 3582457287488712192, - "runAsNonRoot": true, - "supplementalGroups": [ - 8340498462419356921 - ], - "fsGroup": -5353126188990290855, - "sysctls": [ - { - "name": "305", - "value": "306" - } - ] - }, - "imagePullSecrets": [ - { - "name": "307" - } - ], - "hostname": "308", - "subdomain": "309", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "310", - "operator": "aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l", - "values": [ - "311" - ] - } - ], - "matchFields": [ - { - "key": "312", - "operator": "J僳徥淳4揻-$ɽ丟×x锏", - "values": [ - "313" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -190183379, - "preference": { - "matchExpressions": [ - { - "key": "314", - "operator": "輂,ŕĪĠM蘇KŅ/»頸", - "values": [ - "315" - ] - } - ], - "matchFields": [ - { - "key": "316", - "operator": "NƗ¸gĩ", - "values": [ - "317" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3vvm-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jd.21k-vc0260ni-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4j/nc.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g": "3M-.-p" - }, - "matchExpressions": [ - { - "key": "lJ1zET_..3dCv3j._.-_pP__up.2L_s-o779._-k-5___-Qq..s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "324" - ], - "topologyKey": "325" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 293042649, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "8-m7---k8235--8--c83-4b-9-1o8w-a-6-31o/39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..__6": "8D_X._B__-P---_H-.___._D8.TS-jJY" - }, - "matchExpressions": [ - { - "key": "4sE4", - "operator": "In", - "values": [ - "u_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_l" - ] - } - ] - }, - "namespaces": [ - "332" - ], - "topologyKey": "333" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "v8_.O_..8n.--z_-..6W.K": "sTt.-U_--6" - }, - "matchExpressions": [ - { - "key": "7-3x-3/23_P", - "operator": "NotIn", - "values": [ - "5....7..--w0_1V4.-r-8S5--_7_-Zp_._.-mi4" - ] - } - ] - }, - "namespaces": [ - "340" - ], - "topologyKey": "341" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1572758512, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "21ak-tov--xk-gr-4---rv-t-u-4----q-x3w3dn1/AmD-.0AP.-.C_--.F5_x.KNC0-.-m_u": "6.C.-e16-O_.Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-k" - }, - "matchExpressions": [ - { - "key": "4-0l-023bm-6l2e5---k5v3a---ezo/A_Xf3.V0H23", - "operator": "NotIn", - "values": [ - "2.--4Z7__i1T.miw_7a2" - ] - } - ] - }, - "namespaces": [ - "348" - ], - "topologyKey": "349" - } - } - ] - } - }, - "schedulerName": "350", - "tolerations": [ - { - "key": "351", - "operator": "ȫ喆5O2.:鑋ĻL©鈀6", - "value": "352", - "effect": "蕞纥奆0ǔ廘ɵ岳v\u0026ȝxɕūNj'6", - "tolerationSeconds": -2850654160732182959 - } - ], - "hostAliases": [ - { - "ip": "353", - "hostnames": [ - "354" - ] - } - ], - "priorityClassName": "355", - "priority": -16328498, - "dnsConfig": { - "nameservers": [ - "356" - ], - "searches": [ - "357" - ], - "options": [ - { - "name": "358", - "value": "359" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ɩŢɽǣ(^\u003cu綡Ţ搯唧aĦ3Ǩk" - } - ], - "runtimeClassName": "360", - "enableServiceLinks": false, - "preemptionPolicy": "l=ƈư呄" - } - }, - "ttlSecondsAfterFinished": 2014973362 - } - }, - "successfulJobsHistoryLimit": 1886409046, - "failedJobsHistoryLimit": -1913967820 - }, - "status": { - "active": [ - { - "kind": "361", - "namespace": "362", - "name": "363", - "uid": "瀔", - "apiVersion": "364", - "resourceVersion": "365", - "fieldPath": "366" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.pb deleted file mode 100644 index 5bd1afb0d0d9ece05ec712ba82e6c1888caec987..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5206 zcmYjV3v^UPn(k`U;9Yg&^)bDzuAvpo2J3Qf-8ZWvZzBo<^30B269`B`2zi2;^_)Bj zbRZ-lAt8YP34}lrAc2sC0MT@Jx*KPF&B}r(vZJ>jj?bOr$oOLax(#!-&*}fx{j2JK z)n9*obu+a*8{=T^PD{;S`P!61AuT;WRbb<0=4P*-o1Mn?CNcrUAi^Tii6j@2lU&}4 zXnU2nD`#$~)t#zE4s3tb+Zk-)B2C8?Z`D%s;9xqrUr=;KA~LT^ny4wV!V^)~u6$kk zVM*1Vk_|I#3wpNnmsRY0XU{N7xr0F}i?p;j2I;I_;4=~!yFi?FL3G_StH>O#4^;j> z&*vW7u_4JW2)s>0xpqM+vJ0{sVHm2g6QVV4v)&zT-|cI~OUyl|JOimyg7t5NYD*GB zLyg|eFM~9d*x0j^7(0>TzuWf7d)JRg->*PUhquLBYF0KzcJA=GBQ0+4*4M)W72&~# z1Y6QC6PXSK6J*v-6sMi2E<4eZm|&0R*vbWuKj+&Feo8t~WS$7RE{h_sssfR;j=i6M zQnusm$d?El-Pw8R==Kx-9ydxE&)7wtwTnU;Z4qdR8Hv!6opw=iJve#vTyl78W9Zag z^TddGuK4pat&!FvNp?|+`7EkMc2RSq`(TRB#z_-XqsK>bopy-_&)$E0{K3neZ{MIl z6yNogX~vq4@4Ei?FQvsEv(VLzm_^K!%NEI+k^I6Ej?*|JZQ(`^uXz#=!=IM*|yku@!fs8TtyutCHm|vh8 z+)OSd9phQN%B33IvxzqHrHeTU@s}Y|vgowSlFKg3Nq3H(9Ba)BmT0e#`!q$9RYjI~ zf!75=BamuZ_2-wH{7tRCCm{G{$^V@H=tk$ozgfYTRS=}n;LDI`3ZLO(>;G(`5Ez@Tr)TNdc^4v!x6cCe2y_eb1& z=OviO2B)RGVs>?fw;c>OZeed{#tEwKd;lg%tX-8I|5Z1%^}4mH2{uOV!Iwj7UA9)l;$ z*Hx!o*Iag8PZ}riJOLt1rGD^a8cKVVHbfSPX<38HfXj^yKTy%)Q z=RQIo0x+Qv01;h4q$I0T=1~!y5Bna7T8b2A3VqdBi>m{d@XmXIMW_Hms9H#qgr9zW zw>B1sc+Xo6E8OTebc`6k|7v&NZJ>onU>Q8*I&>H9q4J69ur;Ge4Ao3DHl9AH29bBX zb^Yg|agJ*vmzsWz1sAoU`=MW?T19HMNX-_dqv#>ZmML2S7vZ5M0nrE$y$?MFy%G<- zlHk0@v)j`#-`^bFc6{vgq8u12kwirP<(Y76pYNbq-20UG_;O!WXirnP_Rw_m{O&V| zdM(iaOVX%ixJ-j7LohEO4*C=-S`n<^D+E#o-b4aKnhHdo0YsS#L|uSBK#hpmikJk; zUrA;kpt5NkB-L@;{5E8W3>=zfG8FhrrQDLQnjJa|G^ zMHT*xXpX5Qo=#Fl7Yzt(9w2gTgu)(;W5y8?93i6W1fscsK)MpBos*$U65@|si*(u@ zz5QEG{%k39-IMOG^mG<%3U%yRI#!iJ2a~DK)4^1Zq&lBrKogXE`lhpxaB$v1Ted>2 z^1SmN8b$);3yA1IuAA>*8Ug=pGnO%rF%LyMi_O}0fAwmAd!(i()HpINR9(4l{wjaz zZ&}!YlEm`N6OYeZ8rU~YjkdR&ht34t;e)3`WtF3Y`O&t0T(rN--yAL}j}CTO)kEax z>Qt>l<3VH_}jQCooQ5v;{FM zEVC8DY9K}t**nLhcpHdPBuZr01OFMSJT$gzez>n8v~%a!uH>cZ;mv31o+eNrfvC<0 znSUN{i?3?_<7ctebJ{3hiw}FhEcwL>uj7x!zm~)$d{%yH2YtVR62~fk7(o2_>y<6B zEK8|H%*!!TbQbmqQF)e1{ru+-_s2#!sa2}rx^GHwFj$?iX!LNT`1G9BGuGva6D)I} z0K)+Bra52t|N6z>EnSv5subVQ@ZE= z*kj_94B)G|_eRd{9NQe&85wF1*7#crCu>FPU}HaQZf;rg+h|$;e@qT-Jr(Hm9h)55 zGcZ;i*?io;m9@b_Lk%MuwN-1Us!#68z)uYdGO#kVgL$Lb5kG^vl6ZD%}n=FyVK_MSBx%@H>od|(xgnGPk7=uq;A zt}X(iEl01~UbE$bpXI&DFO-r4yay-K8s^| z5R=Lnj0C*`&nBk&8p0#ByxH6EM)*LDdFI5#aP#4%X6yNI^@&Jro3B4~q%+!mdL0-C zXX6ue7GWQnYnGif&mRg6oRmU4hVkRUbDt0H^E7UX*6*MLMK*bSPfh2c*e+xL9cm76 zCH6Owv!ze^8oWon`{zZPDxddNOc@=H?jNLcWEMgp!T~#e{#fJa;2Q4{%2nCmIOaNH z{(_ix#55tXurLdgoFWy2i-Z@{tk-xf<28T{RgCc(P1{H^rGmU7jI%PZmQ4U+!vD2A z8E35Gh>(d3SMspx>(}CSf{+7nupm>0k-CI6I5yYHnMw{!k@E|1{@QdYW6JuK+)UA! z!x`Dj@f;m+X5oC9BXa7pO&m#`M+C{>@O)zpdxtm=b9e(glM&a=6^dprHaJdPHM3C6 z;9!KYVS!;3Y~aWXMjp;qRh=_%CYBAuzzcIYE|0xyR(5(Gpw-!%*5>8I`VpvmB3uIA zM&mF4^^+>Zjv}TXF~4V)X*i2|nyC>Htk*DJsfk!h!#WnSwT(CxD_9h=r-=F-Vn9rd z#yaqZA`?**ouAv8944K4oO!TNGq@KaMA~`~Qv^0~$};YGmdRV3&*3Eo#tQp1^G~qK zo3J>Ah{l3jSpEr_N>(|Twvji4r4om8vGx*#!cYyIvH>jSaMoJbbZ~_Mt&+fgjmFmu zZmx?VCiWU){)Ctc#5_lY)J&Y8U5N3fOuQx+OW<~HA#nn z8ckl|(sMH9*#;=!mM7y(_Bkd=!u&c6ch$5ktgIvH;0ex@3&m7;rWa*TnQkm!Epkiw zWFp>*!Tp5BK1DT*wZdX9YwbouO@#s|N*Z-oZ-&h-^KIx701!b{DJX#sK=^>{G(HIk zz)tAWNc`rDW!-TO)AV-S=6X1Ey2N`TQoJoPcr;qRE#1=^=vWc%t&Se3^B6;!;OuB z16gCIUJsuhG(63kxuYyva@N)v-G>onwLm)&#PIs)kpg7B&{p1B24=skk) zdVK%8@9##A@_mPUVh4W07d4k3O|0wu=!ZD|y}xETv7!9iLEcy_v(|lLM z_us|NdrPB0To0M|a{Srm6Fg%z+em^@$MhXDr3zwFJfMenWeDLP_xv3 zU@!r)2R=5q9$p`Dw=VRQ2ZjUg$ieU~SyB?bF>kfAMcYDfnBP}~3y<381$-ez#2YjczBQXs$ z{NxtcJF|UwTP&=W&qT|BPCeHd7&5y~j1BqgH+lxvKNs$6nH{be^4E;@%`U1$aP-~l zIqw^~(EfU)w|ZKzIDEe6N%qkfeFyz*7kbS8`cQl62DALEe<0G{9Nu|4TDf`5J^3a` zfo~~*;spqZNGP5c6OL~G#%#KB>gx9>5y3YT+q7K`rLEheySkloZIuYta z3*fkfo6m!RE_2sr`9;D_jn-CqhhG>y65Ud)KqZigYeJ-6XC`LQ{h?%R1TnbdRwdu(+#+&JxDde z0*JEeq)3Ba`b1g3gwUT+0`srIBfhraIe&ZND^C@KPap8Lg=&tQ^@mfv9iqQ8^9vBD z@ZTcakLb>IPmgUGJ7LzAYg=oNy&GG>X?-n`H{IVW1+K>^1_ a_-+COF1X?1`Xp#c1c*Eph~l)lZ2t$UP~*4& diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.yaml deleted file mode 100644 index b76266c77..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.CronJob.after_roundtrip.yaml +++ /dev/null @@ -1,759 +0,0 @@ -apiVersion: batch/v1beta1 -kind: CronJob -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - concurrencyPolicy: ěĂ凗蓏Ŋ蛊ĉy緅縕 - failedJobsHistoryLimit: -1913967820 - jobTemplate: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -8477149434422619117 - finalizers: - - "37" - generateName: "26" - generation: -1382274715716350298 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - manager: "39" - operation: 4%a鯿r - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: false - kind: "35" - name: "36" - uid: +½H牗洝尿彀亞螩 - resourceVersion: "14926502199533077124" - selfLink: "28" - uid: ɭîcP$Iņ - spec: - activeDeadlineSeconds: 8559948711650432497 - backoffLimit: -907310967 - completions: -54954325 - manualSelector: false - parallelism: -110482268 - selector: - matchExpressions: - - key: GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0 - operator: NotIn - values: - - YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G - matchLabels: - WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U: UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9 - template: - metadata: - annotations: - "59": "60" - clusterName: "65" - creationTimestamp: null - deletionGracePeriodSeconds: -671981934547025691 - finalizers: - - "64" - generateName: "53" - generation: 2849222499405033998 - labels: - "57": "58" - managedFields: - - apiVersion: "67" - manager: "66" - operation: \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - name: "52" - namespace: "54" - ownerReferences: - - apiVersion: "61" - blockOwnerDeletion: true - controller: true - kind: "62" - name: "63" - uid: Ǡ/淹\韲翁&ʢ - resourceVersion: "8685765401091182865" - selfLink: "55" - uid: ³ƞsɁ8^ - spec: - activeDeadlineSeconds: 6764431850409848860 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "314" - operator: 輂,ŕĪĠM蘇KŅ/»頸 - values: - - "315" - matchFields: - - key: "316" - operator: NƗ¸gĩ - values: - - "317" - weight: -190183379 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "310" - operator: aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - values: - - "311" - matchFields: - - key: "312" - operator: J僳徥淳4揻-$ɽ丟×x锏 - values: - - "313" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4sE4 - operator: In - values: - - u_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_l - matchLabels: - 8-m7---k8235--8--c83-4b-9-1o8w-a-6-31o/39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..__6: 8D_X._B__-P---_H-.___._D8.TS-jJY - namespaces: - - "332" - topologyKey: "333" - weight: 293042649 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: lJ1zET_..3dCv3j._.-_pP__up.2L_s-o779._-k-5___-Qq..s - operator: DoesNotExist - matchLabels: - ? 3vvm-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jd.21k-vc0260ni-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4j/nc.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g - : 3M-.-p - namespaces: - - "324" - topologyKey: "325" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4-0l-023bm-6l2e5---k5v3a---ezo/A_Xf3.V0H23 - operator: NotIn - values: - - 2.--4Z7__i1T.miw_7a2 - matchLabels: - 21ak-tov--xk-gr-4---rv-t-u-4----q-x3w3dn1/AmD-.0AP.-.C_--.F5_x.KNC0-.-m_u: 6.C.-e16-O_.Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-k - namespaces: - - "348" - topologyKey: "349" - weight: -1572758512 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 7-3x-3/23_P - operator: NotIn - values: - - 5....7..--w0_1V4.-r-8S5--_7_-Zp_._.-mi4 - matchLabels: - v8_.O_..8n.--z_-..6W.K: sTt.-U_--6 - namespaces: - - "340" - topologyKey: "341" - automountServiceAccountToken: true - containers: - - args: - - "239" - command: - - "238" - env: - - name: "246" - value: "247" - valueFrom: - configMapKeyRef: - key: "253" - name: "252" - optional: true - fieldRef: - apiVersion: "248" - fieldPath: "249" - resourceFieldRef: - containerName: "250" - divisor: "700" - resource: "251" - secretKeyRef: - key: "255" - name: "254" - optional: false - envFrom: - - configMapRef: - name: "244" - optional: true - prefix: "243" - secretRef: - name: "245" - optional: true - image: "237" - imagePullPolicy: 輓Ɔȓ蹣ɐǛv+8 - lifecycle: - postStart: - exec: - command: - - "275" - httpGet: - host: "277" - httpHeaders: - - name: "278" - value: "279" - path: "276" - port: -1213051101 - scheme: 埽uʎȺ眖R - tcpSocket: - host: "280" - port: 1260448044 - preStop: - exec: - command: - - "281" - httpGet: - host: "283" - httpHeaders: - - name: "284" - value: "285" - path: "282" - port: 1689978741 - scheme: 緕ȚÍ勅跦 - tcpSocket: - host: "286" - port: 571739592 - livenessProbe: - exec: - command: - - "262" - failureThreshold: -1285424066 - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: '|懥ƖN粕擓ƖHVe熼' - initialDelaySeconds: -801430937 - periodSeconds: -236125597 - successThreshold: 385729478 - tcpSocket: - host: "268" - port: -327987957 - timeoutSeconds: 1883209805 - name: "236" - ports: - - containerPort: -966649167 - hostIP: "242" - hostPort: 622473257 - name: "241" - protocol: eLJèux榜VƋZ - readinessProbe: - exec: - command: - - "269" - failureThreshold: -775511009 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "270" - port: -1273659804 - scheme: /ɸɎ R§耶FfBls3! - initialDelaySeconds: -625194347 - periodSeconds: -630252364 - successThreshold: 391562775 - tcpSocket: - host: "274" - port: -1654678802 - timeoutSeconds: -720450949 - resources: - limits: - 騀呣ǎfǣ萭旿@掇lNdǂ>: "44" - requests: - $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫: "130" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 军g>郵[+扴ȨŮ+朷Ǝ膯lj - drop: - - "" - privileged: false - procMount: 碧闳ȩr - readOnlyRootFilesystem: true - runAsGroup: 4468469649483616089 - runAsNonRoot: false - runAsUser: -5821728037462880994 - seLinuxOptions: - level: "291" - role: "289" - type: "290" - user: "288" - windowsOptions: - gmsaCredentialSpec: "293" - gmsaCredentialSpecName: "292" - terminationMessagePath: "287" - terminationMessagePolicy: ǩ - volumeDevices: - - devicePath: "261" - name: "260" - volumeMounts: - - mountPath: "257" - mountPropagation: 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0 - name: "256" - readOnly: true - subPath: "258" - subPathExpr: "259" - workingDir: "240" - dnsConfig: - nameservers: - - "356" - options: - - name: "358" - value: "359" - searches: - - "357" - dnsPolicy: fʀļ腩墺Ò媁荭gw忊 - enableServiceLinks: false - hostAliases: - - hostnames: - - "354" - ip: "353" - hostNetwork: true - hostname: "308" - imagePullSecrets: - - name: "307" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: 籘Àǒɿʒ刽ʼn - readOnlyRootFilesystem: false - runAsGroup: 1898367611285047958 - runAsNonRoot: true - runAsUser: -739484406984751446 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - windowsOptions: - gmsaCredentialSpec: "235" - gmsaCredentialSpecName: "234" - stdin: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - tty: true - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "298" - nodeSelector: - "294": "295" - preemptionPolicy: l=ƈư呄 - priority: -16328498 - priorityClassName: "355" - readinessGates: - - conditionType: ɩŢɽǣ(^dYmai!zOvg*n`)f4u+^L=x=`qZgY z=bSoq>aR{$b1jsex;G^`Z_Voo1$;_sUNTR|%*n~xxF9Qq{ydJlj3|U@Bsh@hL{hxd zQyyun^mJw~2)4MA)$pO6uX#EGjcmB_r0l6&VH_Sz#SieZCW~0&6j2paS&}&{XzJB( zN7DxzG#{mFdZmYL`*xinQ(ZwlK?$eP`SQ$q9kFH-k0B zalxSm&(>E!n-XuMCV{w0Po(aGr$$@oPo`2ZUw(Z4a*XT zc}^iETt2?@l&{-`k|t7CfupSgpF&y~T0&YJv?PaB zkev@r8$F*G+TIX6v)?#1Vw^9!akeGgaxC5|h|w4bN}*LyUFdNbqR}zpl;p_CksOCr ziUr*Ll zeyzYL%(}%Y&oUalf_nV9d90@Etf1%fAk9j%Rx6&}*tEC&;Fixr)n!zQIN%v?@klXdpFI1B#8Nx5M?B#4|OIINQB zv`SL^-J_?+T5Z|yERaPZMmPC%{G@e&6q@r4N<4U8ivBmo&EQV41`Gt>fbzJ(p zxfqfHid3=~5+tI`r8z0942dWUPMhywLU3T{_mKm=p^@UL7hB`4GS4BBiZZ0445_Gr zuuMPt`zgVe^64{t&11U*N5X@BIOrNrLwP(6Ws-)cCsUO%lvTlW zSq$|6Gz5B*f6zPRDfRbyhDQ&3+UZBB2g0uX3uBEFgENy}H99*(I}V2$w$XP|6L>{) zJP3nC+NwzQ|E?X{e$!m#Sc}sJY#G>!{j00{FIgdn?*Wbq9L-@>ISe~Z<>`BYLJU>G z{zLn|`S!Ppn!A1;*D#%eK2WSmcFXK|XoEIYvG-rQ^5q1lRaN7ys>WHSTQzQ`W$7K1 zRpVD#Qmh(Y0OK@)wrZl?vJ`fkCfQIDB&r7EHN|1oRHs$b;wSJNhk@|Zi60!EiBcXT z4S@zCI!vY%i{dH5lnGNwyPvdG($?%2ClTSfoJYxn2PPB_Ac7N!7;kn;94aK^p-uo% zN{~z?kXMy9xf*aW=eQ48m?*%QObclf`}42w)kNc9bH81`+J$~gWCYv6YhAr}z${n< z%itl^qI*aW(T^3or3p=?$jn%!ZR9~_5IFnWH-8zLV81?cx$&oHa8WCI0Qva zh}nX896e0f5@E~WB0Q9MASwo;^`fVtSLC2q&9Fs^GF_bePf*m=>-@!Bt{#$0Rq#map zj&u|mHEq7Cb-uQ6b$75~WM;6cB4g27U&%8xY(P<@IqJzL7OwCgn5jhC+KeM-{jSjA z{$Odv=wM!?^#B{`>-05+ipwH{oo4kAxCI)SRwnVlk^-(uYW(DI!$E;9U?L+&gC!@7 z{U`jb#?S%Jxp4Wgw`=T}e}uyzr!C!vsMV&~GNx5fBMbE16OqjVs$`K6$@$=a1uKq> z?O7D+tq<!tMQUj4IkKlQ6igtB<00zbCR%KjO@I0#x_S-^;j6Zg=d0p>n&Gwo zsp!|@nAk7M&g>%Zw@}EGn6RkIX`RHI&!a=N3 zc<22Ifx$pk?9$Pr;iCTe>t<)<3X@H9pa6q_FmBE_eZPMB4|6Wl97VL%*MI-fxH&)9 z4R=JFv1f+P{W;oO*LS|T>drcG@vf%E_0CdGM=ao~LZ z#VY^V(7ruOqsEX#fjWI3MS&MxAC_LZ!?Z)?=!K?AsN6iLgwjm}eyIBD$X%v~s^Gjg zG*Itva_=-M%fkchraGwNAS;cl^Eba=ZH=mv(}1t!+!sE#du*$JcX+5RQ0;3jn5GtH zz{Y;W*xJ1QnMi5h@1_N}pYeBiPfQE$8yKq!Z$0VTPFrB1p@w0V*s8)l!x{(qqw%pV zO`l!g-|lHTiQ+79PFiMOY5AW<*U3K?KeOQOQ0vi1!)gDqoTVfOG!k@8C_pflW z3is)7L+h5n2~VHDMt(6qwl&}$`Q&e(eeoHJ+jqU@=Et9wfA|Vdw7;(YD2Ud}oX;AX81|<(`%2FWeD)gG=bxTeXoYe3NwM>A$3xsz9!M5t3 z>p%SR?Yd8TkR8STWADYDJ;s&Ka^tS}Yp?#ZfqLL|{5}}vp=(uEWeQ2bHGkWUZ3>~UA&YqeQ zYC5{YXt@xoIu)*I_4Wmibws-QGr%}F8=oYjF#YfXqx7_K;Ye`cv>4nq%sde|e`D}~ zyJ1VDZWj?0=){TL)g4EoyNv!%s5!tD>EDLWl|1FG_Z;^eTo`Vwc)?qqFghGLI7r4w zG=xHc19sw~v4+vX^`2vdtI&Z7)J;VF6;W-7YD7XoK_-K<3l#=j#2l|=zRoccvmUUb z!Z6HwRo#r!#r)hthRIB0)GQ2;6aKH~N=({X7W3&$!5R)$ed7iugXgmW9_FV@AgPIr z3diOKDP7KnAyQsGleZyNOiS3fhMgnm^I1J>6*FH0+*zNdJZLIEZ__0Ez?<6SUaacNMk`l-?UiQ^Ea{hMLn0vQWTBVnRG_db)8v~ z&9b@lJ#({Ca{;~1+p-}y57rMu-4o!F@D7@IB6<{2eTe!4wNhm=iKpo*7QlLy zVb-VuBc?DK!)K|RnPf(01U@T4(B|uNn4G+qSF`I`9nV+5h*Xw+DF=YI@KWOXJXT-M zGF$YVIU39Ax=hEabM;lMJ{wG04Eps%2G}~Q&sEuFFEeQiR?{+dhnPDLfE+;V_Y)NvXJ3L4 zsT)B}A=t#qE7=!lDtB2P%PiL!My6*_zkyZW!Uzdi&==pv_D@Pgv%~g9Rsq9o zNoUsQFe12}Q^4dg`DT;JX0`~Mg|!>`gjtz$8J3&1m}S^GU>iGMf@{nRi{@~!@e`&TPG(cH)1`SjOu(*6WYX#9sd$m$ zG8nkqrerd522KS}m~^Q?NQP%>VOGK{ebqXFUBM+{;dTrjz$Erbimq?qm$8`}HtR|< z6hJ{#iNjhGY<7ujMVA49@QOk}33LF$2V|#m@jw7}LYIndTQ8M%#n=tQ(|(8ZkzjwZ z=Tx|8M|kjfq-;m3yT#wWI@D7YIaKRALPiM$iSQ~>sH#yU!m9*^X&gZ!yhdP{7KOgB z;wJLo0l))Oyp2S7jX+XOwxijLD3+RH)DDLl8vKVc$IiSF>L1kIO{%f0G*W!d+qpO~ zRB|F%$S%Jpj@!mj3#MN%JpNb6c@$V+RiY5>M!fOga4LsZofN1fP zvpgk%%1}}D(}C^5p^n5E?jxc7oo^ZkD?*2Q!}WcERy+Z7+|o2^mU&LVonb1}V@@a)ZE};;>P-Aqu%iU{163z4yUhWG_2#v^#p>$9`FT<*~Th zj*owg;okqdyDSRvlIjrb0D{q=`pzW}-aO6s)c^2(^t?A`aU5xQMt}Y;T5ruGnU`$mnoj)~HN_r2c&c_n>|58$ zj-j~0nnQz8gv7aiDy@h%Q#^=zEozobKTFI~{)NGK$R79@;e2Fc*wwPcUFIM5yQV!m z)@__Vx;l8UH@u@F)Y)uWgvn`&`EiThyEI_jc8TyY9i0IZnaqHrQNC6Eb!QZFV9ELL zB5zlq!?)L6mJ@E?74F#reeMh1p^I&AgnO!H28u!#x}TySd&zs) z*Ltzr=&K91m25J~&iMwyZB3!w{gH~TW3FlAAO*g)0E*`!AOa?MUWh%u^IN0w>X~al zpg08IR4g<1)R(mEjO^)hEU<-o8r?;{+Q7)gT4URJ?{*Wb2m}xaQV~KXRzW6K;Q?Bi z0EJg2m}zkBts>Tuyb;_z9n?_h;d{q=c_Y@8v}ht@9Bc6{{345_1;cj<&$#U2Y(#9{_f#@ zgO`zctrOtJ1ViCk2UPN-cYB)63)3yQs69kxgar^J#X*n;x%3H=b{V0+pjhfZ0>`|q zf%Cq$xL2Rf5A`4Nwg#(D8g)mLJ?(<8BmGNID0AN-%TMU;j2UCw#!eYEW$N~t6YoV= zaAt3F_^lZ3QtR8LG3uF1UEfCUX^tr-c#y$y0luREfeUV^s4gB_A_gK&2O>KxPRsuR DW: "44" - requests: - $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫: "130" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 军g>郵[+扴ȨŮ+朷Ǝ膯lj - drop: - - "" - privileged: false - procMount: 碧闳ȩr - readOnlyRootFilesystem: true - runAsGroup: 4468469649483616089 - runAsNonRoot: false - runAsUser: -5821728037462880994 - seLinuxOptions: - level: "291" - role: "289" - type: "290" - user: "288" - windowsOptions: - gmsaCredentialSpec: "293" - gmsaCredentialSpecName: "292" - terminationMessagePath: "287" - terminationMessagePolicy: ǩ - volumeDevices: - - devicePath: "261" - name: "260" - volumeMounts: - - mountPath: "257" - mountPropagation: 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0 - name: "256" - readOnly: true - subPath: "258" - subPathExpr: "259" - workingDir: "240" - dnsConfig: - nameservers: - - "356" - options: - - name: "358" - value: "359" - searches: - - "357" - dnsPolicy: fʀļ腩墺Ò媁荭gw忊 - enableServiceLinks: false - hostAliases: - - hostnames: - - "354" - ip: "353" - hostNetwork: true - hostname: "308" - imagePullSecrets: - - name: "307" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: 籘Àǒɿʒ刽ʼn - readOnlyRootFilesystem: false - runAsGroup: 1898367611285047958 - runAsNonRoot: true - runAsUser: -739484406984751446 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - windowsOptions: - gmsaCredentialSpec: "235" - gmsaCredentialSpecName: "234" - stdin: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - tty: true - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "298" - nodeSelector: - "294": "295" - preemptionPolicy: l=ƈư呄 - priority: -16328498 - priorityClassName: "355" - readinessGates: - - conditionType: ɩŢɽǣ(^}8jAsdo?fs9mDQmN1FvqhcOY1^f$Ug2(lp}W{xp+4i&%!p977a0LsTzAw4^CdTUAZub}Sl1kyHt*nkp%x zE{d|gC-(Q&58mk-bc4z7)?GW-UHZlwnd_#52ryL=GhifP7?ErNMzWic6z@IO#e=ak zRpaHW#!rtOST*y(tCt^*?mHIgX$W5&O=2WTM7krFk<=na(kjs%uuT=<&4MdfAl$zQ^?!&)Tv0)ZMkB81Ffy_=mQk^r zQHgg}dUT-M>a3dRv`!C&t1ge#ZJ!$$^b}a9FFka1G+J?P{HW<`Nn%tHP7j1$m5LZu zu0)9-LE-MPN`_-K=R%DS&5ZPvPYi0m36JdeoeU2QSqBF|z6$9$;9-wWV;K!|2d1&V zfC1tD#eY8fQnRlweC$Bzg50fv(8l@mNdU?C_D3+&{4i zil(`puv6j~O?LUeY#m`d4)2}7QGlbmz8}BT8_%%^CEWsS4cNMy(F`)1Wpoj8z~~TY zowzDLJoo+NaVXz?J{&(J9yE`I6(C-hU1;H47=vJ4bv0K8|MGYH@OT+rOJa0gbj)LP zW4b{oC2E-!ZC*ALa9?>EIS?Ryzm4ehU#Vv&C3{i5@Q%70gK{1@Cb`| zz9Zv4Iv^Yn$!#-bu%D$&g)-G_I6GL>=va3-y!H|!_ZPs#A}}#_10h}@QWBlSvgjzH z`!U^*)l&2jJC}adIGd|euHpV?U=b>SV5(Lkn&-1u{`B@YwxiDa`U{QmuvDUZ=t|R!(g#&W4A+OH*DlBRy8hsM*+12T z&cMA*z!Eh;q8>=p14+7o?xt*+vK8R0jR4UvA&Jf!Fe{7h+x*SR;i_ZFkJA^P8$#4?nTA-FuG;o0G@Od=LLnr;oI)k4q8)w} z+n%X}085$&L|zC)Ndclhf!;(fAa*Ze@3!5PWzI=uQ}<=nb-nS3pYb3L+X0v30hehE zaSu49P6^DrFpb+GNc|`ogC>52==svHlV(jLUK$FxLO|sB3WY11#wHL6 zHWLXpL!wcXIq)+t7ihE^MkkI2%dGB8v4iDSMLS(D z&09v-Q&F<+ewYPiM26TxBjez_5vX%Oh#hCFxo@LBL(8B{xN_df?+{F)s4mCC6gG*y zKh&`ycIosytEYTN^8Db@ysK@#zEG#X_#t0w^yHOL@p4)lu%U7Hu(w;oedA?Gq2uAU zWS|!#{L1%R=r6f{Kn$rOeDmpl*7)j3YLDN?f+!wxF8t4fR_veuWqKc{e5WB`U zOqIBKuuGLWcDlp)dGnbg)7*5ws(9~O8ol&la{c?>By!zT?vHGr|t2%zw68l=(E2fBL#owK}ZePQ7 zTiImW6iwu2f@mn8)ReA{b0K7#0tt24N@+@oCcE!qe+CO`uaAW$&y|Dn6=(3H6P;6B zpC7Bakl-0QfAZV78HqzjF1-=Yt9b35*PqI0N9@yag(|m*D%7~2oPbga-wm(F*Bw1{ zKHSz3K7A-!Rvf)tVwGKaI#N|1++Q@&XbqgU?SXQeKy-XV5OlbI1gdL_Enk;8s7VAW zEOn@V0>@nfdtIVB>r(*3=X}Hx#UdTL9OHK%E96fkTE2XTeZBp=-^D zqK)+fMxq1I1)AUUj`hK(BW<5pC?z2_(3VOQYtY0RS}}6$MUI0AY8})n0wv%k+a+0n zWKRxNClt8*#;VrgK&StOXnm#s%6QF0_bS(%?(CR&YXG?%p0SF*^?%qp`l^;#-Sm0apDTX6*p0;QcLrbk;gw*+8?;Hn9!P+M z#fA15(j$p_5nMD0<5C2aR8lI{qVP2KB4VF`Lj~EEu*}UEEAbU4J^N6sr#3oT5@|Rd zXpSB)(_;fiCtgYk?u%aT3G4yGpmjY+H>liw>Uej!r6F8*B0N;H`1x?-<$_R6a41@T zG;rW8i3am6_9tx(sN!hG!hb>Be0iVAq({?s%i=4yjyLiKx zyWGs;1%Su!2cKnT7G9tBY_7~rwV`bu90>viLjsuJf~Ft0-aa0$N8Aa-RwH&Td+!ne z%{c(B3vvYVn3>0K(=-G8-pnf?ZzU&7!uq_8JVbpRUR}6DG9ED(@wxe{el0){$s-!< z&J=_dxh5}2D;~|t7tA%nPEKOy5I+Cejk2&leRYuuYj^P51l@dcHUGE(*dFgP^~Giy zMBdD~!Bj~FQzgya$FO~fW<8T#q-@c7yc56+Z*0){JdMwXs7jK`W4u|PyFf70_{9+B z&4PeeYJ&M31Y@P33QHl#rXdsxu$a472c`KY50kvGc!`$FOTg#hwL&({w5{BH_SQ9- z=5qx0>UrQP$1L6IesBTIZxBpj%@+Dzu~~qFlEp8fNzE~UBc=l3CG#;?iP7FHbxfy!8shWbgQdT*nf^s#Te~jk~&2^wU zi#O$!a1IN>-U6D{rEmrz{Ez@84d-s;mnpl<1w|_sJ_#>wU?sDp5R^kN2O^z->#oRW z&|jufbOB`&16BtDjTUQ0QUcaRqQI1noiD$(zdzpXTpyf$@o$s3`u0%$ctdQo@wp9I zk>OLZk?OIIe7cQLK!J5CQP<*t0_zk{=>`Q9*r0gIui;R&BZ6_~;7&5!K12{%L*e zi#RNB)21$J&OL9JwNG<}!~W(ep07T8?SJFS62GnbbpI5w_p8#aX6uGh{%@cgYBdeb-tM|D;_$}~4c5JP zSp8RiKmXxae|bi5c=>~YJ(1>@lHxYdW>3T$Y=9CC9KtQJB@>DE3IZkYC#V8HO~7~6 zJ3Z1ikQq80sI=w4D+zFQc=4f-JPLBmt0+WY6x#^Bt|juY6XA zCXvJ!jXh^iRo7lmNVzq7pdm24Bh(pduJ?`DkV2vvmegW|Zh#aRP?C)!;1vP%Ob!8E zoIz7JZu6H;RK<~lNHLa(Tae=tS_@%Q6LeZ%7&iT>|jJ=*-~OU2(I`)x_0FG!N2U!@n@ z2%^15-igI;?VIQ>P^E%u34T1F{a=MM0>ApaiyR*zhIM=jTU7ZAguX?0`$it0=v3zj pR|l-#QusyVaFu7gcYE|ym+!QGX0Z0f_(_@nWp7>JC%Ec${6B_kW#Iq- diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml deleted file mode 100644 index 1ffb692dd..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.after_roundtrip.yaml +++ /dev/null @@ -1,740 +0,0 @@ -apiVersion: batch/v1beta1 -kind: JobTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -template: - metadata: - annotations: - "31": "32" - clusterName: "37" - creationTimestamp: null - deletionGracePeriodSeconds: 7323204920313990232 - finalizers: - - "36" - generateName: "25" - generation: 1905795315403748486 - labels: - "29": "30" - managedFields: - - apiVersion: "39" - manager: "38" - operation: B峅x4%a - name: "24" - namespace: "26" - ownerReferences: - - apiVersion: "33" - blockOwnerDeletion: false - controller: true - kind: "34" - name: "35" - uid: 谐颋DžSǡƏS$+½H牗洝尿 - resourceVersion: "1092536316763508004" - selfLink: "27" - uid: ^苣 - spec: - activeDeadlineSeconds: -1483125035702892746 - backoffLimit: -1822122846 - completions: -106888179 - manualSelector: true - parallelism: -856030588 - selector: - matchExpressions: - - key: rnr - operator: DoesNotExist - matchLabels: - 2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T: cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm - template: - metadata: - annotations: - "58": "59" - clusterName: "64" - creationTimestamp: null - deletionGracePeriodSeconds: -961038652544818647 - finalizers: - - "63" - generateName: "52" - generation: -1988464041375677738 - labels: - "56": "57" - managedFields: - - apiVersion: "66" - manager: "65" - operation: 聻鎥ʟ<$洅ɹ7\弌Þ帺萸 - name: "51" - namespace: "53" - ownerReferences: - - apiVersion: "60" - blockOwnerDeletion: false - controller: false - kind: "61" - name: "62" - uid: a縳讋ɮ衺勽Ƙq/Ź u衲<¿燥ǖ_è - resourceVersion: "11115488420961080514" - selfLink: "54" - uid: '@ʊʓ誒j剐''宣I拍N嚳ķȗɊ捵Tw' - spec: - activeDeadlineSeconds: -2163829973287008972 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "318" - operator: ğ儴Ůĺ}潷ʒ胵輓 - values: - - "319" - matchFields: - - key: "320" - operator: 1ØœȠƬQg鄠 - values: - - "321" - weight: -1423854443 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "314" - operator: ƁÀ*f<鴒翁杙Ŧ癃8鸖ɱJȉ罴ņ - values: - - "315" - matchFields: - - key: "316" - operator: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - values: - - "317" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "336" - topologyKey: "337" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - yk--59-63--4v.4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/Thg._o_p665O_4Gj._BXt.O-7___-Y_um-_8r--684._-_8: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "328" - topologyKey: "329" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "352" - topologyKey: "353" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "344" - topologyKey: "345" - automountServiceAccountToken: false - containers: - - args: - - "240" - command: - - "239" - env: - - name: "247" - value: "248" - valueFrom: - configMapKeyRef: - key: "254" - name: "253" - optional: true - fieldRef: - apiVersion: "249" - fieldPath: "250" - resourceFieldRef: - containerName: "251" - divisor: "117" - resource: "252" - secretKeyRef: - key: "256" - name: "255" - optional: false - envFrom: - - configMapRef: - name: "245" - optional: false - prefix: "244" - secretRef: - name: "246" - optional: true - image: "238" - imagePullPolicy: ƻ悖ȩ0Ƹ[ - lifecycle: - postStart: - exec: - command: - - "276" - httpGet: - host: "279" - httpHeaders: - - name: "280" - value: "281" - path: "277" - port: "278" - scheme: ó瓧嫭塓烀罁胾^拜Ȍzɟ踡 - tcpSocket: - host: "283" - port: "282" - preStop: - exec: - command: - - "284" - httpGet: - host: "286" - httpHeaders: - - name: "287" - value: "288" - path: "285" - port: 1255169591 - scheme: 褎weLJèux - tcpSocket: - host: "290" - port: "289" - livenessProbe: - exec: - command: - - "263" - failureThreshold: -1273036797 - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "264" - port: 1923650413 - scheme: I粛E煹ǐƲE'iþŹʣy - initialDelaySeconds: -1961863213 - periodSeconds: -1045704964 - successThreshold: 1089147958 - tcpSocket: - host: "269" - port: "268" - timeoutSeconds: -103588794 - name: "237" - ports: - - containerPort: 32378685 - hostIP: "243" - hostPort: -1872407654 - name: "242" - protocol: ş蝿ɖȃ賲鐅臬 - readinessProbe: - exec: - command: - - "270" - failureThreshold: 192146389 - httpGet: - host: "272" - httpHeaders: - - name: "273" - value: "274" - path: "271" - port: 424236719 - initialDelaySeconds: 1170649416 - periodSeconds: -1891134534 - successThreshold: -1710454086 - tcpSocket: - host: "275" - port: -648954478 - timeoutSeconds: 893619181 - resources: - limits: - ʭd鲡:贅wE@Ȗs«öʮĀ<é瞾ʀN: "197" - requests: - 軶ǃ*ʙ嫙&蒒5靇: "813" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 榌 - drop: - - 髷裎$MVȟ@7飣奺Ȋ - privileged: true - procMount: 鸫 - readOnlyRootFilesystem: true - runAsGroup: -1672896055328756812 - runAsNonRoot: false - runAsUser: 4138932295697017546 - seLinuxOptions: - level: "295" - role: "293" - type: "294" - user: "292" - windowsOptions: - gmsaCredentialSpec: "297" - gmsaCredentialSpecName: "296" - terminationMessagePath: "291" - terminationMessagePolicy: ƋZ1Ůđ眊ľǎɳ,ǿ飏騀呣ǎ - tty: true - volumeDevices: - - devicePath: "262" - name: "261" - volumeMounts: - - mountPath: "258" - mountPropagation: ǹ_Áȉ彂Ŵ廷s - name: "257" - subPath: "259" - subPathExpr: "260" - workingDir: "241" - dnsConfig: - nameservers: - - "360" - options: - - name: "362" - value: "363" - searches: - - "361" - dnsPolicy: 幟ļ腻ŬƩȿ0矀Kʝ瘴I\p[ħs - enableServiceLinks: true - hostAliases: - - hostnames: - - "358" - ip: "357" - hostNetwork: true - hostname: "312" - imagePullSecrets: - - name: "311" - initContainers: - - args: - - "179" - command: - - "178" - env: - - name: "186" - value: "187" - valueFrom: - configMapKeyRef: - key: "193" - name: "192" - optional: false - fieldRef: - apiVersion: "188" - fieldPath: "189" - resourceFieldRef: - containerName: "190" - divisor: "980" - resource: "191" - secretKeyRef: - key: "195" - name: "194" - optional: true - envFrom: - - configMapRef: - name: "184" - optional: true - prefix: "183" - secretRef: - name: "185" - optional: false - image: "177" - imagePullPolicy: 腬 - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: -33154680 - scheme: 跾|@?鷅bȻN+ņ榱* - tcpSocket: - host: "222" - port: "221" - preStop: - exec: - command: - - "223" - httpGet: - host: "226" - httpHeaders: - - name: "227" - value: "228" - path: "224" - port: "225" - scheme: 櫸eʔŊ - tcpSocket: - host: "229" - port: 731879508 - livenessProbe: - exec: - command: - - "202" - failureThreshold: -532628939 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -1365115016 - scheme: 町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅 - initialDelaySeconds: 1971383046 - periodSeconds: -1376537100 - successThreshold: 1100645882 - tcpSocket: - host: "207" - port: -1105572246 - timeoutSeconds: 1154560741 - name: "176" - ports: - - containerPort: -1629040033 - hostIP: "182" - hostPort: -958191807 - name: "181" - protocol: ʜǝ鿟ldg滠鼍ƭt - readinessProbe: - exec: - command: - - "208" - failureThreshold: 195263908 - httpGet: - host: "211" - httpHeaders: - - name: "212" - value: "213" - path: "209" - port: "210" - scheme: '%:;栍dʪīT捘ɍi' - initialDelaySeconds: -1510026905 - periodSeconds: 2025698376 - successThreshold: -1766555420 - tcpSocket: - host: "215" - port: "214" - timeoutSeconds: 437857734 - resources: - limits: - )ÙæNǚ錯ƶRquA?瞲Ť倱: "289" - requests: - ź贩j瀉: "621" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö - privileged: true - procMount: 珝Żwʮ馜ü - readOnlyRootFilesystem: true - runAsGroup: 285495246564691952 - runAsNonRoot: false - runAsUser: -7433417845068148860 - seLinuxOptions: - level: "234" - role: "232" - type: "233" - user: "231" - windowsOptions: - gmsaCredentialSpec: "236" - gmsaCredentialSpecName: "235" - stdin: true - terminationMessagePath: "230" - terminationMessagePolicy: hoĂɋ - tty: true - volumeDevices: - - devicePath: "201" - name: "200" - volumeMounts: - - mountPath: "197" - mountPropagation: ɶ - name: "196" - readOnly: true - subPath: "198" - subPathExpr: "199" - workingDir: "180" - nodeName: "302" - nodeSelector: - "298": "299" - preemptionPolicy: üMɮ6).¸赂ʓ蔋 ǵq砯á - priority: -852112760 - priorityClassName: "359" - readinessGates: - - conditionType: "" - restartPolicy: î萨zvt莭 - runtimeClassName: "364" - schedulerName: "354" - securityContext: - fsGroup: -5520854324860989043 - runAsGroup: -3442119660495017037 - runAsNonRoot: false - runAsUser: -5140536358502970101 - seLinuxOptions: - level: "306" - role: "304" - type: "305" - user: "303" - supplementalGroups: - - 4006793330334483398 - sysctls: - - name: "309" - value: "310" - windowsOptions: - gmsaCredentialSpec: "308" - gmsaCredentialSpecName: "307" - serviceAccount: "301" - serviceAccountName: "300" - shareProcessNamespace: false - subdomain: "313" - terminationGracePeriodSeconds: 3655094543914315126 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "355" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "356" - volumes: - - awsElasticBlockStore: - fsType: "76" - partition: -156457987 - readOnly: true - volumeID: "75" - azureDisk: - cachingMode: ĦE勗E濞偘1 - diskName: "139" - diskURI: "140" - fsType: "141" - kind: 議Ǹ轺@)蓳嗘 - readOnly: true - azureFile: - readOnly: true - secretName: "125" - shareName: "126" - cephfs: - monitors: - - "110" - path: "111" - secretFile: "113" - secretRef: - name: "114" - user: "112" - cinder: - fsType: "108" - secretRef: - name: "109" - volumeID: "107" - configMap: - defaultMode: 1754292691 - items: - - key: "128" - mode: -675987103 - path: "129" - name: "127" - optional: true - csi: - driver: "171" - fsType: "172" - nodePublishSecretRef: - name: "175" - readOnly: true - volumeAttributes: - "173": "174" - downwardAPI: - defaultMode: -1008038372 - items: - - fieldRef: - apiVersion: "118" - fieldPath: "119" - mode: -1965578645 - path: "117" - resourceFieldRef: - containerName: "120" - divisor: "327" - resource: "121" - emptyDir: - medium: Šĸů湙騘&啞 - sizeLimit: "577" - fc: - fsType: "123" - lun: -658258937 - targetWWNs: - - "122" - wwids: - - "124" - flexVolume: - driver: "102" - fsType: "103" - options: - "105": "106" - readOnly: true - secretRef: - name: "104" - flocker: - datasetName: "115" - datasetUUID: "116" - gcePersistentDisk: - fsType: "74" - partition: 663386308 - pdName: "73" - gitRepo: - directory: "79" - repository: "77" - revision: "78" - glusterfs: - endpoints: "92" - path: "93" - readOnly: true - hostPath: - path: "72" - type: ħ籦ö嗏ʑ>季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -660202767 diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.json b/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.json deleted file mode 100644 index 4c153b992..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.json +++ /dev/null @@ -1,1092 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39", - "fields": {"40":{"41":null}} - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "51", - "generateName": "52", - "namespace": "53", - "selfLink": "54", - "uid": "@ʊʓ誒j剐'宣I拍N嚳ķȗɊ捵Tw", - "resourceVersion": "11115488420961080514", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "56": "57" - }, - "annotations": { - "58": "59" - }, - "ownerReferences": [ - { - "apiVersion": "60", - "kind": "61", - "name": "62", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "63" - ], - "clusterName": "64", - "managedFields": [ - { - "manager": "65", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "66", - "fields": {"67":{"68":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "71", - "hostPath": { - "path": "72", - "type": "ħ籦ö嗏ʑ\u003e季Cʖ畬x" - }, - "emptyDir": { - "medium": "Šĸů湙騘\u0026啞", - "sizeLimit": "577" - }, - "gcePersistentDisk": { - "pdName": "73", - "fsType": "74", - "partition": 663386308 - }, - "awsElasticBlockStore": { - "volumeID": "75", - "fsType": "76", - "partition": -156457987, - "readOnly": true - }, - "gitRepo": { - "repository": "77", - "revision": "78", - "directory": "79" - }, - "secret": { - "secretName": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -5672822 - } - ], - "defaultMode": -861289979, - "optional": true - }, - "nfs": { - "server": "83", - "path": "84", - "readOnly": true - }, - "iscsi": { - "targetPortal": "85", - "iqn": "86", - "lun": -1636694746, - "iscsiInterface": "87", - "fsType": "88", - "portals": [ - "89" - ], - "chapAuthSession": true, - "secretRef": { - "name": "90" - }, - "initiatorName": "91" - }, - "glusterfs": { - "endpoints": "92", - "path": "93", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "94" - }, - "rbd": { - "monitors": [ - "95" - ], - "image": "96", - "fsType": "97", - "pool": "98", - "user": "99", - "keyring": "100", - "secretRef": { - "name": "101" - } - }, - "flexVolume": { - "driver": "102", - "fsType": "103", - "secretRef": { - "name": "104" - }, - "readOnly": true, - "options": { - "105": "106" - } - }, - "cinder": { - "volumeID": "107", - "fsType": "108", - "secretRef": { - "name": "109" - } - }, - "cephfs": { - "monitors": [ - "110" - ], - "path": "111", - "user": "112", - "secretFile": "113", - "secretRef": { - "name": "114" - } - }, - "flocker": { - "datasetName": "115", - "datasetUUID": "116" - }, - "downwardAPI": { - "items": [ - { - "path": "117", - "fieldRef": { - "apiVersion": "118", - "fieldPath": "119" - }, - "resourceFieldRef": { - "containerName": "120", - "resource": "121", - "divisor": "327" - }, - "mode": -1965578645 - } - ], - "defaultMode": -1008038372 - }, - "fc": { - "targetWWNs": [ - "122" - ], - "lun": -658258937, - "fsType": "123", - "wwids": [ - "124" - ] - }, - "azureFile": { - "secretName": "125", - "shareName": "126", - "readOnly": true - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": -675987103 - } - ], - "defaultMode": 1754292691, - "optional": true - }, - "vsphereVolume": { - "volumePath": "130", - "fsType": "131", - "storagePolicyName": "132", - "storagePolicyID": "133" - }, - "quobyte": { - "registry": "134", - "volume": "135", - "user": "136", - "group": "137", - "tenant": "138" - }, - "azureDisk": { - "diskName": "139", - "diskURI": "140", - "cachingMode": "ĦE勗E濞偘1", - "fsType": "141", - "readOnly": true, - "kind": "議Ǹ轺@)蓳嗘" - }, - "photonPersistentDisk": { - "pdID": "142", - "fsType": "143" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "144", - "items": [ - { - "key": "145", - "path": "146", - "mode": 679825403 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "147", - "fieldRef": { - "apiVersion": "148", - "fieldPath": "149" - }, - "resourceFieldRef": { - "containerName": "150", - "resource": "151", - "divisor": "184" - }, - "mode": -783297752 - } - ] - }, - "configMap": { - "name": "152", - "items": [ - { - "key": "153", - "path": "154", - "mode": -106644772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "155", - "expirationSeconds": 1897892355466772544, - "path": "156" - } - } - ], - "defaultMode": 345648859 - }, - "portworxVolume": { - "volumeID": "157", - "fsType": "158", - "readOnly": true - }, - "scaleIO": { - "gateway": "159", - "system": "160", - "secretRef": { - "name": "161" - }, - "protectionDomain": "162", - "storagePool": "163", - "storageMode": "164", - "volumeName": "165", - "fsType": "166", - "readOnly": true - }, - "storageos": { - "volumeName": "167", - "volumeNamespace": "168", - "fsType": "169", - "secretRef": { - "name": "170" - } - }, - "csi": { - "driver": "171", - "readOnly": true, - "fsType": "172", - "volumeAttributes": { - "173": "174" - }, - "nodePublishSecretRef": { - "name": "175" - } - } - } - ], - "initContainers": [ - { - "name": "176", - "image": "177", - "command": [ - "178" - ], - "args": [ - "179" - ], - "workingDir": "180", - "ports": [ - { - "name": "181", - "hostPort": -958191807, - "containerPort": -1629040033, - "protocol": "ʜǝ鿟ldg滠鼍ƭt", - "hostIP": "182" - } - ], - "envFrom": [ - { - "prefix": "183", - "configMapRef": { - "name": "184", - "optional": true - }, - "secretRef": { - "name": "185", - "optional": false - } - } - ], - "env": [ - { - "name": "186", - "value": "187", - "valueFrom": { - "fieldRef": { - "apiVersion": "188", - "fieldPath": "189" - }, - "resourceFieldRef": { - "containerName": "190", - "resource": "191", - "divisor": "980" - }, - "configMapKeyRef": { - "name": "192", - "key": "193", - "optional": false - }, - "secretKeyRef": { - "name": "194", - "key": "195", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ")ÙæNǚ錯ƶRquA?瞲Ť倱": "289" - }, - "requests": { - "ź贩j瀉": "621" - } - }, - "volumeMounts": [ - { - "name": "196", - "readOnly": true, - "mountPath": "197", - "subPath": "198", - "mountPropagation": "ɶ", - "subPathExpr": "199" - } - ], - "volumeDevices": [ - { - "name": "200", - "devicePath": "201" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -1365115016, - "host": "204", - "scheme": "町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -1105572246, - "host": "207" - }, - "initialDelaySeconds": 1971383046, - "timeoutSeconds": 1154560741, - "periodSeconds": -1376537100, - "successThreshold": 1100645882, - "failureThreshold": -532628939 - }, - "readinessProbe": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": "210", - "host": "211", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "212", - "value": "213" - } - ] - }, - "tcpSocket": { - "port": "214", - "host": "215" - }, - "initialDelaySeconds": -1510026905, - "timeoutSeconds": 437857734, - "periodSeconds": 2025698376, - "successThreshold": -1766555420, - "failureThreshold": 195263908 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": -33154680, - "host": "218", - "scheme": "跾|@?鷅bȻN+ņ榱*", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": "221", - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": "225", - "host": "226", - "scheme": "櫸eʔŊ", - "httpHeaders": [ - { - "name": "227", - "value": "228" - } - ] - }, - "tcpSocket": { - "port": 731879508, - "host": "229" - } - } - }, - "terminationMessagePath": "230", - "terminationMessagePolicy": "hoĂɋ", - "imagePullPolicy": "腬", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "231", - "role": "232", - "type": "233", - "level": "234" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "235", - "gmsaCredentialSpec": "236" - }, - "runAsUser": -7433417845068148860, - "runAsGroup": 285495246564691952, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "珝Żwʮ馜ü" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "237", - "image": "238", - "command": [ - "239" - ], - "args": [ - "240" - ], - "workingDir": "241", - "ports": [ - { - "name": "242", - "hostPort": -1872407654, - "containerPort": 32378685, - "protocol": "ş蝿ɖȃ賲鐅臬", - "hostIP": "243" - } - ], - "envFrom": [ - { - "prefix": "244", - "configMapRef": { - "name": "245", - "optional": false - }, - "secretRef": { - "name": "246", - "optional": true - } - } - ], - "env": [ - { - "name": "247", - "value": "248", - "valueFrom": { - "fieldRef": { - "apiVersion": "249", - "fieldPath": "250" - }, - "resourceFieldRef": { - "containerName": "251", - "resource": "252", - "divisor": "117" - }, - "configMapKeyRef": { - "name": "253", - "key": "254", - "optional": true - }, - "secretKeyRef": { - "name": "255", - "key": "256", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ʭd鲡:贅wE@Ȗs«öʮĀ\u003cé瞾ʀN": "197" - }, - "requests": { - "軶ǃ*ʙ嫙\u0026蒒5靇": "813" - } - }, - "volumeMounts": [ - { - "name": "257", - "mountPath": "258", - "subPath": "259", - "mountPropagation": "ǹ_Áȉ彂Ŵ廷s", - "subPathExpr": "260" - } - ], - "volumeDevices": [ - { - "name": "261", - "devicePath": "262" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "263" - ] - }, - "httpGet": { - "path": "264", - "port": 1923650413, - "host": "265", - "scheme": "I粛E煹ǐƲE'iþŹʣy", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - }, - "initialDelaySeconds": -1961863213, - "timeoutSeconds": -103588794, - "periodSeconds": -1045704964, - "successThreshold": 1089147958, - "failureThreshold": -1273036797 - }, - "readinessProbe": { - "exec": { - "command": [ - "270" - ] - }, - "httpGet": { - "path": "271", - "port": 424236719, - "host": "272", - "httpHeaders": [ - { - "name": "273", - "value": "274" - } - ] - }, - "tcpSocket": { - "port": -648954478, - "host": "275" - }, - "initialDelaySeconds": 1170649416, - "timeoutSeconds": 893619181, - "periodSeconds": -1891134534, - "successThreshold": -1710454086, - "failureThreshold": 192146389 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "276" - ] - }, - "httpGet": { - "path": "277", - "port": "278", - "host": "279", - "scheme": "ó瓧嫭塓烀罁胾^拜Ȍzɟ踡", - "httpHeaders": [ - { - "name": "280", - "value": "281" - } - ] - }, - "tcpSocket": { - "port": "282", - "host": "283" - } - }, - "preStop": { - "exec": { - "command": [ - "284" - ] - }, - "httpGet": { - "path": "285", - "port": 1255169591, - "host": "286", - "scheme": "褎weLJèux", - "httpHeaders": [ - { - "name": "287", - "value": "288" - } - ] - }, - "tcpSocket": { - "port": "289", - "host": "290" - } - } - }, - "terminationMessagePath": "291", - "terminationMessagePolicy": "ƋZ1Ůđ眊ľǎɳ,ǿ飏騀呣ǎ", - "imagePullPolicy": "ƻ悖ȩ0Ƹ[", - "securityContext": { - "capabilities": { - "add": [ - "榌" - ], - "drop": [ - "髷裎$MVȟ@7飣奺Ȋ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "292", - "role": "293", - "type": "294", - "level": "295" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "296", - "gmsaCredentialSpec": "297" - }, - "runAsUser": 4138932295697017546, - "runAsGroup": -1672896055328756812, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "鸫" - }, - "tty": true - } - ], - "restartPolicy": "î萨zvt莭", - "terminationGracePeriodSeconds": 3655094543914315126, - "activeDeadlineSeconds": -2163829973287008972, - "dnsPolicy": "幟ļ腻ŬƩȿ0矀Kʝ瘴I\\p[ħs", - "nodeSelector": { - "298": "299" - }, - "serviceAccountName": "300", - "serviceAccount": "301", - "automountServiceAccountToken": false, - "nodeName": "302", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "303", - "role": "304", - "type": "305", - "level": "306" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "307", - "gmsaCredentialSpec": "308" - }, - "runAsUser": -5140536358502970101, - "runAsGroup": -3442119660495017037, - "runAsNonRoot": false, - "supplementalGroups": [ - 4006793330334483398 - ], - "fsGroup": -5520854324860989043, - "sysctls": [ - { - "name": "309", - "value": "310" - } - ] - }, - "imagePullSecrets": [ - { - "name": "311" - } - ], - "hostname": "312", - "subdomain": "313", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "314", - "operator": "ƁÀ*f\u003c鴒翁杙Ŧ癃8鸖ɱJȉ罴ņ", - "values": [ - "315" - ] - } - ], - "matchFields": [ - { - "key": "316", - "operator": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "values": [ - "317" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1423854443, - "preference": { - "matchExpressions": [ - { - "key": "318", - "operator": "ğ儴Ůĺ}潷ʒ胵輓", - "values": [ - "319" - ] - } - ], - "matchFields": [ - { - "key": "320", - "operator": "1ØœȠƬQg鄠", - "values": [ - "321" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "yk--59-63--4v.4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/Thg._o_p665O_4Gj._BXt.O-7___-Y_um-_8r--684._-_8": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "328" - ], - "topologyKey": "329" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "336" - ], - "topologyKey": "337" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "344" - ], - "topologyKey": "345" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "352" - ], - "topologyKey": "353" - } - } - ] - } - }, - "schedulerName": "354", - "tolerations": [ - { - "key": "355", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "356", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "357", - "hostnames": [ - "358" - ] - } - ], - "priorityClassName": "359", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "360" - ], - "searches": [ - "361" - ], - "options": [ - { - "name": "362", - "value": "363" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "364", - "enableServiceLinks": true, - "preemptionPolicy": "üMɮ6).¸赂ʓ蔋 ǵq砯á" - } - }, - "ttlSecondsAfterFinished": -660202767 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.pb b/pseudo/k8s/api/testdata/v1.15.0/batch.v1beta1.JobTemplate.pb deleted file mode 100644 index 842682259594647720e5ecdc039ccd2b9df2115d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4997 zcmYjV33wD$w(eWu0hY`3l*{XB9c`P%7^jN5w|1U00uqs+C;=pcGnNU&KoAJofXw*5 zEQCNp0){PMLV!R>$cAKJAS2zKbovwZa|C>&?>RblceOs>)2HLih|4>-I?hLb$*J4t z-h0-2&-tr2=y?wI9`@FZ^!zpJ<`m+L%=~oB-JG&HV@2l1oEOvcGr9L?v+p7n5e`Xi zBzuvPQAADFC0$ii zkw}LA-v5+dDXFS2$ywldx?@*wS$X3d^}}fOR2FF*(le&9$lw?(W_wr$6E}k;?`;c< z!ovrG6~D_1RF3V9Up5>_=;Qbb)8WqoJtAFUr;>l$=}3-8ulIo)0Q)?1mYr-KMET@o{3Bw-kl zYyn2Hn~@anJ=VE>v6EHf<;%xUjO|@M^Px)@9*^!m9O-EYpBqhLBuPZNBbSlXB1Y0G z(M;F~HZBNvmv572rGp3~Zn-SREtfG^?w>JzN4XXK_6PVNXZ5Zfm+9yS^&A)Vij35E6{(}uaRDbr) z{~?+IMFk}q&48lA$jH`MM#XMMCEi)-(SdHOvudK#Ix!Tkx-eF^WlmtwQ(&Dq|L~>J zXvOLAL#D4KiBUy3U62Y@Dq>W*66qj8;qI|YhGR9SLyZs5jP#UG3~Ij#kL>Xs3l9ug z`vyS18c&a^#nYqeke#;BaFx4y%RVJa8%cK z>L1wdzE<#Qi9RjZtSLKJNzneTB4937Iu-PCSV@NKP3irv7 zosQLBc!Cf^bu)(MWeh!uF$|J`MR6{8ghf2hk#Qd#5DtjswwW^6&r+sBnQAtiB`j)m zth*dudx??zb6{c-m>9c(5HAoZiB4i!bQID3nC{1FDSDWlL%(XA&DAN_aQ_rogbE;- zs+EZ5`SkVwy83t9QD=Sq*~WNSD$zZ3C2>~l+B;@P4S_-;c^pabkZaK`begInstX-O zvsr2c(YQP5gDNA2>%-D37vg(efAqcPpXxy;(H$@^Q3E9EfkZu!q_gO5%9bfx0dL`< zCIQh15dA!o=&S*=vgp3e-<%w-I-DFCJr*vh!?0GyaL1fh$GPzV>%!2y2d(|x;lp)9 zi25zl5X;gf+g^o+Q_)>0ganvVs6?l7GnEivNppe73xFsoK-8zv+vsJ)?n3O{ zwwtodIjL;wzO1^gHy-pe9>ifg;Bq|RGL3;854b}8RqTLcUG}szk5*2G)MLw2h#fXX zqRV90`+u#SEMp$zrSVb}=O2n+X>a@RY?~W`rl`*M{?j^z{)AjG2^S8C4t&)BA7~mh z@gqdfmxi4*YZ~#=P{0)eBF9%KT-h`>fk?2KNU#|ilQ)6LViFKcAUZ@Q&ZB1zmc_4t z>%y^tpLn@Iqt!4vaVS`3b)S#zE4M1z>3V7I61tv>l6ChZEGQ!~#1!9fL@ z$oQb?D+%rnUnmXqgopd{NCHvC)ZK_(X&a_W++5hD${ai0;ry)mwOmkgQ2GF^x6_t1^ZQ6t8SW(Y=uw(fnzxT*!9}G@%!Z(8@T+& zWU>0Tp{qK6)e`$!+AF4rWyRkfziwZ{)tlI4+Z0XYW`bxapVXADj?*Dzn*s@S*h*srP-2x`d@fQ|AKX(k(P#~v zuO zaHt^L5|+6cV%fb=wgj~V*0_@&j0wvzBJq;?EQ4F z&fV#64DaZH3=F*#xzHb~waR*}k^OXs!MR}xw7=W1uP(4ZczmpVSypVvahM~R`#OOQ zGVCzJwjy@>_6AysTvMyv8fJybKTcBRtP3y*}T4)fL-vvE>GdJGuP&UC;3IjHeMFi^Dkn&MdA5^4GOF@WF88p zyk6O$Zh)Uz5n6uQ(;st=q@CTnIW)@zP_Cl`AO|_wJ9vle* z1w(?@fEG0Uh;{WyydH5!5nGMeXV`le0f^24uw9TNkSEMMezT?-;P(bz0eQYo;tMQ7$t&;JW`6!>8zx>w%1d%+Z!R|~!cq-TA1?j2Bv+@OVrLc{Y*ar!p|H3+1 zSd+e@$b_|9`OSiEu3EuADFD{T+f99;nFf(Jb8awIQo&S7bN4Z9AEH^$WFJ*F>O9^C z;DtBV>U^HY=R;H_N#!x#pwF2vm}&e%2=fL(z{@njd=Y}NOi+cz5Mn`YW3ZXSE<%1rY`0(m06=~>{lFJ*Hpc5Zw~5VQ?`40Mz9vWI6@D8A zo${OvJ>67IL0l%Q98y8Kn$ADL^M&SWP@Tn_@-jGwg2_UQ)rEV#h z|48)M`M{}g@v9Uo5RlBVHwA{Qp4RMW@ovgf2~L4}fek3@;1(cxAOPhj`Unh+)CR=n z*)0HId@6{50!zE_-@mW;YrG`ctxc4@4@M6RMM}<%?}_X^u8;4I4R^n>bA`kH<|&@9K7HeV zR>b0S>{bi;Q^|l3=HcBkr(0ZYU14nU2PhRhe>vN60_wifE6STe#OiTQ@_8GD8$hp^n_!i<7ZtFxSO<6i#O_#4f4I8UYPk4#tZ^{h)gEqX_jN`0k3{zrlexaW zNgx5gZNOf*1VoYmNJz40N8_1}*5TJbtwWPY;`7FyQ^%`ouP3D38r|Cv7~UG{j5XK$ zMr=qS(F{v!F+w*$3JfU8#u4y}0D2~efG$p=sp~fTODC%0$U&qSOT;b6aULy(cBUwt zJ6In$I#Dry)M=x*Q0lM|ilgTkc&tG5(>;W$v`8SmW^J>KOzp`RSAeI季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -660202767 diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.json deleted file mode 100644 index 6c6beb9c6..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.json +++ /dev/null @@ -1,1114 +0,0 @@ -{ - "kind": "CronJob", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "schedule": "24", - "startingDeadlineSeconds": -8817021678265088399, - "concurrencyPolicy": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "suspend": false, - "jobTemplate": { - "metadata": { - "name": "25", - "generateName": "26", - "namespace": "27", - "selfLink": "28", - "uid": "ɭîcP$Iņ", - "resourceVersion": "14926502199533077124", - "generation": -1382274715716350298, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -8477149434422619117, - "labels": { - "30": "31" - }, - "annotations": { - "32": "33" - }, - "ownerReferences": [ - { - "apiVersion": "34", - "kind": "35", - "name": "36", - "uid": "+½H牗洝尿彀亞螩", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "37" - ], - "clusterName": "38", - "managedFields": [ - { - "manager": "39", - "operation": "4%a鯿r", - "apiVersion": "40" - } - ] - }, - "spec": { - "parallelism": -110482268, - "completions": -54954325, - "activeDeadlineSeconds": 8559948711650432497, - "backoffLimit": -907310967, - "selector": { - "matchLabels": { - "WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U": "UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9" - }, - "matchExpressions": [ - { - "key": "GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0", - "operator": "NotIn", - "values": [ - "YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G" - ] - } - ] - }, - "manualSelector": false, - "template": { - "metadata": { - "name": "52", - "generateName": "53", - "namespace": "54", - "selfLink": "55", - "uid": "³ƞsɁ8^", - "resourceVersion": "8685765401091182865", - "generation": 2849222499405033998, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -671981934547025691, - "labels": { - "57": "58" - }, - "annotations": { - "59": "60" - }, - "ownerReferences": [ - { - "apiVersion": "61", - "kind": "62", - "name": "63", - "uid": "Ǡ/淹\\韲翁\u0026ʢ", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "64" - ], - "clusterName": "65", - "managedFields": [ - { - "manager": "66", - "operation": "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ", - "apiVersion": "67" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "72", - "hostPath": { - "path": "73", - "type": "ȸŹăȲϤĦ" - }, - "emptyDir": { - "medium": "芝M 宸@Z^嫫猤痈", - "sizeLimit": "179" - }, - "gcePersistentDisk": { - "pdName": "74", - "fsType": "75", - "partition": -2127673004 - }, - "awsElasticBlockStore": { - "volumeID": "76", - "fsType": "77", - "partition": 717712876 - }, - "gitRepo": { - "repository": "78", - "revision": "79", - "directory": "80" - }, - "secret": { - "secretName": "81", - "items": [ - { - "key": "82", - "path": "83", - "mode": 147264373 - } - ], - "defaultMode": -1249460160, - "optional": false - }, - "nfs": { - "server": "84", - "path": "85" - }, - "iscsi": { - "targetPortal": "86", - "iqn": "87", - "lun": 1029074742, - "iscsiInterface": "88", - "fsType": "89", - "portals": [ - "90" - ], - "secretRef": { - "name": "91" - }, - "initiatorName": "92" - }, - "glusterfs": { - "endpoints": "93", - "path": "94" - }, - "persistentVolumeClaim": { - "claimName": "95", - "readOnly": true - }, - "rbd": { - "monitors": [ - "96" - ], - "image": "97", - "fsType": "98", - "pool": "99", - "user": "100", - "keyring": "101", - "secretRef": { - "name": "102" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "103", - "fsType": "104", - "secretRef": { - "name": "105" - }, - "readOnly": true, - "options": { - "106": "107" - } - }, - "cinder": { - "volumeID": "108", - "fsType": "109", - "secretRef": { - "name": "110" - } - }, - "cephfs": { - "monitors": [ - "111" - ], - "path": "112", - "user": "113", - "secretFile": "114", - "secretRef": { - "name": "115" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "116", - "datasetUUID": "117" - }, - "downwardAPI": { - "items": [ - { - "path": "118", - "fieldRef": { - "apiVersion": "119", - "fieldPath": "120" - }, - "resourceFieldRef": { - "containerName": "121", - "resource": "122", - "divisor": "857" - }, - "mode": -1305215109 - } - ], - "defaultMode": 186998979 - }, - "fc": { - "targetWWNs": [ - "123" - ], - "lun": 1179332384, - "fsType": "124", - "readOnly": true, - "wwids": [ - "125" - ] - }, - "azureFile": { - "secretName": "126", - "shareName": "127" - }, - "configMap": { - "name": "128", - "items": [ - { - "key": "129", - "path": "130", - "mode": 926891073 - } - ], - "defaultMode": -1558831136, - "optional": true - }, - "vsphereVolume": { - "volumePath": "131", - "fsType": "132", - "storagePolicyName": "133", - "storagePolicyID": "134" - }, - "quobyte": { - "registry": "135", - "volume": "136", - "user": "137", - "group": "138", - "tenant": "139" - }, - "azureDisk": { - "diskName": "140", - "diskURI": "141", - "cachingMode": "ÙæNǚ錯ƶRq", - "fsType": "142", - "readOnly": true, - "kind": "?瞲Ť倱\u003cįXŋ朘瑥A徙" - }, - "photonPersistentDisk": { - "pdID": "143", - "fsType": "144" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "145", - "items": [ - { - "key": "146", - "path": "147", - "mode": -1120128337 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "148", - "fieldRef": { - "apiVersion": "149", - "fieldPath": "150" - }, - "resourceFieldRef": { - "containerName": "151", - "resource": "152", - "divisor": "580" - }, - "mode": 1669671203 - } - ] - }, - "configMap": { - "name": "153", - "items": [ - { - "key": "154", - "path": "155", - "mode": -1950133943 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "156", - "expirationSeconds": -8801560367353238479, - "path": "157" - } - } - ], - "defaultMode": -427769948 - }, - "portworxVolume": { - "volumeID": "158", - "fsType": "159" - }, - "scaleIO": { - "gateway": "160", - "system": "161", - "secretRef": { - "name": "162" - }, - "protectionDomain": "163", - "storagePool": "164", - "storageMode": "165", - "volumeName": "166", - "fsType": "167", - "readOnly": true - }, - "storageos": { - "volumeName": "168", - "volumeNamespace": "169", - "fsType": "170", - "secretRef": { - "name": "171" - } - }, - "csi": { - "driver": "172", - "readOnly": true, - "fsType": "173", - "volumeAttributes": { - "174": "175" - }, - "nodePublishSecretRef": { - "name": "176" - } - } - } - ], - "initContainers": [ - { - "name": "177", - "image": "178", - "command": [ - "179" - ], - "args": [ - "180" - ], - "workingDir": "181", - "ports": [ - { - "name": "182", - "hostPort": 1971383046, - "containerPort": 1154560741, - "protocol": "涁İ而踪鄌eÞȦY籎顒ǥ", - "hostIP": "183" - } - ], - "envFrom": [ - { - "prefix": "184", - "configMapRef": { - "name": "185", - "optional": false - }, - "secretRef": { - "name": "186", - "optional": false - } - } - ], - "env": [ - { - "name": "187", - "value": "188", - "valueFrom": { - "fieldRef": { - "apiVersion": "189", - "fieldPath": "190" - }, - "resourceFieldRef": { - "containerName": "191", - "resource": "192", - "divisor": "832" - }, - "configMapKeyRef": { - "name": "193", - "key": "194", - "optional": true - }, - "secretKeyRef": { - "name": "195", - "key": "196", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°": "465" - }, - "requests": { - "oɘ檲ɨ銦妰黖ȓ": "793" - } - }, - "volumeMounts": [ - { - "name": "197", - "mountPath": "198", - "subPath": "199", - "mountPropagation": "oĂɋ瀐\u003cɉ湨H=å睫}堇硲蕵ɢ", - "subPathExpr": "200" - } - ], - "volumeDevices": [ - { - "name": "201", - "devicePath": "202" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 290736426, - "host": "205", - "scheme": "ö", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": "208", - "host": "209" - }, - "initialDelaySeconds": 322201525, - "timeoutSeconds": -1784033404, - "periodSeconds": 66472042, - "successThreshold": 2130088978, - "failureThreshold": -1064240304 - }, - "readinessProbe": { - "exec": { - "command": [ - "210" - ] - }, - "httpGet": { - "path": "211", - "port": -566408554, - "host": "212", - "scheme": "劳\u0026¼傭Ȟ1酃=6}ɡŇƉ立", - "httpHeaders": [ - { - "name": "213", - "value": "214" - } - ] - }, - "tcpSocket": { - "port": -31530684, - "host": "215" - }, - "initialDelaySeconds": -1628697284, - "timeoutSeconds": 843845736, - "periodSeconds": 354496320, - "successThreshold": -418887496, - "failureThreshold": -522126070 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": "218", - "host": "219", - "scheme": "n芞QÄȻȊ+?ƭ峧Y栲茇竛", - "httpHeaders": [ - { - "name": "220", - "value": "221" - } - ] - }, - "tcpSocket": { - "port": -592581809, - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": 1702578303, - "host": "225", - "scheme": "NŬɨǙÄr蛏豈ɃHŠơŴĿ", - "httpHeaders": [ - { - "name": "226", - "value": "227" - } - ] - }, - "tcpSocket": { - "port": -1047607622, - "host": "228" - } - } - }, - "terminationMessagePath": "229", - "terminationMessagePolicy": "ȉ彂", - "imagePullPolicy": "ȹ嫰ƹǔw÷nI粛E煹ǐƲE", - "securityContext": { - "capabilities": { - "add": [ - "þŹʣy豎@ɀ羭," - ], - "drop": [ - "OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "230", - "role": "231", - "type": "232", - "level": "233" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "234", - "gmsaCredentialSpec": "235" - }, - "runAsUser": -739484406984751446, - "runAsGroup": 1898367611285047958, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "籘Àǒɿʒ刽ʼn" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "236", - "image": "237", - "command": [ - "238" - ], - "args": [ - "239" - ], - "workingDir": "240", - "ports": [ - { - "name": "241", - "hostPort": 622473257, - "containerPort": -966649167, - "protocol": "eLJèux榜VƋZ", - "hostIP": "242" - } - ], - "envFrom": [ - { - "prefix": "243", - "configMapRef": { - "name": "244", - "optional": true - }, - "secretRef": { - "name": "245", - "optional": true - } - } - ], - "env": [ - { - "name": "246", - "value": "247", - "valueFrom": { - "fieldRef": { - "apiVersion": "248", - "fieldPath": "249" - }, - "resourceFieldRef": { - "containerName": "250", - "resource": "251", - "divisor": "700" - }, - "configMapKeyRef": { - "name": "252", - "key": "253", - "optional": true - }, - "secretKeyRef": { - "name": "254", - "key": "255", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "騀呣ǎfǣ萭旿@掇lNdǂ\u003e": "44" - }, - "requests": { - "$MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫": "130" - } - }, - "volumeMounts": [ - { - "name": "256", - "readOnly": true, - "mountPath": "257", - "subPath": "258", - "mountPropagation": "藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0", - "subPathExpr": "259" - } - ], - "volumeDevices": [ - { - "name": "260", - "devicePath": "261" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "262" - ] - }, - "httpGet": { - "path": "263", - "port": "264", - "host": "265", - "scheme": "|懥ƖN粕擓ƖHVe熼", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": -327987957, - "host": "268" - }, - "initialDelaySeconds": -801430937, - "timeoutSeconds": 1883209805, - "periodSeconds": -236125597, - "successThreshold": 385729478, - "failureThreshold": -1285424066 - }, - "readinessProbe": { - "exec": { - "command": [ - "269" - ] - }, - "httpGet": { - "path": "270", - "port": -1273659804, - "host": "271", - "scheme": "/ɸɎ R§耶FfBls3!", - "httpHeaders": [ - { - "name": "272", - "value": "273" - } - ] - }, - "tcpSocket": { - "port": -1654678802, - "host": "274" - }, - "initialDelaySeconds": -625194347, - "timeoutSeconds": -720450949, - "periodSeconds": -630252364, - "successThreshold": 391562775, - "failureThreshold": -775511009 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "275" - ] - }, - "httpGet": { - "path": "276", - "port": -1213051101, - "host": "277", - "scheme": "埽uʎȺ眖R", - "httpHeaders": [ - { - "name": "278", - "value": "279" - } - ] - }, - "tcpSocket": { - "port": 1260448044, - "host": "280" - } - }, - "preStop": { - "exec": { - "command": [ - "281" - ] - }, - "httpGet": { - "path": "282", - "port": 1689978741, - "host": "283", - "scheme": "緕ȚÍ勅跦", - "httpHeaders": [ - { - "name": "284", - "value": "285" - } - ] - }, - "tcpSocket": { - "port": 571739592, - "host": "286" - } - } - }, - "terminationMessagePath": "287", - "terminationMessagePolicy": "ǩ", - "imagePullPolicy": "輓Ɔȓ蹣ɐǛv+8", - "securityContext": { - "capabilities": { - "add": [ - "军g\u003e郵[+扴ȨŮ+朷Ǝ膯lj" - ], - "drop": [ - "" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "288", - "role": "289", - "type": "290", - "level": "291" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "292", - "gmsaCredentialSpec": "293" - }, - "runAsUser": -5821728037462880994, - "runAsGroup": 4468469649483616089, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": false, - "procMount": "碧闳ȩr" - } - } - ], - "restartPolicy": "q埄趛屡ʁ岼昕ĬÇó藢xɮĵȑ6L*", - "terminationGracePeriodSeconds": -2321746767245155166, - "activeDeadlineSeconds": 6764431850409848860, - "dnsPolicy": "fʀļ腩墺Ò媁荭gw忊", - "nodeSelector": { - "294": "295" - }, - "serviceAccountName": "296", - "serviceAccount": "297", - "automountServiceAccountToken": true, - "nodeName": "298", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "299", - "role": "300", - "type": "301", - "level": "302" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "303", - "gmsaCredentialSpec": "304" - }, - "runAsUser": -5640668310341845616, - "runAsGroup": 3582457287488712192, - "runAsNonRoot": true, - "supplementalGroups": [ - 8340498462419356921 - ], - "fsGroup": -5353126188990290855, - "sysctls": [ - { - "name": "305", - "value": "306" - } - ] - }, - "imagePullSecrets": [ - { - "name": "307" - } - ], - "hostname": "308", - "subdomain": "309", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "310", - "operator": "aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l", - "values": [ - "311" - ] - } - ], - "matchFields": [ - { - "key": "312", - "operator": "J僳徥淳4揻-$ɽ丟×x锏", - "values": [ - "313" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -190183379, - "preference": { - "matchExpressions": [ - { - "key": "314", - "operator": "輂,ŕĪĠM蘇KŅ/»頸", - "values": [ - "315" - ] - } - ], - "matchFields": [ - { - "key": "316", - "operator": "NƗ¸gĩ", - "values": [ - "317" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "3vvm-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jd.21k-vc0260ni-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4j/nc.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g": "3M-.-p" - }, - "matchExpressions": [ - { - "key": "lJ1zET_..3dCv3j._.-_pP__up.2L_s-o779._-k-5___-Qq..s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "324" - ], - "topologyKey": "325" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 293042649, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "8-m7---k8235--8--c83-4b-9-1o8w-a-6-31o/39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..__6": "8D_X._B__-P---_H-.___._D8.TS-jJY" - }, - "matchExpressions": [ - { - "key": "4sE4", - "operator": "In", - "values": [ - "u_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_l" - ] - } - ] - }, - "namespaces": [ - "332" - ], - "topologyKey": "333" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "v8_.O_..8n.--z_-..6W.K": "sTt.-U_--6" - }, - "matchExpressions": [ - { - "key": "7-3x-3/23_P", - "operator": "NotIn", - "values": [ - "5....7..--w0_1V4.-r-8S5--_7_-Zp_._.-mi4" - ] - } - ] - }, - "namespaces": [ - "340" - ], - "topologyKey": "341" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1572758512, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "21ak-tov--xk-gr-4---rv-t-u-4----q-x3w3dn1/AmD-.0AP.-.C_--.F5_x.KNC0-.-m_u": "6.C.-e16-O_.Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-k" - }, - "matchExpressions": [ - { - "key": "4-0l-023bm-6l2e5---k5v3a---ezo/A_Xf3.V0H23", - "operator": "NotIn", - "values": [ - "2.--4Z7__i1T.miw_7a2" - ] - } - ] - }, - "namespaces": [ - "348" - ], - "topologyKey": "349" - } - } - ] - } - }, - "schedulerName": "350", - "tolerations": [ - { - "key": "351", - "operator": "ȫ喆5O2.:鑋ĻL©鈀6", - "value": "352", - "effect": "蕞纥奆0ǔ廘ɵ岳v\u0026ȝxɕūNj'6", - "tolerationSeconds": -2850654160732182959 - } - ], - "hostAliases": [ - { - "ip": "353", - "hostnames": [ - "354" - ] - } - ], - "priorityClassName": "355", - "priority": -16328498, - "dnsConfig": { - "nameservers": [ - "356" - ], - "searches": [ - "357" - ], - "options": [ - { - "name": "358", - "value": "359" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ɩŢɽǣ(^\u003cu綡Ţ搯唧aĦ3Ǩk" - } - ], - "runtimeClassName": "360", - "enableServiceLinks": false, - "preemptionPolicy": "l=ƈư呄" - } - }, - "ttlSecondsAfterFinished": 2014973362 - } - }, - "successfulJobsHistoryLimit": 1886409046, - "failedJobsHistoryLimit": -1913967820 - }, - "status": { - "active": [ - { - "kind": "361", - "namespace": "362", - "name": "363", - "uid": "瀔", - "apiVersion": "364", - "resourceVersion": "365", - "fieldPath": "366" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.after_roundtrip.pb deleted file mode 100644 index 3759a35c0deb2b5b1dcfa00c8c7ab8cea885b2ab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5207 zcmYjV33OCdnyy=@!8bM&pG#MlI)+j(6TFZ2?%Nq{*^MX&$eL+=1_($NLRK(6o|8RL zfsllRgaiU45CTbn1VR!5M3bsi6?VJz$bcv^Ew2{ab^6%SZp?pQL7%R3>VNnB_uhZI z|NZZGUz(O05J6Gi5UpzE?I@~SEjNo(JG z{gaX%Z->7?;ONedOGme#@O8UU(s;%$@~mAHR?!xLmY5n3E!k-o71x7PM$RRMwl)M$ z?KMvfo97CzpJ@rV97(W?Qq*TrEwGE48{G#}bT&qslpHxeob9wrJb3p0-FHJMrbbQ^`ZXtJuv z5-;$&AZP?qO{=wZx;RU`HyaPT>P6Ad|3rS8V$Y-iKg(WF2=4vqA8*) z*0+CZuz&D(k$t_P;iAbGS`+Mwz$2P!3Z$9>srK(MSYaRe-K1bk*|ev9&0{+Qhr$Cp zeP?`!gM(eces`MpD9EB|c5)(98N=9B!j{G`_d`QuC-?`vgPsz9uV-lFpr@UEgtr=@qlHGqmkss9_6xCo@h^b>{;xNn-7)?D+56!L2u}RgJT`Vu7syTXlSK zW$#5h}(MzGtrE&BErcA8$#R#y}qk)?|lmW&*T9 znx;BVU%mYKIG0`166~7J+osude!6Y(9gJNUR@heAbutg;=^|^_C5LVCUC@?eQPN}Z zg!#JawCkG7uImZo1fC~AglW_do=iup9;FSD1tK{urW}V77|K*AQ%${(wl&(;9X1yo zBJkOd(1!p_CXdm@KcCK?+{A5??L zJKnnS)8IJAwc$&RKSYCzTG9Q`FH)@{HCv=+i_%f_5M|4ht$>U0P!oV?1c=^?o`PP9 zhh9l=P8i)i+P=Wo6xnus?DXO+7%P!@M1J#3sHN9?&@AkE%5!{$w=%e=F;sJChIxMX z8AQF7Xn-YY#4=o_!IUAG7Z3-13KgvgR`3-9DFbgJ0U}KUBF_Y(%mbn>L?56A#B4=O zoaL`1vky?&G!ByLIBtFuxt&JrlS~5bipE@`5s{-Ym#O!%6?0kR5I1@ zW~F7eLRbyNC?b3Jcob^`QHn%~?0Vq8f)$6xb}b0?)(3a)9NU$+EG1NamhNc+1rmtr ze31Fq@wV8?rayibT|K9b^0nBI=Zm7Bt?)YjSolj(Ox$Osr*_cyn<##);`@HYpTAMj z9L=(%8pOODHAQD(j}Vn-snqK~eYih5!bz=C1=oF30|SAoxWyxf!-c2kuAP~lBTlr; zfdUKz#9QWk)%VNif46j5=BQF^ef_r|-ZJOMx}lC}Gw#&j**`^_@eSLqoI(6Pe^XVI zv8oj@i!7T|nU$$cie*zw}WZ zcUX34JUibK36)y_kx;tnfbXilICPigp(eV173#0|H;ryLE6c+D?Up#G;xJaeCC=ac zUbQ_cPDus6ntgBh?9Q=r|IYAWTcFz4oIgb?NQaI6uvy-`?zfSWzWcHfbs zw1^Q}s0b9QNm=H;((vhKv**BtBD42wu(96LHCi!xGThL*IdII==dV#-NQi3!iu?QS3q8Bc%b(`N zU-s8t`MLPUM}3Gd{J8PzTjxH$B2XnF4~1Ujm6=u>>axg71yBb792O&>0N{Y?wdk`L zrW-NIjKN6IEAVW5vbR1oT*I3^^>2g@RGVi`ObRs}US_tO4^^EA*R*>3f=4YhK+%be751hL`uy3?sbEIwu9VoJie)X(+*t9vw`}UjP-OoAog=dl3K0(2@e9TpMh4b-j!>@32F5Wr z5c3zrv>~PuiTU{%m}C{G7+fU0pk}?}r1pC=T|Sz>UUxMo(q zn99KjW8*@@$lJ(~7mOU7sj50>;4~~7hJhDlaa<02&+N>U96+mcHm}dgh4mv)_e8h^ zyp6_R{_7`|h#f&pA7XybEZ1-b^)yW*B3Q3syjl~nvea@J2Y za*cHGh9VPD6rI=YOcs;EJkC6ruNmBn5F%{@h$#S@IAuBaJj>)P$>s1;17n4Kn)w%4 z<;_@}N5+1m_H$=3^C6UAvq1_X69qOISsGN#uB)losV;Ip4G%zc(b@kT(d!#IwNB? z=J**4In2!h+qk(hTw9)BFpGyJ&oJ^>O@WI9P7xFgJ}tsaF|2Y%?hJ0ZY``LO%LJUg zltzrJrPWxf?%0stbYDg`Cb0SF(EoyI2s z0oVy$8i_5xSke{aFilVU9j=Fir;9u%!iC$y14kpJ+fqhb{Ov14JynqdwZ21imPnC^ zpizOE7DXb0Mq!xFQzRnj6o%GLG>4;#6jabxy#YVKUTXUb0TZqqXn5k#!pKvdcbt+ByR14TA8hGnTmxQRqE_ z@Oo_DyYKHtj?#UHyQ2qw+~?JoAC0f=_~`o>{=L7AmPR37QXPUFKrtFr-`VsbSf}}} z`tQDtp7)kUfw&$r-6toHoHdKP{VhVItmJ9sjlcnK#n{$RXQgEdlv$WA-9j3kksrT_ z)?4dH7UbBoO((vOn&JrWKT$g_?#-*EM^OAg&4Ga^LgL*&lvG5Ut2~H#HENc^K10n? z|AD~-$R7CE;CgsN*xj;dwA4T3cTag{tlKZE2QRd}9`31{9w-c*?|zbf^hNJMU+aZ#v#&1LR=m+HJ?rZaw>5=!o{m(MkGZGZ z0x9q<1yH;I0TBts^J3i5?O&UXS59614#gw*W@4MZtG>8pdt_Iab6#wyr*X8y6_El0Q7%Nt!YatZDgr<&3!n&^461H5l~`LVy3@baJXairD?Ds5!jle! zdeK5SF5%|$puf}HRW83sxM`7^O3%;>BS#`z3KggXGI31|*SCbu95N4;^S(NBs4>uI z_MXh2?BBaNQ19*ZRX(A_zyF7^YwsM~GjIu6*E$hyOfVI$bwFi5dZ(w^x-i{@i`s)! zBP@U@t4@kE=%r7T^-Bo-8O1UG7C7Q<4V?3}#lP}YUg-1zZ)>pnxLJ2N+0!oiI?_G| zfeQZ(vi*SWPJeoA%h(CCrc~QnbL`#d3Qq5B4!;@0Uu=D=Bt|=RvFq#TJ: "44" - requests: - $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫: "130" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 军g>郵[+扴ȨŮ+朷Ǝ膯lj - drop: - - "" - privileged: false - procMount: 碧闳ȩr - readOnlyRootFilesystem: true - runAsGroup: 4468469649483616089 - runAsNonRoot: false - runAsUser: -5821728037462880994 - seLinuxOptions: - level: "291" - role: "289" - type: "290" - user: "288" - windowsOptions: - gmsaCredentialSpec: "293" - gmsaCredentialSpecName: "292" - terminationMessagePath: "287" - terminationMessagePolicy: ǩ - volumeDevices: - - devicePath: "261" - name: "260" - volumeMounts: - - mountPath: "257" - mountPropagation: 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0 - name: "256" - readOnly: true - subPath: "258" - subPathExpr: "259" - workingDir: "240" - dnsConfig: - nameservers: - - "356" - options: - - name: "358" - value: "359" - searches: - - "357" - dnsPolicy: fʀļ腩墺Ò媁荭gw忊 - enableServiceLinks: false - hostAliases: - - hostnames: - - "354" - ip: "353" - hostNetwork: true - hostname: "308" - imagePullSecrets: - - name: "307" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: 籘Àǒɿʒ刽ʼn - readOnlyRootFilesystem: false - runAsGroup: 1898367611285047958 - runAsNonRoot: true - runAsUser: -739484406984751446 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - windowsOptions: - gmsaCredentialSpec: "235" - gmsaCredentialSpecName: "234" - stdin: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - tty: true - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "298" - nodeSelector: - "294": "295" - preemptionPolicy: l=ƈư呄 - priority: -16328498 - priorityClassName: "355" - readinessGates: - - conditionType: ɩŢɽǣ(^E{tKVEv-bNGzN32zi3p>-XhJ zU;-ft2?+@VNFW4~014zpfM{kWGlRRncIAR7;!4lM^?CPmW!05?sweEX^L=x=`qZgY z=bSoq>aR{$b1l?wsYxlxd23!vD8R`Xn_f%i>6ke=SsNE*rO=gFpUHU5}inj zcY4YrZIzzR>;=IVSF##DwDVO@N1%}nH=dL|l`D+HgQ@s_Ue;t0OPnIAf+|ZghXqZ& z`gO^N#g+StH_f&z?%vi{T7KZ2eZwf}E($3$Qd43mq|sKMON*tfJa$-l!8vJep)p+N zulRkg*EP0lQ@oYuIg5&Nth`ugRgewz1|jPxv}qzdmuR>Q1?c# zrZ_G*)Zp3rGH6rcZPX+XSLun=UGUUs3;pp_%8EtXcRN0L@8-$K`{l@C_cVJ-jEaWv z?pyNQ<0B)Dq`^Tv&SbMzS8mbE%HOQ&aVt3+O&Vy`G0>cDRLVH&MrhPrJh{5R8sZC z7nZZE%IYagHnYsyXXP~vD>IC~g=H9Sb7oRHuS2J>oOUjsoy}(I44bX$1^9&x%jWCJ zn#!*g7=>B4SmjwpqgPOmJv)!pbe$FSd>*7(Y1T?ce~Dp*^{k@fb&J+W3`gI&C@b%| zjgGk03$cd7b58Vs5dbvvb&_REC+$DQvRNJ{xDjKRYQmtcL`VlLUuV z5}j5_iobjG^jJ%7pjdqc->1r|q{x!U@tnrWFHQb3VP7DIwWl({q~WtAZjWx;9l9ZU!g4E-*0pf@y9JoRF0yjA8oL{d?PRFokV zH4v8RM}9XY*it@yhOc>Sci>2PaJTQQ?`UwSD>&dv_Z|mb<7p_5r=d*J@bqM=GKR7$ zm@bQW>It3PvaVWIWUf zAW8|6sRZ(>(k52}F6JEf0t*ub7?WusZDN1=<=vWS9Bl5l>Q}qaZ-|UwJ9w?D_YRl^ zi(nZ%q*`%KG zzkMdu((65J6!kpiIl0PP8Qj+xsyQ;txUlyuB3_Fmz@j*68ZMDwN)XJ8h=o3xsFry% z_%eo+fj0pI5vK!@W&@EI08tjB4^RW5wj(Om^jDPV2Z(MG2T`$~G`@}8P9yqBDxP#j zV=j`2NYR)}#Cyq%xukNjZ6DO_yUP*PCkduLNhA`IJNv{PD=GvxI6N<1l#wm7^_So z!g%`gM40Fi6~{9a%ml{)dDCb}I5;1nEt#QKILY+$Skx|p;t6Jx43s-js8%AaZt12=Ut@V{WO~VEhMVh0Yczods|ACoGq^-?3a@Ow( z9qtd7R*VkjMOqKAk-kn}Q>eHsGT3QW4}n{tk!fWT4=gF*s-(tG4mTVW*a9Xpax_?S z!q|Vp-)amU@SF>m4|}`Dj`>G84077iZHQWJnk{2m1vRoj-#ro8ETBpj36Y!+{7#ww@z<8biSZqBtI;{$rxWR@wB&&!em7un@j#3wgdQ{-+sU z`yY#bDUON#yzI;_@_q}&jaB?GfVc}cE1IKOmQ;hNm!qa=H0%+qa5T|+AJ5=-i*8&A5ggSI;8ufWN6K%1CKN)DqJsMWQ8QlWf}5))F}X?=~sUdyE6; z^DkEU&xZExSsFElBns5&dnpRM==z}a${nU1Dn~CgRYK+FK_!%KBJh3Hmq+e0JyZqf zuR{a%{wDWMqq00a&~B=ODh{&JxH^CHd)3ycIynvaO3uCEbGyg3`gezi+5*+S=7MQz zVFqmMhmEbx>z|I4_Wk#?;Px~A4)2L+!F>Z`RpG5CecNdZEHu-*b1O(#*D1IL|uhmwY+A@NrICaUZIu=uy=v*P9WG; z{Zsu1U%XZKaSyVi*njN3*t5sD@@a0|6@Ts3f0o?*s1I>PA2(im>-@)8c`}K>L7^8o zdA8Yxx-4*FA=Ci?k0l5w06d^tE&4o$>PA#DrBfpG@*EwP?5z)t)Nn>m{Trb})yCOV zQ$kHgR~Ri9LRF{2HLc#h;IWQKSAPZ=2WR6GWE7?!T40o(HZB|q4xAQ)yM~#^1LtoH z9&k5oiPY^Pf&!g5vAeqCNOYIc{{=M%xFY?V@VSyFz4e~so`Va+jTO&(%M(V2BL@e` z7>R~Z2ynnoTr}1&I=J3*jBph?FoC*>sJ|kr4N;9qC@9EeaCV`>fQy*pmCV;TMq<_j zR#X^5kFaq>dUi#p3J z($~{>2@4sP*+kEwgp37z;k;!!%L;4f6bNZ7Na&ju>w5ks7Qdk9GFghEu{x8^NV={w zOR`xum%e9iR%$Mw*LhnudSzVXuSaq(xiq&U>NsB?hp2z@OXZ5)%yX++X5H4C+^~%3ByA0So%#+t~gIiD*_>7`B5DHz{R4yI}z)t8=v2E+6(ykc0VR+i_a6TOD zFZP@Y7wrfS9*>mmNOiaP+gFErsv?JKeMiVBfgllHB??tFibQyoz%Y#?NQBo24AY{} z7gpRv9y|beV2Zbq2(J-Hs>yaVdlAJ_Q;gc-P(y?NQ0CZ~*F*h-y1Pj=c9lko&v`o+ zCx%K+1gl)5rwGIlWr=>6x-Tox7(Ct^=!m%5jrLQK;XVG{q*u`d0zi08A*g|en*k6l zesY$lBv2VDs(vc4Jvh{nIKzD;w7>HW<6uSTP;a=tFVKo7V2)dwM$IzM3Ai&%g?h}1 z=4p7m_I(#JPeV>}THXET5lC(jm{S}!>NZ3n_Xx~sw!U}Y-;3;J2aa|}5B%6Ks;@j6 zSKIN?4>8<(e|MKfAzo4)f*n9G8dTr8$Y(PoMVQLjeLlIdrNS<1gK7!TP4A0wO(Zw$LymblCO!+zJa zXU4jX(??ea5B7$4RD?R4O^Yx&O))=i(Yu!hjN2{|KBl8HKq8YFa5T!ds=w-tVh$`h zA6n$?3Uv7Py32CH&AY-q+XAJD-h*R@yk|Tk(HThi@olhocIWVpXjo03v6=>*T8_g% zWOSYy8}ij{b`NZPF4WsRFH}C{s~+o}S6G4I=)2c_!8>%Z?e%a^)yzOq=tB3C^rJ6& z5Bpj#b{lM zD-)pbssvMwH)Wfp72WCIZk#WP!W9m-80K&XLcM4)9G7tOdC=c!?Aa>4h}r3pno7^` z3!}#(+lpkU1QK>m4%fGY&K@z2Y~_4)#&Bbx&*(i}Fx9_*OQ7D{>8pG~j(h(PW7pp~ zyl?O_GOu+4+?Ze}TULDDWG^cNIM{b%5q zw>5Cy*B1B6Q~9C(L*CY4^+}`dXtJkW@O7kr0SaaATV(kW-JLOGY}?o=qoz#VUUTBz z=nBs4Z4SQ~!(D29t29PEbE)f_=snFb#RLyBI4;0<6d-WH4HebJLrcU!r0GCphsA06 Ee<8EzZ2$lO diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.yaml b/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.yaml deleted file mode 100644 index 1ec2885ba..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.CronJob.yaml +++ /dev/null @@ -1,768 +0,0 @@ -apiVersion: batch/v2alpha1 -kind: CronJob -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - concurrencyPolicy: ěĂ凗蓏Ŋ蛊ĉy緅縕 - failedJobsHistoryLimit: -1913967820 - jobTemplate: - metadata: - annotations: - "32": "33" - clusterName: "38" - creationTimestamp: null - deletionGracePeriodSeconds: -8477149434422619117 - finalizers: - - "37" - generateName: "26" - generation: -1382274715716350298 - labels: - "30": "31" - managedFields: - - apiVersion: "40" - fields: - "41": - "42": null - manager: "39" - operation: 4%a鯿r - name: "25" - namespace: "27" - ownerReferences: - - apiVersion: "34" - blockOwnerDeletion: true - controller: false - kind: "35" - name: "36" - uid: +½H牗洝尿彀亞螩 - resourceVersion: "14926502199533077124" - selfLink: "28" - uid: ɭîcP$Iņ - spec: - activeDeadlineSeconds: 8559948711650432497 - backoffLimit: -907310967 - completions: -54954325 - manualSelector: false - parallelism: -110482268 - selector: - matchExpressions: - - key: GE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5-0 - operator: NotIn - values: - - YM9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.G - matchLabels: - WR58_HLU..8._bQw.-dG6c-.6--_x.--0wmZk1_8._3U: UBq.m_-.q8_v2LiTF_a981d3-7-fP81.-9 - template: - metadata: - annotations: - "59": "60" - clusterName: "65" - creationTimestamp: null - deletionGracePeriodSeconds: -671981934547025691 - finalizers: - - "64" - generateName: "53" - generation: 2849222499405033998 - labels: - "57": "58" - managedFields: - - apiVersion: "67" - fields: - "68": - "69": null - manager: "66" - operation: \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - name: "52" - namespace: "54" - ownerReferences: - - apiVersion: "61" - blockOwnerDeletion: true - controller: true - kind: "62" - name: "63" - uid: Ǡ/淹\韲翁&ʢ - resourceVersion: "8685765401091182865" - selfLink: "55" - uid: ³ƞsɁ8^ - spec: - activeDeadlineSeconds: 6764431850409848860 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "314" - operator: 輂,ŕĪĠM蘇KŅ/»頸 - values: - - "315" - matchFields: - - key: "316" - operator: NƗ¸gĩ - values: - - "317" - weight: -190183379 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "310" - operator: aŕ翑0展}硐庰%皧V垾现葢ŵ橨鬶l - values: - - "311" - matchFields: - - key: "312" - operator: J僳徥淳4揻-$ɽ丟×x锏 - values: - - "313" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4sE4 - operator: In - values: - - u_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_l - matchLabels: - 8-m7---k8235--8--c83-4b-9-1o8w-a-6-31o/39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..__6: 8D_X._B__-P---_H-.___._D8.TS-jJY - namespaces: - - "332" - topologyKey: "333" - weight: 293042649 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: lJ1zET_..3dCv3j._.-_pP__up.2L_s-o779._-k-5___-Qq..s - operator: DoesNotExist - matchLabels: - ? 3vvm-2qz7-3042017mh0-5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jd.21k-vc0260ni-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4j/nc.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g - : 3M-.-p - namespaces: - - "324" - topologyKey: "325" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 4-0l-023bm-6l2e5---k5v3a---ezo/A_Xf3.V0H23 - operator: NotIn - values: - - 2.--4Z7__i1T.miw_7a2 - matchLabels: - 21ak-tov--xk-gr-4---rv-t-u-4----q-x3w3dn1/AmD-.0AP.-.C_--.F5_x.KNC0-.-m_u: 6.C.-e16-O_.Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-k - namespaces: - - "348" - topologyKey: "349" - weight: -1572758512 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 7-3x-3/23_P - operator: NotIn - values: - - 5....7..--w0_1V4.-r-8S5--_7_-Zp_._.-mi4 - matchLabels: - v8_.O_..8n.--z_-..6W.K: sTt.-U_--6 - namespaces: - - "340" - topologyKey: "341" - automountServiceAccountToken: true - containers: - - args: - - "239" - command: - - "238" - env: - - name: "246" - value: "247" - valueFrom: - configMapKeyRef: - key: "253" - name: "252" - optional: true - fieldRef: - apiVersion: "248" - fieldPath: "249" - resourceFieldRef: - containerName: "250" - divisor: "700" - resource: "251" - secretKeyRef: - key: "255" - name: "254" - optional: false - envFrom: - - configMapRef: - name: "244" - optional: true - prefix: "243" - secretRef: - name: "245" - optional: true - image: "237" - imagePullPolicy: 輓Ɔȓ蹣ɐǛv+8 - lifecycle: - postStart: - exec: - command: - - "275" - httpGet: - host: "277" - httpHeaders: - - name: "278" - value: "279" - path: "276" - port: -1213051101 - scheme: 埽uʎȺ眖R - tcpSocket: - host: "280" - port: 1260448044 - preStop: - exec: - command: - - "281" - httpGet: - host: "283" - httpHeaders: - - name: "284" - value: "285" - path: "282" - port: 1689978741 - scheme: 緕ȚÍ勅跦 - tcpSocket: - host: "286" - port: 571739592 - livenessProbe: - exec: - command: - - "262" - failureThreshold: -1285424066 - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "263" - port: "264" - scheme: '|懥ƖN粕擓ƖHVe熼' - initialDelaySeconds: -801430937 - periodSeconds: -236125597 - successThreshold: 385729478 - tcpSocket: - host: "268" - port: -327987957 - timeoutSeconds: 1883209805 - name: "236" - ports: - - containerPort: -966649167 - hostIP: "242" - hostPort: 622473257 - name: "241" - protocol: eLJèux榜VƋZ - readinessProbe: - exec: - command: - - "269" - failureThreshold: -775511009 - httpGet: - host: "271" - httpHeaders: - - name: "272" - value: "273" - path: "270" - port: -1273659804 - scheme: /ɸɎ R§耶FfBls3! - initialDelaySeconds: -625194347 - periodSeconds: -630252364 - successThreshold: 391562775 - tcpSocket: - host: "274" - port: -1654678802 - timeoutSeconds: -720450949 - resources: - limits: - 騀呣ǎfǣ萭旿@掇lNdǂ>: "44" - requests: - $MVȟ@7飣奺Ȋ礶惇¸t颟.鵫ǚ灄鸫: "130" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 军g>郵[+扴ȨŮ+朷Ǝ膯lj - drop: - - "" - privileged: false - procMount: 碧闳ȩr - readOnlyRootFilesystem: true - runAsGroup: 4468469649483616089 - runAsNonRoot: false - runAsUser: -5821728037462880994 - seLinuxOptions: - level: "291" - role: "289" - type: "290" - user: "288" - windowsOptions: - gmsaCredentialSpec: "293" - gmsaCredentialSpecName: "292" - terminationMessagePath: "287" - terminationMessagePolicy: ǩ - volumeDevices: - - devicePath: "261" - name: "260" - volumeMounts: - - mountPath: "257" - mountPropagation: 藠3.v-鿧悮坮Ȣ幟ļ腻ŬƩȿ0 - name: "256" - readOnly: true - subPath: "258" - subPathExpr: "259" - workingDir: "240" - dnsConfig: - nameservers: - - "356" - options: - - name: "358" - value: "359" - searches: - - "357" - dnsPolicy: fʀļ腩墺Ò媁荭gw忊 - enableServiceLinks: false - hostAliases: - - hostnames: - - "354" - ip: "353" - hostNetwork: true - hostname: "308" - imagePullSecrets: - - name: "307" - initContainers: - - args: - - "180" - command: - - "179" - env: - - name: "187" - value: "188" - valueFrom: - configMapKeyRef: - key: "194" - name: "193" - optional: true - fieldRef: - apiVersion: "189" - fieldPath: "190" - resourceFieldRef: - containerName: "191" - divisor: "832" - resource: "192" - secretKeyRef: - key: "196" - name: "195" - optional: true - envFrom: - - configMapRef: - name: "185" - optional: false - prefix: "184" - secretRef: - name: "186" - optional: false - image: "178" - imagePullPolicy: ȹ嫰ƹǔw÷nI粛E煹ǐƲE - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "219" - httpHeaders: - - name: "220" - value: "221" - path: "217" - port: "218" - scheme: n芞QÄȻȊ+?ƭ峧Y栲茇竛 - tcpSocket: - host: "222" - port: -592581809 - preStop: - exec: - command: - - "223" - httpGet: - host: "225" - httpHeaders: - - name: "226" - value: "227" - path: "224" - port: 1702578303 - scheme: NŬɨǙÄr蛏豈ɃHŠơŴĿ - tcpSocket: - host: "228" - port: -1047607622 - livenessProbe: - exec: - command: - - "203" - failureThreshold: -1064240304 - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 290736426 - scheme: ö - initialDelaySeconds: 322201525 - periodSeconds: 66472042 - successThreshold: 2130088978 - tcpSocket: - host: "209" - port: "208" - timeoutSeconds: -1784033404 - name: "177" - ports: - - containerPort: 1154560741 - hostIP: "183" - hostPort: 1971383046 - name: "182" - protocol: 涁İ而踪鄌eÞȦY籎顒ǥ - readinessProbe: - exec: - command: - - "210" - failureThreshold: -522126070 - httpGet: - host: "212" - httpHeaders: - - name: "213" - value: "214" - path: "211" - port: -566408554 - scheme: 劳&¼傭Ȟ1酃=6}ɡŇƉ立 - initialDelaySeconds: -1628697284 - periodSeconds: 354496320 - successThreshold: -418887496 - tcpSocket: - host: "215" - port: -31530684 - timeoutSeconds: 843845736 - resources: - limits: - 咻痗ȡmƴy綸_Ú8參遼ūPH炮掊°: "465" - requests: - oɘ檲ɨ銦妰黖ȓ: "793" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - þŹʣy豎@ɀ羭, - drop: - - OŤǢʭ嵔棂p儼Ƿ裚瓶釆Ɗ+ - privileged: false - procMount: 籘Àǒɿʒ刽ʼn - readOnlyRootFilesystem: false - runAsGroup: 1898367611285047958 - runAsNonRoot: true - runAsUser: -739484406984751446 - seLinuxOptions: - level: "233" - role: "231" - type: "232" - user: "230" - windowsOptions: - gmsaCredentialSpec: "235" - gmsaCredentialSpecName: "234" - stdin: true - terminationMessagePath: "229" - terminationMessagePolicy: ȉ彂 - tty: true - volumeDevices: - - devicePath: "202" - name: "201" - volumeMounts: - - mountPath: "198" - mountPropagation: oĂɋ瀐<ɉ湨H=å睫}堇硲蕵ɢ - name: "197" - subPath: "199" - subPathExpr: "200" - workingDir: "181" - nodeName: "298" - nodeSelector: - "294": "295" - preemptionPolicy: l=ƈư呄 - priority: -16328498 - priorityClassName: "355" - readinessGates: - - conditionType: ɩŢɽǣ(^GbFJIikMNH;zkpSL5?Ned9QexV&?#<9zg&oVtDP zy=T4moWFX5p66hH!QPsYp1)?@oI;YmF=t)6$laW>C1YjgrksuG`I%h%Y&M8kL^ve5 zk?ciElGk4zYpU|MZB2=ss7%+bQ`OJ;TPEswtFBA+S3MOzGmuGc7ga-*i6UsSF6pYG z3PdvW_x`8!YDranNzMYtlO4Nz%gP&Hs~<+Ir?N=nke)G(MFz)+LbiuxMB-*d$$RU< zqVVvcV8!q90+nO?a*`NP6dXFrWkk7%5tT}WVX4a97u#PMK2#ZNIuh#crb}Djzd$)CA zf9!PCc=?L)Q)By9%zW_5rN^Rsjz)SK!WTx97)cV4?#N{%wTO|lN_0DH)Vb*k!rkTD z$x-i+a4N(GoV%_mKh*H+XI}w)#Ne1G=Cj$V!XnX7tY_r-Nq*5ZqDUyS-2%LZ|Ro&WluvAV5u0)w6c>(s@Eu8c-2&W;~3eJx3hD!}Q1(5q4r zqso;i5hN(w-B!tPtmbT}@u8WKp7M!7?Kk0(y}lFSfgx-E0LWJ%9s4}&k!dWWiQK+v zaAg>caR2H*7k#PO*B3szFLdBn;f|(9LPw&9+qZK+XPtqQ{((SOWbjz5rEYfk@Coi; z*aSt>+)mgjaf~Lr{9m+=Fdm2Z4&W%jQC;7SU+j(N*n^U80k#Hg-OXqQnawh~06AcE z2((UIl^>q{Zt^&k?>rZd9}*9m%fbo}ugfm9U=EByu&%nAD}#UihkbawjIJdyx-K~8 zGP*I(kvfHC3?U6=Fou`{n+?J-hU7x2Q(-JS9jm?Y1R;j%W(>{C7;9OVLB@9Qsw`Y_3kZhWls0B2)kosalC>o=;!-^V?tBjymh>&o{=yQi<-S zD~YpW_r5VZY6uh($>T_Zhg^$pq0>|qQC;Xbn$1!ph{oMPA5TgaCR~=1` zjGhRW)QPZG7U51gt&R)h1JFffF;cZA};`XFP}#?SRYi zfXg%nay;M)^;fY2F6y$UrFpb+GNc|`o?PS^VATN!VqB#Fh{9=3C zhv(be5Hv+~zV~0&8T2RQf=QJ+rRu;}4e)`cK@&bg^n7WelV(jLUK$FxLO|sB3WY11 z#wHL6HWLXpL!7*u_(Gt)B92$@79o@~*V``a+%l;)i^#(G!!9C$irGcLCaDN_2AgYkM z2eGSc!&Hfz3%gXAW2ZZupEaL8Jk3q_tBUu|#nFo|CP&K$$M=t2Oum1;?{Z);)U<P1BLBP=ymfRKxklu9x49-!IqLz^kuK7OQU?x~k(>EwQhqy<&<`R{ZVB z>-IHVy_rq6P0<8yCWwaeNloeMI2%H?DUeWyt(2yeXtMiG_NTC*_WD?8@?1G6UvUOM zI^H?O_1V#y^9i1zb0@xun~^wl_~IM!yb4#}dHtD;cEmm#SEzE2P=y-zqZ3d{;k)7W z_`0J9&xPAM!lw>K%Zj6yO02TW&qk{1gL{i68m)m-wmnd86NoO}5Ck3WAA#zcV$0WM z4r&sC3QHa8A9?xhDYiqp>b==IQ?o5|yu#N~ustq|o+n+uQ5HQ@hL8;YL9K&YMW6)S zWV<9QknG8!>VyJ!?^xApG0^Eh5UsEDUmmZS=>FySXsl^ptfe@7plQ73JgrMarFTLl z?wfs`*8Y~F!hEZy!}Haj{=56jroX&T5_>8ue`qN?{q2W{+#4Qj^p9BO!-4j(*5IfR zZ7g0AYKYeLEdEW-GyZdV(7wPvde#hML4qU*DL}+jAS4Yv=UC^+eTD_^B>~QgB*<Si?##mf-<^1Y^7fCb5V~o@8LG0^|8Yj5lE&<_XSNlP+&kQDv<@3w1W|}7cwOOzUn|dy6*JS{Xrq2CxE9Rd{PRC}}W?si@_(vr3Q4o-Z zA2m!~DO{@XL`i>oJ5SP|06@MMu_b7&g0sLRunTAD`ZlsbF32kaOR}-Pg@9e~zb;R~ z*_mtez?1wUV>_1l^?0KwZdEWY*r32lL&i`r<@L%2bt`O9@(XbO`b^u|tW9zb)^}jT zn6uQ(!aTrZ_=C?9GfP~P_I$3)O|_wI9vle*1w#Uu--4zev)(=yuSeW*#8xBrDfXU4 z0Ge|ETo>f<KkKo+=6~E>oh~!ZX zc4zYZvRo7M(z3_0@_BO=znzoV2MEr8ex1y(NncrH!rE30*ucX<$-;|hQgaO82&q7@WIk?^bO^IdFERj- z-%UUC#p{jny3TE8GuV6BpQo?MQL%!zi=b1UlcA@Zs>ut>WtBrJC|A?*;}{p3t3h=Z zHs$4T4hzBF0-Dvua0Vg#kN_o3%w30P?fCy7V znlu!^^aeYFbwA)c=4)O$emu6fYpgGIYr*`7qbDu~&V-9!qF8}|WRATlFl6<#W=D(n zP@YP}6sQ-X0c9QB0wfOvp!`H1fq{|QfY>~{1ptgs1rbnSX&3(b`-;ECOOoB%1ljvQ z^w3bGM_@3BscWifC=y0^TcC5~K$|@g)SE7+V-l{FP8y|fEAc8vC)UVaY zK99o!H*M;I=G^smS^G3sIP7np;`#E^*Zw!IEb*JFYkQ{%yJJ=`V=II<{ z0bUpX+0;b=dY~wJxmk1nEpoDYZRoteZDpjoZlZdVOZ=qd&E82saprpUZ!?+@n`Y~VQvUCt8)`KT&F=2H&*SjN4vnaL zZ@2m{|9;-XvHtRm;PBE11G^&4FD1oopv|5LH`o9r8aRYoWJ@Lz?G*${;EzxRewu*q zs&{&%Z6GsrC{St3fmagX>hR)2A;()6zJH&w14)c*0KGzPf>qvLRKU(+9o&5rdtx>H z;p$ea;qqg##=&q`d$^_D*A+cD65U%&=KA_3fdu?^0ej&R5J>_cA<3SdjpsUAhhO=$ z4oxD7&l`KroUE?Bo{;jB=)Q))@U~EAthwGdVnYgvW>`{-5xN0Vh=7u8909Kgpl5Oj z=;Ab*x^9cVbfPMb90ZE71hEA#V0qy@PoDuld=UwFZ2r;bV8f;PJ&k_0t-Q^p3Vxm)h rfWIC%b&7^wWd2FUC*Gyf1p|0zbl4ujBs#zxHNM diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml deleted file mode 100644 index 6ee65b31a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.after_roundtrip.yaml +++ /dev/null @@ -1,740 +0,0 @@ -apiVersion: batch/v2alpha1 -kind: JobTemplate -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -template: - metadata: - annotations: - "31": "32" - clusterName: "37" - creationTimestamp: null - deletionGracePeriodSeconds: 7323204920313990232 - finalizers: - - "36" - generateName: "25" - generation: 1905795315403748486 - labels: - "29": "30" - managedFields: - - apiVersion: "39" - manager: "38" - operation: B峅x4%a - name: "24" - namespace: "26" - ownerReferences: - - apiVersion: "33" - blockOwnerDeletion: false - controller: true - kind: "34" - name: "35" - uid: 谐颋DžSǡƏS$+½H牗洝尿 - resourceVersion: "1092536316763508004" - selfLink: "27" - uid: ^苣 - spec: - activeDeadlineSeconds: -1483125035702892746 - backoffLimit: -1822122846 - completions: -106888179 - manualSelector: true - parallelism: -856030588 - selector: - matchExpressions: - - key: rnr - operator: DoesNotExist - matchLabels: - 2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T: cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm - template: - metadata: - annotations: - "58": "59" - clusterName: "64" - creationTimestamp: null - deletionGracePeriodSeconds: -961038652544818647 - finalizers: - - "63" - generateName: "52" - generation: -1988464041375677738 - labels: - "56": "57" - managedFields: - - apiVersion: "66" - manager: "65" - operation: 聻鎥ʟ<$洅ɹ7\弌Þ帺萸 - name: "51" - namespace: "53" - ownerReferences: - - apiVersion: "60" - blockOwnerDeletion: false - controller: false - kind: "61" - name: "62" - uid: a縳讋ɮ衺勽Ƙq/Ź u衲<¿燥ǖ_è - resourceVersion: "11115488420961080514" - selfLink: "54" - uid: '@ʊʓ誒j剐''宣I拍N嚳ķȗɊ捵Tw' - spec: - activeDeadlineSeconds: -2163829973287008972 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "318" - operator: ğ儴Ůĺ}潷ʒ胵輓 - values: - - "319" - matchFields: - - key: "320" - operator: 1ØœȠƬQg鄠 - values: - - "321" - weight: -1423854443 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "314" - operator: ƁÀ*f<鴒翁杙Ŧ癃8鸖ɱJȉ罴ņ - values: - - "315" - matchFields: - - key: "316" - operator: 6dz娝嘚庎D}埽uʎȺ眖R#yV'W - values: - - "317" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p - operator: Exists - matchLabels: - G.-_pP__up.2L_s-o779._-k-5___Q: 3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x - namespaces: - - "336" - topologyKey: "337" - weight: -751455207 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4 - operator: Exists - matchLabels: - yk--59-63--4v.4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/Thg._o_p665O_4Gj._BXt.O-7___-Y_um-_8r--684._-_8: q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24 - namespaces: - - "328" - topologyKey: "329" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9 - operator: In - values: - - Gv - matchLabels: - acp6-5-x1---4/b8a_6_.0Q46: "6" - namespaces: - - "352" - topologyKey: "353" - weight: -2081163116 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Ue_l2.._8s--Z - operator: In - values: - - A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a - matchLabels: - 5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3: 8.3_t_-l..-.DG7r-3.----._4__Xn - namespaces: - - "344" - topologyKey: "345" - automountServiceAccountToken: false - containers: - - args: - - "240" - command: - - "239" - env: - - name: "247" - value: "248" - valueFrom: - configMapKeyRef: - key: "254" - name: "253" - optional: true - fieldRef: - apiVersion: "249" - fieldPath: "250" - resourceFieldRef: - containerName: "251" - divisor: "117" - resource: "252" - secretKeyRef: - key: "256" - name: "255" - optional: false - envFrom: - - configMapRef: - name: "245" - optional: false - prefix: "244" - secretRef: - name: "246" - optional: true - image: "238" - imagePullPolicy: ƻ悖ȩ0Ƹ[ - lifecycle: - postStart: - exec: - command: - - "276" - httpGet: - host: "279" - httpHeaders: - - name: "280" - value: "281" - path: "277" - port: "278" - scheme: ó瓧嫭塓烀罁胾^拜Ȍzɟ踡 - tcpSocket: - host: "283" - port: "282" - preStop: - exec: - command: - - "284" - httpGet: - host: "286" - httpHeaders: - - name: "287" - value: "288" - path: "285" - port: 1255169591 - scheme: 褎weLJèux - tcpSocket: - host: "290" - port: "289" - livenessProbe: - exec: - command: - - "263" - failureThreshold: -1273036797 - httpGet: - host: "265" - httpHeaders: - - name: "266" - value: "267" - path: "264" - port: 1923650413 - scheme: I粛E煹ǐƲE'iþŹʣy - initialDelaySeconds: -1961863213 - periodSeconds: -1045704964 - successThreshold: 1089147958 - tcpSocket: - host: "269" - port: "268" - timeoutSeconds: -103588794 - name: "237" - ports: - - containerPort: 32378685 - hostIP: "243" - hostPort: -1872407654 - name: "242" - protocol: ş蝿ɖȃ賲鐅臬 - readinessProbe: - exec: - command: - - "270" - failureThreshold: 192146389 - httpGet: - host: "272" - httpHeaders: - - name: "273" - value: "274" - path: "271" - port: 424236719 - initialDelaySeconds: 1170649416 - periodSeconds: -1891134534 - successThreshold: -1710454086 - tcpSocket: - host: "275" - port: -648954478 - timeoutSeconds: 893619181 - resources: - limits: - ʭd鲡:贅wE@Ȗs«öʮĀ<é瞾ʀN: "197" - requests: - 軶ǃ*ʙ嫙&蒒5靇: "813" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 榌 - drop: - - 髷裎$MVȟ@7飣奺Ȋ - privileged: true - procMount: 鸫 - readOnlyRootFilesystem: true - runAsGroup: -1672896055328756812 - runAsNonRoot: false - runAsUser: 4138932295697017546 - seLinuxOptions: - level: "295" - role: "293" - type: "294" - user: "292" - windowsOptions: - gmsaCredentialSpec: "297" - gmsaCredentialSpecName: "296" - terminationMessagePath: "291" - terminationMessagePolicy: ƋZ1Ůđ眊ľǎɳ,ǿ飏騀呣ǎ - tty: true - volumeDevices: - - devicePath: "262" - name: "261" - volumeMounts: - - mountPath: "258" - mountPropagation: ǹ_Áȉ彂Ŵ廷s - name: "257" - subPath: "259" - subPathExpr: "260" - workingDir: "241" - dnsConfig: - nameservers: - - "360" - options: - - name: "362" - value: "363" - searches: - - "361" - dnsPolicy: 幟ļ腻ŬƩȿ0矀Kʝ瘴I\p[ħs - enableServiceLinks: true - hostAliases: - - hostnames: - - "358" - ip: "357" - hostNetwork: true - hostname: "312" - imagePullSecrets: - - name: "311" - initContainers: - - args: - - "179" - command: - - "178" - env: - - name: "186" - value: "187" - valueFrom: - configMapKeyRef: - key: "193" - name: "192" - optional: false - fieldRef: - apiVersion: "188" - fieldPath: "189" - resourceFieldRef: - containerName: "190" - divisor: "980" - resource: "191" - secretKeyRef: - key: "195" - name: "194" - optional: true - envFrom: - - configMapRef: - name: "184" - optional: true - prefix: "183" - secretRef: - name: "185" - optional: false - image: "177" - imagePullPolicy: 腬 - lifecycle: - postStart: - exec: - command: - - "216" - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: -33154680 - scheme: 跾|@?鷅bȻN+ņ榱* - tcpSocket: - host: "222" - port: "221" - preStop: - exec: - command: - - "223" - httpGet: - host: "226" - httpHeaders: - - name: "227" - value: "228" - path: "224" - port: "225" - scheme: 櫸eʔŊ - tcpSocket: - host: "229" - port: 731879508 - livenessProbe: - exec: - command: - - "202" - failureThreshold: -532628939 - httpGet: - host: "204" - httpHeaders: - - name: "205" - value: "206" - path: "203" - port: -1365115016 - scheme: 町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅 - initialDelaySeconds: 1971383046 - periodSeconds: -1376537100 - successThreshold: 1100645882 - tcpSocket: - host: "207" - port: -1105572246 - timeoutSeconds: 1154560741 - name: "176" - ports: - - containerPort: -1629040033 - hostIP: "182" - hostPort: -958191807 - name: "181" - protocol: ʜǝ鿟ldg滠鼍ƭt - readinessProbe: - exec: - command: - - "208" - failureThreshold: 195263908 - httpGet: - host: "211" - httpHeaders: - - name: "212" - value: "213" - path: "209" - port: "210" - scheme: '%:;栍dʪīT捘ɍi' - initialDelaySeconds: -1510026905 - periodSeconds: 2025698376 - successThreshold: -1766555420 - tcpSocket: - host: "215" - port: "214" - timeoutSeconds: 437857734 - resources: - limits: - )ÙæNǚ錯ƶRquA?瞲Ť倱: "289" - requests: - ź贩j瀉: "621" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö - privileged: true - procMount: 珝Żwʮ馜ü - readOnlyRootFilesystem: true - runAsGroup: 285495246564691952 - runAsNonRoot: false - runAsUser: -7433417845068148860 - seLinuxOptions: - level: "234" - role: "232" - type: "233" - user: "231" - windowsOptions: - gmsaCredentialSpec: "236" - gmsaCredentialSpecName: "235" - stdin: true - terminationMessagePath: "230" - terminationMessagePolicy: hoĂɋ - tty: true - volumeDevices: - - devicePath: "201" - name: "200" - volumeMounts: - - mountPath: "197" - mountPropagation: ɶ - name: "196" - readOnly: true - subPath: "198" - subPathExpr: "199" - workingDir: "180" - nodeName: "302" - nodeSelector: - "298": "299" - preemptionPolicy: üMɮ6).¸赂ʓ蔋 ǵq砯á - priority: -852112760 - priorityClassName: "359" - readinessGates: - - conditionType: "" - restartPolicy: î萨zvt莭 - runtimeClassName: "364" - schedulerName: "354" - securityContext: - fsGroup: -5520854324860989043 - runAsGroup: -3442119660495017037 - runAsNonRoot: false - runAsUser: -5140536358502970101 - seLinuxOptions: - level: "306" - role: "304" - type: "305" - user: "303" - supplementalGroups: - - 4006793330334483398 - sysctls: - - name: "309" - value: "310" - windowsOptions: - gmsaCredentialSpec: "308" - gmsaCredentialSpecName: "307" - serviceAccount: "301" - serviceAccountName: "300" - shareProcessNamespace: false - subdomain: "313" - terminationGracePeriodSeconds: 3655094543914315126 - tolerations: - - effect: 群E牬庘颮6(|ǖûǭ - key: "355" - operator: ȜŚɇA%ɀ蓧睔SJȋ灋槊 - tolerationSeconds: -288011219492438332 - value: "356" - volumes: - - awsElasticBlockStore: - fsType: "76" - partition: -156457987 - readOnly: true - volumeID: "75" - azureDisk: - cachingMode: ĦE勗E濞偘1 - diskName: "139" - diskURI: "140" - fsType: "141" - kind: 議Ǹ轺@)蓳嗘 - readOnly: true - azureFile: - readOnly: true - secretName: "125" - shareName: "126" - cephfs: - monitors: - - "110" - path: "111" - secretFile: "113" - secretRef: - name: "114" - user: "112" - cinder: - fsType: "108" - secretRef: - name: "109" - volumeID: "107" - configMap: - defaultMode: 1754292691 - items: - - key: "128" - mode: -675987103 - path: "129" - name: "127" - optional: true - csi: - driver: "171" - fsType: "172" - nodePublishSecretRef: - name: "175" - readOnly: true - volumeAttributes: - "173": "174" - downwardAPI: - defaultMode: -1008038372 - items: - - fieldRef: - apiVersion: "118" - fieldPath: "119" - mode: -1965578645 - path: "117" - resourceFieldRef: - containerName: "120" - divisor: "327" - resource: "121" - emptyDir: - medium: Šĸů湙騘&啞 - sizeLimit: "577" - fc: - fsType: "123" - lun: -658258937 - targetWWNs: - - "122" - wwids: - - "124" - flexVolume: - driver: "102" - fsType: "103" - options: - "105": "106" - readOnly: true - secretRef: - name: "104" - flocker: - datasetName: "115" - datasetUUID: "116" - gcePersistentDisk: - fsType: "74" - partition: 663386308 - pdName: "73" - gitRepo: - directory: "79" - repository: "77" - revision: "78" - glusterfs: - endpoints: "92" - path: "93" - readOnly: true - hostPath: - path: "72" - type: ħ籦ö嗏ʑ>季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -660202767 diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.json b/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.json deleted file mode 100644 index 289f3360e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.json +++ /dev/null @@ -1,1092 +0,0 @@ -{ - "kind": "JobTemplate", - "apiVersion": "batch/v2alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39", - "fields": {"40":{"41":null}} - } - ] - }, - "spec": { - "parallelism": -856030588, - "completions": -106888179, - "activeDeadlineSeconds": -1483125035702892746, - "backoffLimit": -1822122846, - "selector": { - "matchLabels": { - "2_kS91.e5K-_e63_-_3-n-_-__3u-.__P__.7U-Uo_4_-D7r__.am6-4_WE-_T": "cd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DAm" - }, - "matchExpressions": [ - { - "key": "rnr", - "operator": "DoesNotExist" - } - ] - }, - "manualSelector": true, - "template": { - "metadata": { - "name": "51", - "generateName": "52", - "namespace": "53", - "selfLink": "54", - "uid": "@ʊʓ誒j剐'宣I拍N嚳ķȗɊ捵Tw", - "resourceVersion": "11115488420961080514", - "generation": -1988464041375677738, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -961038652544818647, - "labels": { - "56": "57" - }, - "annotations": { - "58": "59" - }, - "ownerReferences": [ - { - "apiVersion": "60", - "kind": "61", - "name": "62", - "uid": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "63" - ], - "clusterName": "64", - "managedFields": [ - { - "manager": "65", - "operation": "聻鎥ʟ\u003c$洅ɹ7\\弌Þ帺萸", - "apiVersion": "66", - "fields": {"67":{"68":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "71", - "hostPath": { - "path": "72", - "type": "ħ籦ö嗏ʑ\u003e季Cʖ畬x" - }, - "emptyDir": { - "medium": "Šĸů湙騘\u0026啞", - "sizeLimit": "577" - }, - "gcePersistentDisk": { - "pdName": "73", - "fsType": "74", - "partition": 663386308 - }, - "awsElasticBlockStore": { - "volumeID": "75", - "fsType": "76", - "partition": -156457987, - "readOnly": true - }, - "gitRepo": { - "repository": "77", - "revision": "78", - "directory": "79" - }, - "secret": { - "secretName": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -5672822 - } - ], - "defaultMode": -861289979, - "optional": true - }, - "nfs": { - "server": "83", - "path": "84", - "readOnly": true - }, - "iscsi": { - "targetPortal": "85", - "iqn": "86", - "lun": -1636694746, - "iscsiInterface": "87", - "fsType": "88", - "portals": [ - "89" - ], - "chapAuthSession": true, - "secretRef": { - "name": "90" - }, - "initiatorName": "91" - }, - "glusterfs": { - "endpoints": "92", - "path": "93", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "94" - }, - "rbd": { - "monitors": [ - "95" - ], - "image": "96", - "fsType": "97", - "pool": "98", - "user": "99", - "keyring": "100", - "secretRef": { - "name": "101" - } - }, - "flexVolume": { - "driver": "102", - "fsType": "103", - "secretRef": { - "name": "104" - }, - "readOnly": true, - "options": { - "105": "106" - } - }, - "cinder": { - "volumeID": "107", - "fsType": "108", - "secretRef": { - "name": "109" - } - }, - "cephfs": { - "monitors": [ - "110" - ], - "path": "111", - "user": "112", - "secretFile": "113", - "secretRef": { - "name": "114" - } - }, - "flocker": { - "datasetName": "115", - "datasetUUID": "116" - }, - "downwardAPI": { - "items": [ - { - "path": "117", - "fieldRef": { - "apiVersion": "118", - "fieldPath": "119" - }, - "resourceFieldRef": { - "containerName": "120", - "resource": "121", - "divisor": "327" - }, - "mode": -1965578645 - } - ], - "defaultMode": -1008038372 - }, - "fc": { - "targetWWNs": [ - "122" - ], - "lun": -658258937, - "fsType": "123", - "wwids": [ - "124" - ] - }, - "azureFile": { - "secretName": "125", - "shareName": "126", - "readOnly": true - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": -675987103 - } - ], - "defaultMode": 1754292691, - "optional": true - }, - "vsphereVolume": { - "volumePath": "130", - "fsType": "131", - "storagePolicyName": "132", - "storagePolicyID": "133" - }, - "quobyte": { - "registry": "134", - "volume": "135", - "user": "136", - "group": "137", - "tenant": "138" - }, - "azureDisk": { - "diskName": "139", - "diskURI": "140", - "cachingMode": "ĦE勗E濞偘1", - "fsType": "141", - "readOnly": true, - "kind": "議Ǹ轺@)蓳嗘" - }, - "photonPersistentDisk": { - "pdID": "142", - "fsType": "143" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "144", - "items": [ - { - "key": "145", - "path": "146", - "mode": 679825403 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "147", - "fieldRef": { - "apiVersion": "148", - "fieldPath": "149" - }, - "resourceFieldRef": { - "containerName": "150", - "resource": "151", - "divisor": "184" - }, - "mode": -783297752 - } - ] - }, - "configMap": { - "name": "152", - "items": [ - { - "key": "153", - "path": "154", - "mode": -106644772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "155", - "expirationSeconds": 1897892355466772544, - "path": "156" - } - } - ], - "defaultMode": 345648859 - }, - "portworxVolume": { - "volumeID": "157", - "fsType": "158", - "readOnly": true - }, - "scaleIO": { - "gateway": "159", - "system": "160", - "secretRef": { - "name": "161" - }, - "protectionDomain": "162", - "storagePool": "163", - "storageMode": "164", - "volumeName": "165", - "fsType": "166", - "readOnly": true - }, - "storageos": { - "volumeName": "167", - "volumeNamespace": "168", - "fsType": "169", - "secretRef": { - "name": "170" - } - }, - "csi": { - "driver": "171", - "readOnly": true, - "fsType": "172", - "volumeAttributes": { - "173": "174" - }, - "nodePublishSecretRef": { - "name": "175" - } - } - } - ], - "initContainers": [ - { - "name": "176", - "image": "177", - "command": [ - "178" - ], - "args": [ - "179" - ], - "workingDir": "180", - "ports": [ - { - "name": "181", - "hostPort": -958191807, - "containerPort": -1629040033, - "protocol": "ʜǝ鿟ldg滠鼍ƭt", - "hostIP": "182" - } - ], - "envFrom": [ - { - "prefix": "183", - "configMapRef": { - "name": "184", - "optional": true - }, - "secretRef": { - "name": "185", - "optional": false - } - } - ], - "env": [ - { - "name": "186", - "value": "187", - "valueFrom": { - "fieldRef": { - "apiVersion": "188", - "fieldPath": "189" - }, - "resourceFieldRef": { - "containerName": "190", - "resource": "191", - "divisor": "980" - }, - "configMapKeyRef": { - "name": "192", - "key": "193", - "optional": false - }, - "secretKeyRef": { - "name": "194", - "key": "195", - "optional": true - } - } - } - ], - "resources": { - "limits": { - ")ÙæNǚ錯ƶRquA?瞲Ť倱": "289" - }, - "requests": { - "ź贩j瀉": "621" - } - }, - "volumeMounts": [ - { - "name": "196", - "readOnly": true, - "mountPath": "197", - "subPath": "198", - "mountPropagation": "ɶ", - "subPathExpr": "199" - } - ], - "volumeDevices": [ - { - "name": "200", - "devicePath": "201" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "202" - ] - }, - "httpGet": { - "path": "203", - "port": -1365115016, - "host": "204", - "scheme": "町恰nj揠8lj黳鈫ʕ禒Ƙá腿ħ缶.蒅", - "httpHeaders": [ - { - "name": "205", - "value": "206" - } - ] - }, - "tcpSocket": { - "port": -1105572246, - "host": "207" - }, - "initialDelaySeconds": 1971383046, - "timeoutSeconds": 1154560741, - "periodSeconds": -1376537100, - "successThreshold": 1100645882, - "failureThreshold": -532628939 - }, - "readinessProbe": { - "exec": { - "command": [ - "208" - ] - }, - "httpGet": { - "path": "209", - "port": "210", - "host": "211", - "scheme": "%:;栍dʪīT捘ɍi", - "httpHeaders": [ - { - "name": "212", - "value": "213" - } - ] - }, - "tcpSocket": { - "port": "214", - "host": "215" - }, - "initialDelaySeconds": -1510026905, - "timeoutSeconds": 437857734, - "periodSeconds": 2025698376, - "successThreshold": -1766555420, - "failureThreshold": 195263908 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": -33154680, - "host": "218", - "scheme": "跾|@?鷅bȻN+ņ榱*", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": "221", - "host": "222" - } - }, - "preStop": { - "exec": { - "command": [ - "223" - ] - }, - "httpGet": { - "path": "224", - "port": "225", - "host": "226", - "scheme": "櫸eʔŊ", - "httpHeaders": [ - { - "name": "227", - "value": "228" - } - ] - }, - "tcpSocket": { - "port": 731879508, - "host": "229" - } - } - }, - "terminationMessagePath": "230", - "terminationMessagePolicy": "hoĂɋ", - "imagePullPolicy": "腬", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "ɉ鎷卩蝾H韹寬娬ï瓼猀2:ö" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "231", - "role": "232", - "type": "233", - "level": "234" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "235", - "gmsaCredentialSpec": "236" - }, - "runAsUser": -7433417845068148860, - "runAsGroup": 285495246564691952, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "珝Żwʮ馜ü" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "237", - "image": "238", - "command": [ - "239" - ], - "args": [ - "240" - ], - "workingDir": "241", - "ports": [ - { - "name": "242", - "hostPort": -1872407654, - "containerPort": 32378685, - "protocol": "ş蝿ɖȃ賲鐅臬", - "hostIP": "243" - } - ], - "envFrom": [ - { - "prefix": "244", - "configMapRef": { - "name": "245", - "optional": false - }, - "secretRef": { - "name": "246", - "optional": true - } - } - ], - "env": [ - { - "name": "247", - "value": "248", - "valueFrom": { - "fieldRef": { - "apiVersion": "249", - "fieldPath": "250" - }, - "resourceFieldRef": { - "containerName": "251", - "resource": "252", - "divisor": "117" - }, - "configMapKeyRef": { - "name": "253", - "key": "254", - "optional": true - }, - "secretKeyRef": { - "name": "255", - "key": "256", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "ʭd鲡:贅wE@Ȗs«öʮĀ\u003cé瞾ʀN": "197" - }, - "requests": { - "軶ǃ*ʙ嫙\u0026蒒5靇": "813" - } - }, - "volumeMounts": [ - { - "name": "257", - "mountPath": "258", - "subPath": "259", - "mountPropagation": "ǹ_Áȉ彂Ŵ廷s", - "subPathExpr": "260" - } - ], - "volumeDevices": [ - { - "name": "261", - "devicePath": "262" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "263" - ] - }, - "httpGet": { - "path": "264", - "port": 1923650413, - "host": "265", - "scheme": "I粛E煹ǐƲE'iþŹʣy", - "httpHeaders": [ - { - "name": "266", - "value": "267" - } - ] - }, - "tcpSocket": { - "port": "268", - "host": "269" - }, - "initialDelaySeconds": -1961863213, - "timeoutSeconds": -103588794, - "periodSeconds": -1045704964, - "successThreshold": 1089147958, - "failureThreshold": -1273036797 - }, - "readinessProbe": { - "exec": { - "command": [ - "270" - ] - }, - "httpGet": { - "path": "271", - "port": 424236719, - "host": "272", - "httpHeaders": [ - { - "name": "273", - "value": "274" - } - ] - }, - "tcpSocket": { - "port": -648954478, - "host": "275" - }, - "initialDelaySeconds": 1170649416, - "timeoutSeconds": 893619181, - "periodSeconds": -1891134534, - "successThreshold": -1710454086, - "failureThreshold": 192146389 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "276" - ] - }, - "httpGet": { - "path": "277", - "port": "278", - "host": "279", - "scheme": "ó瓧嫭塓烀罁胾^拜Ȍzɟ踡", - "httpHeaders": [ - { - "name": "280", - "value": "281" - } - ] - }, - "tcpSocket": { - "port": "282", - "host": "283" - } - }, - "preStop": { - "exec": { - "command": [ - "284" - ] - }, - "httpGet": { - "path": "285", - "port": 1255169591, - "host": "286", - "scheme": "褎weLJèux", - "httpHeaders": [ - { - "name": "287", - "value": "288" - } - ] - }, - "tcpSocket": { - "port": "289", - "host": "290" - } - } - }, - "terminationMessagePath": "291", - "terminationMessagePolicy": "ƋZ1Ůđ眊ľǎɳ,ǿ飏騀呣ǎ", - "imagePullPolicy": "ƻ悖ȩ0Ƹ[", - "securityContext": { - "capabilities": { - "add": [ - "榌" - ], - "drop": [ - "髷裎$MVȟ@7飣奺Ȋ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "292", - "role": "293", - "type": "294", - "level": "295" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "296", - "gmsaCredentialSpec": "297" - }, - "runAsUser": 4138932295697017546, - "runAsGroup": -1672896055328756812, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "鸫" - }, - "tty": true - } - ], - "restartPolicy": "î萨zvt莭", - "terminationGracePeriodSeconds": 3655094543914315126, - "activeDeadlineSeconds": -2163829973287008972, - "dnsPolicy": "幟ļ腻ŬƩȿ0矀Kʝ瘴I\\p[ħs", - "nodeSelector": { - "298": "299" - }, - "serviceAccountName": "300", - "serviceAccount": "301", - "automountServiceAccountToken": false, - "nodeName": "302", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "303", - "role": "304", - "type": "305", - "level": "306" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "307", - "gmsaCredentialSpec": "308" - }, - "runAsUser": -5140536358502970101, - "runAsGroup": -3442119660495017037, - "runAsNonRoot": false, - "supplementalGroups": [ - 4006793330334483398 - ], - "fsGroup": -5520854324860989043, - "sysctls": [ - { - "name": "309", - "value": "310" - } - ] - }, - "imagePullSecrets": [ - { - "name": "311" - } - ], - "hostname": "312", - "subdomain": "313", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "314", - "operator": "ƁÀ*f\u003c鴒翁杙Ŧ癃8鸖ɱJȉ罴ņ", - "values": [ - "315" - ] - } - ], - "matchFields": [ - { - "key": "316", - "operator": "6dz娝嘚庎D}埽uʎȺ眖R#yV'W", - "values": [ - "317" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1423854443, - "preference": { - "matchExpressions": [ - { - "key": "318", - "operator": "ğ儴Ůĺ}潷ʒ胵輓", - "values": [ - "319" - ] - } - ], - "matchFields": [ - { - "key": "320", - "operator": "1ØœȠƬQg鄠", - "values": [ - "321" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "yk--59-63--4v.4-45e--7-5r-4-7--7-2---o--4-1-2s39--6---fv--m-8--72-bca4m54/Thg._o_p665O_4Gj._BXt.O-7___-Y_um-_8r--684._-_8": "q-.VEa-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM24" - }, - "matchExpressions": [ - { - "key": "d5-g-7-7---g88w2k4usz--mj-8o26--26-hs5-jeds4-4tz9x-4.i-l11q5--uk5mj-94-8134i5k6q6--5tu-tie4-7--gm4p-8y-99/N_g-..__._____K_g1cXfr4", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "328" - ], - "topologyKey": "329" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -751455207, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "G.-_pP__up.2L_s-o779._-k-5___Q": "3.csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.x" - }, - "matchExpressions": [ - { - "key": "2-tfh4.caTz_.g.w-o.8_WT-M.3_-1y_8D_X._B_p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "336" - ], - "topologyKey": "337" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "5m8-1x129-9d8-s7-t7--336-11k8/A._X-D---k..1Q7._l.._Q.6.I--2_9.v.--3": "8.3_t_-l..-.DG7r-3.----._4__Xn" - }, - "matchExpressions": [ - { - "key": "Ue_l2.._8s--Z", - "operator": "In", - "values": [ - "A-._d._.Um.-__k.j._g-G-7--p9.-_0R.-_-3_L_2a" - ] - } - ] - }, - "namespaces": [ - "344" - ], - "topologyKey": "345" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -2081163116, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "acp6-5-x1---4/b8a_6_.0Q46": "6" - }, - "matchExpressions": [ - { - "key": "a-L--v_Z--Zg-_4Q__-v_t_u_.__I_-_-3-3--5X1rh-K5y_AzOBW9", - "operator": "In", - "values": [ - "Gv" - ] - } - ] - }, - "namespaces": [ - "352" - ], - "topologyKey": "353" - } - } - ] - } - }, - "schedulerName": "354", - "tolerations": [ - { - "key": "355", - "operator": "ȜŚɇA%ɀ蓧睔SJȋ灋槊", - "value": "356", - "effect": "群E牬庘颮6(|ǖûǭ", - "tolerationSeconds": -288011219492438332 - } - ], - "hostAliases": [ - { - "ip": "357", - "hostnames": [ - "358" - ] - } - ], - "priorityClassName": "359", - "priority": -852112760, - "dnsConfig": { - "nameservers": [ - "360" - ], - "searches": [ - "361" - ], - "options": [ - { - "name": "362", - "value": "363" - } - ] - }, - "readinessGates": [ - { - "conditionType": "" - } - ], - "runtimeClassName": "364", - "enableServiceLinks": true, - "preemptionPolicy": "üMɮ6).¸赂ʓ蔋 ǵq砯á" - } - }, - "ttlSecondsAfterFinished": -660202767 - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.pb b/pseudo/k8s/api/testdata/v1.15.0/batch.v2alpha1.JobTemplate.pb deleted file mode 100644 index 98e3a95c2f5630b571f63bb6b3709fdae14ae7c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4998 zcmYjV33yahmahB406uNH=DAFDX=_=4#@P4q-hDe`w`>s!iV{H5*zGfc7zkU)2Bh2h zvJe6Z2@tk`2>}8jAsdi=fs9mDQmN1FvqhcO8C%<`dZpuxj<($`E_3dy*dO&J=e;`j z-m~6&&VOs8p66hH&d$h4&tJQKP9aI(l(Rlv#S3xcfgj{Uv$gLk?H-QdEzb=S{zm%i~v=9=js0!){L40w}7 zcq7?7yvc4xQoQ$A7Z1eFRE?Lf7(YF>f5ohauU&aOy7yS5ry+cCG>MTU0qKrhMpBCy zNvlM&U?JGJAlzNPL!O-uB8<4@vJkgi7Qu4=%;~$zt?0Kuzy~?2_w0I=zWsn)eKo$S z-kyQpPm%ZE*ev!}#N4>T5cy1HDK;}z$;76Fw_tdfQUT^o^J&xMwN-f4R#P_dA}trb zrf*iUY_3km=1Ok%+I5)lFgw{?QD~Y(U7BX5nmp#0<*(;Wj8~ZQqWPP-+u4NNExFun zi?(LwE!&!(ykkRNej*}!yzG|{Uj;&hG%P4Zv%z2^8&>`zWZFYF?fd|8#O-mwG z)yu*sy8ZpZV-uB;>fV*xVGF@Wk#$`rf}x5Kenph^x64~&*I)m0_s0kl(CRE=(J7`g{!WN)oq&-81xiar!PNp zZ8TbOZv3d}Ye`~M0d^OpLY0abRjx!jNKm+Ytdika&ACwHBeNnsj!gZmll44m>01iB)F$73yZ4}_1LcTqqUJ zlOa1DYrOCTA%^N^49&|JdJD`QwIB4%2X&*&4#@s z3L1UaT@J53#mN0RFhv2FqUZ)fyg;NRIw;D5qlm5->3UHuMUSv^=vR%ixjN+k6Jf3_!WnZ~9T&$3tSdwF9p%PWW4!-c)%6vuVM#W)MZag^JwK{NIkYZ zh1g+JBsxuYz5kcm$uj0aUK%e&asGSpOYLnRUTAYe&=l4A-hWzW(I1fu2I0T~(SffT z-~&yACVYhG{?bGz&6-BMG!$@zfXML~3RgCbO&}61CK4=$#^g;PvXBHsBoG}U6X%KZ zN6O+yz;)&1z)!tgpwVg=oj4jSv$`+G4wPFJ?R360cPX7uMajDRQ5KXD8Da~KkAwY2 zpzZ-7cAQ1cJ%joTErl}S$ayEfLokV=x*Q8q*d+G;P{+F1<f-rmrNpH+-cu&=Vf+&m##$6;k&ic9m_IDsgjRl`3=Wbcge^<}*j8x#@aU z@!qv0dikZ~X!+pyfw9ZU4{q>X4Ge~wcG6=@R2A%3X|1|tI+ih&Y(_g`pNlJ0xrJ1r#{K97lv4O^cs;)E=%MrBwvO=WL(#J0=#>(y?CNuos`}u* zqKQUp;IwTIl-mTNi#G*9hx13Ex~ACjb(w>jM4-Y_hx$ieetU}Tkgj@fwa(UT&m6Dt zwG`}#%cA>9*Kd|Z_mm-I0}*p?9UG369u2k%V*}3?Ww21KBF+1_J7aDAR#VNaC!Yy6 z&eLK|P2qDx!Adv_OXRh z5@G{wsWh<$O{}36BgY=(IDnwmL9HTC0&cNgk`+kyFX zubJrn#rSBfX@9JxIDD{ayygO}OGKq-LM857eVx{UmZHLZtER*A^&kJc`>Uouy-yN* zDl30zDLeD+hlt!49&GfFSmnck_OaIBs1R)|UK(nM*7Yp;P0q9a^Lfy|z&^Uy3}Zop zBnT-$#8e<84L$Ez@5p_Y1@9#R_KGCPZXk*mi0Z65@#>#DJ0{*5KrV-8tm3czAGVIZ zswGx8eb)7-iXSd^Bcc19!PmZjCD`x=ZIZAC5+I4f0{b1(BMEvD95hK3OA$~~NvTwe z!qeD`hPGEx!JIt`Hh~2q!BgTq>RS9Fcke9KnWMZsgB^S%^fIosU-U@?Q#3WBLFjj%_ zLLtVRu@2(|XRJ+^H!Jd-mFu&3bE}!7s>)NQyf~XT7o_F$Phrh8P5f)KU^6!LTv)El z03=PF`^7fQKa-q}&8#iFj@R-FCG#;5kcJ;KOkOEmrtm~bU%i7T=}!V+--p-|v`)cU zU=rAcvvhqs*(ev}6@ew$Sl>#(F8E)cr{L_&b$Q@Pevz>Q%lrnsNffs!7#D0*V5T8s zD46mFWuv+cmMHlJIDbQ??QGU&IS1=Iv0=-24^4<{^mWF%4E{^88b|Cg!E59?#0>%~kvkPGTP-IRAz9 zGQT!`WswPUx8tq6ZmwR5pX34Si#ttyk(maOH*;<>RZ_uJNptrxY#*Xo&tw-Wn{_Pi z0Pup1bvn+|a6Uv;l2j~;8}&K!c{2?!f-rC7d2zYMo0}jQ%XyVw0zoznzL1B>+`T#| z%{MU&Vt&zLEf-6`$8gP%O*3r^H;?_vs!Veefwg)bc*-$Lwzwaj598~2lV7!&-ZM7x zuu-z`Vw%((12{q|5GpV>85J(!g5*VkP6Dxbo>Oyh2|PiorO(#Iqbtiu(yC_bqVZ22tOo1NfUF|{;W#cDe`?|*ZQnwY% ze>8gXa^P&Z_!7km1SE6pErB7cr!_lTyqEG+BBnsS5Dh5n;1(cxAOPhj`Ut!jsSSwD zvs(bb_*4)91(tTEo^1a=Y=-3jh(+$)^5EeeCl%EO67NE@;l(Z@pX=wIz*L@y`KXzzD-Ft`CfA#nC9*y;vX9S0rJsj8_X}**cw}Cc$ zBHUyHlxW}(Zm}(yNVHcFD1kph75M1_zN_Bpk+y-%(BVL(EeEb7z}4a6Lm|go7r%d> zu>(nrYyiDNZh}?bUR1!&W*yx96MJJd{o(3XtKsV7vBtr0S9`dn-PaX8G!orcOy>If zCV>R}wgGG55D-ZMAR)<~U5)2ET8Cfxv<^)oiO(B*&Yr5Sy^)aelj#12!0`4^XRNv2 zH)2ByiDp<*ixIjBQiy<(Y#aes1kf}23h3etn!0|gzjUH1jvNGvu>`RNIWD6m(9RTv za|i1KCnhT9&z>l@4xNuS9A1$UtcsRYMb1~!gQ|M(ie5dN9NpU<9;%C-=~NScKYr9V zJl>J$|L)bJ&7WK<{ubG{C5c{;Bt^eQ54I6Rdyc#li=Wyz(OsZQ1=SM#m_Yl#3VQ^8 z6?zvrK0*xZ_ym@y^5+PBgYNc?JUP*+KEz)euzE}37mmYKp7Gvo(NkT%)B2gg+Lz)x PW!@LPb%7t@s@L)VCU季Cʖ畬x - iscsi: - chapAuthSession: true - fsType: "88" - initiatorName: "91" - iqn: "86" - iscsiInterface: "87" - lun: -1636694746 - portals: - - "89" - secretRef: - name: "90" - targetPortal: "85" - name: "71" - nfs: - path: "84" - readOnly: true - server: "83" - persistentVolumeClaim: - claimName: "94" - photonPersistentDisk: - fsType: "143" - pdID: "142" - portworxVolume: - fsType: "158" - readOnly: true - volumeID: "157" - projected: - defaultMode: 345648859 - sources: - - configMap: - items: - - key: "153" - mode: -106644772 - path: "154" - name: "152" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "148" - fieldPath: "149" - mode: -783297752 - path: "147" - resourceFieldRef: - containerName: "150" - divisor: "184" - resource: "151" - secret: - items: - - key: "145" - mode: 679825403 - path: "146" - name: "144" - optional: true - serviceAccountToken: - audience: "155" - expirationSeconds: 1897892355466772544 - path: "156" - quobyte: - group: "137" - registry: "134" - tenant: "138" - user: "136" - volume: "135" - rbd: - fsType: "97" - image: "96" - keyring: "100" - monitors: - - "95" - pool: "98" - secretRef: - name: "101" - user: "99" - scaleIO: - fsType: "166" - gateway: "159" - protectionDomain: "162" - readOnly: true - secretRef: - name: "161" - storageMode: "164" - storagePool: "163" - system: "160" - volumeName: "165" - secret: - defaultMode: -861289979 - items: - - key: "81" - mode: -5672822 - path: "82" - optional: true - secretName: "80" - storageos: - fsType: "169" - secretRef: - name: "170" - volumeName: "167" - volumeNamespace: "168" - vsphereVolume: - fsType: "131" - storagePolicyID: "133" - storagePolicyName: "132" - volumePath: "130" - ttlSecondsAfterFinished: -660202767 diff --git a/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json deleted file mode 100644 index fe419f327..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "CertificateSigningRequest", - "apiVersion": "certificates.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "request": "cQ==", - "usages": [ - "Ƣ6/ʕVŚ(ĿȊ甞" - ], - "username": "24", - "uid": "25", - "groups": [ - "26" - ], - "extra": { - "27": [ - "28" -] - } - }, - "status": { - "conditions": [ - { - "type": "憍峕?狱³-Ǐ忄*", - "reason": "29", - "message": "30", - "lastUpdateTime": "2050-07-09T05:54:12Z" - } - ], - "certificate": "WQ==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.after_roundtrip.pb deleted file mode 100644 index 20ee5faab47971b8827ec1c7cb04fce4a7a34710..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 366 zcmd0{C}!ZY;F3;GEh@=O%S=uzNiEjPwkX!i%-1h7OiC?DG!&9_Mo0!{rsrkmr3a-J zmZlb$2(4t|I>E@rXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$Z zZ+4_R?CFvnsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$b zb9OUEv2ih)3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA z3>J(^OopaijJiOjWdq|&n7l%Jli?_ zNLwt>G;<>cAw4d}LLnw26DcMmQza%NGcCbmi_G*-O$|FbOXJA?6J5`z%roNRVlpxp zVgZsCQaW7fT*A-VdY^8dYX7`@AZcYIPA;w54 H1|Fzy1~fBXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$Z zZ+4_R?CFvnsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$b zb9OUEv2ih)3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA z3>J(^OopaijJ80fWdq|&n7l%Jli?_ zNLwt>G;=KhE9M`vjq z*?*$z`ILD^TwF{>=0Yq$(n3myOPx#jSzGVZ%~S24cW*qjS@(GV)BP=4Kr<|*n2ZgS VI5=8fp5M(Wz#zmJDaD|~006NBg8cvh diff --git a/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml b/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml deleted file mode 100644 index bf2120b05..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/certificates.k8s.io.v1beta1.CertificateSigningRequest.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: certificates.k8s.io/v1beta1 -kind: CertificateSigningRequest -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - extra: - "27": - - "28" - groups: - - "26" - request: cQ== - uid: "25" - usages: - - Ƣ6/ʕVŚ(ĿȊ甞 - username: "24" -status: - certificate: WQ== - conditions: - - lastUpdateTime: "2050-07-09T05:54:12Z" - message: "30" - reason: "29" - type: 憍峕?狱³-Ǐ忄* diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.json deleted file mode 100644 index 33d680aad..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.pb deleted file mode 100644 index 99e7ce245508f9a31a0116e5ce9ea73e1683b2b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 275 zcmV+u0qp*3ICB6B9|{&@Z*OvBX>MV3X>V>WYdCW*X>TufF%kt#Wnpt=66XO5$N>rg zG7 z5&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlL zHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5``93IZ}T5b=!N Z(D?uV|Nj9f*7%;A`Tzg_{{b2RA^^NOY0>}y diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml deleted file mode 100644 index 6e1bd448e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.after_roundtrip.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: coordination.k8s.io/v1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - holderIdentity: "24" - leaseDurationSeconds: -1978186127 - leaseTransitions: -1821918122 diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.json b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.json deleted file mode 100644 index ede080bcf..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.pb b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.pb deleted file mode 100644 index c20a8de2df9d913e57bf820da9c3b8444749bea6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 291 zcmd0{C}!Z2=MqcK&o4^J%u6iE%+J%ywkX!i%-1h76k_#BO)O3o`p(F8gOQ8TNQlu` ziqS-g(Ns(6NbAeR-A7gzdOe%hm1yx|VQ<2b6(?uty_m7y>_~Um(}HH&<6<-yVzfwN=VG)J zVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7 zgcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+O>ES7wsZQCwpgHP=2`+=d_d(ELL6Ld lK-yA>K}d>=$;d?DW6#|SKmG#&qsFx#^Jf19Go=`m7yzH1Ye@hA diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.yaml b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.yaml deleted file mode 100644 index 5d97f9c4e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1.Lease.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: coordination.k8s.io/v1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - holderIdentity: "24" - leaseDurationSeconds: -1978186127 - leaseTransitions: -1821918122 diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json deleted file mode 100644 index e7c63c313..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.pb deleted file mode 100644 index e3925c6fd3677642089a3bd56ea90dd434e8fa65..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 280 zcmV+z0q6c}ICB6BBnlg2Z*OvBX>MV3X>V>WYdCW*X>TufF=AzOVKEW~Ol4tnWfJEB z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc8VUk3 eG!XHO-O%{||Ns91DAxF%oB99$|Nj9R03rajwri;X diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml deleted file mode 100644 index edef70b95..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.after_roundtrip.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: coordination.k8s.io/v1beta1 -kind: Lease -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - holderIdentity: "24" - leaseDurationSeconds: -1978186127 - leaseTransitions: -1821918122 diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.json b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.json deleted file mode 100644 index 83e40d9eb..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "Lease", - "apiVersion": "coordination.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "holderIdentity": "24", - "leaseDurationSeconds": -1978186127, - "leaseTransitions": -1821918122 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.pb b/pseudo/k8s/api/testdata/v1.15.0/coordination.k8s.io.v1beta1.Lease.pb deleted file mode 100644 index 8a4b79b01468ff71ea79a8ddf67775f1cce182e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 296 zcmd0{C}!YN;gU|y&o4^J%u6iE%+J%ywkX!i%-1h7OiC?DG!$a>Nlh$H75dJ|b%T+M z(MX8VSc=g^iP2O`=}7C##ob3%7kWLL*Oh4TVqtH>krgLr=)IV+-t0(s*wZCDQjJ6m z%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV==ImySV&h^o7h<$X zV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK7%Uizm<&y-m<&z3 z7;S+{&4d(RPUw0%rR(M5nMdd8hCZFMMd`Zf6qm0Sd?g3IQ?_0W%r_G$H{tDk8*%>7$Fp zt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch z?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1) z<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5 zw8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5+w=(GBgqbGBp|kGBzR$#+S#q#-cVa%9U0s S0x~x;0x~!{0x~%o03rYzu3RGk diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.after_roundtrip.yaml deleted file mode 100644 index ea3377121..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.after_roundtrip.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -kind: Binding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -target: - apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: ƗǸƢ6/ʕV diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.json deleted file mode 100644 index 8c1cc88cd..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "kind": "Binding", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "target": { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "ƗǸƢ6/ʕV", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Binding.pb deleted file mode 100644 index 88afd711e796f5b68ca049432aa15e65e620f108..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 284 zcmV+%0ptE_ICB6B4GIEwF%kztX>Md`Zf6pL0t(mx3IQ?_0W%r_G$H{tDk8*%>7$Fp zt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch z?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1) z<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u)qnX8?Emh^5 zw8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k3I+-SF*yc;b#oGs0t(0h3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*57t9rg;U3&#*b4ZE5f}<=ZTl*w4LR!zZwEEG$H~rH5vdS E0E2jX-v9sr diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.after_roundtrip.yaml deleted file mode 100644 index 070217131..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.after_roundtrip.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -conditions: -- error: "25" - message: "24" - status: 谐颋DžSǡƏS$+½H牗洝尿 - type: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -kind: ComponentStatus -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.json deleted file mode 100644 index 5c20e5626..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "kind": "ComponentStatus", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "conditions": [ - { - "type": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "status": "谐颋DžSǡƏS$+½H牗洝尿", - "message": "24", - "error": "25" - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.pb deleted file mode 100644 index 26753fa30a7d2bc14d5dd38810bed20f1335e4a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 322 zcmV-I0loffICB6B6$%1&F%l0$Z*6dIZe?zCQ*>c;b#oG+0t(mx3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k3I+-SF*y7t9rg;U3&#*b4ZE5f}<=ZTl* Uw4LR!zZwEEG$H~rH5vdS0BHPtRsaA1 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.yaml deleted file mode 100644 index d35ffad37..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ComponentStatus.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -conditions: -- error: "25" - message: "24" - status: 谐颋DžSǡƏS$+½H牗洝尿 - type: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -kind: ComponentStatus -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.json deleted file mode 100644 index 2365e0fd2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "kind": "ConfigMap", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": { - "24": "25" - }, - "binaryData": { - "26": "/Q==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.pb deleted file mode 100644 index 30562744f16fd35d208703ee523a06b6de3c643e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 250 zcmVrgG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_?3IZ}T5&|+c8V3pjGBy$c{Tcuw0FpIT AYXATM diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.yaml deleted file mode 100644 index bf86316a9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.after_roundtrip.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: v1 -binaryData: - "26": /Q== -data: - "24": "25" -kind: ConfigMap -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.json deleted file mode 100644 index 0f77e133c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "kind": "ConfigMap", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "data": { - "24": "25" - }, - "binaryData": { - "26": "/Q==" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.pb deleted file mode 100644 index 540d106e39a0b611c320081afd4a42de2282298a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 266 zcmd0{C}!Z|=VB@|6ykKw&r8cp_f0GiddJ9hgOQ8TNQlu`iqS-g(Ns(6NbAeR-A7gz zdOe%hm1yx|VQ<2b6(?uty_m7y>_~Um(}HH&<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qs zsd~D5%8B;s;-g*1`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB= zKAp4W@b*OglT&J+O>ES7wsZQCwpgHP=2`+=d_d(ELL6LdK-yA>0mx!9G7(}jGL>Qn Ovdn}S|4K0^F#rGtTUO!# diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.yaml deleted file mode 100644 index d4a8edf50..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ConfigMap.yaml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: v1 -binaryData: - "26": /Q== -data: - "24": "25" -kind: ConfigMap -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.json deleted file mode 100644 index edc827955..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "kind": "CreateOptions", - "apiVersion": "v1", - "dryRun": [ - "2" - ], - "fieldManager": "3" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.pb deleted file mode 100644 index b423ea24b3f5deabe89f9b892699cb08d24ce1cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi=3*){6ykL*N=+(^b diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.yaml deleted file mode 100644 index b115dc761..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.CreateOptions.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -dryRun: -- "2" -fieldManager: "3" -kind: CreateOptions diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.json deleted file mode 100644 index 6d2b57c90..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "kind": "DeleteOptions", - "apiVersion": "v1", - "gracePeriodSeconds": 4518808233936994290, - "preconditions": { - "uid": "ȕHH壬%龺ǟ橸章蒪ʤǎ\u003e渽蝧抰", - "resourceVersion": "2" - }, - "orphanDependents": false, - "propagationPolicy": "ZȢXQ", - "dryRun": [ - "3" - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.pb deleted file mode 100644 index d29af40a14b625e6d624bd3c99d90d5d70611a0c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 96 zcmV-m0H6PBICB6B6AA)$F%k_#Wo%`1WlwN)X>V?G5At$hpXRB!=c}OTlB&w2$BsVcxV`9|r{;>V5&<$803roi$f8(LDgiSZ03ray CN-9AB diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.yaml deleted file mode 100644 index 842585490..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.DeleteOptions.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -dryRun: -- "3" -gracePeriodSeconds: 4518808233936994290 -kind: DeleteOptions -orphanDependents: false -preconditions: - resourceVersion: "2" - uid: ȕHH壬%龺ǟ橸章蒪ʤǎ>渽蝧抰 -propagationPolicy: ZȢXQ diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.json deleted file mode 100644 index 66d9dff60..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "kind": "Endpoints", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "subsets": [ - { - "addresses": [ - { - "ip": "24", - "hostname": "25", - "nodeName": "26", - "targetRef": { - "kind": "27", - "namespace": "28", - "name": "29", - "uid": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "30", - "resourceVersion": "31", - "fieldPath": "32" - } - } - ], - "notReadyAddresses": [ - { - "ip": "33", - "hostname": "34", - "nodeName": "35", - "targetRef": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "颋Dž", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - } - } - ], - "ports": [ - { - "name": "42", - "port": 1575426699, - "protocol": "ƏS$+½H牗洝尿" - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.pb deleted file mode 100644 index f7748e7b73be33002fac37e89a2d0d9608a2835b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 378 zcmV-=0fqi+ICB6B4+;WyF%k(yZe(z8X>N3L65av|$N>rgG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`{g0SZ700x~obG717RHxdFeI2r;nIU*Ru zo5X_UhnMJ+kHw1Un~KDVdFQu<=eU(B0y8i&0y8l>0y8oi0x~rs0x~udEeZlNGZG&P z0y8!e0y8%n0y8)w1?i%T$Au~aGdVH>G%z{>G%*?iGc+OsGc_6=3Ia4T5R0{(?*$qW Y#*b4ZE5f}<=ZTl*w4LR!zZw7{00h;5A^-pY diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.yaml deleted file mode 100644 index 044b67214..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.after_roundtrip.yaml +++ /dev/null @@ -1,59 +0,0 @@ -apiVersion: v1 -kind: Endpoints -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -subsets: -- addresses: - - hostname: "25" - ip: "24" - nodeName: "26" - targetRef: - apiVersion: "30" - fieldPath: "32" - kind: "27" - name: "29" - namespace: "28" - resourceVersion: "31" - uid: ěĂ凗蓏Ŋ蛊ĉy緅縕 - notReadyAddresses: - - hostname: "34" - ip: "33" - nodeName: "35" - targetRef: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: 颋Dž - ports: - - name: "42" - port: 1575426699 - protocol: ƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.json deleted file mode 100644 index e4fde7f38..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "kind": "Endpoints", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subsets": [ - { - "addresses": [ - { - "ip": "24", - "hostname": "25", - "nodeName": "26", - "targetRef": { - "kind": "27", - "namespace": "28", - "name": "29", - "uid": "ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "30", - "resourceVersion": "31", - "fieldPath": "32" - } - } - ], - "notReadyAddresses": [ - { - "ip": "33", - "hostname": "34", - "nodeName": "35", - "targetRef": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "颋Dž", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - } - } - ], - "ports": [ - { - "name": "42", - "port": 1575426699, - "protocol": "ƏS$+½H牗洝尿" - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.pb deleted file mode 100644 index 75286bd50aaa669a17419c46a8b12a9535113fa4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 394 zcmV;50d@XsICB6B4+;WyF%k(yZe(z8X>N3L67B*D*Z~RwG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#mA0SZ700x~ob zG717RHxdFeI2r;nIU*Ruo5X_UhnMJ+kHw1Un~KDVdFQu<=eU(B0y8i&0y8l>0y8oi z0x~rs0x~udEeZlNGZG&P0y8!e0y8%n0y8)w1?i%T$Au~aGdVH>G%z{>G%*?iGc+Os oGc_6=3Ia4T5R0{(?*$qW#*b4ZE5f}<=ZTl*w4LR!zZw7{062?*nE(I) diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.yaml deleted file mode 100644 index 50a737b8d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Endpoints.yaml +++ /dev/null @@ -1,62 +0,0 @@ -apiVersion: v1 -kind: Endpoints -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -subsets: -- addresses: - - hostname: "25" - ip: "24" - nodeName: "26" - targetRef: - apiVersion: "30" - fieldPath: "32" - kind: "27" - name: "29" - namespace: "28" - resourceVersion: "31" - uid: ěĂ凗蓏Ŋ蛊ĉy緅縕 - notReadyAddresses: - - hostname: "34" - ip: "33" - nodeName: "35" - targetRef: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: 颋Dž - ports: - - name: "42" - port: 1575426699 - protocol: ƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.json deleted file mode 100644 index 4fc2cbee8..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "involvedObject": { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "ƗǸƢ6/ʕV", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - }, - "reason": "30", - "message": "31", - "source": { - "component": "32", - "host": "33" - }, - "firstTimestamp": "2452-08-27T22:01:15Z", - "lastTimestamp": "2620-11-25T16:08:31Z", - "count": 1749009427, - "type": "34", - "eventTime": "2343-04-17T01:08:33.494361Z", - "series": { - "count": 1970127545, - "lastObservedTime": "1985-03-23T14:10:57.985776Z", - "state": "颋Dž" - }, - "action": "35", - "related": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "ǡƏS$+½H", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - }, - "reportingComponent": "42", - "reportingInstance": "43" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.pb deleted file mode 100644 index ef9da5d9067f423df3077722a7312106688dc433..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 407 zcmV;I0ciefICB6B3km{uF%ktuc4cmK68{1U$N>rgG75&|(WY9I;%F)|tgF*70#M0(}B zl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y` zw_z{Ilzrxrfhgv=m&Ar$8UislG5``K3IZ}T5&|+c8UivlA`8Zs$GFC#HZRJRRw@EA zH!=b;I649{IT`{pFd_moF)9cO0y8oa0y8r*2nef%=H56E06GW=|Gl}wOb`G-lZgMp z21)`mG*S!*k^hPDD-fu&-Rl8b8wk0Dx2p#d3<&YIi{$|jfd7Wp0~!VCqKn6cVgfTY zY9tB*Gd2G%z{>G%<1lG%|VuG&33iA^_9m Bh#LR^ diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.yaml deleted file mode 100644 index 8ff8aa34f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.after_roundtrip.yaml +++ /dev/null @@ -1,63 +0,0 @@ -action: "35" -apiVersion: v1 -count: 1749009427 -eventTime: "2343-04-17T01:08:33.494361Z" -firstTimestamp: "2452-08-27T22:01:15Z" -involvedObject: - apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: ƗǸƢ6/ʕV -kind: Event -lastTimestamp: "2620-11-25T16:08:31Z" -message: "31" -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -reason: "30" -related: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: ǡƏS$+½H -reportingComponent: "42" -reportingInstance: "43" -series: - count: 1970127545 - lastObservedTime: "1985-03-23T14:10:57.985776Z" - state: 颋Dž -source: - component: "32" - host: "33" -type: "34" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.json deleted file mode 100644 index 94dd6f3ad..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "involvedObject": { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "ƗǸƢ6/ʕV", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - }, - "reason": "30", - "message": "31", - "source": { - "component": "32", - "host": "33" - }, - "firstTimestamp": "2452-08-27T22:01:15Z", - "lastTimestamp": "2620-11-25T16:08:31Z", - "count": 1749009427, - "type": "34", - "eventTime": "2343-04-17T01:08:33.494361Z", - "series": { - "count": 1970127545, - "lastObservedTime": "1985-03-23T14:10:57.985776Z", - "state": "颋Dž" - }, - "action": "35", - "related": { - "kind": "36", - "namespace": "37", - "name": "38", - "uid": "ǡƏS$+½H", - "apiVersion": "39", - "resourceVersion": "40", - "fieldPath": "41" - }, - "reportingComponent": "42", - "reportingInstance": "43" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.pb deleted file mode 100644 index 84379018cc412b9f241bc78dd38e76b4216162d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 423 zcmV;Y0a*TPICB6B3km{uF%ktuc4cmK5|0B4*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}B zl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy<(#y` zw_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#k<3IZ}T5&|+c8Uivl zA`8Zs$GFC#HZRJRRw@EAH!=b;I649{IT`{pFd_moF)9cO0y8oa0y8r*2nef%=H56E z06GW=|Gl}wOb`G-lZgMp21)`mG*S!*k^hPDD-fu&-Rl8b8wk0Dx2p#d3<&YIi{$|j zfd7Wp0~!VCqKn6cVgfTYY9tB*Gd2G%z{> RG%<1lG%|VuG&33iA^=r&i4y<- diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.yaml deleted file mode 100644 index c947e898b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Event.yaml +++ /dev/null @@ -1,66 +0,0 @@ -action: "35" -apiVersion: v1 -count: 1749009427 -eventTime: "2343-04-17T01:08:33.494361Z" -firstTimestamp: "2452-08-27T22:01:15Z" -involvedObject: - apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: ƗǸƢ6/ʕV -kind: Event -lastTimestamp: "2620-11-25T16:08:31Z" -message: "31" -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -reason: "30" -related: - apiVersion: "39" - fieldPath: "41" - kind: "36" - name: "38" - namespace: "37" - resourceVersion: "40" - uid: ǡƏS$+½H -reportingComponent: "42" -reportingInstance: "43" -series: - count: 1970127545 - lastObservedTime: "1985-03-23T14:10:57.985776Z" - state: 颋Dž -source: - component: "32" - host: "33" -type: "34" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.json deleted file mode 100644 index ebd4b9a40..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "kind": "ExportOptions", - "apiVersion": "v1", - "export": true, - "exact": false -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ExportOptions.pb deleted file mode 100644 index a8556b4f89390d607759afaed6b5f5b7d85f1604..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35 qcmd0{C}!Xi=3*){6ykNQD9A4=@h>RJ%+D(pV&PyEV31-^VgLY}6ykDEE%7fX$;{6y7GmaNG?HRaVgLYf?FO0v diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.GetOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.GetOptions.yaml deleted file mode 100644 index a81415497..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.GetOptions.yaml +++ /dev/null @@ -1,3 +0,0 @@ -apiVersion: v1 -kind: GetOptions -resourceVersion: "2" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.json deleted file mode 100644 index 5595bff6d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "kind": "LimitRange", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "limits": [ - { - "type": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "max": { - "Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț": "2" - }, - "min": { - "峅x": "826" - }, - "default": { - ";Ơ歿:狞夌碕ʂ": "737" - }, - "defaultRequest": { - "Ƽ@hDrȮO励鹗塢": "874" - }, - "maxLimitRequestRatio": { - "UɦOŖ": "746" - } - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.LimitRange.after_roundtrip.pb deleted file mode 100644 index 55228d1ab12bdf4e1960e3805cd434e687337965..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 403 zcmV;E0c`$jICB6B5DEfzF%k+)X>DnAQekdqWfJxR3djKp0WuN+Ga3OjA^|ljBE*I1 zql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?X zIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp z4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$h zRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vcr~wM40SX)FguTR@#De9Am*|s^#fs>g zio}U|=eLFDxRnwt3MIw8=ZCrGhK=R3l|Sc;vBI-0$B*T|gevL1r{|5D=9PxXj>wx5 z0}25$8Vw2r<+Fu&5(NqaI5IXO8wwIT#-Qe{zdGlOp5>&B=c1L$f)WJ^12;1_DjNzC x#=JmiL~_WkPvwfS>A9EXp`sE63IjMdG%^ng235(XPsNrJ1quTDnAQekdqWfF!13fKV(0WuN+Ga3OjA^|ljBE*I1 zql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?X zIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp z4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0X+%=F*Xt*>5z)$l#1!2nZ=$h zRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM>I1&g71_}Z(IT8R8r~wM40SX)F zguTR@#De9Am*|s^#fs>gio}U|=eLFDxRnwt3MIw8=ZCrGhK=R3l|Sc;vBI-0$B*T| zgevL1r{|5D=9PxXj>wx50}25$8Vw2r<+Fu&5(NqaI5IXO8wwIT#-Qe{zdGlOp5>&B z=c1L$f)WJ^12;1_DjNzC#=JmiL~_WkPvwfS>A9EXp`sE63IjMdG%^ng235(XPsNrJ N1quThC_V~qztEcXL;kB55 Vp|5N5j~l&SPK>4=3{nhA3;>L}75@ML diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ListOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ListOptions.yaml deleted file mode 100644 index 5b66db174..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ListOptions.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -continue: "5" -fieldSelector: "3" -kind: ListOptions -labelSelector: "2" -limit: 5339971464584210463 -resourceVersion: "4" -timeoutSeconds: 1002466899136229878 -watch: true diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.json deleted file mode 100644 index c9f0f1a74..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "kind": "Namespace", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "finalizers": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ] - }, - "status": { - "phase": "谐颋DžSǡƏS$+½H牗洝尿" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.pb deleted file mode 100644 index 47b3cabe45681c1992781175e2de0e99684b9b51..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 294 zcmV+>0ond*ICB6B4+;WyF%k(*VQpn|aA9L*5{d!}$N>rgG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5``C3LEHzy~LZug5`&o=#!7dis+k)#EE(5 sw}t1pl^Pxj9O$r+>7t9rg;U3&#*b4ZE5f}<=ZTl*w4LR!zZw7{0AxCMAOHXW diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.yaml deleted file mode 100644 index 8bfb01217..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.after_roundtrip.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - finalizers: - - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -status: - phase: 谐颋DžSǡƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.json deleted file mode 100644 index 59f1dd52b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "kind": "Namespace", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "finalizers": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ] - }, - "status": { - "phase": "谐颋DžSǡƏS$+½H牗洝尿" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.pb deleted file mode 100644 index 2cfebe8f2c04107a2746bd613ac71b84f3ab556c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=SrICB6B4+;WyF%k(*VQpn|aA9L*5}E=E*Z~RwG75&|(WY9I;%F)|tgF*70# zM0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy z<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#k%3LEHzy~LZu zg5`&o=#!7dis+k)#EE(5w}t1pl^Pxj9O$r+>7t9rg;U3&#*b4ZE5f}<=ZTl*w4LR! IzZw7{02MTNmjD0& diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.yaml deleted file mode 100644 index 3b76a2900..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Namespace.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - finalizers: - - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 -status: - phase: 谐颋DžSǡƏS$+½H牗洝尿 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.json deleted file mode 100644 index cd42dacab..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "kind": "Node", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "podCIDR": "24", - "providerID": "25", - "unschedulable": true, - "taints": [ - { - "key": "26", - "value": "27", - "effect": "ǸƢ6/" - } - ], - "configSource": { - "configMap": { - "namespace": "28", - "name": "29", - "uid": "蛊ĉy緅縕\u003eŽ燹憍峕?狱³-", - "resourceVersion": "30", - "kubeletConfigKey": "31" - } - }, - "externalID": "32" - }, - "status": { - "capacity": { - "忄*齧獚敆Ȏ": "362" - }, - "allocatable": { - "B峅x4%a": "143" - }, - "phase": "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ", - "conditions": [ - { - "type": "P喂ƈ斎AO6", - "status": "'üA謥ǣ偐圠=l畣潁谯耨", - "lastHeartbeatTime": "2153-05-01T22:00:29Z", - "lastTransitionTime": "2688-04-12T17:13:50Z", - "reason": "33", - "message": "34" - } - ], - "addresses": [ - { - "type": "\u0026", - "address": "35" - } - ], - "daemonEndpoints": { - "kubeletEndpoint": { - "Port": -816398166 - } - }, - "nodeInfo": { - "machineID": "36", - "systemUUID": "37", - "bootID": "38", - "kernelVersion": "39", - "osImage": "40", - "containerRuntimeVersion": "41", - "kubeletVersion": "42", - "kubeProxyVersion": "43", - "operatingSystem": "44", - "architecture": "45" - }, - "images": [ - { - "names": [ - "46" - ], - "sizeBytes": -6225778594348390831 - } - ], - "volumesInUse": [ - "ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ" - ], - "volumesAttached": [ - { - "name": "Ņ£", - "devicePath": "47" - } - ], - "config": { - "assigned": { - "configMap": { - "namespace": "48", - "name": "49", - "uid": "/", - "resourceVersion": "50", - "kubeletConfigKey": "51" - } - }, - "active": { - "configMap": { - "namespace": "52", - "name": "53", - "uid": "¾\\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ(", - "resourceVersion": "54", - "kubeletConfigKey": "55" - } - }, - "lastKnownGood": { - "configMap": { - "namespace": "56", - "name": "57", - "uid": "ėf倐ȓ圬剴扲ȿQZ{ʁgɸ", - "resourceVersion": "58", - "kubeletConfigKey": "59" - } - }, - "error": "60" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.after_roundtrip.pb deleted file mode 100644 index 7defec07181408b1b4836eb4c047e0ad4b0d2587..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 736 zcmWkrTTc@~80`)hoACmUl9)9HT!WG((C*Icc1z*~!iziz67hkk5hG~SM1+JW#DpS+ z(%Oo06$=W*fJj9yh7xW`*_JIKBtG~e&$De~;twzy9ly8l0PZ&QBUkeg9V79&7^XTKqM_dls#M_J5|uhRF8-Dc~ZgG(b2+c z8d%(1suBLgi228_>gbqV#N2^ZmkN;=RUa~lKxk_rW#IJ3E0lAL+J6{OA{8hCg1L83ostT~gPXOnGH zyxII`_M9KcTK%Lbc9K;T8V?_tOAf(ak7Z)NQOX`5Rfr{ zDzbh}dsUh02&YE6jFHLcdNSmtQ}cŽ燹憍峕?狱³- - externalID: "32" - podCIDR: "24" - providerID: "25" - taints: - - effect: ǸƢ6/ - key: "26" - value: "27" - unschedulable: true -status: - addresses: - - address: "35" - type: '&' - allocatable: - B峅x4%a: "143" - capacity: - 忄*齧獚敆Ȏ: "362" - conditions: - - lastHeartbeatTime: "2153-05-01T22:00:29Z" - lastTransitionTime: "2688-04-12T17:13:50Z" - message: "34" - reason: "33" - status: '''üA謥ǣ偐圠=l畣潁谯耨' - type: P喂ƈ斎AO6 - config: - active: - configMap: - kubeletConfigKey: "55" - name: "53" - namespace: "52" - resourceVersion: "54" - uid: ¾\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ( - assigned: - configMap: - kubeletConfigKey: "51" - name: "49" - namespace: "48" - resourceVersion: "50" - uid: / - error: "60" - lastKnownGood: - configMap: - kubeletConfigKey: "59" - name: "57" - namespace: "56" - resourceVersion: "58" - uid: ėf倐ȓ圬剴扲ȿQZ{ʁgɸ - daemonEndpoints: - kubeletEndpoint: - Port: -816398166 - images: - - names: - - "46" - sizeBytes: -6225778594348390831 - nodeInfo: - architecture: "45" - bootID: "38" - containerRuntimeVersion: "41" - kernelVersion: "39" - kubeProxyVersion: "43" - kubeletVersion: "42" - machineID: "36" - operatingSystem: "44" - osImage: "40" - systemUUID: "37" - phase: 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ' - volumesAttached: - - devicePath: "47" - name: Ņ£ - volumesInUse: - - ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.json deleted file mode 100644 index c75e0c72d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "kind": "Node", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "podCIDR": "24", - "providerID": "25", - "unschedulable": true, - "taints": [ - { - "key": "26", - "value": "27", - "effect": "ǸƢ6/" - } - ], - "configSource": { - "configMap": { - "namespace": "28", - "name": "29", - "uid": "蛊ĉy緅縕\u003eŽ燹憍峕?狱³-", - "resourceVersion": "30", - "kubeletConfigKey": "31" - } - }, - "externalID": "32" - }, - "status": { - "capacity": { - "忄*齧獚敆Ȏ": "362" - }, - "allocatable": { - "B峅x4%a": "143" - }, - "phase": "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ", - "conditions": [ - { - "type": "P喂ƈ斎AO6", - "status": "'üA謥ǣ偐圠=l畣潁谯耨", - "lastHeartbeatTime": "2153-05-01T22:00:29Z", - "lastTransitionTime": "2688-04-12T17:13:50Z", - "reason": "33", - "message": "34" - } - ], - "addresses": [ - { - "type": "\u0026", - "address": "35" - } - ], - "daemonEndpoints": { - "kubeletEndpoint": { - "Port": -816398166 - } - }, - "nodeInfo": { - "machineID": "36", - "systemUUID": "37", - "bootID": "38", - "kernelVersion": "39", - "osImage": "40", - "containerRuntimeVersion": "41", - "kubeletVersion": "42", - "kubeProxyVersion": "43", - "operatingSystem": "44", - "architecture": "45" - }, - "images": [ - { - "names": [ - "46" - ], - "sizeBytes": -6225778594348390831 - } - ], - "volumesInUse": [ - "ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ" - ], - "volumesAttached": [ - { - "name": "Ņ£", - "devicePath": "47" - } - ], - "config": { - "assigned": { - "configMap": { - "namespace": "48", - "name": "49", - "uid": "/", - "resourceVersion": "50", - "kubeletConfigKey": "51" - } - }, - "active": { - "configMap": { - "namespace": "52", - "name": "53", - "uid": "¾\\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ(", - "resourceVersion": "54", - "kubeletConfigKey": "55" - } - }, - "lastKnownGood": { - "configMap": { - "namespace": "56", - "name": "57", - "uid": "ėf倐ȓ圬剴扲ȿQZ{ʁgɸ", - "resourceVersion": "58", - "kubeletConfigKey": "59" - } - }, - "error": "60" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.pb deleted file mode 100644 index f8d773f4b8952dc2d09bea8dd449c5e66b0e10b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 752 zcmWlV?@Lor9L9H#KN_b}J0--8&~8{VPPBsaeJ?V96?;lj?vmj2ru@7=q1Vrh_aI_VO9m5NcK7DfHUcR86GdF zp`O6zQe9DO;IaPPmai`lYh72_Hj60>W-z;oj4+)|D>9%O2qc04X1_^tF2@`|QV@_V zeEL=}GN}|v7>P_%nP%m460e+E&!hN~Jsuo96JCpVFY8^sbaC)(+%+FsED!)Tn*bL1 zsT6n=X3~vLQ*v!O-aD!fc17JN4W?j4LWiKSj4s+AlDxYAl1MNwG=<$;?Yd{-TEgXR zh^(HwUEUP^P)VKh$>m`>F{$UmRg zFFxqi*KCQ8bBT5zZ#4cH{T|8AG6+WFZihd3Da*i4!xF&6#EL$}Ld()YxZgNq+xzwV zFMC{ZJ_MMh#}*!7m4&gI05MB|h{b?NWq{xcKu9$pa#M9KQR0?L}3xGngFf*2kv9>j}S$`WE6N%Q1h{85@nc^BG7ODDy?A vfPw6I*}@;wh8t*mU$mckW@%4A?^%d$T&!)|w%v*a8K5%2DgedI8wA5YCrB7t diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.yaml deleted file mode 100644 index d7d3f9e00..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Node.yaml +++ /dev/null @@ -1,111 +0,0 @@ -apiVersion: v1 -kind: Node -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - configSource: - configMap: - kubeletConfigKey: "31" - name: "29" - namespace: "28" - resourceVersion: "30" - uid: 蛊ĉy緅縕>Ž燹憍峕?狱³- - externalID: "32" - podCIDR: "24" - providerID: "25" - taints: - - effect: ǸƢ6/ - key: "26" - value: "27" - unschedulable: true -status: - addresses: - - address: "35" - type: '&' - allocatable: - B峅x4%a: "143" - capacity: - 忄*齧獚敆Ȏ: "362" - conditions: - - lastHeartbeatTime: "2153-05-01T22:00:29Z" - lastTransitionTime: "2688-04-12T17:13:50Z" - message: "34" - reason: "33" - status: '''üA謥ǣ偐圠=l畣潁谯耨' - type: P喂ƈ斎AO6 - config: - active: - configMap: - kubeletConfigKey: "55" - name: "53" - namespace: "52" - resourceVersion: "54" - uid: ¾\ĒP鄸靇杧ž譋娲瘹ɭȊɚɎ( - assigned: - configMap: - kubeletConfigKey: "51" - name: "49" - namespace: "48" - resourceVersion: "50" - uid: / - error: "60" - lastKnownGood: - configMap: - kubeletConfigKey: "59" - name: "57" - namespace: "56" - resourceVersion: "58" - uid: ėf倐ȓ圬剴扲ȿQZ{ʁgɸ - daemonEndpoints: - kubeletEndpoint: - Port: -816398166 - images: - - names: - - "46" - sizeBytes: -6225778594348390831 - nodeInfo: - architecture: "45" - bootID: "38" - containerRuntimeVersion: "41" - kernelVersion: "39" - kubeProxyVersion: "43" - kubeletVersion: "42" - machineID: "36" - operatingSystem: "44" - osImage: "40" - systemUUID: "37" - phase: 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ' - volumesAttached: - - devicePath: "47" - name: Ņ£ - volumesInUse: - - ȭ%ƎÜ掸8½£.vǴʌ鴜Ł%ŨȈ diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.json deleted file mode 100644 index ca9a6afcd..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "NodeProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.NodeProxyOptions.pb deleted file mode 100644 index 33437115c84a4ab66a0fb4cc246412c38d0cd08a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi<6S(>828h%<92$Ha~%WfZhGco#RGP|=6_07bWTF+%3&i&?`@0{

wMRhj*C~$e)YxGFFTa=gK`1Mh$@Krksd^b8g%+AshG2H zxv6v~+Qz-)@F&iEar%Te{j=%B&bo7%4tkiFwy9G?vvkh5X_y*iHvjYQ-rvHpMEFvp z)Vwr!|3?20zb3X&>oYR46vW#P$jDYO(JlmJOsF3d7CdyS+ua&3M0&b%(fsHo6%(RK z9Cc!%cVl8iQ9V#irKa*-)E$pjQnzw<>OXK3YuWX-hT{13()Z!o(#DiC@DWtAsH8kN zAipdh@%px%8K>8cOnGCYxu`c2b%wq!ulJWT6UtLEHY{c0X}Ma)R97%He2*%BJ*o;I z*OQ~F~E?aGvC-BkN**hPf!r+x{7r} zLm{l2C#5qY!2%LLC$(eUZafSlKmmjJP!M7U6fjuRQ9vMQfS>__hNX%a2al~uXI_x8 zsa4O#6MK*MMf}(#0ZGLsZ3UXi6m074F99+DnSS8|Ns|LdV3^XRyW)-3nVRDY=mnn=7eHSdyy$)4kBFl*K`)rr`_msWn;=s&N^d({6w=m z*_$6MO^&>E+H}_5hD@VYqE&9{b`*g+hmXRon+Vp+p*V-)aiq%Fh9%fU^lHNjY!*N& zwsneaBZO_U5!+T1ws|v}MF)XmD^*0(enRica1!xC{a{2E7cO164B;|^zBjWOXDq*2 zS&BI$ZePTWY_a@6cCkf;utmY}5Ey#}y$7j8gH%FbWH>0?0yvm(>2x0(0-K?IYzfR8 z_p#`RYE1%D(GaEn>fO|dYkO-Czpbn#a^d5-`QWP}DymT(dZR}0$Q!x--IVuWBAaTc z3@#t5_tNR>g?sMYq_e34!=zv=XpeIB#oRC6Qp}xSDNk<{mkQBhyf{+(X|dm(xm#Xc z7epI~Olz!h6N~Q9T4`vdu+!4o^Dz8bG4uM~Ty~&5J5xtm^NEJ059L<*oLmR(Froz9 ztv)Zcq?aPMDx+!l{>}Wt`=#ND;`*uGq_@3ru@-uTU!hj8nR2vp;~RH0{?7Swe6bY! zv96^w94TaaUMXfu>9Anxej*=lD`!@{bgY>6lACU9J3oE7A-55@>LpiR+ubQg?(R)~ QoSlb7z%K>H^h-hMf7_6b`Tzg` diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.after_roundtrip.yaml deleted file mode 100644 index 174c42807..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.after_roundtrip.yaml +++ /dev/null @@ -1,221 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - accessModes: - - £.vǴʌ鴜Ł%Ũ - awsElasticBlockStore: - fsType: "27" - partition: -321835912 - readOnly: true - volumeID: "26" - azureDisk: - cachingMode: rȮO励鹗塢ē ƕP喂ƈ斎AO6ĴC - diskName: "83" - diskURI: "84" - fsType: "85" - kind: 壝 - readOnly: false - azureFile: - readOnly: true - secretName: "71" - secretNamespace: "73" - shareName: "72" - capacity: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - cephfs: - monitors: - - "54" - path: "55" - secretFile: "57" - secretRef: - name: "58" - namespace: "59" - user: "56" - cinder: - fsType: "51" - readOnly: true - secretRef: - name: "52" - namespace: "53" - volumeID: "50" - claimRef: - apiVersion: "126" - fieldPath: "128" - kind: "123" - name: "125" - namespace: "124" - resourceVersion: "127" - uid: '>Ņ£趕ã/鈱$-议}ȧ外ĺ' - csi: - controllerExpandSecretRef: - name: "121" - namespace: "122" - controllerPublishSecretRef: - name: "115" - namespace: "116" - driver: "110" - fsType: "112" - nodePublishSecretRef: - name: "119" - namespace: "120" - nodeStageSecretRef: - name: "117" - namespace: "118" - volumeAttributes: - "113": "114" - volumeHandle: "111" - fc: - fsType: "61" - lun: -655946460 - targetWWNs: - - "60" - wwids: - - "62" - flexVolume: - driver: "65" - fsType: "66" - options: - "69": "70" - secretRef: - name: "67" - namespace: "68" - flocker: - datasetName: "63" - datasetUUID: "64" - gcePersistentDisk: - fsType: "25" - partition: 1035515117 - pdName: "24" - readOnly: true - glusterfs: - endpoints: "29" - endpointsNamespace: "31" - path: "30" - hostPath: - path: "28" - type: 狱³-Ǐ忄*齧獚 - iscsi: - fsType: "45" - initiatorName: "49" - iqn: "43" - iscsiInterface: "44" - lun: -21009133 - portals: - - "46" - readOnly: true - secretRef: - name: "47" - namespace: "48" - targetPortal: "42" - local: - fsType: "100" - path: "99" - mountOptions: - - "130" - nfs: - path: "33" - readOnly: true - server: "32" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "131" - operator: 廄裭4懙鏮嵒ƫS捕ɷD¡轫n( - values: - - "132" - matchFields: - - key: "133" - operator: 郀叚Fi皬择,Q捇ȸ{+ɸ殁 - values: - - "134" - persistentVolumeReclaimPolicy: ž譋娲瘹ɭȊɚɎ(dɅ囥糷 - photonPersistentDisk: - fsType: "87" - pdID: "86" - portworxVolume: - fsType: "89" - volumeID: "88" - quobyte: - group: "81" - registry: "78" - tenant: "82" - user: "80" - volume: "79" - rbd: - fsType: "36" - image: "35" - keyring: "39" - monitors: - - "34" - pool: "37" - readOnly: true - secretRef: - name: "40" - namespace: "41" - user: "38" - scaleIO: - fsType: "98" - gateway: "90" - protectionDomain: "94" - readOnly: true - secretRef: - name: "92" - namespace: "93" - sslEnabled: true - storageMode: "96" - storagePool: "95" - system: "91" - volumeName: "97" - storageClassName: "129" - storageos: - fsType: "103" - readOnly: true - secretRef: - apiVersion: "107" - fieldPath: "109" - kind: "104" - name: "106" - namespace: "105" - resourceVersion: "108" - uid: ?øēƺ魋Ď儇击3ƆìQ - volumeName: "101" - volumeNamespace: "102" - volumeMode: 圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1ZƜ/ - vsphereVolume: - fsType: "75" - storagePolicyID: "77" - storagePolicyName: "76" - volumePath: "74" -status: - message: "135" - phase: a縳讋ɮ衺勽Ƙq/Ź u衲<¿燥ǖ_è - reason: "136" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.json deleted file mode 100644 index e61104dc8..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.json +++ /dev/null @@ -1,293 +0,0 @@ -{ - "kind": "PersistentVolume", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "capacity": { - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕": "57" - }, - "gcePersistentDisk": { - "pdName": "24", - "fsType": "25", - "partition": 1035515117, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "26", - "fsType": "27", - "partition": -321835912, - "readOnly": true - }, - "hostPath": { - "path": "28", - "type": "狱³-Ǐ忄*齧獚" - }, - "glusterfs": { - "endpoints": "29", - "path": "30", - "endpointsNamespace": "31" - }, - "nfs": { - "server": "32", - "path": "33", - "readOnly": true - }, - "rbd": { - "monitors": [ - "34" - ], - "image": "35", - "fsType": "36", - "pool": "37", - "user": "38", - "keyring": "39", - "secretRef": { - "name": "40", - "namespace": "41" - }, - "readOnly": true - }, - "iscsi": { - "targetPortal": "42", - "iqn": "43", - "lun": -21009133, - "iscsiInterface": "44", - "fsType": "45", - "readOnly": true, - "portals": [ - "46" - ], - "secretRef": { - "name": "47", - "namespace": "48" - }, - "initiatorName": "49" - }, - "cinder": { - "volumeID": "50", - "fsType": "51", - "readOnly": true, - "secretRef": { - "name": "52", - "namespace": "53" - } - }, - "cephfs": { - "monitors": [ - "54" - ], - "path": "55", - "user": "56", - "secretFile": "57", - "secretRef": { - "name": "58", - "namespace": "59" - } - }, - "fc": { - "targetWWNs": [ - "60" - ], - "lun": -655946460, - "fsType": "61", - "wwids": [ - "62" - ] - }, - "flocker": { - "datasetName": "63", - "datasetUUID": "64" - }, - "flexVolume": { - "driver": "65", - "fsType": "66", - "secretRef": { - "name": "67", - "namespace": "68" - }, - "options": { - "69": "70" - } - }, - "azureFile": { - "secretName": "71", - "shareName": "72", - "readOnly": true, - "secretNamespace": "73" - }, - "vsphereVolume": { - "volumePath": "74", - "fsType": "75", - "storagePolicyName": "76", - "storagePolicyID": "77" - }, - "quobyte": { - "registry": "78", - "volume": "79", - "user": "80", - "group": "81", - "tenant": "82" - }, - "azureDisk": { - "diskName": "83", - "diskURI": "84", - "cachingMode": "rȮO励鹗塢ē ƕP喂ƈ斎AO6ĴC", - "fsType": "85", - "readOnly": false, - "kind": "壝" - }, - "photonPersistentDisk": { - "pdID": "86", - "fsType": "87" - }, - "portworxVolume": { - "volumeID": "88", - "fsType": "89" - }, - "scaleIO": { - "gateway": "90", - "system": "91", - "secretRef": { - "name": "92", - "namespace": "93" - }, - "sslEnabled": true, - "protectionDomain": "94", - "storagePool": "95", - "storageMode": "96", - "volumeName": "97", - "fsType": "98", - "readOnly": true - }, - "local": { - "path": "99", - "fsType": "100" - }, - "storageos": { - "volumeName": "101", - "volumeNamespace": "102", - "fsType": "103", - "readOnly": true, - "secretRef": { - "kind": "104", - "namespace": "105", - "name": "106", - "uid": "?øēƺ魋Ď儇击3ƆìQ", - "apiVersion": "107", - "resourceVersion": "108", - "fieldPath": "109" - } - }, - "csi": { - "driver": "110", - "volumeHandle": "111", - "fsType": "112", - "volumeAttributes": { - "113": "114" - }, - "controllerPublishSecretRef": { - "name": "115", - "namespace": "116" - }, - "nodeStageSecretRef": { - "name": "117", - "namespace": "118" - }, - "nodePublishSecretRef": { - "name": "119", - "namespace": "120" - }, - "controllerExpandSecretRef": { - "name": "121", - "namespace": "122" - } - }, - "accessModes": [ - "£.vǴʌ鴜Ł%Ũ" - ], - "claimRef": { - "kind": "123", - "namespace": "124", - "name": "125", - "uid": "\u003eŅ£趕ã/鈱$-议}ȧ外ĺ", - "apiVersion": "126", - "resourceVersion": "127", - "fieldPath": "128" - }, - "persistentVolumeReclaimPolicy": "ž譋娲瘹ɭȊɚɎ(dɅ囥糷", - "storageClassName": "129", - "mountOptions": [ - "130" - ], - "volumeMode": "圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1ZƜ/", - "nodeAffinity": { - "required": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "131", - "operator": "廄裭4懙鏮嵒ƫS捕ɷD¡轫n(", - "values": [ - "132" - ] - } - ], - "matchFields": [ - { - "key": "133", - "operator": "郀叚Fi皬择,Q捇ȸ{+ɸ殁", - "values": [ - "134" - ] - } - ] - } - ] - } - } - }, - "status": { - "phase": "a縳讋ɮ衺勽Ƙq/Ź u衲\u003c¿燥ǖ_è", - "message": "135", - "reason": "136" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.pb deleted file mode 100644 index 009b51f7880102189c069b804b3c4c46c0223af3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1258 zcmW+#T}&KR6rOw0{@jO#OsZM8)huh9kP*tal1WDN0zdrb8(&(GX?9M*aHxplKJ;OYl`^`DuIo~;F z?tCFSB=RD`*Qs3D*w)^0q2p@XrK{(@{_@&aZF24)d5j2RGU9%u1(B`2zO@iQ+vKJdBUCi#js=NoVipRJ4_AB(3q~8n&86F4V7_A{P}nH@8MWHe7Rm~ zT&!MC*QnEE!YvVt`=E{Fw6Kq0^nt)@VM`)scy2hc7FbQdJVD z9aF6nQ$31K0@aYK%HKzw(P%kwJ9D@8LnpqLUT>)@jNT~z5Uwt6OxS%NLp4*WB!_@5 zr3DK#cPN3d?nW6zUHf|({` zru&|h|9VmpK=KRVF~DQ`{(Wp0|9b`x3Lw7^+(MR1vE|*>+T5_S)1#EP@0SLrf}qY| zLazFxAm&sd1ak)O+=tjPz)+s+e#{MsnhNHEVQz&E5Ui;(*61k|;(#GT7oRZFZ2_}%ld8rj^R{dcZ0Sf5Uhk_8(p@7aCjsgNf9Rzg{)J?^U z3Gi5|boM2J4YhJ^DxQ0~C*sEj4M++$SToQJE@MM$eFcyX$nbkUkTe8vJPcEs>P48> zq<|O*W0SYT3QdqSLDB?C)9i#>XM&_@c^eU`f(2z*ux?}!EI>qP{;KwT@{AK*E^kaY zGqd(cAUoFRjCW`Ii{nFYpE2yUcOX-*mRN<8xD!R7F5sgG^A>{j3Mek1_!LqIwqOYs z^?J2n1r`q=1zQ@!mL9^EQI9RN0b8OG&7y-qvE&M>sz0Om2%OY=VSX@PmhfDf=h8iw z5%j&4PT3>b&GJ&r9&&mjPGpN``_hX|3WQAtMufmvE9iYlr7EOS3M0e8;1PYJ#{8ALi4)gzYmdGwuf;Rrt58W#x&@S>A@p! zW_ouM?!&QkqORP(e5}?@CU4~LJ9FdqrUDFufia;yCX|;mzq(5?XMUwLxlvfkM+;Mh zq3X{Hz0UN#((1ZLw1CLf`YI>B=nSkC2UhYsP0d}8!k-sXCv$V@zS8V;4Ql!{H z&E!0(fp$2R1I|{Dn^@9{k=y0rr1RibcHx8K;8O`-dWB!1+GBJ1X!+*1 z&hXT`7fMr$#n?|ZO~t`TKGpSFAyrIBP3PlUM388-Z)? b%*q?PJEh3I-1sNyc~}JeQeX_f6qNo4B`=V1 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.yaml deleted file mode 100644 index 295f0ad2a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolume.yaml +++ /dev/null @@ -1,224 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - accessModes: - - £.vǴʌ鴜Ł%Ũ - awsElasticBlockStore: - fsType: "27" - partition: -321835912 - readOnly: true - volumeID: "26" - azureDisk: - cachingMode: rȮO励鹗塢ē ƕP喂ƈ斎AO6ĴC - diskName: "83" - diskURI: "84" - fsType: "85" - kind: 壝 - readOnly: false - azureFile: - readOnly: true - secretName: "71" - secretNamespace: "73" - shareName: "72" - capacity: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - cephfs: - monitors: - - "54" - path: "55" - secretFile: "57" - secretRef: - name: "58" - namespace: "59" - user: "56" - cinder: - fsType: "51" - readOnly: true - secretRef: - name: "52" - namespace: "53" - volumeID: "50" - claimRef: - apiVersion: "126" - fieldPath: "128" - kind: "123" - name: "125" - namespace: "124" - resourceVersion: "127" - uid: '>Ņ£趕ã/鈱$-议}ȧ外ĺ' - csi: - controllerExpandSecretRef: - name: "121" - namespace: "122" - controllerPublishSecretRef: - name: "115" - namespace: "116" - driver: "110" - fsType: "112" - nodePublishSecretRef: - name: "119" - namespace: "120" - nodeStageSecretRef: - name: "117" - namespace: "118" - volumeAttributes: - "113": "114" - volumeHandle: "111" - fc: - fsType: "61" - lun: -655946460 - targetWWNs: - - "60" - wwids: - - "62" - flexVolume: - driver: "65" - fsType: "66" - options: - "69": "70" - secretRef: - name: "67" - namespace: "68" - flocker: - datasetName: "63" - datasetUUID: "64" - gcePersistentDisk: - fsType: "25" - partition: 1035515117 - pdName: "24" - readOnly: true - glusterfs: - endpoints: "29" - endpointsNamespace: "31" - path: "30" - hostPath: - path: "28" - type: 狱³-Ǐ忄*齧獚 - iscsi: - fsType: "45" - initiatorName: "49" - iqn: "43" - iscsiInterface: "44" - lun: -21009133 - portals: - - "46" - readOnly: true - secretRef: - name: "47" - namespace: "48" - targetPortal: "42" - local: - fsType: "100" - path: "99" - mountOptions: - - "130" - nfs: - path: "33" - readOnly: true - server: "32" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "131" - operator: 廄裭4懙鏮嵒ƫS捕ɷD¡轫n( - values: - - "132" - matchFields: - - key: "133" - operator: 郀叚Fi皬择,Q捇ȸ{+ɸ殁 - values: - - "134" - persistentVolumeReclaimPolicy: ž譋娲瘹ɭȊɚɎ(dɅ囥糷 - photonPersistentDisk: - fsType: "87" - pdID: "86" - portworxVolume: - fsType: "89" - volumeID: "88" - quobyte: - group: "81" - registry: "78" - tenant: "82" - user: "80" - volume: "79" - rbd: - fsType: "36" - image: "35" - keyring: "39" - monitors: - - "34" - pool: "37" - readOnly: true - secretRef: - name: "40" - namespace: "41" - user: "38" - scaleIO: - fsType: "98" - gateway: "90" - protectionDomain: "94" - readOnly: true - secretRef: - name: "92" - namespace: "93" - sslEnabled: true - storageMode: "96" - storagePool: "95" - system: "91" - volumeName: "97" - storageClassName: "129" - storageos: - fsType: "103" - readOnly: true - secretRef: - apiVersion: "107" - fieldPath: "109" - kind: "104" - name: "106" - namespace: "105" - resourceVersion: "108" - uid: ?øēƺ魋Ď儇击3ƆìQ - volumeName: "101" - volumeNamespace: "102" - volumeMode: 圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1ZƜ/ - vsphereVolume: - fsType: "75" - storagePolicyID: "77" - storagePolicyName: "76" - volumePath: "74" -status: - message: "135" - phase: a縳讋ɮ衺勽Ƙq/Ź u衲<¿燥ǖ_è - reason: "136" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.json deleted file mode 100644 index 5f0a1c44e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "kind": "PersistentVolumeClaim", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "accessModes": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ], - "selector": { - "matchLabels": { - "p-g8c2-k-912e5-c-e63-n-3n.c83-b-w7ld-6cs06xj-x5yv0wm-k1-87-3s-g3/9_-.-W._AAn---v_-5-_8LXP-o-9..1m": "JTrcd-2.-__E_Sv__26KX_R_.-N" - }, - "matchExpressions": [ - { - "key": "g0d--o82-g50-u--25cu87--r7p-w1e67-8j/42M--n1-p5.3___47._49pIB_o61ISU4--N", - "operator": "In", - "values": [ - "t_k-_v.6" - ] - } - ] - }, - "resources": { - "limits": { - "p:籀帊": "219" - }, - "requests": { - "骀Šĸ": "986" - } - }, - "volumeName": "30", - "storageClassName": "31", - "volumeMode": "e0ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "dataSource": { - "apiGroup": "32", - "kind": "33", - "name": "34" - } - }, - "status": { - "phase": "s", - "accessModes": [ - "曢\\%枅:" - ], - "capacity": { - "ǛƓɥ踓Ǻǧ湬淊kŪ睴": "659" - }, - "conditions": [ - { - "type": "3fƻfʣ繡楙¯ĦE", - "status": "ĪȸŹăȲϤĦʅ芝", - "lastProbeTime": "2197-07-19T07:02:22Z", - "lastTransitionTime": "2641-12-26T14:46:27Z", - "reason": "35", - "message": "36" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.pb deleted file mode 100644 index 0b480f95f6c6a9aaf2daaedb025e222cf28e1911..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 721 zcmWlVO-$2Z9EaB$biOeL8$DPq+5}@r{-y8xwq46jlqh}>qN2oTUSUikV`DNHA~9jW z6pKa;C=d`o06$P;B$#ayHPMa@58gZ(jhA)X#iQQTasB0&Cr=)~5q6<6#7D5Ot=`ue zJ|FJ#1-njkw08%5d)u4N2ZU!OD8nI+2pknTRpPV?$&M9fN9^Yp4mvYdlaYUT1e3hRsVAM&0y^Qm+58h z)Oy5u1kPyQfH+g&vC_5!@tBA_rqbqpm$J)anX7%_l(lj*RKa7cxD2k7$Lb{>YZeE^ zt1j#;+_JJ`R$+EBH3JRV>7`Hcrpnc^%g*iSZYMczUpZ5xd5BB+!K1SL&^vp|9>`uD z&yU_rS@|i;zSf(I$8w1~LOI%k+@Y%6>;7!Q5=ziIf=!_mZ73}CrykgewZ$}ak*A9E zokRT`Y6?NC;U(Y)6BC~XUhwG@fAc!HP$&@jsdSs@Wq1tNJq2t

w=7-)CmWET;SKjA_qP^({l}z?R#|NS%c aQ!I5!Zuh6(-~QE=x{9hA;i)dVB-ej)GzrlF diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml deleted file mode 100644 index 61d201fe7..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.after_roundtrip.yaml +++ /dev/null @@ -1,66 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - accessModes: - - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 - dataSource: - apiGroup: "32" - kind: "33" - name: "34" - resources: - limits: - p:籀帊: "219" - requests: - 骀Šĸ: "986" - selector: - matchExpressions: - - key: g0d--o82-g50-u--25cu87--r7p-w1e67-8j/42M--n1-p5.3___47._49pIB_o61ISU4--N - operator: In - values: - - t_k-_v.6 - matchLabels: - p-g8c2-k-912e5-c-e63-n-3n.c83-b-w7ld-6cs06xj-x5yv0wm-k1-87-3s-g3/9_-.-W._AAn---v_-5-_8LXP-o-9..1m: JTrcd-2.-__E_Sv__26KX_R_.-N - storageClassName: "31" - volumeMode: e0ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - volumeName: "30" -status: - accessModes: - - '曢\%枅:' - capacity: - ǛƓɥ踓Ǻǧ湬淊kŪ睴: "659" - conditions: - - lastProbeTime: "2197-07-19T07:02:22Z" - lastTransitionTime: "2641-12-26T14:46:27Z" - message: "36" - reason: "35" - status: ĪȸŹăȲϤĦʅ芝 - type: 3fƻfʣ繡楙¯ĦE - phase: s diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.json deleted file mode 100644 index 2a6e285b1..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "kind": "PersistentVolumeClaim", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "accessModes": [ - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕" - ], - "selector": { - "matchLabels": { - "p-g8c2-k-912e5-c-e63-n-3n.c83-b-w7ld-6cs06xj-x5yv0wm-k1-87-3s-g3/9_-.-W._AAn---v_-5-_8LXP-o-9..1m": "JTrcd-2.-__E_Sv__26KX_R_.-N" - }, - "matchExpressions": [ - { - "key": "g0d--o82-g50-u--25cu87--r7p-w1e67-8j/42M--n1-p5.3___47._49pIB_o61ISU4--N", - "operator": "In", - "values": [ - "t_k-_v.6" - ] - } - ] - }, - "resources": { - "limits": { - "p:籀帊": "219" - }, - "requests": { - "骀Šĸ": "986" - } - }, - "volumeName": "30", - "storageClassName": "31", - "volumeMode": "e0ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "dataSource": { - "apiGroup": "32", - "kind": "33", - "name": "34" - } - }, - "status": { - "phase": "s", - "accessModes": [ - "曢\\%枅:" - ], - "capacity": { - "ǛƓɥ踓Ǻǧ湬淊kŪ睴": "659" - }, - "conditions": [ - { - "type": "3fƻfʣ繡楙¯ĦE", - "status": "ĪȸŹăȲϤĦʅ芝", - "lastProbeTime": "2197-07-19T07:02:22Z", - "lastTransitionTime": "2641-12-26T14:46:27Z", - "reason": "35", - "message": "36" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PersistentVolumeClaim.pb deleted file mode 100644 index 5a9c9ea2778fee542229e27dcf380eccd52b4fbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 737 zcmWlVTSydP9L0Agvh5?pKJuaQr3Q)+{^QJiGqW>74_Z=oLn=$c_|kP1U0pX<*GmMh zxn*Nfp_Sq#O}k))B#OI91v=~Pp|>EAqL-cBed)2@s`2T-;hZ0b==a z=BN|Z@WISOGdXBxriK&aP@Wu}Us*IR~?!sKL=$yaUHu+mZJuC z;U6r@OZR@XMy#IXou}!62MIGhVp?}QQ;X45>@hxs_9Az%F!jDW88h)tv_p1kIcQgA zraLiV#kL(o*Ep7l{C5U*GpH&Eb-GsuKNyniQ^5;9jX(fMK=A4Ws-fM}SOc0jBx)TE z(4lsQ#r7ufOQ3szgrJTT7!(A!EYPB&004w3s6h2I6=l#2h9F2yIPcWO7H!JQd&^u0SX2#2SERU4}YUgf;+K^|m>5Xz>K0UGixj&>IRA`7A&{f}ko8 zN~z)zsA2?5i)pham0l=Uz+tha0nXh@{XoNlmd_GN=6&ME;QEtv??Pt2FL7`6Q>r)8 zxi(Q?FUBh~&*oB}BZmw3AeP9OCB%6};cg%%gm>E`&npkv!jO2sGb7sJc5*2@x{Yt5|35^?L+`kb}2 oJZ-()jHb;o&h7sDr}rn9^ zv*vFs+%(zhsbc+AUCLxZym@+Xt8gE$=!zuBoGNLerpO8>h`RQ{SGiYn3TkuGVk~Pr zkMtkRZ+NqI7$wZ1k;)(~aW0K?hT^&82%6#rJH?BRd!EiRhs)iEU(Rqjr;5{}D4ypm z8cL^lDU0G|C&HkrFuw|vIL&frpt;&rkAG{{UYHozyx3Fzs`q$Kq<5%t^3V%lO%*K6 z#}V|cIW#3m%#AtpgYY6Vw#k!|x#r4DjxJG@4hrEXh z&Ay5!eFZ(^eR#Uq9LtLejGpxs)_5xpxr^KgG8ik^1 z&;aYAYC|!L;T;T%x-BpN(2ZL`6$d48QIy1UD4LRlC6>55Xi5?{S`sNqiiN?F%uteI zLves!QmvK*;8+49l5VGD&Oyn16eSA+C5zE8QkIsWL_0iTl&siE3m}RLhbN4Y^<*ne zDF8y@Z59XgDnhyqqzEmNol;~6r6^IPUF9rUFiL?@ik^#rQJPXY2AWi!q0}I2DhyL4 z`<--{AZZaleAh8WS<8LnbDU^CsL9sC8$T9(7X)diR0Z6iRJ9ZVCKarzy3JC9B59aR z;|Px$*wqBvSJ%F1`#w0xR)421Gyp?sdK9H| z0;Ti4h@&Z8U?^R*Ke)?R(d-?~@ppImvs>ep1uq0H6ndQAoU`uEN2ZD#lrBXg!Ey-! zG95_Mm2q@89R|_LfB=?e5KBG<@+lImJTE~oz(W>5DA6F)7!X=42z{;P3Mxai6VbmU z&~%kR(*dup+bSAHZp_Aoh2iPNV2k4znml07@|>=87X zo|BpT$wMJ(s;#r9ATJb25f;aNq(ig%Zhc)`|7Kt1Q+D{&tzQ(p_dj#qM>gmb2rPkz zc0m9X#GWAj1wBNbk`GoLezZUxl>DD@Ly_r<c)~p~EfK|C@H_B74w|=D2&JW%YDT;8@qx#kf6D z1Q4%-e*y=KOO*fi*3H~7yM;9I)|R5tZ)Z6xf9>`=R7C%1wP$YRPd2?g0rjE<}2m3b8LYl?k*~#?bhf}Xv)aK^3O{`5yh3A_^vawkcqD&IyvNm#;hd9 zb>^;c6l722zypzYESPBY=Z{UE^^II){iXT8+HBUHTeHb~F=w*dpMA_f*cQk;wsoRD z=$lAZSrlh|d;h=v&d}i*WCo7Z^})GBnGs+vI6!}zOC@t@j(azF3#&YZJA8vZ6GLXx zg^*Fgw8Z@raL$$f5RRZxiBE=3A>FaUmwVn@UgF=Cb$dD{oK&Xhx*C0&NGchoWg~P1SxOKbg1;ae zNM-IKka=B$Z8-a?TTv6T`7g9@2{e!V`m-^of8g>fOP&l2+-TZl}AR59A+wTzS>g=sFxR`rRAf|Kq}Yb=4^HoBr22u1?f{ z{|yoz3Y6sg4|i-?VGf)%n``ziH4Agrc$%jBXF9h8dK;r5e}T7zSDA|e!N-CS;y{QS z(I(4wl%4>a4nBz+vJ7O%3XmbI*3vIezm?tA+!|*?5uaSGJa@eP`a4S_`)a?q>M!tp z@-5GtCG5Jw;1A z*}lu2ivnfCYh0(Nn`SzRw!nNCM(0uVw}?)pBQ_fGF-zIl6e-CtSW(}|vMk=a2D5vT zlGtUL3F*ue`xO@NhE@Z!Njk>sMB{l@W--gIHPW6=z^uU`7OSBRNl z5c1^86#IR;!Ln-%HrBw)VO%_xgk>+nx~V!a0Xh8&3jetEZ-W%$LG%csB7V6p0@3VB5h%tihqH_3s-&jk zOmXL839n@jtku_JtjXG{l@KeM0l)M$cs*VV4zV2b;8GpH8dx!Qva7KWW5h!wC2g13 z7dLOnGPW@f(09jaPa7LqBL=k6m^sTbcVz6%0LOK*Cv}AxL*Xs$l?}52--GDWh(18a zWn}KdVp=NjA*N=4t9W11&UBo~?Zf=;t-F$wFl0(y)3>o%TR99^;J07H!s1x=`3&Q^ z)HG2t@B#2w)G~KtHYJl?#yp$_2`W*JVlX2RgR7&s>BN9izjF}ba;sr zVUoaD$vY{+;A|(=sT`_1c&Nmo4NCD)-NBQCoR>7HJ5>7T^gY}E;BC$K9ll^TpEC>d zNRgq#+4CRtyop1;rjv{KgsIxaO9Ph&+-(zwNUth$v6xJylO)PREf0c^x<62S-s~@( zYG3aytndsxJ>KXaZBG%PPl($SssebZ?iCm*|CAPa8N!p7HOD-&xaOH1zM2ki!MR22 zyoHC|gD;cR$jbz(!r86#Y$oLu0#^~NmvUQulo6w+HhQ+!2<89YqRO9@oCEXtnFRTyce2%xuZ`l znQ_jP1>Jyq3v^4fZj6?GJ{mF^bVHSyXM$!`g?Wsa4b^xD54OHNCkR;89CKX_jz@jP z10idKS?yn$g_{ht2+1JC^oM6o_$oRw18v!^Q-PJdBeP(a0HEC)%X{OmX)aX4^J>E6h zLTV9SgFMS?daxEjKh+|n+zL`4sz22tqGp9V*nH24ZSG>TtlC}Z&h-}ex<{U#&RgZ` zNQ({@BfLzQm8DjMdJ(LN2&MX6W`D_VraH`XEo2v~4#w;$_MF{1(>~ed9Vi1&^0>%L zwT<6)4Bqw!&?QpSh#a^ja{4&zc%E~kuda=~6?O$~d+-U=if|JkT0Bf9^3tD?zz3nIOFs*KRem`yUB|)l`s37TXswgcn0j@;h&A> zR?V|o9O2o>T?zOE}vfJJKAAhstPon zS0Z1TJ`p!S(7_cZgbx1FfiF4e&F}};3hoS|8|V+bai{ge!m;;fOL)+MC>P;M8Xo@6 zhi3}yL3ci`Y`d^L=#HS-R|e6M)F8qiH3Z%Jx3e4m0QMG#zgG6zhm`fln}rv`02xUd vkS@Sf%ct*omIO^*9d(W4pea!VWFF_+xfCE1B|s+1fJ{^pV1CYSaajHzpIdTe diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.after_roundtrip.yaml deleted file mode 100644 index 12de520f9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.after_roundtrip.yaml +++ /dev/null @@ -1,756 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -794751067822744844 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "269" - operator: Ⱦdz@ùƸʋŀ - values: - - "270" - matchFields: - - key: "271" - operator: ƲE'iþŹʣy豎@ɀ羭,铻OŤǢʭ - values: - - "272" - weight: -1169420648 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "265" - operator: 軶ǃ*ʙ嫙&蒒5靇 - values: - - "266" - matchFields: - - key: "267" - operator: Ŀǹ_Áȉ彂Ŵ - values: - - "268" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: F.-_-_-...1py_8-3..s._.x.2K_2qu0 - operator: In - values: - - 6C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.hx_-a__o - matchLabels: - 8O30-_u._-2hT.-z-._7-5lL..-_--V: a-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g-.._5 - namespaces: - - "287" - topologyKey: "288" - weight: 656200799 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 990-17-hg1-o-p665--4-j8---t6-r7---d--uml-89.n0v-1o-0hv--k6/7rs6.0_OHz_.B-.-_w_--.8_r_N-.3n-x.-_-_-Nm-_X3.1d_YH3x---5 - operator: In - values: - - 9_..O_.J_-G_--V-42Ec - matchLabels: - X_VBC.Jn4f__.39X...-tO-.qff.ExZr: v6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2--A.0.__cd..lv-_aLQbI2z - namespaces: - - "279" - topologyKey: "280" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: b-w0_V - operator: In - values: - - G-7--p9.-_0R.-_-3_L_2--_2 - matchLabels: - sxu-3po4--3os1-5-ufkr-x0u-1meljf-526989g.ze0--1----v8-2/J.Ys_Mop34_-y.8_38xm-.nx.E: z--._4__XOnf_ZN.-_--r.E__-.8_e_l2.X - namespaces: - - "303" - topologyKey: "304" - weight: -1276783194 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: R8D_X._B__-p - operator: Exists - matchLabels: - 7o7799-skj5---r-q3c.2f7ef8jzv4-9-35o-1-5w5z3-d----0p---s-9----747o-x3k/4-P.yP9S--858LI__.8____rO-S-P_-..0: C9..__-6_k.N-2B_V.-tfh4.caTz_g - namespaces: - - "295" - topologyKey: "296" - automountServiceAccountToken: true - containers: - - args: - - "193" - command: - - "192" - env: - - name: "200" - value: "201" - valueFrom: - configMapKeyRef: - key: "207" - name: "206" - optional: false - fieldRef: - apiVersion: "202" - fieldPath: "203" - resourceFieldRef: - containerName: "204" - divisor: "912" - resource: "205" - secretKeyRef: - key: "209" - name: "208" - optional: true - envFrom: - - configMapRef: - name: "198" - optional: true - prefix: "197" - secretRef: - name: "199" - optional: true - image: "191" - imagePullPolicy: H炮掊°nʮ閼咎櫸eʔŊƞ究:ho - lifecycle: - postStart: - exec: - command: - - "228" - httpGet: - host: "231" - httpHeaders: - - name: "232" - value: "233" - path: "229" - port: "230" - scheme: á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ - tcpSocket: - host: "234" - port: -1319491110 - preStop: - exec: - command: - - "235" - httpGet: - host: "238" - httpHeaders: - - name: "239" - value: "240" - path: "236" - port: "237" - scheme: T捘ɍi縱ù墴 - tcpSocket: - host: "241" - port: -1766555420 - livenessProbe: - exec: - command: - - "216" - failureThreshold: 1850174529 - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: 273818613 - scheme: æNǚ錯ƶRq - initialDelaySeconds: -1896921306 - periodSeconds: 2032557749 - successThreshold: -1893103047 - tcpSocket: - host: "221" - port: 811476979 - timeoutSeconds: 715087892 - name: "190" - ports: - - containerPort: -155814081 - hostIP: "196" - hostPort: -2068962521 - name: "195" - protocol: ɩÅ議Ǹ轺@)蓳嗘TʡȂ - readinessProbe: - exec: - command: - - "222" - failureThreshold: -172061933 - httpGet: - host: "224" - httpHeaders: - - name: "225" - value: "226" - path: "223" - port: 1035477124 - scheme: ǚrǜnh0åȂ - initialDelaySeconds: 1669671203 - periodSeconds: -2026931030 - successThreshold: -1843754483 - tcpSocket: - host: "227" - port: -1024794140 - timeoutSeconds: 636617833 - resources: - limits: - ɹ坼É/pȿ: "804" - requests: - 妻ƅTGS5Ǎ: "526" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 瀐<ɉ湨H=å睫}堇硲 - drop: - - "" - privileged: false - procMount: 閝ȝ - readOnlyRootFilesystem: false - runAsGroup: 6028937828108618026 - runAsNonRoot: false - runAsUser: 1854486716537076238 - seLinuxOptions: - level: "246" - role: "244" - type: "245" - user: "243" - windowsOptions: - gmsaCredentialSpec: "248" - gmsaCredentialSpecName: "247" - stdin: true - terminationMessagePath: "242" - terminationMessagePolicy: 贫d飼$俊跾|@?鷅bȻN - volumeDevices: - - devicePath: "215" - name: "214" - volumeMounts: - - mountPath: "211" - mountPropagation: 穠C]躢|)黰eȪ嵛4$%Qɰ - name: "210" - subPath: "212" - subPathExpr: "213" - workingDir: "194" - dnsConfig: - nameservers: - - "311" - options: - - name: "313" - value: "314" - searches: - - "312" - dnsPolicy: '鐅臬dH巧壚tC十Oɢǵʭd鲡:' - enableServiceLinks: false - hostAliases: - - hostnames: - - "309" - ip: "308" - hostIPC: true - hostNetwork: true - hostname: "263" - imagePullSecrets: - - name: "262" - initContainers: - - args: - - "132" - command: - - "131" - env: - - name: "139" - value: "140" - valueFrom: - configMapKeyRef: - key: "146" - name: "145" - optional: true - fieldRef: - apiVersion: "141" - fieldPath: "142" - resourceFieldRef: - containerName: "143" - divisor: "85" - resource: "144" - secretKeyRef: - key: "148" - name: "147" - optional: true - envFrom: - - configMapRef: - name: "137" - optional: true - prefix: "136" - secretRef: - name: "138" - optional: false - image: "130" - imagePullPolicy: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - lifecycle: - postStart: - exec: - command: - - "169" - httpGet: - host: "172" - httpHeaders: - - name: "173" - value: "174" - path: "170" - port: "171" - scheme: Ğİ*洣炽A@ʊʓ - tcpSocket: - host: "175" - port: -675641027 - preStop: - exec: - command: - - "176" - httpGet: - host: "178" - httpHeaders: - - name: "179" - value: "180" - path: "177" - port: 1781137795 - scheme: ş")珷 - tcpSocket: - host: "182" - port: "181" - livenessProbe: - exec: - command: - - "155" - failureThreshold: 327574193 - httpGet: - host: "158" - httpHeaders: - - name: "159" - value: "160" - path: "156" - port: "157" - scheme: 叚Fi皬择,Q捇ȸ{ - initialDelaySeconds: 753533242 - periodSeconds: 358822621 - successThreshold: 1946649472 - tcpSocket: - host: "162" - port: "161" - timeoutSeconds: 1130962147 - name: "129" - ports: - - containerPort: 654894632 - hostIP: "135" - hostPort: 33624773 - name: "134" - protocol: 譋娲瘹ɭȊɚɎ( - readinessProbe: - exec: - command: - - "163" - failureThreshold: -773009446 - httpGet: - host: "165" - httpHeaders: - - name: "166" - value: "167" - path: "164" - port: 1407547486 - scheme: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - initialDelaySeconds: -216367368 - periodSeconds: 2073854558 - successThreshold: -557582532 - tcpSocket: - host: "168" - port: -375094516 - timeoutSeconds: 578888856 - resources: - limits: - h^樅燴壩卄: "967" - requests: - Æ碛,1ZƜ/C龷ȪÆ: "750" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ʬ - drop: - - ʞĹ鑑6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ - privileged: false - procMount: fƻfʣ繡楙¯Ħ - readOnlyRootFilesystem: true - runAsGroup: 8400763836388347832 - runAsNonRoot: false - runAsUser: -1492841452396704228 - seLinuxOptions: - level: "187" - role: "185" - type: "186" - user: "184" - windowsOptions: - gmsaCredentialSpec: "189" - gmsaCredentialSpecName: "188" - stdin: true - stdinOnce: true - terminationMessagePath: "183" - terminationMessagePolicy: 'ɖgȏ哙ȍȂ揲ȼDDŽLŬp:' - volumeDevices: - - devicePath: "154" - name: "153" - volumeMounts: - - mountPath: "150" - mountPropagation: 鏮嵒ƫS捕ɷD¡轫n - name: "149" - subPath: "151" - subPathExpr: "152" - workingDir: "133" - nodeName: "253" - nodeSelector: - "249": "250" - preemptionPolicy: 蓋Cȗä2 ɲ±m嵘厶sȰÖ - priority: 972025710 - priorityClassName: "310" - readinessGates: - - conditionType: V曡88 u怞荊ù灹8緔Tj - restartPolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - runtimeClassName: "315" - schedulerName: "305" - securityContext: - fsGroup: -593458796014416333 - runAsGroup: -8613233602682451586 - runAsNonRoot: true - runAsUser: 5931396084150122130 - seLinuxOptions: - level: "257" - role: "255" - type: "256" - user: "254" - supplementalGroups: - - 4875570291212151521 - sysctls: - - name: "260" - value: "261" - windowsOptions: - gmsaCredentialSpec: "259" - gmsaCredentialSpecName: "258" - serviceAccount: "252" - serviceAccountName: "251" - shareProcessNamespace: false - subdomain: "264" - terminationGracePeriodSeconds: -7405213391132590787 - tolerations: - - effect: 屏ɧeʫį淓¯Ą0 - key: "306" - operator: 嵐;Ƭ婦 - tolerationSeconds: -1598226175696024006 - value: "307" - volumes: - - awsElasticBlockStore: - fsType: "29" - partition: -1161251830 - volumeID: "28" - azureDisk: - cachingMode: l畣潁谯耨V6&]鴍Ɋ恧ȭ%Ǝ - diskName: "92" - diskURI: "93" - fsType: "94" - kind: "" - readOnly: true - azureFile: - secretName: "78" - shareName: "79" - cephfs: - monitors: - - "63" - path: "64" - secretFile: "66" - secretRef: - name: "67" - user: "65" - cinder: - fsType: "61" - secretRef: - name: "62" - volumeID: "60" - configMap: - defaultMode: -314157282 - items: - - key: "81" - mode: -983896210 - path: "82" - name: "80" - optional: false - csi: - driver: "124" - fsType: "125" - nodePublishSecretRef: - name: "128" - readOnly: true - volumeAttributes: - "126": "127" - downwardAPI: - defaultMode: 13677460 - items: - - fieldRef: - apiVersion: "71" - fieldPath: "72" - mode: 684408190 - path: "70" - resourceFieldRef: - containerName: "73" - divisor: "248" - resource: "74" - emptyDir: - medium: Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț - sizeLimit: "2" - fc: - fsType: "76" - lun: -1579157235 - readOnly: true - targetWWNs: - - "75" - wwids: - - "77" - flexVolume: - driver: "55" - fsType: "56" - options: - "58": "59" - readOnly: true - secretRef: - name: "57" - flocker: - datasetName: "68" - datasetUUID: "69" - gcePersistentDisk: - fsType: "27" - partition: 116584168 - pdName: "26" - readOnly: true - gitRepo: - directory: "32" - repository: "30" - revision: "31" - glusterfs: - endpoints: "45" - path: "46" - readOnly: true - hostPath: - path: "25" - type: ěĂ凗蓏Ŋ蛊ĉy緅縕 - iscsi: - fsType: "41" - initiatorName: "44" - iqn: "39" - iscsiInterface: "40" - lun: -1639873916 - portals: - - "42" - readOnly: true - secretRef: - name: "43" - targetPortal: "38" - name: "24" - nfs: - path: "37" - readOnly: true - server: "36" - persistentVolumeClaim: - claimName: "47" - photonPersistentDisk: - fsType: "96" - pdID: "95" - portworxVolume: - fsType: "111" - volumeID: "110" - projected: - defaultMode: 1794524651 - sources: - - configMap: - items: - - key: "106" - mode: -1870473043 - path: "107" - name: "105" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "101" - fieldPath: "102" - mode: -1009864962 - path: "100" - resourceFieldRef: - containerName: "103" - divisor: "272" - resource: "104" - secret: - items: - - key: "98" - mode: -1907421291 - path: "99" - name: "97" - optional: false - serviceAccountToken: - audience: "108" - expirationSeconds: 4696918449912036583 - path: "109" - quobyte: - group: "90" - registry: "87" - tenant: "91" - user: "89" - volume: "88" - rbd: - fsType: "50" - image: "49" - keyring: "53" - monitors: - - "48" - pool: "51" - readOnly: true - secretRef: - name: "54" - user: "52" - scaleIO: - fsType: "119" - gateway: "112" - protectionDomain: "115" - secretRef: - name: "114" - storageMode: "117" - storagePool: "116" - system: "113" - volumeName: "118" - secret: - defaultMode: -1946655205 - items: - - key: "34" - mode: -1261508418 - path: "35" - optional: true - secretName: "33" - storageos: - fsType: "122" - secretRef: - name: "123" - volumeName: "120" - volumeNamespace: "121" - vsphereVolume: - fsType: "84" - storagePolicyID: "86" - storagePolicyName: "85" - volumePath: "83" -status: - conditions: - - lastProbeTime: "2133-03-20T22:59:48Z" - lastTransitionTime: "2677-01-28T11:28:56Z" - message: "317" - reason: "316" - status: 笧L唞鹚蝉茲ʛ饊ɣKIJWĶʗ{裦i÷ɷ - type: '''o儿Ƭ銭u裡_' - containerStatuses: - - containerID: "350" - image: "348" - imageID: "349" - lastState: - running: - startedAt: "2734-05-17T02:59:53Z" - terminated: - containerID: "347" - exitCode: -1911640648 - finishedAt: "2602-11-18T03:31:27Z" - message: "346" - reason: "345" - signal: 69185652 - startedAt: "2865-02-12T12:29:27Z" - waiting: - message: "344" - reason: "343" - name: "337" - ready: true - restartCount: 1916113585 - state: - running: - startedAt: "2217-03-28T13:21:19Z" - terminated: - containerID: "342" - exitCode: 944461609 - finishedAt: "2160-05-28T02:16:53Z" - message: "341" - reason: "340" - signal: -1372927161 - startedAt: "1980-06-05T00:33:39Z" - waiting: - message: "339" - reason: "338" - hostIP: "321" - initContainerStatuses: - - containerID: "336" - image: "334" - imageID: "335" - lastState: - running: - startedAt: "2771-08-30T11:17:46Z" - terminated: - containerID: "333" - exitCode: 730859968 - finishedAt: "2357-03-18T07:12:21Z" - message: "332" - reason: "331" - signal: 914586751 - startedAt: "2519-04-23T00:02:46Z" - waiting: - message: "330" - reason: "329" - name: "323" - ready: true - restartCount: 542393673 - state: - running: - startedAt: "2013-04-24T10:02:35Z" - terminated: - containerID: "328" - exitCode: 1505385143 - finishedAt: "2577-06-06T11:54:07Z" - message: "327" - reason: "326" - signal: -1689270564 - startedAt: "2192-01-18T21:15:00Z" - waiting: - message: "325" - reason: "324" - message: "318" - nominatedNodeName: "320" - phase: 闎Ť萃Q+駟à稨氙'[> - podIP: "322" - qosClass: 蘋`翾'ųŎ群E牬庘颮6(|ǖ - reason: "319" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.json deleted file mode 100644 index 67df91885..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.json +++ /dev/null @@ -1,1105 +0,0 @@ -{ - "kind": "Pod", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "24", - "hostPath": { - "path": "25", - "type": "ěĂ凗蓏Ŋ蛊ĉy緅縕" - }, - "emptyDir": { - "medium": "Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț", - "sizeLimit": "2" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": 116584168, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": -1161251830 - }, - "gitRepo": { - "repository": "30", - "revision": "31", - "directory": "32" - }, - "secret": { - "secretName": "33", - "items": [ - { - "key": "34", - "path": "35", - "mode": -1261508418 - } - ], - "defaultMode": -1946655205, - "optional": true - }, - "nfs": { - "server": "36", - "path": "37", - "readOnly": true - }, - "iscsi": { - "targetPortal": "38", - "iqn": "39", - "lun": -1639873916, - "iscsiInterface": "40", - "fsType": "41", - "readOnly": true, - "portals": [ - "42" - ], - "secretRef": { - "name": "43" - }, - "initiatorName": "44" - }, - "glusterfs": { - "endpoints": "45", - "path": "46", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "47" - }, - "rbd": { - "monitors": [ - "48" - ], - "image": "49", - "fsType": "50", - "pool": "51", - "user": "52", - "keyring": "53", - "secretRef": { - "name": "54" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "55", - "fsType": "56", - "secretRef": { - "name": "57" - }, - "readOnly": true, - "options": { - "58": "59" - } - }, - "cinder": { - "volumeID": "60", - "fsType": "61", - "secretRef": { - "name": "62" - } - }, - "cephfs": { - "monitors": [ - "63" - ], - "path": "64", - "user": "65", - "secretFile": "66", - "secretRef": { - "name": "67" - } - }, - "flocker": { - "datasetName": "68", - "datasetUUID": "69" - }, - "downwardAPI": { - "items": [ - { - "path": "70", - "fieldRef": { - "apiVersion": "71", - "fieldPath": "72" - }, - "resourceFieldRef": { - "containerName": "73", - "resource": "74", - "divisor": "248" - }, - "mode": 684408190 - } - ], - "defaultMode": 13677460 - }, - "fc": { - "targetWWNs": [ - "75" - ], - "lun": -1579157235, - "fsType": "76", - "readOnly": true, - "wwids": [ - "77" - ] - }, - "azureFile": { - "secretName": "78", - "shareName": "79" - }, - "configMap": { - "name": "80", - "items": [ - { - "key": "81", - "path": "82", - "mode": -983896210 - } - ], - "defaultMode": -314157282, - "optional": false - }, - "vsphereVolume": { - "volumePath": "83", - "fsType": "84", - "storagePolicyName": "85", - "storagePolicyID": "86" - }, - "quobyte": { - "registry": "87", - "volume": "88", - "user": "89", - "group": "90", - "tenant": "91" - }, - "azureDisk": { - "diskName": "92", - "diskURI": "93", - "cachingMode": "l畣潁谯耨V6\u0026]鴍Ɋ恧ȭ%Ǝ", - "fsType": "94", - "readOnly": true, - "kind": "" - }, - "photonPersistentDisk": { - "pdID": "95", - "fsType": "96" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "97", - "items": [ - { - "key": "98", - "path": "99", - "mode": -1907421291 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "100", - "fieldRef": { - "apiVersion": "101", - "fieldPath": "102" - }, - "resourceFieldRef": { - "containerName": "103", - "resource": "104", - "divisor": "272" - }, - "mode": -1009864962 - } - ] - }, - "configMap": { - "name": "105", - "items": [ - { - "key": "106", - "path": "107", - "mode": -1870473043 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "108", - "expirationSeconds": 4696918449912036583, - "path": "109" - } - } - ], - "defaultMode": 1794524651 - }, - "portworxVolume": { - "volumeID": "110", - "fsType": "111" - }, - "scaleIO": { - "gateway": "112", - "system": "113", - "secretRef": { - "name": "114" - }, - "protectionDomain": "115", - "storagePool": "116", - "storageMode": "117", - "volumeName": "118", - "fsType": "119" - }, - "storageos": { - "volumeName": "120", - "volumeNamespace": "121", - "fsType": "122", - "secretRef": { - "name": "123" - } - }, - "csi": { - "driver": "124", - "readOnly": true, - "fsType": "125", - "volumeAttributes": { - "126": "127" - }, - "nodePublishSecretRef": { - "name": "128" - } - } - } - ], - "initContainers": [ - { - "name": "129", - "image": "130", - "command": [ - "131" - ], - "args": [ - "132" - ], - "workingDir": "133", - "ports": [ - { - "name": "134", - "hostPort": 33624773, - "containerPort": 654894632, - "protocol": "譋娲瘹ɭȊɚɎ(", - "hostIP": "135" - } - ], - "envFrom": [ - { - "prefix": "136", - "configMapRef": { - "name": "137", - "optional": true - }, - "secretRef": { - "name": "138", - "optional": false - } - } - ], - "env": [ - { - "name": "139", - "value": "140", - "valueFrom": { - "fieldRef": { - "apiVersion": "141", - "fieldPath": "142" - }, - "resourceFieldRef": { - "containerName": "143", - "resource": "144", - "divisor": "85" - }, - "configMapKeyRef": { - "name": "145", - "key": "146", - "optional": true - }, - "secretKeyRef": { - "name": "147", - "key": "148", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "h^樅燴壩卄": "967" - }, - "requests": { - "Æ碛,1ZƜ/C龷ȪÆ": "750" - } - }, - "volumeMounts": [ - { - "name": "149", - "mountPath": "150", - "subPath": "151", - "mountPropagation": "鏮嵒ƫS捕ɷD¡轫n", - "subPathExpr": "152" - } - ], - "volumeDevices": [ - { - "name": "153", - "devicePath": "154" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "155" - ] - }, - "httpGet": { - "path": "156", - "port": "157", - "host": "158", - "scheme": "叚Fi皬择,Q捇ȸ{", - "httpHeaders": [ - { - "name": "159", - "value": "160" - } - ] - }, - "tcpSocket": { - "port": "161", - "host": "162" - }, - "initialDelaySeconds": 753533242, - "timeoutSeconds": 1130962147, - "periodSeconds": 358822621, - "successThreshold": 1946649472, - "failureThreshold": 327574193 - }, - "readinessProbe": { - "exec": { - "command": [ - "163" - ] - }, - "httpGet": { - "path": "164", - "port": 1407547486, - "host": "165", - "scheme": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "httpHeaders": [ - { - "name": "166", - "value": "167" - } - ] - }, - "tcpSocket": { - "port": -375094516, - "host": "168" - }, - "initialDelaySeconds": -216367368, - "timeoutSeconds": 578888856, - "periodSeconds": 2073854558, - "successThreshold": -557582532, - "failureThreshold": -773009446 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "169" - ] - }, - "httpGet": { - "path": "170", - "port": "171", - "host": "172", - "scheme": "Ğİ*洣炽A@ʊʓ", - "httpHeaders": [ - { - "name": "173", - "value": "174" - } - ] - }, - "tcpSocket": { - "port": -675641027, - "host": "175" - } - }, - "preStop": { - "exec": { - "command": [ - "176" - ] - }, - "httpGet": { - "path": "177", - "port": 1781137795, - "host": "178", - "scheme": "ş\")珷", - "httpHeaders": [ - { - "name": "179", - "value": "180" - } - ] - }, - "tcpSocket": { - "port": "181", - "host": "182" - } - } - }, - "terminationMessagePath": "183", - "terminationMessagePolicy": "ɖgȏ哙ȍȂ揲ȼDDŽLŬp:", - "imagePullPolicy": "ʖ畬x骀Šĸů湙騘\u0026啞川J缮ǚb", - "securityContext": { - "capabilities": { - "add": [ - "ʬ" - ], - "drop": [ - "ʞĹ鑑6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "184", - "role": "185", - "type": "186", - "level": "187" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "188", - "gmsaCredentialSpec": "189" - }, - "runAsUser": -1492841452396704228, - "runAsGroup": 8400763836388347832, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "fƻfʣ繡楙¯Ħ" - }, - "stdin": true, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "190", - "image": "191", - "command": [ - "192" - ], - "args": [ - "193" - ], - "workingDir": "194", - "ports": [ - { - "name": "195", - "hostPort": -2068962521, - "containerPort": -155814081, - "protocol": "ɩÅ議Ǹ轺@)蓳嗘TʡȂ", - "hostIP": "196" - } - ], - "envFrom": [ - { - "prefix": "197", - "configMapRef": { - "name": "198", - "optional": true - }, - "secretRef": { - "name": "199", - "optional": true - } - } - ], - "env": [ - { - "name": "200", - "value": "201", - "valueFrom": { - "fieldRef": { - "apiVersion": "202", - "fieldPath": "203" - }, - "resourceFieldRef": { - "containerName": "204", - "resource": "205", - "divisor": "912" - }, - "configMapKeyRef": { - "name": "206", - "key": "207", - "optional": false - }, - "secretKeyRef": { - "name": "208", - "key": "209", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "ɹ坼É/pȿ": "804" - }, - "requests": { - "妻ƅTGS5Ǎ": "526" - } - }, - "volumeMounts": [ - { - "name": "210", - "mountPath": "211", - "subPath": "212", - "mountPropagation": "穠C]躢|)黰eȪ嵛4$%Qɰ", - "subPathExpr": "213" - } - ], - "volumeDevices": [ - { - "name": "214", - "devicePath": "215" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "216" - ] - }, - "httpGet": { - "path": "217", - "port": 273818613, - "host": "218", - "scheme": "æNǚ錯ƶRq", - "httpHeaders": [ - { - "name": "219", - "value": "220" - } - ] - }, - "tcpSocket": { - "port": 811476979, - "host": "221" - }, - "initialDelaySeconds": -1896921306, - "timeoutSeconds": 715087892, - "periodSeconds": 2032557749, - "successThreshold": -1893103047, - "failureThreshold": 1850174529 - }, - "readinessProbe": { - "exec": { - "command": [ - "222" - ] - }, - "httpGet": { - "path": "223", - "port": 1035477124, - "host": "224", - "scheme": "ǚrǜnh0åȂ", - "httpHeaders": [ - { - "name": "225", - "value": "226" - } - ] - }, - "tcpSocket": { - "port": -1024794140, - "host": "227" - }, - "initialDelaySeconds": 1669671203, - "timeoutSeconds": 636617833, - "periodSeconds": -2026931030, - "successThreshold": -1843754483, - "failureThreshold": -172061933 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "228" - ] - }, - "httpGet": { - "path": "229", - "port": "230", - "host": "231", - "scheme": "á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ", - "httpHeaders": [ - { - "name": "232", - "value": "233" - } - ] - }, - "tcpSocket": { - "port": -1319491110, - "host": "234" - } - }, - "preStop": { - "exec": { - "command": [ - "235" - ] - }, - "httpGet": { - "path": "236", - "port": "237", - "host": "238", - "scheme": "T捘ɍi縱ù墴", - "httpHeaders": [ - { - "name": "239", - "value": "240" - } - ] - }, - "tcpSocket": { - "port": -1766555420, - "host": "241" - } - } - }, - "terminationMessagePath": "242", - "terminationMessagePolicy": "贫d飼$俊跾|@?鷅bȻN", - "imagePullPolicy": "H炮掊°nʮ閼咎櫸eʔŊƞ究:ho", - "securityContext": { - "capabilities": { - "add": [ - "瀐\u003cɉ湨H=å睫}堇硲" - ], - "drop": [ - "" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "243", - "role": "244", - "type": "245", - "level": "246" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "247", - "gmsaCredentialSpec": "248" - }, - "runAsUser": 1854486716537076238, - "runAsGroup": 6028937828108618026, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "閝ȝ" - }, - "stdin": true - } - ], - "restartPolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "terminationGracePeriodSeconds": -7405213391132590787, - "activeDeadlineSeconds": -794751067822744844, - "dnsPolicy": "鐅臬dH巧壚tC十Oɢǵʭd鲡:", - "nodeSelector": { - "249": "250" - }, - "serviceAccountName": "251", - "serviceAccount": "252", - "automountServiceAccountToken": true, - "nodeName": "253", - "hostNetwork": true, - "hostIPC": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "254", - "role": "255", - "type": "256", - "level": "257" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "258", - "gmsaCredentialSpec": "259" - }, - "runAsUser": 5931396084150122130, - "runAsGroup": -8613233602682451586, - "runAsNonRoot": true, - "supplementalGroups": [ - 4875570291212151521 - ], - "fsGroup": -593458796014416333, - "sysctls": [ - { - "name": "260", - "value": "261" - } - ] - }, - "imagePullSecrets": [ - { - "name": "262" - } - ], - "hostname": "263", - "subdomain": "264", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "265", - "operator": "軶ǃ*ʙ嫙\u0026蒒5靇", - "values": [ - "266" - ] - } - ], - "matchFields": [ - { - "key": "267", - "operator": "Ŀǹ_Áȉ彂Ŵ", - "values": [ - "268" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1169420648, - "preference": { - "matchExpressions": [ - { - "key": "269", - "operator": "Ⱦdz@ùƸʋŀ", - "values": [ - "270" - ] - } - ], - "matchFields": [ - { - "key": "271", - "operator": "ƲE'iþŹʣy豎@ɀ羭,铻OŤǢʭ", - "values": [ - "272" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "X_VBC.Jn4f__.39X...-tO-.qff.ExZr": "v6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2--A.0.__cd..lv-_aLQbI2z" - }, - "matchExpressions": [ - { - "key": "990-17-hg1-o-p665--4-j8---t6-r7---d--uml-89.n0v-1o-0hv--k6/7rs6.0_OHz_.B-.-_w_--.8_r_N-.3n-x.-_-_-Nm-_X3.1d_YH3x---5", - "operator": "In", - "values": [ - "9_..O_.J_-G_--V-42Ec" - ] - } - ] - }, - "namespaces": [ - "279" - ], - "topologyKey": "280" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 656200799, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "8O30-_u._-2hT.-z-._7-5lL..-_--V": "a-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g-.._5" - }, - "matchExpressions": [ - { - "key": "F.-_-_-...1py_8-3..s._.x.2K_2qu0", - "operator": "In", - "values": [ - "6C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.hx_-a__o" - ] - } - ] - }, - "namespaces": [ - "287" - ], - "topologyKey": "288" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "7o7799-skj5---r-q3c.2f7ef8jzv4-9-35o-1-5w5z3-d----0p---s-9----747o-x3k/4-P.yP9S--858LI__.8____rO-S-P_-..0": "C9..__-6_k.N-2B_V.-tfh4.caTz_g" - }, - "matchExpressions": [ - { - "key": "R8D_X._B__-p", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "295" - ], - "topologyKey": "296" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1276783194, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "sxu-3po4--3os1-5-ufkr-x0u-1meljf-526989g.ze0--1----v8-2/J.Ys_Mop34_-y.8_38xm-.nx.E": "z--._4__XOnf_ZN.-_--r.E__-.8_e_l2.X" - }, - "matchExpressions": [ - { - "key": "b-w0_V", - "operator": "In", - "values": [ - "G-7--p9.-_0R.-_-3_L_2--_2" - ] - } - ] - }, - "namespaces": [ - "303" - ], - "topologyKey": "304" - } - } - ] - } - }, - "schedulerName": "305", - "tolerations": [ - { - "key": "306", - "operator": "嵐;Ƭ婦", - "value": "307", - "effect": "屏ɧeʫį淓¯Ą0", - "tolerationSeconds": -1598226175696024006 - } - ], - "hostAliases": [ - { - "ip": "308", - "hostnames": [ - "309" - ] - } - ], - "priorityClassName": "310", - "priority": 972025710, - "dnsConfig": { - "nameservers": [ - "311" - ], - "searches": [ - "312" - ], - "options": [ - { - "name": "313", - "value": "314" - } - ] - }, - "readinessGates": [ - { - "conditionType": "V曡88 u怞荊ù灹8緔Tj" - } - ], - "runtimeClassName": "315", - "enableServiceLinks": false, - "preemptionPolicy": "蓋Cȗä2 ɲ±m嵘厶sȰÖ" - }, - "status": { - "phase": "闎Ť萃Q+駟à稨氙'[\u003e", - "conditions": [ - { - "type": "'o儿Ƭ銭u裡_", - "status": "笧L唞鹚蝉茲ʛ饊ɣKIJWĶʗ{裦i÷ɷ", - "lastProbeTime": "2133-03-20T22:59:48Z", - "lastTransitionTime": "2677-01-28T11:28:56Z", - "reason": "316", - "message": "317" - } - ], - "message": "318", - "reason": "319", - "nominatedNodeName": "320", - "hostIP": "321", - "podIP": "322", - "initContainerStatuses": [ - { - "name": "323", - "state": { - "waiting": { - "reason": "324", - "message": "325" - }, - "running": { - "startedAt": "2013-04-24T10:02:35Z" - }, - "terminated": { - "exitCode": 1505385143, - "signal": -1689270564, - "reason": "326", - "message": "327", - "startedAt": "2192-01-18T21:15:00Z", - "finishedAt": "2577-06-06T11:54:07Z", - "containerID": "328" - } - }, - "lastState": { - "waiting": { - "reason": "329", - "message": "330" - }, - "running": { - "startedAt": "2771-08-30T11:17:46Z" - }, - "terminated": { - "exitCode": 730859968, - "signal": 914586751, - "reason": "331", - "message": "332", - "startedAt": "2519-04-23T00:02:46Z", - "finishedAt": "2357-03-18T07:12:21Z", - "containerID": "333" - } - }, - "ready": true, - "restartCount": 542393673, - "image": "334", - "imageID": "335", - "containerID": "336" - } - ], - "containerStatuses": [ - { - "name": "337", - "state": { - "waiting": { - "reason": "338", - "message": "339" - }, - "running": { - "startedAt": "2217-03-28T13:21:19Z" - }, - "terminated": { - "exitCode": 944461609, - "signal": -1372927161, - "reason": "340", - "message": "341", - "startedAt": "1980-06-05T00:33:39Z", - "finishedAt": "2160-05-28T02:16:53Z", - "containerID": "342" - } - }, - "lastState": { - "waiting": { - "reason": "343", - "message": "344" - }, - "running": { - "startedAt": "2734-05-17T02:59:53Z" - }, - "terminated": { - "exitCode": -1911640648, - "signal": 69185652, - "reason": "345", - "message": "346", - "startedAt": "2865-02-12T12:29:27Z", - "finishedAt": "2602-11-18T03:31:27Z", - "containerID": "347" - } - }, - "ready": true, - "restartCount": 1916113585, - "image": "348", - "imageID": "349", - "containerID": "350" - } - ], - "qosClass": "蘋`翾'ųŎ群E牬庘颮6(|ǖ" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.pb deleted file mode 100644 index a5036679503453b6280e2a3d2b966a6ee70880ae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4988 zcmYjVd01RUw(q)V(%$FOp6fE5o;S+0V?<2d+^G5St*Gk(*5oO^H8 zsZ;0ot5bDO^$sn=Lf=7C`*F7%ea>N}PbOVB(J6LG;RXpi0=o#o&GPz((kU|m%0D0U&dgJDs(=j9)~elw)vq$Dnyl6VfqP?E675`P;_N#c4- z5+zA-Fj$fqN>c179?(mw&5{V5OJGFO9hA&DDVdL^WI>>0F$PA;(jt`PfG3QS6$fbn zMA24w!WdcKZlfs$Kq$Q3;)GsBNVkI&p+#~~itMBmC7QIWoFxlJDKJXWa}h8~Qz{1w zLa97MsUg->7^X^&+vx~F(jtHOu49U_mHWr%xX?UMlWm39e=Pbg1kypN3b;Y3YAFIt zDp*x@yQKz2(J-0D5gs+Ls|oh6u71(>eQ1!q{#^CvKZJR-G$HU@g9$b8Qv*LWr48K= zO)4~L0EW`^XiDbSU5Y}2nNhb(|lVnC>|Ahb9T z`fAH%REB65qJK%C=_-My172OXS2T=VpN$I(!_y1F7RNC(dB7g#Il=KW@-CA1Fs-T( z`NKyS>%)9FB55)`Co}hvheFg;duLBUUO18>EzWyMhi3EN{JOaQ&A!T~9Pp{zz9@L_ zf9AZ8?9eF?SOO32f&eIpJwf~ndXPLN8zSwplXwI>0)!gY(3pm~(592YIvK1BP7q== z2ub)2>5^?{rUp-k(b>nodas|X+mFaO&wF+vKhW7dJs23hxaiS9S)W;1wQi=-lS>9G zG0#Hq00|&?$CEV7EO0=z03-kx0w>MS zMuJcr_tSU7#Gg&HSI!1fXm-`se7U@Kjy-tT(?vzL-5ebXPZ?EM{&`6_qPVi--*tu; zGU;_hZx6emG0TZ@ow>t`LhOkgcp&o5`4f$S{ISV1{*eo8pfvwi8_l}2t2X#9%J zzV^Y*Gv$!D>iuUg#B5E?N}_*3|J7l>}4zf8aA3B z!A2D%3H*^{2p>s_Ec)iw)msP z_Riv{zS=LY1Pc70e2cgrO6%S3{^0Ook|ZMpNJ}92Sn>|Z3WT0Tw!0$aB9NksNU0S4 zeJ)*%=qKsNX*jh6MP}{^3}2W&5Is|EwpY&&l$OfDx@|%q3mx-BR5c1^m6vw@~!Lq9iHqO9HVO#>1ge5P+x~V!a0Xh9LvVPq9w?T^W zB67Dv`s+Ue>_E)^#k-0(>f#cdiH#fD;&TBR00Auo`}mT`U^Uutw^7{0z(@ z?^`Leg1qr}nXIt!IS6@!#Vd_1K$9Ue!1FU#2WZcf&=XYG@)jzu{Y^H_dK&JxKg zV9cd~$bcUBsgjzCGsPVXCA^y5zgl05u_kLPmP4#)2K>@j;k9@*IK*Kn|E$c#*is>P2a+1ZRRjw zf!{t23k&1e=QE7wQqx4q!27{pQOn$g*_2Fn3G+}EkZVYWv3^xbvXQuwEDla*mk@3> zW3#bSVAnH`&~uXTOPrAqTAO)GF$8Lw4ys%{(HD&sBz|qjDJK)?EHGPp{Z&KWPLIo5<1LCJs&Y&m zQ6*L&Upzs>p~Fk02$KZHM&3yg24_2|PUUdj!9yhuZBUAb>kghARy47@=s}zmmxfPS##cF z7S}wp&0o{uD>%Dgjj!;KXYgf`8hM#ORXB%@p3S7ZLf|Tb?P6}LpR#{Cbn3)yksp~y z+fh{Zq56|^xgK|QElR9J^wv;bf;+-eu%k$!%H!(S6%DtO%7ceH!$VUgs||nUV4$$b zJW!D2?wsxoc6Iw3yI&3*&M`}l1j<@hg`9vR83w4c`T6L<(l^58J;~3!qS7 z4SSV0ubhg!ns@!fxltou761KKsGQ{9Z|Exyza}*x`nO@vbVdTt;H3U1G?mn-s^I+D zWc_4!wC{YgKX>%0MKi9MvXC2aZ-H)U){W89&qu>1LvE-t^GwLBsxXfcv*8-=z=77c z=Y#;OnsctZ!TG4acpz+zFsuD5vv8Av7GXOGG5w*L6zKSonC9n8Zs^^-%vW5<+f*Xrkjr<*qfy4thMO9z4jO^WBV zSyAC{shlnj*B`tFDVK-n1OX|R*VM?`+O~#~vdU9mASghPh87JrWOwyVU7OhxXG@+M zPM&G@4>kHuSC4m1wvbwc*C5aGnjWe}&`-4pDYrrti0V(Zh^X1%4mQtwe2b^pEUWeu zdUAcmy`GV$r}I|0JJMo8#RxAGW@V`rp1|%o?T{tm05Hl!_z%++|hCyZ4Xu!xlaX34y<`Bc&1_Eq`$S**IoU{@1J0v zr|*6w)yx~4>Ik|z_Xe694JOLpab|^CULPE)3Dg}49POPs5j^ekHa|Pr`@6{tGnFp~ znp?I_40s0|R_kY@xmEYrEKaNS#{XU`UTcHHs1ngUp*PI}9XoEWl2qAVD0X|V> zR?-A0{AU0{hnu3+`qrCg4*wDYK(d}a*Et?xn?BzD*V#LEgebuoB1(L;)%t1IUu&T_ z7p&Hb!IGZ)ZI&455FF2i?2*Gwlwc!+y|X92`SN+NCt3$TxcGJW24MT<+7FT77b$B+ zNda?b^4jXQh0GP-JlPi)HV1z!MD?8h^Rc<$v!sy;^w(yMhAcCz?U5IX841v1-FOL4fF@!xZU<);n@4L zB|PXrl#6gBwOZf#@N}Ugkl(eEObuQOMMlQTI3wnG!`n=5@WDO93)b0%W2L$V4R(=I0z1 Hr{(_v{?BvV diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.yaml deleted file mode 100644 index eaa61fca2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Pod.yaml +++ /dev/null @@ -1,759 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - activeDeadlineSeconds: -794751067822744844 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "269" - operator: Ⱦdz@ùƸʋŀ - values: - - "270" - matchFields: - - key: "271" - operator: ƲE'iþŹʣy豎@ɀ羭,铻OŤǢʭ - values: - - "272" - weight: -1169420648 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "265" - operator: 軶ǃ*ʙ嫙&蒒5靇 - values: - - "266" - matchFields: - - key: "267" - operator: Ŀǹ_Áȉ彂Ŵ - values: - - "268" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: F.-_-_-...1py_8-3..s._.x.2K_2qu0 - operator: In - values: - - 6C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.hx_-a__o - matchLabels: - 8O30-_u._-2hT.-z-._7-5lL..-_--V: a-_gn.8-c.C3_F._oX-F9_.5vN5.25aWx.2aM214_.-N_g-.._5 - namespaces: - - "287" - topologyKey: "288" - weight: 656200799 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 990-17-hg1-o-p665--4-j8---t6-r7---d--uml-89.n0v-1o-0hv--k6/7rs6.0_OHz_.B-.-_w_--.8_r_N-.3n-x.-_-_-Nm-_X3.1d_YH3x---5 - operator: In - values: - - 9_..O_.J_-G_--V-42Ec - matchLabels: - X_VBC.Jn4f__.39X...-tO-.qff.ExZr: v6.-m..-_-.f9--Q3_Y.5.-..P_pDZ-._._t__2--A.0.__cd..lv-_aLQbI2z - namespaces: - - "279" - topologyKey: "280" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: b-w0_V - operator: In - values: - - G-7--p9.-_0R.-_-3_L_2--_2 - matchLabels: - sxu-3po4--3os1-5-ufkr-x0u-1meljf-526989g.ze0--1----v8-2/J.Ys_Mop34_-y.8_38xm-.nx.E: z--._4__XOnf_ZN.-_--r.E__-.8_e_l2.X - namespaces: - - "303" - topologyKey: "304" - weight: -1276783194 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: R8D_X._B__-p - operator: Exists - matchLabels: - 7o7799-skj5---r-q3c.2f7ef8jzv4-9-35o-1-5w5z3-d----0p---s-9----747o-x3k/4-P.yP9S--858LI__.8____rO-S-P_-..0: C9..__-6_k.N-2B_V.-tfh4.caTz_g - namespaces: - - "295" - topologyKey: "296" - automountServiceAccountToken: true - containers: - - args: - - "193" - command: - - "192" - env: - - name: "200" - value: "201" - valueFrom: - configMapKeyRef: - key: "207" - name: "206" - optional: false - fieldRef: - apiVersion: "202" - fieldPath: "203" - resourceFieldRef: - containerName: "204" - divisor: "912" - resource: "205" - secretKeyRef: - key: "209" - name: "208" - optional: true - envFrom: - - configMapRef: - name: "198" - optional: true - prefix: "197" - secretRef: - name: "199" - optional: true - image: "191" - imagePullPolicy: H炮掊°nʮ閼咎櫸eʔŊƞ究:ho - lifecycle: - postStart: - exec: - command: - - "228" - httpGet: - host: "231" - httpHeaders: - - name: "232" - value: "233" - path: "229" - port: "230" - scheme: á腿ħ缶.蒅!a坩O`涁İ而踪鄌eÞ - tcpSocket: - host: "234" - port: -1319491110 - preStop: - exec: - command: - - "235" - httpGet: - host: "238" - httpHeaders: - - name: "239" - value: "240" - path: "236" - port: "237" - scheme: T捘ɍi縱ù墴 - tcpSocket: - host: "241" - port: -1766555420 - livenessProbe: - exec: - command: - - "216" - failureThreshold: 1850174529 - httpGet: - host: "218" - httpHeaders: - - name: "219" - value: "220" - path: "217" - port: 273818613 - scheme: æNǚ錯ƶRq - initialDelaySeconds: -1896921306 - periodSeconds: 2032557749 - successThreshold: -1893103047 - tcpSocket: - host: "221" - port: 811476979 - timeoutSeconds: 715087892 - name: "190" - ports: - - containerPort: -155814081 - hostIP: "196" - hostPort: -2068962521 - name: "195" - protocol: ɩÅ議Ǹ轺@)蓳嗘TʡȂ - readinessProbe: - exec: - command: - - "222" - failureThreshold: -172061933 - httpGet: - host: "224" - httpHeaders: - - name: "225" - value: "226" - path: "223" - port: 1035477124 - scheme: ǚrǜnh0åȂ - initialDelaySeconds: 1669671203 - periodSeconds: -2026931030 - successThreshold: -1843754483 - tcpSocket: - host: "227" - port: -1024794140 - timeoutSeconds: 636617833 - resources: - limits: - ɹ坼É/pȿ: "804" - requests: - 妻ƅTGS5Ǎ: "526" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 瀐<ɉ湨H=å睫}堇硲 - drop: - - "" - privileged: false - procMount: 閝ȝ - readOnlyRootFilesystem: false - runAsGroup: 6028937828108618026 - runAsNonRoot: false - runAsUser: 1854486716537076238 - seLinuxOptions: - level: "246" - role: "244" - type: "245" - user: "243" - windowsOptions: - gmsaCredentialSpec: "248" - gmsaCredentialSpecName: "247" - stdin: true - terminationMessagePath: "242" - terminationMessagePolicy: 贫d飼$俊跾|@?鷅bȻN - volumeDevices: - - devicePath: "215" - name: "214" - volumeMounts: - - mountPath: "211" - mountPropagation: 穠C]躢|)黰eȪ嵛4$%Qɰ - name: "210" - subPath: "212" - subPathExpr: "213" - workingDir: "194" - dnsConfig: - nameservers: - - "311" - options: - - name: "313" - value: "314" - searches: - - "312" - dnsPolicy: '鐅臬dH巧壚tC十Oɢǵʭd鲡:' - enableServiceLinks: false - hostAliases: - - hostnames: - - "309" - ip: "308" - hostIPC: true - hostNetwork: true - hostname: "263" - imagePullSecrets: - - name: "262" - initContainers: - - args: - - "132" - command: - - "131" - env: - - name: "139" - value: "140" - valueFrom: - configMapKeyRef: - key: "146" - name: "145" - optional: true - fieldRef: - apiVersion: "141" - fieldPath: "142" - resourceFieldRef: - containerName: "143" - divisor: "85" - resource: "144" - secretKeyRef: - key: "148" - name: "147" - optional: true - envFrom: - - configMapRef: - name: "137" - optional: true - prefix: "136" - secretRef: - name: "138" - optional: false - image: "130" - imagePullPolicy: ʖ畬x骀Šĸů湙騘&啞川J缮ǚb - lifecycle: - postStart: - exec: - command: - - "169" - httpGet: - host: "172" - httpHeaders: - - name: "173" - value: "174" - path: "170" - port: "171" - scheme: Ğİ*洣炽A@ʊʓ - tcpSocket: - host: "175" - port: -675641027 - preStop: - exec: - command: - - "176" - httpGet: - host: "178" - httpHeaders: - - name: "179" - value: "180" - path: "177" - port: 1781137795 - scheme: ş")珷 - tcpSocket: - host: "182" - port: "181" - livenessProbe: - exec: - command: - - "155" - failureThreshold: 327574193 - httpGet: - host: "158" - httpHeaders: - - name: "159" - value: "160" - path: "156" - port: "157" - scheme: 叚Fi皬择,Q捇ȸ{ - initialDelaySeconds: 753533242 - periodSeconds: 358822621 - successThreshold: 1946649472 - tcpSocket: - host: "162" - port: "161" - timeoutSeconds: 1130962147 - name: "129" - ports: - - containerPort: 654894632 - hostIP: "135" - hostPort: 33624773 - name: "134" - protocol: 譋娲瘹ɭȊɚɎ( - readinessProbe: - exec: - command: - - "163" - failureThreshold: -773009446 - httpGet: - host: "165" - httpHeaders: - - name: "166" - value: "167" - path: "164" - port: 1407547486 - scheme: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - initialDelaySeconds: -216367368 - periodSeconds: 2073854558 - successThreshold: -557582532 - tcpSocket: - host: "168" - port: -375094516 - timeoutSeconds: 578888856 - resources: - limits: - h^樅燴壩卄: "967" - requests: - Æ碛,1ZƜ/C龷ȪÆ: "750" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - ʬ - drop: - - ʞĹ鑑6NJPM饣`诫z徃鷢6ȥ啕禗Ǐ - privileged: false - procMount: fƻfʣ繡楙¯Ħ - readOnlyRootFilesystem: true - runAsGroup: 8400763836388347832 - runAsNonRoot: false - runAsUser: -1492841452396704228 - seLinuxOptions: - level: "187" - role: "185" - type: "186" - user: "184" - windowsOptions: - gmsaCredentialSpec: "189" - gmsaCredentialSpecName: "188" - stdin: true - stdinOnce: true - terminationMessagePath: "183" - terminationMessagePolicy: 'ɖgȏ哙ȍȂ揲ȼDDŽLŬp:' - volumeDevices: - - devicePath: "154" - name: "153" - volumeMounts: - - mountPath: "150" - mountPropagation: 鏮嵒ƫS捕ɷD¡轫n - name: "149" - subPath: "151" - subPathExpr: "152" - workingDir: "133" - nodeName: "253" - nodeSelector: - "249": "250" - preemptionPolicy: 蓋Cȗä2 ɲ±m嵘厶sȰÖ - priority: 972025710 - priorityClassName: "310" - readinessGates: - - conditionType: V曡88 u怞荊ù灹8緔Tj - restartPolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - runtimeClassName: "315" - schedulerName: "305" - securityContext: - fsGroup: -593458796014416333 - runAsGroup: -8613233602682451586 - runAsNonRoot: true - runAsUser: 5931396084150122130 - seLinuxOptions: - level: "257" - role: "255" - type: "256" - user: "254" - supplementalGroups: - - 4875570291212151521 - sysctls: - - name: "260" - value: "261" - windowsOptions: - gmsaCredentialSpec: "259" - gmsaCredentialSpecName: "258" - serviceAccount: "252" - serviceAccountName: "251" - shareProcessNamespace: false - subdomain: "264" - terminationGracePeriodSeconds: -7405213391132590787 - tolerations: - - effect: 屏ɧeʫį淓¯Ą0 - key: "306" - operator: 嵐;Ƭ婦 - tolerationSeconds: -1598226175696024006 - value: "307" - volumes: - - awsElasticBlockStore: - fsType: "29" - partition: -1161251830 - volumeID: "28" - azureDisk: - cachingMode: l畣潁谯耨V6&]鴍Ɋ恧ȭ%Ǝ - diskName: "92" - diskURI: "93" - fsType: "94" - kind: "" - readOnly: true - azureFile: - secretName: "78" - shareName: "79" - cephfs: - monitors: - - "63" - path: "64" - secretFile: "66" - secretRef: - name: "67" - user: "65" - cinder: - fsType: "61" - secretRef: - name: "62" - volumeID: "60" - configMap: - defaultMode: -314157282 - items: - - key: "81" - mode: -983896210 - path: "82" - name: "80" - optional: false - csi: - driver: "124" - fsType: "125" - nodePublishSecretRef: - name: "128" - readOnly: true - volumeAttributes: - "126": "127" - downwardAPI: - defaultMode: 13677460 - items: - - fieldRef: - apiVersion: "71" - fieldPath: "72" - mode: 684408190 - path: "70" - resourceFieldRef: - containerName: "73" - divisor: "248" - resource: "74" - emptyDir: - medium: Ž燹憍峕?狱³-Ǐ忄*齧獚敆Ȏț - sizeLimit: "2" - fc: - fsType: "76" - lun: -1579157235 - readOnly: true - targetWWNs: - - "75" - wwids: - - "77" - flexVolume: - driver: "55" - fsType: "56" - options: - "58": "59" - readOnly: true - secretRef: - name: "57" - flocker: - datasetName: "68" - datasetUUID: "69" - gcePersistentDisk: - fsType: "27" - partition: 116584168 - pdName: "26" - readOnly: true - gitRepo: - directory: "32" - repository: "30" - revision: "31" - glusterfs: - endpoints: "45" - path: "46" - readOnly: true - hostPath: - path: "25" - type: ěĂ凗蓏Ŋ蛊ĉy緅縕 - iscsi: - fsType: "41" - initiatorName: "44" - iqn: "39" - iscsiInterface: "40" - lun: -1639873916 - portals: - - "42" - readOnly: true - secretRef: - name: "43" - targetPortal: "38" - name: "24" - nfs: - path: "37" - readOnly: true - server: "36" - persistentVolumeClaim: - claimName: "47" - photonPersistentDisk: - fsType: "96" - pdID: "95" - portworxVolume: - fsType: "111" - volumeID: "110" - projected: - defaultMode: 1794524651 - sources: - - configMap: - items: - - key: "106" - mode: -1870473043 - path: "107" - name: "105" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "101" - fieldPath: "102" - mode: -1009864962 - path: "100" - resourceFieldRef: - containerName: "103" - divisor: "272" - resource: "104" - secret: - items: - - key: "98" - mode: -1907421291 - path: "99" - name: "97" - optional: false - serviceAccountToken: - audience: "108" - expirationSeconds: 4696918449912036583 - path: "109" - quobyte: - group: "90" - registry: "87" - tenant: "91" - user: "89" - volume: "88" - rbd: - fsType: "50" - image: "49" - keyring: "53" - monitors: - - "48" - pool: "51" - readOnly: true - secretRef: - name: "54" - user: "52" - scaleIO: - fsType: "119" - gateway: "112" - protectionDomain: "115" - secretRef: - name: "114" - storageMode: "117" - storagePool: "116" - system: "113" - volumeName: "118" - secret: - defaultMode: -1946655205 - items: - - key: "34" - mode: -1261508418 - path: "35" - optional: true - secretName: "33" - storageos: - fsType: "122" - secretRef: - name: "123" - volumeName: "120" - volumeNamespace: "121" - vsphereVolume: - fsType: "84" - storagePolicyID: "86" - storagePolicyName: "85" - volumePath: "83" -status: - conditions: - - lastProbeTime: "2133-03-20T22:59:48Z" - lastTransitionTime: "2677-01-28T11:28:56Z" - message: "317" - reason: "316" - status: 笧L唞鹚蝉茲ʛ饊ɣKIJWĶʗ{裦i÷ɷ - type: '''o儿Ƭ銭u裡_' - containerStatuses: - - containerID: "350" - image: "348" - imageID: "349" - lastState: - running: - startedAt: "2734-05-17T02:59:53Z" - terminated: - containerID: "347" - exitCode: -1911640648 - finishedAt: "2602-11-18T03:31:27Z" - message: "346" - reason: "345" - signal: 69185652 - startedAt: "2865-02-12T12:29:27Z" - waiting: - message: "344" - reason: "343" - name: "337" - ready: true - restartCount: 1916113585 - state: - running: - startedAt: "2217-03-28T13:21:19Z" - terminated: - containerID: "342" - exitCode: 944461609 - finishedAt: "2160-05-28T02:16:53Z" - message: "341" - reason: "340" - signal: -1372927161 - startedAt: "1980-06-05T00:33:39Z" - waiting: - message: "339" - reason: "338" - hostIP: "321" - initContainerStatuses: - - containerID: "336" - image: "334" - imageID: "335" - lastState: - running: - startedAt: "2771-08-30T11:17:46Z" - terminated: - containerID: "333" - exitCode: 730859968 - finishedAt: "2357-03-18T07:12:21Z" - message: "332" - reason: "331" - signal: 914586751 - startedAt: "2519-04-23T00:02:46Z" - waiting: - message: "330" - reason: "329" - name: "323" - ready: true - restartCount: 542393673 - state: - running: - startedAt: "2013-04-24T10:02:35Z" - terminated: - containerID: "328" - exitCode: 1505385143 - finishedAt: "2577-06-06T11:54:07Z" - message: "327" - reason: "326" - signal: -1689270564 - startedAt: "2192-01-18T21:15:00Z" - waiting: - message: "325" - reason: "324" - message: "318" - nominatedNodeName: "320" - phase: 闎Ť萃Q+駟à稨氙'[> - podIP: "322" - qosClass: 蘋`翾'ųŎ群E牬庘颮6(|ǖ - reason: "319" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.json deleted file mode 100644 index b2f3956e9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "kind": "PodAttachOptions", - "apiVersion": "v1", - "stdin": true, - "stderr": true, - "container": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodAttachOptions.pb deleted file mode 100644 index 359a779b9ec310e263b45afdf89934d205cd9fb8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45 zcmd0{C}!Xi<6Z)8kwXHRf+X>V?G5-17*G7te603i0`=s29Y_EG diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodLogOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodLogOptions.yaml deleted file mode 100644 index 845f9e455..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodLogOptions.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -container: "2" -follow: true -kind: PodLogOptions -limitBytes: 5323465663502687351 -sinceSeconds: 1002466899136229878 -tailLines: -6357999603795826160 -timestamps: true diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.json deleted file mode 100644 index bdd91aa3c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "kind": "PodPortForwardOptions", - "apiVersion": "v1", - "ports": [ - -1477656590 - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.pb deleted file mode 100644 index da9223a26e243785ca890b04328a2da393fb618a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 50 zcmd0{C}!Z2=3*){6cP={PYK8`Dsjs%Do-p*@h>RJ%+D(p;^z4Df7AY7|ABx}ib071 E0HJ;pSpWb4 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.yaml deleted file mode 100644 index 1f83d977f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodPortForwardOptions.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: PodPortForwardOptions -ports: -- -1477656590 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.json deleted file mode 100644 index 1ab7ba0c4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "PodProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodProxyOptions.pb deleted file mode 100644 index c52bc3375bcc74b85722e4def402c5a4d23939cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 36 rcmd0{C}!Xiuc-7dD9OyvD;8qrVlF|90%}uugu2;H4N!tPBw>FHq4p#W@cwQ#nvH2LXvEy zcHLB3)66XYp_r0b>6(cL*WJ}htkjC2g4lJJsMI=`DfV`%cX{szkI(nZ?~HC|*c29C zl=E;8m<_B89lNago7vVj!X4Mp|N)|;Yx~6IpCRY9Zx5@>Fr`1tnW3mTakE@(_XIsZW z{tgycc%Yw3W`UK5vQ(VLLKzECCgQFm6_GJt_}XRrlsi~gVurFTF*+!PvQhzM)eX|= zSB>8ruXjg$?s(^|skZdvk=93(BZV2$zAMoNhbcPR6sRennguibhi&Z6U{lB+?9ei1 z8uR!pHq{iE2)mbjZLz`nc!wwC%nh{%>vH+j^iW-7qS_oE?^*J;L>p_u*Tc6b`vio7 zEnS1993vw1^T+e<0**05tYC;$0b)&r*g|J3hD5Rr0TwDMe~d-+)_AB`c$P(I<#m-q z;ut|gZ)RPee{azPIIpYvMdGyu1gPjDRIFx%K6<|N0gk~4wcMDvqjStbs7k`ogr~|p zRI%Z$Ew9cbQBOi|2ZwXGu6Mo9{!1zmp{h{Hzq!7)&yeQk7l*P8Nljx+SDX8XlQC2^ zDqCz&)iY7BF*|azGU&<~p!JFTw?4r>>qGq>UG53T*HPZSXn zm4=SIjCG$gLLV+a-8hj5C7N(JQJ+|-ryJh-{CI5&_4cF9@7V-2t)E9Y_=z o`_$80Y#_A_bM1!`h$5!}(~|SvtL+#nn9jro6(t{HU0_7!4?=(df&c&j diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.after_roundtrip.yaml deleted file mode 100644 index cbaca3309..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.after_roundtrip.yaml +++ /dev/null @@ -1,115 +0,0 @@ -apiVersion: v1 -kind: PodStatusResult -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -status: - conditions: - - lastProbeTime: "2942-12-08T14:55:02Z" - lastTransitionTime: "2763-08-05T14:40:52Z" - message: "25" - reason: "24" - status: -Ǐ忄*齧獚敆Ȏțê - type: (ĿȊ甞谐颋DžSǡƏS - containerStatuses: - - containerID: "58" - image: "56" - imageID: "57" - lastState: - running: - startedAt: "2017-07-05T09:59:20Z" - terminated: - containerID: "55" - exitCode: 172857432 - finishedAt: "2619-11-08T20:15:12Z" - message: "54" - reason: "53" - signal: -110482268 - startedAt: "2301-04-13T22:07:52Z" - waiting: - message: "52" - reason: "51" - name: "45" - ready: false - restartCount: 1993018368 - state: - running: - startedAt: "2378-05-17T18:35:29Z" - terminated: - containerID: "50" - exitCode: -1134418089 - finishedAt: "2448-04-25T19:46:34Z" - message: "49" - reason: "48" - signal: -106888179 - startedAt: "1981-05-09T15:33:51Z" - waiting: - message: "47" - reason: "46" - hostIP: "29" - initContainerStatuses: - - containerID: "44" - image: "42" - imageID: "43" - lastState: - running: - startedAt: "2149-06-18T16:38:18Z" - terminated: - containerID: "41" - exitCode: 254375933 - finishedAt: "2516-08-23T06:28:28Z" - message: "40" - reason: "39" - signal: 523306325 - startedAt: "2874-05-09T23:28:59Z" - waiting: - message: "38" - reason: "37" - name: "31" - ready: true - restartCount: 1246233319 - state: - running: - startedAt: "2399-02-06T09:57:06Z" - terminated: - containerID: "36" - exitCode: -1487653240 - finishedAt: "2777-11-15T04:18:59Z" - message: "35" - reason: "34" - signal: -1997863172 - startedAt: "2908-03-20T00:45:43Z" - waiting: - message: "33" - reason: "32" - message: "26" - nominatedNodeName: "28" - phase: ƗǸƢ6/ʕV - podIP: "30" - qosClass: ƕP喂ƈ - reason: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.json deleted file mode 100644 index 146d4fd0e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "kind": "PodStatusResult", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "status": { - "phase": "ƗǸƢ6/ʕV", - "conditions": [ - { - "type": "(ĿȊ甞谐颋DžSǡƏS", - "status": "-Ǐ忄*齧獚敆Ȏțê", - "lastProbeTime": "2942-12-08T14:55:02Z", - "lastTransitionTime": "2763-08-05T14:40:52Z", - "reason": "24", - "message": "25" - } - ], - "message": "26", - "reason": "27", - "nominatedNodeName": "28", - "hostIP": "29", - "podIP": "30", - "initContainerStatuses": [ - { - "name": "31", - "state": { - "waiting": { - "reason": "32", - "message": "33" - }, - "running": { - "startedAt": "2399-02-06T09:57:06Z" - }, - "terminated": { - "exitCode": -1487653240, - "signal": -1997863172, - "reason": "34", - "message": "35", - "startedAt": "2908-03-20T00:45:43Z", - "finishedAt": "2777-11-15T04:18:59Z", - "containerID": "36" - } - }, - "lastState": { - "waiting": { - "reason": "37", - "message": "38" - }, - "running": { - "startedAt": "2149-06-18T16:38:18Z" - }, - "terminated": { - "exitCode": 254375933, - "signal": 523306325, - "reason": "39", - "message": "40", - "startedAt": "2874-05-09T23:28:59Z", - "finishedAt": "2516-08-23T06:28:28Z", - "containerID": "41" - } - }, - "ready": true, - "restartCount": 1246233319, - "image": "42", - "imageID": "43", - "containerID": "44" - } - ], - "containerStatuses": [ - { - "name": "45", - "state": { - "waiting": { - "reason": "46", - "message": "47" - }, - "running": { - "startedAt": "2378-05-17T18:35:29Z" - }, - "terminated": { - "exitCode": -1134418089, - "signal": -106888179, - "reason": "48", - "message": "49", - "startedAt": "1981-05-09T15:33:51Z", - "finishedAt": "2448-04-25T19:46:34Z", - "containerID": "50" - } - }, - "lastState": { - "waiting": { - "reason": "51", - "message": "52" - }, - "running": { - "startedAt": "2017-07-05T09:59:20Z" - }, - "terminated": { - "exitCode": 172857432, - "signal": -110482268, - "reason": "53", - "message": "54", - "startedAt": "2301-04-13T22:07:52Z", - "finishedAt": "2619-11-08T20:15:12Z", - "containerID": "55" - } - }, - "ready": false, - "restartCount": 1993018368, - "image": "56", - "imageID": "57", - "containerID": "58" - } - ], - "qosClass": "ƕP喂ƈ" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.pb deleted file mode 100644 index 61ac9e044bba60fbb9087e4928f967bc2b0b93e2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 734 zcmXxgUr19?90%}wPN|0**yWHu+$XyaF&5^%=l(v^x2&TU$Wm6{P$5StrOsr6u{*x9Yl%kTW)$LIIucUHGEY!VAE zNqBeWg)`YD`6Z?HtO9%Kxe`1U$1VXD5Da7GnOim>zC(oBQ~B^D`xPA z9qcZDQ^4!*(9&iab8rTmZ1PP6UCRw^k-@rXhdWS}9ccI0X5-}4Ky7HE(i|P{S@yJq z8>@pif_EnSc!c~dU4z9OBOvti$BXVfjxj@`5J*%W5>0@_LVGKLvS=FuEL2o{oJF*1 z7%CRbvIwodsc?uK!)xg6tn>5lZTbM`aaO*J{k8!Q6wW%TQe^?E3YEND8|(WFX>NXTD8rD{ z6vlL|xqmo;Kvko%#RgS99r+tGL$}KP&a43%UzYyHmkEZlY^+;bT=fzozVqwcvkfCN zx9RB*tpAHID*}{Nx^(1Kr2D+F^wG-L=E>MnS>uny;>#B5>4vv4KVFkWz5QtGd-r8- z!R7l!Zy;Og4Md8Je(LEhG?1G5x%R^`M3GW}X}RkD>zxEDg!ZxxDoQRSI?o8qAB2Vh A`2YX_ diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.yaml deleted file mode 100644 index 45c5fd94b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodStatusResult.yaml +++ /dev/null @@ -1,118 +0,0 @@ -apiVersion: v1 -kind: PodStatusResult -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -status: - conditions: - - lastProbeTime: "2942-12-08T14:55:02Z" - lastTransitionTime: "2763-08-05T14:40:52Z" - message: "25" - reason: "24" - status: -Ǐ忄*齧獚敆Ȏțê - type: (ĿȊ甞谐颋DžSǡƏS - containerStatuses: - - containerID: "58" - image: "56" - imageID: "57" - lastState: - running: - startedAt: "2017-07-05T09:59:20Z" - terminated: - containerID: "55" - exitCode: 172857432 - finishedAt: "2619-11-08T20:15:12Z" - message: "54" - reason: "53" - signal: -110482268 - startedAt: "2301-04-13T22:07:52Z" - waiting: - message: "52" - reason: "51" - name: "45" - ready: false - restartCount: 1993018368 - state: - running: - startedAt: "2378-05-17T18:35:29Z" - terminated: - containerID: "50" - exitCode: -1134418089 - finishedAt: "2448-04-25T19:46:34Z" - message: "49" - reason: "48" - signal: -106888179 - startedAt: "1981-05-09T15:33:51Z" - waiting: - message: "47" - reason: "46" - hostIP: "29" - initContainerStatuses: - - containerID: "44" - image: "42" - imageID: "43" - lastState: - running: - startedAt: "2149-06-18T16:38:18Z" - terminated: - containerID: "41" - exitCode: 254375933 - finishedAt: "2516-08-23T06:28:28Z" - message: "40" - reason: "39" - signal: 523306325 - startedAt: "2874-05-09T23:28:59Z" - waiting: - message: "38" - reason: "37" - name: "31" - ready: true - restartCount: 1246233319 - state: - running: - startedAt: "2399-02-06T09:57:06Z" - terminated: - containerID: "36" - exitCode: -1487653240 - finishedAt: "2777-11-15T04:18:59Z" - message: "35" - reason: "34" - signal: -1997863172 - startedAt: "2908-03-20T00:45:43Z" - waiting: - message: "33" - reason: "32" - message: "26" - nominatedNodeName: "28" - phase: ƗǸƢ6/ʕV - podIP: "30" - qosClass: ƕP喂ƈ - reason: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.json deleted file mode 100644 index d4d4f26fe..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.json +++ /dev/null @@ -1,1031 +0,0 @@ -{ - "kind": "PodTemplate", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "45", - "hostPath": { - "path": "46", - "type": "DrȮ" - }, - "emptyDir": { - "medium": "励鹗塢ē ", - "sizeLimit": "995" - }, - "gcePersistentDisk": { - "pdName": "47", - "fsType": "48", - "partition": -664310043, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "49", - "fsType": "50", - "partition": 13677460, - "readOnly": true - }, - "gitRepo": { - "repository": "51", - "revision": "52", - "directory": "53" - }, - "secret": { - "secretName": "54", - "items": [ - { - "key": "55", - "path": "56", - "mode": 1557090007 - } - ], - "defaultMode": 819364842, - "optional": true - }, - "nfs": { - "server": "57", - "path": "58" - }, - "iscsi": { - "targetPortal": "59", - "iqn": "60", - "lun": -314157282, - "iscsiInterface": "61", - "fsType": "62", - "readOnly": true, - "portals": [ - "63" - ], - "secretRef": { - "name": "64" - }, - "initiatorName": "65" - }, - "glusterfs": { - "endpoints": "66", - "path": "67", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "68", - "readOnly": true - }, - "rbd": { - "monitors": [ - "69" - ], - "image": "70", - "fsType": "71", - "pool": "72", - "user": "73", - "keyring": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "76", - "fsType": "77", - "secretRef": { - "name": "78" - }, - "readOnly": true, - "options": { - "79": "80" - } - }, - "cinder": { - "volumeID": "81", - "fsType": "82", - "readOnly": true, - "secretRef": { - "name": "83" - } - }, - "cephfs": { - "monitors": [ - "84" - ], - "path": "85", - "user": "86", - "secretFile": "87", - "secretRef": { - "name": "88" - } - }, - "flocker": { - "datasetName": "89", - "datasetUUID": "90" - }, - "downwardAPI": { - "items": [ - { - "path": "91", - "fieldRef": { - "apiVersion": "92", - "fieldPath": "93" - }, - "resourceFieldRef": { - "containerName": "94", - "resource": "95", - "divisor": "291" - }, - "mode": 2107119206 - } - ], - "defaultMode": -2077638334 - }, - "fc": { - "targetWWNs": [ - "96" - ], - "lun": -2040518604, - "fsType": "97", - "wwids": [ - "98" - ] - }, - "azureFile": { - "secretName": "99", - "shareName": "100" - }, - "configMap": { - "name": "101", - "items": [ - { - "key": "102", - "path": "103", - "mode": -1907421291 - } - ], - "defaultMode": -1570767512, - "optional": false - }, - "vsphereVolume": { - "volumePath": "104", - "fsType": "105", - "storagePolicyName": "106", - "storagePolicyID": "107" - }, - "quobyte": { - "registry": "108", - "volume": "109", - "readOnly": true, - "user": "110", - "group": "111", - "tenant": "112" - }, - "azureDisk": { - "diskName": "113", - "diskURI": "114", - "cachingMode": "n宂¬轚9Ȏ瀮", - "fsType": "115", - "readOnly": true, - "kind": "Ō¾\\ĒP鄸靇杧ž譋娲瘹ɭ" - }, - "photonPersistentDisk": { - "pdID": "116", - "fsType": "117" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "118", - "items": [ - { - "key": "119", - "path": "120", - "mode": 2036549700 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "121", - "fieldRef": { - "apiVersion": "122", - "fieldPath": "123" - }, - "resourceFieldRef": { - "containerName": "124", - "resource": "125", - "divisor": "852" - }, - "mode": 75785535 - } - ] - }, - "configMap": { - "name": "126", - "items": [ - { - "key": "127", - "path": "128", - "mode": 813865935 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "129", - "expirationSeconds": 3094703520378368232, - "path": "130" - } - } - ], - "defaultMode": -1253565243 - }, - "portworxVolume": { - "volumeID": "131", - "fsType": "132" - }, - "scaleIO": { - "gateway": "133", - "system": "134", - "secretRef": { - "name": "135" - }, - "sslEnabled": true, - "protectionDomain": "136", - "storagePool": "137", - "storageMode": "138", - "volumeName": "139", - "fsType": "140" - }, - "storageos": { - "volumeName": "141", - "volumeNamespace": "142", - "fsType": "143", - "readOnly": true, - "secretRef": { - "name": "144" - } - }, - "csi": { - "driver": "145", - "readOnly": true, - "fsType": "146", - "volumeAttributes": { - "147": "148" - }, - "nodePublishSecretRef": { - "name": "149" - } - } - } - ], - "initContainers": [ - { - "name": "150", - "image": "151", - "command": [ - "152" - ], - "args": [ - "153" - ], - "workingDir": "154", - "ports": [ - { - "name": "155", - "hostPort": -737070070, - "containerPort": -1417286635, - "protocol": "/C龷ȪÆl殛瓷雼浢Ü礽绅", - "hostIP": "156" - } - ], - "envFrom": [ - { - "prefix": "157", - "configMapRef": { - "name": "158", - "optional": true - }, - "secretRef": { - "name": "159", - "optional": false - } - } - ], - "env": [ - { - "name": "160", - "value": "161", - "valueFrom": { - "fieldRef": { - "apiVersion": "162", - "fieldPath": "163" - }, - "resourceFieldRef": { - "containerName": "164", - "resource": "165", - "divisor": "526" - }, - "configMapKeyRef": { - "name": "166", - "key": "167", - "optional": false - }, - "secretKeyRef": { - "name": "168", - "key": "169", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "i皬择,Q捇ȸ{+ɸ殁Ka縳": "499" - }, - "requests": { - "笓珣筩ƐP_痸荎": "787" - } - }, - "volumeMounts": [ - { - "name": "170", - "mountPath": "171", - "subPath": "172", - "mountPropagation": "¿燥ǖ_è绺", - "subPathExpr": "173" - } - ], - "volumeDevices": [ - { - "name": "174", - "devicePath": "175" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "176" - ] - }, - "httpGet": { - "path": "177", - "port": -662805900, - "host": "178", - "httpHeaders": [ - { - "name": "179", - "value": "180" - } - ] - }, - "tcpSocket": { - "port": "181", - "host": "182" - }, - "initialDelaySeconds": 578888856, - "timeoutSeconds": 2073854558, - "periodSeconds": -557582532, - "successThreshold": -773009446, - "failureThreshold": -1040245211 - }, - "readinessProbe": { - "exec": { - "command": [ - "183" - ] - }, - "httpGet": { - "path": "184", - "port": -2064088433, - "host": "185", - "scheme": "Do©Ǿt'容柚ʕIã陫ʋs", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 229600975, - "timeoutSeconds": -35598353, - "periodSeconds": -1697933829, - "successThreshold": -1438986781, - "failureThreshold": -330720710 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1348141491, - "host": "192", - "scheme": "Ȃ揲ȼ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - } - }, - "preStop": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 468716734, - "host": "199", - "scheme": "Cʖ畬x骀", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - } - }, - "terminationMessagePath": "204", - "terminationMessagePolicy": "ů湙騘\u0026", - "imagePullPolicy": "Ȗ脵鴈Ō", - "securityContext": { - "capabilities": { - "add": [ - "yǠ/淹\\韲翁\u0026ʢsɜ" - ], - "drop": [ - "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "205", - "role": "206", - "type": "207", - "level": "208" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "209", - "gmsaCredentialSpec": "210" - }, - "runAsUser": 8685765401091182865, - "runAsGroup": -4139900758039117471, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^" - }, - "tty": true - } - ], - "containers": [ - { - "name": "211", - "image": "212", - "command": [ - "213" - ], - "args": [ - "214" - ], - "workingDir": "215", - "ports": [ - { - "name": "216", - "hostPort": -239302370, - "containerPort": -1215463021, - "protocol": "ăȲϤĦʅ芝", - "hostIP": "217" - } - ], - "envFrom": [ - { - "prefix": "218", - "configMapRef": { - "name": "219", - "optional": false - }, - "secretRef": { - "name": "220", - "optional": true - } - } - ], - "env": [ - { - "name": "221", - "value": "222", - "valueFrom": { - "fieldRef": { - "apiVersion": "223", - "fieldPath": "224" - }, - "resourceFieldRef": { - "containerName": "225", - "resource": "226", - "divisor": "706" - }, - "configMapKeyRef": { - "name": "227", - "key": "228", - "optional": false - }, - "secretKeyRef": { - "name": "229", - "key": "230", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "*ĕʄő芖{|ǘ\"^饣": "254" - }, - "requests": { - "Ř阌Ŗ怳冘HǺƶȤ^}穠C]躢|)黰": "190" - } - }, - "volumeMounts": [ - { - "name": "231", - "readOnly": true, - "mountPath": "232", - "subPath": "233", - "mountPropagation": "ȫşŇɜa", - "subPathExpr": "234" - } - ], - "volumeDevices": [ - { - "name": "235", - "devicePath": "236" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "237" - ] - }, - "httpGet": { - "path": "238", - "port": "239", - "host": "240", - "scheme": "抴ŨfZhUʎ浵ɲõ", - "httpHeaders": [ - { - "name": "241", - "value": "242" - } - ] - }, - "tcpSocket": { - "port": -1980941277, - "host": "243" - }, - "initialDelaySeconds": -124607411, - "timeoutSeconds": -1967211777, - "periodSeconds": -2138399859, - "successThreshold": 943356038, - "failureThreshold": 1499244521 - }, - "readinessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": "246", - "host": "247", - "scheme": "A徙ɶɊł/擇ɦĽ胚", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": -1502363275, - "host": "250" - }, - "initialDelaySeconds": -1950133943, - "timeoutSeconds": -65465189, - "periodSeconds": 1836896522, - "successThreshold": -2101285839, - "failureThreshold": 2064656704 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": "253", - "host": "254", - "scheme": "Hǝ呮}臷Ľð»", - "httpHeaders": [ - { - "name": "255", - "value": "256" - } - ] - }, - "tcpSocket": { - "port": "257", - "host": "258" - } - }, - "preStop": { - "exec": { - "command": [ - "259" - ] - }, - "httpGet": { - "path": "260", - "port": "261", - "host": "262", - "scheme": "鄌eÞȦY籎顒", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - } - } - }, - "terminationMessagePath": "267", - "terminationMessagePolicy": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "imagePullPolicy": "?鷅bȻN", - "securityContext": { - "capabilities": { - "add": [ - "榱*Gưoɘ檲" - ], - "drop": [ - "銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "268", - "role": "269", - "type": "270", - "level": "271" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "272", - "gmsaCredentialSpec": "273" - }, - "runAsUser": 2498881510781298156, - "runAsGroup": 1396880349510758210, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "猀2:ö" - }, - "stdinOnce": true - } - ], - "restartPolicy": "5w垁鷌辪虽U珝Żwʮ馜üNșƶ", - "terminationGracePeriodSeconds": 6132275361857491866, - "activeDeadlineSeconds": 139065396842667255, - "nodeSelector": { - "274": "275" - }, - "serviceAccountName": "276", - "serviceAccount": "277", - "automountServiceAccountToken": true, - "nodeName": "278", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "279", - "role": "280", - "type": "281", - "level": "282" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "283", - "gmsaCredentialSpec": "284" - }, - "runAsUser": -6995201567186416273, - "runAsGroup": -7736954297113301184, - "runAsNonRoot": true, - "supplementalGroups": [ - -2242514391033939790 - ], - "fsGroup": 2404245025847758433, - "sysctls": [ - { - "name": "285", - "value": "286" - } - ] - }, - "imagePullSecrets": [ - { - "name": "287" - } - ], - "hostname": "288", - "subdomain": "289", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "290", - "operator": "ʭd鲡:贅wE@Ȗs«öʮĀ\u003cé瞾ʀN", - "values": [ - "291" - ] - } - ], - "matchFields": [ - { - "key": "292", - "operator": "軶ǃ*ʙ嫙\u0026蒒5靇", - "values": [ - "293" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 279808574, - "preference": { - "matchExpressions": [ - { - "key": "294", - "operator": "K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ", - "values": [ - "295" - ] - } - ], - "matchFields": [ - { - "key": "296", - "operator": "7¤7djƯĖ漘Z剚敍0)鈼¬麄p呝T", - "values": [ - "297" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "39-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-l.onh-9289---x-p-qpt6-1w-3205c1lxeqyn-5--9d5a3-7bf46g-40883176jte/Pi.-_-a-G": "g.8_r_N-.3n-x.-_-_-Nm-_X31" - }, - "matchExpressions": [ - { - "key": "x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6-_3J--.48Y.q.v", - "operator": "NotIn", - "values": [ - "C-_18_...E.-2D" - ] - } - ] - }, - "namespaces": [ - "304" - ], - "topologyKey": "305" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1532958330, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "5l-59g-qy5--ar-gn58nc2-3--6-o-h-9-15v-5925a-x12a-214-3sc/M.JP_oA_4A.J2s3.XL6_EU--AH-Q.GM7B": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "312" - ], - "topologyKey": "313" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "320" - ], - "topologyKey": "321" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "328" - ], - "topologyKey": "329" - } - } - ] - } - }, - "schedulerName": "330", - "tolerations": [ - { - "key": "331", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "332", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "333", - "hostnames": [ - "334" - ] - } - ], - "priorityClassName": "335", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "336" - ], - "searches": [ - "337" - ], - "options": [ - { - "name": "338", - "value": "339" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "340", - "enableServiceLinks": false, - "preemptionPolicy": "z委\u003e,趐V曡88 " - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.after_roundtrip.pb deleted file mode 100644 index 3658d14c165c1a3ad8660e3835e1fc3e9046c893..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4577 zcmZWseRNbsmhWnW;2TGJo;s&(o!QWc8-w-oUe)_#c2)==5EKD{fvoyWAb^k$NJ0ov z&q6*3G=zjCgai^o0t5&lKoSx{K5#qTNq0Q6uEV`&*FC5G^+LG*yz1GzGH~K@2658`S9GLz(B39 z{LMVCYqWB6qE(Vai;i-wl3Zk!6c@s|z5QVB#QZ+-5{$@30Y z;De@-|Gfu46px%!fDM)^qP;fco)nJ~AL6VE7_2~i6-u6jFPVQBr~*9I{@bRZ;6(c; zbQleEQBARJc=`72#2RN%Lud<|D zRV4+4RTTs@J6Z;gsJacM!ojMbL=zoWO>$Z_l4#W^v1;;6kkph}DBS`7Af;&z#?irG zh_D7Sy13ECS#>a7CwAn7S)JzEfx=PhaFjY6r4C0499^^&fs_tXhFFXUH=VN@5)Ukc z0E;>xCpmPD(eSEC=n zoWW0!MA2?JjAn44L=q)982BTMPwfYr2XDs&?cuxks_({*!_o?e4f8Tvq&R@6P9R!4 zdV;Za#x}sY36SN9KqLZ$bfILJl_<6?sE^n z;;CK|DZLzNDi1cD@(zd3?G2pn3f1@f&s{+rQ=&2@nj1X?ACR{|h}|-d1op``fDC5d zPz3@He<}f@%><$+12Ix2NV2%Z@*Z*_?rrXgsOOT-+dxEO5h0@8Q&sV9T)c&!!94?9 zBJpfr!ootR<0ov)yobvN`{)XZzdC;4DMw5bQKOoO#un)IYkjU#$U-Lz88K|(k9%GI z{cT?-Lfoim^Y$NW|64SyH<2Ay$jlp=z@$vUc;v5Q$BxwxiXzE7(r=kiDj)cQCfAbBd?L*X0>-pYXJemxWzT zOhlWx2t>eXAjI(;+*=qxTnRW0z7wLbvC4ecMAh*y3m{?s67bjJy#Ec6BouNh`33Gt z?vX^#!SPb>fv~IY&9}ztov%es9%px+z`cEzo93;L)bI1w1$T4@cGWK!yE5AAJMr4v zp)<$kyc)jJ`qnd%feUQ4WQZwKL5NB$6oeA+lG4NneP_MR-g19q8i8+lSsCJ1Ms1=R zudwAh|KMa~voH|@h%7q!psUAwdR^*<732GZmoE9cMlK~XH(C4%#Q&$RHRb*`&rrDJaLg3ANJKX7n{uc4T6gUJIhZMmX!EyL ze0cwI9y#;Jk78EEyITM9r%4GHZ9_d~b?E!4ySy z+7^s81rBt+9WL+l42@iH4@9kiiVCx;!^V9VLa3#{(fJo+`V5|cK2`i)pDKYql{lwF zO7~@q9QC!W4qe=B{9L53EZsM-xaeOwmHTn9?PB8m z(F-~L`e1t(KRx1V3$$H`4Al8*M$4ZH4c3M#E(La0c^blH9if`OQ0swT`u9L)z*QqE zi=N6(TN5EmG%5bmcTZGCKL5*aoCy|azLr_;53g2#7Cv|Jk(9X5z8z%dNbfS10UBI# zqR}15vKyf)1f>zG8iDfgVANm9fINx~iD*Nu=&3;Mpr-M*8-JhugyqLn}g+P2PcR_`|0Tmh^vHQL!T7ul=9i{2)~FS41q($-p!yJVaBHfv71!v}Hi_Rp@og221Y0 zaLjjTG!uv}g73NnzU##H`Qbl)<3CmMYqPC2_H8$-}!Y(uyd;T z&WELEzG&&WUd#F=$S_lNH90zFXQsP9cSNp~ZVnu1TFwMC zzU~38#L9h%xK_lKAZlRHl9rEiv@Pq_X}A#MT&+M=)3Y>bE6$eJ8QV5tim|GYLQ%qa zGX^G>ai)-yy#X5#6^ub>Gv2Z}U&YckOo^zhkunQ2wrtPF3dY7-C5>V&eVweX$FivF zRMOOq`58$|-Vm^f)9`%Wv0l*4TyrrNXf`fnToW(O!saSyb}w-%n1ltvluTiR3#HD#(KPEJ6NBVi`Qo>diEL;4Fb-=;53$$ z0$4(nG+Zc=Gz_f=)4VlFFA6D3%$(V#JX=U1c~n^Sf@;oNf${7Gc&RY|MJ<`1u^3z{ zD8Ng}mLlO-f*^xg0^T5)!u<8iHB(DA=Yp$P*d%W);@5J^wXHb+jSLxU7_ZNw0@VvL zu~Y={fH1Db1#}}!ZD(h)HEAuDO&Q$BW~wZ_Fq+F_(onn#Dld^DpAK(E7yX!TEwm3Qglt$ateh)oC{|RyQ@i>A((g*R!mT~ zbc-OY$=kp}k}54P*hY=#%{e$X|K-)fdch>mYhXo&AiR`oV#>$KczKp!&gXx@J+stY zqYLwebki`U9ATT8woovsgyAS>!|A0L38wy{xI!{leRq0stH6c1`f@OnzzwI+rR&k; zFOKwlW#uaoSB$t^uTBK5}F*c&T-yF?3=mG*HGgs0^$~(0_nPF|Z=345&e? zVL(k~KuwJTHE=!#RwRJ*z|_72D-!D#@YVycGKZVSIo=2z?g;KZ^X$@KMY-?tn=|~E zgPl7UrG+kcGZZ2NYz9OV>Zl1-9uJ*6Gg`I83>~^0uGr6JHC;=Y4*O~%0~``O5P*=x zAG@!H%1@5fnIoq|16K&}=(0R+F6$|9{dtBmHH~MW<9|F~-+%Zxq6&1Ug|$wJRdorf z`uCk!f@cJ9h^^jVT5Gj`SbF>Saq)wnRel+ZW5Uhm?#kFuJURGHULI`M%CcLhVu&HStFAa7pPS=8Gd7(6kAcqqVDsVeg9}HFM;gwK@6C&vqq7j| z+7HcPLDUV~wGW1}?4LK6e10F2{OxS#Z@!Lhp738s{`4QQqZP08wB3rmztU?E_k7eO z=pQq{BxnyDnABbJY4OCUH3o6U`HF*;UB1ES-q0Rk)elgF1a%)cD!(wMN8{OBz|f<5 zh8y1b1B&S}oZOu8y3oOn!btm$C?F9bafm4W-3`JXKSZP(fylX>uP$7ADblmsyRT?F zr*MyMA3K&5?CXCe(%cogy7TGr);xbB|Fc)72alG`{N>n@(Hj5B@a3AZD`TgE{T;zR z*CuZ}$v-bQcN)4`th?SayRnOP&yH7Nk;sn5B4eO;sN^Cb6`@KF2OaNC|=cxof9?cSPK zgFU;0r6&{q``!AHyT?wQy@{gFFv^})$rT?u>AQX(1iy!V%JzZ;p;U7~?ovSD zK#Uv6atr;8d*ZG2{_fC;4k0~ovC@AkWBjb=e6X*^ecn?legfKL@z2O|7ukver)vNC T*>G>w%HWX}U5|HIoR,趐V曡88 ' - priority: -2137775067 - priorityClassName: "335" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - runtimeClassName: "340" - schedulerName: "330" - securityContext: - fsGroup: 2404245025847758433 - runAsGroup: -7736954297113301184 - runAsNonRoot: true - runAsUser: -6995201567186416273 - seLinuxOptions: - level: "282" - role: "280" - type: "281" - user: "279" - supplementalGroups: - - -2242514391033939790 - sysctls: - - name: "285" - value: "286" - windowsOptions: - gmsaCredentialSpec: "284" - gmsaCredentialSpecName: "283" - serviceAccount: "277" - serviceAccountName: "276" - shareProcessNamespace: false - subdomain: "289" - terminationGracePeriodSeconds: 6132275361857491866 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "331" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "332" - volumes: - - awsElasticBlockStore: - fsType: "50" - partition: 13677460 - readOnly: true - volumeID: "49" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "113" - diskURI: "114" - fsType: "115" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "99" - shareName: "100" - cephfs: - monitors: - - "84" - path: "85" - secretFile: "87" - secretRef: - name: "88" - user: "86" - cinder: - fsType: "82" - readOnly: true - secretRef: - name: "83" - volumeID: "81" - configMap: - defaultMode: -1570767512 - items: - - key: "102" - mode: -1907421291 - path: "103" - name: "101" - optional: false - csi: - driver: "145" - fsType: "146" - nodePublishSecretRef: - name: "149" - readOnly: true - volumeAttributes: - "147": "148" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "92" - fieldPath: "93" - mode: 2107119206 - path: "91" - resourceFieldRef: - containerName: "94" - divisor: "291" - resource: "95" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "97" - lun: -2040518604 - targetWWNs: - - "96" - wwids: - - "98" - flexVolume: - driver: "76" - fsType: "77" - options: - "79": "80" - readOnly: true - secretRef: - name: "78" - flocker: - datasetName: "89" - datasetUUID: "90" - gcePersistentDisk: - fsType: "48" - partition: -664310043 - pdName: "47" - readOnly: true - gitRepo: - directory: "53" - repository: "51" - revision: "52" - glusterfs: - endpoints: "66" - path: "67" - readOnly: true - hostPath: - path: "46" - type: DrȮ - iscsi: - fsType: "62" - initiatorName: "65" - iqn: "60" - iscsiInterface: "61" - lun: -314157282 - portals: - - "63" - readOnly: true - secretRef: - name: "64" - targetPortal: "59" - name: "45" - nfs: - path: "58" - server: "57" - persistentVolumeClaim: - claimName: "68" - readOnly: true - photonPersistentDisk: - fsType: "117" - pdID: "116" - portworxVolume: - fsType: "132" - volumeID: "131" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "127" - mode: 813865935 - path: "128" - name: "126" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "122" - fieldPath: "123" - mode: 75785535 - path: "121" - resourceFieldRef: - containerName: "124" - divisor: "852" - resource: "125" - secret: - items: - - key: "119" - mode: 2036549700 - path: "120" - name: "118" - optional: false - serviceAccountToken: - audience: "129" - expirationSeconds: 3094703520378368232 - path: "130" - quobyte: - group: "111" - readOnly: true - registry: "108" - tenant: "112" - user: "110" - volume: "109" - rbd: - fsType: "71" - image: "70" - keyring: "74" - monitors: - - "69" - pool: "72" - readOnly: true - secretRef: - name: "75" - user: "73" - scaleIO: - fsType: "140" - gateway: "133" - protectionDomain: "136" - secretRef: - name: "135" - sslEnabled: true - storageMode: "138" - storagePool: "137" - system: "134" - volumeName: "139" - secret: - defaultMode: 819364842 - items: - - key: "55" - mode: 1557090007 - path: "56" - optional: true - secretName: "54" - storageos: - fsType: "143" - readOnly: true - secretRef: - name: "144" - volumeName: "141" - volumeNamespace: "142" - vsphereVolume: - fsType: "105" - storagePolicyID: "107" - storagePolicyName: "106" - volumePath: "104" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.json deleted file mode 100644 index 78c942dab..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.json +++ /dev/null @@ -1,1033 +0,0 @@ -{ - "kind": "PodTemplate", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "template": { - "metadata": { - "name": "24", - "generateName": "25", - "namespace": "26", - "selfLink": "27", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": 1905795315403748486, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 7323204920313990232, - "labels": { - "29": "30" - }, - "annotations": { - "31": "32" - }, - "ownerReferences": [ - { - "apiVersion": "33", - "kind": "34", - "name": "35", - "uid": "谐颋DžSǡƏS$+½H牗洝尿", - "controller": true, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "36" - ], - "clusterName": "37", - "managedFields": [ - { - "manager": "38", - "operation": "B峅x4%a", - "apiVersion": "39", - "fields": {"40":{"41":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "45", - "hostPath": { - "path": "46", - "type": "DrȮ" - }, - "emptyDir": { - "medium": "励鹗塢ē ", - "sizeLimit": "995" - }, - "gcePersistentDisk": { - "pdName": "47", - "fsType": "48", - "partition": -664310043, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "49", - "fsType": "50", - "partition": 13677460, - "readOnly": true - }, - "gitRepo": { - "repository": "51", - "revision": "52", - "directory": "53" - }, - "secret": { - "secretName": "54", - "items": [ - { - "key": "55", - "path": "56", - "mode": 1557090007 - } - ], - "defaultMode": 819364842, - "optional": true - }, - "nfs": { - "server": "57", - "path": "58" - }, - "iscsi": { - "targetPortal": "59", - "iqn": "60", - "lun": -314157282, - "iscsiInterface": "61", - "fsType": "62", - "readOnly": true, - "portals": [ - "63" - ], - "secretRef": { - "name": "64" - }, - "initiatorName": "65" - }, - "glusterfs": { - "endpoints": "66", - "path": "67", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "68", - "readOnly": true - }, - "rbd": { - "monitors": [ - "69" - ], - "image": "70", - "fsType": "71", - "pool": "72", - "user": "73", - "keyring": "74", - "secretRef": { - "name": "75" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "76", - "fsType": "77", - "secretRef": { - "name": "78" - }, - "readOnly": true, - "options": { - "79": "80" - } - }, - "cinder": { - "volumeID": "81", - "fsType": "82", - "readOnly": true, - "secretRef": { - "name": "83" - } - }, - "cephfs": { - "monitors": [ - "84" - ], - "path": "85", - "user": "86", - "secretFile": "87", - "secretRef": { - "name": "88" - } - }, - "flocker": { - "datasetName": "89", - "datasetUUID": "90" - }, - "downwardAPI": { - "items": [ - { - "path": "91", - "fieldRef": { - "apiVersion": "92", - "fieldPath": "93" - }, - "resourceFieldRef": { - "containerName": "94", - "resource": "95", - "divisor": "291" - }, - "mode": 2107119206 - } - ], - "defaultMode": -2077638334 - }, - "fc": { - "targetWWNs": [ - "96" - ], - "lun": -2040518604, - "fsType": "97", - "wwids": [ - "98" - ] - }, - "azureFile": { - "secretName": "99", - "shareName": "100" - }, - "configMap": { - "name": "101", - "items": [ - { - "key": "102", - "path": "103", - "mode": -1907421291 - } - ], - "defaultMode": -1570767512, - "optional": false - }, - "vsphereVolume": { - "volumePath": "104", - "fsType": "105", - "storagePolicyName": "106", - "storagePolicyID": "107" - }, - "quobyte": { - "registry": "108", - "volume": "109", - "readOnly": true, - "user": "110", - "group": "111", - "tenant": "112" - }, - "azureDisk": { - "diskName": "113", - "diskURI": "114", - "cachingMode": "n宂¬轚9Ȏ瀮", - "fsType": "115", - "readOnly": true, - "kind": "Ō¾\\ĒP鄸靇杧ž譋娲瘹ɭ" - }, - "photonPersistentDisk": { - "pdID": "116", - "fsType": "117" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "118", - "items": [ - { - "key": "119", - "path": "120", - "mode": 2036549700 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "121", - "fieldRef": { - "apiVersion": "122", - "fieldPath": "123" - }, - "resourceFieldRef": { - "containerName": "124", - "resource": "125", - "divisor": "852" - }, - "mode": 75785535 - } - ] - }, - "configMap": { - "name": "126", - "items": [ - { - "key": "127", - "path": "128", - "mode": 813865935 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "129", - "expirationSeconds": 3094703520378368232, - "path": "130" - } - } - ], - "defaultMode": -1253565243 - }, - "portworxVolume": { - "volumeID": "131", - "fsType": "132" - }, - "scaleIO": { - "gateway": "133", - "system": "134", - "secretRef": { - "name": "135" - }, - "sslEnabled": true, - "protectionDomain": "136", - "storagePool": "137", - "storageMode": "138", - "volumeName": "139", - "fsType": "140" - }, - "storageos": { - "volumeName": "141", - "volumeNamespace": "142", - "fsType": "143", - "readOnly": true, - "secretRef": { - "name": "144" - } - }, - "csi": { - "driver": "145", - "readOnly": true, - "fsType": "146", - "volumeAttributes": { - "147": "148" - }, - "nodePublishSecretRef": { - "name": "149" - } - } - } - ], - "initContainers": [ - { - "name": "150", - "image": "151", - "command": [ - "152" - ], - "args": [ - "153" - ], - "workingDir": "154", - "ports": [ - { - "name": "155", - "hostPort": -737070070, - "containerPort": -1417286635, - "protocol": "/C龷ȪÆl殛瓷雼浢Ü礽绅", - "hostIP": "156" - } - ], - "envFrom": [ - { - "prefix": "157", - "configMapRef": { - "name": "158", - "optional": true - }, - "secretRef": { - "name": "159", - "optional": false - } - } - ], - "env": [ - { - "name": "160", - "value": "161", - "valueFrom": { - "fieldRef": { - "apiVersion": "162", - "fieldPath": "163" - }, - "resourceFieldRef": { - "containerName": "164", - "resource": "165", - "divisor": "526" - }, - "configMapKeyRef": { - "name": "166", - "key": "167", - "optional": false - }, - "secretKeyRef": { - "name": "168", - "key": "169", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "i皬择,Q捇ȸ{+ɸ殁Ka縳": "499" - }, - "requests": { - "笓珣筩ƐP_痸荎": "787" - } - }, - "volumeMounts": [ - { - "name": "170", - "mountPath": "171", - "subPath": "172", - "mountPropagation": "¿燥ǖ_è绺", - "subPathExpr": "173" - } - ], - "volumeDevices": [ - { - "name": "174", - "devicePath": "175" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "176" - ] - }, - "httpGet": { - "path": "177", - "port": -662805900, - "host": "178", - "httpHeaders": [ - { - "name": "179", - "value": "180" - } - ] - }, - "tcpSocket": { - "port": "181", - "host": "182" - }, - "initialDelaySeconds": 578888856, - "timeoutSeconds": 2073854558, - "periodSeconds": -557582532, - "successThreshold": -773009446, - "failureThreshold": -1040245211 - }, - "readinessProbe": { - "exec": { - "command": [ - "183" - ] - }, - "httpGet": { - "path": "184", - "port": -2064088433, - "host": "185", - "scheme": "Do©Ǿt'容柚ʕIã陫ʋs", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 229600975, - "timeoutSeconds": -35598353, - "periodSeconds": -1697933829, - "successThreshold": -1438986781, - "failureThreshold": -330720710 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1348141491, - "host": "192", - "scheme": "Ȃ揲ȼ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - } - }, - "preStop": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": 468716734, - "host": "199", - "scheme": "Cʖ畬x骀", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - } - }, - "terminationMessagePath": "204", - "terminationMessagePolicy": "ů湙騘\u0026", - "imagePullPolicy": "Ȗ脵鴈Ō", - "securityContext": { - "capabilities": { - "add": [ - "yǠ/淹\\韲翁\u0026ʢsɜ" - ], - "drop": [ - "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "205", - "role": "206", - "type": "207", - "level": "208" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "209", - "gmsaCredentialSpec": "210" - }, - "runAsUser": 8685765401091182865, - "runAsGroup": -4139900758039117471, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^" - }, - "tty": true - } - ], - "containers": [ - { - "name": "211", - "image": "212", - "command": [ - "213" - ], - "args": [ - "214" - ], - "workingDir": "215", - "ports": [ - { - "name": "216", - "hostPort": -239302370, - "containerPort": -1215463021, - "protocol": "ăȲϤĦʅ芝", - "hostIP": "217" - } - ], - "envFrom": [ - { - "prefix": "218", - "configMapRef": { - "name": "219", - "optional": false - }, - "secretRef": { - "name": "220", - "optional": true - } - } - ], - "env": [ - { - "name": "221", - "value": "222", - "valueFrom": { - "fieldRef": { - "apiVersion": "223", - "fieldPath": "224" - }, - "resourceFieldRef": { - "containerName": "225", - "resource": "226", - "divisor": "706" - }, - "configMapKeyRef": { - "name": "227", - "key": "228", - "optional": false - }, - "secretKeyRef": { - "name": "229", - "key": "230", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "*ĕʄő芖{|ǘ\"^饣": "254" - }, - "requests": { - "Ř阌Ŗ怳冘HǺƶȤ^}穠C]躢|)黰": "190" - } - }, - "volumeMounts": [ - { - "name": "231", - "readOnly": true, - "mountPath": "232", - "subPath": "233", - "mountPropagation": "ȫşŇɜa", - "subPathExpr": "234" - } - ], - "volumeDevices": [ - { - "name": "235", - "devicePath": "236" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "237" - ] - }, - "httpGet": { - "path": "238", - "port": "239", - "host": "240", - "scheme": "抴ŨfZhUʎ浵ɲõ", - "httpHeaders": [ - { - "name": "241", - "value": "242" - } - ] - }, - "tcpSocket": { - "port": -1980941277, - "host": "243" - }, - "initialDelaySeconds": -124607411, - "timeoutSeconds": -1967211777, - "periodSeconds": -2138399859, - "successThreshold": 943356038, - "failureThreshold": 1499244521 - }, - "readinessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": "246", - "host": "247", - "scheme": "A徙ɶɊł/擇ɦĽ胚", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": -1502363275, - "host": "250" - }, - "initialDelaySeconds": -1950133943, - "timeoutSeconds": -65465189, - "periodSeconds": 1836896522, - "successThreshold": -2101285839, - "failureThreshold": 2064656704 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "251" - ] - }, - "httpGet": { - "path": "252", - "port": "253", - "host": "254", - "scheme": "Hǝ呮}臷Ľð»", - "httpHeaders": [ - { - "name": "255", - "value": "256" - } - ] - }, - "tcpSocket": { - "port": "257", - "host": "258" - } - }, - "preStop": { - "exec": { - "command": [ - "259" - ] - }, - "httpGet": { - "path": "260", - "port": "261", - "host": "262", - "scheme": "鄌eÞȦY籎顒", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - } - } - }, - "terminationMessagePath": "267", - "terminationMessagePolicy": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "imagePullPolicy": "?鷅bȻN", - "securityContext": { - "capabilities": { - "add": [ - "榱*Gưoɘ檲" - ], - "drop": [ - "銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "268", - "role": "269", - "type": "270", - "level": "271" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "272", - "gmsaCredentialSpec": "273" - }, - "runAsUser": 2498881510781298156, - "runAsGroup": 1396880349510758210, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "猀2:ö" - }, - "stdinOnce": true - } - ], - "restartPolicy": "5w垁鷌辪虽U珝Żwʮ馜üNșƶ", - "terminationGracePeriodSeconds": 6132275361857491866, - "activeDeadlineSeconds": 139065396842667255, - "nodeSelector": { - "274": "275" - }, - "serviceAccountName": "276", - "serviceAccount": "277", - "automountServiceAccountToken": true, - "nodeName": "278", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "279", - "role": "280", - "type": "281", - "level": "282" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "283", - "gmsaCredentialSpec": "284" - }, - "runAsUser": -6995201567186416273, - "runAsGroup": -7736954297113301184, - "runAsNonRoot": true, - "supplementalGroups": [ - -2242514391033939790 - ], - "fsGroup": 2404245025847758433, - "sysctls": [ - { - "name": "285", - "value": "286" - } - ] - }, - "imagePullSecrets": [ - { - "name": "287" - } - ], - "hostname": "288", - "subdomain": "289", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "290", - "operator": "ʭd鲡:贅wE@Ȗs«öʮĀ\u003cé瞾ʀN", - "values": [ - "291" - ] - } - ], - "matchFields": [ - { - "key": "292", - "operator": "軶ǃ*ʙ嫙\u0026蒒5靇", - "values": [ - "293" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 279808574, - "preference": { - "matchExpressions": [ - { - "key": "294", - "operator": "K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ", - "values": [ - "295" - ] - } - ], - "matchFields": [ - { - "key": "296", - "operator": "7¤7djƯĖ漘Z剚敍0)鈼¬麄p呝T", - "values": [ - "297" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "39-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-l.onh-9289---x-p-qpt6-1w-3205c1lxeqyn-5--9d5a3-7bf46g-40883176jte/Pi.-_-a-G": "g.8_r_N-.3n-x.-_-_-Nm-_X31" - }, - "matchExpressions": [ - { - "key": "x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6-_3J--.48Y.q.v", - "operator": "NotIn", - "values": [ - "C-_18_...E.-2D" - ] - } - ] - }, - "namespaces": [ - "304" - ], - "topologyKey": "305" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1532958330, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "5l-59g-qy5--ar-gn58nc2-3--6-o-h-9-15v-5925a-x12a-214-3sc/M.JP_oA_4A.J2s3.XL6_EU--AH-Q.GM7B": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "312" - ], - "topologyKey": "313" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "320" - ], - "topologyKey": "321" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "328" - ], - "topologyKey": "329" - } - } - ] - } - }, - "schedulerName": "330", - "tolerations": [ - { - "key": "331", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "332", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "333", - "hostnames": [ - "334" - ] - } - ], - "priorityClassName": "335", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "336" - ], - "searches": [ - "337" - ], - "options": [ - { - "name": "338", - "value": "339" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "340", - "enableServiceLinks": false, - "preemptionPolicy": "z委\u003e,趐V曡88 " - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.PodTemplate.pb deleted file mode 100644 index 74ce147aec8d0c0b7507e96aca6dac96e712c1c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4609 zcmZWseNLA$9q-p)7fkkH7X`XjXKIEc>zU@3Me2V zNzN)CqOAx5A}ENUq9URKg2;!NrW+b^W^}VBGahG>Nu24gOg5P~n@p0)#=X^TvN>n_ zkK6UC>fZX@TXpOHYLlL8;eNtd^CkXAOS0E4&&b@eIV~@P|I<|NCgKp`5p^Khi4>R9 zTN*jB&wFlbO7NIFO%FGhzv?|RRwsn(E~wspD+4F5WRQm?)lg-kh?=ZZT~$<(P(%Oy zCq?h>+SjmaOR{Cj`8}75OPhYv(2r6la!BKmo*vI3gSSfJ#stnP5rqeZF$h?&(4l7ZeR-(D?dnLT@1bIjj z4Wdw$N~)$(Mbt%6)^|s~I{U}pUFdUw3peZDJ=Ilo<3>j6BrpNcshAEeDnW~E6rd$L ztWHwNX3iOW_Sh{g!Uc|b~gqtUUOL~6_IYqu~N0rN;Nl{28w_& zInY&FAWu&N6GjZVEXI(_5+Hv&fx8V}$O`}ai5v$FmA`Lpj=zI{gnJ<1z7**@9B6Lw zRwwWixH!X59FM>hjkn6WJ@8)R@c-O}A4)*Z$*kIHWCj!Qr@VOa%iD!Sd0oCIw!q>A=q9rYi58@2DWs*=m9 z5)sX`s&tlR*?pW%@+nFsjoWJ4o1C9ky17t<_;`p+^@j zg`lN_mLV1)!cFI_h6J&-8U(ti1A=0J8bl3(M+_+;*#5!C@itG<>E z-`Lp|>v32OEy3cl8hRD_5sVppoFs~N%Mmn#10#|s!N$NJVg1y8sA=F%Owk_x`fkoVfOBz>1uhU00YN%ZGK@+TMkU!XIV;dnVAE z0_hef5z+3gEPp#b!NSkro`hZ^@oZhf!a}IyC#=o9hh&6xbcG~b8$USB5wk?ps3oGY z3A+7yue$_Jp_7G-7`E_-J?^mstzWqyZdA1S`i{5#BO2CQ$PP0gX+RJdlqrB`UdZxo z^iS+xu_4y4IvEzo5)gW9hQYVR!x4}`nZT6=DQ}Ujt5x) z3GK6tl~^bUCEz8cuKWGx zd`-Txv4%7P-}16j#I1~Cq8hKT={kS^BxJKN6$6AUI{Bcx+jnMN>V_5L2ZEO`k97`T zb}=_u{0YSWr`+U87Tbw0yRY9%91H8GwqN_lz4wB6_w%pcjSVK0_qLV9nu)tVi~K51 zj9kAnJ|T4v;#Nm-$TF`pC2oR7>74AqbIjJbV9Nx|x}u~zS3xcEp63M3Md zjeAf&FS_0p%RdK$qKLM!mh$)SCFjwzfBqnbD#6|Ix4%qGymYg;HZ~@{_0C&2Sy~ZcPeM6!JY3g#r{scG?zNx{s>8;87ecs8p-1PR zkJ&SL0`^q#dwZ$`_Eh4W94XnKF?`J5x;k{}K%}`UYEEUxNR@wJPGt+I>P8S+&ZK7| zy`|~?{>6p=&Z*pwgRPfb^G7abkJSa+I{E1lcWa>aVx+&;Up-PbEi_OQD!&}qRq3q{ zm$rwhdqXV;pB~!_Cj(NAs4RLa+igvRQ=&-;AHRLFBJ%0qe(OxMKykLr^1Oeo>XY#K zOAn>QhxYFzGlzSYu@j&{k`s;YM3y}WRU)_=;Z`GXJ=`DlS2Exn#hOI4p%yePP&43d z3GFW%zC7CFKN{&f;BA^3sOk?LKJ0JK9O>Q>>bYXJv3rY9<|NKe9%(}#-tzAZ0bk@)w%k8iyfD*ihn7N}$Z4K5y{ zDajzz6cE}n5c(?gs%3*E=ifNyI~1BYqKn|WE`jelv3+{v&)*8R?6!ES1OU{1Q+p3^vGv49d`7gs~L&t{3cP<84 zP{!a!BT&a43itPn7Q4pl1Lx|W2v=1paOtxNl;1FEsHUeB@vp`#%lwo@!qRYOndgMR zFL3VSNZ)A9_Tk>Fg`v))^FpP4qm?6_Oi|&Jm}Qlps(DUoYd4Nu@YV(g>QV!Hj|2~u zi%&-O40zfjS4*}84mK`l3L0N~A6IPUzCc_H;))S9Fjz^;!`a%_b?Y=-fN_qNud3;p znzRjP$?J^mn=r*#RY-v-VY~%HCzkPMAvE#aN(OxPbMVcyT5+ zS3$9Rfl~nz76el=g~jHo{1;~nLWZ=mKsOg+n5wAQG$nmCAjBq3ftj+tTG%S&^Ai?l z=Pk@~JU9o#xG4z2JOPurd>j>J2MC2Pw@%vqpT(zQ*9?Cbad!~67jdb|W~>6u23P{#Aeh4Z^~*I=OE%|%t6111Z!6^2 za?7=CIPbL#8EY7?&!hs?^EYFu5aI!0T#NJRMi|<`_GDYqS}dC~xR1?LS$J+XU9fV# zK~1o{kP4=W1rZmTg<@`&&Ob0WJ0ll@Gq2#a+&qW}E1^`Pj%!w~8F4j;TfwF1nyh6P z2n9F?_83-IlQcsx@g}U8U~K7DL0FT!frTVhTAsh18qb<@a8BNftA+J~NuJdJMTQ`} zkYi%X$IEzmreMzJf5APu)Lf$r^M!QNFr{o^yP397FsX!LD`&&*r56gO{=B$CGFN@K zd-1Elg}M52fJq?3DOBk?H0iUW-CtVy3d9v5?j`OSaGPf5N^sh?t=p7?3&d?$%FNij zaUE9RPSg#G^YG>*Dw}u*95kvIWMUz!K**i9NEVWXWd6~WLaJ##mk+1p1vn^rmVhBx zuo1uHogBY%(USGx^rG2VFxNsnSN#775}iRaj-WVrHngB`CqnI3L|`lm6bGOrK=%~t z0wI%GY)G-W!`|aDx^F*p^Y9;HXVCfcq&bnHUVq#0?#;oDqj1MZjt&Gbw+uIgP7a3p zOPK|gkrfH*4+tqnRwR`XH7GTVsHu#osZpW^&d11#1e6{+weQG^#Ht0n1%a&0;ihtq z*Fs0ygZs`twKP~>=D+g#jIk@hj$Mn=LRY#N3z2~~1EUGGSBEN2gwCHGsa#@)4qpkE zA7G=JuBA+ebv2O@4hbFzAc*V7o@=49Q=_%!@R?BmRRVoCX)WA0t-$c1zY9-=cj;^Xxo-uNGd9YP0N^hTzF^1@>y5f9vZno#_=uqB22RizK zO-IHLEgU`(sXsTqFED7pPHVO&q#|(f3<$(i8UBw?4O^Bi~h%??_6s+j<4@B37@&L1b zz#=5L_n}AS7sl*pJbMcmdeqKP{ab%TF*}Bnn=@V;I@DeeY1E7epU$}!)xQBO)9#0DP_PrEo>I_}m^~88f?pOo=vzMj^kCo1R zdi3Z>_1LNKmFm%}qo;#??ZIC6CSMzz16Gycf(5~NpQu4q7WIUKE$v;`yNY}Ti3r}- zXx4{C?+!MOl#Ps_6!c1zjEJm~OJbCaSSk^Uk`W0QSd@WC3cN;RWJFScm$ab!eHVg# z^^r4mPed7q#K?lADQ6JsL@693qr}^M4ZhANg57O90wsqwXAVQvq(G#nJmcx{caF5p zlRQ_$gKcZWt$Tmrt%`Kn(IcJB$6oJ#z!x9f(#K7RV#Efjr*QTEiLRQ9kWSN!Od z|HeHM{0{mlTMG^drJ4iIE(Hb-!nlbnx6#kI$KF^!))hM0E~E!8Rg9g^7(eH|5bUk? nT=15NAAvPl{4272jckR1(>4G4RJf;dW$,趐V曡88 ' - priority: -2137775067 - priorityClassName: "335" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - runtimeClassName: "340" - schedulerName: "330" - securityContext: - fsGroup: 2404245025847758433 - runAsGroup: -7736954297113301184 - runAsNonRoot: true - runAsUser: -6995201567186416273 - seLinuxOptions: - level: "282" - role: "280" - type: "281" - user: "279" - supplementalGroups: - - -2242514391033939790 - sysctls: - - name: "285" - value: "286" - windowsOptions: - gmsaCredentialSpec: "284" - gmsaCredentialSpecName: "283" - serviceAccount: "277" - serviceAccountName: "276" - shareProcessNamespace: false - subdomain: "289" - terminationGracePeriodSeconds: 6132275361857491866 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "331" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "332" - volumes: - - awsElasticBlockStore: - fsType: "50" - partition: 13677460 - readOnly: true - volumeID: "49" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "113" - diskURI: "114" - fsType: "115" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "99" - shareName: "100" - cephfs: - monitors: - - "84" - path: "85" - secretFile: "87" - secretRef: - name: "88" - user: "86" - cinder: - fsType: "82" - readOnly: true - secretRef: - name: "83" - volumeID: "81" - configMap: - defaultMode: -1570767512 - items: - - key: "102" - mode: -1907421291 - path: "103" - name: "101" - optional: false - csi: - driver: "145" - fsType: "146" - nodePublishSecretRef: - name: "149" - readOnly: true - volumeAttributes: - "147": "148" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "92" - fieldPath: "93" - mode: 2107119206 - path: "91" - resourceFieldRef: - containerName: "94" - divisor: "291" - resource: "95" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "97" - lun: -2040518604 - targetWWNs: - - "96" - wwids: - - "98" - flexVolume: - driver: "76" - fsType: "77" - options: - "79": "80" - readOnly: true - secretRef: - name: "78" - flocker: - datasetName: "89" - datasetUUID: "90" - gcePersistentDisk: - fsType: "48" - partition: -664310043 - pdName: "47" - readOnly: true - gitRepo: - directory: "53" - repository: "51" - revision: "52" - glusterfs: - endpoints: "66" - path: "67" - readOnly: true - hostPath: - path: "46" - type: DrȮ - iscsi: - fsType: "62" - initiatorName: "65" - iqn: "60" - iscsiInterface: "61" - lun: -314157282 - portals: - - "63" - readOnly: true - secretRef: - name: "64" - targetPortal: "59" - name: "45" - nfs: - path: "58" - server: "57" - persistentVolumeClaim: - claimName: "68" - readOnly: true - photonPersistentDisk: - fsType: "117" - pdID: "116" - portworxVolume: - fsType: "132" - volumeID: "131" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "127" - mode: 813865935 - path: "128" - name: "126" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "122" - fieldPath: "123" - mode: 75785535 - path: "121" - resourceFieldRef: - containerName: "124" - divisor: "852" - resource: "125" - secret: - items: - - key: "119" - mode: 2036549700 - path: "120" - name: "118" - optional: false - serviceAccountToken: - audience: "129" - expirationSeconds: 3094703520378368232 - path: "130" - quobyte: - group: "111" - readOnly: true - registry: "108" - tenant: "112" - user: "110" - volume: "109" - rbd: - fsType: "71" - image: "70" - keyring: "74" - monitors: - - "69" - pool: "72" - readOnly: true - secretRef: - name: "75" - user: "73" - scaleIO: - fsType: "140" - gateway: "133" - protectionDomain: "136" - secretRef: - name: "135" - sslEnabled: true - storageMode: "138" - storagePool: "137" - system: "134" - volumeName: "139" - secret: - defaultMode: 819364842 - items: - - key: "55" - mode: 1557090007 - path: "56" - optional: true - secretName: "54" - storageos: - fsType: "143" - readOnly: true - secretRef: - name: "144" - volumeName: "141" - volumeNamespace: "142" - vsphereVolume: - fsType: "105" - storagePolicyID: "107" - storagePolicyName: "106" - volumePath: "104" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.json deleted file mode 100644 index 2183d7a40..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "RangeAllocation", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "range": "24", - "data": "cQ==" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.pb deleted file mode 100644 index 0409c8ee8a38d8cebcbbf5e3cace18f9fd0c0c07..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 244 zcmV7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u) uqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5&|+b8Ub+{03rb8|5ii* diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.yaml deleted file mode 100644 index c766a7cbb..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: v1 -data: cQ== -kind: RangeAllocation -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -range: "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.json deleted file mode 100644 index 976484804..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "RangeAllocation", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "range": "24", - "data": "cQ==" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.RangeAllocation.pb deleted file mode 100644 index ede0367dad6c488a18159feb67f01994da7717c3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 260 zcmV+f0sH=IICB6B6$%1&F%l0_VQyz-L2PVqV_|e@Z*CIe0Sedw3IQ?_0W%r_G$H{t zDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3IW{yhH83|cI5Rjl zH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q z8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u) zqnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k3I+-SF*yC3v7BO%ETgeA#o{-ynn=-cUU|mIjWV$)NWV)lg-sh?=ZR zx~ixml??sAKQDfF>yGBF>ys@DPHpckDLeRw=0TJ?i9;HX^z=9m8N8KlY_6{A(_6Rm`Z79HhUiCknQN(I8OROP2csw)C@6_F#2-UE0^pt)zH zKP|~$_gZlG)`Z}|UeC4{L7PS`e6=h7+RhIyetipmh>z#2ROYQzaa^Cm9YXM>!k6Z- zQr%^xM&cbWg?AjG_Yl#bilj~_W z8YRM8C7RAg5{%?b0wdL7l{D8c+}(JrDsa9uF*4j1s@xacv(2~5*EG`ZZ}4;l>pK#y zpg!uJq!(EwqXONwo9u{yYgdD*yf@j)Q^5-!UuK*U8_<-4&=f9U0gg zINai?b@CIr35KCK?t>*dZj+tDI$L^W(E6%JbiB^q&9HR`fzQleFp zsZ~>^fuyERN9hju2PsW=FpdERLvVGF(MhHaMqs)w*^vuobvf4#Q~?fzT-RJyT~B0u zL$nlulmSu(DMpl=3LlhZfB~mu$PNgK0b+*gfZ$PsID;J@eHLeP7q=abWlIIRAC_pg zo{L+$V;qOo(4Ce_o;bh=XVtm=Y=it!wn4~>?^H$Bx z*m+o5(7kMt!WO9xAesw^-i{t%Yy;Rt1n=OFBm$unh}4CWVV1~jR&h+u4s;f~JHo^J z4BxKMmQJ=Np{OP5@1eZ8%PR^36WHYJp5@Ch&~O7kvxIOVhRwlz;X#yAnr9NCTuM+cpLmt z77k4(AAK(43Bc_RJF-(30(H8!=ufo5p^_xV9n?!8hfkW+oi-z?wvcn3Qc_T|ODa&9yvrJa5pkJ_m z)rJ^fb1_@sngB7PE8uRl$3YGd5T*o#DUn@3ltdsZC2UHw9jLip$#%Mh?6oC*L$O_5 zlRYKAF3+I*sHb(jEL^dliRjbjfe1JaL~=X{7Z(N)R|-yp?-Ys-5RJuHg9Nyn1&~rO zh=RWsSL|DYNKy%MEBP7jXWTuBo;~BG-reDf`d3~ZYjC|3Id+6ydaB6$59`Es$sjHWa?+W(z`nyJY z6PcSV{uJW>Q*Ls+#dhTDo(s2cj)n1M+wXnjp4&mZb>rr{u}NoTe|u?cn6T|yNv3%8 z&5xP_Wm5uE6zK<36d6oW6qoJkvHgMFov($<`#r-WZ@LGgRzOLGS0Ob-HBogcOCweJkvf%aplX>w^xXI- zBmHIRzQOrL|G}x;PlBzd6X%S+nd5H=ws-MUBNeTI);A-A^}gEC@`po1b)m}Mz}9L{ zW4Np%RNEhF+5JoZ>yR06)u_s%r?J!42xN&you9pZv?_A-uYYnSSfFKDrn^5pU-NnR z)aiRt;zB#O&}k!mi&zF|aLK7AZ$Xyr2vs8}jZoDnl!rT`{!$V0==PA-L!pF@AZ~VR_*f~Xf>%-C$*ADkwtYZxmWSFVCmK+_kGt-qKc3pM77y*Sw4=qQm zLCx{pIm9jE7H}A54Z=?uKeZy#b$D91r)<;g>Aw0r_sNmI@lMZ{e;YXwI&f}$%X}~k z`WRF+3XSZZ@L=CqN#b~8;AGI7i#Ca;1g~G0xQrR5g8_ zMmFMXd8M&wEtW7=6+@AiHerd1%5subn6Y7V zHdZh;Rw!u_*3wtX>MAUYx-Jn-&CJh8TChgICQie1c*iP1H*?MTSdg-DA>*2O{yJ?Ih_cp5Jh<~*w<^N-C3*9r>oLb{%uV-4d~>m)(a3$idNf_Oj}SKtCE6Q(w^GufE50?Vch?qf4m7M__QJ-u{} zA(^0gt|XWy7DQZR7KwS;I)B%!oQymO&g{Z9dHE0z)76-ILaAtdg(=isXr?&A?C90 zPcLp6xG+m!3}#Ze;SzM|1{8m-spo4eUxm10#J#{h32sX{c?7a;3K7-V6K38F8SvOQUgqr#C-@TX+hsjg5IqVKr9M02ckgVCW@R0 zM4{8!lxnL8dk)3$zJ1Sod*6@cpzFb;nUQn-zV?xAS;5XGsPU1epfM zY0wy0A<%z-&=^=DDg$cJY8X&c8BkNBKn`*F^p&#S(S#WCUX!S1Tq zP&_vDZPm9??3Y@NxEG_l>N3v|IXpesu2p4M+G201Hps) z#`nw}ITC3+Ildz=W)2IXuK(B^7DPj|UHD*lo&D;;lB>5N$=^@7?{BGS?H zkBi?O-alGCI*L-zOHnXFSSKeW3Pvo|2t~mN0R$FBAVh)ZXbg-H6>v!ly3_kcaG)`A zyy1~3;vftxKzBKgP!~$!;4)I)=56+NJre9`-yA62leKOHx~2p`ddidTK3~^p`)uMq z8y;?75pI3`2~S<5rQKWmVz6g>u=H5M|GwQYa`RBz$;&AE43pSXOOg~fyX2}59rInh z4T3MBpR&CmK_p3cK<-L_z$Zwu_#U!cK|kjncy*P(J9M-|NDrK@^0#G-pY*&D?5}md z;VBhA1#L3<0$FY%TT!5`?%y8|_f;*A{{upqB0m5C diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.after_roundtrip.yaml deleted file mode 100644 index b8892b58a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.after_roundtrip.yaml +++ /dev/null @@ -1,716 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - "24": "25" - template: - metadata: - annotations: - "33": "34" - clusterName: "39" - creationTimestamp: null - deletionGracePeriodSeconds: 4303487026632006283 - finalizers: - - "38" - generateName: "27" - generation: -530163119072260397 - labels: - "31": "32" - managedFields: - - apiVersion: "41" - manager: "40" - name: "26" - namespace: "28" - ownerReferences: - - apiVersion: "35" - blockOwnerDeletion: true - controller: false - kind: "36" - name: "37" - uid: ³-Ǐ忄*齧獚敆ȎțêɘIJ斬 - resourceVersion: "1092536316763508004" - selfLink: "29" - uid: ^苣 - spec: - activeDeadlineSeconds: 139065396842667255 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "295" - operator: K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ - values: - - "296" - matchFields: - - key: "297" - operator: 7¤7djƯĖ漘Z剚敍0)鈼¬麄p呝T - values: - - "298" - weight: 279808574 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "291" - operator: ʭd鲡:贅wE@Ȗs«öʮĀ<é瞾ʀN - values: - - "292" - matchFields: - - key: "293" - operator: 軶ǃ*ʙ嫙&蒒5靇 - values: - - "294" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8 - operator: DoesNotExist - matchLabels: - 5l-59g-qy5--ar-gn58nc2-3--6-o-h-9-15v-5925a-x12a-214-3sc/M.JP_oA_4A.J2s3.XL6_EU--AH-Q.GM7B: N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz - namespaces: - - "313" - topologyKey: "314" - weight: -1532958330 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6-_3J--.48Y.q.v - operator: NotIn - values: - - C-_18_...E.-2D - matchLabels: - ? 39-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-l.onh-9289---x-p-qpt6-1w-3205c1lxeqyn-5--9d5a3-7bf46g-40883176jte/Pi.-_-a-G - : g.8_r_N-.3n-x.-_-_-Nm-_X31 - namespaces: - - "305" - topologyKey: "306" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: VKPg___KA-._d._.U8 - operator: DoesNotExist - matchLabels: - 4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B: V.Z__Lv8_.O_..8n.--z_-..W - namespaces: - - "329" - topologyKey: "330" - weight: 789384689 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X - operator: NotIn - values: - - X_._D8T - matchLabels: - 8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3: 4-Tm._G - namespaces: - - "321" - topologyKey: "322" - automountServiceAccountToken: true - containers: - - args: - - "215" - command: - - "214" - env: - - name: "222" - value: "223" - valueFrom: - configMapKeyRef: - key: "229" - name: "228" - optional: false - fieldRef: - apiVersion: "224" - fieldPath: "225" - resourceFieldRef: - containerName: "226" - divisor: "706" - resource: "227" - secretKeyRef: - key: "231" - name: "230" - optional: false - envFrom: - - configMapRef: - name: "220" - optional: false - prefix: "219" - secretRef: - name: "221" - optional: true - image: "213" - imagePullPolicy: ?鷅bȻN - lifecycle: - postStart: - exec: - command: - - "252" - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "253" - port: "254" - scheme: Hǝ呮}臷Ľð» - tcpSocket: - host: "259" - port: "258" - preStop: - exec: - command: - - "260" - httpGet: - host: "263" - httpHeaders: - - name: "264" - value: "265" - path: "261" - port: "262" - scheme: 鄌eÞȦY籎顒 - tcpSocket: - host: "267" - port: "266" - livenessProbe: - exec: - command: - - "238" - failureThreshold: 1499244521 - httpGet: - host: "241" - httpHeaders: - - name: "242" - value: "243" - path: "239" - port: "240" - scheme: 抴ŨfZhUʎ浵ɲõ - initialDelaySeconds: -124607411 - periodSeconds: -2138399859 - successThreshold: 943356038 - tcpSocket: - host: "244" - port: -1980941277 - timeoutSeconds: -1967211777 - name: "212" - ports: - - containerPort: -1215463021 - hostIP: "218" - hostPort: -239302370 - name: "217" - protocol: ăȲϤĦʅ芝 - readinessProbe: - exec: - command: - - "245" - failureThreshold: 2064656704 - httpGet: - host: "248" - httpHeaders: - - name: "249" - value: "250" - path: "246" - port: "247" - scheme: A徙ɶɊł/擇ɦĽ胚 - initialDelaySeconds: -1950133943 - periodSeconds: 1836896522 - successThreshold: -2101285839 - tcpSocket: - host: "251" - port: -1502363275 - timeoutSeconds: -65465189 - resources: - limits: - '*ĕʄő芖{|ǘ"^饣': "254" - requests: - Ř阌Ŗ怳冘HǺƶȤ^}穠C]躢|)黰: "190" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - 榱*Gưoɘ檲 - drop: - - 銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ - privileged: true - procMount: 猀2:ö - readOnlyRootFilesystem: false - runAsGroup: 1396880349510758210 - runAsNonRoot: false - runAsUser: 2498881510781298156 - seLinuxOptions: - level: "272" - role: "270" - type: "271" - user: "269" - windowsOptions: - gmsaCredentialSpec: "274" - gmsaCredentialSpecName: "273" - stdinOnce: true - terminationMessagePath: "268" - terminationMessagePolicy: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - volumeDevices: - - devicePath: "237" - name: "236" - volumeMounts: - - mountPath: "233" - mountPropagation: ȫşŇɜa - name: "232" - readOnly: true - subPath: "234" - subPathExpr: "235" - workingDir: "216" - dnsConfig: - nameservers: - - "337" - options: - - name: "339" - value: "340" - searches: - - "338" - enableServiceLinks: false - hostAliases: - - hostnames: - - "335" - ip: "334" - hostNetwork: true - hostname: "289" - imagePullSecrets: - - name: "288" - initContainers: - - args: - - "154" - command: - - "153" - env: - - name: "161" - value: "162" - valueFrom: - configMapKeyRef: - key: "168" - name: "167" - optional: false - fieldRef: - apiVersion: "163" - fieldPath: "164" - resourceFieldRef: - containerName: "165" - divisor: "526" - resource: "166" - secretKeyRef: - key: "170" - name: "169" - optional: false - envFrom: - - configMapRef: - name: "159" - optional: true - prefix: "158" - secretRef: - name: "160" - optional: false - image: "152" - imagePullPolicy: Ȗ脵鴈Ō - lifecycle: - postStart: - exec: - command: - - "191" - httpGet: - host: "193" - httpHeaders: - - name: "194" - value: "195" - path: "192" - port: 1348141491 - scheme: Ȃ揲ȼ - tcpSocket: - host: "197" - port: "196" - preStop: - exec: - command: - - "198" - httpGet: - host: "200" - httpHeaders: - - name: "201" - value: "202" - path: "199" - port: 468716734 - scheme: Cʖ畬x骀 - tcpSocket: - host: "204" - port: "203" - livenessProbe: - exec: - command: - - "177" - failureThreshold: -1040245211 - httpGet: - host: "179" - httpHeaders: - - name: "180" - value: "181" - path: "178" - port: -662805900 - initialDelaySeconds: 578888856 - periodSeconds: -557582532 - successThreshold: -773009446 - tcpSocket: - host: "183" - port: "182" - timeoutSeconds: 2073854558 - name: "151" - ports: - - containerPort: -1417286635 - hostIP: "157" - hostPort: -737070070 - name: "156" - protocol: /C龷ȪÆl殛瓷雼浢Ü礽绅 - readinessProbe: - exec: - command: - - "184" - failureThreshold: -330720710 - httpGet: - host: "186" - httpHeaders: - - name: "187" - value: "188" - path: "185" - port: -2064088433 - scheme: Do©Ǿt'容柚ʕIã陫ʋs - initialDelaySeconds: 229600975 - periodSeconds: -1697933829 - successThreshold: -1438986781 - tcpSocket: - host: "190" - port: "189" - timeoutSeconds: -35598353 - resources: - limits: - i皬择,Q捇ȸ{+ɸ殁Ka縳: "499" - requests: - 笓珣筩ƐP_痸荎: "787" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - yǠ/淹\韲翁&ʢsɜ - drop: - - \%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ - privileged: false - procMount: ^ - readOnlyRootFilesystem: true - runAsGroup: -4139900758039117471 - runAsNonRoot: true - runAsUser: 8685765401091182865 - seLinuxOptions: - level: "209" - role: "207" - type: "208" - user: "206" - windowsOptions: - gmsaCredentialSpec: "211" - gmsaCredentialSpecName: "210" - terminationMessagePath: "205" - terminationMessagePolicy: ů湙騘& - tty: true - volumeDevices: - - devicePath: "176" - name: "175" - volumeMounts: - - mountPath: "172" - mountPropagation: ¿燥ǖ_è绺 - name: "171" - subPath: "173" - subPathExpr: "174" - workingDir: "155" - nodeName: "279" - nodeSelector: - "275": "276" - preemptionPolicy: 'z委>,趐V曡88 ' - priority: -2137775067 - priorityClassName: "336" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - runtimeClassName: "341" - schedulerName: "331" - securityContext: - fsGroup: 2404245025847758433 - runAsGroup: -7736954297113301184 - runAsNonRoot: true - runAsUser: -6995201567186416273 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -2242514391033939790 - sysctls: - - name: "286" - value: "287" - windowsOptions: - gmsaCredentialSpec: "285" - gmsaCredentialSpecName: "284" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "290" - terminationGracePeriodSeconds: 6132275361857491866 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "332" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "333" - volumes: - - awsElasticBlockStore: - fsType: "51" - partition: 13677460 - readOnly: true - volumeID: "50" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "114" - diskURI: "115" - fsType: "116" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "100" - shareName: "101" - cephfs: - monitors: - - "85" - path: "86" - secretFile: "88" - secretRef: - name: "89" - user: "87" - cinder: - fsType: "83" - readOnly: true - secretRef: - name: "84" - volumeID: "82" - configMap: - defaultMode: -1570767512 - items: - - key: "103" - mode: -1907421291 - path: "104" - name: "102" - optional: false - csi: - driver: "146" - fsType: "147" - nodePublishSecretRef: - name: "150" - readOnly: true - volumeAttributes: - "148": "149" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "93" - fieldPath: "94" - mode: 2107119206 - path: "92" - resourceFieldRef: - containerName: "95" - divisor: "291" - resource: "96" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "98" - lun: -2040518604 - targetWWNs: - - "97" - wwids: - - "99" - flexVolume: - driver: "77" - fsType: "78" - options: - "80": "81" - readOnly: true - secretRef: - name: "79" - flocker: - datasetName: "90" - datasetUUID: "91" - gcePersistentDisk: - fsType: "49" - partition: -664310043 - pdName: "48" - readOnly: true - gitRepo: - directory: "54" - repository: "52" - revision: "53" - glusterfs: - endpoints: "67" - path: "68" - readOnly: true - hostPath: - path: "47" - type: DrȮ - iscsi: - fsType: "63" - initiatorName: "66" - iqn: "61" - iscsiInterface: "62" - lun: -314157282 - portals: - - "64" - readOnly: true - secretRef: - name: "65" - targetPortal: "60" - name: "46" - nfs: - path: "59" - server: "58" - persistentVolumeClaim: - claimName: "69" - readOnly: true - photonPersistentDisk: - fsType: "118" - pdID: "117" - portworxVolume: - fsType: "133" - volumeID: "132" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "128" - mode: 813865935 - path: "129" - name: "127" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "123" - fieldPath: "124" - mode: 75785535 - path: "122" - resourceFieldRef: - containerName: "125" - divisor: "852" - resource: "126" - secret: - items: - - key: "120" - mode: 2036549700 - path: "121" - name: "119" - optional: false - serviceAccountToken: - audience: "130" - expirationSeconds: 3094703520378368232 - path: "131" - quobyte: - group: "112" - readOnly: true - registry: "109" - tenant: "113" - user: "111" - volume: "110" - rbd: - fsType: "72" - image: "71" - keyring: "75" - monitors: - - "70" - pool: "73" - readOnly: true - secretRef: - name: "76" - user: "74" - scaleIO: - fsType: "141" - gateway: "134" - protectionDomain: "137" - secretRef: - name: "136" - sslEnabled: true - storageMode: "139" - storagePool: "138" - system: "135" - volumeName: "140" - secret: - defaultMode: 819364842 - items: - - key: "56" - mode: 1557090007 - path: "57" - optional: true - secretName: "55" - storageos: - fsType: "144" - readOnly: true - secretRef: - name: "145" - volumeName: "142" - volumeNamespace: "143" - vsphereVolume: - fsType: "106" - storagePolicyID: "108" - storagePolicyName: "107" - volumePath: "105" -status: - availableReplicas: -867149340 - conditions: - - lastTransitionTime: "2291-09-10T04:26:58Z" - message: "343" - reason: "342" - status: ǣ普闎Ť - type: 緔Tj§E蓋Cȗä2 ɲ±m嵘厶s - fullyLabeledReplicas: 2001418580 - observedGeneration: 7651417573826529316 - readyReplicas: -2043375598 - replicas: 1690834256 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.json deleted file mode 100644 index 15a257aed..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.json +++ /dev/null @@ -1,1055 +0,0 @@ -{ - "kind": "ReplicationController", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "24": "25" - }, - "template": { - "metadata": { - "name": "26", - "generateName": "27", - "namespace": "28", - "selfLink": "29", - "uid": "^苣", - "resourceVersion": "1092536316763508004", - "generation": -530163119072260397, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 4303487026632006283, - "labels": { - "31": "32" - }, - "annotations": { - "33": "34" - }, - "ownerReferences": [ - { - "apiVersion": "35", - "kind": "36", - "name": "37", - "uid": "³-Ǐ忄*齧獚敆ȎțêɘIJ斬", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "38" - ], - "clusterName": "39", - "managedFields": [ - { - "manager": "40", - "apiVersion": "41", - "fields": {"42":{"43":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "46", - "hostPath": { - "path": "47", - "type": "DrȮ" - }, - "emptyDir": { - "medium": "励鹗塢ē ", - "sizeLimit": "995" - }, - "gcePersistentDisk": { - "pdName": "48", - "fsType": "49", - "partition": -664310043, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "50", - "fsType": "51", - "partition": 13677460, - "readOnly": true - }, - "gitRepo": { - "repository": "52", - "revision": "53", - "directory": "54" - }, - "secret": { - "secretName": "55", - "items": [ - { - "key": "56", - "path": "57", - "mode": 1557090007 - } - ], - "defaultMode": 819364842, - "optional": true - }, - "nfs": { - "server": "58", - "path": "59" - }, - "iscsi": { - "targetPortal": "60", - "iqn": "61", - "lun": -314157282, - "iscsiInterface": "62", - "fsType": "63", - "readOnly": true, - "portals": [ - "64" - ], - "secretRef": { - "name": "65" - }, - "initiatorName": "66" - }, - "glusterfs": { - "endpoints": "67", - "path": "68", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "69", - "readOnly": true - }, - "rbd": { - "monitors": [ - "70" - ], - "image": "71", - "fsType": "72", - "pool": "73", - "user": "74", - "keyring": "75", - "secretRef": { - "name": "76" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "77", - "fsType": "78", - "secretRef": { - "name": "79" - }, - "readOnly": true, - "options": { - "80": "81" - } - }, - "cinder": { - "volumeID": "82", - "fsType": "83", - "readOnly": true, - "secretRef": { - "name": "84" - } - }, - "cephfs": { - "monitors": [ - "85" - ], - "path": "86", - "user": "87", - "secretFile": "88", - "secretRef": { - "name": "89" - } - }, - "flocker": { - "datasetName": "90", - "datasetUUID": "91" - }, - "downwardAPI": { - "items": [ - { - "path": "92", - "fieldRef": { - "apiVersion": "93", - "fieldPath": "94" - }, - "resourceFieldRef": { - "containerName": "95", - "resource": "96", - "divisor": "291" - }, - "mode": 2107119206 - } - ], - "defaultMode": -2077638334 - }, - "fc": { - "targetWWNs": [ - "97" - ], - "lun": -2040518604, - "fsType": "98", - "wwids": [ - "99" - ] - }, - "azureFile": { - "secretName": "100", - "shareName": "101" - }, - "configMap": { - "name": "102", - "items": [ - { - "key": "103", - "path": "104", - "mode": -1907421291 - } - ], - "defaultMode": -1570767512, - "optional": false - }, - "vsphereVolume": { - "volumePath": "105", - "fsType": "106", - "storagePolicyName": "107", - "storagePolicyID": "108" - }, - "quobyte": { - "registry": "109", - "volume": "110", - "readOnly": true, - "user": "111", - "group": "112", - "tenant": "113" - }, - "azureDisk": { - "diskName": "114", - "diskURI": "115", - "cachingMode": "n宂¬轚9Ȏ瀮", - "fsType": "116", - "readOnly": true, - "kind": "Ō¾\\ĒP鄸靇杧ž譋娲瘹ɭ" - }, - "photonPersistentDisk": { - "pdID": "117", - "fsType": "118" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "119", - "items": [ - { - "key": "120", - "path": "121", - "mode": 2036549700 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "122", - "fieldRef": { - "apiVersion": "123", - "fieldPath": "124" - }, - "resourceFieldRef": { - "containerName": "125", - "resource": "126", - "divisor": "852" - }, - "mode": 75785535 - } - ] - }, - "configMap": { - "name": "127", - "items": [ - { - "key": "128", - "path": "129", - "mode": 813865935 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "130", - "expirationSeconds": 3094703520378368232, - "path": "131" - } - } - ], - "defaultMode": -1253565243 - }, - "portworxVolume": { - "volumeID": "132", - "fsType": "133" - }, - "scaleIO": { - "gateway": "134", - "system": "135", - "secretRef": { - "name": "136" - }, - "sslEnabled": true, - "protectionDomain": "137", - "storagePool": "138", - "storageMode": "139", - "volumeName": "140", - "fsType": "141" - }, - "storageos": { - "volumeName": "142", - "volumeNamespace": "143", - "fsType": "144", - "readOnly": true, - "secretRef": { - "name": "145" - } - }, - "csi": { - "driver": "146", - "readOnly": true, - "fsType": "147", - "volumeAttributes": { - "148": "149" - }, - "nodePublishSecretRef": { - "name": "150" - } - } - } - ], - "initContainers": [ - { - "name": "151", - "image": "152", - "command": [ - "153" - ], - "args": [ - "154" - ], - "workingDir": "155", - "ports": [ - { - "name": "156", - "hostPort": -737070070, - "containerPort": -1417286635, - "protocol": "/C龷ȪÆl殛瓷雼浢Ü礽绅", - "hostIP": "157" - } - ], - "envFrom": [ - { - "prefix": "158", - "configMapRef": { - "name": "159", - "optional": true - }, - "secretRef": { - "name": "160", - "optional": false - } - } - ], - "env": [ - { - "name": "161", - "value": "162", - "valueFrom": { - "fieldRef": { - "apiVersion": "163", - "fieldPath": "164" - }, - "resourceFieldRef": { - "containerName": "165", - "resource": "166", - "divisor": "526" - }, - "configMapKeyRef": { - "name": "167", - "key": "168", - "optional": false - }, - "secretKeyRef": { - "name": "169", - "key": "170", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "i皬择,Q捇ȸ{+ɸ殁Ka縳": "499" - }, - "requests": { - "笓珣筩ƐP_痸荎": "787" - } - }, - "volumeMounts": [ - { - "name": "171", - "mountPath": "172", - "subPath": "173", - "mountPropagation": "¿燥ǖ_è绺", - "subPathExpr": "174" - } - ], - "volumeDevices": [ - { - "name": "175", - "devicePath": "176" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "177" - ] - }, - "httpGet": { - "path": "178", - "port": -662805900, - "host": "179", - "httpHeaders": [ - { - "name": "180", - "value": "181" - } - ] - }, - "tcpSocket": { - "port": "182", - "host": "183" - }, - "initialDelaySeconds": 578888856, - "timeoutSeconds": 2073854558, - "periodSeconds": -557582532, - "successThreshold": -773009446, - "failureThreshold": -1040245211 - }, - "readinessProbe": { - "exec": { - "command": [ - "184" - ] - }, - "httpGet": { - "path": "185", - "port": -2064088433, - "host": "186", - "scheme": "Do©Ǿt'容柚ʕIã陫ʋs", - "httpHeaders": [ - { - "name": "187", - "value": "188" - } - ] - }, - "tcpSocket": { - "port": "189", - "host": "190" - }, - "initialDelaySeconds": 229600975, - "timeoutSeconds": -35598353, - "periodSeconds": -1697933829, - "successThreshold": -1438986781, - "failureThreshold": -330720710 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "191" - ] - }, - "httpGet": { - "path": "192", - "port": 1348141491, - "host": "193", - "scheme": "Ȃ揲ȼ", - "httpHeaders": [ - { - "name": "194", - "value": "195" - } - ] - }, - "tcpSocket": { - "port": "196", - "host": "197" - } - }, - "preStop": { - "exec": { - "command": [ - "198" - ] - }, - "httpGet": { - "path": "199", - "port": 468716734, - "host": "200", - "scheme": "Cʖ畬x骀", - "httpHeaders": [ - { - "name": "201", - "value": "202" - } - ] - }, - "tcpSocket": { - "port": "203", - "host": "204" - } - } - }, - "terminationMessagePath": "205", - "terminationMessagePolicy": "ů湙騘\u0026", - "imagePullPolicy": "Ȗ脵鴈Ō", - "securityContext": { - "capabilities": { - "add": [ - "yǠ/淹\\韲翁\u0026ʢsɜ" - ], - "drop": [ - "\\%枅:=ǛƓɥ踓Ǻǧ湬淊kŪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "206", - "role": "207", - "type": "208", - "level": "209" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "210", - "gmsaCredentialSpec": "211" - }, - "runAsUser": 8685765401091182865, - "runAsGroup": -4139900758039117471, - "runAsNonRoot": true, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "^" - }, - "tty": true - } - ], - "containers": [ - { - "name": "212", - "image": "213", - "command": [ - "214" - ], - "args": [ - "215" - ], - "workingDir": "216", - "ports": [ - { - "name": "217", - "hostPort": -239302370, - "containerPort": -1215463021, - "protocol": "ăȲϤĦʅ芝", - "hostIP": "218" - } - ], - "envFrom": [ - { - "prefix": "219", - "configMapRef": { - "name": "220", - "optional": false - }, - "secretRef": { - "name": "221", - "optional": true - } - } - ], - "env": [ - { - "name": "222", - "value": "223", - "valueFrom": { - "fieldRef": { - "apiVersion": "224", - "fieldPath": "225" - }, - "resourceFieldRef": { - "containerName": "226", - "resource": "227", - "divisor": "706" - }, - "configMapKeyRef": { - "name": "228", - "key": "229", - "optional": false - }, - "secretKeyRef": { - "name": "230", - "key": "231", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "*ĕʄő芖{|ǘ\"^饣": "254" - }, - "requests": { - "Ř阌Ŗ怳冘HǺƶȤ^}穠C]躢|)黰": "190" - } - }, - "volumeMounts": [ - { - "name": "232", - "readOnly": true, - "mountPath": "233", - "subPath": "234", - "mountPropagation": "ȫşŇɜa", - "subPathExpr": "235" - } - ], - "volumeDevices": [ - { - "name": "236", - "devicePath": "237" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "238" - ] - }, - "httpGet": { - "path": "239", - "port": "240", - "host": "241", - "scheme": "抴ŨfZhUʎ浵ɲõ", - "httpHeaders": [ - { - "name": "242", - "value": "243" - } - ] - }, - "tcpSocket": { - "port": -1980941277, - "host": "244" - }, - "initialDelaySeconds": -124607411, - "timeoutSeconds": -1967211777, - "periodSeconds": -2138399859, - "successThreshold": 943356038, - "failureThreshold": 1499244521 - }, - "readinessProbe": { - "exec": { - "command": [ - "245" - ] - }, - "httpGet": { - "path": "246", - "port": "247", - "host": "248", - "scheme": "A徙ɶɊł/擇ɦĽ胚", - "httpHeaders": [ - { - "name": "249", - "value": "250" - } - ] - }, - "tcpSocket": { - "port": -1502363275, - "host": "251" - }, - "initialDelaySeconds": -1950133943, - "timeoutSeconds": -65465189, - "periodSeconds": 1836896522, - "successThreshold": -2101285839, - "failureThreshold": 2064656704 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": "254", - "host": "255", - "scheme": "Hǝ呮}臷Ľð»", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": "258", - "host": "259" - } - }, - "preStop": { - "exec": { - "command": [ - "260" - ] - }, - "httpGet": { - "path": "261", - "port": "262", - "host": "263", - "scheme": "鄌eÞȦY籎顒", - "httpHeaders": [ - { - "name": "264", - "value": "265" - } - ] - }, - "tcpSocket": { - "port": "266", - "host": "267" - } - } - }, - "terminationMessagePath": "268", - "terminationMessagePolicy": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "imagePullPolicy": "?鷅bȻN", - "securityContext": { - "capabilities": { - "add": [ - "榱*Gưoɘ檲" - ], - "drop": [ - "銦妰黖ȓƇ$缔獵偐ę腬瓷碑=ɉ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "269", - "role": "270", - "type": "271", - "level": "272" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "273", - "gmsaCredentialSpec": "274" - }, - "runAsUser": 2498881510781298156, - "runAsGroup": 1396880349510758210, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "猀2:ö" - }, - "stdinOnce": true - } - ], - "restartPolicy": "5w垁鷌辪虽U珝Żwʮ馜üNșƶ", - "terminationGracePeriodSeconds": 6132275361857491866, - "activeDeadlineSeconds": 139065396842667255, - "nodeSelector": { - "275": "276" - }, - "serviceAccountName": "277", - "serviceAccount": "278", - "automountServiceAccountToken": true, - "nodeName": "279", - "hostNetwork": true, - "shareProcessNamespace": false, - "securityContext": { - "seLinuxOptions": { - "user": "280", - "role": "281", - "type": "282", - "level": "283" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "284", - "gmsaCredentialSpec": "285" - }, - "runAsUser": -6995201567186416273, - "runAsGroup": -7736954297113301184, - "runAsNonRoot": true, - "supplementalGroups": [ - -2242514391033939790 - ], - "fsGroup": 2404245025847758433, - "sysctls": [ - { - "name": "286", - "value": "287" - } - ] - }, - "imagePullSecrets": [ - { - "name": "288" - } - ], - "hostname": "289", - "subdomain": "290", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "291", - "operator": "ʭd鲡:贅wE@Ȗs«öʮĀ\u003cé瞾ʀN", - "values": [ - "292" - ] - } - ], - "matchFields": [ - { - "key": "293", - "operator": "軶ǃ*ʙ嫙\u0026蒒5靇", - "values": [ - "294" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 279808574, - "preference": { - "matchExpressions": [ - { - "key": "295", - "operator": "K.Q貇£ȹ嫰ƹǔw÷nI粛E煹ǐƲ", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "7¤7djƯĖ漘Z剚敍0)鈼¬麄p呝T", - "values": [ - "298" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "39-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-l.onh-9289---x-p-qpt6-1w-3205c1lxeqyn-5--9d5a3-7bf46g-40883176jte/Pi.-_-a-G": "g.8_r_N-.3n-x.-_-_-Nm-_X31" - }, - "matchExpressions": [ - { - "key": "x---.._1_.N_XvSA..e1Vx8_I-.-_56-__18Y--6-_3J--.48Y.q.v", - "operator": "NotIn", - "values": [ - "C-_18_...E.-2D" - ] - } - ] - }, - "namespaces": [ - "305" - ], - "topologyKey": "306" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1532958330, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "5l-59g-qy5--ar-gn58nc2-3--6-o-h-9-15v-5925a-x12a-214-3sc/M.JP_oA_4A.J2s3.XL6_EU--AH-Q.GM7B": "N-_-vv-Q2qz.W..4....-h._.GgT7_7B_D-..-.k4uz" - }, - "matchExpressions": [ - { - "key": "7u-tie4-7--gm3.38vl-1z---883d-v3j4-7y-p--u/d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "313" - ], - "topologyKey": "314" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "8747ox.x-r-927--6/79._-k-5___-Qq..csh-3--Z1Tvw39F_C-rtSY.g._2F7.-_e..Or_-3": "4-Tm._G" - }, - "matchExpressions": [ - { - "key": "Q_c8.G.b_9_1o.w_aI._31-_I-A-_3bz._8M0U1_X", - "operator": "NotIn", - "values": [ - "X_._D8T" - ] - } - ] - }, - "namespaces": [ - "321" - ], - "topologyKey": "322" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 789384689, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "4--3os1-5-ufkr-x0u-1meljf-5269893-t-l/34_-y.8_38xm-.nx.sEK4.B.B": "V.Z__Lv8_.O_..8n.--z_-..W" - }, - "matchExpressions": [ - { - "key": "VKPg___KA-._d._.U8", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "329" - ], - "topologyKey": "330" - } - } - ] - } - }, - "schedulerName": "331", - "tolerations": [ - { - "key": "332", - "operator": "ŜŲ\u0026洪y儕lmò", - "value": "333", - "effect": "?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥", - "tolerationSeconds": -2713809069228546579 - } - ], - "hostAliases": [ - { - "ip": "334", - "hostnames": [ - "335" - ] - } - ], - "priorityClassName": "336", - "priority": -2137775067, - "dnsConfig": { - "nameservers": [ - "337" - ], - "searches": [ - "338" - ], - "options": [ - { - "name": "339", - "value": "340" - } - ] - }, - "readinessGates": [ - { - "conditionType": "|gɳ礬.b屏ɧeʫį淓¯Ą0" - } - ], - "runtimeClassName": "341", - "enableServiceLinks": false, - "preemptionPolicy": "z委\u003e,趐V曡88 " - } - } - }, - "status": { - "replicas": 1690834256, - "fullyLabeledReplicas": 2001418580, - "readyReplicas": -2043375598, - "availableReplicas": -867149340, - "observedGeneration": 7651417573826529316, - "conditions": [ - { - "type": "緔Tj§E蓋Cȗä2 ɲ±m嵘厶s", - "status": "ǣ普闎Ť", - "lastTransitionTime": "2291-09-10T04:26:58Z", - "reason": "342", - "message": "343" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ReplicationController.pb deleted file mode 100644 index 5ca8b60108613fa621b3f2fe7f5e1927866a9ba2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4758 zcmZWsdw5humhWnW#QQnYd)4{ccE)L1absiM+^YM=b%g*TK@k{WAgf*z2#*jFNJ0ov zzlA&q20|bSA%XA;kU$6l@+2eyr_-Hu$C-h}an{dOR~h@|xIUQm#W=F3y3z6bw*NR? z_tdFV=bSoq&ac+$`4;X0&RR(L`xa)d&t9`Uyye{XFL_S}8iYv0S=GB^N$~iEOnNU-4OOO!sL8sd ztBNX8$ah{I;=!; z-9587I8f)Wcsbu!Ia0meZ6!ps=qS%h_iAX*)}&DXKJT^{K%3^aad(5b&L?sc;NRda{1I2;7dzj(`pqr)A>do7%v-7A zC~a_{ZUQA5Q~~65*{9&0r%5MsgN`k?OEYn(J4dE<9Qtyj_J{Uv^Y8K> z7;XzRcsoP&?QScmkGU)9#a79vM8DvyvdCK;R++@Tk!jo;Spsi<=j8qjp2;fz?gWm5 zfyUo4Gtb|_-^bk*tUMp>-xoaE?5%b3G|R#}KuB3?$*`(wDlAqtSfJa{LU2Si zY$y$qK?5Zkaac9#vTBmss>#%>##;ASvDAf>AGY` zE|}HjJUdVYIB*2I=CbO#oAC|NQVgpMSY?nBM7hcE!D4GQ;M5G+0YNcfnV~u$c+?=y zQ2Pg;B-lJ9tw-b8Q;F^e5zW?pbxT*A_hnLk}>v0c;|IckoBtKqv(w zb)poQB{G{;920Yb9VMRj$k2Ynzbm|@g9)oih(74s>ACd0w`P8{>_YTlMd)Cw?^5K< zj^N48a6^CK%tgd8B^pzrdtyFF6h0)$ZW%)Y%t>qmNntS|k_wTBKaB#>rvfoj#t~Ue z1w!UquAxfAy$Z#K$-?Ec!5?K2p~UXpUG+wS)51^T9%Wq0vwbNG3zZ%J#Kz2f8jHQI zQ0L{bJr6tLny41nq%#4-ex)_0H{ zB;fV{kzi7m!FXnwtXxOGV*jcQF}~(vw!k$3V#FliZnPyp4iH#O2`r{Wb^%e`KvYWD zlx90rbEAswbPL&QOM3_7ySgTNOZ}bR0nc%7%UF4&@*rEHPn`=(z-b_o<4L%l!8GN{I$5^-x5TUN|0MA&v3us?s0qfj+OcLL@MiFer2@5 z^QERrY-1(hW5Qj*_D%Pd+c(F;__FQy{xR?EAl~}& z=3DVeXH{QYS$vqZ?ThGd$BEG^H^#=NZAaX)m>sgh>rA=&4?8qwhwi#>dhk+Xpf^zI zD@hL3Rs>qSLy^+`aZ}(TLBG0f%9kZqy5jfG!AwzzEzn%`{_V?o;M7MS#I15xHvjc6 z6OzuqU0NTX6JNjf`r8Q^hY>d~W(t%|2~1I>A5BqYFhx;Zwx>rA2KRKl8mZ{>4h^64 z48*K}k_xk$!^Zs(LMW!dG5BX=`k#3!SDxfBWjjK<5tK%#Y81-D zoiTr@2zhjSNNlJXJshkX^frfgRt)!y_WBP*`*(Q{KNPGP2=CkHKe}$Ddvmz=g4xFE z7L}N*lIEDCYziLQ8tvN|xzrYE99kT%KIj|RG}aMqX&N4!=WiV8b?$H7TiXA9Rn_98 zulqlF=e=<0*N9r6m4Rtcc&MhP0MSx`=nH`uOVLY~)t0<}EYh74)2zK89o(0bZKnMJTMFT7*sS0jqIMtK<{X&d#o{dy77@nO^pIYp9#qP>cmTR zz2%61DXv-JC(RWWL^>-x$Nc@l)8|I|N9#5X_vOq9cOIA(F7F@RJ<`b*s(dojtnm+N zp5xkztdX zzlFFPh zh1shXX{MH9&IDJnuvXq!%&*`UX&Z6DnoJpM7_V9<36frzjY%=Y1H!lh7fM+$wV9pC z#^e=PHf3-hn`yG}%yjALC9@651kH0K!8EZT;$pK{%+JyJyJqHQ=0k916|KoHfOxPL zDiPUn*~%S7Tpi*TbE&!}Yq>>25zd1%hTYX<%@9ny7AqzwTd+Y8mglc#AxR^P3O7l{ zQ|1huSMcj)!YaX}PibI9rXW0*XJUy@kny5*f;pRioO^VExm*`!3mK+il3ZbvnLbA_ zC4%87r^D%G6bq*Qthkt%OMf`Mgr(rZOnniUN#TY|(4`wt;ui3 z>No&3K6+p<)YClN6h1x_9w=uTGzL}(^dBHJ4pxZDfEu(K2Gmpr)YKSI1Lxyl1>Q-F zss8|0;B5%snh0QJ2KNx>SQFmg9@=s0u?3;33jc+drvxs9I=0SD4`1kFC`2|49uQ5q zy*6BZEPUqF$nN=Oc;AIc)h;%x>00V!*jFPAa1eMQ0Fm53^IQ&BoEWV)hfjtFE>hsh z3-h^|tfvroD=?I)={y4+|Lgts_RGf+Q((9(taTDr)d^JfA3HIDcLZ=GTSK6%&T47Bz})$yTtV(`1_?_$_5Z8zdxi0!J&JVWI0^kBPImtSvx4tDg14(}h^J7@S8MTOeDrOS&k11dhvMH%DWPHpT zLvkhfOG4G1{=wMZ&>leQCn$nI-3N}w&xz~NdG;27b7FcfHNO7ei0PrC=;CIK)ra@C z7e(8)!~ls1i9<#D4>u@#{7_NO0;1$`{`yE+PqcfxZ)fplPT}s|JbENK)Yt!f^l)eR z^43Sjn)3rq{4bxM96D4!^@-5~Bej7Okqfn>7e`w|{q3Q?%C){W$OG1up}+!RxKGrf zD~pD6Pjh?Mm97$BQ4$i7j;4KB^48G7k&2NKl!{)Aff2$wIUzAHV%d#Q42%#!U@-(j z6nKut!3a?Smo%e0eP=`cjnR`0kHioMVPFBe%SnVfQ7Q+Qk@7ZQldtoUP>Wsp7iwkJ4f1P5zocQP}_<~%WIE&>!QtVzSjfUZyM_Nz6 zgJRDxi9NL>N%62tuKLjl|JBRB;Q8u6Yv$N#@7Yjat>>(_O#B$M$>einxruDW!PdHeeJs+udr9cPQC)XB|K8K^ zd4eM+@oL+VmI<~$-e|v=U_ZY5#*ygP*Y;&OYmQtye;b8=)b-oz@qCB+@?f~HZc&z} zbylQy#|;0z;p5a9==7Xl7wl;W?&{6wxzS^x#*XN|UB2Uv#KaoUn~}*jiwn%4ZXlAw H;,趐V曡88 ' - priority: -2137775067 - priorityClassName: "336" - readinessGates: - - conditionType: '|gɳ礬.b屏ɧeʫį淓¯Ą0' - restartPolicy: 5w垁鷌辪虽U珝Żwʮ馜üNșƶ - runtimeClassName: "341" - schedulerName: "331" - securityContext: - fsGroup: 2404245025847758433 - runAsGroup: -7736954297113301184 - runAsNonRoot: true - runAsUser: -6995201567186416273 - seLinuxOptions: - level: "283" - role: "281" - type: "282" - user: "280" - supplementalGroups: - - -2242514391033939790 - sysctls: - - name: "286" - value: "287" - windowsOptions: - gmsaCredentialSpec: "285" - gmsaCredentialSpecName: "284" - serviceAccount: "278" - serviceAccountName: "277" - shareProcessNamespace: false - subdomain: "290" - terminationGracePeriodSeconds: 6132275361857491866 - tolerations: - - effect: ?¶ȲƪE1º轪d覉;Ĕ颪œ]洈愥 - key: "332" - operator: ŜŲ&洪y儕lmò - tolerationSeconds: -2713809069228546579 - value: "333" - volumes: - - awsElasticBlockStore: - fsType: "51" - partition: 13677460 - readOnly: true - volumeID: "50" - azureDisk: - cachingMode: n宂¬轚9Ȏ瀮 - diskName: "114" - diskURI: "115" - fsType: "116" - kind: Ō¾\ĒP鄸靇杧ž譋娲瘹ɭ - readOnly: true - azureFile: - secretName: "100" - shareName: "101" - cephfs: - monitors: - - "85" - path: "86" - secretFile: "88" - secretRef: - name: "89" - user: "87" - cinder: - fsType: "83" - readOnly: true - secretRef: - name: "84" - volumeID: "82" - configMap: - defaultMode: -1570767512 - items: - - key: "103" - mode: -1907421291 - path: "104" - name: "102" - optional: false - csi: - driver: "146" - fsType: "147" - nodePublishSecretRef: - name: "150" - readOnly: true - volumeAttributes: - "148": "149" - downwardAPI: - defaultMode: -2077638334 - items: - - fieldRef: - apiVersion: "93" - fieldPath: "94" - mode: 2107119206 - path: "92" - resourceFieldRef: - containerName: "95" - divisor: "291" - resource: "96" - emptyDir: - medium: '励鹗塢ē ' - sizeLimit: "995" - fc: - fsType: "98" - lun: -2040518604 - targetWWNs: - - "97" - wwids: - - "99" - flexVolume: - driver: "77" - fsType: "78" - options: - "80": "81" - readOnly: true - secretRef: - name: "79" - flocker: - datasetName: "90" - datasetUUID: "91" - gcePersistentDisk: - fsType: "49" - partition: -664310043 - pdName: "48" - readOnly: true - gitRepo: - directory: "54" - repository: "52" - revision: "53" - glusterfs: - endpoints: "67" - path: "68" - readOnly: true - hostPath: - path: "47" - type: DrȮ - iscsi: - fsType: "63" - initiatorName: "66" - iqn: "61" - iscsiInterface: "62" - lun: -314157282 - portals: - - "64" - readOnly: true - secretRef: - name: "65" - targetPortal: "60" - name: "46" - nfs: - path: "59" - server: "58" - persistentVolumeClaim: - claimName: "69" - readOnly: true - photonPersistentDisk: - fsType: "118" - pdID: "117" - portworxVolume: - fsType: "133" - volumeID: "132" - projected: - defaultMode: -1253565243 - sources: - - configMap: - items: - - key: "128" - mode: 813865935 - path: "129" - name: "127" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "123" - fieldPath: "124" - mode: 75785535 - path: "122" - resourceFieldRef: - containerName: "125" - divisor: "852" - resource: "126" - secret: - items: - - key: "120" - mode: 2036549700 - path: "121" - name: "119" - optional: false - serviceAccountToken: - audience: "130" - expirationSeconds: 3094703520378368232 - path: "131" - quobyte: - group: "112" - readOnly: true - registry: "109" - tenant: "113" - user: "111" - volume: "110" - rbd: - fsType: "72" - image: "71" - keyring: "75" - monitors: - - "70" - pool: "73" - readOnly: true - secretRef: - name: "76" - user: "74" - scaleIO: - fsType: "141" - gateway: "134" - protectionDomain: "137" - secretRef: - name: "136" - sslEnabled: true - storageMode: "139" - storagePool: "138" - system: "135" - volumeName: "140" - secret: - defaultMode: 819364842 - items: - - key: "56" - mode: 1557090007 - path: "57" - optional: true - secretName: "55" - storageos: - fsType: "144" - readOnly: true - secretRef: - name: "145" - volumeName: "142" - volumeNamespace: "143" - vsphereVolume: - fsType: "106" - storagePolicyID: "108" - storagePolicyName: "107" - volumePath: "105" -status: - availableReplicas: -867149340 - conditions: - - lastTransitionTime: "2291-09-10T04:26:58Z" - message: "343" - reason: "342" - status: ǣ普闎Ť - type: 緔Tj§E蓋Cȗä2 ɲ±m嵘厶s - fullyLabeledReplicas: 2001418580 - observedGeneration: 7651417573826529316 - readyReplicas: -2043375598 - replicas: 1690834256 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.json deleted file mode 100644 index 1c0d34588..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "ResourceQuota", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "hard": { - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕": "57" - }, - "scopes": [ - "颋Dž" - ], - "scopeSelector": { - "matchExpressions": [ - { - "scopeName": "?狱³-Ǐ忄*齧獚", - "operator": "彀亞", - "values": [ - "24" - ] - } - ] - } - }, - "status": { - "hard": { - "ɘIJ斬³;": "753" - }, - "used": { - "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ": "995" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.pb deleted file mode 100644 index 3ce97ce000974c103cb7dd466bb6e83b4a3d8214..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 386 zcmV-|0e${!ICB6B6AA)$F%k_@Wpi(Ja${vtb#HWG65;|1$N>rgG75&|(WY9I;%F)|tg zF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7 z#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5``$3L^>|=!Ct*o5X_UhnMJ+kHw1U zn~KDVdFQu<=eU&;1PTH*HxdQuqKn6c8Y2oJ3KKu)i?PD9Eys`Lzl193y{G4mni2-( zy@2Gpo*Du&G#Ww*6AB8+n8dQ?maM|FI}!y712;7@5-SQKa>b6vfaaXCUg(RXX2!fg gXhd?zu21EPvFW*&<)Na)lOPfW3IjPgH5vdS07QM8C;$Ke diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.yaml deleted file mode 100644 index c747c278a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.after_roundtrip.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: v1 -kind: ResourceQuota -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - hard: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - scopeSelector: - matchExpressions: - - operator: 彀亞 - scopeName: ?狱³-Ǐ忄*齧獚 - values: - - "24" - scopes: - - 颋Dž -status: - hard: - ɘIJ斬³;: "753" - used: - 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ': "995" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.json deleted file mode 100644 index 7f7df22c2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "kind": "ResourceQuota", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "hard": { - "脽ěĂ凗蓏Ŋ蛊ĉy緅縕": "57" - }, - "scopes": [ - "颋Dž" - ], - "scopeSelector": { - "matchExpressions": [ - { - "scopeName": "?狱³-Ǐ忄*齧獚", - "operator": "彀亞", - "values": [ - "24" - ] - } - ] - } - }, - "status": { - "hard": { - "ɘIJ斬³;": "753" - }, - "used": { - "rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ": "995" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.pb deleted file mode 100644 index 7e2104785cf278ab7f92ec47d70a03c9bf46e1af..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 402 zcmV;D0d4+kICB6B6AA)$F%k_@Wpi(Ja${vtb#HWG67m8H*Z~RwG75&|(WY9I;%F)|tg zF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-JqiLbHWDG}kc#D$is_@7 z#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W5(o+g3IZ`X5&#lW3L^>| z=!Ct*o5X_UhnMJ+kHw1Un~KDVdFQu<=eU&;1PTH*HxdQuqKn6c8Y2oJ3KKu)i?PD9 zEys`Lzl193y{G4mni2-(y@2Gpo*Du&G#Ww*6AB8+n8dQ?maM|FI}!y712;7@5-SQK wa>b6vfaaXCUg(RXX2!fgXhd?zu21EPvFW*&<)Na)lOPfW3IjPgH5vdS0GO|wp8x;= diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.yaml deleted file mode 100644 index 08ebfd4c4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ResourceQuota.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: v1 -kind: ResourceQuota -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - hard: - 脽ěĂ凗蓏Ŋ蛊ĉy緅縕: "57" - scopeSelector: - matchExpressions: - - operator: 彀亞 - scopeName: ?狱³-Ǐ忄*齧獚 - values: - - "24" - scopes: - - 颋Dž -status: - hard: - ɘIJ斬³;: "753" - used: - 'rŎǀ朲^苣fƼ@hDrȮO励鹗塢ē ': "995" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.json deleted file mode 100644 index 69f9ff089..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "kind": "Secret", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "data": { - "24": "LA==" - }, - "stringData": { - "25": "26" - }, - "type": "Ă凗蓏Ŋ蛊ĉy" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.pb deleted file mode 100644 index e958752603f35dd0f0d36af61c02c77124c7d103..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmV+k0rviDICB6B3bQ16Z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6= zaZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(y zg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8 zyOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t z!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc2MPi*G!g+U8W6;S<%gH(laIxU=$nefiFqOj P3IZ}U5&|+d8UP{yQ{!Gg diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.yaml deleted file mode 100644 index b203c48d4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.after_roundtrip.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: v1 -data: - "24": LA== -kind: Secret -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -stringData: - "25": "26" -type: Ă凗蓏Ŋ蛊ĉy diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.json deleted file mode 100644 index 02069c270..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "kind": "Secret", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "data": { - "24": "LA==" - }, - "stringData": { - "25": "26" - }, - "type": "Ă凗蓏Ŋ蛊ĉy" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.pb deleted file mode 100644 index 154f3fc8cc43c1d0d2d9400404f5b642a3e8fa44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmV+!0p|W|ICB6B3bP|993fKV(0WuN+Ga3OjA^|ljBE*I1ql?6= zaZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOiHZU?XIXK(y zg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8 zyOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t z!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM>I1&g71_}Z(IT8R82MPi*G!g+U8W6;S f<%gH(laIxU=$nefiFqOj3IZ}U5&|+d8UP{yP(5Ea diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.yaml deleted file mode 100644 index ebea0bee6..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Secret.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: v1 -data: - "24": LA== -kind: Secret -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -stringData: - "25": "26" -type: Ă凗蓏Ŋ蛊ĉy diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.json deleted file mode 100644 index 5760b921b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "kind": "SerializedReference", - "apiVersion": "v1", - "reference": { - "kind": "2", - "namespace": "3", - "name": "4", - "uid": "wȉŏ軂:鹼(c螂z=lx*", - "apiVersion": "5", - "resourceVersion": "6", - "fieldPath": "7" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.SerializedReference.pb deleted file mode 100644 index 75adbf89e973a89800003c2ac9e78ecd7b6a1322..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 81 zcmd0{C}!Z24rX? zv*qyiME#RfYM)JP)OfaY`jNI+plRkt3_^1lxtzI}j7)^2U$pE!GW$r=)As2vCifrh zdNI4}NN45q?XAyuOqH0qy>rK}|3JW~#LvMX@cG-sqafaYMkxl3=WWdw*@ZZOhL{R5 z8JS5j8JR0_9bb5?KUhWk&|VKMCL;?g&SzWZKHaeY>D~q>CL>EPCS!vjCS$`WmKXC@ sIwefL_4g~pv<$`~UM_Bqj<*+fL2Q%a;o{-~8f|PO#AIwN#h}Ch07r43hyVZp diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.after_roundtrip.yaml deleted file mode 100644 index b5eb08cb6..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.after_roundtrip.yaml +++ /dev/null @@ -1,59 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - clusterIP: "27" - externalIPs: - - "28" - externalName: "31" - externalTrafficPolicy: 螩B - healthCheckNodePort: -21009133 - loadBalancerIP: "29" - loadBalancerSourceRanges: - - "30" - ports: - - name: "24" - nodePort: 2048967527 - port: -1493017703 - protocol: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 - targetPort: -123438221 - publishNotReadyAddresses: true - selector: - "25": "26" - sessionAffinity: 洝尿彀 - sessionAffinityConfig: - clientIP: - timeoutSeconds: -1487653240 - type: ǡƏS$+½H -status: - loadBalancer: - ingress: - - hostname: "33" - ip: "32" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.json deleted file mode 100644 index 3d7855972..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "kind": "Service", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "ports": [ - { - "name": "24", - "protocol": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "port": -1493017703, - "targetPort": -123438221, - "nodePort": 2048967527 - } - ], - "selector": { - "25": "26" - }, - "clusterIP": "27", - "type": "ǡƏS$+½H", - "externalIPs": [ - "28" - ], - "sessionAffinity": "洝尿彀", - "loadBalancerIP": "29", - "loadBalancerSourceRanges": [ - "30" - ], - "externalName": "31", - "externalTrafficPolicy": "螩B", - "healthCheckNodePort": -21009133, - "publishNotReadyAddresses": true, - "sessionAffinityConfig": { - "clientIP": { - "timeoutSeconds": -1487653240 - } - } - }, - "status": { - "loadBalancer": { - "ingress": [ - { - "ip": "32", - "hostname": "33" - } - ] - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Service.pb deleted file mode 100644 index aec9eff4fbf932cf8ce3c38456fa5c499032476e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 418 zcmd0{C}!Z|Kxms|&rJ z&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPtw@wrqz z-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b--Da0T&hmp&fi^<4DNcu&~ z-XpV*G(Byf{$g_f(XJP>yN+~LKHuK@e8*IYncF*e{Q3_Bj7t0*3<96OO*{(X{b!V7 z(0Ja~e32b!B9oD+5R;La6qAv;64&vC$NGa+v=8m|&|)&Ou;P5SW$x1r`=9P@aAGpD z^kOnL2x2lejAD5)Z>3Yhcg z0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2 znZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=VcH3|YUG!ggio}U|=eLFDxRojbGB+{;GB`Q{GC3Lq3Ia1QAORWxA^;v)YjFSo diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.after_roundtrip.yaml deleted file mode 100644 index 62daa0ee0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -automountServiceAccountToken: true -imagePullSecrets: -- name: "30" -kind: ServiceAccount -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -secrets: -- apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.json deleted file mode 100644 index b06268b12..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "kind": "ServiceAccount", - "apiVersion": "v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "secrets": [ - { - "kind": "24", - "namespace": "25", - "name": "26", - "uid": "脽ěĂ凗蓏Ŋ蛊ĉy緅縕", - "apiVersion": "27", - "resourceVersion": "28", - "fieldPath": "29" - } - ], - "imagePullSecrets": [ - { - "name": "30" - } - ], - "automountServiceAccountToken": true -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.pb deleted file mode 100644 index ea0c3459f7e20fc902bc82050acff789bb85377b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 315 zcmV-B0mS}mICB6B6bb@%F%k|_WpZ|DV`V{OV{dhCbP}2Z3fKV(0WuN+Ga3OjA^|lj zBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}=6frhAHZ(FdFgG+fGdMOi zHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCjVh0KVIT8XfFlrzQ0x>cg z0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m;0X+%=F*Xt*>5z)$l#1!2 znZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM>I1&g71_}Z(IT8R8H3|YU zG!ggio}U|=eLFDxRojbGB+{;GB`Q{GC3Lq N3Ia1QAORWxA^`C8Z0G<0 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.yaml deleted file mode 100644 index 047071666..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceAccount.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: v1 -automountServiceAccountToken: true -imagePullSecrets: -- name: "30" -kind: ServiceAccount -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -secrets: -- apiVersion: "27" - fieldPath: "29" - kind: "24" - name: "26" - namespace: "25" - resourceVersion: "28" - uid: 脽ěĂ凗蓏Ŋ蛊ĉy緅縕 diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.json deleted file mode 100644 index ab28cd774..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "kind": "ServiceProxyOptions", - "apiVersion": "v1", - "path": "2" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.ServiceProxyOptions.pb deleted file mode 100644 index 1685c9cc9bf57c9a27b70b3e7ea0767f121fb633..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40 vcmd0{C}!Z2n>)ZEh0#LUFV!otkZ!qnJUib06cNQ%)|Ny6^gj=eADE`Qdw;pNT=C-z01SQHWX zVoy`7mNgfni4dcy6r-7vGMDtTg&SgH4=+2>^K9J?qvsv-5A8X$D!=Sy$F^e=g&57H e7%eoOEIsw+-+v%rG-5D#`|9li2uF%Ri2(rNa!VZm diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Status.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.Status.yaml deleted file mode 100644 index 8e5da3a29..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.Status.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -code: -467962515 -details: - causes: - - field: "8" - message: "7" - reason: 桰]]æȌ殸2爟¼ªov鈶Ƒ - group: "5" - kind: "6" - name: "4" - retryAfterSeconds: -309161244 -kind: Status -message: "3" -metadata: - resourceVersion: "17435791464288618533" - selfLink: ȉŏ軂:鹼(c螂z=lx* -reason: '>渽蝧抰鹐ȾZȢXQ輂]' -status: "2" diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.json deleted file mode 100644 index 831354293..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "kind": "UpdateOptions", - "apiVersion": "v1", - "dryRun": [ - "2" - ], - "fieldManager": "3" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.pb deleted file mode 100644 index 411dbc582cde9d3a968fdd6824f09d48aefe6ca9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 scmd0{C}!Xi=3*){6ygmnNJ%V7^)D#N%+D(pV&h^o5@Ix#Vo+iL0IO{XEC2ui diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.yaml deleted file mode 100644 index 2102aa891..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.UpdateOptions.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -dryRun: -- "2" -fieldManager: "3" -kind: UpdateOptions diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.json b/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.json deleted file mode 100644 index aadfba67a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "type": "2", - "object": {"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}} -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.pb b/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.pb deleted file mode 100644 index 845f8ab8a1de26987d1c82c856da2439eca0acb7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 121 zcmWm6F$=;l5QgChP8l;g-YiO;B&&a+xL?y7jwa2~ON&za-#xdF=Yw~8s`F>>f(z_V zk1+aS2NZtOqFiT)Kp!lU>6U7_Zyj7=;(0WGt=ekozd~jzlpyY~kYrA%5WB;)VOwom PaYN2HWcnY+#ew?)N<}2L diff --git a/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.yaml b/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.yaml deleted file mode 100644 index a146a30f0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/core.v1.WatchEvent.yaml +++ /dev/null @@ -1,8 +0,0 @@ -object: - apiVersion: example.com/v1 - kind: CustomType - spec: - replicas: 1 - status: - available: 1 -type: "2" diff --git a/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.json deleted file mode 100644 index 9bb73a46d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "events.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "eventTime": "2600-06-10T04:50:19.358488Z", - "series": { - "count": 2114329341, - "lastObservedTime": "1999-07-03T22:31:10.529225Z", - "state": "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - }, - "reportingController": "24", - "reportingInstance": "25", - "action": "26", - "reason": "27", - "regarding": { - "kind": "28", - "namespace": "29", - "name": "30", - "uid": "DžSǡƏS$+½H牗洝尿彀亞螩B峅", - "apiVersion": "31", - "resourceVersion": "32", - "fieldPath": "33" - }, - "related": { - "kind": "34", - "namespace": "35", - "name": "36", - "uid": "4%a鯿r", - "apiVersion": "37", - "resourceVersion": "38", - "fieldPath": "39" - }, - "note": "40", - "type": "41", - "deprecatedSource": { - "component": "42", - "host": "43" - }, - "deprecatedFirstTimestamp": "2149-06-18T16:38:18Z", - "deprecatedLastTimestamp": "2567-05-09T03:50:37Z", - "deprecatedCount": 254375933 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.after_roundtrip.pb deleted file mode 100644 index 0ea68ac211dd8281517a9842128eb6f3a31e8a57..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 464 zcmV;>0Wbb*ICB6B9tss@c4cmKb1rK*b1rFbFLp6vWprUN5(PzeWo~p5r2`7c0SW;! z5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvl zGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD1 z0x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-01^xci_ON4N)W)W z_^JUKEeQR!nD7S@3<$2C`nv-VsH&~}0U8(OhnMJ+kHw1Un~KDVdFQu<=eU(V#l0c| zGBhdzGBq*+GB!E_GB-j!3IZ}X5&|+g8UiygA|uCzQ^%pkk5eQo!o5i6iI?WIo#n8< z<-LI9x}NBssY2zmg(?CwF){)(GCBe?GfE)}0y8uc0y8xl0y8!u2Q(#N>94R5$j1>?7atH{G^3Ž -type: "41" diff --git a/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.json b/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.json deleted file mode 100644 index 00d0fc433..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "Event", - "apiVersion": "events.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "eventTime": "2600-06-10T04:50:19.358488Z", - "series": { - "count": 2114329341, - "lastObservedTime": "1999-07-03T22:31:10.529225Z", - "state": "凗蓏Ŋ蛊ĉy緅縕\u003eŽ" - }, - "reportingController": "24", - "reportingInstance": "25", - "action": "26", - "reason": "27", - "regarding": { - "kind": "28", - "namespace": "29", - "name": "30", - "uid": "DžSǡƏS$+½H牗洝尿彀亞螩B峅", - "apiVersion": "31", - "resourceVersion": "32", - "fieldPath": "33" - }, - "related": { - "kind": "34", - "namespace": "35", - "name": "36", - "uid": "4%a鯿r", - "apiVersion": "37", - "resourceVersion": "38", - "fieldPath": "39" - }, - "note": "40", - "type": "41", - "deprecatedSource": { - "component": "42", - "host": "43" - }, - "deprecatedFirstTimestamp": "2149-06-18T16:38:18Z", - "deprecatedLastTimestamp": "2567-05-09T03:50:37Z", - "deprecatedCount": 254375933 -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.pb b/pseudo/k8s/api/testdata/v1.15.0/events.k8s.io.v1beta1.Event.pb deleted file mode 100644 index e08f3dee9194638a6d4c54e01293f8b95f2b9e2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 480 zcmV<60U!QrICB6B9tss@c4cmKb1rK*b1rFbFLp6vWprUN5(PzeWo~p5wF3&+0SW;! z5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvl zGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD1 z0x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r#5DE?o0x>ue2nq%Y z0x>xf01^xci_ON4N)W)W_^JUKEeQR!nD7S@3<$2C`nv-VsH&~}0U8(OhnMJ+kHw1U zn~KDVdFQu<=eU(V#l0c|GBhdzGBq*+GB!E_GB-j!3IZ}X5&|+g8UiygA|uCzQ^%pk zk5eQo!o5i6iI?WIo#n8<<-LI9x}NBssY2zmg(?CwF){)(GCBe?GfE)}0y8uc0y8xl z0y8!u2Q(#N>94R5$j1>?7 WatH{G^3Ž -type: "41" diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.json deleted file mode 100644 index 98610d66e..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.json +++ /dev/null @@ -1,1079 +0,0 @@ -{ - "kind": "DaemonSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O", - "resourceVersion": "11397677413428459614", - "generation": 3974191383006284807, - "creationTimestamp": null, - "deletionGracePeriodSeconds": 5087509039175129589, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": ",Q捇ȸ{+ɸ殁", - "controller": true, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "apiVersion": "45" - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "_Ĭ艥\u003c" - }, - "emptyDir": { - "medium": "Ň'Ğİ*", - "sizeLimit": "695" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1706940973 - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 1637061888, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1092501327 - } - ], - "defaultMode": 62108019, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64", - "readOnly": true - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1884322607, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73" - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "40" - }, - "mode": -332563744 - } - ], - "defaultMode": -861583888 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": 324963473, - "fsType": "103", - "readOnly": true, - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106", - "readOnly": true - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -885708332 - } - ], - "defaultMode": -1853411528, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "啞川J缮ǚb", - "fsType": "121", - "readOnly": false, - "kind": "ʬ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 1493217478 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "763" - }, - "mode": -1617414299 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": -2137658152 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -6753602166099171537, - "path": "136" - } - } - ], - "defaultMode": -740816174 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138" - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1435152179, - "containerPort": -343150875, - "protocol": "ɥ³ƞsɁ8^ʥǔTĪȸŹă", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "Z": "482" - }, - "requests": { - "ŏ{": "980" - } - }, - "volumeMounts": [ - { - "name": "176", - "readOnly": true, - "mountPath": "177", - "subPath": "178", - "mountPropagation": "ĕʄő芖{|", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "pȿŘ阌Ŗ怳冘HǺƶ", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 1366561945, - "timeoutSeconds": 657514697, - "periodSeconds": 408756018, - "successThreshold": 437263194, - "failureThreshold": -1116811061 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 1873902270, - "host": "192", - "scheme": "?Qȫş", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": 2091150210, - "host": "195" - }, - "initialDelaySeconds": -144591150, - "timeoutSeconds": 673378190, - "periodSeconds": 1701891633, - "successThreshold": -1768075156, - "failureThreshold": 273818613 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "196" - ] - }, - "httpGet": { - "path": "197", - "port": "198", - "host": "199", - "scheme": "錯ƶ", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": "202", - "host": "203" - } - }, - "preStop": { - "exec": { - "command": [ - "204" - ] - }, - "httpGet": { - "path": "205", - "port": 2110181803, - "host": "206", - "scheme": "\u0026蕭k ź贩j瀉ǚrǜnh0å", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": "209", - "host": "210" - } - } - }, - "terminationMessagePath": "211", - "terminationMessagePolicy": "恰nj揠8lj黳鈫ʕ", - "imagePullPolicy": "衧ȇe媹H", - "securityContext": { - "capabilities": { - "add": [ - "" - ], - "drop": [ - "臷Ľð»ųKĵ\u00264ʑ%:;栍dʪ" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "212", - "role": "213", - "type": "214", - "level": "215" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "216", - "gmsaCredentialSpec": "217" - }, - "runAsUser": 6743064379422188907, - "runAsGroup": 3541984878507294780, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": "Rƥ贫d飼$俊跾|@?鷅b" - }, - "stdin": true, - "tty": true - } - ], - "containers": [ - { - "name": "218", - "image": "219", - "command": [ - "220" - ], - "args": [ - "221" - ], - "workingDir": "222", - "ports": [ - { - "name": "223", - "hostPort": -1167973499, - "containerPort": 692541847, - "protocol": "Gưoɘ檲ɨ銦妰黖ȓƇ", - "hostIP": "224" - } - ], - "envFrom": [ - { - "prefix": "225", - "configMapRef": { - "name": "226", - "optional": true - }, - "secretRef": { - "name": "227", - "optional": false - } - } - ], - "env": [ - { - "name": "228", - "value": "229", - "valueFrom": { - "fieldRef": { - "apiVersion": "230", - "fieldPath": "231" - }, - "resourceFieldRef": { - "containerName": "232", - "resource": "233", - "divisor": "385" - }, - "configMapKeyRef": { - "name": "234", - "key": "235", - "optional": false - }, - "secretKeyRef": { - "name": "236", - "key": "237", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "鎷卩蝾H": "824" - }, - "requests": { - "蕵ɢ": "684" - } - }, - "volumeMounts": [ - { - "name": "238", - "mountPath": "239", - "subPath": "240", - "mountPropagation": "2:öY鶪5w垁鷌辪虽U珝Żwʮ馜üN", - "subPathExpr": "241" - } - ], - "volumeDevices": [ - { - "name": "242", - "devicePath": "243" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "244" - ] - }, - "httpGet": { - "path": "245", - "port": "246", - "host": "247", - "scheme": "}", - "httpHeaders": [ - { - "name": "248", - "value": "249" - } - ] - }, - "tcpSocket": { - "port": "250", - "host": "251" - }, - "initialDelaySeconds": 1030243869, - "timeoutSeconds": -1080853187, - "periodSeconds": -185042403, - "successThreshold": -374922344, - "failureThreshold": -31530684 - }, - "readinessProbe": { - "exec": { - "command": [ - "252" - ] - }, - "httpGet": { - "path": "253", - "port": "254", - "host": "255", - "httpHeaders": [ - { - "name": "256", - "value": "257" - } - ] - }, - "tcpSocket": { - "port": -289900366, - "host": "258" - }, - "initialDelaySeconds": 559781916, - "timeoutSeconds": -1703360754, - "periodSeconds": -1569009987, - "successThreshold": -1053603859, - "failureThreshold": 1471432155 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "259" - ] - }, - "httpGet": { - "path": "260", - "port": "261", - "host": "262", - "scheme": ":贅wE@Ȗs«öʮĀ\u003cé瞾", - "httpHeaders": [ - { - "name": "263", - "value": "264" - } - ] - }, - "tcpSocket": { - "port": "265", - "host": "266" - } - }, - "preStop": { - "exec": { - "command": [ - "267" - ] - }, - "httpGet": { - "path": "268", - "port": -1718681455, - "host": "269", - "scheme": "*ʙ嫙\u0026蒒5靇C'ɵK.", - "httpHeaders": [ - { - "name": "270", - "value": "271" - } - ] - }, - "tcpSocket": { - "port": "272", - "host": "273" - } - } - }, - "terminationMessagePath": "274", - "terminationMessagePolicy": "£ȹ嫰ƹǔw÷nI粛E煹", - "imagePullPolicy": "ȃv渟7", - "securityContext": { - "capabilities": { - "add": [ - "djƯĖ漘Z剚敍0)鈼¬麄p呝TG;邪" - ], - "drop": [ - "mɩC[ó瓧" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "275", - "role": "276", - "type": "277", - "level": "278" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "279", - "gmsaCredentialSpec": "280" - }, - "runAsUser": -6244232606031635964, - "runAsGroup": -2537458620093904059, - "runAsNonRoot": false, - "readOnlyRootFilesystem": true, - "allowPrivilegeEscalation": true, - "procMount": "ɟ踡肒Ao/樝fw[Řż丩Ž" - }, - "stdinOnce": true - } - ], - "restartPolicy": "ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ", - "terminationGracePeriodSeconds": 1221494839594199191, - "activeDeadlineSeconds": -1172377136758373368, - "dnsPolicy": "Ndǂ\u003e5姣\u003e懔%熷谟þ蛯ɰ", - "nodeSelector": { - "281": "282" - }, - "serviceAccountName": "283", - "serviceAccount": "284", - "automountServiceAccountToken": true, - "nodeName": "285", - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "286", - "role": "287", - "type": "288", - "level": "289" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "290", - "gmsaCredentialSpec": "291" - }, - "runAsUser": 5824892309487369487, - "runAsGroup": 6134106493278592168, - "runAsNonRoot": true, - "supplementalGroups": [ - -4964947941541214699 - ], - "fsGroup": -3979882341327374195, - "sysctls": [ - { - "name": "292", - "value": "293" - } - ] - }, - "imagePullSecrets": [ - { - "name": "294" - } - ], - "hostname": "295", - "subdomain": "296", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "297", - "operator": "t莭琽§ć\\ ïì", - "values": [ - "298" - ] - } - ], - "matchFields": [ - { - "key": "299", - "operator": "ȿ0矀Kʝ", - "values": [ - "300" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1281792166, - "preference": { - "matchExpressions": [ - { - "key": "301", - "operator": "", - "values": [ - "302" - ] - } - ], - "matchFields": [ - { - "key": "303", - "operator": "粕擓ƖHVe熼'FD", - "values": [ - "304" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "q1d---x/31..jtFe8b_A_..P1s-V.9.4..9..cu": "i.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_m" - }, - "matchExpressions": [ - { - "key": "x4--s--xu-d42--clo90---461v-07r--0---8-30iu/V18_...E.-2D", - "operator": "NotIn", - "values": [ - "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - ] - } - ] - }, - "namespaces": [ - "311" - ], - "topologyKey": "312" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1129218498, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1py_8-3..s._.x.2K_q": "N0S-CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.3" - }, - "matchExpressions": [ - { - "key": "b-skj5---r-q34cshj3zi-1-w/F---.M.U_-m.-P.yP9S--858LI__.8____rO-S-P_-...0c.-p", - "operator": "In", - "values": [ - "9F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..M" - ] - } - ] - }, - "namespaces": [ - "319" - ], - "topologyKey": "320" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "1j2--a.pp9-8--m-cbck561-72-l84--162-gk2-99v2xu-3po4--3os1-5-ufkr-x0/3G.b_9_1o.w_aI._31-_I-A-_3bz._8MU": "P_3..H..k9M86.9a_-0R_.ZI" - }, - "matchExpressions": [ - { - "key": "8-e-l203-8sln7-3x-b--55039780bdw0-1-47rrw8-5ts-7-b-p-5-5wmi-40.k5p-26-u5wg-gb8a-6-80-4-6849--w-0-2u/8_.O_..8n.--z_-..6W.VK.sTt.-X", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "327" - ], - "topologyKey": "328" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1262074531, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "1.O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.C.-e16O": "5Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-Wo" - }, - "matchExpressions": [ - { - "key": "3zHw.H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7X", - "operator": "In", - "values": [ - "T.miw_7a_...8-_0__5HG2_5XOAX.gUqV22-4-ye52yQh7.6l" - ] - } - ] - }, - "namespaces": [ - "335" - ], - "topologyKey": "336" - } - } - ] - } - }, - "schedulerName": "337", - "tolerations": [ - { - "key": "338", - "operator": "Uȍ", - "value": "339", - "effect": "^\u003cu綡Ţ搯唧", - "tolerationSeconds": 5874355269862618775 - } - ], - "hostAliases": [ - { - "ip": "340", - "hostnames": [ - "341" - ] - } - ], - "priorityClassName": "342", - "priority": -1662855542, - "dnsConfig": { - "nameservers": [ - "343" - ], - "searches": [ - "344" - ], - "options": [ - { - "name": "345", - "value": "346" - } - ] - }, - "readinessGates": [ - { - "conditionType": "l=ƈư呄" - } - ], - "runtimeClassName": "347", - "enableServiceLinks": true, - "preemptionPolicy": "ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ" - } - }, - "updateStrategy": { - "type": "丑ť竹ɁøCSɛĭ楿", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1238814605, - "templateGeneration": 7026077266680344289, - "revisionHistoryLimit": -258261674 - }, - "status": { - "currentNumberScheduled": -555161071, - "numberMisscheduled": 574445425, - "desiredNumberScheduled": 315650291, - "numberReady": -1715156769, - "observedGeneration": -3880303276690778218, - "updatedNumberScheduled": -217444218, - "numberAvailable": 165914231, - "numberUnavailable": -1146687901, - "collisionCount": -1983059344, - "conditions": [ - { - "type": "4姺剟ź魊塾ɖ$rolȋɶuɋ5r儉ɩ", - "status": "-ÚŜĂwǐ擨^幸$Ż料ȭz", - "lastTransitionTime": "2333-12-17T22:44:31Z", - "reason": "348", - "message": "349" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.after_roundtrip.pb deleted file mode 100644 index 0d9d5667beb251982fd1afd0b1715576d8e08383..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4986 zcmYjV2~<=^y6$SDA$Ml-$W1cS(>Zgdr?W96Rotq(o6TL+C~hEOCb`2Fltr*XK{9iW z5ETR$5J5!IsLu^l5R8DhBtS#cGjWob_cGZgF|oHe$ulSMW#S}n-e27&C+PX_y;Xnx zTmAL_Uv+^|Y7>4fh`AMIxhqRo6t65zT0^sP%QC5W$BfL}qT-cHa?8X^4+%abASNQ& zi4-?d6Wt>lA_wb7I#XcL{dNoOUX^ z@0?K?7~J8jd7;!>H@dAP(N3vkGmytll}bBR>ktN3P5e!yp)RnaE^=^}cP~y2>^VK$ zmzgxa<4?iHs)XRc&XJAJf;64k#LM>!`;hRYpqMN5wK=+?u99%{k71@z87qaWv4J&@ zqDV@P3Nv{|Hp2yG(t-*yTbv}#Cu>Qb_^j}dW)LfDQ8~dmv$bqYG>okZg0WOyludDT*j9|-}X)Re}SxlRkZY{P5CJV}z6AR-dmNH|ig;fjmFJj_9 zexvp>9LYv9HDEboc2o=8`BXn*$$;o7P|!=`Z4 z(G-X~l}%mKb#O*uhN7ApRg9X}+T*)l@i*xZ_Zz+6eLM7e`)ji@;y{H8Dzq&Aro)@T zBdqcG;8=kG#Sv?TTE7ehRFLXai;y0z2Xo-kl`a zRVrSdB>W6sn0UK2ay-20(BtA=LY%ke;gP)~-HGBvVS;9=&U=AF7VWCyxcukZH^2Ee z{2`ak9S_4`lBzk@bzIs!$%PU@iwdTxhSRQ^49wFc@ou10v}??9s;cJee?=ENzWn&o zuUu%d0CON%Qygeo61;;nO>?}l>B4vajPkkdnx1Ia49Paxu9;J8i*FO`x|D9qvg>p% zEY_K5*JX!oF*u_u@wN<5se=$*bJ}&?ZP$%NyKXYOAx(yr2AzVkobZHIhV0}c3K$LX zG+>RP<%2^8m~R*k(eRJU3=xZJN1!rXOjk|8PAt$`bU=KW$?XY3+ zRJjPvf!fd`0_+8qbn#yPF!;FXcrq4+OmL^(F7Z_`;VVR0zNm9d z5qaDgcbaLA(JR%yi7uN+g(N zELrAkisNtZyuCh_RW9V_QIysAu1mq2{>!Zg5Afj2TKt>MAMO1vx;5`22e2sIHN}8Q z#dO&cxl5|_G5R%s(s&z;tIW;qg5v>1iE*f60zKJ9z+@3|q}))nRkr`qucj4rlE_;ch{QZ0!qdITmiekj&4y z0pSO>aP!OK2cqZRQ06|tg&5pV=m+3}A|*b^CJ&!^CUT}jEf4Iiiu7#`U+4($I-eTa z*6tlF_n(X$-ZOk|0RvvTxKwy5Y6lb^$StO*;vI1)DoxQqq@uggpAxwz3inIl$L4zm zmHP%EZr{BB+62e>o3DKviVYSe9sqGZp36cZG7B_-_!lSb#}+rt)E=Jb*#>} zUu(J<)BM@C*EYq@o%CM)8|Nox^&lZFrqvW51FcZ@zSpY331k{`J0^!uZz!KR#n)0g z)H!^{e{y8q`O!hhI>OzN8*ta zY7K*$3xsbfR9zs3YyD~e=`XKW9Y2N=Y`haq@wW7ahu`&GeILzrj_(Wi?+;gRpIV$0 zJlg(z`R}}~-g8&`k9p58=INkA1!0D?4%uoEYCyI&Ubx`kh<8L|!8Fi%>s61p9YDVr zI_Mh+basypjO{2N?prx0)U$hLXv07UuT@Op?kckL0q>x{^_g(*i{l-DKSJvoy#wZ0 z^V3iJ>c;ot)uV&K>K5NI*UmStkG=PC=$rV2+S9#+hQ3~x_H_zYhoFGHfQsWMvYWw6i5ev|QWQhW3fCm#nnk>oUU7?=l zU{lj*OLAInXydtuXU*W#ig;~;@HP_sNLVI3yo%-k7^_H1QjtQI~^Kt0AJZDuC6@>UW9XOro&H46+$pCwL^dHa+p6SvyqE_~|^#A=YZ&Mth3 zgd*XI%=wHefD9K{d6*E(g8%S0&&s3O>CbxzpR(W|SV2qHT3{C;rNkl?gw3;7iH|Oj zmf-2DmXR4Sg&8fFg|j855xin)A)#Q@QjFE2e9I*Bi7Zwj;pr?~T9D6it_QD@mF&{x z`Eun7OmTVAEEoi~R0|goypXJ2XfA<3sK(QCz$$}VUkf#9=QIvAWwNQwveZOk;k*KdO>+%{t&>ZNVNfnErC7zQpD*y>3MomR zO|mT0qQ#`#%A5m$oMLMZo{B9wtCCp8{8Z7g(1Q3S6H;K#H#A~qT37;Do-s$$T$ zw-oYhX2puqGKdv}!!AS1zKY@w-Uz;PoA@3QE+OH0;ZX`{JuL&4V@j6bX|hGKsGbce zSc2D*+(j8?iKUV01m{vMMby+qI2Bu^xTtI@Sq8Tb)goyWds2C}NgByrRiMsG1V?2S#4x%NU0~6gnXgJqCR!^g;MCIrO2t!BJ>%PzrTjia{U1w0uwolpBRU zROhHy2PibnDF_0};0Q;7djOO;@3t5CmuX0I0WeUVcNcg-AER)6_{m7Kf4#RcT-Wl# z9~q38iz|dBybV!UZScnr0D~F;FsPxr?=A6N^tMJ?H+x%x>v{tlTa(Amj-KJ&nDQ<_ zp$q(gbg02yfo`zt*z5HZ9pkSK57=Ej7rq)o3GbeH<#i+GSl!7e5oSd-L-9`p zStb<)00S3pc)y$EeAi|R5tCN&kn%ABqG?Z&|E9NbV-jeqmAje{|~ z%(v8zGTp`^U^HrlPxP4ELsno;-u2TOV*HDwAV$*a_jBM_T zImh^ohrx~K2j>{H4H%Jcff(o#9K^t_h8xs*aQEk65cDERbN}+8aPx@*m-lS=^s)TV zx=mwkp0PbEmrKKkq96wDJ-}xCSTe^5@Z$pz>Jh^GkN9eG104g&m22Tg5}SBmxTbI9 z{BZZsptpD4$jc8Y{>BF%x5({y62SNZ*F6C|-e|G+@2H4xw6P zYd~;Y;}^PFJ^RsIs;SawVS`@vL$qKBM6*>gx zP+>k)ccMNN+sil6&q0&|*&r(lq(3|WuE~n_H-tV$KN0RId}6eAv^&ta{!_kIzmCvN zbicoOnKsnr+vz7%-#v07c<7>Nb8Xr8-lf|Tu6)oJ@>WG&$&~*4=0DcQGS1n7;u_yN_;u`_75~M_ z8;y3ymsehGL9P!Qn=Zv{PH5@6_|nmxyPEt++PME{Yiz0U^H_;OjJG`CDK7NYkDpmRUaxur>o<)b6P5姣>懔%熷谟þ蛯ɰ - enableServiceLinks: true - hostAliases: - - hostnames: - - "341" - ip: "340" - hostPID: true - hostname: "295" - imagePullSecrets: - - name: "294" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: Rƥ贫d飼$俊跾|@?鷅b - readOnlyRootFilesystem: false - runAsGroup: 3541984878507294780 - runAsNonRoot: false - runAsUser: 6743064379422188907 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "285" - nodeSelector: - "281": "282" - preemptionPolicy: ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ - priority: -1662855542 - priorityClassName: "342" - readinessGates: - - conditionType: l=ƈư呄 - restartPolicy: ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - runtimeClassName: "347" - schedulerName: "337" - securityContext: - fsGroup: -3979882341327374195 - runAsGroup: 6134106493278592168 - runAsNonRoot: true - runAsUser: 5824892309487369487 - seLinuxOptions: - level: "289" - role: "287" - type: "288" - user: "286" - supplementalGroups: - - -4964947941541214699 - sysctls: - - name: "292" - value: "293" - windowsOptions: - gmsaCredentialSpec: "291" - gmsaCredentialSpecName: "290" - serviceAccount: "284" - serviceAccountName: "283" - shareProcessNamespace: true - subdomain: "296" - terminationGracePeriodSeconds: 1221494839594199191 - tolerations: - - effect: ^T;{@ZZ>yOqqu>DndA;zP!_=k1Rsd2y0A@2_r?6ZHJ|-m1U; zwd()B>O#HD!u^Kh^D4{pR+grG)J=oysS~WMcw?0dc?BDW7&ryGy5NYdHJq_u>{}{-l_Y&1mWvYmptV_D8 zs3MgN{ex>Y|5@Fzr@C~SW#NgsS6w`P$qX&0+_u{nRp3|fK zS;_t#e-1TOCx!-hdNw`>(zGNScNehhd;&KKo(6B>KYM`Nhq$LW*;uKq&DCUOm55`1 z6jPZVlcQs6xQGv(+3d zs2H1-0>)xRab_VgVNxnH@ig8#XQd-~sXHeZQvsXiOmoQ^)1>OW40Ew5U|~V|a>2xS zi7C&RYGTC%{fj7H=i-JDXO%?WDiMcOqAsf>B|R|KxX=vm9Efb$8hoiC+k0ZXH`?73 z-rw_Lq^>&HxGBBV0=(PR$hK(H#?(X?cE2WhHme{<9D_x~H?b6Hg_$*St2 zWwKQ@rdSr=##uEn!;)>)$Xr;gQQoRacFSULMw4xpOi-zT5KVPhHO*z!^dzfhP^&IZ zhLt**g0da(gjKraU?VaZ4e`}sjjk4eLpqqR>vrT~vxeKwSq(_E0f{ys(T0=+D)}voC zMrv!?b+a8g;8g;9;302Ecd{9UiBRpR9X-lHE{Le{_pyi0#tr-1m)?FaF3CRd_dT0$ zB?cWp_W~1P`UwH4gt~x8o#=ixEVE$+JcNgu1Vp1i^j`EJn>ApTijJQLTlNO~JLZPZ zog8n^23ATEEz}w~eim`SMk!;HMq*aN=A1wz-EIjW0p=to0=6l$S0*ukWJ=*(nhZpq z21J<)L|tfk3++VQCdAzzbB@Y9iyLK5Q`J6pxyCoqY2gW%%tkdnrkHt74aeOu1Sb#( zVTv?Wat5z`@?AUv4rffBL}S5{B*rG&-+k|$_3>ThL@pLZNwIZb4BZS|YCCv<1z%Ea zZ?$}~_xo6C-bZ#|fx`kshe_FRT9TMciuft|4SN!s1;!QXVs^pt03ydZ6u#+pZUTkU z2E=eopj31LAxS_eRbYxrwhiNTmu?+~oqZhvtIIxntf$1^7V7NvAC1-@4j%4_4z>E4 z$7+;+unGl`%3H<_Gkj12j=;YBe&qmL5 zDiy)K)zSXVk>SqBuJdW(Z5`gBionU};XR}07Es_Ni_5sDV|G9xg1tp$g});K#iYq9 zh?F%K`g0QVL}q@;?AZLkpfKMc#2uUWU!7n-fAjV4;<0jee0}){OVGbiV%zwh*W*V@ z^o;!TdVDmqjGGZt3MK6U5Dkg>QKk$^6~$$V=~P%S6wUDq?%xtDw%#u<--yd{SlGC3 z+tc$u^;Y}Vt)E@Gb*#>JTy4G?*Zjq{*Ehw_o%lh+o98EH_aZJmuGQcl2dz-{e$cAI z38X4@*(XO%Z>X3##n)Ok(lvS}aMH8xiP2->y~8nUpb7$){F4YkErb!3&xpxYHJ&9y z)p=%ZQ}wyO-rDLcH>%;fHz}|y*tP57$oB0@w4-+VBmP(B2{FkUi=;+=A{mM%j7SAQ zWcTg9m)3*^_Gwj(h@;$txdmh0p4QO0w#?wB_E5_f@psX>b0f#2XV;eon>v=xemq*! z$#cd2W7B^>+81skL1Vn-nP+_U{=Inh*ifjZ)pyLf^UdqyAAB1A)|OaT7d;d>Jn+$f zBYOXW-0_;Hl;DwrPlalCJQUv8AL-dQIvm;E?eBpe2F4O*F`WiPnhQi;3`EJW{1Gj; zxHCBxBAx9wU4szmI)q3!Y};ayDy)B{U=CRh4^t|xKbC1lL!KP*Y>ICi`#03zyjC*7i$pvs$nJf`O zC@7zmr)Qf}O+i>l%5b`12(kb~$XU%lwgO(TnJI`S5zOWJf>~mgs;ZJ|%Cidub6Q5Z zkcu_aH1V@$F<-*zl`_U~G~ox)53 z(;5841tsMG_8v>cboo*NS7E`_uu}Al0O~Oo(r0F2Gk>L^;~ZhSWX=LZGG_4;B-TD9 zLiw%MgyHYJ!FUbg*IBu*5Le7SnKhph8Ia-vGan0rX~KW_n`h>eoQxOT0-G}7A6P+3 z*P39LAe0HFP$|%P<|_WN1>zDsebq8y225c}3TNRQk*We-v9w4aVAN8KmEr=^5atUK zUyZnDvT<2q0mHp+yh@UD%9a;MRVy&T70I(;5ZKa8TrA*)!rFz#5(tE%KQjlc(wSB6 zRJ;T)j2R>52)Hx`ez7sjoQ~b)OP&=V_;i*A2ImPvsvG#E)Rg>k!AuiyrRkmy37gLX z0_{u!e9(9sci779vT|Tn9w~raWC^9E2E-m0=TGw1Nz5tyOlJX}OY3F~D=D>W=t;%o??A_Cyn#q8V)5#l6kZg+)_ zmGUyI!E`C;S1O8EU|AFjl~PPqyjrQq$NAZM7FMw?Vi~KtY+zgg8;h<^h7FYpdrDsk zcZn(%N_Cl#K2IoHS}x!W{>~XCd1bKAW>&5!D~DK7IP4O%>?K9-q|BzKl94(!LCl};%r zTAQcPwTqT(f?5P_N(#6ssqF};b^wh`VsHqG9f9Tw1d1I|jHC$!E}Z~4H2wWe2=4lD6_clf9TVMPWg%M+MCAWmNAp)y)_V^KC5FG#p(G}NyrM?T^ zwrJaCZ)<2>UvOhv%J|u_GprjE)&&T3fgh0$(U~jI4R#%SqhX@m|JvxF)!94z^$1FQ z|IDjzAn`Bzhpxu!PG%`LE2bHWe-g+t2+si+7{1~Cev*S>QMjQ@dU}zs%eyb8%V3z) zkO3<*wwiaEg10kpLkz|C))yOx;&{ov_2Y)utj<$=M!O~@{^R8vr{lOnyfN;pLD_H{ zpB`7K@`+5P_5-dV21CV$;hGrT+#Pq0vKtSD8_$ofuPsi9)CMY~=K@g7CUc1Q6op zBKwc{YV(4fgDF*O;YSn;e}AO5-*bMnXJp9RH_!9R!*ZbMp~;VjUfz-$=mZ4H8Zwl1 zAQI>&GBjkOIIjkJeP=rx0?z?tfuA*|oLhHo*QsrvH5Ur0!SAFDMXcjz$-*mY;ZffCsf@tzB#n* zWqo{8bf_;{*A-}qVHKjYy{wa?2=$`hLBEw?bENsUumfhe?t1=-)!{Syy$3>#-N7A4 z5_f)a)f4&n+mS`FJDDWIT1h4&a1LeaL-i*b!tq?bg?<5|WY`UoEW`GP2f#H+R^LVF zQ}i?Lj-n^W>c)D4P3u2rYqjeL-9!%rT9&CJ-M*dPlOz3CE*uUYtPgYqHjE66b%(o7 zJsIk44;*p)io5U1K$G`SxNFc~JvuObiGR1}MCi~3-s0S{?}LlCC0_ohKkTiJzM3We z*Uf*dkMB4~CrW5~``|b6dzS6XlQ){I_OC9#){2}TH#J|3+nm_iec|P!J9jk)khpRG z(YE+f{hPmTO`Y=Dhr2(DpNN#}Z}(k{-{}^oaSzDBBWHt~_Ib}nPt*tZ5Bpmmbe9zQ z8vJKg`x_K@aQ!C#G2Vek+r4`{H5KEHq2{B{2L}fL7lvAQ`A$?h5)%G)?folBHj4|w NpeF$_92S@5{{i>CK92wZ diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.yaml deleted file mode 100644 index 391049895..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DaemonSet.yaml +++ /dev/null @@ -1,738 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: DaemonSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 1238814605 - revisionHistoryLimit: -258261674 - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: 5087509039175129589 - finalizers: - - "42" - generateName: "31" - generation: 3974191383006284807 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: true - kind: "40" - name: "41" - uid: ',Q捇ȸ{+ɸ殁' - resourceVersion: "11397677413428459614" - selfLink: "33" - uid: ƐP_痸荎僋bŭDz鯰硰{舁吉蓨O - spec: - activeDeadlineSeconds: -1172377136758373368 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "301" - operator: "" - values: - - "302" - matchFields: - - key: "303" - operator: 粕擓ƖHVe熼'FD - values: - - "304" - weight: 1281792166 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "297" - operator: t莭琽§ć\ ïì - values: - - "298" - matchFields: - - key: "299" - operator: ȿ0矀Kʝ - values: - - "300" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: b-skj5---r-q34cshj3zi-1-w/F---.M.U_-m.-P.yP9S--858LI__.8____rO-S-P_-...0c.-p - operator: In - values: - - 9F_C-rtSY.g._2F7.-_e..Or_-.3OHgt._U.-x_rC9..M - matchLabels: - aM214_.-N_g-..__._____K_g1cXfr.4_.-_-_-...1py_8-3..s._.x.2K_q: N0S-CqW.D_8--21kF-c026.-iTl.1-.VT--5mj_9.M.3 - namespaces: - - "319" - topologyKey: "320" - weight: -1129218498 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: x4--s--xu-d42--clo90---461v-07r--0---8-30iu/V18_...E.-2D - operator: NotIn - values: - - O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF - matchLabels: - q1d---x/31..jtFe8b_A_..P1s-V.9.4..9..cu: i.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_m - namespaces: - - "311" - topologyKey: "312" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 3zHw.H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7X - operator: In - values: - - T.miw_7a_...8-_0__5HG2_5XOAX.gUqV22-4-ye52yQh7.6l - matchLabels: - 1.O-BZ..6-1.S-B3_.b17ca-_p-y.eQZ9p_6.C.-e16O: 5Q-U-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-Wo - namespaces: - - "335" - topologyKey: "336" - weight: 1262074531 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8-e-l203-8sln7-3x-b--55039780bdw0-1-47rrw8-5ts-7-b-p-5-5wmi-40.k5p-26-u5wg-gb8a-6-80-4-6849--w-0-2u/8_.O_..8n.--z_-..6W.VK.sTt.-X - operator: DoesNotExist - matchLabels: - 1j2--a.pp9-8--m-cbck561-72-l84--162-gk2-99v2xu-3po4--3os1-5-ufkr-x0/3G.b_9_1o.w_aI._31-_I-A-_3bz._8MU: P_3..H..k9M86.9a_-0R_.ZI - namespaces: - - "327" - topologyKey: "328" - automountServiceAccountToken: true - containers: - - args: - - "221" - command: - - "220" - env: - - name: "228" - value: "229" - valueFrom: - configMapKeyRef: - key: "235" - name: "234" - optional: false - fieldRef: - apiVersion: "230" - fieldPath: "231" - resourceFieldRef: - containerName: "232" - divisor: "385" - resource: "233" - secretKeyRef: - key: "237" - name: "236" - optional: true - envFrom: - - configMapRef: - name: "226" - optional: true - prefix: "225" - secretRef: - name: "227" - optional: false - image: "219" - imagePullPolicy: ȃv渟7 - lifecycle: - postStart: - exec: - command: - - "259" - httpGet: - host: "262" - httpHeaders: - - name: "263" - value: "264" - path: "260" - port: "261" - scheme: :贅wE@Ȗs«öʮĀ<é瞾 - tcpSocket: - host: "266" - port: "265" - preStop: - exec: - command: - - "267" - httpGet: - host: "269" - httpHeaders: - - name: "270" - value: "271" - path: "268" - port: -1718681455 - scheme: '*ʙ嫙&蒒5靇C''ɵK.' - tcpSocket: - host: "273" - port: "272" - livenessProbe: - exec: - command: - - "244" - failureThreshold: -31530684 - httpGet: - host: "247" - httpHeaders: - - name: "248" - value: "249" - path: "245" - port: "246" - scheme: '}' - initialDelaySeconds: 1030243869 - periodSeconds: -185042403 - successThreshold: -374922344 - tcpSocket: - host: "251" - port: "250" - timeoutSeconds: -1080853187 - name: "218" - ports: - - containerPort: 692541847 - hostIP: "224" - hostPort: -1167973499 - name: "223" - protocol: Gưoɘ檲ɨ銦妰黖ȓƇ - readinessProbe: - exec: - command: - - "252" - failureThreshold: 1471432155 - httpGet: - host: "255" - httpHeaders: - - name: "256" - value: "257" - path: "253" - port: "254" - initialDelaySeconds: 559781916 - periodSeconds: -1569009987 - successThreshold: -1053603859 - tcpSocket: - host: "258" - port: -289900366 - timeoutSeconds: -1703360754 - resources: - limits: - 鎷卩蝾H: "824" - requests: - 蕵ɢ: "684" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - djƯĖ漘Z剚敍0)鈼¬麄p呝TG;邪 - drop: - - mɩC[ó瓧 - privileged: true - procMount: ɟ踡肒Ao/樝fw[Řż丩Ž - readOnlyRootFilesystem: true - runAsGroup: -2537458620093904059 - runAsNonRoot: false - runAsUser: -6244232606031635964 - seLinuxOptions: - level: "278" - role: "276" - type: "277" - user: "275" - windowsOptions: - gmsaCredentialSpec: "280" - gmsaCredentialSpecName: "279" - stdinOnce: true - terminationMessagePath: "274" - terminationMessagePolicy: £ȹ嫰ƹǔw÷nI粛E煹 - volumeDevices: - - devicePath: "243" - name: "242" - volumeMounts: - - mountPath: "239" - mountPropagation: 2:öY鶪5w垁鷌辪虽U珝Żwʮ馜üN - name: "238" - subPath: "240" - subPathExpr: "241" - workingDir: "222" - dnsConfig: - nameservers: - - "343" - options: - - name: "345" - value: "346" - searches: - - "344" - dnsPolicy: Ndǂ>5姣>懔%熷谟þ蛯ɰ - enableServiceLinks: true - hostAliases: - - hostnames: - - "341" - ip: "340" - hostPID: true - hostname: "295" - imagePullSecrets: - - name: "294" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "770" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: 衧ȇe媹H - lifecycle: - postStart: - exec: - command: - - "196" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "197" - port: "198" - scheme: 錯ƶ - tcpSocket: - host: "203" - port: "202" - preStop: - exec: - command: - - "204" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "205" - port: 2110181803 - scheme: '&蕭k ź贩j瀉ǚrǜnh0å' - tcpSocket: - host: "210" - port: "209" - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1116811061 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: pȿŘ阌Ŗ怳冘HǺƶ - initialDelaySeconds: 1366561945 - periodSeconds: 408756018 - successThreshold: 437263194 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 657514697 - name: "156" - ports: - - containerPort: -343150875 - hostIP: "162" - hostPort: 1435152179 - name: "161" - protocol: ɥ³ƞsɁ8^ʥǔTĪȸŹă - readinessProbe: - exec: - command: - - "190" - failureThreshold: 273818613 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 1873902270 - scheme: ?Qȫş - initialDelaySeconds: -144591150 - periodSeconds: 1701891633 - successThreshold: -1768075156 - tcpSocket: - host: "195" - port: 2091150210 - timeoutSeconds: 673378190 - resources: - limits: - Z: "482" - requests: - ŏ{: "980" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - "" - drop: - - 臷Ľð»ųKĵ&4ʑ%:;栍dʪ - privileged: false - procMount: Rƥ贫d飼$俊跾|@?鷅b - readOnlyRootFilesystem: false - runAsGroup: 3541984878507294780 - runAsNonRoot: false - runAsUser: 6743064379422188907 - seLinuxOptions: - level: "215" - role: "213" - type: "214" - user: "212" - windowsOptions: - gmsaCredentialSpec: "217" - gmsaCredentialSpecName: "216" - stdin: true - terminationMessagePath: "211" - terminationMessagePolicy: 恰nj揠8lj黳鈫ʕ - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: ĕʄő芖{| - name: "176" - readOnly: true - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "285" - nodeSelector: - "281": "282" - preemptionPolicy: ʕW6¯ȗŮ·俦磊ʝʅ¸Ư竱=沚ʧ - priority: -1662855542 - priorityClassName: "342" - readinessGates: - - conditionType: l=ƈư呄 - restartPolicy: ŻʘY賃ɪ鐊瀑Ź9ǕLLȊɞ-uƻ悖ȩ - runtimeClassName: "347" - schedulerName: "337" - securityContext: - fsGroup: -3979882341327374195 - runAsGroup: 6134106493278592168 - runAsNonRoot: true - runAsUser: 5824892309487369487 - seLinuxOptions: - level: "289" - role: "287" - type: "288" - user: "286" - supplementalGroups: - - -4964947941541214699 - sysctls: - - name: "292" - value: "293" - windowsOptions: - gmsaCredentialSpec: "291" - gmsaCredentialSpecName: "290" - serviceAccount: "284" - serviceAccountName: "283" - shareProcessNamespace: true - subdomain: "296" - terminationGracePeriodSeconds: 1221494839594199191 - tolerations: - - effect: ^;FuP?0YqP;?ymqjdATg9UH-!o7ccSV+$-S|zZ|3z_-r^ET&X<`%KHpJIH7L4-x3 z4M`3pCpuh}k)u0Zog0#ahpSg<;Ul|#=j!k`a^c2q#kDgvaO`|0d00?%MIth;=TUDrMWT|9F|T7xM7&YZbFe65oWT|6DFRHA z)@;TY2C+&XdLicVMtOY}!C2t)H^7$)Y=Seh*J553(xJS+Fcp|3QfijO zYV-?OEU`Zgw2ycym(5u!dv}2(8Fu{xJ5xDKJsj>onHAcygT0rDQ;1-D1SX5DS(dC{j8#;B7fl;Ga!@vyE-Thgo4)bJ zvdL~rydT)$hpgGmvQ8#5W`$=T0xGa(g;>A&zUu2+Q3=*77yADGeN32XDg!e>hay=` zGZNt)1S^U)vfbBhc9<14(X42^X{uS#rrKu_Uo|yI&8l#CIVlVcvK3jbXcV;TanH@3m+;=SsJi(+k;G;!1F8+!3L33 zRbnq||86wqz2&RFy!}P&wHiG}XA;Zy6QQqSVYI=w2(g5Rv=`k^hh-{Av6`CEWCo-O zyvja89~$NB)~{~%&``pGwtjNCE`aQ&HuNxz3)BEX0D%H=01;22M=4vPY#CgHhmr_H zB|x-ZG=q-nFiLpa#K8VhS6is2$~oXY=WB@!)w)`r4D1~V9XQ}SlH=*$96ER200~4$ zK;$QZ-Q|(8QFrH}VZ?wCLZ}dNENVVvcAOwWNXHQeVi$5G&&=!q9 zlwkXTOa43gYm3PfNmQOF(rJ>lrhe%9y>=6%HhjvK4|=};xUKH*?_Wd^KT)xiwcH5B zg8aY83R5KNm88L-q=OUG8=1d~9;Z*iVgkNQ9MmK@K0u_{44K_Efr%qfv4N;IAesY+ zo)||6PgEEpf@S!Rmp(UJueFb~-Q##XxNo1QAt^O8v~BdM*)IfkYz?0o_3!i5jJM{l zi&VDIg=FeHx{%5ws_l6Ov=Rb=AVg;&5eW?hi3LJcdD{atngqND0!PPj=Nqzuh>#UC zrb3075NaydBIg@u8PGI=oy`0y&40mlG}yhL{Xr7X@~{?gwe<_yXPR|7HVJQ{YJK%TdWtPvKw_MPX@p z2HxG;4B?@oRmZQM3)WYx-}q{<{m?|`8O~Q5K6GmQpd2ad`Sq+oYeh^v%_K$tH}NXX zCsoJ-LJID4jd)wvO)kx45}3G9+kW1LYbtebP`vMn^2M7D4 z;O-GT5w;b|6H%#^D&1XGhE!1%`|yq0_C23=cke+7CW>;VebV#JmA_o+{`%46xM$t< zOXy~+aPEkzZ9%5(2-P8|iBQuBfqaQNOP~qZ?!3wt)P^3kmw39vy%z$9+MWszo?PXw zKSfIvk*E`rV0&^wxUp)UyK>6dNaXeN&n$ITgqzF#M_m`5j#O4hE_66+$NKFpm7mnS zc_#Fyn<$}w@4JET`kW^pC67dQ?F;vJ2QTcmdxpa;2Nlnb$kBf2W?&!GIHK`0fC$Mz z$Pysp3iLbEE2e@phI+5j^QOt*y{3TonreBw|MXkO5A>criLA)})`h=D{&4M0@1%tP z?rFIE$rpW9-y**9aM#{1KYzzBMwLKciX*x(gDTYMCTV&pJ=r?hihu$h017Q+Z~{|? z7|cAw*yyOtJ`g!u>uLJW6nA}S?@01GFhN(?|Da=lLX+vI#x9EY5BSf-u}RR{fT6SY zq)7MHvEIm`CQq-o-CgIc37+lI-1V-Wb&-zRnGVGkCql=A(kSu*d;fT?chBau;JMR_ z#=7VTVGqSI{fIe%n1#&qyquGTbqQ-wc-P6<$_52+VbMm+Pssud#wl~A6J;hYJqut^j7fgy?->Gm}9SoUP&20825+EL!u5B&=SAOR>C`l&sE!-RH7bVFioAS`6Gg zET)$#U^T#O_{4C23UR&;44i{kr?1YI0s5-BQ&MMgoSJ8B5;?F!OJ*M=njvbNaxj;> zi7T8nPnyBbW1h|678I&R5x2;Ic}X0XtuN33&8{*qzr^6u3}b$=W^fB3B2c^Upx}oW ztXP=4#z;$n;9y+9%>tMUStHUmBnq0XE{=H*F>VAmf?qD=mgi73oy|co*Wx)8iRbHZ zA7GyoV6|w>H^6P9m~e7FC|QZQlC=g-*H#&d!SRbFgVQ8#9>8cGMmKV^x%>^_kI25l zJduyVQBsmAD6in+DJyZYQDkg{;2U#cIu>yTYX->ve8zHY6ylts>D-I5fdQVU3bgiwJ&fq%Qh()>3F_MLxtxUBztE5QbT|`{&)snk%l*cx!g*KRIVYz^>4*` zEG{ZBaDlq^?w&l9x=bw0#So=+hOvrUNah&HV7e%R>7vw(fXZ#?3P1)yh9)P-uvdZ% zkU@|EG6-;~gk~uyf~EcQzBl8n{|sO61;~&TX&nl5pAK}Kc6NvMjfQHrkg3jdDKT;QbC{5ERG;xV2KqAkY#os4?s$h%v|jFp)Avt0@K<1eF3wl|qIT zhGQnB_?kTDB-csT4tHz#&_#cPuRPq>8>y=dSDnsC3JjhI9BnS5fC4}W`xx_3VQ#qk z@M33$Z^T#q%=4bEK;H>Es;hi5bV5N@q9_VbJiKd(lg2uo=f=;twmj!N89IDnd`pV^ zw7_>a=%VsuD+y-CNYSD>lgbQ`ViTlLF@bS@~-z|X+Zm*ph=EL zxW(b#s2@^) zM;p@uJDP*_yZEQ0R_HY3x_AfLbax#eM-HVXb@n_KiCLWAAsK@!L_| z3BIe%XYS!YKTvxrF1;Qx)1!7k`JYVfQ0~GEL8m#TLr(cm&W!1#&5P%M^qfFJ2M%Eu zMO!Q{vJ&(JUW(!g?~(CqF+9P`4vVW}w(CUbY@>6Fcd!5A_}(aj;3+=i@8YxTt^4aH zMDZD~WdUC=VBJHyw|@S7U$y@*-sl+#Zfz)SK#a&(J?H<+)#&O8w%06=bPk4()=pfI z>T8{*vcCu%ANEy;j-3mZSB;%7inO(Ik%3NcGcVJG-5y$2zZ_@AfnX54VJN)cJ>_ zxP#uBh#*IChp7&sDDDsdX+^5vjt>dCT2K7SXeQ3C$`cf<%-a|hJnG$TDC=nZ^wFtl( zi1ZOcSJ5-f)2^MKp;v>IqruLy@Q&W_&TZlD`rz*FNLgK`^ptCNu%$kDtS(sJlKUBz zE&mmvTPS|RI&YKfu=jPxM8+ODu*<#MUGCoL-u;?;OW;JG`*fhECewK&Wr?@?+W8Z# zDdF-}SNA>qhn=^=F{3mz)yyex{#%< z&-uqY=y~+|xaS`G8<)3TjxA5P^5-A!fOoQ(nG|U`<{5oCRB_B-7HZl(!$0iXKX%IB z;_Gmp2=1y0mz@FQMp(vwGBk8JxTV8;$^niji9l2mAODBHb=^w0n5M?ZyRVjiywqaS W29AIIVNCP1;16S;-e)s8O#cttPtHpK diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.after_roundtrip.yaml deleted file mode 100644 index 8fc2f4177..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.after_roundtrip.yaml +++ /dev/null @@ -1,740 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 1173434715 - paused: true - progressDeadlineSeconds: 787287347 - replicas: -1978186127 - revisionHistoryLimit: -853633578 - rollbackTo: - revision: -9097966625998465286 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: 闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -882790979 - collisionCount: 1813037030 - conditions: - - lastTransitionTime: "2682-02-22T19:36:37Z" - lastUpdateTime: "2811-10-04T08:41:37Z" - message: "347" - reason: "346" - status: ɩ繞怨Ǫ - type: 雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ - observedGeneration: -5913324997018604801 - readyReplicas: -1159900491 - replicas: -1158620766 - unavailableReplicas: -1006636575 - updatedReplicas: 1221768764 diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.json deleted file mode 100644 index 47b972f83..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.json +++ /dev/null @@ -1,1091 +0,0 @@ -{ - "kind": "Deployment", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "selector": { - "matchLabels": { - "w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g": "F-_3-n-_-__3u-.__P__.7U-Uo_F" - }, - "matchExpressions": [ - { - "key": "5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F", - "operator": "NotIn", - "values": [ - "y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "]躢|)黰eȪ嵛4$%QɰVzÏ抴", - "resourceVersion": "373742866186182450", - "generation": 3557306139556084909, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -2848337479447330428, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "@Z^嫫猤痈C*ĕʄő芖{|ǘ\"^饣", - "controller": false, - "blockOwnerDeletion": false - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "妻ƅTGS5Ǎ", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "Uʎ浵ɲõ" - }, - "emptyDir": { - "medium": "o\u0026蕭k ź贩j瀉", - "sizeLimit": "621" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": -1321131665, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": -1996616480 - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": -1365115016 - } - ], - "defaultMode": -288563359, - "optional": false - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": 636617833, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74", - "readOnly": true - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "readOnly": true, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "772" - }, - "mode": -1482763519 - } - ], - "defaultMode": -1376537100 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -1902521464, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1296140 - } - ], - "defaultMode": 480521693, - "optional": false - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "readOnly": true, - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_", - "fsType": "121", - "readOnly": true, - "kind": "參遼ūP" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 996680040 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "838" - }, - "mode": -1319998825 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 1569606284 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": -4636499237765408684, - "path": "136" - } - } - ], - "defaultMode": -50623103 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "sslEnabled": true, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146", - "readOnly": true - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "readOnly": true, - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 963442342, - "containerPort": 1180382332, - "protocol": "H韹寬娬ï瓼猀2:öY鶪5w垁", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": true - }, - "secretRef": { - "name": "165", - "optional": true - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "813" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": false - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t": "770" - }, - "requests": { - "sn芞QÄȻȊ+?ƭ峧": "970" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "«öʮĀ\u003cé瞾ʀNŬɨǙÄr蛏豈ɃHŠ", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": -1167888910, - "host": "184", - "scheme": ".Q貇£ȹ嫰ƹǔw÷nI", - "httpHeaders": [ - { - "name": "185", - "value": "186" - } - ] - }, - "tcpSocket": { - "port": "187", - "host": "188" - }, - "initialDelaySeconds": -162264011, - "timeoutSeconds": 800220849, - "periodSeconds": -1429994426, - "successThreshold": 135036402, - "failureThreshold": -1650568978 - }, - "readinessProbe": { - "exec": { - "command": [ - "189" - ] - }, - "httpGet": { - "path": "190", - "port": -2015604435, - "host": "191", - "scheme": "jƯĖ漘Z剚敍0)", - "httpHeaders": [ - { - "name": "192", - "value": "193" - } - ] - }, - "tcpSocket": { - "port": 424236719, - "host": "194" - }, - "initialDelaySeconds": -2031266553, - "timeoutSeconds": -840997104, - "periodSeconds": -648954478, - "successThreshold": 1170649416, - "failureThreshold": 893619181 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "195" - ] - }, - "httpGet": { - "path": "196", - "port": "197", - "host": "198", - "scheme": "ɩC", - "httpHeaders": [ - { - "name": "199", - "value": "200" - } - ] - }, - "tcpSocket": { - "port": "201", - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": 747802823, - "host": "205", - "scheme": "ĨFħ籘Àǒɿʒ", - "httpHeaders": [ - { - "name": "206", - "value": "207" - } - ] - }, - "tcpSocket": { - "port": 1912934380, - "host": "208" - } - } - }, - "terminationMessagePath": "209", - "terminationMessagePolicy": "1ſ盷褎weLJèux榜VƋZ1Ůđ眊", - "imagePullPolicy": "Ź9ǕLLȊɞ-uƻ悖", - "securityContext": { - "capabilities": { - "add": [ - "Ƹ[Ęİ榌U髷裎$MVȟ@7" - ], - "drop": [ - "奺Ȋ礶惇¸t颟.鵫ǚ" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "210", - "role": "211", - "type": "212", - "level": "213" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "214", - "gmsaCredentialSpec": "215" - }, - "runAsUser": -834696834428133864, - "runAsGroup": -7821473471908167720, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "莭琽§ć\\ ïì«丯Ƙ枛牐ɺ" - }, - "tty": true - } - ], - "containers": [ - { - "name": "216", - "image": "217", - "command": [ - "218" - ], - "args": [ - "219" - ], - "workingDir": "220", - "ports": [ - { - "name": "221", - "hostPort": 766864314, - "containerPort": 1146016612, - "protocol": "擓ƖHVe熼'FD剂讼ɓȌʟni酛", - "hostIP": "222" - } - ], - "envFrom": [ - { - "prefix": "223", - "configMapRef": { - "name": "224", - "optional": true - }, - "secretRef": { - "name": "225", - "optional": true - } - } - ], - "env": [ - { - "name": "226", - "value": "227", - "valueFrom": { - "fieldRef": { - "apiVersion": "228", - "fieldPath": "229" - }, - "resourceFieldRef": { - "containerName": "230", - "resource": "231", - "divisor": "770" - }, - "configMapKeyRef": { - "name": "232", - "key": "233", - "optional": true - }, - "secretKeyRef": { - "name": "234", - "key": "235", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "癃8鸖": "881" - }, - "requests": { - "Zɾģ毋Ó6dz娝嘚庎D}埽uʎ": "63" - } - }, - "volumeMounts": [ - { - "name": "236", - "readOnly": true, - "mountPath": "237", - "subPath": "238", - "mountPropagation": "ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw", - "subPathExpr": "239" - } - ], - "volumeDevices": [ - { - "name": "240", - "devicePath": "241" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "242" - ] - }, - "httpGet": { - "path": "243", - "port": "244", - "host": "245", - "scheme": "ȓ蹣ɐǛv+8Ƥ熪军", - "httpHeaders": [ - { - "name": "246", - "value": "247" - } - ] - }, - "tcpSocket": { - "port": 622267234, - "host": "248" - }, - "initialDelaySeconds": 410611837, - "timeoutSeconds": 809006670, - "periodSeconds": 972978563, - "successThreshold": 17771103, - "failureThreshold": -1008070934 - }, - "readinessProbe": { - "exec": { - "command": [ - "249" - ] - }, - "httpGet": { - "path": "250", - "port": "251", - "host": "252", - "scheme": "]佱¿\u003e犵殇ŕ-Ɂ圯W", - "httpHeaders": [ - { - "name": "253", - "value": "254" - } - ] - }, - "tcpSocket": { - "port": "255", - "host": "256" - }, - "initialDelaySeconds": -1191528701, - "timeoutSeconds": -978176982, - "periodSeconds": 415947324, - "successThreshold": 18113448, - "failureThreshold": 1474943201 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "257" - ] - }, - "httpGet": { - "path": "258", - "port": "259", - "host": "260", - "scheme": "ē鐭#嬀ơŸ8T 苧yñKJɐ", - "httpHeaders": [ - { - "name": "261", - "value": "262" - } - ] - }, - "tcpSocket": { - "port": "263", - "host": "264" - } - }, - "preStop": { - "exec": { - "command": [ - "265" - ] - }, - "httpGet": { - "path": "266", - "port": 591440053, - "host": "267", - "scheme": "\u003c敄lu|榝$î.Ȏ蝪ʜ5遰=E埄", - "httpHeaders": [ - { - "name": "268", - "value": "269" - } - ] - }, - "tcpSocket": { - "port": "270", - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": " wƯ貾坢'跩aŕ", - "imagePullPolicy": "Ļǟi\u0026", - "securityContext": { - "capabilities": { - "add": [ - "碔" - ], - "drop": [ - "NKƙ順\\E¦队偯J僳徥淳4揻-$" - ] - }, - "privileged": false, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -7971724279034955974, - "runAsGroup": 2011630253582325853, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": true, - "procMount": ",ŕ" - }, - "stdinOnce": true - } - ], - "restartPolicy": "M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ", - "terminationGracePeriodSeconds": -1027492015449357669, - "activeDeadlineSeconds": 1968932441807931700, - "dnsPolicy": "鍓贯澔 ƺ蛜6Ɖ飴", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -6241205430888228274, - "runAsGroup": 3716388262106582789, - "runAsNonRoot": true, - "supplementalGroups": [ - 2706433733228765005 - ], - "fsGroup": -500234369132816308, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "鱎ƙ;Nŕ璻Ji", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "J", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 902978249, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "H鯂²静ƲǦŐnj汰8ŕİi騎C\"6", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "ʎǑyZ涬P­", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3": "0-8-.M-.-.-v" - }, - "matchExpressions": [ - { - "key": "1zET_..3dCv3j._.-_pP__up.2N", - "operator": "NotIn", - "values": [ - "f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV" - ] - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -3478003, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J": "28_38xm-.nx.sEK4B" - }, - "matchExpressions": [ - { - "key": "d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81", - "operator": "NotIn", - "values": [ - "MXOnf_ZN.-_--r.E__-8" - ] - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "O.Um.-__k.j._g-G-7--p9.-0": "1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3" - }, - "matchExpressions": [ - { - "key": "p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d", - "operator": "In", - "values": [ - "dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX" - ] - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -1078366610, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j": "35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1" - }, - "matchExpressions": [ - { - "key": "d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g", - "operator": "NotIn", - "values": [ - "VT3sn-0_.i__a.O2G_J" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "抷qTfZȻ干m謆7", - "value": "337", - "effect": "儉ɩ柀", - "tolerationSeconds": -7411984641310969236 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": -895317190, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "qiǙĞǠ" - } - }, - "strategy": { - "type": "闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧", - "rollingUpdate": { - - } - }, - "minReadySeconds": 1173434715, - "revisionHistoryLimit": -853633578, - "paused": true, - "rollbackTo": { - "revision": -9097966625998465286 - }, - "progressDeadlineSeconds": 787287347 - }, - "status": { - "observedGeneration": -5913324997018604801, - "replicas": -1158620766, - "updatedReplicas": 1221768764, - "readyReplicas": -1159900491, - "availableReplicas": -882790979, - "unavailableReplicas": -1006636575, - "conditions": [ - { - "type": "雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ", - "status": "ɩ繞怨Ǫ", - "lastUpdateTime": "2811-10-04T08:41:37Z", - "lastTransitionTime": "2682-02-22T19:36:37Z", - "reason": "346", - "message": "347" - } - ], - "collisionCount": 1813037030 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.pb deleted file mode 100644 index 87574506c5765977896690dc984441c4f5af5d1f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5194 zcmYjU3wTu3wVpjuNl(4r@uUV|iYR}&MM6)39CJhys1*z05$kpgsn5wXkMe3>p2dX1&hup{T%D|BU z=g^vI{sXTD_mw3ChYz}TyadwJL<@5tOxM_W<{o(Jtch)(5`U}aES_(aOckmM-N|2q$n0xs7-=XK+}OI4*-TjP>jz zbFm@fTx?*&5I1AsEinvEU5Qub8FSf-h!dz~^s*FBRAXXJ)U*yegzmTb;b3 zU~L8_9B47eSYB)xL|L#36u3JjuV{X*P2Fm2HS%~v-jqTN5Nj;rQVh;mqi}k9QdUM1 zhdJ5c=4+rjo;kk+tN=lVpxC+{%zKD2i#%%<1)EtU4znmGKJrp{r1h02Bcr{UzSDuh zW@+-2rT*U3Qs>@a^#EZ-Ra7OSDT<)MpGY#Vb$>H_=GwK&9s$CjqWsp*uPVC6K16Bp zAX)~|N;-X0;Z4gTj9KDsW=U|^XQcfm(A5>HIT1Rzb9SPuVWPslFI?UDyH~tTj^9L1 zwk4WH9b&^&V3tU!SrV(!6R=ofe;#Nb^;E8yw_Nt_0ZDQ!3M3^K1(FI;@V=d?oWz)A zf&Km-#sV*dWmZnq1_uZIea=Dlmy9KEYPg|0+wL9-51h&hZQI4(&BQ50ussBmMb<1! z*3ZW)s=tkfksUcG8%&WE>nDf4_Qs;iZc4lt*kG5e+03#|rZQ%QXCDA6ux5o=zy7}J ztJ_ft)~gr$|Mq=Mm}xo#Ghh!zvYKWk!aE376l-LsugB~#D{7)y(RkBzv!c&1ExU^` ztNbccx>*&HVVz1?vnpEAGKhCovY<4`EEU$Pip{L54zsEynpK^cHGVp*)Pxx*-3Cus zrHMAmk?bfDPD6t=nvw;s(LjGqvmyr_)eEeQS%+}YAsloF2VG1AzAo{o6jtf5N>{cc zop~BQRB*Ui*MOzl?q}izo@apwHt?jX5_?(uw_`EuEnoimtC6fdgZ%)=*8AbI^O<*BlwH zb+tSms2>d-Jm@=~;~Cf*I)A|c2}DRhW;i%O_VlA+SP;U^$8XkY` zN}S!q3d}UhRoUpq)FmY5e@J84E$V+L(e{Iv{deNm7LzBEs60`m(?X0_kRCTYu(@8yM(}hqGBm)z8Q)+`G1iWra)c+(O^*0!3b)N%wI!~(x+fC0beE# zsuH9R5Ggi8X7@~D;s{i9AgT?B<^ZB6#u3636^4jl8TrHI&&<~A?W3)CIUWt}-|uNm zO3e)I7<*#w^MPI4!)M3*`+YSNEx8*amCbY^nZAH7q%w(Wdyau!2?0kCqO%Z)ggS!6 z9HFYb?LO*F0@ee8)N$PThNvJSM8&M>P$4FT4wY+>3yri4Xqv!IWqy_BzvyZU_Uv}< zSG@g!&ZB{*!-0|7=U)x9yuNv&mW8xX#AIp#I17A6L=`L(wZupLL%OpjFwio7Db&>N zZww7J_zpYw1a?=3huRnCmk^kxFDqe|N7a%DOJztR`?GjN-AE*f64~*fZ-02W&0ptj zE`Cb$oCxhW9oW&FNNt5u2SkOWW8zJgYmFaunr$Y^(k$P75^y5xTQ{zj#o5dM`py5u zCH&v}WAXf_M>|{o5zUyiSD6*DjdfNBSu+36jb+Fj0*CmEm#)8lZv4`(L)C-9vsLZ} z>@N!(>3Jc#H9cG+OEwGhqq1^ zx;uRsF{`5cL*0Cq?yvo{zYhB=yu;?&AF1npJaA^4=eYZVw!$9X-LchqZb7oYE~*1m zSC~isMF*&+z>(OOqLQJWLShp|VX1ot-`Rc`+(SjHj$b_!Y^d0{`ITV%(aFxUoUb-~ z^z_6LIa1d9?3_SLMNB-6Bt`!h@hXicRmcKD3hr@@dRsP3EzM;Tn7B~u0rs(!1)f8Z z*LJ)(XS_Yq)DkG`Ne-0v2QHor4)sgHy`y+C94nM3qEanYdb+9%p`t4Gk(;&c`#$OE z*@qHL6a~%rxcBX=f4fP}2y3c!?TIpb6OS zyvi2Tite|UczVKp7XwFIp9l|~TH|gwO-mG!s1cH2dwfy2scM0{a@zQ4Fe! z4K;d5nqEpXTPNEQP{0R3p@j@hV#*MMnWq>V9hKSpBIjy7hyF9g-4LoDP2K=1=nDI9 zbPP~xGX2!pCGq}2|JgV;30fO4bk?2}>DfNs7dd*!)8}n>*LiD#=Xy1FgR6H#q_cLm zL$Sq)(D9%&ioC$yJ5lT1w>2$z{>+l`ZaPBPqjAgtVmc7Bn0bzubF#25VGRoJ202^V zqySDV+Kl;WS%AqnW!_Ap%*KUWN*2z*k|ALXST9ZD7S0rtQs;^6y*$=1w+Of#E@oFS z4-2JpRu~*7X3Q=YvnXaY@&TD{&gV$VkEoDa$K@NMk!&oVsq6Cm1+$lNg&42n=)bfW z))<_OleiUBCbuG$1*IVYMQEabLh*Y(>Wab@z|fZw<3r3=CW9zATf=Jsrecy=wC-g| zSi1(7VtG9&S(^u^&t0oV&sBhoe`3Yx7hj(Ha` zZUi@kUoPfW=1_E<&4Dx5<9QUB=j(7kV4o3SwP-9fz-*(KaB@CuvKn(G>kXW)tuYjX zNUdF}KR^wu$$k+_dH|E21EaD8- z3=sagjFs3Z#5qMXxff&u16)rPaKTELX7CD^xhY$oV_*q$tCBF6&8gf*1HYiYNi!vwi%Sxp6&vP`&wkR3tc%e#Nh36S0dv^YE zLx4K|Xa-)DhPQya+-mStt|7zqaMeaEE-5i^fx7<3GkG9&g;Md>gCDz~Dm02u@snw%iRSqU;g20;eMAi$*)nx&u!miEv3--xsRBYdL|AVX55 zWjN4tCeV4t*%R777OL4sraRBCj+{R&mjsTL(S=dSAV5oi_dAe5P#_xMR!bp+Kuf%! z#;}th#vlX0M9LJcrWj-pR0!uj+v6;JLEYpxlXxuxm&_VFZmmN<>CImNL^*P z>P$vbV5lR|cDRTF3IHMOBg_MZx#8+#OPv+IQD5~_&w087{T*~vSNUYQ52wf zc-IoAjCVQDPn>mad&YSxbnN29wiNdnf2a45v!Wo}yf=Jqr@uVO{ThL}`m!n-#2^Z; zW9+Z#LuCIQTHhB}_PiGh1KR%tO>#WMEe-cojko!R16{qIVef$w=TPo^+V%vv5dcws zYI_3Q41l9q2AkgQiy=Ylxi|ganeCpPbsxmwe8Lyso}0nnJpRp%Z(``85;3VUO>}lT zNQIhBHR*1>b@2|`r<&-39Tr#TTvtcv zT$6K~x88qgqCScsc#6;XAMx3ZmIHN@qWFy0vVgA_uOqH zB1UAao(uowYI5}k+iO-vx`x7SwUZa6`dVhF?0*DKj`*rWC(Z}UtHv)BMOs_9$Y7WE zFf@PKTmH|*DX<`bzIcPpG|8hVO((zV+&{7SHLEZ9{R-qjc0y(8Sy z5Zv1nDXYtro^b6AHa7%M)CC)wb3diB<-Z_w8^v$h;63Cz=6%gEnXyL>?s4yRm%Den z_rB`h7U<}Ap9%EVWIB(hEb~@hztF*&60Tfx_1wjO&~-Z;Q%Xa#ejb0jd;5j(t*d`5 zLrMLI2mWrhHKO<*F4y0_;f?&g8(CWWoqxE4p2u!Xcler3m%*z$y{fBNALcqdDl zDUs$Ap0Srg6({^Hh&$LD1X) diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.yaml deleted file mode 100644 index 094d5ab00..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Deployment.yaml +++ /dev/null @@ -1,746 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 1173434715 - paused: true - progressDeadlineSeconds: 787287347 - replicas: -1978186127 - revisionHistoryLimit: -853633578 - rollbackTo: - revision: -9097966625998465286 - selector: - matchExpressions: - - key: 5816m59-dx8----i--5-8t36b--09--23-u19m-35--d.vo61---4fy--9---7--9-9s-0-u5lj2--10pq-0-7-9-2-ekg-071b/YJTrcd-2.-__E_Sv__26KX_F - operator: NotIn - values: - - y_y_o0_5qN2_---_M.N_._a6.9bHjdH.-.5_.I8__.-AIw.__-___16 - matchLabels: - w9v--m0-1y5-g3/JFHn7y-74.-0MUORQQ.N2.1.L.l-Y._.-44..d.__g: F-_3-n-_-__3u-.__P__.7U-Uo_F - strategy: - rollingUpdate: {} - type: 闍ŏŃŋŏ}ŀ姳Ŭ尌eáNRNJ丧 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -2848337479447330428 - finalizers: - - "42" - generateName: "31" - generation: 3557306139556084909 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: 妻ƅTGS5Ǎ - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: false - controller: false - kind: "40" - name: "41" - uid: '@Z^嫫猤痈C*ĕʄő芖{|ǘ"^饣' - resourceVersion: "373742866186182450" - selfLink: "33" - uid: ']躢|)黰eȪ嵛4$%QɰVzÏ抴' - spec: - activeDeadlineSeconds: 1968932441807931700 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: H鯂²静ƲǦŐnj汰8ŕİi騎C"6 - values: - - "300" - matchFields: - - key: "301" - operator: ʎǑyZ涬P­ - values: - - "302" - weight: 902978249 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: 鱎ƙ;Nŕ璻Ji - values: - - "296" - matchFields: - - key: "297" - operator: J - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d.Ms7_t.P_3..H..k9M86.9a_-0R_.Z__Lv8_.O_..81 - operator: NotIn - values: - - MXOnf_ZN.-_--r.E__-8 - matchLabels: - 26-k8-c2---2etfh41ca-z-5g2wco280.ka-6-31g--z-o-3bz6-8-0-1-z--271s-p9-8--m-cbck561-7n/VC..7o_x3..-.8J: 28_38xm-.nx.sEK4B - namespaces: - - "317" - topologyKey: "318" - weight: -3478003 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 1zET_..3dCv3j._.-_pP__up.2N - operator: NotIn - values: - - f.p_3_J_SA995IKCR.s--f.-f.-zv._._.5-H.T.-.-.TV - matchLabels: - 05mj-94-8134i5k6q6--5tu-0/j_.-.6GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG3: 0-8-.M-.-.-v - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: d-XZ-x.__.Y_2-n_5023Xl-3Pw_-r7g - operator: NotIn - values: - - VT3sn-0_.i__a.O2G_J - matchLabels: - H__V.Vz_6.Hz_V_.r_v_._e_-78o_6Z..11_7pX_.-mLlx...w_j: 35.40Rw4gD.._.-x6db-L7.-__-G_2kCpS_1 - namespaces: - - "333" - topologyKey: "334" - weight: -1078366610 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: p-61-2we16h-v/Y-v_t_u_.__I_-_-3-d - operator: In - values: - - dU-_s-mtA.W5_-5_.V1-rU.___06.eqk5E_-4-.XH-.k.7.l_-W8o._xJ1-lFAX - matchLabels: - O.Um.-__k.j._g-G-7--p9.-0: 1-_-3_L_2--_v2.5p_..Y-.wg_-b8a_6_.0Q4_.84.K_-_0_..u.F.pq..-3 - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "219" - command: - - "218" - env: - - name: "226" - value: "227" - valueFrom: - configMapKeyRef: - key: "233" - name: "232" - optional: true - fieldRef: - apiVersion: "228" - fieldPath: "229" - resourceFieldRef: - containerName: "230" - divisor: "770" - resource: "231" - secretKeyRef: - key: "235" - name: "234" - optional: true - envFrom: - - configMapRef: - name: "224" - optional: true - prefix: "223" - secretRef: - name: "225" - optional: true - image: "217" - imagePullPolicy: Ļǟi& - lifecycle: - postStart: - exec: - command: - - "257" - httpGet: - host: "260" - httpHeaders: - - name: "261" - value: "262" - path: "258" - port: "259" - scheme: ē鐭#嬀ơŸ8T 苧yñKJɐ - tcpSocket: - host: "264" - port: "263" - preStop: - exec: - command: - - "265" - httpGet: - host: "267" - httpHeaders: - - name: "268" - value: "269" - path: "266" - port: 591440053 - scheme: <敄lu|榝$î.Ȏ蝪ʜ5遰=E埄 - tcpSocket: - host: "271" - port: "270" - livenessProbe: - exec: - command: - - "242" - failureThreshold: -1008070934 - httpGet: - host: "245" - httpHeaders: - - name: "246" - value: "247" - path: "243" - port: "244" - scheme: ȓ蹣ɐǛv+8Ƥ熪军 - initialDelaySeconds: 410611837 - periodSeconds: 972978563 - successThreshold: 17771103 - tcpSocket: - host: "248" - port: 622267234 - timeoutSeconds: 809006670 - name: "216" - ports: - - containerPort: 1146016612 - hostIP: "222" - hostPort: 766864314 - name: "221" - protocol: 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - readinessProbe: - exec: - command: - - "249" - failureThreshold: 1474943201 - httpGet: - host: "252" - httpHeaders: - - name: "253" - value: "254" - path: "250" - port: "251" - scheme: ']佱¿>犵殇ŕ-Ɂ圯W' - initialDelaySeconds: -1191528701 - periodSeconds: 415947324 - successThreshold: 18113448 - tcpSocket: - host: "256" - port: "255" - timeoutSeconds: -978176982 - resources: - limits: - 癃8鸖: "881" - requests: - Zɾģ毋Ó6dz娝嘚庎D}埽uʎ: "63" - securityContext: - allowPrivilegeEscalation: true - capabilities: - add: - - 碔 - drop: - - NKƙ順\E¦队偯J僳徥淳4揻-$ - privileged: false - procMount: ',ŕ' - readOnlyRootFilesystem: false - runAsGroup: 2011630253582325853 - runAsNonRoot: false - runAsUser: -7971724279034955974 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdinOnce: true - terminationMessagePath: "272" - terminationMessagePolicy: ' wƯ貾坢''跩aŕ' - volumeDevices: - - devicePath: "241" - name: "240" - volumeMounts: - - mountPath: "237" - mountPropagation: ɷ9Ì崟¿瘦ɖ緕ȚÍ勅跦Opw - name: "236" - readOnly: true - subPath: "238" - subPathExpr: "239" - workingDir: "220" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: 鍓贯澔 ƺ蛜6Ɖ飴 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: false - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "813" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: true - envFrom: - - configMapRef: - name: "164" - optional: true - prefix: "163" - secretRef: - name: "165" - optional: true - image: "157" - imagePullPolicy: Ź9ǕLLȊɞ-uƻ悖 - lifecycle: - postStart: - exec: - command: - - "195" - httpGet: - host: "198" - httpHeaders: - - name: "199" - value: "200" - path: "196" - port: "197" - scheme: ɩC - tcpSocket: - host: "202" - port: "201" - preStop: - exec: - command: - - "203" - httpGet: - host: "205" - httpHeaders: - - name: "206" - value: "207" - path: "204" - port: 747802823 - scheme: ĨFħ籘Àǒɿʒ - tcpSocket: - host: "208" - port: 1912934380 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1650568978 - httpGet: - host: "184" - httpHeaders: - - name: "185" - value: "186" - path: "183" - port: -1167888910 - scheme: .Q貇£ȹ嫰ƹǔw÷nI - initialDelaySeconds: -162264011 - periodSeconds: -1429994426 - successThreshold: 135036402 - tcpSocket: - host: "188" - port: "187" - timeoutSeconds: 800220849 - name: "156" - ports: - - containerPort: 1180382332 - hostIP: "162" - hostPort: 963442342 - name: "161" - protocol: H韹寬娬ï瓼猀2:öY鶪5w垁 - readinessProbe: - exec: - command: - - "189" - failureThreshold: 893619181 - httpGet: - host: "191" - httpHeaders: - - name: "192" - value: "193" - path: "190" - port: -2015604435 - scheme: jƯĖ漘Z剚敍0) - initialDelaySeconds: -2031266553 - periodSeconds: -648954478 - successThreshold: 1170649416 - tcpSocket: - host: "194" - port: 424236719 - timeoutSeconds: -840997104 - resources: - limits: - Nșƶ4ĩĉş蝿ɖȃ賲鐅臬dH巧壚t: "770" - requests: - sn芞QÄȻȊ+?ƭ峧: "970" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƹ[Ęİ榌U髷裎$MVȟ@7 - drop: - - 奺Ȋ礶惇¸t颟.鵫ǚ - privileged: true - procMount: 莭琽§ć\ ïì«丯Ƙ枛牐ɺ - readOnlyRootFilesystem: false - runAsGroup: -7821473471908167720 - runAsNonRoot: false - runAsUser: -834696834428133864 - seLinuxOptions: - level: "213" - role: "211" - type: "212" - user: "210" - windowsOptions: - gmsaCredentialSpec: "215" - gmsaCredentialSpecName: "214" - terminationMessagePath: "209" - terminationMessagePolicy: 1ſ盷褎weLJèux榜VƋZ1Ůđ眊 - tty: true - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: «öʮĀ<é瞾ʀNŬɨǙÄr蛏豈ɃHŠ - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: qiǙĞǠ - priority: -895317190 - priorityClassName: "340" - readinessGates: - - conditionType: ċƹ|慼櫁色苆试揯遐e4'ď曕椐敛n - restartPolicy: M蘇KŅ/»頸+SÄ蚃ɣľ)酊龨δ - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: -500234369132816308 - runAsGroup: 3716388262106582789 - runAsNonRoot: true - runAsUser: -6241205430888228274 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 2706433733228765005 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -1027492015449357669 - tolerations: - - effect: 儉ɩ柀 - key: "336" - operator: 抷qTfZȻ干m謆7 - tolerationSeconds: -7411984641310969236 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: -1996616480 - volumeID: "55" - azureDisk: - cachingMode: 唼Ģ猇õǶț鹎ğ#咻痗ȡmƴy綸_ - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 參遼ūP - readOnly: true - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 480521693 - items: - - key: "108" - mode: -1296140 - path: "109" - name: "107" - optional: false - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -1376537100 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1482763519 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "772" - resource: "101" - emptyDir: - medium: o&蕭k ź贩j瀉 - sizeLimit: "621" - fc: - fsType: "103" - lun: -1902521464 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - readOnly: true - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: -1321131665 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: Uʎ浵ɲõ - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: 636617833 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - readOnly: true - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: -50623103 - sources: - - configMap: - items: - - key: "133" - mode: 1569606284 - path: "134" - name: "132" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -1319998825 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "838" - resource: "131" - secret: - items: - - key: "125" - mode: 996680040 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: -4636499237765408684 - path: "136" - quobyte: - group: "117" - readOnly: true - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - readOnly: true - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - readOnly: true - secretRef: - name: "141" - sslEnabled: true - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: -288563359 - items: - - key: "61" - mode: -1365115016 - path: "62" - optional: false - secretName: "60" - storageos: - fsType: "149" - readOnly: true - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: -882790979 - collisionCount: 1813037030 - conditions: - - lastTransitionTime: "2682-02-22T19:36:37Z" - lastUpdateTime: "2811-10-04T08:41:37Z" - message: "347" - reason: "346" - status: ɩ繞怨Ǫ - type: 雤Ƽ]焤Ɂ癏BɺȔªɛȨç捌聮ŃŻ - observedGeneration: -5913324997018604801 - readyReplicas: -1159900491 - replicas: -1158620766 - unavailableReplicas: -1006636575 - updatedReplicas: 1221768764 diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.json deleted file mode 100644 index 6d3898065..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "kind": "DeploymentRollback", - "apiVersion": "extensions/v1beta1", - "name": "2", - "updatedAnnotations": { - "3": "4" - }, - "rollbackTo": { - "revision": 4518808233936994290 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.DeploymentRollback.pb deleted file mode 100644 index 00901c52c3285fcaea35800eb0ad3f6555071f73..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75 zcmd0{C}!Z&;1Wu$C`rvL&dkp%)-N+mN-aq=6cTbtEy&5Q%uUTJ3ChpONlHx4782)T eG!kOtVl)4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRkt3_^}vd|XUMCPEw> zi~4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hARwv zQiwsw5hP+{BE-SLD8L}aWMm4IV=^)mVlpz9QU$Usgyew%Bn@O)3W;(t85;=kb1(>8 fS=~14KL{{NF-Y-nad81P85;^Q85>D4C@}y4ZOmuH diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.yaml deleted file mode 100644 index 8549ec301..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Ingress.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - backend: - serviceName: "24" - servicePort: "25" - rules: - - host: "28" - http: - paths: - - backend: - serviceName: "30" - servicePort: -213805612 - path: "29" - tls: - - hosts: - - "26" - secretName: "27" -status: - loadBalancer: - ingress: - - hostname: "32" - ip: "31" diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json deleted file mode 100644 index a82d58545..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "kind": "NetworkPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "podSelector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "ingress": [ - { - "ports": [ - { - "protocol": "ÐƣKʘńw:5塋訩塶\"=y钡n" - } - ], - "from": [ - { - "podSelector": { - "matchLabels": { - "y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk": "h-JM" - }, - "matchExpressions": [ - { - "key": "44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7", - "operator": "In", - "values": [ - "17_.8CnT" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "rSf5_Or.i1_7z.WH-..T": "2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0" - }, - "matchExpressions": [ - { - "key": "83.SD..P.---5.-3", - "operator": "NotIn", - "values": [ - "hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q" - ] - } - ] - }, - "ipBlock": { - "cidr": "42", - "except": [ - "43" - ] - } - } - ] - } - ], - "egress": [ - { - "ports": [ - { - "protocol": "ƯĖ漘Z剚敍0)鈼¬麄p呝T" - } - ], - "to": [ - { - "podSelector": { - "matchLabels": { - "9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm": "2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P" - }, - "matchExpressions": [ - { - "key": "Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8", - "operator": "NotIn", - "values": [ - "q.0-_1-F.h-__k_K5._3" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u": "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - }, - "matchExpressions": [ - { - "key": "5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M", - "operator": "NotIn", - "values": [ - "D.GgT7_7P" - ] - } - ] - }, - "ipBlock": { - "cidr": "56", - "except": [ - "57" - ] - } - } - ] - } - ], - "policyTypes": [ - "h4ɊHȖ|ʐ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.pb deleted file mode 100644 index 7ca8dee4cff14076dcf12e7182929fa61887a937..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1280 zcmXw1%WqXh81K0#mPs_`gjM6SCPdKhyL0BuoQDRLQhK4#+rllSZ9+cp`_=nC_o*&; zDYPMiL8t~H4K6TB*!YH(6jE3iHzp?TOm0Ir{t3o`gh?io`DW&u->c{~2H0!NOm~8G zxsk7w8{w9fNC$Dtd^Va6+Ld~7sr@eDJ3Gi33?D=cJ*p^#+{KR4Rz-@35&$p?+Qi}yaQ z?g&{HAMlKN$dbK~r4|j)R~_@!jdP3r3yT}qzPNh@4)-sAf9I!o`2K~D*3Tb%ef^h9 zs~;cL-CQwX9v@^^4fYO`e%bA&T&Zdt9uEORS~kdqCV1e~rQ|ZD^hwrB3Ml&FXa^(a zW?QWXopblD?SHU*_hkDm)n8e9c>SCH%8$c4 zyBnXal+FJ_>@S1$SiK8fsBlm<5YS7t05lQ~aYy(GD5StkN~QOnu9pGYnrvH>vV14& zr2z64^1u&^Of;!L<2f`7o}jGa)FeVoHa(XJ+$yy(?I2;bpn{_LR1U@`%y~90B@{fR z>_#OEvW0C0b`P}QR$h7?NK3)(4757j;^6a|MwS;TE_kj05C<;{(1UUS2`B76)@jgk z3BBFrY4f7N4zR8DSVqxg9rG5sJv_1(5T{KkAWCx>XuUaV!O7{)a94vTqU6{ zo7!`+@yv)u+=~GcH^qveveW~>eUx#Eg+>qD zh4viG`8IT%L_S+0-KRD*$U;(>A!!fY*u-9DFW$SkdU5^s@_hfym+POO<=Zz--~R2p zjbBez`{%!!HqUHg{}}9q!QS&h_$nSi#jRyBE_49uZp(2JCD&>~S!Vop5p3;|5?U>Q zD(E6e&@4sP3Fk`Yy8?ZpIoJymwQ8V=X~xJ^@)4U_7f4YIQz~wc>jFAilBkD;SO~__ zUV^5yU2jL46?-a9REE(Mps!oZBPRbdYC2iamO*_&h?pGzd7LClQZQ6en#CP4mr35V>j8 z-Xpo779L;Fpl9~PfwE=vAc?ze8q<(w$IP8u_0aF5HSL t6e@nCgJR+d$StE7$xgfEPCfEVIc7+?!z?H7FYaBt_~C~Z diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml deleted file mode 100644 index 2e2ca1261..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.after_roundtrip.yaml +++ /dev/null @@ -1,89 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: NetworkPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - egress: - - ports: - - protocol: ƯĖ漘Z剚敍0)鈼¬麄p呝T - to: - - ipBlock: - cidr: "56" - except: - - "57" - namespaceSelector: - matchExpressions: - - key: 5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M - operator: NotIn - values: - - D.GgT7_7P - matchLabels: - G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u: O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF - podSelector: - matchExpressions: - - key: Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8 - operator: NotIn - values: - - q.0-_1-F.h-__k_K5._3 - matchLabels: - 9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm: 2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P - ingress: - - from: - - ipBlock: - cidr: "42" - except: - - "43" - namespaceSelector: - matchExpressions: - - key: 83.SD..P.---5.-3 - operator: NotIn - values: - - hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q - matchLabels: - rSf5_Or.i1_7z.WH-..T: 2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0 - podSelector: - matchExpressions: - - key: 44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7 - operator: In - values: - - 17_.8CnT - matchLabels: - y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk: h-JM - ports: - - protocol: ÐƣKʘńw:5塋訩塶"=y钡n - podSelector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - policyTypes: - - h4ɊHȖ|ʐ diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.json deleted file mode 100644 index 0d723e167..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "kind": "NetworkPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "podSelector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "ingress": [ - { - "ports": [ - { - "protocol": "ÐƣKʘńw:5塋訩塶\"=y钡n" - } - ], - "from": [ - { - "podSelector": { - "matchLabels": { - "y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk": "h-JM" - }, - "matchExpressions": [ - { - "key": "44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7", - "operator": "In", - "values": [ - "17_.8CnT" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "rSf5_Or.i1_7z.WH-..T": "2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0" - }, - "matchExpressions": [ - { - "key": "83.SD..P.---5.-3", - "operator": "NotIn", - "values": [ - "hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q" - ] - } - ] - }, - "ipBlock": { - "cidr": "42", - "except": [ - "43" - ] - } - } - ] - } - ], - "egress": [ - { - "ports": [ - { - "protocol": "ƯĖ漘Z剚敍0)鈼¬麄p呝T" - } - ], - "to": [ - { - "podSelector": { - "matchLabels": { - "9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm": "2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P" - }, - "matchExpressions": [ - { - "key": "Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8", - "operator": "NotIn", - "values": [ - "q.0-_1-F.h-__k_K5._3" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u": "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - }, - "matchExpressions": [ - { - "key": "5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M", - "operator": "NotIn", - "values": [ - "D.GgT7_7P" - ] - } - ] - }, - "ipBlock": { - "cidr": "56", - "except": [ - "57" - ] - } - } - ] - } - ], - "policyTypes": [ - "h4ɊHȖ|ʐ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.pb deleted file mode 100644 index 88d70aa0b35e739df2b0a07475cd1310b4edd52c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1296 zcmXw1%WqXh81K0#mPsUJ!m9CE6C&vM-8pk+&O?JrDJ>LwTWBe56Y_cAuip3jstaBU zZHQnHszFGD3ycyrzF{SW01I~}CT@($ZRo~7!8njG$z*cA`OY`LSKhDnvDX++w(H4a zEn6zq!c9AttVeDBd?Z9TNzus zvKaLrt(<*-_4_ zP2M>D!--Q@f4_Xon%~GQk6V81Ic5bsWQ*J@EM&`pknId^9`5#TUAX_r2erG4_dYG} z2-&vi^Q~&gR^5=T7pz_p^=W40s>Z|pqSr}yN>>CtSrVkO9Z(Am@WHJrB~(J2 zo3tO7kPpI2DBKMwBftbevr5}`fZQU-(8&M7cF*xZLLnFG)+`7Ym?W-BYOdHnkxwrn!~!$Tc8n~+|G>f z40s|+Pe1~*hoifxH8(Yu8ZwBxQ-CD+2;1U2I5mtoY5oC?;P7W7rMhwFjZCL&6r!>! zbOCT5rQCe3)&*~&H3xHn18p~!O&7?_sSNb9kdi#4oPiq~*vst2dpB1vuH9aq@16N_ z?enu@`}*nIzkRp<>&bHO{8!Wb%m((4#ZFl4y#QpOqje~Gl~l@uHbB*Dx^ArC*$pVF zRM5(UV?5H*s0C04Qv?NurA)iwOo6{EF(8_Qy)a%W*9|el7=?~MW>e_^X_~@>jyhwe zfNq);nq?#A>LW=%Mw7;_w?`W#XEI7ugy95WU`EWNAR8%@Mk-O+b@c?P(HzpyY#k@S zcuz1#jRN>j#oAgyBb5y!m@#S2(|&D&&M#SPhHV=)L7o96_n5O3h*8>QK)?aBiA01V zIN=Cr@HZzwW~R}2kK}<~c+y}%&+Lf;rHkl89Ctf3Vj#_q@SSYC25Hjd8&MXT%>u|u z*8@kGaM@la+>B_HI(npya{MXCO~W{vp7zL_eC(HYc}RPMETbMQ?!ABU!-wYv`Ud;{ E2k%FL8UO$Q diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.yaml deleted file mode 100644 index dae47ddc7..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.NetworkPolicy.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: NetworkPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - egress: - - ports: - - protocol: ƯĖ漘Z剚敍0)鈼¬麄p呝T - to: - - ipBlock: - cidr: "56" - except: - - "57" - namespaceSelector: - matchExpressions: - - key: 5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M - operator: NotIn - values: - - D.GgT7_7P - matchLabels: - G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u: O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF - podSelector: - matchExpressions: - - key: Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8 - operator: NotIn - values: - - q.0-_1-F.h-__k_K5._3 - matchLabels: - 9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm: 2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P - ingress: - - from: - - ipBlock: - cidr: "42" - except: - - "43" - namespaceSelector: - matchExpressions: - - key: 83.SD..P.---5.-3 - operator: NotIn - values: - - hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q - matchLabels: - rSf5_Or.i1_7z.WH-..T: 2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0 - podSelector: - matchExpressions: - - key: 44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7 - operator: In - values: - - 17_.8CnT - matchLabels: - y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk: h-JM - ports: - - protocol: ÐƣKʘńw:5塋訩塶"=y钡n - podSelector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g - policyTypes: - - h4ɊHȖ|ʐ diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json deleted file mode 100644 index 09c049061..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "kind": "PodSecurityPolicy", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "privileged": true, - "defaultAddCapabilities": [ - "ǸƢ6/" - ], - "requiredDropCapabilities": [ - "VŚ(ĿȊ甞谐颋" - ], - "allowedCapabilities": [ - "SǡƏ" - ], - "volumes": [ - "$+½H牗洝尿彀亞螩B峅" - ], - "hostNetwork": true, - "hostPorts": [ - { - "min": -827642756, - "max": -1487653240 - } - ], - "hostPID": true, - "hostIPC": true, - "seLinux": { - "rule": "", - "seLinuxOptions": { - "user": "24", - "role": "25", - "type": "26", - "level": "27" - } - }, - "runAsUser": { - "rule": ":狞夌碕ʂɭîcP$Iņɖ", - "ranges": [ - { - "min": 6715860513467504728, - "max": -7606590868934742876 - } - ] - }, - "runAsGroup": { - "rule": "ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(-", - "ranges": [ - { - "min": 4788190398976706073, - "max": 7506785378065797295 - } - ] - }, - "supplementalGroups": { - "rule": "?øēƺ魋Ď儇击3ƆìQ", - "ranges": [ - { - "min": -9190478501544852634, - "max": -8763960668058519584 - } - ] - }, - "fsGroup": { - "rule": "託仭", - "ranges": [ - { - "min": -7003704988542234731, - "max": -2225037131652530471 - } - ] - }, - "defaultAllowPrivilegeEscalation": false, - "allowPrivilegeEscalation": false, - "allowedHostPaths": [ - { - "pathPrefix": "28" - } - ], - "allowedFlexVolumes": [ - { - "driver": "29" - } - ], - "allowedCSIDrivers": [ - { - "name": "30" - } - ], - "allowedUnsafeSysctls": [ - "31" - ], - "forbiddenSysctls": [ - "32" - ], - "allowedProcMountTypes": [ - "¬轚9Ȏ瀮昃" - ], - "runtimeClass": { - "allowedRuntimeClassNames": [ - "33" - ], - "defaultRuntimeClassName": "34" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.PodSecurityPolicy.after_roundtrip.pb deleted file mode 100644 index 3a0567fcefb3d83d50d0d38f015611f4174bc683..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 639 zcmV-_0)YK%ICB6BCkhf}cywiMb7^mGb1!x=Vr6t;F%l6_Z)8(tV|8+Aba_y3Y-wY8 z63YY%$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGt zF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`|& z0tf*T2FJL@qBbuY5mv>TD8#?WiszJ`=&+FKqKhI0Q^%pkk187^E5f}<=ZTl*w4LR! zzvaDv(gcBuT}F$(9lo2-vW;(%|vo znOzX1*{I9^y#2S90b()=7(c_f#FNIl>8*>zj^%`h<%hd7#)iYJQ4$si=7zZZ?~k{- zfB_KT?}3-ghKjI;0cs!$2I#1l+qn*XRC@m5c2$_tc(G#Z+R!&E0&P@~C-MJ-11cD-kf_K{+9@APsnOpQxyrbto3)xY&DM?YnxiE^$%-nTHsa&z5#GRK|pJPQ3p(VozRgU zcMIDDQR5r<27$apen2jvWGA71A(H3^=XWP2d zJ?v~KL9D^9x%Q6HFT+t#p}~O}0=D`j4lEEQ4fpeKl%%vMN$WDNw#rd&yz{AD6PL!>VNgn;_{BtWy zrO6k5Wp+dkEz3)e-3XuJ-;~H7It-vV2Rq!DIygL51&FS_uaQ6h>m^VMZe`;LByf~6 zLXZd zS6+e$3MztVRKSRU_yPn4)G#wRLzApLOs@8>-o!NX>dG~mCQXfb+<(t#+qLd2{LeZ6 z-uvJGYybbZU8m<-I48%a7v!aH$X%1QAvZCfq^0Mj5}sR z<&oq-vI{8*E>C%+b%&>OV{-6NRjM9tu6fmS+}|jK8&9d89m@kp`_t(pq8h496;YFQ zNmmtBq>`ck_sx>1pFRWbjrZu61%&LLF8j zxgMHX6d2g+tN2~6w`ycpc7l}<(W0XqE0K$=M5#g;rmFl?k=m-j-l|CJe(xc?EO4;L z-Ito^-@7GPR~#Qa-{9HyTaczv3*Z0rgxl4BeCKaJzz^}CA+8v4Ng~!U#v3*ktjNb3 zm7M6;+N^9afQUj4#;f!d6tBYuq3H@N0#g#TLXB5)1r=kn zK)_hsoSCwYn7Uv}xh6JeY!ot0ENs-xd^&H<(%ELJp_7#o)^LW-XK;8vPBIl!$Paij;ZvPOfs3V) zz82N@dZ4~ObgTj5M-&l$R8cfpmZ&UiqNLwF8?J5G-FoT~h~MS{BI(M&xS4)KMNuhh}$<)xR1thR)z4_#&M6q3*{&J&V=_|3Ji6H zi<_rQ86yK3{FB_Hq4Ukb*Y^*f@*JBL*wHX6cr#YwW^u)#u!w<@yzYTFNW zY`<;RW+trmW<)7n)r$(&8m@PSgcXr zs!4XV1T52Jnac2>%c|)KR?VPRU7QLlbu!J8=71-x(j^Du$WBWFxLk)d zy1Evu(?NAzw<8xDHFE5n)qr3d5Nrd2ZAb~gH)IhN!72k*8EOgAxqpEVjb|(!SjmLBhY(5e&(l({iiP=4rWry zW=g|R9U*1ohy-pMMFNaTObR3~(^e)?Yh+5{U789+o&iKj2BI#qyoah0SBkjDqoz@r zXRf2nWUAV~y5cKAP76=CM8?(l=*G-$YB(kW3l1U>!ZtD_+1dU-&Hdj+UEzqylW0_) zB(Z6-z53wq-Qyu=nR_I~*4cXCX5aVQPl35aQf+%Le|OdT2V{pqnb{-jz?ThBpV^^^ zpP(u1No*G2E7Zl5fx`eqj?GZ`n($${-n!TK8Uxk%;U@QKKUvg|-Tq6Xy91R&3Cs}YUJCA=$Z-=aw$c69tHwAijAht9_~`0i z$J+Y_-}rEhv;E`naclgU-pcM+ev9?x@0Z7=lpyYvs0ND2KM&HNq}|s*p`d{xxg6f1 ztSd*n1EY<<4tJOOJD|CRw$^#i8&~S13Mg<0pfJNZ{rgIlaWq@m&9CnrPW!+cci$ZE z{QOAG+hgO;y6gYKg7yOv>$}?AW72vMw>+kV&i^Y@!uY!qD&!MYiOW9H|8Jf~&*|W? z>SdA6zHsZ#XXY>W9iFB|RZ!vlP*wUT6;!4al)#vKRh2hDuB!15gO9rXtv6z+;$WUu zb(bx;Yn#8(R~;_97--rRsI84jWhtVGj>#Nbb?k6QYfS5?do{8a25HX3yztJhQ0>rg zo2TM8PWLJIiK2ao)3`|^jln|)LfdQo7eY-<{~oM(ePrJPeoAo9o{@b?%hN;K27fkt zW?*|s_~f8}kFR?4@P;*!@&k|~aGt2fa!->%IZc6l(Nt$(cjZSrE)O(+g5oXExh&J( zc>PZE&AaX8*HH4~-eaNtrFx`)pZ`pUh+5E;LjZY^@q?d4BVi zdVjaS&u~{e8$b1T9xHik+m|T*=$BpXM~8QRa1zl;o8vu)17$tllb#D(fqbyRGyPvLk1C z$H85WVuu+A7(q9p%=?mBFPoC#F|JzT8&J16AAym~HJXztb$Npka z$xwM0o2&7Y^8&lJhFaPp4c)%>oIq3CXzRwn;W9Qy=Tj!Q_f-Er)|&YF+_P+n!8-zH z2ZN3Eo)hj0cXzm|2uA7 zM&6oq82~0;l__Uqy$~BXFI`s{)WuSi=HN`6it$E3=Hd!1BRi3*bEZ@EMVu=vSc_L; z*_1&wY^KPD2=KPniGv_t~<)d zaGxXY6U6O8T&6)mnM@V0(=p&_jA?pa#%h_YNCga4 ziJ2J!hQFeG*d8D;P7;=aL$RqLPiN3SzS<&IAA8^*W@Il0_iNvQ?~rD`2j;Sbc-1Qz|fVvKiG?12ysHg}j9?;FjuXkaI0538opzavTAR0rI8X(FU3ikkKVF*HjiWAQ{Qvj@79Ya0DE zYeM~J+~)%=JrtP6lKYLH0Dy9r z@u0VJQ4;HqL}#Yz+CRE3VWpPnhHdA~K)=;q-16}atMf)%SJZN&#} zhGMS%3fRuW#PJ zHbl2JTwG*lU!bNv{MyB+y_8)-C|p8fc;MFUcY5z#GZ@^0vK*C4MTtqJ;y<9A$U2#* zx@_LE`BzQ{FC6yw1h@A__PrKG8E^xEQT?9O@X@a?#}tpE4AEE%$XCqyiGQE3G~9hQ zQd=IbII%J*(AO4dZOVHwP*c3n-%_-Ndx9IYGIF+=pA_yX-#lxYZ(r_kr~BOKNzc|_ zxZCfc3c?yW{7(iD3EC==ovp*)eKzp%om)*P9z{{b7rwXm_g@e7bfM&*gwIs^OOw1u zMw-1no=aEGo9<%Y_P|hywr7sVBXL1LnAMV3m0?&Asqm(VDfASzrUW4MB-ip|o3 zrUV9>{dJLxov#L}x}O~$43u>F4v|QC>GSFqf3vqDiZ_VP&WTQrBg27>1)Qi#~KSbZ6;%XfnHJgV7S8 z7f4tMP&N?x8bY6-A9Ig|x=${NH{C7Xy`h?&&x~wK_H?HQI~xAXWGJ@~`UX8RdeHQB zZT9zux;uki$HJ#hyH7j6>utO>-jO=t;D}_z@xx)Lmt&0>lMJg`x6F(gqd}_FBv^>z#=&N@R6#l|7VZs+z Wzy17a8{8x%8E%r2tT`+$%l`op+AO00 diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml deleted file mode 100644 index c4bde8678..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.after_roundtrip.yaml +++ /dev/null @@ -1,718 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -5860790522738935260 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: 岼昕ĬÇó藢xɮĵȑ6L*Z - values: - - "300" - matchFields: - - key: "301" - operator: 绤fʀļ腩墺Ò媁荭g - values: - - "302" - weight: -379385405 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "296" - matchFields: - - key: "297" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "317" - topologyKey: "318" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "333" - topologyKey: "334" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "220" - command: - - "219" - env: - - name: "227" - value: "228" - valueFrom: - configMapKeyRef: - key: "234" - name: "233" - optional: false - fieldRef: - apiVersion: "229" - fieldPath: "230" - resourceFieldRef: - containerName: "231" - divisor: "508" - resource: "232" - secretKeyRef: - key: "236" - name: "235" - optional: true - envFrom: - - configMapRef: - name: "225" - optional: true - prefix: "224" - secretRef: - name: "226" - optional: true - image: "218" - imagePullPolicy: t莭琽§ć\ ïì - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "265" - port: "264" - preStop: - exec: - command: - - "266" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "267" - port: -1675041613 - scheme: 揆ɘȌ脾嚏吐 - tcpSocket: - host: "271" - port: -194343002 - livenessProbe: - exec: - command: - - "243" - failureThreshold: 817152661 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - initialDelaySeconds: 1591029717 - periodSeconds: 622473257 - successThreshold: -966649167 - tcpSocket: - host: "249" - port: 1096174794 - timeoutSeconds: 1255169591 - name: "217" - ports: - - containerPort: -1815391069 - hostIP: "223" - hostPort: -1470854631 - name: "222" - protocol: Ƹʋŀ樺ȃv - readinessProbe: - exec: - command: - - "250" - failureThreshold: 1214895765 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "251" - port: "252" - scheme: ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ - initialDelaySeconds: -394397948 - periodSeconds: 1505972335 - successThreshold: -26910286 - tcpSocket: - host: "257" - port: "256" - timeoutSeconds: 2040455355 - resources: - limits: - 剚敍0)鈼¬麄p呝TG: "305" - requests: - 瓶: "806" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƙ枛牐ɺ皚|懥ƖN - drop: - - 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - privileged: true - procMount: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - readOnlyRootFilesystem: false - runAsGroup: -2879304435996142911 - runAsNonRoot: false - runAsUser: -2142888785755371163 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdin: true - terminationMessagePath: "272" - terminationMessagePolicy: Ȥ藠3. - volumeDevices: - - devicePath: "242" - name: "241" - volumeMounts: - - mountPath: "238" - mountPropagation: "" - name: "237" - readOnly: true - subPath: "239" - subPathExpr: "240" - workingDir: "221" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostPID: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷 - readOnlyRootFilesystem: false - runAsGroup: -5951050835676650382 - runAsNonRoot: true - runAsUser: -7286288718856494813 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "340" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: ȶ网棊ʢ=wǕɳɷ9Ì - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "336" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1652763817 - conditions: - - lastTransitionTime: "2275-03-02T02:41:54Z" - message: "347" - reason: "346" - status: 佼!­ʅ墘ȕûy< - type: ŗÑ"虆k遚釾 - fullyLabeledReplicas: 831250275 - observedGeneration: 8116344374862020441 - readyReplicas: -1641645377 - replicas: 2001693468 diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.json deleted file mode 100644 index d911386e1..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.json +++ /dev/null @@ -1,1062 +0,0 @@ -{ - "kind": "ReplicaSet", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "replicas": -1978186127, - "minReadySeconds": 2114329341, - "selector": { - "matchLabels": { - "0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7": "s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8" - }, - "matchExpressions": [ - { - "key": "M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G", - "operator": "NotIn", - "values": [ - "7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU" - ] - } - ] - }, - "template": { - "metadata": { - "name": "30", - "generateName": "31", - "namespace": "32", - "selfLink": "33", - "uid": "诫z徃鷢6ȥ啕禗", - "resourceVersion": "11500002557443244703", - "generation": 1395707490843892091, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4739960484747932992, - "labels": { - "35": "36" - }, - "annotations": { - "37": "38" - }, - "ownerReferences": [ - { - "apiVersion": "39", - "kind": "40", - "name": "41", - "uid": "·Õ", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "42" - ], - "clusterName": "43", - "managedFields": [ - { - "manager": "44", - "operation": "ɔȖ脵鴈Ōƾ焁yǠ/淹\\韲翁\u0026", - "apiVersion": "45", - "fields": {"46":{"47":null}} - } - ] - }, - "spec": { - "volumes": [ - { - "name": "51", - "hostPath": { - "path": "52", - "type": "ȱ蓿彭聡A3fƻf" - }, - "emptyDir": { - "medium": "繡楙¯ĦE勗E濞偘", - "sizeLimit": "349" - }, - "gcePersistentDisk": { - "pdName": "53", - "fsType": "54", - "partition": 1648350164, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "55", - "fsType": "56", - "partition": 200492355, - "readOnly": true - }, - "gitRepo": { - "repository": "57", - "revision": "58", - "directory": "59" - }, - "secret": { - "secretName": "60", - "items": [ - { - "key": "61", - "path": "62", - "mode": 1360806276 - } - ], - "defaultMode": 395412881, - "optional": true - }, - "nfs": { - "server": "63", - "path": "64" - }, - "iscsi": { - "targetPortal": "65", - "iqn": "66", - "lun": -1746427184, - "iscsiInterface": "67", - "fsType": "68", - "portals": [ - "69" - ], - "secretRef": { - "name": "70" - }, - "initiatorName": "71" - }, - "glusterfs": { - "endpoints": "72", - "path": "73", - "readOnly": true - }, - "persistentVolumeClaim": { - "claimName": "74" - }, - "rbd": { - "monitors": [ - "75" - ], - "image": "76", - "fsType": "77", - "pool": "78", - "user": "79", - "keyring": "80", - "secretRef": { - "name": "81" - } - }, - "flexVolume": { - "driver": "82", - "fsType": "83", - "secretRef": { - "name": "84" - }, - "options": { - "85": "86" - } - }, - "cinder": { - "volumeID": "87", - "fsType": "88", - "readOnly": true, - "secretRef": { - "name": "89" - } - }, - "cephfs": { - "monitors": [ - "90" - ], - "path": "91", - "user": "92", - "secretFile": "93", - "secretRef": { - "name": "94" - }, - "readOnly": true - }, - "flocker": { - "datasetName": "95", - "datasetUUID": "96" - }, - "downwardAPI": { - "items": [ - { - "path": "97", - "fieldRef": { - "apiVersion": "98", - "fieldPath": "99" - }, - "resourceFieldRef": { - "containerName": "100", - "resource": "101", - "divisor": "51" - }, - "mode": -1332301579 - } - ], - "defaultMode": -395029362 - }, - "fc": { - "targetWWNs": [ - "102" - ], - "lun": -2007808768, - "fsType": "103", - "wwids": [ - "104" - ] - }, - "azureFile": { - "secretName": "105", - "shareName": "106" - }, - "configMap": { - "name": "107", - "items": [ - { - "key": "108", - "path": "109", - "mode": -1057154155 - } - ], - "defaultMode": 1632959949, - "optional": true - }, - "vsphereVolume": { - "volumePath": "110", - "fsType": "111", - "storagePolicyName": "112", - "storagePolicyID": "113" - }, - "quobyte": { - "registry": "114", - "volume": "115", - "user": "116", - "group": "117", - "tenant": "118" - }, - "azureDisk": { - "diskName": "119", - "diskURI": "120", - "cachingMode": "躢", - "fsType": "121", - "readOnly": false, - "kind": "黰eȪ嵛4$%Qɰ" - }, - "photonPersistentDisk": { - "pdID": "122", - "fsType": "123" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": 273818613 - } - ], - "optional": false - }, - "downwardAPI": { - "items": [ - { - "path": "127", - "fieldRef": { - "apiVersion": "128", - "fieldPath": "129" - }, - "resourceFieldRef": { - "containerName": "130", - "resource": "131", - "divisor": "934" - }, - "mode": -687313111 - } - ] - }, - "configMap": { - "name": "132", - "items": [ - { - "key": "133", - "path": "134", - "mode": 2020789772 - } - ], - "optional": true - }, - "serviceAccountToken": { - "audience": "135", - "expirationSeconds": 3485267088372060587, - "path": "136" - } - } - ], - "defaultMode": 715087892 - }, - "portworxVolume": { - "volumeID": "137", - "fsType": "138", - "readOnly": true - }, - "scaleIO": { - "gateway": "139", - "system": "140", - "secretRef": { - "name": "141" - }, - "protectionDomain": "142", - "storagePool": "143", - "storageMode": "144", - "volumeName": "145", - "fsType": "146" - }, - "storageos": { - "volumeName": "147", - "volumeNamespace": "148", - "fsType": "149", - "secretRef": { - "name": "150" - } - }, - "csi": { - "driver": "151", - "readOnly": false, - "fsType": "152", - "volumeAttributes": { - "153": "154" - }, - "nodePublishSecretRef": { - "name": "155" - } - } - } - ], - "initContainers": [ - { - "name": "156", - "image": "157", - "command": [ - "158" - ], - "args": [ - "159" - ], - "workingDir": "160", - "ports": [ - { - "name": "161", - "hostPort": 1473141590, - "containerPort": -1996616480, - "protocol": "ł/擇ɦĽ胚O醔ɍ厶", - "hostIP": "162" - } - ], - "envFrom": [ - { - "prefix": "163", - "configMapRef": { - "name": "164", - "optional": false - }, - "secretRef": { - "name": "165", - "optional": false - } - } - ], - "env": [ - { - "name": "166", - "value": "167", - "valueFrom": { - "fieldRef": { - "apiVersion": "168", - "fieldPath": "169" - }, - "resourceFieldRef": { - "containerName": "170", - "resource": "171", - "divisor": "375" - }, - "configMapKeyRef": { - "name": "172", - "key": "173", - "optional": true - }, - "secretKeyRef": { - "name": "174", - "key": "175", - "optional": false - } - } - } - ], - "resources": { - "limits": { - "": "596" - }, - "requests": { - "a坩O`涁İ而踪鄌eÞȦY籎顒": "45" - } - }, - "volumeMounts": [ - { - "name": "176", - "mountPath": "177", - "subPath": "178", - "mountPropagation": "捘ɍi縱ù墴", - "subPathExpr": "179" - } - ], - "volumeDevices": [ - { - "name": "180", - "devicePath": "181" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "182" - ] - }, - "httpGet": { - "path": "183", - "port": "184", - "host": "185", - "scheme": "痗ȡmƴy綸_Ú8參遼ūPH", - "httpHeaders": [ - { - "name": "186", - "value": "187" - } - ] - }, - "tcpSocket": { - "port": "188", - "host": "189" - }, - "initialDelaySeconds": 655980302, - "timeoutSeconds": 741871873, - "periodSeconds": 446829537, - "successThreshold": -1987044888, - "failureThreshold": -1638339389 - }, - "readinessProbe": { - "exec": { - "command": [ - "190" - ] - }, - "httpGet": { - "path": "191", - "port": 961508537, - "host": "192", - "scheme": "黖ȓ", - "httpHeaders": [ - { - "name": "193", - "value": "194" - } - ] - }, - "tcpSocket": { - "port": "195", - "host": "196" - }, - "initialDelaySeconds": -50623103, - "timeoutSeconds": 1795738696, - "periodSeconds": -1350331007, - "successThreshold": -1145306833, - "failureThreshold": 2063799569 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "197" - ] - }, - "httpGet": { - "path": "198", - "port": -2007811220, - "host": "199", - "scheme": "鎷卩蝾H", - "httpHeaders": [ - { - "name": "200", - "value": "201" - } - ] - }, - "tcpSocket": { - "port": -2035009296, - "host": "202" - } - }, - "preStop": { - "exec": { - "command": [ - "203" - ] - }, - "httpGet": { - "path": "204", - "port": "205", - "host": "206", - "scheme": "ńMǰ溟ɴ扵閝", - "httpHeaders": [ - { - "name": "207", - "value": "208" - } - ] - }, - "tcpSocket": { - "port": -1474440600, - "host": "209" - } - } - }, - "terminationMessagePath": "210", - "terminationMessagePolicy": "廡ɑ龫`劳\u0026¼傭Ȟ1酃=6}ɡŇ", - "imagePullPolicy": "ɖȃ賲鐅臬dH巧壚tC十Oɢ", - "securityContext": { - "capabilities": { - "add": [ - "d鲡" - ], - "drop": [ - "贅wE@Ȗs«öʮĀ\u003cé" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "211", - "role": "212", - "type": "213", - "level": "214" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "215", - "gmsaCredentialSpec": "216" - }, - "runAsUser": -7286288718856494813, - "runAsGroup": -5951050835676650382, - "runAsNonRoot": true, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷" - }, - "stdinOnce": true - } - ], - "containers": [ - { - "name": "217", - "image": "218", - "command": [ - "219" - ], - "args": [ - "220" - ], - "workingDir": "221", - "ports": [ - { - "name": "222", - "hostPort": -1470854631, - "containerPort": -1815391069, - "protocol": "Ƹʋŀ樺ȃv", - "hostIP": "223" - } - ], - "envFrom": [ - { - "prefix": "224", - "configMapRef": { - "name": "225", - "optional": true - }, - "secretRef": { - "name": "226", - "optional": true - } - } - ], - "env": [ - { - "name": "227", - "value": "228", - "valueFrom": { - "fieldRef": { - "apiVersion": "229", - "fieldPath": "230" - }, - "resourceFieldRef": { - "containerName": "231", - "resource": "232", - "divisor": "508" - }, - "configMapKeyRef": { - "name": "233", - "key": "234", - "optional": false - }, - "secretKeyRef": { - "name": "235", - "key": "236", - "optional": true - } - } - } - ], - "resources": { - "limits": { - "剚敍0)鈼¬麄p呝TG": "305" - }, - "requests": { - "瓶": "806" - } - }, - "volumeMounts": [ - { - "name": "237", - "readOnly": true, - "mountPath": "238", - "subPath": "239", - "mountPropagation": "", - "subPathExpr": "240" - } - ], - "volumeDevices": [ - { - "name": "241", - "devicePath": "242" - } - ], - "livenessProbe": { - "exec": { - "command": [ - "243" - ] - }, - "httpGet": { - "path": "244", - "port": "245", - "host": "246", - "scheme": "ȫ焗捏ĨFħ籘Àǒɿʒ刽", - "httpHeaders": [ - { - "name": "247", - "value": "248" - } - ] - }, - "tcpSocket": { - "port": 1096174794, - "host": "249" - }, - "initialDelaySeconds": 1591029717, - "timeoutSeconds": 1255169591, - "periodSeconds": 622473257, - "successThreshold": -966649167, - "failureThreshold": 817152661 - }, - "readinessProbe": { - "exec": { - "command": [ - "250" - ] - }, - "httpGet": { - "path": "251", - "port": "252", - "host": "253", - "scheme": "ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ", - "httpHeaders": [ - { - "name": "254", - "value": "255" - } - ] - }, - "tcpSocket": { - "port": "256", - "host": "257" - }, - "initialDelaySeconds": -394397948, - "timeoutSeconds": 2040455355, - "periodSeconds": 1505972335, - "successThreshold": -26910286, - "failureThreshold": 1214895765 - }, - "lifecycle": { - "postStart": { - "exec": { - "command": [ - "258" - ] - }, - "httpGet": { - "path": "259", - "port": "260", - "host": "261", - "scheme": "Ƹ[Ęİ榌U髷裎$MVȟ@7", - "httpHeaders": [ - { - "name": "262", - "value": "263" - } - ] - }, - "tcpSocket": { - "port": "264", - "host": "265" - } - }, - "preStop": { - "exec": { - "command": [ - "266" - ] - }, - "httpGet": { - "path": "267", - "port": -1675041613, - "host": "268", - "scheme": "揆ɘȌ脾嚏吐", - "httpHeaders": [ - { - "name": "269", - "value": "270" - } - ] - }, - "tcpSocket": { - "port": -194343002, - "host": "271" - } - } - }, - "terminationMessagePath": "272", - "terminationMessagePolicy": "Ȥ藠3.", - "imagePullPolicy": "t莭琽§ć\\ ïì", - "securityContext": { - "capabilities": { - "add": [ - "Ƙ枛牐ɺ皚|懥ƖN" - ], - "drop": [ - "擓ƖHVe熼'FD剂讼ɓȌʟni酛" - ] - }, - "privileged": true, - "seLinuxOptions": { - "user": "273", - "role": "274", - "type": "275", - "level": "276" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "277", - "gmsaCredentialSpec": "278" - }, - "runAsUser": -2142888785755371163, - "runAsGroup": -2879304435996142911, - "runAsNonRoot": false, - "readOnlyRootFilesystem": false, - "allowPrivilegeEscalation": false, - "procMount": "Ŧ癃8鸖ɱJȉ罴ņ螡źȰ?" - }, - "stdin": true - } - ], - "restartPolicy": "ȶ网棊ʢ=wǕɳɷ9Ì", - "terminationGracePeriodSeconds": -860974700141841896, - "activeDeadlineSeconds": -5860790522738935260, - "dnsPolicy": "w(ğ儴Ůĺ}潷ʒ胵", - "nodeSelector": { - "279": "280" - }, - "serviceAccountName": "281", - "serviceAccount": "282", - "automountServiceAccountToken": false, - "nodeName": "283", - "hostNetwork": true, - "hostPID": true, - "shareProcessNamespace": true, - "securityContext": { - "seLinuxOptions": { - "user": "284", - "role": "285", - "type": "286", - "level": "287" - }, - "windowsOptions": { - "gmsaCredentialSpecName": "288", - "gmsaCredentialSpec": "289" - }, - "runAsUser": -7059779929916534575, - "runAsGroup": -4105014793515441558, - "runAsNonRoot": true, - "supplementalGroups": [ - 830921445879518469 - ], - "fsGroup": 7861919711004065015, - "sysctls": [ - { - "name": "290", - "value": "291" - } - ] - }, - "imagePullSecrets": [ - { - "name": "292" - } - ], - "hostname": "293", - "subdomain": "294", - "affinity": { - "nodeAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "295", - "operator": "ɇ卷荙JLĹ]佱¿\u003e犵殇ŕ-Ɂ", - "values": [ - "296" - ] - } - ], - "matchFields": [ - { - "key": "297", - "operator": "t叀碧闳ȩr嚧ʣq埄", - "values": [ - "298" - ] - } - ] - } - ] - }, - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": -379385405, - "preference": { - "matchExpressions": [ - { - "key": "299", - "operator": "岼昕ĬÇó藢xɮĵȑ6L*Z", - "values": [ - "300" - ] - } - ], - "matchFields": [ - { - "key": "301", - "operator": "绤fʀļ腩墺Ò媁荭g", - "values": [ - "302" - ] - } - ] - } - } - ] - }, - "podAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "6-d42--clo90---461v-07r--0---8-30i-uo/9DF": "AH-Q.GM72_-c-.-.6--3-__t" - }, - "matchExpressions": [ - { - "key": "8SUGP.-_.uB-.--.gb_2_-8--z", - "operator": "Exists" - } - ] - }, - "namespaces": [ - "309" - ], - "topologyKey": "310" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1258370227, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "N-_-vv-Q2q7": "3.4....-h._.GgT7_7P" - }, - "matchExpressions": [ - { - "key": "ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "317" - ], - "topologyKey": "318" - } - } - ] - }, - "podAntiAffinity": { - "requiredDuringSchedulingIgnoredDuringExecution": [ - { - "labelSelector": { - "matchLabels": { - "927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32": "0U1_-__.71-_-9_._X-D---k..1Q7N" - }, - "matchExpressions": [ - { - "key": "2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s", - "operator": "DoesNotExist" - } - ] - }, - "namespaces": [ - "325" - ], - "topologyKey": "326" - } - ], - "preferredDuringSchedulingIgnoredDuringExecution": [ - { - "weight": 1289969734, - "podAffinityTerm": { - "labelSelector": { - "matchLabels": { - "gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO": "" - }, - "matchExpressions": [ - { - "key": "8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q", - "operator": "NotIn", - "values": [ - "0..KpiS.oK-.O--5-yp8q_s-L" - ] - } - ] - }, - "namespaces": [ - "333" - ], - "topologyKey": "334" - } - } - ] - } - }, - "schedulerName": "335", - "tolerations": [ - { - "key": "336", - "operator": "}缫,", - "value": "337", - "effect": "ɉ愂", - "tolerationSeconds": 5005983565679986804 - } - ], - "hostAliases": [ - { - "ip": "338", - "hostnames": [ - "339" - ] - } - ], - "priorityClassName": "340", - "priority": 178156526, - "dnsConfig": { - "nameservers": [ - "341" - ], - "searches": [ - "342" - ], - "options": [ - { - "name": "343", - "value": "344" - } - ] - }, - "readinessGates": [ - { - "conditionType": "糮R(_âŔ獎$ƆJije檗" - } - ], - "runtimeClassName": "345", - "enableServiceLinks": true, - "preemptionPolicy": "ʜ_ȭwɵ糫武诰ð" - } - } - }, - "status": { - "replicas": 2001693468, - "fullyLabeledReplicas": 831250275, - "readyReplicas": -1641645377, - "availableReplicas": 1652763817, - "observedGeneration": 8116344374862020441, - "conditions": [ - { - "type": "ŗÑ\"虆k遚釾", - "status": "佼!­ʅ墘ȕûy\u003c", - "lastTransitionTime": "2275-03-02T02:41:54Z", - "reason": "346", - "message": "347" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.pb deleted file mode 100644 index 80779b67a0ba4491bd7209208ed6ecc5b4475d17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4918 zcmZWt2~<>9nyy>8kk>g$`C?3UC7o0%8JjS3AMf6`J4srN3&Gu}oo2ev3n;iE2#7$B zGqTAdsHg~{Q2`?Y;s%HcsG+K`icWH}n2h$Ep2T!&>yt5>PC9MOGXJg8?mlPg=>OjP z@4f&1xBLI!Wv!lP;hY?wQJ9~xK5upQ`n;q9lAe*DMtE*hTlAP(5h22$sWfh0sIWT}y$8kvGk)A%DLk4dp;u?u*4smT2Q1g6TRR&y9np!CQFWGx4`;|M2c#e}o_6KSx{% z;*v$IV~p2tC|q8EHz>K$uQk~@U=R_7T#Q%h%PC%q4MH;%yc}n!5?+s`y!ESaF~-uy zA_b--X+;{ZLs(xG(#sVB&^{~ zozLX(Je+JQrjRcP>9c1FhG`0txskvcL7DbTY`%g8X{Dfm9(D zXDl)Dl7(Mx1RaDqrXa%h;zG?7UJ_C>FrFc5LYgTQnMG#yQiu0x&Wkv!B=S~?III$N zStTj)k?_f`;=skSNPny9dn3@$5IWij@g#}}KdLC2EK5|DHBr*t@M?LXF!b0XKnzyVVf)$Xo&+jOGD2Y~?=DZ0a|81xCws){@$ zl}dQ4O6}!kx2wk5>$i;zA}5-{0UyMvvfVO03En}Fs@mW69=voXnr|+vswG-gU9?QG zs>W2y;xU|66JNEYTQ!mbi#5tyHOY<^gJqg*v!ueg&_IZ$I;@)JvTAywRWqnn7pK5V zolLc)JKzbcbjiUuveS|XA<$usuC4*=bWmN_?a0MOja)ltH6Zu~1mA$*8&V?h4Ov9R zu*!f{hFXer?w{d917}+e9azjwaYPh(AcSqB5a-u7eqVk!YLjhy$9wJ{qOUdR2{w`1 zw$!{m96MnS_?AE^c*wiZgKSt~a#Xve8BOLO3`ErUN7+MXe8b+*|5fF8QE~RS?|x7N zF=<5;VVto22?2qGx`0TX=yArD8C$Vi7*9n zM4k>rNdclRw7idM5m$z|$D^iEnP;w}%w($CzrNxtMNSJ(xFp8a_~^#WZfZCt01FN# z5W+SxB-z>VKP~6JkGjGUlPA%rJV|2HWP9y_-?_&_&NBB%imj_{|IPj%s!xKsL{e>g zE`NX3`g>%DK{zo$bl}SdsL$+B#81&v>`81E;49R{l!3zlM2^i+_`30293`-r5?D-$ z;fkYFOawwGIEGSc+qdWa;csK%YU}7ecrVW%962|-&ATOd?1HbXfX$bt%whAHD5^Vt z!NF#ff?Fw=43<-guy@KVS47?M5OW`8c2cm@;=1<@ex#CWM{u~F;wA;En}ZE?;&YLz z!QtbP3*|Y1`q!60ZG@u@Nd~zV+I^ON>7tqfUZ9d@LturZgB6mIXrXab78m~~mm1wn zmiQN85|pF|;t}%+l@&%**WosE>7REAcAAWrGFJtZfgKvH`#@X>n_?R`}bYE3ZEWgEuiVrH{QcDr{ zYE%P7-ht7kUxj5q zoc?X4$~c;>{N^|J4yS$K&AV@ncYblW?wzp-XWR{cWEd9BB$3+#jmm>Aw(aZvOXR z{1G}m|-gbGQLeP=^M^})89(bg9>U1{+5`1=iat+VMff7j8{x3_+U5{`V;-Em}i*M}z% zowzB%b0|>W>pkJQusJx?Ke{Vi)(0&L^k81q#pysu3J|&&i1aFY4Xv`|rgF@Dodr*4 z2S8WBd|k7>*Rm`0zqi}V4k9~pR&*ZNar&Oi>w~w}M2plSB zb96p6-o3l_cd^#Q&*LVuB?j*ZoEZ!@HF%D@E8RWe#@0gr2~VG|UY(nm>VU!_^3SmP zLHNf)14lAPw|EA_6&-=r3+`Qk&XRCl_ewU2@_kmWh|A(;a?h!Fg-kJCzAoDU?1g2O z6kt&U(8#`YEQzb}#_S|x#w^}GEg3HoX3x{82_RCy3@S?4H1qjqIfwqr(%B0IYziBv z!w?o$rkgMgU}-TwZf4=?y!<>KHa1{)XoUSJz9&+CZ47?`aV>~*aX*=lOPt9Jn7;Jbg}KwD9t%!@wVli*M zDHQS#&dAQl1CSb39W*Bz(_D8{jN!gO+^2}!fw(M#f-+euUaMok*BH}`{LED{S)K;4 zT3JaqEzhP*txT*)xR4Y@VY$S#)snI@1q}a+3t)SI$T(S80uIH(61>cuVTyQ;ISreJ znQFcy2wJvT2%YmuaVY^HZVDO!XBn{WRXhWPtrY~aNSn{k=U${QgA%486hH(__%AP7 zB!KP7Lh?p{|0aZV3CYS>hw&`tUjZO`zKPd?r-d1_wY>jlG==jcQI+3mjUTyO7aGG? zTDfl#_a9vG%3NHetzVa8Xpk%zOv`6>(UobqfQm{ErYeZdp*SD>gV*VhN=i0?B+F5; z05zF+I?Af_ggH5@UlFqBU||81RFtD{F!S(S$OB0Nmq>Cm0;;s4 z0{}3H0=k~AfTG5{|!CZO&Z${-p; zlo}w)=?eD%XJH6Jfr^vBInx5KcPw}sE)(opzrOwDwY98jJ5YegXg<8b8sc`#qQF(0GWh zxE!IzMqf+TNN-W->^aljtOs_KMM?&}T?><0eDf{WP5+0t|R>V#i+fMT|y{aLSlH}*6nxu z?p-q&+=8+kl}bg4Nu}c7p`6G%nW(yK-tu`@P6aO<^7jU-`yzW^kD?5?fxxJKPipwc zH6re_}F}TL^uN9vMAg`nosy`$9ck!S18slc(ILoZt5~-5T#mi$Czu(1r1~ zKVCdp8)v`%!;TN$+3J2T$9d`NeYa!TozQW;cF#Dfa}RqP-Sw{UzO8E`CC!n_i~NMo rh6bM=?jEfOv^Mz~+yh0=JL2QNy!zc2&)DE5Damk?lw{3eaasNkD>^SU diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.yaml deleted file mode 100644 index afe0237c0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicaSet.yaml +++ /dev/null @@ -1,724 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicaSet -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - minReadySeconds: 2114329341 - replicas: -1978186127 - selector: - matchExpressions: - - key: M-H_5_.t..bGE.9__.3_u1.m_.5AW-_S-.3g.7_2fNc5G - operator: NotIn - values: - - 7_M9T9sH.Wu5--.K_.0--_0P7_.C.Ze--D07.a_.y_y_oU - matchLabels: - 0-8---nqxcv-q5r-8---jop96410.r--g8c2-k-912e5-c-e63-n-3snh-z--3uy5--g/7y7: s.6--_x.--0wmZk1_8._3s_-_Bq.m_-.q8_v2LiTF_a981d3-7-f8 - template: - metadata: - annotations: - "37": "38" - clusterName: "43" - creationTimestamp: null - deletionGracePeriodSeconds: -4739960484747932992 - finalizers: - - "42" - generateName: "31" - generation: 1395707490843892091 - labels: - "35": "36" - managedFields: - - apiVersion: "45" - fields: - "46": - "47": null - manager: "44" - operation: ɔȖ脵鴈Ōƾ焁yǠ/淹\韲翁& - name: "30" - namespace: "32" - ownerReferences: - - apiVersion: "39" - blockOwnerDeletion: true - controller: false - kind: "40" - name: "41" - uid: ·Õ - resourceVersion: "11500002557443244703" - selfLink: "33" - uid: 诫z徃鷢6ȥ啕禗 - spec: - activeDeadlineSeconds: -5860790522738935260 - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - key: "299" - operator: 岼昕ĬÇó藢xɮĵȑ6L*Z - values: - - "300" - matchFields: - - key: "301" - operator: 绤fʀļ腩墺Ò媁荭g - values: - - "302" - weight: -379385405 - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: "295" - operator: ɇ卷荙JLĹ]佱¿>犵殇ŕ-Ɂ - values: - - "296" - matchFields: - - key: "297" - operator: t叀碧闳ȩr嚧ʣq埄 - values: - - "298" - podAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: ftie4-7--gm4p-8y-9-te858----38----r-m-a--q3980c7fp/26GA26C-s.Nj-d-4_4--.-_Z4.LA3HVG93_._.I3.__-.0-z_z0sn_.x - operator: DoesNotExist - matchLabels: - N-_-vv-Q2q7: 3.4....-h._.GgT7_7P - namespaces: - - "317" - topologyKey: "318" - weight: 1258370227 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 8SUGP.-_.uB-.--.gb_2_-8--z - operator: Exists - matchLabels: - 6-d42--clo90---461v-07r--0---8-30i-uo/9DF: AH-Q.GM72_-c-.-.6--3-__t - namespaces: - - "309" - topologyKey: "310" - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: 8b-3-3b17cab-ppy5e--9p-61-2we16h--5-d-k-sm.2xv17r--32b-----4-670tfz-up3n/ov_Z--Zg-_Q - operator: NotIn - values: - - 0..KpiS.oK-.O--5-yp8q_s-L - matchLabels: - gr-y7nlp97v-0-1y-t3---2ga-v205p-26-l.p2-t--m-l80--5o1--cp6-5-x1---0w4rm0/f_ZN.-_--r.E__-.8_e_l2.._8s--7_3x_-J_.....7..--wO: "" - namespaces: - - "333" - topologyKey: "334" - weight: 1289969734 - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: 2I--2_9.v.--_.--4QQ.-s.H.Hu-k-_-0-T1mel--F......3_t_-l..-.DG7s - operator: DoesNotExist - matchLabels: - 927--m6-k8-c2---2etfh41ca-z-5g2wco28---f-53-x1y-8---3----7/mf.-f.-zv._._.5-H.T.-.-.T-V_D_0-K_A-_9_Z_C..7o_x32: 0U1_-__.71-_-9_._X-D---k..1Q7N - namespaces: - - "325" - topologyKey: "326" - automountServiceAccountToken: false - containers: - - args: - - "220" - command: - - "219" - env: - - name: "227" - value: "228" - valueFrom: - configMapKeyRef: - key: "234" - name: "233" - optional: false - fieldRef: - apiVersion: "229" - fieldPath: "230" - resourceFieldRef: - containerName: "231" - divisor: "508" - resource: "232" - secretKeyRef: - key: "236" - name: "235" - optional: true - envFrom: - - configMapRef: - name: "225" - optional: true - prefix: "224" - secretRef: - name: "226" - optional: true - image: "218" - imagePullPolicy: t莭琽§ć\ ïì - lifecycle: - postStart: - exec: - command: - - "258" - httpGet: - host: "261" - httpHeaders: - - name: "262" - value: "263" - path: "259" - port: "260" - scheme: Ƹ[Ęİ榌U髷裎$MVȟ@7 - tcpSocket: - host: "265" - port: "264" - preStop: - exec: - command: - - "266" - httpGet: - host: "268" - httpHeaders: - - name: "269" - value: "270" - path: "267" - port: -1675041613 - scheme: 揆ɘȌ脾嚏吐 - tcpSocket: - host: "271" - port: -194343002 - livenessProbe: - exec: - command: - - "243" - failureThreshold: 817152661 - httpGet: - host: "246" - httpHeaders: - - name: "247" - value: "248" - path: "244" - port: "245" - scheme: ȫ焗捏ĨFħ籘Àǒɿʒ刽 - initialDelaySeconds: 1591029717 - periodSeconds: 622473257 - successThreshold: -966649167 - tcpSocket: - host: "249" - port: 1096174794 - timeoutSeconds: 1255169591 - name: "217" - ports: - - containerPort: -1815391069 - hostIP: "223" - hostPort: -1470854631 - name: "222" - protocol: Ƹʋŀ樺ȃv - readinessProbe: - exec: - command: - - "250" - failureThreshold: 1214895765 - httpGet: - host: "253" - httpHeaders: - - name: "254" - value: "255" - path: "251" - port: "252" - scheme: ŽoǠŻʘY賃ɪ鐊瀑Ź9Ǖ - initialDelaySeconds: -394397948 - periodSeconds: 1505972335 - successThreshold: -26910286 - tcpSocket: - host: "257" - port: "256" - timeoutSeconds: 2040455355 - resources: - limits: - 剚敍0)鈼¬麄p呝TG: "305" - requests: - 瓶: "806" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - Ƙ枛牐ɺ皚|懥ƖN - drop: - - 擓ƖHVe熼'FD剂讼ɓȌʟni酛 - privileged: true - procMount: Ŧ癃8鸖ɱJȉ罴ņ螡źȰ? - readOnlyRootFilesystem: false - runAsGroup: -2879304435996142911 - runAsNonRoot: false - runAsUser: -2142888785755371163 - seLinuxOptions: - level: "276" - role: "274" - type: "275" - user: "273" - windowsOptions: - gmsaCredentialSpec: "278" - gmsaCredentialSpecName: "277" - stdin: true - terminationMessagePath: "272" - terminationMessagePolicy: Ȥ藠3. - volumeDevices: - - devicePath: "242" - name: "241" - volumeMounts: - - mountPath: "238" - mountPropagation: "" - name: "237" - readOnly: true - subPath: "239" - subPathExpr: "240" - workingDir: "221" - dnsConfig: - nameservers: - - "341" - options: - - name: "343" - value: "344" - searches: - - "342" - dnsPolicy: w(ğ儴Ůĺ}潷ʒ胵 - enableServiceLinks: true - hostAliases: - - hostnames: - - "339" - ip: "338" - hostNetwork: true - hostPID: true - hostname: "293" - imagePullSecrets: - - name: "292" - initContainers: - - args: - - "159" - command: - - "158" - env: - - name: "166" - value: "167" - valueFrom: - configMapKeyRef: - key: "173" - name: "172" - optional: true - fieldRef: - apiVersion: "168" - fieldPath: "169" - resourceFieldRef: - containerName: "170" - divisor: "375" - resource: "171" - secretKeyRef: - key: "175" - name: "174" - optional: false - envFrom: - - configMapRef: - name: "164" - optional: false - prefix: "163" - secretRef: - name: "165" - optional: false - image: "157" - imagePullPolicy: ɖȃ賲鐅臬dH巧壚tC十Oɢ - lifecycle: - postStart: - exec: - command: - - "197" - httpGet: - host: "199" - httpHeaders: - - name: "200" - value: "201" - path: "198" - port: -2007811220 - scheme: 鎷卩蝾H - tcpSocket: - host: "202" - port: -2035009296 - preStop: - exec: - command: - - "203" - httpGet: - host: "206" - httpHeaders: - - name: "207" - value: "208" - path: "204" - port: "205" - scheme: ńMǰ溟ɴ扵閝 - tcpSocket: - host: "209" - port: -1474440600 - livenessProbe: - exec: - command: - - "182" - failureThreshold: -1638339389 - httpGet: - host: "185" - httpHeaders: - - name: "186" - value: "187" - path: "183" - port: "184" - scheme: 痗ȡmƴy綸_Ú8參遼ūPH - initialDelaySeconds: 655980302 - periodSeconds: 446829537 - successThreshold: -1987044888 - tcpSocket: - host: "189" - port: "188" - timeoutSeconds: 741871873 - name: "156" - ports: - - containerPort: -1996616480 - hostIP: "162" - hostPort: 1473141590 - name: "161" - protocol: ł/擇ɦĽ胚O醔ɍ厶 - readinessProbe: - exec: - command: - - "190" - failureThreshold: 2063799569 - httpGet: - host: "192" - httpHeaders: - - name: "193" - value: "194" - path: "191" - port: 961508537 - scheme: 黖ȓ - initialDelaySeconds: -50623103 - periodSeconds: -1350331007 - successThreshold: -1145306833 - tcpSocket: - host: "196" - port: "195" - timeoutSeconds: 1795738696 - resources: - limits: - "": "596" - requests: - a坩O`涁İ而踪鄌eÞȦY籎顒: "45" - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - d鲡 - drop: - - 贅wE@Ȗs«öʮĀ<é - privileged: true - procMount: 豈ɃHŠơŴĿǹ_Áȉ彂Ŵ廷 - readOnlyRootFilesystem: false - runAsGroup: -5951050835676650382 - runAsNonRoot: true - runAsUser: -7286288718856494813 - seLinuxOptions: - level: "214" - role: "212" - type: "213" - user: "211" - windowsOptions: - gmsaCredentialSpec: "216" - gmsaCredentialSpecName: "215" - stdinOnce: true - terminationMessagePath: "210" - terminationMessagePolicy: 廡ɑ龫`劳&¼傭Ȟ1酃=6}ɡŇ - volumeDevices: - - devicePath: "181" - name: "180" - volumeMounts: - - mountPath: "177" - mountPropagation: 捘ɍi縱ù墴 - name: "176" - subPath: "178" - subPathExpr: "179" - workingDir: "160" - nodeName: "283" - nodeSelector: - "279": "280" - preemptionPolicy: ʜ_ȭwɵ糫武诰ð - priority: 178156526 - priorityClassName: "340" - readinessGates: - - conditionType: 糮R(_âŔ獎$ƆJije檗 - restartPolicy: ȶ网棊ʢ=wǕɳɷ9Ì - runtimeClassName: "345" - schedulerName: "335" - securityContext: - fsGroup: 7861919711004065015 - runAsGroup: -4105014793515441558 - runAsNonRoot: true - runAsUser: -7059779929916534575 - seLinuxOptions: - level: "287" - role: "285" - type: "286" - user: "284" - supplementalGroups: - - 830921445879518469 - sysctls: - - name: "290" - value: "291" - windowsOptions: - gmsaCredentialSpec: "289" - gmsaCredentialSpecName: "288" - serviceAccount: "282" - serviceAccountName: "281" - shareProcessNamespace: true - subdomain: "294" - terminationGracePeriodSeconds: -860974700141841896 - tolerations: - - effect: ɉ愂 - key: "336" - operator: '}缫,' - tolerationSeconds: 5005983565679986804 - value: "337" - volumes: - - awsElasticBlockStore: - fsType: "56" - partition: 200492355 - readOnly: true - volumeID: "55" - azureDisk: - cachingMode: 躢 - diskName: "119" - diskURI: "120" - fsType: "121" - kind: 黰eȪ嵛4$%Qɰ - readOnly: false - azureFile: - secretName: "105" - shareName: "106" - cephfs: - monitors: - - "90" - path: "91" - readOnly: true - secretFile: "93" - secretRef: - name: "94" - user: "92" - cinder: - fsType: "88" - readOnly: true - secretRef: - name: "89" - volumeID: "87" - configMap: - defaultMode: 1632959949 - items: - - key: "108" - mode: -1057154155 - path: "109" - name: "107" - optional: true - csi: - driver: "151" - fsType: "152" - nodePublishSecretRef: - name: "155" - readOnly: false - volumeAttributes: - "153": "154" - downwardAPI: - defaultMode: -395029362 - items: - - fieldRef: - apiVersion: "98" - fieldPath: "99" - mode: -1332301579 - path: "97" - resourceFieldRef: - containerName: "100" - divisor: "51" - resource: "101" - emptyDir: - medium: 繡楙¯ĦE勗E濞偘 - sizeLimit: "349" - fc: - fsType: "103" - lun: -2007808768 - targetWWNs: - - "102" - wwids: - - "104" - flexVolume: - driver: "82" - fsType: "83" - options: - "85": "86" - secretRef: - name: "84" - flocker: - datasetName: "95" - datasetUUID: "96" - gcePersistentDisk: - fsType: "54" - partition: 1648350164 - pdName: "53" - readOnly: true - gitRepo: - directory: "59" - repository: "57" - revision: "58" - glusterfs: - endpoints: "72" - path: "73" - readOnly: true - hostPath: - path: "52" - type: ȱ蓿彭聡A3fƻf - iscsi: - fsType: "68" - initiatorName: "71" - iqn: "66" - iscsiInterface: "67" - lun: -1746427184 - portals: - - "69" - secretRef: - name: "70" - targetPortal: "65" - name: "51" - nfs: - path: "64" - server: "63" - persistentVolumeClaim: - claimName: "74" - photonPersistentDisk: - fsType: "123" - pdID: "122" - portworxVolume: - fsType: "138" - readOnly: true - volumeID: "137" - projected: - defaultMode: 715087892 - sources: - - configMap: - items: - - key: "133" - mode: 2020789772 - path: "134" - name: "132" - optional: true - downwardAPI: - items: - - fieldRef: - apiVersion: "128" - fieldPath: "129" - mode: -687313111 - path: "127" - resourceFieldRef: - containerName: "130" - divisor: "934" - resource: "131" - secret: - items: - - key: "125" - mode: 273818613 - path: "126" - name: "124" - optional: false - serviceAccountToken: - audience: "135" - expirationSeconds: 3485267088372060587 - path: "136" - quobyte: - group: "117" - registry: "114" - tenant: "118" - user: "116" - volume: "115" - rbd: - fsType: "77" - image: "76" - keyring: "80" - monitors: - - "75" - pool: "78" - secretRef: - name: "81" - user: "79" - scaleIO: - fsType: "146" - gateway: "139" - protectionDomain: "142" - secretRef: - name: "141" - storageMode: "144" - storagePool: "143" - system: "140" - volumeName: "145" - secret: - defaultMode: 395412881 - items: - - key: "61" - mode: 1360806276 - path: "62" - optional: true - secretName: "60" - storageos: - fsType: "149" - secretRef: - name: "150" - volumeName: "147" - volumeNamespace: "148" - vsphereVolume: - fsType: "111" - storagePolicyID: "113" - storagePolicyName: "112" - volumePath: "110" -status: - availableReplicas: 1652763817 - conditions: - - lastTransitionTime: "2275-03-02T02:41:54Z" - message: "347" - reason: "346" - status: 佼!­ʅ墘ȕûy< - type: ŗÑ"虆k遚釾 - fullyLabeledReplicas: 831250275 - observedGeneration: 8116344374862020441 - readyReplicas: -1641645377 - replicas: 2001693468 diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.json deleted file mode 100644 index 46a4b767b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "kind": "ReplicationControllerDummy", - "apiVersion": "extensions/v1beta1" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.pb deleted file mode 100644 index a6df03398ae0652802a142023612e0aa82ad36f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmd0{C}!X?;1Wu$C`rvL&dkp%)-N+mN-aq=6p{)`Ey&4CPAmb6I_Kw=6y@jSq!zi9 O=H^xkF-S2eF#rHrkQ0Oe diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.yaml deleted file mode 100644 index 9089d17ee..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.ReplicationControllerDummy.yaml +++ /dev/null @@ -1,2 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: ReplicationControllerDummy diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.json deleted file mode 100644 index 7fc21892b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "kind": "Scale", - "apiVersion": "extensions/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "replicas": -2052872833 - }, - "status": { - "replicas": -125651156, - "selector": { - "24": "25" - }, - "targetSelector": "26" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.after_roundtrip.pb deleted file mode 100644 index f01039856482ddb2f53fc4316575aecf97526dd0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 283 zcmV+$0p$K`ICB6B8wwI-cywiMb7^mGb1!x=Vr6t;F%kt+V_|G%67vBH$N>rgG75&|(W zY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG} zkc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`__2>;5Ct@!`{|Nj9R h83?TIip2l_|Ns915(o+cGBgqbGBp|kGBz3jA^>|1X>5?6(Mk0o0mS!eKrUvFF z7RDB4re+34#+DYh-!)xr?4HwD;KUHHwqt8^>-=+bb~8q?aWR?;FXpdqw{n_pU&BGczdG$$tktZCN^q3+d2J6TP)Btb1eZbKA>_7Ar3A!AZ;nc tAjHk_|5V@FAOC@XQA(0y&AYB6AohPopc*D46CoxeQz<4RGbsio1_0SWYHR=i diff --git a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.yaml b/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.yaml deleted file mode 100644 index 204ccf244..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/extensions.v1beta1.Scale.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Scale -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - replicas: -2052872833 -status: - replicas: -125651156 - selector: - "24": "25" - targetSelector: "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json deleted file mode 100644 index e9b98ea86..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "kind": "ImageReview", - "apiVersion": "imagepolicy.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "containers": [ - { - "image": "24" - } - ], - "annotations": { - "25": "26" - }, - "namespace": "27" - }, - "status": { - "allowed": false, - "reason": "28", - "auditAnnotations": { - "29": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.pb deleted file mode 100644 index 7fbd0b3720474ecd808d0ce1ee3ee2353040a7db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 298 zcmd0{C}!Z&;*!qHO-xTM$j`}4uGGu6DAvo&*Do_n%qhr7G!)|Y1W5*^mSv`v3w>tf zI>E@rXe7jFEX8P|#AvFebfop=;_f4>3%#Dr>q@kEv9LGc$cmFQ^j^$ZZ+4_R?CFvn zsYW7(W|n3qMy3YlCKkpPW~OEaM#h#Fx8F5gZS0=YSm4AEu(o4sbL;$bb9OUEv2ih) z3o%+Gv2!t63NaZPWGQel85&7385%3`xl}#fJ>^7ub@9=zWBmnMOooOA3>J(^ zOopaijJiOjWdq|&n7l%Jli?_NLwt>G;<>c rArUSXE+!)rAr2sED#T=DCdFiAE+xRh0AyQ8fkc5WFgB24P+|Z80UKc= diff --git a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml deleted file mode 100644 index 27763f421..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: imagepolicy.k8s.io/v1alpha1 -kind: ImageReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - annotations: - "25": "26" - containers: - - image: "24" - namespace: "27" -status: - allowed: false - auditAnnotations: - "29": "30" - reason: "28" diff --git a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json b/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json deleted file mode 100644 index 4de28135b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "kind": "ImageReview", - "apiVersion": "imagepolicy.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "containers": [ - { - "image": "24" - } - ], - "annotations": { - "25": "26" - }, - "namespace": "27" - }, - "status": { - "allowed": false, - "reason": "28", - "auditAnnotations": { - "29": "30" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb b/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.pb deleted file mode 100644 index ab012bd02c388d6e91c7a4399f4b629f224e689e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 314 zcmd0{C}!Z&;*!qHO-xTM$j`}4uGGu6DAvo&*Do_n%qhr7G!)|Y1W5*^mSv`v3pF!w z-C*QmG!kMomSQwfVl>rKI@0=barcqcg3X?%=Fxe&p-<;*IlMhl|Kya~XA>JWp6#4|q%9U`nz@z$ z7avf$g%Af98<4gXVh|GHV&P&kG69M(8JP+(8JS5j8JSB7a4-Pb7E&Nlpo@$Rq!^SK E0Jm*o8UO$Q diff --git a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml b/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml deleted file mode 100644 index e41290f48..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/imagepolicy.k8s.io.v1alpha1.ImageReview.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: imagepolicy.k8s.io/v1alpha1 -kind: ImageReview -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - annotations: - "25": "26" - containers: - - image: "24" - namespace: "27" -status: - allowed: false - auditAnnotations: - "29": "30" - reason: "28" diff --git a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json deleted file mode 100644 index a32cc3763..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "kind": "NetworkPolicy", - "apiVersion": "networking.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "podSelector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "ingress": [ - { - "ports": [ - { - "protocol": "ÐƣKʘńw:5塋訩塶\"=y钡n" - } - ], - "from": [ - { - "podSelector": { - "matchLabels": { - "y-y-o0-5q-2-zdv--6--0-a629b-jd-8c45-0-8--6n--w0--w---196g8d--i1.0t9/2fNc5-_.-RX-82_g50_u__..cu87__-7p_w.e6._.pj5tk": "h-JM" - }, - "matchExpressions": [ - { - "key": "44-j8553sog-4v.w5-3z-4831i48x-e4203f-vx010-90q-6-i2d020hj--a-8g--z-nt-b6/7", - "operator": "In", - "values": [ - "17_.8CnT" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "rSf5_Or.i1_7z.WH-..T": "2-N_Y.t--_0..--_6yV07-_.___gO-d.iUaC_wYSJfB._.zS-._0" - }, - "matchExpressions": [ - { - "key": "83.SD..P.---5.-3", - "operator": "NotIn", - "values": [ - "hyz-0-_p4mz--.I_f6kjsz-7lwY-Y93-x6bigm_-._q" - ] - } - ] - }, - "ipBlock": { - "cidr": "42", - "except": [ - "43" - ] - } - } - ] - } - ], - "egress": [ - { - "ports": [ - { - "protocol": "ƯĖ漘Z剚敍0)鈼¬麄p呝T" - } - ], - "to": [ - { - "podSelector": { - "matchLabels": { - "9-295at-o7qff7-x--r7v66bm71u-n4f9wk-3--652x01--p--n4-4-t--2g6/hm": "2.9__Y-H-Mqpt._.-_..05c.---qy-_5_S.d5a3J.--.6g_4....1..jtFe8b_P" - }, - "matchExpressions": [ - { - "key": "Guo3Pa__n-Dd-.9.-_Z.0_1._hg._o_p665O_4Gj._BXt.O-7___-Y_um-8", - "operator": "NotIn", - "values": [ - "q.0-_1-F.h-__k_K5._3" - ] - } - ] - }, - "namespaceSelector": { - "matchLabels": { - "G_--V-42E_--o90G_A4..-L..-__0N_N.O30-u": "O-2hT.-z-._7-5lL..-_--.VEa-_gn.8-c.C3_F._oXF" - }, - "matchExpressions": [ - { - "key": "5-28x-8-p-lvvm-2qz7-3042017h/vN5.25aWx.2M", - "operator": "NotIn", - "values": [ - "D.GgT7_7P" - ] - } - ] - }, - "ipBlock": { - "cidr": "56", - "except": [ - "57" - ] - } - } - ] - } - ], - "policyTypes": [ - "h4ɊHȖ|ʐ" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1.NetworkPolicy.after_roundtrip.pb deleted file mode 100644 index b1ddeb28d333659aa287b804c2d38a08b7c1370b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1282 zcmXw1+iz4w81GpW%Oo0e(x=926N#YTw{zyqoQnpPwsfJ;ZDC7kn~=}FbkAP8*X~_? z;HJ=q2nL}Tgf#eoQNoLNc#=XW55^Z06W>g>XsJ@!-p0z=_g8PME#t=WEoXIUs{7SXbE403d`Ak!UFq4LqZ}@5-}~#I<9{4mx^k>M z*fVkS^!F!DUHk3IZDV#TGhEZ~63;NhH$xWBy~0A4=nq-;z;nZ$?(GW?KKWqb-s1gF z%R57s#d|!X8nR?3WT{01^i{`vb@SX}_rl`l^~?9J!r|_f@9zE>53gPLX#M=L*Vli( zwEFQ;-OUv}=J8&3&0y~^=@;F0%9X0Z;qee4q-BGguY(6pRZ1>XN}mK?Qb67hM_U*% zxAHM;V_+U-+Z_)naj=Pyia1F?2Y^}#z?+5HyhZxZULY7WL;H&T;mK+;1py`u>N@_f9t7Qr(rMjT>KgSAH1S z)!zJUrD*;eVt*Q}!>Vm)Ly3c`fPhY_0icm^h&#ehKrRJdQYyXobiD}B)MT5Ql;t~t zmjcLI$ZLLBq@zg%8qc9=@B{^lQ=JGgS@&EbaLd%hIR^>LIaSM>Pi0_q%$#MTQbNvC z%3df1ARE|JV0S?KZDpm`f;lO;orXq>TO52|(a5qQ#Rbpg0OH^U039gSAmN1F$2#>| zE}=J6oHQ>Q>;UVl#?p$$tC+RO?ckBUfH-MN0a2R4n%0}67Mz^+6n8avA_~SKh1tXL zA!^RVM$>~DaVG{y+#F%gdp5>~5hwH;Pzbj9bhK2{?!1v{ceFxOmW2)g?xVDm&n?LrHn>NXrFQE;s~6lL0P=E2q;DWTN@ zD1$D71kF+ePB>FA-xcT+&A?t5tCVY+m}ZPzB_FY=w1E`GFs0)5s4k!rkVHK!#9VD; z&P&jQw(IRky<|_siHb0s0`zr@S>$9PWdfuUl^sWolZ@n$2B&K{4%&Ny8LAh+dm>g} z1+`Qbj9^BmIZykQ4!U{CU{h>+LZ9SVd_lczqNO~~h7x@RxlYxk}` za8qbQ1cOivLK=L)DB;CBJV_yx2j5Igd@&~5v@iY%#sR}5lgat!JKy|nd2haly~g^A zv$bZan$H#k%zN{gErlDF`F!;M>Ue1`n{1nZZDD^H%n+tw_ZxD+P&)@!PH)^;T=}Ll zvUY7D?yWDMdw=ET>JqLm-F8+MC%a$$G%NZn$9JSq+?Af~Im+R}_Psy~ zTHYD5EZ*Z8)sQ7SAxkY7yL78#zPfRKp?h&*UZ~kjE7e*ezbPs`0Hyw zUtan6n4aeD+{U)*cF*i(oAv3NJ?4pCcHLm_FzFZFcFL8i!r{phAf#o3oU4NePE|@S zQ%c_iUQ$5b4@X-VF*oy3Y-3;^W7{1MDRHQYkcv1-KnH+Y2*8_#nY=~%(w-+6G(-D~ z{o#pfG6e#GXfMSYM8Y{RMTZFiqqPhYK#b(jZURO6{X@cB-o##FFWfu-;KqSROZQJT z-%{P>#r2zCcb9({*wxf!zV^zm=6<3udL@b{ZNjZgKE=MI+0K6c;>`1Binc z0Cb>OgM<@ypXk(UxrE-H;)Hq0UiDEZU>L<1H=ha3W(A)*0kOnwczBm zC%LP^6Hzb*Da;;;@1f>&Y$QFX5qDyM#LZ#0&9gB!ggCDM0fk_j&qhl%?amvSc1J5j zWm)I|;C@Ow`P_U5+_~m7O#3#poJ2M#ke*ZN?`0t=%#gJEZ*5{Pvlk!SUb(b(cWI`3 z_KUU8&+#1_XYT&`?Zz*s%H0cJPMBvmvA+#=(qQlTAbb_CLCLM8(=N0Cs&2z^5(U?) zLs6#vW*%(qkrG-hfHLSJNYE@r;Dj>;^Id^H(KPIX(Mq|diD|~jRq`>LN*hQ~3{xs@ zkLUtA0ZG)$Ld?~MXT1cCYrEc#)JyhwoTvyxDL`M3m_be!QYJtuQQ2|S7|BQuX>h8B zW1zh!n5KFGyr*LIRZvT1!7yfYn)7r(>7bjJ4K~TPM|6-UL5jWlEcrY_yEOcYNkrgLr=)IV+-t0(s*wZCDQjJ6m z%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV==ImySV&h^o7h<$X zV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK7%Uizm<&y-m<&z3 z7K)#s}laaZUDv)I%B+n(wB@JX*3W;(t85;=kb1(>8S=~14 bKL{{NF-Y-nad81P85;^Q85>D4C@}y4KV)c~ diff --git a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml deleted file mode 100644 index 411e67894..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.after_roundtrip.yaml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: networking.k8s.io/v1beta1 -kind: Ingress -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - backend: - serviceName: "24" - servicePort: "25" - rules: - - host: "28" - http: - paths: - - backend: - serviceName: "30" - servicePort: -213805612 - path: "29" - tls: - - hosts: - - "26" - secretName: "27" -status: - loadBalancer: - ingress: - - hostname: "32" - ip: "31" diff --git a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.json b/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.json deleted file mode 100644 index 56177657c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "kind": "Ingress", - "apiVersion": "networking.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "backend": { - "serviceName": "24", - "servicePort": "25" - }, - "tls": [ - { - "hosts": [ - "26" - ], - "secretName": "27" - } - ], - "rules": [ - { - "host": "28", - "http": { - "paths": [ - { - "path": "29", - "backend": { - "serviceName": "30", - "servicePort": -213805612 - } - } - ] - } - } - ] - }, - "status": { - "loadBalancer": { - "ingress": [ - { - "ip": "31", - "hostname": "32" - } - ] - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.pb b/pseudo/k8s/api/testdata/v1.15.0/networking.k8s.io.v1beta1.Ingress.pb deleted file mode 100644 index 87adf8d10983b9639710063a7fcd2ceb951103e8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 349 zcmd0{C}!YN;gZZtEh*10%FfJ7*UPpj*2~P-FEdO^ElD&KV)x8TFG?*g7Fxr^b%T+M z(MX8VSc=g^iP2O`=}7C##ob3%7kWLL*Oh4TVqtH>krgLr=)IV+-t0(s*wZCDQjJ6m z%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV==ImySV&h^o7h<$X zV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK7%Uizm<&y-m<&z3 z7;S+{&4d(RPUw0%rR(M5nMdd8hCZFMTufF=1?QXkjrD3{rJ&bZKp6Lu_Gla}v=3 z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc1PTH& IG#UUR0J+p#AOHXW diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml deleted file mode 100644 index 1cc8297a9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.after_roundtrip.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: node.k8s.io/v1alpha1 -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - runtimeHandler: "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.json b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.json deleted file mode 100644 index b8cebe2e2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "runtimeHandler": "24" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.pb b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.pb deleted file mode 100644 index dbfdf1022c96680ec770f7666a3e3b06b03e4e5e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 274 zcmV+t0qy>4ICB6BBnlL6Z)9aIYdCW*X>TufF=1?QXkjrD3{rJ&bZKp6Lu_Gla}wbJ z3fKV(0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM> YI1&g71_}Z(IT8R81PTH&G#UUR0GNMVmjD0& diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.yaml b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.yaml deleted file mode 100644 index c2fefa7f9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1alpha1.RuntimeClass.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: node.k8s.io/v1alpha1 -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - runtimeHandler: "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json deleted file mode 100644 index a9f39f3b4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "handler": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.pb deleted file mode 100644 index 18ce5ccb02e6d3093c6b91942e01c83c5fdb408d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 255 zcmVTufF=AzOVKEX6Qgv>0X>DagY+-YA63+n& z$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zEeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_+GBg?h FA^@4lTBHB~ diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml deleted file mode 100644 index deee3dacf..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.after_roundtrip.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: node.k8s.io/v1beta1 -handler: "24" -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.json b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.json deleted file mode 100644 index 452bcf2db..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "kind": "RuntimeClass", - "apiVersion": "node.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "handler": "24" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.pb b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.pb deleted file mode 100644 index 860afed90adf107896cf76966928ed4d9deb24d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 271 zcmV+q0r387ICB6BBMK94Z)9aIYdCW*X>TufF=AzOVKEX6Qgv>0X>DagY+-YA65jy| z*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zJqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W V5(o+g3IZ`X5&#kcGBg?hA^>isTpIuY diff --git a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.yaml b/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.yaml deleted file mode 100644 index f67761158..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/node.k8s.io.v1beta1.RuntimeClass.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: node.k8s.io/v1beta1 -handler: "24" -kind: RuntimeClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.json deleted file mode 100644 index ebae003f2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "kind": "Eviction", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "deleteOptions": { - "gracePeriodSeconds": -8496244716696586452, - "preconditions": { - "uid": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "resourceVersion": "24" - }, - "orphanDependents": false, - "propagationPolicy": "牗洝尿彀亞螩B峅x4%a鯿rŎ", - "dryRun": [ - "25" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.pb deleted file mode 100644 index 392909b5f53fb49a0259b10c893863b64f2df2eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 334 zcmV-U0kQsTICB6B8VU|@Z)|B}c`tS`Vr6t;F%k$xc4=dDX>V>4rveJd0SW;!5&<(B z0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvlGBq$a zG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZ zAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r-01{dVtnP}$pU%;XiUATO z3LiEv%9U2dnkdA-$cpEbp6IZU>7t9rg;U3&#*b4ZD-r@SG#CIPAm@pf=CqyVu)pQK gfaJQK=$@%U<+Fu&G$mo_ufKA|jw%8&H5vdS0D_c;1^@s6 diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.yaml deleted file mode 100644 index c0c23e535..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: policy/v1beta1 -deleteOptions: - dryRun: - - "25" - gracePeriodSeconds: -8496244716696586452 - orphanDependents: false - preconditions: - resourceVersion: "24" - uid: 6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+ - propagationPolicy: 牗洝尿彀亞螩B峅x4%a鯿rŎ -kind: Eviction -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.json b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.json deleted file mode 100644 index f91e9d94d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "kind": "Eviction", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "deleteOptions": { - "gracePeriodSeconds": -8496244716696586452, - "preconditions": { - "uid": "6/ʕVŚ(ĿȊ甞谐颋DžSǡƏS$+", - "resourceVersion": "24" - }, - "orphanDependents": false, - "propagationPolicy": "牗洝尿彀亞螩B峅x4%a鯿rŎ", - "dryRun": [ - "25" - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.pb b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.Eviction.pb deleted file mode 100644 index c04f98b72421647ce4fe17919ce9a00c01ac0871..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 350 zcmV-k0iphDICB6B8VU|@Z)|B}c`tS`Vr6t;F%k$xc4=dDX>V>4w*m^-0SW;!5&<(B z0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSsR^_C)Wik{oHaRvlGBq$a zG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T3IR6~0XSj@3IRD10x>XZ zAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r#5DE?o0x>ue2nq%Y0x>xf z01{dVtnP}$pU%;XiUATO3LiEv%9U2dnkdA-$cpEbp6IZU>7t9rg;U3&#*b4ZD-r@S wG#CIPAm@pf=CqyVu)pQKfaJQK=$@%U<+Fu&G$mo_ufKA|jw%8&H5vdS0HryHeED*I&&f=#)GsqkN-aq=6cP@|PjSgCE-Ec3$;{7lDosgGEfHGJ%yoj1 zi_u7k(O8PnM2XQ4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRkt3_^<- zh2}GI*>Raz=9yQfn46du8t8(7k*<-6p|P$>PN}Yiu33?ZiGfLqDNrWeBH2hc+fv`J zLeE`@&A?Z$QZHR7mP^gdLN7ikuv||!#oa7fSI^{N diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml deleted file mode 100644 index 8f4b018ea..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.after_roundtrip.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: policy/v1beta1 -kind: PodDisruptionBudget -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - selector: - matchExpressions: - - key: 68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B - operator: In - values: - - Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2 - matchLabels: - 9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G: 0M.y.g -status: - currentHealthy: -1628457490 - desiredHealthy: 1184528004 - disruptedPods: - "30": "2331-08-21T12:12:02Z" - disruptionsAllowed: 925313537 - expectedPods: -144625578 - observedGeneration: -4178463431261421654 diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.json b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.json deleted file mode 100644 index e5f9358b2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "kind": "PodDisruptionBudget", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - } - }, - "status": { - "observedGeneration": -4178463431261421654, - "disruptedPods": { - "30": "2331-08-21T12:12:02Z" - }, - "disruptionsAllowed": 925313537, - "currentHealthy": -1628457490, - "desiredHealthy": 1184528004, - "expectedPods": -144625578 - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.pb b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodDisruptionBudget.pb deleted file mode 100644 index 4a9041dba8f60edac5e7d2f911cf20897846ceb8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmd0{C}!YN<>D*I&&f=#)GsqkN-aq=6cP@|PjSgCE-Ec3$;{7lDosgGEfLz!%yom2 zi_u7k(O8PnM2XQ4rX?v*qyiME#RfYM)JP)OfaY`jNI+plRk>0$hAR zwvQiwrl5u?z2MlL%p6U#jF$`o@G(?SDXFfh_JGBGsPHOVQ}wa_&yGBGhQ zNihY=q+28#>1JE%`&H<<3$Ypa>Q(Bc3&nD&nOW$?Ck2-4>87}wCF|;$>FUN;=;`Vj zl;=ie8^!}Ajf>-TorIV?^Q81cijq@wjr4Tm<6Yx}%i`mW%)BGwgW~mc_54aQ^x}1O zgX2wH9OHFO;fIcub5aQsNwE6ZyEdd6J#w&AnGAq1$ fz3=0)+i*ICB6BBMJ_1Z)|B}c`tS`Vr6t;F%l6_Z)8(tV|8+Aba_y3Y-wY863YY% z$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zEeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`|&0tf*T z2FJL@qBbuY5mv>TD8#?WiszJ`=&+FKqKhI0Q^%pkk187^E5f}<=ZTl*w4LR!zvaDv z(gcBuT}F$(9lo2-vW;(%|vonOzX1 z*{I9^y#2S90b()=7(c_f#FNIl>8*>zj^%`h<%hd7#)iYJQ4$si=7zZZ?~k{-fB_KT z?}3-ghKjI;0cs!$2I#1l+qn*XRC@m5c2$_tV diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.yaml deleted file mode 100644 index a0f7277be..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.after_roundtrip.yaml +++ /dev/null @@ -1,91 +0,0 @@ -apiVersion: policy/v1beta1 -kind: PodSecurityPolicy -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - allowPrivilegeEscalation: false - allowedCSIDrivers: - - name: "30" - allowedCapabilities: - - SǡƏ - allowedFlexVolumes: - - driver: "29" - allowedHostPaths: - - pathPrefix: "28" - allowedProcMountTypes: - - ¬轚9Ȏ瀮昃 - allowedUnsafeSysctls: - - "31" - defaultAddCapabilities: - - ǸƢ6/ - defaultAllowPrivilegeEscalation: false - forbiddenSysctls: - - "32" - fsGroup: - ranges: - - max: -2225037131652530471 - min: -7003704988542234731 - rule: 託仭 - hostIPC: true - hostNetwork: true - hostPID: true - hostPorts: - - max: -1487653240 - min: -827642756 - privileged: true - requiredDropCapabilities: - - VŚ(ĿȊ甞谐颋 - runAsGroup: - ranges: - - max: 7506785378065797295 - min: 4788190398976706073 - rule: ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(- - runAsUser: - ranges: - - max: -7606590868934742876 - min: 6715860513467504728 - rule: :狞夌碕ʂɭîcP$Iņɖ - runtimeClass: - allowedRuntimeClassNames: - - "33" - defaultRuntimeClassName: "34" - seLinux: - rule: "" - seLinuxOptions: - level: "27" - role: "25" - type: "26" - user: "24" - supplementalGroups: - ranges: - - max: -8763960668058519584 - min: -9190478501544852634 - rule: ?øēƺ魋Ď儇击3ƆìQ - volumes: - - $+½H牗洝尿彀亞螩B峅 diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.json b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.json deleted file mode 100644 index 8ffa3d865..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "kind": "PodSecurityPolicy", - "apiVersion": "policy/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "privileged": true, - "defaultAddCapabilities": [ - "ǸƢ6/" - ], - "requiredDropCapabilities": [ - "VŚ(ĿȊ甞谐颋" - ], - "allowedCapabilities": [ - "SǡƏ" - ], - "volumes": [ - "$+½H牗洝尿彀亞螩B峅" - ], - "hostNetwork": true, - "hostPorts": [ - { - "min": -827642756, - "max": -1487653240 - } - ], - "hostPID": true, - "hostIPC": true, - "seLinux": { - "rule": "", - "seLinuxOptions": { - "user": "24", - "role": "25", - "type": "26", - "level": "27" - } - }, - "runAsUser": { - "rule": ":狞夌碕ʂɭîcP$Iņɖ", - "ranges": [ - { - "min": 6715860513467504728, - "max": -7606590868934742876 - } - ] - }, - "runAsGroup": { - "rule": "ē ƕP喂ƈ斎AO6ĴC浔Ű壝ž(-", - "ranges": [ - { - "min": 4788190398976706073, - "max": 7506785378065797295 - } - ] - }, - "supplementalGroups": { - "rule": "?øēƺ魋Ď儇击3ƆìQ", - "ranges": [ - { - "min": -9190478501544852634, - "max": -8763960668058519584 - } - ] - }, - "fsGroup": { - "rule": "託仭", - "ranges": [ - { - "min": -7003704988542234731, - "max": -2225037131652530471 - } - ] - }, - "defaultAllowPrivilegeEscalation": false, - "allowPrivilegeEscalation": false, - "allowedHostPaths": [ - { - "pathPrefix": "28" - } - ], - "allowedFlexVolumes": [ - { - "driver": "29" - } - ], - "allowedCSIDrivers": [ - { - "name": "30" - } - ], - "allowedUnsafeSysctls": [ - "31" - ], - "forbiddenSysctls": [ - "32" - ], - "allowedProcMountTypes": [ - "¬轚9Ȏ瀮昃" - ], - "runtimeClass": { - "allowedRuntimeClassNames": [ - "33" - ], - "defaultRuntimeClassName": "34" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.pb b/pseudo/k8s/api/testdata/v1.15.0/policy.v1beta1.PodSecurityPolicy.pb deleted file mode 100644 index 403709b110e2488853cfe6cde2eca66d2c102598..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 651 zcmW-dQAiVU9LMi}*gEcEoPSJYz1Z?W7Uu45yWNDStOx6*mE?mUq$XqqF11J_*fgiz z%vsJ&MNgbQSUDXvb8ed8?#?YCA`lcQ6ujH^U{c^qD0caK_mulQ7%XaJRg!_Hko{m1EvS=d&h}lRS0YS)HaKOz_lvQ zLJZfaYJ~_qL@@w0D-kKc6zj4p#GyiADZ!<@d^*&d3Aptq%2&oDkKuH|x#h*O)Jwk- z9+5*!@}grW%BT6arSiuPBPhwm4%Vmk502CWMAz=O=-*>|36z0bIXD6d9HmSUrOY~% zV)Q6wsU-2dl9Zd5C%RLC{x5CGV0^mPR&Y&pC4KM|wjTQQee3u3U==a3F}ZrQa5(1! zH58tAF&+{6q-ZAS7JB3topNW4mR#|vn=ltsT#TtFRClb-bN z#DXf(Kf3TIvb(SFfY>;k`MJ_7dbWWbd5Smy!U1&0LNR2ad-(u<1+%|Rscea+1NnmslOCYnfEn_3EGOp}Od(rl7V(i-s) zr78)cLcj{4BK05?@uH~o=vLc{H&31unu~u!_xijKFHc$c3cW(lH&$|a%(a^Ly+)~% zYnHq!mW7WcZ@SI2Ggm7uzgcX|d6lBJdx9PiO1MT0otP0~MI*uHWTzkO)^CirdpU9R z{>9zk$z`cxM2pHgG;J(~z*V zlefHPvZ}kYCQk!Y8PqH^q?D$E(sXOdxb$q6yqz@xW+X1&lql2gyz3|MPAe?Lgsw!C EV~OsTDF6Tf diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml deleted file mode 100644 index c514d0372..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.after_roundtrip.yaml +++ /dev/null @@ -1,50 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: 1d3-7-fP81.-.9Vdx.TB_M-H5 - operator: NotIn - values: - - Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H - matchLabels: - An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q: 7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.json deleted file mode 100644 index 2f02c3ed9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.ClusterRole.pb deleted file mode 100644 index 13669a15a56b58fc25fc420f714943f8be510dbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 499 zcmWNLO=}ZT7=?33ta61Smu?(fXci)o_igTc-dVV46ihUcv^KRA$~8?Q#-y1flcY7` zB1%;fM1_DALPhFA5OJfZWa(7x#+@LzPG~m%24{8PIS+?Z5?+X&qbKWY*&Jq@jazQL z*v>YJZUsxi!=gLe;_TRka?@)R>I-hUz=ntDA3}-7h^`VNOw35w-+`_pPf;XE1=q^@wI zt#GqT&IhW+PEVe7NB!<(_vPLWWJZIJ-#%w&_xtz8&pT(wUtjnSSA#V>a-2>Fx?o4? zRFDn}u^Fmp22(UsRWvKCXm&)=g!+R}pU@n2<|+Wtl3;=q$>lV-;2`ocNHgH(hSN$) zz!cs=339;{GM>yJ3Y7Egj1BoqRu0etkedh)-B@2KaT%1l7uc~Hu1lz~ReFNwb+F-P zT5tq(mhzjp7?UZ8o9ysaw~?r*&b*Ml{>j4VL0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1& zm@ep;uQtSsR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQ zg`duxy8&7T3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^Z zF)#o)0dfK{G7$v&o-I}7oV3HYVK2#)eddvYDCW7B w#D-lO0x>r-01^-i0x~ob0x~rk0x~ut0x~xm3ed>&wO6M^+blJ)75+Xz^lUZ^DrkCuiur zn6cjMNO#!NB|B1$L=4R=%}k6;4a`j}j4jMe%?yl;EiG=pYr5LlJ*Tn2i6LNZ$JXZ7 z`RC^BW{hIvVl)?Gv`Av-Vzd-uGBn6i;9@c~l43G6R^oH1db)eciT3K^qg}`P3$&OF z4GkD97>k$;O{$m-O}iLvflAGU6kks0dOD@+<>Hw~=jnz%owMce_C)=YQ)-`0Y}9zR zbNZ3CSfFX4ICB6BBnljIVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp5!1X6EoWfI{5 z3djKp0WuN+Ga3OjA^|ljBE*I1ql?6=aZ2W%ieWhDp^ad~sL7Zv=$NlI#EVwtq_|}= z6frhAHZ(FdFgG+fGdMOiHZU?XIXK(yg4KbGoPlsc08p)nwS$G9&YZgeS_TRMHxdCj zVh0KVIT8XfFlrzQ0x>cg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!=Vc6bb?| YG!gcg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z#05}110x>jt0x>m; z0X+%=F*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL-T^a&0H!2Vc4hjM> oI1&g71_}Z(IT8R86bb?|G!grgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143 zF*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8Uisl pG5`_~3IZ}T5&|+c8UivlA_6iu8Vm{oGB^?fGC3LoGcXzeA^?_>VP^mU diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml deleted file mode 100644 index 12f27d0b0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.json deleted file mode 100644 index 162720f28..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiGroup": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.pb deleted file mode 100644 index 6723a1c7865bfa31e56022de666086c67ae88da7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmd0{C}!Z&=8`E&N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEbS44$99-b;`_3$;?X^ z`pw97gOQ8TNQlu`iqS-g(Ns(6NbAeR-A7gzdOe%hm1yx|VQ<2b6(?uty_m7y>_~Um z(}HH& z<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1`U|v}3=It!EEtQJ z3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+O>ES7wsZQCwpgHP z=2`+=d_d(ELL6LdK-yA>K}dj$$;d>A$;ecS$;eEJ$;e!a2Pk3z6tR?IGB%K6P+|Z8 D%%fu7 diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml deleted file mode 100644 index b5add8512..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1.RoleBinding.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json deleted file mode 100644 index 4d503ca19..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.pb deleted file mode 100644 index 2a7f395825e5c294ba931a93094edd6692dba77b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 489 zcmWNL&ubGw7>0LNR2ad-(u+Ci9z+7)*Uap%*<+(%qKTxnsijcHZBl7WnoY7vS|c8! zR3$-F2v{Lhq#lGKUKEuc-D-RB=Bej|=HlPrUZ3~jbG0$&S5~#XQ}mEf!Zl*Vh^Z4Ru7_Kb-F~=NzcJqF zdE(^#i@V{+qisCd{%nW+h0%xat9**tu5EHF;h4e@wq+-{;fmvbkN@>2mbua7CMyB)`r{8NWd&UKnZfr5;B#^ zBMOwW+GPid*X;tJ4InoWAhEH&RAw?7jUcjNWi~s-t diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml deleted file mode 100644 index 39ccf543a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.after_roundtrip.yaml +++ /dev/null @@ -1,50 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: 1d3-7-fP81.-.9Vdx.TB_M-H5 - operator: NotIn - values: - - Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H - matchLabels: - An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q: 7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json deleted file mode 100644 index 7e83822b2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.ClusterRole.pb deleted file mode 100644 index 4f0ff51a0eec5e2218ad1845f0f1435529444f3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 505 zcmWNL&ubGw9L0B5tTIB8p%-(~J%|Lp)6D*yIe2IkOf-?SHnkMWxJ@FBNwY~dNo&MI zl&U0%3IQvGiqwN3;zd!((XHA`Z-U@Cp}F`sxTgo7_u=tM+*dHeT7AvUQMcJx_v*#A z+bDV!TH-z}db2I&maFS7Bd0Evn|`BEU+~HWGCYR=AdGZ^j0iF{WJR@Ld$QLH-q)^< zce^e>dh_&F@a|xT9_@UzgWl5U?bm`n!)#%jx)pOwZgAVOW4a;u-+vE&cY1?PHLhen zJo)@^`}N^qh*qXBatPvUComF3WwASFvC8y_$_#D#a(guF|9X7S-|zl-R*kBR#T1U} zDl^+Ev%2VFsM_S*+fh|_bXDh(p9lvC=dhTo060K&8E?8V9QdvqlmGk7h1Nkd<4yX+vwcg0x>fp4n%t8yOhX>dvnE# z#*c6+0x>Z#05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KO zk%1`YxtGL-T^a&0H!=Vc5DEe^G!g zkrgLr=)IV+-t0(s*wZCDQjJ6m%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HT zU~R|N=GOV==ImySV&h^o7h<$XV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na z$NCGjm<$aK7%Uizm<&y-m<&z37;S+{&4d(RPUw0%rR(M5nMdd8hCZFMi=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r- e01^}m0x~oj0x~rs0x~u#0x~x;0x~!n03rZEJYV+! diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml deleted file mode 100644 index a97ed522f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.json deleted file mode 100644 index d0d79f1e4..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.pb deleted file mode 100644 index 81301ec3ff2afc699797ed3ff3d5aefa03ea0449..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 296 zcmV+@0oVR(ICB6BDheWUVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6uY;b5{F%kq) zZ){}}@c|0h0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r# u5DE?o0x>ue2nq%Y0x>xf01^}m0x~oj0x~rs0x~u#0x~x;0x~!n03rZir(tdY diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml deleted file mode 100644 index 5799c9346..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.Role.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json deleted file mode 100644 index 33ed28e7f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiVersion": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.pb deleted file mode 100644 index f2f8ce471d6a5a6c08c5b5d8204ea3678b136e84..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 297 zcmV+^0oML&ICB6BF$yAbVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6uY;b5{F%k<> zZ){~kX>Md`Zf6qf0Sd?g3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)b zF6fxAHpGio<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=- zpU#}S0a^wM0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSv zFaS6Kasn|ldIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-| vhFuy0F*h;*5)cXkGBgqbGBp|kGBzRtGB+9w3IZ}X5&|+g8Uiyg8UP{yDDPvc diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml deleted file mode 100644 index 1a289ba8a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1alpha1 -kind: RoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiVersion: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json deleted file mode 100644 index 5c047d716..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "RoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiVersion": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1alpha1.RoleBinding.pb deleted file mode 100644 index 0ddd87f29daffe690fcdfd128dfc1061110fdb39..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 313 zcmd0{C}!X?4rX?v*qyiME#RfYM)JP)OfaY z`jNI+plRk>0$hARwvQiwrFfQ!kg;+$bttI@NaL&XwzgX5(*gw&yuKoC*&ls?phI-YcNjZr$~p<*wH% z`!%fa0L%VdhviExk16M_RNFzT)LitdC1w809}JJ4J_ru`KVQ`2GGm&=NmFKK zS7uh9K&0Br?DS=SJnT>R-W={iZan(@9ITK)B;K~hwBI7Q(K@xAbqe4uo HQcU^}1520y diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml deleted file mode 100644 index 8c64e4839..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.after_roundtrip.yaml +++ /dev/null @@ -1,50 +0,0 @@ -aggregationRule: - clusterRoleSelectors: - - matchExpressions: - - key: 1d3-7-fP81.-.9Vdx.TB_M-H5 - operator: NotIn - values: - - Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H - matchLabels: - An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q: 7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json deleted file mode 100644 index 9c880ee15..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "kind": "ClusterRole", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ], - "aggregationRule": { - "clusterRoleSelectors": [ - { - "matchLabels": { - "An---v_-5-_8LXP-o-9..1l-_5---5w9vL_-.M.y._-_R58_HLU..8._Q": "7-dG6c-.6--_x.--0wmZk1_8._3s_-_Bq.m_-q" - }, - "matchExpressions": [ - { - "key": "1d3-7-fP81.-.9Vdx.TB_M-H5", - "operator": "NotIn", - "values": [ - "Q42M--n1-p5.3___47._49pIB_o61ISU4--A_.XK_._M9T9sH.Wu5--.H" - ] - } - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRole.pb deleted file mode 100644 index edbfa669d574ab63a67da31472279f4d88b657ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 504 zcmWNL&ubGw9L0B5tTIB8p%?dLa}Wu9r#t&|=HQ`GFwsQP+SF1gW12*aNwY~dNo&MI zl&U0%3IQvGiqwN3;zd!((XHA`Z-U@Cp}F`sxTgo7_u=tM+*h!UXY1?P9L+Wxx4n9? zooy7o3N3M;7QML^TQ4-SjGVeyZu*TvebFly$nY5cgD^4(GBspHkR6Q#+mpRs@V<6s zyxYz4qc=})2Ja4b=+VwcC+IDY-hM3@Gt3c=W!SoFag#f?qZ_8+fB!xB-RTWF)tHk0 z@Z|Hu?bnBcAzGcn$R&ucpTI~EmFaiRVwD-1%FM|0rS@pp|MmEuzu*1wtQu7r(-n^D zDzn-uv%Ba*s5)eJ^1M6hcPD$V_IDvO8hrZxB|CS}zdwG_IY0jPGI+EWuDQ|EcskTM zIfWQI~sWkP9gWNB_^66*m9$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3r zk8mmiF)=UzI0143F*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxr zfhgv=m&Ar$8UislG5`_~3IZ}T5&|+c8UivlA_6iu8Vm{oGB^?fGC3LoGcXzeA^-!0 BW-b5# diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml deleted file mode 100644 index efce3c98d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.after_roundtrip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json deleted file mode 100644 index 39694cb12..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "kind": "ClusterRoleBinding", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "subjects": [ - { - "kind": "24", - "apiGroup": "25", - "name": "26", - "namespace": "27" - } - ], - "roleRef": { - "apiGroup": "28", - "kind": "29", - "name": "30" - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.pb deleted file mode 100644 index 6c626d52f05ddf2c401701167ee7b7d5b61efa11..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 319 zcmd0{C}!X?=Ta<6N=(*EEG@~%FUqV+EXmBz)62Ff*2~P-FEdO^ElD&K5^~NdEiOqd z3d+w(b;`_3$;?X^`pw97gOQ8TNQlu`iqS-g(Ns(6NbAeR-A7gzdOe%hm1yx|VQ<2b z6(?uty_m7y>_~Um(}HH&<6<-yVzfwN=VG)JVlp(yQs81TG?HR6G*;qssd~D5%8B;s;-g*1 z`U|v}3=It!EEtQJ3{9$-3{ATjZGlS7gcM&+=z2P(>*eB^N9XB=KAp4W@b*OglT&J+ zO>ES7wsZQCwpgHP=2`+=d_d(ELL6LdK-yA>K}dj$$;d>A$;ecS$;eEJ$;e!a2Pk3z P6tR?IGB%K6P+|Z8h6ZP) diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml deleted file mode 100644 index 0fa91de25..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.ClusterRoleBinding.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -roleRef: - apiGroup: "28" - kind: "29" - name: "30" -subjects: -- apiGroup: "25" - kind: "24" - name: "26" - namespace: "27" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json deleted file mode 100644 index 8500b3396..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.pb deleted file mode 100644 index 049d4ee401b395243c290363c6ef3f0fdae272a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 279 zcmV+y0qFi~ICB6BDGDKSVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6vWprUN5(H9j zY-JMR0Sd?g3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio z<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM z0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|l zdIB*uiUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;* d5)=voGBgqbGBp|kGBzRtGB+v$GB_FlA^^-$UuysW diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml deleted file mode 100644 index f8f0d2372..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.after_roundtrip.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: Role -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -rules: -- apiGroups: - - "25" - nonResourceURLs: - - "28" - resourceNames: - - "27" - resources: - - "26" - verbs: - - "24" diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.json b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.json deleted file mode 100644 index 65b57664a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "kind": "Role", - "apiVersion": "rbac.authorization.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "rules": [ - { - "verbs": [ - "24" - ], - "apiGroups": [ - "25" - ], - "resources": [ - "26" - ], - "resourceNames": [ - "27" - ], - "nonResourceURLs": [ - "28" - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.pb b/pseudo/k8s/api/testdata/v1.15.0/rbac.authorization.k8s.io.v1beta1.Role.pb deleted file mode 100644 index 8410f419b49c44080d6d959f17dad3eba1e9420d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 295 zcmV+?0oeX)ICB6BDGDKSVqs%0VRdw9Z*pmRVRUJ4ZZ2y$b1rFbFLp6vWprUN5(H9j zY-JMh0Sedw3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio z<)pY}G88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM z0XGr>IARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|l zdIB*uiUBocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@ t3JwYaF*p(k3I+-SF*ycg0x>fp4n%t8yOhX>dvnE##*c6+0x>Z# z05}110x>jt0x>m;0WAswF*Xt*>5z)$l#1!2nZ=$hRpp$t!?$5C$&`KOk%1`YxtGL- uT^a&0H!=Vc5DEe^G!gkrgLr=)IV+ z-t0(s*wZCDQjJ6m%`DAKj7$y8O)QKp%uLM;jEpTUZog}~+Som(vA~HTU~R|N=GOV= z=ImySV&h^o7h<$XV&`JC6k;+o$Wq{9GBlE6GBj4=bE$f|d&-IS>f)na$NCGjm<$aK z7%Uizm<&y-m<&z37;S+{&4d(RPUw0%rR(M5nMdd8hCZFM7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY} zG88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr> zIARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*u ziUBPO0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5dX@K nt@!`{|Nj9P03rf1G%69sqBbwel~%=?D8#?WiszJ`8UP{y?%{4+ diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml deleted file mode 100644 index 1636cf019..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.after_roundtrip.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: scheduling.k8s.io/v1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -preemptionPolicy: Ƣ6/ʕVŚ(ĿȊ甞 -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.json b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.json deleted file mode 100644 index 8c2b2a69f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "value": -2052872833, - "description": "24", - "preemptionPolicy": "Ƣ6/ʕVŚ(ĿȊ甞" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.pb b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1.PriorityClass.pb deleted file mode 100644 index c0db2210ea1422a4abfe18351170fbe6ee03352d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 305 zcmV-10nYwwICB6BB?=UCV`yb$b!=&FXD(|vb1rFbFLp5!4N!7vZ*pmLc|&Yrb8`~^ z0Sedw3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY} zG88d3IW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr> zIARA10XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*u ziUBocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYa zF*p(k3I+-SF*ya%pdJX>@r* zY+-YA67K;D$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143 zF*JGtF*S+-EeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8Uisl tG5`?&%8sr0|NsC00T=)x0x~oz5yql6FUplx#hNI@zsQQ`l%5&@A^>{!aGwAG diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml deleted file mode 100644 index b034f73f2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.after_roundtrip.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: scheduling.k8s.io/v1alpha1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -preemptionPolicy: Ƣ6/ʕVŚ(ĿȊ甞 -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.json b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.json deleted file mode 100644 index 8db93f45d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "value": -2052872833, - "description": "24", - "preemptionPolicy": "Ƣ6/ʕVŚ(ĿȊ甞" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.pb deleted file mode 100644 index b7de6e11db7f350a8a03be1eef6bbadc1a6e198b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 311 zcmV-70m%MqICB6BD+(HOV`yb$b!=&FXD(|vb1rFbFLp6uY;b5{F%k_>a%pdJX>@r* zY+-YA68`}T*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143 zF*JGtF*S+-JqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8Uisl zDi8_|3IZ`W5(o+g3IZ`X5&#hY%8sr0|NsC00T=)x0x~oz5yql6FUplx#hNI@zsQQ` Jl%5&@A^^BEauxsp diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml deleted file mode 100644 index 8ba9d1cc2..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1alpha1.PriorityClass.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: scheduling.k8s.io/v1alpha1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -preemptionPolicy: Ƣ6/ʕVŚ(ĿȊ甞 -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json deleted file mode 100644 index 9397967a9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "value": -2052872833, - "description": "24", - "preemptionPolicy": "Ƣ6/ʕVŚ(ĿȊ甞" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.pb deleted file mode 100644 index 661c1d45ff185c85f221d0abbe9363389b776ae0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 294 zcmV+>0ond*ICB6BDhe5MV`yb$b!=&FXD(|vb1rFbFLp6vWprUN5)DvtX>W3Aba_K; zVRLg5?*R(P0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r- s01*Gmj;;9r|Ns917yu#yGBhd?#-cVa%9U2dnkdA-$cpEbo*Dom00C}rGXMYp diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml deleted file mode 100644 index 184525540..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.after_roundtrip.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: scheduling.k8s.io/v1beta1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -preemptionPolicy: Ƣ6/ʕVŚ(ĿȊ甞 -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.json b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.json deleted file mode 100644 index f45a4137c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "kind": "PriorityClass", - "apiVersion": "scheduling.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "value": -2052872833, - "description": "24", - "preemptionPolicy": "Ƣ6/ʕVŚ(ĿȊ甞" -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.pb b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.pb deleted file mode 100644 index 06ff556d9e2afdd15917da22e12f3cfde08be1da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=SrICB6BDhe5MV`yb$b!=&FXD(|vb1rFbFLp6vWprUN5)DvtX>W3Aba_K; zVRLg5{{afv0SW;!5&<(B0W=~3H7X*+h3TV<#H(>i=AMdSIOw5`V8p1&m@ep;uQtSs zR^_C)Wik{oHaRvlGBq$aG&nOjHZ?XdGBY_i+wOwZfs34ha6$l3t%$XQg`duxy8&7T z3IR6~0XSj@3IRD10x>XZAPNF8G8zIgGa?Q|dgZ&6$cKA##frv{a4G^ZF)#o)0dfK{ zG7$v&o-I}7oV3HYVK2#)eddvYDCW7B#D-lO0x>r# z5DE?o0x>ue2nq%Y0x>xf01*Gmj;;9r|Ns917yu#yGBhd?#-cVa%9U2dnkdA-$cpEb Io*Dom05|J#ssI20 diff --git a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml b/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml deleted file mode 100644 index e942c9b4a..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/scheduling.k8s.io.v1beta1.PriorityClass.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: scheduling.k8s.io/v1beta1 -description: "24" -kind: PriorityClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -preemptionPolicy: Ƣ6/ʕVŚ(ĿȊ甞 -value: -2052872833 diff --git a/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json deleted file mode 100644 index 66eb88b19..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "kind": "PodPreset", - "apiVersion": "settings.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "env": [ - { - "name": "30", - "value": "31", - "valueFrom": { - "fieldRef": { - "apiVersion": "32", - "fieldPath": "33" - }, - "resourceFieldRef": { - "containerName": "34", - "resource": "35", - "divisor": "904" - }, - "configMapKeyRef": { - "name": "36", - "key": "37", - "optional": true - }, - "secretKeyRef": { - "name": "38", - "key": "39", - "optional": true - } - } - } - ], - "envFrom": [ - { - "prefix": "40", - "configMapRef": { - "name": "41", - "optional": false - }, - "secretRef": { - "name": "42", - "optional": false - } - } - ], - "volumes": [ - { - "name": "43", - "hostPath": { - "path": "44", - "type": "訩塶\"=y钡n)İ笓珣筩Ɛ" - }, - "emptyDir": { - "medium": "_痸荎僋bŭ", - "sizeLimit": "837" - }, - "gcePersistentDisk": { - "pdName": "45", - "fsType": "46", - "partition": -656741678 - }, - "awsElasticBlockStore": { - "volumeID": "47", - "fsType": "48", - "partition": 459991461, - "readOnly": true - }, - "gitRepo": { - "repository": "49", - "revision": "50", - "directory": "51" - }, - "secret": { - "secretName": "52", - "items": [ - { - "key": "53", - "path": "54", - "mode": 614353626 - } - ], - "defaultMode": -649405296, - "optional": false - }, - "nfs": { - "server": "55", - "path": "56", - "readOnly": true - }, - "iscsi": { - "targetPortal": "57", - "iqn": "58", - "lun": 578888856, - "iscsiInterface": "59", - "fsType": "60", - "readOnly": true, - "portals": [ - "61" - ], - "secretRef": { - "name": "62" - }, - "initiatorName": "63" - }, - "glusterfs": { - "endpoints": "64", - "path": "65" - }, - "persistentVolumeClaim": { - "claimName": "66" - }, - "rbd": { - "monitors": [ - "67" - ], - "image": "68", - "fsType": "69", - "pool": "70", - "user": "71", - "keyring": "72", - "secretRef": { - "name": "73" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "74", - "fsType": "75", - "secretRef": { - "name": "76" - }, - "readOnly": true, - "options": { - "77": "78" - } - }, - "cinder": { - "volumeID": "79", - "fsType": "80", - "secretRef": { - "name": "81" - } - }, - "cephfs": { - "monitors": [ - "82" - ], - "path": "83", - "user": "84", - "secretFile": "85", - "secretRef": { - "name": "86" - } - }, - "flocker": { - "datasetName": "87", - "datasetUUID": "88" - }, - "downwardAPI": { - "items": [ - { - "path": "89", - "fieldRef": { - "apiVersion": "90", - "fieldPath": "91" - }, - "resourceFieldRef": { - "containerName": "92", - "resource": "93", - "divisor": "458" - }, - "mode": -836939996 - } - ], - "defaultMode": -675641027 - }, - "fc": { - "targetWWNs": [ - "94" - ], - "lun": 599310027, - "fsType": "95", - "wwids": [ - "96" - ] - }, - "azureFile": { - "secretName": "97", - "shareName": "98" - }, - "configMap": { - "name": "99", - "items": [ - { - "key": "100", - "path": "101", - "mode": 587975894 - } - ], - "defaultMode": -1697933829, - "optional": false - }, - "vsphereVolume": { - "volumePath": "102", - "fsType": "103", - "storagePolicyName": "104", - "storagePolicyID": "105" - }, - "quobyte": { - "registry": "106", - "volume": "107", - "readOnly": true, - "user": "108", - "group": "109", - "tenant": "110" - }, - "azureDisk": { - "diskName": "111", - "diskURI": "112", - "cachingMode": "Mȗ礼2ħ籦ö嗏ʑ\u003e季Cʖ畬x骀Š", - "fsType": "113", - "readOnly": true, - "kind": "湙騘" - }, - "photonPersistentDisk": { - "pdID": "114", - "fsType": "115" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "116", - "items": [ - { - "key": "117", - "path": "118", - "mode": 663386308 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "119", - "fieldRef": { - "apiVersion": "120", - "fieldPath": "121" - }, - "resourceFieldRef": { - "containerName": "122", - "resource": "123", - "divisor": "354" - }, - "mode": -1545709933 - } - ] - }, - "configMap": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1562726486 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "127", - "expirationSeconds": 6413320236483872038, - "path": "128" - } - } - ], - "defaultMode": 411507758 - }, - "portworxVolume": { - "volumeID": "129", - "fsType": "130" - }, - "scaleIO": { - "gateway": "131", - "system": "132", - "secretRef": { - "name": "133" - }, - "sslEnabled": true, - "protectionDomain": "134", - "storagePool": "135", - "storageMode": "136", - "volumeName": "137", - "fsType": "138" - }, - "storageos": { - "volumeName": "139", - "volumeNamespace": "140", - "fsType": "141", - "secretRef": { - "name": "142" - } - }, - "csi": { - "driver": "143", - "readOnly": false, - "fsType": "144", - "volumeAttributes": { - "145": "146" - }, - "nodePublishSecretRef": { - "name": "147" - } - } - } - ], - "volumeMounts": [ - { - "name": "148", - "mountPath": "149", - "subPath": "150", - "mountPropagation": "ȥ啕禗Ǐ2啗塧", - "subPathExpr": "151" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.after_roundtrip.pb deleted file mode 100644 index 0eff813943c4efe6b3752b58ebf51a2f3067f4bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1444 zcmXw2Yit!o6y6!M!UXZM0kc_tcv*vio9uSyxwB0qP%%Udq<|W1Le{=gpje?$5_O|2(wk#X#&Q|I1o`Y}X`fqdwi>g=&Cc{W*u9Z|FL&<_ZA`-rX@V(pG3DNjCA;#M+eY4h zyLmW!y>)X2QyN+tHDM}tVJfr82Ulg!Egs6|+p@*p1`iTfX*HlMtb(m0+pYHOy~_ zOIPd&mf9uZ@?d9BZ?7fKDIFx$E4K%J?NU|a2g>)89f9wM+uy8gpa~dxbK;lV_@zd- z^p&QXTAu}elDwF#-j*axy}Tw_l>~mUV(Ypf@%`0_Sh6_rWdirFWcFf$d1zx!-H1#D zoq^8nr$7^+N%wIwB@Tr2bE_)hjdaqoj2ZX!ycA#2CFbcWmwTg)+%UDu{BmT zR(u)6DPTuQ$65s)DwVP-;Tb82SK7rY_HYzta6}o7SQ$h{d=aX4VTY(lx&~2DFz_8g zOr$qJGZB=oL&x&Ks%aCDs$mwIyI2bkYnd^)3awobr6Ee|y(l73wvK^&9K#S}>cZe+ z2#dKHoRB)**Zup0zb80LT|ILD>SXU(GzbpnxKEf`JW!lQ%SRFyoSq!;j?N}e8 zd1j(fAnlp%XiQ4V=II@V`NP0=dA%jGen6ga<;NMRN?S3~ZhZY&ruX zW>er>eU27_l~S<6=X-YfNJpXX3d@}?e0J*E#e7HW=;4L=!QK}}j}_X_?I@nzJ^V2w zpnN`JC1XR!i~XHnL#coWlR$ohro(~7aNxk;C<@@nO>)i*50rCY8#ci}$TASB97MDX zgs!k|qQi(BKx7Uv&hW)e$22mzwUhhh%oUtQHYKG7jcs!=GjuTO&NRAdolOwVrAQwg zeAxZx1UGJaA|Dg>Y~v=4n{v+nc>ma>9Uifvjzy_c*^%Fho#%GH4*W5lI)AAvhwdN; zjNCLOLcj%uA({FFyN8}JJBPmpoA69U@I^qVNslPAz(9J^AqMVbn3*|pGT+`_IMwlO RE6cZc季Cʖ畬x骀Š - diskName: "111" - diskURI: "112" - fsType: "113" - kind: 湙騘 - readOnly: true - azureFile: - secretName: "97" - shareName: "98" - cephfs: - monitors: - - "82" - path: "83" - secretFile: "85" - secretRef: - name: "86" - user: "84" - cinder: - fsType: "80" - secretRef: - name: "81" - volumeID: "79" - configMap: - defaultMode: -1697933829 - items: - - key: "100" - mode: 587975894 - path: "101" - name: "99" - optional: false - csi: - driver: "143" - fsType: "144" - nodePublishSecretRef: - name: "147" - readOnly: false - volumeAttributes: - "145": "146" - downwardAPI: - defaultMode: -675641027 - items: - - fieldRef: - apiVersion: "90" - fieldPath: "91" - mode: -836939996 - path: "89" - resourceFieldRef: - containerName: "92" - divisor: "458" - resource: "93" - emptyDir: - medium: _痸荎僋bŭ - sizeLimit: "837" - fc: - fsType: "95" - lun: 599310027 - targetWWNs: - - "94" - wwids: - - "96" - flexVolume: - driver: "74" - fsType: "75" - options: - "77": "78" - readOnly: true - secretRef: - name: "76" - flocker: - datasetName: "87" - datasetUUID: "88" - gcePersistentDisk: - fsType: "46" - partition: -656741678 - pdName: "45" - gitRepo: - directory: "51" - repository: "49" - revision: "50" - glusterfs: - endpoints: "64" - path: "65" - hostPath: - path: "44" - type: 訩塶"=y钡n)İ笓珣筩Ɛ - iscsi: - fsType: "60" - initiatorName: "63" - iqn: "58" - iscsiInterface: "59" - lun: 578888856 - portals: - - "61" - readOnly: true - secretRef: - name: "62" - targetPortal: "57" - name: "43" - nfs: - path: "56" - readOnly: true - server: "55" - persistentVolumeClaim: - claimName: "66" - photonPersistentDisk: - fsType: "115" - pdID: "114" - portworxVolume: - fsType: "130" - volumeID: "129" - projected: - defaultMode: 411507758 - sources: - - configMap: - items: - - key: "125" - mode: -1562726486 - path: "126" - name: "124" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "120" - fieldPath: "121" - mode: -1545709933 - path: "119" - resourceFieldRef: - containerName: "122" - divisor: "354" - resource: "123" - secret: - items: - - key: "117" - mode: 663386308 - path: "118" - name: "116" - optional: true - serviceAccountToken: - audience: "127" - expirationSeconds: 6413320236483872038 - path: "128" - quobyte: - group: "109" - readOnly: true - registry: "106" - tenant: "110" - user: "108" - volume: "107" - rbd: - fsType: "69" - image: "68" - keyring: "72" - monitors: - - "67" - pool: "70" - readOnly: true - secretRef: - name: "73" - user: "71" - scaleIO: - fsType: "138" - gateway: "131" - protectionDomain: "134" - secretRef: - name: "133" - sslEnabled: true - storageMode: "136" - storagePool: "135" - system: "132" - volumeName: "137" - secret: - defaultMode: -649405296 - items: - - key: "53" - mode: 614353626 - path: "54" - optional: false - secretName: "52" - storageos: - fsType: "141" - secretRef: - name: "142" - volumeName: "139" - volumeNamespace: "140" - vsphereVolume: - fsType: "103" - storagePolicyID: "105" - storagePolicyName: "104" - volumePath: "102" diff --git a/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.json b/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.json deleted file mode 100644 index 2f5769484..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "kind": "PodPreset", - "apiVersion": "settings.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "selector": { - "matchLabels": { - "9n7yd745q0------2-2413-4lu-8-6r4404d5---g8c2-k9/Nx.G": "0M.y.g" - }, - "matchExpressions": [ - { - "key": "68._bQw.-dG6c-.6--_x.--0wmZk1_8._3s_-B", - "operator": "In", - "values": [ - "Trcd-2.-__E_Sv__26KX_R_.-.Nth._--S_4DA_-5_-4lQ2" - ] - } - ] - }, - "env": [ - { - "name": "30", - "value": "31", - "valueFrom": { - "fieldRef": { - "apiVersion": "32", - "fieldPath": "33" - }, - "resourceFieldRef": { - "containerName": "34", - "resource": "35", - "divisor": "904" - }, - "configMapKeyRef": { - "name": "36", - "key": "37", - "optional": true - }, - "secretKeyRef": { - "name": "38", - "key": "39", - "optional": true - } - } - } - ], - "envFrom": [ - { - "prefix": "40", - "configMapRef": { - "name": "41", - "optional": false - }, - "secretRef": { - "name": "42", - "optional": false - } - } - ], - "volumes": [ - { - "name": "43", - "hostPath": { - "path": "44", - "type": "訩塶\"=y钡n)İ笓珣筩Ɛ" - }, - "emptyDir": { - "medium": "_痸荎僋bŭ", - "sizeLimit": "837" - }, - "gcePersistentDisk": { - "pdName": "45", - "fsType": "46", - "partition": -656741678 - }, - "awsElasticBlockStore": { - "volumeID": "47", - "fsType": "48", - "partition": 459991461, - "readOnly": true - }, - "gitRepo": { - "repository": "49", - "revision": "50", - "directory": "51" - }, - "secret": { - "secretName": "52", - "items": [ - { - "key": "53", - "path": "54", - "mode": 614353626 - } - ], - "defaultMode": -649405296, - "optional": false - }, - "nfs": { - "server": "55", - "path": "56", - "readOnly": true - }, - "iscsi": { - "targetPortal": "57", - "iqn": "58", - "lun": 578888856, - "iscsiInterface": "59", - "fsType": "60", - "readOnly": true, - "portals": [ - "61" - ], - "secretRef": { - "name": "62" - }, - "initiatorName": "63" - }, - "glusterfs": { - "endpoints": "64", - "path": "65" - }, - "persistentVolumeClaim": { - "claimName": "66" - }, - "rbd": { - "monitors": [ - "67" - ], - "image": "68", - "fsType": "69", - "pool": "70", - "user": "71", - "keyring": "72", - "secretRef": { - "name": "73" - }, - "readOnly": true - }, - "flexVolume": { - "driver": "74", - "fsType": "75", - "secretRef": { - "name": "76" - }, - "readOnly": true, - "options": { - "77": "78" - } - }, - "cinder": { - "volumeID": "79", - "fsType": "80", - "secretRef": { - "name": "81" - } - }, - "cephfs": { - "monitors": [ - "82" - ], - "path": "83", - "user": "84", - "secretFile": "85", - "secretRef": { - "name": "86" - } - }, - "flocker": { - "datasetName": "87", - "datasetUUID": "88" - }, - "downwardAPI": { - "items": [ - { - "path": "89", - "fieldRef": { - "apiVersion": "90", - "fieldPath": "91" - }, - "resourceFieldRef": { - "containerName": "92", - "resource": "93", - "divisor": "458" - }, - "mode": -836939996 - } - ], - "defaultMode": -675641027 - }, - "fc": { - "targetWWNs": [ - "94" - ], - "lun": 599310027, - "fsType": "95", - "wwids": [ - "96" - ] - }, - "azureFile": { - "secretName": "97", - "shareName": "98" - }, - "configMap": { - "name": "99", - "items": [ - { - "key": "100", - "path": "101", - "mode": 587975894 - } - ], - "defaultMode": -1697933829, - "optional": false - }, - "vsphereVolume": { - "volumePath": "102", - "fsType": "103", - "storagePolicyName": "104", - "storagePolicyID": "105" - }, - "quobyte": { - "registry": "106", - "volume": "107", - "readOnly": true, - "user": "108", - "group": "109", - "tenant": "110" - }, - "azureDisk": { - "diskName": "111", - "diskURI": "112", - "cachingMode": "Mȗ礼2ħ籦ö嗏ʑ\u003e季Cʖ畬x骀Š", - "fsType": "113", - "readOnly": true, - "kind": "湙騘" - }, - "photonPersistentDisk": { - "pdID": "114", - "fsType": "115" - }, - "projected": { - "sources": [ - { - "secret": { - "name": "116", - "items": [ - { - "key": "117", - "path": "118", - "mode": 663386308 - } - ], - "optional": true - }, - "downwardAPI": { - "items": [ - { - "path": "119", - "fieldRef": { - "apiVersion": "120", - "fieldPath": "121" - }, - "resourceFieldRef": { - "containerName": "122", - "resource": "123", - "divisor": "354" - }, - "mode": -1545709933 - } - ] - }, - "configMap": { - "name": "124", - "items": [ - { - "key": "125", - "path": "126", - "mode": -1562726486 - } - ], - "optional": false - }, - "serviceAccountToken": { - "audience": "127", - "expirationSeconds": 6413320236483872038, - "path": "128" - } - } - ], - "defaultMode": 411507758 - }, - "portworxVolume": { - "volumeID": "129", - "fsType": "130" - }, - "scaleIO": { - "gateway": "131", - "system": "132", - "secretRef": { - "name": "133" - }, - "sslEnabled": true, - "protectionDomain": "134", - "storagePool": "135", - "storageMode": "136", - "volumeName": "137", - "fsType": "138" - }, - "storageos": { - "volumeName": "139", - "volumeNamespace": "140", - "fsType": "141", - "secretRef": { - "name": "142" - } - }, - "csi": { - "driver": "143", - "readOnly": false, - "fsType": "144", - "volumeAttributes": { - "145": "146" - }, - "nodePublishSecretRef": { - "name": "147" - } - } - } - ], - "volumeMounts": [ - { - "name": "148", - "mountPath": "149", - "subPath": "150", - "mountPropagation": "ȥ啕禗Ǐ2啗塧", - "subPathExpr": "151" - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.pb b/pseudo/k8s/api/testdata/v1.15.0/settings.k8s.io.v1alpha1.PodPreset.pb deleted file mode 100644 index 311bc9a355d501814dafa4088d6e86b84e2ae203..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1460 zcmXw2Yit!o6y6!M!iad8fY~fRysW{%O?JC8J2N}m1OgR9#6U_>gCu0_D+P)LTI6L+ zc!-kQV0pB(m|CnY&r(pMNCp1LEtZ=20|PPe!-VAa_F`f%#u!whXIkAK=bZV@W6t@` zPJ?c?$Q)uf*KOIduCcz^Z_v&Dx{aks{!qutpmJ=SyJjoj%Qo&H$o1(j=gE#G&kj?Z8!R)WhQ5<1jMs(^>F zzWd9bTf1Ajc5f=TDhBp{xp&|3@4GIe)g=T)6zS?G2#P6Y!TL18j60Zx?zF`_^OxI( z-+#M#D0{tiQwB2@SQ<59CU#;bvuHkqDmuG(Fq?177JH8kb$hSoyS}*gRaNPYws%Gk z?VdY2*pYj04OELVDKZVhHJwaKK*!XgeN)JBL>3ScH%2>ZBOx~j-uTBoE?DS^4R3kc zQ%ynyqE>>ZUe|E1Aue6M-CsgWf@S^=zn-ok&nxXG)ho97UhNW94?S z-M|uXhRumrPVq~PPU$O6HMJi1y(D=tS-CYyxO#b2QknRkzkJJDKk>YkiCDZS@niz` zui$hM!C^pg$ef5w2AhK&(x<@^U`gk3GARy(GnG6BkOC;OkvnnHaEfi@*aV9J=7tEt zQkFAe@s#EM0aS>PJ}4ox!4P!T*y%I*o{R4M9mT^vjq`G!7S0_hwDuMT&Rjo8pCL~r zg^o*O2R_K}ZK)m_pm4PgBWEV0N{WTDZ{GU(`lEl~Lut!R0UQCW?Gr!r-$iMZnF$XD9IDt2)cWN^edj(8blM&UwK z?SO`?NIC{l&@k{FK~ALC!!QxFt^?b0!K+ylkg8!9I&`oWF4i(*a1~fPAxlG+)_YJy zpluxk_c(?n#>|1m#gG<D}) zLtq<};2>lf2vrUuS_(o}SU1rjMD`;xi~ z&YbDSHly=#!b2(2M+P2t|2fW$lOC_f1)XWaqzO~@*`Mwoo$$j?Y^dW=>ST8Kw_@kH zU9SUwT&K=o>dK)z$OdO季Cʖ畬x骀Š - diskName: "111" - diskURI: "112" - fsType: "113" - kind: 湙騘 - readOnly: true - azureFile: - secretName: "97" - shareName: "98" - cephfs: - monitors: - - "82" - path: "83" - secretFile: "85" - secretRef: - name: "86" - user: "84" - cinder: - fsType: "80" - secretRef: - name: "81" - volumeID: "79" - configMap: - defaultMode: -1697933829 - items: - - key: "100" - mode: 587975894 - path: "101" - name: "99" - optional: false - csi: - driver: "143" - fsType: "144" - nodePublishSecretRef: - name: "147" - readOnly: false - volumeAttributes: - "145": "146" - downwardAPI: - defaultMode: -675641027 - items: - - fieldRef: - apiVersion: "90" - fieldPath: "91" - mode: -836939996 - path: "89" - resourceFieldRef: - containerName: "92" - divisor: "458" - resource: "93" - emptyDir: - medium: _痸荎僋bŭ - sizeLimit: "837" - fc: - fsType: "95" - lun: 599310027 - targetWWNs: - - "94" - wwids: - - "96" - flexVolume: - driver: "74" - fsType: "75" - options: - "77": "78" - readOnly: true - secretRef: - name: "76" - flocker: - datasetName: "87" - datasetUUID: "88" - gcePersistentDisk: - fsType: "46" - partition: -656741678 - pdName: "45" - gitRepo: - directory: "51" - repository: "49" - revision: "50" - glusterfs: - endpoints: "64" - path: "65" - hostPath: - path: "44" - type: 訩塶"=y钡n)İ笓珣筩Ɛ - iscsi: - fsType: "60" - initiatorName: "63" - iqn: "58" - iscsiInterface: "59" - lun: 578888856 - portals: - - "61" - readOnly: true - secretRef: - name: "62" - targetPortal: "57" - name: "43" - nfs: - path: "56" - readOnly: true - server: "55" - persistentVolumeClaim: - claimName: "66" - photonPersistentDisk: - fsType: "115" - pdID: "114" - portworxVolume: - fsType: "130" - volumeID: "129" - projected: - defaultMode: 411507758 - sources: - - configMap: - items: - - key: "125" - mode: -1562726486 - path: "126" - name: "124" - optional: false - downwardAPI: - items: - - fieldRef: - apiVersion: "120" - fieldPath: "121" - mode: -1545709933 - path: "119" - resourceFieldRef: - containerName: "122" - divisor: "354" - resource: "123" - secret: - items: - - key: "117" - mode: 663386308 - path: "118" - name: "116" - optional: true - serviceAccountToken: - audience: "127" - expirationSeconds: 6413320236483872038 - path: "128" - quobyte: - group: "109" - readOnly: true - registry: "106" - tenant: "110" - user: "108" - volume: "107" - rbd: - fsType: "69" - image: "68" - keyring: "72" - monitors: - - "67" - pool: "70" - readOnly: true - secretRef: - name: "73" - user: "71" - scaleIO: - fsType: "138" - gateway: "131" - protectionDomain: "134" - secretRef: - name: "133" - sslEnabled: true - storageMode: "136" - storagePool: "135" - system: "132" - volumeName: "137" - secret: - defaultMode: -649405296 - items: - - key: "53" - mode: 614353626 - path: "54" - optional: false - secretName: "52" - storageos: - fsType: "141" - secretRef: - name: "142" - volumeName: "139" - volumeNamespace: "140" - vsphereVolume: - fsType: "103" - storagePolicyID: "105" - storagePolicyName: "104" - volumePath: "102" diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json deleted file mode 100644 index 3720f89df..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "provisioner": "24", - "parameters": { - "25": "26" - }, - "reclaimPolicy": "ǸƢ6/", - "mountOptions": [ - "27" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "ĉy緅縕\u003eŽ燹憍峕?狱³-Ǐ", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "28", - "values": [ - "29" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.pb deleted file mode 100644 index d3311ab2d9b0ad7ac0a72d066621a187ce7f6b93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmd0{C}!YNKxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPt

w@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)+1|cRR6DbZZCL>cI z%S?&w_>Nlh$RzBa}`h3S!yQ6!bx9@z`*86nxRQu=M8xL*PJ>Kuc Q#Rbx70n}+J#h}Ch0B#j@QUCw| diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml deleted file mode 100644 index f65974eb3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.after_roundtrip.yaml +++ /dev/null @@ -1,43 +0,0 @@ -allowVolumeExpansion: true -allowedTopologies: -- matchLabelExpressions: - - key: "28" - values: - - "29" -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -mountOptions: -- "27" -parameters: - "25": "26" -provisioner: "24" -reclaimPolicy: ǸƢ6/ -volumeBindingMode: ĉy緅縕>Ž燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.json deleted file mode 100644 index ecc6d4afe..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "provisioner": "24", - "parameters": { - "25": "26" - }, - "reclaimPolicy": "ǸƢ6/", - "mountOptions": [ - "27" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "ĉy緅縕\u003eŽ燹憍峕?狱³-Ǐ", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "28", - "values": [ - "29" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.StorageClass.pb deleted file mode 100644 index fd0c46dd649951aa0972d9745be8f6a74c9d9cdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmd0{C}!YNKxms|&rJ&Ff0Ec(JfI;mC@UGxT1}SZ{WuJM8I_9jQhlhGv##CPt

w@wrqz-96<*dv)>Au4DZLT1ZS$qW;M#wa+FtYCPLH{YYCZ&@^)`0WLnEatk32E;b-- zDa0VeWMm@6!Np``3S^lnu^r!WY>}D17L$>=0i%`NkŽ燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json deleted file mode 100644 index ee3be71f8..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25", - "inlineVolumeSpec": { - "capacity": { - "ǸƢ6/": "569" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": -799278564, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": 1749009427, - "readOnly": true - }, - "hostPath": { - "path": "30", - "type": "甞谐颋DžS" - }, - "glusterfs": { - "endpoints": "31", - "path": "32", - "endpointsNamespace": "33" - }, - "nfs": { - "server": "34", - "path": "35", - "readOnly": true - }, - "rbd": { - "monitors": [ - "36" - ], - "image": "37", - "fsType": "38", - "pool": "39", - "user": "40", - "keyring": "41", - "secretRef": { - "name": "42", - "namespace": "43" - } - }, - "iscsi": { - "targetPortal": "44", - "iqn": "45", - "lun": -443114323, - "iscsiInterface": "46", - "fsType": "47", - "portals": [ - "48" - ], - "secretRef": { - "name": "49", - "namespace": "50" - }, - "initiatorName": "51" - }, - "cinder": { - "volumeID": "52", - "fsType": "53", - "secretRef": { - "name": "54", - "namespace": "55" - } - }, - "cephfs": { - "monitors": [ - "56" - ], - "path": "57", - "user": "58", - "secretFile": "59", - "secretRef": { - "name": "60", - "namespace": "61" - }, - "readOnly": true - }, - "fc": { - "targetWWNs": [ - "62" - ], - "lun": 2072604405, - "fsType": "63", - "wwids": [ - "64" - ] - }, - "flocker": { - "datasetName": "65", - "datasetUUID": "66" - }, - "flexVolume": { - "driver": "67", - "fsType": "68", - "secretRef": { - "name": "69", - "namespace": "70" - }, - "options": { - "71": "72" - } - }, - "azureFile": { - "secretName": "73", - "shareName": "74", - "readOnly": true, - "secretNamespace": "75" - }, - "vsphereVolume": { - "volumePath": "76", - "fsType": "77", - "storagePolicyName": "78", - "storagePolicyID": "79" - }, - "quobyte": { - "registry": "80", - "volume": "81", - "readOnly": true, - "user": "82", - "group": "83", - "tenant": "84" - }, - "azureDisk": { - "diskName": "85", - "diskURI": "86", - "cachingMode": "狞夌碕ʂɭ", - "fsType": "87", - "readOnly": true, - "kind": "P$Iņɖ橙9ȫŚʒ" - }, - "photonPersistentDisk": { - "pdID": "88", - "fsType": "89" - }, - "portworxVolume": { - "volumeID": "90", - "fsType": "91" - }, - "scaleIO": { - "gateway": "92", - "system": "93", - "secretRef": { - "name": "94", - "namespace": "95" - }, - "sslEnabled": true, - "protectionDomain": "96", - "storagePool": "97", - "storageMode": "98", - "volumeName": "99", - "fsType": "100", - "readOnly": true - }, - "local": { - "path": "101", - "fsType": "102" - }, - "storageos": { - "volumeName": "103", - "volumeNamespace": "104", - "fsType": "105", - "readOnly": true, - "secretRef": { - "kind": "106", - "namespace": "107", - "name": "108", - "uid": "ȸd賑'üA謥ǣ偐圠=l", - "apiVersion": "109", - "resourceVersion": "110", - "fieldPath": "111" - } - }, - "csi": { - "driver": "112", - "volumeHandle": "113", - "fsType": "114", - "volumeAttributes": { - "115": "116" - }, - "controllerPublishSecretRef": { - "name": "117", - "namespace": "118" - }, - "nodeStageSecretRef": { - "name": "119", - "namespace": "120" - }, - "nodePublishSecretRef": { - "name": "121", - "namespace": "122" - }, - "controllerExpandSecretRef": { - "name": "123", - "namespace": "124" - } - }, - "accessModes": [ - "ƺ魋Ď儇击3ƆìQ" - ], - "claimRef": { - "kind": "125", - "namespace": "126", - "name": "127", - "uid": "艋涽託仭w-檮Ǣ冖ž琔n宂¬轚", - "apiVersion": "128", - "resourceVersion": "129", - "fieldPath": "130" - }, - "persistentVolumeReclaimPolicy": "£趕ã/鈱$-议}ȧ外ĺ", - "storageClassName": "131", - "mountOptions": [ - "132" - ], - "volumeMode": "譋娲瘹ɭȊɚɎ(", - "nodeAffinity": { - "required": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "133", - "operator": "f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1", - "values": [ - "134" - ] - } - ], - "matchFields": [ - { - "key": "135", - "operator": "l恕ɍȇ廄裭4懙鏮嵒", - "values": [ - "136" - ] - } - ] - } - ] - } - } - } - }, - "nodeName": "137" - }, - "status": { - "attached": false, - "attachmentMetadata": { - "138": "139" - }, - "attachError": { - "time": "2498-07-05T18:17:05Z", - "message": "140" - }, - "detachError": { - "time": "2336-02-05T15:38:29Z", - "message": "141" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.after_roundtrip.pb deleted file mode 100644 index 517e2e6eff534ba9065bed1cb5de7ba2027260fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1230 zcmX9-T})g>6uvX0fH&IGvFc`H3|=vkTY)<>_h)94nwIp%O-yKwRWT-lVzs5E0%}6j z#6^C0ZM&sFDQ?j2(uggKifx5rHI@Z-dGO5_e-a;hcklY3FZNOE8N3fO-+bpg=R0Ta zy+=ilra!6g?CI_5Zadu3cvSQ>zTMUI9wjx0x;o!I*0Ha*x9#<}j&&UGC8_)LJkk*( zh=-AFAjdRvgXK&jclDiUaVFj-f=j1g%gq(08iT1X++5<2KfBbyc2QTlHghb`7F@WF zYcVdxFMsy`6icLHCz`dE?8x;G2S52SwSrnJb>tBw+N*RV38vPOS{+js#*`b|_xJfL z32<4C^^(?(9ooE0#|{*5IM_nWfdY;beH0KFI$-F4p(9O*xfa1Lwa`JxaaqmX z-!A`J6~->F)lBT#txDm5!fk&HkOxSF6$fsf1scE}4Ct{VFsjD^*&$?L&*_E>^1#gl zHxJxA+4r!H1-J>S6oQ#paE685k1Pm)iEzUYloB)k>_?^a#AbgX3o5T3v7Ie-&#ny> zCX1h6l=-V`)0<;)1ik{UU&t{8cPgQ*q#{GOv)gWs&@dJ4euT{M^P@@!k)q+vV|pJW;H9!R6~qKx3KDm z+2IG*ZqD#a2aNqntO_z0x?`SE7mOx~H*N)U7w)WN-)|^hS=dPX zLz8RYm6GGf{e}M9^TDlY6QqK{BB51onW5X6;Ksyirl~ygRb4}{uy88>nLj(3y9pXj zm4-EwAe->#7E4phg={`vm@b^DkG`V6tiPx?K@XghC*JfwNaoM`sd<0&T5)tS|NVj1 zlbf-_g{3_kv#Ud;^v6$A=n=mCI+fs%P-ihVQ8=9+_E!diOx7+AUo4+p@UM?4l^O?r r3#(cq>Jqqs8MzGa(5tI2{eCC;OpOMFZ5fKVyZOh!?*9oI)(q`GkhPeI#?A`V&$S zC5UOr){$fAxuJ48p1b;Xq&ORE=fS1Zujb|p(~ZIO=WZ^3$e&y4q`NFvxHff6&*qG~ zj%!jT_%DAB{1}ZVqbFLF*6ir@4~9PeA-RIuDplkW#5<}~BnY<5Beg2FsD>@3Z{OGN zuT11ePWGZIuYrH=!GmfMsR1_!w+Njdz4v`(Ez*dJnMv+1P0R*gB+9Ay#?V0> z6q!XZqaj7dj2SA}HrP%G(K^6Tn0Xpz9HPR&wn?#Vg{xI;Q-W=_M+q~)kYPKa?DEf< zf4AgyY`Z}AOeKtMzDGGA6JU9c`J&Q+9jj%RiXAB6Fp!0q0|gu>@+cq>bU@GnK}Q%6 zb4`L>%R~nt$E7uQf4lr^m4;nbs~Fg|+a$vQhTHKNAP*4Nqz}|Q6F7i97|^3fU{sF* zvO`G6p3?&h@<7c4H4oH0(f_cDIjC_1O zk%5IvvGBrJ@D?mYq{1@IR+NHNKo)_6UO^FQFlpEt95T<7E?2rd>Eik$`K8x`ug*QS z`pw=Tb9p1}M-zVXljbf1qJmby_Zf!6T13x5rbQvslJ5X68{R!!j&!+n3wsjt@D>(; zso5eil?_oE*}}3PYHJU!-z;b2xikLYh(EHz)`wR!`}KX2EDKT>x}%<67mUS=H*N*< z7w)WN-)ksdS=dPV!&7VDmJ$=k{e^+snc&up0aQ-m5YQ?!jnM6MaAR^c-Bcd^vaTUm zSU8pc)SsKm-2@J^B!{+;ARG7R7faL2g={`nm?@m8kG!nDq`sgwK@W_PC*JViPvp=0 z$&5dCtvI%r|89TV$<65D!cz0b-0E;C_0iK7^a$U6olI~@sH+&AES%1d_$z}!I%^k4 zE|$+O_}9lJOO6A-g;}i-xdg^xMkcf!YIXIc-|r-zsZqdTo4Rz|-TY&4_x}z{Q*`A& DS~_ZY diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.yaml deleted file mode 100644 index 29c060da3..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1.VolumeAttachment.yaml +++ /dev/null @@ -1,234 +0,0 @@ -apiVersion: storage.k8s.io/v1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attacher: "24" - nodeName: "137" - source: - inlineVolumeSpec: - accessModes: - - ƺ魋Ď儇击3ƆìQ - awsElasticBlockStore: - fsType: "29" - partition: 1749009427 - readOnly: true - volumeID: "28" - azureDisk: - cachingMode: 狞夌碕ʂɭ - diskName: "85" - diskURI: "86" - fsType: "87" - kind: P$Iņɖ橙9ȫŚʒ - readOnly: true - azureFile: - readOnly: true - secretName: "73" - secretNamespace: "75" - shareName: "74" - capacity: - ǸƢ6/: "569" - cephfs: - monitors: - - "56" - path: "57" - readOnly: true - secretFile: "59" - secretRef: - name: "60" - namespace: "61" - user: "58" - cinder: - fsType: "53" - secretRef: - name: "54" - namespace: "55" - volumeID: "52" - claimRef: - apiVersion: "128" - fieldPath: "130" - kind: "125" - name: "127" - namespace: "126" - resourceVersion: "129" - uid: 艋涽託仭w-檮Ǣ冖ž琔n宂¬轚 - csi: - controllerExpandSecretRef: - name: "123" - namespace: "124" - controllerPublishSecretRef: - name: "117" - namespace: "118" - driver: "112" - fsType: "114" - nodePublishSecretRef: - name: "121" - namespace: "122" - nodeStageSecretRef: - name: "119" - namespace: "120" - volumeAttributes: - "115": "116" - volumeHandle: "113" - fc: - fsType: "63" - lun: 2072604405 - targetWWNs: - - "62" - wwids: - - "64" - flexVolume: - driver: "67" - fsType: "68" - options: - "71": "72" - secretRef: - name: "69" - namespace: "70" - flocker: - datasetName: "65" - datasetUUID: "66" - gcePersistentDisk: - fsType: "27" - partition: -799278564 - pdName: "26" - readOnly: true - glusterfs: - endpoints: "31" - endpointsNamespace: "33" - path: "32" - hostPath: - path: "30" - type: 甞谐颋DžS - iscsi: - fsType: "47" - initiatorName: "51" - iqn: "45" - iscsiInterface: "46" - lun: -443114323 - portals: - - "48" - secretRef: - name: "49" - namespace: "50" - targetPortal: "44" - local: - fsType: "102" - path: "101" - mountOptions: - - "132" - nfs: - path: "35" - readOnly: true - server: "34" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "133" - operator: f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1 - values: - - "134" - matchFields: - - key: "135" - operator: l恕ɍȇ廄裭4懙鏮嵒 - values: - - "136" - persistentVolumeReclaimPolicy: £趕ã/鈱$-议}ȧ外ĺ - photonPersistentDisk: - fsType: "89" - pdID: "88" - portworxVolume: - fsType: "91" - volumeID: "90" - quobyte: - group: "83" - readOnly: true - registry: "80" - tenant: "84" - user: "82" - volume: "81" - rbd: - fsType: "38" - image: "37" - keyring: "41" - monitors: - - "36" - pool: "39" - secretRef: - name: "42" - namespace: "43" - user: "40" - scaleIO: - fsType: "100" - gateway: "92" - protectionDomain: "96" - readOnly: true - secretRef: - name: "94" - namespace: "95" - sslEnabled: true - storageMode: "98" - storagePool: "97" - system: "93" - volumeName: "99" - storageClassName: "131" - storageos: - fsType: "105" - readOnly: true - secretRef: - apiVersion: "109" - fieldPath: "111" - kind: "106" - name: "108" - namespace: "107" - resourceVersion: "110" - uid: ȸd賑'üA謥ǣ偐圠=l - volumeName: "103" - volumeNamespace: "104" - volumeMode: 譋娲瘹ɭȊɚɎ( - vsphereVolume: - fsType: "77" - storagePolicyID: "79" - storagePolicyName: "78" - volumePath: "76" - persistentVolumeName: "25" -status: - attachError: - message: "140" - time: "2498-07-05T18:17:05Z" - attached: false - attachmentMetadata: - "138": "139" - detachError: - message: "141" - time: "2336-02-05T15:38:29Z" diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.json deleted file mode 100644 index c1cc5c379..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25", - "inlineVolumeSpec": { - "capacity": { - "ǸƢ6/": "569" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": -799278564, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": 1749009427, - "readOnly": true - }, - "hostPath": { - "path": "30", - "type": "甞谐颋DžS" - }, - "glusterfs": { - "endpoints": "31", - "path": "32", - "endpointsNamespace": "33" - }, - "nfs": { - "server": "34", - "path": "35", - "readOnly": true - }, - "rbd": { - "monitors": [ - "36" - ], - "image": "37", - "fsType": "38", - "pool": "39", - "user": "40", - "keyring": "41", - "secretRef": { - "name": "42", - "namespace": "43" - } - }, - "iscsi": { - "targetPortal": "44", - "iqn": "45", - "lun": -443114323, - "iscsiInterface": "46", - "fsType": "47", - "portals": [ - "48" - ], - "secretRef": { - "name": "49", - "namespace": "50" - }, - "initiatorName": "51" - }, - "cinder": { - "volumeID": "52", - "fsType": "53", - "secretRef": { - "name": "54", - "namespace": "55" - } - }, - "cephfs": { - "monitors": [ - "56" - ], - "path": "57", - "user": "58", - "secretFile": "59", - "secretRef": { - "name": "60", - "namespace": "61" - }, - "readOnly": true - }, - "fc": { - "targetWWNs": [ - "62" - ], - "lun": 2072604405, - "fsType": "63", - "wwids": [ - "64" - ] - }, - "flocker": { - "datasetName": "65", - "datasetUUID": "66" - }, - "flexVolume": { - "driver": "67", - "fsType": "68", - "secretRef": { - "name": "69", - "namespace": "70" - }, - "options": { - "71": "72" - } - }, - "azureFile": { - "secretName": "73", - "shareName": "74", - "readOnly": true, - "secretNamespace": "75" - }, - "vsphereVolume": { - "volumePath": "76", - "fsType": "77", - "storagePolicyName": "78", - "storagePolicyID": "79" - }, - "quobyte": { - "registry": "80", - "volume": "81", - "readOnly": true, - "user": "82", - "group": "83", - "tenant": "84" - }, - "azureDisk": { - "diskName": "85", - "diskURI": "86", - "cachingMode": "狞夌碕ʂɭ", - "fsType": "87", - "readOnly": true, - "kind": "P$Iņɖ橙9ȫŚʒ" - }, - "photonPersistentDisk": { - "pdID": "88", - "fsType": "89" - }, - "portworxVolume": { - "volumeID": "90", - "fsType": "91" - }, - "scaleIO": { - "gateway": "92", - "system": "93", - "secretRef": { - "name": "94", - "namespace": "95" - }, - "sslEnabled": true, - "protectionDomain": "96", - "storagePool": "97", - "storageMode": "98", - "volumeName": "99", - "fsType": "100", - "readOnly": true - }, - "local": { - "path": "101", - "fsType": "102" - }, - "storageos": { - "volumeName": "103", - "volumeNamespace": "104", - "fsType": "105", - "readOnly": true, - "secretRef": { - "kind": "106", - "namespace": "107", - "name": "108", - "uid": "ȸd賑'üA謥ǣ偐圠=l", - "apiVersion": "109", - "resourceVersion": "110", - "fieldPath": "111" - } - }, - "csi": { - "driver": "112", - "volumeHandle": "113", - "fsType": "114", - "volumeAttributes": { - "115": "116" - }, - "controllerPublishSecretRef": { - "name": "117", - "namespace": "118" - }, - "nodeStageSecretRef": { - "name": "119", - "namespace": "120" - }, - "nodePublishSecretRef": { - "name": "121", - "namespace": "122" - }, - "controllerExpandSecretRef": { - "name": "123", - "namespace": "124" - } - }, - "accessModes": [ - "ƺ魋Ď儇击3ƆìQ" - ], - "claimRef": { - "kind": "125", - "namespace": "126", - "name": "127", - "uid": "艋涽託仭w-檮Ǣ冖ž琔n宂¬轚", - "apiVersion": "128", - "resourceVersion": "129", - "fieldPath": "130" - }, - "persistentVolumeReclaimPolicy": "£趕ã/鈱$-议}ȧ外ĺ", - "storageClassName": "131", - "mountOptions": [ - "132" - ], - "volumeMode": "譋娲瘹ɭȊɚɎ(", - "nodeAffinity": { - "required": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "133", - "operator": "f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1", - "values": [ - "134" - ] - } - ], - "matchFields": [ - { - "key": "135", - "operator": "l恕ɍȇ廄裭4懙鏮嵒", - "values": [ - "136" - ] - } - ] - } - ] - } - } - } - }, - "nodeName": "137" - }, - "status": { - "attached": false, - "attachmentMetadata": { - "138": "139" - }, - "attachError": { - "time": "2498-07-05T18:17:05Z", - "message": "140" - }, - "detachError": { - "time": "2336-02-05T15:38:29Z", - "message": "141" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.pb deleted file mode 100644 index 158635d8ea4778315e575900e525945d749e5388..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1236 zcmX9-UrZcD7~dIEz>T)JR(rV^gDZ*T5ZIa7*`2whrX_vx5))cuRg8&;Vrxqa0%}6j z#6$kx+4f3-QoNwOqY+yU7268MYAgrb@!*>;{z-i3-tGCIFZNOEH@FWozxjQ?@B4k< z?Cx>VtLY8;p5DH$p6HQ|rsJZw>FuuO_eiv}`)HIHHHW)8-#yW>zppR)#?ccUC;N=l z19~3mh#H6mk!>O#GIK-aOd@yfok(#u9u@xOGq3073)4;h^cPMpaoC$%?x4GgBORM^ z%e4g)4tFfdr1<5}fuCZDRIIy2Yt4?{_;BcxA5*KStx`v>fkbyL`@M}=brJ9kd(lND-q}sSKR;BOKD>s)n(oVCnL$BbDG=_HQk3!Hf zFm(f|zyBKe=RQ2B78x}_3!r7-!sz`UDr-^D&@r=&2TK#P{+G#eI2S8;%mawl0fxfN4PquBDnr<|D7HzsTE{juu+8>qVFnm7Y#zw2{Jik*w!MjM z2gI(Wg|RL6X@^t-To$)p*4i;AExUEhp#W!K3o#A_IFCFI2n;zGaxmmF1Tn`lutO|# z2yz@+bMLn+zg7jY!)mnjDLuJ0P{@MHtw;3X z*1G4`hYM51&o9aRwe^{;@i+os0oO0&ID$KsP*#$FHiH`A0Fz6mx|A@t)M{`|$etJ(J( zi&qyn)86pZ`gf(|#7S>);Ld`7dnN=@L1B^5Dzid?I~o7xWU48lYyUAy3G$3rtRK&flKL#8ACrD5;wf_LW*=s}q diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.yaml deleted file mode 100644 index e3de2085d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.after_roundtrip.yaml +++ /dev/null @@ -1,231 +0,0 @@ -apiVersion: storage.k8s.io/v1alpha1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attacher: "24" - nodeName: "137" - source: - inlineVolumeSpec: - accessModes: - - ƺ魋Ď儇击3ƆìQ - awsElasticBlockStore: - fsType: "29" - partition: 1749009427 - readOnly: true - volumeID: "28" - azureDisk: - cachingMode: 狞夌碕ʂɭ - diskName: "85" - diskURI: "86" - fsType: "87" - kind: P$Iņɖ橙9ȫŚʒ - readOnly: true - azureFile: - readOnly: true - secretName: "73" - secretNamespace: "75" - shareName: "74" - capacity: - ǸƢ6/: "569" - cephfs: - monitors: - - "56" - path: "57" - readOnly: true - secretFile: "59" - secretRef: - name: "60" - namespace: "61" - user: "58" - cinder: - fsType: "53" - secretRef: - name: "54" - namespace: "55" - volumeID: "52" - claimRef: - apiVersion: "128" - fieldPath: "130" - kind: "125" - name: "127" - namespace: "126" - resourceVersion: "129" - uid: 艋涽託仭w-檮Ǣ冖ž琔n宂¬轚 - csi: - controllerExpandSecretRef: - name: "123" - namespace: "124" - controllerPublishSecretRef: - name: "117" - namespace: "118" - driver: "112" - fsType: "114" - nodePublishSecretRef: - name: "121" - namespace: "122" - nodeStageSecretRef: - name: "119" - namespace: "120" - volumeAttributes: - "115": "116" - volumeHandle: "113" - fc: - fsType: "63" - lun: 2072604405 - targetWWNs: - - "62" - wwids: - - "64" - flexVolume: - driver: "67" - fsType: "68" - options: - "71": "72" - secretRef: - name: "69" - namespace: "70" - flocker: - datasetName: "65" - datasetUUID: "66" - gcePersistentDisk: - fsType: "27" - partition: -799278564 - pdName: "26" - readOnly: true - glusterfs: - endpoints: "31" - endpointsNamespace: "33" - path: "32" - hostPath: - path: "30" - type: 甞谐颋DžS - iscsi: - fsType: "47" - initiatorName: "51" - iqn: "45" - iscsiInterface: "46" - lun: -443114323 - portals: - - "48" - secretRef: - name: "49" - namespace: "50" - targetPortal: "44" - local: - fsType: "102" - path: "101" - mountOptions: - - "132" - nfs: - path: "35" - readOnly: true - server: "34" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "133" - operator: f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1 - values: - - "134" - matchFields: - - key: "135" - operator: l恕ɍȇ廄裭4懙鏮嵒 - values: - - "136" - persistentVolumeReclaimPolicy: £趕ã/鈱$-议}ȧ外ĺ - photonPersistentDisk: - fsType: "89" - pdID: "88" - portworxVolume: - fsType: "91" - volumeID: "90" - quobyte: - group: "83" - readOnly: true - registry: "80" - tenant: "84" - user: "82" - volume: "81" - rbd: - fsType: "38" - image: "37" - keyring: "41" - monitors: - - "36" - pool: "39" - secretRef: - name: "42" - namespace: "43" - user: "40" - scaleIO: - fsType: "100" - gateway: "92" - protectionDomain: "96" - readOnly: true - secretRef: - name: "94" - namespace: "95" - sslEnabled: true - storageMode: "98" - storagePool: "97" - system: "93" - volumeName: "99" - storageClassName: "131" - storageos: - fsType: "105" - readOnly: true - secretRef: - apiVersion: "109" - fieldPath: "111" - kind: "106" - name: "108" - namespace: "107" - resourceVersion: "110" - uid: ȸd賑'üA謥ǣ偐圠=l - volumeName: "103" - volumeNamespace: "104" - volumeMode: 譋娲瘹ɭȊɚɎ( - vsphereVolume: - fsType: "77" - storagePolicyID: "79" - storagePolicyName: "78" - volumePath: "76" - persistentVolumeName: "25" -status: - attachError: - message: "140" - time: "2498-07-05T18:17:05Z" - attached: false - attachmentMetadata: - "138": "139" - detachError: - message: "141" - time: "2336-02-05T15:38:29Z" diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.json deleted file mode 100644 index 56084c384..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.json +++ /dev/null @@ -1,308 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1alpha1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25", - "inlineVolumeSpec": { - "capacity": { - "ǸƢ6/": "569" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": -799278564, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": 1749009427, - "readOnly": true - }, - "hostPath": { - "path": "30", - "type": "甞谐颋DžS" - }, - "glusterfs": { - "endpoints": "31", - "path": "32", - "endpointsNamespace": "33" - }, - "nfs": { - "server": "34", - "path": "35", - "readOnly": true - }, - "rbd": { - "monitors": [ - "36" - ], - "image": "37", - "fsType": "38", - "pool": "39", - "user": "40", - "keyring": "41", - "secretRef": { - "name": "42", - "namespace": "43" - } - }, - "iscsi": { - "targetPortal": "44", - "iqn": "45", - "lun": -443114323, - "iscsiInterface": "46", - "fsType": "47", - "portals": [ - "48" - ], - "secretRef": { - "name": "49", - "namespace": "50" - }, - "initiatorName": "51" - }, - "cinder": { - "volumeID": "52", - "fsType": "53", - "secretRef": { - "name": "54", - "namespace": "55" - } - }, - "cephfs": { - "monitors": [ - "56" - ], - "path": "57", - "user": "58", - "secretFile": "59", - "secretRef": { - "name": "60", - "namespace": "61" - }, - "readOnly": true - }, - "fc": { - "targetWWNs": [ - "62" - ], - "lun": 2072604405, - "fsType": "63", - "wwids": [ - "64" - ] - }, - "flocker": { - "datasetName": "65", - "datasetUUID": "66" - }, - "flexVolume": { - "driver": "67", - "fsType": "68", - "secretRef": { - "name": "69", - "namespace": "70" - }, - "options": { - "71": "72" - } - }, - "azureFile": { - "secretName": "73", - "shareName": "74", - "readOnly": true, - "secretNamespace": "75" - }, - "vsphereVolume": { - "volumePath": "76", - "fsType": "77", - "storagePolicyName": "78", - "storagePolicyID": "79" - }, - "quobyte": { - "registry": "80", - "volume": "81", - "readOnly": true, - "user": "82", - "group": "83", - "tenant": "84" - }, - "azureDisk": { - "diskName": "85", - "diskURI": "86", - "cachingMode": "狞夌碕ʂɭ", - "fsType": "87", - "readOnly": true, - "kind": "P$Iņɖ橙9ȫŚʒ" - }, - "photonPersistentDisk": { - "pdID": "88", - "fsType": "89" - }, - "portworxVolume": { - "volumeID": "90", - "fsType": "91" - }, - "scaleIO": { - "gateway": "92", - "system": "93", - "secretRef": { - "name": "94", - "namespace": "95" - }, - "sslEnabled": true, - "protectionDomain": "96", - "storagePool": "97", - "storageMode": "98", - "volumeName": "99", - "fsType": "100", - "readOnly": true - }, - "local": { - "path": "101", - "fsType": "102" - }, - "storageos": { - "volumeName": "103", - "volumeNamespace": "104", - "fsType": "105", - "readOnly": true, - "secretRef": { - "kind": "106", - "namespace": "107", - "name": "108", - "uid": "ȸd賑'üA謥ǣ偐圠=l", - "apiVersion": "109", - "resourceVersion": "110", - "fieldPath": "111" - } - }, - "csi": { - "driver": "112", - "volumeHandle": "113", - "fsType": "114", - "volumeAttributes": { - "115": "116" - }, - "controllerPublishSecretRef": { - "name": "117", - "namespace": "118" - }, - "nodeStageSecretRef": { - "name": "119", - "namespace": "120" - }, - "nodePublishSecretRef": { - "name": "121", - "namespace": "122" - }, - "controllerExpandSecretRef": { - "name": "123", - "namespace": "124" - } - }, - "accessModes": [ - "ƺ魋Ď儇击3ƆìQ" - ], - "claimRef": { - "kind": "125", - "namespace": "126", - "name": "127", - "uid": "艋涽託仭w-檮Ǣ冖ž琔n宂¬轚", - "apiVersion": "128", - "resourceVersion": "129", - "fieldPath": "130" - }, - "persistentVolumeReclaimPolicy": "£趕ã/鈱$-议}ȧ外ĺ", - "storageClassName": "131", - "mountOptions": [ - "132" - ], - "volumeMode": "譋娲瘹ɭȊɚɎ(", - "nodeAffinity": { - "required": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "133", - "operator": "f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1", - "values": [ - "134" - ] - } - ], - "matchFields": [ - { - "key": "135", - "operator": "l恕ɍȇ廄裭4懙鏮嵒", - "values": [ - "136" - ] - } - ] - } - ] - } - } - } - }, - "nodeName": "137" - }, - "status": { - "attached": false, - "attachmentMetadata": { - "138": "139" - }, - "attachError": { - "time": "2498-07-05T18:17:05Z", - "message": "140" - }, - "detachError": { - "time": "2336-02-05T15:38:29Z", - "message": "141" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.pb deleted file mode 100644 index 08a0beba476e3f74f1867213c0872e80da1df69b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1252 zcmX9-T}&KR6rOuY0Vmqxwc5?b7#v9?gTTza^KSdM?hxz27G6;p1%I>-pJw3renOX>Fw_3_smFF&yk2pY7TXGy?eZKUw?n(jU&f9PxO<_ z1L{vmMU)^GM3#nZUCRxZ)A8K3cf!TFScLnRPrsg9D9kkZGoL%T_#tn8xs&cT9pPBi zHe8D{?%0k&nc%IR3r#Cjia?HHfa!> zOxwACz+0WnkDlyXk8Pao(XnY73P-)zv<9$g$50DU9r9#35%VTv<@Ck%xyBd0vB6%4sG$ z)C$`XWO#@AC_u)ach}3|agIfg7kKO;ivK9r2ikU$kEKSb&UnI(@ z_~!5n8YnW8U`7Lqh8fdUur09d0HSq(p)hlUm~n^-9a{#)mKmy6u|)~C*j^>X07Hgl z2eKMMXX?YRs;{Uosm;&>W8|r~ zybluj^IkIJjbAU0FXg{G(0+0&dbqIMvN^vtQc8XNj0ru$w_hg{Y!c`yMyCp=^P}GC zke|+4#nFr9vy0x13CWVb;4Zbg`tt906VKKt;IIr$I__=#G1TzC J!wf2#@*i5OY`Xve diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml deleted file mode 100644 index 5959d6554..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1alpha1.VolumeAttachment.yaml +++ /dev/null @@ -1,234 +0,0 @@ -apiVersion: storage.k8s.io/v1alpha1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attacher: "24" - nodeName: "137" - source: - inlineVolumeSpec: - accessModes: - - ƺ魋Ď儇击3ƆìQ - awsElasticBlockStore: - fsType: "29" - partition: 1749009427 - readOnly: true - volumeID: "28" - azureDisk: - cachingMode: 狞夌碕ʂɭ - diskName: "85" - diskURI: "86" - fsType: "87" - kind: P$Iņɖ橙9ȫŚʒ - readOnly: true - azureFile: - readOnly: true - secretName: "73" - secretNamespace: "75" - shareName: "74" - capacity: - ǸƢ6/: "569" - cephfs: - monitors: - - "56" - path: "57" - readOnly: true - secretFile: "59" - secretRef: - name: "60" - namespace: "61" - user: "58" - cinder: - fsType: "53" - secretRef: - name: "54" - namespace: "55" - volumeID: "52" - claimRef: - apiVersion: "128" - fieldPath: "130" - kind: "125" - name: "127" - namespace: "126" - resourceVersion: "129" - uid: 艋涽託仭w-檮Ǣ冖ž琔n宂¬轚 - csi: - controllerExpandSecretRef: - name: "123" - namespace: "124" - controllerPublishSecretRef: - name: "117" - namespace: "118" - driver: "112" - fsType: "114" - nodePublishSecretRef: - name: "121" - namespace: "122" - nodeStageSecretRef: - name: "119" - namespace: "120" - volumeAttributes: - "115": "116" - volumeHandle: "113" - fc: - fsType: "63" - lun: 2072604405 - targetWWNs: - - "62" - wwids: - - "64" - flexVolume: - driver: "67" - fsType: "68" - options: - "71": "72" - secretRef: - name: "69" - namespace: "70" - flocker: - datasetName: "65" - datasetUUID: "66" - gcePersistentDisk: - fsType: "27" - partition: -799278564 - pdName: "26" - readOnly: true - glusterfs: - endpoints: "31" - endpointsNamespace: "33" - path: "32" - hostPath: - path: "30" - type: 甞谐颋DžS - iscsi: - fsType: "47" - initiatorName: "51" - iqn: "45" - iscsiInterface: "46" - lun: -443114323 - portals: - - "48" - secretRef: - name: "49" - namespace: "50" - targetPortal: "44" - local: - fsType: "102" - path: "101" - mountOptions: - - "132" - nfs: - path: "35" - readOnly: true - server: "34" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "133" - operator: f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1 - values: - - "134" - matchFields: - - key: "135" - operator: l恕ɍȇ廄裭4懙鏮嵒 - values: - - "136" - persistentVolumeReclaimPolicy: £趕ã/鈱$-议}ȧ外ĺ - photonPersistentDisk: - fsType: "89" - pdID: "88" - portworxVolume: - fsType: "91" - volumeID: "90" - quobyte: - group: "83" - readOnly: true - registry: "80" - tenant: "84" - user: "82" - volume: "81" - rbd: - fsType: "38" - image: "37" - keyring: "41" - monitors: - - "36" - pool: "39" - secretRef: - name: "42" - namespace: "43" - user: "40" - scaleIO: - fsType: "100" - gateway: "92" - protectionDomain: "96" - readOnly: true - secretRef: - name: "94" - namespace: "95" - sslEnabled: true - storageMode: "98" - storagePool: "97" - system: "93" - volumeName: "99" - storageClassName: "131" - storageos: - fsType: "105" - readOnly: true - secretRef: - apiVersion: "109" - fieldPath: "111" - kind: "106" - name: "108" - namespace: "107" - resourceVersion: "110" - uid: ȸd賑'üA謥ǣ偐圠=l - volumeName: "103" - volumeNamespace: "104" - volumeMode: 譋娲瘹ɭȊɚɎ( - vsphereVolume: - fsType: "77" - storagePolicyID: "79" - storagePolicyName: "78" - volumePath: "76" - persistentVolumeName: "25" -status: - attachError: - message: "140" - time: "2498-07-05T18:17:05Z" - attached: false - attachmentMetadata: - "138": "139" - detachError: - message: "141" - time: "2336-02-05T15:38:29Z" diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.json deleted file mode 100644 index 300c88b1f..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "kind": "CSIDriver", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "attachRequired": false, - "podInfoOnMount": true - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.pb deleted file mode 100644 index c1e012b929ab91915c3f93789cbcf7b1f481910f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 257 zcmV+c0sj7LICB6BBMKICbZ>HDXJsyHICCy(Z!dN+Vr6t;F%k(wQ%OW}X?A6D643z) z$N>rgG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zEeZlLHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislG5`_;2mlZP H8UP{y9qL*e diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml deleted file mode 100644 index dc7652848..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.after_roundtrip.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSIDriver -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attachRequired: false - podInfoOnMount: true diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.json deleted file mode 100644 index d9727cf62..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "kind": "CSIDriver", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "attachRequired": false, - "podInfoOnMount": true - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.pb deleted file mode 100644 index 92798dc3dd4f2a1a2dbdca85fa1fc23b131bf7b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 273 zcmV+s0q*{5ICB6BBMKICbZ>HDXJsyHICCy(Z!dN+Vr6t;F%k(wQ%OW}X?A6D65#;~ z*Z~RwG75&|(WY9I;%F)|tgF*70#M0(}Bl*osBbH$3rk8mmiF)=UzI0143F*JGtF*S+- zJqiLbHWDG}kc#D$is_@7#hxuy<(#y`w_z{Ilzrxrfhgv=m&Ar$8UislDi8_|3IZ`W X5(o+g3IZ`X5&#ke2mlZP8UP{y@y1({ diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.yaml deleted file mode 100644 index 4a41637ba..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSIDriver.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSIDriver -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - fields: - "18": - "19": null - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attachRequired: false - podInfoOnMount: true diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json deleted file mode 100644 index 33d909c16..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "kind": "CSINode", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "drivers": [ - { - "name": "24", - "nodeID": "25", - "topologyKeys": [ - "26" - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.pb deleted file mode 100644 index 3b7e3c7896be708bcfa6ee28a1c2db40b170a0e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmV+k0rviDICB6BAqp0AbZ>HDXJsyHICCy(Z!dN+Vr6t;F%kzuQ%O#5WMvZD0Sd?g z3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3 zIW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA1 z0XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBPO z0x>ocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*h;*5)KLs3IZ}T P5&|+c8Uivl8UP{y&{A5n diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml deleted file mode 100644 index 6d0092ea9..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.after_roundtrip.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: CSINode -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - drivers: - - name: "24" - nodeID: "25" - topologyKeys: - - "26" diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.json deleted file mode 100644 index 9f53116e0..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "kind": "CSINode", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "drivers": [ - { - "name": "24", - "nodeID": "25", - "topologyKeys": [ - "26" - ] - } - ] - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.CSINode.pb deleted file mode 100644 index a56b23c3c73f1ba94b833c016fbfc52238afaa7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmV+!0p|W|ICB6BAqp0AbZ>HDXJsyHICCy(Z!dN+Vr6t;F%kzuQ%O#5WMvZT0Sedw z3IQ?_0W%r_G$H{tDk8*%>7$Fpt8q%^o{C{O=%I~Z#Hh)bF6fxAHpGio<)pY}G88d3 zIW{yhH83|cI5RjlH8wCZGdVch?t;~Ui=2UQLI6;$h_!=-pU#}S0a^wM0XGr>IARA1 z0XY%^F)(T%3IZ`Q8UishA`V1)<-3%~hkJ9yipGy{DgrSvFaS6Kasn|ldIB*uiUBocA?c8c<&=u)qnX8?Emh^5w8OVyFUgdB=8=IY=DC-|hFuy0F*hm@3JwYaF*p(k f3I+-SF*y5O!M0<7d(XM0t1zJpoh6W54j73a_CRI#^rd^D> zK&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefgHflWEIsHgmEYLJ_BL*QRBNHhO zE+!*WAj?dN?f8yki_G-3n2gK~7_H=vbXGp!-uisURJ)^lpSSOP*4F!U^Hlri-5U>W V);-?u#Ki^DX#vz}DaD|~006qeb}0Y= diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml deleted file mode 100644 index 8dd0ff3b8..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.after_roundtrip.yaml +++ /dev/null @@ -1,43 +0,0 @@ -allowVolumeExpansion: true -allowedTopologies: -- matchLabelExpressions: - - key: "28" - values: - - "29" -apiVersion: storage.k8s.io/v1beta1 -kind: StorageClass -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -mountOptions: -- "27" -parameters: - "25": "26" -provisioner: "24" -reclaimPolicy: ǸƢ6/ -volumeBindingMode: ĉy緅縕>Ž燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.json deleted file mode 100644 index 941571977..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "kind": "StorageClass", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "provisioner": "24", - "parameters": { - "25": "26" - }, - "reclaimPolicy": "ǸƢ6/", - "mountOptions": [ - "27" - ], - "allowVolumeExpansion": true, - "volumeBindingMode": "ĉy緅縕\u003eŽ燹憍峕?狱³-Ǐ", - "allowedTopologies": [ - { - "matchLabelExpressions": [ - { - "key": "28", - "values": [ - "29" - ] - } - ] - } - ] -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.StorageClass.pb deleted file mode 100644 index 3aff29c90eb88dd4dfa72aab780d329b1e80959d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 342 zcmd0{C}!YN;}R<_$uCMwPu0t|DAvo&*Do_nN-aq=6ygbnh&$&b78eUGX5zZR$i-+R z#AqzVXrjbus-<+K_2uI3BdZI&p3Un@w0N5O!M0<7d(XM0t1zJpoh6W54j73a_CRI#^rd^D- zK&56viZ3U0J)P3^a`DWg^K?U>&e?K!d!qiyDYefgHflWEIsHgmEYLJ_Edee*pmGZ# z4lXtzZ7IYc#AIY5#lgj7WC~=NDX|^jacq&9z7~^_xdEe<+>y@8=i6JK@0eŽ燹憍峕?狱³-Ǐ diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json deleted file mode 100644 index 17a913e4c..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17" - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25", - "inlineVolumeSpec": { - "capacity": { - "ǸƢ6/": "569" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": -799278564, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": 1749009427, - "readOnly": true - }, - "hostPath": { - "path": "30", - "type": "甞谐颋DžS" - }, - "glusterfs": { - "endpoints": "31", - "path": "32", - "endpointsNamespace": "33" - }, - "nfs": { - "server": "34", - "path": "35", - "readOnly": true - }, - "rbd": { - "monitors": [ - "36" - ], - "image": "37", - "fsType": "38", - "pool": "39", - "user": "40", - "keyring": "41", - "secretRef": { - "name": "42", - "namespace": "43" - } - }, - "iscsi": { - "targetPortal": "44", - "iqn": "45", - "lun": -443114323, - "iscsiInterface": "46", - "fsType": "47", - "portals": [ - "48" - ], - "secretRef": { - "name": "49", - "namespace": "50" - }, - "initiatorName": "51" - }, - "cinder": { - "volumeID": "52", - "fsType": "53", - "secretRef": { - "name": "54", - "namespace": "55" - } - }, - "cephfs": { - "monitors": [ - "56" - ], - "path": "57", - "user": "58", - "secretFile": "59", - "secretRef": { - "name": "60", - "namespace": "61" - }, - "readOnly": true - }, - "fc": { - "targetWWNs": [ - "62" - ], - "lun": 2072604405, - "fsType": "63", - "wwids": [ - "64" - ] - }, - "flocker": { - "datasetName": "65", - "datasetUUID": "66" - }, - "flexVolume": { - "driver": "67", - "fsType": "68", - "secretRef": { - "name": "69", - "namespace": "70" - }, - "options": { - "71": "72" - } - }, - "azureFile": { - "secretName": "73", - "shareName": "74", - "readOnly": true, - "secretNamespace": "75" - }, - "vsphereVolume": { - "volumePath": "76", - "fsType": "77", - "storagePolicyName": "78", - "storagePolicyID": "79" - }, - "quobyte": { - "registry": "80", - "volume": "81", - "readOnly": true, - "user": "82", - "group": "83", - "tenant": "84" - }, - "azureDisk": { - "diskName": "85", - "diskURI": "86", - "cachingMode": "狞夌碕ʂɭ", - "fsType": "87", - "readOnly": true, - "kind": "P$Iņɖ橙9ȫŚʒ" - }, - "photonPersistentDisk": { - "pdID": "88", - "fsType": "89" - }, - "portworxVolume": { - "volumeID": "90", - "fsType": "91" - }, - "scaleIO": { - "gateway": "92", - "system": "93", - "secretRef": { - "name": "94", - "namespace": "95" - }, - "sslEnabled": true, - "protectionDomain": "96", - "storagePool": "97", - "storageMode": "98", - "volumeName": "99", - "fsType": "100", - "readOnly": true - }, - "local": { - "path": "101", - "fsType": "102" - }, - "storageos": { - "volumeName": "103", - "volumeNamespace": "104", - "fsType": "105", - "readOnly": true, - "secretRef": { - "kind": "106", - "namespace": "107", - "name": "108", - "uid": "ȸd賑'üA謥ǣ偐圠=l", - "apiVersion": "109", - "resourceVersion": "110", - "fieldPath": "111" - } - }, - "csi": { - "driver": "112", - "volumeHandle": "113", - "fsType": "114", - "volumeAttributes": { - "115": "116" - }, - "controllerPublishSecretRef": { - "name": "117", - "namespace": "118" - }, - "nodeStageSecretRef": { - "name": "119", - "namespace": "120" - }, - "nodePublishSecretRef": { - "name": "121", - "namespace": "122" - }, - "controllerExpandSecretRef": { - "name": "123", - "namespace": "124" - } - }, - "accessModes": [ - "ƺ魋Ď儇击3ƆìQ" - ], - "claimRef": { - "kind": "125", - "namespace": "126", - "name": "127", - "uid": "艋涽託仭w-檮Ǣ冖ž琔n宂¬轚", - "apiVersion": "128", - "resourceVersion": "129", - "fieldPath": "130" - }, - "persistentVolumeReclaimPolicy": "£趕ã/鈱$-议}ȧ外ĺ", - "storageClassName": "131", - "mountOptions": [ - "132" - ], - "volumeMode": "譋娲瘹ɭȊɚɎ(", - "nodeAffinity": { - "required": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "133", - "operator": "f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1", - "values": [ - "134" - ] - } - ], - "matchFields": [ - { - "key": "135", - "operator": "l恕ɍȇ廄裭4懙鏮嵒", - "values": [ - "136" - ] - } - ] - } - ] - } - } - } - }, - "nodeName": "137" - }, - "status": { - "attached": false, - "attachmentMetadata": { - "138": "139" - }, - "attachError": { - "time": "2498-07-05T18:17:05Z", - "message": "140" - }, - "detachError": { - "time": "2336-02-05T15:38:29Z", - "message": "141" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.pb deleted file mode 100644 index bf06c5f4e13309e9ab38ed78fc794a885a330a3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1235 zcmX9-UrZcD7~dIEz>T)J)_S=ZgDZ(-E3h-OvpaK1O-uUXB__1Ssu&YNvD(s70X3m% z;vs+UY;{z-i3-tGCIFZNOEH@FWozxjQ?@B4k< z?Cw#~qv@8utEacCyX|mC<5AJm_)b^T`=q_2w~ZJzhq^l7JJzwUx3}$$w~uuk?=?~n z=y{|gY9JOyj)}Ns<_61|MDE(V(c(;lYP5%EWk|=r4ZD@f>A7-eq=)cOoSVLsFaxTXFo2bCpP;FSx|ZPh(6p> z_uSf0VY2x7MVY_0HoZ9(N8l^q`h^@raHkT=N)pnh(QY`vdbi*6x?nU>ym>pAyKr|U`$0qT z>cU3aADUeIu9O@BqBOMG2(k%(Zm~4AT*&6*h3UeX`sl0rEBZ@%6ZF8C@zh)XhspeTKQ-@X!y0zJaFU#Akd5$Y_)CJLwX!~V)ZkjXm5;fv+73;vBU wrBdU-Z(&z!hPnhMU`8gxJM`-6%fH`EK3k&!;n=1k?rr`tu={_4gf&z954kOB*Z=?k diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml deleted file mode 100644 index 8bede776d..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.after_roundtrip.yaml +++ /dev/null @@ -1,231 +0,0 @@ -apiVersion: storage.k8s.io/v1beta1 -kind: VolumeAttachment -metadata: - annotations: - "9": "10" - clusterName: "15" - creationTimestamp: null - deletionGracePeriodSeconds: -4955867275792137171 - finalizers: - - "14" - generateName: "3" - generation: 8071137005907523419 - labels: - "7": "8" - managedFields: - - apiVersion: "17" - manager: "16" - operation: 鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć] - name: "2" - namespace: "4" - ownerReferences: - - apiVersion: "11" - blockOwnerDeletion: true - controller: false - kind: "12" - name: "13" - uid: Dz廔ȇ{sŊƏp - resourceVersion: "16964250748386560239" - selfLink: "5" - uid: ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e -spec: - attacher: "24" - nodeName: "137" - source: - inlineVolumeSpec: - accessModes: - - ƺ魋Ď儇击3ƆìQ - awsElasticBlockStore: - fsType: "29" - partition: 1749009427 - readOnly: true - volumeID: "28" - azureDisk: - cachingMode: 狞夌碕ʂɭ - diskName: "85" - diskURI: "86" - fsType: "87" - kind: P$Iņɖ橙9ȫŚʒ - readOnly: true - azureFile: - readOnly: true - secretName: "73" - secretNamespace: "75" - shareName: "74" - capacity: - ǸƢ6/: "569" - cephfs: - monitors: - - "56" - path: "57" - readOnly: true - secretFile: "59" - secretRef: - name: "60" - namespace: "61" - user: "58" - cinder: - fsType: "53" - secretRef: - name: "54" - namespace: "55" - volumeID: "52" - claimRef: - apiVersion: "128" - fieldPath: "130" - kind: "125" - name: "127" - namespace: "126" - resourceVersion: "129" - uid: 艋涽託仭w-檮Ǣ冖ž琔n宂¬轚 - csi: - controllerExpandSecretRef: - name: "123" - namespace: "124" - controllerPublishSecretRef: - name: "117" - namespace: "118" - driver: "112" - fsType: "114" - nodePublishSecretRef: - name: "121" - namespace: "122" - nodeStageSecretRef: - name: "119" - namespace: "120" - volumeAttributes: - "115": "116" - volumeHandle: "113" - fc: - fsType: "63" - lun: 2072604405 - targetWWNs: - - "62" - wwids: - - "64" - flexVolume: - driver: "67" - fsType: "68" - options: - "71": "72" - secretRef: - name: "69" - namespace: "70" - flocker: - datasetName: "65" - datasetUUID: "66" - gcePersistentDisk: - fsType: "27" - partition: -799278564 - pdName: "26" - readOnly: true - glusterfs: - endpoints: "31" - endpointsNamespace: "33" - path: "32" - hostPath: - path: "30" - type: 甞谐颋DžS - iscsi: - fsType: "47" - initiatorName: "51" - iqn: "45" - iscsiInterface: "46" - lun: -443114323 - portals: - - "48" - secretRef: - name: "49" - namespace: "50" - targetPortal: "44" - local: - fsType: "102" - path: "101" - mountOptions: - - "132" - nfs: - path: "35" - readOnly: true - server: "34" - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: "133" - operator: f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1 - values: - - "134" - matchFields: - - key: "135" - operator: l恕ɍȇ廄裭4懙鏮嵒 - values: - - "136" - persistentVolumeReclaimPolicy: £趕ã/鈱$-议}ȧ外ĺ - photonPersistentDisk: - fsType: "89" - pdID: "88" - portworxVolume: - fsType: "91" - volumeID: "90" - quobyte: - group: "83" - readOnly: true - registry: "80" - tenant: "84" - user: "82" - volume: "81" - rbd: - fsType: "38" - image: "37" - keyring: "41" - monitors: - - "36" - pool: "39" - secretRef: - name: "42" - namespace: "43" - user: "40" - scaleIO: - fsType: "100" - gateway: "92" - protectionDomain: "96" - readOnly: true - secretRef: - name: "94" - namespace: "95" - sslEnabled: true - storageMode: "98" - storagePool: "97" - system: "93" - volumeName: "99" - storageClassName: "131" - storageos: - fsType: "105" - readOnly: true - secretRef: - apiVersion: "109" - fieldPath: "111" - kind: "106" - name: "108" - namespace: "107" - resourceVersion: "110" - uid: ȸd賑'üA謥ǣ偐圠=l - volumeName: "103" - volumeNamespace: "104" - volumeMode: 譋娲瘹ɭȊɚɎ( - vsphereVolume: - fsType: "77" - storagePolicyID: "79" - storagePolicyName: "78" - volumePath: "76" - persistentVolumeName: "25" -status: - attachError: - message: "140" - time: "2498-07-05T18:17:05Z" - attached: false - attachmentMetadata: - "138": "139" - detachError: - message: "141" - time: "2336-02-05T15:38:29Z" diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.json b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.json deleted file mode 100644 index 417b4b18b..000000000 --- a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.json +++ /dev/null @@ -1,308 +0,0 @@ -{ - "kind": "VolumeAttachment", - "apiVersion": "storage.k8s.io/v1beta1", - "metadata": { - "name": "2", - "generateName": "3", - "namespace": "4", - "selfLink": "5", - "uid": "ą飋īqJ枊a8衍`Ĩɘ.蘯6ċV夸e", - "resourceVersion": "16964250748386560239", - "generation": 8071137005907523419, - "creationTimestamp": null, - "deletionGracePeriodSeconds": -4955867275792137171, - "labels": { - "7": "8" - }, - "annotations": { - "9": "10" - }, - "ownerReferences": [ - { - "apiVersion": "11", - "kind": "12", - "name": "13", - "uid": "Dz廔ȇ{sŊƏp", - "controller": false, - "blockOwnerDeletion": true - } - ], - "finalizers": [ - "14" - ], - "clusterName": "15", - "managedFields": [ - { - "manager": "16", - "operation": "鐊唊飙Ş-U圴÷a/ɔ}摁(湗Ć]", - "apiVersion": "17", - "fields": {"18":{"19":null}} - } - ] - }, - "spec": { - "attacher": "24", - "source": { - "persistentVolumeName": "25", - "inlineVolumeSpec": { - "capacity": { - "ǸƢ6/": "569" - }, - "gcePersistentDisk": { - "pdName": "26", - "fsType": "27", - "partition": -799278564, - "readOnly": true - }, - "awsElasticBlockStore": { - "volumeID": "28", - "fsType": "29", - "partition": 1749009427, - "readOnly": true - }, - "hostPath": { - "path": "30", - "type": "甞谐颋DžS" - }, - "glusterfs": { - "endpoints": "31", - "path": "32", - "endpointsNamespace": "33" - }, - "nfs": { - "server": "34", - "path": "35", - "readOnly": true - }, - "rbd": { - "monitors": [ - "36" - ], - "image": "37", - "fsType": "38", - "pool": "39", - "user": "40", - "keyring": "41", - "secretRef": { - "name": "42", - "namespace": "43" - } - }, - "iscsi": { - "targetPortal": "44", - "iqn": "45", - "lun": -443114323, - "iscsiInterface": "46", - "fsType": "47", - "portals": [ - "48" - ], - "secretRef": { - "name": "49", - "namespace": "50" - }, - "initiatorName": "51" - }, - "cinder": { - "volumeID": "52", - "fsType": "53", - "secretRef": { - "name": "54", - "namespace": "55" - } - }, - "cephfs": { - "monitors": [ - "56" - ], - "path": "57", - "user": "58", - "secretFile": "59", - "secretRef": { - "name": "60", - "namespace": "61" - }, - "readOnly": true - }, - "fc": { - "targetWWNs": [ - "62" - ], - "lun": 2072604405, - "fsType": "63", - "wwids": [ - "64" - ] - }, - "flocker": { - "datasetName": "65", - "datasetUUID": "66" - }, - "flexVolume": { - "driver": "67", - "fsType": "68", - "secretRef": { - "name": "69", - "namespace": "70" - }, - "options": { - "71": "72" - } - }, - "azureFile": { - "secretName": "73", - "shareName": "74", - "readOnly": true, - "secretNamespace": "75" - }, - "vsphereVolume": { - "volumePath": "76", - "fsType": "77", - "storagePolicyName": "78", - "storagePolicyID": "79" - }, - "quobyte": { - "registry": "80", - "volume": "81", - "readOnly": true, - "user": "82", - "group": "83", - "tenant": "84" - }, - "azureDisk": { - "diskName": "85", - "diskURI": "86", - "cachingMode": "狞夌碕ʂɭ", - "fsType": "87", - "readOnly": true, - "kind": "P$Iņɖ橙9ȫŚʒ" - }, - "photonPersistentDisk": { - "pdID": "88", - "fsType": "89" - }, - "portworxVolume": { - "volumeID": "90", - "fsType": "91" - }, - "scaleIO": { - "gateway": "92", - "system": "93", - "secretRef": { - "name": "94", - "namespace": "95" - }, - "sslEnabled": true, - "protectionDomain": "96", - "storagePool": "97", - "storageMode": "98", - "volumeName": "99", - "fsType": "100", - "readOnly": true - }, - "local": { - "path": "101", - "fsType": "102" - }, - "storageos": { - "volumeName": "103", - "volumeNamespace": "104", - "fsType": "105", - "readOnly": true, - "secretRef": { - "kind": "106", - "namespace": "107", - "name": "108", - "uid": "ȸd賑'üA謥ǣ偐圠=l", - "apiVersion": "109", - "resourceVersion": "110", - "fieldPath": "111" - } - }, - "csi": { - "driver": "112", - "volumeHandle": "113", - "fsType": "114", - "volumeAttributes": { - "115": "116" - }, - "controllerPublishSecretRef": { - "name": "117", - "namespace": "118" - }, - "nodeStageSecretRef": { - "name": "119", - "namespace": "120" - }, - "nodePublishSecretRef": { - "name": "121", - "namespace": "122" - }, - "controllerExpandSecretRef": { - "name": "123", - "namespace": "124" - } - }, - "accessModes": [ - "ƺ魋Ď儇击3ƆìQ" - ], - "claimRef": { - "kind": "125", - "namespace": "126", - "name": "127", - "uid": "艋涽託仭w-檮Ǣ冖ž琔n宂¬轚", - "apiVersion": "128", - "resourceVersion": "129", - "fieldPath": "130" - }, - "persistentVolumeReclaimPolicy": "£趕ã/鈱$-议}ȧ外ĺ", - "storageClassName": "131", - "mountOptions": [ - "132" - ], - "volumeMode": "譋娲瘹ɭȊɚɎ(", - "nodeAffinity": { - "required": { - "nodeSelectorTerms": [ - { - "matchExpressions": [ - { - "key": "133", - "operator": "f倐ȓ圬剴扲ȿQZ{ʁgɸ=ǤÆ碛,1", - "values": [ - "134" - ] - } - ], - "matchFields": [ - { - "key": "135", - "operator": "l恕ɍȇ廄裭4懙鏮嵒", - "values": [ - "136" - ] - } - ] - } - ] - } - } - } - }, - "nodeName": "137" - }, - "status": { - "attached": false, - "attachmentMetadata": { - "138": "139" - }, - "attachError": { - "time": "2498-07-05T18:17:05Z", - "message": "140" - }, - "detachError": { - "time": "2336-02-05T15:38:29Z", - "message": "141" - } - } -} \ No newline at end of file diff --git a/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.pb b/pseudo/k8s/api/testdata/v1.15.0/storage.k8s.io.v1beta1.VolumeAttachment.pb deleted file mode 100644 index cd5ff6b0e8318a34c0719629f08601ee23b27557..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1251 zcmX9-T})g>6uvX0fH&IWSnFnE46Y=STY)<>_h)7kOiTLWCMLATsu&YNvD(s70X3m% z;v&Dhw%t;ofE%>CG-A7pifx5rHI@Z-dGO7|_>=h1yL;CMeX);P&)|KS`OZ1tIo~Fw+8X+P50cue#*zSZ6IF74>-Yp0~BZvo)6+*TV$_hvX`1tJIN8km#t=ktCR!M{9LVSrAhm z+IgVgTb;;{oa$YVZJax4U`kC*pdL)EeoXBcY6hx99xo?i-bAdNo>`x3c-~81Tl>1b zsW5T6cs^QRT)CJVeg&$zMvcA`=z>)1m2gX-$ zVN{m`vH~cCUAqSs?C*Ocg(yk@>6Zvs>da1iAv&FXT9aok}PxX+WDrd%=LoC0AWa zm|NPl$iUKJSh`^>MGKZPQbA3#6{R2*5G8Q1D=4B2t_&*(hstx6%TX>@xkTuZ{POGm zSLdHx`)0qNxxAV7q6shgNpqJ0QOPRc`wYWDm(a72Nf~5P^$y^&;N8PzE0@Ezv8%8M zZ(|9VnJo%4)evKmZLIoXR`8*Xo8@dgch(ym@kUnp#_(F^VCaA%tAfmd?wA{@^T*=F z8@K$0i+5JD?==*!EN-T};i>g+ONogS-r~URjDKs^0IFbcNNAOtM&NeZzcIO%ZYqy{ zS=Zn%E}qVR>djB(ZUTo>#bGVP&&IulrPB0DA)AjCW(#NQBQNVO=`ZL_&;#e>i8s9W z6Zs2XGUJV1D~>JYzdP7=YAbrAu-v>kzcyS-ee@KC9^u=sQwcT+bQPnMg){jPZ*|a5 zXRYGMO!?fRcYR#3)Hv{4nAI9lOW*=# 0 { - testCodecMediaType, _, err = mime.ParseMediaType(apiMediaType) - if err != nil { - panic(err) - } - } - - if storageMediaType := os.Getenv("KUBE_TEST_API_STORAGE_TYPE"); len(storageMediaType) > 0 { - testStorageCodecMediaType, _, err = mime.ParseMediaType(storageMediaType) - if err != nil { - panic(err) - } - } -} - -// InstallOrDieFunc mirrors install functions that require success -type InstallOrDieFunc func(scheme *runtime.Scheme) - -// SchemeForInstallOrDie builds a simple test scheme and codecfactory pair for easy unit testing from higher level install methods -func SchemeForInstallOrDie(installFns ...InstallOrDieFunc) (*runtime.Scheme, runtimeserializer.CodecFactory) { - scheme := runtime.NewScheme() - codecFactory := runtimeserializer.NewCodecFactory(scheme) - for _, installFn := range installFns { - installFn(scheme) - } - - return scheme, codecFactory -} - -// InstallFunc mirrors install functions that can return an error -type InstallFunc func(scheme *runtime.Scheme) error - -// SchemeForOrDie builds a simple test scheme and codecfactory pair for easy unit testing from the bare registration methods. -func SchemeForOrDie(installFns ...InstallFunc) (*runtime.Scheme, runtimeserializer.CodecFactory) { - scheme := runtime.NewScheme() - codecFactory := runtimeserializer.NewCodecFactory(scheme) - for _, installFn := range installFns { - if err := installFn(scheme); err != nil { - panic(err) - } - } - - return scheme, codecFactory -} diff --git a/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/fuzzer.go b/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/fuzzer.go deleted file mode 100644 index 632db0880..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/fuzzer.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -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 fuzzer - -import ( - "math/rand" - - "github.com/google/gofuzz" - - runtimeserializer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" -) - -// FuzzerFuncs returns a list of func(*SomeType, c fuzz.Continue) functions. -type FuzzerFuncs func(codecs runtimeserializer.CodecFactory) []interface{} - -// FuzzerFor can randomly populate api objects that are destined for version. -func FuzzerFor(funcs FuzzerFuncs, src rand.Source, codecs runtimeserializer.CodecFactory) *fuzz.Fuzzer { - f := fuzz.New().NilChance(.5).NumElements(0, 1) - if src != nil { - f.RandSource(src) - } - f.Funcs(funcs(codecs)...) - return f -} - -// MergeFuzzerFuncs will merge the given funcLists, overriding early funcs with later ones if there first -// argument has the same type. -func MergeFuzzerFuncs(funcs ...FuzzerFuncs) FuzzerFuncs { - return FuzzerFuncs(func(codecs runtimeserializer.CodecFactory) []interface{} { - result := []interface{}{} - for _, f := range funcs { - if f != nil { - result = append(result, f(codecs)...) - } - } - return result - }) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go b/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go deleted file mode 100644 index cd71c517d..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go +++ /dev/null @@ -1,86 +0,0 @@ -/* -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 fuzzer - -import ( - "reflect" -) - -// ValueFuzz recursively changes all basic type values in an object. Any kind of references will not -// be touch, i.e. the addresses of slices, maps, pointers will stay unchanged. -func ValueFuzz(obj interface{}) { - valueFuzz(reflect.ValueOf(obj)) -} - -func valueFuzz(obj reflect.Value) { - switch obj.Kind() { - case reflect.Array: - for i := 0; i < obj.Len(); i++ { - valueFuzz(obj.Index(i)) - } - case reflect.Slice: - if obj.IsNil() { - // TODO: set non-nil value - } else { - for i := 0; i < obj.Len(); i++ { - valueFuzz(obj.Index(i)) - } - } - case reflect.Interface, reflect.Ptr: - if obj.IsNil() { - // TODO: set non-nil value - } else { - valueFuzz(obj.Elem()) - } - case reflect.Struct: - for i, n := 0, obj.NumField(); i < n; i++ { - valueFuzz(obj.Field(i)) - } - case reflect.Map: - if obj.IsNil() { - // TODO: set non-nil value - } else { - for _, k := range obj.MapKeys() { - // map values are not addressable. We need a copy. - v := obj.MapIndex(k) - copy := reflect.New(v.Type()) - copy.Elem().Set(v) - valueFuzz(copy.Elem()) - obj.SetMapIndex(k, copy.Elem()) - } - // TODO: set some new value - } - case reflect.Func: // ignore, we don't have function types in our API - default: - if !obj.CanSet() { - return - } - switch obj.Kind() { - case reflect.String: - obj.SetString(obj.String() + "x") - case reflect.Bool: - obj.SetBool(!obj.Bool()) - case reflect.Float32, reflect.Float64: - obj.SetFloat(obj.Float()*2.0 + 1.0) - case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: - obj.SetInt(obj.Int() + 1) - case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: - obj.SetUint(obj.Uint() + 1) - default: - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz_test.go b/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz_test.go deleted file mode 100644 index a935aa40c..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz_test.go +++ /dev/null @@ -1,73 +0,0 @@ -/* -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 fuzzer - -import "testing" - -func TestValueFuzz(t *testing.T) { - type ( - Y struct { - I int - B bool - F float32 - U uint - } - X struct { - Ptr *X - Y Y - Map map[string]int - Slice []int - } - ) - - x := X{ - Ptr: &X{}, - Map: map[string]int{"foo": 42}, - Slice: []int{1, 2, 3}, - } - - p := x.Ptr - m := x.Map - s := x.Slice - - ValueFuzz(x) - - if x.Ptr.Y.I == 0 { - t.Errorf("x.Ptr.Y.I should have changed") - } - - if x.Map["foo"] == 42 { - t.Errorf("x.Map[foo] should have changed") - } - - if x.Slice[0] == 1 { - t.Errorf("x.Slice[0] should have changed") - } - - if x.Ptr != p { - t.Errorf("x.Ptr changed") - } - - m["foo"] = 7 - if x.Map["foo"] != m["foo"] { - t.Errorf("x.Map changed") - } - s[0] = 7 - if x.Slice[0] != s[0] { - t.Errorf("x.Slice changed") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/apitesting/naming/naming.go b/pseudo/k8s/apimachinery/pkg/api/apitesting/naming/naming.go deleted file mode 100644 index dd30352fd..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/apitesting/naming/naming.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -Copyright 2019 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 naming - -import ( - "encoding/json" - "fmt" - "reflect" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/errors" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -var ( - marshalerType = reflect.TypeOf((*json.Marshaler)(nil)).Elem() - unmarshalerType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() -) - -// VerifyGroupNames ensures that all groups in the scheme ends with the k8s.io suffix. -// Exceptions can be tolerated using the legacyUnsuffixedGroups parameter -func VerifyGroupNames(scheme *runtime.Scheme, legacyUnsuffixedGroups sets.String) error { - errs := []error{} - for _, gv := range scheme.PrioritizedVersionsAllGroups() { - if !strings.HasSuffix(gv.Group, ".k8s.io") && !legacyUnsuffixedGroups.Has(gv.Group) { - errs = append(errs, fmt.Errorf("Group %s does not have the standard kubernetes API group suffix of .k8s.io", gv.Group)) - } - } - return errors.NewAggregate(errs) -} - -// VerifyTagNaming ensures that all types in the scheme have JSON tags set on external types, and JSON tags not set on internal types. -// Exceptions can be tolerated using the typesAllowedTags and allowedNonstandardJSONNames parameters -func VerifyTagNaming(scheme *runtime.Scheme, typesAllowedTags map[reflect.Type]bool, allowedNonstandardJSONNames map[reflect.Type]string) error { - errs := []error{} - for gvk, knownType := range scheme.AllKnownTypes() { - var err error - if gvk.Version == runtime.APIVersionInternal { - err = errors.NewAggregate(ensureNoTags(gvk, knownType, nil, typesAllowedTags)) - } else { - err = errors.NewAggregate(ensureTags(gvk, knownType, nil, allowedNonstandardJSONNames)) - } - if err != nil { - errs = append(errs, err) - } - } - return errors.NewAggregate(errs) -} - -func ensureNoTags(gvk schema.GroupVersionKind, tp reflect.Type, parents []reflect.Type, typesAllowedTags map[reflect.Type]bool) []error { - errs := []error{} - if _, ok := typesAllowedTags[tp]; ok { - return errs - } - - // Don't look at the same type multiple times - if containsType(parents, tp) { - return nil - } - parents = append(parents, tp) - - switch tp.Kind() { - case reflect.Map, reflect.Slice, reflect.Ptr: - errs = append(errs, ensureNoTags(gvk, tp.Elem(), parents, typesAllowedTags)...) - - case reflect.String, reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr, reflect.Interface: - // no-op - - case reflect.Struct: - for i := 0; i < tp.NumField(); i++ { - f := tp.Field(i) - if f.PkgPath != "" { - continue // Ignore unexported fields - } - jsonTag := f.Tag.Get("json") - protoTag := f.Tag.Get("protobuf") - if len(jsonTag) > 0 || len(protoTag) > 0 { - errs = append(errs, fmt.Errorf("Internal types should not have json or protobuf tags. %#v has tag on field %v: %v.\n%s", gvk, f.Name, f.Tag, fmtParentString(parents))) - } - - errs = append(errs, ensureNoTags(gvk, f.Type, parents, typesAllowedTags)...) - } - - default: - errs = append(errs, fmt.Errorf("Unexpected type %v in %#v.\n%s", tp.Kind(), gvk, fmtParentString(parents))) - } - return errs -} - -func ensureTags(gvk schema.GroupVersionKind, tp reflect.Type, parents []reflect.Type, allowedNonstandardJSONNames map[reflect.Type]string) []error { - errs := []error{} - // This type handles its own encoding/decoding and doesn't need json tags - if tp.Implements(marshalerType) && (tp.Implements(unmarshalerType) || reflect.PtrTo(tp).Implements(unmarshalerType)) { - return errs - } - - // Don't look at the same type multiple times - if containsType(parents, tp) { - return nil - } - parents = append(parents, tp) - - switch tp.Kind() { - case reflect.Map, reflect.Slice, reflect.Ptr: - errs = append(errs, ensureTags(gvk, tp.Elem(), parents, allowedNonstandardJSONNames)...) - - case reflect.String, reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr, reflect.Interface: - // no-op - - case reflect.Struct: - for i := 0; i < tp.NumField(); i++ { - f := tp.Field(i) - jsonTag := f.Tag.Get("json") - if len(jsonTag) == 0 { - errs = append(errs, fmt.Errorf("external types should have json tags. %#v tags on field %v are: %s.\n%s", gvk, f.Name, f.Tag, fmtParentString(parents))) - } - - jsonTagName := strings.Split(jsonTag, ",")[0] - if len(jsonTagName) > 0 && (jsonTagName[0] < 'a' || jsonTagName[0] > 'z') && jsonTagName != "-" && allowedNonstandardJSONNames[tp] != jsonTagName { - errs = append(errs, fmt.Errorf("external types should have json names starting with lowercase letter. %#v has json tag on field %v with name %s.\n%s", gvk, f.Name, jsonTagName, fmtParentString(parents))) - } - - errs = append(errs, ensureTags(gvk, f.Type, parents, allowedNonstandardJSONNames)...) - } - - default: - errs = append(errs, fmt.Errorf("Unexpected type %v in %#v.\n%s", tp.Kind(), gvk, fmtParentString(parents))) - } - return errs -} - -func fmtParentString(parents []reflect.Type) string { - str := "Type parents:\n" - for i, tp := range parents { - str += fmt.Sprintf("%s%v\n", strings.Repeat(" ", i), tp) - } - return str -} - -// containsType returns true if s contains t, false otherwise -func containsType(s []reflect.Type, t reflect.Type) bool { - for _, u := range s { - if t == u { - return true - } - } - return false -} diff --git a/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go b/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go deleted file mode 100644 index 8748fc4d2..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go +++ /dev/null @@ -1,517 +0,0 @@ -/* -Copyright 2019 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 roundtrip - -import ( - "bytes" - "io/ioutil" - "os" - "os/exec" - "path/filepath" - "sort" - "strconv" - "strings" - "testing" - - "github.com/google/go-cmp/cmp" - fuzz "github.com/google/gofuzz" - - apiequality "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - apimeta "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - genericfuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -// CompatibilityTestOptions holds configuration for running a compatibility test using in-memory objects -// and serialized files on disk representing the current code and serialized data from previous versions. -// -// Example use: `NewCompatibilityTestOptions(scheme).Complete(t).Run(t)` -type CompatibilityTestOptions struct { - // Scheme is used to create new objects for fuzzing, decoding, and for constructing serializers. - // Required. - Scheme *runtime.Scheme - - // TestDataDir points to a directory containing compatibility test data. - // Complete() populates this with "testdata" if unset. - TestDataDir string - - // TestDataDirCurrentVersion points to a directory containing compatibility test data for the current version. - // Complete() populates this with "/HEAD" if unset. - // Within this directory, `...[json|yaml|pb]` files are required to exist, and are: - // * verified to match serialized FuzzedObjects[GVK] - // * verified to decode without error - // * verified to round-trip byte-for-byte when re-encoded - // * verified to be semantically equal when decoded into memory - TestDataDirCurrentVersion string - - // TestDataDirsPreviousVersions is a list of directories containing compatibility test data for previous versions. - // Complete() populates this with "/v*" directories if nil. - // Within these directories, `...[json|yaml|pb]` files are optional. If present, they are: - // * verified to decode without error - // * verified to round-trip byte-for-byte when re-encoded (or to match a `...[json|yaml|pb].after_roundtrip.[json|yaml|pb]` file if it exists) - // * verified to be semantically equal when decoded into memory - TestDataDirsPreviousVersions []string - - // Kinds is a list of fully qualified kinds to test. - // Complete() populates this with Scheme.AllKnownTypes() if unset. - Kinds []schema.GroupVersionKind - - // FuzzedObjects is an optional set of fuzzed objects to use for verifying HEAD fixtures. - // Complete() populates this with the result of CompatibilityTestObject(Kinds[*], Scheme, FuzzFuncs) for any missing kinds. - // Objects must be deterministically fuzzed and identical on every invocation. - FuzzedObjects map[schema.GroupVersionKind]runtime.Object - - // FuzzFuncs is an optional set of custom fuzzing functions to use to construct FuzzedObjects. - // They *must* not use any random source other than the passed-in fuzzer. - FuzzFuncs []interface{} - - JSON runtime.Serializer - YAML runtime.Serializer - Proto runtime.Serializer -} - -func NewCompatibilityTestOptions(scheme *runtime.Scheme) *CompatibilityTestOptions { - return &CompatibilityTestOptions{Scheme: scheme} -} - -// coreKinds includes kinds that typically only need to be tested in a single API group -var coreKinds = sets.NewString( - "CreateOptions", "UpdateOptions", "PatchOptions", "DeleteOptions", - "GetOptions", "ListOptions", "ExportOptions", - "WatchEvent", -) - -func (c *CompatibilityTestOptions) Complete(t *testing.T) *CompatibilityTestOptions { - t.Helper() - - // Verify scheme - if c.Scheme == nil { - t.Fatal("scheme is required") - } - - // Populate testdata dirs - if c.TestDataDir == "" { - c.TestDataDir = "testdata" - } - if c.TestDataDirCurrentVersion == "" { - c.TestDataDirCurrentVersion = filepath.Join(c.TestDataDir, "HEAD") - } - if c.TestDataDirsPreviousVersions == nil { - dirs, err := filepath.Glob(filepath.Join(c.TestDataDir, "v*")) - if err != nil { - t.Fatal(err) - } - sort.Strings(dirs) - c.TestDataDirsPreviousVersions = dirs - } - - // Populate kinds - if len(c.Kinds) == 0 { - gvks := []schema.GroupVersionKind{} - for gvk := range c.Scheme.AllKnownTypes() { - if gvk.Version == "" || gvk.Version == runtime.APIVersionInternal { - // only test external types - continue - } - if strings.HasSuffix(gvk.Kind, "List") { - // omit list types - continue - } - if gvk.Group != "" && coreKinds.Has(gvk.Kind) { - // only test options types in the core API group - continue - } - gvks = append(gvks, gvk) - } - c.Kinds = gvks - } - - // Sort kinds to get deterministic test order - sort.Slice(c.Kinds, func(i, j int) bool { - if c.Kinds[i].Group != c.Kinds[j].Group { - return c.Kinds[i].Group < c.Kinds[j].Group - } - if c.Kinds[i].Version != c.Kinds[j].Version { - return c.Kinds[i].Version < c.Kinds[j].Version - } - if c.Kinds[i].Kind != c.Kinds[j].Kind { - return c.Kinds[i].Kind < c.Kinds[j].Kind - } - return false - }) - - // Fuzz any missing objects - if c.FuzzedObjects == nil { - c.FuzzedObjects = map[schema.GroupVersionKind]runtime.Object{} - } - for _, gvk := range c.Kinds { - if _, ok := c.FuzzedObjects[gvk]; ok { - continue - } - obj, err := CompatibilityTestObject(c.Scheme, gvk, c.FuzzFuncs) - if err != nil { - t.Fatal(err) - } - c.FuzzedObjects[gvk] = obj - } - - if c.JSON == nil { - c.JSON = json.NewSerializer(json.DefaultMetaFactory, c.Scheme, c.Scheme, true) - } - if c.YAML == nil { - c.YAML = json.NewYAMLSerializer(json.DefaultMetaFactory, c.Scheme, c.Scheme) - } - if c.Proto == nil { - c.Proto = protobuf.NewSerializer(c.Scheme, c.Scheme) - } - - return c -} - -// CompatibilityTestObject returns a deterministically fuzzed object for the specified GVK -func CompatibilityTestObject(scheme *runtime.Scheme, gvk schema.GroupVersionKind, fuzzFuncs []interface{}) (runtime.Object, error) { - // Construct the object - obj, err := scheme.New(gvk) - if err != nil { - return nil, err - } - - // Fuzz it - CompatibilityTestFuzzer(scheme, fuzzFuncs).Fuzz(obj) - - // Set the kind and apiVersion - if typeAcc, err := apimeta.TypeAccessor(obj); err != nil { - return nil, err - } else { - typeAcc.SetKind(gvk.Kind) - typeAcc.SetAPIVersion(gvk.GroupVersion().String()) - } - - return obj, nil -} - -// CompatibilityTestFuzzer returns a fuzzer for the given scheme: -// - fixed seed (deterministic output that lets us generate the same fixtures on every run) -// - 0 nil chance (populate all fields) -// - 1 numelements (populate and bound all lists) -// - 20 max depth (don't recurse infinitely) -// - meta fuzzing functions added -// - custom fuzzing functions to make strings and managedFields more readable in fixtures -func CompatibilityTestFuzzer(scheme *runtime.Scheme, fuzzFuncs []interface{}) *fuzz.Fuzzer { - fuzzer := fuzz.NewWithSeed(0).NilChance(0).NumElements(1, 1).MaxDepth(20) - fuzzer = fuzzer.Funcs(genericfuzzer.Funcs(serializer.NewCodecFactory(scheme))...) - fuzzString := 1 - fuzzer.Funcs( - // avoid crazy strings - func(s *string, c fuzz.Continue) { - fuzzString++ - *s = strconv.Itoa(fuzzString) - }, - // limit managed fields to two levels - func(f *[]metav1.ManagedFieldsEntry, c fuzz.Continue) { - field := metav1.ManagedFieldsEntry{} - c.Fuzz(&field) - if field.FieldsV1 != nil { - field.FieldsV1.Raw = []byte("{}") - } - *f = []metav1.ManagedFieldsEntry{field} - }, - func(r *runtime.RawExtension, c fuzz.Continue) { - // generate a raw object in normalized form - // TODO: test non-normalized round-tripping... YAMLToJSON normalizes and makes exact comparisons fail - r.Raw = []byte(`{"apiVersion":"example.com/v1","kind":"CustomType","spec":{"replicas":1},"status":{"available":1}}`) - }, - ) - fuzzer.Funcs(fuzzFuncs...) - return fuzzer -} - -func (c *CompatibilityTestOptions) Run(t *testing.T) { - for _, gvk := range c.Kinds { - t.Run(makeName(gvk), func(t *testing.T) { - - t.Run("HEAD", func(t *testing.T) { - c.runCurrentVersionTest(t, gvk) - }) - - for _, previousVersionDir := range c.TestDataDirsPreviousVersions { - t.Run(filepath.Base(previousVersionDir), func(t *testing.T) { - c.runPreviousVersionTest(t, gvk, previousVersionDir) - }) - } - - }) - } -} - -func (c *CompatibilityTestOptions) runCurrentVersionTest(t *testing.T, gvk schema.GroupVersionKind) { - expectedObject := c.FuzzedObjects[gvk] - expectedJSON, expectedYAML, expectedProto := c.encode(t, expectedObject) - - actualJSON, actualYAML, actualProto, err := read(c.TestDataDirCurrentVersion, gvk, "") - if err != nil && !os.IsNotExist(err) { - t.Fatal(err) - } - - needsUpdate := false - if os.IsNotExist(err) { - t.Errorf("current version compatibility files did not exist: %v", err) - needsUpdate = true - } else { - if !bytes.Equal(expectedJSON, actualJSON) { - t.Errorf("json differs") - t.Log(cmp.Diff(string(expectedJSON), string(actualJSON))) - needsUpdate = true - } - - if !bytes.Equal(expectedYAML, actualYAML) { - t.Errorf("yaml differs") - t.Log(cmp.Diff(string(expectedYAML), string(actualYAML))) - needsUpdate = true - } - - if !bytes.Equal(expectedProto, actualProto) { - t.Errorf("proto differs") - needsUpdate = true - t.Log(cmp.Diff(dumpProto(t, expectedProto[4:]), dumpProto(t, actualProto[4:]))) - // t.Logf("json (for locating the offending field based on surrounding data): %s", string(expectedJSON)) - } - } - - if needsUpdate { - const updateEnvVar = "UPDATE_COMPATIBILITY_FIXTURE_DATA" - if os.Getenv(updateEnvVar) == "true" { - writeFile(t, c.TestDataDirCurrentVersion, gvk, "", "json", expectedJSON) - writeFile(t, c.TestDataDirCurrentVersion, gvk, "", "yaml", expectedYAML) - writeFile(t, c.TestDataDirCurrentVersion, gvk, "", "pb", expectedProto) - t.Logf("wrote expected compatibility data... verify, commit, and rerun tests") - } else { - t.Logf("if the diff is expected because of a new type or a new field, re-run with %s=true to update the compatibility data", updateEnvVar) - } - return - } - - emptyObj, err := c.Scheme.New(gvk) - if err != nil { - t.Fatal(err) - } - { - jsonDecoded := emptyObj.DeepCopyObject() - jsonDecoded, _, err = c.JSON.Decode(actualJSON, &gvk, jsonDecoded) - if err != nil { - t.Error(err) - } else if !apiequality.Semantic.DeepEqual(expectedObject, jsonDecoded) { - t.Errorf("expected and decoded json objects differed:\n%s", cmp.Diff(expectedObject, jsonDecoded)) - } - } - { - yamlDecoded := emptyObj.DeepCopyObject() - yamlDecoded, _, err = c.YAML.Decode(actualYAML, &gvk, yamlDecoded) - if err != nil { - t.Error(err) - } else if !apiequality.Semantic.DeepEqual(expectedObject, yamlDecoded) { - t.Errorf("expected and decoded yaml objects differed:\n%s", cmp.Diff(expectedObject, yamlDecoded)) - } - } - { - protoDecoded := emptyObj.DeepCopyObject() - protoDecoded, _, err = c.Proto.Decode(actualProto, &gvk, protoDecoded) - if err != nil { - t.Error(err) - } else if !apiequality.Semantic.DeepEqual(expectedObject, protoDecoded) { - t.Errorf("expected and decoded proto objects differed:\n%s", cmp.Diff(expectedObject, protoDecoded)) - } - } -} - -func (c *CompatibilityTestOptions) encode(t *testing.T, obj runtime.Object) (json, yaml, proto []byte) { - jsonBytes := bytes.NewBuffer(nil) - if err := c.JSON.Encode(obj, jsonBytes); err != nil { - t.Fatalf("error encoding json: %v", err) - } - yamlBytes := bytes.NewBuffer(nil) - if err := c.YAML.Encode(obj, yamlBytes); err != nil { - t.Fatalf("error encoding yaml: %v", err) - } - protoBytes := bytes.NewBuffer(nil) - if err := c.Proto.Encode(obj, protoBytes); err != nil { - t.Fatalf("error encoding proto: %v", err) - } - return jsonBytes.Bytes(), yamlBytes.Bytes(), protoBytes.Bytes() -} - -func read(dir string, gvk schema.GroupVersionKind, suffix string) (json, yaml, proto []byte, err error) { - actualJSON, jsonErr := ioutil.ReadFile(filepath.Join(dir, makeName(gvk)+suffix+".json")) - actualYAML, yamlErr := ioutil.ReadFile(filepath.Join(dir, makeName(gvk)+suffix+".yaml")) - actualProto, protoErr := ioutil.ReadFile(filepath.Join(dir, makeName(gvk)+suffix+".pb")) - if jsonErr != nil { - return actualJSON, actualYAML, actualProto, jsonErr - } - if yamlErr != nil { - return actualJSON, actualYAML, actualProto, yamlErr - } - if protoErr != nil { - return actualJSON, actualYAML, actualProto, protoErr - } - return actualJSON, actualYAML, actualProto, nil -} - -func writeFile(t *testing.T, dir string, gvk schema.GroupVersionKind, suffix, extension string, data []byte) { - if err := os.MkdirAll(dir, os.FileMode(0755)); err != nil { - t.Fatal("error making directory", err) - } - if err := ioutil.WriteFile(filepath.Join(dir, makeName(gvk)+suffix+"."+extension), data, os.FileMode(0644)); err != nil { - t.Fatalf("error writing %s: %v", extension, err) - } -} - -func (c *CompatibilityTestOptions) runPreviousVersionTest(t *testing.T, gvk schema.GroupVersionKind, previousVersionDir string) { - jsonBeforeRoundTrip, yamlBeforeRoundTrip, protoBeforeRoundTrip, err := read(previousVersionDir, gvk, "") - if os.IsNotExist(err) || (len(jsonBeforeRoundTrip) == 0 && len(yamlBeforeRoundTrip) == 0 && len(protoBeforeRoundTrip) == 0) { - t.SkipNow() - return - } - if err != nil { - t.Fatal(err) - } - - emptyObj, err := c.Scheme.New(gvk) - if err != nil { - t.Fatal(err) - } - - jsonDecoded := emptyObj.DeepCopyObject() - jsonDecoded, _, err = c.JSON.Decode(jsonBeforeRoundTrip, &gvk, jsonDecoded) - if err != nil { - t.Fatal(err) - } - jsonBytes := bytes.NewBuffer(nil) - if err := c.JSON.Encode(jsonDecoded, jsonBytes); err != nil { - t.Fatalf("error encoding json: %v", err) - } - jsonAfterRoundTrip := jsonBytes.Bytes() - - yamlDecoded := emptyObj.DeepCopyObject() - yamlDecoded, _, err = c.YAML.Decode(yamlBeforeRoundTrip, &gvk, yamlDecoded) - if err != nil { - t.Fatal(err) - } else if !apiequality.Semantic.DeepEqual(jsonDecoded, yamlDecoded) { - t.Errorf("decoded json and yaml objects differ:\n%s", cmp.Diff(jsonDecoded, yamlDecoded)) - } - yamlBytes := bytes.NewBuffer(nil) - if err := c.YAML.Encode(yamlDecoded, yamlBytes); err != nil { - t.Fatalf("error encoding yaml: %v", err) - } - yamlAfterRoundTrip := yamlBytes.Bytes() - - protoDecoded := emptyObj.DeepCopyObject() - protoDecoded, _, err = c.Proto.Decode(protoBeforeRoundTrip, &gvk, protoDecoded) - if err != nil { - t.Fatal(err) - } else if !apiequality.Semantic.DeepEqual(jsonDecoded, protoDecoded) { - t.Errorf("decoded json and proto objects differ:\n%s", cmp.Diff(jsonDecoded, protoDecoded)) - } - protoBytes := bytes.NewBuffer(nil) - if err := c.Proto.Encode(protoDecoded, protoBytes); err != nil { - t.Fatalf("error encoding proto: %v", err) - } - protoAfterRoundTrip := protoBytes.Bytes() - - expectedJSONAfterRoundTrip, expectedYAMLAfterRoundTrip, expectedProtoAfterRoundTrip, _ := read(previousVersionDir, gvk, ".after_roundtrip") - if len(expectedJSONAfterRoundTrip) == 0 { - expectedJSONAfterRoundTrip = jsonBeforeRoundTrip - } - if len(expectedYAMLAfterRoundTrip) == 0 { - expectedYAMLAfterRoundTrip = yamlBeforeRoundTrip - } - if len(expectedProtoAfterRoundTrip) == 0 { - expectedProtoAfterRoundTrip = protoBeforeRoundTrip - } - - jsonNeedsUpdate := false - yamlNeedsUpdate := false - protoNeedsUpdate := false - - if !bytes.Equal(expectedJSONAfterRoundTrip, jsonAfterRoundTrip) { - t.Errorf("json differs") - t.Log(cmp.Diff(string(expectedJSONAfterRoundTrip), string(jsonAfterRoundTrip))) - jsonNeedsUpdate = true - } - - if !bytes.Equal(expectedYAMLAfterRoundTrip, yamlAfterRoundTrip) { - t.Errorf("yaml differs") - t.Log(cmp.Diff(string(expectedYAMLAfterRoundTrip), string(yamlAfterRoundTrip))) - yamlNeedsUpdate = true - } - - if !bytes.Equal(expectedProtoAfterRoundTrip, protoAfterRoundTrip) { - t.Errorf("proto differs") - protoNeedsUpdate = true - t.Log(cmp.Diff(dumpProto(t, expectedProtoAfterRoundTrip[4:]), dumpProto(t, protoAfterRoundTrip[4:]))) - // t.Logf("json (for locating the offending field based on surrounding data): %s", string(expectedJSON)) - } - - if jsonNeedsUpdate || yamlNeedsUpdate || protoNeedsUpdate { - const updateEnvVar = "UPDATE_COMPATIBILITY_FIXTURE_DATA" - if os.Getenv(updateEnvVar) == "true" { - if jsonNeedsUpdate { - writeFile(t, previousVersionDir, gvk, ".after_roundtrip", "json", jsonAfterRoundTrip) - } - if yamlNeedsUpdate { - writeFile(t, previousVersionDir, gvk, ".after_roundtrip", "yaml", yamlAfterRoundTrip) - } - if protoNeedsUpdate { - writeFile(t, previousVersionDir, gvk, ".after_roundtrip", "pb", protoAfterRoundTrip) - } - t.Logf("wrote expected compatibility data... verify, commit, and rerun tests") - } else { - t.Logf("if the diff is expected because of a new type or a new field, re-run with %s=true to update the compatibility data", updateEnvVar) - } - return - } -} - -func makeName(gvk schema.GroupVersionKind) string { - g := gvk.Group - if g == "" { - g = "core" - } - return g + "." + gvk.Version + "." + gvk.Kind -} - -func dumpProto(t *testing.T, data []byte) string { - t.Helper() - protoc, err := exec.LookPath("protoc") - if err != nil { - t.Log(err) - return "" - } - cmd := exec.Command(protoc, "--decode_raw") - cmd.Stdin = bytes.NewBuffer(data) - d, err := cmd.CombinedOutput() - if err != nil { - t.Log(err) - return "" - } - return string(d) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go b/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go deleted file mode 100644 index c0cb03a4a..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go +++ /dev/null @@ -1,407 +0,0 @@ -/* -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 roundtrip - -import ( - "bytes" - "encoding/hex" - "math/rand" - "reflect" - "strings" - "testing" - - "github.com/davecgh/go-spew/spew" - "github.com/golang/protobuf/proto" - "github.com/google/gofuzz" - flag "github.com/spf13/pflag" - - apitesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer" - apiequality "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - apimeta "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - metafuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - runtimeserializer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -type InstallFunc func(scheme *runtime.Scheme) - -// RoundTripTestForAPIGroup is convenient to call from your install package to make sure that a "bare" install of your group provides -// enough information to round trip -func RoundTripTestForAPIGroup(t *testing.T, installFn InstallFunc, fuzzingFuncs fuzzer.FuzzerFuncs) { - scheme := runtime.NewScheme() - installFn(scheme) - - RoundTripTestForScheme(t, scheme, fuzzingFuncs) -} - -// RoundTripTestForScheme is convenient to call if you already have a scheme and want to make sure that its well-formed -func RoundTripTestForScheme(t *testing.T, scheme *runtime.Scheme, fuzzingFuncs fuzzer.FuzzerFuncs) { - codecFactory := runtimeserializer.NewCodecFactory(scheme) - f := fuzzer.FuzzerFor( - fuzzer.MergeFuzzerFuncs(metafuzzer.Funcs, fuzzingFuncs), - rand.NewSource(rand.Int63()), - codecFactory, - ) - RoundTripTypesWithoutProtobuf(t, scheme, codecFactory, f, nil) -} - -// RoundTripProtobufTestForAPIGroup is convenient to call from your install package to make sure that a "bare" install of your group provides -// enough information to round trip -func RoundTripProtobufTestForAPIGroup(t *testing.T, installFn InstallFunc, fuzzingFuncs fuzzer.FuzzerFuncs) { - scheme := runtime.NewScheme() - installFn(scheme) - - RoundTripProtobufTestForScheme(t, scheme, fuzzingFuncs) -} - -// RoundTripProtobufTestForScheme is convenient to call if you already have a scheme and want to make sure that its well-formed -func RoundTripProtobufTestForScheme(t *testing.T, scheme *runtime.Scheme, fuzzingFuncs fuzzer.FuzzerFuncs) { - codecFactory := runtimeserializer.NewCodecFactory(scheme) - fuzzer := fuzzer.FuzzerFor( - fuzzer.MergeFuzzerFuncs(metafuzzer.Funcs, fuzzingFuncs), - rand.NewSource(rand.Int63()), - codecFactory, - ) - RoundTripTypes(t, scheme, codecFactory, fuzzer, nil) -} - -var FuzzIters = flag.Int("fuzz-iters", 20, "How many fuzzing iterations to do.") - -// globalNonRoundTrippableTypes are kinds that are effectively reserved across all GroupVersions -// They don't roundtrip -var globalNonRoundTrippableTypes = sets.NewString( - "ExportOptions", - "GetOptions", - // WatchEvent does not include kind and version and can only be deserialized - // implicitly (if the caller expects the specific object). The watch call defines - // the schema by content type, rather than via kind/version included in each - // object. - "WatchEvent", - // ListOptions is now part of the meta group - "ListOptions", - // Delete options is only read in metav1 - "DeleteOptions", -) - -// RoundTripTypesWithoutProtobuf applies the round-trip test to all round-trippable Kinds -// in the scheme. It will skip all the GroupVersionKinds in the skip list. -func RoundTripTypesWithoutProtobuf(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool) { - roundTripTypes(t, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, true) -} - -func RoundTripTypes(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool) { - roundTripTypes(t, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, false) -} - -func roundTripTypes(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool, skipProtobuf bool) { - for _, group := range groupsFromScheme(scheme) { - t.Logf("starting group %q", group) - internalVersion := schema.GroupVersion{Group: group, Version: runtime.APIVersionInternal} - internalKindToGoType := scheme.KnownTypes(internalVersion) - - for kind := range internalKindToGoType { - if globalNonRoundTrippableTypes.Has(kind) { - continue - } - - internalGVK := internalVersion.WithKind(kind) - roundTripSpecificKind(t, internalGVK, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, skipProtobuf) - } - - t.Logf("finished group %q", group) - } -} - -// RoundTripExternalTypes applies the round-trip test to all external round-trippable Kinds -// in the scheme. It will skip all the GroupVersionKinds in the nonRoundTripExternalTypes list . -func RoundTripExternalTypes(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool) { - kinds := scheme.AllKnownTypes() - for gvk := range kinds { - if gvk.Version == runtime.APIVersionInternal || globalNonRoundTrippableTypes.Has(gvk.Kind) { - continue - } - t.Run(gvk.Group+"."+gvk.Version+"."+gvk.Kind, func(t *testing.T) { - roundTripSpecificKind(t, gvk, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, false) - }) - } -} - -func RoundTripSpecificKindWithoutProtobuf(t *testing.T, gvk schema.GroupVersionKind, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool) { - roundTripSpecificKind(t, gvk, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, true) -} - -func RoundTripSpecificKind(t *testing.T, gvk schema.GroupVersionKind, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool) { - roundTripSpecificKind(t, gvk, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, false) -} - -func roundTripSpecificKind(t *testing.T, gvk schema.GroupVersionKind, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool, skipProtobuf bool) { - if nonRoundTrippableTypes[gvk] { - t.Logf("skipping %v", gvk) - return - } - - // Try a few times, since runTest uses random values. - for i := 0; i < *FuzzIters; i++ { - if gvk.Version == runtime.APIVersionInternal { - roundTripToAllExternalVersions(t, scheme, codecFactory, fuzzer, gvk, nonRoundTrippableTypes, skipProtobuf) - } else { - roundTripOfExternalType(t, scheme, codecFactory, fuzzer, gvk, skipProtobuf) - } - if t.Failed() { - break - } - } -} - -// fuzzInternalObject fuzzes an arbitrary runtime object using the appropriate -// fuzzer registered with the apitesting package. -func fuzzInternalObject(t *testing.T, fuzzer *fuzz.Fuzzer, object runtime.Object) runtime.Object { - fuzzer.Fuzz(object) - - j, err := apimeta.TypeAccessor(object) - if err != nil { - t.Fatalf("Unexpected error %v for %#v", err, object) - } - j.SetKind("") - j.SetAPIVersion("") - - return object -} - -func groupsFromScheme(scheme *runtime.Scheme) []string { - ret := sets.String{} - for gvk := range scheme.AllKnownTypes() { - ret.Insert(gvk.Group) - } - return ret.List() -} - -func roundTripToAllExternalVersions(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, internalGVK schema.GroupVersionKind, nonRoundTrippableTypes map[schema.GroupVersionKind]bool, skipProtobuf bool) { - object, err := scheme.New(internalGVK) - if err != nil { - t.Fatalf("Couldn't make a %v? %v", internalGVK, err) - } - if _, err := apimeta.TypeAccessor(object); err != nil { - t.Fatalf("%q is not a TypeMeta and cannot be tested - add it to nonRoundTrippableInternalTypes: %v", internalGVK, err) - } - - fuzzInternalObject(t, fuzzer, object) - - // find all potential serializations in the scheme. - // TODO fix this up to handle kinds that cross registered with different names. - for externalGVK, externalGoType := range scheme.AllKnownTypes() { - if externalGVK.Version == runtime.APIVersionInternal { - continue - } - if externalGVK.GroupKind() != internalGVK.GroupKind() { - continue - } - if nonRoundTrippableTypes[externalGVK] { - t.Logf("\tskipping %v %v", externalGVK, externalGoType) - continue - } - t.Logf("\tround tripping to %v %v", externalGVK, externalGoType) - - roundTrip(t, scheme, apitesting.TestCodec(codecFactory, externalGVK.GroupVersion()), object) - - // TODO remove this hack after we're past the intermediate steps - if !skipProtobuf && externalGVK.Group != "kubeadm.k8s.io" { - s := protobuf.NewSerializer(scheme, scheme) - protobufCodec := codecFactory.CodecForVersions(s, s, externalGVK.GroupVersion(), nil) - roundTrip(t, scheme, protobufCodec, object) - } - } -} - -func roundTripOfExternalType(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, externalGVK schema.GroupVersionKind, skipProtobuf bool) { - object, err := scheme.New(externalGVK) - if err != nil { - t.Fatalf("Couldn't make a %v? %v", externalGVK, err) - } - typeAcc, err := apimeta.TypeAccessor(object) - if err != nil { - t.Fatalf("%q is not a TypeMeta and cannot be tested - add it to nonRoundTrippableInternalTypes: %v", externalGVK, err) - } - - fuzzInternalObject(t, fuzzer, object) - - typeAcc.SetKind(externalGVK.Kind) - typeAcc.SetAPIVersion(externalGVK.GroupVersion().String()) - - roundTrip(t, scheme, json.NewSerializer(json.DefaultMetaFactory, scheme, scheme, false), object) - - // TODO remove this hack after we're past the intermediate steps - if !skipProtobuf { - roundTrip(t, scheme, protobuf.NewSerializer(scheme, scheme), object) - } -} - -// roundTrip applies a single round-trip test to the given runtime object -// using the given codec. The round-trip test ensures that an object can be -// deep-copied, converted, marshaled and back without loss of data. -// -// For internal types this means -// -// internal -> external -> json/protobuf -> external -> internal. -// -// For external types this means -// -// external -> json/protobuf -> external. -func roundTrip(t *testing.T, scheme *runtime.Scheme, codec runtime.Codec, object runtime.Object) { - printer := spew.ConfigState{DisableMethods: true} - original := object - - // deep copy the original object - object = object.DeepCopyObject() - name := reflect.TypeOf(object).Elem().Name() - if !apiequality.Semantic.DeepEqual(original, object) { - t.Errorf("%v: DeepCopy altered the object, diff: %v", name, diff.ObjectReflectDiff(original, object)) - t.Errorf("%s", spew.Sdump(original)) - t.Errorf("%s", spew.Sdump(object)) - return - } - - // encode (serialize) the deep copy using the provided codec - data, err := runtime.Encode(codec, object) - if err != nil { - if runtime.IsNotRegisteredError(err) { - t.Logf("%v: not registered: %v (%s)", name, err, printer.Sprintf("%#v", object)) - } else { - t.Errorf("%v: %v (%s)", name, err, printer.Sprintf("%#v", object)) - } - return - } - - // ensure that the deep copy is equal to the original; neither the deep - // copy or conversion should alter the object - // TODO eliminate this global - if !apiequality.Semantic.DeepEqual(original, object) { - t.Errorf("%v: encode altered the object, diff: %v", name, diff.ObjectReflectDiff(original, object)) - return - } - - // encode (serialize) a second time to verify that it was not varying - secondData, err := runtime.Encode(codec, object) - if err != nil { - if runtime.IsNotRegisteredError(err) { - t.Logf("%v: not registered: %v (%s)", name, err, printer.Sprintf("%#v", object)) - } else { - t.Errorf("%v: %v (%s)", name, err, printer.Sprintf("%#v", object)) - } - return - } - - // serialization to the wire must be stable to ensure that we don't write twice to the DB - // when the object hasn't changed. - if !bytes.Equal(data, secondData) { - t.Errorf("%v: serialization is not stable: %s", name, printer.Sprintf("%#v", object)) - } - - // decode (deserialize) the encoded data back into an object - obj2, err := runtime.Decode(codec, data) - if err != nil { - t.Errorf("%v: %v\nCodec: %#v\nData: %s\nSource: %#v", name, err, codec, dataAsString(data), printer.Sprintf("%#v", object)) - panic("failed") - } - - // ensure that the object produced from decoding the encoded data is equal - // to the original object - if !apiequality.Semantic.DeepEqual(original, obj2) { - t.Errorf("%v: diff: %v\nCodec: %#v\nSource:\n\n%#v\n\nEncoded:\n\n%s\n\nFinal:\n\n%#v", name, diff.ObjectReflectDiff(original, obj2), codec, printer.Sprintf("%#v", original), dataAsString(data), printer.Sprintf("%#v", obj2)) - return - } - - // decode the encoded data into a new object (instead of letting the codec - // create a new object) - obj3 := reflect.New(reflect.TypeOf(object).Elem()).Interface().(runtime.Object) - if err := runtime.DecodeInto(codec, data, obj3); err != nil { - t.Errorf("%v: %v", name, err) - return - } - - // special case for kinds which are internal and external at the same time (many in meta.k8s.io are). For those - // runtime.DecodeInto above will return the external variant and set the APIVersion and kind, while the input - // object might be internal. Hence, we clear those values for obj3 for that case to correctly compare. - intAndExt, err := internalAndExternalKind(scheme, object) - if err != nil { - t.Errorf("%v: %v", name, err) - return - } - if intAndExt { - typeAcc, err := apimeta.TypeAccessor(object) - if err != nil { - t.Fatalf("%v: error accessing TypeMeta: %v", name, err) - } - if len(typeAcc.GetAPIVersion()) == 0 { - typeAcc, err := apimeta.TypeAccessor(obj3) - if err != nil { - t.Fatalf("%v: error accessing TypeMeta: %v", name, err) - } - typeAcc.SetAPIVersion("") - typeAcc.SetKind("") - } - } - - // ensure that the new runtime object is equal to the original after being - // decoded into - if !apiequality.Semantic.DeepEqual(object, obj3) { - t.Errorf("%v: diff: %v\nCodec: %#v", name, diff.ObjectReflectDiff(object, obj3), codec) - return - } - - // do structure-preserving fuzzing of the deep-copied object. If it shares anything with the original, - // the deep-copy was actually only a shallow copy. Then original and obj3 will be different after fuzzing. - // NOTE: we use the encoding+decoding here as an alternative, guaranteed deep-copy to compare against. - fuzzer.ValueFuzz(object) - if !apiequality.Semantic.DeepEqual(original, obj3) { - t.Errorf("%v: fuzzing a copy altered the original, diff: %v", name, diff.ObjectReflectDiff(original, obj3)) - return - } -} - -func internalAndExternalKind(scheme *runtime.Scheme, object runtime.Object) (bool, error) { - kinds, _, err := scheme.ObjectKinds(object) - if err != nil { - return false, err - } - internal, external := false, false - for _, k := range kinds { - if k.Version == runtime.APIVersionInternal { - internal = true - } else { - external = true - } - } - return internal && external, nil -} - -// dataAsString returns the given byte array as a string; handles detecting -// protocol buffers. -func dataAsString(data []byte) string { - dataString := string(data) - if !strings.HasPrefix(dataString, "{") { - dataString = "\n" + hex.Dump(data) - proto.NewBuffer(make([]byte, 0, 1024)).DebugPrint("decoded object", data) - } - return dataString -} diff --git a/pseudo/k8s/apimachinery/pkg/api/equality/semantic.go b/pseudo/k8s/apimachinery/pkg/api/equality/semantic.go deleted file mode 100644 index 4b3b3ee1d..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/equality/semantic.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright 2014 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 equality - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/fields" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/labels" -) - -// Semantic can do semantic deep equality checks for api objects. -// Example: apiequality.Semantic.DeepEqual(aPod, aPodWithNonNilButEmptyMaps) == true -var Semantic = conversion.EqualitiesOrDie( - func(a, b resource.Quantity) bool { - // Ignore formatting, only care that numeric value stayed the same. - // TODO: if we decide it's important, it should be safe to start comparing the format. - // - // Uninitialized quantities are equivalent to 0 quantities. - return a.Cmp(b) == 0 - }, - func(a, b metav1.MicroTime) bool { - return a.UTC() == b.UTC() - }, - func(a, b metav1.Time) bool { - return a.UTC() == b.UTC() - }, - func(a, b labels.Selector) bool { - return a.String() == b.String() - }, - func(a, b fields.Selector) bool { - return a.String() == b.String() - }, -) diff --git a/pseudo/k8s/apimachinery/pkg/api/errors/doc.go b/pseudo/k8s/apimachinery/pkg/api/errors/doc.go deleted file mode 100644 index 978a7be90..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/errors/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2014 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 errors provides detailed error types for api field validation. -package errors // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/errors" diff --git a/pseudo/k8s/apimachinery/pkg/api/errors/errors.go b/pseudo/k8s/apimachinery/pkg/api/errors/errors.go deleted file mode 100644 index 383251d59..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/errors/errors.go +++ /dev/null @@ -1,668 +0,0 @@ -/* -Copyright 2014 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 errors - -import ( - "encoding/json" - "fmt" - "net/http" - "reflect" - "strings" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -const ( - // StatusTooManyRequests means the server experienced too many requests within a - // given window and that the client must wait to perform the action again. - // DEPRECATED: please use http.StatusTooManyRequests, this will be removed in - // the future version. - StatusTooManyRequests = http.StatusTooManyRequests -) - -// StatusError is an error intended for consumption by a REST API server; it can also be -// reconstructed by clients from a REST response. Public to allow easy type switches. -type StatusError struct { - ErrStatus metav1.Status -} - -// APIStatus is exposed by errors that can be converted to an api.Status object -// for finer grained details. -type APIStatus interface { - Status() metav1.Status -} - -var _ error = &StatusError{} - -// Error implements the Error interface. -func (e *StatusError) Error() string { - return e.ErrStatus.Message -} - -// Status allows access to e's status without having to know the detailed workings -// of StatusError. -func (e *StatusError) Status() metav1.Status { - return e.ErrStatus -} - -// DebugError reports extended info about the error to debug output. -func (e *StatusError) DebugError() (string, []interface{}) { - if out, err := json.MarshalIndent(e.ErrStatus, "", " "); err == nil { - return "server response object: %s", []interface{}{string(out)} - } - return "server response object: %#v", []interface{}{e.ErrStatus} -} - -// UnexpectedObjectError can be returned by FromObject if it's passed a non-status object. -type UnexpectedObjectError struct { - Object runtime.Object -} - -// Error returns an error message describing 'u'. -func (u *UnexpectedObjectError) Error() string { - return fmt.Sprintf("unexpected object: %v", u.Object) -} - -// FromObject generates an StatusError from an metav1.Status, if that is the type of obj; otherwise, -// returns an UnexpecteObjectError. -func FromObject(obj runtime.Object) error { - switch t := obj.(type) { - case *metav1.Status: - return &StatusError{ErrStatus: *t} - case runtime.Unstructured: - var status metav1.Status - obj := t.UnstructuredContent() - if !reflect.DeepEqual(obj["kind"], "Status") { - break - } - if err := runtime.DefaultUnstructuredConverter.FromUnstructured(t.UnstructuredContent(), &status); err != nil { - return err - } - if status.APIVersion != "v1" && status.APIVersion != "meta.k8s.io/v1" { - break - } - return &StatusError{ErrStatus: status} - } - return &UnexpectedObjectError{obj} -} - -// NewNotFound returns a new error which indicates that the resource of the kind and the name was not found. -func NewNotFound(qualifiedResource schema.GroupResource, name string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusNotFound, - Reason: metav1.StatusReasonNotFound, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - Name: name, - }, - Message: fmt.Sprintf("%s %q not found", qualifiedResource.String(), name), - }} -} - -// NewAlreadyExists returns an error indicating the item requested exists by that identifier. -func NewAlreadyExists(qualifiedResource schema.GroupResource, name string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusConflict, - Reason: metav1.StatusReasonAlreadyExists, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - Name: name, - }, - Message: fmt.Sprintf("%s %q already exists", qualifiedResource.String(), name), - }} -} - -// NewUnauthorized returns an error indicating the client is not authorized to perform the requested -// action. -func NewUnauthorized(reason string) *StatusError { - message := reason - if len(message) == 0 { - message = "not authorized" - } - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusUnauthorized, - Reason: metav1.StatusReasonUnauthorized, - Message: message, - }} -} - -// NewForbidden returns an error indicating the requested action was forbidden -func NewForbidden(qualifiedResource schema.GroupResource, name string, err error) *StatusError { - var message string - if qualifiedResource.Empty() { - message = fmt.Sprintf("forbidden: %v", err) - } else if name == "" { - message = fmt.Sprintf("%s is forbidden: %v", qualifiedResource.String(), err) - } else { - message = fmt.Sprintf("%s %q is forbidden: %v", qualifiedResource.String(), name, err) - } - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusForbidden, - Reason: metav1.StatusReasonForbidden, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - Name: name, - }, - Message: message, - }} -} - -// NewConflict returns an error indicating the item can't be updated as provided. -func NewConflict(qualifiedResource schema.GroupResource, name string, err error) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusConflict, - Reason: metav1.StatusReasonConflict, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - Name: name, - }, - Message: fmt.Sprintf("Operation cannot be fulfilled on %s %q: %v", qualifiedResource.String(), name, err), - }} -} - -// NewApplyConflict returns an error including details on the requests apply conflicts -func NewApplyConflict(causes []metav1.StatusCause, message string) *StatusError { - return &StatusError{ErrStatus: metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusConflict, - Reason: metav1.StatusReasonConflict, - Details: &metav1.StatusDetails{ - // TODO: Get obj details here? - Causes: causes, - }, - Message: message, - }} -} - -// NewGone returns an error indicating the item no longer available at the server and no forwarding address is known. -func NewGone(message string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusGone, - Reason: metav1.StatusReasonGone, - Message: message, - }} -} - -// NewResourceExpired creates an error that indicates that the requested resource content has expired from -// the server (usually due to a resourceVersion that is too old). -func NewResourceExpired(message string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusGone, - Reason: metav1.StatusReasonExpired, - Message: message, - }} -} - -// NewInvalid returns an error indicating the item is invalid and cannot be processed. -func NewInvalid(qualifiedKind schema.GroupKind, name string, errs field.ErrorList) *StatusError { - causes := make([]metav1.StatusCause, 0, len(errs)) - for i := range errs { - err := errs[i] - causes = append(causes, metav1.StatusCause{ - Type: metav1.CauseType(err.Type), - Message: err.ErrorBody(), - Field: err.Field, - }) - } - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusUnprocessableEntity, - Reason: metav1.StatusReasonInvalid, - Details: &metav1.StatusDetails{ - Group: qualifiedKind.Group, - Kind: qualifiedKind.Kind, - Name: name, - Causes: causes, - }, - Message: fmt.Sprintf("%s %q is invalid: %v", qualifiedKind.String(), name, errs.ToAggregate()), - }} -} - -// NewBadRequest creates an error that indicates that the request is invalid and can not be processed. -func NewBadRequest(reason string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusBadRequest, - Reason: metav1.StatusReasonBadRequest, - Message: reason, - }} -} - -// NewTooManyRequests creates an error that indicates that the client must try again later because -// the specified endpoint is not accepting requests. More specific details should be provided -// if client should know why the failure was limited4. -func NewTooManyRequests(message string, retryAfterSeconds int) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusTooManyRequests, - Reason: metav1.StatusReasonTooManyRequests, - Message: message, - Details: &metav1.StatusDetails{ - RetryAfterSeconds: int32(retryAfterSeconds), - }, - }} -} - -// NewServiceUnavailable creates an error that indicates that the requested service is unavailable. -func NewServiceUnavailable(reason string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusServiceUnavailable, - Reason: metav1.StatusReasonServiceUnavailable, - Message: reason, - }} -} - -// NewMethodNotSupported returns an error indicating the requested action is not supported on this kind. -func NewMethodNotSupported(qualifiedResource schema.GroupResource, action string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusMethodNotAllowed, - Reason: metav1.StatusReasonMethodNotAllowed, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - }, - Message: fmt.Sprintf("%s is not supported on resources of kind %q", action, qualifiedResource.String()), - }} -} - -// NewServerTimeout returns an error indicating the requested action could not be completed due to a -// transient error, and the client should try again. -func NewServerTimeout(qualifiedResource schema.GroupResource, operation string, retryAfterSeconds int) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusInternalServerError, - Reason: metav1.StatusReasonServerTimeout, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - Name: operation, - RetryAfterSeconds: int32(retryAfterSeconds), - }, - Message: fmt.Sprintf("The %s operation against %s could not be completed at this time, please try again.", operation, qualifiedResource.String()), - }} -} - -// NewServerTimeoutForKind should not exist. Server timeouts happen when accessing resources, the Kind is just what we -// happened to be looking at when the request failed. This delegates to keep code sane, but we should work towards removing this. -func NewServerTimeoutForKind(qualifiedKind schema.GroupKind, operation string, retryAfterSeconds int) *StatusError { - return NewServerTimeout(schema.GroupResource{Group: qualifiedKind.Group, Resource: qualifiedKind.Kind}, operation, retryAfterSeconds) -} - -// NewInternalError returns an error indicating the item is invalid and cannot be processed. -func NewInternalError(err error) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusInternalServerError, - Reason: metav1.StatusReasonInternalError, - Details: &metav1.StatusDetails{ - Causes: []metav1.StatusCause{{Message: err.Error()}}, - }, - Message: fmt.Sprintf("Internal error occurred: %v", err), - }} -} - -// NewTimeoutError returns an error indicating that a timeout occurred before the request -// could be completed. Clients may retry, but the operation may still complete. -func NewTimeoutError(message string, retryAfterSeconds int) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusGatewayTimeout, - Reason: metav1.StatusReasonTimeout, - Message: fmt.Sprintf("Timeout: %s", message), - Details: &metav1.StatusDetails{ - RetryAfterSeconds: int32(retryAfterSeconds), - }, - }} -} - -// NewTooManyRequestsError returns an error indicating that the request was rejected because -// the server has received too many requests. Client should wait and retry. But if the request -// is perishable, then the client should not retry the request. -func NewTooManyRequestsError(message string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusTooManyRequests, - Reason: metav1.StatusReasonTooManyRequests, - Message: fmt.Sprintf("Too many requests: %s", message), - }} -} - -// NewRequestEntityTooLargeError returns an error indicating that the request -// entity was too large. -func NewRequestEntityTooLargeError(message string) *StatusError { - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusRequestEntityTooLarge, - Reason: metav1.StatusReasonRequestEntityTooLarge, - Message: fmt.Sprintf("Request entity too large: %s", message), - }} -} - -// NewGenericServerResponse returns a new error for server responses that are not in a recognizable form. -func NewGenericServerResponse(code int, verb string, qualifiedResource schema.GroupResource, name, serverMessage string, retryAfterSeconds int, isUnexpectedResponse bool) *StatusError { - reason := metav1.StatusReasonUnknown - message := fmt.Sprintf("the server responded with the status code %d but did not return more information", code) - switch code { - case http.StatusConflict: - if verb == "POST" { - reason = metav1.StatusReasonAlreadyExists - } else { - reason = metav1.StatusReasonConflict - } - message = "the server reported a conflict" - case http.StatusNotFound: - reason = metav1.StatusReasonNotFound - message = "the server could not find the requested resource" - case http.StatusBadRequest: - reason = metav1.StatusReasonBadRequest - message = "the server rejected our request for an unknown reason" - case http.StatusUnauthorized: - reason = metav1.StatusReasonUnauthorized - message = "the server has asked for the client to provide credentials" - case http.StatusForbidden: - reason = metav1.StatusReasonForbidden - // the server message has details about who is trying to perform what action. Keep its message. - message = serverMessage - case http.StatusNotAcceptable: - reason = metav1.StatusReasonNotAcceptable - // the server message has details about what types are acceptable - if len(serverMessage) == 0 || serverMessage == "unknown" { - message = "the server was unable to respond with a content type that the client supports" - } else { - message = serverMessage - } - case http.StatusUnsupportedMediaType: - reason = metav1.StatusReasonUnsupportedMediaType - // the server message has details about what types are acceptable - message = serverMessage - case http.StatusMethodNotAllowed: - reason = metav1.StatusReasonMethodNotAllowed - message = "the server does not allow this method on the requested resource" - case http.StatusUnprocessableEntity: - reason = metav1.StatusReasonInvalid - message = "the server rejected our request due to an error in our request" - case http.StatusServiceUnavailable: - reason = metav1.StatusReasonServiceUnavailable - message = "the server is currently unable to handle the request" - case http.StatusGatewayTimeout: - reason = metav1.StatusReasonTimeout - message = "the server was unable to return a response in the time allotted, but may still be processing the request" - case http.StatusTooManyRequests: - reason = metav1.StatusReasonTooManyRequests - message = "the server has received too many requests and has asked us to try again later" - default: - if code >= 500 { - reason = metav1.StatusReasonInternalError - message = fmt.Sprintf("an error on the server (%q) has prevented the request from succeeding", serverMessage) - } - } - switch { - case !qualifiedResource.Empty() && len(name) > 0: - message = fmt.Sprintf("%s (%s %s %s)", message, strings.ToLower(verb), qualifiedResource.String(), name) - case !qualifiedResource.Empty(): - message = fmt.Sprintf("%s (%s %s)", message, strings.ToLower(verb), qualifiedResource.String()) - } - var causes []metav1.StatusCause - if isUnexpectedResponse { - causes = []metav1.StatusCause{ - { - Type: metav1.CauseTypeUnexpectedServerResponse, - Message: serverMessage, - }, - } - } else { - causes = nil - } - return &StatusError{metav1.Status{ - Status: metav1.StatusFailure, - Code: int32(code), - Reason: reason, - Details: &metav1.StatusDetails{ - Group: qualifiedResource.Group, - Kind: qualifiedResource.Resource, - Name: name, - - Causes: causes, - RetryAfterSeconds: int32(retryAfterSeconds), - }, - Message: message, - }} -} - -// IsNotFound returns true if the specified error was created by NewNotFound. -func IsNotFound(err error) bool { - return ReasonForError(err) == metav1.StatusReasonNotFound -} - -// IsAlreadyExists determines if the err is an error which indicates that a specified resource already exists. -func IsAlreadyExists(err error) bool { - return ReasonForError(err) == metav1.StatusReasonAlreadyExists -} - -// IsConflict determines if the err is an error which indicates the provided update conflicts. -func IsConflict(err error) bool { - return ReasonForError(err) == metav1.StatusReasonConflict -} - -// IsInvalid determines if the err is an error which indicates the provided resource is not valid. -func IsInvalid(err error) bool { - return ReasonForError(err) == metav1.StatusReasonInvalid -} - -// IsGone is true if the error indicates the requested resource is no longer available. -func IsGone(err error) bool { - return ReasonForError(err) == metav1.StatusReasonGone -} - -// IsResourceExpired is true if the error indicates the resource has expired and the current action is -// no longer possible. -func IsResourceExpired(err error) bool { - return ReasonForError(err) == metav1.StatusReasonExpired -} - -// IsNotAcceptable determines if err is an error which indicates that the request failed due to an invalid Accept header -func IsNotAcceptable(err error) bool { - return ReasonForError(err) == metav1.StatusReasonNotAcceptable -} - -// IsUnsupportedMediaType determines if err is an error which indicates that the request failed due to an invalid Content-Type header -func IsUnsupportedMediaType(err error) bool { - return ReasonForError(err) == metav1.StatusReasonUnsupportedMediaType -} - -// IsMethodNotSupported determines if the err is an error which indicates the provided action could not -// be performed because it is not supported by the server. -func IsMethodNotSupported(err error) bool { - return ReasonForError(err) == metav1.StatusReasonMethodNotAllowed -} - -// IsServiceUnavailable is true if the error indicates the underlying service is no longer available. -func IsServiceUnavailable(err error) bool { - return ReasonForError(err) == metav1.StatusReasonServiceUnavailable -} - -// IsBadRequest determines if err is an error which indicates that the request is invalid. -func IsBadRequest(err error) bool { - return ReasonForError(err) == metav1.StatusReasonBadRequest -} - -// IsUnauthorized determines if err is an error which indicates that the request is unauthorized and -// requires authentication by the user. -func IsUnauthorized(err error) bool { - return ReasonForError(err) == metav1.StatusReasonUnauthorized -} - -// IsForbidden determines if err is an error which indicates that the request is forbidden and cannot -// be completed as requested. -func IsForbidden(err error) bool { - return ReasonForError(err) == metav1.StatusReasonForbidden -} - -// IsTimeout determines if err is an error which indicates that request times out due to long -// processing. -func IsTimeout(err error) bool { - return ReasonForError(err) == metav1.StatusReasonTimeout -} - -// IsServerTimeout determines if err is an error which indicates that the request needs to be retried -// by the client. -func IsServerTimeout(err error) bool { - return ReasonForError(err) == metav1.StatusReasonServerTimeout -} - -// IsInternalError determines if err is an error which indicates an internal server error. -func IsInternalError(err error) bool { - return ReasonForError(err) == metav1.StatusReasonInternalError -} - -// IsTooManyRequests determines if err is an error which indicates that there are too many requests -// that the server cannot handle. -func IsTooManyRequests(err error) bool { - if ReasonForError(err) == metav1.StatusReasonTooManyRequests { - return true - } - switch t := err.(type) { - case APIStatus: - return t.Status().Code == http.StatusTooManyRequests - } - return false -} - -// IsRequestEntityTooLargeError determines if err is an error which indicates -// the request entity is too large. -func IsRequestEntityTooLargeError(err error) bool { - if ReasonForError(err) == metav1.StatusReasonRequestEntityTooLarge { - return true - } - switch t := err.(type) { - case APIStatus: - return t.Status().Code == http.StatusRequestEntityTooLarge - } - return false -} - -// IsUnexpectedServerError returns true if the server response was not in the expected API format, -// and may be the result of another HTTP actor. -func IsUnexpectedServerError(err error) bool { - switch t := err.(type) { - case APIStatus: - if d := t.Status().Details; d != nil { - for _, cause := range d.Causes { - if cause.Type == metav1.CauseTypeUnexpectedServerResponse { - return true - } - } - } - } - return false -} - -// IsUnexpectedObjectError determines if err is due to an unexpected object from the master. -func IsUnexpectedObjectError(err error) bool { - _, ok := err.(*UnexpectedObjectError) - return err != nil && ok -} - -// SuggestsClientDelay returns true if this error suggests a client delay as well as the -// suggested seconds to wait, or false if the error does not imply a wait. It does not -// address whether the error *should* be retried, since some errors (like a 3xx) may -// request delay without retry. -func SuggestsClientDelay(err error) (int, bool) { - switch t := err.(type) { - case APIStatus: - if t.Status().Details != nil { - switch t.Status().Reason { - // this StatusReason explicitly requests the caller to delay the action - case metav1.StatusReasonServerTimeout: - return int(t.Status().Details.RetryAfterSeconds), true - } - // If the client requests that we retry after a certain number of seconds - if t.Status().Details.RetryAfterSeconds > 0 { - return int(t.Status().Details.RetryAfterSeconds), true - } - } - } - return 0, false -} - -// ReasonForError returns the HTTP status for a particular error. -func ReasonForError(err error) metav1.StatusReason { - switch t := err.(type) { - case APIStatus: - return t.Status().Reason - } - return metav1.StatusReasonUnknown -} - -// ErrorReporter converts generic errors into runtime.Object errors without -// requiring the caller to take a dependency on meta/v1 (where Status lives). -// This prevents circular dependencies in core watch code. -type ErrorReporter struct { - code int - verb string - reason string -} - -// NewClientErrorReporter will respond with valid v1.Status objects that report -// unexpected server responses. Primarily used by watch to report errors when -// we attempt to decode a response from the server and it is not in the form -// we expect. Because watch is a dependency of the core api, we can't return -// meta/v1.Status in that package and so much inject this interface to convert a -// generic error as appropriate. The reason is passed as a unique status cause -// on the returned status, otherwise the generic "ClientError" is returned. -func NewClientErrorReporter(code int, verb string, reason string) *ErrorReporter { - return &ErrorReporter{ - code: code, - verb: verb, - reason: reason, - } -} - -// AsObject returns a valid error runtime.Object (a v1.Status) for the given -// error, using the code and verb of the reporter type. The error is set to -// indicate that this was an unexpected server response. -func (r *ErrorReporter) AsObject(err error) runtime.Object { - status := NewGenericServerResponse(r.code, r.verb, schema.GroupResource{}, "", err.Error(), 0, true) - if status.ErrStatus.Details == nil { - status.ErrStatus.Details = &metav1.StatusDetails{} - } - reason := r.reason - if len(reason) == 0 { - reason = "ClientError" - } - status.ErrStatus.Details.Causes = append(status.ErrStatus.Details.Causes, metav1.StatusCause{ - Type: metav1.CauseType(reason), - Message: err.Error(), - }) - return &status.ErrStatus -} diff --git a/pseudo/k8s/apimachinery/pkg/api/errors/errors_test.go b/pseudo/k8s/apimachinery/pkg/api/errors/errors_test.go deleted file mode 100644 index 5faad5346..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/errors/errors_test.go +++ /dev/null @@ -1,222 +0,0 @@ -/* -Copyright 2014 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 errors - -import ( - "errors" - "fmt" - "reflect" - "testing" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -func resource(resource string) schema.GroupResource { - return schema.GroupResource{Group: "", Resource: resource} -} -func kind(kind string) schema.GroupKind { - return schema.GroupKind{Group: "", Kind: kind} -} - -func TestErrorNew(t *testing.T) { - err := NewAlreadyExists(resource("tests"), "1") - if !IsAlreadyExists(err) { - t.Errorf("expected to be %s", metav1.StatusReasonAlreadyExists) - } - if IsConflict(err) { - t.Errorf("expected to not be %s", metav1.StatusReasonConflict) - } - if IsNotFound(err) { - t.Errorf(fmt.Sprintf("expected to not be %s", metav1.StatusReasonNotFound)) - } - if IsInvalid(err) { - t.Errorf("expected to not be %s", metav1.StatusReasonInvalid) - } - if IsBadRequest(err) { - t.Errorf("expected to not be %s", metav1.StatusReasonBadRequest) - } - if IsForbidden(err) { - t.Errorf("expected to not be %s", metav1.StatusReasonForbidden) - } - if IsServerTimeout(err) { - t.Errorf("expected to not be %s", metav1.StatusReasonServerTimeout) - } - if IsMethodNotSupported(err) { - t.Errorf("expected to not be %s", metav1.StatusReasonMethodNotAllowed) - } - - if !IsConflict(NewConflict(resource("tests"), "2", errors.New("message"))) { - t.Errorf("expected to be conflict") - } - if !IsNotFound(NewNotFound(resource("tests"), "3")) { - t.Errorf("expected to be %s", metav1.StatusReasonNotFound) - } - if !IsInvalid(NewInvalid(kind("Test"), "2", nil)) { - t.Errorf("expected to be %s", metav1.StatusReasonInvalid) - } - if !IsBadRequest(NewBadRequest("reason")) { - t.Errorf("expected to be %s", metav1.StatusReasonBadRequest) - } - if !IsForbidden(NewForbidden(resource("tests"), "2", errors.New("reason"))) { - t.Errorf("expected to be %s", metav1.StatusReasonForbidden) - } - if !IsUnauthorized(NewUnauthorized("reason")) { - t.Errorf("expected to be %s", metav1.StatusReasonUnauthorized) - } - if !IsServerTimeout(NewServerTimeout(resource("tests"), "reason", 0)) { - t.Errorf("expected to be %s", metav1.StatusReasonServerTimeout) - } - if !IsMethodNotSupported(NewMethodNotSupported(resource("foos"), "delete")) { - t.Errorf("expected to be %s", metav1.StatusReasonMethodNotAllowed) - } - - if time, ok := SuggestsClientDelay(NewServerTimeout(resource("tests"), "doing something", 10)); time != 10 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewServerTimeout(resource("tests"), "doing something", 0)); time != 0 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewTimeoutError("test reason", 10)); time != 10 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewTooManyRequests("doing something", 10)); time != 10 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewTooManyRequests("doing something", 1)); time != 1 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewGenericServerResponse(429, "get", resource("tests"), "test", "doing something", 10, true)); time != 10 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewGenericServerResponse(500, "get", resource("tests"), "test", "doing something", 10, true)); time != 10 || !ok { - t.Errorf("unexpected %d", time) - } - if time, ok := SuggestsClientDelay(NewGenericServerResponse(429, "get", resource("tests"), "test", "doing something", 0, true)); time != 0 || ok { - t.Errorf("unexpected %d", time) - } -} - -func TestNewInvalid(t *testing.T) { - testCases := []struct { - Err *field.Error - Details *metav1.StatusDetails - }{ - { - field.Duplicate(field.NewPath("field[0].name"), "bar"), - &metav1.StatusDetails{ - Kind: "Kind", - Name: "name", - Causes: []metav1.StatusCause{{ - Type: metav1.CauseTypeFieldValueDuplicate, - Field: "field[0].name", - }}, - }, - }, - { - field.Invalid(field.NewPath("field[0].name"), "bar", "detail"), - &metav1.StatusDetails{ - Kind: "Kind", - Name: "name", - Causes: []metav1.StatusCause{{ - Type: metav1.CauseTypeFieldValueInvalid, - Field: "field[0].name", - }}, - }, - }, - { - field.NotFound(field.NewPath("field[0].name"), "bar"), - &metav1.StatusDetails{ - Kind: "Kind", - Name: "name", - Causes: []metav1.StatusCause{{ - Type: metav1.CauseTypeFieldValueNotFound, - Field: "field[0].name", - }}, - }, - }, - { - field.NotSupported(field.NewPath("field[0].name"), "bar", nil), - &metav1.StatusDetails{ - Kind: "Kind", - Name: "name", - Causes: []metav1.StatusCause{{ - Type: metav1.CauseTypeFieldValueNotSupported, - Field: "field[0].name", - }}, - }, - }, - { - field.Required(field.NewPath("field[0].name"), ""), - &metav1.StatusDetails{ - Kind: "Kind", - Name: "name", - Causes: []metav1.StatusCause{{ - Type: metav1.CauseTypeFieldValueRequired, - Field: "field[0].name", - }}, - }, - }, - } - for i, testCase := range testCases { - vErr, expected := testCase.Err, testCase.Details - expected.Causes[0].Message = vErr.ErrorBody() - err := NewInvalid(kind("Kind"), "name", field.ErrorList{vErr}) - status := err.ErrStatus - if status.Code != 422 || status.Reason != metav1.StatusReasonInvalid { - t.Errorf("%d: unexpected status: %#v", i, status) - } - if !reflect.DeepEqual(expected, status.Details) { - t.Errorf("%d: expected %#v, got %#v", i, expected, status.Details) - } - } -} - -func TestReasonForError(t *testing.T) { - if e, a := metav1.StatusReasonUnknown, ReasonForError(nil); e != a { - t.Errorf("unexpected reason type: %#v", a) - } -} - -type TestType struct{} - -func (obj *TestType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } -func (obj *TestType) DeepCopyObject() runtime.Object { - if obj == nil { - return nil - } - clone := *obj - return &clone -} - -func TestFromObject(t *testing.T) { - table := []struct { - obj runtime.Object - message string - }{ - {&metav1.Status{Message: "foobar"}, "foobar"}, - {&TestType{}, "unexpected object: &{}"}, - } - - for _, item := range table { - if e, a := item.message, FromObject(item.obj).Error(); e != a { - t.Errorf("Expected %v, got %v", e, a) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/doc.go b/pseudo/k8s/apimachinery/pkg/api/meta/doc.go deleted file mode 100644 index ffd696e75..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2014 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 meta provides functions for retrieving API metadata from objects -// belonging to the Kubernetes API -package meta // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/errors.go b/pseudo/k8s/apimachinery/pkg/api/meta/errors.go deleted file mode 100644 index 67d3d7119..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/errors.go +++ /dev/null @@ -1,121 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -// AmbiguousResourceError is returned if the RESTMapper finds multiple matches for a resource -type AmbiguousResourceError struct { - PartialResource schema.GroupVersionResource - - MatchingResources []schema.GroupVersionResource - MatchingKinds []schema.GroupVersionKind -} - -func (e *AmbiguousResourceError) Error() string { - switch { - case len(e.MatchingKinds) > 0 && len(e.MatchingResources) > 0: - return fmt.Sprintf("%v matches multiple resources %v and kinds %v", e.PartialResource, e.MatchingResources, e.MatchingKinds) - case len(e.MatchingKinds) > 0: - return fmt.Sprintf("%v matches multiple kinds %v", e.PartialResource, e.MatchingKinds) - case len(e.MatchingResources) > 0: - return fmt.Sprintf("%v matches multiple resources %v", e.PartialResource, e.MatchingResources) - } - return fmt.Sprintf("%v matches multiple resources or kinds", e.PartialResource) -} - -// AmbiguousKindError is returned if the RESTMapper finds multiple matches for a kind -type AmbiguousKindError struct { - PartialKind schema.GroupVersionKind - - MatchingResources []schema.GroupVersionResource - MatchingKinds []schema.GroupVersionKind -} - -func (e *AmbiguousKindError) Error() string { - switch { - case len(e.MatchingKinds) > 0 && len(e.MatchingResources) > 0: - return fmt.Sprintf("%v matches multiple resources %v and kinds %v", e.PartialKind, e.MatchingResources, e.MatchingKinds) - case len(e.MatchingKinds) > 0: - return fmt.Sprintf("%v matches multiple kinds %v", e.PartialKind, e.MatchingKinds) - case len(e.MatchingResources) > 0: - return fmt.Sprintf("%v matches multiple resources %v", e.PartialKind, e.MatchingResources) - } - return fmt.Sprintf("%v matches multiple resources or kinds", e.PartialKind) -} - -func IsAmbiguousError(err error) bool { - if err == nil { - return false - } - switch err.(type) { - case *AmbiguousResourceError, *AmbiguousKindError: - return true - default: - return false - } -} - -// NoResourceMatchError is returned if the RESTMapper can't find any match for a resource -type NoResourceMatchError struct { - PartialResource schema.GroupVersionResource -} - -func (e *NoResourceMatchError) Error() string { - return fmt.Sprintf("no matches for %v", e.PartialResource) -} - -// NoKindMatchError is returned if the RESTMapper can't find any match for a kind -type NoKindMatchError struct { - // GroupKind is the API group and kind that was searched - GroupKind schema.GroupKind - // SearchedVersions is the optional list of versions the search was restricted to - SearchedVersions []string -} - -func (e *NoKindMatchError) Error() string { - searchedVersions := sets.NewString() - for _, v := range e.SearchedVersions { - searchedVersions.Insert(schema.GroupVersion{Group: e.GroupKind.Group, Version: v}.String()) - } - - switch len(searchedVersions) { - case 0: - return fmt.Sprintf("no matches for kind %q in group %q", e.GroupKind.Kind, e.GroupKind.Group) - case 1: - return fmt.Sprintf("no matches for kind %q in version %q", e.GroupKind.Kind, searchedVersions.List()[0]) - default: - return fmt.Sprintf("no matches for kind %q in versions %q", e.GroupKind.Kind, searchedVersions.List()) - } -} - -func IsNoMatchError(err error) bool { - if err == nil { - return false - } - switch err.(type) { - case *NoResourceMatchError, *NoKindMatchError: - return true - default: - return false - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/firsthit_restmapper.go b/pseudo/k8s/apimachinery/pkg/api/meta/firsthit_restmapper.go deleted file mode 100644 index cc23c16e2..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/firsthit_restmapper.go +++ /dev/null @@ -1,97 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - utilerrors "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/errors" -) - -// FirstHitRESTMapper is a wrapper for multiple RESTMappers which returns the -// first successful result for the singular requests -type FirstHitRESTMapper struct { - MultiRESTMapper -} - -func (m FirstHitRESTMapper) String() string { - return fmt.Sprintf("FirstHitRESTMapper{\n\t%v\n}", m.MultiRESTMapper) -} - -func (m FirstHitRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) { - errors := []error{} - for _, t := range m.MultiRESTMapper { - ret, err := t.ResourceFor(resource) - if err == nil { - return ret, nil - } - errors = append(errors, err) - } - - return schema.GroupVersionResource{}, collapseAggregateErrors(errors) -} - -func (m FirstHitRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { - errors := []error{} - for _, t := range m.MultiRESTMapper { - ret, err := t.KindFor(resource) - if err == nil { - return ret, nil - } - errors = append(errors, err) - } - - return schema.GroupVersionKind{}, collapseAggregateErrors(errors) -} - -// RESTMapping provides the REST mapping for the resource based on the -// kind and version. This implementation supports multiple REST schemas and -// return the first match. -func (m FirstHitRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { - errors := []error{} - for _, t := range m.MultiRESTMapper { - ret, err := t.RESTMapping(gk, versions...) - if err == nil { - return ret, nil - } - errors = append(errors, err) - } - - return nil, collapseAggregateErrors(errors) -} - -// collapseAggregateErrors returns the minimal errors. it handles empty as nil, handles one item in a list -// by returning the item, and collapses all NoMatchErrors to a single one (since they should all be the same) -func collapseAggregateErrors(errors []error) error { - if len(errors) == 0 { - return nil - } - if len(errors) == 1 { - return errors[0] - } - - allNoMatchErrors := true - for _, err := range errors { - allNoMatchErrors = allNoMatchErrors && IsNoMatchError(err) - } - if allNoMatchErrors { - return errors[0] - } - - return utilerrors.NewAggregate(errors) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/help.go b/pseudo/k8s/apimachinery/pkg/api/meta/help.go deleted file mode 100644 index 535c40cc6..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/help.go +++ /dev/null @@ -1,264 +0,0 @@ -/* -Copyright 2015 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 meta - -import ( - "errors" - "fmt" - "reflect" - "sync" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -var ( - // isListCache maintains a cache of types that are checked for lists - // which is used by IsListType. - // TODO: remove and replace with an interface check - isListCache = struct { - lock sync.RWMutex - byType map[reflect.Type]bool - }{ - byType: make(map[reflect.Type]bool, 1024), - } -) - -// IsListType returns true if the provided Object has a slice called Items. -// TODO: Replace the code in this check with an interface comparison by -// creating and enforcing that lists implement a list accessor. -func IsListType(obj runtime.Object) bool { - switch t := obj.(type) { - case runtime.Unstructured: - return t.IsList() - } - t := reflect.TypeOf(obj) - - isListCache.lock.RLock() - ok, exists := isListCache.byType[t] - isListCache.lock.RUnlock() - - if !exists { - _, err := getItemsPtr(obj) - ok = err == nil - - // cache only the first 1024 types - isListCache.lock.Lock() - if len(isListCache.byType) < 1024 { - isListCache.byType[t] = ok - } - isListCache.lock.Unlock() - } - - return ok -} - -var ( - errExpectFieldItems = errors.New("no Items field in this object") - errExpectSliceItems = errors.New("Items field must be a slice of objects") -) - -// GetItemsPtr returns a pointer to the list object's Items member. -// If 'list' doesn't have an Items member, it's not really a list type -// and an error will be returned. -// This function will either return a pointer to a slice, or an error, but not both. -// TODO: this will be replaced with an interface in the future -func GetItemsPtr(list runtime.Object) (interface{}, error) { - obj, err := getItemsPtr(list) - if err != nil { - return nil, fmt.Errorf("%T is not a list: %v", list, err) - } - return obj, nil -} - -// getItemsPtr returns a pointer to the list object's Items member or an error. -func getItemsPtr(list runtime.Object) (interface{}, error) { - v, err := conversion.EnforcePtr(list) - if err != nil { - return nil, err - } - - items := v.FieldByName("Items") - if !items.IsValid() { - return nil, errExpectFieldItems - } - switch items.Kind() { - case reflect.Interface, reflect.Ptr: - target := reflect.TypeOf(items.Interface()).Elem() - if target.Kind() != reflect.Slice { - return nil, errExpectSliceItems - } - return items.Interface(), nil - case reflect.Slice: - return items.Addr().Interface(), nil - default: - return nil, errExpectSliceItems - } -} - -// EachListItem invokes fn on each runtime.Object in the list. Any error immediately terminates -// the loop. -func EachListItem(obj runtime.Object, fn func(runtime.Object) error) error { - if unstructured, ok := obj.(runtime.Unstructured); ok { - return unstructured.EachListItem(fn) - } - // TODO: Change to an interface call? - itemsPtr, err := GetItemsPtr(obj) - if err != nil { - return err - } - items, err := conversion.EnforcePtr(itemsPtr) - if err != nil { - return err - } - len := items.Len() - if len == 0 { - return nil - } - takeAddr := false - if elemType := items.Type().Elem(); elemType.Kind() != reflect.Ptr && elemType.Kind() != reflect.Interface { - if !items.Index(0).CanAddr() { - return fmt.Errorf("unable to take address of items in %T for EachListItem", obj) - } - takeAddr = true - } - - for i := 0; i < len; i++ { - raw := items.Index(i) - if takeAddr { - raw = raw.Addr() - } - switch item := raw.Interface().(type) { - case *runtime.RawExtension: - if err := fn(item.Object); err != nil { - return err - } - case runtime.Object: - if err := fn(item); err != nil { - return err - } - default: - obj, ok := item.(runtime.Object) - if !ok { - return fmt.Errorf("%v: item[%v]: Expected object, got %#v(%s)", obj, i, raw.Interface(), raw.Kind()) - } - if err := fn(obj); err != nil { - return err - } - } - } - return nil -} - -// ExtractList returns obj's Items element as an array of runtime.Objects. -// Returns an error if obj is not a List type (does not have an Items member). -func ExtractList(obj runtime.Object) ([]runtime.Object, error) { - itemsPtr, err := GetItemsPtr(obj) - if err != nil { - return nil, err - } - items, err := conversion.EnforcePtr(itemsPtr) - if err != nil { - return nil, err - } - list := make([]runtime.Object, items.Len()) - for i := range list { - raw := items.Index(i) - switch item := raw.Interface().(type) { - case runtime.RawExtension: - switch { - case item.Object != nil: - list[i] = item.Object - case item.Raw != nil: - // TODO: Set ContentEncoding and ContentType correctly. - list[i] = &runtime.Unknown{Raw: item.Raw} - default: - list[i] = nil - } - case runtime.Object: - list[i] = item - default: - var found bool - if list[i], found = raw.Addr().Interface().(runtime.Object); !found { - return nil, fmt.Errorf("%v: item[%v]: Expected object, got %#v(%s)", obj, i, raw.Interface(), raw.Kind()) - } - } - } - return list, nil -} - -// objectSliceType is the type of a slice of Objects -var objectSliceType = reflect.TypeOf([]runtime.Object{}) - -// LenList returns the length of this list or 0 if it is not a list. -func LenList(list runtime.Object) int { - itemsPtr, err := GetItemsPtr(list) - if err != nil { - return 0 - } - items, err := conversion.EnforcePtr(itemsPtr) - if err != nil { - return 0 - } - return items.Len() -} - -// SetList sets the given list object's Items member have the elements given in -// objects. -// Returns an error if list is not a List type (does not have an Items member), -// or if any of the objects are not of the right type. -func SetList(list runtime.Object, objects []runtime.Object) error { - itemsPtr, err := GetItemsPtr(list) - if err != nil { - return err - } - items, err := conversion.EnforcePtr(itemsPtr) - if err != nil { - return err - } - if items.Type() == objectSliceType { - items.Set(reflect.ValueOf(objects)) - return nil - } - slice := reflect.MakeSlice(items.Type(), len(objects), len(objects)) - for i := range objects { - dest := slice.Index(i) - if dest.Type() == reflect.TypeOf(runtime.RawExtension{}) { - dest = dest.FieldByName("Object") - } - - // check to see if you're directly assignable - if reflect.TypeOf(objects[i]).AssignableTo(dest.Type()) { - dest.Set(reflect.ValueOf(objects[i])) - continue - } - - src, err := conversion.EnforcePtr(objects[i]) - if err != nil { - return err - } - if src.Type().AssignableTo(dest.Type()) { - dest.Set(src) - } else if src.Type().ConvertibleTo(dest.Type()) { - dest.Set(src.Convert(dest.Type())) - } else { - return fmt.Errorf("item[%d]: can't assign or convert %v into %v", i, src.Type(), dest.Type()) - } - } - items.Set(slice) - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/interfaces.go b/pseudo/k8s/apimachinery/pkg/api/meta/interfaces.go deleted file mode 100644 index fe6cd9bd5..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/interfaces.go +++ /dev/null @@ -1,134 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -type ListMetaAccessor interface { - GetListMeta() List -} - -// List lets you work with list metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field will be a no-op and return a default value. -type List metav1.ListInterface - -// Type exposes the type and APIVersion of versioned or internal API objects. -type Type metav1.Type - -// MetadataAccessor lets you work with object and list metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field (Name, UID, Namespace on lists) will be a no-op and return -// a default value. -// -// MetadataAccessor exposes Interface in a way that can be used with multiple objects. -type MetadataAccessor interface { - APIVersion(obj runtime.Object) (string, error) - SetAPIVersion(obj runtime.Object, version string) error - - Kind(obj runtime.Object) (string, error) - SetKind(obj runtime.Object, kind string) error - - Namespace(obj runtime.Object) (string, error) - SetNamespace(obj runtime.Object, namespace string) error - - Name(obj runtime.Object) (string, error) - SetName(obj runtime.Object, name string) error - - GenerateName(obj runtime.Object) (string, error) - SetGenerateName(obj runtime.Object, name string) error - - UID(obj runtime.Object) (types.UID, error) - SetUID(obj runtime.Object, uid types.UID) error - - SelfLink(obj runtime.Object) (string, error) - SetSelfLink(obj runtime.Object, selfLink string) error - - Labels(obj runtime.Object) (map[string]string, error) - SetLabels(obj runtime.Object, labels map[string]string) error - - Annotations(obj runtime.Object) (map[string]string, error) - SetAnnotations(obj runtime.Object, annotations map[string]string) error - - Continue(obj runtime.Object) (string, error) - SetContinue(obj runtime.Object, c string) error - - runtime.ResourceVersioner -} - -type RESTScopeName string - -const ( - RESTScopeNameNamespace RESTScopeName = "namespace" - RESTScopeNameRoot RESTScopeName = "root" -) - -// RESTScope contains the information needed to deal with REST resources that are in a resource hierarchy -type RESTScope interface { - // Name of the scope - Name() RESTScopeName -} - -// RESTMapping contains the information needed to deal with objects of a specific -// resource and kind in a RESTful manner. -type RESTMapping struct { - // Resource is the GroupVersionResource (location) for this endpoint - Resource schema.GroupVersionResource - - // GroupVersionKind is the GroupVersionKind (data format) to submit to this endpoint - GroupVersionKind schema.GroupVersionKind - - // Scope contains the information needed to deal with REST Resources that are in a resource hierarchy - Scope RESTScope -} - -// RESTMapper allows clients to map resources to kind, and map kind and version -// to interfaces for manipulating those objects. It is primarily intended for -// consumers of Kubernetes compatible REST APIs as defined in docs/devel/api-conventions.md. -// -// The Kubernetes API provides versioned resources and object kinds which are scoped -// to API groups. In other words, kinds and resources should not be assumed to be -// unique across groups. -// -// TODO: split into sub-interfaces -type RESTMapper interface { - // KindFor takes a partial resource and returns the single match. Returns an error if there are multiple matches - KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) - - // KindsFor takes a partial resource and returns the list of potential kinds in priority order - KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error) - - // ResourceFor takes a partial resource and returns the single match. Returns an error if there are multiple matches - ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error) - - // ResourcesFor takes a partial resource and returns the list of potential resource in priority order - ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error) - - // RESTMapping identifies a preferred resource mapping for the provided group kind. - RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) - // RESTMappings returns all resource mappings for the provided group kind if no - // version search is provided. Otherwise identifies a preferred resource mapping for - // the provided version(s). - RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) - - ResourceSingularizer(resource string) (singular string, err error) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/lazy.go b/pseudo/k8s/apimachinery/pkg/api/meta/lazy.go deleted file mode 100644 index ff001a93d..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/lazy.go +++ /dev/null @@ -1,104 +0,0 @@ -/* -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 meta - -import ( - "sync" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// lazyObject defers loading the mapper and typer until necessary. -type lazyObject struct { - loader func() (RESTMapper, error) - - lock sync.Mutex - loaded bool - err error - mapper RESTMapper -} - -// NewLazyObjectLoader handles unrecoverable errors when creating a RESTMapper / ObjectTyper by -// returning those initialization errors when the interface methods are invoked. This defers the -// initialization and any server calls until a client actually needs to perform the action. -func NewLazyRESTMapperLoader(fn func() (RESTMapper, error)) RESTMapper { - obj := &lazyObject{loader: fn} - return obj -} - -// init lazily loads the mapper and typer, returning an error if initialization has failed. -func (o *lazyObject) init() error { - o.lock.Lock() - defer o.lock.Unlock() - if o.loaded { - return o.err - } - o.mapper, o.err = o.loader() - o.loaded = true - return o.err -} - -var _ RESTMapper = &lazyObject{} - -func (o *lazyObject) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { - if err := o.init(); err != nil { - return schema.GroupVersionKind{}, err - } - return o.mapper.KindFor(resource) -} - -func (o *lazyObject) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error) { - if err := o.init(); err != nil { - return []schema.GroupVersionKind{}, err - } - return o.mapper.KindsFor(resource) -} - -func (o *lazyObject) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error) { - if err := o.init(); err != nil { - return schema.GroupVersionResource{}, err - } - return o.mapper.ResourceFor(input) -} - -func (o *lazyObject) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error) { - if err := o.init(); err != nil { - return []schema.GroupVersionResource{}, err - } - return o.mapper.ResourcesFor(input) -} - -func (o *lazyObject) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { - if err := o.init(); err != nil { - return nil, err - } - return o.mapper.RESTMapping(gk, versions...) -} - -func (o *lazyObject) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) { - if err := o.init(); err != nil { - return nil, err - } - return o.mapper.RESTMappings(gk, versions...) -} - -func (o *lazyObject) ResourceSingularizer(resource string) (singular string, err error) { - if err := o.init(); err != nil { - return "", err - } - return o.mapper.ResourceSingularizer(resource) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/meta.go b/pseudo/k8s/apimachinery/pkg/api/meta/meta.go deleted file mode 100644 index 0443e3d29..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/meta.go +++ /dev/null @@ -1,648 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - "fmt" - "reflect" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - "k8s.io/klog" -) - -// errNotList is returned when an object implements the Object style interfaces but not the List style -// interfaces. -var errNotList = fmt.Errorf("object does not implement the List interfaces") - -var errNotCommon = fmt.Errorf("object does not implement the common interface for accessing the SelfLink") - -// CommonAccessor returns a Common interface for the provided object or an error if the object does -// not provide List. -func CommonAccessor(obj interface{}) (metav1.Common, error) { - switch t := obj.(type) { - case List: - return t, nil - case metav1.ListInterface: - return t, nil - case ListMetaAccessor: - if m := t.GetListMeta(); m != nil { - return m, nil - } - return nil, errNotCommon - case metav1.ListMetaAccessor: - if m := t.GetListMeta(); m != nil { - return m, nil - } - return nil, errNotCommon - case metav1.Object: - return t, nil - case metav1.ObjectMetaAccessor: - if m := t.GetObjectMeta(); m != nil { - return m, nil - } - return nil, errNotCommon - default: - return nil, errNotCommon - } -} - -// ListAccessor returns a List interface for the provided object or an error if the object does -// not provide List. -// IMPORTANT: Objects are NOT a superset of lists. Do not use this check to determine whether an -// object *is* a List. -func ListAccessor(obj interface{}) (List, error) { - switch t := obj.(type) { - case List: - return t, nil - case metav1.ListInterface: - return t, nil - case ListMetaAccessor: - if m := t.GetListMeta(); m != nil { - return m, nil - } - return nil, errNotList - case metav1.ListMetaAccessor: - if m := t.GetListMeta(); m != nil { - return m, nil - } - return nil, errNotList - default: - return nil, errNotList - } -} - -// errNotObject is returned when an object implements the List style interfaces but not the Object style -// interfaces. -var errNotObject = fmt.Errorf("object does not implement the Object interfaces") - -// Accessor takes an arbitrary object pointer and returns meta.Interface. -// obj must be a pointer to an API type. An error is returned if the minimum -// required fields are missing. Fields that are not required return the default -// value and are a no-op if set. -func Accessor(obj interface{}) (metav1.Object, error) { - switch t := obj.(type) { - case metav1.Object: - return t, nil - case metav1.ObjectMetaAccessor: - if m := t.GetObjectMeta(); m != nil { - return m, nil - } - return nil, errNotObject - default: - return nil, errNotObject - } -} - -// AsPartialObjectMetadata takes the metav1 interface and returns a partial object. -// TODO: consider making this solely a conversion action. -func AsPartialObjectMetadata(m metav1.Object) *metav1.PartialObjectMetadata { - switch t := m.(type) { - case *metav1.ObjectMeta: - return &metav1.PartialObjectMetadata{ObjectMeta: *t} - default: - return &metav1.PartialObjectMetadata{ - ObjectMeta: metav1.ObjectMeta{ - Name: m.GetName(), - GenerateName: m.GetGenerateName(), - Namespace: m.GetNamespace(), - SelfLink: m.GetSelfLink(), - UID: m.GetUID(), - ResourceVersion: m.GetResourceVersion(), - Generation: m.GetGeneration(), - CreationTimestamp: m.GetCreationTimestamp(), - DeletionTimestamp: m.GetDeletionTimestamp(), - DeletionGracePeriodSeconds: m.GetDeletionGracePeriodSeconds(), - Labels: m.GetLabels(), - Annotations: m.GetAnnotations(), - OwnerReferences: m.GetOwnerReferences(), - Finalizers: m.GetFinalizers(), - ClusterName: m.GetClusterName(), - ManagedFields: m.GetManagedFields(), - }, - } - } -} - -// TypeAccessor returns an interface that allows retrieving and modifying the APIVersion -// and Kind of an in-memory internal object. -// TODO: this interface is used to test code that does not have ObjectMeta or ListMeta -// in round tripping (objects which can use apiVersion/kind, but do not fit the Kube -// api conventions). -func TypeAccessor(obj interface{}) (Type, error) { - if typed, ok := obj.(runtime.Object); ok { - return objectAccessor{typed}, nil - } - v, err := conversion.EnforcePtr(obj) - if err != nil { - return nil, err - } - t := v.Type() - if v.Kind() != reflect.Struct { - return nil, fmt.Errorf("expected struct, but got %v: %v (%#v)", v.Kind(), t, v.Interface()) - } - - typeMeta := v.FieldByName("TypeMeta") - if !typeMeta.IsValid() { - return nil, fmt.Errorf("struct %v lacks embedded TypeMeta type", t) - } - a := &genericAccessor{} - if err := extractFromTypeMeta(typeMeta, a); err != nil { - return nil, fmt.Errorf("unable to find type fields on %#v: %v", typeMeta, err) - } - return a, nil -} - -type objectAccessor struct { - runtime.Object -} - -func (obj objectAccessor) GetKind() string { - return obj.GetObjectKind().GroupVersionKind().Kind -} - -func (obj objectAccessor) SetKind(kind string) { - gvk := obj.GetObjectKind().GroupVersionKind() - gvk.Kind = kind - obj.GetObjectKind().SetGroupVersionKind(gvk) -} - -func (obj objectAccessor) GetAPIVersion() string { - return obj.GetObjectKind().GroupVersionKind().GroupVersion().String() -} - -func (obj objectAccessor) SetAPIVersion(version string) { - gvk := obj.GetObjectKind().GroupVersionKind() - gv, err := schema.ParseGroupVersion(version) - if err != nil { - gv = schema.GroupVersion{Version: version} - } - gvk.Group, gvk.Version = gv.Group, gv.Version - obj.GetObjectKind().SetGroupVersionKind(gvk) -} - -// NewAccessor returns a MetadataAccessor that can retrieve -// or manipulate resource version on objects derived from core API -// metadata concepts. -func NewAccessor() MetadataAccessor { - return resourceAccessor{} -} - -// resourceAccessor implements ResourceVersioner and SelfLinker. -type resourceAccessor struct{} - -func (resourceAccessor) Kind(obj runtime.Object) (string, error) { - return objectAccessor{obj}.GetKind(), nil -} - -func (resourceAccessor) SetKind(obj runtime.Object, kind string) error { - objectAccessor{obj}.SetKind(kind) - return nil -} - -func (resourceAccessor) APIVersion(obj runtime.Object) (string, error) { - return objectAccessor{obj}.GetAPIVersion(), nil -} - -func (resourceAccessor) SetAPIVersion(obj runtime.Object, version string) error { - objectAccessor{obj}.SetAPIVersion(version) - return nil -} - -func (resourceAccessor) Namespace(obj runtime.Object) (string, error) { - accessor, err := Accessor(obj) - if err != nil { - return "", err - } - return accessor.GetNamespace(), nil -} - -func (resourceAccessor) SetNamespace(obj runtime.Object, namespace string) error { - accessor, err := Accessor(obj) - if err != nil { - return err - } - accessor.SetNamespace(namespace) - return nil -} - -func (resourceAccessor) Name(obj runtime.Object) (string, error) { - accessor, err := Accessor(obj) - if err != nil { - return "", err - } - return accessor.GetName(), nil -} - -func (resourceAccessor) SetName(obj runtime.Object, name string) error { - accessor, err := Accessor(obj) - if err != nil { - return err - } - accessor.SetName(name) - return nil -} - -func (resourceAccessor) GenerateName(obj runtime.Object) (string, error) { - accessor, err := Accessor(obj) - if err != nil { - return "", err - } - return accessor.GetGenerateName(), nil -} - -func (resourceAccessor) SetGenerateName(obj runtime.Object, name string) error { - accessor, err := Accessor(obj) - if err != nil { - return err - } - accessor.SetGenerateName(name) - return nil -} - -func (resourceAccessor) UID(obj runtime.Object) (types.UID, error) { - accessor, err := Accessor(obj) - if err != nil { - return "", err - } - return accessor.GetUID(), nil -} - -func (resourceAccessor) SetUID(obj runtime.Object, uid types.UID) error { - accessor, err := Accessor(obj) - if err != nil { - return err - } - accessor.SetUID(uid) - return nil -} - -func (resourceAccessor) SelfLink(obj runtime.Object) (string, error) { - accessor, err := CommonAccessor(obj) - if err != nil { - return "", err - } - return accessor.GetSelfLink(), nil -} - -func (resourceAccessor) SetSelfLink(obj runtime.Object, selfLink string) error { - accessor, err := CommonAccessor(obj) - if err != nil { - return err - } - accessor.SetSelfLink(selfLink) - return nil -} - -func (resourceAccessor) Labels(obj runtime.Object) (map[string]string, error) { - accessor, err := Accessor(obj) - if err != nil { - return nil, err - } - return accessor.GetLabels(), nil -} - -func (resourceAccessor) SetLabels(obj runtime.Object, labels map[string]string) error { - accessor, err := Accessor(obj) - if err != nil { - return err - } - accessor.SetLabels(labels) - return nil -} - -func (resourceAccessor) Annotations(obj runtime.Object) (map[string]string, error) { - accessor, err := Accessor(obj) - if err != nil { - return nil, err - } - return accessor.GetAnnotations(), nil -} - -func (resourceAccessor) SetAnnotations(obj runtime.Object, annotations map[string]string) error { - accessor, err := Accessor(obj) - if err != nil { - return err - } - accessor.SetAnnotations(annotations) - return nil -} - -func (resourceAccessor) ResourceVersion(obj runtime.Object) (string, error) { - accessor, err := CommonAccessor(obj) - if err != nil { - return "", err - } - return accessor.GetResourceVersion(), nil -} - -func (resourceAccessor) SetResourceVersion(obj runtime.Object, version string) error { - accessor, err := CommonAccessor(obj) - if err != nil { - return err - } - accessor.SetResourceVersion(version) - return nil -} - -func (resourceAccessor) Continue(obj runtime.Object) (string, error) { - accessor, err := ListAccessor(obj) - if err != nil { - return "", err - } - return accessor.GetContinue(), nil -} - -func (resourceAccessor) SetContinue(obj runtime.Object, version string) error { - accessor, err := ListAccessor(obj) - if err != nil { - return err - } - accessor.SetContinue(version) - return nil -} - -// extractFromOwnerReference extracts v to o. v is the OwnerReferences field of an object. -func extractFromOwnerReference(v reflect.Value, o *metav1.OwnerReference) error { - if err := runtime.Field(v, "APIVersion", &o.APIVersion); err != nil { - return err - } - if err := runtime.Field(v, "Kind", &o.Kind); err != nil { - return err - } - if err := runtime.Field(v, "Name", &o.Name); err != nil { - return err - } - if err := runtime.Field(v, "UID", &o.UID); err != nil { - return err - } - var controllerPtr *bool - if err := runtime.Field(v, "Controller", &controllerPtr); err != nil { - return err - } - if controllerPtr != nil { - controller := *controllerPtr - o.Controller = &controller - } - var blockOwnerDeletionPtr *bool - if err := runtime.Field(v, "BlockOwnerDeletion", &blockOwnerDeletionPtr); err != nil { - return err - } - if blockOwnerDeletionPtr != nil { - block := *blockOwnerDeletionPtr - o.BlockOwnerDeletion = &block - } - return nil -} - -// setOwnerReference sets v to o. v is the OwnerReferences field of an object. -func setOwnerReference(v reflect.Value, o *metav1.OwnerReference) error { - if err := runtime.SetField(o.APIVersion, v, "APIVersion"); err != nil { - return err - } - if err := runtime.SetField(o.Kind, v, "Kind"); err != nil { - return err - } - if err := runtime.SetField(o.Name, v, "Name"); err != nil { - return err - } - if err := runtime.SetField(o.UID, v, "UID"); err != nil { - return err - } - if o.Controller != nil { - controller := *(o.Controller) - if err := runtime.SetField(&controller, v, "Controller"); err != nil { - return err - } - } - if o.BlockOwnerDeletion != nil { - block := *(o.BlockOwnerDeletion) - if err := runtime.SetField(&block, v, "BlockOwnerDeletion"); err != nil { - return err - } - } - return nil -} - -// genericAccessor contains pointers to strings that can modify an arbitrary -// struct and implements the Accessor interface. -type genericAccessor struct { - namespace *string - name *string - generateName *string - uid *types.UID - apiVersion *string - kind *string - resourceVersion *string - selfLink *string - creationTimestamp *metav1.Time - deletionTimestamp **metav1.Time - labels *map[string]string - annotations *map[string]string - ownerReferences reflect.Value - finalizers *[]string -} - -func (a genericAccessor) GetNamespace() string { - if a.namespace == nil { - return "" - } - return *a.namespace -} - -func (a genericAccessor) SetNamespace(namespace string) { - if a.namespace == nil { - return - } - *a.namespace = namespace -} - -func (a genericAccessor) GetName() string { - if a.name == nil { - return "" - } - return *a.name -} - -func (a genericAccessor) SetName(name string) { - if a.name == nil { - return - } - *a.name = name -} - -func (a genericAccessor) GetGenerateName() string { - if a.generateName == nil { - return "" - } - return *a.generateName -} - -func (a genericAccessor) SetGenerateName(generateName string) { - if a.generateName == nil { - return - } - *a.generateName = generateName -} - -func (a genericAccessor) GetUID() types.UID { - if a.uid == nil { - return "" - } - return *a.uid -} - -func (a genericAccessor) SetUID(uid types.UID) { - if a.uid == nil { - return - } - *a.uid = uid -} - -func (a genericAccessor) GetAPIVersion() string { - return *a.apiVersion -} - -func (a genericAccessor) SetAPIVersion(version string) { - *a.apiVersion = version -} - -func (a genericAccessor) GetKind() string { - return *a.kind -} - -func (a genericAccessor) SetKind(kind string) { - *a.kind = kind -} - -func (a genericAccessor) GetResourceVersion() string { - return *a.resourceVersion -} - -func (a genericAccessor) SetResourceVersion(version string) { - *a.resourceVersion = version -} - -func (a genericAccessor) GetSelfLink() string { - return *a.selfLink -} - -func (a genericAccessor) SetSelfLink(selfLink string) { - *a.selfLink = selfLink -} - -func (a genericAccessor) GetCreationTimestamp() metav1.Time { - return *a.creationTimestamp -} - -func (a genericAccessor) SetCreationTimestamp(timestamp metav1.Time) { - *a.creationTimestamp = timestamp -} - -func (a genericAccessor) GetDeletionTimestamp() *metav1.Time { - return *a.deletionTimestamp -} - -func (a genericAccessor) SetDeletionTimestamp(timestamp *metav1.Time) { - *a.deletionTimestamp = timestamp -} - -func (a genericAccessor) GetLabels() map[string]string { - if a.labels == nil { - return nil - } - return *a.labels -} - -func (a genericAccessor) SetLabels(labels map[string]string) { - *a.labels = labels -} - -func (a genericAccessor) GetAnnotations() map[string]string { - if a.annotations == nil { - return nil - } - return *a.annotations -} - -func (a genericAccessor) SetAnnotations(annotations map[string]string) { - if a.annotations == nil { - emptyAnnotations := make(map[string]string) - a.annotations = &emptyAnnotations - } - *a.annotations = annotations -} - -func (a genericAccessor) GetFinalizers() []string { - if a.finalizers == nil { - return nil - } - return *a.finalizers -} - -func (a genericAccessor) SetFinalizers(finalizers []string) { - *a.finalizers = finalizers -} - -func (a genericAccessor) GetOwnerReferences() []metav1.OwnerReference { - var ret []metav1.OwnerReference - s := a.ownerReferences - if s.Kind() != reflect.Ptr || s.Elem().Kind() != reflect.Slice { - klog.Errorf("expect %v to be a pointer to slice", s) - return ret - } - s = s.Elem() - // Set the capacity to one element greater to avoid copy if the caller later append an element. - ret = make([]metav1.OwnerReference, s.Len(), s.Len()+1) - for i := 0; i < s.Len(); i++ { - if err := extractFromOwnerReference(s.Index(i), &ret[i]); err != nil { - klog.Errorf("extractFromOwnerReference failed: %v", err) - return ret - } - } - return ret -} - -func (a genericAccessor) SetOwnerReferences(references []metav1.OwnerReference) { - s := a.ownerReferences - if s.Kind() != reflect.Ptr || s.Elem().Kind() != reflect.Slice { - klog.Errorf("expect %v to be a pointer to slice", s) - } - s = s.Elem() - newReferences := reflect.MakeSlice(s.Type(), len(references), len(references)) - for i := 0; i < len(references); i++ { - if err := setOwnerReference(newReferences.Index(i), &references[i]); err != nil { - klog.Errorf("setOwnerReference failed: %v", err) - return - } - } - s.Set(newReferences) -} - -// extractFromTypeMeta extracts pointers to version and kind fields from an object -func extractFromTypeMeta(v reflect.Value, a *genericAccessor) error { - if err := runtime.FieldPtr(v, "APIVersion", &a.apiVersion); err != nil { - return err - } - if err := runtime.FieldPtr(v, "Kind", &a.kind); err != nil { - return err - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/meta_test.go b/pseudo/k8s/apimachinery/pkg/api/meta/meta_test.go deleted file mode 100644 index a2059ddbf..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/meta_test.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -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 meta - -import ( - "math/rand" - "reflect" - "testing" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - metav1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" - - fuzz "github.com/google/gofuzz" -) - -func TestAsPartialObjectMetadata(t *testing.T) { - f := fuzz.New().NilChance(.5).NumElements(0, 1).RandSource(rand.NewSource(1)) - - for i := 0; i < 100; i++ { - m := &metav1.ObjectMeta{} - f.Fuzz(m) - partial := AsPartialObjectMetadata(m) - if !reflect.DeepEqual(&partial.ObjectMeta, m) { - t.Fatalf("incomplete partial object metadata: %s", diff.ObjectReflectDiff(&partial.ObjectMeta, m)) - } - } - - for i := 0; i < 100; i++ { - m := &metav1beta1.PartialObjectMetadata{} - f.Fuzz(&m.ObjectMeta) - partial := AsPartialObjectMetadata(m) - if !reflect.DeepEqual(&partial.ObjectMeta, &m.ObjectMeta) { - t.Fatalf("incomplete partial object metadata: %s", diff.ObjectReflectDiff(&partial.ObjectMeta, &m.ObjectMeta)) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper.go b/pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper.go deleted file mode 100644 index 2116ab9b5..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper.go +++ /dev/null @@ -1,210 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - "fmt" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - utilerrors "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/errors" -) - -// MultiRESTMapper is a wrapper for multiple RESTMappers. -type MultiRESTMapper []RESTMapper - -func (m MultiRESTMapper) String() string { - nested := []string{} - for _, t := range m { - currString := fmt.Sprintf("%v", t) - splitStrings := strings.Split(currString, "\n") - nested = append(nested, strings.Join(splitStrings, "\n\t")) - } - - return fmt.Sprintf("MultiRESTMapper{\n\t%s\n}", strings.Join(nested, "\n\t")) -} - -// ResourceSingularizer converts a REST resource name from plural to singular (e.g., from pods to pod) -// This implementation supports multiple REST schemas and return the first match. -func (m MultiRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { - for _, t := range m { - singular, err = t.ResourceSingularizer(resource) - if err == nil { - return - } - } - return -} - -func (m MultiRESTMapper) ResourcesFor(resource schema.GroupVersionResource) ([]schema.GroupVersionResource, error) { - allGVRs := []schema.GroupVersionResource{} - for _, t := range m { - gvrs, err := t.ResourcesFor(resource) - // ignore "no match" errors, but any other error percolates back up - if IsNoMatchError(err) { - continue - } - if err != nil { - return nil, err - } - - // walk the existing values to de-dup - for _, curr := range gvrs { - found := false - for _, existing := range allGVRs { - if curr == existing { - found = true - break - } - } - - if !found { - allGVRs = append(allGVRs, curr) - } - } - } - - if len(allGVRs) == 0 { - return nil, &NoResourceMatchError{PartialResource: resource} - } - - return allGVRs, nil -} - -func (m MultiRESTMapper) KindsFor(resource schema.GroupVersionResource) (gvk []schema.GroupVersionKind, err error) { - allGVKs := []schema.GroupVersionKind{} - for _, t := range m { - gvks, err := t.KindsFor(resource) - // ignore "no match" errors, but any other error percolates back up - if IsNoMatchError(err) { - continue - } - if err != nil { - return nil, err - } - - // walk the existing values to de-dup - for _, curr := range gvks { - found := false - for _, existing := range allGVKs { - if curr == existing { - found = true - break - } - } - - if !found { - allGVKs = append(allGVKs, curr) - } - } - } - - if len(allGVKs) == 0 { - return nil, &NoResourceMatchError{PartialResource: resource} - } - - return allGVKs, nil -} - -func (m MultiRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) { - resources, err := m.ResourcesFor(resource) - if err != nil { - return schema.GroupVersionResource{}, err - } - if len(resources) == 1 { - return resources[0], nil - } - - return schema.GroupVersionResource{}, &AmbiguousResourceError{PartialResource: resource, MatchingResources: resources} -} - -func (m MultiRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { - kinds, err := m.KindsFor(resource) - if err != nil { - return schema.GroupVersionKind{}, err - } - if len(kinds) == 1 { - return kinds[0], nil - } - - return schema.GroupVersionKind{}, &AmbiguousResourceError{PartialResource: resource, MatchingKinds: kinds} -} - -// RESTMapping provides the REST mapping for the resource based on the -// kind and version. This implementation supports multiple REST schemas and -// return the first match. -func (m MultiRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { - allMappings := []*RESTMapping{} - errors := []error{} - - for _, t := range m { - currMapping, err := t.RESTMapping(gk, versions...) - // ignore "no match" errors, but any other error percolates back up - if IsNoMatchError(err) { - continue - } - if err != nil { - errors = append(errors, err) - continue - } - - allMappings = append(allMappings, currMapping) - } - - // if we got exactly one mapping, then use it even if other requested failed - if len(allMappings) == 1 { - return allMappings[0], nil - } - if len(allMappings) > 1 { - var kinds []schema.GroupVersionKind - for _, m := range allMappings { - kinds = append(kinds, m.GroupVersionKind) - } - return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} - } - if len(errors) > 0 { - return nil, utilerrors.NewAggregate(errors) - } - return nil, &NoKindMatchError{GroupKind: gk, SearchedVersions: versions} -} - -// RESTMappings returns all possible RESTMappings for the provided group kind, or an error -// if the type is not recognized. -func (m MultiRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) { - var allMappings []*RESTMapping - var errors []error - - for _, t := range m { - currMappings, err := t.RESTMappings(gk, versions...) - // ignore "no match" errors, but any other error percolates back up - if IsNoMatchError(err) { - continue - } - if err != nil { - errors = append(errors, err) - continue - } - allMappings = append(allMappings, currMappings...) - } - if len(errors) > 0 { - return nil, utilerrors.NewAggregate(errors) - } - if len(allMappings) == 0 { - return nil, &NoKindMatchError{GroupKind: gk, SearchedVersions: versions} - } - return allMappings, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper_test.go b/pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper_test.go deleted file mode 100644 index ce9aabca0..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/multirestmapper_test.go +++ /dev/null @@ -1,391 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - "errors" - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -func TestMultiRESTMapperResourceFor(t *testing.T) { - tcs := []struct { - name string - - mapper MultiRESTMapper - input schema.GroupVersionResource - result schema.GroupVersionResource - err error - }{ - { - name: "empty", - mapper: MultiRESTMapper{}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: schema.GroupVersionResource{}, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "ignore not found", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "IGNORE_THIS"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: schema.GroupVersionResource{}, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "accept first failure", - mapper: MultiRESTMapper{fixedRESTMapper{err: errors.New("fail on this")}, fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "unused"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: schema.GroupVersionResource{}, - err: errors.New("fail on this"), - }, - } - - for _, tc := range tcs { - actualResult, actualErr := tc.mapper.ResourceFor(tc.input) - if e, a := tc.result, actualResult; e != a { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - switch { - case tc.err == nil && actualErr == nil: - case tc.err == nil: - t.Errorf("%s: unexpected error: %v", tc.name, actualErr) - case actualErr == nil: - t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) - case tc.err.Error() != actualErr.Error(): - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestMultiRESTMapperResourcesFor(t *testing.T) { - tcs := []struct { - name string - - mapper MultiRESTMapper - input schema.GroupVersionResource - result []schema.GroupVersionResource - err error - }{ - { - name: "empty", - mapper: MultiRESTMapper{}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: nil, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "ignore not found", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "IGNORE_THIS"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: nil, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "accept first failure", - mapper: MultiRESTMapper{fixedRESTMapper{err: errors.New("fail on this")}, fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "unused"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: nil, - err: errors.New("fail on this"), - }, - { - name: "union and dedup", - mapper: MultiRESTMapper{ - fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "dupe"}, {Resource: "first"}}}, - fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "dupe"}, {Resource: "second"}}}, - }, - input: schema.GroupVersionResource{Resource: "foo"}, - result: []schema.GroupVersionResource{{Resource: "dupe"}, {Resource: "first"}, {Resource: "second"}}, - }, - { - name: "skip not and continue", - mapper: MultiRESTMapper{ - fixedRESTMapper{err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "IGNORE_THIS"}}}, - fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "first"}, {Resource: "second"}}}, - }, - input: schema.GroupVersionResource{Resource: "foo"}, - result: []schema.GroupVersionResource{{Resource: "first"}, {Resource: "second"}}, - }, - } - - for _, tc := range tcs { - actualResult, actualErr := tc.mapper.ResourcesFor(tc.input) - if e, a := tc.result, actualResult; !reflect.DeepEqual(e, a) { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - switch { - case tc.err == nil && actualErr == nil: - case tc.err == nil: - t.Errorf("%s: unexpected error: %v", tc.name, actualErr) - case actualErr == nil: - t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) - case tc.err.Error() != actualErr.Error(): - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestMultiRESTMapperKindsFor(t *testing.T) { - tcs := []struct { - name string - - mapper MultiRESTMapper - input schema.GroupVersionResource - result []schema.GroupVersionKind - err error - }{ - { - name: "empty", - mapper: MultiRESTMapper{}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: nil, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "ignore not found", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "IGNORE_THIS"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: nil, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "accept first failure", - mapper: MultiRESTMapper{fixedRESTMapper{err: errors.New("fail on this")}, fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "unused"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: nil, - err: errors.New("fail on this"), - }, - { - name: "union and dedup", - mapper: MultiRESTMapper{ - fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "dupe"}, {Kind: "first"}}}, - fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "dupe"}, {Kind: "second"}}}, - }, - input: schema.GroupVersionResource{Resource: "foo"}, - result: []schema.GroupVersionKind{{Kind: "dupe"}, {Kind: "first"}, {Kind: "second"}}, - }, - { - name: "skip not and continue", - mapper: MultiRESTMapper{ - fixedRESTMapper{err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "IGNORE_THIS"}}}, - fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "first"}, {Kind: "second"}}}, - }, - input: schema.GroupVersionResource{Resource: "foo"}, - result: []schema.GroupVersionKind{{Kind: "first"}, {Kind: "second"}}, - }, - } - - for _, tc := range tcs { - actualResult, actualErr := tc.mapper.KindsFor(tc.input) - if e, a := tc.result, actualResult; !reflect.DeepEqual(e, a) { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - switch { - case tc.err == nil && actualErr == nil: - case tc.err == nil: - t.Errorf("%s: unexpected error: %v", tc.name, actualErr) - case actualErr == nil: - t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) - case tc.err.Error() != actualErr.Error(): - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestMultiRESTMapperKindFor(t *testing.T) { - tcs := []struct { - name string - - mapper MultiRESTMapper - input schema.GroupVersionResource - result schema.GroupVersionKind - err error - }{ - { - name: "empty", - mapper: MultiRESTMapper{}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: schema.GroupVersionKind{}, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "ignore not found", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "IGNORE_THIS"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: schema.GroupVersionKind{}, - err: &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Resource: "foo"}}, - }, - { - name: "accept first failure", - mapper: MultiRESTMapper{fixedRESTMapper{err: errors.New("fail on this")}, fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "unused"}}}}, - input: schema.GroupVersionResource{Resource: "foo"}, - result: schema.GroupVersionKind{}, - err: errors.New("fail on this"), - }, - } - - for _, tc := range tcs { - actualResult, actualErr := tc.mapper.KindFor(tc.input) - if e, a := tc.result, actualResult; e != a { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - switch { - case tc.err == nil && actualErr == nil: - case tc.err == nil: - t.Errorf("%s: unexpected error: %v", tc.name, actualErr) - case actualErr == nil: - t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) - case tc.err.Error() != actualErr.Error(): - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestMultiRESTMapperRESTMappings(t *testing.T) { - mapping1, mapping2 := &RESTMapping{}, &RESTMapping{} - tcs := []struct { - name string - - mapper MultiRESTMapper - groupKind schema.GroupKind - versions []string - result []*RESTMapping - err error - }{ - { - name: "empty with no versions", - mapper: MultiRESTMapper{}, - groupKind: schema.GroupKind{Kind: "Foo"}, - result: nil, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}}, - }, - { - name: "empty with one version", - mapper: MultiRESTMapper{}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: []string{"v1beta"}, - result: nil, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}, SearchedVersions: []string{"v1beta"}}, - }, - { - name: "empty with multi(two) vesions", - mapper: MultiRESTMapper{}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: []string{"v1beta", "v2"}, - result: nil, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}, SearchedVersions: []string{"v1beta", "v2"}}, - }, - { - name: "ignore not found with kind not exist", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "IGNORE_THIS"}}}}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: nil, - result: nil, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}}, - }, - { - name: "ignore not found with version not exist", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}, SearchedVersions: []string{"v1"}}}}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: []string{"v1beta"}, - result: nil, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}, SearchedVersions: []string{"v1beta"}}, - }, - { - name: "ignore not found with multi versions not exist", - mapper: MultiRESTMapper{fixedRESTMapper{err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}, SearchedVersions: []string{"v1"}}}}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: []string{"v1beta", "v2"}, - result: nil, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}, SearchedVersions: []string{"v1beta", "v2"}}, - }, - { - name: "accept first failure", - mapper: MultiRESTMapper{fixedRESTMapper{err: errors.New("fail on this")}, fixedRESTMapper{mappings: []*RESTMapping{mapping1}}}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: []string{"v1beta"}, - result: nil, - err: errors.New("fail on this"), - }, - { - name: "return both", - mapper: MultiRESTMapper{fixedRESTMapper{mappings: []*RESTMapping{mapping1}}, fixedRESTMapper{mappings: []*RESTMapping{mapping2}}}, - groupKind: schema.GroupKind{Kind: "Foo"}, - versions: []string{"v1beta"}, - result: []*RESTMapping{mapping1, mapping2}, - }, - } - - for _, tc := range tcs { - actualResult, actualErr := tc.mapper.RESTMappings(tc.groupKind, tc.versions...) - if e, a := tc.result, actualResult; !reflect.DeepEqual(e, a) { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - switch { - case tc.err == nil && actualErr == nil: - case tc.err == nil: - t.Errorf("%s: unexpected error: %v", tc.name, actualErr) - case actualErr == nil: - t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) - case tc.err.Error() != actualErr.Error(): - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -type fixedRESTMapper struct { - resourcesFor []schema.GroupVersionResource - kindsFor []schema.GroupVersionKind - resourceFor schema.GroupVersionResource - kindFor schema.GroupVersionKind - mappings []*RESTMapping - - err error -} - -func (m fixedRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { - return "", m.err -} - -func (m fixedRESTMapper) ResourcesFor(resource schema.GroupVersionResource) ([]schema.GroupVersionResource, error) { - return m.resourcesFor, m.err -} - -func (m fixedRESTMapper) KindsFor(resource schema.GroupVersionResource) (gvk []schema.GroupVersionKind, err error) { - return m.kindsFor, m.err -} - -func (m fixedRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) { - return m.resourceFor, m.err -} - -func (m fixedRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { - return m.kindFor, m.err -} - -func (m fixedRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (mapping *RESTMapping, err error) { - return nil, m.err -} - -func (m fixedRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) (mappings []*RESTMapping, err error) { - return m.mappings, m.err -} - -func (m fixedRESTMapper) ResourceIsValid(resource schema.GroupVersionResource) bool { - return false -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/priority.go b/pseudo/k8s/apimachinery/pkg/api/meta/priority.go deleted file mode 100644 index e6b8824f8..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/priority.go +++ /dev/null @@ -1,222 +0,0 @@ -/* -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 meta - -import ( - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const ( - AnyGroup = "*" - AnyVersion = "*" - AnyResource = "*" - AnyKind = "*" -) - -// PriorityRESTMapper is a wrapper for automatically choosing a particular Resource or Kind -// when multiple matches are possible -type PriorityRESTMapper struct { - // Delegate is the RESTMapper to use to locate all the Kind and Resource matches - Delegate RESTMapper - - // ResourcePriority is a list of priority patterns to apply to matching resources. - // The list of all matching resources is narrowed based on the patterns until only one remains. - // A pattern with no matches is skipped. A pattern with more than one match uses its - // matches as the list to continue matching against. - ResourcePriority []schema.GroupVersionResource - - // KindPriority is a list of priority patterns to apply to matching kinds. - // The list of all matching kinds is narrowed based on the patterns until only one remains. - // A pattern with no matches is skipped. A pattern with more than one match uses its - // matches as the list to continue matching against. - KindPriority []schema.GroupVersionKind -} - -func (m PriorityRESTMapper) String() string { - return fmt.Sprintf("PriorityRESTMapper{\n\t%v\n\t%v\n\t%v\n}", m.ResourcePriority, m.KindPriority, m.Delegate) -} - -// ResourceFor finds all resources, then passes them through the ResourcePriority patterns to find a single matching hit. -func (m PriorityRESTMapper) ResourceFor(partiallySpecifiedResource schema.GroupVersionResource) (schema.GroupVersionResource, error) { - originalGVRs, originalErr := m.Delegate.ResourcesFor(partiallySpecifiedResource) - if originalErr != nil && len(originalGVRs) == 0 { - return schema.GroupVersionResource{}, originalErr - } - if len(originalGVRs) == 1 { - return originalGVRs[0], originalErr - } - - remainingGVRs := append([]schema.GroupVersionResource{}, originalGVRs...) - for _, pattern := range m.ResourcePriority { - matchedGVRs := []schema.GroupVersionResource{} - for _, gvr := range remainingGVRs { - if resourceMatches(pattern, gvr) { - matchedGVRs = append(matchedGVRs, gvr) - } - } - - switch len(matchedGVRs) { - case 0: - // if you have no matches, then nothing matched this pattern just move to the next - continue - case 1: - // one match, return - return matchedGVRs[0], originalErr - default: - // more than one match, use the matched hits as the list moving to the next pattern. - // this way you can have a series of selection criteria - remainingGVRs = matchedGVRs - } - } - - return schema.GroupVersionResource{}, &AmbiguousResourceError{PartialResource: partiallySpecifiedResource, MatchingResources: originalGVRs} -} - -// KindFor finds all kinds, then passes them through the KindPriority patterns to find a single matching hit. -func (m PriorityRESTMapper) KindFor(partiallySpecifiedResource schema.GroupVersionResource) (schema.GroupVersionKind, error) { - originalGVKs, originalErr := m.Delegate.KindsFor(partiallySpecifiedResource) - if originalErr != nil && len(originalGVKs) == 0 { - return schema.GroupVersionKind{}, originalErr - } - if len(originalGVKs) == 1 { - return originalGVKs[0], originalErr - } - - remainingGVKs := append([]schema.GroupVersionKind{}, originalGVKs...) - for _, pattern := range m.KindPriority { - matchedGVKs := []schema.GroupVersionKind{} - for _, gvr := range remainingGVKs { - if kindMatches(pattern, gvr) { - matchedGVKs = append(matchedGVKs, gvr) - } - } - - switch len(matchedGVKs) { - case 0: - // if you have no matches, then nothing matched this pattern just move to the next - continue - case 1: - // one match, return - return matchedGVKs[0], originalErr - default: - // more than one match, use the matched hits as the list moving to the next pattern. - // this way you can have a series of selection criteria - remainingGVKs = matchedGVKs - } - } - - return schema.GroupVersionKind{}, &AmbiguousResourceError{PartialResource: partiallySpecifiedResource, MatchingKinds: originalGVKs} -} - -func resourceMatches(pattern schema.GroupVersionResource, resource schema.GroupVersionResource) bool { - if pattern.Group != AnyGroup && pattern.Group != resource.Group { - return false - } - if pattern.Version != AnyVersion && pattern.Version != resource.Version { - return false - } - if pattern.Resource != AnyResource && pattern.Resource != resource.Resource { - return false - } - - return true -} - -func kindMatches(pattern schema.GroupVersionKind, kind schema.GroupVersionKind) bool { - if pattern.Group != AnyGroup && pattern.Group != kind.Group { - return false - } - if pattern.Version != AnyVersion && pattern.Version != kind.Version { - return false - } - if pattern.Kind != AnyKind && pattern.Kind != kind.Kind { - return false - } - - return true -} - -func (m PriorityRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (mapping *RESTMapping, err error) { - mappings, originalErr := m.Delegate.RESTMappings(gk, versions...) - if originalErr != nil && len(mappings) == 0 { - return nil, originalErr - } - - // any versions the user provides take priority - priorities := m.KindPriority - if len(versions) > 0 { - priorities = make([]schema.GroupVersionKind, 0, len(m.KindPriority)+len(versions)) - for _, version := range versions { - gv := schema.GroupVersion{ - Version: version, - Group: gk.Group, - } - priorities = append(priorities, gv.WithKind(AnyKind)) - } - priorities = append(priorities, m.KindPriority...) - } - - remaining := append([]*RESTMapping{}, mappings...) - for _, pattern := range priorities { - var matching []*RESTMapping - for _, m := range remaining { - if kindMatches(pattern, m.GroupVersionKind) { - matching = append(matching, m) - } - } - - switch len(matching) { - case 0: - // if you have no matches, then nothing matched this pattern just move to the next - continue - case 1: - // one match, return - return matching[0], originalErr - default: - // more than one match, use the matched hits as the list moving to the next pattern. - // this way you can have a series of selection criteria - remaining = matching - } - } - if len(remaining) == 1 { - return remaining[0], originalErr - } - - var kinds []schema.GroupVersionKind - for _, m := range mappings { - kinds = append(kinds, m.GroupVersionKind) - } - return nil, &AmbiguousKindError{PartialKind: gk.WithVersion(""), MatchingKinds: kinds} -} - -func (m PriorityRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) { - return m.Delegate.RESTMappings(gk, versions...) -} - -func (m PriorityRESTMapper) ResourceSingularizer(resource string) (singular string, err error) { - return m.Delegate.ResourceSingularizer(resource) -} - -func (m PriorityRESTMapper) ResourcesFor(partiallySpecifiedResource schema.GroupVersionResource) ([]schema.GroupVersionResource, error) { - return m.Delegate.ResourcesFor(partiallySpecifiedResource) -} - -func (m PriorityRESTMapper) KindsFor(partiallySpecifiedResource schema.GroupVersionResource) (gvk []schema.GroupVersionKind, err error) { - return m.Delegate.KindsFor(partiallySpecifiedResource) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/priority_test.go b/pseudo/k8s/apimachinery/pkg/api/meta/priority_test.go deleted file mode 100644 index 3a6a52711..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/priority_test.go +++ /dev/null @@ -1,409 +0,0 @@ -/* -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 meta - -import ( - "errors" - "reflect" - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -func TestPriorityRESTMapperResourceForErrorHandling(t *testing.T) { - tcs := []struct { - name string - - delegate RESTMapper - resourcePatterns []schema.GroupVersionResource - result schema.GroupVersionResource - err string - }{ - { - name: "error", - delegate: fixedRESTMapper{err: errors.New("delegateError")}, - err: "delegateError", - }, - { - name: "single hit + error", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "single-hit"}}, err: errors.New("delegateError")}, - result: schema.GroupVersionResource{Resource: "single-hit"}, - err: "delegateError", - }, - { - name: "group selection + error", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{ - {Group: "one", Version: "a", Resource: "first"}, - {Group: "two", Version: "b", Resource: "second"}, - }, err: errors.New("delegateError")}, - resourcePatterns: []schema.GroupVersionResource{ - {Group: "one", Version: AnyVersion, Resource: AnyResource}, - }, - result: schema.GroupVersionResource{Group: "one", Version: "a", Resource: "first"}, - err: "delegateError", - }, - - { - name: "single hit", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{{Resource: "single-hit"}}}, - result: schema.GroupVersionResource{Resource: "single-hit"}, - }, - { - name: "ambiguous match", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{ - {Group: "one", Version: "a", Resource: "first"}, - {Group: "two", Version: "b", Resource: "second"}, - }}, - err: "matches multiple resources", - }, - { - name: "group selection", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{ - {Group: "one", Version: "a", Resource: "first"}, - {Group: "two", Version: "b", Resource: "second"}, - }}, - resourcePatterns: []schema.GroupVersionResource{ - {Group: "one", Version: AnyVersion, Resource: AnyResource}, - }, - result: schema.GroupVersionResource{Group: "one", Version: "a", Resource: "first"}, - }, - { - name: "empty match continues", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{ - {Group: "one", Version: "a", Resource: "first"}, - {Group: "two", Version: "b", Resource: "second"}, - }}, - resourcePatterns: []schema.GroupVersionResource{ - {Group: "fail", Version: AnyVersion, Resource: AnyResource}, - {Group: "one", Version: AnyVersion, Resource: AnyResource}, - }, - result: schema.GroupVersionResource{Group: "one", Version: "a", Resource: "first"}, - }, - { - name: "group followed by version selection", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{ - {Group: "one", Version: "a", Resource: "first"}, - {Group: "two", Version: "b", Resource: "second"}, - {Group: "one", Version: "c", Resource: "third"}, - }}, - resourcePatterns: []schema.GroupVersionResource{ - {Group: "one", Version: AnyVersion, Resource: AnyResource}, - {Group: AnyGroup, Version: "a", Resource: AnyResource}, - }, - result: schema.GroupVersionResource{Group: "one", Version: "a", Resource: "first"}, - }, - { - name: "resource selection", - delegate: fixedRESTMapper{resourcesFor: []schema.GroupVersionResource{ - {Group: "one", Version: "a", Resource: "first"}, - {Group: "one", Version: "a", Resource: "second"}, - }}, - resourcePatterns: []schema.GroupVersionResource{ - {Group: AnyGroup, Version: AnyVersion, Resource: "second"}, - }, - result: schema.GroupVersionResource{Group: "one", Version: "a", Resource: "second"}, - }, - } - - for _, tc := range tcs { - mapper := PriorityRESTMapper{Delegate: tc.delegate, ResourcePriority: tc.resourcePatterns} - - actualResult, actualErr := mapper.ResourceFor(schema.GroupVersionResource{}) - if e, a := tc.result, actualResult; e != a { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - if len(tc.err) == 0 && actualErr == nil { - continue - } - if len(tc.err) == 0 && actualErr != nil { - t.Errorf("%s: unexpected err: %v", tc.name, actualErr) - continue - } - if len(tc.err) > 0 && actualErr == nil { - t.Errorf("%s: missing expected err: %v", tc.name, tc.err) - continue - } - if !strings.Contains(actualErr.Error(), tc.err) { - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestPriorityRESTMapperKindForErrorHandling(t *testing.T) { - tcs := []struct { - name string - - delegate RESTMapper - kindPatterns []schema.GroupVersionKind - result schema.GroupVersionKind - err string - }{ - { - name: "error", - delegate: fixedRESTMapper{err: errors.New("delegateErr")}, - err: "delegateErr", - }, - { - name: "single hit + error", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "single-hit"}}, err: errors.New("delegateErr")}, - result: schema.GroupVersionKind{Kind: "single-hit"}, - err: "delegateErr", - }, - { - name: "group selection + error", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{ - {Group: "one", Version: "a", Kind: "first"}, - {Group: "two", Version: "b", Kind: "second"}, - }, err: errors.New("delegateErr")}, - kindPatterns: []schema.GroupVersionKind{ - {Group: "one", Version: AnyVersion, Kind: AnyKind}, - }, - result: schema.GroupVersionKind{Group: "one", Version: "a", Kind: "first"}, - err: "delegateErr", - }, - - { - name: "single hit", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{{Kind: "single-hit"}}}, - result: schema.GroupVersionKind{Kind: "single-hit"}, - }, - { - name: "ambiguous match", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{ - {Group: "one", Version: "a", Kind: "first"}, - {Group: "two", Version: "b", Kind: "second"}, - }}, - err: "matches multiple kinds", - }, - { - name: "group selection", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{ - {Group: "one", Version: "a", Kind: "first"}, - {Group: "two", Version: "b", Kind: "second"}, - }}, - kindPatterns: []schema.GroupVersionKind{ - {Group: "one", Version: AnyVersion, Kind: AnyKind}, - }, - result: schema.GroupVersionKind{Group: "one", Version: "a", Kind: "first"}, - }, - { - name: "empty match continues", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{ - {Group: "one", Version: "a", Kind: "first"}, - {Group: "two", Version: "b", Kind: "second"}, - }}, - kindPatterns: []schema.GroupVersionKind{ - {Group: "fail", Version: AnyVersion, Kind: AnyKind}, - {Group: "one", Version: AnyVersion, Kind: AnyKind}, - }, - result: schema.GroupVersionKind{Group: "one", Version: "a", Kind: "first"}, - }, - { - name: "group followed by version selection", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{ - {Group: "one", Version: "a", Kind: "first"}, - {Group: "two", Version: "b", Kind: "second"}, - {Group: "one", Version: "c", Kind: "third"}, - }}, - kindPatterns: []schema.GroupVersionKind{ - {Group: "one", Version: AnyVersion, Kind: AnyKind}, - {Group: AnyGroup, Version: "a", Kind: AnyKind}, - }, - result: schema.GroupVersionKind{Group: "one", Version: "a", Kind: "first"}, - }, - { - name: "kind selection", - delegate: fixedRESTMapper{kindsFor: []schema.GroupVersionKind{ - {Group: "one", Version: "a", Kind: "first"}, - {Group: "one", Version: "a", Kind: "second"}, - }}, - kindPatterns: []schema.GroupVersionKind{ - {Group: AnyGroup, Version: AnyVersion, Kind: "second"}, - }, - result: schema.GroupVersionKind{Group: "one", Version: "a", Kind: "second"}, - }, - } - - for _, tc := range tcs { - mapper := PriorityRESTMapper{Delegate: tc.delegate, KindPriority: tc.kindPatterns} - - actualResult, actualErr := mapper.KindFor(schema.GroupVersionResource{}) - if e, a := tc.result, actualResult; e != a { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - if len(tc.err) == 0 && actualErr == nil { - continue - } - if len(tc.err) == 0 && actualErr != nil { - t.Errorf("%s: unexpected err: %v", tc.name, actualErr) - continue - } - if len(tc.err) > 0 && actualErr == nil { - t.Errorf("%s: missing expected err: %v", tc.name, tc.err) - continue - } - if !strings.Contains(actualErr.Error(), tc.err) { - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestPriorityRESTMapperRESTMapping(t *testing.T) { - mapping1 := &RESTMapping{ - GroupVersionKind: schema.GroupVersionKind{Kind: "Foo", Version: "v1alpha1"}, - } - mapping2 := &RESTMapping{ - GroupVersionKind: schema.GroupVersionKind{Kind: "Foo", Version: "v1"}, - } - mapping3 := &RESTMapping{ - GroupVersionKind: schema.GroupVersionKind{Group: "other", Kind: "Foo", Version: "v1"}, - } - allMappers := MultiRESTMapper{ - fixedRESTMapper{mappings: []*RESTMapping{mapping1}}, - fixedRESTMapper{mappings: []*RESTMapping{mapping2}}, - fixedRESTMapper{mappings: []*RESTMapping{mapping3}}, - } - tcs := []struct { - name string - - mapper PriorityRESTMapper - input schema.GroupKind - result *RESTMapping - err error - }{ - { - name: "empty", - mapper: PriorityRESTMapper{Delegate: MultiRESTMapper{}}, - input: schema.GroupKind{Kind: "Foo"}, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}}, - }, - { - name: "ignore not found", - mapper: PriorityRESTMapper{Delegate: MultiRESTMapper{fixedRESTMapper{err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "IGNORE_THIS"}}}}}, - input: schema.GroupKind{Kind: "Foo"}, - err: &NoKindMatchError{GroupKind: schema.GroupKind{Kind: "Foo"}}, - }, - { - name: "accept first failure", - mapper: PriorityRESTMapper{Delegate: MultiRESTMapper{fixedRESTMapper{err: errors.New("fail on this")}, fixedRESTMapper{mappings: []*RESTMapping{mapping1}}}}, - input: schema.GroupKind{Kind: "Foo"}, - err: errors.New("fail on this"), - }, - { - name: "result + error", - mapper: PriorityRESTMapper{Delegate: fixedRESTMapper{mappings: []*RESTMapping{mapping1}, err: errors.New("fail on this")}}, - input: schema.GroupKind{Kind: "Foo"}, - result: mapping1, - err: errors.New("fail on this"), - }, - { - name: "return error for ambiguous", - mapper: PriorityRESTMapper{ - Delegate: allMappers, - }, - input: schema.GroupKind{Kind: "Foo"}, - err: &AmbiguousKindError{ - PartialKind: schema.GroupVersionKind{Kind: "Foo"}, - MatchingKinds: []schema.GroupVersionKind{ - {Kind: "Foo", Version: "v1alpha1"}, - {Kind: "Foo", Version: "v1"}, - {Group: "other", Kind: "Foo", Version: "v1"}, - }, - }, - }, - { - name: "accept only item", - mapper: PriorityRESTMapper{ - Delegate: fixedRESTMapper{mappings: []*RESTMapping{mapping1}}, - }, - input: schema.GroupKind{Kind: "Foo"}, - result: mapping1, - }, - { - name: "return single priority", - mapper: PriorityRESTMapper{ - Delegate: allMappers, - KindPriority: []schema.GroupVersionKind{{Version: "v1", Kind: AnyKind}, {Version: "v1alpha1", Kind: AnyKind}}, - }, - input: schema.GroupKind{Kind: "Foo"}, - result: mapping2, - }, - { - name: "return out of group match", - mapper: PriorityRESTMapper{ - Delegate: allMappers, - KindPriority: []schema.GroupVersionKind{{Group: AnyGroup, Version: "v1", Kind: AnyKind}, {Group: "other", Version: AnyVersion, Kind: AnyKind}}, - }, - input: schema.GroupKind{Kind: "Foo"}, - result: mapping3, - }, - } - - for _, tc := range tcs { - actualResult, actualErr := tc.mapper.RESTMapping(tc.input) - if e, a := tc.result, actualResult; !reflect.DeepEqual(e, a) { - t.Errorf("%s: expected %v, got %v", tc.name, e, a) - } - switch { - case tc.err == nil && actualErr == nil: - case tc.err == nil: - t.Errorf("%s: unexpected error: %v", tc.name, actualErr) - case actualErr == nil: - t.Errorf("%s: expected error: %v got nil", tc.name, tc.err) - case tc.err.Error() != actualErr.Error(): - t.Errorf("%s: expected %v, got %v", tc.name, tc.err, actualErr) - } - } -} - -func TestPriorityRESTMapperRESTMappingHonorsUserVersion(t *testing.T) { - mappingV2alpha1 := &RESTMapping{ - GroupVersionKind: schema.GroupVersionKind{Group: "Bar", Kind: "Foo", Version: "v2alpha1"}, - } - mappingV1 := &RESTMapping{ - GroupVersionKind: schema.GroupVersionKind{Group: "Bar", Kind: "Foo", Version: "v1"}, - } - - allMappers := MultiRESTMapper{ - fixedRESTMapper{mappings: []*RESTMapping{mappingV2alpha1}}, - fixedRESTMapper{mappings: []*RESTMapping{mappingV1}}, - } - - mapper := PriorityRESTMapper{ - Delegate: allMappers, - KindPriority: []schema.GroupVersionKind{{Group: "Bar", Version: "v2alpha1", Kind: AnyKind}, {Group: "Bar", Version: AnyVersion, Kind: AnyKind}}, - } - - outMapping1, err := mapper.RESTMapping(schema.GroupKind{Group: "Bar", Kind: "Foo"}, "v1") - if err != nil { - t.Errorf("unexpected error: %v", err) - } - - if outMapping1 != mappingV1 { - t.Errorf("asked for version %v, expected mapping for %v, got mapping for %v", "v1", mappingV1.GroupVersionKind, outMapping1.GroupVersionKind) - } - - outMapping2, err := mapper.RESTMapping(schema.GroupKind{Group: "Bar", Kind: "Foo"}, "v2alpha1") - if err != nil { - t.Errorf("unexpected error: %v", err) - } - - if outMapping2 != mappingV2alpha1 { - t.Errorf("asked for version %v, expected mapping for %v, got mapping for %v", "v2alpha1", mappingV2alpha1.GroupVersionKind, outMapping2.GroupVersionKind) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/restmapper.go b/pseudo/k8s/apimachinery/pkg/api/meta/restmapper.go deleted file mode 100644 index 40114dafd..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/restmapper.go +++ /dev/null @@ -1,518 +0,0 @@ -/* -Copyright 2014 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. -*/ - -// TODO: move everything in this file to pkg/api/rest -package meta - -import ( - "fmt" - "sort" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// Implements RESTScope interface -type restScope struct { - name RESTScopeName -} - -func (r *restScope) Name() RESTScopeName { - return r.name -} - -var RESTScopeNamespace = &restScope{ - name: RESTScopeNameNamespace, -} - -var RESTScopeRoot = &restScope{ - name: RESTScopeNameRoot, -} - -// DefaultRESTMapper exposes mappings between the types defined in a -// runtime.Scheme. It assumes that all types defined the provided scheme -// can be mapped with the provided MetadataAccessor and Codec interfaces. -// -// The resource name of a Kind is defined as the lowercase, -// English-plural version of the Kind string. -// When converting from resource to Kind, the singular version of the -// resource name is also accepted for convenience. -// -// TODO: Only accept plural for some operations for increased control? -// (`get pod bar` vs `get pods bar`) -type DefaultRESTMapper struct { - defaultGroupVersions []schema.GroupVersion - - resourceToKind map[schema.GroupVersionResource]schema.GroupVersionKind - kindToPluralResource map[schema.GroupVersionKind]schema.GroupVersionResource - kindToScope map[schema.GroupVersionKind]RESTScope - singularToPlural map[schema.GroupVersionResource]schema.GroupVersionResource - pluralToSingular map[schema.GroupVersionResource]schema.GroupVersionResource -} - -func (m *DefaultRESTMapper) String() string { - return fmt.Sprintf("DefaultRESTMapper{kindToPluralResource=%v}", m.kindToPluralResource) -} - -var _ RESTMapper = &DefaultRESTMapper{} - -// NewDefaultRESTMapper initializes a mapping between Kind and APIVersion -// to a resource name and back based on the objects in a runtime.Scheme -// and the Kubernetes API conventions. Takes a group name, a priority list of the versions -// to search when an object has no default version (set empty to return an error), -// and a function that retrieves the correct metadata for a given version. -func NewDefaultRESTMapper(defaultGroupVersions []schema.GroupVersion) *DefaultRESTMapper { - resourceToKind := make(map[schema.GroupVersionResource]schema.GroupVersionKind) - kindToPluralResource := make(map[schema.GroupVersionKind]schema.GroupVersionResource) - kindToScope := make(map[schema.GroupVersionKind]RESTScope) - singularToPlural := make(map[schema.GroupVersionResource]schema.GroupVersionResource) - pluralToSingular := make(map[schema.GroupVersionResource]schema.GroupVersionResource) - // TODO: verify name mappings work correctly when versions differ - - return &DefaultRESTMapper{ - resourceToKind: resourceToKind, - kindToPluralResource: kindToPluralResource, - kindToScope: kindToScope, - defaultGroupVersions: defaultGroupVersions, - singularToPlural: singularToPlural, - pluralToSingular: pluralToSingular, - } -} - -func (m *DefaultRESTMapper) Add(kind schema.GroupVersionKind, scope RESTScope) { - plural, singular := UnsafeGuessKindToResource(kind) - m.AddSpecific(kind, plural, singular, scope) -} - -func (m *DefaultRESTMapper) AddSpecific(kind schema.GroupVersionKind, plural, singular schema.GroupVersionResource, scope RESTScope) { - m.singularToPlural[singular] = plural - m.pluralToSingular[plural] = singular - - m.resourceToKind[singular] = kind - m.resourceToKind[plural] = kind - - m.kindToPluralResource[kind] = plural - m.kindToScope[kind] = scope -} - -// unpluralizedSuffixes is a list of resource suffixes that are the same plural and singular -// This is only is only necessary because some bits of code are lazy and don't actually use the RESTMapper like they should. -// TODO eliminate this so that different callers can correctly map to resources. This probably means updating all -// callers to use the RESTMapper they mean. -var unpluralizedSuffixes = []string{ - "endpoints", -} - -// UnsafeGuessKindToResource converts Kind to a resource name. -// Broken. This method only "sort of" works when used outside of this package. It assumes that Kinds and Resources match -// and they aren't guaranteed to do so. -func UnsafeGuessKindToResource(kind schema.GroupVersionKind) ( /*plural*/ schema.GroupVersionResource /*singular*/, schema.GroupVersionResource) { - kindName := kind.Kind - if len(kindName) == 0 { - return schema.GroupVersionResource{}, schema.GroupVersionResource{} - } - singularName := strings.ToLower(kindName) - singular := kind.GroupVersion().WithResource(singularName) - - for _, skip := range unpluralizedSuffixes { - if strings.HasSuffix(singularName, skip) { - return singular, singular - } - } - - switch string(singularName[len(singularName)-1]) { - case "s": - return kind.GroupVersion().WithResource(singularName + "es"), singular - case "y": - return kind.GroupVersion().WithResource(strings.TrimSuffix(singularName, "y") + "ies"), singular - } - - return kind.GroupVersion().WithResource(singularName + "s"), singular -} - -// ResourceSingularizer implements RESTMapper -// It converts a resource name from plural to singular (e.g., from pods to pod) -func (m *DefaultRESTMapper) ResourceSingularizer(resourceType string) (string, error) { - partialResource := schema.GroupVersionResource{Resource: resourceType} - resources, err := m.ResourcesFor(partialResource) - if err != nil { - return resourceType, err - } - - singular := schema.GroupVersionResource{} - for _, curr := range resources { - currSingular, ok := m.pluralToSingular[curr] - if !ok { - continue - } - if singular.Empty() { - singular = currSingular - continue - } - - if currSingular.Resource != singular.Resource { - return resourceType, fmt.Errorf("multiple possible singular resources (%v) found for %v", resources, resourceType) - } - } - - if singular.Empty() { - return resourceType, fmt.Errorf("no singular of resource %v has been defined", resourceType) - } - - return singular.Resource, nil -} - -// coerceResourceForMatching makes the resource lower case and converts internal versions to unspecified (legacy behavior) -func coerceResourceForMatching(resource schema.GroupVersionResource) schema.GroupVersionResource { - resource.Resource = strings.ToLower(resource.Resource) - if resource.Version == runtime.APIVersionInternal { - resource.Version = "" - } - - return resource -} - -func (m *DefaultRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error) { - resource := coerceResourceForMatching(input) - - hasResource := len(resource.Resource) > 0 - hasGroup := len(resource.Group) > 0 - hasVersion := len(resource.Version) > 0 - - if !hasResource { - return nil, fmt.Errorf("a resource must be present, got: %v", resource) - } - - ret := []schema.GroupVersionResource{} - switch { - case hasGroup && hasVersion: - // fully qualified. Find the exact match - for plural, singular := range m.pluralToSingular { - if singular == resource { - ret = append(ret, plural) - break - } - if plural == resource { - ret = append(ret, plural) - break - } - } - - case hasGroup: - // given a group, prefer an exact match. If you don't find one, resort to a prefix match on group - foundExactMatch := false - requestedGroupResource := resource.GroupResource() - for plural, singular := range m.pluralToSingular { - if singular.GroupResource() == requestedGroupResource { - foundExactMatch = true - ret = append(ret, plural) - } - if plural.GroupResource() == requestedGroupResource { - foundExactMatch = true - ret = append(ret, plural) - } - } - - // if you didn't find an exact match, match on group prefixing. This allows storageclass.storage to match - // storageclass.storage.k8s.io - if !foundExactMatch { - for plural, singular := range m.pluralToSingular { - if !strings.HasPrefix(plural.Group, requestedGroupResource.Group) { - continue - } - if singular.Resource == requestedGroupResource.Resource { - ret = append(ret, plural) - } - if plural.Resource == requestedGroupResource.Resource { - ret = append(ret, plural) - } - } - - } - - case hasVersion: - for plural, singular := range m.pluralToSingular { - if singular.Version == resource.Version && singular.Resource == resource.Resource { - ret = append(ret, plural) - } - if plural.Version == resource.Version && plural.Resource == resource.Resource { - ret = append(ret, plural) - } - } - - default: - for plural, singular := range m.pluralToSingular { - if singular.Resource == resource.Resource { - ret = append(ret, plural) - } - if plural.Resource == resource.Resource { - ret = append(ret, plural) - } - } - } - - if len(ret) == 0 { - return nil, &NoResourceMatchError{PartialResource: resource} - } - - sort.Sort(resourceByPreferredGroupVersion{ret, m.defaultGroupVersions}) - return ret, nil -} - -func (m *DefaultRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error) { - resources, err := m.ResourcesFor(resource) - if err != nil { - return schema.GroupVersionResource{}, err - } - if len(resources) == 1 { - return resources[0], nil - } - - return schema.GroupVersionResource{}, &AmbiguousResourceError{PartialResource: resource, MatchingResources: resources} -} - -func (m *DefaultRESTMapper) KindsFor(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error) { - resource := coerceResourceForMatching(input) - - hasResource := len(resource.Resource) > 0 - hasGroup := len(resource.Group) > 0 - hasVersion := len(resource.Version) > 0 - - if !hasResource { - return nil, fmt.Errorf("a resource must be present, got: %v", resource) - } - - ret := []schema.GroupVersionKind{} - switch { - // fully qualified. Find the exact match - case hasGroup && hasVersion: - kind, exists := m.resourceToKind[resource] - if exists { - ret = append(ret, kind) - } - - case hasGroup: - foundExactMatch := false - requestedGroupResource := resource.GroupResource() - for currResource, currKind := range m.resourceToKind { - if currResource.GroupResource() == requestedGroupResource { - foundExactMatch = true - ret = append(ret, currKind) - } - } - - // if you didn't find an exact match, match on group prefixing. This allows storageclass.storage to match - // storageclass.storage.k8s.io - if !foundExactMatch { - for currResource, currKind := range m.resourceToKind { - if !strings.HasPrefix(currResource.Group, requestedGroupResource.Group) { - continue - } - if currResource.Resource == requestedGroupResource.Resource { - ret = append(ret, currKind) - } - } - - } - - case hasVersion: - for currResource, currKind := range m.resourceToKind { - if currResource.Version == resource.Version && currResource.Resource == resource.Resource { - ret = append(ret, currKind) - } - } - - default: - for currResource, currKind := range m.resourceToKind { - if currResource.Resource == resource.Resource { - ret = append(ret, currKind) - } - } - } - - if len(ret) == 0 { - return nil, &NoResourceMatchError{PartialResource: input} - } - - sort.Sort(kindByPreferredGroupVersion{ret, m.defaultGroupVersions}) - return ret, nil -} - -func (m *DefaultRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) { - kinds, err := m.KindsFor(resource) - if err != nil { - return schema.GroupVersionKind{}, err - } - if len(kinds) == 1 { - return kinds[0], nil - } - - return schema.GroupVersionKind{}, &AmbiguousResourceError{PartialResource: resource, MatchingKinds: kinds} -} - -type kindByPreferredGroupVersion struct { - list []schema.GroupVersionKind - sortOrder []schema.GroupVersion -} - -func (o kindByPreferredGroupVersion) Len() int { return len(o.list) } -func (o kindByPreferredGroupVersion) Swap(i, j int) { o.list[i], o.list[j] = o.list[j], o.list[i] } -func (o kindByPreferredGroupVersion) Less(i, j int) bool { - lhs := o.list[i] - rhs := o.list[j] - if lhs == rhs { - return false - } - - if lhs.GroupVersion() == rhs.GroupVersion() { - return lhs.Kind < rhs.Kind - } - - // otherwise, the difference is in the GroupVersion, so we need to sort with respect to the preferred order - lhsIndex := -1 - rhsIndex := -1 - - for i := range o.sortOrder { - if o.sortOrder[i] == lhs.GroupVersion() { - lhsIndex = i - } - if o.sortOrder[i] == rhs.GroupVersion() { - rhsIndex = i - } - } - - if rhsIndex == -1 { - return true - } - - return lhsIndex < rhsIndex -} - -type resourceByPreferredGroupVersion struct { - list []schema.GroupVersionResource - sortOrder []schema.GroupVersion -} - -func (o resourceByPreferredGroupVersion) Len() int { return len(o.list) } -func (o resourceByPreferredGroupVersion) Swap(i, j int) { o.list[i], o.list[j] = o.list[j], o.list[i] } -func (o resourceByPreferredGroupVersion) Less(i, j int) bool { - lhs := o.list[i] - rhs := o.list[j] - if lhs == rhs { - return false - } - - if lhs.GroupVersion() == rhs.GroupVersion() { - return lhs.Resource < rhs.Resource - } - - // otherwise, the difference is in the GroupVersion, so we need to sort with respect to the preferred order - lhsIndex := -1 - rhsIndex := -1 - - for i := range o.sortOrder { - if o.sortOrder[i] == lhs.GroupVersion() { - lhsIndex = i - } - if o.sortOrder[i] == rhs.GroupVersion() { - rhsIndex = i - } - } - - if rhsIndex == -1 { - return true - } - - return lhsIndex < rhsIndex -} - -// RESTMapping returns a struct representing the resource path and conversion interfaces a -// RESTClient should use to operate on the provided group/kind in order of versions. If a version search -// order is not provided, the search order provided to DefaultRESTMapper will be used to resolve which -// version should be used to access the named group/kind. -func (m *DefaultRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { - mappings, err := m.RESTMappings(gk, versions...) - if err != nil { - return nil, err - } - if len(mappings) == 0 { - return nil, &NoKindMatchError{GroupKind: gk, SearchedVersions: versions} - } - // since we rely on RESTMappings method - // take the first match and return to the caller - // as this was the existing behavior. - return mappings[0], nil -} - -// RESTMappings returns the RESTMappings for the provided group kind. If a version search order -// is not provided, the search order provided to DefaultRESTMapper will be used. -func (m *DefaultRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) { - mappings := make([]*RESTMapping, 0) - potentialGVK := make([]schema.GroupVersionKind, 0) - hadVersion := false - - // Pick an appropriate version - for _, version := range versions { - if len(version) == 0 || version == runtime.APIVersionInternal { - continue - } - currGVK := gk.WithVersion(version) - hadVersion = true - if _, ok := m.kindToPluralResource[currGVK]; ok { - potentialGVK = append(potentialGVK, currGVK) - break - } - } - // Use the default preferred versions - if !hadVersion && len(potentialGVK) == 0 { - for _, gv := range m.defaultGroupVersions { - if gv.Group != gk.Group { - continue - } - potentialGVK = append(potentialGVK, gk.WithVersion(gv.Version)) - } - } - - if len(potentialGVK) == 0 { - return nil, &NoKindMatchError{GroupKind: gk, SearchedVersions: versions} - } - - for _, gvk := range potentialGVK { - //Ensure we have a REST mapping - res, ok := m.kindToPluralResource[gvk] - if !ok { - continue - } - - // Ensure we have a REST scope - scope, ok := m.kindToScope[gvk] - if !ok { - return nil, fmt.Errorf("the provided version %q and kind %q cannot be mapped to a supported scope", gvk.GroupVersion(), gvk.Kind) - } - - mappings = append(mappings, &RESTMapping{ - Resource: res, - GroupVersionKind: gvk, - Scope: scope, - }) - } - - if len(mappings) == 0 { - return nil, &NoResourceMatchError{PartialResource: schema.GroupVersionResource{Group: gk.Group, Resource: gk.Kind}} - } - return mappings, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/restmapper_test.go b/pseudo/k8s/apimachinery/pkg/api/meta/restmapper_test.go deleted file mode 100644 index 4782e39e4..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/restmapper_test.go +++ /dev/null @@ -1,724 +0,0 @@ -/* -Copyright 2014 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 meta - -import ( - "reflect" - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -func TestRESTMapperVersionAndKindForResource(t *testing.T) { - testGroup := "test.group" - testVersion := "test" - testGroupVersion := schema.GroupVersion{Group: testGroup, Version: testVersion} - - testCases := []struct { - Resource schema.GroupVersionResource - GroupVersionToRegister schema.GroupVersion - ExpectedGVK schema.GroupVersionKind - Err bool - }{ - {Resource: schema.GroupVersionResource{Resource: "internalobjec"}, Err: true}, - {Resource: schema.GroupVersionResource{Resource: "internalObjec"}, Err: true}, - - {Resource: schema.GroupVersionResource{Resource: "internalobject"}, ExpectedGVK: testGroupVersion.WithKind("InternalObject")}, - {Resource: schema.GroupVersionResource{Resource: "internalobjects"}, ExpectedGVK: testGroupVersion.WithKind("InternalObject")}, - } - for i, testCase := range testCases { - mapper := NewDefaultRESTMapper([]schema.GroupVersion{testGroupVersion}) - if len(testCase.ExpectedGVK.Kind) != 0 { - mapper.Add(testCase.ExpectedGVK, RESTScopeNamespace) - } - actualGVK, err := mapper.KindFor(testCase.Resource) - - hasErr := err != nil - if hasErr != testCase.Err { - t.Errorf("%d: unexpected error behavior %t: %v", i, testCase.Err, err) - continue - } - if err != nil { - continue - } - - if actualGVK != testCase.ExpectedGVK { - t.Errorf("%d: unexpected version and kind: e=%s a=%s", i, testCase.ExpectedGVK, actualGVK) - } - } -} - -func TestRESTMapperGroupForResource(t *testing.T) { - testCases := []struct { - Resource schema.GroupVersionResource - GroupVersionKind schema.GroupVersionKind - Err bool - }{ - {Resource: schema.GroupVersionResource{Resource: "myObject"}, GroupVersionKind: schema.GroupVersionKind{Group: "testapi", Version: "test", Kind: "MyObject"}}, - {Resource: schema.GroupVersionResource{Resource: "myobject"}, GroupVersionKind: schema.GroupVersionKind{Group: "testapi2", Version: "test", Kind: "MyObject"}}, - {Resource: schema.GroupVersionResource{Resource: "myObje"}, Err: true, GroupVersionKind: schema.GroupVersionKind{Group: "testapi", Version: "test", Kind: "MyObject"}}, - {Resource: schema.GroupVersionResource{Resource: "myobje"}, Err: true, GroupVersionKind: schema.GroupVersionKind{Group: "testapi", Version: "test", Kind: "MyObject"}}, - } - for i, testCase := range testCases { - mapper := NewDefaultRESTMapper([]schema.GroupVersion{testCase.GroupVersionKind.GroupVersion()}) - mapper.Add(testCase.GroupVersionKind, RESTScopeNamespace) - - actualGVK, err := mapper.KindFor(testCase.Resource) - if testCase.Err { - if err == nil { - t.Errorf("%d: expected error", i) - } - } else if err != nil { - t.Errorf("%d: unexpected error: %v", i, err) - } else if actualGVK != testCase.GroupVersionKind { - t.Errorf("%d: expected group %q, got %q", i, testCase.GroupVersionKind, actualGVK) - } - } -} - -func TestRESTMapperKindsFor(t *testing.T) { - testCases := []struct { - Name string - PreferredOrder []schema.GroupVersion - KindsToRegister []schema.GroupVersionKind - PartialResourceToRequest schema.GroupVersionResource - - ExpectedKinds []schema.GroupVersionKind - ExpectedKindErr string - }{ - { - // exact matches are preferred - Name: "groups, with group exact", - PreferredOrder: []schema.GroupVersion{ - {Group: "first-group-1", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group-1", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - PartialResourceToRequest: schema.GroupVersionResource{Group: "first-group", Resource: "my-kind"}, - - ExpectedKinds: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - }, - - { - // group prefixes work - Name: "groups, with group prefix", - PreferredOrder: []schema.GroupVersion{ - {Group: "second-group", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - }, - PartialResourceToRequest: schema.GroupVersionResource{Group: "first", Resource: "my-kind"}, - - ExpectedKinds: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - }, - - { - // group prefixes can be ambiguous - Name: "groups, with ambiguous group prefix", - PreferredOrder: []schema.GroupVersion{ - {Group: "first-group-1", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group-1", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - PartialResourceToRequest: schema.GroupVersionResource{Group: "first", Resource: "my-kind"}, - - ExpectedKinds: []schema.GroupVersionKind{ - {Group: "first-group-1", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - ExpectedKindErr: " matches multiple kinds ", - }, - - { - Name: "ambiguous groups, with preference order", - PreferredOrder: []schema.GroupVersion{ - {Group: "second-group", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "your-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "your-kind"}, - }, - PartialResourceToRequest: schema.GroupVersionResource{Resource: "my-kinds"}, - - ExpectedKinds: []schema.GroupVersionKind{ - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - ExpectedKindErr: " matches multiple kinds ", - }, - - { - Name: "ambiguous groups, with explicit group match", - PreferredOrder: []schema.GroupVersion{ - {Group: "second-group", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "your-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "your-kind"}, - }, - PartialResourceToRequest: schema.GroupVersionResource{Group: "first-group", Resource: "my-kinds"}, - - ExpectedKinds: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - }, - - { - Name: "ambiguous groups, with ambiguous version match", - PreferredOrder: []schema.GroupVersion{ - {Group: "first-group", Version: "first-version"}, - {Group: "second-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "your-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "your-kind"}, - }, - PartialResourceToRequest: schema.GroupVersionResource{Version: "first-version", Resource: "my-kinds"}, - - ExpectedKinds: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - }, - ExpectedKindErr: " matches multiple kinds ", - }, - } - for _, testCase := range testCases { - tcName := testCase.Name - mapper := NewDefaultRESTMapper(testCase.PreferredOrder) - for _, kind := range testCase.KindsToRegister { - mapper.Add(kind, RESTScopeNamespace) - } - - actualKinds, err := mapper.KindsFor(testCase.PartialResourceToRequest) - if err != nil { - t.Errorf("%s: unexpected error: %v", tcName, err) - continue - } - if !reflect.DeepEqual(testCase.ExpectedKinds, actualKinds) { - t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedKinds, actualKinds) - } - - singleKind, err := mapper.KindFor(testCase.PartialResourceToRequest) - if err == nil && len(testCase.ExpectedKindErr) != 0 { - t.Errorf("%s: expected error: %v", tcName, testCase.ExpectedKindErr) - continue - } - if err != nil { - if len(testCase.ExpectedKindErr) == 0 { - t.Errorf("%s: unexpected error: %v", tcName, err) - continue - } else { - if !strings.Contains(err.Error(), testCase.ExpectedKindErr) { - t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedKindErr, err) - continue - } - } - - } else { - if testCase.ExpectedKinds[0] != singleKind { - t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedKinds[0], singleKind) - } - - } - } -} - -func TestRESTMapperResourcesFor(t *testing.T) { - testCases := []struct { - Name string - PreferredOrder []schema.GroupVersion - KindsToRegister []schema.GroupVersionKind - PluralPartialResourceToRequest schema.GroupVersionResource - SingularPartialResourceToRequest schema.GroupVersionResource - - ExpectedResources []schema.GroupVersionResource - ExpectedResourceErr string - }{ - { - // exact matches are preferred - Name: "groups, with group exact", - PreferredOrder: []schema.GroupVersion{ - {Group: "first-group-1", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group-1", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - PluralPartialResourceToRequest: schema.GroupVersionResource{Group: "first-group", Resource: "my-kinds"}, - SingularPartialResourceToRequest: schema.GroupVersionResource{Group: "first-group", Resource: "my-kind"}, - - ExpectedResources: []schema.GroupVersionResource{ - {Group: "first-group", Version: "first-version", Resource: "my-kinds"}, - }, - }, - - { - // group prefixes work - Name: "groups, with group prefix", - PreferredOrder: []schema.GroupVersion{ - {Group: "second-group", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - }, - PluralPartialResourceToRequest: schema.GroupVersionResource{Group: "first", Resource: "my-kinds"}, - SingularPartialResourceToRequest: schema.GroupVersionResource{Group: "first", Resource: "my-kind"}, - - ExpectedResources: []schema.GroupVersionResource{ - {Group: "first-group", Version: "first-version", Resource: "my-kinds"}, - }, - }, - - { - // group prefixes can be ambiguous - Name: "groups, with ambiguous group prefix", - PreferredOrder: []schema.GroupVersion{ - {Group: "first-group-1", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group-1", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - }, - PluralPartialResourceToRequest: schema.GroupVersionResource{Group: "first", Resource: "my-kinds"}, - SingularPartialResourceToRequest: schema.GroupVersionResource{Group: "first", Resource: "my-kind"}, - - ExpectedResources: []schema.GroupVersionResource{ - {Group: "first-group-1", Version: "first-version", Resource: "my-kinds"}, - {Group: "first-group", Version: "first-version", Resource: "my-kinds"}, - }, - ExpectedResourceErr: " matches multiple resources ", - }, - - { - Name: "ambiguous groups, with preference order", - PreferredOrder: []schema.GroupVersion{ - {Group: "second-group", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "your-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "your-kind"}, - }, - PluralPartialResourceToRequest: schema.GroupVersionResource{Resource: "my-kinds"}, - SingularPartialResourceToRequest: schema.GroupVersionResource{Resource: "my-kind"}, - - ExpectedResources: []schema.GroupVersionResource{ - {Group: "second-group", Version: "first-version", Resource: "my-kinds"}, - {Group: "first-group", Version: "first-version", Resource: "my-kinds"}, - }, - ExpectedResourceErr: " matches multiple resources ", - }, - - { - Name: "ambiguous groups, with explicit group match", - PreferredOrder: []schema.GroupVersion{ - {Group: "second-group", Version: "first-version"}, - {Group: "first-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "your-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "your-kind"}, - }, - PluralPartialResourceToRequest: schema.GroupVersionResource{Group: "first-group", Resource: "my-kinds"}, - SingularPartialResourceToRequest: schema.GroupVersionResource{Group: "first-group", Resource: "my-kind"}, - - ExpectedResources: []schema.GroupVersionResource{ - {Group: "first-group", Version: "first-version", Resource: "my-kinds"}, - }, - }, - - { - Name: "ambiguous groups, with ambiguous version match", - PreferredOrder: []schema.GroupVersion{ - {Group: "first-group", Version: "first-version"}, - {Group: "second-group", Version: "first-version"}, - }, - KindsToRegister: []schema.GroupVersionKind{ - {Group: "first-group", Version: "first-version", Kind: "my-kind"}, - {Group: "first-group", Version: "first-version", Kind: "your-kind"}, - {Group: "second-group", Version: "first-version", Kind: "my-kind"}, - {Group: "second-group", Version: "first-version", Kind: "your-kind"}, - }, - PluralPartialResourceToRequest: schema.GroupVersionResource{Version: "first-version", Resource: "my-kinds"}, - SingularPartialResourceToRequest: schema.GroupVersionResource{Version: "first-version", Resource: "my-kind"}, - - ExpectedResources: []schema.GroupVersionResource{ - {Group: "first-group", Version: "first-version", Resource: "my-kinds"}, - {Group: "second-group", Version: "first-version", Resource: "my-kinds"}, - }, - ExpectedResourceErr: " matches multiple resources ", - }, - } - for _, testCase := range testCases { - tcName := testCase.Name - - for _, partialResource := range []schema.GroupVersionResource{testCase.PluralPartialResourceToRequest, testCase.SingularPartialResourceToRequest} { - mapper := NewDefaultRESTMapper(testCase.PreferredOrder) - for _, kind := range testCase.KindsToRegister { - mapper.Add(kind, RESTScopeNamespace) - } - - actualResources, err := mapper.ResourcesFor(partialResource) - if err != nil { - t.Errorf("%s: unexpected error: %v", tcName, err) - continue - } - if !reflect.DeepEqual(testCase.ExpectedResources, actualResources) { - t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedResources, actualResources) - } - - singleResource, err := mapper.ResourceFor(partialResource) - if err == nil && len(testCase.ExpectedResourceErr) != 0 { - t.Errorf("%s: expected error: %v", tcName, testCase.ExpectedResourceErr) - continue - } - if err != nil { - if len(testCase.ExpectedResourceErr) == 0 { - t.Errorf("%s: unexpected error: %v", tcName, err) - continue - } else { - if !strings.Contains(err.Error(), testCase.ExpectedResourceErr) { - t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedResourceErr, err) - continue - } - } - - } else { - if testCase.ExpectedResources[0] != singleResource { - t.Errorf("%s: expected %v, got %v", tcName, testCase.ExpectedResources[0], singleResource) - } - - } - } - } -} - -func TestKindToResource(t *testing.T) { - testCases := []struct { - Kind string - Plural, Singular string - }{ - {Kind: "Pod", Plural: "pods", Singular: "pod"}, - - {Kind: "ReplicationController", Plural: "replicationcontrollers", Singular: "replicationcontroller"}, - - // Add "ies" when ending with "y" - {Kind: "ImageRepository", Plural: "imagerepositories", Singular: "imagerepository"}, - // Add "es" when ending with "s" - {Kind: "miss", Plural: "misses", Singular: "miss"}, - // Add "s" otherwise - {Kind: "lowercase", Plural: "lowercases", Singular: "lowercase"}, - } - for i, testCase := range testCases { - version := schema.GroupVersion{} - - plural, singular := UnsafeGuessKindToResource(version.WithKind(testCase.Kind)) - if singular != version.WithResource(testCase.Singular) || plural != version.WithResource(testCase.Plural) { - t.Errorf("%d: unexpected plural and singular: %v %v", i, plural, singular) - } - } -} - -func TestRESTMapperResourceSingularizer(t *testing.T) { - testGroupVersion := schema.GroupVersion{Group: "tgroup", Version: "test"} - - testCases := []struct { - Kind string - Plural string - Singular string - }{ - {Kind: "Pod", Plural: "pods", Singular: "pod"}, - {Kind: "ReplicationController", Plural: "replicationcontrollers", Singular: "replicationcontroller"}, - {Kind: "ImageRepository", Plural: "imagerepositories", Singular: "imagerepository"}, - {Kind: "Status", Plural: "statuses", Singular: "status"}, - - {Kind: "lowercase", Plural: "lowercases", Singular: "lowercase"}, - // TODO this test is broken. This updates to reflect actual behavior. Kinds are expected to be singular - // old (incorrect), comment: Don't add extra s if the original object is already plural - {Kind: "lowercases", Plural: "lowercaseses", Singular: "lowercases"}, - } - for i, testCase := range testCases { - mapper := NewDefaultRESTMapper([]schema.GroupVersion{testGroupVersion}) - // create singular/plural mapping - mapper.Add(testGroupVersion.WithKind(testCase.Kind), RESTScopeNamespace) - - singular, err := mapper.ResourceSingularizer(testCase.Plural) - if err != nil { - t.Errorf("%d: unexpected error: %v", i, err) - } - if singular != testCase.Singular { - t.Errorf("%d: mismatched singular: got %v, expected %v", i, singular, testCase.Singular) - } - } -} - -func TestRESTMapperRESTMapping(t *testing.T) { - testGroup := "tgroup" - testGroupVersion := schema.GroupVersion{Group: testGroup, Version: "test"} - internalGroupVersion := schema.GroupVersion{Group: testGroup, Version: "test"} - - testCases := []struct { - Kind string - APIGroupVersions []schema.GroupVersion - DefaultVersions []schema.GroupVersion - - Resource schema.GroupVersionResource - ExpectedGroupVersion *schema.GroupVersion - Err bool - }{ - {Kind: "Unknown", Err: true}, - {Kind: "InternalObject", Err: true}, - - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "Unknown", Err: true}, - - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "InternalObject", APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "test"}}, Resource: testGroupVersion.WithResource("internalobjects")}, - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "InternalObject", APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "test"}}, Resource: testGroupVersion.WithResource("internalobjects")}, - - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "InternalObject", APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "test"}}, Resource: testGroupVersion.WithResource("internalobjects")}, - - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "InternalObject", APIGroupVersions: []schema.GroupVersion{}, Resource: internalGroupVersion.WithResource("internalobjects"), ExpectedGroupVersion: &schema.GroupVersion{Group: testGroup, Version: "test"}}, - - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "InternalObject", APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "test"}}, Resource: testGroupVersion.WithResource("internalobjects")}, - - // TODO: add test for a resource that exists in one version but not another - } - for i, testCase := range testCases { - mapper := NewDefaultRESTMapper(testCase.DefaultVersions) - mapper.Add(internalGroupVersion.WithKind("InternalObject"), RESTScopeNamespace) - - preferredVersions := []string{} - for _, gv := range testCase.APIGroupVersions { - preferredVersions = append(preferredVersions, gv.Version) - } - gk := schema.GroupKind{Group: testGroup, Kind: testCase.Kind} - - mapping, err := mapper.RESTMapping(gk, preferredVersions...) - hasErr := err != nil - if hasErr != testCase.Err { - t.Errorf("%d: unexpected error behavior %t: %v", i, testCase.Err, err) - } - if hasErr { - continue - } - if mapping.Resource != testCase.Resource { - t.Errorf("%d: unexpected resource: %#v", i, mapping) - } - - groupVersion := testCase.ExpectedGroupVersion - if groupVersion == nil { - groupVersion = &testCase.APIGroupVersions[0] - } - if mapping.GroupVersionKind.GroupVersion() != *groupVersion { - t.Errorf("%d: unexpected version: %#v", i, mapping) - } - - } -} - -func TestRESTMapperRESTMappingSelectsVersion(t *testing.T) { - expectedGroupVersion1 := schema.GroupVersion{Group: "tgroup", Version: "test1"} - expectedGroupVersion2 := schema.GroupVersion{Group: "tgroup", Version: "test2"} - expectedGroupVersion3 := schema.GroupVersion{Group: "tgroup", Version: "test3"} - internalObjectGK := schema.GroupKind{Group: "tgroup", Kind: "InternalObject"} - otherObjectGK := schema.GroupKind{Group: "tgroup", Kind: "OtherObject"} - - mapper := NewDefaultRESTMapper([]schema.GroupVersion{expectedGroupVersion1, expectedGroupVersion2}) - mapper.Add(expectedGroupVersion1.WithKind("InternalObject"), RESTScopeNamespace) - mapper.Add(expectedGroupVersion2.WithKind("OtherObject"), RESTScopeNamespace) - - // pick default matching object kind based on search order - mapping, err := mapper.RESTMapping(otherObjectGK) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if mapping.Resource != expectedGroupVersion2.WithResource("otherobjects") || mapping.GroupVersionKind.GroupVersion() != expectedGroupVersion2 { - t.Errorf("unexpected mapping: %#v", mapping) - } - - mapping, err = mapper.RESTMapping(internalObjectGK) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if mapping.Resource != expectedGroupVersion1.WithResource("internalobjects") || mapping.GroupVersionKind.GroupVersion() != expectedGroupVersion1 { - t.Errorf("unexpected mapping: %#v", mapping) - } - - // mismatch of version - mapping, err = mapper.RESTMapping(internalObjectGK, expectedGroupVersion2.Version) - if err == nil { - t.Errorf("unexpected non-error") - } - mapping, err = mapper.RESTMapping(otherObjectGK, expectedGroupVersion1.Version) - if err == nil { - t.Errorf("unexpected non-error") - } - - // not in the search versions - mapping, err = mapper.RESTMapping(otherObjectGK, expectedGroupVersion3.Version) - if err == nil { - t.Errorf("unexpected non-error") - } - - // explicit search order - mapping, err = mapper.RESTMapping(otherObjectGK, expectedGroupVersion3.Version, expectedGroupVersion1.Version) - if err == nil { - t.Errorf("unexpected non-error") - } - - mapping, err = mapper.RESTMapping(otherObjectGK, expectedGroupVersion3.Version, expectedGroupVersion2.Version) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if mapping.Resource != expectedGroupVersion2.WithResource("otherobjects") || mapping.GroupVersionKind.GroupVersion() != expectedGroupVersion2 { - t.Errorf("unexpected mapping: %#v", mapping) - } -} - -func TestRESTMapperRESTMappings(t *testing.T) { - testGroup := "tgroup" - testGroupVersion := schema.GroupVersion{Group: testGroup, Version: "v1"} - - testCases := []struct { - Kind string - APIGroupVersions []schema.GroupVersion - DefaultVersions []schema.GroupVersion - AddGroupVersionKind []schema.GroupVersionKind - - ExpectedRESTMappings []*RESTMapping - Err bool - }{ - {Kind: "Unknown", Err: true}, - {Kind: "InternalObject", Err: true}, - - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "Unknown", Err: true}, - - // ask for specific version - not available - thus error - {DefaultVersions: []schema.GroupVersion{testGroupVersion}, Kind: "InternalObject", APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "v2"}}, Err: true}, - - // ask for specific version - available - check ExpectedRESTMappings - { - DefaultVersions: []schema.GroupVersion{testGroupVersion}, - Kind: "InternalObject", - APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "v2"}}, - AddGroupVersionKind: []schema.GroupVersionKind{schema.GroupVersion{Group: testGroup, Version: "v2"}.WithKind("InternalObject")}, - ExpectedRESTMappings: []*RESTMapping{{Resource: schema.GroupVersionResource{Group: testGroup, Version: "v2", Resource: "internalobjects"}, GroupVersionKind: schema.GroupVersionKind{Group: testGroup, Version: "v2", Kind: "InternalObject"}}}, - }, - - // ask for specific versions - only one available - check ExpectedRESTMappings - { - DefaultVersions: []schema.GroupVersion{testGroupVersion}, - Kind: "InternalObject", - APIGroupVersions: []schema.GroupVersion{{Group: testGroup, Version: "v3"}, {Group: testGroup, Version: "v2"}}, - AddGroupVersionKind: []schema.GroupVersionKind{schema.GroupVersion{Group: testGroup, Version: "v2"}.WithKind("InternalObject")}, - ExpectedRESTMappings: []*RESTMapping{{Resource: schema.GroupVersionResource{Group: testGroup, Version: "v2", Resource: "internalobjects"}, GroupVersionKind: schema.GroupVersionKind{Group: testGroup, Version: "v2", Kind: "InternalObject"}}}, - }, - - // do not ask for specific version - search through default versions - check ExpectedRESTMappings - { - DefaultVersions: []schema.GroupVersion{testGroupVersion, {Group: testGroup, Version: "v2"}}, - Kind: "InternalObject", - AddGroupVersionKind: []schema.GroupVersionKind{schema.GroupVersion{Group: testGroup, Version: "v1"}.WithKind("InternalObject"), schema.GroupVersion{Group: testGroup, Version: "v2"}.WithKind("InternalObject")}, - ExpectedRESTMappings: []*RESTMapping{ - { - Resource: schema.GroupVersionResource{Group: testGroup, Version: "v1", Resource: "internalobjects"}, - GroupVersionKind: schema.GroupVersionKind{Group: testGroup, Version: "v1", Kind: "InternalObject"}, - }, - { - Resource: schema.GroupVersionResource{Group: testGroup, Version: "v2", Resource: "internalobjects"}, - GroupVersionKind: schema.GroupVersionKind{Group: testGroup, Version: "v2", Kind: "InternalObject"}, - }, - }, - }, - } - - for i, testCase := range testCases { - mapper := NewDefaultRESTMapper(testCase.DefaultVersions) - for _, gvk := range testCase.AddGroupVersionKind { - mapper.Add(gvk, RESTScopeNamespace) - } - - preferredVersions := []string{} - for _, gv := range testCase.APIGroupVersions { - preferredVersions = append(preferredVersions, gv.Version) - } - gk := schema.GroupKind{Group: testGroup, Kind: testCase.Kind} - - mappings, err := mapper.RESTMappings(gk, preferredVersions...) - hasErr := err != nil - if hasErr != testCase.Err { - t.Errorf("%d: unexpected error behavior %t: %v", i, testCase.Err, err) - } - if hasErr { - continue - } - if len(mappings) != len(testCase.ExpectedRESTMappings) { - t.Errorf("%d: unexpected number = %d of rest mappings was returned, expected = %d", i, len(mappings), len(testCase.ExpectedRESTMappings)) - } - for j, mapping := range mappings { - exp := testCase.ExpectedRESTMappings[j] - if mapping.Resource != exp.Resource { - t.Errorf("%d - %d: unexpected resource: %#v", i, j, mapping) - } - if mapping.GroupVersionKind != exp.GroupVersionKind { - t.Errorf("%d - %d: unexpected GroupVersionKind: %#v", i, j, mapping) - } - } - } -} - -func TestRESTMapperReportsErrorOnBadVersion(t *testing.T) { - expectedGroupVersion1 := schema.GroupVersion{Group: "tgroup", Version: "test1"} - expectedGroupVersion2 := schema.GroupVersion{Group: "tgroup", Version: "test2"} - internalObjectGK := schema.GroupKind{Group: "tgroup", Kind: "InternalObject"} - - mapper := NewDefaultRESTMapper([]schema.GroupVersion{expectedGroupVersion1, expectedGroupVersion2}) - mapper.Add(expectedGroupVersion1.WithKind("InternalObject"), RESTScopeNamespace) - _, err := mapper.RESTMapping(internalObjectGK, "test3") - if err == nil { - t.Errorf("unexpected non-error") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/table/table.go b/pseudo/k8s/apimachinery/pkg/api/meta/table/table.go deleted file mode 100644 index c89a672f0..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/table/table.go +++ /dev/null @@ -1,71 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 table - -import ( - "time" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - metav1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/duration" -) - -// MetaToTableRow converts a list or object into one or more table rows. The provided rowFn is invoked for -// each accessed item, with name and age being passed to each. -func MetaToTableRow(obj runtime.Object, rowFn func(obj runtime.Object, m metav1.Object, name, age string) ([]interface{}, error)) ([]metav1beta1.TableRow, error) { - if meta.IsListType(obj) { - rows := make([]metav1beta1.TableRow, 0, 16) - err := meta.EachListItem(obj, func(obj runtime.Object) error { - nestedRows, err := MetaToTableRow(obj, rowFn) - if err != nil { - return err - } - rows = append(rows, nestedRows...) - return nil - }) - if err != nil { - return nil, err - } - return rows, nil - } - - rows := make([]metav1beta1.TableRow, 0, 1) - m, err := meta.Accessor(obj) - if err != nil { - return nil, err - } - row := metav1beta1.TableRow{ - Object: runtime.RawExtension{Object: obj}, - } - row.Cells, err = rowFn(obj, m, m.GetName(), ConvertToHumanReadableDateType(m.GetCreationTimestamp())) - if err != nil { - return nil, err - } - rows = append(rows, row) - return rows, nil -} - -// ConvertToHumanReadableDateType returns the elapsed time since timestamp in -// human-readable approximation. -func ConvertToHumanReadableDateType(timestamp metav1.Time) string { - if timestamp.IsZero() { - return "" - } - return duration.HumanDuration(time.Since(timestamp.Time)) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go b/pseudo/k8s/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go deleted file mode 100644 index ac2826ab4..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go +++ /dev/null @@ -1,170 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 testrestmapper - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -// TestOnlyStaticRESTMapper returns a union RESTMapper of all known types with priorities chosen in the following order: -// 1. legacy kube group preferred version, extensions preferred version, metrics preferred version, legacy -// kube any version, extensions any version, metrics any version, all other groups alphabetical preferred version, -// all other groups alphabetical. -// TODO callers of this method should be updated to build their own specific restmapper based on their scheme for their tests -// TODO the things being tested are related to whether various cases are handled, not tied to the particular types being checked. -func TestOnlyStaticRESTMapper(scheme *runtime.Scheme, versionPatterns ...schema.GroupVersion) meta.RESTMapper { - unionMapper := meta.MultiRESTMapper{} - unionedGroups := sets.NewString() - for _, enabledVersion := range scheme.PrioritizedVersionsAllGroups() { - if !unionedGroups.Has(enabledVersion.Group) { - unionedGroups.Insert(enabledVersion.Group) - unionMapper = append(unionMapper, newRESTMapper(enabledVersion.Group, scheme)) - } - } - - if len(versionPatterns) != 0 { - resourcePriority := []schema.GroupVersionResource{} - kindPriority := []schema.GroupVersionKind{} - for _, versionPriority := range versionPatterns { - resourcePriority = append(resourcePriority, versionPriority.WithResource(meta.AnyResource)) - kindPriority = append(kindPriority, versionPriority.WithKind(meta.AnyKind)) - } - - return meta.PriorityRESTMapper{Delegate: unionMapper, ResourcePriority: resourcePriority, KindPriority: kindPriority} - } - - prioritizedGroups := []string{"", "extensions", "metrics"} - resourcePriority, kindPriority := prioritiesForGroups(scheme, prioritizedGroups...) - - prioritizedGroupsSet := sets.NewString(prioritizedGroups...) - remainingGroups := sets.String{} - for _, enabledVersion := range scheme.PrioritizedVersionsAllGroups() { - if !prioritizedGroupsSet.Has(enabledVersion.Group) { - remainingGroups.Insert(enabledVersion.Group) - } - } - - remainingResourcePriority, remainingKindPriority := prioritiesForGroups(scheme, remainingGroups.List()...) - resourcePriority = append(resourcePriority, remainingResourcePriority...) - kindPriority = append(kindPriority, remainingKindPriority...) - - return meta.PriorityRESTMapper{Delegate: unionMapper, ResourcePriority: resourcePriority, KindPriority: kindPriority} -} - -// prioritiesForGroups returns the resource and kind priorities for a PriorityRESTMapper, preferring the preferred version of each group first, -// then any non-preferred version of the group second. -func prioritiesForGroups(scheme *runtime.Scheme, groups ...string) ([]schema.GroupVersionResource, []schema.GroupVersionKind) { - resourcePriority := []schema.GroupVersionResource{} - kindPriority := []schema.GroupVersionKind{} - - for _, group := range groups { - availableVersions := scheme.PrioritizedVersionsForGroup(group) - if len(availableVersions) > 0 { - resourcePriority = append(resourcePriority, availableVersions[0].WithResource(meta.AnyResource)) - kindPriority = append(kindPriority, availableVersions[0].WithKind(meta.AnyKind)) - } - } - for _, group := range groups { - resourcePriority = append(resourcePriority, schema.GroupVersionResource{Group: group, Version: meta.AnyVersion, Resource: meta.AnyResource}) - kindPriority = append(kindPriority, schema.GroupVersionKind{Group: group, Version: meta.AnyVersion, Kind: meta.AnyKind}) - } - - return resourcePriority, kindPriority -} - -func newRESTMapper(group string, scheme *runtime.Scheme) meta.RESTMapper { - mapper := meta.NewDefaultRESTMapper(scheme.PrioritizedVersionsForGroup(group)) - for _, gv := range scheme.PrioritizedVersionsForGroup(group) { - for kind := range scheme.KnownTypes(gv) { - if ignoredKinds.Has(kind) { - continue - } - scope := meta.RESTScopeNamespace - if rootScopedKinds[gv.WithKind(kind).GroupKind()] { - scope = meta.RESTScopeRoot - } - mapper.Add(gv.WithKind(kind), scope) - } - } - - return mapper -} - -// hardcoded is good enough for the test we're running -var rootScopedKinds = map[schema.GroupKind]bool{ - {Group: "admission.k8s.io", Kind: "AdmissionReview"}: true, - - {Group: "admissionregistration.k8s.io", Kind: "ValidatingWebhookConfiguration"}: true, - {Group: "admissionregistration.k8s.io", Kind: "MutatingWebhookConfiguration"}: true, - - {Group: "authentication.k8s.io", Kind: "TokenReview"}: true, - - {Group: "authorization.k8s.io", Kind: "SubjectAccessReview"}: true, - {Group: "authorization.k8s.io", Kind: "SelfSubjectAccessReview"}: true, - {Group: "authorization.k8s.io", Kind: "SelfSubjectRulesReview"}: true, - - {Group: "certificates.k8s.io", Kind: "CertificateSigningRequest"}: true, - - {Group: "", Kind: "Node"}: true, - {Group: "", Kind: "Namespace"}: true, - {Group: "", Kind: "PersistentVolume"}: true, - {Group: "", Kind: "ComponentStatus"}: true, - - {Group: "extensions", Kind: "PodSecurityPolicy"}: true, - - {Group: "policy", Kind: "PodSecurityPolicy"}: true, - - {Group: "extensions", Kind: "PodSecurityPolicy"}: true, - - {Group: "rbac.authorization.k8s.io", Kind: "ClusterRole"}: true, - {Group: "rbac.authorization.k8s.io", Kind: "ClusterRoleBinding"}: true, - - {Group: "scheduling.k8s.io", Kind: "PriorityClass"}: true, - - {Group: "storage.k8s.io", Kind: "StorageClass"}: true, - {Group: "storage.k8s.io", Kind: "VolumeAttachment"}: true, - - {Group: "apiextensions.k8s.io", Kind: "CustomResourceDefinition"}: true, - - {Group: "apiserver.k8s.io", Kind: "AdmissionConfiguration"}: true, - - {Group: "audit.k8s.io", Kind: "Event"}: true, - {Group: "audit.k8s.io", Kind: "Policy"}: true, - - {Group: "apiregistration.k8s.io", Kind: "APIService"}: true, - - {Group: "metrics.k8s.io", Kind: "NodeMetrics"}: true, - - {Group: "wardle.k8s.io", Kind: "Fischer"}: true, -} - -// hardcoded is good enough for the test we're running -var ignoredKinds = sets.NewString( - "ListOptions", - "DeleteOptions", - "Status", - "PodLogOptions", - "PodExecOptions", - "PodAttachOptions", - "PodPortForwardOptions", - "PodProxyOptions", - "NodeProxyOptions", - "ServiceProxyOptions", -) diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/amount.go b/pseudo/k8s/apimachinery/pkg/api/resource/amount.go deleted file mode 100644 index a8866a43e..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/amount.go +++ /dev/null @@ -1,299 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "math/big" - "strconv" - - inf "gopkg.in/inf.v0" -) - -// Scale is used for getting and setting the base-10 scaled value. -// Base-2 scales are omitted for mathematical simplicity. -// See Quantity.ScaledValue for more details. -type Scale int32 - -// infScale adapts a Scale value to an inf.Scale value. -func (s Scale) infScale() inf.Scale { - return inf.Scale(-s) // inf.Scale is upside-down -} - -const ( - Nano Scale = -9 - Micro Scale = -6 - Milli Scale = -3 - Kilo Scale = 3 - Mega Scale = 6 - Giga Scale = 9 - Tera Scale = 12 - Peta Scale = 15 - Exa Scale = 18 -) - -var ( - Zero = int64Amount{} - - // Used by quantity strings - treat as read only - zeroBytes = []byte("0") -) - -// int64Amount represents a fixed precision numerator and arbitrary scale exponent. It is faster -// than operations on inf.Dec for values that can be represented as int64. -// +k8s:openapi-gen=true -type int64Amount struct { - value int64 - scale Scale -} - -// Sign returns 0 if the value is zero, -1 if it is less than 0, or 1 if it is greater than 0. -func (a int64Amount) Sign() int { - switch { - case a.value == 0: - return 0 - case a.value > 0: - return 1 - default: - return -1 - } -} - -// AsInt64 returns the current amount as an int64 at scale 0, or false if the value cannot be -// represented in an int64 OR would result in a loss of precision. This method is intended as -// an optimization to avoid calling AsDec. -func (a int64Amount) AsInt64() (int64, bool) { - if a.scale == 0 { - return a.value, true - } - if a.scale < 0 { - // TODO: attempt to reduce factors, although it is assumed that factors are reduced prior - // to the int64Amount being created. - return 0, false - } - return positiveScaleInt64(a.value, a.scale) -} - -// AsScaledInt64 returns an int64 representing the value of this amount at the specified scale, -// rounding up, or false if that would result in overflow. (1e20).AsScaledInt64(1) would result -// in overflow because 1e19 is not representable as an int64. Note that setting a scale larger -// than the current value may result in loss of precision - i.e. (1e-6).AsScaledInt64(0) would -// return 1, because 0.000001 is rounded up to 1. -func (a int64Amount) AsScaledInt64(scale Scale) (result int64, ok bool) { - if a.scale < scale { - result, _ = negativeScaleInt64(a.value, scale-a.scale) - return result, true - } - return positiveScaleInt64(a.value, a.scale-scale) -} - -// AsDec returns an inf.Dec representation of this value. -func (a int64Amount) AsDec() *inf.Dec { - var base inf.Dec - base.SetUnscaled(a.value) - base.SetScale(inf.Scale(-a.scale)) - return &base -} - -// Cmp returns 0 if a and b are equal, 1 if a is greater than b, or -1 if a is less than b. -func (a int64Amount) Cmp(b int64Amount) int { - switch { - case a.scale == b.scale: - // compare only the unscaled portion - case a.scale > b.scale: - result, remainder, exact := divideByScaleInt64(b.value, a.scale-b.scale) - if !exact { - return a.AsDec().Cmp(b.AsDec()) - } - if result == a.value { - switch { - case remainder == 0: - return 0 - case remainder > 0: - return -1 - default: - return 1 - } - } - b.value = result - default: - result, remainder, exact := divideByScaleInt64(a.value, b.scale-a.scale) - if !exact { - return a.AsDec().Cmp(b.AsDec()) - } - if result == b.value { - switch { - case remainder == 0: - return 0 - case remainder > 0: - return 1 - default: - return -1 - } - } - a.value = result - } - - switch { - case a.value == b.value: - return 0 - case a.value < b.value: - return -1 - default: - return 1 - } -} - -// Add adds two int64Amounts together, matching scales. It will return false and not mutate -// a if overflow or underflow would result. -func (a *int64Amount) Add(b int64Amount) bool { - switch { - case b.value == 0: - return true - case a.value == 0: - a.value = b.value - a.scale = b.scale - return true - case a.scale == b.scale: - c, ok := int64Add(a.value, b.value) - if !ok { - return false - } - a.value = c - case a.scale > b.scale: - c, ok := positiveScaleInt64(a.value, a.scale-b.scale) - if !ok { - return false - } - c, ok = int64Add(c, b.value) - if !ok { - return false - } - a.scale = b.scale - a.value = c - default: - c, ok := positiveScaleInt64(b.value, b.scale-a.scale) - if !ok { - return false - } - c, ok = int64Add(a.value, c) - if !ok { - return false - } - a.value = c - } - return true -} - -// Sub removes the value of b from the current amount, or returns false if underflow would result. -func (a *int64Amount) Sub(b int64Amount) bool { - return a.Add(int64Amount{value: -b.value, scale: b.scale}) -} - -// AsScale adjusts this amount to set a minimum scale, rounding up, and returns true iff no precision -// was lost. (1.1e5).AsScale(5) would return 1.1e5, but (1.1e5).AsScale(6) would return 1e6. -func (a int64Amount) AsScale(scale Scale) (int64Amount, bool) { - if a.scale >= scale { - return a, true - } - result, exact := negativeScaleInt64(a.value, scale-a.scale) - return int64Amount{value: result, scale: scale}, exact -} - -// AsCanonicalBytes accepts a buffer to write the base-10 string value of this field to, and returns -// either that buffer or a larger buffer and the current exponent of the value. The value is adjusted -// until the exponent is a multiple of 3 - i.e. 1.1e5 would return "110", 3. -func (a int64Amount) AsCanonicalBytes(out []byte) (result []byte, exponent int32) { - mantissa := a.value - exponent = int32(a.scale) - - amount, times := removeInt64Factors(mantissa, 10) - exponent += int32(times) - - // make sure exponent is a multiple of 3 - var ok bool - switch exponent % 3 { - case 1, -2: - amount, ok = int64MultiplyScale10(amount) - if !ok { - return infDecAmount{a.AsDec()}.AsCanonicalBytes(out) - } - exponent = exponent - 1 - case 2, -1: - amount, ok = int64MultiplyScale100(amount) - if !ok { - return infDecAmount{a.AsDec()}.AsCanonicalBytes(out) - } - exponent = exponent - 2 - } - return strconv.AppendInt(out, amount, 10), exponent -} - -// AsCanonicalBase1024Bytes accepts a buffer to write the base-1024 string value of this field to, and returns -// either that buffer or a larger buffer and the current exponent of the value. 2048 is 2 * 1024 ^ 1 and would -// return []byte("2048"), 1. -func (a int64Amount) AsCanonicalBase1024Bytes(out []byte) (result []byte, exponent int32) { - value, ok := a.AsScaledInt64(0) - if !ok { - return infDecAmount{a.AsDec()}.AsCanonicalBase1024Bytes(out) - } - amount, exponent := removeInt64Factors(value, 1024) - return strconv.AppendInt(out, amount, 10), exponent -} - -// infDecAmount implements common operations over an inf.Dec that are specific to the quantity -// representation. -type infDecAmount struct { - *inf.Dec -} - -// AsScale adjusts this amount to set a minimum scale, rounding up, and returns true iff no precision -// was lost. (1.1e5).AsScale(5) would return 1.1e5, but (1.1e5).AsScale(6) would return 1e6. -func (a infDecAmount) AsScale(scale Scale) (infDecAmount, bool) { - tmp := &inf.Dec{} - tmp.Round(a.Dec, scale.infScale(), inf.RoundUp) - return infDecAmount{tmp}, tmp.Cmp(a.Dec) == 0 -} - -// AsCanonicalBytes accepts a buffer to write the base-10 string value of this field to, and returns -// either that buffer or a larger buffer and the current exponent of the value. The value is adjusted -// until the exponent is a multiple of 3 - i.e. 1.1e5 would return "110", 3. -func (a infDecAmount) AsCanonicalBytes(out []byte) (result []byte, exponent int32) { - mantissa := a.Dec.UnscaledBig() - exponent = int32(-a.Dec.Scale()) - amount := big.NewInt(0).Set(mantissa) - // move all factors of 10 into the exponent for easy reasoning - amount, times := removeBigIntFactors(amount, bigTen) - exponent += times - - // make sure exponent is a multiple of 3 - for exponent%3 != 0 { - amount.Mul(amount, bigTen) - exponent-- - } - - return append(out, amount.String()...), exponent -} - -// AsCanonicalBase1024Bytes accepts a buffer to write the base-1024 string value of this field to, and returns -// either that buffer or a larger buffer and the current exponent of the value. 2048 is 2 * 1024 ^ 1 and would -// return []byte("2048"), 1. -func (a infDecAmount) AsCanonicalBase1024Bytes(out []byte) (result []byte, exponent int32) { - tmp := &inf.Dec{} - tmp.Round(a.Dec, 0, inf.RoundUp) - amount, exponent := removeBigIntFactors(tmp.UnscaledBig(), big1024) - return append(out, amount.String()...), exponent -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/amount_test.go b/pseudo/k8s/apimachinery/pkg/api/resource/amount_test.go deleted file mode 100644 index 8217cb139..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/amount_test.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "testing" -) - -func TestInt64AmountAsInt64(t *testing.T) { - for _, test := range []struct { - value int64 - scale Scale - result int64 - ok bool - }{ - {100, 0, 100, true}, - {100, 1, 1000, true}, - {100, -5, 0, false}, - {100, 100, 0, false}, - } { - r, ok := int64Amount{value: test.value, scale: test.scale}.AsInt64() - if r != test.result { - t.Errorf("%v: unexpected result: %d", test, r) - } - if ok != test.ok { - t.Errorf("%v: unexpected ok: %t", test, ok) - } - } -} - -func TestInt64AmountAdd(t *testing.T) { - for _, test := range []struct { - a, b, c int64Amount - ok bool - }{ - {int64Amount{value: 100, scale: 1}, int64Amount{value: 10, scale: 2}, int64Amount{value: 200, scale: 1}, true}, - {int64Amount{value: 100, scale: 1}, int64Amount{value: 1, scale: 2}, int64Amount{value: 110, scale: 1}, true}, - {int64Amount{value: 100, scale: 1}, int64Amount{value: 1, scale: 100}, int64Amount{value: 1, scale: 100}, false}, - {int64Amount{value: -5, scale: 2}, int64Amount{value: 50, scale: 1}, int64Amount{value: 0, scale: 1}, true}, - {int64Amount{value: -5, scale: 2}, int64Amount{value: 5, scale: 2}, int64Amount{value: 0, scale: 2}, true}, - - {int64Amount{value: mostPositive, scale: -1}, int64Amount{value: 1, scale: -1}, int64Amount{value: 0, scale: -1}, false}, - {int64Amount{value: mostPositive, scale: -1}, int64Amount{value: 0, scale: -1}, int64Amount{value: mostPositive, scale: -1}, true}, - {int64Amount{value: mostPositive / 10, scale: 1}, int64Amount{value: 10, scale: 0}, int64Amount{value: mostPositive, scale: -1}, false}, - } { - c := test.a - ok := c.Add(test.b) - if ok != test.ok { - t.Errorf("%v: unexpected ok: %t", test, ok) - } - if ok { - if c != test.c { - t.Errorf("%v: unexpected result: %d", test, c) - } - } else { - if c != test.a { - t.Errorf("%v: overflow addition mutated source: %d", test, c) - } - } - - // addition is commutative - c = test.b - if ok := c.Add(test.a); ok != test.ok { - t.Errorf("%v: unexpected ok: %t", test, ok) - } - if ok { - if c != test.c { - t.Errorf("%v: unexpected result: %d", test, c) - } - } else { - if c != test.b { - t.Errorf("%v: overflow addition mutated source: %d", test, c) - } - } - } -} -func TestInt64AsCanonicalString(t *testing.T) { - for _, test := range []struct { - value int64 - scale Scale - result string - exponent int32 - }{ - {100, 0, "100", 0}, - {100, 1, "1", 3}, - {100, -1, "10", 0}, - {10800, -10, "1080", -9}, - } { - r, exp := int64Amount{value: test.value, scale: test.scale}.AsCanonicalBytes(nil) - if string(r) != test.result { - t.Errorf("%v: unexpected result: %s", test, r) - } - if exp != test.exponent { - t.Errorf("%v: unexpected exponent: %d", test, exp) - } - } -} - -func TestAmountSign(t *testing.T) { - table := []struct { - i int64Amount - expect int - }{ - {int64Amount{value: -50, scale: 1}, -1}, - {int64Amount{value: 0, scale: 1}, 0}, - {int64Amount{value: 300, scale: 1}, 1}, - {int64Amount{value: -50, scale: -8}, -1}, - {int64Amount{value: 50, scale: -8}, 1}, - {int64Amount{value: 0, scale: -8}, 0}, - {int64Amount{value: -50, scale: 0}, -1}, - {int64Amount{value: 50, scale: 0}, 1}, - {int64Amount{value: 0, scale: 0}, 0}, - } - for _, testCase := range table { - if result := testCase.i.Sign(); result != testCase.expect { - t.Errorf("i: %v, Expected: %v, Actual: %v", testCase.i, testCase.expect, result) - } - } -} - -func TestInt64AmountAsScaledInt64(t *testing.T) { - for _, test := range []struct { - name string - i int64Amount - scaled Scale - result int64 - ok bool - }{ - {"test when i.scale < scaled ", int64Amount{value: 100, scale: 0}, 5, 1, true}, - {"test when i.scale = scaled", int64Amount{value: 100, scale: 1}, 1, 100, true}, - {"test when i.scale > scaled and result doesn't overflow", int64Amount{value: 100, scale: 5}, 2, 100000, true}, - {"test when i.scale > scaled and result overflows", int64Amount{value: 876, scale: 30}, 4, 0, false}, - {"test when i.scale < 0 and fraction exists", int64Amount{value: 93, scale: -1}, 0, 10, true}, - {"test when i.scale < 0 and fraction doesn't exist", int64Amount{value: 100, scale: -1}, 0, 10, true}, - {"test when i.value < 0 and fraction exists", int64Amount{value: -1932, scale: 2}, 4, -20, true}, - {"test when i.value < 0 and fraction doesn't exists", int64Amount{value: -1900, scale: 2}, 4, -19, true}, - } { - t.Run(test.name, func(t *testing.T) { - r, ok := test.i.AsScaledInt64(test.scaled) - if r != test.result { - t.Errorf("%v: expected result: %d, got result: %d", test.name, test.result, r) - } - if ok != test.ok { - t.Errorf("%v: expected ok: %t, got ok: %t", test.name, test.ok, ok) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/generated.pb.go b/pseudo/k8s/apimachinery/pkg/api/resource/generated.pb.go deleted file mode 100644 index 6213b674b..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/generated.pb.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto - -package resource - -import ( - fmt "fmt" - - math "math" - - proto "github.com/gogo/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Quantity) Reset() { *m = Quantity{} } -func (*Quantity) ProtoMessage() {} -func (*Quantity) Descriptor() ([]byte, []int) { - return fileDescriptor_612bba87bd70906c, []int{0} -} -func (m *Quantity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Quantity.Unmarshal(m, b) -} -func (m *Quantity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Quantity.Marshal(b, m, deterministic) -} -func (m *Quantity) XXX_Merge(src proto.Message) { - xxx_messageInfo_Quantity.Merge(m, src) -} -func (m *Quantity) XXX_Size() int { - return xxx_messageInfo_Quantity.Size(m) -} -func (m *Quantity) XXX_DiscardUnknown() { - xxx_messageInfo_Quantity.DiscardUnknown(m) -} - -var xxx_messageInfo_Quantity proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Quantity)(nil), "k8s.io.apimachinery.pkg.api.resource.Quantity") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto", fileDescriptor_612bba87bd70906c) -} - -var fileDescriptor_612bba87bd70906c = []byte{ - // 237 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8e, 0xb1, 0x4e, 0xc3, 0x30, - 0x10, 0x40, 0xcf, 0x0b, 0x2a, 0x19, 0x2b, 0x84, 0x10, 0xc3, 0xa5, 0x42, 0x0c, 0x2c, 0xd8, 0x6b, - 0xc5, 0xc8, 0xce, 0x00, 0x23, 0x5b, 0x92, 0x1e, 0xae, 0x15, 0xd5, 0x8e, 0x2e, 0x36, 0x52, 0xb7, - 0x8e, 0x8c, 0x1d, 0x19, 0x9b, 0xbf, 0xe9, 0xd8, 0xb1, 0x03, 0x03, 0x31, 0x3f, 0x82, 0xea, 0x36, - 0x52, 0xb7, 0x7b, 0xef, 0xf4, 0x4e, 0x97, 0xbd, 0xd4, 0xd3, 0x56, 0x1a, 0xa7, 0xea, 0x50, 0x12, - 0x5b, 0xf2, 0xd4, 0xaa, 0x4f, 0xb2, 0x33, 0xc7, 0xea, 0xb4, 0x28, 0x1a, 0xb3, 0x28, 0xaa, 0xb9, - 0xb1, 0xc4, 0x4b, 0xd5, 0xd4, 0xfa, 0x20, 0x14, 0x53, 0xeb, 0x02, 0x57, 0xa4, 0x34, 0x59, 0xe2, - 0xc2, 0xd3, 0x4c, 0x36, 0xec, 0xbc, 0x1b, 0xdf, 0x1f, 0x2b, 0x79, 0x5e, 0xc9, 0xa6, 0xd6, 0x07, - 0x21, 0x87, 0xea, 0xf6, 0x51, 0x1b, 0x3f, 0x0f, 0xa5, 0xac, 0xdc, 0x42, 0x69, 0xa7, 0x9d, 0x4a, - 0x71, 0x19, 0x3e, 0x12, 0x25, 0x48, 0xd3, 0xf1, 0xe8, 0xdd, 0x34, 0x1b, 0xbd, 0x86, 0xc2, 0x7a, - 0xe3, 0x97, 0xe3, 0xeb, 0xec, 0xa2, 0xf5, 0x6c, 0xac, 0xbe, 0x11, 0x13, 0xf1, 0x70, 0xf9, 0x76, - 0xa2, 0xa7, 0xab, 0xef, 0x4d, 0x0e, 0x5f, 0x5d, 0x0e, 0xeb, 0x2e, 0x87, 0x4d, 0x97, 0xc3, 0xea, - 0x67, 0x02, 0xcf, 0x72, 0xdb, 0x23, 0xec, 0x7a, 0x84, 0x7d, 0x8f, 0xb0, 0x8a, 0x28, 0xb6, 0x11, - 0xc5, 0x2e, 0xa2, 0xd8, 0x47, 0x14, 0xbf, 0x11, 0xc5, 0xfa, 0x0f, 0xe1, 0x7d, 0x34, 0x3c, 0xf6, - 0x1f, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x08, 0x88, 0x49, 0x0e, 0x01, 0x00, 0x00, -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto b/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto deleted file mode 100644 index 18a6c7cd6..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/generated.proto +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.api.resource; - -// Package-wide variables from generator "generated". -option go_package = "resource"; - -// Quantity is a fixed-point representation of a number. -// It provides convenient marshaling/unmarshaling in JSON and YAML, -// in addition to String() and AsInt64() accessors. -// -// The serialization format is: -// -// ::= -// (Note that may be empty, from the "" case in .) -// ::= 0 | 1 | ... | 9 -// ::= | -// ::= | . | . | . -// ::= "+" | "-" -// ::= | -// ::= | | -// ::= Ki | Mi | Gi | Ti | Pi | Ei -// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) -// ::= m | "" | k | M | G | T | P | E -// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) -// ::= "e" | "E" -// -// No matter which of the three exponent forms is used, no quantity may represent -// a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal -// places. Numbers larger or more precise will be capped or rounded up. -// (E.g.: 0.1m will rounded up to 1m.) -// This may be extended in the future if we require larger or smaller quantities. -// -// When a Quantity is parsed from a string, it will remember the type of suffix -// it had, and will use the same type again when it is serialized. -// -// Before serializing, Quantity will be put in "canonical form". -// This means that Exponent/suffix will be adjusted up or down (with a -// corresponding increase or decrease in Mantissa) such that: -// a. No precision is lost -// b. No fractional digits will be emitted -// c. The exponent (or suffix) is as large as possible. -// The sign will be omitted unless the number is negative. -// -// Examples: -// 1.5 will be serialized as "1500m" -// 1.5Gi will be serialized as "1536Mi" -// -// Note that the quantity will NEVER be internally represented by a -// floating point number. That is the whole point of this exercise. -// -// Non-canonical values will still parse as long as they are well formed, -// but will be re-emitted in their canonical form. (So always use canonical -// form, or don't diff.) -// -// This format is intended to make it difficult to use these numbers without -// writing some sort of special handling code in the hopes that that will -// cause implementors to also use a fixed point implementation. -// -// +protobuf=true -// +protobuf.embed=string -// +protobuf.options.marshal=false -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:deepcopy-gen=true -// +k8s:openapi-gen=true -message Quantity { - optional string string = 1; -} - diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/math.go b/pseudo/k8s/apimachinery/pkg/api/resource/math.go deleted file mode 100644 index 7f63175d3..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/math.go +++ /dev/null @@ -1,314 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "math/big" - - inf "gopkg.in/inf.v0" -) - -const ( - // maxInt64Factors is the highest value that will be checked when removing factors of 10 from an int64. - // It is also the maximum decimal digits that can be represented with an int64. - maxInt64Factors = 18 -) - -var ( - // Commonly needed big.Int values-- treat as read only! - bigTen = big.NewInt(10) - bigZero = big.NewInt(0) - bigOne = big.NewInt(1) - bigThousand = big.NewInt(1000) - big1024 = big.NewInt(1024) - - // Commonly needed inf.Dec values-- treat as read only! - decZero = inf.NewDec(0, 0) - decOne = inf.NewDec(1, 0) - decMinusOne = inf.NewDec(-1, 0) - decThousand = inf.NewDec(1000, 0) - dec1024 = inf.NewDec(1024, 0) - decMinus1024 = inf.NewDec(-1024, 0) - - // Largest (in magnitude) number allowed. - maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64 - - // The maximum value we can represent milli-units for. - // Compare with the return value of Quantity.Value() to - // see if it's safe to use Quantity.MilliValue(). - MaxMilliValue = int64(((1 << 63) - 1) / 1000) -) - -const mostNegative = -(mostPositive + 1) -const mostPositive = 1<<63 - 1 - -// int64Add returns a+b, or false if that would overflow int64. -func int64Add(a, b int64) (int64, bool) { - c := a + b - switch { - case a > 0 && b > 0: - if c < 0 { - return 0, false - } - case a < 0 && b < 0: - if c > 0 { - return 0, false - } - if a == mostNegative && b == mostNegative { - return 0, false - } - } - return c, true -} - -// int64Multiply returns a*b, or false if that would overflow or underflow int64. -func int64Multiply(a, b int64) (int64, bool) { - if a == 0 || b == 0 || a == 1 || b == 1 { - return a * b, true - } - if a == mostNegative || b == mostNegative { - return 0, false - } - c := a * b - return c, c/b == a -} - -// int64MultiplyScale returns a*b, assuming b is greater than one, or false if that would overflow or underflow int64. -// Use when b is known to be greater than one. -func int64MultiplyScale(a int64, b int64) (int64, bool) { - if a == 0 || a == 1 { - return a * b, true - } - if a == mostNegative && b != 1 { - return 0, false - } - c := a * b - return c, c/b == a -} - -// int64MultiplyScale10 multiplies a by 10, or returns false if that would overflow. This method is faster than -// int64Multiply(a, 10) because the compiler can optimize constant factor multiplication. -func int64MultiplyScale10(a int64) (int64, bool) { - if a == 0 || a == 1 { - return a * 10, true - } - if a == mostNegative { - return 0, false - } - c := a * 10 - return c, c/10 == a -} - -// int64MultiplyScale100 multiplies a by 100, or returns false if that would overflow. This method is faster than -// int64Multiply(a, 100) because the compiler can optimize constant factor multiplication. -func int64MultiplyScale100(a int64) (int64, bool) { - if a == 0 || a == 1 { - return a * 100, true - } - if a == mostNegative { - return 0, false - } - c := a * 100 - return c, c/100 == a -} - -// int64MultiplyScale1000 multiplies a by 1000, or returns false if that would overflow. This method is faster than -// int64Multiply(a, 1000) because the compiler can optimize constant factor multiplication. -func int64MultiplyScale1000(a int64) (int64, bool) { - if a == 0 || a == 1 { - return a * 1000, true - } - if a == mostNegative { - return 0, false - } - c := a * 1000 - return c, c/1000 == a -} - -// positiveScaleInt64 multiplies base by 10^scale, returning false if the -// value overflows. Passing a negative scale is undefined. -func positiveScaleInt64(base int64, scale Scale) (int64, bool) { - switch scale { - case 0: - return base, true - case 1: - return int64MultiplyScale10(base) - case 2: - return int64MultiplyScale100(base) - case 3: - return int64MultiplyScale1000(base) - case 6: - return int64MultiplyScale(base, 1000000) - case 9: - return int64MultiplyScale(base, 1000000000) - default: - value := base - var ok bool - for i := Scale(0); i < scale; i++ { - if value, ok = int64MultiplyScale(value, 10); !ok { - return 0, false - } - } - return value, true - } -} - -// negativeScaleInt64 reduces base by the provided scale, rounding up, until the -// value is zero or the scale is reached. Passing a negative scale is undefined. -// The value returned, if not exact, is rounded away from zero. -func negativeScaleInt64(base int64, scale Scale) (result int64, exact bool) { - if scale == 0 { - return base, true - } - - value := base - var fraction bool - for i := Scale(0); i < scale; i++ { - if !fraction && value%10 != 0 { - fraction = true - } - value = value / 10 - if value == 0 { - if fraction { - if base > 0 { - return 1, false - } - return -1, false - } - return 0, true - } - } - if fraction { - if base > 0 { - value++ - } else { - value-- - } - } - return value, !fraction -} - -func pow10Int64(b int64) int64 { - switch b { - case 0: - return 1 - case 1: - return 10 - case 2: - return 100 - case 3: - return 1000 - case 4: - return 10000 - case 5: - return 100000 - case 6: - return 1000000 - case 7: - return 10000000 - case 8: - return 100000000 - case 9: - return 1000000000 - case 10: - return 10000000000 - case 11: - return 100000000000 - case 12: - return 1000000000000 - case 13: - return 10000000000000 - case 14: - return 100000000000000 - case 15: - return 1000000000000000 - case 16: - return 10000000000000000 - case 17: - return 100000000000000000 - case 18: - return 1000000000000000000 - default: - return 0 - } -} - -// negativeScaleInt64 returns the result of dividing base by scale * 10 and the remainder, or -// false if no such division is possible. Dividing by negative scales is undefined. -func divideByScaleInt64(base int64, scale Scale) (result, remainder int64, exact bool) { - if scale == 0 { - return base, 0, true - } - // the max scale representable in base 10 in an int64 is 18 decimal places - if scale >= 18 { - return 0, base, false - } - divisor := pow10Int64(int64(scale)) - return base / divisor, base % divisor, true -} - -// removeInt64Factors divides in a loop; the return values have the property that -// value == result * base ^ scale -func removeInt64Factors(value int64, base int64) (result int64, times int32) { - times = 0 - result = value - negative := result < 0 - if negative { - result = -result - } - switch base { - // allow the compiler to optimize the common cases - case 10: - for result >= 10 && result%10 == 0 { - times++ - result = result / 10 - } - // allow the compiler to optimize the common cases - case 1024: - for result >= 1024 && result%1024 == 0 { - times++ - result = result / 1024 - } - default: - for result >= base && result%base == 0 { - times++ - result = result / base - } - } - if negative { - result = -result - } - return result, times -} - -// removeBigIntFactors divides in a loop; the return values have the property that -// d == result * factor ^ times -// d may be modified in place. -// If d == 0, then the return values will be (0, 0) -func removeBigIntFactors(d, factor *big.Int) (result *big.Int, times int32) { - q := big.NewInt(0) - m := big.NewInt(0) - for d.Cmp(bigZero) != 0 { - q.DivMod(d, factor, m) - if m.Cmp(bigZero) != 0 { - break - } - times++ - d, q = q, d - } - return d, times -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/math_test.go b/pseudo/k8s/apimachinery/pkg/api/resource/math_test.go deleted file mode 100644 index 070a0c237..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/math_test.go +++ /dev/null @@ -1,211 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "testing" -) - -func TestDetectOverflowAdd(t *testing.T) { - for _, test := range []struct { - a, b int64 - c int64 - ok bool - }{ - {0, 0, 0, true}, - {-1, 1, 0, true}, - {0, 1, 1, true}, - {2, 2, 4, true}, - {2, -2, 0, true}, - {-2, -2, -4, true}, - - {mostNegative, -1, 0, false}, - {mostNegative, 1, mostNegative + 1, true}, - {mostPositive, -1, mostPositive - 1, true}, - {mostPositive, 1, 0, false}, - - {mostNegative, mostPositive, -1, true}, - {mostPositive, mostNegative, -1, true}, - {mostPositive, mostPositive, 0, false}, - {mostNegative, mostNegative, 0, false}, - - {-mostPositive, mostNegative, 0, false}, - {mostNegative, -mostPositive, 0, false}, - {-mostPositive, -mostPositive, 0, false}, - } { - c, ok := int64Add(test.a, test.b) - if c != test.c { - t.Errorf("%v: unexpected result: %d", test, c) - } - if ok != test.ok { - t.Errorf("%v: unexpected overflow: %t", test, ok) - } - // addition is commutative - d, ok2 := int64Add(test.b, test.a) - if c != d || ok != ok2 { - t.Errorf("%v: not commutative: %d %t", test, d, ok2) - } - } -} - -func TestDetectOverflowMultiply(t *testing.T) { - for _, test := range []struct { - a, b int64 - c int64 - ok bool - }{ - {0, 0, 0, true}, - {-1, 1, -1, true}, - {-1, -1, 1, true}, - {1, 1, 1, true}, - {0, 1, 0, true}, - {1, 0, 0, true}, - {2, 2, 4, true}, - {2, -2, -4, true}, - {-2, -2, 4, true}, - - {mostNegative, -1, 0, false}, - {mostNegative, 1, mostNegative, true}, - {mostPositive, -1, -mostPositive, true}, - {mostPositive, 1, mostPositive, true}, - - {mostNegative, mostPositive, 0, false}, - {mostPositive, mostNegative, 0, false}, - {mostPositive, mostPositive, 1, false}, - {mostNegative, mostNegative, 0, false}, - - {-mostPositive, mostNegative, 0, false}, - {mostNegative, -mostPositive, 0, false}, - {-mostPositive, -mostPositive, 1, false}, - } { - c, ok := int64Multiply(test.a, test.b) - if c != test.c { - t.Errorf("%v: unexpected result: %d", test, c) - } - if ok != test.ok { - t.Errorf("%v: unexpected overflow: %t", test, ok) - } - // multiplication is commutative - d, ok2 := int64Multiply(test.b, test.a) - if c != d || ok != ok2 { - t.Errorf("%v: not commutative: %d %t", test, d, ok2) - } - } -} - -func TestDetectOverflowScale(t *testing.T) { - for _, a := range []int64{0, -1, 1, 10, -10, mostPositive, mostNegative, -mostPositive} { - for _, b := range []int64{1, 2, 10, 100, 1000, mostPositive} { - expect, expectOk := int64Multiply(a, b) - - c, ok := int64MultiplyScale(a, b) - if c != expect { - t.Errorf("%d*%d: unexpected result: %d", a, b, c) - } - if ok != expectOk { - t.Errorf("%d*%d: unexpected overflow: %t", a, b, ok) - } - } - for _, test := range []struct { - base int64 - fn func(a int64) (int64, bool) - }{ - {10, int64MultiplyScale10}, - {100, int64MultiplyScale100}, - {1000, int64MultiplyScale1000}, - } { - expect, expectOk := int64Multiply(a, test.base) - c, ok := test.fn(a) - if c != expect { - t.Errorf("%d*%d: unexpected result: %d", a, test.base, c) - } - if ok != expectOk { - t.Errorf("%d*%d: unexpected overflow: %t", a, test.base, ok) - } - } - } -} - -func TestRemoveInt64Factors(t *testing.T) { - for _, test := range []struct { - value int64 - max int64 - result int64 - scale int32 - }{ - {100, 10, 1, 2}, - {100, 10, 1, 2}, - {100, 100, 1, 1}, - {1, 10, 1, 0}, - } { - r, s := removeInt64Factors(test.value, test.max) - if r != test.result { - t.Errorf("%v: unexpected result: %d", test, r) - } - if s != test.scale { - t.Errorf("%v: unexpected scale: %d", test, s) - } - } -} - -func TestNegativeScaleInt64(t *testing.T) { - for _, test := range []struct { - base int64 - scale Scale - result int64 - exact bool - }{ - {1234567, 0, 1234567, true}, - {1234567, 1, 123457, false}, - {1234567, 2, 12346, false}, - {1234567, 3, 1235, false}, - {1234567, 4, 124, false}, - - {-1234567, 0, -1234567, true}, - {-1234567, 1, -123457, false}, - {-1234567, 2, -12346, false}, - {-1234567, 3, -1235, false}, - {-1234567, 4, -124, false}, - - {1000, 0, 1000, true}, - {1000, 1, 100, true}, - {1000, 2, 10, true}, - {1000, 3, 1, true}, - {1000, 4, 1, false}, - - {-1000, 0, -1000, true}, - {-1000, 1, -100, true}, - {-1000, 2, -10, true}, - {-1000, 3, -1, true}, - {-1000, 4, -1, false}, - - {0, 0, 0, true}, - {0, 1, 0, true}, - {0, 2, 0, true}, - - // negative scale is undefined behavior - {1000, -1, 1000, true}, - } { - result, exact := negativeScaleInt64(test.base, test.scale) - if result != test.result { - t.Errorf("%v: unexpected result: %d", test, result) - } - if exact != test.exact { - t.Errorf("%v: unexpected exact: %t", test, exact) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/quantity.go b/pseudo/k8s/apimachinery/pkg/api/resource/quantity.go deleted file mode 100644 index 516d041da..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/quantity.go +++ /dev/null @@ -1,728 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "bytes" - "errors" - "fmt" - "math/big" - "strconv" - "strings" - - inf "gopkg.in/inf.v0" -) - -// Quantity is a fixed-point representation of a number. -// It provides convenient marshaling/unmarshaling in JSON and YAML, -// in addition to String() and AsInt64() accessors. -// -// The serialization format is: -// -// ::= -// (Note that may be empty, from the "" case in .) -// ::= 0 | 1 | ... | 9 -// ::= | -// ::= | . | . | . -// ::= "+" | "-" -// ::= | -// ::= | | -// ::= Ki | Mi | Gi | Ti | Pi | Ei -// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) -// ::= m | "" | k | M | G | T | P | E -// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) -// ::= "e" | "E" -// -// No matter which of the three exponent forms is used, no quantity may represent -// a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal -// places. Numbers larger or more precise will be capped or rounded up. -// (E.g.: 0.1m will rounded up to 1m.) -// This may be extended in the future if we require larger or smaller quantities. -// -// When a Quantity is parsed from a string, it will remember the type of suffix -// it had, and will use the same type again when it is serialized. -// -// Before serializing, Quantity will be put in "canonical form". -// This means that Exponent/suffix will be adjusted up or down (with a -// corresponding increase or decrease in Mantissa) such that: -// a. No precision is lost -// b. No fractional digits will be emitted -// c. The exponent (or suffix) is as large as possible. -// The sign will be omitted unless the number is negative. -// -// Examples: -// 1.5 will be serialized as "1500m" -// 1.5Gi will be serialized as "1536Mi" -// -// Note that the quantity will NEVER be internally represented by a -// floating point number. That is the whole point of this exercise. -// -// Non-canonical values will still parse as long as they are well formed, -// but will be re-emitted in their canonical form. (So always use canonical -// form, or don't diff.) -// -// This format is intended to make it difficult to use these numbers without -// writing some sort of special handling code in the hopes that that will -// cause implementors to also use a fixed point implementation. -// -// +protobuf=true -// +protobuf.embed=string -// +protobuf.options.marshal=false -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:deepcopy-gen=true -// +k8s:openapi-gen=true -type Quantity struct { - // i is the quantity in int64 scaled form, if d.Dec == nil - i int64Amount - // d is the quantity in inf.Dec form if d.Dec != nil - d infDecAmount - // s is the generated value of this quantity to avoid recalculation - s string - - // Change Format at will. See the comment for Canonicalize for - // more details. - Format -} - -// CanonicalValue allows a quantity amount to be converted to a string. -type CanonicalValue interface { - // AsCanonicalBytes returns a byte array representing the string representation - // of the value mantissa and an int32 representing its exponent in base-10. Callers may - // pass a byte slice to the method to avoid allocations. - AsCanonicalBytes(out []byte) ([]byte, int32) - // AsCanonicalBase1024Bytes returns a byte array representing the string representation - // of the value mantissa and an int32 representing its exponent in base-1024. Callers - // may pass a byte slice to the method to avoid allocations. - AsCanonicalBase1024Bytes(out []byte) ([]byte, int32) -} - -// Format lists the three possible formattings of a quantity. -type Format string - -const ( - DecimalExponent = Format("DecimalExponent") // e.g., 12e6 - BinarySI = Format("BinarySI") // e.g., 12Mi (12 * 2^20) - DecimalSI = Format("DecimalSI") // e.g., 12M (12 * 10^6) -) - -// MustParse turns the given string into a quantity or panics; for tests -// or others cases where you know the string is valid. -func MustParse(str string) Quantity { - q, err := ParseQuantity(str) - if err != nil { - panic(fmt.Errorf("cannot parse '%v': %v", str, err)) - } - return q -} - -const ( - // splitREString is used to separate a number from its suffix; as such, - // this is overly permissive, but that's OK-- it will be checked later. - splitREString = "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" -) - -var ( - // Errors that could happen while parsing a string. - ErrFormatWrong = errors.New("quantities must match the regular expression '" + splitREString + "'") - ErrNumeric = errors.New("unable to parse numeric part of quantity") - ErrSuffix = errors.New("unable to parse quantity's suffix") -) - -// parseQuantityString is a fast scanner for quantity values. -func parseQuantityString(str string) (positive bool, value, num, denom, suffix string, err error) { - positive = true - pos := 0 - end := len(str) - - // handle leading sign - if pos < end { - switch str[0] { - case '-': - positive = false - pos++ - case '+': - pos++ - } - } - - // strip leading zeros -Zeroes: - for i := pos; ; i++ { - if i >= end { - num = "0" - value = num - return - } - switch str[i] { - case '0': - pos++ - default: - break Zeroes - } - } - - // extract the numerator -Num: - for i := pos; ; i++ { - if i >= end { - num = str[pos:end] - value = str[0:end] - return - } - switch str[i] { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - default: - num = str[pos:i] - pos = i - break Num - } - } - - // if we stripped all numerator positions, always return 0 - if len(num) == 0 { - num = "0" - } - - // handle a denominator - if pos < end && str[pos] == '.' { - pos++ - Denom: - for i := pos; ; i++ { - if i >= end { - denom = str[pos:end] - value = str[0:end] - return - } - switch str[i] { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - default: - denom = str[pos:i] - pos = i - break Denom - } - } - // TODO: we currently allow 1.G, but we may not want to in the future. - // if len(denom) == 0 { - // err = ErrFormatWrong - // return - // } - } - value = str[0:pos] - - // grab the elements of the suffix - suffixStart := pos - for i := pos; ; i++ { - if i >= end { - suffix = str[suffixStart:end] - return - } - if !strings.ContainsAny(str[i:i+1], "eEinumkKMGTP") { - pos = i - break - } - } - if pos < end { - switch str[pos] { - case '-', '+': - pos++ - } - } -Suffix: - for i := pos; ; i++ { - if i >= end { - suffix = str[suffixStart:end] - return - } - switch str[i] { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - default: - break Suffix - } - } - // we encountered a non decimal in the Suffix loop, but the last character - // was not a valid exponent - err = ErrFormatWrong - return -} - -// ParseQuantity turns str into a Quantity, or returns an error. -func ParseQuantity(str string) (Quantity, error) { - if len(str) == 0 { - return Quantity{}, ErrFormatWrong - } - if str == "0" { - return Quantity{Format: DecimalSI, s: str}, nil - } - - positive, value, num, denom, suf, err := parseQuantityString(str) - if err != nil { - return Quantity{}, err - } - - base, exponent, format, ok := quantitySuffixer.interpret(suffix(suf)) - if !ok { - return Quantity{}, ErrSuffix - } - - precision := int32(0) - scale := int32(0) - mantissa := int64(1) - switch format { - case DecimalExponent, DecimalSI: - scale = exponent - precision = maxInt64Factors - int32(len(num)+len(denom)) - case BinarySI: - scale = 0 - switch { - case exponent >= 0 && len(denom) == 0: - // only handle positive binary numbers with the fast path - mantissa = int64(int64(mantissa) << uint64(exponent)) - // 1Mi (2^20) has ~6 digits of decimal precision, so exponent*3/10 -1 is roughly the precision - precision = 15 - int32(len(num)) - int32(float32(exponent)*3/10) - 1 - default: - precision = -1 - } - } - - if precision >= 0 { - // if we have a denominator, shift the entire value to the left by the number of places in the - // denominator - scale -= int32(len(denom)) - if scale >= int32(Nano) { - shifted := num + denom - - var value int64 - value, err := strconv.ParseInt(shifted, 10, 64) - if err != nil { - return Quantity{}, ErrNumeric - } - if result, ok := int64Multiply(value, int64(mantissa)); ok { - if !positive { - result = -result - } - // if the number is in canonical form, reuse the string - switch format { - case BinarySI: - if exponent%10 == 0 && (value&0x07 != 0) { - return Quantity{i: int64Amount{value: result, scale: Scale(scale)}, Format: format, s: str}, nil - } - default: - if scale%3 == 0 && !strings.HasSuffix(shifted, "000") && shifted[0] != '0' { - return Quantity{i: int64Amount{value: result, scale: Scale(scale)}, Format: format, s: str}, nil - } - } - return Quantity{i: int64Amount{value: result, scale: Scale(scale)}, Format: format}, nil - } - } - } - - amount := new(inf.Dec) - if _, ok := amount.SetString(value); !ok { - return Quantity{}, ErrNumeric - } - - // So that no one but us has to think about suffixes, remove it. - if base == 10 { - amount.SetScale(amount.Scale() + Scale(exponent).infScale()) - } else if base == 2 { - // numericSuffix = 2 ** exponent - numericSuffix := big.NewInt(1).Lsh(bigOne, uint(exponent)) - ub := amount.UnscaledBig() - amount.SetUnscaledBig(ub.Mul(ub, numericSuffix)) - } - - // Cap at min/max bounds. - sign := amount.Sign() - if sign == -1 { - amount.Neg(amount) - } - - // This rounds non-zero values up to the minimum representable value, under the theory that - // if you want some resources, you should get some resources, even if you asked for way too small - // of an amount. Arguably, this should be inf.RoundHalfUp (normal rounding), but that would have - // the side effect of rounding values < .5n to zero. - if v, ok := amount.Unscaled(); v != int64(0) || !ok { - amount.Round(amount, Nano.infScale(), inf.RoundUp) - } - - // The max is just a simple cap. - // TODO: this prevents accumulating quantities greater than int64, for instance quota across a cluster - if format == BinarySI && amount.Cmp(maxAllowed.Dec) > 0 { - amount.Set(maxAllowed.Dec) - } - - if format == BinarySI && amount.Cmp(decOne) < 0 && amount.Cmp(decZero) > 0 { - // This avoids rounding and hopefully confusion, too. - format = DecimalSI - } - if sign == -1 { - amount.Neg(amount) - } - - return Quantity{d: infDecAmount{amount}, Format: format}, nil -} - -// DeepCopy returns a deep-copy of the Quantity value. Note that the method -// receiver is a value, so we can mutate it in-place and return it. -func (q Quantity) DeepCopy() Quantity { - if q.d.Dec != nil { - tmp := &inf.Dec{} - q.d.Dec = tmp.Set(q.d.Dec) - } - return q -} - -// OpenAPISchemaType is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -// -// See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators -func (_ Quantity) OpenAPISchemaType() []string { return []string{"string"} } - -// OpenAPISchemaFormat is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -func (_ Quantity) OpenAPISchemaFormat() string { return "" } - -// CanonicalizeBytes returns the canonical form of q and its suffix (see comment on Quantity). -// -// Note about BinarySI: -// * If q.Format is set to BinarySI and q.Amount represents a non-zero value between -// -1 and +1, it will be emitted as if q.Format were DecimalSI. -// * Otherwise, if q.Format is set to BinarySI, fractional parts of q.Amount will be -// rounded up. (1.1i becomes 2i.) -func (q *Quantity) CanonicalizeBytes(out []byte) (result, suffix []byte) { - if q.IsZero() { - return zeroBytes, nil - } - - var rounded CanonicalValue - format := q.Format - switch format { - case DecimalExponent, DecimalSI: - case BinarySI: - if q.CmpInt64(-1024) > 0 && q.CmpInt64(1024) < 0 { - // This avoids rounding and hopefully confusion, too. - format = DecimalSI - } else { - var exact bool - if rounded, exact = q.AsScale(0); !exact { - // Don't lose precision-- show as DecimalSI - format = DecimalSI - } - } - default: - format = DecimalExponent - } - - // TODO: If BinarySI formatting is requested but would cause rounding, upgrade to - // one of the other formats. - switch format { - case DecimalExponent, DecimalSI: - number, exponent := q.AsCanonicalBytes(out) - suffix, _ := quantitySuffixer.constructBytes(10, exponent, format) - return number, suffix - default: - // format must be BinarySI - number, exponent := rounded.AsCanonicalBase1024Bytes(out) - suffix, _ := quantitySuffixer.constructBytes(2, exponent*10, format) - return number, suffix - } -} - -// AsInt64 returns a representation of the current value as an int64 if a fast conversion -// is possible. If false is returned, callers must use the inf.Dec form of this quantity. -func (q *Quantity) AsInt64() (int64, bool) { - if q.d.Dec != nil { - return 0, false - } - return q.i.AsInt64() -} - -// ToDec promotes the quantity in place to use an inf.Dec representation and returns itself. -func (q *Quantity) ToDec() *Quantity { - if q.d.Dec == nil { - q.d.Dec = q.i.AsDec() - q.i = int64Amount{} - } - return q -} - -// AsDec returns the quantity as represented by a scaled inf.Dec. -func (q *Quantity) AsDec() *inf.Dec { - if q.d.Dec != nil { - return q.d.Dec - } - q.d.Dec = q.i.AsDec() - q.i = int64Amount{} - return q.d.Dec -} - -// AsCanonicalBytes returns the canonical byte representation of this quantity as a mantissa -// and base 10 exponent. The out byte slice may be passed to the method to avoid an extra -// allocation. -func (q *Quantity) AsCanonicalBytes(out []byte) (result []byte, exponent int32) { - if q.d.Dec != nil { - return q.d.AsCanonicalBytes(out) - } - return q.i.AsCanonicalBytes(out) -} - -// IsZero returns true if the quantity is equal to zero. -func (q *Quantity) IsZero() bool { - if q.d.Dec != nil { - return q.d.Dec.Sign() == 0 - } - return q.i.value == 0 -} - -// Sign returns 0 if the quantity is zero, -1 if the quantity is less than zero, or 1 if the -// quantity is greater than zero. -func (q *Quantity) Sign() int { - if q.d.Dec != nil { - return q.d.Dec.Sign() - } - return q.i.Sign() -} - -// AsScale returns the current value, rounded up to the provided scale, and returns -// false if the scale resulted in a loss of precision. -func (q *Quantity) AsScale(scale Scale) (CanonicalValue, bool) { - if q.d.Dec != nil { - return q.d.AsScale(scale) - } - return q.i.AsScale(scale) -} - -// RoundUp updates the quantity to the provided scale, ensuring that the value is at -// least 1. False is returned if the rounding operation resulted in a loss of precision. -// Negative numbers are rounded away from zero (-9 scale 1 rounds to -10). -func (q *Quantity) RoundUp(scale Scale) bool { - if q.d.Dec != nil { - q.s = "" - d, exact := q.d.AsScale(scale) - q.d = d - return exact - } - // avoid clearing the string value if we have already calculated it - if q.i.scale >= scale { - return true - } - q.s = "" - i, exact := q.i.AsScale(scale) - q.i = i - return exact -} - -// Add adds the provide y quantity to the current value. If the current value is zero, -// the format of the quantity will be updated to the format of y. -func (q *Quantity) Add(y Quantity) { - q.s = "" - if q.d.Dec == nil && y.d.Dec == nil { - if q.i.value == 0 { - q.Format = y.Format - } - if q.i.Add(y.i) { - return - } - } else if q.IsZero() { - q.Format = y.Format - } - q.ToDec().d.Dec.Add(q.d.Dec, y.AsDec()) -} - -// Sub subtracts the provided quantity from the current value in place. If the current -// value is zero, the format of the quantity will be updated to the format of y. -func (q *Quantity) Sub(y Quantity) { - q.s = "" - if q.IsZero() { - q.Format = y.Format - } - if q.d.Dec == nil && y.d.Dec == nil && q.i.Sub(y.i) { - return - } - q.ToDec().d.Dec.Sub(q.d.Dec, y.AsDec()) -} - -// Cmp returns 0 if the quantity is equal to y, -1 if the quantity is less than y, or 1 if the -// quantity is greater than y. -func (q *Quantity) Cmp(y Quantity) int { - if q.d.Dec == nil && y.d.Dec == nil { - return q.i.Cmp(y.i) - } - return q.AsDec().Cmp(y.AsDec()) -} - -// CmpInt64 returns 0 if the quantity is equal to y, -1 if the quantity is less than y, or 1 if the -// quantity is greater than y. -func (q *Quantity) CmpInt64(y int64) int { - if q.d.Dec != nil { - return q.d.Dec.Cmp(inf.NewDec(y, inf.Scale(0))) - } - return q.i.Cmp(int64Amount{value: y}) -} - -// Neg sets quantity to be the negative value of itself. -func (q *Quantity) Neg() { - q.s = "" - if q.d.Dec == nil { - q.i.value = -q.i.value - return - } - q.d.Dec.Neg(q.d.Dec) -} - -// Equal checks equality of two Quantities. This is useful for testing with -// cmp.Equal. -func (q Quantity) Equal(v Quantity) bool { - return q.Cmp(v) == 0 -} - -// int64QuantityExpectedBytes is the expected width in bytes of the canonical string representation -// of most Quantity values. -const int64QuantityExpectedBytes = 18 - -// String formats the Quantity as a string, caching the result if not calculated. -// String is an expensive operation and caching this result significantly reduces the cost of -// normal parse / marshal operations on Quantity. -func (q *Quantity) String() string { - if len(q.s) == 0 { - result := make([]byte, 0, int64QuantityExpectedBytes) - number, suffix := q.CanonicalizeBytes(result) - number = append(number, suffix...) - q.s = string(number) - } - return q.s -} - -// MarshalJSON implements the json.Marshaller interface. -func (q Quantity) MarshalJSON() ([]byte, error) { - if len(q.s) > 0 { - out := make([]byte, len(q.s)+2) - out[0], out[len(out)-1] = '"', '"' - copy(out[1:], q.s) - return out, nil - } - result := make([]byte, int64QuantityExpectedBytes, int64QuantityExpectedBytes) - result[0] = '"' - number, suffix := q.CanonicalizeBytes(result[1:1]) - // if the same slice was returned to us that we passed in, avoid another allocation by copying number into - // the source slice and returning that - if len(number) > 0 && &number[0] == &result[1] && (len(number)+len(suffix)+2) <= int64QuantityExpectedBytes { - number = append(number, suffix...) - number = append(number, '"') - return result[:1+len(number)], nil - } - // if CanonicalizeBytes needed more space than our slice provided, we may need to allocate again so use - // append - result = result[:1] - result = append(result, number...) - result = append(result, suffix...) - result = append(result, '"') - return result, nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface. -// TODO: Remove support for leading/trailing whitespace -func (q *Quantity) UnmarshalJSON(value []byte) error { - l := len(value) - if l == 4 && bytes.Equal(value, []byte("null")) { - q.d.Dec = nil - q.i = int64Amount{} - return nil - } - if l >= 2 && value[0] == '"' && value[l-1] == '"' { - value = value[1 : l-1] - } - - parsed, err := ParseQuantity(strings.TrimSpace(string(value))) - if err != nil { - return err - } - - // This copy is safe because parsed will not be referred to again. - *q = parsed - return nil -} - -// NewQuantity returns a new Quantity representing the given -// value in the given format. -func NewQuantity(value int64, format Format) *Quantity { - return &Quantity{ - i: int64Amount{value: value}, - Format: format, - } -} - -// NewMilliQuantity returns a new Quantity representing the given -// value * 1/1000 in the given format. Note that BinarySI formatting -// will round fractional values, and will be changed to DecimalSI for -// values x where (-1 < x < 1) && (x != 0). -func NewMilliQuantity(value int64, format Format) *Quantity { - return &Quantity{ - i: int64Amount{value: value, scale: -3}, - Format: format, - } -} - -// NewScaledQuantity returns a new Quantity representing the given -// value * 10^scale in DecimalSI format. -func NewScaledQuantity(value int64, scale Scale) *Quantity { - return &Quantity{ - i: int64Amount{value: value, scale: scale}, - Format: DecimalSI, - } -} - -// Value returns the unscaled value of q rounded up to the nearest integer away from 0. -func (q *Quantity) Value() int64 { - return q.ScaledValue(0) -} - -// MilliValue returns the value of ceil(q * 1000); this could overflow an int64; -// if that's a concern, call Value() first to verify the number is small enough. -func (q *Quantity) MilliValue() int64 { - return q.ScaledValue(Milli) -} - -// ScaledValue returns the value of ceil(q / 10^scale). -// For example, NewQuantity(1, DecimalSI).ScaledValue(Milli) returns 1000. -// This could overflow an int64. -// To detect overflow, call Value() first and verify the expected magnitude. -func (q *Quantity) ScaledValue(scale Scale) int64 { - if q.d.Dec == nil { - i, _ := q.i.AsScaledInt64(scale) - return i - } - dec := q.d.Dec - return scaledValue(dec.UnscaledBig(), int(dec.Scale()), int(scale.infScale())) -} - -// Set sets q's value to be value. -func (q *Quantity) Set(value int64) { - q.SetScaled(value, 0) -} - -// SetMilli sets q's value to be value * 1/1000. -func (q *Quantity) SetMilli(value int64) { - q.SetScaled(value, Milli) -} - -// SetScaled sets q's value to be value * 10^scale -func (q *Quantity) SetScaled(value int64, scale Scale) { - q.s = "" - q.d.Dec = nil - q.i = int64Amount{value: value, scale: scale} -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_example_test.go b/pseudo/k8s/apimachinery/pkg/api/resource/quantity_example_test.go deleted file mode 100644 index 130e1c98e..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_example_test.go +++ /dev/null @@ -1,59 +0,0 @@ -/* -Copyright 2014 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 resource_test - -import ( - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" -) - -func ExampleFormat() { - memorySize := resource.NewQuantity(5*1024*1024*1024, resource.BinarySI) - fmt.Printf("memorySize = %v\n", memorySize) - - diskSize := resource.NewQuantity(5*1000*1000*1000, resource.DecimalSI) - fmt.Printf("diskSize = %v\n", diskSize) - - cores := resource.NewMilliQuantity(5300, resource.DecimalSI) - fmt.Printf("cores = %v\n", cores) - - // Output: - // memorySize = 5Gi - // diskSize = 5G - // cores = 5300m -} - -func ExampleMustParse() { - memorySize := resource.MustParse("5Gi") - fmt.Printf("memorySize = %v (%v)\n", memorySize.Value(), memorySize.Format) - - diskSize := resource.MustParse("5G") - fmt.Printf("diskSize = %v (%v)\n", diskSize.Value(), diskSize.Format) - - cores := resource.MustParse("5300m") - fmt.Printf("milliCores = %v (%v)\n", cores.MilliValue(), cores.Format) - - cores2 := resource.MustParse("5.4") - fmt.Printf("milliCores = %v (%v)\n", cores2.MilliValue(), cores2.Format) - - // Output: - // memorySize = 5368709120 (BinarySI) - // diskSize = 5000000000 (DecimalSI) - // milliCores = 5300 (DecimalSI) - // milliCores = 5400 (DecimalSI) -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto.go b/pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto.go deleted file mode 100644 index f89ca163c..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto.go +++ /dev/null @@ -1,288 +0,0 @@ -/* -Copyright 2015 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 resource - -import ( - "fmt" - "io" - "math/bits" - - "github.com/gogo/protobuf/proto" -) - -var _ proto.Sizer = &Quantity{} - -func (m *Quantity) Marshal() (data []byte, err error) { - size := m.Size() - data = make([]byte, size) - n, err := m.MarshalToSizedBuffer(data[:size]) - if err != nil { - return nil, err - } - return data[:n], nil -} - -// MarshalTo is a customized version of the generated Protobuf unmarshaler for a struct -// with a single string field. -func (m *Quantity) MarshalTo(data []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(data[:size]) -} - -// MarshalToSizedBuffer is a customized version of the generated -// Protobuf unmarshaler for a struct with a single string field. -func (m *Quantity) MarshalToSizedBuffer(data []byte) (int, error) { - i := len(data) - _ = i - var l int - _ = l - - // BEGIN CUSTOM MARSHAL - out := m.String() - i -= len(out) - copy(data[i:], out) - i = encodeVarintGenerated(data, i, uint64(len(out))) - // END CUSTOM MARSHAL - i-- - data[i] = 0xa - - return len(data) - i, nil -} - -func encodeVarintGenerated(data []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - data[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - data[offset] = uint8(v) - return base -} - -func (m *Quantity) Size() (n int) { - var l int - _ = l - - // BEGIN CUSTOM SIZE - l = len(m.String()) - // END CUSTOM SIZE - - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (bits.Len64(x|1) + 6) / 7 -} - -// Unmarshal is a customized version of the generated Protobuf unmarshaler for a struct -// with a single string field. -func (m *Quantity) Unmarshal(data []byte) error { - l := len(data) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Quantity: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Quantity: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field String_", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(data[iNdEx:postIndex]) - - // BEGIN CUSTOM DECODE - p, err := ParseQuantity(s) - if err != nil { - return err - } - *m = p - // END CUSTOM DECODE - - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(data[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} - -func skipGenerated(data []byte) (n int, err error) { - l := len(data) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if data[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := data[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(data[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto_test.go b/pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto_test.go deleted file mode 100644 index 574a3cf5d..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_proto_test.go +++ /dev/null @@ -1,103 +0,0 @@ -/* -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 resource - -import ( - "testing" - - inf "gopkg.in/inf.v0" -) - -func TestQuantityProtoMarshal(t *testing.T) { - // Test when d is nil - table := []struct { - quantity string - expect Quantity - }{ - {"0", Quantity{i: int64Amount{value: 0, scale: 0}, s: "0", Format: DecimalSI}}, - {"100m", Quantity{i: int64Amount{value: 100, scale: -3}, s: "100m", Format: DecimalSI}}, - {"50m", Quantity{i: int64Amount{value: 50, scale: -3}, s: "50m", Format: DecimalSI}}, - {"10000T", Quantity{i: int64Amount{value: 10000, scale: 12}, s: "10000T", Format: DecimalSI}}, - } - for _, testCase := range table { - q := MustParse(testCase.quantity) - // Won't currently get an error as MarshalTo can't return one - result, _ := q.Marshal() - q.MarshalTo(result) - if q.Cmp(testCase.expect) != 0 { - t.Errorf("Expected: %v, Actual: %v", testCase.expect, q) - } - } - // Test when i is {0,0} - table2 := []struct { - dec *inf.Dec - expect Quantity - }{ - {dec(0, 0).Dec, Quantity{i: int64Amount{value: 0, scale: 0}, d: infDecAmount{dec(0, 0).Dec}, s: "0", Format: DecimalSI}}, - {dec(10, 0).Dec, Quantity{i: int64Amount{value: 0, scale: 0}, d: infDecAmount{dec(10, 0).Dec}, s: "10", Format: DecimalSI}}, - {dec(-10, 0).Dec, Quantity{i: int64Amount{value: 0, scale: 0}, d: infDecAmount{dec(-10, 0).Dec}, s: "-10", Format: DecimalSI}}, - } - for _, testCase := range table2 { - q := Quantity{d: infDecAmount{testCase.dec}, Format: DecimalSI} - // Won't currently get an error as MarshalTo can't return one - result, _ := q.Marshal() - q.Unmarshal(result) - if q.Cmp(testCase.expect) != 0 { - t.Errorf("Expected: %v, Actual: %v", testCase.expect, q) - } - } -} - -func TestQuantityProtoUnmarshal(t *testing.T) { - // Test when d is nil - table := []struct { - input Quantity - expect string - }{ - {Quantity{i: int64Amount{value: 0, scale: 0}, s: "0", Format: DecimalSI}, "0"}, - {Quantity{i: int64Amount{value: 100, scale: -3}, s: "100m", Format: DecimalSI}, "100m"}, - {Quantity{i: int64Amount{value: 50, scale: -3}, s: "50m", Format: DecimalSI}, "50m"}, - {Quantity{i: int64Amount{value: 10000, scale: 12}, s: "10000T", Format: DecimalSI}, "10000T"}, - } - for _, testCase := range table { - var inputQ Quantity - expectQ := MustParse(testCase.expect) - inputByteArray, _ := testCase.input.Marshal() - inputQ.Unmarshal(inputByteArray) - if inputQ.Cmp(expectQ) != 0 { - t.Errorf("Expected: %v, Actual: %v", inputQ, expectQ) - } - } - // Test when i is {0,0} - table2 := []struct { - input Quantity - expect *inf.Dec - }{ - {Quantity{i: int64Amount{value: 0, scale: 0}, d: infDecAmount{dec(0, 0).Dec}, s: "0", Format: DecimalSI}, dec(0, 0).Dec}, - {Quantity{i: int64Amount{value: 0, scale: 0}, d: infDecAmount{dec(10, 0).Dec}, s: "10", Format: DecimalSI}, dec(10, 0).Dec}, - {Quantity{i: int64Amount{value: 0, scale: 0}, d: infDecAmount{dec(-10, 0).Dec}, s: "-10", Format: DecimalSI}, dec(-10, 0).Dec}, - } - for _, testCase := range table2 { - var inputQ Quantity - expectQ := Quantity{d: infDecAmount{testCase.expect}, Format: DecimalSI} - inputByteArray, _ := testCase.input.Marshal() - inputQ.Unmarshal(inputByteArray) - if inputQ.Cmp(expectQ) != 0 { - t.Errorf("Expected: %v, Actual: %v", inputQ, expectQ) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_test.go b/pseudo/k8s/apimachinery/pkg/api/resource/quantity_test.go deleted file mode 100644 index e6515f2be..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/quantity_test.go +++ /dev/null @@ -1,1353 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "encoding/json" - "math/rand" - "strings" - "testing" - "unicode" - - fuzz "github.com/google/gofuzz" - - inf "gopkg.in/inf.v0" -) - -func amount(i int64, exponent int) infDecAmount { - // See the below test-- scale is the negative of an exponent. - return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))} -} - -func dec(i int64, exponent int) infDecAmount { - // See the below test-- scale is the negative of an exponent. - return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))} -} - -func decQuantity(i int64, exponent int, format Format) Quantity { - return Quantity{d: dec(i, exponent), Format: format} -} - -func intQuantity(i int64, exponent Scale, format Format) Quantity { - return Quantity{i: int64Amount{value: i, scale: exponent}, Format: format} -} - -func TestDec(t *testing.T) { - table := []struct { - got infDecAmount - expect string - }{ - {dec(1, 0), "1"}, - {dec(1, 1), "10"}, - {dec(5, 2), "500"}, - {dec(8, 3), "8000"}, - {dec(2, 0), "2"}, - {dec(1, -1), "0.1"}, - {dec(3, -2), "0.03"}, - {dec(4, -3), "0.004"}, - } - - for _, item := range table { - if e, a := item.expect, item.got.Dec.String(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - } -} - -// TestQuantityParseZero ensures that when a 0 quantity is passed, its string value is 0 -func TestQuantityParseZero(t *testing.T) { - zero := MustParse("0") - if expected, actual := "0", zero.String(); expected != actual { - t.Errorf("Expected %v, actual %v", expected, actual) - } -} - -// TestQuantityParseNonNumericPanic ensures that when a non-numeric string is parsed -// it panics -func TestQuantityParseNonNumericPanic(t *testing.T) { - defer func() { - if r := recover(); r == nil { - t.Errorf("MustParse did not panic") - } - }() - _ = MustParse("Non-Numeric") -} - -// TestQuantityAddZeroPreservesSuffix verifies that a suffix is preserved -// independent of the order of operations when adding a zero and non-zero val -func TestQuantityAddZeroPreservesSuffix(t *testing.T) { - testValues := []string{"100m", "1Gi"} - zero := MustParse("0") - for _, testValue := range testValues { - value := MustParse(testValue) - v1 := value.DeepCopy() - // ensure non-zero + zero = non-zero (suffix preserved) - v1.Add(zero) - // ensure zero + non-zero = non-zero (suffix preserved) - v2 := zero.DeepCopy() - v2.Add(value) - - if v1.String() != testValue { - t.Errorf("Expected %v, actual %v", testValue, v1.String()) - continue - } - if v2.String() != testValue { - t.Errorf("Expected %v, actual %v", testValue, v2.String()) - } - } -} - -// TestQuantitySubZeroPreservesSuffix verifies that a suffix is preserved -// independent of the order of operations when subtracting a zero and non-zero val -func TestQuantitySubZeroPreservesSuffix(t *testing.T) { - testValues := []string{"100m", "1Gi"} - zero := MustParse("0") - for _, testValue := range testValues { - value := MustParse(testValue) - v1 := value.DeepCopy() - // ensure non-zero - zero = non-zero (suffix preserved) - v1.Sub(zero) - // ensure we preserved the input value - if v1.String() != testValue { - t.Errorf("Expected %v, actual %v", testValue, v1.String()) - } - - // ensure zero - non-zero = -non-zero (suffix preserved) - v2 := zero.DeepCopy() - v2.Sub(value) - negVal := value.DeepCopy() - negVal.Neg() - if v2.String() != negVal.String() { - t.Errorf("Expected %v, actual %v", negVal.String(), v2.String()) - } - } -} - -// TestQuantityCanocicalizeZero verifies that you get 0 as canonical value if internal value is 0, and not 0 -func TestQuantityCanocicalizeZero(t *testing.T) { - val := MustParse("1000m") - val.i.Sub(int64Amount{value: 1}) - zero := Quantity{i: val.i, Format: DecimalSI} - if expected, actual := "0", zero.String(); expected != actual { - t.Errorf("Expected %v, actual %v", expected, actual) - } -} - -func TestQuantityCmp(t *testing.T) { - // Test when d is nil - table := []struct { - x string - y string - expect int - }{ - {"0", "0", 0}, - {"100m", "50m", 1}, - {"50m", "100m", -1}, - {"10000T", "100Gi", 1}, - } - for _, testCase := range table { - q1 := MustParse(testCase.x) - q2 := MustParse(testCase.y) - if result := q1.Cmp(q2); result != testCase.expect { - t.Errorf("X: %v, Y: %v, Expected: %v, Actual: %v", testCase.x, testCase.y, testCase.expect, result) - } - } - // Test when i is {0,0} - table2 := []struct { - x *inf.Dec - y *inf.Dec - expect int - }{ - {dec(0, 0).Dec, dec(0, 0).Dec, 0}, - {nil, dec(0, 0).Dec, 0}, - {dec(0, 0).Dec, nil, 0}, - {nil, nil, 0}, - {nil, dec(10, 0).Dec, -1}, - {nil, dec(-10, 0).Dec, 1}, - {dec(10, 0).Dec, nil, 1}, - {dec(-10, 0).Dec, nil, -1}, - } - for _, testCase := range table2 { - q1 := Quantity{d: infDecAmount{testCase.x}, Format: DecimalSI} - q2 := Quantity{d: infDecAmount{testCase.y}, Format: DecimalSI} - if result := q1.Cmp(q2); result != testCase.expect { - t.Errorf("X: %v, Y: %v, Expected: %v, Actual: %v", testCase.x, testCase.y, testCase.expect, result) - } - } -} - -func TestParseQuantityString(t *testing.T) { - table := []struct { - input string - positive bool - value string - num, denom, suffix string - }{ - {"0.025Ti", true, "0.025", "0", "025", "Ti"}, - {"1.025Ti", true, "1.025", "1", "025", "Ti"}, - {"-1.025Ti", false, "-1.025", "1", "025", "Ti"}, - {".", true, ".", "0", "", ""}, - {"-.", false, "-.", "0", "", ""}, - {"1E-3", true, "1", "1", "", "E-3"}, - } - for _, test := range table { - positive, value, num, denom, suffix, err := parseQuantityString(test.input) - if err != nil { - t.Errorf("%s: error: %v", test.input, err) - continue - } - if positive != test.positive || value != test.value || num != test.num || denom != test.denom || suffix != test.suffix { - t.Errorf("%s: unmatched: %t %q %q %q %q", test.input, positive, value, num, denom, suffix) - } - } -} - -func TestQuantityParse(t *testing.T) { - if _, err := ParseQuantity(""); err == nil { - t.Errorf("expected empty string to return error") - } - - table := []struct { - input string - expect Quantity - }{ - {"0", decQuantity(0, 0, DecimalSI)}, - {"0n", decQuantity(0, 0, DecimalSI)}, - {"0u", decQuantity(0, 0, DecimalSI)}, - {"0m", decQuantity(0, 0, DecimalSI)}, - {"0Ki", decQuantity(0, 0, BinarySI)}, - {"0k", decQuantity(0, 0, DecimalSI)}, - {"0Mi", decQuantity(0, 0, BinarySI)}, - {"0M", decQuantity(0, 0, DecimalSI)}, - {"0Gi", decQuantity(0, 0, BinarySI)}, - {"0G", decQuantity(0, 0, DecimalSI)}, - {"0Ti", decQuantity(0, 0, BinarySI)}, - {"0T", decQuantity(0, 0, DecimalSI)}, - - // Quantity less numbers are allowed - {"1", decQuantity(1, 0, DecimalSI)}, - - // Binary suffixes - {"1Ki", decQuantity(1024, 0, BinarySI)}, - {"8Ki", decQuantity(8*1024, 0, BinarySI)}, - {"7Mi", decQuantity(7*1024*1024, 0, BinarySI)}, - {"6Gi", decQuantity(6*1024*1024*1024, 0, BinarySI)}, - {"5Ti", decQuantity(5*1024*1024*1024*1024, 0, BinarySI)}, - {"4Pi", decQuantity(4*1024*1024*1024*1024*1024, 0, BinarySI)}, - {"3Ei", decQuantity(3*1024*1024*1024*1024*1024*1024, 0, BinarySI)}, - - {"10Ti", decQuantity(10*1024*1024*1024*1024, 0, BinarySI)}, - {"100Ti", decQuantity(100*1024*1024*1024*1024, 0, BinarySI)}, - - // Decimal suffixes - {"5n", decQuantity(5, -9, DecimalSI)}, - {"4u", decQuantity(4, -6, DecimalSI)}, - {"3m", decQuantity(3, -3, DecimalSI)}, - {"9", decQuantity(9, 0, DecimalSI)}, - {"8k", decQuantity(8, 3, DecimalSI)}, - {"50k", decQuantity(5, 4, DecimalSI)}, - {"7M", decQuantity(7, 6, DecimalSI)}, - {"6G", decQuantity(6, 9, DecimalSI)}, - {"5T", decQuantity(5, 12, DecimalSI)}, - {"40T", decQuantity(4, 13, DecimalSI)}, - {"300T", decQuantity(3, 14, DecimalSI)}, - {"2P", decQuantity(2, 15, DecimalSI)}, - {"1E", decQuantity(1, 18, DecimalSI)}, - - // Decimal exponents - {"1E-3", decQuantity(1, -3, DecimalExponent)}, - {"1e3", decQuantity(1, 3, DecimalExponent)}, - {"1E6", decQuantity(1, 6, DecimalExponent)}, - {"1e9", decQuantity(1, 9, DecimalExponent)}, - {"1E12", decQuantity(1, 12, DecimalExponent)}, - {"1e15", decQuantity(1, 15, DecimalExponent)}, - {"1E18", decQuantity(1, 18, DecimalExponent)}, - - // Nonstandard but still parsable - {"1e14", decQuantity(1, 14, DecimalExponent)}, - {"1e13", decQuantity(1, 13, DecimalExponent)}, - {"1e3", decQuantity(1, 3, DecimalExponent)}, - {"100.035k", decQuantity(100035, 0, DecimalSI)}, - - // Things that look like floating point - {"0.001", decQuantity(1, -3, DecimalSI)}, - {"0.0005k", decQuantity(5, -1, DecimalSI)}, - {"0.005", decQuantity(5, -3, DecimalSI)}, - {"0.05", decQuantity(5, -2, DecimalSI)}, - {"0.5", decQuantity(5, -1, DecimalSI)}, - {"0.00050k", decQuantity(5, -1, DecimalSI)}, - {"0.00500", decQuantity(5, -3, DecimalSI)}, - {"0.05000", decQuantity(5, -2, DecimalSI)}, - {"0.50000", decQuantity(5, -1, DecimalSI)}, - {"0.5e0", decQuantity(5, -1, DecimalExponent)}, - {"0.5e-1", decQuantity(5, -2, DecimalExponent)}, - {"0.5e-2", decQuantity(5, -3, DecimalExponent)}, - {"0.5e0", decQuantity(5, -1, DecimalExponent)}, - {"10.035M", decQuantity(10035, 3, DecimalSI)}, - - {"1.2e3", decQuantity(12, 2, DecimalExponent)}, - {"1.3E+6", decQuantity(13, 5, DecimalExponent)}, - {"1.40e9", decQuantity(14, 8, DecimalExponent)}, - {"1.53E12", decQuantity(153, 10, DecimalExponent)}, - {"1.6e15", decQuantity(16, 14, DecimalExponent)}, - {"1.7E18", decQuantity(17, 17, DecimalExponent)}, - - {"9.01", decQuantity(901, -2, DecimalSI)}, - {"8.1k", decQuantity(81, 2, DecimalSI)}, - {"7.123456M", decQuantity(7123456, 0, DecimalSI)}, - {"6.987654321G", decQuantity(6987654321, 0, DecimalSI)}, - {"5.444T", decQuantity(5444, 9, DecimalSI)}, - {"40.1T", decQuantity(401, 11, DecimalSI)}, - {"300.2T", decQuantity(3002, 11, DecimalSI)}, - {"2.5P", decQuantity(25, 14, DecimalSI)}, - {"1.01E", decQuantity(101, 16, DecimalSI)}, - - // Things that saturate/round - {"3.001n", decQuantity(4, -9, DecimalSI)}, - {"1.1E-9", decQuantity(2, -9, DecimalExponent)}, - {"0.0000000001", decQuantity(1, -9, DecimalSI)}, - {"0.0000000005", decQuantity(1, -9, DecimalSI)}, - {"0.00000000050", decQuantity(1, -9, DecimalSI)}, - {"0.5e-9", decQuantity(1, -9, DecimalExponent)}, - {"0.9n", decQuantity(1, -9, DecimalSI)}, - {"0.00000012345", decQuantity(124, -9, DecimalSI)}, - {"0.00000012354", decQuantity(124, -9, DecimalSI)}, - {"9Ei", Quantity{d: maxAllowed, Format: BinarySI}}, - {"9223372036854775807Ki", Quantity{d: maxAllowed, Format: BinarySI}}, - {"12E", decQuantity(12, 18, DecimalSI)}, - - // We'll accept fractional binary stuff, too. - {"100.035Ki", decQuantity(10243584, -2, BinarySI)}, - {"0.5Mi", decQuantity(.5*1024*1024, 0, BinarySI)}, - {"0.05Gi", decQuantity(536870912, -1, BinarySI)}, - {"0.025Ti", decQuantity(274877906944, -1, BinarySI)}, - - // Things written by trolls - {"0.000000000001Ki", decQuantity(2, -9, DecimalSI)}, // rounds up, changes format - {".001", decQuantity(1, -3, DecimalSI)}, - {".0001k", decQuantity(100, -3, DecimalSI)}, - {"1.", decQuantity(1, 0, DecimalSI)}, - {"1.G", decQuantity(1, 9, DecimalSI)}, - } - - for _, asDec := range []bool{false, true} { - for _, item := range table { - got, err := ParseQuantity(item.input) - if err != nil { - t.Errorf("%v: unexpected error: %v", item.input, err) - continue - } - if asDec { - got.AsDec() - } - - if e, a := item.expect, got; e.Cmp(a) != 0 { - t.Errorf("%v: expected %v, got %v", item.input, e.String(), a.String()) - } - if e, a := item.expect.Format, got.Format; e != a { - t.Errorf("%v: expected %#v, got %#v", item.input, e, a) - } - - if asDec { - if i, ok := got.AsInt64(); i != 0 || ok { - t.Errorf("%v: expected inf.Dec to return false for AsInt64: %d", item.input, i) - } - continue - } - i, ok := item.expect.AsInt64() - if !ok { - continue - } - j, ok := got.AsInt64() - if !ok { - if got.d.Dec == nil && got.i.scale >= 0 { - t.Errorf("%v: is an int64Amount, but can't return AsInt64: %v", item.input, got) - } - continue - } - if i != j { - t.Errorf("%v: expected equivalent representation as int64: %d %d", item.input, i, j) - } - } - - for _, item := range table { - got, err := ParseQuantity(item.input) - if err != nil { - t.Errorf("%v: unexpected error: %v", item.input, err) - continue - } - - if asDec { - got.AsDec() - } - - // verify that we can decompose the input and get the same result by building up from the base. - positive, _, num, denom, suffix, err := parseQuantityString(item.input) - if err != nil { - t.Errorf("%v: unexpected error: %v", item.input, err) - continue - } - if got.Sign() >= 0 && !positive || got.Sign() < 0 && positive { - t.Errorf("%v: positive was incorrect: %t", item.input, positive) - continue - } - var value string - if !positive { - value = "-" - } - value += num - if len(denom) > 0 { - value += "." + denom - } - value += suffix - if len(value) == 0 { - t.Errorf("%v: did not parse correctly, %q %q %q", item.input, num, denom, suffix) - } - expected, err := ParseQuantity(value) - if err != nil { - t.Errorf("%v: unexpected error for %s: %v", item.input, value, err) - continue - } - if expected.Cmp(got) != 0 { - t.Errorf("%v: not the same as %s", item.input, value) - continue - } - } - - // Try the negative version of everything - desired := &inf.Dec{} - expect := Quantity{d: infDecAmount{Dec: desired}} - for _, item := range table { - got, err := ParseQuantity("-" + strings.TrimLeftFunc(item.input, unicode.IsSpace)) - if err != nil { - t.Errorf("-%v: unexpected error: %v", item.input, err) - continue - } - if asDec { - got.AsDec() - } - - expected := item.expect - desired.Neg(expected.AsDec()) - - if e, a := expect, got; e.Cmp(a) != 0 { - t.Errorf("%v: expected %s, got %s", item.input, e.String(), a.String()) - } - if e, a := expected.Format, got.Format; e != a { - t.Errorf("%v: expected %#v, got %#v", item.input, e, a) - } - } - - // Try everything with an explicit + - for _, item := range table { - got, err := ParseQuantity("+" + strings.TrimLeftFunc(item.input, unicode.IsSpace)) - if err != nil { - t.Errorf("-%v: unexpected error: %v", item.input, err) - continue - } - if asDec { - got.AsDec() - } - - if e, a := item.expect, got; e.Cmp(a) != 0 { - t.Errorf("%v(%t): expected %s, got %s", item.input, asDec, e.String(), a.String()) - } - if e, a := item.expect.Format, got.Format; e != a { - t.Errorf("%v: expected %#v, got %#v", item.input, e, a) - } - } - } - - invalid := []string{ - "1.1.M", - "1+1.0M", - "0.1mi", - "0.1am", - "aoeu", - ".5i", - "1i", - "-3.01i", - "-3.01e-", - - // trailing whitespace is forbidden - " 1", - "1 ", - } - for _, item := range invalid { - _, err := ParseQuantity(item) - if err == nil { - t.Errorf("%v parsed unexpectedly", item) - } - } -} - -func TestQuantityRoundUp(t *testing.T) { - table := []struct { - in string - scale Scale - expect Quantity - ok bool - }{ - {"9.01", -3, decQuantity(901, -2, DecimalSI), true}, - {"9.01", -2, decQuantity(901, -2, DecimalSI), true}, - {"9.01", -1, decQuantity(91, -1, DecimalSI), false}, - {"9.01", 0, decQuantity(10, 0, DecimalSI), false}, - {"9.01", 1, decQuantity(10, 0, DecimalSI), false}, - {"9.01", 2, decQuantity(100, 0, DecimalSI), false}, - - {"-9.01", -3, decQuantity(-901, -2, DecimalSI), true}, - {"-9.01", -2, decQuantity(-901, -2, DecimalSI), true}, - {"-9.01", -1, decQuantity(-91, -1, DecimalSI), false}, - {"-9.01", 0, decQuantity(-10, 0, DecimalSI), false}, - {"-9.01", 1, decQuantity(-10, 0, DecimalSI), false}, - {"-9.01", 2, decQuantity(-100, 0, DecimalSI), false}, - } - - for _, asDec := range []bool{false, true} { - for _, item := range table { - got, err := ParseQuantity(item.in) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - expect := item.expect.DeepCopy() - if asDec { - got.AsDec() - } - if ok := got.RoundUp(item.scale); ok != item.ok { - t.Errorf("%s(%d,%t): unexpected ok: %t", item.in, item.scale, asDec, ok) - } - if got.Cmp(expect) != 0 { - t.Errorf("%s(%d,%t): unexpected round: %s vs %s", item.in, item.scale, asDec, got.String(), expect.String()) - } - } - } -} - -func TestQuantityCmpInt64AndDec(t *testing.T) { - table := []struct { - a, b Quantity - cmp int - }{ - {intQuantity(901, -2, DecimalSI), intQuantity(901, -2, DecimalSI), 0}, - {intQuantity(90, -1, DecimalSI), intQuantity(901, -2, DecimalSI), -1}, - {intQuantity(901, -2, DecimalSI), intQuantity(900, -2, DecimalSI), 1}, - {intQuantity(0, 0, DecimalSI), intQuantity(0, 0, DecimalSI), 0}, - {intQuantity(0, 1, DecimalSI), intQuantity(0, -1, DecimalSI), 0}, - {intQuantity(0, -1, DecimalSI), intQuantity(0, 1, DecimalSI), 0}, - {intQuantity(800, -3, DecimalSI), intQuantity(1, 0, DecimalSI), -1}, - {intQuantity(800, -3, DecimalSI), intQuantity(79, -2, DecimalSI), 1}, - - {intQuantity(mostPositive, 0, DecimalSI), intQuantity(1, -1, DecimalSI), 1}, - {intQuantity(mostPositive, 1, DecimalSI), intQuantity(1, 0, DecimalSI), 1}, - {intQuantity(mostPositive, 1, DecimalSI), intQuantity(1, 1, DecimalSI), 1}, - {intQuantity(mostPositive, 1, DecimalSI), intQuantity(0, 1, DecimalSI), 1}, - {intQuantity(mostPositive, -16, DecimalSI), intQuantity(1, 3, DecimalSI), -1}, - - {intQuantity(mostNegative, 0, DecimalSI), intQuantity(0, 0, DecimalSI), -1}, - {intQuantity(mostNegative, -18, DecimalSI), intQuantity(-1, 0, DecimalSI), -1}, - {intQuantity(mostNegative, -19, DecimalSI), intQuantity(-1, 0, DecimalSI), 1}, - - {intQuantity(1*1000000*1000000*1000000, -17, DecimalSI), intQuantity(1, 1, DecimalSI), 0}, - {intQuantity(1*1000000*1000000*1000000, -17, DecimalSI), intQuantity(-10, 0, DecimalSI), 1}, - {intQuantity(-1*1000000*1000000*1000000, -17, DecimalSI), intQuantity(-10, 0, DecimalSI), 0}, - {intQuantity(1*1000000*1000000*1000000, -17, DecimalSI), intQuantity(1, 0, DecimalSI), 1}, - - {intQuantity(1*1000000*1000000*1000000+1, -17, DecimalSI), intQuantity(1, 1, DecimalSI), 1}, - {intQuantity(1*1000000*1000000*1000000-1, -17, DecimalSI), intQuantity(1, 1, DecimalSI), -1}, - } - - for _, item := range table { - if cmp := item.a.Cmp(item.b); cmp != item.cmp { - t.Errorf("%#v: unexpected Cmp: %d", item, cmp) - } - if cmp := item.b.Cmp(item.a); cmp != -item.cmp { - t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp) - } - } - - for _, item := range table { - a, b := item.a.DeepCopy(), item.b.DeepCopy() - a.AsDec() - if cmp := a.Cmp(b); cmp != item.cmp { - t.Errorf("%#v: unexpected Cmp: %d", item, cmp) - } - if cmp := b.Cmp(a); cmp != -item.cmp { - t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp) - } - } - - for _, item := range table { - a, b := item.a.DeepCopy(), item.b.DeepCopy() - b.AsDec() - if cmp := a.Cmp(b); cmp != item.cmp { - t.Errorf("%#v: unexpected Cmp: %d", item, cmp) - } - if cmp := b.Cmp(a); cmp != -item.cmp { - t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp) - } - } - - for _, item := range table { - a, b := item.a.DeepCopy(), item.b.DeepCopy() - a.AsDec() - b.AsDec() - if cmp := a.Cmp(b); cmp != item.cmp { - t.Errorf("%#v: unexpected Cmp: %d", item, cmp) - } - if cmp := b.Cmp(a); cmp != -item.cmp { - t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp) - } - } -} - -func TestQuantityNeg(t *testing.T) { - table := []struct { - a Quantity - out string - }{ - {intQuantity(901, -2, DecimalSI), "-9010m"}, - {decQuantity(901, -2, DecimalSI), "-9010m"}, - } - - for i, item := range table { - out := item.a.DeepCopy() - out.Neg() - if out.Cmp(item.a) == 0 { - t.Errorf("%d: negating an item should not mutate the source: %s", i, out.String()) - } - if out.String() != item.out { - t.Errorf("%d: negating did not equal exact value: %s", i, out.String()) - } - } -} - -func TestQuantityString(t *testing.T) { - table := []struct { - in Quantity - expect string - alternate string - }{ - {decQuantity(1024*1024*1024, 0, BinarySI), "1Gi", "1024Mi"}, - {decQuantity(300*1024*1024, 0, BinarySI), "300Mi", "307200Ki"}, - {decQuantity(6*1024, 0, BinarySI), "6Ki", ""}, - {decQuantity(1001*1024*1024*1024, 0, BinarySI), "1001Gi", "1025024Mi"}, - {decQuantity(1024*1024*1024*1024, 0, BinarySI), "1Ti", "1024Gi"}, - {decQuantity(5, 0, BinarySI), "5", "5000m"}, - {decQuantity(500, -3, BinarySI), "500m", "0.5"}, - {decQuantity(1, 9, DecimalSI), "1G", "1000M"}, - {decQuantity(1000, 6, DecimalSI), "1G", "0.001T"}, - {decQuantity(1000000, 3, DecimalSI), "1G", ""}, - {decQuantity(1000000000, 0, DecimalSI), "1G", ""}, - {decQuantity(1, -3, DecimalSI), "1m", "1000u"}, - {decQuantity(80, -3, DecimalSI), "80m", ""}, - {decQuantity(1080, -3, DecimalSI), "1080m", "1.08"}, - {decQuantity(108, -2, DecimalSI), "1080m", "1080000000n"}, - {decQuantity(10800, -4, DecimalSI), "1080m", ""}, - {decQuantity(300, 6, DecimalSI), "300M", ""}, - {decQuantity(1, 12, DecimalSI), "1T", ""}, - {decQuantity(1234567, 6, DecimalSI), "1234567M", ""}, - {decQuantity(1234567, -3, BinarySI), "1234567m", ""}, - {decQuantity(3, 3, DecimalSI), "3k", ""}, - {decQuantity(1025, 0, BinarySI), "1025", ""}, - {decQuantity(0, 0, DecimalSI), "0", ""}, - {decQuantity(0, 0, BinarySI), "0", ""}, - {decQuantity(1, 9, DecimalExponent), "1e9", ".001e12"}, - {decQuantity(1, -3, DecimalExponent), "1e-3", "0.001e0"}, - {decQuantity(1, -9, DecimalExponent), "1e-9", "1000e-12"}, - {decQuantity(80, -3, DecimalExponent), "80e-3", ""}, - {decQuantity(300, 6, DecimalExponent), "300e6", ""}, - {decQuantity(1, 12, DecimalExponent), "1e12", ""}, - {decQuantity(1, 3, DecimalExponent), "1e3", ""}, - {decQuantity(3, 3, DecimalExponent), "3e3", ""}, - {decQuantity(3, 3, DecimalSI), "3k", ""}, - {decQuantity(0, 0, DecimalExponent), "0", "00"}, - {decQuantity(1, -9, DecimalSI), "1n", ""}, - {decQuantity(80, -9, DecimalSI), "80n", ""}, - {decQuantity(1080, -9, DecimalSI), "1080n", ""}, - {decQuantity(108, -8, DecimalSI), "1080n", ""}, - {decQuantity(10800, -10, DecimalSI), "1080n", ""}, - {decQuantity(1, -6, DecimalSI), "1u", ""}, - {decQuantity(80, -6, DecimalSI), "80u", ""}, - {decQuantity(1080, -6, DecimalSI), "1080u", ""}, - } - for _, item := range table { - got := item.in.String() - if e, a := item.expect, got; e != a { - t.Errorf("%#v: expected %v, got %v", item.in, e, a) - } - q, err := ParseQuantity(item.expect) - if err != nil { - t.Errorf("%#v: unexpected error: %v", item.expect, err) - } - if len(q.s) == 0 || q.s != item.expect { - t.Errorf("%#v: did not copy canonical string on parse: %s", item.expect, q.s) - } - if len(item.alternate) == 0 { - continue - } - q, err = ParseQuantity(item.alternate) - if err != nil { - t.Errorf("%#v: unexpected error: %v", item.expect, err) - continue - } - if len(q.s) != 0 { - t.Errorf("%#v: unexpected nested string: %v", item.expect, q.s) - } - if q.String() != item.expect { - t.Errorf("%#v: unexpected alternate canonical: %v", item.expect, q.String()) - } - if len(q.s) == 0 || q.s != item.expect { - t.Errorf("%#v: did not set canonical string on ToString: %s", item.expect, q.s) - } - } - desired := &inf.Dec{} // Avoid modifying the values in the table. - for _, item := range table { - if item.in.Cmp(Quantity{}) == 0 { - // Don't expect it to print "-0" ever - continue - } - q := item.in - q.d = infDecAmount{desired.Neg(q.AsDec())} - if e, a := "-"+item.expect, q.String(); e != a { - t.Errorf("%#v: expected %v, got %v", item.in, e, a) - } - } -} - -func TestQuantityParseEmit(t *testing.T) { - table := []struct { - in string - expect string - }{ - {"1Ki", "1Ki"}, - {"1Mi", "1Mi"}, - {"1Gi", "1Gi"}, - {"1024Mi", "1Gi"}, - {"1000M", "1G"}, - {".001Ki", "1024m"}, - {".000001Ki", "1024u"}, - {".000000001Ki", "1024n"}, - {".000000000001Ki", "2n"}, - } - - for _, item := range table { - q, err := ParseQuantity(item.in) - if err != nil { - t.Errorf("Couldn't parse %v", item.in) - continue - } - if e, a := item.expect, q.String(); e != a { - t.Errorf("%#v: expected %v, got %v", item.in, e, a) - } - } - for _, item := range table { - q, err := ParseQuantity("-" + item.in) - if err != nil { - t.Errorf("Couldn't parse %v", item.in) - continue - } - if q.Cmp(Quantity{}) == 0 { - continue - } - if e, a := "-"+item.expect, q.String(); e != a { - t.Errorf("%#v: expected %v, got %v (%#v)", item.in, e, a, q.i) - } - } -} - -var fuzzer = fuzz.New().Funcs( - func(q *Quantity, c fuzz.Continue) { - q.i = Zero - if c.RandBool() { - q.Format = BinarySI - if c.RandBool() { - dec := &inf.Dec{} - q.d = infDecAmount{Dec: dec} - dec.SetScale(0) - dec.SetUnscaled(c.Int63()) - return - } - // Be sure to test cases like 1Mi - dec := &inf.Dec{} - q.d = infDecAmount{Dec: dec} - dec.SetScale(0) - dec.SetUnscaled(c.Int63n(1024) << uint(10*c.Intn(5))) - return - } - if c.RandBool() { - q.Format = DecimalSI - } else { - q.Format = DecimalExponent - } - if c.RandBool() { - dec := &inf.Dec{} - q.d = infDecAmount{Dec: dec} - dec.SetScale(inf.Scale(c.Intn(4))) - dec.SetUnscaled(c.Int63()) - return - } - // Be sure to test cases like 1M - dec := &inf.Dec{} - q.d = infDecAmount{Dec: dec} - dec.SetScale(inf.Scale(3 - c.Intn(15))) - dec.SetUnscaled(c.Int63n(1000)) - }, -) - -func TestQuantityDeepCopy(t *testing.T) { - // Test when d is nil - slice := []string{"0", "100m", "50m", "10000T"} - for _, testCase := range slice { - q := MustParse(testCase) - if result := q.DeepCopy(); result != q { - t.Errorf("Expected: %v, Actual: %v", q, result) - } - } - table := []*inf.Dec{ - dec(0, 0).Dec, - dec(10, 0).Dec, - dec(-10, 0).Dec, - } - // Test when i is {0,0} - for _, testCase := range table { - q := Quantity{d: infDecAmount{testCase}, Format: DecimalSI} - result := q.DeepCopy() - if q.d.Cmp(result.AsDec()) != 0 { - t.Errorf("Expected: %v, Actual: %v", q.String(), result.String()) - } - result = Quantity{d: infDecAmount{dec(2, 0).Dec}, Format: DecimalSI} - if q.d.Cmp(result.AsDec()) == 0 { - t.Errorf("Modifying result has affected q") - } - } -} - -func TestJSON(t *testing.T) { - for i := 0; i < 500; i++ { - q := &Quantity{} - fuzzer.Fuzz(q) - b, err := json.Marshal(q) - if err != nil { - t.Errorf("error encoding %v: %v", q, err) - continue - } - q2 := &Quantity{} - err = json.Unmarshal(b, q2) - if err != nil { - t.Logf("%d: %s", i, string(b)) - t.Errorf("%v: error decoding %v: %v", q, string(b), err) - } - if q2.Cmp(*q) != 0 { - t.Errorf("Expected equal: %v, %v (json was '%v')", q, q2, string(b)) - } - } -} - -func TestJSONWhitespace(t *testing.T) { - q := Quantity{} - testCases := []struct { - in string - expect string - }{ - {`" 1"`, "1"}, - {`"1 "`, "1"}, - {`1`, "1"}, - {` 1`, "1"}, - {`1 `, "1"}, - {`10`, "10"}, - {`-1`, "-1"}, - {` -1`, "-1"}, - } - for _, test := range testCases { - if err := json.Unmarshal([]byte(test.in), &q); err != nil { - t.Errorf("%q: %v", test.in, err) - } - if q.String() != test.expect { - t.Errorf("unexpected string: %q", q.String()) - } - } -} - -func TestMilliNewSet(t *testing.T) { - table := []struct { - value int64 - format Format - expect string - exact bool - }{ - {1, DecimalSI, "1m", true}, - {1000, DecimalSI, "1", true}, - {1234000, DecimalSI, "1234", true}, - {1024, BinarySI, "1024m", false}, // Format changes - {1000000, "invalidFormatDefaultsToExponent", "1e3", true}, - {1024 * 1024, BinarySI, "1048576m", false}, // Format changes - } - - for _, item := range table { - q := NewMilliQuantity(item.value, item.format) - if e, a := item.expect, q.String(); e != a { - t.Errorf("Expected %v, got %v; %#v", e, a, q) - } - if !item.exact { - continue - } - q2, err := ParseQuantity(q.String()) - if err != nil { - t.Errorf("Round trip failed on %v", q) - } - if e, a := item.value, q2.MilliValue(); e != a { - t.Errorf("Expected %v, got %v", e, a) - } - } - - for _, item := range table { - q := NewQuantity(0, item.format) - q.SetMilli(item.value) - if e, a := item.expect, q.String(); e != a { - t.Errorf("Set: Expected %v, got %v; %#v", e, a, q) - } - } -} - -func TestNewSet(t *testing.T) { - table := []struct { - value int64 - format Format - expect string - }{ - {1, DecimalSI, "1"}, - {1000, DecimalSI, "1k"}, - {1234000, DecimalSI, "1234k"}, - {1024, BinarySI, "1Ki"}, - {1000000, "invalidFormatDefaultsToExponent", "1e6"}, - {1024 * 1024, BinarySI, "1Mi"}, - } - - for _, asDec := range []bool{false, true} { - for _, item := range table { - q := NewQuantity(item.value, item.format) - if asDec { - q.ToDec() - } - if e, a := item.expect, q.String(); e != a { - t.Errorf("Expected %v, got %v; %#v", e, a, q) - } - q2, err := ParseQuantity(q.String()) - if err != nil { - t.Errorf("Round trip failed on %v", q) - } - if e, a := item.value, q2.Value(); e != a { - t.Errorf("Expected %v, got %v", e, a) - } - } - - for _, item := range table { - q := NewQuantity(0, item.format) - q.Set(item.value) - if asDec { - q.ToDec() - } - if e, a := item.expect, q.String(); e != a { - t.Errorf("Set: Expected %v, got %v; %#v", e, a, q) - } - } - } -} - -func TestNewScaledSet(t *testing.T) { - table := []struct { - value int64 - scale Scale - expect string - }{ - {1, Nano, "1n"}, - {1000, Nano, "1u"}, - {1, Micro, "1u"}, - {1000, Micro, "1m"}, - {1, Milli, "1m"}, - {1000, Milli, "1"}, - {1, 0, "1"}, - {0, Nano, "0"}, - {0, Micro, "0"}, - {0, Milli, "0"}, - {0, 0, "0"}, - } - - for _, item := range table { - q := NewScaledQuantity(item.value, item.scale) - if e, a := item.expect, q.String(); e != a { - t.Errorf("Expected %v, got %v; %#v", e, a, q) - } - q2, err := ParseQuantity(q.String()) - if err != nil { - t.Errorf("Round trip failed on %v", q) - } - if e, a := item.value, q2.ScaledValue(item.scale); e != a { - t.Errorf("Expected %v, got %v", e, a) - } - q3 := NewQuantity(0, DecimalSI) - q3.SetScaled(item.value, item.scale) - if q.Cmp(*q3) != 0 { - t.Errorf("Expected %v and %v to be equal", q, q3) - } - } -} - -func TestScaledValue(t *testing.T) { - table := []struct { - fromScale Scale - toScale Scale - expected int64 - }{ - {Nano, Nano, 1}, - {Nano, Micro, 1}, - {Nano, Milli, 1}, - {Nano, 0, 1}, - {Micro, Nano, 1000}, - {Micro, Micro, 1}, - {Micro, Milli, 1}, - {Micro, 0, 1}, - {Milli, Nano, 1000 * 1000}, - {Milli, Micro, 1000}, - {Milli, Milli, 1}, - {Milli, 0, 1}, - {0, Nano, 1000 * 1000 * 1000}, - {0, Micro, 1000 * 1000}, - {0, Milli, 1000}, - {0, 0, 1}, - {2, -2, 100 * 100}, - } - - for _, item := range table { - q := NewScaledQuantity(1, item.fromScale) - if e, a := item.expected, q.ScaledValue(item.toScale); e != a { - t.Errorf("%v to %v: Expected %v, got %v", item.fromScale, item.toScale, e, a) - } - } -} - -func TestUninitializedNoCrash(t *testing.T) { - var q Quantity - - q.Value() - q.MilliValue() - q.DeepCopy() - _ = q.String() - q.MarshalJSON() -} - -func TestDeepCopy(t *testing.T) { - q := NewQuantity(5, DecimalSI) - c := q.DeepCopy() - c.Set(6) - if q.Value() == 6 { - t.Errorf("Copy didn't") - } -} - -func TestSub(t *testing.T) { - tests := []struct { - a Quantity - b Quantity - expected Quantity - }{ - {decQuantity(10, 0, DecimalSI), decQuantity(1, 1, DecimalSI), decQuantity(0, 0, DecimalSI)}, - {decQuantity(10, 0, DecimalSI), decQuantity(1, 0, BinarySI), decQuantity(9, 0, DecimalSI)}, - {decQuantity(10, 0, BinarySI), decQuantity(1, 0, DecimalSI), decQuantity(9, 0, BinarySI)}, - {Quantity{Format: DecimalSI}, decQuantity(50, 0, DecimalSI), decQuantity(-50, 0, DecimalSI)}, - {decQuantity(50, 0, DecimalSI), Quantity{Format: DecimalSI}, decQuantity(50, 0, DecimalSI)}, - {Quantity{Format: DecimalSI}, Quantity{Format: DecimalSI}, decQuantity(0, 0, DecimalSI)}, - } - - for i, test := range tests { - test.a.Sub(test.b) - if test.a.Cmp(test.expected) != 0 { - t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String()) - } - } -} - -func TestNeg(t *testing.T) { - tests := []struct { - a Quantity - b Quantity - expected Quantity - }{ - {a: intQuantity(0, 0, DecimalSI), expected: intQuantity(0, 0, DecimalSI)}, - {a: Quantity{}, expected: Quantity{}}, - {a: intQuantity(10, 0, BinarySI), expected: intQuantity(-10, 0, BinarySI)}, - {a: intQuantity(-10, 0, BinarySI), expected: intQuantity(10, 0, BinarySI)}, - {a: decQuantity(0, 0, DecimalSI), expected: intQuantity(0, 0, DecimalSI)}, - {a: decQuantity(10, 0, BinarySI), expected: intQuantity(-10, 0, BinarySI)}, - {a: decQuantity(-10, 0, BinarySI), expected: intQuantity(10, 0, BinarySI)}, - } - - for i, test := range tests { - a := test.a.DeepCopy() - a.Neg() - // ensure value is same - if a.Cmp(test.expected) != 0 { - t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), a.String()) - } - } -} - -func TestAdd(t *testing.T) { - tests := []struct { - a Quantity - b Quantity - expected Quantity - }{ - {decQuantity(10, 0, DecimalSI), decQuantity(1, 1, DecimalSI), decQuantity(20, 0, DecimalSI)}, - {decQuantity(10, 0, DecimalSI), decQuantity(1, 0, BinarySI), decQuantity(11, 0, DecimalSI)}, - {decQuantity(10, 0, BinarySI), decQuantity(1, 0, DecimalSI), decQuantity(11, 0, BinarySI)}, - {Quantity{Format: DecimalSI}, decQuantity(50, 0, DecimalSI), decQuantity(50, 0, DecimalSI)}, - {decQuantity(50, 0, DecimalSI), Quantity{Format: DecimalSI}, decQuantity(50, 0, DecimalSI)}, - {Quantity{Format: DecimalSI}, Quantity{Format: DecimalSI}, decQuantity(0, 0, DecimalSI)}, - } - - for i, test := range tests { - test.a.Add(test.b) - if test.a.Cmp(test.expected) != 0 { - t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String()) - } - } -} - -func TestAddSubRoundTrip(t *testing.T) { - for k := -10; k <= 10; k++ { - q := Quantity{Format: DecimalSI} - var order []int64 - for i := 0; i < 100; i++ { - j := rand.Int63() - order = append(order, j) - q.Add(*NewScaledQuantity(j, Scale(k))) - } - for _, j := range order { - q.Sub(*NewScaledQuantity(j, Scale(k))) - } - if !q.IsZero() { - t.Errorf("addition and subtraction did not cancel: %s", &q) - } - } -} - -func TestAddSubRoundTripAcrossScales(t *testing.T) { - q := Quantity{Format: DecimalSI} - var order []int64 - for i := 0; i < 100; i++ { - j := rand.Int63() - order = append(order, j) - q.Add(*NewScaledQuantity(j, Scale(j%20-10))) - } - for _, j := range order { - q.Sub(*NewScaledQuantity(j, Scale(j%20-10))) - } - if !q.IsZero() { - t.Errorf("addition and subtraction did not cancel: %s", &q) - } -} - -func TestNegateRoundTrip(t *testing.T) { - for _, asDec := range []bool{false, true} { - for k := -10; k <= 10; k++ { - for i := 0; i < 100; i++ { - j := rand.Int63() - q := *NewScaledQuantity(j, Scale(k)) - if asDec { - q.AsDec() - } - - b := q.DeepCopy() - b.Neg() - b.Neg() - if b.Cmp(q) != 0 { - t.Errorf("double negation did not cancel: %s", &q) - } - } - } - } -} -func benchmarkQuantities() []Quantity { - return []Quantity{ - intQuantity(1024*1024*1024, 0, BinarySI), - intQuantity(1024*1024*1024*1024, 0, BinarySI), - intQuantity(1000000, 3, DecimalSI), - intQuantity(1000000000, 0, DecimalSI), - intQuantity(1, -3, DecimalSI), - intQuantity(80, -3, DecimalSI), - intQuantity(1080, -3, DecimalSI), - intQuantity(0, 0, BinarySI), - intQuantity(1, 9, DecimalExponent), - intQuantity(1, -9, DecimalSI), - intQuantity(1000000, 10, DecimalSI), - } -} - -func BenchmarkQuantityString(b *testing.B) { - values := benchmarkQuantities() - b.ResetTimer() - var s string - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - q.s = "" - s = q.String() - } - b.StopTimer() - if len(s) == 0 { - b.Fatal(s) - } -} - -func BenchmarkQuantityStringPrecalc(b *testing.B) { - values := benchmarkQuantities() - for i := range values { - _ = values[i].String() - } - b.ResetTimer() - var s string - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - s = q.String() - } - b.StopTimer() - if len(s) == 0 { - b.Fatal(s) - } -} - -func BenchmarkQuantityStringBinarySI(b *testing.B) { - values := benchmarkQuantities() - for i := range values { - values[i].Format = BinarySI - } - b.ResetTimer() - var s string - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - q.s = "" - s = q.String() - } - b.StopTimer() - if len(s) == 0 { - b.Fatal(s) - } -} - -func BenchmarkQuantityMarshalJSON(b *testing.B) { - values := benchmarkQuantities() - b.ResetTimer() - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - q.s = "" - if _, err := q.MarshalJSON(); err != nil { - b.Fatal(err) - } - } - b.StopTimer() -} - -func BenchmarkQuantityUnmarshalJSON(b *testing.B) { - values := benchmarkQuantities() - var json [][]byte - for _, v := range values { - data, _ := v.MarshalJSON() - json = append(json, data) - } - - b.ResetTimer() - for i := 0; i < b.N; i++ { - var q Quantity - if err := q.UnmarshalJSON(json[i%len(values)]); err != nil { - b.Fatal(err) - } - } - b.StopTimer() -} - -func BenchmarkParseQuantity(b *testing.B) { - values := benchmarkQuantities() - var strings []string - for _, v := range values { - strings = append(strings, v.String()) - } - b.ResetTimer() - for i := 0; i < b.N; i++ { - if _, err := ParseQuantity(strings[i%len(values)]); err != nil { - b.Fatal(err) - } - } - b.StopTimer() -} - -func BenchmarkCanonicalize(b *testing.B) { - values := benchmarkQuantities() - b.ResetTimer() - buffer := make([]byte, 0, 100) - for i := 0; i < b.N; i++ { - s, _ := values[i%len(values)].CanonicalizeBytes(buffer) - if len(s) == 0 { - b.Fatal(s) - } - } - b.StopTimer() -} - -func BenchmarkQuantityRoundUp(b *testing.B) { - values := benchmarkQuantities() - b.ResetTimer() - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - copied := q - copied.RoundUp(-3) - } - b.StopTimer() -} - -func BenchmarkQuantityCopy(b *testing.B) { - values := benchmarkQuantities() - b.ResetTimer() - for i := 0; i < b.N; i++ { - values[i%len(values)].DeepCopy() - } - b.StopTimer() -} - -func BenchmarkQuantityAdd(b *testing.B) { - values := benchmarkQuantities() - base := &Quantity{} - b.ResetTimer() - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - base.d.Dec = nil - base.i = int64Amount{value: 100} - base.Add(q) - } - b.StopTimer() -} - -func BenchmarkQuantityCmp(b *testing.B) { - values := benchmarkQuantities() - b.ResetTimer() - for i := 0; i < b.N; i++ { - q := values[i%len(values)] - if q.Cmp(q) != 0 { - b.Fatal(q) - } - } - b.StopTimer() -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/scale_int.go b/pseudo/k8s/apimachinery/pkg/api/resource/scale_int.go deleted file mode 100644 index 55e177b0e..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/scale_int.go +++ /dev/null @@ -1,95 +0,0 @@ -/* -Copyright 2015 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 resource - -import ( - "math" - "math/big" - "sync" -) - -var ( - // A sync pool to reduce allocation. - intPool sync.Pool - maxInt64 = big.NewInt(math.MaxInt64) -) - -func init() { - intPool.New = func() interface{} { - return &big.Int{} - } -} - -// scaledValue scales given unscaled value from scale to new Scale and returns -// an int64. It ALWAYS rounds up the result when scale down. The final result might -// overflow. -// -// scale, newScale represents the scale of the unscaled decimal. -// The mathematical value of the decimal is unscaled * 10**(-scale). -func scaledValue(unscaled *big.Int, scale, newScale int) int64 { - dif := scale - newScale - if dif == 0 { - return unscaled.Int64() - } - - // Handle scale up - // This is an easy case, we do not need to care about rounding and overflow. - // If any intermediate operation causes overflow, the result will overflow. - if dif < 0 { - return unscaled.Int64() * int64(math.Pow10(-dif)) - } - - // Handle scale down - // We have to be careful about the intermediate operations. - - // fast path when unscaled < max.Int64 and exp(10,dif) < max.Int64 - const log10MaxInt64 = 19 - if unscaled.Cmp(maxInt64) < 0 && dif < log10MaxInt64 { - divide := int64(math.Pow10(dif)) - result := unscaled.Int64() / divide - mod := unscaled.Int64() % divide - if mod != 0 { - return result + 1 - } - return result - } - - // We should only convert back to int64 when getting the result. - divisor := intPool.Get().(*big.Int) - exp := intPool.Get().(*big.Int) - result := intPool.Get().(*big.Int) - defer func() { - intPool.Put(divisor) - intPool.Put(exp) - intPool.Put(result) - }() - - // divisor = 10^(dif) - // TODO: create loop up table if exp costs too much. - divisor.Exp(bigTen, exp.SetInt64(int64(dif)), nil) - // reuse exp - remainder := exp - - // result = unscaled / divisor - // remainder = unscaled % divisor - result.DivMod(unscaled, divisor, remainder) - if remainder.Sign() != 0 { - return result.Int64() + 1 - } - - return result.Int64() -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/scale_int_test.go b/pseudo/k8s/apimachinery/pkg/api/resource/scale_int_test.go deleted file mode 100644 index b150fa514..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/scale_int_test.go +++ /dev/null @@ -1,85 +0,0 @@ -/* -Copyright 2015 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 resource - -import ( - "math" - "math/big" - "testing" -) - -func TestScaledValueInternal(t *testing.T) { - tests := []struct { - unscaled *big.Int - scale int - newScale int - - want int64 - }{ - // remain scale - {big.NewInt(1000), 0, 0, 1000}, - - // scale down - {big.NewInt(1000), 0, -3, 1}, - {big.NewInt(1000), 3, 0, 1}, - {big.NewInt(0), 3, 0, 0}, - - // always round up - {big.NewInt(999), 3, 0, 1}, - {big.NewInt(500), 3, 0, 1}, - {big.NewInt(499), 3, 0, 1}, - {big.NewInt(1), 3, 0, 1}, - // large scaled value does not lose precision - {big.NewInt(0).Sub(maxInt64, bigOne), 1, 0, (math.MaxInt64-1)/10 + 1}, - // large intermediate result. - {big.NewInt(1).Exp(big.NewInt(10), big.NewInt(100), nil), 100, 0, 1}, - - // scale up - {big.NewInt(0), 0, 3, 0}, - {big.NewInt(1), 0, 3, 1000}, - {big.NewInt(1), -3, 0, 1000}, - {big.NewInt(1000), -3, 2, 100000000}, - {big.NewInt(0).Div(big.NewInt(math.MaxInt64), bigThousand), 0, 3, - (math.MaxInt64 / 1000) * 1000}, - } - - for i, tt := range tests { - old := (&big.Int{}).Set(tt.unscaled) - got := scaledValue(tt.unscaled, tt.scale, tt.newScale) - if got != tt.want { - t.Errorf("#%d: got = %v, want %v", i, got, tt.want) - } - if tt.unscaled.Cmp(old) != 0 { - t.Errorf("#%d: unscaled = %v, want %v", i, tt.unscaled, old) - } - } -} - -func BenchmarkScaledValueSmall(b *testing.B) { - s := big.NewInt(1000) - for i := 0; i < b.N; i++ { - scaledValue(s, 3, 0) - } -} - -func BenchmarkScaledValueLarge(b *testing.B) { - s := big.NewInt(math.MaxInt64) - s.Mul(s, big.NewInt(1000)) - for i := 0; i < b.N; i++ { - scaledValue(s, 10, 0) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/suffix.go b/pseudo/k8s/apimachinery/pkg/api/resource/suffix.go deleted file mode 100644 index 5ed7abe66..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/suffix.go +++ /dev/null @@ -1,198 +0,0 @@ -/* -Copyright 2014 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 resource - -import ( - "strconv" -) - -type suffix string - -// suffixer can interpret and construct suffixes. -type suffixer interface { - interpret(suffix) (base, exponent int32, fmt Format, ok bool) - construct(base, exponent int32, fmt Format) (s suffix, ok bool) - constructBytes(base, exponent int32, fmt Format) (s []byte, ok bool) -} - -// quantitySuffixer handles suffixes for all three formats that quantity -// can handle. -var quantitySuffixer = newSuffixer() - -type bePair struct { - base, exponent int32 -} - -type listSuffixer struct { - suffixToBE map[suffix]bePair - beToSuffix map[bePair]suffix - beToSuffixBytes map[bePair][]byte -} - -func (ls *listSuffixer) addSuffix(s suffix, pair bePair) { - if ls.suffixToBE == nil { - ls.suffixToBE = map[suffix]bePair{} - } - if ls.beToSuffix == nil { - ls.beToSuffix = map[bePair]suffix{} - } - if ls.beToSuffixBytes == nil { - ls.beToSuffixBytes = map[bePair][]byte{} - } - ls.suffixToBE[s] = pair - ls.beToSuffix[pair] = s - ls.beToSuffixBytes[pair] = []byte(s) -} - -func (ls *listSuffixer) lookup(s suffix) (base, exponent int32, ok bool) { - pair, ok := ls.suffixToBE[s] - if !ok { - return 0, 0, false - } - return pair.base, pair.exponent, true -} - -func (ls *listSuffixer) construct(base, exponent int32) (s suffix, ok bool) { - s, ok = ls.beToSuffix[bePair{base, exponent}] - return -} - -func (ls *listSuffixer) constructBytes(base, exponent int32) (s []byte, ok bool) { - s, ok = ls.beToSuffixBytes[bePair{base, exponent}] - return -} - -type suffixHandler struct { - decSuffixes listSuffixer - binSuffixes listSuffixer -} - -type fastLookup struct { - *suffixHandler -} - -func (l fastLookup) interpret(s suffix) (base, exponent int32, format Format, ok bool) { - switch s { - case "": - return 10, 0, DecimalSI, true - case "n": - return 10, -9, DecimalSI, true - case "u": - return 10, -6, DecimalSI, true - case "m": - return 10, -3, DecimalSI, true - case "k": - return 10, 3, DecimalSI, true - case "M": - return 10, 6, DecimalSI, true - case "G": - return 10, 9, DecimalSI, true - } - return l.suffixHandler.interpret(s) -} - -func newSuffixer() suffixer { - sh := &suffixHandler{} - - // IMPORTANT: if you change this section you must change fastLookup - - sh.binSuffixes.addSuffix("Ki", bePair{2, 10}) - sh.binSuffixes.addSuffix("Mi", bePair{2, 20}) - sh.binSuffixes.addSuffix("Gi", bePair{2, 30}) - sh.binSuffixes.addSuffix("Ti", bePair{2, 40}) - sh.binSuffixes.addSuffix("Pi", bePair{2, 50}) - sh.binSuffixes.addSuffix("Ei", bePair{2, 60}) - // Don't emit an error when trying to produce - // a suffix for 2^0. - sh.decSuffixes.addSuffix("", bePair{2, 0}) - - sh.decSuffixes.addSuffix("n", bePair{10, -9}) - sh.decSuffixes.addSuffix("u", bePair{10, -6}) - sh.decSuffixes.addSuffix("m", bePair{10, -3}) - sh.decSuffixes.addSuffix("", bePair{10, 0}) - sh.decSuffixes.addSuffix("k", bePair{10, 3}) - sh.decSuffixes.addSuffix("M", bePair{10, 6}) - sh.decSuffixes.addSuffix("G", bePair{10, 9}) - sh.decSuffixes.addSuffix("T", bePair{10, 12}) - sh.decSuffixes.addSuffix("P", bePair{10, 15}) - sh.decSuffixes.addSuffix("E", bePair{10, 18}) - - return fastLookup{sh} -} - -func (sh *suffixHandler) construct(base, exponent int32, fmt Format) (s suffix, ok bool) { - switch fmt { - case DecimalSI: - return sh.decSuffixes.construct(base, exponent) - case BinarySI: - return sh.binSuffixes.construct(base, exponent) - case DecimalExponent: - if base != 10 { - return "", false - } - if exponent == 0 { - return "", true - } - return suffix("e" + strconv.FormatInt(int64(exponent), 10)), true - } - return "", false -} - -func (sh *suffixHandler) constructBytes(base, exponent int32, format Format) (s []byte, ok bool) { - switch format { - case DecimalSI: - return sh.decSuffixes.constructBytes(base, exponent) - case BinarySI: - return sh.binSuffixes.constructBytes(base, exponent) - case DecimalExponent: - if base != 10 { - return nil, false - } - if exponent == 0 { - return nil, true - } - result := make([]byte, 8, 8) - result[0] = 'e' - number := strconv.AppendInt(result[1:1], int64(exponent), 10) - if &result[1] == &number[0] { - return result[:1+len(number)], true - } - result = append(result[:1], number...) - return result, true - } - return nil, false -} - -func (sh *suffixHandler) interpret(suffix suffix) (base, exponent int32, fmt Format, ok bool) { - // Try lookup tables first - if b, e, ok := sh.decSuffixes.lookup(suffix); ok { - return b, e, DecimalSI, true - } - if b, e, ok := sh.binSuffixes.lookup(suffix); ok { - return b, e, BinarySI, true - } - - if len(suffix) > 1 && (suffix[0] == 'E' || suffix[0] == 'e') { - parsed, err := strconv.ParseInt(string(suffix[1:]), 10, 64) - if err != nil { - return 0, 0, DecimalExponent, false - } - return 10, int32(parsed), DecimalExponent, true - } - - return 0, 0, DecimalExponent, false -} diff --git a/pseudo/k8s/apimachinery/pkg/api/resource/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/api/resource/zz_generated.deepcopy.go deleted file mode 100644 index ab4740790..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/resource/zz_generated.deepcopy.go +++ /dev/null @@ -1,27 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package resource - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Quantity) DeepCopyInto(out *Quantity) { - *out = in.DeepCopy() - return -} diff --git a/pseudo/k8s/apimachinery/pkg/api/validation/doc.go b/pseudo/k8s/apimachinery/pkg/api/validation/doc.go deleted file mode 100644 index bc711fafe..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/validation/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -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 validation contains generic api type validation functions. -package validation // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/validation" diff --git a/pseudo/k8s/apimachinery/pkg/api/validation/generic.go b/pseudo/k8s/apimachinery/pkg/api/validation/generic.go deleted file mode 100644 index a464436d3..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/validation/generic.go +++ /dev/null @@ -1,85 +0,0 @@ -/* -Copyright 2014 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 validation - -import ( - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -const IsNegativeErrorMsg string = `must be greater than or equal to 0` - -// ValidateNameFunc validates that the provided name is valid for a given resource type. -// Not all resources have the same validation rules for names. Prefix is true -// if the name will have a value appended to it. If the name is not valid, -// this returns a list of descriptions of individual characteristics of the -// value that were not valid. Otherwise this returns an empty list or nil. -type ValidateNameFunc func(name string, prefix bool) []string - -// NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain. -func NameIsDNSSubdomain(name string, prefix bool) []string { - if prefix { - name = maskTrailingDash(name) - } - return validation.IsDNS1123Subdomain(name) -} - -// NameIsDNSLabel is a ValidateNameFunc for names that must be a DNS 1123 label. -func NameIsDNSLabel(name string, prefix bool) []string { - if prefix { - name = maskTrailingDash(name) - } - return validation.IsDNS1123Label(name) -} - -// NameIsDNS1035Label is a ValidateNameFunc for names that must be a DNS 952 label. -func NameIsDNS1035Label(name string, prefix bool) []string { - if prefix { - name = maskTrailingDash(name) - } - return validation.IsDNS1035Label(name) -} - -// ValidateNamespaceName can be used to check whether the given namespace name is valid. -// Prefix indicates this name will be used as part of generation, in which case -// trailing dashes are allowed. -var ValidateNamespaceName = NameIsDNSLabel - -// ValidateServiceAccountName can be used to check whether the given service account name is valid. -// Prefix indicates this name will be used as part of generation, in which case -// trailing dashes are allowed. -var ValidateServiceAccountName = NameIsDNSSubdomain - -// maskTrailingDash replaces the final character of a string with a subdomain safe -// value if is a dash. -func maskTrailingDash(name string) string { - if strings.HasSuffix(name, "-") { - return name[:len(name)-2] + "a" - } - return name -} - -// Validates that given value is not negative. -func ValidateNonnegativeField(value int64, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - if value < 0 { - allErrs = append(allErrs, field.Invalid(fldPath, value, IsNegativeErrorMsg)) - } - return allErrs -} diff --git a/pseudo/k8s/apimachinery/pkg/api/validation/objectmeta.go b/pseudo/k8s/apimachinery/pkg/api/validation/objectmeta.go deleted file mode 100644 index 0e95811ec..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/validation/objectmeta.go +++ /dev/null @@ -1,263 +0,0 @@ -/* -Copyright 2014 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 validation - -import ( - "fmt" - "strings" - - apiequality "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - v1validation "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -const FieldImmutableErrorMsg string = `field is immutable` - -const totalAnnotationSizeLimitB int = 256 * (1 << 10) // 256 kB - -// BannedOwners is a black list of object that are not allowed to be owners. -var BannedOwners = map[schema.GroupVersionKind]struct{}{ - {Group: "", Version: "v1", Kind: "Event"}: {}, -} - -// ValidateClusterName can be used to check whether the given cluster name is valid. -var ValidateClusterName = NameIsDNS1035Label - -// ValidateAnnotations validates that a set of annotations are correctly defined. -func ValidateAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - var totalSize int64 - for k, v := range annotations { - for _, msg := range validation.IsQualifiedName(strings.ToLower(k)) { - allErrs = append(allErrs, field.Invalid(fldPath, k, msg)) - } - totalSize += (int64)(len(k)) + (int64)(len(v)) - } - if totalSize > (int64)(totalAnnotationSizeLimitB) { - allErrs = append(allErrs, field.TooLong(fldPath, "", totalAnnotationSizeLimitB)) - } - return allErrs -} - -func validateOwnerReference(ownerReference metav1.OwnerReference, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - gvk := schema.FromAPIVersionAndKind(ownerReference.APIVersion, ownerReference.Kind) - // gvk.Group is empty for the legacy group. - if len(gvk.Version) == 0 { - allErrs = append(allErrs, field.Invalid(fldPath.Child("apiVersion"), ownerReference.APIVersion, "version must not be empty")) - } - if len(gvk.Kind) == 0 { - allErrs = append(allErrs, field.Invalid(fldPath.Child("kind"), ownerReference.Kind, "kind must not be empty")) - } - if len(ownerReference.Name) == 0 { - allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), ownerReference.Name, "name must not be empty")) - } - if len(ownerReference.UID) == 0 { - allErrs = append(allErrs, field.Invalid(fldPath.Child("uid"), ownerReference.UID, "uid must not be empty")) - } - if _, ok := BannedOwners[gvk]; ok { - allErrs = append(allErrs, field.Invalid(fldPath, ownerReference, fmt.Sprintf("%s is disallowed from being an owner", gvk))) - } - return allErrs -} - -func ValidateOwnerReferences(ownerReferences []metav1.OwnerReference, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - controllerName := "" - for _, ref := range ownerReferences { - allErrs = append(allErrs, validateOwnerReference(ref, fldPath)...) - if ref.Controller != nil && *ref.Controller { - if controllerName != "" { - allErrs = append(allErrs, field.Invalid(fldPath, ownerReferences, - fmt.Sprintf("Only one reference can have Controller set to true. Found \"true\" in references for %v and %v", controllerName, ref.Name))) - } else { - controllerName = ref.Name - } - } - } - return allErrs -} - -// Validate finalizer names -func ValidateFinalizerName(stringValue string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - for _, msg := range validation.IsQualifiedName(stringValue) { - allErrs = append(allErrs, field.Invalid(fldPath, stringValue, msg)) - } - - return allErrs -} - -func ValidateNoNewFinalizers(newFinalizers []string, oldFinalizers []string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - extra := sets.NewString(newFinalizers...).Difference(sets.NewString(oldFinalizers...)) - if len(extra) != 0 { - allErrs = append(allErrs, field.Forbidden(fldPath, fmt.Sprintf("no new finalizers can be added if the object is being deleted, found new finalizers %#v", extra.List()))) - } - return allErrs -} - -func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - if !apiequality.Semantic.DeepEqual(oldVal, newVal) { - allErrs = append(allErrs, field.Invalid(fldPath, newVal, FieldImmutableErrorMsg)) - } - return allErrs -} - -// ValidateObjectMeta validates an object's metadata on creation. It expects that name generation has already -// been performed. -// It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before. -func ValidateObjectMeta(objMeta *metav1.ObjectMeta, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList { - metadata, err := meta.Accessor(objMeta) - if err != nil { - allErrs := field.ErrorList{} - allErrs = append(allErrs, field.Invalid(fldPath, objMeta, err.Error())) - return allErrs - } - return ValidateObjectMetaAccessor(metadata, requiresNamespace, nameFn, fldPath) -} - -// ValidateObjectMeta validates an object's metadata on creation. It expects that name generation has already -// been performed. -// It doesn't return an error for rootscoped resources with namespace, because namespace should already be cleared before. -func ValidateObjectMetaAccessor(meta metav1.Object, requiresNamespace bool, nameFn ValidateNameFunc, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - - if len(meta.GetGenerateName()) != 0 { - for _, msg := range nameFn(meta.GetGenerateName(), true) { - allErrs = append(allErrs, field.Invalid(fldPath.Child("generateName"), meta.GetGenerateName(), msg)) - } - } - // If the generated name validates, but the calculated value does not, it's a problem with generation, and we - // report it here. This may confuse users, but indicates a programming bug and still must be validated. - // If there are multiple fields out of which one is required then add an or as a separator - if len(meta.GetName()) == 0 { - allErrs = append(allErrs, field.Required(fldPath.Child("name"), "name or generateName is required")) - } else { - for _, msg := range nameFn(meta.GetName(), false) { - allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), meta.GetName(), msg)) - } - } - if requiresNamespace { - if len(meta.GetNamespace()) == 0 { - allErrs = append(allErrs, field.Required(fldPath.Child("namespace"), "")) - } else { - for _, msg := range ValidateNamespaceName(meta.GetNamespace(), false) { - allErrs = append(allErrs, field.Invalid(fldPath.Child("namespace"), meta.GetNamespace(), msg)) - } - } - } else { - if len(meta.GetNamespace()) != 0 { - allErrs = append(allErrs, field.Forbidden(fldPath.Child("namespace"), "not allowed on this type")) - } - } - if len(meta.GetClusterName()) != 0 { - for _, msg := range ValidateClusterName(meta.GetClusterName(), false) { - allErrs = append(allErrs, field.Invalid(fldPath.Child("clusterName"), meta.GetClusterName(), msg)) - } - } - for _, entry := range meta.GetManagedFields() { - allErrs = append(allErrs, v1validation.ValidateFieldManager(entry.Manager, fldPath.Child("fieldManager"))...) - } - allErrs = append(allErrs, ValidateNonnegativeField(meta.GetGeneration(), fldPath.Child("generation"))...) - allErrs = append(allErrs, v1validation.ValidateLabels(meta.GetLabels(), fldPath.Child("labels"))...) - allErrs = append(allErrs, ValidateAnnotations(meta.GetAnnotations(), fldPath.Child("annotations"))...) - allErrs = append(allErrs, ValidateOwnerReferences(meta.GetOwnerReferences(), fldPath.Child("ownerReferences"))...) - allErrs = append(allErrs, ValidateFinalizers(meta.GetFinalizers(), fldPath.Child("finalizers"))...) - allErrs = append(allErrs, v1validation.ValidateManagedFields(meta.GetManagedFields(), fldPath.Child("managedFields"))...) - return allErrs -} - -// ValidateFinalizers tests if the finalizers name are valid, and if there are conflicting finalizers. -func ValidateFinalizers(finalizers []string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - hasFinalizerOrphanDependents := false - hasFinalizerDeleteDependents := false - for _, finalizer := range finalizers { - allErrs = append(allErrs, ValidateFinalizerName(finalizer, fldPath)...) - if finalizer == metav1.FinalizerOrphanDependents { - hasFinalizerOrphanDependents = true - } - if finalizer == metav1.FinalizerDeleteDependents { - hasFinalizerDeleteDependents = true - } - } - if hasFinalizerDeleteDependents && hasFinalizerOrphanDependents { - allErrs = append(allErrs, field.Invalid(fldPath, finalizers, fmt.Sprintf("finalizer %s and %s cannot be both set", metav1.FinalizerOrphanDependents, metav1.FinalizerDeleteDependents))) - } - return allErrs -} - -// ValidateObjectMetaUpdate validates an object's metadata when updated -func ValidateObjectMetaUpdate(newMeta, oldMeta *metav1.ObjectMeta, fldPath *field.Path) field.ErrorList { - newMetadata, err := meta.Accessor(newMeta) - if err != nil { - allErrs := field.ErrorList{} - allErrs = append(allErrs, field.Invalid(fldPath, newMeta, err.Error())) - return allErrs - } - oldMetadata, err := meta.Accessor(oldMeta) - if err != nil { - allErrs := field.ErrorList{} - allErrs = append(allErrs, field.Invalid(fldPath, oldMeta, err.Error())) - return allErrs - } - return ValidateObjectMetaAccessorUpdate(newMetadata, oldMetadata, fldPath) -} - -func ValidateObjectMetaAccessorUpdate(newMeta, oldMeta metav1.Object, fldPath *field.Path) field.ErrorList { - var allErrs field.ErrorList - - // Finalizers cannot be added if the object is already being deleted. - if oldMeta.GetDeletionTimestamp() != nil { - allErrs = append(allErrs, ValidateNoNewFinalizers(newMeta.GetFinalizers(), oldMeta.GetFinalizers(), fldPath.Child("finalizers"))...) - } - - // Reject updates that don't specify a resource version - if len(newMeta.GetResourceVersion()) == 0 { - allErrs = append(allErrs, field.Invalid(fldPath.Child("resourceVersion"), newMeta.GetResourceVersion(), "must be specified for an update")) - } - - // Generation shouldn't be decremented - if newMeta.GetGeneration() < oldMeta.GetGeneration() { - allErrs = append(allErrs, field.Invalid(fldPath.Child("generation"), newMeta.GetGeneration(), "must not be decremented")) - } - - for _, entry := range newMeta.GetManagedFields() { - allErrs = append(allErrs, v1validation.ValidateFieldManager(entry.Manager, fldPath.Child("fieldManager"))...) - } - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetName(), oldMeta.GetName(), fldPath.Child("name"))...) - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetNamespace(), oldMeta.GetNamespace(), fldPath.Child("namespace"))...) - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetUID(), oldMeta.GetUID(), fldPath.Child("uid"))...) - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetCreationTimestamp(), oldMeta.GetCreationTimestamp(), fldPath.Child("creationTimestamp"))...) - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetDeletionTimestamp(), oldMeta.GetDeletionTimestamp(), fldPath.Child("deletionTimestamp"))...) - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetDeletionGracePeriodSeconds(), oldMeta.GetDeletionGracePeriodSeconds(), fldPath.Child("deletionGracePeriodSeconds"))...) - allErrs = append(allErrs, ValidateImmutableField(newMeta.GetClusterName(), oldMeta.GetClusterName(), fldPath.Child("clusterName"))...) - - allErrs = append(allErrs, v1validation.ValidateLabels(newMeta.GetLabels(), fldPath.Child("labels"))...) - allErrs = append(allErrs, ValidateAnnotations(newMeta.GetAnnotations(), fldPath.Child("annotations"))...) - allErrs = append(allErrs, ValidateOwnerReferences(newMeta.GetOwnerReferences(), fldPath.Child("ownerReferences"))...) - allErrs = append(allErrs, v1validation.ValidateManagedFields(newMeta.GetManagedFields(), fldPath.Child("managedFields"))...) - - return allErrs -} diff --git a/pseudo/k8s/apimachinery/pkg/api/validation/objectmeta_test.go b/pseudo/k8s/apimachinery/pkg/api/validation/objectmeta_test.go deleted file mode 100644 index 2a88101e9..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/validation/objectmeta_test.go +++ /dev/null @@ -1,500 +0,0 @@ -/* -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 validation - -import ( - "math/rand" - "reflect" - "strings" - "testing" - "time" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -const ( - maxLengthErrMsg = "must be no more than" - namePartErrMsg = "name part must consist of" - nameErrMsg = "a qualified name must consist of" -) - -// Ensure custom name functions are allowed -func TestValidateObjectMetaCustomName(t *testing.T) { - errs := ValidateObjectMeta( - &metav1.ObjectMeta{Name: "test", GenerateName: "foo"}, - false, - func(s string, prefix bool) []string { - if s == "test" { - return nil - } - return []string{"name-gen"} - }, - field.NewPath("field")) - if len(errs) != 1 { - t.Fatalf("unexpected errors: %v", errs) - } - if !strings.Contains(errs[0].Error(), "name-gen") { - t.Errorf("unexpected error message: %v", errs) - } -} - -// Ensure namespace names follow dns label format -func TestValidateObjectMetaNamespaces(t *testing.T) { - errs := ValidateObjectMeta( - &metav1.ObjectMeta{Name: "test", Namespace: "foo.bar"}, - true, - func(s string, prefix bool) []string { - return nil - }, - field.NewPath("field")) - if len(errs) != 1 { - t.Fatalf("unexpected errors: %v", errs) - } - if !strings.Contains(errs[0].Error(), `Invalid value: "foo.bar"`) { - t.Errorf("unexpected error message: %v", errs) - } - maxLength := 63 - letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") - b := make([]rune, maxLength+1) - for i := range b { - b[i] = letters[rand.Intn(len(letters))] - } - errs = ValidateObjectMeta( - &metav1.ObjectMeta{Name: "test", Namespace: string(b)}, - true, - func(s string, prefix bool) []string { - return nil - }, - field.NewPath("field")) - if len(errs) != 2 { - t.Fatalf("unexpected errors: %v", errs) - } - if !strings.Contains(errs[0].Error(), "Invalid value") || !strings.Contains(errs[1].Error(), "Invalid value") { - t.Errorf("unexpected error message: %v", errs) - } -} - -func TestValidateObjectMetaOwnerReferences(t *testing.T) { - trueVar := true - falseVar := false - testCases := []struct { - description string - ownerReferences []metav1.OwnerReference - expectError bool - expectedErrorMessage string - }{ - { - description: "simple success - third party extension.", - ownerReferences: []metav1.OwnerReference{ - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "1", - }, - }, - expectError: false, - expectedErrorMessage: "", - }, - { - description: "simple failures - event shouldn't be set as an owner", - ownerReferences: []metav1.OwnerReference{ - { - APIVersion: "v1", - Kind: "Event", - Name: "name", - UID: "1", - }, - }, - expectError: true, - expectedErrorMessage: "is disallowed from being an owner", - }, - { - description: "simple controller ref success - one reference with Controller set", - ownerReferences: []metav1.OwnerReference{ - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "1", - Controller: &falseVar, - }, - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "2", - Controller: &trueVar, - }, - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "3", - Controller: &falseVar, - }, - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "4", - }, - }, - expectError: false, - expectedErrorMessage: "", - }, - { - description: "simple controller ref failure - two references with Controller set", - ownerReferences: []metav1.OwnerReference{ - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "1", - Controller: &falseVar, - }, - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "2", - Controller: &trueVar, - }, - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "3", - Controller: &trueVar, - }, - { - APIVersion: "customresourceVersion", - Kind: "customresourceKind", - Name: "name", - UID: "4", - }, - }, - expectError: true, - expectedErrorMessage: "Only one reference can have Controller set to true", - }, - } - - for _, tc := range testCases { - errs := ValidateObjectMeta( - &metav1.ObjectMeta{Name: "test", Namespace: "test", OwnerReferences: tc.ownerReferences}, - true, - func(s string, prefix bool) []string { - return nil - }, - field.NewPath("field")) - if len(errs) != 0 && !tc.expectError { - t.Errorf("unexpected error: %v in test case %v", errs, tc.description) - } - if len(errs) == 0 && tc.expectError { - t.Errorf("expect error in test case %v", tc.description) - } - if len(errs) != 0 && !strings.Contains(errs[0].Error(), tc.expectedErrorMessage) { - t.Errorf("unexpected error message: %v in test case %v", errs, tc.description) - } - } -} - -func TestValidateObjectMetaUpdateIgnoresCreationTimestamp(t *testing.T) { - if errs := ValidateObjectMetaUpdate( - &metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - &metav1.ObjectMeta{Name: "test", ResourceVersion: "1", CreationTimestamp: metav1.NewTime(time.Unix(10, 0))}, - field.NewPath("field"), - ); len(errs) != 1 { - t.Fatalf("unexpected errors: %v", errs) - } - if errs := ValidateObjectMetaUpdate( - &metav1.ObjectMeta{Name: "test", ResourceVersion: "1", CreationTimestamp: metav1.NewTime(time.Unix(10, 0))}, - &metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - field.NewPath("field"), - ); len(errs) != 1 { - t.Fatalf("unexpected errors: %v", errs) - } - if errs := ValidateObjectMetaUpdate( - &metav1.ObjectMeta{Name: "test", ResourceVersion: "1", CreationTimestamp: metav1.NewTime(time.Unix(10, 0))}, - &metav1.ObjectMeta{Name: "test", ResourceVersion: "1", CreationTimestamp: metav1.NewTime(time.Unix(11, 0))}, - field.NewPath("field"), - ); len(errs) != 1 { - t.Fatalf("unexpected errors: %v", errs) - } -} - -func TestValidateFinalizersUpdate(t *testing.T) { - testcases := map[string]struct { - Old metav1.ObjectMeta - New metav1.ObjectMeta - ExpectedErr string - }{ - "invalid adding finalizers": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a"}}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a", "y/b"}}, - ExpectedErr: "y/b", - }, - "invalid changing finalizers": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a"}}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/b"}}, - ExpectedErr: "x/b", - }, - "valid removing finalizers": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a", "y/b"}}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &metav1.Time{}, Finalizers: []string{"x/a"}}, - ExpectedErr: "", - }, - "valid adding finalizers for objects not being deleted": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Finalizers: []string{"x/a"}}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Finalizers: []string{"x/a", "y/b"}}, - ExpectedErr: "", - }, - } - for name, tc := range testcases { - errs := ValidateObjectMetaUpdate(&tc.New, &tc.Old, field.NewPath("field")) - if len(errs) == 0 { - if len(tc.ExpectedErr) != 0 { - t.Errorf("case: %q, expected error to contain %q", name, tc.ExpectedErr) - } - } else if e, a := tc.ExpectedErr, errs.ToAggregate().Error(); !strings.Contains(a, e) { - t.Errorf("case: %q, expected error to contain %q, got error %q", name, e, a) - } - } -} - -func TestValidateFinalizersPreventConflictingFinalizers(t *testing.T) { - testcases := map[string]struct { - ObjectMeta metav1.ObjectMeta - ExpectedErr string - }{ - "conflicting finalizers": { - ObjectMeta: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Finalizers: []string{metav1.FinalizerOrphanDependents, metav1.FinalizerDeleteDependents}}, - ExpectedErr: "cannot be both set", - }, - } - for name, tc := range testcases { - errs := ValidateObjectMeta(&tc.ObjectMeta, false, NameIsDNSSubdomain, field.NewPath("field")) - if len(errs) == 0 { - if len(tc.ExpectedErr) != 0 { - t.Errorf("case: %q, expected error to contain %q", name, tc.ExpectedErr) - } - } else if e, a := tc.ExpectedErr, errs.ToAggregate().Error(); !strings.Contains(a, e) { - t.Errorf("case: %q, expected error to contain %q, got error %q", name, e, a) - } - } -} - -func TestValidateObjectMetaUpdatePreventsDeletionFieldMutation(t *testing.T) { - now := metav1.NewTime(time.Unix(1000, 0).UTC()) - later := metav1.NewTime(time.Unix(2000, 0).UTC()) - gracePeriodShort := int64(30) - gracePeriodLong := int64(40) - - testcases := map[string]struct { - Old metav1.ObjectMeta - New metav1.ObjectMeta - ExpectedNew metav1.ObjectMeta - ExpectedErrs []string - }{ - "valid without deletion fields": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - ExpectedErrs: []string{}, - }, - "valid with deletion fields": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now, DeletionGracePeriodSeconds: &gracePeriodShort}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now, DeletionGracePeriodSeconds: &gracePeriodShort}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now, DeletionGracePeriodSeconds: &gracePeriodShort}, - ExpectedErrs: []string{}, - }, - - "invalid set deletionTimestamp": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now}, - ExpectedErrs: []string{"field.deletionTimestamp: Invalid value: 1970-01-01 00:16:40 +0000 UTC: field is immutable"}, - }, - "invalid clear deletionTimestamp": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - ExpectedErrs: []string{"field.deletionTimestamp: Invalid value: \"null\": field is immutable"}, - }, - "invalid change deletionTimestamp": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &now}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &later}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionTimestamp: &later}, - ExpectedErrs: []string{"field.deletionTimestamp: Invalid value: 1970-01-01 00:33:20 +0000 UTC: field is immutable"}, - }, - - "invalid set deletionGracePeriodSeconds": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionGracePeriodSeconds: &gracePeriodShort}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionGracePeriodSeconds: &gracePeriodShort}, - ExpectedErrs: []string{"field.deletionGracePeriodSeconds: Invalid value: 30: field is immutable"}, - }, - "invalid clear deletionGracePeriodSeconds": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionGracePeriodSeconds: &gracePeriodShort}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1"}, - ExpectedErrs: []string{"field.deletionGracePeriodSeconds: Invalid value: \"null\": field is immutable"}, - }, - "invalid change deletionGracePeriodSeconds": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionGracePeriodSeconds: &gracePeriodShort}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionGracePeriodSeconds: &gracePeriodLong}, - ExpectedNew: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", DeletionGracePeriodSeconds: &gracePeriodLong}, - ExpectedErrs: []string{"field.deletionGracePeriodSeconds: Invalid value: 40: field is immutable"}, - }, - } - - for k, tc := range testcases { - errs := ValidateObjectMetaUpdate(&tc.New, &tc.Old, field.NewPath("field")) - if len(errs) != len(tc.ExpectedErrs) { - t.Logf("%s: Expected: %#v", k, tc.ExpectedErrs) - t.Logf("%s: Got: %#v", k, errs) - t.Errorf("%s: expected %d errors, got %d", k, len(tc.ExpectedErrs), len(errs)) - continue - } - for i := range errs { - if errs[i].Error() != tc.ExpectedErrs[i] { - t.Errorf("%s: error #%d: expected %q, got %q", k, i, tc.ExpectedErrs[i], errs[i].Error()) - } - } - if !reflect.DeepEqual(tc.New, tc.ExpectedNew) { - t.Errorf("%s: Expected after validation:\n%#v\ngot\n%#v", k, tc.ExpectedNew, tc.New) - } - } -} - -func TestObjectMetaGenerationUpdate(t *testing.T) { - testcases := map[string]struct { - Old metav1.ObjectMeta - New metav1.ObjectMeta - ExpectedErrs []string - }{ - "invalid generation change - decremented": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Generation: 5}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Generation: 4}, - ExpectedErrs: []string{"field.generation: Invalid value: 4: must not be decremented"}, - }, - "valid generation change - incremented by one": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Generation: 1}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Generation: 2}, - ExpectedErrs: []string{}, - }, - "valid generation field - not updated": { - Old: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Generation: 5}, - New: metav1.ObjectMeta{Name: "test", ResourceVersion: "1", Generation: 5}, - ExpectedErrs: []string{}, - }, - } - - for k, tc := range testcases { - errList := []string{} - errs := ValidateObjectMetaUpdate(&tc.New, &tc.Old, field.NewPath("field")) - if len(errs) != len(tc.ExpectedErrs) { - t.Logf("%s: Expected: %#v", k, tc.ExpectedErrs) - for _, err := range errs { - errList = append(errList, err.Error()) - } - t.Logf("%s: Got: %#v", k, errList) - t.Errorf("%s: expected %d errors, got %d", k, len(tc.ExpectedErrs), len(errs)) - continue - } - for i := range errList { - if errList[i] != tc.ExpectedErrs[i] { - t.Errorf("%s: error #%d: expected %q, got %q", k, i, tc.ExpectedErrs[i], errList[i]) - } - } - } -} - -// Ensure trailing slash is allowed in generate name -func TestValidateObjectMetaTrimsTrailingSlash(t *testing.T) { - errs := ValidateObjectMeta( - &metav1.ObjectMeta{Name: "test", GenerateName: "foo-"}, - false, - NameIsDNSSubdomain, - field.NewPath("field")) - if len(errs) != 0 { - t.Fatalf("unexpected errors: %v", errs) - } -} - -func TestValidateAnnotations(t *testing.T) { - successCases := []map[string]string{ - {"simple": "bar"}, - {"now-with-dashes": "bar"}, - {"1-starts-with-num": "bar"}, - {"1234": "bar"}, - {"simple/simple": "bar"}, - {"now-with-dashes/simple": "bar"}, - {"now-with-dashes/now-with-dashes": "bar"}, - {"now.with.dots/simple": "bar"}, - {"now-with.dashes-and.dots/simple": "bar"}, - {"1-num.2-num/3-num": "bar"}, - {"1234/5678": "bar"}, - {"1.2.3.4/5678": "bar"}, - {"UpperCase123": "bar"}, - {"a": strings.Repeat("b", totalAnnotationSizeLimitB-1)}, - { - "a": strings.Repeat("b", totalAnnotationSizeLimitB/2-1), - "c": strings.Repeat("d", totalAnnotationSizeLimitB/2-1), - }, - } - for i := range successCases { - errs := ValidateAnnotations(successCases[i], field.NewPath("field")) - if len(errs) != 0 { - t.Errorf("case[%d] expected success, got %#v", i, errs) - } - } - - nameErrorCases := []struct { - annotations map[string]string - expect string - }{ - {map[string]string{"nospecialchars^=@": "bar"}, namePartErrMsg}, - {map[string]string{"cantendwithadash-": "bar"}, namePartErrMsg}, - {map[string]string{"only/one/slash": "bar"}, nameErrMsg}, - {map[string]string{strings.Repeat("a", 254): "bar"}, maxLengthErrMsg}, - } - for i := range nameErrorCases { - errs := ValidateAnnotations(nameErrorCases[i].annotations, field.NewPath("field")) - if len(errs) != 1 { - t.Errorf("case[%d]: expected failure", i) - } else { - if !strings.Contains(errs[0].Detail, nameErrorCases[i].expect) { - t.Errorf("case[%d]: error details do not include %q: %q", i, nameErrorCases[i].expect, errs[0].Detail) - } - } - } - totalSizeErrorCases := []map[string]string{ - {"a": strings.Repeat("b", totalAnnotationSizeLimitB)}, - { - "a": strings.Repeat("b", totalAnnotationSizeLimitB/2), - "c": strings.Repeat("d", totalAnnotationSizeLimitB/2), - }, - } - for i := range totalSizeErrorCases { - errs := ValidateAnnotations(totalSizeErrorCases[i], field.NewPath("field")) - if len(errs) != 1 { - t.Errorf("case[%d] expected failure", i) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/validation/path/name.go b/pseudo/k8s/apimachinery/pkg/api/validation/path/name.go deleted file mode 100644 index a50cd089d..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/validation/path/name.go +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2015 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 path - -import ( - "fmt" - "strings" -) - -// NameMayNotBe specifies strings that cannot be used as names specified as path segments (like the REST API or etcd store) -var NameMayNotBe = []string{".", ".."} - -// NameMayNotContain specifies substrings that cannot be used in names specified as path segments (like the REST API or etcd store) -var NameMayNotContain = []string{"/", "%"} - -// IsValidPathSegmentName validates the name can be safely encoded as a path segment -func IsValidPathSegmentName(name string) []string { - for _, illegalName := range NameMayNotBe { - if name == illegalName { - return []string{fmt.Sprintf(`may not be '%s'`, illegalName)} - } - } - - var errors []string - for _, illegalContent := range NameMayNotContain { - if strings.Contains(name, illegalContent) { - errors = append(errors, fmt.Sprintf(`may not contain '%s'`, illegalContent)) - } - } - - return errors -} - -// IsValidPathSegmentPrefix validates the name can be used as a prefix for a name which will be encoded as a path segment -// It does not check for exact matches with disallowed names, since an arbitrary suffix might make the name valid -func IsValidPathSegmentPrefix(name string) []string { - var errors []string - for _, illegalContent := range NameMayNotContain { - if strings.Contains(name, illegalContent) { - errors = append(errors, fmt.Sprintf(`may not contain '%s'`, illegalContent)) - } - } - - return errors -} - -// ValidatePathSegmentName validates the name can be safely encoded as a path segment -func ValidatePathSegmentName(name string, prefix bool) []string { - if prefix { - return IsValidPathSegmentPrefix(name) - } else { - return IsValidPathSegmentName(name) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/api/validation/path/name_test.go b/pseudo/k8s/apimachinery/pkg/api/validation/path/name_test.go deleted file mode 100644 index 428905273..000000000 --- a/pseudo/k8s/apimachinery/pkg/api/validation/path/name_test.go +++ /dev/null @@ -1,168 +0,0 @@ -/* -Copyright 2015 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 path - -import ( - "strings" - "testing" -) - -func TestValidatePathSegmentName(t *testing.T) { - testcases := map[string]struct { - Name string - Prefix bool - ExpectedMsg string - }{ - "empty": { - Name: "", - Prefix: false, - ExpectedMsg: "", - }, - "empty,prefix": { - Name: "", - Prefix: true, - ExpectedMsg: "", - }, - - "valid": { - Name: "foo.bar.baz", - Prefix: false, - ExpectedMsg: "", - }, - "valid,prefix": { - Name: "foo.bar.baz", - Prefix: true, - ExpectedMsg: "", - }, - - // Make sure mixed case, non DNS subdomain characters are tolerated - "valid complex": { - Name: "sha256:ABCDEF012345@ABCDEF012345", - Prefix: false, - ExpectedMsg: "", - }, - // Make sure non-ascii characters are tolerated - "valid extended charset": { - Name: "Iñtërnâtiônàlizætiøn", - Prefix: false, - ExpectedMsg: "", - }, - - "dot": { - Name: ".", - Prefix: false, - ExpectedMsg: ".", - }, - "dot leading": { - Name: ".test", - Prefix: false, - ExpectedMsg: "", - }, - "dot,prefix": { - Name: ".", - Prefix: true, - ExpectedMsg: "", - }, - - "dot dot": { - Name: "..", - Prefix: false, - ExpectedMsg: "..", - }, - "dot dot leading": { - Name: "..test", - Prefix: false, - ExpectedMsg: "", - }, - "dot dot,prefix": { - Name: "..", - Prefix: true, - ExpectedMsg: "", - }, - - "slash": { - Name: "foo/bar", - Prefix: false, - ExpectedMsg: "/", - }, - "slash,prefix": { - Name: "foo/bar", - Prefix: true, - ExpectedMsg: "/", - }, - - "percent": { - Name: "foo%bar", - Prefix: false, - ExpectedMsg: "%", - }, - "percent,prefix": { - Name: "foo%bar", - Prefix: true, - ExpectedMsg: "%", - }, - } - - for k, tc := range testcases { - msgs := ValidatePathSegmentName(tc.Name, tc.Prefix) - if len(tc.ExpectedMsg) == 0 && len(msgs) > 0 { - t.Errorf("%s: expected no message, got %v", k, msgs) - } - if len(tc.ExpectedMsg) > 0 && len(msgs) == 0 { - t.Errorf("%s: expected error message, got none", k) - } - if len(tc.ExpectedMsg) > 0 && !strings.Contains(msgs[0], tc.ExpectedMsg) { - t.Errorf("%s: expected message containing %q, got %v", k, tc.ExpectedMsg, msgs[0]) - } - } -} - -func TestValidateWithMultiErrors(t *testing.T) { - testcases := map[string]struct { - Name string - Prefix bool - ExpectedMsg []string - }{ - "slash,percent": { - Name: "foo//bar%", - Prefix: false, - ExpectedMsg: []string{"may not contain '/'", "may not contain '%'"}, - }, - "slash,percent,prefix": { - Name: "foo//bar%", - Prefix: true, - ExpectedMsg: []string{"may not contain '/'", "may not contain '%'"}, - }, - } - - for k, tc := range testcases { - msgs := ValidatePathSegmentName(tc.Name, tc.Prefix) - if len(tc.ExpectedMsg) == 0 && len(msgs) > 0 { - t.Errorf("%s: expected no message, got %v", k, msgs) - } - if len(tc.ExpectedMsg) > 0 && len(msgs) == 0 { - t.Errorf("%s: expected error message, got none", k) - } - if len(tc.ExpectedMsg) > 0 { - for i := 0; i < len(tc.ExpectedMsg); i++ { - if msgs[i] != tc.ExpectedMsg[i] { - t.Errorf("%s: expected message containing %q, got %v", k, tc.ExpectedMsg[i], msgs[i]) - } - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go b/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go deleted file mode 100644 index c9ffbeb17..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go +++ /dev/null @@ -1,331 +0,0 @@ -/* -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 fuzzer - -import ( - "fmt" - "math/rand" - "sort" - "strconv" - "strings" - - fuzz "github.com/google/gofuzz" - - apitesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - metav1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - runtimeserializer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -func genericFuzzerFuncs(codecs runtimeserializer.CodecFactory) []interface{} { - return []interface{}{ - func(q *resource.Quantity, c fuzz.Continue) { - *q = *resource.NewQuantity(c.Int63n(1000), resource.DecimalExponent) - }, - func(j *int, c fuzz.Continue) { - *j = int(c.Int31()) - }, - func(j **int, c fuzz.Continue) { - if c.RandBool() { - i := int(c.Int31()) - *j = &i - } else { - *j = nil - } - }, - func(j *runtime.TypeMeta, c fuzz.Continue) { - // We have to customize the randomization of TypeMetas because their - // APIVersion and Kind must remain blank in memory. - j.APIVersion = "" - j.Kind = "" - }, - func(j *runtime.Object, c fuzz.Continue) { - // TODO: uncomment when round trip starts from a versioned object - if true { //c.RandBool() { - *j = &runtime.Unknown{ - // We do not set TypeMeta here because it is not carried through a round trip - Raw: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`), - ContentType: runtime.ContentTypeJSON, - } - } else { - types := []runtime.Object{&metav1.Status{}, &metav1.APIGroup{}} - t := types[c.Rand.Intn(len(types))] - c.Fuzz(t) - *j = t - } - }, - func(r *runtime.RawExtension, c fuzz.Continue) { - // Pick an arbitrary type and fuzz it - types := []runtime.Object{&metav1.Status{}, &metav1.APIGroup{}} - obj := types[c.Rand.Intn(len(types))] - c.Fuzz(obj) - - // Find a codec for converting the object to raw bytes. This is necessary for the - // api version and kind to be correctly set be serialization. - var codec = apitesting.TestCodec(codecs, metav1.SchemeGroupVersion) - - // Convert the object to raw bytes - bytes, err := runtime.Encode(codec, obj) - if err != nil { - panic(fmt.Sprintf("Failed to encode object: %v", err)) - } - - // strip trailing newlines which do not survive roundtrips - for len(bytes) >= 1 && bytes[len(bytes)-1] == 10 { - bytes = bytes[:len(bytes)-1] - } - - // Set the bytes field on the RawExtension - r.Raw = bytes - }, - } -} - -// taken from gofuzz internals for RandString -type charRange struct { - first, last rune -} - -func (c *charRange) choose(r *rand.Rand) rune { - count := int64(c.last - c.first + 1) - ch := c.first + rune(r.Int63n(count)) - - return ch -} - -// randomLabelPart produces a valid random label value or name-part -// of a label key. -func randomLabelPart(c fuzz.Continue, canBeEmpty bool) string { - validStartEnd := []charRange{{'0', '9'}, {'a', 'z'}, {'A', 'Z'}} - validMiddle := []charRange{{'0', '9'}, {'a', 'z'}, {'A', 'Z'}, - {'.', '.'}, {'-', '-'}, {'_', '_'}} - - partLen := c.Rand.Intn(64) // len is [0, 63] - if !canBeEmpty { - partLen = c.Rand.Intn(63) + 1 // len is [1, 63] - } - - runes := make([]rune, partLen) - if partLen == 0 { - return string(runes) - } - - runes[0] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand) - for i := range runes[1:] { - runes[i+1] = validMiddle[c.Rand.Intn(len(validMiddle))].choose(c.Rand) - } - runes[len(runes)-1] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand) - - return string(runes) -} - -func randomDNSLabel(c fuzz.Continue) string { - validStartEnd := []charRange{{'0', '9'}, {'a', 'z'}} - validMiddle := []charRange{{'0', '9'}, {'a', 'z'}, {'-', '-'}} - - partLen := c.Rand.Intn(63) + 1 // len is [1, 63] - runes := make([]rune, partLen) - - runes[0] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand) - for i := range runes[1:] { - runes[i+1] = validMiddle[c.Rand.Intn(len(validMiddle))].choose(c.Rand) - } - runes[len(runes)-1] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand) - - return string(runes) -} - -func randomLabelKey(c fuzz.Continue) string { - namePart := randomLabelPart(c, false) - prefixPart := "" - - usePrefix := c.RandBool() - if usePrefix { - // we can fit, with dots, at most 3 labels in the 253 allotted characters - prefixPartsLen := c.Rand.Intn(2) + 1 - prefixParts := make([]string, prefixPartsLen) - for i := range prefixParts { - prefixParts[i] = randomDNSLabel(c) - } - prefixPart = strings.Join(prefixParts, ".") + "/" - } - - return prefixPart + namePart -} - -func v1FuzzerFuncs(codecs runtimeserializer.CodecFactory) []interface{} { - - return []interface{}{ - func(j *metav1.TypeMeta, c fuzz.Continue) { - // We have to customize the randomization of TypeMetas because their - // APIVersion and Kind must remain blank in memory. - j.APIVersion = "" - j.Kind = "" - }, - func(j *metav1.ObjectMeta, c fuzz.Continue) { - c.FuzzNoCustom(j) - - j.ResourceVersion = strconv.FormatUint(c.RandUint64(), 10) - j.UID = types.UID(c.RandString()) - - var sec, nsec int64 - c.Fuzz(&sec) - c.Fuzz(&nsec) - j.CreationTimestamp = metav1.Unix(sec, nsec).Rfc3339Copy() - - if j.DeletionTimestamp != nil { - c.Fuzz(&sec) - c.Fuzz(&nsec) - t := metav1.Unix(sec, nsec).Rfc3339Copy() - j.DeletionTimestamp = &t - } - - if len(j.Labels) == 0 { - j.Labels = nil - } else { - delete(j.Labels, "") - } - if len(j.Annotations) == 0 { - j.Annotations = nil - } else { - delete(j.Annotations, "") - } - if len(j.OwnerReferences) == 0 { - j.OwnerReferences = nil - } - if len(j.Finalizers) == 0 { - j.Finalizers = nil - } - }, - func(j *metav1.ListMeta, c fuzz.Continue) { - j.ResourceVersion = strconv.FormatUint(c.RandUint64(), 10) - j.SelfLink = c.RandString() - }, - func(j *metav1.LabelSelector, c fuzz.Continue) { - c.FuzzNoCustom(j) - // we can't have an entirely empty selector, so force - // use of MatchExpression if necessary - if len(j.MatchLabels) == 0 && len(j.MatchExpressions) == 0 { - j.MatchExpressions = make([]metav1.LabelSelectorRequirement, c.Rand.Intn(2)+1) - } - - if j.MatchLabels != nil { - fuzzedMatchLabels := make(map[string]string, len(j.MatchLabels)) - for i := 0; i < len(j.MatchLabels); i++ { - fuzzedMatchLabels[randomLabelKey(c)] = randomLabelPart(c, true) - } - j.MatchLabels = fuzzedMatchLabels - } - - validOperators := []metav1.LabelSelectorOperator{ - metav1.LabelSelectorOpIn, - metav1.LabelSelectorOpNotIn, - metav1.LabelSelectorOpExists, - metav1.LabelSelectorOpDoesNotExist, - } - - if j.MatchExpressions != nil { - // NB: the label selector parser code sorts match expressions by key, and sorts the values, - // so we need to make sure ours are sorted as well here to preserve round-trip comparison. - // In practice, not sorting doesn't hurt anything... - - for i := range j.MatchExpressions { - req := metav1.LabelSelectorRequirement{} - c.Fuzz(&req) - req.Key = randomLabelKey(c) - req.Operator = validOperators[c.Rand.Intn(len(validOperators))] - if req.Operator == metav1.LabelSelectorOpIn || req.Operator == metav1.LabelSelectorOpNotIn { - if len(req.Values) == 0 { - // we must have some values here, so randomly choose a short length - req.Values = make([]string, c.Rand.Intn(2)+1) - } - for i := range req.Values { - req.Values[i] = randomLabelPart(c, true) - } - sort.Strings(req.Values) - } else { - req.Values = nil - } - j.MatchExpressions[i] = req - } - - sort.Slice(j.MatchExpressions, func(a, b int) bool { return j.MatchExpressions[a].Key < j.MatchExpressions[b].Key }) - } - }, - func(j *metav1.ManagedFieldsEntry, c fuzz.Continue) { - c.FuzzNoCustom(j) - j.FieldsV1 = nil - }, - } -} - -func v1beta1FuzzerFuncs(codecs runtimeserializer.CodecFactory) []interface{} { - return []interface{}{ - func(r *metav1beta1.TableOptions, c fuzz.Continue) { - c.FuzzNoCustom(r) - // NoHeaders is not serialized to the wire but is allowed within the versioned - // type because we don't use meta internal types in the client and API server. - r.NoHeaders = false - }, - func(r *metav1beta1.TableRow, c fuzz.Continue) { - c.Fuzz(&r.Object) - c.Fuzz(&r.Conditions) - if len(r.Conditions) == 0 { - r.Conditions = nil - } - n := c.Intn(10) - if n > 0 { - r.Cells = make([]interface{}, n) - } - for i := range r.Cells { - t := c.Intn(6) - switch t { - case 0: - r.Cells[i] = c.RandString() - case 1: - r.Cells[i] = c.Int63() - case 2: - r.Cells[i] = c.RandBool() - case 3: - x := map[string]interface{}{} - for j := c.Intn(10) + 1; j >= 0; j-- { - x[c.RandString()] = c.RandString() - } - r.Cells[i] = x - case 4: - x := make([]interface{}, c.Intn(10)) - for i := range x { - x[i] = c.Int63() - } - r.Cells[i] = x - default: - r.Cells[i] = nil - } - } - }, - } -} - -var Funcs = fuzzer.MergeFuzzerFuncs( - genericFuzzerFuncs, - v1FuzzerFuncs, - v1beta1FuzzerFuncs, -) diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/doc.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/doc.go deleted file mode 100644 index 575cf52e9..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:conversion-gen=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1 - -package internalversion // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion" diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register.go deleted file mode 100644 index f864e1cbc..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -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 internalversion - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - metav1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" -) - -// GroupName is the group name for this API. -const GroupName = "meta.k8s.io" - -// Scheme is the registry for any type that adheres to the meta API spec. -var scheme = runtime.NewScheme() - -var ( - // TODO: move SchemeBuilder with zz_generated.deepcopy.go to sigs.k8s.io/kustomize/pseudo/k8s/api. - // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -// Codecs provides access to encoding and decoding for the scheme. -var Codecs = serializer.NewCodecFactory(scheme) - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} - -// ParameterCodec handles versioning of objects that are converted to query parameters. -var ParameterCodec = runtime.NewParameterCodec(scheme) - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// addToGroupVersion registers common meta types into schemas. -func addToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion) error { - if err := scheme.AddIgnoredConversionType(&metav1.TypeMeta{}, &metav1.TypeMeta{}); err != nil { - return err - } - err := scheme.AddConversionFuncs( - metav1.Convert_string_To_labels_Selector, - metav1.Convert_labels_Selector_To_string, - - metav1.Convert_string_To_fields_Selector, - metav1.Convert_fields_Selector_To_string, - - metav1.Convert_Map_string_To_string_To_v1_LabelSelector, - metav1.Convert_v1_LabelSelector_To_Map_string_To_string, - ) - if err != nil { - return err - } - // ListOptions is the only options struct which needs conversion (it exposes labels and fields - // as selectors for convenience). The other types have only a single representation today. - scheme.AddKnownTypes(SchemeGroupVersion, - &ListOptions{}, - &metav1.GetOptions{}, - &metav1.ExportOptions{}, - &metav1.DeleteOptions{}, - &metav1.CreateOptions{}, - &metav1.UpdateOptions{}, - ) - scheme.AddKnownTypes(SchemeGroupVersion, - &metav1beta1.Table{}, - &metav1beta1.TableOptions{}, - &metav1beta1.PartialObjectMetadata{}, - &metav1beta1.PartialObjectMetadataList{}, - ) - if err := metav1beta1.AddMetaToScheme(scheme); err != nil { - return err - } - if err := metav1.AddMetaToScheme(scheme); err != nil { - return err - } - // Allow delete options to be decoded across all version in this scheme (we may want to be more clever than this) - scheme.AddUnversionedTypes(SchemeGroupVersion, - &metav1.DeleteOptions{}, - &metav1.CreateOptions{}, - &metav1.UpdateOptions{}) - metav1.AddToGroupVersion(scheme, metav1.SchemeGroupVersion) - return nil -} - -// Unlike other API groups, meta internal knows about all meta external versions, but keeps -// the logic for conversion private. -func init() { - if err := addToGroupVersion(scheme, SchemeGroupVersion); err != nil { - panic(err) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register_test.go deleted file mode 100644 index 7bfcd91d5..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/register_test.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -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 internalversion - -import ( - "net/url" - "reflect" - "testing" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestListOptions(t *testing.T) { - // verify round trip conversion - ten := int64(10) - in := &metav1.ListOptions{ - LabelSelector: "a=1", - FieldSelector: "b=1", - ResourceVersion: "10", - TimeoutSeconds: &ten, - Watch: true, - } - out := &ListOptions{} - if err := scheme.Convert(in, out, nil); err != nil { - t.Fatal(err) - } - actual := &metav1.ListOptions{} - if err := scheme.Convert(out, actual, nil); err != nil { - t.Fatal(err) - } - if !reflect.DeepEqual(in, actual) { - t.Errorf("unexpected: %s", diff.ObjectReflectDiff(in, actual)) - } - - // verify failing conversion - for i, failingObject := range []*metav1.ListOptions{ - {LabelSelector: "a!!!"}, - {FieldSelector: "a!!!"}, - } { - out = &ListOptions{} - if err := scheme.Convert(failingObject, out, nil); err == nil { - t.Errorf("%d: unexpected conversion: %#v", i, out) - } - } - - // verify kind registration - if gvks, unversioned, err := scheme.ObjectKinds(in); err != nil || unversioned || gvks[0] != metav1.SchemeGroupVersion.WithKind("ListOptions") { - t.Errorf("unexpected: %v %v %v", gvks[0], unversioned, err) - } - if gvks, unversioned, err := scheme.ObjectKinds(out); err != nil || unversioned || gvks[0] != SchemeGroupVersion.WithKind("ListOptions") { - t.Errorf("unexpected: %v %v %v", gvks[0], unversioned, err) - } - - actual = &metav1.ListOptions{} - if err := ParameterCodec.DecodeParameters(url.Values{"watch": []string{"1"}}, metav1.SchemeGroupVersion, actual); err != nil { - t.Fatal(err) - } - if !actual.Watch { - t.Errorf("unexpected watch decode: %#v", actual) - } - - // check ParameterCodec - query, err := ParameterCodec.EncodeParameters(in, metav1.SchemeGroupVersion) - if err != nil { - t.Fatal(err) - } - actual = &metav1.ListOptions{} - if err := ParameterCodec.DecodeParameters(query, metav1.SchemeGroupVersion, actual); err != nil { - t.Fatal(err) - } - if !reflect.DeepEqual(in, actual) { - t.Errorf("unexpected: %s", diff.ObjectReflectDiff(in, actual)) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/roundtrip_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/roundtrip_test.go deleted file mode 100644 index cd4a3a15c..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/roundtrip_test.go +++ /dev/null @@ -1,28 +0,0 @@ -/* -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 internalversion - -import ( - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" -) - -func TestRoundTrip(t *testing.T) { - roundtrip.RoundTripTestForScheme(t, scheme, fuzzer.Funcs) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/types.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/types.go deleted file mode 100644 index e62e7cd07..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/types.go +++ /dev/null @@ -1,76 +0,0 @@ -/* -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 internalversion - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/fields" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/labels" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// ListOptions is the query options to a standard REST list call. -type ListOptions struct { - metav1.TypeMeta - - // A selector based on labels - LabelSelector labels.Selector - // A selector based on fields - FieldSelector fields.Selector - // If true, watch for changes to this list - Watch bool - // allowWatchBookmarks requests watch events with type "BOOKMARK". - // Servers that do not implement bookmarks may ignore this flag and - // bookmarks are sent at the server's discretion. Clients should not - // assume bookmarks are returned at any specific interval, nor may they - // assume the server will send any BOOKMARK event during a session. - // If this is not a watch, this field is ignored. - // If the feature gate WatchBookmarks is not enabled in apiserver, - // this field is ignored. - AllowWatchBookmarks bool - // When specified with a watch call, shows changes that occur after that particular version of a resource. - // Defaults to changes from the beginning of history. - // When specified for list: - // - if unset, then the result is returned from remote storage based on quorum-read flag; - // - if it's 0, then we simply return what we currently have in cache, no guarantee; - // - if set to non zero, then the result is at least as fresh as given rv. - ResourceVersion string - // Timeout for the list/watch call. - TimeoutSeconds *int64 - // Limit specifies the maximum number of results to return from the server. The server may - // not support this field on all resource types, but if it does and more results remain it - // will set the continue field on the returned list object. - Limit int64 - // Continue is a token returned by the server that lets a client retrieve chunks of results - // from the server by specifying limit. The server may reject requests for continuation tokens - // it does not recognize and will return a 410 error if the token can no longer be used because - // it has expired. - Continue string -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// List holds a list of objects, which may not be known by the server. -type List struct { - metav1.TypeMeta - // +optional - metav1.ListMeta - - Items []runtime.Object -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.conversion.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.conversion.go deleted file mode 100644 index 387bfc526..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.conversion.go +++ /dev/null @@ -1,143 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by conversion-gen. DO NOT EDIT. - -package internalversion - -import ( - unsafe "unsafe" - - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - conversion "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func init() { - localSchemeBuilder.Register(RegisterConversions) -} - -// RegisterConversions adds conversion functions to the given scheme. -// Public to allow building arbitrary schemes. -func RegisterConversions(s *runtime.Scheme) error { - if err := s.AddGeneratedConversionFunc((*List)(nil), (*v1.List)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_internalversion_List_To_v1_List(a.(*List), b.(*v1.List), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1.List)(nil), (*List)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_List_To_internalversion_List(a.(*v1.List), b.(*List), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ListOptions)(nil), (*v1.ListOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_internalversion_ListOptions_To_v1_ListOptions(a.(*ListOptions), b.(*v1.ListOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*v1.ListOptions)(nil), (*ListOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ListOptions_To_internalversion_ListOptions(a.(*v1.ListOptions), b.(*ListOptions), scope) - }); err != nil { - return err - } - return nil -} - -func autoConvert_internalversion_List_To_v1_List(in *List, out *v1.List, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.RawExtension, len(*in)) - for i := range *in { - if err := runtime.Convert_runtime_Object_To_runtime_RawExtension(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_internalversion_List_To_v1_List is an autogenerated conversion function. -func Convert_internalversion_List_To_v1_List(in *List, out *v1.List, s conversion.Scope) error { - return autoConvert_internalversion_List_To_v1_List(in, out, s) -} - -func autoConvert_v1_List_To_internalversion_List(in *v1.List, out *List, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.Object, len(*in)) - for i := range *in { - if err := runtime.Convert_runtime_RawExtension_To_runtime_Object(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1_List_To_internalversion_List is an autogenerated conversion function. -func Convert_v1_List_To_internalversion_List(in *v1.List, out *List, s conversion.Scope) error { - return autoConvert_v1_List_To_internalversion_List(in, out, s) -} - -func autoConvert_internalversion_ListOptions_To_v1_ListOptions(in *ListOptions, out *v1.ListOptions, s conversion.Scope) error { - if err := v1.Convert_labels_Selector_To_string(&in.LabelSelector, &out.LabelSelector, s); err != nil { - return err - } - if err := v1.Convert_fields_Selector_To_string(&in.FieldSelector, &out.FieldSelector, s); err != nil { - return err - } - out.Watch = in.Watch - out.AllowWatchBookmarks = in.AllowWatchBookmarks - out.ResourceVersion = in.ResourceVersion - out.TimeoutSeconds = (*int64)(unsafe.Pointer(in.TimeoutSeconds)) - out.Limit = in.Limit - out.Continue = in.Continue - return nil -} - -// Convert_internalversion_ListOptions_To_v1_ListOptions is an autogenerated conversion function. -func Convert_internalversion_ListOptions_To_v1_ListOptions(in *ListOptions, out *v1.ListOptions, s conversion.Scope) error { - return autoConvert_internalversion_ListOptions_To_v1_ListOptions(in, out, s) -} - -func autoConvert_v1_ListOptions_To_internalversion_ListOptions(in *v1.ListOptions, out *ListOptions, s conversion.Scope) error { - if err := v1.Convert_string_To_labels_Selector(&in.LabelSelector, &out.LabelSelector, s); err != nil { - return err - } - if err := v1.Convert_string_To_fields_Selector(&in.FieldSelector, &out.FieldSelector, s); err != nil { - return err - } - out.Watch = in.Watch - out.AllowWatchBookmarks = in.AllowWatchBookmarks - out.ResourceVersion = in.ResourceVersion - out.TimeoutSeconds = (*int64)(unsafe.Pointer(in.TimeoutSeconds)) - out.Limit = in.Limit - out.Continue = in.Continue - return nil -} - -// Convert_v1_ListOptions_To_internalversion_ListOptions is an autogenerated conversion function. -func Convert_v1_ListOptions_To_internalversion_ListOptions(in *v1.ListOptions, out *ListOptions, s conversion.Scope) error { - return autoConvert_v1_ListOptions_To_internalversion_ListOptions(in, out, s) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.deepcopy.go deleted file mode 100644 index 70838d3ce..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/internalversion/zz_generated.deepcopy.go +++ /dev/null @@ -1,96 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package internalversion - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *List) DeepCopyInto(out *List) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.Object, len(*in)) - for i := range *in { - if (*in)[i] != nil { - (*out)[i] = (*in)[i].DeepCopyObject() - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List. -func (in *List) DeepCopy() *List { - if in == nil { - return nil - } - out := new(List) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *List) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ListOptions) DeepCopyInto(out *ListOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.LabelSelector != nil { - out.LabelSelector = in.LabelSelector.DeepCopySelector() - } - if in.FieldSelector != nil { - out.FieldSelector = in.FieldSelector.DeepCopySelector() - } - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListOptions. -func (in *ListOptions) DeepCopy() *ListOptions { - if in == nil { - return nil - } - out := new(ListOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ListOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref.go deleted file mode 100644 index dd82d90e8..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref.go +++ /dev/null @@ -1,54 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// IsControlledBy checks if the object has a controllerRef set to the given owner -func IsControlledBy(obj Object, owner Object) bool { - ref := GetControllerOf(obj) - if ref == nil { - return false - } - return ref.UID == owner.GetUID() -} - -// GetControllerOf returns a pointer to a copy of the controllerRef if controllee has a controller -func GetControllerOf(controllee Object) *OwnerReference { - for _, ref := range controllee.GetOwnerReferences() { - if ref.Controller != nil && *ref.Controller { - return &ref - } - } - return nil -} - -// NewControllerRef creates an OwnerReference pointing to the given owner. -func NewControllerRef(owner Object, gvk schema.GroupVersionKind) *OwnerReference { - blockOwnerDeletion := true - isController := true - return &OwnerReference{ - APIVersion: gvk.GroupVersion().String(), - Kind: gvk.Kind, - Name: owner.GetName(), - UID: owner.GetUID(), - BlockOwnerDeletion: &blockOwnerDeletion, - Controller: &isController, - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref_test.go deleted file mode 100644 index 5a9ed5b6f..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/controller_ref_test.go +++ /dev/null @@ -1,133 +0,0 @@ -/* -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 v1 - -import ( - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -type metaObj struct { - ObjectMeta - TypeMeta -} - -func TestNewControllerRef(t *testing.T) { - gvk := schema.GroupVersionKind{ - Group: "group", - Version: "v1", - Kind: "Kind", - } - obj1 := &metaObj{ - ObjectMeta: ObjectMeta{ - Name: "name", - UID: "uid1", - }, - } - controllerRef := NewControllerRef(obj1, gvk) - if controllerRef.UID != obj1.UID { - t.Errorf("Incorrect UID: %s", controllerRef.UID) - } - if controllerRef.Controller == nil || *controllerRef.Controller != true { - t.Error("Controller must be set to true") - } - if controllerRef.BlockOwnerDeletion == nil || *controllerRef.BlockOwnerDeletion != true { - t.Error("BlockOwnerDeletion must be set to true") - } - if controllerRef.APIVersion == "" || - controllerRef.Kind == "" || - controllerRef.Name == "" { - t.Errorf("All controllerRef fields must be set: %v", controllerRef) - } -} - -func TestGetControllerOf(t *testing.T) { - gvk := schema.GroupVersionKind{ - Group: "group", - Version: "v1", - Kind: "Kind", - } - obj1 := &metaObj{ - ObjectMeta: ObjectMeta{ - UID: "uid1", - Name: "name1", - }, - } - controllerRef := NewControllerRef(obj1, gvk) - var falseRef = false - obj2 := &metaObj{ - ObjectMeta: ObjectMeta{ - UID: "uid2", - Name: "name1", - OwnerReferences: []OwnerReference{ - { - Name: "owner1", - Controller: &falseRef, - }, - *controllerRef, - { - Name: "owner2", - Controller: &falseRef, - }, - }, - }, - } - - if GetControllerOf(obj1) != nil { - t.Error("GetControllerOf must return null") - } - c := GetControllerOf(obj2) - if c.Name != controllerRef.Name || c.UID != controllerRef.UID { - t.Errorf("Incorrect result of GetControllerOf: %v", c) - } -} - -func TestIsControlledBy(t *testing.T) { - gvk := schema.GroupVersionKind{ - Group: "group", - Version: "v1", - Kind: "Kind", - } - obj1 := &metaObj{ - ObjectMeta: ObjectMeta{ - UID: "uid1", - }, - } - obj2 := &metaObj{ - ObjectMeta: ObjectMeta{ - UID: "uid2", - OwnerReferences: []OwnerReference{ - *NewControllerRef(obj1, gvk), - }, - }, - } - obj3 := &metaObj{ - ObjectMeta: ObjectMeta{ - UID: "uid3", - OwnerReferences: []OwnerReference{ - *NewControllerRef(obj2, gvk), - }, - }, - } - if !IsControlledBy(obj2, obj1) || !IsControlledBy(obj3, obj2) { - t.Error("Incorrect IsControlledBy result: false") - } - if IsControlledBy(obj3, obj1) { - t.Error("Incorrect IsControlledBy result: true") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion.go deleted file mode 100644 index dc407ce1e..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion.go +++ /dev/null @@ -1,329 +0,0 @@ -/* -Copyright 2014 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 v1 - -import ( - "fmt" - "strconv" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/resource" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/fields" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/labels" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr" -) - -func AddConversionFuncs(scheme *runtime.Scheme) error { - return scheme.AddConversionFuncs( - Convert_v1_TypeMeta_To_v1_TypeMeta, - - Convert_v1_ListMeta_To_v1_ListMeta, - - Convert_intstr_IntOrString_To_intstr_IntOrString, - - Convert_Pointer_v1_Duration_To_v1_Duration, - Convert_v1_Duration_To_Pointer_v1_Duration, - - Convert_Slice_string_To_v1_Time, - - Convert_v1_Time_To_v1_Time, - Convert_v1_MicroTime_To_v1_MicroTime, - - Convert_resource_Quantity_To_resource_Quantity, - - Convert_string_To_labels_Selector, - Convert_labels_Selector_To_string, - - Convert_string_To_fields_Selector, - Convert_fields_Selector_To_string, - - Convert_Pointer_bool_To_bool, - Convert_bool_To_Pointer_bool, - - Convert_Pointer_string_To_string, - Convert_string_To_Pointer_string, - - Convert_Pointer_int64_To_int, - Convert_int_To_Pointer_int64, - - Convert_Pointer_int32_To_int32, - Convert_int32_To_Pointer_int32, - - Convert_Pointer_int64_To_int64, - Convert_int64_To_Pointer_int64, - - Convert_Pointer_float64_To_float64, - Convert_float64_To_Pointer_float64, - - Convert_Map_string_To_string_To_v1_LabelSelector, - Convert_v1_LabelSelector_To_Map_string_To_string, - - Convert_Slice_string_To_Slice_int32, - - Convert_Slice_string_To_v1_DeletionPropagation, - - Convert_Slice_string_To_v1_IncludeObjectPolicy, - ) -} - -func Convert_Pointer_float64_To_float64(in **float64, out *float64, s conversion.Scope) error { - if *in == nil { - *out = 0 - return nil - } - *out = float64(**in) - return nil -} - -func Convert_float64_To_Pointer_float64(in *float64, out **float64, s conversion.Scope) error { - temp := float64(*in) - *out = &temp - return nil -} - -func Convert_Pointer_int32_To_int32(in **int32, out *int32, s conversion.Scope) error { - if *in == nil { - *out = 0 - return nil - } - *out = int32(**in) - return nil -} - -func Convert_int32_To_Pointer_int32(in *int32, out **int32, s conversion.Scope) error { - temp := int32(*in) - *out = &temp - return nil -} - -func Convert_Pointer_int64_To_int64(in **int64, out *int64, s conversion.Scope) error { - if *in == nil { - *out = 0 - return nil - } - *out = int64(**in) - return nil -} - -func Convert_int64_To_Pointer_int64(in *int64, out **int64, s conversion.Scope) error { - temp := int64(*in) - *out = &temp - return nil -} - -func Convert_Pointer_int64_To_int(in **int64, out *int, s conversion.Scope) error { - if *in == nil { - *out = 0 - return nil - } - *out = int(**in) - return nil -} - -func Convert_int_To_Pointer_int64(in *int, out **int64, s conversion.Scope) error { - temp := int64(*in) - *out = &temp - return nil -} - -func Convert_Pointer_string_To_string(in **string, out *string, s conversion.Scope) error { - if *in == nil { - *out = "" - return nil - } - *out = **in - return nil -} - -func Convert_string_To_Pointer_string(in *string, out **string, s conversion.Scope) error { - if in == nil { - stringVar := "" - *out = &stringVar - return nil - } - *out = in - return nil -} - -func Convert_Pointer_bool_To_bool(in **bool, out *bool, s conversion.Scope) error { - if *in == nil { - *out = false - return nil - } - *out = **in - return nil -} - -func Convert_bool_To_Pointer_bool(in *bool, out **bool, s conversion.Scope) error { - if in == nil { - boolVar := false - *out = &boolVar - return nil - } - *out = in - return nil -} - -// +k8s:conversion-fn=drop -func Convert_v1_TypeMeta_To_v1_TypeMeta(in, out *TypeMeta, s conversion.Scope) error { - // These values are explicitly not copied - //out.APIVersion = in.APIVersion - //out.Kind = in.Kind - return nil -} - -// +k8s:conversion-fn=copy-only -func Convert_v1_ListMeta_To_v1_ListMeta(in, out *ListMeta, s conversion.Scope) error { - *out = *in - return nil -} - -// +k8s:conversion-fn=copy-only -func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error { - *out = *in - return nil -} - -// +k8s:conversion-fn=copy-only -func Convert_v1_Time_To_v1_Time(in *Time, out *Time, s conversion.Scope) error { - // Cannot deep copy these, because time.Time has unexported fields. - *out = *in - return nil -} - -// +k8s:conversion-fn=copy-only -func Convert_v1_MicroTime_To_v1_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error { - // Cannot deep copy these, because time.Time has unexported fields. - *out = *in - return nil -} - -func Convert_Pointer_v1_Duration_To_v1_Duration(in **Duration, out *Duration, s conversion.Scope) error { - if *in == nil { - *out = Duration{} // zero duration - return nil - } - *out = **in // copy - return nil -} - -func Convert_v1_Duration_To_Pointer_v1_Duration(in *Duration, out **Duration, s conversion.Scope) error { - temp := *in //copy - *out = &temp - return nil -} - -// Convert_Slice_string_To_v1_Time allows converting a URL query parameter value -func Convert_Slice_string_To_v1_Time(input *[]string, out *Time, s conversion.Scope) error { - str := "" - if len(*input) > 0 { - str = (*input)[0] - } - return out.UnmarshalQueryParameter(str) -} - -func Convert_string_To_labels_Selector(in *string, out *labels.Selector, s conversion.Scope) error { - selector, err := labels.Parse(*in) - if err != nil { - return err - } - *out = selector - return nil -} - -func Convert_string_To_fields_Selector(in *string, out *fields.Selector, s conversion.Scope) error { - selector, err := fields.ParseSelector(*in) - if err != nil { - return err - } - *out = selector - return nil -} - -func Convert_labels_Selector_To_string(in *labels.Selector, out *string, s conversion.Scope) error { - if *in == nil { - return nil - } - *out = (*in).String() - return nil -} - -func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conversion.Scope) error { - if *in == nil { - return nil - } - *out = (*in).String() - return nil -} - -// +k8s:conversion-fn=copy-only -func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error { - *out = *in - return nil -} - -func Convert_Map_string_To_string_To_v1_LabelSelector(in *map[string]string, out *LabelSelector, s conversion.Scope) error { - if in == nil { - return nil - } - for labelKey, labelValue := range *in { - AddLabelToSelector(out, labelKey, labelValue) - } - return nil -} - -func Convert_v1_LabelSelector_To_Map_string_To_string(in *LabelSelector, out *map[string]string, s conversion.Scope) error { - var err error - *out, err = LabelSelectorAsMap(in) - return err -} - -// Convert_Slice_string_To_Slice_int32 converts multiple query parameters or -// a single query parameter with a comma delimited value to multiple int32. -// This is used for port forwarding which needs the ports as int32. -func Convert_Slice_string_To_Slice_int32(in *[]string, out *[]int32, s conversion.Scope) error { - for _, s := range *in { - for _, v := range strings.Split(s, ",") { - x, err := strconv.ParseUint(v, 10, 16) - if err != nil { - return fmt.Errorf("cannot convert to []int32: %v", err) - } - *out = append(*out, int32(x)) - } - } - return nil -} - -// Convert_Slice_string_To_v1_DeletionPropagation allows converting a URL query parameter propagationPolicy -func Convert_Slice_string_To_v1_DeletionPropagation(input *[]string, out *DeletionPropagation, s conversion.Scope) error { - if len(*input) > 0 { - *out = DeletionPropagation((*input)[0]) - } else { - *out = "" - } - return nil -} - -// Convert_Slice_string_To_v1_IncludeObjectPolicy allows converting a URL query parameter value -func Convert_Slice_string_To_v1_IncludeObjectPolicy(input *[]string, out *IncludeObjectPolicy, s conversion.Scope) error { - if len(*input) > 0 { - *out = IncludeObjectPolicy((*input)[0]) - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion_test.go deleted file mode 100644 index df94b19b5..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/conversion_test.go +++ /dev/null @@ -1,84 +0,0 @@ -/* -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 v1_test - -import ( - "testing" - - apiequality "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -func TestMapToLabelSelectorRoundTrip(t *testing.T) { - // We should be able to round-trip a map-only selector through LabelSelector. - inputs := []map[string]string{ - nil, - {}, - {"one": "foo"}, - {"one": "foo", "two": "bar"}, - } - for _, in := range inputs { - ls := &v1.LabelSelector{} - if err := v1.Convert_Map_string_To_string_To_v1_LabelSelector(&in, ls, nil); err != nil { - t.Errorf("Convert_Map_string_To_string_To_v1_LabelSelector(%#v): %v", in, err) - continue - } - out := map[string]string{} - if err := v1.Convert_v1_LabelSelector_To_Map_string_To_string(ls, &out, nil); err != nil { - t.Errorf("Convert_v1_LabelSelector_To_Map_string_To_string(%#v): %v", ls, err) - continue - } - if !apiequality.Semantic.DeepEqual(in, out) { - t.Errorf("map-selector conversion round-trip failed: got %v; want %v", out, in) - } - } -} - -func TestConvertSliceStringToDeletionPropagation(t *testing.T) { - tcs := []struct { - Input []string - Output v1.DeletionPropagation - }{ - { - Input: nil, - Output: "", - }, - { - Input: []string{}, - Output: "", - }, - { - Input: []string{"foo"}, - Output: "foo", - }, - { - Input: []string{"bar", "foo"}, - Output: "bar", - }, - } - - for _, tc := range tcs { - var dp v1.DeletionPropagation - if err := v1.Convert_Slice_string_To_v1_DeletionPropagation(&tc.Input, &dp, nil); err != nil { - t.Errorf("Convert_Slice_string_To_v1_DeletionPropagation(%#v): %v", tc.Input, err) - continue - } - if !apiequality.Semantic.DeepEqual(dp, tc.Output) { - t.Errorf("slice string to DeletionPropagation conversion failed: got %v; want %v", dp, tc.Output) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/deepcopy.go deleted file mode 100644 index 8ade7b3a1..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/deepcopy.go +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2019 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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func (in *TableRow) DeepCopy() *TableRow { - if in == nil { - return nil - } - - out := new(TableRow) - - if in.Cells != nil { - out.Cells = make([]interface{}, len(in.Cells)) - for i := range in.Cells { - out.Cells[i] = runtime.DeepCopyJSONValue(in.Cells[i]) - } - } - - if in.Conditions != nil { - out.Conditions = make([]TableRowCondition, len(in.Conditions)) - for i := range in.Conditions { - in.Conditions[i].DeepCopyInto(&out.Conditions[i]) - } - } - - in.Object.DeepCopyInto(&out.Object) - return out -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/doc.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/doc.go deleted file mode 100644 index 4289dce0d..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package -// +k8s:openapi-gen=true -// +k8s:defaulter-gen=TypeMeta - -// +groupName=meta.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration.go deleted file mode 100644 index babe8a8b5..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration.go +++ /dev/null @@ -1,60 +0,0 @@ -/* -Copyright 2014 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 v1 - -import ( - "encoding/json" - "time" -) - -// Duration is a wrapper around time.Duration which supports correct -// marshaling to YAML and JSON. In particular, it marshals into strings, which -// can be used as map keys in json. -type Duration struct { - time.Duration `protobuf:"varint,1,opt,name=duration,casttype=time.Duration"` -} - -// UnmarshalJSON implements the json.Unmarshaller interface. -func (d *Duration) UnmarshalJSON(b []byte) error { - var str string - err := json.Unmarshal(b, &str) - if err != nil { - return err - } - - pd, err := time.ParseDuration(str) - if err != nil { - return err - } - d.Duration = pd - return nil -} - -// MarshalJSON implements the json.Marshaler interface. -func (d Duration) MarshalJSON() ([]byte, error) { - return json.Marshal(d.Duration.String()) -} - -// OpenAPISchemaType is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -// -// See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators -func (_ Duration) OpenAPISchemaType() []string { return []string{"string"} } - -// OpenAPISchemaFormat is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -func (_ Duration) OpenAPISchemaFormat() string { return "" } diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration_test.go deleted file mode 100644 index 34ca6b5de..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/duration_test.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Copyright 2014 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 v1 - -import ( - "encoding/json" - "testing" - "time" - - "sigs.k8s.io/yaml" -) - -type DurationHolder struct { - D Duration `json:"d"` -} - -func TestDurationMarshalYAML(t *testing.T) { - cases := []struct { - input Duration - result string - }{ - {Duration{5 * time.Second}, "d: 5s\n"}, - {Duration{2 * time.Minute}, "d: 2m0s\n"}, - {Duration{time.Hour + 3*time.Millisecond}, "d: 1h0m0.003s\n"}, - } - - for _, c := range cases { - input := DurationHolder{c.input} - result, err := yaml.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input: %q: %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input: %q: expected %q, got %q", input, c.result, string(result)) - } - } -} - -func TestDurationUnmarshalYAML(t *testing.T) { - cases := []struct { - input string - result Duration - }{ - {"d: 0s\n", Duration{}}, - {"d: 5s\n", Duration{5 * time.Second}}, - {"d: 2m0s\n", Duration{2 * time.Minute}}, - {"d: 1h0m0.003s\n", Duration{time.Hour + 3*time.Millisecond}}, - - // Units with zero values can optionally be dropped - {"d: 2m\n", Duration{2 * time.Minute}}, - {"d: 1h0.003s\n", Duration{time.Hour + 3*time.Millisecond}}, - } - - for _, c := range cases { - var result DurationHolder - if err := yaml.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input %q: %v", c.input, err) - } - if result.D != c.result { - t.Errorf("Failed to unmarshal input %q: expected %q, got %q", c.input, c.result, result) - } - } -} - -func TestDurationMarshalJSON(t *testing.T) { - cases := []struct { - input Duration - result string - }{ - {Duration{5 * time.Second}, `{"d":"5s"}`}, - {Duration{2 * time.Minute}, `{"d":"2m0s"}`}, - {Duration{time.Hour + 3*time.Millisecond}, `{"d":"1h0m0.003s"}`}, - } - - for _, c := range cases { - input := DurationHolder{c.input} - result, err := json.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input: %q: %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input: %q: expected %q, got %q", input, c.result, string(result)) - } - } -} - -func TestDurationUnmarshalJSON(t *testing.T) { - cases := []struct { - input string - result Duration - }{ - {`{"d":"0s"}`, Duration{}}, - {`{"d":"5s"}`, Duration{5 * time.Second}}, - {`{"d":"2m0s"}`, Duration{2 * time.Minute}}, - {`{"d":"1h0m0.003s"}`, Duration{time.Hour + 3*time.Millisecond}}, - - // Units with zero values can optionally be dropped - {`{"d":"2m"}`, Duration{2 * time.Minute}}, - {`{"d":"1h0.003s"}`, Duration{time.Hour + 3*time.Millisecond}}, - } - - for _, c := range cases { - var result DurationHolder - if err := json.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input %q: %v", c.input, err) - } - if result.D != c.result { - t.Errorf("Failed to unmarshal input %q: expected %q, got %q", c.input, c.result, result) - } - } -} - -func TestDurationMarshalJSONUnmarshalYAML(t *testing.T) { - cases := []struct { - input Duration - }{ - {Duration{}}, - {Duration{5 * time.Second}}, - {Duration{2 * time.Minute}}, - {Duration{time.Hour + 3*time.Millisecond}}, - } - - for i, c := range cases { - input := DurationHolder{c.input} - jsonMarshalled, err := json.Marshal(&input) - if err != nil { - t.Errorf("%d-1: Failed to marshal input: '%v': %v", i, input, err) - } - - var result DurationHolder - if err := yaml.Unmarshal(jsonMarshalled, &result); err != nil { - t.Errorf("%d-2: Failed to unmarshal '%+v': %v", i, string(jsonMarshalled), err) - } - - if input.D != result.D { - t.Errorf("%d-4: Failed to marshal input '%#v': got %#v", i, input, result) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.pb.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.pb.go deleted file mode 100644 index 1c5f15fa2..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.pb.go +++ /dev/null @@ -1,11113 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - time "time" - - k8s_io_apimachinery_pkg_types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *APIGroup) Reset() { *m = APIGroup{} } -func (*APIGroup) ProtoMessage() {} -func (*APIGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{0} -} -func (m *APIGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *APIGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *APIGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_APIGroup.Merge(m, src) -} -func (m *APIGroup) XXX_Size() int { - return m.Size() -} -func (m *APIGroup) XXX_DiscardUnknown() { - xxx_messageInfo_APIGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_APIGroup proto.InternalMessageInfo - -func (m *APIGroupList) Reset() { *m = APIGroupList{} } -func (*APIGroupList) ProtoMessage() {} -func (*APIGroupList) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{1} -} -func (m *APIGroupList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *APIGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *APIGroupList) XXX_Merge(src proto.Message) { - xxx_messageInfo_APIGroupList.Merge(m, src) -} -func (m *APIGroupList) XXX_Size() int { - return m.Size() -} -func (m *APIGroupList) XXX_DiscardUnknown() { - xxx_messageInfo_APIGroupList.DiscardUnknown(m) -} - -var xxx_messageInfo_APIGroupList proto.InternalMessageInfo - -func (m *APIResource) Reset() { *m = APIResource{} } -func (*APIResource) ProtoMessage() {} -func (*APIResource) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{2} -} -func (m *APIResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *APIResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_APIResource.Merge(m, src) -} -func (m *APIResource) XXX_Size() int { - return m.Size() -} -func (m *APIResource) XXX_DiscardUnknown() { - xxx_messageInfo_APIResource.DiscardUnknown(m) -} - -var xxx_messageInfo_APIResource proto.InternalMessageInfo - -func (m *APIResourceList) Reset() { *m = APIResourceList{} } -func (*APIResourceList) ProtoMessage() {} -func (*APIResourceList) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{3} -} -func (m *APIResourceList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *APIResourceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *APIResourceList) XXX_Merge(src proto.Message) { - xxx_messageInfo_APIResourceList.Merge(m, src) -} -func (m *APIResourceList) XXX_Size() int { - return m.Size() -} -func (m *APIResourceList) XXX_DiscardUnknown() { - xxx_messageInfo_APIResourceList.DiscardUnknown(m) -} - -var xxx_messageInfo_APIResourceList proto.InternalMessageInfo - -func (m *APIVersions) Reset() { *m = APIVersions{} } -func (*APIVersions) ProtoMessage() {} -func (*APIVersions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{4} -} -func (m *APIVersions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *APIVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *APIVersions) XXX_Merge(src proto.Message) { - xxx_messageInfo_APIVersions.Merge(m, src) -} -func (m *APIVersions) XXX_Size() int { - return m.Size() -} -func (m *APIVersions) XXX_DiscardUnknown() { - xxx_messageInfo_APIVersions.DiscardUnknown(m) -} - -var xxx_messageInfo_APIVersions proto.InternalMessageInfo - -func (m *CreateOptions) Reset() { *m = CreateOptions{} } -func (*CreateOptions) ProtoMessage() {} -func (*CreateOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{5} -} -func (m *CreateOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CreateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CreateOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateOptions.Merge(m, src) -} -func (m *CreateOptions) XXX_Size() int { - return m.Size() -} -func (m *CreateOptions) XXX_DiscardUnknown() { - xxx_messageInfo_CreateOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateOptions proto.InternalMessageInfo - -func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } -func (*DeleteOptions) ProtoMessage() {} -func (*DeleteOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{6} -} -func (m *DeleteOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *DeleteOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteOptions.Merge(m, src) -} -func (m *DeleteOptions) XXX_Size() int { - return m.Size() -} -func (m *DeleteOptions) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteOptions proto.InternalMessageInfo - -func (m *Duration) Reset() { *m = Duration{} } -func (*Duration) ProtoMessage() {} -func (*Duration) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{7} -} -func (m *Duration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Duration) XXX_Merge(src proto.Message) { - xxx_messageInfo_Duration.Merge(m, src) -} -func (m *Duration) XXX_Size() int { - return m.Size() -} -func (m *Duration) XXX_DiscardUnknown() { - xxx_messageInfo_Duration.DiscardUnknown(m) -} - -var xxx_messageInfo_Duration proto.InternalMessageInfo - -func (m *ExportOptions) Reset() { *m = ExportOptions{} } -func (*ExportOptions) ProtoMessage() {} -func (*ExportOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{8} -} -func (m *ExportOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ExportOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ExportOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExportOptions.Merge(m, src) -} -func (m *ExportOptions) XXX_Size() int { - return m.Size() -} -func (m *ExportOptions) XXX_DiscardUnknown() { - xxx_messageInfo_ExportOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_ExportOptions proto.InternalMessageInfo - -func (m *FieldsV1) Reset() { *m = FieldsV1{} } -func (*FieldsV1) ProtoMessage() {} -func (*FieldsV1) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{9} -} -func (m *FieldsV1) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FieldsV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *FieldsV1) XXX_Merge(src proto.Message) { - xxx_messageInfo_FieldsV1.Merge(m, src) -} -func (m *FieldsV1) XXX_Size() int { - return m.Size() -} -func (m *FieldsV1) XXX_DiscardUnknown() { - xxx_messageInfo_FieldsV1.DiscardUnknown(m) -} - -var xxx_messageInfo_FieldsV1 proto.InternalMessageInfo - -func (m *GetOptions) Reset() { *m = GetOptions{} } -func (*GetOptions) ProtoMessage() {} -func (*GetOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{10} -} -func (m *GetOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GetOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOptions.Merge(m, src) -} -func (m *GetOptions) XXX_Size() int { - return m.Size() -} -func (m *GetOptions) XXX_DiscardUnknown() { - xxx_messageInfo_GetOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_GetOptions proto.InternalMessageInfo - -func (m *GroupKind) Reset() { *m = GroupKind{} } -func (*GroupKind) ProtoMessage() {} -func (*GroupKind) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{11} -} -func (m *GroupKind) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GroupKind) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupKind.Merge(m, src) -} -func (m *GroupKind) XXX_Size() int { - return m.Size() -} -func (m *GroupKind) XXX_DiscardUnknown() { - xxx_messageInfo_GroupKind.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupKind proto.InternalMessageInfo - -func (m *GroupResource) Reset() { *m = GroupResource{} } -func (*GroupResource) ProtoMessage() {} -func (*GroupResource) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{12} -} -func (m *GroupResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GroupResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupResource.Merge(m, src) -} -func (m *GroupResource) XXX_Size() int { - return m.Size() -} -func (m *GroupResource) XXX_DiscardUnknown() { - xxx_messageInfo_GroupResource.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupResource proto.InternalMessageInfo - -func (m *GroupVersion) Reset() { *m = GroupVersion{} } -func (*GroupVersion) ProtoMessage() {} -func (*GroupVersion) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{13} -} -func (m *GroupVersion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GroupVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupVersion.Merge(m, src) -} -func (m *GroupVersion) XXX_Size() int { - return m.Size() -} -func (m *GroupVersion) XXX_DiscardUnknown() { - xxx_messageInfo_GroupVersion.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupVersion proto.InternalMessageInfo - -func (m *GroupVersionForDiscovery) Reset() { *m = GroupVersionForDiscovery{} } -func (*GroupVersionForDiscovery) ProtoMessage() {} -func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{14} -} -func (m *GroupVersionForDiscovery) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupVersionForDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GroupVersionForDiscovery) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupVersionForDiscovery.Merge(m, src) -} -func (m *GroupVersionForDiscovery) XXX_Size() int { - return m.Size() -} -func (m *GroupVersionForDiscovery) XXX_DiscardUnknown() { - xxx_messageInfo_GroupVersionForDiscovery.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupVersionForDiscovery proto.InternalMessageInfo - -func (m *GroupVersionKind) Reset() { *m = GroupVersionKind{} } -func (*GroupVersionKind) ProtoMessage() {} -func (*GroupVersionKind) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{15} -} -func (m *GroupVersionKind) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupVersionKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GroupVersionKind) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupVersionKind.Merge(m, src) -} -func (m *GroupVersionKind) XXX_Size() int { - return m.Size() -} -func (m *GroupVersionKind) XXX_DiscardUnknown() { - xxx_messageInfo_GroupVersionKind.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupVersionKind proto.InternalMessageInfo - -func (m *GroupVersionResource) Reset() { *m = GroupVersionResource{} } -func (*GroupVersionResource) ProtoMessage() {} -func (*GroupVersionResource) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{16} -} -func (m *GroupVersionResource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupVersionResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *GroupVersionResource) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupVersionResource.Merge(m, src) -} -func (m *GroupVersionResource) XXX_Size() int { - return m.Size() -} -func (m *GroupVersionResource) XXX_DiscardUnknown() { - xxx_messageInfo_GroupVersionResource.DiscardUnknown(m) -} - -var xxx_messageInfo_GroupVersionResource proto.InternalMessageInfo - -func (m *LabelSelector) Reset() { *m = LabelSelector{} } -func (*LabelSelector) ProtoMessage() {} -func (*LabelSelector) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{17} -} -func (m *LabelSelector) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LabelSelector) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelSelector.Merge(m, src) -} -func (m *LabelSelector) XXX_Size() int { - return m.Size() -} -func (m *LabelSelector) XXX_DiscardUnknown() { - xxx_messageInfo_LabelSelector.DiscardUnknown(m) -} - -var xxx_messageInfo_LabelSelector proto.InternalMessageInfo - -func (m *LabelSelectorRequirement) Reset() { *m = LabelSelectorRequirement{} } -func (*LabelSelectorRequirement) ProtoMessage() {} -func (*LabelSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{18} -} -func (m *LabelSelectorRequirement) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *LabelSelectorRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *LabelSelectorRequirement) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelSelectorRequirement.Merge(m, src) -} -func (m *LabelSelectorRequirement) XXX_Size() int { - return m.Size() -} -func (m *LabelSelectorRequirement) XXX_DiscardUnknown() { - xxx_messageInfo_LabelSelectorRequirement.DiscardUnknown(m) -} - -var xxx_messageInfo_LabelSelectorRequirement proto.InternalMessageInfo - -func (m *List) Reset() { *m = List{} } -func (*List) ProtoMessage() {} -func (*List) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{19} -} -func (m *List) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *List) XXX_Merge(src proto.Message) { - xxx_messageInfo_List.Merge(m, src) -} -func (m *List) XXX_Size() int { - return m.Size() -} -func (m *List) XXX_DiscardUnknown() { - xxx_messageInfo_List.DiscardUnknown(m) -} - -var xxx_messageInfo_List proto.InternalMessageInfo - -func (m *ListMeta) Reset() { *m = ListMeta{} } -func (*ListMeta) ProtoMessage() {} -func (*ListMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{20} -} -func (m *ListMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ListMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMeta.Merge(m, src) -} -func (m *ListMeta) XXX_Size() int { - return m.Size() -} -func (m *ListMeta) XXX_DiscardUnknown() { - xxx_messageInfo_ListMeta.DiscardUnknown(m) -} - -var xxx_messageInfo_ListMeta proto.InternalMessageInfo - -func (m *ListOptions) Reset() { *m = ListOptions{} } -func (*ListOptions) ProtoMessage() {} -func (*ListOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{21} -} -func (m *ListOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ListOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListOptions.Merge(m, src) -} -func (m *ListOptions) XXX_Size() int { - return m.Size() -} -func (m *ListOptions) XXX_DiscardUnknown() { - xxx_messageInfo_ListOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_ListOptions proto.InternalMessageInfo - -func (m *ManagedFieldsEntry) Reset() { *m = ManagedFieldsEntry{} } -func (*ManagedFieldsEntry) ProtoMessage() {} -func (*ManagedFieldsEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{22} -} -func (m *ManagedFieldsEntry) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManagedFieldsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ManagedFieldsEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManagedFieldsEntry.Merge(m, src) -} -func (m *ManagedFieldsEntry) XXX_Size() int { - return m.Size() -} -func (m *ManagedFieldsEntry) XXX_DiscardUnknown() { - xxx_messageInfo_ManagedFieldsEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_ManagedFieldsEntry proto.InternalMessageInfo - -func (m *MicroTime) Reset() { *m = MicroTime{} } -func (*MicroTime) ProtoMessage() {} -func (*MicroTime) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{23} -} -func (m *MicroTime) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MicroTime.Unmarshal(m, b) -} -func (m *MicroTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MicroTime.Marshal(b, m, deterministic) -} -func (m *MicroTime) XXX_Merge(src proto.Message) { - xxx_messageInfo_MicroTime.Merge(m, src) -} -func (m *MicroTime) XXX_Size() int { - return xxx_messageInfo_MicroTime.Size(m) -} -func (m *MicroTime) XXX_DiscardUnknown() { - xxx_messageInfo_MicroTime.DiscardUnknown(m) -} - -var xxx_messageInfo_MicroTime proto.InternalMessageInfo - -func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } -func (*ObjectMeta) ProtoMessage() {} -func (*ObjectMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{24} -} -func (m *ObjectMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ObjectMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectMeta.Merge(m, src) -} -func (m *ObjectMeta) XXX_Size() int { - return m.Size() -} -func (m *ObjectMeta) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectMeta.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectMeta proto.InternalMessageInfo - -func (m *OwnerReference) Reset() { *m = OwnerReference{} } -func (*OwnerReference) ProtoMessage() {} -func (*OwnerReference) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{25} -} -func (m *OwnerReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OwnerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *OwnerReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_OwnerReference.Merge(m, src) -} -func (m *OwnerReference) XXX_Size() int { - return m.Size() -} -func (m *OwnerReference) XXX_DiscardUnknown() { - xxx_messageInfo_OwnerReference.DiscardUnknown(m) -} - -var xxx_messageInfo_OwnerReference proto.InternalMessageInfo - -func (m *PartialObjectMetadata) Reset() { *m = PartialObjectMetadata{} } -func (*PartialObjectMetadata) ProtoMessage() {} -func (*PartialObjectMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{26} -} -func (m *PartialObjectMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PartialObjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PartialObjectMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartialObjectMetadata.Merge(m, src) -} -func (m *PartialObjectMetadata) XXX_Size() int { - return m.Size() -} -func (m *PartialObjectMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_PartialObjectMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_PartialObjectMetadata proto.InternalMessageInfo - -func (m *PartialObjectMetadataList) Reset() { *m = PartialObjectMetadataList{} } -func (*PartialObjectMetadataList) ProtoMessage() {} -func (*PartialObjectMetadataList) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{27} -} -func (m *PartialObjectMetadataList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PartialObjectMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PartialObjectMetadataList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartialObjectMetadataList.Merge(m, src) -} -func (m *PartialObjectMetadataList) XXX_Size() int { - return m.Size() -} -func (m *PartialObjectMetadataList) XXX_DiscardUnknown() { - xxx_messageInfo_PartialObjectMetadataList.DiscardUnknown(m) -} - -var xxx_messageInfo_PartialObjectMetadataList proto.InternalMessageInfo - -func (m *Patch) Reset() { *m = Patch{} } -func (*Patch) ProtoMessage() {} -func (*Patch) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{28} -} -func (m *Patch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Patch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Patch) XXX_Merge(src proto.Message) { - xxx_messageInfo_Patch.Merge(m, src) -} -func (m *Patch) XXX_Size() int { - return m.Size() -} -func (m *Patch) XXX_DiscardUnknown() { - xxx_messageInfo_Patch.DiscardUnknown(m) -} - -var xxx_messageInfo_Patch proto.InternalMessageInfo - -func (m *PatchOptions) Reset() { *m = PatchOptions{} } -func (*PatchOptions) ProtoMessage() {} -func (*PatchOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{29} -} -func (m *PatchOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PatchOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PatchOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PatchOptions.Merge(m, src) -} -func (m *PatchOptions) XXX_Size() int { - return m.Size() -} -func (m *PatchOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PatchOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PatchOptions proto.InternalMessageInfo - -func (m *Preconditions) Reset() { *m = Preconditions{} } -func (*Preconditions) ProtoMessage() {} -func (*Preconditions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{30} -} -func (m *Preconditions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Preconditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Preconditions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Preconditions.Merge(m, src) -} -func (m *Preconditions) XXX_Size() int { - return m.Size() -} -func (m *Preconditions) XXX_DiscardUnknown() { - xxx_messageInfo_Preconditions.DiscardUnknown(m) -} - -var xxx_messageInfo_Preconditions proto.InternalMessageInfo - -func (m *RootPaths) Reset() { *m = RootPaths{} } -func (*RootPaths) ProtoMessage() {} -func (*RootPaths) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{31} -} -func (m *RootPaths) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RootPaths) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RootPaths) XXX_Merge(src proto.Message) { - xxx_messageInfo_RootPaths.Merge(m, src) -} -func (m *RootPaths) XXX_Size() int { - return m.Size() -} -func (m *RootPaths) XXX_DiscardUnknown() { - xxx_messageInfo_RootPaths.DiscardUnknown(m) -} - -var xxx_messageInfo_RootPaths proto.InternalMessageInfo - -func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} } -func (*ServerAddressByClientCIDR) ProtoMessage() {} -func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{32} -} -func (m *ServerAddressByClientCIDR) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServerAddressByClientCIDR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ServerAddressByClientCIDR) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServerAddressByClientCIDR.Merge(m, src) -} -func (m *ServerAddressByClientCIDR) XXX_Size() int { - return m.Size() -} -func (m *ServerAddressByClientCIDR) XXX_DiscardUnknown() { - xxx_messageInfo_ServerAddressByClientCIDR.DiscardUnknown(m) -} - -var xxx_messageInfo_ServerAddressByClientCIDR proto.InternalMessageInfo - -func (m *Status) Reset() { *m = Status{} } -func (*Status) ProtoMessage() {} -func (*Status) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{33} -} -func (m *Status) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Status) XXX_Merge(src proto.Message) { - xxx_messageInfo_Status.Merge(m, src) -} -func (m *Status) XXX_Size() int { - return m.Size() -} -func (m *Status) XXX_DiscardUnknown() { - xxx_messageInfo_Status.DiscardUnknown(m) -} - -var xxx_messageInfo_Status proto.InternalMessageInfo - -func (m *StatusCause) Reset() { *m = StatusCause{} } -func (*StatusCause) ProtoMessage() {} -func (*StatusCause) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{34} -} -func (m *StatusCause) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusCause) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatusCause) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusCause.Merge(m, src) -} -func (m *StatusCause) XXX_Size() int { - return m.Size() -} -func (m *StatusCause) XXX_DiscardUnknown() { - xxx_messageInfo_StatusCause.DiscardUnknown(m) -} - -var xxx_messageInfo_StatusCause proto.InternalMessageInfo - -func (m *StatusDetails) Reset() { *m = StatusDetails{} } -func (*StatusDetails) ProtoMessage() {} -func (*StatusDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{35} -} -func (m *StatusDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StatusDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StatusDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatusDetails.Merge(m, src) -} -func (m *StatusDetails) XXX_Size() int { - return m.Size() -} -func (m *StatusDetails) XXX_DiscardUnknown() { - xxx_messageInfo_StatusDetails.DiscardUnknown(m) -} - -var xxx_messageInfo_StatusDetails proto.InternalMessageInfo - -func (m *TableOptions) Reset() { *m = TableOptions{} } -func (*TableOptions) ProtoMessage() {} -func (*TableOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{36} -} -func (m *TableOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TableOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TableOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_TableOptions.Merge(m, src) -} -func (m *TableOptions) XXX_Size() int { - return m.Size() -} -func (m *TableOptions) XXX_DiscardUnknown() { - xxx_messageInfo_TableOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_TableOptions proto.InternalMessageInfo - -func (m *Time) Reset() { *m = Time{} } -func (*Time) ProtoMessage() {} -func (*Time) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{37} -} -func (m *Time) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Time.Unmarshal(m, b) -} -func (m *Time) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Time.Marshal(b, m, deterministic) -} -func (m *Time) XXX_Merge(src proto.Message) { - xxx_messageInfo_Time.Merge(m, src) -} -func (m *Time) XXX_Size() int { - return xxx_messageInfo_Time.Size(m) -} -func (m *Time) XXX_DiscardUnknown() { - xxx_messageInfo_Time.DiscardUnknown(m) -} - -var xxx_messageInfo_Time proto.InternalMessageInfo - -func (m *Timestamp) Reset() { *m = Timestamp{} } -func (*Timestamp) ProtoMessage() {} -func (*Timestamp) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{38} -} -func (m *Timestamp) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Timestamp) XXX_Merge(src proto.Message) { - xxx_messageInfo_Timestamp.Merge(m, src) -} -func (m *Timestamp) XXX_Size() int { - return m.Size() -} -func (m *Timestamp) XXX_DiscardUnknown() { - xxx_messageInfo_Timestamp.DiscardUnknown(m) -} - -var xxx_messageInfo_Timestamp proto.InternalMessageInfo - -func (m *TypeMeta) Reset() { *m = TypeMeta{} } -func (*TypeMeta) ProtoMessage() {} -func (*TypeMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{39} -} -func (m *TypeMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TypeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TypeMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypeMeta.Merge(m, src) -} -func (m *TypeMeta) XXX_Size() int { - return m.Size() -} -func (m *TypeMeta) XXX_DiscardUnknown() { - xxx_messageInfo_TypeMeta.DiscardUnknown(m) -} - -var xxx_messageInfo_TypeMeta proto.InternalMessageInfo - -func (m *UpdateOptions) Reset() { *m = UpdateOptions{} } -func (*UpdateOptions) ProtoMessage() {} -func (*UpdateOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{40} -} -func (m *UpdateOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpdateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *UpdateOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateOptions.Merge(m, src) -} -func (m *UpdateOptions) XXX_Size() int { - return m.Size() -} -func (m *UpdateOptions) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateOptions proto.InternalMessageInfo - -func (m *Verbs) Reset() { *m = Verbs{} } -func (*Verbs) ProtoMessage() {} -func (*Verbs) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{41} -} -func (m *Verbs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Verbs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Verbs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Verbs.Merge(m, src) -} -func (m *Verbs) XXX_Size() int { - return m.Size() -} -func (m *Verbs) XXX_DiscardUnknown() { - xxx_messageInfo_Verbs.DiscardUnknown(m) -} - -var xxx_messageInfo_Verbs proto.InternalMessageInfo - -func (m *WatchEvent) Reset() { *m = WatchEvent{} } -func (*WatchEvent) ProtoMessage() {} -func (*WatchEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_cf52fa777ced5367, []int{42} -} -func (m *WatchEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WatchEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *WatchEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_WatchEvent.Merge(m, src) -} -func (m *WatchEvent) XXX_Size() int { - return m.Size() -} -func (m *WatchEvent) XXX_DiscardUnknown() { - xxx_messageInfo_WatchEvent.DiscardUnknown(m) -} - -var xxx_messageInfo_WatchEvent proto.InternalMessageInfo - -func init() { - proto.RegisterType((*APIGroup)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup") - proto.RegisterType((*APIGroupList)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList") - proto.RegisterType((*APIResource)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.APIResource") - proto.RegisterType((*APIResourceList)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList") - proto.RegisterType((*APIVersions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions") - proto.RegisterType((*CreateOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions") - proto.RegisterType((*DeleteOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions") - proto.RegisterType((*Duration)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Duration") - proto.RegisterType((*ExportOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions") - proto.RegisterType((*FieldsV1)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1") - proto.RegisterType((*GetOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions") - proto.RegisterType((*GroupKind)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind") - proto.RegisterType((*GroupResource)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource") - proto.RegisterType((*GroupVersion)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion") - proto.RegisterType((*GroupVersionForDiscovery)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery") - proto.RegisterType((*GroupVersionKind)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind") - proto.RegisterType((*GroupVersionResource)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource") - proto.RegisterType((*LabelSelector)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector.MatchLabelsEntry") - proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement") - proto.RegisterType((*List)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.List") - proto.RegisterType((*ListMeta)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta") - proto.RegisterType((*ListOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions") - proto.RegisterType((*ManagedFieldsEntry)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry") - proto.RegisterType((*MicroTime)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime") - proto.RegisterType((*ObjectMeta)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.LabelsEntry") - proto.RegisterType((*OwnerReference)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference") - proto.RegisterType((*PartialObjectMetadata)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.PartialObjectMetadata") - proto.RegisterType((*PartialObjectMetadataList)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.PartialObjectMetadataList") - proto.RegisterType((*Patch)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Patch") - proto.RegisterType((*PatchOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions") - proto.RegisterType((*Preconditions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions") - proto.RegisterType((*RootPaths)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths") - proto.RegisterType((*ServerAddressByClientCIDR)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR") - proto.RegisterType((*Status)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Status") - proto.RegisterType((*StatusCause)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause") - proto.RegisterType((*StatusDetails)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails") - proto.RegisterType((*TableOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.TableOptions") - proto.RegisterType((*Time)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Time") - proto.RegisterType((*Timestamp)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Timestamp") - proto.RegisterType((*TypeMeta)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta") - proto.RegisterType((*UpdateOptions)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.UpdateOptions") - proto.RegisterType((*Verbs)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.Verbs") - proto.RegisterType((*WatchEvent)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto", fileDescriptor_cf52fa777ced5367) -} - -var fileDescriptor_cf52fa777ced5367 = []byte{ - // 2713 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x19, 0xcd, 0x6f, 0x1b, 0x59, - 0x3d, 0x63, 0xc7, 0x8e, 0xfd, 0x73, 0x9c, 0x8f, 0x97, 0x16, 0xdc, 0x00, 0x71, 0x76, 0x16, 0xad, - 0x52, 0xe8, 0x3a, 0x9b, 0x02, 0xab, 0xd2, 0x65, 0x0b, 0x71, 0x9c, 0x74, 0xc3, 0x36, 0x4d, 0xf4, - 0xd2, 0x16, 0x28, 0x15, 0xea, 0x64, 0xe6, 0xc5, 0x19, 0x32, 0x9e, 0xf1, 0xbe, 0x19, 0x27, 0x35, - 0x1c, 0xd8, 0x03, 0x08, 0x90, 0x60, 0xd5, 0x23, 0xe2, 0x80, 0xb6, 0x82, 0xbf, 0x80, 0x13, 0x7f, - 0x00, 0x12, 0xbd, 0x20, 0xad, 0xc4, 0x65, 0x25, 0x90, 0xb5, 0x0d, 0x07, 0x8e, 0x88, 0x6b, 0x4e, - 0xe8, 0x7d, 0xcd, 0x87, 0x1d, 0x37, 0x63, 0xba, 0xac, 0xf6, 0xe6, 0xf9, 0x7d, 0xff, 0xde, 0xfb, - 0xbd, 0xdf, 0x97, 0x61, 0xeb, 0xf0, 0x9a, 0x5f, 0xb3, 0xbd, 0xe5, 0xc3, 0xce, 0x1e, 0xa1, 0x2e, - 0x09, 0x88, 0xbf, 0x7c, 0x44, 0x5c, 0xcb, 0xa3, 0xcb, 0x12, 0x61, 0xb4, 0xed, 0x96, 0x61, 0x1e, - 0xd8, 0x2e, 0xa1, 0xdd, 0xe5, 0xf6, 0x61, 0x93, 0x01, 0xfc, 0xe5, 0x16, 0x09, 0x8c, 0xe5, 0xa3, - 0x95, 0xe5, 0x26, 0x71, 0x09, 0x35, 0x02, 0x62, 0xd5, 0xda, 0xd4, 0x0b, 0x3c, 0xf4, 0x45, 0xc1, - 0x55, 0x8b, 0x73, 0xd5, 0xda, 0x87, 0x4d, 0x06, 0xf0, 0x6b, 0x8c, 0xab, 0x76, 0xb4, 0x32, 0xff, - 0x6a, 0xd3, 0x0e, 0x0e, 0x3a, 0x7b, 0x35, 0xd3, 0x6b, 0x2d, 0x37, 0xbd, 0xa6, 0xb7, 0xcc, 0x99, - 0xf7, 0x3a, 0xfb, 0xfc, 0x8b, 0x7f, 0xf0, 0x5f, 0x42, 0xe8, 0xfc, 0x50, 0x53, 0x68, 0xc7, 0x0d, - 0xec, 0x16, 0xe9, 0xb7, 0x62, 0xfe, 0xf5, 0xf3, 0x18, 0x7c, 0xf3, 0x80, 0xb4, 0x8c, 0x7e, 0x3e, - 0xfd, 0x2f, 0x59, 0x28, 0xac, 0xee, 0x6c, 0xde, 0xa4, 0x5e, 0xa7, 0x8d, 0x16, 0x61, 0xdc, 0x35, - 0x5a, 0xa4, 0xa2, 0x2d, 0x6a, 0x4b, 0xc5, 0xfa, 0xe4, 0xd3, 0x5e, 0x75, 0xec, 0xa4, 0x57, 0x1d, - 0xbf, 0x6d, 0xb4, 0x08, 0xe6, 0x18, 0xe4, 0x40, 0xe1, 0x88, 0x50, 0xdf, 0xf6, 0x5c, 0xbf, 0x92, - 0x59, 0xcc, 0x2e, 0x95, 0xae, 0xde, 0xa8, 0xa5, 0xf1, 0xbf, 0xc6, 0x15, 0xdc, 0x13, 0xac, 0x1b, - 0x1e, 0x6d, 0xd8, 0xbe, 0xe9, 0x1d, 0x11, 0xda, 0xad, 0xcf, 0x48, 0x2d, 0x05, 0x89, 0xf4, 0x71, - 0xa8, 0x01, 0xfd, 0x54, 0x83, 0x99, 0x36, 0x25, 0xfb, 0x84, 0x52, 0x62, 0x49, 0x7c, 0x25, 0xbb, - 0xa8, 0x7d, 0x0c, 0x6a, 0x2b, 0x52, 0xed, 0xcc, 0x4e, 0x9f, 0x7c, 0x3c, 0xa0, 0x11, 0xfd, 0x5e, - 0x83, 0x79, 0x9f, 0xd0, 0x23, 0x42, 0x57, 0x2d, 0x8b, 0x12, 0xdf, 0xaf, 0x77, 0xd7, 0x1c, 0x9b, - 0xb8, 0xc1, 0xda, 0x66, 0x03, 0xfb, 0x95, 0x71, 0x7e, 0x0e, 0xdf, 0x4c, 0x67, 0xd0, 0xee, 0x30, - 0x39, 0x75, 0x5d, 0x5a, 0x34, 0x3f, 0x94, 0xc4, 0xc7, 0xcf, 0x31, 0x43, 0xdf, 0x87, 0x49, 0x75, - 0x91, 0xb7, 0x6c, 0x3f, 0x40, 0xf7, 0x20, 0xdf, 0x64, 0x1f, 0x7e, 0x45, 0xe3, 0x06, 0xd6, 0xd2, - 0x19, 0xa8, 0x64, 0xd4, 0xa7, 0xa4, 0x3d, 0x79, 0xfe, 0xe9, 0x63, 0x29, 0x4d, 0xff, 0xe5, 0x38, - 0x94, 0x56, 0x77, 0x36, 0x31, 0xf1, 0xbd, 0x0e, 0x35, 0x49, 0x8a, 0xa0, 0xb9, 0x06, 0x93, 0xbe, - 0xed, 0x36, 0x3b, 0x8e, 0x41, 0x19, 0xb4, 0x92, 0xe7, 0x94, 0x17, 0x24, 0xe5, 0xe4, 0x6e, 0x0c, - 0x87, 0x13, 0x94, 0xe8, 0x2a, 0x00, 0x93, 0xe0, 0xb7, 0x0d, 0x93, 0x58, 0x95, 0xcc, 0xa2, 0xb6, - 0x54, 0xa8, 0x23, 0xc9, 0x07, 0xb7, 0x43, 0x0c, 0x8e, 0x51, 0xa1, 0x97, 0x21, 0xc7, 0x2d, 0xad, - 0x14, 0xb8, 0x9a, 0xb2, 0x24, 0xcf, 0x71, 0x37, 0xb0, 0xc0, 0xa1, 0xcb, 0x30, 0x21, 0xa3, 0xac, - 0x52, 0xe4, 0x64, 0xd3, 0x92, 0x6c, 0x42, 0x85, 0x81, 0xc2, 0x33, 0xff, 0x0e, 0x6d, 0xd7, 0xe2, - 0x71, 0x17, 0xf3, 0xef, 0x6d, 0xdb, 0xb5, 0x30, 0xc7, 0xa0, 0x5b, 0x90, 0x3b, 0x22, 0x74, 0x8f, - 0x45, 0x02, 0x0b, 0xcd, 0x2f, 0xa7, 0x3b, 0xe8, 0x7b, 0x8c, 0xa5, 0x5e, 0x64, 0xa6, 0xf1, 0x9f, - 0x58, 0x08, 0x41, 0x35, 0x00, 0xff, 0xc0, 0xa3, 0x01, 0x77, 0xaf, 0x92, 0x5b, 0xcc, 0x2e, 0x15, - 0xeb, 0x53, 0xcc, 0xdf, 0xdd, 0x10, 0x8a, 0x63, 0x14, 0x8c, 0xde, 0x34, 0x02, 0xd2, 0xf4, 0xa8, - 0x4d, 0xfc, 0xca, 0x44, 0x44, 0xbf, 0x16, 0x42, 0x71, 0x8c, 0x02, 0x7d, 0x1b, 0x90, 0x1f, 0x78, - 0xd4, 0x68, 0x12, 0xe9, 0xea, 0x5b, 0x86, 0x7f, 0x50, 0x01, 0xee, 0xdd, 0xbc, 0xf4, 0x0e, 0xed, - 0x0e, 0x50, 0xe0, 0x33, 0xb8, 0xf4, 0x3f, 0x6a, 0x30, 0x1d, 0x8b, 0x05, 0x1e, 0x77, 0xd7, 0x60, - 0xb2, 0x19, 0x7b, 0x75, 0x32, 0x2e, 0xc2, 0xdb, 0x8e, 0xbf, 0x48, 0x9c, 0xa0, 0x44, 0x04, 0x8a, - 0x54, 0x4a, 0x52, 0xd9, 0x65, 0x25, 0x75, 0xd0, 0x2a, 0x1b, 0x22, 0x4d, 0x31, 0xa0, 0x8f, 0x23, - 0xc9, 0xfa, 0xbf, 0x34, 0x1e, 0xc0, 0x2a, 0xdf, 0xa0, 0xa5, 0x58, 0x4e, 0xd3, 0xf8, 0xf1, 0x4d, - 0x0e, 0xc9, 0x47, 0xe7, 0x24, 0x82, 0xcc, 0xa7, 0x22, 0x11, 0x5c, 0x2f, 0xfc, 0xe6, 0xfd, 0xea, - 0xd8, 0xbb, 0xff, 0x58, 0x1c, 0xd3, 0x5b, 0x50, 0x5e, 0xa3, 0xc4, 0x08, 0xc8, 0x76, 0x3b, 0xe0, - 0x0e, 0xe8, 0x90, 0xb7, 0x68, 0x17, 0x77, 0x5c, 0xe9, 0x28, 0xb0, 0xf7, 0xdd, 0xe0, 0x10, 0x2c, - 0x31, 0xec, 0xfe, 0xf6, 0x6d, 0xe2, 0x58, 0x5b, 0x86, 0x6b, 0x34, 0x09, 0x95, 0x71, 0x1f, 0x9e, - 0xea, 0x46, 0x0c, 0x87, 0x13, 0x94, 0xfa, 0xcf, 0xb3, 0x50, 0x6e, 0x10, 0x87, 0x44, 0xfa, 0x36, - 0x00, 0x35, 0xa9, 0x61, 0x92, 0x1d, 0x42, 0x6d, 0xcf, 0xda, 0x25, 0xa6, 0xe7, 0x5a, 0x3e, 0x8f, - 0x88, 0x6c, 0xfd, 0x33, 0x2c, 0xce, 0x6e, 0x0e, 0x60, 0xf1, 0x19, 0x1c, 0xc8, 0x81, 0x72, 0x9b, - 0xf2, 0xdf, 0x76, 0x20, 0x6b, 0x0f, 0x7b, 0x69, 0x5f, 0x49, 0x77, 0xd4, 0x3b, 0x71, 0xd6, 0xfa, - 0xec, 0x49, 0xaf, 0x5a, 0x4e, 0x80, 0x70, 0x52, 0x38, 0xfa, 0x16, 0xcc, 0x78, 0xb4, 0x7d, 0x60, - 0xb8, 0x0d, 0xd2, 0x26, 0xae, 0x45, 0xdc, 0xc0, 0xe7, 0xa7, 0x50, 0xa8, 0x5f, 0x60, 0x15, 0x63, - 0xbb, 0x0f, 0x87, 0x07, 0xa8, 0xd1, 0x7d, 0x98, 0x6d, 0x53, 0xaf, 0x6d, 0x34, 0x0d, 0x26, 0x71, - 0xc7, 0x73, 0x6c, 0xb3, 0xcb, 0xb3, 0x43, 0xb1, 0x7e, 0xe5, 0xa4, 0x57, 0x9d, 0xdd, 0xe9, 0x47, - 0x9e, 0xf6, 0xaa, 0x73, 0xfc, 0xe8, 0x18, 0x24, 0x42, 0xe2, 0x41, 0x31, 0xb1, 0x3b, 0xcc, 0x0d, - 0xbb, 0x43, 0x7d, 0x13, 0x0a, 0x8d, 0x0e, 0xe5, 0x5c, 0xe8, 0x4d, 0x28, 0x58, 0xf2, 0xb7, 0x3c, - 0xf9, 0x97, 0x54, 0xc9, 0x55, 0x34, 0xa7, 0xbd, 0x6a, 0x99, 0x35, 0x09, 0x35, 0x05, 0xc0, 0x21, - 0x8b, 0xfe, 0x00, 0xca, 0xeb, 0x8f, 0xda, 0x1e, 0x0d, 0xd4, 0x9d, 0xbe, 0x02, 0x79, 0xc2, 0x01, - 0x5c, 0x5a, 0x21, 0xaa, 0x13, 0x82, 0x0c, 0x4b, 0x2c, 0xcb, 0xc3, 0xe4, 0x91, 0x61, 0x06, 0x32, - 0x6d, 0x87, 0x79, 0x78, 0x9d, 0x01, 0xb1, 0xc0, 0xe9, 0x9f, 0x87, 0x02, 0x0f, 0x28, 0xff, 0xde, - 0x0a, 0x9a, 0x81, 0x2c, 0x36, 0x8e, 0xb9, 0xd4, 0x49, 0x9c, 0xa5, 0xc6, 0xb1, 0xbe, 0x0d, 0x70, - 0x93, 0x84, 0x8a, 0x57, 0x61, 0x5a, 0x3d, 0xe2, 0x64, 0x6e, 0xf9, 0xac, 0x14, 0x3d, 0x8d, 0x93, - 0x68, 0xdc, 0x4f, 0xaf, 0x3f, 0x80, 0x22, 0xcf, 0x3f, 0x2c, 0x79, 0x47, 0x85, 0x42, 0x7b, 0x4e, - 0xa1, 0x50, 0xd9, 0x3f, 0x33, 0x2c, 0xfb, 0xc7, 0x9e, 0x9b, 0x03, 0x65, 0xc1, 0xab, 0x4a, 0x63, - 0x2a, 0x0d, 0x57, 0xa0, 0xa0, 0xcc, 0x94, 0x5a, 0xc2, 0x96, 0x48, 0x09, 0xc2, 0x21, 0x45, 0x4c, - 0xdb, 0x01, 0x24, 0x72, 0x69, 0x3a, 0x65, 0xb1, 0xba, 0x97, 0x79, 0x7e, 0xdd, 0x8b, 0x69, 0xfa, - 0x09, 0x54, 0x86, 0xf5, 0x51, 0x2f, 0x90, 0xed, 0xd3, 0x9b, 0xa2, 0xbf, 0xa7, 0xc1, 0x4c, 0x5c, - 0x52, 0xfa, 0xeb, 0x4b, 0xaf, 0xe4, 0xfc, 0x3a, 0x1f, 0x3b, 0x91, 0xdf, 0x69, 0x70, 0x21, 0xe1, - 0xda, 0x48, 0x37, 0x3e, 0x82, 0x51, 0xf1, 0xe0, 0xc8, 0x8e, 0x10, 0x1c, 0x7f, 0xcb, 0x40, 0xf9, - 0x96, 0xb1, 0x47, 0x9c, 0x5d, 0xe2, 0x10, 0x33, 0xf0, 0x28, 0xfa, 0x31, 0x94, 0x5a, 0x46, 0x60, - 0x1e, 0x70, 0xa8, 0xea, 0x09, 0x1b, 0xe9, 0x12, 0x68, 0x42, 0x52, 0x6d, 0x2b, 0x12, 0xb3, 0xee, - 0x06, 0xb4, 0x5b, 0x9f, 0x93, 0x26, 0x95, 0x62, 0x18, 0x1c, 0xd7, 0xc6, 0x1b, 0x79, 0xfe, 0xbd, - 0xfe, 0xa8, 0xcd, 0x0a, 0xd6, 0xe8, 0xf3, 0x43, 0xc2, 0x04, 0x4c, 0xde, 0xe9, 0xd8, 0x94, 0xb4, - 0x88, 0x1b, 0x44, 0x8d, 0xfc, 0x56, 0x9f, 0x7c, 0x3c, 0xa0, 0x71, 0xfe, 0x06, 0xcc, 0xf4, 0x1b, - 0xcf, 0xb2, 0xce, 0x21, 0xe9, 0x8a, 0xfb, 0xc2, 0xec, 0x27, 0xba, 0x00, 0xb9, 0x23, 0xc3, 0xe9, - 0xc8, 0xd7, 0x88, 0xc5, 0xc7, 0xf5, 0xcc, 0x35, 0x4d, 0xff, 0x83, 0x06, 0x95, 0x61, 0x86, 0xa0, - 0x2f, 0xc4, 0x04, 0xd5, 0x4b, 0xd2, 0xaa, 0xec, 0xdb, 0xa4, 0x2b, 0xa4, 0xae, 0x43, 0xc1, 0x6b, - 0xb3, 0xd1, 0xcb, 0xa3, 0xf2, 0xd6, 0x2f, 0xab, 0x9b, 0xdc, 0x96, 0xf0, 0xd3, 0x5e, 0xf5, 0x62, - 0x42, 0xbc, 0x42, 0xe0, 0x90, 0x95, 0x65, 0x7f, 0x6e, 0x0f, 0xab, 0x48, 0x61, 0xf6, 0xbf, 0xc7, - 0x21, 0x58, 0x62, 0xf4, 0x3f, 0x69, 0x30, 0xce, 0x5b, 0xb1, 0x07, 0x50, 0x60, 0xe7, 0x67, 0x19, - 0x81, 0xc1, 0xed, 0x4a, 0x3d, 0x04, 0x30, 0xee, 0x2d, 0x12, 0x18, 0x51, 0xb4, 0x29, 0x08, 0x0e, - 0x25, 0x22, 0x0c, 0x39, 0x3b, 0x20, 0x2d, 0x75, 0x91, 0xaf, 0x0e, 0x15, 0x2d, 0x47, 0xd0, 0x1a, - 0x36, 0x8e, 0xd7, 0x1f, 0x05, 0xc4, 0x65, 0x97, 0x11, 0x3d, 0x8d, 0x4d, 0x26, 0x03, 0x0b, 0x51, - 0xfa, 0x7f, 0x34, 0x08, 0x55, 0xb1, 0xe0, 0xf7, 0x89, 0xb3, 0x7f, 0xcb, 0x76, 0x0f, 0xe5, 0xb1, - 0x86, 0xe6, 0xec, 0x4a, 0x38, 0x0e, 0x29, 0xce, 0x2a, 0x0f, 0x99, 0xd1, 0xca, 0x03, 0x53, 0x68, - 0x7a, 0x6e, 0x60, 0xbb, 0x9d, 0x81, 0xd7, 0xb6, 0x26, 0xe1, 0x38, 0xa4, 0x60, 0xcd, 0x0d, 0x25, - 0x2d, 0xc3, 0x76, 0x6d, 0xb7, 0xc9, 0x9c, 0x58, 0xf3, 0x3a, 0x6e, 0xc0, 0xab, 0xbc, 0x6c, 0x6e, - 0xf0, 0x00, 0x16, 0x9f, 0xc1, 0xa1, 0xff, 0x35, 0x0b, 0x25, 0xe6, 0xb3, 0xaa, 0x73, 0x6f, 0x40, - 0xd9, 0x89, 0x47, 0x81, 0xf4, 0xfd, 0xa2, 0x34, 0x25, 0xf9, 0xae, 0x71, 0x92, 0x96, 0x31, 0xf3, - 0x9e, 0x2c, 0x64, 0xce, 0x24, 0x99, 0x37, 0xe2, 0x48, 0x9c, 0xa4, 0x65, 0xd9, 0xeb, 0x98, 0xbd, - 0x0f, 0xd9, 0xed, 0x84, 0x57, 0xf4, 0x1d, 0x06, 0xc4, 0x02, 0x87, 0xb6, 0x60, 0xce, 0x70, 0x1c, - 0xef, 0x98, 0x03, 0xeb, 0x9e, 0x77, 0xd8, 0x32, 0xe8, 0xa1, 0xcf, 0xc7, 0xa8, 0x42, 0xfd, 0x73, - 0x92, 0x65, 0x6e, 0x75, 0x90, 0x04, 0x9f, 0xc5, 0x77, 0xd6, 0xb5, 0x8d, 0x8f, 0x78, 0x6d, 0xd7, - 0x61, 0x8a, 0xc5, 0x97, 0xd7, 0x09, 0x54, 0x87, 0x99, 0xe3, 0x97, 0x80, 0x4e, 0x7a, 0xd5, 0xa9, - 0x3b, 0x09, 0x0c, 0xee, 0xa3, 0x64, 0x2e, 0x3b, 0x76, 0xcb, 0x0e, 0x2a, 0x13, 0x9c, 0x25, 0x74, - 0xf9, 0x16, 0x03, 0x62, 0x81, 0x4b, 0xc4, 0x45, 0xe1, 0xbc, 0xb8, 0xd0, 0x7f, 0x9b, 0x05, 0x24, - 0x5a, 0x62, 0x4b, 0xf4, 0x36, 0x22, 0xd1, 0x5c, 0x86, 0x89, 0x96, 0x6c, 0xa9, 0xb5, 0x64, 0xd6, - 0x57, 0xdd, 0xb4, 0xc2, 0xa3, 0x2d, 0x28, 0x8a, 0x07, 0x1f, 0x05, 0xf1, 0xb2, 0x24, 0x2e, 0x6e, - 0x2b, 0xc4, 0x69, 0xaf, 0x3a, 0x9f, 0x50, 0x13, 0x62, 0xee, 0x74, 0xdb, 0x04, 0x47, 0x12, 0xd8, - 0x14, 0x6d, 0xb4, 0xed, 0xf8, 0xfe, 0xa4, 0x18, 0x4d, 0xd1, 0xd1, 0x24, 0x84, 0x63, 0x54, 0xe8, - 0x2d, 0x18, 0x67, 0x27, 0x25, 0x47, 0xda, 0x2f, 0xa5, 0x4b, 0x1b, 0xec, 0xac, 0xeb, 0x05, 0x56, - 0x35, 0xd9, 0x2f, 0xcc, 0x25, 0x30, 0xed, 0x3c, 0xca, 0x7c, 0x66, 0x96, 0x9c, 0xfd, 0x43, 0xed, - 0x1b, 0x21, 0x06, 0xc7, 0xa8, 0xd0, 0x77, 0xa1, 0xb0, 0x2f, 0xdb, 0x42, 0x7e, 0x31, 0xa9, 0x13, - 0x97, 0x6a, 0x26, 0xc5, 0x08, 0xa7, 0xbe, 0x70, 0x28, 0x4d, 0x7f, 0x07, 0x8a, 0x5b, 0xb6, 0x49, - 0x3d, 0x66, 0x20, 0xbb, 0x12, 0x3f, 0x31, 0x93, 0x84, 0x57, 0xa2, 0xc2, 0x45, 0xe1, 0x59, 0x9c, - 0xb8, 0x86, 0xeb, 0x89, 0xc9, 0x23, 0x17, 0xc5, 0xc9, 0x6d, 0x06, 0xc4, 0x02, 0x77, 0xfd, 0x02, - 0xab, 0xbf, 0xbf, 0x78, 0x52, 0x1d, 0x7b, 0xfc, 0xa4, 0x3a, 0xf6, 0xfe, 0x13, 0x59, 0x8b, 0x4f, - 0x01, 0x60, 0x7b, 0xef, 0x87, 0xc4, 0x14, 0x59, 0x2d, 0xd5, 0xbe, 0x44, 0xad, 0xe9, 0xf8, 0xbe, - 0x24, 0xd3, 0xd7, 0x53, 0xc5, 0x70, 0x38, 0x41, 0x89, 0x96, 0xa1, 0x18, 0x6e, 0x42, 0xe4, 0x45, - 0xcf, 0xaa, 0xc0, 0x09, 0xd7, 0x25, 0x38, 0xa2, 0x49, 0xa4, 0xd8, 0xf1, 0x73, 0x53, 0x6c, 0x1d, - 0xb2, 0x1d, 0xdb, 0xe2, 0xaf, 0xab, 0x58, 0x7f, 0x4d, 0x95, 0xb8, 0xbb, 0x9b, 0x8d, 0xd3, 0x5e, - 0xf5, 0xa5, 0x61, 0x0b, 0xc8, 0xa0, 0xdb, 0x26, 0x7e, 0xed, 0xee, 0x66, 0x03, 0x33, 0xe6, 0xb3, - 0xde, 0x7b, 0x7e, 0xc4, 0xf7, 0x7e, 0x15, 0x40, 0x7a, 0xcd, 0xb8, 0xc5, 0xc3, 0x0d, 0x23, 0xea, - 0x66, 0x88, 0xc1, 0x31, 0x2a, 0xe4, 0xc3, 0xac, 0xc9, 0x46, 0x61, 0xf6, 0x3c, 0xec, 0x16, 0xf1, - 0x03, 0xa3, 0x25, 0x36, 0x44, 0xa3, 0x05, 0xf7, 0x25, 0xa9, 0x66, 0x76, 0xad, 0x5f, 0x18, 0x1e, - 0x94, 0x8f, 0x3c, 0x98, 0xb5, 0xe4, 0x50, 0x17, 0x29, 0x2d, 0x8e, 0xac, 0xf4, 0x22, 0x53, 0xd8, - 0xe8, 0x17, 0x84, 0x07, 0x65, 0xa3, 0x1f, 0xc0, 0xbc, 0x02, 0x0e, 0x4e, 0xd6, 0x7c, 0xc7, 0x93, - 0xad, 0x2f, 0x9c, 0xf4, 0xaa, 0xf3, 0x8d, 0xa1, 0x54, 0xf8, 0x39, 0x12, 0x90, 0x05, 0x79, 0x47, - 0xf4, 0x8f, 0x25, 0x5e, 0xf3, 0xbf, 0x91, 0xce, 0x8b, 0x28, 0xfa, 0x6b, 0xf1, 0xbe, 0x31, 0x9c, - 0x1c, 0x65, 0xcb, 0x28, 0x65, 0xa3, 0x47, 0x50, 0x32, 0x5c, 0xd7, 0x0b, 0x0c, 0x31, 0xeb, 0x4f, - 0x72, 0x55, 0xab, 0x23, 0xab, 0x5a, 0x8d, 0x64, 0xf4, 0xf5, 0xa9, 0x31, 0x0c, 0x8e, 0xab, 0x42, - 0xc7, 0x30, 0xed, 0x1d, 0xbb, 0x84, 0x62, 0xb2, 0x4f, 0x28, 0x71, 0x4d, 0xe2, 0x57, 0xca, 0x5c, - 0xfb, 0x57, 0x53, 0x6a, 0x4f, 0x30, 0x47, 0x21, 0x9d, 0x84, 0xfb, 0xb8, 0x5f, 0x0b, 0xaa, 0xb1, - 0x24, 0xe9, 0x1a, 0x8e, 0xfd, 0x23, 0x42, 0xfd, 0xca, 0x54, 0xb4, 0xc4, 0xdb, 0x08, 0xa1, 0x38, - 0x46, 0x81, 0xbe, 0x06, 0x25, 0xd3, 0xe9, 0xf8, 0x01, 0x11, 0x1b, 0xd5, 0x69, 0xfe, 0x82, 0x42, - 0xff, 0xd6, 0x22, 0x14, 0x8e, 0xd3, 0xa1, 0x0e, 0x94, 0x5b, 0xf1, 0x92, 0x51, 0x99, 0xe5, 0xde, - 0x5d, 0x4b, 0xe7, 0xdd, 0x60, 0x51, 0x8b, 0xfa, 0x8a, 0x04, 0x0e, 0x27, 0xb5, 0xcc, 0x7f, 0x1d, - 0x4a, 0xff, 0x63, 0xcb, 0xcd, 0x5a, 0xf6, 0xfe, 0x7b, 0x1c, 0xa9, 0x65, 0xff, 0x73, 0x06, 0xa6, - 0x92, 0xa7, 0xdf, 0x57, 0x0e, 0x73, 0xa9, 0xca, 0xa1, 0x1a, 0x0e, 0xb5, 0xa1, 0x4b, 0x60, 0x95, - 0xd6, 0xb3, 0x43, 0xd3, 0xba, 0xcc, 0x9e, 0xe3, 0x2f, 0x92, 0x3d, 0x6b, 0x00, 0xac, 0xcf, 0xa0, - 0x9e, 0xe3, 0x10, 0xca, 0x13, 0x67, 0x41, 0x2e, 0x7b, 0x43, 0x28, 0x8e, 0x51, 0xb0, 0x1e, 0x75, - 0xcf, 0xf1, 0xcc, 0x43, 0x7e, 0x04, 0xea, 0xd1, 0xf3, 0x94, 0x59, 0x10, 0x3d, 0x6a, 0x7d, 0x00, - 0x8b, 0xcf, 0xe0, 0xd0, 0xbb, 0x70, 0x71, 0xc7, 0xa0, 0x81, 0x6d, 0x38, 0xd1, 0x03, 0xe3, 0x43, - 0xc0, 0xc3, 0x81, 0x11, 0xe3, 0xb5, 0x51, 0x1f, 0x6a, 0x74, 0xf8, 0x11, 0x2c, 0x1a, 0x33, 0xf4, - 0xbf, 0x6b, 0x70, 0xe9, 0x4c, 0xdd, 0x9f, 0xc0, 0x88, 0xf3, 0x30, 0x39, 0xe2, 0xbc, 0x91, 0x72, - 0xdf, 0x78, 0x96, 0xb5, 0x43, 0x06, 0x9e, 0x09, 0xc8, 0xed, 0xb0, 0x86, 0x58, 0xff, 0xb5, 0x06, - 0x93, 0xfc, 0xd7, 0x28, 0xbb, 0xda, 0x2a, 0xe4, 0xf6, 0x3d, 0xb5, 0x38, 0x2a, 0x88, 0x3f, 0x13, - 0x36, 0x18, 0x00, 0x0b, 0xf8, 0x0b, 0x2c, 0x73, 0xdf, 0xd3, 0x20, 0xb9, 0x25, 0x45, 0x37, 0x44, - 0xfc, 0x6a, 0xe1, 0x1a, 0x73, 0xc4, 0xd8, 0x7d, 0x73, 0xd8, 0x80, 0x36, 0x97, 0x6a, 0x77, 0x77, - 0x05, 0x8a, 0xd8, 0xf3, 0x82, 0x1d, 0x23, 0x38, 0xf0, 0x99, 0xe3, 0x6d, 0xf6, 0x43, 0x9e, 0x0d, - 0x77, 0x9c, 0x63, 0xb0, 0x80, 0xeb, 0xbf, 0xd2, 0xe0, 0xd2, 0xd0, 0xfd, 0x39, 0x4b, 0x01, 0x66, - 0xf8, 0x25, 0x3d, 0x0a, 0xa3, 0x30, 0xa2, 0xc3, 0x31, 0x2a, 0x36, 0x59, 0x25, 0x96, 0xee, 0xfd, - 0x93, 0x55, 0x42, 0x1b, 0x4e, 0xd2, 0xea, 0xff, 0xce, 0x40, 0x7e, 0x37, 0x30, 0x82, 0x8e, 0xff, - 0x7f, 0x8e, 0xd8, 0x57, 0x20, 0xef, 0x73, 0x3d, 0xd2, 0xbc, 0xb0, 0xc6, 0x0a, 0xed, 0x58, 0x62, - 0xf9, 0x34, 0x42, 0x7c, 0xdf, 0x68, 0xaa, 0x8c, 0x15, 0x4d, 0x23, 0x02, 0x8c, 0x15, 0x1e, 0xbd, - 0x0e, 0x79, 0x4a, 0x0c, 0x3f, 0x1c, 0xcc, 0x16, 0x94, 0x48, 0xcc, 0xa1, 0xa7, 0xbd, 0xea, 0xa4, - 0x14, 0xce, 0xbf, 0xb1, 0xa4, 0x46, 0xf7, 0x61, 0xc2, 0x22, 0x81, 0x61, 0x3b, 0x62, 0x1e, 0x4b, - 0xbd, 0xae, 0x17, 0xc2, 0x1a, 0x82, 0xb5, 0x5e, 0x62, 0x36, 0xc9, 0x0f, 0xac, 0x04, 0xb2, 0x6c, - 0x6b, 0x7a, 0x96, 0x18, 0x27, 0x72, 0x51, 0xb6, 0x5d, 0xf3, 0x2c, 0x82, 0x39, 0x46, 0x7f, 0xac, - 0x41, 0x49, 0x48, 0x5a, 0x33, 0x3a, 0x3e, 0x41, 0x2b, 0xa1, 0x17, 0xe2, 0xba, 0x55, 0x27, 0x37, - 0xce, 0x06, 0x8e, 0xd3, 0x5e, 0xb5, 0xc8, 0xc9, 0xf8, 0x24, 0xa2, 0x1c, 0x88, 0x9d, 0x51, 0xe6, - 0x9c, 0x33, 0x7a, 0x19, 0x72, 0xfc, 0xf5, 0xc8, 0xc3, 0x0c, 0xdf, 0x3a, 0x7f, 0x60, 0x58, 0xe0, - 0xf4, 0x8f, 0x32, 0x50, 0x4e, 0x38, 0x97, 0x62, 0x16, 0x08, 0x17, 0x8a, 0x99, 0x14, 0x4b, 0xea, - 0xe1, 0x7f, 0x51, 0xca, 0xda, 0x93, 0x7f, 0x91, 0xda, 0xf3, 0x3d, 0xc8, 0x9b, 0xec, 0x8c, 0xd4, - 0x3f, 0xde, 0x2b, 0xa3, 0x5c, 0x27, 0x3f, 0xdd, 0x28, 0x1a, 0xf9, 0xa7, 0x8f, 0xa5, 0x40, 0x74, - 0x13, 0x66, 0x29, 0x09, 0x68, 0x77, 0x75, 0x3f, 0x20, 0x34, 0x3e, 0xc4, 0xe7, 0xa2, 0x8e, 0x1b, - 0xf7, 0x13, 0xe0, 0x41, 0x1e, 0x7d, 0x0f, 0x26, 0xef, 0x18, 0x7b, 0x4e, 0xf8, 0x07, 0x14, 0x86, - 0xb2, 0xed, 0x9a, 0x4e, 0xc7, 0x22, 0x22, 0x1b, 0xab, 0xec, 0xa5, 0x1e, 0xed, 0x66, 0x1c, 0x79, - 0xda, 0xab, 0xce, 0x25, 0x00, 0xe2, 0x1f, 0x17, 0x9c, 0x14, 0xa1, 0x3b, 0x30, 0xfe, 0x09, 0x4e, - 0x8f, 0xdf, 0x87, 0x62, 0xd4, 0xdf, 0x7f, 0xcc, 0x2a, 0xf5, 0x87, 0x50, 0x60, 0x11, 0xaf, 0xe6, - 0xd2, 0x73, 0x5a, 0x9c, 0x64, 0xe3, 0x94, 0x49, 0xd3, 0x38, 0xe9, 0x2d, 0x28, 0xdf, 0x6d, 0x5b, - 0x2f, 0xf8, 0x17, 0x64, 0x26, 0x75, 0xd5, 0xba, 0x0a, 0xe2, 0xcf, 0x74, 0x56, 0x20, 0x44, 0xe5, - 0x8e, 0x15, 0x88, 0x78, 0xe1, 0x8d, 0xed, 0xca, 0x7f, 0xa6, 0x01, 0xf0, 0xa5, 0xd4, 0xfa, 0x11, - 0x71, 0x03, 0x76, 0x0e, 0x2c, 0xf0, 0xfb, 0xcf, 0x81, 0x67, 0x06, 0x8e, 0x41, 0x77, 0x21, 0xef, - 0x89, 0x68, 0x12, 0x7f, 0x43, 0x8e, 0xb8, 0xf9, 0x0c, 0x1f, 0x81, 0x88, 0x27, 0x2c, 0x85, 0xd5, - 0x97, 0x9e, 0x3e, 0x5b, 0x18, 0xfb, 0xe0, 0xd9, 0xc2, 0xd8, 0x87, 0xcf, 0x16, 0xc6, 0xde, 0x3d, - 0x59, 0xd0, 0x9e, 0x9e, 0x2c, 0x68, 0x1f, 0x9c, 0x2c, 0x68, 0x1f, 0x9e, 0x2c, 0x68, 0x1f, 0x9d, - 0x2c, 0x68, 0x8f, 0xff, 0xb9, 0x30, 0x76, 0x3f, 0x73, 0xb4, 0xf2, 0xdf, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x61, 0xb7, 0xc5, 0x7c, 0xc2, 0x24, 0x00, 0x00, -} - -func (m *APIGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *APIGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *APIGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ServerAddressByClientCIDRs) > 0 { - for iNdEx := len(m.ServerAddressByClientCIDRs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ServerAddressByClientCIDRs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size, err := m.PreferredVersion.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Versions) > 0 { - for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Versions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *APIGroupList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *APIGroupList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *APIGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *APIResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *APIResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *APIResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.StorageVersionHash) - copy(dAtA[i:], m.StorageVersionHash) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageVersionHash))) - i-- - dAtA[i] = 0x52 - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x4a - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x42 - if len(m.Categories) > 0 { - for iNdEx := len(m.Categories) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Categories[iNdEx]) - copy(dAtA[i:], m.Categories[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Categories[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - i -= len(m.SingularName) - copy(dAtA[i:], m.SingularName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SingularName))) - i-- - dAtA[i] = 0x32 - if len(m.ShortNames) > 0 { - for iNdEx := len(m.ShortNames) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ShortNames[iNdEx]) - copy(dAtA[i:], m.ShortNames[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ShortNames[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.Verbs != nil { - { - size, err := m.Verbs.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x1a - i-- - if m.Namespaced { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *APIResourceList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *APIResourceList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *APIResourceList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.APIResources) > 0 { - for iNdEx := len(m.APIResources) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.APIResources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.GroupVersion) - copy(dAtA[i:], m.GroupVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.GroupVersion))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *APIVersions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *APIVersions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *APIVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ServerAddressByClientCIDRs) > 0 { - for iNdEx := len(m.ServerAddressByClientCIDRs) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ServerAddressByClientCIDRs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Versions) > 0 { - for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Versions[iNdEx]) - copy(dAtA[i:], m.Versions[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Versions[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *CreateOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CreateOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.FieldManager) - copy(dAtA[i:], m.FieldManager) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldManager))) - i-- - dAtA[i] = 0x1a - if len(m.DryRun) > 0 { - for iNdEx := len(m.DryRun) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DryRun[iNdEx]) - copy(dAtA[i:], m.DryRun[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DryRun[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *DeleteOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DryRun) > 0 { - for iNdEx := len(m.DryRun) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DryRun[iNdEx]) - copy(dAtA[i:], m.DryRun[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DryRun[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if m.PropagationPolicy != nil { - i -= len(*m.PropagationPolicy) - copy(dAtA[i:], *m.PropagationPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PropagationPolicy))) - i-- - dAtA[i] = 0x22 - } - if m.OrphanDependents != nil { - i-- - if *m.OrphanDependents { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.Preconditions != nil { - { - size, err := m.Preconditions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.GracePeriodSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.GracePeriodSeconds)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *Duration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Duration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Duration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Duration)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *ExportOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ExportOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ExportOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.Exact { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - i-- - if m.Export { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *FieldsV1) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FieldsV1) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FieldsV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Raw != nil { - i -= len(m.Raw) - copy(dAtA[i:], m.Raw) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GetOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GetOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GroupKind) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupKind) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupKind) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GroupResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Resource) - copy(dAtA[i:], m.Resource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i-- - dAtA[i] = 0x12 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GroupVersion) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupVersion) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x12 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GroupVersionForDiscovery) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupVersionForDiscovery) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupVersionForDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x12 - i -= len(m.GroupVersion) - copy(dAtA[i:], m.GroupVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.GroupVersion))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GroupVersionKind) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupVersionKind) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupVersionKind) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x1a - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x12 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *GroupVersionResource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupVersionResource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupVersionResource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Resource) - copy(dAtA[i:], m.Resource) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Resource))) - i-- - dAtA[i] = 0x1a - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0x12 - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *LabelSelector) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LabelSelector) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LabelSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MatchExpressions) > 0 { - for iNdEx := len(m.MatchExpressions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MatchExpressions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.MatchLabels) > 0 { - keysForMatchLabels := make([]string, 0, len(m.MatchLabels)) - for k := range m.MatchLabels { - keysForMatchLabels = append(keysForMatchLabels, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) - for iNdEx := len(keysForMatchLabels) - 1; iNdEx >= 0; iNdEx-- { - v := m.MatchLabels[string(keysForMatchLabels[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForMatchLabels[iNdEx]) - copy(dAtA[i:], keysForMatchLabels[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMatchLabels[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *LabelSelectorRequirement) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *LabelSelectorRequirement) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *LabelSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Values[iNdEx]) - copy(dAtA[i:], m.Values[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Values[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - i -= len(m.Operator) - copy(dAtA[i:], m.Operator) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operator))) - i-- - dAtA[i] = 0x12 - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *List) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *List) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *List) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ListMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.RemainingItemCount != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.RemainingItemCount)) - i-- - dAtA[i] = 0x20 - } - i -= len(m.Continue) - copy(dAtA[i:], m.Continue) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Continue))) - i-- - dAtA[i] = 0x1a - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x12 - i -= len(m.SelfLink) - copy(dAtA[i:], m.SelfLink) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SelfLink))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ListOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ListOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ListOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i-- - if m.AllowWatchBookmarks { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - i -= len(m.Continue) - copy(dAtA[i:], m.Continue) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Continue))) - i-- - dAtA[i] = 0x42 - i = encodeVarintGenerated(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x38 - if m.TimeoutSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) - i-- - dAtA[i] = 0x28 - } - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x22 - i-- - if m.Watch { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - i -= len(m.FieldSelector) - copy(dAtA[i:], m.FieldSelector) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldSelector))) - i-- - dAtA[i] = 0x12 - i -= len(m.LabelSelector) - copy(dAtA[i:], m.LabelSelector) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.LabelSelector))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ManagedFieldsEntry) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManagedFieldsEntry) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManagedFieldsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FieldsV1 != nil { - { - size, err := m.FieldsV1.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - i -= len(m.FieldsType) - copy(dAtA[i:], m.FieldsType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldsType))) - i-- - dAtA[i] = 0x32 - if m.Time != nil { - { - size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x1a - i -= len(m.Operation) - copy(dAtA[i:], m.Operation) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation))) - i-- - dAtA[i] = 0x12 - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Manager))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *ObjectMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ManagedFields) > 0 { - for iNdEx := len(m.ManagedFields) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ManagedFields[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - } - i -= len(m.ClusterName) - copy(dAtA[i:], m.ClusterName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterName))) - i-- - dAtA[i] = 0x7a - if len(m.Finalizers) > 0 { - for iNdEx := len(m.Finalizers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Finalizers[iNdEx]) - copy(dAtA[i:], m.Finalizers[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Finalizers[iNdEx]))) - i-- - dAtA[i] = 0x72 - } - } - if len(m.OwnerReferences) > 0 { - for iNdEx := len(m.OwnerReferences) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.OwnerReferences[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - } - if len(m.Annotations) > 0 { - keysForAnnotations := make([]string, 0, len(m.Annotations)) - for k := range m.Annotations { - keysForAnnotations = append(keysForAnnotations, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - for iNdEx := len(keysForAnnotations) - 1; iNdEx >= 0; iNdEx-- { - v := m.Annotations[string(keysForAnnotations[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForAnnotations[iNdEx]) - copy(dAtA[i:], keysForAnnotations[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAnnotations[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x62 - } - } - if len(m.Labels) > 0 { - keysForLabels := make([]string, 0, len(m.Labels)) - for k := range m.Labels { - keysForLabels = append(keysForLabels, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) - for iNdEx := len(keysForLabels) - 1; iNdEx >= 0; iNdEx-- { - v := m.Labels[string(keysForLabels[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForLabels[iNdEx]) - copy(dAtA[i:], keysForLabels[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLabels[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x5a - } - } - if m.DeletionGracePeriodSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.DeletionGracePeriodSeconds)) - i-- - dAtA[i] = 0x50 - } - if m.DeletionTimestamp != nil { - { - size, err := m.DeletionTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - { - size, err := m.CreationTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - i = encodeVarintGenerated(dAtA, i, uint64(m.Generation)) - i-- - dAtA[i] = 0x38 - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x32 - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x2a - i -= len(m.SelfLink) - copy(dAtA[i:], m.SelfLink) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SelfLink))) - i-- - dAtA[i] = 0x22 - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - i -= len(m.GenerateName) - copy(dAtA[i:], m.GenerateName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.GenerateName))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *OwnerReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OwnerReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OwnerReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BlockOwnerDeletion != nil { - i-- - if *m.BlockOwnerDeletion { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Controller != nil { - i-- - if *m.Controller { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x2a - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x22 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PartialObjectMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PartialObjectMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PartialObjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Patch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Patch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Patch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *PatchOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PatchOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PatchOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.FieldManager) - copy(dAtA[i:], m.FieldManager) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldManager))) - i-- - dAtA[i] = 0x1a - if m.Force != nil { - i-- - if *m.Force { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.DryRun) > 0 { - for iNdEx := len(m.DryRun) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DryRun[iNdEx]) - copy(dAtA[i:], m.DryRun[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DryRun[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Preconditions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Preconditions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Preconditions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ResourceVersion != nil { - i -= len(*m.ResourceVersion) - copy(dAtA[i:], *m.ResourceVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ResourceVersion))) - i-- - dAtA[i] = 0x12 - } - if m.UID != nil { - i -= len(*m.UID) - copy(dAtA[i:], *m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(*m.UID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RootPaths) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RootPaths) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RootPaths) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Paths) > 0 { - for iNdEx := len(m.Paths) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Paths[iNdEx]) - copy(dAtA[i:], m.Paths[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Paths[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ServerAddressByClientCIDR) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServerAddressByClientCIDR) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServerAddressByClientCIDR) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ServerAddress) - copy(dAtA[i:], m.ServerAddress) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServerAddress))) - i-- - dAtA[i] = 0x12 - i -= len(m.ClientCIDR) - copy(dAtA[i:], m.ClientCIDR) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClientCIDR))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Status) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Status) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Code)) - i-- - dAtA[i] = 0x30 - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatusCause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatusCause) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusCause) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Field) - copy(dAtA[i:], m.Field) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Field))) - i-- - dAtA[i] = 0x1a - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StatusDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StatusDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StatusDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.UID) - copy(dAtA[i:], m.UID) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID))) - i-- - dAtA[i] = 0x32 - i = encodeVarintGenerated(dAtA, i, uint64(m.RetryAfterSeconds)) - i-- - dAtA[i] = 0x28 - if len(m.Causes) > 0 { - for iNdEx := len(m.Causes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Causes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x1a - i -= len(m.Group) - copy(dAtA[i:], m.Group) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Group))) - i-- - dAtA[i] = 0x12 - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *TableOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TableOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TableOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.IncludeObject) - copy(dAtA[i:], m.IncludeObject) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.IncludeObject))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Timestamp) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Timestamp) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i = encodeVarintGenerated(dAtA, i, uint64(m.Nanos)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Seconds)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func (m *TypeMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TypeMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0x12 - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *UpdateOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpdateOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.FieldManager) - copy(dAtA[i:], m.FieldManager) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.FieldManager))) - i-- - dAtA[i] = 0x12 - if len(m.DryRun) > 0 { - for iNdEx := len(m.DryRun) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DryRun[iNdEx]) - copy(dAtA[i:], m.DryRun[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DryRun[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m Verbs) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m Verbs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m Verbs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m) > 0 { - for iNdEx := len(m) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m[iNdEx]) - copy(dAtA[i:], m[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(m[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *WatchEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WatchEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WatchEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *APIGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Versions) > 0 { - for _, e := range m.Versions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.PreferredVersion.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.ServerAddressByClientCIDRs) > 0 { - for _, e := range m.ServerAddressByClientCIDRs { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *APIGroupList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Groups) > 0 { - for _, e := range m.Groups { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *APIResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - if m.Verbs != nil { - l = m.Verbs.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.ShortNames) > 0 { - for _, s := range m.ShortNames { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.SingularName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Categories) > 0 { - for _, s := range m.Categories { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.StorageVersionHash) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *APIResourceList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupVersion) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.APIResources) > 0 { - for _, e := range m.APIResources { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *APIVersions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Versions) > 0 { - for _, s := range m.Versions { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.ServerAddressByClientCIDRs) > 0 { - for _, e := range m.ServerAddressByClientCIDRs { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CreateOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DryRun) > 0 { - for _, s := range m.DryRun { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.FieldManager) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *DeleteOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.GracePeriodSeconds != nil { - n += 1 + sovGenerated(uint64(*m.GracePeriodSeconds)) - } - if m.Preconditions != nil { - l = m.Preconditions.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.OrphanDependents != nil { - n += 2 - } - if m.PropagationPolicy != nil { - l = len(*m.PropagationPolicy) - n += 1 + l + sovGenerated(uint64(l)) - } - if len(m.DryRun) > 0 { - for _, s := range m.DryRun { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Duration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Duration)) - return n -} - -func (m *ExportOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 2 - n += 2 - return n -} - -func (m *FieldsV1) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Raw != nil { - l = len(m.Raw) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *GetOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GroupKind) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GroupResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GroupVersion) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GroupVersionForDiscovery) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GroupVersionKind) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *GroupVersionResource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Version) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Resource) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *LabelSelector) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MatchLabels) > 0 { - for k, v := range m.MatchLabels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.MatchExpressions) > 0 { - for _, e := range m.MatchExpressions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *LabelSelectorRequirement) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operator) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Values) > 0 { - for _, s := range m.Values { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *List) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ListMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SelfLink) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Continue) - n += 1 + l + sovGenerated(uint64(l)) - if m.RemainingItemCount != nil { - n += 1 + sovGenerated(uint64(*m.RemainingItemCount)) - } - return n -} - -func (m *ListOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.LabelSelector) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.FieldSelector) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - l = len(m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - if m.TimeoutSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) - } - n += 1 + sovGenerated(uint64(m.Limit)) - l = len(m.Continue) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - return n -} - -func (m *ManagedFieldsEntry) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Manager) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Operation) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - if m.Time != nil { - l = m.Time.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.FieldsType) - n += 1 + l + sovGenerated(uint64(l)) - if m.FieldsV1 != nil { - l = m.FieldsV1.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *ObjectMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.GenerateName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Namespace) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.SelfLink) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - n += 1 + sovGenerated(uint64(m.Generation)) - l = m.CreationTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.DeletionTimestamp != nil { - l = m.DeletionTimestamp.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - if m.DeletionGracePeriodSeconds != nil { - n += 1 + sovGenerated(uint64(*m.DeletionGracePeriodSeconds)) - } - if len(m.Labels) > 0 { - for k, v := range m.Labels { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.Annotations) > 0 { - for k, v := range m.Annotations { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - if len(m.OwnerReferences) > 0 { - for _, e := range m.OwnerReferences { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.ClusterName) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.ManagedFields) > 0 { - for _, e := range m.ManagedFields { - l = e.Size() - n += 2 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *OwnerReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - if m.Controller != nil { - n += 2 - } - if m.BlockOwnerDeletion != nil { - n += 2 - } - return n -} - -func (m *PartialObjectMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *PartialObjectMetadataList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *Patch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *PatchOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DryRun) > 0 { - for _, s := range m.DryRun { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - if m.Force != nil { - n += 2 - } - l = len(m.FieldManager) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Preconditions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UID != nil { - l = len(*m.UID) - n += 1 + l + sovGenerated(uint64(l)) - } - if m.ResourceVersion != nil { - l = len(*m.ResourceVersion) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *RootPaths) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Paths) > 0 { - for _, s := range m.Paths { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *ServerAddressByClientCIDR) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ClientCIDR) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ServerAddress) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Status) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - n += 1 + sovGenerated(uint64(m.Code)) - return n -} - -func (m *StatusCause) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Field) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *StatusDetails) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Group) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Causes) > 0 { - for _, e := range m.Causes { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - n += 1 + sovGenerated(uint64(m.RetryAfterSeconds)) - l = len(m.UID) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *TableOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.IncludeObject) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Timestamp) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Seconds)) - n += 1 + sovGenerated(uint64(m.Nanos)) - return n -} - -func (m *TypeMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *UpdateOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.DryRun) > 0 { - for _, s := range m.DryRun { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.FieldManager) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m Verbs) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m) > 0 { - for _, s := range m { - l = len(s) - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *WatchEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = m.Object.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *APIGroup) String() string { - if this == nil { - return "nil" - } - repeatedStringForVersions := "[]GroupVersionForDiscovery{" - for _, f := range this.Versions { - repeatedStringForVersions += strings.Replace(strings.Replace(f.String(), "GroupVersionForDiscovery", "GroupVersionForDiscovery", 1), `&`, ``, 1) + "," - } - repeatedStringForVersions += "}" - repeatedStringForServerAddressByClientCIDRs := "[]ServerAddressByClientCIDR{" - for _, f := range this.ServerAddressByClientCIDRs { - repeatedStringForServerAddressByClientCIDRs += strings.Replace(strings.Replace(f.String(), "ServerAddressByClientCIDR", "ServerAddressByClientCIDR", 1), `&`, ``, 1) + "," - } - repeatedStringForServerAddressByClientCIDRs += "}" - s := strings.Join([]string{`&APIGroup{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Versions:` + repeatedStringForVersions + `,`, - `PreferredVersion:` + strings.Replace(strings.Replace(this.PreferredVersion.String(), "GroupVersionForDiscovery", "GroupVersionForDiscovery", 1), `&`, ``, 1) + `,`, - `ServerAddressByClientCIDRs:` + repeatedStringForServerAddressByClientCIDRs + `,`, - `}`, - }, "") - return s -} -func (this *APIGroupList) String() string { - if this == nil { - return "nil" - } - repeatedStringForGroups := "[]APIGroup{" - for _, f := range this.Groups { - repeatedStringForGroups += strings.Replace(strings.Replace(f.String(), "APIGroup", "APIGroup", 1), `&`, ``, 1) + "," - } - repeatedStringForGroups += "}" - s := strings.Join([]string{`&APIGroupList{`, - `Groups:` + repeatedStringForGroups + `,`, - `}`, - }, "") - return s -} -func (this *APIResource) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&APIResource{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Namespaced:` + fmt.Sprintf("%v", this.Namespaced) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Verbs:` + strings.Replace(fmt.Sprintf("%v", this.Verbs), "Verbs", "Verbs", 1) + `,`, - `ShortNames:` + fmt.Sprintf("%v", this.ShortNames) + `,`, - `SingularName:` + fmt.Sprintf("%v", this.SingularName) + `,`, - `Categories:` + fmt.Sprintf("%v", this.Categories) + `,`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `StorageVersionHash:` + fmt.Sprintf("%v", this.StorageVersionHash) + `,`, - `}`, - }, "") - return s -} -func (this *APIResourceList) String() string { - if this == nil { - return "nil" - } - repeatedStringForAPIResources := "[]APIResource{" - for _, f := range this.APIResources { - repeatedStringForAPIResources += strings.Replace(strings.Replace(f.String(), "APIResource", "APIResource", 1), `&`, ``, 1) + "," - } - repeatedStringForAPIResources += "}" - s := strings.Join([]string{`&APIResourceList{`, - `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, - `APIResources:` + repeatedStringForAPIResources + `,`, - `}`, - }, "") - return s -} -func (this *CreateOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateOptions{`, - `DryRun:` + fmt.Sprintf("%v", this.DryRun) + `,`, - `FieldManager:` + fmt.Sprintf("%v", this.FieldManager) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteOptions{`, - `GracePeriodSeconds:` + valueToStringGenerated(this.GracePeriodSeconds) + `,`, - `Preconditions:` + strings.Replace(this.Preconditions.String(), "Preconditions", "Preconditions", 1) + `,`, - `OrphanDependents:` + valueToStringGenerated(this.OrphanDependents) + `,`, - `PropagationPolicy:` + valueToStringGenerated(this.PropagationPolicy) + `,`, - `DryRun:` + fmt.Sprintf("%v", this.DryRun) + `,`, - `}`, - }, "") - return s -} -func (this *Duration) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Duration{`, - `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, - `}`, - }, "") - return s -} -func (this *ExportOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ExportOptions{`, - `Export:` + fmt.Sprintf("%v", this.Export) + `,`, - `Exact:` + fmt.Sprintf("%v", this.Exact) + `,`, - `}`, - }, "") - return s -} -func (this *FieldsV1) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&FieldsV1{`, - `Raw:` + valueToStringGenerated(this.Raw) + `,`, - `}`, - }, "") - return s -} -func (this *GetOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetOptions{`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `}`, - }, "") - return s -} -func (this *GroupVersionForDiscovery) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GroupVersionForDiscovery{`, - `GroupVersion:` + fmt.Sprintf("%v", this.GroupVersion) + `,`, - `Version:` + fmt.Sprintf("%v", this.Version) + `,`, - `}`, - }, "") - return s -} -func (this *LabelSelector) String() string { - if this == nil { - return "nil" - } - repeatedStringForMatchExpressions := "[]LabelSelectorRequirement{" - for _, f := range this.MatchExpressions { - repeatedStringForMatchExpressions += strings.Replace(strings.Replace(f.String(), "LabelSelectorRequirement", "LabelSelectorRequirement", 1), `&`, ``, 1) + "," - } - repeatedStringForMatchExpressions += "}" - keysForMatchLabels := make([]string, 0, len(this.MatchLabels)) - for k := range this.MatchLabels { - keysForMatchLabels = append(keysForMatchLabels, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForMatchLabels) - mapStringForMatchLabels := "map[string]string{" - for _, k := range keysForMatchLabels { - mapStringForMatchLabels += fmt.Sprintf("%v: %v,", k, this.MatchLabels[k]) - } - mapStringForMatchLabels += "}" - s := strings.Join([]string{`&LabelSelector{`, - `MatchLabels:` + mapStringForMatchLabels + `,`, - `MatchExpressions:` + repeatedStringForMatchExpressions + `,`, - `}`, - }, "") - return s -} -func (this *LabelSelectorRequirement) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&LabelSelectorRequirement{`, - `Key:` + fmt.Sprintf("%v", this.Key) + `,`, - `Operator:` + fmt.Sprintf("%v", this.Operator) + `,`, - `Values:` + fmt.Sprintf("%v", this.Values) + `,`, - `}`, - }, "") - return s -} -func (this *List) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]RawExtension{" - for _, f := range this.Items { - repeatedStringForItems += fmt.Sprintf("%v", f) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&List{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *ListMeta) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListMeta{`, - `SelfLink:` + fmt.Sprintf("%v", this.SelfLink) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `Continue:` + fmt.Sprintf("%v", this.Continue) + `,`, - `RemainingItemCount:` + valueToStringGenerated(this.RemainingItemCount) + `,`, - `}`, - }, "") - return s -} -func (this *ListOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ListOptions{`, - `LabelSelector:` + fmt.Sprintf("%v", this.LabelSelector) + `,`, - `FieldSelector:` + fmt.Sprintf("%v", this.FieldSelector) + `,`, - `Watch:` + fmt.Sprintf("%v", this.Watch) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, - `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, - `Continue:` + fmt.Sprintf("%v", this.Continue) + `,`, - `AllowWatchBookmarks:` + fmt.Sprintf("%v", this.AllowWatchBookmarks) + `,`, - `}`, - }, "") - return s -} -func (this *ManagedFieldsEntry) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ManagedFieldsEntry{`, - `Manager:` + fmt.Sprintf("%v", this.Manager) + `,`, - `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Time:` + strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "Time", 1) + `,`, - `FieldsType:` + fmt.Sprintf("%v", this.FieldsType) + `,`, - `FieldsV1:` + strings.Replace(this.FieldsV1.String(), "FieldsV1", "FieldsV1", 1) + `,`, - `}`, - }, "") - return s -} -func (this *ObjectMeta) String() string { - if this == nil { - return "nil" - } - repeatedStringForOwnerReferences := "[]OwnerReference{" - for _, f := range this.OwnerReferences { - repeatedStringForOwnerReferences += strings.Replace(strings.Replace(f.String(), "OwnerReference", "OwnerReference", 1), `&`, ``, 1) + "," - } - repeatedStringForOwnerReferences += "}" - repeatedStringForManagedFields := "[]ManagedFieldsEntry{" - for _, f := range this.ManagedFields { - repeatedStringForManagedFields += strings.Replace(strings.Replace(f.String(), "ManagedFieldsEntry", "ManagedFieldsEntry", 1), `&`, ``, 1) + "," - } - repeatedStringForManagedFields += "}" - keysForLabels := make([]string, 0, len(this.Labels)) - for k := range this.Labels { - keysForLabels = append(keysForLabels, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) - mapStringForLabels := "map[string]string{" - for _, k := range keysForLabels { - mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) - } - mapStringForLabels += "}" - keysForAnnotations := make([]string, 0, len(this.Annotations)) - for k := range this.Annotations { - keysForAnnotations = append(keysForAnnotations, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) - mapStringForAnnotations := "map[string]string{" - for _, k := range keysForAnnotations { - mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) - } - mapStringForAnnotations += "}" - s := strings.Join([]string{`&ObjectMeta{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `GenerateName:` + fmt.Sprintf("%v", this.GenerateName) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `SelfLink:` + fmt.Sprintf("%v", this.SelfLink) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `Generation:` + fmt.Sprintf("%v", this.Generation) + `,`, - `CreationTimestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreationTimestamp), "Time", "Time", 1), `&`, ``, 1) + `,`, - `DeletionTimestamp:` + strings.Replace(fmt.Sprintf("%v", this.DeletionTimestamp), "Time", "Time", 1) + `,`, - `DeletionGracePeriodSeconds:` + valueToStringGenerated(this.DeletionGracePeriodSeconds) + `,`, - `Labels:` + mapStringForLabels + `,`, - `Annotations:` + mapStringForAnnotations + `,`, - `OwnerReferences:` + repeatedStringForOwnerReferences + `,`, - `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, - `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, - `ManagedFields:` + repeatedStringForManagedFields + `,`, - `}`, - }, "") - return s -} -func (this *OwnerReference) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&OwnerReference{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Controller:` + valueToStringGenerated(this.Controller) + `,`, - `BlockOwnerDeletion:` + valueToStringGenerated(this.BlockOwnerDeletion) + `,`, - `}`, - }, "") - return s -} -func (this *PartialObjectMetadata) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PartialObjectMetadata{`, - `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *PartialObjectMetadataList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PartialObjectMetadata{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "PartialObjectMetadata", "PartialObjectMetadata", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PartialObjectMetadataList{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *Patch) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Patch{`, - `}`, - }, "") - return s -} -func (this *PatchOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&PatchOptions{`, - `DryRun:` + fmt.Sprintf("%v", this.DryRun) + `,`, - `Force:` + valueToStringGenerated(this.Force) + `,`, - `FieldManager:` + fmt.Sprintf("%v", this.FieldManager) + `,`, - `}`, - }, "") - return s -} -func (this *Preconditions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Preconditions{`, - `UID:` + valueToStringGenerated(this.UID) + `,`, - `ResourceVersion:` + valueToStringGenerated(this.ResourceVersion) + `,`, - `}`, - }, "") - return s -} -func (this *RootPaths) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RootPaths{`, - `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, - `}`, - }, "") - return s -} -func (this *ServerAddressByClientCIDR) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&ServerAddressByClientCIDR{`, - `ClientCIDR:` + fmt.Sprintf("%v", this.ClientCIDR) + `,`, - `ServerAddress:` + fmt.Sprintf("%v", this.ServerAddress) + `,`, - `}`, - }, "") - return s -} -func (this *Status) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Status{`, - `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "ListMeta", 1), `&`, ``, 1) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Details:` + strings.Replace(this.Details.String(), "StatusDetails", "StatusDetails", 1) + `,`, - `Code:` + fmt.Sprintf("%v", this.Code) + `,`, - `}`, - }, "") - return s -} -func (this *StatusCause) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&StatusCause{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Field:` + fmt.Sprintf("%v", this.Field) + `,`, - `}`, - }, "") - return s -} -func (this *StatusDetails) String() string { - if this == nil { - return "nil" - } - repeatedStringForCauses := "[]StatusCause{" - for _, f := range this.Causes { - repeatedStringForCauses += strings.Replace(strings.Replace(f.String(), "StatusCause", "StatusCause", 1), `&`, ``, 1) + "," - } - repeatedStringForCauses += "}" - s := strings.Join([]string{`&StatusDetails{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `Group:` + fmt.Sprintf("%v", this.Group) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `Causes:` + repeatedStringForCauses + `,`, - `RetryAfterSeconds:` + fmt.Sprintf("%v", this.RetryAfterSeconds) + `,`, - `UID:` + fmt.Sprintf("%v", this.UID) + `,`, - `}`, - }, "") - return s -} -func (this *TableOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TableOptions{`, - `IncludeObject:` + fmt.Sprintf("%v", this.IncludeObject) + `,`, - `}`, - }, "") - return s -} -func (this *Timestamp) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Timestamp{`, - `Seconds:` + fmt.Sprintf("%v", this.Seconds) + `,`, - `Nanos:` + fmt.Sprintf("%v", this.Nanos) + `,`, - `}`, - }, "") - return s -} -func (this *TypeMeta) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TypeMeta{`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `}`, - }, "") - return s -} -func (this *UpdateOptions) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateOptions{`, - `DryRun:` + fmt.Sprintf("%v", this.DryRun) + `,`, - `FieldManager:` + fmt.Sprintf("%v", this.FieldManager) + `,`, - `}`, - }, "") - return s -} -func (this *WatchEvent) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&WatchEvent{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Object:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Object), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *APIGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: APIGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: APIGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Versions = append(m.Versions, GroupVersionForDiscovery{}) - if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PreferredVersion", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.PreferredVersion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerAddressByClientCIDRs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServerAddressByClientCIDRs = append(m.ServerAddressByClientCIDRs, ServerAddressByClientCIDR{}) - if err := m.ServerAddressByClientCIDRs[len(m.ServerAddressByClientCIDRs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *APIGroupList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: APIGroupList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: APIGroupList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Groups = append(m.Groups, APIGroup{}) - if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *APIResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: APIResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: APIResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaced", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Namespaced = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Verbs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Verbs == nil { - m.Verbs = Verbs{} - } - if err := m.Verbs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShortNames", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShortNames = append(m.ShortNames, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SingularName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SingularName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Categories", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Categories = append(m.Categories, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StorageVersionHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StorageVersionHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *APIResourceList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: APIResourceList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: APIResourceList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIResources", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIResources = append(m.APIResources, APIResource{}) - if err := m.APIResources[len(m.APIResources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *APIVersions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: APIVersions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: APIVersions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Versions = append(m.Versions, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerAddressByClientCIDRs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServerAddressByClientCIDRs = append(m.ServerAddressByClientCIDRs, ServerAddressByClientCIDR{}) - if err := m.ServerAddressByClientCIDRs[len(m.ServerAddressByClientCIDRs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CreateOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CreateOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DryRun = append(m.DryRun, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldManager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldManager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GracePeriodSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.GracePeriodSeconds = &v - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Preconditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Preconditions == nil { - m.Preconditions = &Preconditions{} - } - if err := m.Preconditions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OrphanDependents", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.OrphanDependents = &b - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PropagationPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := DeletionPropagation(dAtA[iNdEx:postIndex]) - m.PropagationPolicy = &s - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DryRun = append(m.DryRun, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Duration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Duration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Duration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) - } - m.Duration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Duration |= time.Duration(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ExportOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ExportOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExportOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Export", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Export = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Exact", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Exact = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FieldsV1) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FieldsV1: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FieldsV1: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) - if m.Raw == nil { - m.Raw = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupKind) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupKind: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupKind: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupVersion) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupVersion: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupVersion: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupVersionForDiscovery) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupVersionForDiscovery: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupVersionForDiscovery: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupVersionKind) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupVersionKind: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupVersionKind: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupVersionResource) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupVersionResource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupVersionResource: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Resource = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LabelSelector) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LabelSelector: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelSelector: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchLabels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MatchLabels == nil { - m.MatchLabels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.MatchLabels[mapkey] = mapvalue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MatchExpressions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MatchExpressions = append(m.MatchExpressions, LabelSelectorRequirement{}) - if err := m.MatchExpressions[len(m.MatchExpressions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *LabelSelectorRequirement) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: LabelSelectorRequirement: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LabelSelectorRequirement: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = LabelSelectorOperator(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *List) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: List: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, runtime.RawExtension{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SelfLink", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SelfLink = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Continue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Continue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RemainingItemCount", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RemainingItemCount = &v - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LabelSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldSelector", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldSelector = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Watch", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Watch = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TimeoutSeconds = &v - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Continue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Continue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowWatchBookmarks", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowWatchBookmarks = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManagedFieldsEntry) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ManagedFieldsEntry: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManagedFieldsEntry: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operation = ManagedFieldsOperationType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Time == nil { - m.Time = &Time{} - } - if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldsType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldsType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldsV1", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FieldsV1 == nil { - m.FieldsV1 = &FieldsV1{} - } - if err := m.FieldsV1.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ObjectMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ObjectMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GenerateName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GenerateName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SelfLink", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SelfLink = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Generation", wireType) - } - m.Generation = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Generation |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreationTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CreationTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeletionTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeletionTimestamp == nil { - m.DeletionTimestamp = &Time{} - } - if err := m.DeletionTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeletionGracePeriodSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DeletionGracePeriodSeconds = &v - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Labels == nil { - m.Labels = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Labels[mapkey] = mapvalue - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Annotations == nil { - m.Annotations = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Annotations[mapkey] = mapvalue - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerReferences", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerReferences = append(m.OwnerReferences, OwnerReference{}) - if err := m.OwnerReferences[len(m.OwnerReferences)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Finalizers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Finalizers = append(m.Finalizers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedFields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ManagedFields = append(m.ManagedFields, ManagedFieldsEntry{}) - if err := m.ManagedFields[len(m.ManagedFields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OwnerReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OwnerReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OwnerReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Controller = &b - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockOwnerDeletion", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.BlockOwnerDeletion = &b - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PartialObjectMetadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PartialObjectMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PartialObjectMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PartialObjectMetadataList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PartialObjectMetadataList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, PartialObjectMetadata{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Patch) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Patch: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Patch: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PatchOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PatchOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PatchOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DryRun = append(m.DryRun, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - b := bool(v != 0) - m.Force = &b - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldManager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldManager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Preconditions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Preconditions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Preconditions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - m.UID = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.ResourceVersion = &s - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RootPaths) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RootPaths: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RootPaths: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Paths = append(m.Paths, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServerAddressByClientCIDR) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServerAddressByClientCIDR: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServerAddressByClientCIDR: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientCIDR", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClientCIDR = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Status) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Status: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = StatusReason(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Details == nil { - m.Details = &StatusDetails{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - m.Code = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Code |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatusCause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusCause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusCause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = CauseType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Field = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StatusDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StatusDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StatusDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Group = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Causes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Causes = append(m.Causes, StatusCause{}) - if err := m.Causes[len(m.Causes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RetryAfterSeconds", wireType) - } - m.RetryAfterSeconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RetryAfterSeconds |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TableOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TableOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TableOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeObject", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IncludeObject = IncludeObjectPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Timestamp) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Timestamp: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Timestamp: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Seconds", wireType) - } - m.Seconds = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Seconds |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nanos", wireType) - } - m.Nanos = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Nanos |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TypeMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TypeMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DryRun = append(m.DryRun, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FieldManager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FieldManager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Verbs) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Verbs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Verbs: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - *m = append(*m, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WatchEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: WatchEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WatchEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto deleted file mode 100644 index 4d8ed7eee..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto +++ /dev/null @@ -1,1017 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.apis.meta.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// APIGroup contains the name, the supported versions, and the preferred version -// of a group. -message APIGroup { - // name is the name of the group. - optional string name = 1; - - // versions are the versions supported in this group. - repeated GroupVersionForDiscovery versions = 2; - - // preferredVersion is the version preferred by the API server, which - // probably is the storage version. - // +optional - optional GroupVersionForDiscovery preferredVersion = 3; - - // a map of client CIDR to server address that is serving this group. - // This is to help clients reach servers in the most network-efficient way possible. - // Clients can use the appropriate server address as per the CIDR that they match. - // In case of multiple matches, clients should use the longest matching CIDR. - // The server returns only those CIDRs that it thinks that the client can match. - // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. - // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - // +optional - repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 4; -} - -// APIGroupList is a list of APIGroup, to allow clients to discover the API at -// /apis. -message APIGroupList { - // groups is a list of APIGroup. - repeated APIGroup groups = 1; -} - -// APIResource specifies the name of a resource and whether it is namespaced. -message APIResource { - // name is the plural name of the resource. - optional string name = 1; - - // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. - // The singularName is more correct for reporting status on a single item and both singular and plural are allowed - // from the kubectl CLI interface. - optional string singularName = 6; - - // namespaced indicates if a resource is namespaced or not. - optional bool namespaced = 2; - - // group is the preferred group of the resource. Empty implies the group of the containing resource list. - // For subresources, this may have a different value, for example: Scale". - optional string group = 8; - - // version is the preferred version of the resource. Empty implies the version of the containing resource list - // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". - optional string version = 9; - - // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') - optional string kind = 3; - - // verbs is a list of supported kube verbs (this includes get, list, watch, create, - // update, patch, delete, deletecollection, and proxy) - optional Verbs verbs = 4; - - // shortNames is a list of suggested short names of the resource. - repeated string shortNames = 5; - - // categories is a list of the grouped resources this resource belongs to (e.g. 'all') - repeated string categories = 7; - - // The hash value of the storage version, the version this resource is - // converted to when written to the data store. Value must be treated - // as opaque by clients. Only equality comparison on the value is valid. - // This is an alpha feature and may change or be removed in the future. - // The field is populated by the apiserver only if the - // StorageVersionHash feature gate is enabled. - // This field will remain optional even if it graduates. - // +optional - optional string storageVersionHash = 10; -} - -// APIResourceList is a list of APIResource, it is used to expose the name of the -// resources supported in a specific group and version, and if the resource -// is namespaced. -message APIResourceList { - // groupVersion is the group and version this APIResourceList is for. - optional string groupVersion = 1; - - // resources contains the name of the resources and if they are namespaced. - repeated APIResource resources = 2; -} - -// APIVersions lists the versions that are available, to allow clients to -// discover the API at /api, which is the root path of the legacy v1 API. -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message APIVersions { - // versions are the api versions that are available. - repeated string versions = 1; - - // a map of client CIDR to server address that is serving this group. - // This is to help clients reach servers in the most network-efficient way possible. - // Clients can use the appropriate server address as per the CIDR that they match. - // In case of multiple matches, clients should use the longest matching CIDR. - // The server returns only those CIDRs that it thinks that the client can match. - // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. - // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. - repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 2; -} - -// CreateOptions may be provided when creating an API object. -message CreateOptions { - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - repeated string dryRun = 1; - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. - // +optional - optional string fieldManager = 3; -} - -// DeleteOptions may be provided when deleting an API object. -message DeleteOptions { - // The duration in seconds before the object should be deleted. Value must be non-negative integer. - // The value zero indicates delete immediately. If this value is nil, the default grace period for the - // specified type will be used. - // Defaults to a per object value if not specified. zero means delete immediately. - // +optional - optional int64 gracePeriodSeconds = 1; - - // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be - // returned. - // +optional - optional Preconditions preconditions = 2; - - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. - // Should the dependent objects be orphaned. If true/false, the "orphan" - // finalizer will be added to/removed from the object's finalizers list. - // Either this field or PropagationPolicy may be set, but not both. - // +optional - optional bool orphanDependents = 3; - - // Whether and how garbage collection will be performed. - // Either this field or OrphanDependents may be set, but not both. - // The default policy is decided by the existing finalizer set in the - // metadata.finalizers and the resource-specific default policy. - // Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - - // allow the garbage collector to delete the dependents in the background; - // 'Foreground' - a cascading policy that deletes all dependents in the - // foreground. - // +optional - optional string propagationPolicy = 4; - - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - repeated string dryRun = 5; -} - -// Duration is a wrapper around time.Duration which supports correct -// marshaling to YAML and JSON. In particular, it marshals into strings, which -// can be used as map keys in json. -message Duration { - optional int64 duration = 1; -} - -// ExportOptions is the query options to the standard REST get call. -// Deprecated. Planned for removal in 1.18. -message ExportOptions { - // Should this value be exported. Export strips fields that a user can not specify. - // Deprecated. Planned for removal in 1.18. - optional bool export = 1; - - // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. - // Deprecated. Planned for removal in 1.18. - optional bool exact = 2; -} - -// FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. -// -// Each key is either a '.' representing the field itself, and will always map to an empty set, -// or a string representing a sub-field or item. The string will follow one of these four formats: -// 'f:', where is the name of a field in a struct, or key in a map -// 'v:', where is the exact json formatted value of a list item -// 'i:', where is position of a item in a list -// 'k:', where is a map of a list item's key fields to their unique values -// If a key maps to an empty Fields value, the field that key represents is part of the set. -// -// The exact format is defined in sigs.k8s.io/structured-merge-diff -message FieldsV1 { - // Raw is the underlying serialization of this object. - optional bytes Raw = 1; -} - -// GetOptions is the standard query options to the standard REST get call. -message GetOptions { - // When specified: - // - if unset, then the result is returned from remote storage based on quorum-read flag; - // - if it's 0, then we simply return what we currently have in cache, no guarantee; - // - if set to non zero, then the result is at least as fresh as given rv. - optional string resourceVersion = 1; -} - -// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -message GroupKind { - optional string group = 1; - - optional string kind = 2; -} - -// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -message GroupResource { - optional string group = 1; - - optional string resource = 2; -} - -// GroupVersion contains the "group" and the "version", which uniquely identifies the API. -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -message GroupVersion { - optional string group = 1; - - optional string version = 2; -} - -// GroupVersion contains the "group/version" and "version" string of a version. -// It is made a struct to keep extensibility. -message GroupVersionForDiscovery { - // groupVersion specifies the API group and version in the form "group/version" - optional string groupVersion = 1; - - // version specifies the version in the form of "version". This is to save - // the clients the trouble of splitting the GroupVersion. - optional string version = 2; -} - -// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion -// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -message GroupVersionKind { - optional string group = 1; - - optional string version = 2; - - optional string kind = 3; -} - -// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion -// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -message GroupVersionResource { - optional string group = 1; - - optional string version = 2; - - optional string resource = 3; -} - -// A label selector is a label query over a set of resources. The result of matchLabels and -// matchExpressions are ANDed. An empty label selector matches all objects. A null -// label selector matches no objects. -message LabelSelector { - // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - // map is equivalent to an element of matchExpressions, whose key field is "key", the - // operator is "In", and the values array contains only "value". The requirements are ANDed. - // +optional - map matchLabels = 1; - - // matchExpressions is a list of label selector requirements. The requirements are ANDed. - // +optional - repeated LabelSelectorRequirement matchExpressions = 2; -} - -// A label selector requirement is a selector that contains values, a key, and an operator that -// relates the key and values. -message LabelSelectorRequirement { - // key is the label key that the selector applies to. - // +patchMergeKey=key - // +patchStrategy=merge - optional string key = 1; - - // operator represents a key's relationship to a set of values. - // Valid operators are In, NotIn, Exists and DoesNotExist. - optional string operator = 2; - - // values is an array of string values. If the operator is In or NotIn, - // the values array must be non-empty. If the operator is Exists or DoesNotExist, - // the values array must be empty. This array is replaced during a strategic - // merge patch. - // +optional - repeated string values = 3; -} - -// List holds a list of objects, which may not be known by the server. -message List { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional ListMeta metadata = 1; - - // List of objects - repeated k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; -} - -// ListMeta describes metadata that synthetic resources must have, including lists and -// various status objects. A resource may have only one of {ObjectMeta, ListMeta}. -message ListMeta { - // selfLink is a URL representing this object. - // Populated by the system. - // Read-only. - // - // DEPRECATED - // Kubernetes will stop propagating this field in 1.20 release and the field is planned - // to be removed in 1.21 release. - // +optional - optional string selfLink = 1; - - // String that identifies the server's internal version of this object that - // can be used by clients to determine when objects have changed. - // Value must be treated as opaque by clients and passed unmodified back to the server. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - optional string resourceVersion = 2; - - // continue may be set if the user set a limit on the number of items returned, and indicates that - // the server has more data available. The value is opaque and may be used to issue another request - // to the endpoint that served this list to retrieve the next set of available objects. Continuing a - // consistent list may not be possible if the server configuration has changed or more than a few - // minutes have passed. The resourceVersion field returned when using this continue value will be - // identical to the value in the first response, unless you have received this token from an error - // message. - optional string continue = 3; - - // remainingItemCount is the number of subsequent items in the list which are not included in this - // list response. If the list request contained label or field selectors, then the number of - // remaining items is unknown and the field will be left unset and omitted during serialization. - // If the list is complete (either because it is not chunking or because this is the last chunk), - // then there are no more remaining items and this field will be left unset and omitted during - // serialization. - // Servers older than v1.15 do not set this field. - // The intended use of the remainingItemCount is *estimating* the size of a collection. Clients - // should not rely on the remainingItemCount to be set or to be exact. - // +optional - optional int64 remainingItemCount = 4; -} - -// ListOptions is the query options to a standard REST list call. -message ListOptions { - // A selector to restrict the list of returned objects by their labels. - // Defaults to everything. - // +optional - optional string labelSelector = 1; - - // A selector to restrict the list of returned objects by their fields. - // Defaults to everything. - // +optional - optional string fieldSelector = 2; - - // Watch for changes to the described resources and return them as a stream of - // add, update, and remove notifications. Specify resourceVersion. - // +optional - optional bool watch = 3; - - // allowWatchBookmarks requests watch events with type "BOOKMARK". - // Servers that do not implement bookmarks may ignore this flag and - // bookmarks are sent at the server's discretion. Clients should not - // assume bookmarks are returned at any specific interval, nor may they - // assume the server will send any BOOKMARK event during a session. - // If this is not a watch, this field is ignored. - // If the feature gate WatchBookmarks is not enabled in apiserver, - // this field is ignored. - // - // This field is beta. - // - // +optional - optional bool allowWatchBookmarks = 9; - - // When specified with a watch call, shows changes that occur after that particular version of a resource. - // Defaults to changes from the beginning of history. - // When specified for list: - // - if unset, then the result is returned from remote storage based on quorum-read flag; - // - if it's 0, then we simply return what we currently have in cache, no guarantee; - // - if set to non zero, then the result is at least as fresh as given rv. - // +optional - optional string resourceVersion = 4; - - // Timeout for the list/watch call. - // This limits the duration of the call, regardless of any activity or inactivity. - // +optional - optional int64 timeoutSeconds = 5; - - // limit is a maximum number of responses to return for a list call. If more items exist, the - // server will set the `continue` field on the list metadata to a value that can be used with the - // same initial query to retrieve the next set of results. Setting a limit may return fewer than - // the requested amount of items (up to zero items) in the event all requested objects are - // filtered out and clients should only use the presence of the continue field to determine whether - // more results are available. Servers may choose not to support the limit argument and will return - // all of the available results. If limit is specified and the continue field is empty, clients may - // assume that no more results are available. This field is not supported if watch is true. - // - // The server guarantees that the objects returned when using continue will be identical to issuing - // a single list call without a limit - that is, no objects created, modified, or deleted after the - // first request is issued will be included in any subsequent continued requests. This is sometimes - // referred to as a consistent snapshot, and ensures that a client that is using limit to receive - // smaller chunks of a very large result can ensure they see all possible objects. If objects are - // updated during a chunked list the version of the object that was present at the time the first list - // result was calculated is returned. - optional int64 limit = 7; - - // The continue option should be set when retrieving more results from the server. Since this value is - // server defined, clients may only use the continue value from a previous query result with identical - // query parameters (except for the value of continue) and the server may reject a continue value it - // does not recognize. If the specified continue value is no longer valid whether due to expiration - // (generally five to fifteen minutes) or a configuration change on the server, the server will - // respond with a 410 ResourceExpired error together with a continue token. If the client needs a - // consistent list, it must restart their list without the continue field. Otherwise, the client may - // send another list request with the token received with the 410 error, the server will respond with - // a list starting from the next key, but from the latest snapshot, which is inconsistent from the - // previous list results - objects that are created, modified, or deleted after the first list request - // will be included in the response, as long as their keys are after the "next key". - // - // This field is not supported when watch is true. Clients may start a watch from the last - // resourceVersion value returned by the server and not miss any modifications. - optional string continue = 8; -} - -// ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource -// that the fieldset applies to. -message ManagedFieldsEntry { - // Manager is an identifier of the workflow managing these fields. - optional string manager = 1; - - // Operation is the type of operation which lead to this ManagedFieldsEntry being created. - // The only valid values for this field are 'Apply' and 'Update'. - optional string operation = 2; - - // APIVersion defines the version of this resource that this field set - // applies to. The format is "group/version" just like the top-level - // APIVersion field. It is necessary to track the version of a field - // set because it cannot be automatically converted. - optional string apiVersion = 3; - - // Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - // +optional - optional Time time = 4; - - // FieldsType is the discriminator for the different fields format and version. - // There is currently only one possible value: "FieldsV1" - optional string fieldsType = 6; - - // FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - // +optional - optional FieldsV1 fieldsV1 = 7; -} - -// MicroTime is version of Time with microsecond level precision. -// -// +protobuf.options.marshal=false -// +protobuf.as=Timestamp -// +protobuf.options.(gogoproto.goproto_stringer)=false -message MicroTime { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - optional int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. This field may be limited in precision depending on context. - optional int32 nanos = 2; -} - -// ObjectMeta is metadata that all persisted resources must have, which includes all objects -// users must create. -message ObjectMeta { - // Name must be unique within a namespace. Is required when creating resources, although - // some resources may allow a client to request the generation of an appropriate name - // automatically. Name is primarily intended for creation idempotence and configuration - // definition. - // Cannot be updated. - // More info: http://kubernetes.io/docs/user-guide/identifiers#names - // +optional - optional string name = 1; - - // GenerateName is an optional prefix, used by the server, to generate a unique - // name ONLY IF the Name field has not been provided. - // If this field is used, the name returned to the client will be different - // than the name passed. This value will also be combined with a unique suffix. - // The provided value has the same validation rules as the Name field, - // and may be truncated by the length of the suffix required to make the value - // unique on the server. - // - // If this field is specified and the generated name exists, the server will - // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - // ServerTimeout indicating a unique name could not be found in the time allotted, and the client - // should retry (optionally after the time indicated in the Retry-After header). - // - // Applied only if Name is not specified. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - // +optional - optional string generateName = 2; - - // Namespace defines the space within each name must be unique. An empty namespace is - // equivalent to the "default" namespace, but "default" is the canonical representation. - // Not all objects are required to be scoped to a namespace - the value of this field for - // those objects will be empty. - // - // Must be a DNS_LABEL. - // Cannot be updated. - // More info: http://kubernetes.io/docs/user-guide/namespaces - // +optional - optional string namespace = 3; - - // SelfLink is a URL representing this object. - // Populated by the system. - // Read-only. - // - // DEPRECATED - // Kubernetes will stop propagating this field in 1.20 release and the field is planned - // to be removed in 1.21 release. - // +optional - optional string selfLink = 4; - - // UID is the unique in time and space value for this object. It is typically generated by - // the server on successful creation of a resource and is not allowed to change on PUT - // operations. - // - // Populated by the system. - // Read-only. - // More info: http://kubernetes.io/docs/user-guide/identifiers#uids - // +optional - optional string uid = 5; - - // An opaque value that represents the internal version of this object that can - // be used by clients to determine when objects have changed. May be used for optimistic - // concurrency, change detection, and the watch operation on a resource or set of resources. - // Clients must treat these values as opaque and passed unmodified back to the server. - // They may only be valid for a particular resource or set of resources. - // - // Populated by the system. - // Read-only. - // Value must be treated as opaque by clients and . - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - // +optional - optional string resourceVersion = 6; - - // A sequence number representing a specific generation of the desired state. - // Populated by the system. Read-only. - // +optional - optional int64 generation = 7; - - // CreationTimestamp is a timestamp representing the server time when this object was - // created. It is not guaranteed to be set in happens-before order across separate operations. - // Clients may not set this value. It is represented in RFC3339 form and is in UTC. - // - // Populated by the system. - // Read-only. - // Null for lists. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional Time creationTimestamp = 8; - - // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This - // field is set by the server when a graceful deletion is requested by the user, and is not - // directly settable by a client. The resource is expected to be deleted (no longer visible - // from resource lists, and not reachable by name) after the time in this field, once the - // finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. - // Once the deletionTimestamp is set, this value may not be unset or be set further into the - // future, although it may be shortened or the resource may be deleted prior to this time. - // For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react - // by sending a graceful termination signal to the containers in the pod. After that 30 seconds, - // the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, - // remove the pod from the API. In the presence of network partitions, this object may still - // exist after this timestamp, until an administrator or automated process can determine the - // resource is fully terminated. - // If not set, graceful deletion of the object has not been requested. - // - // Populated by the system when a graceful deletion is requested. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional Time deletionTimestamp = 9; - - // Number of seconds allowed for this object to gracefully terminate before - // it will be removed from the system. Only set when deletionTimestamp is also set. - // May only be shortened. - // Read-only. - // +optional - optional int64 deletionGracePeriodSeconds = 10; - - // Map of string keys and values that can be used to organize and categorize - // (scope and select) objects. May match selectors of replication controllers - // and services. - // More info: http://kubernetes.io/docs/user-guide/labels - // +optional - map labels = 11; - - // Annotations is an unstructured key value map stored with a resource that may be - // set by external tools to store and retrieve arbitrary metadata. They are not - // queryable and should be preserved when modifying objects. - // More info: http://kubernetes.io/docs/user-guide/annotations - // +optional - map annotations = 12; - - // List of objects depended by this object. If ALL objects in the list have - // been deleted, this object will be garbage collected. If this object is managed by a controller, - // then an entry in this list will point to this controller, with the controller field set to true. - // There cannot be more than one managing controller. - // +optional - // +patchMergeKey=uid - // +patchStrategy=merge - repeated OwnerReference ownerReferences = 13; - - // Must be empty before the object is deleted from the registry. Each entry - // is an identifier for the responsible component that will remove the entry - // from the list. If the deletionTimestamp of the object is non-nil, entries - // in this list can only be removed. - // +optional - // +patchStrategy=merge - repeated string finalizers = 14; - - // The name of the cluster which the object belongs to. - // This is used to distinguish resources with same name and namespace in different clusters. - // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - // +optional - optional string clusterName = 15; - - // ManagedFields maps workflow-id and version to the set of fields - // that are managed by that workflow. This is mostly for internal - // housekeeping, and users typically shouldn't need to set or - // understand this field. A workflow can be the user's name, a - // controller's name, or the name of a specific apply path like - // "ci-cd". The set of fields is always in the version that the - // workflow used when modifying the object. - // - // +optional - repeated ManagedFieldsEntry managedFields = 17; -} - -// OwnerReference contains enough information to let you identify an owning -// object. An owning object must be in the same namespace as the dependent, or -// be cluster-scoped, so there is no namespace field. -message OwnerReference { - // API version of the referent. - optional string apiVersion = 5; - - // Kind of the referent. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - optional string kind = 1; - - // Name of the referent. - // More info: http://kubernetes.io/docs/user-guide/identifiers#names - optional string name = 3; - - // UID of the referent. - // More info: http://kubernetes.io/docs/user-guide/identifiers#uids - optional string uid = 4; - - // If true, this reference points to the managing controller. - // +optional - optional bool controller = 6; - - // If true, AND if the owner has the "foregroundDeletion" finalizer, then - // the owner cannot be deleted from the key-value store until this - // reference is removed. - // Defaults to false. - // To set this field, a user needs "delete" permission of the owner, - // otherwise 422 (Unprocessable Entity) will be returned. - // +optional - optional bool blockOwnerDeletion = 7; -} - -// PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients -// to get access to a particular ObjectMeta schema without knowing the details of the version. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message PartialObjectMetadata { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional ObjectMeta metadata = 1; -} - -// PartialObjectMetadataList contains a list of objects containing only their metadata -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message PartialObjectMetadataList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional ListMeta metadata = 1; - - // items contains each of the included items. - repeated PartialObjectMetadata items = 2; -} - -// Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. -message Patch { -} - -// PatchOptions may be provided when patching an API object. -// PatchOptions is meant to be a superset of UpdateOptions. -message PatchOptions { - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - repeated string dryRun = 1; - - // Force is going to "force" Apply requests. It means user will - // re-acquire conflicting fields owned by other people. Force - // flag must be unset for non-apply patch requests. - // +optional - optional bool force = 2; - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. This - // field is required for apply requests - // (application/apply-patch) but optional for non-apply patch - // types (JsonPatch, MergePatch, StrategicMergePatch). - // +optional - optional string fieldManager = 3; -} - -// Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. -message Preconditions { - // Specifies the target UID. - // +optional - optional string uid = 1; - - // Specifies the target ResourceVersion - // +optional - optional string resourceVersion = 2; -} - -// RootPaths lists the paths available at root. -// For example: "/healthz", "/apis". -message RootPaths { - // paths are the paths available at root. - repeated string paths = 1; -} - -// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. -message ServerAddressByClientCIDR { - // The CIDR with which clients can match their IP to figure out the server address that they should use. - optional string clientCIDR = 1; - - // Address of this server, suitable for a client that matches the above CIDR. - // This can be a hostname, hostname:port, IP or IP:port. - optional string serverAddress = 2; -} - -// Status is a return value for calls that don't return other objects. -message Status { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional ListMeta metadata = 1; - - // Status of the operation. - // One of: "Success" or "Failure". - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional string status = 2; - - // A human-readable description of the status of this operation. - // +optional - optional string message = 3; - - // A machine-readable description of why this operation is in the - // "Failure" status. If this value is empty there - // is no information available. A Reason clarifies an HTTP status - // code but does not override it. - // +optional - optional string reason = 4; - - // Extended data associated with the reason. Each reason may define its - // own extended details. This field is optional and the data returned - // is not guaranteed to conform to any schema except that defined by - // the reason type. - // +optional - optional StatusDetails details = 5; - - // Suggested HTTP return code for this status, 0 if not set. - // +optional - optional int32 code = 6; -} - -// StatusCause provides more information about an api.Status failure, including -// cases when multiple errors are encountered. -message StatusCause { - // A machine-readable description of the cause of the error. If this value is - // empty there is no information available. - // +optional - optional string reason = 1; - - // A human-readable description of the cause of the error. This field may be - // presented as-is to a reader. - // +optional - optional string message = 2; - - // The field of the resource that has caused this error, as named by its JSON - // serialization. May include dot and postfix notation for nested attributes. - // Arrays are zero-indexed. Fields may appear more than once in an array of - // causes due to fields having multiple errors. - // Optional. - // - // Examples: - // "name" - the field "name" on the current resource - // "items[0].name" - the field "name" on the first array entry in "items" - // +optional - optional string field = 3; -} - -// StatusDetails is a set of additional properties that MAY be set by the -// server to provide additional information about a response. The Reason -// field of a Status object defines what attributes will be set. Clients -// must ignore fields that do not match the defined type of each attribute, -// and should assume that any attribute may be empty, invalid, or under -// defined. -message StatusDetails { - // The name attribute of the resource associated with the status StatusReason - // (when there is a single name which can be described). - // +optional - optional string name = 1; - - // The group attribute of the resource associated with the status StatusReason. - // +optional - optional string group = 2; - - // The kind attribute of the resource associated with the status StatusReason. - // On some operations may differ from the requested resource Kind. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional string kind = 3; - - // UID of the resource. - // (when there is a single resource which can be described). - // More info: http://kubernetes.io/docs/user-guide/identifiers#uids - // +optional - optional string uid = 6; - - // The Causes array includes more details associated with the StatusReason - // failure. Not all StatusReasons may provide detailed causes. - // +optional - repeated StatusCause causes = 4; - - // If specified, the time in seconds before the operation should be retried. Some errors may indicate - // the client must take an alternate action - for those errors this field may indicate how long to wait - // before taking the alternate action. - // +optional - optional int32 retryAfterSeconds = 5; -} - -// TableOptions are used when a Table is requested by the caller. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message TableOptions { - // includeObject decides whether to include each object along with its columnar information. - // Specifying "None" will return no object, specifying "Object" will return the full object contents, and - // specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind - // in version v1beta1 of the meta.k8s.io API group. - optional string includeObject = 1; -} - -// Time is a wrapper around time.Time which supports correct -// marshaling to YAML and JSON. Wrappers are provided for many -// of the factory methods that the time package offers. -// -// +protobuf.options.marshal=false -// +protobuf.as=Timestamp -// +protobuf.options.(gogoproto.goproto_stringer)=false -message Time { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - optional int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. This field may be limited in precision depending on context. - optional int32 nanos = 2; -} - -// Timestamp is a struct that is equivalent to Time, but intended for -// protobuf marshalling/unmarshalling. It is generated into a serialization -// that matches Time. Do not use in Go structs. -message Timestamp { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - optional int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. This field may be limited in precision depending on context. - optional int32 nanos = 2; -} - -// TypeMeta describes an individual object in an API response or request -// with strings representing the type of the object and its API schema version. -// Structures that are versioned or persisted should inline TypeMeta. -// -// +k8s:deepcopy-gen=false -message TypeMeta { - // Kind is a string value representing the REST resource this object represents. - // Servers may infer this from the endpoint the client submits requests to. - // Cannot be updated. - // In CamelCase. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional string kind = 1; - - // APIVersion defines the versioned schema of this representation of an object. - // Servers should convert recognized schemas to the latest internal value, and - // may reject unrecognized values. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - // +optional - optional string apiVersion = 2; -} - -// UpdateOptions may be provided when updating an API object. -// All fields in UpdateOptions should also be present in PatchOptions. -message UpdateOptions { - // When present, indicates that modifications should not be - // persisted. An invalid or unrecognized dryRun directive will - // result in an error response and no further processing of the - // request. Valid values are: - // - All: all dry run stages will be processed - // +optional - repeated string dryRun = 1; - - // fieldManager is a name associated with the actor or entity - // that is making these changes. The value must be less than or - // 128 characters long, and only contain printable characters, - // as defined by https://golang.org/pkg/unicode/#IsPrint. - // +optional - optional string fieldManager = 2; -} - -// Verbs masks the value so protobuf can generate -// -// +protobuf.nullable=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -message Verbs { - // items, if empty, will result in an empty slice - - repeated string items = 1; -} - -// Event represents a single event to a watched resource. -// -// +protobuf=true -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message WatchEvent { - optional string type = 1; - - // Object is: - // * If Type is Added or Modified: the new state of the object. - // * If Type is Deleted: the state of the object immediately before deletion. - // * If Type is Error: *Status is recommended; other types may make sense - // depending on context. - optional k8s.io.apimachinery.pkg.runtime.RawExtension object = 2; -} - diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version.go deleted file mode 100644 index f256e5646..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -Copyright 2015 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 v1 - -import ( - "encoding/json" - "fmt" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -type GroupResource struct { - Group string `json:"group" protobuf:"bytes,1,opt,name=group"` - Resource string `json:"resource" protobuf:"bytes,2,opt,name=resource"` -} - -func (gr *GroupResource) String() string { - if len(gr.Group) == 0 { - return gr.Resource - } - return gr.Resource + "." + gr.Group -} - -// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion -// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -type GroupVersionResource struct { - Group string `json:"group" protobuf:"bytes,1,opt,name=group"` - Version string `json:"version" protobuf:"bytes,2,opt,name=version"` - Resource string `json:"resource" protobuf:"bytes,3,opt,name=resource"` -} - -func (gvr *GroupVersionResource) String() string { - return strings.Join([]string{gvr.Group, "/", gvr.Version, ", Resource=", gvr.Resource}, "") -} - -// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -type GroupKind struct { - Group string `json:"group" protobuf:"bytes,1,opt,name=group"` - Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` -} - -func (gk *GroupKind) String() string { - if len(gk.Group) == 0 { - return gk.Kind - } - return gk.Kind + "." + gk.Group -} - -// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion -// to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -type GroupVersionKind struct { - Group string `json:"group" protobuf:"bytes,1,opt,name=group"` - Version string `json:"version" protobuf:"bytes,2,opt,name=version"` - Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"` -} - -func (gvk GroupVersionKind) String() string { - return gvk.Group + "/" + gvk.Version + ", Kind=" + gvk.Kind -} - -// GroupVersion contains the "group" and the "version", which uniquely identifies the API. -// -// +protobuf.options.(gogoproto.goproto_stringer)=false -type GroupVersion struct { - Group string `json:"group" protobuf:"bytes,1,opt,name=group"` - Version string `json:"version" protobuf:"bytes,2,opt,name=version"` -} - -// Empty returns true if group and version are empty -func (gv GroupVersion) Empty() bool { - return len(gv.Group) == 0 && len(gv.Version) == 0 -} - -// String puts "group" and "version" into a single "group/version" string. For the legacy v1 -// it returns "v1". -func (gv GroupVersion) String() string { - // special case the internal apiVersion for the legacy kube types - if gv.Empty() { - return "" - } - - // special case of "v1" for backward compatibility - if len(gv.Group) == 0 && gv.Version == "v1" { - return gv.Version - } - if len(gv.Group) > 0 { - return gv.Group + "/" + gv.Version - } - return gv.Version -} - -// MarshalJSON implements the json.Marshaller interface. -func (gv GroupVersion) MarshalJSON() ([]byte, error) { - s := gv.String() - if strings.Count(s, "/") > 1 { - return []byte{}, fmt.Errorf("illegal GroupVersion %v: contains more than one /", s) - } - return json.Marshal(s) -} - -func (gv *GroupVersion) unmarshal(value []byte) error { - var s string - if err := json.Unmarshal(value, &s); err != nil { - return err - } - parsed, err := schema.ParseGroupVersion(s) - if err != nil { - return err - } - gv.Group, gv.Version = parsed.Group, parsed.Version - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface. -func (gv *GroupVersion) UnmarshalJSON(value []byte) error { - return gv.unmarshal(value) -} - -// UnmarshalTEXT implements the Ugorji's encoding.TextUnmarshaler interface. -func (gv *GroupVersion) UnmarshalText(value []byte) error { - return gv.unmarshal(value) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version_test.go deleted file mode 100644 index 2ca08be09..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/group_version_test.go +++ /dev/null @@ -1,79 +0,0 @@ -/* -Copyright 2015 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 v1 - -import ( - gojson "encoding/json" - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" -) - -type GroupVersionHolder struct { - GV GroupVersion `json:"val"` -} - -func TestGroupVersionUnmarshalJSON(t *testing.T) { - cases := []struct { - input []byte - expect GroupVersion - }{ - {[]byte(`{"val": "v1"}`), GroupVersion{"", "v1"}}, - {[]byte(`{"val": "apps/v1"}`), GroupVersion{"apps", "v1"}}, - } - - for _, c := range cases { - var result GroupVersionHolder - // test golang lib's JSON codec - if err := gojson.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("JSON codec failed to unmarshal input '%v': %v", c.input, err) - } - if !reflect.DeepEqual(result.GV, c.expect) { - t.Errorf("JSON codec failed to unmarshal input '%s': expected %+v, got %+v", c.input, c.expect, result.GV) - } - // test the json-iterator codec - iter := json.CaseSensitiveJsonIterator() - if err := iter.Unmarshal(c.input, &result); err != nil { - t.Errorf("json-iterator codec failed to unmarshal input '%v': %v", c.input, err) - } - if !reflect.DeepEqual(result.GV, c.expect) { - t.Errorf("json-iterator codec failed to unmarshal input '%s': expected %+v, got %+v", c.input, c.expect, result.GV) - } - } -} - -func TestGroupVersionMarshalJSON(t *testing.T) { - cases := []struct { - input GroupVersion - expect []byte - }{ - {GroupVersion{"", "v1"}, []byte(`{"val":"v1"}`)}, - {GroupVersion{"apps", "v1"}, []byte(`{"val":"apps/v1"}`)}, - } - - for _, c := range cases { - input := GroupVersionHolder{c.input} - result, err := gojson.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input '%v': %v", input, err) - } - if !reflect.DeepEqual(result, c.expect) { - t.Errorf("Failed to marshal input '%+v': expected: %s, got: %s", input, c.expect, result) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers.go deleted file mode 100644 index 6e73eb117..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers.go +++ /dev/null @@ -1,280 +0,0 @@ -/* -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 v1 - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/fields" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/labels" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/selection" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements -// labels.Selector -// Note: This function should be kept in sync with the selector methods in pkg/labels/selector.go -func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error) { - if ps == nil { - return labels.Nothing(), nil - } - if len(ps.MatchLabels)+len(ps.MatchExpressions) == 0 { - return labels.Everything(), nil - } - selector := labels.NewSelector() - for k, v := range ps.MatchLabels { - r, err := labels.NewRequirement(k, selection.Equals, []string{v}) - if err != nil { - return nil, err - } - selector = selector.Add(*r) - } - for _, expr := range ps.MatchExpressions { - var op selection.Operator - switch expr.Operator { - case LabelSelectorOpIn: - op = selection.In - case LabelSelectorOpNotIn: - op = selection.NotIn - case LabelSelectorOpExists: - op = selection.Exists - case LabelSelectorOpDoesNotExist: - op = selection.DoesNotExist - default: - return nil, fmt.Errorf("%q is not a valid pod selector operator", expr.Operator) - } - r, err := labels.NewRequirement(expr.Key, op, append([]string(nil), expr.Values...)) - if err != nil { - return nil, err - } - selector = selector.Add(*r) - } - return selector, nil -} - -// LabelSelectorAsMap converts the LabelSelector api type into a map of strings, ie. the -// original structure of a label selector. Operators that cannot be converted into plain -// labels (Exists, DoesNotExist, NotIn, and In with more than one value) will result in -// an error. -func LabelSelectorAsMap(ps *LabelSelector) (map[string]string, error) { - if ps == nil { - return nil, nil - } - selector := map[string]string{} - for k, v := range ps.MatchLabels { - selector[k] = v - } - for _, expr := range ps.MatchExpressions { - switch expr.Operator { - case LabelSelectorOpIn: - if len(expr.Values) != 1 { - return selector, fmt.Errorf("operator %q without a single value cannot be converted into the old label selector format", expr.Operator) - } - // Should we do anything in case this will override a previous key-value pair? - selector[expr.Key] = expr.Values[0] - case LabelSelectorOpNotIn, LabelSelectorOpExists, LabelSelectorOpDoesNotExist: - return selector, fmt.Errorf("operator %q cannot be converted into the old label selector format", expr.Operator) - default: - return selector, fmt.Errorf("%q is not a valid selector operator", expr.Operator) - } - } - return selector, nil -} - -// ParseToLabelSelector parses a string representing a selector into a LabelSelector object. -// Note: This function should be kept in sync with the parser in pkg/labels/selector.go -func ParseToLabelSelector(selector string) (*LabelSelector, error) { - reqs, err := labels.ParseToRequirements(selector) - if err != nil { - return nil, fmt.Errorf("couldn't parse the selector string \"%s\": %v", selector, err) - } - - labelSelector := &LabelSelector{ - MatchLabels: map[string]string{}, - MatchExpressions: []LabelSelectorRequirement{}, - } - for _, req := range reqs { - var op LabelSelectorOperator - switch req.Operator() { - case selection.Equals, selection.DoubleEquals: - vals := req.Values() - if vals.Len() != 1 { - return nil, fmt.Errorf("equals operator must have exactly one value") - } - val, ok := vals.PopAny() - if !ok { - return nil, fmt.Errorf("equals operator has exactly one value but it cannot be retrieved") - } - labelSelector.MatchLabels[req.Key()] = val - continue - case selection.In: - op = LabelSelectorOpIn - case selection.NotIn: - op = LabelSelectorOpNotIn - case selection.Exists: - op = LabelSelectorOpExists - case selection.DoesNotExist: - op = LabelSelectorOpDoesNotExist - case selection.GreaterThan, selection.LessThan: - // Adding a separate case for these operators to indicate that this is deliberate - return nil, fmt.Errorf("%q isn't supported in label selectors", req.Operator()) - default: - return nil, fmt.Errorf("%q is not a valid label selector operator", req.Operator()) - } - labelSelector.MatchExpressions = append(labelSelector.MatchExpressions, LabelSelectorRequirement{ - Key: req.Key(), - Operator: op, - Values: req.Values().List(), - }) - } - return labelSelector, nil -} - -// SetAsLabelSelector converts the labels.Set object into a LabelSelector api object. -func SetAsLabelSelector(ls labels.Set) *LabelSelector { - if ls == nil { - return nil - } - - selector := &LabelSelector{ - MatchLabels: make(map[string]string), - } - for label, value := range ls { - selector.MatchLabels[label] = value - } - - return selector -} - -// FormatLabelSelector convert labelSelector into plain string -func FormatLabelSelector(labelSelector *LabelSelector) string { - selector, err := LabelSelectorAsSelector(labelSelector) - if err != nil { - return "" - } - - l := selector.String() - if len(l) == 0 { - l = "" - } - return l -} - -func ExtractGroupVersions(l *APIGroupList) []string { - var groupVersions []string - for _, g := range l.Groups { - for _, gv := range g.Versions { - groupVersions = append(groupVersions, gv.GroupVersion) - } - } - return groupVersions -} - -// HasAnnotation returns a bool if passed in annotation exists -func HasAnnotation(obj ObjectMeta, ann string) bool { - _, found := obj.Annotations[ann] - return found -} - -// SetMetaDataAnnotation sets the annotation and value -func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string) { - if obj.Annotations == nil { - obj.Annotations = make(map[string]string) - } - obj.Annotations[ann] = value -} - -// SingleObject returns a ListOptions for watching a single object. -func SingleObject(meta ObjectMeta) ListOptions { - return ListOptions{ - FieldSelector: fields.OneTermEqualSelector("metadata.name", meta.Name).String(), - ResourceVersion: meta.ResourceVersion, - } -} - -// NewDeleteOptions returns a DeleteOptions indicating the resource should -// be deleted within the specified grace period. Use zero to indicate -// immediate deletion. If you would prefer to use the default grace period, -// use &metav1.DeleteOptions{} directly. -func NewDeleteOptions(grace int64) *DeleteOptions { - return &DeleteOptions{GracePeriodSeconds: &grace} -} - -// NewPreconditionDeleteOptions returns a DeleteOptions with a UID precondition set. -func NewPreconditionDeleteOptions(uid string) *DeleteOptions { - u := types.UID(uid) - p := Preconditions{UID: &u} - return &DeleteOptions{Preconditions: &p} -} - -// NewUIDPreconditions returns a Preconditions with UID set. -func NewUIDPreconditions(uid string) *Preconditions { - u := types.UID(uid) - return &Preconditions{UID: &u} -} - -// NewRVDeletionPrecondition returns a DeleteOptions with a ResourceVersion precondition set. -func NewRVDeletionPrecondition(rv string) *DeleteOptions { - p := Preconditions{ResourceVersion: &rv} - return &DeleteOptions{Preconditions: &p} -} - -// HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values. -func HasObjectMetaSystemFieldValues(meta Object) bool { - return !meta.GetCreationTimestamp().Time.IsZero() || - len(meta.GetUID()) != 0 -} - -// ResetObjectMetaForStatus forces the meta fields for a status update to match the meta fields -// for a pre-existing object. This is opt-in for new objects with Status subresource. -func ResetObjectMetaForStatus(meta, existingMeta Object) { - meta.SetDeletionTimestamp(existingMeta.GetDeletionTimestamp()) - meta.SetGeneration(existingMeta.GetGeneration()) - meta.SetSelfLink(existingMeta.GetSelfLink()) - meta.SetLabels(existingMeta.GetLabels()) - meta.SetAnnotations(existingMeta.GetAnnotations()) - meta.SetFinalizers(existingMeta.GetFinalizers()) - meta.SetOwnerReferences(existingMeta.GetOwnerReferences()) - meta.SetManagedFields(existingMeta.GetManagedFields()) -} - -// MarshalJSON implements json.Marshaler -// MarshalJSON may get called on pointers or values, so implement MarshalJSON on value. -// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go -func (f FieldsV1) MarshalJSON() ([]byte, error) { - if f.Raw == nil { - return []byte("null"), nil - } - return f.Raw, nil -} - -// UnmarshalJSON implements json.Unmarshaler -func (f *FieldsV1) UnmarshalJSON(b []byte) error { - if f == nil { - return errors.New("metav1.Fields: UnmarshalJSON on nil pointer") - } - if !bytes.Equal(b, []byte("null")) { - f.Raw = append(f.Raw[0:0], b...) - } - return nil -} - -var _ json.Marshaler = FieldsV1{} -var _ json.Unmarshaler = &FieldsV1{} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers_test.go deleted file mode 100644 index 3565e60e8..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/helpers_test.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -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 v1 - -import ( - "fmt" - "reflect" - "strings" - "testing" - - "github.com/google/gofuzz" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/labels" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestLabelSelectorAsSelector(t *testing.T) { - matchLabels := map[string]string{"foo": "bar"} - matchExpressions := []LabelSelectorRequirement{{ - Key: "baz", - Operator: LabelSelectorOpIn, - Values: []string{"qux", "norf"}, - }} - mustParse := func(s string) labels.Selector { - out, e := labels.Parse(s) - if e != nil { - panic(e) - } - return out - } - tc := []struct { - in *LabelSelector - out labels.Selector - expectErr bool - }{ - {in: nil, out: labels.Nothing()}, - {in: &LabelSelector{}, out: labels.Everything()}, - { - in: &LabelSelector{MatchLabels: matchLabels}, - out: mustParse("foo=bar"), - }, - { - in: &LabelSelector{MatchExpressions: matchExpressions}, - out: mustParse("baz in (norf,qux)"), - }, - { - in: &LabelSelector{MatchLabels: matchLabels, MatchExpressions: matchExpressions}, - out: mustParse("baz in (norf,qux),foo=bar"), - }, - { - in: &LabelSelector{ - MatchExpressions: []LabelSelectorRequirement{{ - Key: "baz", - Operator: LabelSelectorOpExists, - Values: []string{"qux", "norf"}, - }}, - }, - expectErr: true, - }, - } - - for i, tc := range tc { - inCopy := tc.in.DeepCopy() - out, err := LabelSelectorAsSelector(tc.in) - // after calling LabelSelectorAsSelector, tc.in shouldn't be modified - if !reflect.DeepEqual(inCopy, tc.in) { - t.Errorf("[%v]expected:\n\t%#v\nbut got:\n\t%#v", i, inCopy, tc.in) - } - if err == nil && tc.expectErr { - t.Errorf("[%v]expected error but got none.", i) - } - if err != nil && !tc.expectErr { - t.Errorf("[%v]did not expect error but got: %v", i, err) - } - // fmt.Sprint() over String() as nil.String() will panic - if fmt.Sprint(out) != fmt.Sprint(tc.out) { - t.Errorf("[%v]expected:\n\t%s\nbut got:\n\t%s", i, fmt.Sprint(tc.out), fmt.Sprint(out)) - } - } -} - -func TestLabelSelectorAsMap(t *testing.T) { - matchLabels := map[string]string{"foo": "bar"} - matchExpressions := func(operator LabelSelectorOperator, values []string) []LabelSelectorRequirement { - return []LabelSelectorRequirement{{ - Key: "baz", - Operator: operator, - Values: values, - }} - } - - tests := []struct { - in *LabelSelector - out map[string]string - errString string - }{ - {in: nil, out: nil}, - { - in: &LabelSelector{MatchLabels: matchLabels}, - out: map[string]string{"foo": "bar"}, - }, - { - in: &LabelSelector{MatchLabels: matchLabels, MatchExpressions: matchExpressions(LabelSelectorOpIn, []string{"norf"})}, - out: map[string]string{"foo": "bar", "baz": "norf"}, - }, - { - in: &LabelSelector{MatchExpressions: matchExpressions(LabelSelectorOpIn, []string{"norf"})}, - out: map[string]string{"baz": "norf"}, - }, - { - in: &LabelSelector{MatchLabels: matchLabels, MatchExpressions: matchExpressions(LabelSelectorOpIn, []string{"norf", "qux"})}, - out: map[string]string{"foo": "bar"}, - errString: "without a single value cannot be converted", - }, - { - in: &LabelSelector{MatchExpressions: matchExpressions(LabelSelectorOpNotIn, []string{"norf", "qux"})}, - out: map[string]string{}, - errString: "cannot be converted", - }, - { - in: &LabelSelector{MatchLabels: matchLabels, MatchExpressions: matchExpressions(LabelSelectorOpExists, []string{})}, - out: map[string]string{"foo": "bar"}, - errString: "cannot be converted", - }, - { - in: &LabelSelector{MatchExpressions: matchExpressions(LabelSelectorOpDoesNotExist, []string{})}, - out: map[string]string{}, - errString: "cannot be converted", - }, - } - - for i, tc := range tests { - out, err := LabelSelectorAsMap(tc.in) - if err == nil && len(tc.errString) > 0 { - t.Errorf("[%v]expected error but got none.", i) - continue - } - if err != nil && len(tc.errString) == 0 { - t.Errorf("[%v]did not expect error but got: %v", i, err) - continue - } - if err != nil && len(tc.errString) > 0 && !strings.Contains(err.Error(), tc.errString) { - t.Errorf("[%v]expected error with %q but got: %v", i, tc.errString, err) - continue - } - if !reflect.DeepEqual(out, tc.out) { - t.Errorf("[%v]expected:\n\t%+v\nbut got:\n\t%+v", i, tc.out, out) - } - } -} - -func TestResetObjectMetaForStatus(t *testing.T) { - meta := &ObjectMeta{} - existingMeta := &ObjectMeta{} - - // fuzz the existingMeta to set every field, no nils - f := fuzz.New().NilChance(0).NumElements(1, 1).MaxDepth(10) - f.Fuzz(existingMeta) - ResetObjectMetaForStatus(meta, existingMeta) - - // not all fields are stomped during the reset. These fields should not have been set. False - // set them all to their zero values. Before you add anything to this list, consider whether or not - // you're enforcing immutability (those are fine) and whether /status should be able to update - // these values (these are usually not fine). - - // generateName doesn't do anything after create - existingMeta.SetGenerateName("") - // resourceVersion is enforced in validation and used during the storage update - existingMeta.SetResourceVersion("") - // fields made immutable in validation - existingMeta.SetUID(types.UID("")) - existingMeta.SetName("") - existingMeta.SetNamespace("") - existingMeta.SetClusterName("") - existingMeta.SetCreationTimestamp(Time{}) - existingMeta.SetDeletionTimestamp(nil) - existingMeta.SetDeletionGracePeriodSeconds(nil) - - if !reflect.DeepEqual(meta, existingMeta) { - t.Error(diff.ObjectDiff(meta, existingMeta)) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels.go deleted file mode 100644 index 9b45145da..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels.go +++ /dev/null @@ -1,55 +0,0 @@ -/* -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 v1 - -// Clones the given selector and returns a new selector with the given key and value added. -// Returns the given selector, if labelKey is empty. -func CloneSelectorAndAddLabel(selector *LabelSelector, labelKey, labelValue string) *LabelSelector { - if labelKey == "" { - // Don't need to add a label. - return selector - } - - // Clone. - newSelector := selector.DeepCopy() - - if newSelector.MatchLabels == nil { - newSelector.MatchLabels = make(map[string]string) - } - - newSelector.MatchLabels[labelKey] = labelValue - - return newSelector -} - -// AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels. -func AddLabelToSelector(selector *LabelSelector, labelKey, labelValue string) *LabelSelector { - if labelKey == "" { - // Don't need to add a label. - return selector - } - if selector.MatchLabels == nil { - selector.MatchLabels = make(map[string]string) - } - selector.MatchLabels[labelKey] = labelValue - return selector -} - -// SelectorHasLabel checks if the given selector contains the given label key in its MatchLabels -func SelectorHasLabel(selector *LabelSelector, labelKey string) bool { - return len(selector.MatchLabels[labelKey]) > 0 -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels_test.go deleted file mode 100644 index 918b1a294..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/labels_test.go +++ /dev/null @@ -1,123 +0,0 @@ -/* -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 v1 - -import ( - "reflect" - "testing" -) - -func TestCloneSelectorAndAddLabel(t *testing.T) { - labels := map[string]string{ - "foo1": "bar1", - "foo2": "bar2", - "foo3": "bar3", - } - matchExpressions := []LabelSelectorRequirement{ - {Key: "foo", Operator: LabelSelectorOpIn, Values: []string{"foo"}}, - } - - cases := []struct { - labels map[string]string - labelKey string - labelValue string - want map[string]string - }{ - { - labels: labels, - want: labels, - }, - { - labels: labels, - labelKey: "foo4", - labelValue: "89", - want: map[string]string{ - "foo1": "bar1", - "foo2": "bar2", - "foo3": "bar3", - "foo4": "89", - }, - }, - { - labels: nil, - labelKey: "foo4", - labelValue: "12", - want: map[string]string{ - "foo4": "12", - }, - }, - } - - for _, tc := range cases { - ls_in := LabelSelector{MatchLabels: tc.labels, MatchExpressions: matchExpressions} - ls_out := LabelSelector{MatchLabels: tc.want, MatchExpressions: matchExpressions} - - got := CloneSelectorAndAddLabel(&ls_in, tc.labelKey, tc.labelValue) - if !reflect.DeepEqual(got, &ls_out) { - t.Errorf("got %v, want %v", got, tc.want) - } - } -} - -func TestAddLabelToSelector(t *testing.T) { - labels := map[string]string{ - "foo1": "bar1", - "foo2": "bar2", - "foo3": "bar3", - } - - cases := []struct { - labels map[string]string - labelKey string - labelValue string - want map[string]string - }{ - { - labels: labels, - want: labels, - }, - { - labels: labels, - labelKey: "foo4", - labelValue: "89", - want: map[string]string{ - "foo1": "bar1", - "foo2": "bar2", - "foo3": "bar3", - "foo4": "89", - }, - }, - { - labels: nil, - labelKey: "foo4", - labelValue: "12", - want: map[string]string{ - "foo4": "12", - }, - }, - } - - for _, tc := range cases { - ls_in := LabelSelector{MatchLabels: tc.labels} - ls_out := LabelSelector{MatchLabels: tc.want} - - got := AddLabelToSelector(&ls_in, tc.labelKey, tc.labelValue) - if !reflect.DeepEqual(got, &ls_out) { - t.Errorf("got %v, want %v", got, tc.want) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/meta.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/meta.go deleted file mode 100644 index b94e2fff9..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/meta.go +++ /dev/null @@ -1,178 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// TODO: move this, Object, List, and Type to a different package -type ObjectMetaAccessor interface { - GetObjectMeta() Object -} - -// Object lets you work with object metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field (Name, UID, Namespace on lists) will be a no-op and return -// a default value. -type Object interface { - GetNamespace() string - SetNamespace(namespace string) - GetName() string - SetName(name string) - GetGenerateName() string - SetGenerateName(name string) - GetUID() types.UID - SetUID(uid types.UID) - GetResourceVersion() string - SetResourceVersion(version string) - GetGeneration() int64 - SetGeneration(generation int64) - GetSelfLink() string - SetSelfLink(selfLink string) - GetCreationTimestamp() Time - SetCreationTimestamp(timestamp Time) - GetDeletionTimestamp() *Time - SetDeletionTimestamp(timestamp *Time) - GetDeletionGracePeriodSeconds() *int64 - SetDeletionGracePeriodSeconds(*int64) - GetLabels() map[string]string - SetLabels(labels map[string]string) - GetAnnotations() map[string]string - SetAnnotations(annotations map[string]string) - GetFinalizers() []string - SetFinalizers(finalizers []string) - GetOwnerReferences() []OwnerReference - SetOwnerReferences([]OwnerReference) - GetClusterName() string - SetClusterName(clusterName string) - GetManagedFields() []ManagedFieldsEntry - SetManagedFields(managedFields []ManagedFieldsEntry) -} - -// ListMetaAccessor retrieves the list interface from an object -type ListMetaAccessor interface { - GetListMeta() ListInterface -} - -// Common lets you work with core metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field will be a no-op and return a default value. -// TODO: move this, and TypeMeta and ListMeta, to a different package -type Common interface { - GetResourceVersion() string - SetResourceVersion(version string) - GetSelfLink() string - SetSelfLink(selfLink string) -} - -// ListInterface lets you work with list metadata from any of the versioned or -// internal API objects. Attempting to set or retrieve a field on an object that does -// not support that field will be a no-op and return a default value. -// TODO: move this, and TypeMeta and ListMeta, to a different package -type ListInterface interface { - GetResourceVersion() string - SetResourceVersion(version string) - GetSelfLink() string - SetSelfLink(selfLink string) - GetContinue() string - SetContinue(c string) - GetRemainingItemCount() *int64 - SetRemainingItemCount(c *int64) -} - -// Type exposes the type and APIVersion of versioned or internal API objects. -// TODO: move this, and TypeMeta and ListMeta, to a different package -type Type interface { - GetAPIVersion() string - SetAPIVersion(version string) - GetKind() string - SetKind(kind string) -} - -var _ ListInterface = &ListMeta{} - -func (meta *ListMeta) GetResourceVersion() string { return meta.ResourceVersion } -func (meta *ListMeta) SetResourceVersion(version string) { meta.ResourceVersion = version } -func (meta *ListMeta) GetSelfLink() string { return meta.SelfLink } -func (meta *ListMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink } -func (meta *ListMeta) GetContinue() string { return meta.Continue } -func (meta *ListMeta) SetContinue(c string) { meta.Continue = c } -func (meta *ListMeta) GetRemainingItemCount() *int64 { return meta.RemainingItemCount } -func (meta *ListMeta) SetRemainingItemCount(c *int64) { meta.RemainingItemCount = c } - -func (obj *TypeMeta) GetObjectKind() schema.ObjectKind { return obj } - -// SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta -func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind) { - obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() -} - -// GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta -func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind { - return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) -} - -func (obj *ListMeta) GetListMeta() ListInterface { return obj } - -func (obj *ObjectMeta) GetObjectMeta() Object { return obj } - -// Namespace implements metav1.Object for any object with an ObjectMeta typed field. Allows -// fast, direct access to metadata fields for API objects. -func (meta *ObjectMeta) GetNamespace() string { return meta.Namespace } -func (meta *ObjectMeta) SetNamespace(namespace string) { meta.Namespace = namespace } -func (meta *ObjectMeta) GetName() string { return meta.Name } -func (meta *ObjectMeta) SetName(name string) { meta.Name = name } -func (meta *ObjectMeta) GetGenerateName() string { return meta.GenerateName } -func (meta *ObjectMeta) SetGenerateName(generateName string) { meta.GenerateName = generateName } -func (meta *ObjectMeta) GetUID() types.UID { return meta.UID } -func (meta *ObjectMeta) SetUID(uid types.UID) { meta.UID = uid } -func (meta *ObjectMeta) GetResourceVersion() string { return meta.ResourceVersion } -func (meta *ObjectMeta) SetResourceVersion(version string) { meta.ResourceVersion = version } -func (meta *ObjectMeta) GetGeneration() int64 { return meta.Generation } -func (meta *ObjectMeta) SetGeneration(generation int64) { meta.Generation = generation } -func (meta *ObjectMeta) GetSelfLink() string { return meta.SelfLink } -func (meta *ObjectMeta) SetSelfLink(selfLink string) { meta.SelfLink = selfLink } -func (meta *ObjectMeta) GetCreationTimestamp() Time { return meta.CreationTimestamp } -func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp Time) { - meta.CreationTimestamp = creationTimestamp -} -func (meta *ObjectMeta) GetDeletionTimestamp() *Time { return meta.DeletionTimestamp } -func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *Time) { - meta.DeletionTimestamp = deletionTimestamp -} -func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64 { return meta.DeletionGracePeriodSeconds } -func (meta *ObjectMeta) SetDeletionGracePeriodSeconds(deletionGracePeriodSeconds *int64) { - meta.DeletionGracePeriodSeconds = deletionGracePeriodSeconds -} -func (meta *ObjectMeta) GetLabels() map[string]string { return meta.Labels } -func (meta *ObjectMeta) SetLabels(labels map[string]string) { meta.Labels = labels } -func (meta *ObjectMeta) GetAnnotations() map[string]string { return meta.Annotations } -func (meta *ObjectMeta) SetAnnotations(annotations map[string]string) { meta.Annotations = annotations } -func (meta *ObjectMeta) GetFinalizers() []string { return meta.Finalizers } -func (meta *ObjectMeta) SetFinalizers(finalizers []string) { meta.Finalizers = finalizers } -func (meta *ObjectMeta) GetOwnerReferences() []OwnerReference { return meta.OwnerReferences } -func (meta *ObjectMeta) SetOwnerReferences(references []OwnerReference) { - meta.OwnerReferences = references -} -func (meta *ObjectMeta) GetClusterName() string { return meta.ClusterName } -func (meta *ObjectMeta) SetClusterName(clusterName string) { meta.ClusterName = clusterName } -func (meta *ObjectMeta) GetManagedFields() []ManagedFieldsEntry { return meta.ManagedFields } -func (meta *ObjectMeta) SetManagedFields(managedFields []ManagedFieldsEntry) { - meta.ManagedFields = managedFields -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time.go deleted file mode 100644 index cdd9a6a7a..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -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 v1 - -import ( - "encoding/json" - "time" - - "github.com/google/gofuzz" -) - -const RFC3339Micro = "2006-01-02T15:04:05.000000Z07:00" - -// MicroTime is version of Time with microsecond level precision. -// -// +protobuf.options.marshal=false -// +protobuf.as=Timestamp -// +protobuf.options.(gogoproto.goproto_stringer)=false -type MicroTime struct { - time.Time `protobuf:"-"` -} - -// DeepCopy returns a deep-copy of the MicroTime value. The underlying time.Time -// type is effectively immutable in the time API, so it is safe to -// copy-by-assign, despite the presence of (unexported) Pointer fields. -func (t *MicroTime) DeepCopyInto(out *MicroTime) { - *out = *t -} - -// NewMicroTime returns a wrapped instance of the provided time -func NewMicroTime(time time.Time) MicroTime { - return MicroTime{time} -} - -// DateMicro returns the MicroTime corresponding to the supplied parameters -// by wrapping time.Date. -func DateMicro(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) MicroTime { - return MicroTime{time.Date(year, month, day, hour, min, sec, nsec, loc)} -} - -// NowMicro returns the current local time. -func NowMicro() MicroTime { - return MicroTime{time.Now()} -} - -// IsZero returns true if the value is nil or time is zero. -func (t *MicroTime) IsZero() bool { - if t == nil { - return true - } - return t.Time.IsZero() -} - -// Before reports whether the time instant t is before u. -func (t *MicroTime) Before(u *MicroTime) bool { - if t != nil && u != nil { - return t.Time.Before(u.Time) - } - return false -} - -// Equal reports whether the time instant t is equal to u. -func (t *MicroTime) Equal(u *MicroTime) bool { - if t == nil && u == nil { - return true - } - if t != nil && u != nil { - return t.Time.Equal(u.Time) - } - return false -} - -// BeforeTime reports whether the time instant t is before second-lever precision u. -func (t *MicroTime) BeforeTime(u *Time) bool { - if t != nil && u != nil { - return t.Time.Before(u.Time) - } - return false -} - -// EqualTime reports whether the time instant t is equal to second-lever precision u. -func (t *MicroTime) EqualTime(u *Time) bool { - if t == nil && u == nil { - return true - } - if t != nil && u != nil { - return t.Time.Equal(u.Time) - } - return false -} - -// UnixMicro returns the local time corresponding to the given Unix time -// by wrapping time.Unix. -func UnixMicro(sec int64, nsec int64) MicroTime { - return MicroTime{time.Unix(sec, nsec)} -} - -// UnmarshalJSON implements the json.Unmarshaller interface. -func (t *MicroTime) UnmarshalJSON(b []byte) error { - if len(b) == 4 && string(b) == "null" { - t.Time = time.Time{} - return nil - } - - var str string - err := json.Unmarshal(b, &str) - if err != nil { - return err - } - - pt, err := time.Parse(RFC3339Micro, str) - if err != nil { - return err - } - - t.Time = pt.Local() - return nil -} - -// UnmarshalQueryParameter converts from a URL query parameter value to an object -func (t *MicroTime) UnmarshalQueryParameter(str string) error { - if len(str) == 0 { - t.Time = time.Time{} - return nil - } - // Tolerate requests from older clients that used JSON serialization to build query params - if len(str) == 4 && str == "null" { - t.Time = time.Time{} - return nil - } - - pt, err := time.Parse(RFC3339Micro, str) - if err != nil { - return err - } - - t.Time = pt.Local() - return nil -} - -// MarshalJSON implements the json.Marshaler interface. -func (t MicroTime) MarshalJSON() ([]byte, error) { - if t.IsZero() { - // Encode unset/nil objects as JSON's "null". - return []byte("null"), nil - } - - return json.Marshal(t.UTC().Format(RFC3339Micro)) -} - -// OpenAPISchemaType is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -// -// See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators -func (_ MicroTime) OpenAPISchemaType() []string { return []string{"string"} } - -// OpenAPISchemaFormat is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -func (_ MicroTime) OpenAPISchemaFormat() string { return "date-time" } - -// MarshalQueryParameter converts to a URL query parameter value -func (t MicroTime) MarshalQueryParameter() (string, error) { - if t.IsZero() { - // Encode unset/nil objects as an empty string - return "", nil - } - - return t.UTC().Format(RFC3339Micro), nil -} - -// Fuzz satisfies fuzz.Interface. -func (t *MicroTime) Fuzz(c fuzz.Continue) { - if t == nil { - return - } - // Allow for about 1000 years of randomness. Accurate to a tenth of - // micro second. Leave off nanoseconds because JSON doesn't - // represent them so they can't round-trip properly. - t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 1000*c.Rand.Int63n(1000000)) -} - -var _ fuzz.Interface = &MicroTime{} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_proto.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_proto.go deleted file mode 100644 index 6dd6d8999..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_proto.go +++ /dev/null @@ -1,80 +0,0 @@ -/* -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 v1 - -import ( - "time" -) - -// Timestamp is declared in time_proto.go - -// Timestamp returns the Time as a new Timestamp value. -func (m *MicroTime) ProtoMicroTime() *Timestamp { - if m == nil { - return &Timestamp{} - } - return &Timestamp{ - Seconds: m.Time.Unix(), - Nanos: int32(m.Time.Nanosecond()), - } -} - -// Size implements the protobuf marshalling interface. -func (m *MicroTime) Size() (n int) { - if m == nil || m.Time.IsZero() { - return 0 - } - return m.ProtoMicroTime().Size() -} - -// Reset implements the protobuf marshalling interface. -func (m *MicroTime) Unmarshal(data []byte) error { - if len(data) == 0 { - m.Time = time.Time{} - return nil - } - p := Timestamp{} - if err := p.Unmarshal(data); err != nil { - return err - } - m.Time = time.Unix(p.Seconds, int64(p.Nanos)).Local() - return nil -} - -// Marshal implements the protobuf marshalling interface. -func (m *MicroTime) Marshal() (data []byte, err error) { - if m == nil || m.Time.IsZero() { - return nil, nil - } - return m.ProtoMicroTime().Marshal() -} - -// MarshalTo implements the protobuf marshalling interface. -func (m *MicroTime) MarshalTo(data []byte) (int, error) { - if m == nil || m.Time.IsZero() { - return 0, nil - } - return m.ProtoMicroTime().MarshalTo(data) -} - -// MarshalToSizedBuffer implements the protobuf marshalling interface. -func (m *MicroTime) MarshalToSizedBuffer(data []byte) (int, error) { - if m == nil || m.Time.IsZero() { - return 0, nil - } - return m.ProtoMicroTime().MarshalToSizedBuffer(data) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_test.go deleted file mode 100644 index 3b2745786..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/micro_time_test.go +++ /dev/null @@ -1,255 +0,0 @@ -/* -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 v1 - -import ( - "encoding/json" - "reflect" - "testing" - "time" - - "sigs.k8s.io/yaml" -) - -type MicroTimeHolder struct { - T MicroTime `json:"t"` -} - -func TestMicroTimeMarshalYAML(t *testing.T) { - cases := []struct { - input MicroTime - result string - }{ - {MicroTime{}, "t: null\n"}, - {DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, - {DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05.000000Z\"\n"}, - } - - for _, c := range cases { - input := MicroTimeHolder{c.input} - result, err := yaml.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input: '%v': %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input: '%v': expected %+v, got %q", input, c.result, string(result)) - } - } -} - -func TestMicroTimeUnmarshalYAML(t *testing.T) { - cases := []struct { - input string - result MicroTime - }{ - {"t: null\n", MicroTime{}}, - {"t: 1998-05-05T05:05:05.000000Z\n", MicroTime{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC).Local()}}, - } - - for _, c := range cases { - var result MicroTimeHolder - if err := yaml.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) - } - if result.T != c.result { - t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) - } - } -} - -func TestMicroTimeMarshalJSON(t *testing.T) { - cases := []struct { - input MicroTime - result string - }{ - {MicroTime{}, "{\"t\":null}"}, - {DateMicro(1998, time.May, 5, 5, 5, 5, 50, time.UTC), "{\"t\":\"1998-05-05T05:05:05.000000Z\"}"}, - {DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "{\"t\":\"1998-05-05T05:05:05.000000Z\"}"}, - } - - for _, c := range cases { - input := MicroTimeHolder{c.input} - result, err := json.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input: '%v': %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input: '%v': expected %+v, got %q", input, c.result, string(result)) - } - } -} - -func TestMicroTimeUnmarshalJSON(t *testing.T) { - cases := []struct { - input string - result MicroTime - }{ - {"{\"t\":null}", MicroTime{}}, - {"{\"t\":\"1998-05-05T05:05:05.000000Z\"}", MicroTime{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC).Local()}}, - } - - for _, c := range cases { - var result MicroTimeHolder - if err := json.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) - } - if result.T != c.result { - t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) - } - } -} - -func TestMicroTimeProto(t *testing.T) { - cases := []struct { - input MicroTime - }{ - {MicroTime{}}, - {DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.Local)}, - {DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.Local)}, - } - - for _, c := range cases { - input := c.input - data, err := input.Marshal() - if err != nil { - t.Fatalf("Failed to marshal input: '%v': %v", input, err) - } - time := MicroTime{} - if err := time.Unmarshal(data); err != nil { - t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) - } - if !reflect.DeepEqual(input, time) { - t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time) - } - } -} - -func TestMicroTimeEqual(t *testing.T) { - t1 := NewMicroTime(time.Now()) - cases := []struct { - name string - x *MicroTime - y *MicroTime - result bool - }{ - {"nil =? nil", nil, nil, true}, - {"!nil =? !nil", &t1, &t1, true}, - {"nil =? !nil", nil, &t1, false}, - {"!nil =? nil", &t1, nil, false}, - } - - for _, c := range cases { - t.Run(c.name, func(t *testing.T) { - result := c.x.Equal(c.y) - if result != c.result { - t.Errorf("Failed equality test for '%v', '%v': expected %+v, got %+v", c.x, c.y, c.result, result) - } - }) - } -} - -func TestMicroTimeEqualTime(t *testing.T) { - t1 := NewMicroTime(time.Now()) - t2 := NewTime(t1.Time) - cases := []struct { - name string - x *MicroTime - y *Time - result bool - }{ - {"nil =? nil", nil, nil, true}, - {"!nil =? !nil", &t1, &t2, true}, - {"nil =? !nil", nil, &t2, false}, - {"!nil =? nil", &t1, nil, false}, - } - - for _, c := range cases { - t.Run(c.name, func(t *testing.T) { - result := c.x.EqualTime(c.y) - if result != c.result { - t.Errorf("Failed equality test for '%v', '%v': expected %+v, got %+v", c.x, c.y, c.result, result) - } - }) - } -} - -func TestMicroTimeBefore(t *testing.T) { - t1 := NewMicroTime(time.Now()) - cases := []struct { - name string - x *MicroTime - y *MicroTime - }{ - {"nil PatchOptions -> UpdateOptions round-trip failed: -got: %v -want: %v`, got, update) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/register.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/register.go deleted file mode 100644 index e0754c01e..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/register.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Copyright 2014 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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" -) - -// GroupName is the group name for this API. -const GroupName = "meta.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// Unversioned is group version for unversioned API objects -// TODO: this should be v1 probably -var Unversioned = schema.GroupVersion{Group: "", Version: "v1"} - -// WatchEventKind is name reserved for serializing watch events. -const WatchEventKind = "WatchEvent" - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// AddToGroupVersion registers common meta types into schemas. -func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion) { - scheme.AddKnownTypeWithName(groupVersion.WithKind(WatchEventKind), &WatchEvent{}) - scheme.AddKnownTypeWithName( - schema.GroupVersion{Group: groupVersion.Group, Version: runtime.APIVersionInternal}.WithKind(WatchEventKind), - &InternalEvent{}, - ) - // Supports legacy code paths, most callers should use metav1.ParameterCodec for now - scheme.AddKnownTypes(groupVersion, - &ListOptions{}, - &ExportOptions{}, - &GetOptions{}, - &DeleteOptions{}, - &CreateOptions{}, - &UpdateOptions{}, - &PatchOptions{}, - ) - utilruntime.Must(scheme.AddConversionFuncs( - Convert_v1_WatchEvent_To_watch_Event, - Convert_v1_InternalEvent_To_v1_WatchEvent, - Convert_watch_Event_To_v1_WatchEvent, - Convert_v1_WatchEvent_To_v1_InternalEvent, - )) - // Register Unversioned types under their own special group - scheme.AddUnversionedTypes(Unversioned, - &Status{}, - &APIVersions{}, - &APIGroupList{}, - &APIGroup{}, - &APIResourceList{}, - ) - - // register manually. This usually goes through the SchemeBuilder, which we cannot use here. - utilruntime.Must(AddConversionFuncs(scheme)) - utilruntime.Must(RegisterDefaults(scheme)) -} - -// scheme is the registry for the common types that adhere to the meta v1 API spec. -var scheme = runtime.NewScheme() - -// ParameterCodec knows about query parameters used with the meta v1 API spec. -var ParameterCodec = runtime.NewParameterCodec(scheme) - -func init() { - scheme.AddUnversionedTypes(SchemeGroupVersion, - &ListOptions{}, - &ExportOptions{}, - &GetOptions{}, - &DeleteOptions{}, - &CreateOptions{}, - &UpdateOptions{}, - &PatchOptions{}, - ) - - if err := AddMetaToScheme(scheme); err != nil { - panic(err) - } - - // register manually. This usually goes through the SchemeBuilder, which we cannot use here. - utilruntime.Must(RegisterDefaults(scheme)) -} - -func AddMetaToScheme(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Table{}, - &TableOptions{}, - &PartialObjectMetadata{}, - &PartialObjectMetadataList{}, - ) - - return scheme.AddConversionFuncs( - Convert_Slice_string_To_v1_IncludeObjectPolicy, - ) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time.go deleted file mode 100644 index fe510ed9e..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time.go +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2014 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 v1 - -import ( - "encoding/json" - "time" - - fuzz "github.com/google/gofuzz" -) - -// Time is a wrapper around time.Time which supports correct -// marshaling to YAML and JSON. Wrappers are provided for many -// of the factory methods that the time package offers. -// -// +protobuf.options.marshal=false -// +protobuf.as=Timestamp -// +protobuf.options.(gogoproto.goproto_stringer)=false -type Time struct { - time.Time `protobuf:"-"` -} - -// DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time -// type is effectively immutable in the time API, so it is safe to -// copy-by-assign, despite the presence of (unexported) Pointer fields. -func (t *Time) DeepCopyInto(out *Time) { - *out = *t -} - -// NewTime returns a wrapped instance of the provided time -func NewTime(time time.Time) Time { - return Time{time} -} - -// Date returns the Time corresponding to the supplied parameters -// by wrapping time.Date. -func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time { - return Time{time.Date(year, month, day, hour, min, sec, nsec, loc)} -} - -// Now returns the current local time. -func Now() Time { - return Time{time.Now()} -} - -// IsZero returns true if the value is nil or time is zero. -func (t *Time) IsZero() bool { - if t == nil { - return true - } - return t.Time.IsZero() -} - -// Before reports whether the time instant t is before u. -func (t *Time) Before(u *Time) bool { - if t != nil && u != nil { - return t.Time.Before(u.Time) - } - return false -} - -// Equal reports whether the time instant t is equal to u. -func (t *Time) Equal(u *Time) bool { - if t == nil && u == nil { - return true - } - if t != nil && u != nil { - return t.Time.Equal(u.Time) - } - return false -} - -// Unix returns the local time corresponding to the given Unix time -// by wrapping time.Unix. -func Unix(sec int64, nsec int64) Time { - return Time{time.Unix(sec, nsec)} -} - -// Rfc3339Copy returns a copy of the Time at second-level precision. -func (t Time) Rfc3339Copy() Time { - copied, _ := time.Parse(time.RFC3339, t.Format(time.RFC3339)) - return Time{copied} -} - -// UnmarshalJSON implements the json.Unmarshaller interface. -func (t *Time) UnmarshalJSON(b []byte) error { - if len(b) == 4 && string(b) == "null" { - t.Time = time.Time{} - return nil - } - - var str string - err := json.Unmarshal(b, &str) - if err != nil { - return err - } - - pt, err := time.Parse(time.RFC3339, str) - if err != nil { - return err - } - - t.Time = pt.Local() - return nil -} - -// UnmarshalQueryParameter converts from a URL query parameter value to an object -func (t *Time) UnmarshalQueryParameter(str string) error { - if len(str) == 0 { - t.Time = time.Time{} - return nil - } - // Tolerate requests from older clients that used JSON serialization to build query params - if len(str) == 4 && str == "null" { - t.Time = time.Time{} - return nil - } - - pt, err := time.Parse(time.RFC3339, str) - if err != nil { - return err - } - - t.Time = pt.Local() - return nil -} - -// MarshalJSON implements the json.Marshaler interface. -func (t Time) MarshalJSON() ([]byte, error) { - if t.IsZero() { - // Encode unset/nil objects as JSON's "null". - return []byte("null"), nil - } - buf := make([]byte, 0, len(time.RFC3339)+2) - buf = append(buf, '"') - // time cannot contain non escapable JSON characters - buf = t.UTC().AppendFormat(buf, time.RFC3339) - buf = append(buf, '"') - return buf, nil -} - -// OpenAPISchemaType is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -// -// See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators -func (_ Time) OpenAPISchemaType() []string { return []string{"string"} } - -// OpenAPISchemaFormat is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -func (_ Time) OpenAPISchemaFormat() string { return "date-time" } - -// MarshalQueryParameter converts to a URL query parameter value -func (t Time) MarshalQueryParameter() (string, error) { - if t.IsZero() { - // Encode unset/nil objects as an empty string - return "", nil - } - - return t.UTC().Format(time.RFC3339), nil -} - -// Fuzz satisfies fuzz.Interface. -func (t *Time) Fuzz(c fuzz.Continue) { - if t == nil { - return - } - // Allow for about 1000 years of randomness. Leave off nanoseconds - // because JSON doesn't represent them so they can't round-trip - // properly. - t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 0) -} - -var _ fuzz.Interface = &Time{} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_proto.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_proto.go deleted file mode 100644 index eac8d9658..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_proto.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2015 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 v1 - -import ( - "time" -) - -// Timestamp is a struct that is equivalent to Time, but intended for -// protobuf marshalling/unmarshalling. It is generated into a serialization -// that matches Time. Do not use in Go structs. -type Timestamp struct { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - Seconds int64 `json:"seconds" protobuf:"varint,1,opt,name=seconds"` - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. This field may be limited in precision depending on context. - Nanos int32 `json:"nanos" protobuf:"varint,2,opt,name=nanos"` -} - -// Timestamp returns the Time as a new Timestamp value. -func (m *Time) ProtoTime() *Timestamp { - if m == nil { - return &Timestamp{} - } - return &Timestamp{ - Seconds: m.Time.Unix(), - // leaving this here for the record. our JSON only handled seconds, so this results in writes by - // protobuf clients storing values that aren't read by json clients, which results in unexpected - // field mutation, which fails various validation and equality code. - // Nanos: int32(m.Time.Nanosecond()), - } -} - -// Size implements the protobuf marshalling interface. -func (m *Time) Size() (n int) { - if m == nil || m.Time.IsZero() { - return 0 - } - return m.ProtoTime().Size() -} - -// Reset implements the protobuf marshalling interface. -func (m *Time) Unmarshal(data []byte) error { - if len(data) == 0 { - m.Time = time.Time{} - return nil - } - p := Timestamp{} - if err := p.Unmarshal(data); err != nil { - return err - } - // leaving this here for the record. our JSON only handled seconds, so this results in writes by - // protobuf clients storing values that aren't read by json clients, which results in unexpected - // field mutation, which fails various validation and equality code. - // m.Time = time.Unix(p.Seconds, int64(p.Nanos)).Local() - m.Time = time.Unix(p.Seconds, int64(0)).Local() - return nil -} - -// Marshal implements the protobuf marshaling interface. -func (m *Time) Marshal() (data []byte, err error) { - if m == nil || m.Time.IsZero() { - return nil, nil - } - return m.ProtoTime().Marshal() -} - -// MarshalTo implements the protobuf marshaling interface. -func (m *Time) MarshalTo(data []byte) (int, error) { - if m == nil || m.Time.IsZero() { - return 0, nil - } - return m.ProtoTime().MarshalTo(data) -} - -// MarshalToSizedBuffer implements the protobuf reverse marshaling interface. -func (m *Time) MarshalToSizedBuffer(data []byte) (int, error) { - if m == nil || m.Time.IsZero() { - return 0, nil - } - return m.ProtoTime().MarshalToSizedBuffer(data) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_test.go deleted file mode 100644 index 41e171fce..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/time_test.go +++ /dev/null @@ -1,241 +0,0 @@ -/* -Copyright 2014 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 v1 - -import ( - "encoding/json" - "reflect" - "testing" - "time" - - "sigs.k8s.io/yaml" -) - -type TimeHolder struct { - T Time `json:"t"` -} - -func TestTimeMarshalYAML(t *testing.T) { - cases := []struct { - input Time - result string - }{ - {Time{}, "t: null\n"}, - {Date(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05Z\"\n"}, - {Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05Z\"\n"}, - } - - for _, c := range cases { - input := TimeHolder{c.input} - result, err := yaml.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input: '%v': %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input: '%v': expected %+v, got %q", input, c.result, string(result)) - } - } -} - -func TestTimeUnmarshalYAML(t *testing.T) { - cases := []struct { - input string - result Time - }{ - {"t: null\n", Time{}}, - {"t: 1998-05-05T05:05:05Z\n", Time{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC).Local()}}, - } - - for _, c := range cases { - var result TimeHolder - if err := yaml.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) - } - if result.T != c.result { - t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) - } - } -} - -func TestTimeMarshalJSON(t *testing.T) { - cases := []struct { - input Time - result string - }{ - {Time{}, "{\"t\":null}"}, - {Date(1998, time.May, 5, 5, 5, 5, 50, time.UTC), "{\"t\":\"1998-05-05T05:05:05Z\"}"}, - {Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "{\"t\":\"1998-05-05T05:05:05Z\"}"}, - } - - for _, c := range cases { - input := TimeHolder{c.input} - result, err := json.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input: '%v': %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input: '%v': expected %+v, got %q", input, c.result, string(result)) - } - } -} - -func TestTimeUnmarshalJSON(t *testing.T) { - cases := []struct { - input string - result Time - }{ - {"{\"t\":null}", Time{}}, - {"{\"t\":\"1998-05-05T05:05:05Z\"}", Time{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC).Local()}}, - } - - for _, c := range cases { - var result TimeHolder - if err := json.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) - } - if result.T != c.result { - t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) - } - } -} - -func TestTimeMarshalJSONUnmarshalYAML(t *testing.T) { - cases := []struct { - input Time - }{ - {Time{}}, - {Date(1998, time.May, 5, 5, 5, 5, 50, time.Local).Rfc3339Copy()}, - {Date(1998, time.May, 5, 5, 5, 5, 0, time.Local).Rfc3339Copy()}, - } - - for i, c := range cases { - input := TimeHolder{c.input} - jsonMarshalled, err := json.Marshal(&input) - if err != nil { - t.Errorf("%d-1: Failed to marshal input: '%v': %v", i, input, err) - } - - var result TimeHolder - err = yaml.Unmarshal(jsonMarshalled, &result) - if err != nil { - t.Errorf("%d-2: Failed to unmarshal '%+v': %v", i, string(jsonMarshalled), err) - } - - iN, iO := input.T.Zone() - oN, oO := result.T.Zone() - if iN != oN || iO != oO { - t.Errorf("%d-3: Time zones differ before and after serialization %s:%d %s:%d", i, iN, iO, oN, oO) - } - - if input.T.UnixNano() != result.T.UnixNano() { - t.Errorf("%d-4: Failed to marshal input '%#v': got %#v", i, input, result) - } - } -} - -func TestTimeProto(t *testing.T) { - cases := []struct { - input Time - }{ - {Time{}}, - {Date(1998, time.May, 5, 1, 5, 5, 0, time.Local)}, - {Date(1998, time.May, 5, 5, 5, 5, 0, time.Local)}, - } - - for _, c := range cases { - input := c.input - data, err := input.Marshal() - if err != nil { - t.Fatalf("Failed to marshal input: '%v': %v", input, err) - } - time := Time{} - if err := time.Unmarshal(data); err != nil { - t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) - } - if !reflect.DeepEqual(input, time) { - t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time) - } - } -} - -func TestTimeEqual(t *testing.T) { - t1 := NewTime(time.Now()) - cases := []struct { - name string - x *Time - y *Time - result bool - }{ - {"nil =? nil", nil, nil, true}, - {"!nil =? !nil", &t1, &t1, true}, - {"nil =? !nil", nil, &t1, false}, - {"!nil =? nil", &t1, nil, false}, - } - - for _, c := range cases { - t.Run(c.name, func(t *testing.T) { - result := c.x.Equal(c.y) - if result != c.result { - t.Errorf("Failed equality test for '%v', '%v': expected %+v, got %+v", c.x, c.y, c.result, result) - } - }) - } -} - -func TestTimeBefore(t *testing.T) { - t1 := NewTime(time.Now()) - cases := []struct { - name string - x *Time - y *Time - }{ - {"nil ', where is the name of a field in a struct, or key in a map -// 'v:', where is the exact json formatted value of a list item -// 'i:', where is position of a item in a list -// 'k:', where is a map of a list item's key fields to their unique values -// If a key maps to an empty Fields value, the field that key represents is part of the set. -// -// The exact format is defined in sigs.k8s.io/structured-merge-diff -type FieldsV1 struct { - // Raw is the underlying serialization of this object. - Raw []byte `json:"-" protobuf:"bytes,1,opt,name=Raw"` -} - -// TODO: Table does not generate to protobuf because of the interface{} - fix protobuf -// generation to support a meta type that can accept any valid JSON. This can be introduced -// in a v1 because clients a) receive an error if they try to access proto today, and b) -// once introduced they would be able to gracefully switch over to using it. - -// Table is a tabular representation of a set of API resources. The server transforms the -// object into a set of preferred columns for quickly reviewing the objects. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +protobuf=false -type Table struct { - TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - ListMeta `json:"metadata,omitempty"` - - // columnDefinitions describes each column in the returned items array. The number of cells per row - // will always match the number of column definitions. - ColumnDefinitions []TableColumnDefinition `json:"columnDefinitions"` - // rows is the list of items in the table. - Rows []TableRow `json:"rows"` -} - -// TableColumnDefinition contains information about a column returned in the Table. -// +protobuf=false -type TableColumnDefinition struct { - // name is a human readable name for the column. - Name string `json:"name"` - // type is an OpenAPI type definition for this column, such as number, integer, string, or - // array. - // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. - Type string `json:"type"` - // format is an optional OpenAPI type modifier for this column. A format modifies the type and - // imposes additional rules, like date or time formatting for a string. The 'name' format is applied - // to the primary identifier column which has type 'string' to assist in clients identifying column - // is the resource name. - // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. - Format string `json:"format"` - // description is a human readable description of this column. - Description string `json:"description"` - // priority is an integer defining the relative importance of this column compared to others. Lower - // numbers are considered higher priority. Columns that may be omitted in limited space scenarios - // should be given a higher priority. - Priority int32 `json:"priority"` -} - -// TableRow is an individual row in a table. -// +protobuf=false -type TableRow struct { - // cells will be as wide as the column definitions array and may contain strings, numbers (float64 or - // int64), booleans, simple maps, lists, or null. See the type field of the column definition for a - // more detailed description. - Cells []interface{} `json:"cells"` - // conditions describe additional status of a row that are relevant for a human user. These conditions - // apply to the row, not to the object, and will be specific to table output. The only defined - // condition type is 'Completed', for a row that indicates a resource that has run to completion and - // can be given less visual priority. - // +optional - Conditions []TableRowCondition `json:"conditions,omitempty"` - // This field contains the requested additional information about each object based on the includeObject - // policy when requesting the Table. If "None", this field is empty, if "Object" this will be the - // default serialization of the object for the current API version, and if "Metadata" (the default) will - // contain the object metadata. Check the returned kind and apiVersion of the object before parsing. - // The media type of the object will always match the enclosing list - if this as a JSON table, these - // will be JSON encoded objects. - // +optional - Object runtime.RawExtension `json:"object,omitempty"` -} - -// TableRowCondition allows a row to be marked with additional information. -// +protobuf=false -type TableRowCondition struct { - // Type of row condition. The only defined value is 'Completed' indicating that the - // object this row represents has reached a completed state and may be given less visual - // priority than other rows. Clients are not required to honor any conditions but should - // be consistent where possible about handling the conditions. - Type RowConditionType `json:"type"` - // Status of the condition, one of True, False, Unknown. - Status ConditionStatus `json:"status"` - // (brief) machine readable reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty"` - // Human readable message indicating details about last transition. - // +optional - Message string `json:"message,omitempty"` -} - -type RowConditionType string - -// These are valid conditions of a row. This list is not exhaustive and new conditions may be -// included by other resources. -const ( - // RowCompleted means the underlying resource has reached completion and may be given less - // visual priority than other resources. - RowCompleted RowConditionType = "Completed" -) - -type ConditionStatus string - -// These are valid condition statuses. "ConditionTrue" means a resource is in the condition. -// "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means kubernetes -// can't decide if a resource is in the condition or not. In the future, we could add other -// intermediate conditions, e.g. ConditionDegraded. -const ( - ConditionTrue ConditionStatus = "True" - ConditionFalse ConditionStatus = "False" - ConditionUnknown ConditionStatus = "Unknown" -) - -// IncludeObjectPolicy controls which portion of the object is returned with a Table. -type IncludeObjectPolicy string - -const ( - // IncludeNone returns no object. - IncludeNone IncludeObjectPolicy = "None" - // IncludeMetadata serializes the object containing only its metadata field. - IncludeMetadata IncludeObjectPolicy = "Metadata" - // IncludeObject contains the full object. - IncludeObject IncludeObjectPolicy = "Object" -) - -// TableOptions are used when a Table is requested by the caller. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type TableOptions struct { - TypeMeta `json:",inline"` - - // NoHeaders is only exposed for internal callers. It is not included in our OpenAPI definitions - // and may be removed as a field in a future release. - NoHeaders bool `json:"-"` - - // includeObject decides whether to include each object along with its columnar information. - // Specifying "None" will return no object, specifying "Object" will return the full object contents, and - // specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind - // in version v1beta1 of the meta.k8s.io API group. - IncludeObject IncludeObjectPolicy `json:"includeObject,omitempty" protobuf:"bytes,1,opt,name=includeObject,casttype=IncludeObjectPolicy"` -} - -// PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients -// to get access to a particular ObjectMeta schema without knowing the details of the version. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type PartialObjectMetadata struct { - TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` -} - -// PartialObjectMetadataList contains a list of objects containing only their metadata -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type PartialObjectMetadataList struct { - TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // items contains each of the included items. - Items []PartialObjectMetadata `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go deleted file mode 100644 index 07e6cc126..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go +++ /dev/null @@ -1,442 +0,0 @@ -/* -Copyright 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 v1 - -// 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. DO NOT EDIT. -var map_APIGroup = map[string]string{ - "": "APIGroup contains the name, the supported versions, and the preferred version of a group.", - "name": "name is the name of the group.", - "versions": "versions are the versions supported in this group.", - "preferredVersion": "preferredVersion is the version preferred by the API server, which probably is the storage version.", - "serverAddressByClientCIDRs": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", -} - -func (APIGroup) SwaggerDoc() map[string]string { - return map_APIGroup -} - -var map_APIGroupList = map[string]string{ - "": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", - "groups": "groups is a list of APIGroup.", -} - -func (APIGroupList) SwaggerDoc() map[string]string { - return map_APIGroupList -} - -var map_APIResource = map[string]string{ - "": "APIResource specifies the name of a resource and whether it is namespaced.", - "name": "name is the plural name of the resource.", - "singularName": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", - "namespaced": "namespaced indicates if a resource is namespaced or not.", - "group": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", - "version": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", - "kind": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", - "verbs": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", - "shortNames": "shortNames is a list of suggested short names of the resource.", - "categories": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", - "storageVersionHash": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", -} - -func (APIResource) SwaggerDoc() map[string]string { - return map_APIResource -} - -var map_APIResourceList = map[string]string{ - "": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", - "groupVersion": "groupVersion is the group and version this APIResourceList is for.", - "resources": "resources contains the name of the resources and if they are namespaced.", -} - -func (APIResourceList) SwaggerDoc() map[string]string { - return map_APIResourceList -} - -var map_APIVersions = map[string]string{ - "": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", - "versions": "versions are the api versions that are available.", - "serverAddressByClientCIDRs": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", -} - -func (APIVersions) SwaggerDoc() map[string]string { - return map_APIVersions -} - -var map_CreateOptions = map[string]string{ - "": "CreateOptions may be provided when creating an API object.", - "dryRun": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "fieldManager": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", -} - -func (CreateOptions) SwaggerDoc() map[string]string { - return map_CreateOptions -} - -var map_DeleteOptions = map[string]string{ - "": "DeleteOptions may be provided when deleting an API object.", - "gracePeriodSeconds": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "preconditions": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", - "orphanDependents": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "propagationPolicy": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "dryRun": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", -} - -func (DeleteOptions) SwaggerDoc() map[string]string { - return map_DeleteOptions -} - -var map_ExportOptions = map[string]string{ - "": "ExportOptions is the query options to the standard REST get call. Deprecated. Planned for removal in 1.18.", - "export": "Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.", - "exact": "Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.", -} - -func (ExportOptions) SwaggerDoc() map[string]string { - return map_ExportOptions -} - -var map_FieldsV1 = map[string]string{ - "": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", -} - -func (FieldsV1) SwaggerDoc() map[string]string { - return map_FieldsV1 -} - -var map_GetOptions = map[string]string{ - "": "GetOptions is the standard query options to the standard REST get call.", - "resourceVersion": "When specified: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", -} - -func (GetOptions) SwaggerDoc() map[string]string { - return map_GetOptions -} - -var map_GroupVersionForDiscovery = map[string]string{ - "": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", - "groupVersion": "groupVersion specifies the API group and version in the form \"group/version\"", - "version": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", -} - -func (GroupVersionForDiscovery) SwaggerDoc() map[string]string { - return map_GroupVersionForDiscovery -} - -var map_LabelSelector = map[string]string{ - "": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", - "matchLabels": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "matchExpressions": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", -} - -func (LabelSelector) SwaggerDoc() map[string]string { - return map_LabelSelector -} - -var map_LabelSelectorRequirement = map[string]string{ - "": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", - "key": "key is the label key that the selector applies to.", - "operator": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", - "values": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", -} - -func (LabelSelectorRequirement) SwaggerDoc() map[string]string { - return map_LabelSelectorRequirement -} - -var map_List = map[string]string{ - "": "List holds a list of objects, which may not be known by the server.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "List of objects", -} - -func (List) SwaggerDoc() map[string]string { - return map_List -} - -var map_ListMeta = map[string]string{ - "": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", - "selfLink": "selfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", - "resourceVersion": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "continue": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", - "remainingItemCount": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", -} - -func (ListMeta) SwaggerDoc() map[string]string { - return map_ListMeta -} - -var map_ListOptions = map[string]string{ - "": "ListOptions is the query options to a standard REST list call.", - "labelSelector": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "fieldSelector": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "watch": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "allowWatchBookmarks": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "resourceVersion": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "timeoutSeconds": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "limit": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "continue": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", -} - -func (ListOptions) SwaggerDoc() map[string]string { - return map_ListOptions -} - -var map_ManagedFieldsEntry = map[string]string{ - "": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", - "manager": "Manager is an identifier of the workflow managing these fields.", - "operation": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", - "apiVersion": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", - "time": "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'", - "fieldsType": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", - "fieldsV1": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", -} - -func (ManagedFieldsEntry) SwaggerDoc() map[string]string { - return map_ManagedFieldsEntry -} - -var map_ObjectMeta = map[string]string{ - "": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", - "name": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "generateName": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - "namespace": "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", - "selfLink": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.", - "uid": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "resourceVersion": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", - "generation": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - "creationTimestamp": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "deletionTimestamp": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - "deletionGracePeriodSeconds": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", - "labels": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", - "annotations": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", - "ownerReferences": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", - "finalizers": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.", - "clusterName": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", - "managedFields": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", -} - -func (ObjectMeta) SwaggerDoc() map[string]string { - return map_ObjectMeta -} - -var map_OwnerReference = map[string]string{ - "": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", - "apiVersion": "API version of the referent.", - "kind": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "name": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "uid": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "controller": "If true, this reference points to the managing controller.", - "blockOwnerDeletion": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", -} - -func (OwnerReference) SwaggerDoc() map[string]string { - return map_OwnerReference -} - -var map_PartialObjectMetadata = map[string]string{ - "": "PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version.", - "metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", -} - -func (PartialObjectMetadata) SwaggerDoc() map[string]string { - return map_PartialObjectMetadata -} - -var map_PartialObjectMetadataList = map[string]string{ - "": "PartialObjectMetadataList contains a list of objects containing only their metadata", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "items contains each of the included items.", -} - -func (PartialObjectMetadataList) SwaggerDoc() map[string]string { - return map_PartialObjectMetadataList -} - -var map_Patch = map[string]string{ - "": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", -} - -func (Patch) SwaggerDoc() map[string]string { - return map_Patch -} - -var map_PatchOptions = map[string]string{ - "": "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", - "dryRun": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "force": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "fieldManager": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", -} - -func (PatchOptions) SwaggerDoc() map[string]string { - return map_PatchOptions -} - -var map_Preconditions = map[string]string{ - "": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", - "uid": "Specifies the target UID.", - "resourceVersion": "Specifies the target ResourceVersion", -} - -func (Preconditions) SwaggerDoc() map[string]string { - return map_Preconditions -} - -var map_RootPaths = map[string]string{ - "": "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", - "paths": "paths are the paths available at root.", -} - -func (RootPaths) SwaggerDoc() map[string]string { - return map_RootPaths -} - -var map_ServerAddressByClientCIDR = map[string]string{ - "": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", - "clientCIDR": "The CIDR with which clients can match their IP to figure out the server address that they should use.", - "serverAddress": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", -} - -func (ServerAddressByClientCIDR) SwaggerDoc() map[string]string { - return map_ServerAddressByClientCIDR -} - -var map_Status = map[string]string{ - "": "Status is a return value for calls that don't return other objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "status": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "message": "A human-readable description of the status of this operation.", - "reason": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", - "details": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", - "code": "Suggested HTTP return code for this status, 0 if not set.", -} - -func (Status) SwaggerDoc() map[string]string { - return map_Status -} - -var map_StatusCause = map[string]string{ - "": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", - "reason": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", - "message": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", - "field": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", -} - -func (StatusCause) SwaggerDoc() map[string]string { - return map_StatusCause -} - -var map_StatusDetails = map[string]string{ - "": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", - "name": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", - "group": "The group attribute of the resource associated with the status StatusReason.", - "kind": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "uid": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "causes": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", - "retryAfterSeconds": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", -} - -func (StatusDetails) SwaggerDoc() map[string]string { - return map_StatusDetails -} - -var map_Table = map[string]string{ - "": "Table is a tabular representation of a set of API resources. The server transforms the object into a set of preferred columns for quickly reviewing the objects.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "columnDefinitions": "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", - "rows": "rows is the list of items in the table.", -} - -func (Table) SwaggerDoc() map[string]string { - return map_Table -} - -var map_TableColumnDefinition = map[string]string{ - "": "TableColumnDefinition contains information about a column returned in the Table.", - "name": "name is a human readable name for the column.", - "type": "type is an OpenAPI type definition for this column, such as number, integer, string, or array. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.", - "format": "format is an optional OpenAPI type modifier for this column. A format modifies the type and imposes additional rules, like date or time formatting for a string. The 'name' format is applied to the primary identifier column which has type 'string' to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.", - "description": "description is a human readable description of this column.", - "priority": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.", -} - -func (TableColumnDefinition) SwaggerDoc() map[string]string { - return map_TableColumnDefinition -} - -var map_TableOptions = map[string]string{ - "": "TableOptions are used when a Table is requested by the caller.", - "includeObject": "includeObject decides whether to include each object along with its columnar information. Specifying \"None\" will return no object, specifying \"Object\" will return the full object contents, and specifying \"Metadata\" (the default) will return the object's metadata in the PartialObjectMetadata kind in version v1beta1 of the meta.k8s.io API group.", -} - -func (TableOptions) SwaggerDoc() map[string]string { - return map_TableOptions -} - -var map_TableRow = map[string]string{ - "": "TableRow is an individual row in a table.", - "cells": "cells will be as wide as the column definitions array and may contain strings, numbers (float64 or int64), booleans, simple maps, lists, or null. See the type field of the column definition for a more detailed description.", - "conditions": "conditions describe additional status of a row that are relevant for a human user. These conditions apply to the row, not to the object, and will be specific to table output. The only defined condition type is 'Completed', for a row that indicates a resource that has run to completion and can be given less visual priority.", - "object": "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing. The media type of the object will always match the enclosing list - if this as a JSON table, these will be JSON encoded objects.", -} - -func (TableRow) SwaggerDoc() map[string]string { - return map_TableRow -} - -var map_TableRowCondition = map[string]string{ - "": "TableRowCondition allows a row to be marked with additional information.", - "type": "Type of row condition. The only defined value is 'Completed' indicating that the object this row represents has reached a completed state and may be given less visual priority than other rows. Clients are not required to honor any conditions but should be consistent where possible about handling the conditions.", - "status": "Status of the condition, one of True, False, Unknown.", - "reason": "(brief) machine readable reason for the condition's last transition.", - "message": "Human readable message indicating details about last transition.", -} - -func (TableRowCondition) SwaggerDoc() map[string]string { - return map_TableRowCondition -} - -var map_TypeMeta = map[string]string{ - "": "TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.", - "kind": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "apiVersion": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", -} - -func (TypeMeta) SwaggerDoc() map[string]string { - return map_TypeMeta -} - -var map_UpdateOptions = map[string]string{ - "": "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", - "dryRun": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "fieldManager": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", -} - -func (UpdateOptions) SwaggerDoc() map[string]string { - return map_UpdateOptions -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_test.go deleted file mode 100644 index 50b599d2d..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/types_test.go +++ /dev/null @@ -1,135 +0,0 @@ -/* -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 v1 - -import ( - gojson "encoding/json" - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" -) - -func TestVerbsMarshalJSON(t *testing.T) { - cases := []struct { - input APIResource - result string - }{ - {APIResource{}, `{"name":"","singularName":"","namespaced":false,"kind":"","verbs":null}`}, - {APIResource{Verbs: Verbs([]string{})}, `{"name":"","singularName":"","namespaced":false,"kind":"","verbs":[]}`}, - {APIResource{Verbs: Verbs([]string{"delete"})}, `{"name":"","singularName":"","namespaced":false,"kind":"","verbs":["delete"]}`}, - } - - for i, c := range cases { - result, err := gojson.Marshal(&c.input) - if err != nil { - t.Errorf("[%d] Failed to marshal input: '%v': %v", i, c.input, err) - } - if string(result) != c.result { - t.Errorf("[%d] Failed to marshal input: '%v': expected '%v', got '%v'", i, c.input, c.result, string(result)) - } - } -} - -func TestVerbsJsonIterUnmarshalJSON(t *testing.T) { - cases := []struct { - input string - result APIResource - }{ - {`{}`, APIResource{}}, - {`{"verbs":null}`, APIResource{}}, - {`{"verbs":[]}`, APIResource{Verbs: Verbs([]string{})}}, - {`{"verbs":["delete"]}`, APIResource{Verbs: Verbs([]string{"delete"})}}, - } - - iter := json.CaseSensitiveJsonIterator() - for i, c := range cases { - var result APIResource - if err := iter.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("[%d] Failed to unmarshal input '%v': %v", i, c.input, err) - } - if !reflect.DeepEqual(result, c.result) { - t.Errorf("[%d] Failed to unmarshal input '%v': expected %+v, got %+v", i, c.input, c.result, result) - } - } -} - -// TestMarshalJSONWithOmit tests that we don't have regressions regarding nil and empty slices with "omit" -func TestMarshalJSONWithOmit(t *testing.T) { - cases := []struct { - input LabelSelector - result string - }{ - {LabelSelector{}, `{}`}, - {LabelSelector{MatchExpressions: []LabelSelectorRequirement{}}, `{}`}, - {LabelSelector{MatchExpressions: []LabelSelectorRequirement{{}}}, `{"matchExpressions":[{"key":"","operator":""}]}`}, - } - - for i, c := range cases { - result, err := gojson.Marshal(&c.input) - if err != nil { - t.Errorf("[%d] Failed to marshal input: '%v': %v", i, c.input, err) - } - if string(result) != c.result { - t.Errorf("[%d] Failed to marshal input: '%v': expected '%v', got '%v'", i, c.input, c.result, string(result)) - } - } -} - -func TestVerbsUnmarshalJSON(t *testing.T) { - cases := []struct { - input string - result APIResource - }{ - {`{}`, APIResource{}}, - {`{"verbs":null}`, APIResource{}}, - {`{"verbs":[]}`, APIResource{Verbs: Verbs([]string{})}}, - {`{"verbs":["delete"]}`, APIResource{Verbs: Verbs([]string{"delete"})}}, - } - - for i, c := range cases { - var result APIResource - if err := gojson.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("[%d] Failed to unmarshal input '%v': %v", i, c.input, err) - } - if !reflect.DeepEqual(result, c.result) { - t.Errorf("[%d] Failed to unmarshal input '%v': expected %+v, got %+v", i, c.input, c.result, result) - } - } -} - -func TestVerbsProto(t *testing.T) { - cases := []APIResource{ - {}, - {Verbs: Verbs([]string{})}, - {Verbs: Verbs([]string{"delete"})}, - } - - for _, input := range cases { - data, err := input.Marshal() - if err != nil { - t.Fatalf("Failed to marshal input: '%v': %v", input, err) - } - resource := APIResource{} - if err := resource.Unmarshal(data); err != nil { - t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) - } - if !reflect.DeepEqual(input, resource) { - t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, resource) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go deleted file mode 100644 index 08d95333f..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go +++ /dev/null @@ -1,476 +0,0 @@ -/* -Copyright 2015 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 unstructured - -import ( - gojson "encoding/json" - "fmt" - "io" - "strings" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" -) - -// NestedFieldCopy returns a deep copy of the value of a nested field. -// Returns false if the value is missing. -// No error is returned for a nil field. -// -// Note: fields passed to this function are treated as keys within the passed -// object; no array/slice syntax is supported. -func NestedFieldCopy(obj map[string]interface{}, fields ...string) (interface{}, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return nil, found, err - } - return runtime.DeepCopyJSONValue(val), true, nil -} - -// NestedFieldNoCopy returns a reference to a nested field. -// Returns false if value is not found and an error if unable -// to traverse obj. -// -// Note: fields passed to this function are treated as keys within the passed -// object; no array/slice syntax is supported. -func NestedFieldNoCopy(obj map[string]interface{}, fields ...string) (interface{}, bool, error) { - var val interface{} = obj - - for i, field := range fields { - if val == nil { - return nil, false, nil - } - if m, ok := val.(map[string]interface{}); ok { - val, ok = m[field] - if !ok { - return nil, false, nil - } - } else { - return nil, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected map[string]interface{}", jsonPath(fields[:i+1]), val, val) - } - } - return val, true, nil -} - -// NestedString returns the string value of a nested field. -// Returns false if value is not found and an error if not a string. -func NestedString(obj map[string]interface{}, fields ...string) (string, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return "", found, err - } - s, ok := val.(string) - if !ok { - return "", false, fmt.Errorf("%v accessor error: %v is of the type %T, expected string", jsonPath(fields), val, val) - } - return s, true, nil -} - -// NestedBool returns the bool value of a nested field. -// Returns false if value is not found and an error if not a bool. -func NestedBool(obj map[string]interface{}, fields ...string) (bool, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return false, found, err - } - b, ok := val.(bool) - if !ok { - return false, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected bool", jsonPath(fields), val, val) - } - return b, true, nil -} - -// NestedFloat64 returns the float64 value of a nested field. -// Returns false if value is not found and an error if not a float64. -func NestedFloat64(obj map[string]interface{}, fields ...string) (float64, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return 0, found, err - } - f, ok := val.(float64) - if !ok { - return 0, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected float64", jsonPath(fields), val, val) - } - return f, true, nil -} - -// NestedInt64 returns the int64 value of a nested field. -// Returns false if value is not found and an error if not an int64. -func NestedInt64(obj map[string]interface{}, fields ...string) (int64, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return 0, found, err - } - i, ok := val.(int64) - if !ok { - return 0, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected int64", jsonPath(fields), val, val) - } - return i, true, nil -} - -// NestedStringSlice returns a copy of []string value of a nested field. -// Returns false if value is not found and an error if not a []interface{} or contains non-string items in the slice. -func NestedStringSlice(obj map[string]interface{}, fields ...string) ([]string, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return nil, found, err - } - m, ok := val.([]interface{}) - if !ok { - return nil, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected []interface{}", jsonPath(fields), val, val) - } - strSlice := make([]string, 0, len(m)) - for _, v := range m { - if str, ok := v.(string); ok { - strSlice = append(strSlice, str) - } else { - return nil, false, fmt.Errorf("%v accessor error: contains non-string key in the slice: %v is of the type %T, expected string", jsonPath(fields), v, v) - } - } - return strSlice, true, nil -} - -// NestedSlice returns a deep copy of []interface{} value of a nested field. -// Returns false if value is not found and an error if not a []interface{}. -func NestedSlice(obj map[string]interface{}, fields ...string) ([]interface{}, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return nil, found, err - } - _, ok := val.([]interface{}) - if !ok { - return nil, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected []interface{}", jsonPath(fields), val, val) - } - return runtime.DeepCopyJSONValue(val).([]interface{}), true, nil -} - -// NestedStringMap returns a copy of map[string]string value of a nested field. -// Returns false if value is not found and an error if not a map[string]interface{} or contains non-string values in the map. -func NestedStringMap(obj map[string]interface{}, fields ...string) (map[string]string, bool, error) { - m, found, err := nestedMapNoCopy(obj, fields...) - if !found || err != nil { - return nil, found, err - } - strMap := make(map[string]string, len(m)) - for k, v := range m { - if str, ok := v.(string); ok { - strMap[k] = str - } else { - return nil, false, fmt.Errorf("%v accessor error: contains non-string key in the map: %v is of the type %T, expected string", jsonPath(fields), v, v) - } - } - return strMap, true, nil -} - -// NestedMap returns a deep copy of map[string]interface{} value of a nested field. -// Returns false if value is not found and an error if not a map[string]interface{}. -func NestedMap(obj map[string]interface{}, fields ...string) (map[string]interface{}, bool, error) { - m, found, err := nestedMapNoCopy(obj, fields...) - if !found || err != nil { - return nil, found, err - } - return runtime.DeepCopyJSON(m), true, nil -} - -// nestedMapNoCopy returns a map[string]interface{} value of a nested field. -// Returns false if value is not found and an error if not a map[string]interface{}. -func nestedMapNoCopy(obj map[string]interface{}, fields ...string) (map[string]interface{}, bool, error) { - val, found, err := NestedFieldNoCopy(obj, fields...) - if !found || err != nil { - return nil, found, err - } - m, ok := val.(map[string]interface{}) - if !ok { - return nil, false, fmt.Errorf("%v accessor error: %v is of the type %T, expected map[string]interface{}", jsonPath(fields), val, val) - } - return m, true, nil -} - -// SetNestedField sets the value of a nested field to a deep copy of the value provided. -// Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. -func SetNestedField(obj map[string]interface{}, value interface{}, fields ...string) error { - return setNestedFieldNoCopy(obj, runtime.DeepCopyJSONValue(value), fields...) -} - -func setNestedFieldNoCopy(obj map[string]interface{}, value interface{}, fields ...string) error { - m := obj - - for i, field := range fields[:len(fields)-1] { - if val, ok := m[field]; ok { - if valMap, ok := val.(map[string]interface{}); ok { - m = valMap - } else { - return fmt.Errorf("value cannot be set because %v is not a map[string]interface{}", jsonPath(fields[:i+1])) - } - } else { - newVal := make(map[string]interface{}) - m[field] = newVal - m = newVal - } - } - m[fields[len(fields)-1]] = value - return nil -} - -// SetNestedStringSlice sets the string slice value of a nested field. -// Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. -func SetNestedStringSlice(obj map[string]interface{}, value []string, fields ...string) error { - m := make([]interface{}, 0, len(value)) // convert []string into []interface{} - for _, v := range value { - m = append(m, v) - } - return setNestedFieldNoCopy(obj, m, fields...) -} - -// SetNestedSlice sets the slice value of a nested field. -// Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. -func SetNestedSlice(obj map[string]interface{}, value []interface{}, fields ...string) error { - return SetNestedField(obj, value, fields...) -} - -// SetNestedStringMap sets the map[string]string value of a nested field. -// Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. -func SetNestedStringMap(obj map[string]interface{}, value map[string]string, fields ...string) error { - m := make(map[string]interface{}, len(value)) // convert map[string]string into map[string]interface{} - for k, v := range value { - m[k] = v - } - return setNestedFieldNoCopy(obj, m, fields...) -} - -// SetNestedMap sets the map[string]interface{} value of a nested field. -// Returns an error if value cannot be set because one of the nesting levels is not a map[string]interface{}. -func SetNestedMap(obj map[string]interface{}, value map[string]interface{}, fields ...string) error { - return SetNestedField(obj, value, fields...) -} - -// RemoveNestedField removes the nested field from the obj. -func RemoveNestedField(obj map[string]interface{}, fields ...string) { - m := obj - for _, field := range fields[:len(fields)-1] { - if x, ok := m[field].(map[string]interface{}); ok { - m = x - } else { - return - } - } - delete(m, fields[len(fields)-1]) -} - -func getNestedString(obj map[string]interface{}, fields ...string) string { - val, found, err := NestedString(obj, fields...) - if !found || err != nil { - return "" - } - return val -} - -func getNestedInt64(obj map[string]interface{}, fields ...string) int64 { - val, found, err := NestedInt64(obj, fields...) - if !found || err != nil { - return 0 - } - return val -} - -func getNestedInt64Pointer(obj map[string]interface{}, fields ...string) *int64 { - val, found, err := NestedInt64(obj, fields...) - if !found || err != nil { - return nil - } - return &val -} - -func jsonPath(fields []string) string { - return "." + strings.Join(fields, ".") -} - -func extractOwnerReference(v map[string]interface{}) metav1.OwnerReference { - // though this field is a *bool, but when decoded from JSON, it's - // unmarshalled as bool. - var controllerPtr *bool - if controller, found, err := NestedBool(v, "controller"); err == nil && found { - controllerPtr = &controller - } - var blockOwnerDeletionPtr *bool - if blockOwnerDeletion, found, err := NestedBool(v, "blockOwnerDeletion"); err == nil && found { - blockOwnerDeletionPtr = &blockOwnerDeletion - } - return metav1.OwnerReference{ - Kind: getNestedString(v, "kind"), - Name: getNestedString(v, "name"), - APIVersion: getNestedString(v, "apiVersion"), - UID: types.UID(getNestedString(v, "uid")), - Controller: controllerPtr, - BlockOwnerDeletion: blockOwnerDeletionPtr, - } -} - -// UnstructuredJSONScheme is capable of converting JSON data into the Unstructured -// type, which can be used for generic access to objects without a predefined scheme. -// TODO: move into serializer/json. -var UnstructuredJSONScheme runtime.Codec = unstructuredJSONScheme{} - -type unstructuredJSONScheme struct{} - -func (s unstructuredJSONScheme) Decode(data []byte, _ *schema.GroupVersionKind, obj runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - var err error - if obj != nil { - err = s.decodeInto(data, obj) - } else { - obj, err = s.decode(data) - } - - if err != nil { - return nil, nil, err - } - - gvk := obj.GetObjectKind().GroupVersionKind() - if len(gvk.Kind) == 0 { - return nil, &gvk, runtime.NewMissingKindErr(string(data)) - } - - return obj, &gvk, nil -} - -func (unstructuredJSONScheme) Encode(obj runtime.Object, w io.Writer) error { - switch t := obj.(type) { - case *Unstructured: - return json.NewEncoder(w).Encode(t.Object) - case *UnstructuredList: - items := make([]interface{}, 0, len(t.Items)) - for _, i := range t.Items { - items = append(items, i.Object) - } - listObj := make(map[string]interface{}, len(t.Object)+1) - for k, v := range t.Object { // Make a shallow copy - listObj[k] = v - } - listObj["items"] = items - return json.NewEncoder(w).Encode(listObj) - case *runtime.Unknown: - // TODO: Unstructured needs to deal with ContentType. - _, err := w.Write(t.Raw) - return err - default: - return json.NewEncoder(w).Encode(t) - } -} - -func (s unstructuredJSONScheme) decode(data []byte) (runtime.Object, error) { - type detector struct { - Items gojson.RawMessage - } - var det detector - if err := json.Unmarshal(data, &det); err != nil { - return nil, err - } - - if det.Items != nil { - list := &UnstructuredList{} - err := s.decodeToList(data, list) - return list, err - } - - // No Items field, so it wasn't a list. - unstruct := &Unstructured{} - err := s.decodeToUnstructured(data, unstruct) - return unstruct, err -} - -func (s unstructuredJSONScheme) decodeInto(data []byte, obj runtime.Object) error { - switch x := obj.(type) { - case *Unstructured: - return s.decodeToUnstructured(data, x) - case *UnstructuredList: - return s.decodeToList(data, x) - case *runtime.VersionedObjects: - o, err := s.decode(data) - if err == nil { - x.Objects = []runtime.Object{o} - } - return err - default: - return json.Unmarshal(data, x) - } -} - -func (unstructuredJSONScheme) decodeToUnstructured(data []byte, unstruct *Unstructured) error { - m := make(map[string]interface{}) - if err := json.Unmarshal(data, &m); err != nil { - return err - } - - unstruct.Object = m - - return nil -} - -func (s unstructuredJSONScheme) decodeToList(data []byte, list *UnstructuredList) error { - type decodeList struct { - Items []gojson.RawMessage - } - - var dList decodeList - if err := json.Unmarshal(data, &dList); err != nil { - return err - } - - if err := json.Unmarshal(data, &list.Object); err != nil { - return err - } - - // For typed lists, e.g., a PodList, API server doesn't set each item's - // APIVersion and Kind. We need to set it. - listAPIVersion := list.GetAPIVersion() - listKind := list.GetKind() - itemKind := strings.TrimSuffix(listKind, "List") - - delete(list.Object, "items") - list.Items = make([]Unstructured, 0, len(dList.Items)) - for _, i := range dList.Items { - unstruct := &Unstructured{} - if err := s.decodeToUnstructured([]byte(i), unstruct); err != nil { - return err - } - // This is hacky. Set the item's Kind and APIVersion to those inferred - // from the List. - if len(unstruct.GetKind()) == 0 && len(unstruct.GetAPIVersion()) == 0 { - unstruct.SetKind(itemKind) - unstruct.SetAPIVersion(listAPIVersion) - } - list.Items = append(list.Items, *unstruct) - } - return nil -} - -type JSONFallbackEncoder struct { - runtime.Encoder -} - -func (c JSONFallbackEncoder) Encode(obj runtime.Object, w io.Writer) error { - err := c.Encoder.Encode(obj, w) - if runtime.IsNotRegisteredError(err) { - switch obj.(type) { - case *Unstructured, *UnstructuredList: - return UnstructuredJSONScheme.Encode(obj, w) - } - } - return err -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers_test.go deleted file mode 100644 index b2978b6f9..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/helpers_test.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -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 unstructured - -import ( - "io/ioutil" - "sync" - "testing" - - "github.com/stretchr/testify/assert" -) - -// TestCodecOfUnstructuredList tests that there are no data races in Encode(). -// i.e. that it does not mutate the object being encoded. -func TestCodecOfUnstructuredList(t *testing.T) { - var wg sync.WaitGroup - concurrency := 10 - list := UnstructuredList{ - Object: map[string]interface{}{}, - } - wg.Add(concurrency) - for i := 0; i < concurrency; i++ { - go func() { - defer wg.Done() - assert.NoError(t, UnstructuredJSONScheme.Encode(&list, ioutil.Discard)) - }() - } - wg.Wait() -} - -func TestRemoveNestedField(t *testing.T) { - obj := map[string]interface{}{ - "x": map[string]interface{}{ - "y": 1, - "a": "foo", - }, - } - RemoveNestedField(obj, "x", "a") - assert.Len(t, obj["x"], 1) - RemoveNestedField(obj, "x", "y") - assert.Empty(t, obj["x"]) - RemoveNestedField(obj, "x") - assert.Empty(t, obj) - RemoveNestedField(obj, "x") // Remove of a non-existent field - assert.Empty(t, obj) -} - -func TestNestedFieldNoCopy(t *testing.T) { - target := map[string]interface{}{"foo": "bar"} - - obj := map[string]interface{}{ - "a": map[string]interface{}{ - "b": target, - "c": nil, - "d": []interface{}{"foo"}, - "e": []interface{}{ - map[string]interface{}{ - "f": "bar", - }, - }, - }, - } - - // case 1: field exists and is non-nil - res, exists, err := NestedFieldNoCopy(obj, "a", "b") - assert.True(t, exists) - assert.Nil(t, err) - assert.Equal(t, target, res) - target["foo"] = "baz" - assert.Equal(t, target["foo"], res.(map[string]interface{})["foo"], "result should be a reference to the expected item") - - // case 2: field exists and is nil - res, exists, err = NestedFieldNoCopy(obj, "a", "c") - assert.True(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) - - // case 3: error traversing obj - res, exists, err = NestedFieldNoCopy(obj, "a", "d", "foo") - assert.False(t, exists) - assert.NotNil(t, err) - assert.Nil(t, res) - - // case 4: field does not exist - res, exists, err = NestedFieldNoCopy(obj, "a", "g") - assert.False(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) - - // case 5: intermediate field does not exist - res, exists, err = NestedFieldNoCopy(obj, "a", "g", "f") - assert.False(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) - - // case 6: intermediate field is null - // (background: happens easily in YAML) - res, exists, err = NestedFieldNoCopy(obj, "a", "c", "f") - assert.False(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) - - // case 7: array/slice syntax is not supported - // (background: users may expect this to be supported) - res, exists, err = NestedFieldNoCopy(obj, "a", "e[0]") - assert.False(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) -} - -func TestNestedFieldCopy(t *testing.T) { - target := map[string]interface{}{"foo": "bar"} - - obj := map[string]interface{}{ - "a": map[string]interface{}{ - "b": target, - "c": nil, - "d": []interface{}{"foo"}, - }, - } - - // case 1: field exists and is non-nil - res, exists, err := NestedFieldCopy(obj, "a", "b") - assert.True(t, exists) - assert.Nil(t, err) - assert.Equal(t, target, res) - target["foo"] = "baz" - assert.NotEqual(t, target["foo"], res.(map[string]interface{})["foo"], "result should be a copy of the expected item") - - // case 2: field exists and is nil - res, exists, err = NestedFieldCopy(obj, "a", "c") - assert.True(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) - - // case 3: error traversing obj - res, exists, err = NestedFieldCopy(obj, "a", "d", "foo") - assert.False(t, exists) - assert.NotNil(t, err) - assert.Nil(t, res) - - // case 4: field does not exist - res, exists, err = NestedFieldCopy(obj, "a", "e") - assert.False(t, exists) - assert.Nil(t, err) - assert.Nil(t, res) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go deleted file mode 100644 index 8adfaf334..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go +++ /dev/null @@ -1,496 +0,0 @@ -/* -Copyright 2015 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 unstructured - -import ( - "bytes" - "errors" - "fmt" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" -) - -// Unstructured allows objects that do not have Golang structs registered to be manipulated -// generically. This can be used to deal with the API objects from a plug-in. Unstructured -// objects still have functioning TypeMeta features-- kind, version, etc. -// -// WARNING: This object has accessors for the v1 standard metadata. You *MUST NOT* use this -// type if you are dealing with objects that are not in the server meta v1 schema. -// -// TODO: make the serialization part of this type distinct from the field accessors. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +k8s:deepcopy-gen=true -type Unstructured struct { - // Object is a JSON compatible map with string, float, int, bool, []interface{}, or - // map[string]interface{} - // children. - Object map[string]interface{} -} - -var _ metav1.Object = &Unstructured{} -var _ runtime.Unstructured = &Unstructured{} -var _ metav1.ListInterface = &Unstructured{} - -func (obj *Unstructured) GetObjectKind() schema.ObjectKind { return obj } - -func (obj *Unstructured) IsList() bool { - field, ok := obj.Object["items"] - if !ok { - return false - } - _, ok = field.([]interface{}) - return ok -} -func (obj *Unstructured) ToList() (*UnstructuredList, error) { - if !obj.IsList() { - // return an empty list back - return &UnstructuredList{Object: obj.Object}, nil - } - - ret := &UnstructuredList{} - ret.Object = obj.Object - - err := obj.EachListItem(func(item runtime.Object) error { - castItem := item.(*Unstructured) - ret.Items = append(ret.Items, *castItem) - return nil - }) - if err != nil { - return nil, err - } - - return ret, nil -} - -func (obj *Unstructured) EachListItem(fn func(runtime.Object) error) error { - field, ok := obj.Object["items"] - if !ok { - return errors.New("content is not a list") - } - items, ok := field.([]interface{}) - if !ok { - return fmt.Errorf("content is not a list: %T", field) - } - for _, item := range items { - child, ok := item.(map[string]interface{}) - if !ok { - return fmt.Errorf("items member is not an object: %T", child) - } - if err := fn(&Unstructured{Object: child}); err != nil { - return err - } - } - return nil -} - -func (obj *Unstructured) UnstructuredContent() map[string]interface{} { - if obj.Object == nil { - return make(map[string]interface{}) - } - return obj.Object -} - -func (obj *Unstructured) SetUnstructuredContent(content map[string]interface{}) { - obj.Object = content -} - -// MarshalJSON ensures that the unstructured object produces proper -// JSON when passed to Go's standard JSON library. -func (u *Unstructured) MarshalJSON() ([]byte, error) { - var buf bytes.Buffer - err := UnstructuredJSONScheme.Encode(u, &buf) - return buf.Bytes(), err -} - -// UnmarshalJSON ensures that the unstructured object properly decodes -// JSON when passed to Go's standard JSON library. -func (u *Unstructured) UnmarshalJSON(b []byte) error { - _, _, err := UnstructuredJSONScheme.Decode(b, nil, u) - return err -} - -// NewEmptyInstance returns a new instance of the concrete type containing only kind/apiVersion and no other data. -// This should be called instead of reflect.New() for unstructured types because the go type alone does not preserve kind/apiVersion info. -func (in *Unstructured) NewEmptyInstance() runtime.Unstructured { - out := new(Unstructured) - if in != nil { - out.GetObjectKind().SetGroupVersionKind(in.GetObjectKind().GroupVersionKind()) - } - return out -} - -func (in *Unstructured) DeepCopy() *Unstructured { - if in == nil { - return nil - } - out := new(Unstructured) - *out = *in - out.Object = runtime.DeepCopyJSON(in.Object) - return out -} - -func (u *Unstructured) setNestedField(value interface{}, fields ...string) { - if u.Object == nil { - u.Object = make(map[string]interface{}) - } - SetNestedField(u.Object, value, fields...) -} - -func (u *Unstructured) setNestedStringSlice(value []string, fields ...string) { - if u.Object == nil { - u.Object = make(map[string]interface{}) - } - SetNestedStringSlice(u.Object, value, fields...) -} - -func (u *Unstructured) setNestedSlice(value []interface{}, fields ...string) { - if u.Object == nil { - u.Object = make(map[string]interface{}) - } - SetNestedSlice(u.Object, value, fields...) -} - -func (u *Unstructured) setNestedMap(value map[string]string, fields ...string) { - if u.Object == nil { - u.Object = make(map[string]interface{}) - } - SetNestedStringMap(u.Object, value, fields...) -} - -func (u *Unstructured) GetOwnerReferences() []metav1.OwnerReference { - field, found, err := NestedFieldNoCopy(u.Object, "metadata", "ownerReferences") - if !found || err != nil { - return nil - } - original, ok := field.([]interface{}) - if !ok { - return nil - } - ret := make([]metav1.OwnerReference, 0, len(original)) - for _, obj := range original { - o, ok := obj.(map[string]interface{}) - if !ok { - // expected map[string]interface{}, got something else - return nil - } - ret = append(ret, extractOwnerReference(o)) - } - return ret -} - -func (u *Unstructured) SetOwnerReferences(references []metav1.OwnerReference) { - if references == nil { - RemoveNestedField(u.Object, "metadata", "ownerReferences") - return - } - - newReferences := make([]interface{}, 0, len(references)) - for _, reference := range references { - out, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&reference) - if err != nil { - utilruntime.HandleError(fmt.Errorf("unable to convert Owner Reference: %v", err)) - continue - } - newReferences = append(newReferences, out) - } - u.setNestedField(newReferences, "metadata", "ownerReferences") -} - -func (u *Unstructured) GetAPIVersion() string { - return getNestedString(u.Object, "apiVersion") -} - -func (u *Unstructured) SetAPIVersion(version string) { - u.setNestedField(version, "apiVersion") -} - -func (u *Unstructured) GetKind() string { - return getNestedString(u.Object, "kind") -} - -func (u *Unstructured) SetKind(kind string) { - u.setNestedField(kind, "kind") -} - -func (u *Unstructured) GetNamespace() string { - return getNestedString(u.Object, "metadata", "namespace") -} - -func (u *Unstructured) SetNamespace(namespace string) { - if len(namespace) == 0 { - RemoveNestedField(u.Object, "metadata", "namespace") - return - } - u.setNestedField(namespace, "metadata", "namespace") -} - -func (u *Unstructured) GetName() string { - return getNestedString(u.Object, "metadata", "name") -} - -func (u *Unstructured) SetName(name string) { - if len(name) == 0 { - RemoveNestedField(u.Object, "metadata", "name") - return - } - u.setNestedField(name, "metadata", "name") -} - -func (u *Unstructured) GetGenerateName() string { - return getNestedString(u.Object, "metadata", "generateName") -} - -func (u *Unstructured) SetGenerateName(generateName string) { - if len(generateName) == 0 { - RemoveNestedField(u.Object, "metadata", "generateName") - return - } - u.setNestedField(generateName, "metadata", "generateName") -} - -func (u *Unstructured) GetUID() types.UID { - return types.UID(getNestedString(u.Object, "metadata", "uid")) -} - -func (u *Unstructured) SetUID(uid types.UID) { - if len(string(uid)) == 0 { - RemoveNestedField(u.Object, "metadata", "uid") - return - } - u.setNestedField(string(uid), "metadata", "uid") -} - -func (u *Unstructured) GetResourceVersion() string { - return getNestedString(u.Object, "metadata", "resourceVersion") -} - -func (u *Unstructured) SetResourceVersion(resourceVersion string) { - if len(resourceVersion) == 0 { - RemoveNestedField(u.Object, "metadata", "resourceVersion") - return - } - u.setNestedField(resourceVersion, "metadata", "resourceVersion") -} - -func (u *Unstructured) GetGeneration() int64 { - val, found, err := NestedInt64(u.Object, "metadata", "generation") - if !found || err != nil { - return 0 - } - return val -} - -func (u *Unstructured) SetGeneration(generation int64) { - if generation == 0 { - RemoveNestedField(u.Object, "metadata", "generation") - return - } - u.setNestedField(generation, "metadata", "generation") -} - -func (u *Unstructured) GetSelfLink() string { - return getNestedString(u.Object, "metadata", "selfLink") -} - -func (u *Unstructured) SetSelfLink(selfLink string) { - if len(selfLink) == 0 { - RemoveNestedField(u.Object, "metadata", "selfLink") - return - } - u.setNestedField(selfLink, "metadata", "selfLink") -} - -func (u *Unstructured) GetContinue() string { - return getNestedString(u.Object, "metadata", "continue") -} - -func (u *Unstructured) SetContinue(c string) { - if len(c) == 0 { - RemoveNestedField(u.Object, "metadata", "continue") - return - } - u.setNestedField(c, "metadata", "continue") -} - -func (u *Unstructured) GetRemainingItemCount() *int64 { - return getNestedInt64Pointer(u.Object, "metadata", "remainingItemCount") -} - -func (u *Unstructured) SetRemainingItemCount(c *int64) { - if c == nil { - RemoveNestedField(u.Object, "metadata", "remainingItemCount") - } else { - u.setNestedField(*c, "metadata", "remainingItemCount") - } -} - -func (u *Unstructured) GetCreationTimestamp() metav1.Time { - var timestamp metav1.Time - timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "creationTimestamp")) - return timestamp -} - -func (u *Unstructured) SetCreationTimestamp(timestamp metav1.Time) { - ts, _ := timestamp.MarshalQueryParameter() - if len(ts) == 0 || timestamp.Time.IsZero() { - RemoveNestedField(u.Object, "metadata", "creationTimestamp") - return - } - u.setNestedField(ts, "metadata", "creationTimestamp") -} - -func (u *Unstructured) GetDeletionTimestamp() *metav1.Time { - var timestamp metav1.Time - timestamp.UnmarshalQueryParameter(getNestedString(u.Object, "metadata", "deletionTimestamp")) - if timestamp.IsZero() { - return nil - } - return ×tamp -} - -func (u *Unstructured) SetDeletionTimestamp(timestamp *metav1.Time) { - if timestamp == nil { - RemoveNestedField(u.Object, "metadata", "deletionTimestamp") - return - } - ts, _ := timestamp.MarshalQueryParameter() - u.setNestedField(ts, "metadata", "deletionTimestamp") -} - -func (u *Unstructured) GetDeletionGracePeriodSeconds() *int64 { - val, found, err := NestedInt64(u.Object, "metadata", "deletionGracePeriodSeconds") - if !found || err != nil { - return nil - } - return &val -} - -func (u *Unstructured) SetDeletionGracePeriodSeconds(deletionGracePeriodSeconds *int64) { - if deletionGracePeriodSeconds == nil { - RemoveNestedField(u.Object, "metadata", "deletionGracePeriodSeconds") - return - } - u.setNestedField(*deletionGracePeriodSeconds, "metadata", "deletionGracePeriodSeconds") -} - -func (u *Unstructured) GetLabels() map[string]string { - m, _, _ := NestedStringMap(u.Object, "metadata", "labels") - return m -} - -func (u *Unstructured) SetLabels(labels map[string]string) { - if labels == nil { - RemoveNestedField(u.Object, "metadata", "labels") - return - } - u.setNestedMap(labels, "metadata", "labels") -} - -func (u *Unstructured) GetAnnotations() map[string]string { - m, _, _ := NestedStringMap(u.Object, "metadata", "annotations") - return m -} - -func (u *Unstructured) SetAnnotations(annotations map[string]string) { - if annotations == nil { - RemoveNestedField(u.Object, "metadata", "annotations") - return - } - u.setNestedMap(annotations, "metadata", "annotations") -} - -func (u *Unstructured) SetGroupVersionKind(gvk schema.GroupVersionKind) { - u.SetAPIVersion(gvk.GroupVersion().String()) - u.SetKind(gvk.Kind) -} - -func (u *Unstructured) GroupVersionKind() schema.GroupVersionKind { - gv, err := schema.ParseGroupVersion(u.GetAPIVersion()) - if err != nil { - return schema.GroupVersionKind{} - } - gvk := gv.WithKind(u.GetKind()) - return gvk -} - -func (u *Unstructured) GetFinalizers() []string { - val, _, _ := NestedStringSlice(u.Object, "metadata", "finalizers") - return val -} - -func (u *Unstructured) SetFinalizers(finalizers []string) { - if finalizers == nil { - RemoveNestedField(u.Object, "metadata", "finalizers") - return - } - u.setNestedStringSlice(finalizers, "metadata", "finalizers") -} - -func (u *Unstructured) GetClusterName() string { - return getNestedString(u.Object, "metadata", "clusterName") -} - -func (u *Unstructured) SetClusterName(clusterName string) { - if len(clusterName) == 0 { - RemoveNestedField(u.Object, "metadata", "clusterName") - return - } - u.setNestedField(clusterName, "metadata", "clusterName") -} - -func (u *Unstructured) GetManagedFields() []metav1.ManagedFieldsEntry { - items, found, err := NestedSlice(u.Object, "metadata", "managedFields") - if !found || err != nil { - return nil - } - managedFields := []metav1.ManagedFieldsEntry{} - for _, item := range items { - m, ok := item.(map[string]interface{}) - if !ok { - utilruntime.HandleError(fmt.Errorf("unable to retrieve managedFields for object, item %v is not a map", item)) - return nil - } - out := metav1.ManagedFieldsEntry{} - if err := runtime.DefaultUnstructuredConverter.FromUnstructured(m, &out); err != nil { - utilruntime.HandleError(fmt.Errorf("unable to retrieve managedFields for object: %v", err)) - return nil - } - managedFields = append(managedFields, out) - } - return managedFields -} - -func (u *Unstructured) SetManagedFields(managedFields []metav1.ManagedFieldsEntry) { - if managedFields == nil { - RemoveNestedField(u.Object, "metadata", "managedFields") - return - } - items := []interface{}{} - for _, managedFieldsEntry := range managedFields { - out, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&managedFieldsEntry) - if err != nil { - utilruntime.HandleError(fmt.Errorf("unable to set managedFields for object: %v", err)) - return - } - items = append(items, out) - } - u.setNestedSlice(items, "metadata", "managedFields") -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go deleted file mode 100644 index e5eaa75b3..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go +++ /dev/null @@ -1,210 +0,0 @@ -/* -Copyright 2015 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 unstructured - -import ( - "bytes" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -var _ runtime.Unstructured = &UnstructuredList{} -var _ metav1.ListInterface = &UnstructuredList{} - -// UnstructuredList allows lists that do not have Golang structs -// registered to be manipulated generically. This can be used to deal -// with the API lists from a plug-in. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +k8s:deepcopy-gen=true -type UnstructuredList struct { - Object map[string]interface{} - - // Items is a list of unstructured objects. - Items []Unstructured `json:"items"` -} - -func (u *UnstructuredList) GetObjectKind() schema.ObjectKind { return u } - -func (u *UnstructuredList) IsList() bool { return true } - -func (u *UnstructuredList) EachListItem(fn func(runtime.Object) error) error { - for i := range u.Items { - if err := fn(&u.Items[i]); err != nil { - return err - } - } - return nil -} - -// NewEmptyInstance returns a new instance of the concrete type containing only kind/apiVersion and no other data. -// This should be called instead of reflect.New() for unstructured types because the go type alone does not preserve kind/apiVersion info. -func (u *UnstructuredList) NewEmptyInstance() runtime.Unstructured { - out := new(UnstructuredList) - if u != nil { - out.SetGroupVersionKind(u.GroupVersionKind()) - } - return out -} - -// UnstructuredContent returns a map contain an overlay of the Items field onto -// the Object field. Items always overwrites overlay. -func (u *UnstructuredList) UnstructuredContent() map[string]interface{} { - out := make(map[string]interface{}, len(u.Object)+1) - - // shallow copy every property - for k, v := range u.Object { - out[k] = v - } - - items := make([]interface{}, len(u.Items)) - for i, item := range u.Items { - items[i] = item.UnstructuredContent() - } - out["items"] = items - return out -} - -// SetUnstructuredContent obeys the conventions of List and keeps Items and the items -// array in sync. If items is not an array of objects in the incoming map, then any -// mismatched item will be removed. -func (obj *UnstructuredList) SetUnstructuredContent(content map[string]interface{}) { - obj.Object = content - if content == nil { - obj.Items = nil - return - } - items, ok := obj.Object["items"].([]interface{}) - if !ok || items == nil { - items = []interface{}{} - } - unstructuredItems := make([]Unstructured, 0, len(items)) - newItems := make([]interface{}, 0, len(items)) - for _, item := range items { - o, ok := item.(map[string]interface{}) - if !ok { - continue - } - unstructuredItems = append(unstructuredItems, Unstructured{Object: o}) - newItems = append(newItems, o) - } - obj.Items = unstructuredItems - obj.Object["items"] = newItems -} - -func (u *UnstructuredList) DeepCopy() *UnstructuredList { - if u == nil { - return nil - } - out := new(UnstructuredList) - *out = *u - out.Object = runtime.DeepCopyJSON(u.Object) - out.Items = make([]Unstructured, len(u.Items)) - for i := range u.Items { - u.Items[i].DeepCopyInto(&out.Items[i]) - } - return out -} - -// MarshalJSON ensures that the unstructured list object produces proper -// JSON when passed to Go's standard JSON library. -func (u *UnstructuredList) MarshalJSON() ([]byte, error) { - var buf bytes.Buffer - err := UnstructuredJSONScheme.Encode(u, &buf) - return buf.Bytes(), err -} - -// UnmarshalJSON ensures that the unstructured list object properly -// decodes JSON when passed to Go's standard JSON library. -func (u *UnstructuredList) UnmarshalJSON(b []byte) error { - _, _, err := UnstructuredJSONScheme.Decode(b, nil, u) - return err -} - -func (u *UnstructuredList) GetAPIVersion() string { - return getNestedString(u.Object, "apiVersion") -} - -func (u *UnstructuredList) SetAPIVersion(version string) { - u.setNestedField(version, "apiVersion") -} - -func (u *UnstructuredList) GetKind() string { - return getNestedString(u.Object, "kind") -} - -func (u *UnstructuredList) SetKind(kind string) { - u.setNestedField(kind, "kind") -} - -func (u *UnstructuredList) GetResourceVersion() string { - return getNestedString(u.Object, "metadata", "resourceVersion") -} - -func (u *UnstructuredList) SetResourceVersion(version string) { - u.setNestedField(version, "metadata", "resourceVersion") -} - -func (u *UnstructuredList) GetSelfLink() string { - return getNestedString(u.Object, "metadata", "selfLink") -} - -func (u *UnstructuredList) SetSelfLink(selfLink string) { - u.setNestedField(selfLink, "metadata", "selfLink") -} - -func (u *UnstructuredList) GetContinue() string { - return getNestedString(u.Object, "metadata", "continue") -} - -func (u *UnstructuredList) SetContinue(c string) { - u.setNestedField(c, "metadata", "continue") -} - -func (u *UnstructuredList) GetRemainingItemCount() *int64 { - return getNestedInt64Pointer(u.Object, "metadata", "remainingItemCount") -} - -func (u *UnstructuredList) SetRemainingItemCount(c *int64) { - if c == nil { - RemoveNestedField(u.Object, "metadata", "remainingItemCount") - } else { - u.setNestedField(*c, "metadata", "remainingItemCount") - } -} - -func (u *UnstructuredList) SetGroupVersionKind(gvk schema.GroupVersionKind) { - u.SetAPIVersion(gvk.GroupVersion().String()) - u.SetKind(gvk.Kind) -} - -func (u *UnstructuredList) GroupVersionKind() schema.GroupVersionKind { - gv, err := schema.ParseGroupVersion(u.GetAPIVersion()) - if err != nil { - return schema.GroupVersionKind{} - } - gvk := gv.WithKind(u.GetKind()) - return gvk -} - -func (u *UnstructuredList) setNestedField(value interface{}, fields ...string) { - if u.Object == nil { - u.Object = make(map[string]interface{}) - } - SetNestedField(u.Object, value, fields...) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list_test.go deleted file mode 100644 index d473cc4f7..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list_test.go +++ /dev/null @@ -1,86 +0,0 @@ -/* -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 unstructured - -import ( - "testing" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func TestUnstructuredList(t *testing.T) { - list := &UnstructuredList{ - Object: map[string]interface{}{"kind": "List", "apiVersion": "v1"}, - Items: []Unstructured{ - {Object: map[string]interface{}{"kind": "Pod", "apiVersion": "v1", "metadata": map[string]interface{}{"name": "test"}}}, - }, - } - content := list.UnstructuredContent() - items := content["items"].([]interface{}) - require.Len(t, items, 1) - val, found, err := NestedFieldCopy(items[0].(map[string]interface{}), "metadata", "name") - require.True(t, found) - require.NoError(t, err) - assert.Equal(t, "test", val) -} - -func TestNilDeletionTimestamp(t *testing.T) { - var u Unstructured - del := u.GetDeletionTimestamp() - if del != nil { - t.Errorf("unexpected non-nil deletion timestamp: %v", del) - } - u.SetDeletionTimestamp(u.GetDeletionTimestamp()) - del = u.GetDeletionTimestamp() - if del != nil { - t.Errorf("unexpected non-nil deletion timestamp: %v", del) - } - _, ok := u.Object["metadata"] - assert.False(t, ok) - - now := metav1.Now() - u.SetDeletionTimestamp(&now) - assert.Equal(t, now.Unix(), u.GetDeletionTimestamp().Unix()) - u.SetDeletionTimestamp(nil) - metadata := u.Object["metadata"].(map[string]interface{}) - _, ok = metadata["deletionTimestamp"] - assert.False(t, ok) -} - -func TestEmptyCreationTimestampIsOmitted(t *testing.T) { - var u Unstructured - now := metav1.Now() - - // set an initial creationTimestamp and ensure the field exists - u.SetCreationTimestamp(now) - metadata := u.Object["metadata"].(map[string]interface{}) - creationTimestamp, exists := metadata["creationTimestamp"] - if !exists { - t.Fatalf("unexpected missing creationTimestamp") - } - - // set an empty timestamp and ensure the field no longer exists - u.SetCreationTimestamp(metav1.Time{}) - metadata = u.Object["metadata"].(map[string]interface{}) - creationTimestamp, exists = metadata["creationTimestamp"] - if exists { - t.Errorf("unexpected creation timestamp field: %q", creationTimestamp) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go deleted file mode 100644 index abedf3e84..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 unstructured_test - -import ( - "math/rand" - "reflect" - "testing" - - "github.com/stretchr/testify/assert" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - metafuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestNilUnstructuredContent(t *testing.T) { - var u unstructured.Unstructured - uCopy := u.DeepCopy() - content := u.UnstructuredContent() - expContent := make(map[string]interface{}) - assert.EqualValues(t, expContent, content) - assert.Equal(t, uCopy, &u) -} - -// TestUnstructuredMetadataRoundTrip checks that metadata accessors -// correctly set the metadata for unstructured objects. -// First, it fuzzes an empty ObjectMeta and sets this value as the metadata for an unstructured object. -// Next, it uses metadata accessor methods to set these fuzzed values to another unstructured object. -// Finally, it checks that both the unstructured objects are equal. -func TestUnstructuredMetadataRoundTrip(t *testing.T) { - scheme := runtime.NewScheme() - codecs := serializer.NewCodecFactory(scheme) - seed := rand.Int63() - fuzzer := fuzzer.FuzzerFor(metafuzzer.Funcs, rand.NewSource(seed), codecs) - - N := 1000 - for i := 0; i < N; i++ { - u := &unstructured.Unstructured{Object: map[string]interface{}{}} - uCopy := u.DeepCopy() - metadata := &metav1.ObjectMeta{} - fuzzer.Fuzz(metadata) - - if err := setObjectMeta(u, metadata); err != nil { - t.Fatalf("unexpected error setting fuzzed ObjectMeta: %v", err) - } - setObjectMetaUsingAccessors(u, uCopy) - - // TODO: remove this special casing when creationTimestamp becomes a pointer. - // Right now, creationTimestamp is a struct (metav1.Time) so omitempty holds no meaning for it. - // However, the current behaviour is to remove the field if it holds an empty struct. - // This special casing exists here because custom marshallers for metav1.Time marshal - // an empty value to "null", which gets converted to nil when converting to an unstructured map by "ToUnstructured". - if err := unstructured.SetNestedField(uCopy.UnstructuredContent(), nil, "metadata", "creationTimestamp"); err != nil { - t.Fatalf("unexpected error setting creationTimestamp as nil: %v", err) - } - - if !equality.Semantic.DeepEqual(u, uCopy) { - t.Errorf("diff: %v", diff.ObjectReflectDiff(u, uCopy)) - } - } -} - -// TestUnstructuredMetadataOmitempty checks that ObjectMeta omitempty -// semantics are enforced for unstructured objects. -// The fuzzing test above should catch these cases but this is here just to be safe. -// Example: the metadata.clusterName field has the omitempty json tag -// so if it is set to it's zero value (""), it should be removed from the metadata map. -func TestUnstructuredMetadataOmitempty(t *testing.T) { - scheme := runtime.NewScheme() - codecs := serializer.NewCodecFactory(scheme) - seed := rand.Int63() - fuzzer := fuzzer.FuzzerFor(metafuzzer.Funcs, rand.NewSource(seed), codecs) - - // fuzz to make sure we don't miss any function calls below - u := &unstructured.Unstructured{Object: map[string]interface{}{}} - metadata := &metav1.ObjectMeta{} - fuzzer.Fuzz(metadata) - if err := setObjectMeta(u, metadata); err != nil { - t.Fatalf("unexpected error setting fuzzed ObjectMeta: %v", err) - } - - // set zero values for all fields in metadata explicitly - // to check that omitempty fields having zero values are never set - u.SetName("") - u.SetGenerateName("") - u.SetNamespace("") - u.SetSelfLink("") - u.SetUID("") - u.SetResourceVersion("") - u.SetGeneration(0) - u.SetCreationTimestamp(metav1.Time{}) - u.SetDeletionTimestamp(nil) - u.SetDeletionGracePeriodSeconds(nil) - u.SetLabels(nil) - u.SetAnnotations(nil) - u.SetOwnerReferences(nil) - u.SetFinalizers(nil) - u.SetClusterName("") - u.SetManagedFields(nil) - - gotMetadata, _, err := unstructured.NestedFieldNoCopy(u.UnstructuredContent(), "metadata") - if err != nil { - t.Error(err) - } - emptyMetadata := make(map[string]interface{}) - - if !reflect.DeepEqual(gotMetadata, emptyMetadata) { - t.Errorf("expected %v, got %v", emptyMetadata, gotMetadata) - } -} - -func setObjectMeta(u *unstructured.Unstructured, objectMeta *metav1.ObjectMeta) error { - if objectMeta == nil { - unstructured.RemoveNestedField(u.UnstructuredContent(), "metadata") - return nil - } - metadata, err := runtime.DefaultUnstructuredConverter.ToUnstructured(objectMeta) - if err != nil { - return err - } - u.UnstructuredContent()["metadata"] = metadata - return nil -} - -func setObjectMetaUsingAccessors(u, uCopy *unstructured.Unstructured) { - uCopy.SetName(u.GetName()) - uCopy.SetGenerateName(u.GetGenerateName()) - uCopy.SetNamespace(u.GetNamespace()) - uCopy.SetSelfLink(u.GetSelfLink()) - uCopy.SetUID(u.GetUID()) - uCopy.SetResourceVersion(u.GetResourceVersion()) - uCopy.SetGeneration(u.GetGeneration()) - uCopy.SetCreationTimestamp(u.GetCreationTimestamp()) - uCopy.SetDeletionTimestamp(u.GetDeletionTimestamp()) - uCopy.SetDeletionGracePeriodSeconds(u.GetDeletionGracePeriodSeconds()) - uCopy.SetLabels(u.GetLabels()) - uCopy.SetAnnotations(u.GetAnnotations()) - uCopy.SetOwnerReferences(u.GetOwnerReferences()) - uCopy.SetFinalizers(u.GetFinalizers()) - uCopy.SetClusterName(u.GetClusterName()) - uCopy.SetManagedFields(u.GetManagedFields()) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme/scheme.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme/scheme.go deleted file mode 100644 index 7f24b1a45..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/unstructuredscheme/scheme.go +++ /dev/null @@ -1,133 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 unstructuredscheme - -import ( - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning" -) - -var ( - scheme = runtime.NewScheme() - codecs = serializer.NewCodecFactory(scheme) -) - -// NewUnstructuredNegotiatedSerializer returns a simple, negotiated serializer -func NewUnstructuredNegotiatedSerializer() runtime.NegotiatedSerializer { - return unstructuredNegotiatedSerializer{ - scheme: scheme, - typer: NewUnstructuredObjectTyper(), - creator: NewUnstructuredCreator(), - } -} - -type unstructuredNegotiatedSerializer struct { - scheme *runtime.Scheme - typer runtime.ObjectTyper - creator runtime.ObjectCreater -} - -func (s unstructuredNegotiatedSerializer) SupportedMediaTypes() []runtime.SerializerInfo { - return []runtime.SerializerInfo{ - { - MediaType: "application/json", - MediaTypeType: "application", - MediaTypeSubType: "json", - EncodesAsText: true, - Serializer: json.NewSerializer(json.DefaultMetaFactory, s.creator, s.typer, false), - PrettySerializer: json.NewSerializer(json.DefaultMetaFactory, s.creator, s.typer, true), - StreamSerializer: &runtime.StreamSerializerInfo{ - EncodesAsText: true, - Serializer: json.NewSerializer(json.DefaultMetaFactory, s.creator, s.typer, false), - Framer: json.Framer, - }, - }, - { - MediaType: "application/yaml", - MediaTypeType: "application", - MediaTypeSubType: "yaml", - EncodesAsText: true, - Serializer: json.NewYAMLSerializer(json.DefaultMetaFactory, s.creator, s.typer), - }, - } -} - -func (s unstructuredNegotiatedSerializer) EncoderForVersion(encoder runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { - return versioning.NewDefaultingCodecForScheme(s.scheme, encoder, nil, gv, nil) -} - -func (s unstructuredNegotiatedSerializer) DecoderToVersion(decoder runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { - return versioning.NewDefaultingCodecForScheme(s.scheme, nil, decoder, nil, gv) -} - -type unstructuredObjectTyper struct { -} - -// NewUnstructuredObjectTyper returns an object typer that can deal with unstructured things -func NewUnstructuredObjectTyper() runtime.ObjectTyper { - return unstructuredObjectTyper{} -} - -func (t unstructuredObjectTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) { - // Delegate for things other than Unstructured. - if _, ok := obj.(runtime.Unstructured); !ok { - return nil, false, fmt.Errorf("cannot type %T", obj) - } - gvk := obj.GetObjectKind().GroupVersionKind() - if len(gvk.Kind) == 0 { - return nil, false, runtime.NewMissingKindErr("object has no kind field ") - } - if len(gvk.Version) == 0 { - return nil, false, runtime.NewMissingVersionErr("object has no apiVersion field") - } - - return []schema.GroupVersionKind{obj.GetObjectKind().GroupVersionKind()}, false, nil -} - -func (t unstructuredObjectTyper) Recognizes(gvk schema.GroupVersionKind) bool { - return true -} - -type unstructuredCreator struct{} - -// NewUnstructuredCreator returns a simple object creator that always returns an unstructured -func NewUnstructuredCreator() runtime.ObjectCreater { - return unstructuredCreator{} -} - -func (c unstructuredCreator) New(kind schema.GroupVersionKind) (runtime.Object, error) { - ret := &unstructured.Unstructured{} - ret.SetGroupVersionKind(kind) - return ret, nil -} - -type unstructuredDefaulter struct { -} - -// NewUnstructuredDefaulter returns defaulter suitable for unstructured types that doesn't default anything -func NewUnstructuredDefaulter() runtime.ObjectDefaulter { - return unstructuredDefaulter{} -} - -func (d unstructuredDefaulter) Default(in runtime.Object) { -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/zz_generated.deepcopy.go deleted file mode 100644 index 9f63ff6fa..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured/zz_generated.deepcopy.go +++ /dev/null @@ -1,55 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package unstructured - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Unstructured) DeepCopyInto(out *Unstructured) { - clone := in.DeepCopy() - *out = *clone - return -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Unstructured) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UnstructuredList) DeepCopyInto(out *UnstructuredList) { - clone := in.DeepCopy() - *out = *clone - return -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UnstructuredList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation.go deleted file mode 100644 index a7758a3c3..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Copyright 2015 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 validation - -import ( - "fmt" - "unicode" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -func ValidateLabelSelector(ps *metav1.LabelSelector, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - if ps == nil { - return allErrs - } - allErrs = append(allErrs, ValidateLabels(ps.MatchLabels, fldPath.Child("matchLabels"))...) - for i, expr := range ps.MatchExpressions { - allErrs = append(allErrs, ValidateLabelSelectorRequirement(expr, fldPath.Child("matchExpressions").Index(i))...) - } - return allErrs -} - -func ValidateLabelSelectorRequirement(sr metav1.LabelSelectorRequirement, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - switch sr.Operator { - case metav1.LabelSelectorOpIn, metav1.LabelSelectorOpNotIn: - if len(sr.Values) == 0 { - allErrs = append(allErrs, field.Required(fldPath.Child("values"), "must be specified when `operator` is 'In' or 'NotIn'")) - } - case metav1.LabelSelectorOpExists, metav1.LabelSelectorOpDoesNotExist: - if len(sr.Values) > 0 { - allErrs = append(allErrs, field.Forbidden(fldPath.Child("values"), "may not be specified when `operator` is 'Exists' or 'DoesNotExist'")) - } - default: - allErrs = append(allErrs, field.Invalid(fldPath.Child("operator"), sr.Operator, "not a valid selector operator")) - } - allErrs = append(allErrs, ValidateLabelName(sr.Key, fldPath.Child("key"))...) - return allErrs -} - -// ValidateLabelName validates that the label name is correctly defined. -func ValidateLabelName(labelName string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - for _, msg := range validation.IsQualifiedName(labelName) { - allErrs = append(allErrs, field.Invalid(fldPath, labelName, msg)) - } - return allErrs -} - -// ValidateLabels validates that a set of labels are correctly defined. -func ValidateLabels(labels map[string]string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - for k, v := range labels { - allErrs = append(allErrs, ValidateLabelName(k, fldPath)...) - for _, msg := range validation.IsValidLabelValue(v) { - allErrs = append(allErrs, field.Invalid(fldPath, v, msg)) - } - } - return allErrs -} - -func ValidateDeleteOptions(options *metav1.DeleteOptions) field.ErrorList { - allErrs := field.ErrorList{} - if options.OrphanDependents != nil && options.PropagationPolicy != nil { - allErrs = append(allErrs, field.Invalid(field.NewPath("propagationPolicy"), options.PropagationPolicy, "orphanDependents and deletionPropagation cannot be both set")) - } - if options.PropagationPolicy != nil && - *options.PropagationPolicy != metav1.DeletePropagationForeground && - *options.PropagationPolicy != metav1.DeletePropagationBackground && - *options.PropagationPolicy != metav1.DeletePropagationOrphan { - allErrs = append(allErrs, field.NotSupported(field.NewPath("propagationPolicy"), options.PropagationPolicy, []string{string(metav1.DeletePropagationForeground), string(metav1.DeletePropagationBackground), string(metav1.DeletePropagationOrphan), "nil"})) - } - allErrs = append(allErrs, ValidateDryRun(field.NewPath("dryRun"), options.DryRun)...) - return allErrs -} - -func ValidateCreateOptions(options *metav1.CreateOptions) field.ErrorList { - return append( - ValidateFieldManager(options.FieldManager, field.NewPath("fieldManager")), - ValidateDryRun(field.NewPath("dryRun"), options.DryRun)..., - ) -} - -func ValidateUpdateOptions(options *metav1.UpdateOptions) field.ErrorList { - return append( - ValidateFieldManager(options.FieldManager, field.NewPath("fieldManager")), - ValidateDryRun(field.NewPath("dryRun"), options.DryRun)..., - ) -} - -func ValidatePatchOptions(options *metav1.PatchOptions, patchType types.PatchType) field.ErrorList { - allErrs := field.ErrorList{} - if patchType != types.ApplyPatchType { - if options.Force != nil { - allErrs = append(allErrs, field.Forbidden(field.NewPath("force"), "may not be specified for non-apply patch")) - } - } else { - if options.FieldManager == "" { - // This field is defaulted to "kubectl" by kubectl, but HAS TO be explicitly set by controllers. - allErrs = append(allErrs, field.Required(field.NewPath("fieldManager"), "is required for apply patch")) - } - } - allErrs = append(allErrs, ValidateFieldManager(options.FieldManager, field.NewPath("fieldManager"))...) - allErrs = append(allErrs, ValidateDryRun(field.NewPath("dryRun"), options.DryRun)...) - return allErrs -} - -var FieldManagerMaxLength = 128 - -// ValidateFieldManager valides that the fieldManager is the proper length and -// only has printable characters. -func ValidateFieldManager(fieldManager string, fldPath *field.Path) field.ErrorList { - allErrs := field.ErrorList{} - // the field can not be set as a `*string`, so a empty string ("") is - // considered as not set and is defaulted by the rest of the process - // (unless apply is used, in which case it is required). - if len(fieldManager) > FieldManagerMaxLength { - allErrs = append(allErrs, field.TooLong(fldPath, fieldManager, FieldManagerMaxLength)) - } - // Verify that all characters are printable. - for i, r := range fieldManager { - if !unicode.IsPrint(r) { - allErrs = append(allErrs, field.Invalid(fldPath, fieldManager, fmt.Sprintf("invalid character %#U (at position %d)", r, i))) - } - } - - return allErrs -} - -var allowedDryRunValues = sets.NewString(metav1.DryRunAll) - -// ValidateDryRun validates that a dryRun query param only contains allowed values. -func ValidateDryRun(fldPath *field.Path, dryRun []string) field.ErrorList { - allErrs := field.ErrorList{} - if !allowedDryRunValues.HasAll(dryRun...) { - allErrs = append(allErrs, field.NotSupported(fldPath, dryRun, allowedDryRunValues.List())) - } - return allErrs -} - -const UninitializedStatusUpdateErrorMsg string = `must not update status when the object is uninitialized` - -// ValidateTableOptions returns any invalid flags on TableOptions. -func ValidateTableOptions(opts *metav1.TableOptions) field.ErrorList { - var allErrs field.ErrorList - switch opts.IncludeObject { - case metav1.IncludeMetadata, metav1.IncludeNone, metav1.IncludeObject, "": - default: - allErrs = append(allErrs, field.Invalid(field.NewPath("includeObject"), opts.IncludeObject, "must be 'Metadata', 'Object', 'None', or empty")) - } - return allErrs -} - -func ValidateManagedFields(fieldsList []metav1.ManagedFieldsEntry, fldPath *field.Path) field.ErrorList { - var allErrs field.ErrorList - for _, fields := range fieldsList { - switch fields.Operation { - case metav1.ManagedFieldsOperationApply, metav1.ManagedFieldsOperationUpdate: - default: - allErrs = append(allErrs, field.Invalid(fldPath.Child("operation"), fields.Operation, "must be `Apply` or `Update`")) - } - if fields.FieldsType != "FieldsV1" { - allErrs = append(allErrs, field.Invalid(fldPath.Child("fieldsType"), fields.FieldsType, "must be `FieldsV1`")) - } - } - return allErrs -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation_test.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation_test.go deleted file mode 100644 index 27313b774..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/validation/validation_test.go +++ /dev/null @@ -1,295 +0,0 @@ -/* -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 validation - -import ( - "fmt" - "strings" - "testing" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -func TestValidateLabels(t *testing.T) { - successCases := []map[string]string{ - {"simple": "bar"}, - {"now-with-dashes": "bar"}, - {"1-starts-with-num": "bar"}, - {"1234": "bar"}, - {"simple/simple": "bar"}, - {"now-with-dashes/simple": "bar"}, - {"now-with-dashes/now-with-dashes": "bar"}, - {"now.with.dots/simple": "bar"}, - {"now-with.dashes-and.dots/simple": "bar"}, - {"1-num.2-num/3-num": "bar"}, - {"1234/5678": "bar"}, - {"1.2.3.4/5678": "bar"}, - {"UpperCaseAreOK123": "bar"}, - {"goodvalue": "123_-.BaR"}, - } - for i := range successCases { - errs := ValidateLabels(successCases[i], field.NewPath("field")) - if len(errs) != 0 { - t.Errorf("case[%d] expected success, got %#v", i, errs) - } - } - - namePartErrMsg := "name part must consist of" - nameErrMsg := "a qualified name must consist of" - labelErrMsg := "a valid label must be an empty string or consist of" - maxLengthErrMsg := "must be no more than" - - labelNameErrorCases := []struct { - labels map[string]string - expect string - }{ - {map[string]string{"nospecialchars^=@": "bar"}, namePartErrMsg}, - {map[string]string{"cantendwithadash-": "bar"}, namePartErrMsg}, - {map[string]string{"only/one/slash": "bar"}, nameErrMsg}, - {map[string]string{strings.Repeat("a", 254): "bar"}, maxLengthErrMsg}, - } - for i := range labelNameErrorCases { - errs := ValidateLabels(labelNameErrorCases[i].labels, field.NewPath("field")) - if len(errs) != 1 { - t.Errorf("case[%d]: expected failure", i) - } else { - if !strings.Contains(errs[0].Detail, labelNameErrorCases[i].expect) { - t.Errorf("case[%d]: error details do not include %q: %q", i, labelNameErrorCases[i].expect, errs[0].Detail) - } - } - } - - labelValueErrorCases := []struct { - labels map[string]string - expect string - }{ - {map[string]string{"toolongvalue": strings.Repeat("a", 64)}, maxLengthErrMsg}, - {map[string]string{"backslashesinvalue": "some\\bad\\value"}, labelErrMsg}, - {map[string]string{"nocommasallowed": "bad,value"}, labelErrMsg}, - {map[string]string{"strangecharsinvalue": "?#$notsogood"}, labelErrMsg}, - } - for i := range labelValueErrorCases { - errs := ValidateLabels(labelValueErrorCases[i].labels, field.NewPath("field")) - if len(errs) != 1 { - t.Errorf("case[%d]: expected failure", i) - } else { - if !strings.Contains(errs[0].Detail, labelValueErrorCases[i].expect) { - t.Errorf("case[%d]: error details do not include %q: %q", i, labelValueErrorCases[i].expect, errs[0].Detail) - } - } - } -} - -func TestValidDryRun(t *testing.T) { - tests := [][]string{ - {}, - {"All"}, - {"All", "All"}, - } - - for _, test := range tests { - t.Run(fmt.Sprintf("%v", test), func(t *testing.T) { - if errs := ValidateDryRun(field.NewPath("dryRun"), test); len(errs) != 0 { - t.Errorf("%v should be a valid dry-run value: %v", test, errs) - } - }) - } -} - -func TestInvalidDryRun(t *testing.T) { - tests := [][]string{ - {"False"}, - {"All", "False"}, - } - - for _, test := range tests { - t.Run(fmt.Sprintf("%v", test), func(t *testing.T) { - if len(ValidateDryRun(field.NewPath("dryRun"), test)) == 0 { - t.Errorf("%v shouldn't be a valid dry-run value", test) - } - }) - } - -} - -func boolPtr(b bool) *bool { - return &b -} - -func TestValidPatchOptions(t *testing.T) { - tests := []struct { - opts metav1.PatchOptions - patchType types.PatchType - }{ - { - opts: metav1.PatchOptions{ - Force: boolPtr(true), - FieldManager: "kubectl", - }, - patchType: types.ApplyPatchType, - }, - { - opts: metav1.PatchOptions{ - FieldManager: "kubectl", - }, - patchType: types.ApplyPatchType, - }, - { - opts: metav1.PatchOptions{}, - patchType: types.MergePatchType, - }, - { - opts: metav1.PatchOptions{ - FieldManager: "patcher", - }, - patchType: types.MergePatchType, - }, - } - - for _, test := range tests { - t.Run(fmt.Sprintf("%v", test.opts), func(t *testing.T) { - errs := ValidatePatchOptions(&test.opts, test.patchType) - if len(errs) != 0 { - t.Fatalf("Expected no failures, got: %v", errs) - } - }) - } -} - -func TestInvalidPatchOptions(t *testing.T) { - tests := []struct { - opts metav1.PatchOptions - patchType types.PatchType - }{ - // missing manager - { - opts: metav1.PatchOptions{}, - patchType: types.ApplyPatchType, - }, - // force on non-apply - { - opts: metav1.PatchOptions{ - Force: boolPtr(true), - }, - patchType: types.MergePatchType, - }, - // manager and force on non-apply - { - opts: metav1.PatchOptions{ - FieldManager: "kubectl", - Force: boolPtr(false), - }, - patchType: types.MergePatchType, - }, - } - - for _, test := range tests { - t.Run(fmt.Sprintf("%v", test.opts), func(t *testing.T) { - errs := ValidatePatchOptions(&test.opts, test.patchType) - if len(errs) == 0 { - t.Fatal("Expected failures, got none.") - } - }) - } -} - -func TestValidateFieldManagerValid(t *testing.T) { - tests := []string{ - "filedManager", - "你好", // Hello - "🍔", - } - - for _, test := range tests { - t.Run(test, func(t *testing.T) { - errs := ValidateFieldManager(test, field.NewPath("fieldManager")) - if len(errs) != 0 { - t.Errorf("Validation failed: %v", errs) - } - }) - } -} - -func TestValidateFieldManagerInvalid(t *testing.T) { - tests := []string{ - "field\nmanager", // Contains invalid character \n - "fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", // Has 129 chars - } - - for _, test := range tests { - t.Run(test, func(t *testing.T) { - errs := ValidateFieldManager(test, field.NewPath("fieldManager")) - if len(errs) == 0 { - t.Errorf("Validation should have failed") - } - }) - } -} - -func TestValidateMangedFieldsInvalid(t *testing.T) { - tests := []metav1.ManagedFieldsEntry{ - { - Operation: metav1.ManagedFieldsOperationUpdate, - // FieldsType is missing - }, - { - Operation: metav1.ManagedFieldsOperationUpdate, - FieldsType: "RandomVersion", - }, - { - Operation: "RandomOperation", - FieldsType: "FieldsV1", - }, - { - // Operation is missing - FieldsType: "FieldsV1", - }, - } - - for _, test := range tests { - t.Run(fmt.Sprintf("%#v", test), func(t *testing.T) { - errs := ValidateManagedFields([]metav1.ManagedFieldsEntry{test}, field.NewPath("managedFields")) - if len(errs) == 0 { - t.Errorf("Validation should have failed") - } - }) - } -} - -func TestValidateMangedFieldsValid(t *testing.T) { - tests := []metav1.ManagedFieldsEntry{ - { - Operation: metav1.ManagedFieldsOperationUpdate, - FieldsType: "FieldsV1", - }, - { - Operation: metav1.ManagedFieldsOperationApply, - FieldsType: "FieldsV1", - }, - } - - for _, test := range tests { - t.Run(fmt.Sprintf("%#v", test), func(t *testing.T) { - err := ValidateManagedFields([]metav1.ManagedFieldsEntry{test}, field.NewPath("managedFields")) - if err != nil { - t.Errorf("Validation failed: %v", err) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/watch.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/watch.go deleted file mode 100644 index beab63aad..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/watch.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2015 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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/watch" -) - -// Event represents a single event to a watched resource. -// -// +protobuf=true -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type WatchEvent struct { - Type string `json:"type" protobuf:"bytes,1,opt,name=type"` - - // Object is: - // * If Type is Added or Modified: the new state of the object. - // * If Type is Deleted: the state of the object immediately before deletion. - // * If Type is Error: *Status is recommended; other types may make sense - // depending on context. - Object runtime.RawExtension `json:"object" protobuf:"bytes,2,opt,name=object"` -} - -func Convert_watch_Event_To_v1_WatchEvent(in *watch.Event, out *WatchEvent, s conversion.Scope) error { - out.Type = string(in.Type) - switch t := in.Object.(type) { - case *runtime.Unknown: - // TODO: handle other fields on Unknown and detect type - out.Object.Raw = t.Raw - case nil: - default: - out.Object.Object = in.Object - } - return nil -} - -func Convert_v1_InternalEvent_To_v1_WatchEvent(in *InternalEvent, out *WatchEvent, s conversion.Scope) error { - return Convert_watch_Event_To_v1_WatchEvent((*watch.Event)(in), out, s) -} - -func Convert_v1_WatchEvent_To_watch_Event(in *WatchEvent, out *watch.Event, s conversion.Scope) error { - out.Type = watch.EventType(in.Type) - if in.Object.Object != nil { - out.Object = in.Object.Object - } else if in.Object.Raw != nil { - // TODO: handle other fields on Unknown and detect type - out.Object = &runtime.Unknown{ - Raw: in.Object.Raw, - ContentType: runtime.ContentTypeJSON, - } - } - return nil -} - -func Convert_v1_WatchEvent_To_v1_InternalEvent(in *WatchEvent, out *InternalEvent, s conversion.Scope) error { - return Convert_v1_WatchEvent_To_watch_Event(in, (*watch.Event)(out), s) -} - -// InternalEvent makes watch.Event versioned -// +protobuf=false -type InternalEvent watch.Event - -func (e *InternalEvent) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } -func (e *WatchEvent) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } -func (e *InternalEvent) DeepCopyObject() runtime.Object { - if c := e.DeepCopy(); c != nil { - return c - } else { - return nil - } -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go deleted file mode 100644 index 2a794abe6..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,1173 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - types "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *APIGroup) DeepCopyInto(out *APIGroup) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]GroupVersionForDiscovery, len(*in)) - copy(*out, *in) - } - out.PreferredVersion = in.PreferredVersion - if in.ServerAddressByClientCIDRs != nil { - in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs - *out = make([]ServerAddressByClientCIDR, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroup. -func (in *APIGroup) DeepCopy() *APIGroup { - if in == nil { - return nil - } - out := new(APIGroup) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *APIGroup) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *APIGroupList) DeepCopyInto(out *APIGroupList) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]APIGroup, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupList. -func (in *APIGroupList) DeepCopy() *APIGroupList { - if in == nil { - return nil - } - out := new(APIGroupList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *APIGroupList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *APIResource) DeepCopyInto(out *APIResource) { - *out = *in - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make(Verbs, len(*in)) - copy(*out, *in) - } - if in.ShortNames != nil { - in, out := &in.ShortNames, &out.ShortNames - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Categories != nil { - in, out := &in.Categories, &out.Categories - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResource. -func (in *APIResource) DeepCopy() *APIResource { - if in == nil { - return nil - } - out := new(APIResource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *APIResourceList) DeepCopyInto(out *APIResourceList) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.APIResources != nil { - in, out := &in.APIResources, &out.APIResources - *out = make([]APIResource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceList. -func (in *APIResourceList) DeepCopy() *APIResourceList { - if in == nil { - return nil - } - out := new(APIResourceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *APIResourceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *APIVersions) DeepCopyInto(out *APIVersions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ServerAddressByClientCIDRs != nil { - in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs - *out = make([]ServerAddressByClientCIDR, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersions. -func (in *APIVersions) DeepCopy() *APIVersions { - if in == nil { - return nil - } - out := new(APIVersions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *APIVersions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CreateOptions) DeepCopyInto(out *CreateOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.DryRun != nil { - in, out := &in.DryRun, &out.DryRun - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateOptions. -func (in *CreateOptions) DeepCopy() *CreateOptions { - if in == nil { - return nil - } - out := new(CreateOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CreateOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DeleteOptions) DeepCopyInto(out *DeleteOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.GracePeriodSeconds != nil { - in, out := &in.GracePeriodSeconds, &out.GracePeriodSeconds - *out = new(int64) - **out = **in - } - if in.Preconditions != nil { - in, out := &in.Preconditions, &out.Preconditions - *out = new(Preconditions) - (*in).DeepCopyInto(*out) - } - if in.OrphanDependents != nil { - in, out := &in.OrphanDependents, &out.OrphanDependents - *out = new(bool) - **out = **in - } - if in.PropagationPolicy != nil { - in, out := &in.PropagationPolicy, &out.PropagationPolicy - *out = new(DeletionPropagation) - **out = **in - } - if in.DryRun != nil { - in, out := &in.DryRun, &out.DryRun - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteOptions. -func (in *DeleteOptions) DeepCopy() *DeleteOptions { - if in == nil { - return nil - } - out := new(DeleteOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DeleteOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Duration) DeepCopyInto(out *Duration) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Duration. -func (in *Duration) DeepCopy() *Duration { - if in == nil { - return nil - } - out := new(Duration) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExportOptions) DeepCopyInto(out *ExportOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExportOptions. -func (in *ExportOptions) DeepCopy() *ExportOptions { - if in == nil { - return nil - } - out := new(ExportOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExportOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FieldsV1) DeepCopyInto(out *FieldsV1) { - *out = *in - if in.Raw != nil { - in, out := &in.Raw, &out.Raw - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldsV1. -func (in *FieldsV1) DeepCopy() *FieldsV1 { - if in == nil { - return nil - } - out := new(FieldsV1) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GetOptions) DeepCopyInto(out *GetOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetOptions. -func (in *GetOptions) DeepCopy() *GetOptions { - if in == nil { - return nil - } - out := new(GetOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *GetOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupKind) DeepCopyInto(out *GroupKind) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupKind. -func (in *GroupKind) DeepCopy() *GroupKind { - if in == nil { - return nil - } - out := new(GroupKind) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupResource) DeepCopyInto(out *GroupResource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResource. -func (in *GroupResource) DeepCopy() *GroupResource { - if in == nil { - return nil - } - out := new(GroupResource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupVersion) DeepCopyInto(out *GroupVersion) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersion. -func (in *GroupVersion) DeepCopy() *GroupVersion { - if in == nil { - return nil - } - out := new(GroupVersion) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupVersionForDiscovery) DeepCopyInto(out *GroupVersionForDiscovery) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionForDiscovery. -func (in *GroupVersionForDiscovery) DeepCopy() *GroupVersionForDiscovery { - if in == nil { - return nil - } - out := new(GroupVersionForDiscovery) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupVersionKind) DeepCopyInto(out *GroupVersionKind) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionKind. -func (in *GroupVersionKind) DeepCopy() *GroupVersionKind { - if in == nil { - return nil - } - out := new(GroupVersionKind) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionResource. -func (in *GroupVersionResource) DeepCopy() *GroupVersionResource { - if in == nil { - return nil - } - out := new(GroupVersionResource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InternalEvent) DeepCopyInto(out *InternalEvent) { - *out = *in - if in.Object != nil { - out.Object = in.Object.DeepCopyObject() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalEvent. -func (in *InternalEvent) DeepCopy() *InternalEvent { - if in == nil { - return nil - } - out := new(InternalEvent) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LabelSelector) DeepCopyInto(out *LabelSelector) { - *out = *in - if in.MatchLabels != nil { - in, out := &in.MatchLabels, &out.MatchLabels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.MatchExpressions != nil { - in, out := &in.MatchExpressions, &out.MatchExpressions - *out = make([]LabelSelectorRequirement, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector. -func (in *LabelSelector) DeepCopy() *LabelSelector { - if in == nil { - return nil - } - out := new(LabelSelector) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LabelSelectorRequirement) DeepCopyInto(out *LabelSelectorRequirement) { - *out = *in - if in.Values != nil { - in, out := &in.Values, &out.Values - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorRequirement. -func (in *LabelSelectorRequirement) DeepCopy() *LabelSelectorRequirement { - if in == nil { - return nil - } - out := new(LabelSelectorRequirement) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *List) DeepCopyInto(out *List) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.RawExtension, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List. -func (in *List) DeepCopy() *List { - if in == nil { - return nil - } - out := new(List) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *List) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ListMeta) DeepCopyInto(out *ListMeta) { - *out = *in - if in.RemainingItemCount != nil { - in, out := &in.RemainingItemCount, &out.RemainingItemCount - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListMeta. -func (in *ListMeta) DeepCopy() *ListMeta { - if in == nil { - return nil - } - out := new(ListMeta) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ListOptions) DeepCopyInto(out *ListOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.TimeoutSeconds != nil { - in, out := &in.TimeoutSeconds, &out.TimeoutSeconds - *out = new(int64) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListOptions. -func (in *ListOptions) DeepCopy() *ListOptions { - if in == nil { - return nil - } - out := new(ListOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ListOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ManagedFieldsEntry) DeepCopyInto(out *ManagedFieldsEntry) { - *out = *in - if in.Time != nil { - in, out := &in.Time, &out.Time - *out = (*in).DeepCopy() - } - if in.FieldsV1 != nil { - in, out := &in.FieldsV1, &out.FieldsV1 - *out = new(FieldsV1) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFieldsEntry. -func (in *ManagedFieldsEntry) DeepCopy() *ManagedFieldsEntry { - if in == nil { - return nil - } - out := new(ManagedFieldsEntry) - in.DeepCopyInto(out) - return out -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroTime. -func (in *MicroTime) DeepCopy() *MicroTime { - if in == nil { - return nil - } - out := new(MicroTime) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta) { - *out = *in - in.CreationTimestamp.DeepCopyInto(&out.CreationTimestamp) - if in.DeletionTimestamp != nil { - in, out := &in.DeletionTimestamp, &out.DeletionTimestamp - *out = (*in).DeepCopy() - } - if in.DeletionGracePeriodSeconds != nil { - in, out := &in.DeletionGracePeriodSeconds, &out.DeletionGracePeriodSeconds - *out = new(int64) - **out = **in - } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.OwnerReferences != nil { - in, out := &in.OwnerReferences, &out.OwnerReferences - *out = make([]OwnerReference, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Finalizers != nil { - in, out := &in.Finalizers, &out.Finalizers - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ManagedFields != nil { - in, out := &in.ManagedFields, &out.ManagedFields - *out = make([]ManagedFieldsEntry, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta. -func (in *ObjectMeta) DeepCopy() *ObjectMeta { - if in == nil { - return nil - } - out := new(ObjectMeta) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnerReference) DeepCopyInto(out *OwnerReference) { - *out = *in - if in.Controller != nil { - in, out := &in.Controller, &out.Controller - *out = new(bool) - **out = **in - } - if in.BlockOwnerDeletion != nil { - in, out := &in.BlockOwnerDeletion, &out.BlockOwnerDeletion - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerReference. -func (in *OwnerReference) DeepCopy() *OwnerReference { - if in == nil { - return nil - } - out := new(OwnerReference) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PartialObjectMetadata) DeepCopyInto(out *PartialObjectMetadata) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMetadata. -func (in *PartialObjectMetadata) DeepCopy() *PartialObjectMetadata { - if in == nil { - return nil - } - out := new(PartialObjectMetadata) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PartialObjectMetadata) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PartialObjectMetadataList) DeepCopyInto(out *PartialObjectMetadataList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PartialObjectMetadata, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMetadataList. -func (in *PartialObjectMetadataList) DeepCopy() *PartialObjectMetadataList { - if in == nil { - return nil - } - out := new(PartialObjectMetadataList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PartialObjectMetadataList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Patch) DeepCopyInto(out *Patch) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Patch. -func (in *Patch) DeepCopy() *Patch { - if in == nil { - return nil - } - out := new(Patch) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PatchOptions) DeepCopyInto(out *PatchOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.DryRun != nil { - in, out := &in.DryRun, &out.DryRun - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Force != nil { - in, out := &in.Force, &out.Force - *out = new(bool) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchOptions. -func (in *PatchOptions) DeepCopy() *PatchOptions { - if in == nil { - return nil - } - out := new(PatchOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PatchOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Preconditions) DeepCopyInto(out *Preconditions) { - *out = *in - if in.UID != nil { - in, out := &in.UID, &out.UID - *out = new(types.UID) - **out = **in - } - if in.ResourceVersion != nil { - in, out := &in.ResourceVersion, &out.ResourceVersion - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preconditions. -func (in *Preconditions) DeepCopy() *Preconditions { - if in == nil { - return nil - } - out := new(Preconditions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RootPaths) DeepCopyInto(out *RootPaths) { - *out = *in - if in.Paths != nil { - in, out := &in.Paths, &out.Paths - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootPaths. -func (in *RootPaths) DeepCopy() *RootPaths { - if in == nil { - return nil - } - out := new(RootPaths) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerAddressByClientCIDR. -func (in *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR { - if in == nil { - return nil - } - out := new(ServerAddressByClientCIDR) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Status) DeepCopyInto(out *Status) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Details != nil { - in, out := &in.Details, &out.Details - *out = new(StatusDetails) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status. -func (in *Status) DeepCopy() *Status { - if in == nil { - return nil - } - out := new(Status) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Status) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatusCause) DeepCopyInto(out *StatusCause) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusCause. -func (in *StatusCause) DeepCopy() *StatusCause { - if in == nil { - return nil - } - out := new(StatusCause) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StatusDetails) DeepCopyInto(out *StatusDetails) { - *out = *in - if in.Causes != nil { - in, out := &in.Causes, &out.Causes - *out = make([]StatusCause, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusDetails. -func (in *StatusDetails) DeepCopy() *StatusDetails { - if in == nil { - return nil - } - out := new(StatusDetails) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Table) DeepCopyInto(out *Table) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.ColumnDefinitions != nil { - in, out := &in.ColumnDefinitions, &out.ColumnDefinitions - *out = make([]TableColumnDefinition, len(*in)) - copy(*out, *in) - } - if in.Rows != nil { - in, out := &in.Rows, &out.Rows - *out = make([]TableRow, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Table. -func (in *Table) DeepCopy() *Table { - if in == nil { - return nil - } - out := new(Table) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Table) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TableColumnDefinition) DeepCopyInto(out *TableColumnDefinition) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableColumnDefinition. -func (in *TableColumnDefinition) DeepCopy() *TableColumnDefinition { - if in == nil { - return nil - } - out := new(TableColumnDefinition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TableOptions) DeepCopyInto(out *TableOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableOptions. -func (in *TableOptions) DeepCopy() *TableOptions { - if in == nil { - return nil - } - out := new(TableOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TableOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TableRow) DeepCopyInto(out *TableRow) { - clone := in.DeepCopy() - *out = *clone - return -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TableRowCondition) DeepCopyInto(out *TableRowCondition) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableRowCondition. -func (in *TableRowCondition) DeepCopy() *TableRowCondition { - if in == nil { - return nil - } - out := new(TableRowCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Time. -func (in *Time) DeepCopy() *Time { - if in == nil { - return nil - } - out := new(Time) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Timestamp) DeepCopyInto(out *Timestamp) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timestamp. -func (in *Timestamp) DeepCopy() *Timestamp { - if in == nil { - return nil - } - out := new(Timestamp) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UpdateOptions) DeepCopyInto(out *UpdateOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.DryRun != nil { - in, out := &in.DryRun, &out.DryRun - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateOptions. -func (in *UpdateOptions) DeepCopy() *UpdateOptions { - if in == nil { - return nil - } - out := new(UpdateOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UpdateOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in Verbs) DeepCopyInto(out *Verbs) { - { - in := &in - *out = make(Verbs, len(*in)) - copy(*out, *in) - return - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Verbs. -func (in Verbs) DeepCopy() Verbs { - if in == nil { - return nil - } - out := new(Verbs) - in.DeepCopyInto(out) - return *out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WatchEvent) DeepCopyInto(out *WatchEvent) { - *out = *in - in.Object.DeepCopyInto(&out.Object) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchEvent. -func (in *WatchEvent) DeepCopy() *WatchEvent { - if in == nil { - return nil - } - out := new(WatchEvent) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *WatchEvent) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go deleted file mode 100644 index 48ac67238..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go +++ /dev/null @@ -1,32 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by defaulter-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// RegisterDefaults adds defaulters functions to the given scheme. -// Public to allow building arbitrary schemes. -// All generated defaulters are covering - they call all nested defaulters. -func RegisterDefaults(scheme *runtime.Scheme) error { - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/conversion.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/conversion.go deleted file mode 100644 index 4d5dda7de..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/conversion.go +++ /dev/null @@ -1,27 +0,0 @@ -/* -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 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - -// Convert_Slice_string_To_v1beta1_IncludeObjectPolicy allows converting a URL query parameter value -func Convert_Slice_string_To_v1beta1_IncludeObjectPolicy(input *[]string, out *IncludeObjectPolicy, s conversion.Scope) error { - if len(*input) > 0 { - *out = IncludeObjectPolicy((*input)[0]) - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/deepcopy.go deleted file mode 100644 index 2b7e8ca0b..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/deepcopy.go +++ /dev/null @@ -1,17 +0,0 @@ -/* -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 diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/doc.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/doc.go deleted file mode 100644 index 5513ba1ff..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -/* -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 -// +k8s:defaulter-gen=TypeMeta - -// +groupName=meta.k8s.io - -package v1beta1 // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1" diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go deleted file mode 100644 index 6e8c83730..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go +++ /dev/null @@ -1,442 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.proto - -package v1beta1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *PartialObjectMetadataList) Reset() { *m = PartialObjectMetadataList{} } -func (*PartialObjectMetadataList) ProtoMessage() {} -func (*PartialObjectMetadataList) Descriptor() ([]byte, []int) { - return fileDescriptor_90ec10f86b91f9a8, []int{0} -} -func (m *PartialObjectMetadataList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PartialObjectMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *PartialObjectMetadataList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartialObjectMetadataList.Merge(m, src) -} -func (m *PartialObjectMetadataList) XXX_Size() int { - return m.Size() -} -func (m *PartialObjectMetadataList) XXX_DiscardUnknown() { - xxx_messageInfo_PartialObjectMetadataList.DiscardUnknown(m) -} - -var xxx_messageInfo_PartialObjectMetadataList proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PartialObjectMetadataList)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1beta1.PartialObjectMetadataList") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.proto", fileDescriptor_90ec10f86b91f9a8) -} - -var fileDescriptor_90ec10f86b91f9a8 = []byte{ - // 321 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x41, 0x4b, 0xf3, 0x30, - 0x18, 0xc7, 0x9b, 0xf7, 0x65, 0x38, 0x3a, 0x04, 0xd9, 0x69, 0xee, 0x90, 0x0d, 0x4f, 0xf3, 0xb0, - 0x84, 0x0d, 0x11, 0xc1, 0xdb, 0x6e, 0x82, 0xa2, 0xec, 0x28, 0x1e, 0x4c, 0xbb, 0xc7, 0x2e, 0xd6, - 0x34, 0x25, 0x79, 0x3a, 0xf0, 0xe6, 0x47, 0xf0, 0x63, 0xed, 0xb8, 0xe3, 0x40, 0x18, 0xae, 0x7e, - 0x11, 0x49, 0x57, 0x45, 0xa6, 0x62, 0x6f, 0x79, 0xfe, 0xe1, 0xf7, 0xcb, 0x3f, 0x89, 0x3f, 0x8e, - 0x4f, 0x2c, 0x93, 0x9a, 0xc7, 0x59, 0x00, 0x26, 0x01, 0x04, 0xcb, 0x67, 0x90, 0x4c, 0xb4, 0xe1, - 0xe5, 0x86, 0x48, 0xa5, 0x12, 0xe1, 0x54, 0x26, 0x60, 0x1e, 0x79, 0x1a, 0x47, 0x2e, 0xb0, 0x5c, - 0x01, 0x0a, 0x3e, 0x1b, 0x04, 0x80, 0x62, 0xc0, 0x23, 0x48, 0xc0, 0x08, 0x84, 0x09, 0x4b, 0x8d, - 0x46, 0xdd, 0x3c, 0xdc, 0xa0, 0xec, 0x2b, 0xca, 0xd2, 0x38, 0x72, 0x81, 0x65, 0x0e, 0x65, 0x25, - 0xda, 0xee, 0x47, 0x12, 0xa7, 0x59, 0xc0, 0x42, 0xad, 0x78, 0xa4, 0x23, 0xcd, 0x0b, 0x43, 0x90, - 0xdd, 0x15, 0x53, 0x31, 0x14, 0xab, 0x8d, 0xb9, 0x7d, 0x54, 0xa5, 0xd4, 0x76, 0x9f, 0xf6, 0xaf, - 0x57, 0x31, 0x59, 0x82, 0x52, 0xc1, 0x37, 0xe0, 0xf8, 0x2f, 0xc0, 0x86, 0x53, 0x50, 0x62, 0x9b, - 0x3b, 0x78, 0x21, 0xfe, 0xfe, 0x95, 0x30, 0x28, 0xc5, 0xc3, 0x65, 0x70, 0x0f, 0x21, 0x5e, 0x00, - 0x8a, 0x89, 0x40, 0x71, 0x2e, 0x2d, 0x36, 0x6f, 0xfc, 0xba, 0x2a, 0xe7, 0xd6, 0xbf, 0x2e, 0xe9, - 0x35, 0x86, 0x8c, 0x55, 0x79, 0x29, 0xe6, 0x68, 0x67, 0x1a, 0xed, 0xcd, 0x57, 0x1d, 0x2f, 0x5f, - 0x75, 0xea, 0x1f, 0xc9, 0xf8, 0xd3, 0xd8, 0xbc, 0xf5, 0x6b, 0x12, 0x41, 0xd9, 0x16, 0xe9, 0xfe, - 0xef, 0x35, 0x86, 0xa7, 0xd5, 0xd4, 0x3f, 0xb6, 0x1d, 0xed, 0x96, 0xe7, 0xd4, 0xce, 0x9c, 0x71, - 0xbc, 0x11, 0x8f, 0xfa, 0xf3, 0x35, 0xf5, 0x16, 0x6b, 0xea, 0x2d, 0xd7, 0xd4, 0x7b, 0xca, 0x29, - 0x99, 0xe7, 0x94, 0x2c, 0x72, 0x4a, 0x96, 0x39, 0x25, 0xaf, 0x39, 0x25, 0xcf, 0x6f, 0xd4, 0xbb, - 0xde, 0x29, 0xbf, 0xf6, 0x3d, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x7e, 0x00, 0x08, 0x5a, 0x02, 0x00, - 0x00, -} - -func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PartialObjectMetadataList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *PartialObjectMetadataList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]PartialObjectMetadata{" - for _, f := range this.Items { - repeatedStringForItems += fmt.Sprintf("%v", f) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&PartialObjectMetadataList{`, - `Items:` + repeatedStringForItems + `,`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PartialObjectMetadataList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PartialObjectMetadataList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, v1.PartialObjectMetadata{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.proto b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.proto deleted file mode 100644 index 09724cf35..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/generated.proto +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.apis.meta.v1beta1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1beta1"; - -// PartialObjectMetadataList contains a list of objects containing only their metadata. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -message PartialObjectMetadataList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 2; - - // items contains each of the included items. - repeated k8s.io.apimachinery.pkg.apis.meta.v1.PartialObjectMetadata items = 1; -} - diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/register.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/register.go deleted file mode 100644 index 020e5e69e..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/register.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -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 ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name for this API. -const GroupName = "meta.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"} - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// scheme is the registry for the common types that adhere to the meta v1beta1 API spec. -var scheme = runtime.NewScheme() - -// ParameterCodec knows about query parameters used with the meta v1beta1 API spec. -var ParameterCodec = runtime.NewParameterCodec(scheme) - -func init() { - if err := AddMetaToScheme(scheme); err != nil { - panic(err) - } -} - -func AddMetaToScheme(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Table{}, - &TableOptions{}, - &PartialObjectMetadata{}, - &PartialObjectMetadataList{}, - ) - - return scheme.AddConversionFuncs( - Convert_Slice_string_To_v1beta1_IncludeObjectPolicy, - ) - - // register manually. This usually goes through the SchemeBuilder, which we cannot use here. - //scheme.AddGeneratedDeepCopyFuncs(GetGeneratedDeepCopyFuncs()...) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types.go deleted file mode 100644 index 001657c28..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types.go +++ /dev/null @@ -1,84 +0,0 @@ -/* -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 is alpha objects from meta that will be introduced. -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -// Table is a tabular representation of a set of API resources. The server transforms the -// object into a set of preferred columns for quickly reviewing the objects. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +protobuf=false -type Table = v1.Table - -// TableColumnDefinition contains information about a column returned in the Table. -// +protobuf=false -type TableColumnDefinition = v1.TableColumnDefinition - -// TableRow is an individual row in a table. -// +protobuf=false -type TableRow = v1.TableRow - -// TableRowCondition allows a row to be marked with additional information. -// +protobuf=false -type TableRowCondition = v1.TableRowCondition - -type RowConditionType = v1.RowConditionType - -type ConditionStatus = v1.ConditionStatus - -type IncludeObjectPolicy = v1.IncludeObjectPolicy - -// TableOptions are used when a Table is requested by the caller. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type TableOptions = v1.TableOptions - -// PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients -// to get access to a particular ObjectMeta schema without knowing the details of the version. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type PartialObjectMetadata = v1.PartialObjectMetadata - -// IMPORTANT: PartialObjectMetadataList has different protobuf field ids in v1beta1 than -// v1 because ListMeta was accidentally omitted prior to 1.15. Therefore this type must -// remain independent of v1.PartialObjectMetadataList to preserve mappings. - -// PartialObjectMetadataList contains a list of objects containing only their metadata. -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type PartialObjectMetadataList struct { - v1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - v1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"` - - // items contains each of the included items. - Items []v1.PartialObjectMetadata `json:"items" protobuf:"bytes,1,rep,name=items"` -} - -const ( - RowCompleted = v1.RowCompleted - - ConditionTrue = v1.ConditionTrue - ConditionFalse = v1.ConditionFalse - ConditionUnknown = v1.ConditionUnknown - - IncludeNone = v1.IncludeNone - IncludeMetadata = v1.IncludeMetadata - IncludeObject = v1.IncludeObject -) diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types_swagger_doc_generated.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types_swagger_doc_generated.go deleted file mode 100644 index ef7e7c1e9..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/types_swagger_doc_generated.go +++ /dev/null @@ -1,40 +0,0 @@ -/* -Copyright 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. DO NOT EDIT. -var map_PartialObjectMetadataList = map[string]string{ - "": "PartialObjectMetadataList contains a list of objects containing only their metadata.", - "metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "items": "items contains each of the included items.", -} - -func (PartialObjectMetadataList) SwaggerDoc() map[string]string { - return map_PartialObjectMetadataList -} - -// AUTO-GENERATED FUNCTIONS END HERE diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/validation/validation.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/validation/validation.go deleted file mode 100644 index f3a4f4ed9..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/validation/validation.go +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 validation - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - metav1beta1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation/field" -) - -// ValidateTableOptions returns any invalid flags on TableOptions. -func ValidateTableOptions(opts *metav1beta1.TableOptions) field.ErrorList { - var allErrs field.ErrorList - switch opts.IncludeObject { - case metav1.IncludeMetadata, metav1.IncludeNone, metav1.IncludeObject, "": - default: - allErrs = append(allErrs, field.Invalid(field.NewPath("includeObject"), opts.IncludeObject, "must be 'Metadata', 'Object', 'None', or empty")) - } - return allErrs -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index d3b8a991b..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,59 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1beta1 - -import ( - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PartialObjectMetadataList) DeepCopyInto(out *PartialObjectMetadataList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]v1.PartialObjectMetadata, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMetadataList. -func (in *PartialObjectMetadataList) DeepCopy() *PartialObjectMetadataList { - if in == nil { - return nil - } - out := new(PartialObjectMetadataList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PartialObjectMetadataList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.defaults.go b/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.defaults.go deleted file mode 100644 index 43ef350a5..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/meta/v1beta1/zz_generated.defaults.go +++ /dev/null @@ -1,32 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by defaulter-gen. DO NOT EDIT. - -package v1beta1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// RegisterDefaults adds defaulters functions to the given scheme. -// Public to allow building arbitrary schemes. -// All generated defaulters are covering - they call all nested defaulters. -func RegisterDefaults(scheme *runtime.Scheme) error { - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/doc.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/doc.go deleted file mode 100644 index 4d41312e5..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/doc.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -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 -// +groupName=testapigroup.apimachinery.k8s.io -// -// package testapigroup contains an testapigroup API used to demonstrate how to create api groups. Moreover, this is -// used within tests. -package testapigroup // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go deleted file mode 100644 index 4da25e078..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2015 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 fuzzer - -import ( - "fmt" - - "github.com/google/gofuzz" - - apitesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/fuzzer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - runtimeserializer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" -) - -// overrideMetaFuncs override some generic fuzzer funcs from sigs.k8s.io/kustomize/pseudo/k8s/apimachinery in order to have more realistic -// values in a Kubernetes context. -func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} { - return []interface{}{ - func(j *runtime.Object, c fuzz.Continue) { - // TODO: uncomment when round trip starts from a versioned object - if true { //c.RandBool() { - *j = &runtime.Unknown{ - // We do not set TypeMeta here because it is not carried through a round trip - Raw: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`), - ContentType: runtime.ContentTypeJSON, - } - } else { - types := []runtime.Object{&testapigroup.Carp{}} - t := types[c.Rand.Intn(len(types))] - c.Fuzz(t) - *j = t - } - }, - func(r *runtime.RawExtension, c fuzz.Continue) { - // Pick an arbitrary type and fuzz it - types := []runtime.Object{&testapigroup.Carp{}} - obj := types[c.Rand.Intn(len(types))] - c.Fuzz(obj) - - // Convert the object to raw bytes - bytes, err := runtime.Encode(apitesting.TestCodec(codecs, v1.SchemeGroupVersion), obj) - if err != nil { - panic(fmt.Sprintf("Failed to encode object: %v", err)) - } - - // Set the bytes field on the RawExtension - r.Raw = bytes - }, - } -} - -func testapigroupFuncs(codecs runtimeserializer.CodecFactory) []interface{} { - return []interface{}{ - func(s *testapigroup.CarpSpec, c fuzz.Continue) { - c.FuzzNoCustom(s) - // has a default value - ttl := int64(30) - if c.RandBool() { - ttl = int64(c.Uint32()) - } - s.TerminationGracePeriodSeconds = &ttl - - if s.SchedulerName == "" { - s.SchedulerName = "default-scheduler" - } - }, - func(j *testapigroup.CarpPhase, c fuzz.Continue) { - statuses := []testapigroup.CarpPhase{"Pending", "Running", "Succeeded", "Failed", "Unknown"} - *j = statuses[c.Rand.Intn(len(statuses))] - }, - func(rp *testapigroup.RestartPolicy, c fuzz.Continue) { - policies := []testapigroup.RestartPolicy{"Always", "Never", "OnFailure"} - *rp = policies[c.Rand.Intn(len(policies))] - }, - } -} - -// Funcs returns the fuzzer functions for the testapigroup. -var Funcs = fuzzer.MergeFuzzerFuncs( - overrideMetaFuncs, - testapigroupFuncs, -) diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/install.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/install.go deleted file mode 100644 index 9bed2f08c..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/install.go +++ /dev/null @@ -1,33 +0,0 @@ -/* -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 install installs the certificates API group, making it available as -// an option to all of the API encoding/decoding machinery. -package install - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" -) - -// Install registers the API group and adds types to a scheme -func Install(scheme *runtime.Scheme) { - utilruntime.Must(testapigroup.AddToScheme(scheme)) - utilruntime.Must(v1.AddToScheme(scheme)) - utilruntime.Must(scheme.SetVersionPriority(v1.SchemeGroupVersion)) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/roundtrip_test.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/roundtrip_test.go deleted file mode 100644 index ea8896f53..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/install/roundtrip_test.go +++ /dev/null @@ -1,29 +0,0 @@ -/* -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 install - -import ( - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting/roundtrip" - testapigroupfuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/fuzzer" -) - -func TestRoundTrip(t *testing.T) { - roundtrip.RoundTripTestForAPIGroup(t, Install, testapigroupfuzzer.Funcs) - roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, testapigroupfuzzer.Funcs) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/register.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/register.go deleted file mode 100644 index 4cc52bf2c..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/register.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -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 testapigroup - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -var ( - SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - AddToScheme = SchemeBuilder.AddToScheme -) - -// GroupName is the group name use in this package -const GroupName = "testapigroup.apimachinery.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// Resource takes an unqualified resource and returns a Group qualified GroupResource -func Resource(resource string) schema.GroupResource { - return SchemeGroupVersion.WithResource(resource).GroupResource() -} - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Carp{}, - ) - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/types.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/types.go deleted file mode 100644 index caaaf1ba5..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/types.go +++ /dev/null @@ -1,138 +0,0 @@ -/* -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 testapigroup - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -type ( - ConditionStatus string - CarpConditionType string - CarpPhase string - RestartPolicy string -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Carp is a collection of containers, used as either input (create, update) or as output (list, get). -type Carp struct { - metav1.TypeMeta - // +optional - metav1.ObjectMeta - - // Spec defines the behavior of a carp. - // +optional - Spec CarpSpec - - // Status represents the current information about a carp. This data may not be up - // to date. - // +optional - Status CarpStatus -} - -// CarpStatus represents information about the status of a carp. Status may trail the actual -// state of a system. -type CarpStatus struct { - // +optional - Phase CarpPhase - // +optional - Conditions []CarpCondition - // A human readable message indicating details about why the carp is in this state. - // +optional - Message string - // A brief CamelCase message indicating details about why the carp is in this state. e.g. 'DiskPressure' - // +optional - Reason string - - // +optional - HostIP string - // +optional - CarpIP string - - // Date and time at which the object was acknowledged by the Kubelet. - // This is before the Kubelet pulled the container image(s) for the carp. - // +optional - StartTime *metav1.Time -} - -type CarpCondition struct { - Type CarpConditionType - Status ConditionStatus - // +optional - LastProbeTime metav1.Time - // +optional - LastTransitionTime metav1.Time - // +optional - Reason string - // +optional - Message string -} - -// CarpSpec is a description of a carp -type CarpSpec struct { - // +optional - RestartPolicy RestartPolicy - // Optional duration in seconds the carp needs to terminate gracefully. May be decreased in delete request. - // Value must be non-negative integer. The value zero indicates delete immediately. - // If this value is nil, the default grace period will be used instead. - // The grace period is the duration in seconds after the processes running in the carp are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // +optional - TerminationGracePeriodSeconds *int64 - // Optional duration in seconds relative to the StartTime that the carp may be active on a node - // before the system actively tries to terminate the carp; value must be positive integer - // +optional - ActiveDeadlineSeconds *int64 - // NodeSelector is a selector which must be true for the carp to fit on a node - // +optional - NodeSelector map[string]string - - // ServiceAccountName is the name of the ServiceAccount to use to run this carp - // The carp will be allowed to use secrets referenced by the ServiceAccount - ServiceAccountName string - - // NodeName is a request to schedule this carp onto a specific node. If it is non-empty, - // the scheduler simply schedules this carp onto that node, assuming that it fits resource - // requirements. - // +optional - NodeName string - // Specifies the hostname of the Carp. - // If not specified, the carp's hostname will be set to a system-defined value. - // +optional - Hostname string - // If specified, the fully qualified Carp hostname will be "...svc.". - // If not specified, the carp will not have a domainname at all. - // +optional - Subdomain string - // If specified, the carp will be dispatched by specified scheduler. - // If not specified, the carp will be dispatched by default scheduler. - // +optional - SchedulerName string -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CarpList is a list of Carps. -type CarpList struct { - metav1.TypeMeta - // +optional - metav1.ListMeta - - Items []Carp -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/conversion.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/conversion.go deleted file mode 100644 index f2863529a..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/conversion.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func addConversionFuncs(scheme *runtime.Scheme) error { - // Add non-generated conversion functions here. Currently there are none. - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/defaults.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/defaults.go deleted file mode 100644 index 1ea09a200..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/defaults.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -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 v1 - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func addDefaultingFuncs(scheme *runtime.Scheme) error { - // return RegisterDefaults(scheme) - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/doc.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/doc.go deleted file mode 100644 index 2575d69da..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/doc.go +++ /dev/null @@ -1,24 +0,0 @@ -/* -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:conversion-gen=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup -// +k8s:openapi-gen=false -// +k8s:defaulter-gen=TypeMeta - -// +groupName=testapigroup.apimachinery.k8s.io - -package v1 // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.pb.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.pb.go deleted file mode 100644 index ae1ffe519..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.pb.go +++ /dev/null @@ -1,2288 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.proto - -package v1 - -import ( - fmt "fmt" - - io "io" - - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" - v1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *Carp) Reset() { *m = Carp{} } -func (*Carp) ProtoMessage() {} -func (*Carp) Descriptor() ([]byte, []int) { - return fileDescriptor_b7eb07c7d80facdf, []int{0} -} -func (m *Carp) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Carp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Carp) XXX_Merge(src proto.Message) { - xxx_messageInfo_Carp.Merge(m, src) -} -func (m *Carp) XXX_Size() int { - return m.Size() -} -func (m *Carp) XXX_DiscardUnknown() { - xxx_messageInfo_Carp.DiscardUnknown(m) -} - -var xxx_messageInfo_Carp proto.InternalMessageInfo - -func (m *CarpCondition) Reset() { *m = CarpCondition{} } -func (*CarpCondition) ProtoMessage() {} -func (*CarpCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_b7eb07c7d80facdf, []int{1} -} -func (m *CarpCondition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CarpCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CarpCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_CarpCondition.Merge(m, src) -} -func (m *CarpCondition) XXX_Size() int { - return m.Size() -} -func (m *CarpCondition) XXX_DiscardUnknown() { - xxx_messageInfo_CarpCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_CarpCondition proto.InternalMessageInfo - -func (m *CarpList) Reset() { *m = CarpList{} } -func (*CarpList) ProtoMessage() {} -func (*CarpList) Descriptor() ([]byte, []int) { - return fileDescriptor_b7eb07c7d80facdf, []int{2} -} -func (m *CarpList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CarpList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CarpList) XXX_Merge(src proto.Message) { - xxx_messageInfo_CarpList.Merge(m, src) -} -func (m *CarpList) XXX_Size() int { - return m.Size() -} -func (m *CarpList) XXX_DiscardUnknown() { - xxx_messageInfo_CarpList.DiscardUnknown(m) -} - -var xxx_messageInfo_CarpList proto.InternalMessageInfo - -func (m *CarpSpec) Reset() { *m = CarpSpec{} } -func (*CarpSpec) ProtoMessage() {} -func (*CarpSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_b7eb07c7d80facdf, []int{3} -} -func (m *CarpSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CarpSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CarpSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_CarpSpec.Merge(m, src) -} -func (m *CarpSpec) XXX_Size() int { - return m.Size() -} -func (m *CarpSpec) XXX_DiscardUnknown() { - xxx_messageInfo_CarpSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_CarpSpec proto.InternalMessageInfo - -func (m *CarpStatus) Reset() { *m = CarpStatus{} } -func (*CarpStatus) ProtoMessage() {} -func (*CarpStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_b7eb07c7d80facdf, []int{4} -} -func (m *CarpStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CarpStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *CarpStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_CarpStatus.Merge(m, src) -} -func (m *CarpStatus) XXX_Size() int { - return m.Size() -} -func (m *CarpStatus) XXX_DiscardUnknown() { - xxx_messageInfo_CarpStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_CarpStatus proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Carp)(nil), "k8s.io.apimachinery.pkg.apis.testapigroup.v1.Carp") - proto.RegisterType((*CarpCondition)(nil), "k8s.io.apimachinery.pkg.apis.testapigroup.v1.CarpCondition") - proto.RegisterType((*CarpList)(nil), "k8s.io.apimachinery.pkg.apis.testapigroup.v1.CarpList") - proto.RegisterType((*CarpSpec)(nil), "k8s.io.apimachinery.pkg.apis.testapigroup.v1.CarpSpec") - proto.RegisterMapType((map[string]string)(nil), "k8s.io.apimachinery.pkg.apis.testapigroup.v1.CarpSpec.NodeSelectorEntry") - proto.RegisterType((*CarpStatus)(nil), "k8s.io.apimachinery.pkg.apis.testapigroup.v1.CarpStatus") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.proto", fileDescriptor_b7eb07c7d80facdf) -} - -var fileDescriptor_b7eb07c7d80facdf = []byte{ - // 1048 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xc1, 0x6e, 0xdb, 0x46, - 0x10, 0x35, 0x2d, 0xc9, 0x96, 0xd6, 0x56, 0x62, 0x6f, 0x62, 0x80, 0x35, 0x10, 0xc9, 0xf1, 0xc1, - 0x70, 0x8b, 0x94, 0x8a, 0x8d, 0x26, 0x70, 0x9b, 0x43, 0x11, 0xda, 0x45, 0xed, 0xc2, 0x71, 0x84, - 0x95, 0x8b, 0x14, 0x45, 0x0f, 0x59, 0x51, 0x53, 0x99, 0x95, 0xc8, 0x25, 0x76, 0x57, 0x2a, 0x74, - 0x2b, 0xfa, 0x05, 0xfd, 0x88, 0xde, 0x7a, 0xee, 0x07, 0xf4, 0x50, 0xc0, 0xc7, 0x1c, 0x73, 0x12, - 0x6a, 0xf5, 0x2f, 0x7c, 0x2a, 0x76, 0xb9, 0xa4, 0x28, 0xcb, 0x55, 0xa2, 0xdc, 0xb8, 0x33, 0xef, - 0xbd, 0x99, 0xdd, 0x19, 0xce, 0xa0, 0x6f, 0x3b, 0x07, 0xc2, 0xf1, 0x59, 0xad, 0xd3, 0x6b, 0x02, - 0x0f, 0x41, 0x82, 0xa8, 0xf5, 0x21, 0x6c, 0x31, 0x5e, 0x33, 0x0e, 0x1a, 0xf9, 0x01, 0xf5, 0x2e, - 0xfc, 0x10, 0xf8, 0xa0, 0x16, 0x75, 0xda, 0xca, 0x20, 0x6a, 0x12, 0x84, 0xa4, 0x91, 0xdf, 0xe6, - 0xac, 0x17, 0xd5, 0xfa, 0x7b, 0xb5, 0x36, 0x84, 0xc0, 0xa9, 0x84, 0x96, 0x13, 0x71, 0x26, 0x19, - 0x7e, 0x14, 0xb3, 0x9d, 0x2c, 0xdb, 0x89, 0x3a, 0x6d, 0x65, 0x10, 0x4e, 0x96, 0xed, 0xf4, 0xf7, - 0x36, 0x3f, 0x6d, 0xfb, 0xf2, 0xa2, 0xd7, 0x74, 0x3c, 0x16, 0xd4, 0xda, 0xac, 0xcd, 0x6a, 0x5a, - 0xa4, 0xd9, 0xfb, 0x51, 0x9f, 0xf4, 0x41, 0x7f, 0xc5, 0xe2, 0x9b, 0x9f, 0xcd, 0x4c, 0x2d, 0x00, - 0x49, 0x6f, 0x49, 0x69, 0xf3, 0x7f, 0x2f, 0xc4, 0x7b, 0xa1, 0xf4, 0x03, 0x98, 0x22, 0x3c, 0x7d, - 0x17, 0x41, 0x78, 0x17, 0x10, 0xd0, 0x9b, 0xbc, 0xed, 0xdf, 0x17, 0x51, 0xfe, 0x90, 0xf2, 0x08, - 0xbf, 0x46, 0x45, 0x95, 0x4c, 0x8b, 0x4a, 0x6a, 0x5b, 0x5b, 0xd6, 0xee, 0xca, 0xfe, 0x63, 0x67, - 0xe6, 0xbb, 0x28, 0xb4, 0xd3, 0xdf, 0x73, 0x5e, 0x36, 0x7f, 0x02, 0x4f, 0xbe, 0x00, 0x49, 0x5d, - 0x7c, 0x39, 0xac, 0x2e, 0x8c, 0x86, 0x55, 0x34, 0xb6, 0x91, 0x54, 0x15, 0x7f, 0x87, 0xf2, 0x22, - 0x02, 0xcf, 0x5e, 0xd4, 0xea, 0x4f, 0x9d, 0x79, 0x5e, 0xdd, 0x51, 0x39, 0x36, 0x22, 0xf0, 0xdc, - 0x55, 0x13, 0x23, 0xaf, 0x4e, 0x44, 0x2b, 0xe2, 0xd7, 0x68, 0x49, 0x48, 0x2a, 0x7b, 0xc2, 0xce, - 0x69, 0xed, 0x83, 0x0f, 0xd0, 0xd6, 0x7c, 0xf7, 0x8e, 0x51, 0x5f, 0x8a, 0xcf, 0xc4, 0xe8, 0x6e, - 0xff, 0x99, 0x43, 0x65, 0x05, 0x3b, 0x64, 0x61, 0xcb, 0x97, 0x3e, 0x0b, 0xf1, 0x13, 0x94, 0x97, - 0x83, 0x08, 0xf4, 0x5b, 0x95, 0xdc, 0x87, 0x49, 0x56, 0xe7, 0x83, 0x08, 0xae, 0x87, 0xd5, 0xf5, - 0x09, 0xb0, 0x32, 0x12, 0x0d, 0xc7, 0x9f, 0xa7, 0xa9, 0x2e, 0x4e, 0x10, 0x4d, 0xc0, 0xeb, 0x61, - 0xf5, 0x6e, 0x4a, 0x9b, 0xcc, 0x01, 0xb7, 0x51, 0xb9, 0x4b, 0x85, 0xac, 0x73, 0xd6, 0x84, 0x73, - 0x3f, 0x00, 0x73, 0xd9, 0x4f, 0xde, 0xaf, 0x4c, 0x8a, 0xe1, 0x6e, 0x98, 0x68, 0xe5, 0xd3, 0xac, - 0x10, 0x99, 0xd4, 0xc5, 0x7d, 0x84, 0x95, 0xe1, 0x9c, 0xd3, 0x50, 0xc4, 0xf9, 0xab, 0x68, 0xf9, - 0xb9, 0xa3, 0x6d, 0x9a, 0x68, 0xf8, 0x74, 0x4a, 0x8d, 0xdc, 0x12, 0x01, 0xef, 0xa0, 0x25, 0x0e, - 0x54, 0xb0, 0xd0, 0x2e, 0xe8, 0xb7, 0x49, 0x8b, 0x41, 0xb4, 0x95, 0x18, 0x2f, 0xfe, 0x18, 0x2d, - 0x07, 0x20, 0x04, 0x6d, 0x83, 0xbd, 0xa4, 0x81, 0x77, 0x0d, 0x70, 0xf9, 0x45, 0x6c, 0x26, 0x89, - 0x7f, 0xfb, 0x2f, 0x0b, 0x15, 0x55, 0x29, 0x4e, 0x7d, 0x21, 0xf1, 0x0f, 0x53, 0x2d, 0xee, 0xbc, - 0xdf, 0x6d, 0x14, 0x5b, 0x37, 0xf8, 0x9a, 0x09, 0x54, 0x4c, 0x2c, 0x99, 0xf6, 0x7e, 0x85, 0x0a, - 0xbe, 0x84, 0x40, 0x15, 0x36, 0xb7, 0xbb, 0xb2, 0xbf, 0x3f, 0x7f, 0x0f, 0xba, 0x65, 0x23, 0x5f, - 0x38, 0x51, 0x42, 0x24, 0xd6, 0xdb, 0xfe, 0x7b, 0x39, 0xbe, 0x83, 0x6a, 0x78, 0x7c, 0x8a, 0xca, - 0x5c, 0x51, 0xb9, 0xac, 0xb3, 0xae, 0xef, 0x0d, 0x74, 0x13, 0x94, 0xdc, 0x9d, 0xa4, 0xb0, 0x24, - 0xeb, 0xbc, 0xbe, 0x69, 0x20, 0x93, 0x64, 0xdc, 0x46, 0x0f, 0x24, 0xf0, 0xc0, 0x0f, 0xa9, 0x2a, - 0xc2, 0xd7, 0x9c, 0x7a, 0x50, 0x07, 0xee, 0xb3, 0x56, 0x03, 0x3c, 0x16, 0xb6, 0x84, 0x2e, 0x7a, - 0xce, 0x7d, 0x38, 0x1a, 0x56, 0x1f, 0x9c, 0xcf, 0x02, 0x92, 0xd9, 0x3a, 0xf8, 0x25, 0xda, 0xa0, - 0x9e, 0xf4, 0xfb, 0x70, 0x04, 0xb4, 0xd5, 0xf5, 0x43, 0x48, 0x02, 0x14, 0x74, 0x80, 0x8f, 0x46, - 0xc3, 0xea, 0xc6, 0xf3, 0xdb, 0x00, 0xe4, 0x76, 0x1e, 0xfe, 0xd5, 0x42, 0xab, 0x21, 0x6b, 0x41, - 0x03, 0xba, 0xe0, 0x49, 0xc6, 0xed, 0x65, 0xfd, 0xea, 0xc7, 0x1f, 0x36, 0x55, 0x9c, 0xb3, 0x8c, - 0xd4, 0x57, 0xa1, 0xe4, 0x03, 0xf7, 0xbe, 0x79, 0xd1, 0xd5, 0xac, 0x8b, 0x4c, 0xc4, 0xc4, 0xdf, - 0x20, 0x2c, 0x80, 0xf7, 0x7d, 0x0f, 0x9e, 0x7b, 0x1e, 0xeb, 0x85, 0xf2, 0x8c, 0x06, 0x60, 0x17, - 0x75, 0x45, 0xd2, 0xe6, 0x6f, 0x4c, 0x21, 0xc8, 0x2d, 0x2c, 0x7c, 0x8c, 0xee, 0x4c, 0x5a, 0xed, - 0x92, 0xd6, 0xd9, 0x32, 0x3a, 0xf6, 0x11, 0x44, 0x1c, 0x3c, 0x35, 0xba, 0x27, 0x15, 0xc9, 0x0d, - 0x1e, 0x7e, 0x84, 0x8a, 0x2a, 0x4b, 0x9d, 0x0b, 0xd2, 0x1a, 0x69, 0xdb, 0x9e, 0x19, 0x3b, 0x49, - 0x11, 0xf8, 0x09, 0x5a, 0xb9, 0x60, 0x42, 0x9e, 0x81, 0xfc, 0x99, 0xf1, 0x8e, 0xbd, 0xb2, 0x65, - 0xed, 0x16, 0xdd, 0x7b, 0x86, 0xb0, 0x72, 0x3c, 0x76, 0x91, 0x2c, 0x4e, 0xfd, 0x83, 0xea, 0x58, - 0x3f, 0x39, 0xb2, 0x57, 0x35, 0x25, 0xfd, 0x07, 0x8f, 0x63, 0x33, 0x49, 0xfc, 0x09, 0xf4, 0xa4, - 0x7e, 0x68, 0x97, 0xa7, 0xa1, 0x27, 0xf5, 0x43, 0x92, 0xf8, 0x55, 0xea, 0xea, 0x33, 0x54, 0xa9, - 0xaf, 0x4d, 0xa6, 0x7e, 0x6c, 0xec, 0x24, 0x45, 0xe0, 0x1a, 0x2a, 0x89, 0x5e, 0xb3, 0xc5, 0x02, - 0xea, 0x87, 0xf6, 0xba, 0x86, 0xaf, 0x1b, 0x78, 0xa9, 0x91, 0x38, 0xc8, 0x18, 0x83, 0x9f, 0xa1, - 0xb2, 0x5a, 0x83, 0xad, 0x5e, 0x17, 0xb8, 0x8e, 0x71, 0x4f, 0x93, 0xd2, 0xa9, 0xd8, 0x48, 0x9c, - 0xfa, 0x8d, 0x26, 0xb1, 0x9b, 0x5f, 0xa2, 0xf5, 0xa9, 0x2e, 0xc1, 0x6b, 0x28, 0xd7, 0x81, 0x41, - 0xbc, 0x04, 0x88, 0xfa, 0xc4, 0xf7, 0x51, 0xa1, 0x4f, 0xbb, 0x3d, 0x88, 0xe7, 0x3b, 0x89, 0x0f, - 0x5f, 0x2c, 0x1e, 0x58, 0xdb, 0x7f, 0xe4, 0x10, 0x1a, 0xaf, 0x1a, 0xfc, 0x18, 0x15, 0xa2, 0x0b, - 0x2a, 0x92, 0x0d, 0x92, 0xf4, 0x4b, 0xa1, 0xae, 0x8c, 0xd7, 0xc3, 0x6a, 0x49, 0x61, 0xf5, 0x81, - 0xc4, 0x40, 0xcc, 0x10, 0xf2, 0x92, 0xdd, 0x90, 0x8c, 0x99, 0x67, 0xf3, 0x37, 0x7c, 0xba, 0x5f, - 0xc6, 0xfb, 0x3a, 0x35, 0x09, 0x92, 0x09, 0x91, 0x1d, 0xb4, 0xb9, 0xd9, 0x83, 0x36, 0x33, 0xbb, - 0xf3, 0x33, 0x67, 0xf7, 0x0e, 0x5a, 0x8a, 0x8b, 0x7d, 0x73, 0xc6, 0xc7, 0xbd, 0x40, 0x8c, 0x57, - 0xe1, 0x3c, 0xca, 0xa3, 0x93, 0xba, 0x19, 0xf1, 0x29, 0xee, 0x50, 0x5b, 0x89, 0xf1, 0xe2, 0x57, - 0xa8, 0xa4, 0x07, 0x9a, 0x5e, 0x51, 0xcb, 0x73, 0xaf, 0xa8, 0xb2, 0xee, 0x95, 0x44, 0x80, 0x8c, - 0xb5, 0xdc, 0xdd, 0xcb, 0xab, 0xca, 0xc2, 0x9b, 0xab, 0xca, 0xc2, 0xdb, 0xab, 0xca, 0xc2, 0x2f, - 0xa3, 0x8a, 0x75, 0x39, 0xaa, 0x58, 0x6f, 0x46, 0x15, 0xeb, 0xed, 0xa8, 0x62, 0xfd, 0x33, 0xaa, - 0x58, 0xbf, 0xfd, 0x5b, 0x59, 0xf8, 0x7e, 0xb1, 0xbf, 0xf7, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xd7, 0x22, 0x1b, 0x36, 0x96, 0x0a, 0x00, 0x00, -} - -func (m *Carp) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Carp) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Carp) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CarpCondition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CarpCondition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CarpCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x32 - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x2a - { - size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - { - size, err := m.LastProbeTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 - i -= len(m.Type) - copy(dAtA[i:], m.Type) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CarpList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CarpList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CarpList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *CarpSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CarpSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CarpSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.SchedulerName) - copy(dAtA[i:], m.SchedulerName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.SchedulerName))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - i -= len(m.Subdomain) - copy(dAtA[i:], m.Subdomain) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Subdomain))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - i -= len(m.Hostname) - copy(dAtA[i:], m.Hostname) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - i-- - if m.HostIPC { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - i-- - if m.HostPID { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x60 - i-- - if m.HostNetwork { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x58 - i -= len(m.NodeName) - copy(dAtA[i:], m.NodeName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) - i-- - dAtA[i] = 0x52 - i -= len(m.DeprecatedServiceAccount) - copy(dAtA[i:], m.DeprecatedServiceAccount) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.DeprecatedServiceAccount))) - i-- - dAtA[i] = 0x4a - i -= len(m.ServiceAccountName) - copy(dAtA[i:], m.ServiceAccountName) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) - i-- - dAtA[i] = 0x42 - if len(m.NodeSelector) > 0 { - keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) - for k := range m.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, string(k)) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- { - v := m.NodeSelector[string(keysForNodeSelector[iNdEx])] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintGenerated(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(keysForNodeSelector[iNdEx]) - copy(dAtA[i:], keysForNodeSelector[iNdEx]) - i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x3a - } - } - if m.ActiveDeadlineSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.ActiveDeadlineSeconds)) - i-- - dAtA[i] = 0x28 - } - if m.TerminationGracePeriodSeconds != nil { - i = encodeVarintGenerated(dAtA, i, uint64(*m.TerminationGracePeriodSeconds)) - i-- - dAtA[i] = 0x20 - } - i -= len(m.RestartPolicy) - copy(dAtA[i:], m.RestartPolicy) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.RestartPolicy))) - i-- - dAtA[i] = 0x1a - return len(dAtA) - i, nil -} - -func (m *CarpStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CarpStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CarpStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.StartTime != nil { - { - size, err := m.StartTime.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - i -= len(m.CarpIP) - copy(dAtA[i:], m.CarpIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.CarpIP))) - i-- - dAtA[i] = 0x32 - i -= len(m.HostIP) - copy(dAtA[i:], m.HostIP) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.HostIP))) - i-- - dAtA[i] = 0x2a - i -= len(m.Reason) - copy(dAtA[i:], m.Reason) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) - i-- - dAtA[i] = 0x22 - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - i -= len(m.Phase) - copy(dAtA[i:], m.Phase) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Carp) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ObjectMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Spec.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.Status.Size() - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CarpCondition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Type) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Status) - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastProbeTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = m.LastTransitionTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CarpList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.ListMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - return n -} - -func (m *CarpSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RestartPolicy) - n += 1 + l + sovGenerated(uint64(l)) - if m.TerminationGracePeriodSeconds != nil { - n += 1 + sovGenerated(uint64(*m.TerminationGracePeriodSeconds)) - } - if m.ActiveDeadlineSeconds != nil { - n += 1 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) - } - if len(m.NodeSelector) > 0 { - for k, v := range m.NodeSelector { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) - n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) - } - } - l = len(m.ServiceAccountName) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.DeprecatedServiceAccount) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.NodeName) - n += 1 + l + sovGenerated(uint64(l)) - n += 2 - n += 2 - n += 2 - l = len(m.Hostname) - n += 2 + l + sovGenerated(uint64(l)) - l = len(m.Subdomain) - n += 2 + l + sovGenerated(uint64(l)) - l = len(m.SchedulerName) - n += 2 + l + sovGenerated(uint64(l)) - return n -} - -func (m *CarpStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Phase) - n += 1 + l + sovGenerated(uint64(l)) - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - } - l = len(m.Message) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Reason) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.HostIP) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.CarpIP) - n += 1 + l + sovGenerated(uint64(l)) - if m.StartTime != nil { - l = m.StartTime.Size() - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *Carp) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Carp{`, - `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, - `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CarpSpec", "CarpSpec", 1), `&`, ``, 1) + `,`, - `Status:` + strings.Replace(strings.Replace(this.Status.String(), "CarpStatus", "CarpStatus", 1), `&`, ``, 1) + `,`, - `}`, - }, "") - return s -} -func (this *CarpCondition) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CarpCondition{`, - `Type:` + fmt.Sprintf("%v", this.Type) + `,`, - `Status:` + fmt.Sprintf("%v", this.Status) + `,`, - `LastProbeTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastProbeTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `}`, - }, "") - return s -} -func (this *CarpList) String() string { - if this == nil { - return "nil" - } - repeatedStringForItems := "[]Carp{" - for _, f := range this.Items { - repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Carp", "Carp", 1), `&`, ``, 1) + "," - } - repeatedStringForItems += "}" - s := strings.Join([]string{`&CarpList{`, - `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, - `Items:` + repeatedStringForItems + `,`, - `}`, - }, "") - return s -} -func (this *CarpSpec) String() string { - if this == nil { - return "nil" - } - keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) - for k := range this.NodeSelector { - keysForNodeSelector = append(keysForNodeSelector, k) - } - github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) - mapStringForNodeSelector := "map[string]string{" - for _, k := range keysForNodeSelector { - mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) - } - mapStringForNodeSelector += "}" - s := strings.Join([]string{`&CarpSpec{`, - `RestartPolicy:` + fmt.Sprintf("%v", this.RestartPolicy) + `,`, - `TerminationGracePeriodSeconds:` + valueToStringGenerated(this.TerminationGracePeriodSeconds) + `,`, - `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, - `NodeSelector:` + mapStringForNodeSelector + `,`, - `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, - `DeprecatedServiceAccount:` + fmt.Sprintf("%v", this.DeprecatedServiceAccount) + `,`, - `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, - `HostNetwork:` + fmt.Sprintf("%v", this.HostNetwork) + `,`, - `HostPID:` + fmt.Sprintf("%v", this.HostPID) + `,`, - `HostIPC:` + fmt.Sprintf("%v", this.HostIPC) + `,`, - `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, - `Subdomain:` + fmt.Sprintf("%v", this.Subdomain) + `,`, - `SchedulerName:` + fmt.Sprintf("%v", this.SchedulerName) + `,`, - `}`, - }, "") - return s -} -func (this *CarpStatus) String() string { - if this == nil { - return "nil" - } - repeatedStringForConditions := "[]CarpCondition{" - for _, f := range this.Conditions { - repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "CarpCondition", "CarpCondition", 1), `&`, ``, 1) + "," - } - repeatedStringForConditions += "}" - s := strings.Join([]string{`&CarpStatus{`, - `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, - `Conditions:` + repeatedStringForConditions + `,`, - `Message:` + fmt.Sprintf("%v", this.Message) + `,`, - `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, - `HostIP:` + fmt.Sprintf("%v", this.HostIP) + `,`, - `CarpIP:` + fmt.Sprintf("%v", this.CarpIP) + `,`, - `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Time", "v1.Time", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *Carp) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Carp: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Carp: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CarpCondition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CarpCondition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CarpCondition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = CarpConditionType(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = ConditionStatus(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastProbeTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastProbeTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CarpList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CarpList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CarpList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, Carp{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CarpSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CarpSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CarpSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RestartPolicy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RestartPolicy = RestartPolicy(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TerminationGracePeriodSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TerminationGracePeriodSeconds = &v - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) - } - var v int64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActiveDeadlineSeconds = &v - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NodeSelector == nil { - m.NodeSelector = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthGenerated - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthGenerated - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.NodeSelector[mapkey] = mapvalue - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedServiceAccount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeprecatedServiceAccount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostNetwork = bool(v != 0) - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostPID", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostPID = bool(v != 0) - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIPC", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HostIPC = bool(v != 0) - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subdomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subdomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SchedulerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SchedulerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CarpStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CarpStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CarpStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Phase = CarpPhase(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, CarpCondition{}) - if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reason = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CarpIP", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CarpIP = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.StartTime == nil { - m.StartTime = &v1.Time{} - } - if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.proto b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.proto deleted file mode 100644 index cb8b40faf..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/generated.proto +++ /dev/null @@ -1,211 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.apis.testapigroup.v1; - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto"; -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto"; - -// Package-wide variables from generator "generated". -option go_package = "v1"; - -// Carp is a collection of containers, used as either input (create, update) or as output (list, get). -message Carp { - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - - // Specification of the desired behavior of the carp. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional CarpSpec spec = 2; - - // Most recently observed status of the carp. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - optional CarpStatus status = 3; -} - -message CarpCondition { - // Type is the type of the condition. - // Currently only Ready. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions - optional string type = 1; - - // Status is the status of the condition. - // Can be True, False, Unknown. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions - optional string status = 2; - - // Last time we probed the condition. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; - - // Last time the condition transitioned from one status to another. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - - // Unique, one-word, CamelCase reason for the condition's last transition. - // +optional - optional string reason = 5; - - // Human-readable message indicating details about last transition. - // +optional - optional string message = 6; -} - -// CarpList is a list of Carps. -message CarpList { - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - - // List of carps. - // More info: http://kubernetes.io/docs/user-guide/carps - repeated Carp items = 2; -} - -// CarpSpec is a description of a carp -message CarpSpec { - // Restart policy for all containers within the carp. - // One of Always, OnFailure, Never. - // Default to Always. - // More info: http://kubernetes.io/docs/user-guide/carp-states#restartpolicy - // +optional - optional string restartPolicy = 3; - - // Optional duration in seconds the carp needs to terminate gracefully. May be decreased in delete request. - // Value must be non-negative integer. The value zero indicates delete immediately. - // If this value is nil, the default grace period will be used instead. - // The grace period is the duration in seconds after the processes running in the carp are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // Defaults to 30 seconds. - // +optional - optional int64 terminationGracePeriodSeconds = 4; - - // Optional duration in seconds the carp may be active on the node relative to - // StartTime before the system will actively try to mark it failed and kill associated containers. - // Value must be a positive integer. - // +optional - optional int64 activeDeadlineSeconds = 5; - - // NodeSelector is a selector which must be true for the carp to fit on a node. - // Selector which must match a node's labels for the carp to be scheduled on that node. - // More info: http://kubernetes.io/docs/user-guide/node-selection/README - // +optional - map nodeSelector = 7; - - // ServiceAccountName is the name of the ServiceAccount to use to run this carp. - // More info: https://git.k8s.io/community/contributors/design-proposals/auth/service_accounts.md - // +optional - optional string serviceAccountName = 8; - - // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - // Deprecated: Use serviceAccountName instead. - // +k8s:conversion-gen=false - // +optional - optional string serviceAccount = 9; - - // NodeName is a request to schedule this carp onto a specific node. If it is non-empty, - // the scheduler simply schedules this carp onto that node, assuming that it fits resource - // requirements. - // +optional - optional string nodeName = 10; - - // Host networking requested for this carp. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. - // Default to false. - // +k8s:conversion-gen=false - // +optional - optional bool hostNetwork = 11; - - // Use the host's pid namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - optional bool hostPID = 12; - - // Use the host's ipc namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - optional bool hostIPC = 13; - - // Specifies the hostname of the Carp - // If not specified, the carp's hostname will be set to a system-defined value. - // +optional - optional string hostname = 16; - - // If specified, the fully qualified Carp hostname will be "...svc.". - // If not specified, the carp will not have a domainname at all. - // +optional - optional string subdomain = 17; - - // If specified, the carp will be dispatched by specified scheduler. - // If not specified, the carp will be dispatched by default scheduler. - // +optional - optional string schedulername = 19; -} - -// CarpStatus represents information about the status of a carp. Status may trail the actual -// state of a system. -message CarpStatus { - // Current condition of the carp. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-phase - // +optional - optional string phase = 1; - - // Current service state of carp. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions - // +optional - repeated CarpCondition conditions = 2; - - // A human readable message indicating details about why the carp is in this condition. - // +optional - optional string message = 3; - - // A brief CamelCase message indicating details about why the carp is in this state. - // e.g. 'DiskPressure' - // +optional - optional string reason = 4; - - // IP address of the host to which the carp is assigned. Empty if not yet scheduled. - // +optional - optional string hostIP = 5; - - // IP address allocated to the carp. Routable at least within the cluster. - // Empty if not yet allocated. - // +optional - optional string carpIP = 6; - - // RFC 3339 date and time at which the object was acknowledged by the Kubelet. - // This is before the Kubelet pulled the container image(s) for the carp. - // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; -} - diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/register.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/register.go deleted file mode 100644 index fe2a45af6..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/register.go +++ /dev/null @@ -1,63 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// GroupName is the group name use in this package -const GroupName = "testapigroup.apimachinery.k8s.io" - -// SchemeGroupVersion is group version used to register these objects -var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} - -// Kind takes an unqualified kind and returns a Group qualified GroupKind -func Kind(kind string) schema.GroupKind { - return SchemeGroupVersion.WithKind(kind).GroupKind() -} - -// 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 sigs.k8s.io/kustomize/pseudo/k8s/api. - // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. - SchemeBuilder runtime.SchemeBuilder - localSchemeBuilder = &SchemeBuilder - AddToScheme = localSchemeBuilder.AddToScheme -) - -func init() { - // We only register manually written functions here. The registration of the - // generated functions takes place in the generated files. The separation - // makes the code compile even when the generated files are missing. - localSchemeBuilder.Register(addKnownTypes, addConversionFuncs, addDefaultingFuncs) -} - -// Adds the list of known types to the given scheme. -func addKnownTypes(scheme *runtime.Scheme) error { - scheme.AddKnownTypes(SchemeGroupVersion, - &Carp{}, - ) - metav1.AddToGroupVersion(scheme, SchemeGroupVersion) - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/types.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/types.go deleted file mode 100644 index c40d3f95f..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/types.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -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 v1 - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" -) - -type ( - ConditionStatus string - CarpConditionType string - CarpPhase string - RestartPolicy string -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// Carp is a collection of containers, used as either input (create, update) or as output (list, get). -type Carp struct { - metav1.TypeMeta `json:",inline"` - // Standard object's metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - // +optional - metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // Specification of the desired behavior of the carp. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Spec CarpSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` - - // Most recently observed status of the carp. - // This data may not be up to date. - // Populated by the system. - // Read-only. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - // +optional - Status CarpStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` -} - -// CarpStatus represents information about the status of a carp. Status may trail the actual -// state of a system. -type CarpStatus struct { - // Current condition of the carp. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-phase - // +optional - Phase CarpPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=CarpPhase"` - // Current service state of carp. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions - // +optional - Conditions []CarpCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` - // A human readable message indicating details about why the carp is in this condition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - // A brief CamelCase message indicating details about why the carp is in this state. - // e.g. 'DiskPressure' - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - - // IP address of the host to which the carp is assigned. Empty if not yet scheduled. - // +optional - HostIP string `json:"hostIP,omitempty" protobuf:"bytes,5,opt,name=hostIP"` - // IP address allocated to the carp. Routable at least within the cluster. - // Empty if not yet allocated. - // +optional - CarpIP string `json:"carpIP,omitempty" protobuf:"bytes,6,opt,name=carpIP"` - - // RFC 3339 date and time at which the object was acknowledged by the Kubelet. - // This is before the Kubelet pulled the container image(s) for the carp. - // +optional - StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,7,opt,name=startTime"` -} - -type CarpCondition struct { - // Type is the type of the condition. - // Currently only Ready. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions - Type CarpConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=CarpConditionType"` - // Status is the status of the condition. - // Can be True, False, Unknown. - // More info: http://kubernetes.io/docs/user-guide/carp-states#carp-conditions - Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` - // Last time we probed the condition. - // +optional - LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` - // Last time the condition transitioned from one status to another. - // +optional - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` - // Unique, one-word, CamelCase reason for the condition's last transition. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` - // Human-readable message indicating details about last transition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` -} - -// CarpSpec is a description of a carp -type CarpSpec struct { - // Restart policy for all containers within the carp. - // One of Always, OnFailure, Never. - // Default to Always. - // More info: http://kubernetes.io/docs/user-guide/carp-states#restartpolicy - // +optional - RestartPolicy RestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,3,opt,name=restartPolicy,casttype=RestartPolicy"` - // Optional duration in seconds the carp needs to terminate gracefully. May be decreased in delete request. - // Value must be non-negative integer. The value zero indicates delete immediately. - // If this value is nil, the default grace period will be used instead. - // The grace period is the duration in seconds after the processes running in the carp are sent - // a termination signal and the time when the processes are forcibly halted with a kill signal. - // Set this value longer than the expected cleanup time for your process. - // Defaults to 30 seconds. - // +optional - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,4,opt,name=terminationGracePeriodSeconds"` - // Optional duration in seconds the carp may be active on the node relative to - // StartTime before the system will actively try to mark it failed and kill associated containers. - // Value must be a positive integer. - // +optional - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,5,opt,name=activeDeadlineSeconds"` - // NodeSelector is a selector which must be true for the carp to fit on a node. - // Selector which must match a node's labels for the carp to be scheduled on that node. - // More info: http://kubernetes.io/docs/user-guide/node-selection/README - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"` - - // ServiceAccountName is the name of the ServiceAccount to use to run this carp. - // More info: https://git.k8s.io/community/contributors/design-proposals/auth/service_accounts.md - // +optional - ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"` - // DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. - // Deprecated: Use serviceAccountName instead. - // +k8s:conversion-gen=false - // +optional - DeprecatedServiceAccount string `json:"serviceAccount,omitempty" protobuf:"bytes,9,opt,name=serviceAccount"` - - // NodeName is a request to schedule this carp onto a specific node. If it is non-empty, - // the scheduler simply schedules this carp onto that node, assuming that it fits resource - // requirements. - // +optional - NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` - // Host networking requested for this carp. Use the host's network namespace. - // If this option is set, the ports that will be used must be specified. - // Default to false. - // +k8s:conversion-gen=false - // +optional - HostNetwork bool `json:"hostNetwork,omitempty" protobuf:"varint,11,opt,name=hostNetwork"` - // Use the host's pid namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - HostPID bool `json:"hostPID,omitempty" protobuf:"varint,12,opt,name=hostPID"` - // Use the host's ipc namespace. - // Optional: Default to false. - // +k8s:conversion-gen=false - // +optional - HostIPC bool `json:"hostIPC,omitempty" protobuf:"varint,13,opt,name=hostIPC"` - // Specifies the hostname of the Carp - // If not specified, the carp's hostname will be set to a system-defined value. - // +optional - Hostname string `json:"hostname,omitempty" protobuf:"bytes,16,opt,name=hostname"` - // If specified, the fully qualified Carp hostname will be "...svc.". - // If not specified, the carp will not have a domainname at all. - // +optional - Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"` - // If specified, the carp will be dispatched by specified scheduler. - // If not specified, the carp will be dispatched by default scheduler. - // +optional - SchedulerName string `json:"schedulername,omitempty" protobuf:"bytes,19,opt,name=schedulername"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object - -// CarpList is a list of Carps. -type CarpList struct { - metav1.TypeMeta `json:",inline"` - // Standard list metadata. - // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - // +optional - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - // List of carps. - // More info: http://kubernetes.io/docs/user-guide/carps - Items []Carp `json:"items" protobuf:"bytes,2,rep,name=items"` -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.conversion.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.conversion.go deleted file mode 100644 index f468f8878..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.conversion.go +++ /dev/null @@ -1,266 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by conversion-gen. DO NOT EDIT. - -package v1 - -import ( - unsafe "unsafe" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - testapigroup "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - conversion "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func init() { - localSchemeBuilder.Register(RegisterConversions) -} - -// RegisterConversions adds conversion functions to the given scheme. -// Public to allow building arbitrary schemes. -func RegisterConversions(s *runtime.Scheme) error { - if err := s.AddGeneratedConversionFunc((*Carp)(nil), (*testapigroup.Carp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_Carp_To_testapigroup_Carp(a.(*Carp), b.(*testapigroup.Carp), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*testapigroup.Carp)(nil), (*Carp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_testapigroup_Carp_To_v1_Carp(a.(*testapigroup.Carp), b.(*Carp), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CarpCondition)(nil), (*testapigroup.CarpCondition)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_CarpCondition_To_testapigroup_CarpCondition(a.(*CarpCondition), b.(*testapigroup.CarpCondition), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*testapigroup.CarpCondition)(nil), (*CarpCondition)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_testapigroup_CarpCondition_To_v1_CarpCondition(a.(*testapigroup.CarpCondition), b.(*CarpCondition), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CarpList)(nil), (*testapigroup.CarpList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_CarpList_To_testapigroup_CarpList(a.(*CarpList), b.(*testapigroup.CarpList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*testapigroup.CarpList)(nil), (*CarpList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_testapigroup_CarpList_To_v1_CarpList(a.(*testapigroup.CarpList), b.(*CarpList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CarpSpec)(nil), (*testapigroup.CarpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_CarpSpec_To_testapigroup_CarpSpec(a.(*CarpSpec), b.(*testapigroup.CarpSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*testapigroup.CarpSpec)(nil), (*CarpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_testapigroup_CarpSpec_To_v1_CarpSpec(a.(*testapigroup.CarpSpec), b.(*CarpSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*CarpStatus)(nil), (*testapigroup.CarpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_CarpStatus_To_testapigroup_CarpStatus(a.(*CarpStatus), b.(*testapigroup.CarpStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*testapigroup.CarpStatus)(nil), (*CarpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_testapigroup_CarpStatus_To_v1_CarpStatus(a.(*testapigroup.CarpStatus), b.(*CarpStatus), scope) - }); err != nil { - return err - } - return nil -} - -func autoConvert_v1_Carp_To_testapigroup_Carp(in *Carp, out *testapigroup.Carp, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_CarpSpec_To_testapigroup_CarpSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_CarpStatus_To_testapigroup_CarpStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_Carp_To_testapigroup_Carp is an autogenerated conversion function. -func Convert_v1_Carp_To_testapigroup_Carp(in *Carp, out *testapigroup.Carp, s conversion.Scope) error { - return autoConvert_v1_Carp_To_testapigroup_Carp(in, out, s) -} - -func autoConvert_testapigroup_Carp_To_v1_Carp(in *testapigroup.Carp, out *Carp, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_testapigroup_CarpSpec_To_v1_CarpSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_testapigroup_CarpStatus_To_v1_CarpStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_testapigroup_Carp_To_v1_Carp is an autogenerated conversion function. -func Convert_testapigroup_Carp_To_v1_Carp(in *testapigroup.Carp, out *Carp, s conversion.Scope) error { - return autoConvert_testapigroup_Carp_To_v1_Carp(in, out, s) -} - -func autoConvert_v1_CarpCondition_To_testapigroup_CarpCondition(in *CarpCondition, out *testapigroup.CarpCondition, s conversion.Scope) error { - out.Type = testapigroup.CarpConditionType(in.Type) - out.Status = testapigroup.ConditionStatus(in.Status) - out.LastProbeTime = in.LastProbeTime - out.LastTransitionTime = in.LastTransitionTime - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -// Convert_v1_CarpCondition_To_testapigroup_CarpCondition is an autogenerated conversion function. -func Convert_v1_CarpCondition_To_testapigroup_CarpCondition(in *CarpCondition, out *testapigroup.CarpCondition, s conversion.Scope) error { - return autoConvert_v1_CarpCondition_To_testapigroup_CarpCondition(in, out, s) -} - -func autoConvert_testapigroup_CarpCondition_To_v1_CarpCondition(in *testapigroup.CarpCondition, out *CarpCondition, s conversion.Scope) error { - out.Type = CarpConditionType(in.Type) - out.Status = ConditionStatus(in.Status) - out.LastProbeTime = in.LastProbeTime - out.LastTransitionTime = in.LastTransitionTime - out.Reason = in.Reason - out.Message = in.Message - return nil -} - -// Convert_testapigroup_CarpCondition_To_v1_CarpCondition is an autogenerated conversion function. -func Convert_testapigroup_CarpCondition_To_v1_CarpCondition(in *testapigroup.CarpCondition, out *CarpCondition, s conversion.Scope) error { - return autoConvert_testapigroup_CarpCondition_To_v1_CarpCondition(in, out, s) -} - -func autoConvert_v1_CarpList_To_testapigroup_CarpList(in *CarpList, out *testapigroup.CarpList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]testapigroup.Carp, len(*in)) - for i := range *in { - if err := Convert_v1_Carp_To_testapigroup_Carp(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_v1_CarpList_To_testapigroup_CarpList is an autogenerated conversion function. -func Convert_v1_CarpList_To_testapigroup_CarpList(in *CarpList, out *testapigroup.CarpList, s conversion.Scope) error { - return autoConvert_v1_CarpList_To_testapigroup_CarpList(in, out, s) -} - -func autoConvert_testapigroup_CarpList_To_v1_CarpList(in *testapigroup.CarpList, out *CarpList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Carp, len(*in)) - for i := range *in { - if err := Convert_testapigroup_Carp_To_v1_Carp(&(*in)[i], &(*out)[i], s); err != nil { - return err - } - } - } else { - out.Items = nil - } - return nil -} - -// Convert_testapigroup_CarpList_To_v1_CarpList is an autogenerated conversion function. -func Convert_testapigroup_CarpList_To_v1_CarpList(in *testapigroup.CarpList, out *CarpList, s conversion.Scope) error { - return autoConvert_testapigroup_CarpList_To_v1_CarpList(in, out, s) -} - -func autoConvert_v1_CarpSpec_To_testapigroup_CarpSpec(in *CarpSpec, out *testapigroup.CarpSpec, s conversion.Scope) error { - out.RestartPolicy = testapigroup.RestartPolicy(in.RestartPolicy) - out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds)) - out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) - out.NodeSelector = *(*map[string]string)(unsafe.Pointer(&in.NodeSelector)) - out.ServiceAccountName = in.ServiceAccountName - // INFO: in.DeprecatedServiceAccount opted out of conversion generation - out.NodeName = in.NodeName - // INFO: in.HostNetwork opted out of conversion generation - // INFO: in.HostPID opted out of conversion generation - // INFO: in.HostIPC opted out of conversion generation - out.Hostname = in.Hostname - out.Subdomain = in.Subdomain - out.SchedulerName = in.SchedulerName - return nil -} - -// Convert_v1_CarpSpec_To_testapigroup_CarpSpec is an autogenerated conversion function. -func Convert_v1_CarpSpec_To_testapigroup_CarpSpec(in *CarpSpec, out *testapigroup.CarpSpec, s conversion.Scope) error { - return autoConvert_v1_CarpSpec_To_testapigroup_CarpSpec(in, out, s) -} - -func autoConvert_testapigroup_CarpSpec_To_v1_CarpSpec(in *testapigroup.CarpSpec, out *CarpSpec, s conversion.Scope) error { - out.RestartPolicy = RestartPolicy(in.RestartPolicy) - out.TerminationGracePeriodSeconds = (*int64)(unsafe.Pointer(in.TerminationGracePeriodSeconds)) - out.ActiveDeadlineSeconds = (*int64)(unsafe.Pointer(in.ActiveDeadlineSeconds)) - out.NodeSelector = *(*map[string]string)(unsafe.Pointer(&in.NodeSelector)) - out.ServiceAccountName = in.ServiceAccountName - out.NodeName = in.NodeName - out.Hostname = in.Hostname - out.Subdomain = in.Subdomain - out.SchedulerName = in.SchedulerName - return nil -} - -// Convert_testapigroup_CarpSpec_To_v1_CarpSpec is an autogenerated conversion function. -func Convert_testapigroup_CarpSpec_To_v1_CarpSpec(in *testapigroup.CarpSpec, out *CarpSpec, s conversion.Scope) error { - return autoConvert_testapigroup_CarpSpec_To_v1_CarpSpec(in, out, s) -} - -func autoConvert_v1_CarpStatus_To_testapigroup_CarpStatus(in *CarpStatus, out *testapigroup.CarpStatus, s conversion.Scope) error { - out.Phase = testapigroup.CarpPhase(in.Phase) - out.Conditions = *(*[]testapigroup.CarpCondition)(unsafe.Pointer(&in.Conditions)) - out.Message = in.Message - out.Reason = in.Reason - out.HostIP = in.HostIP - out.CarpIP = in.CarpIP - out.StartTime = (*metav1.Time)(unsafe.Pointer(in.StartTime)) - return nil -} - -// Convert_v1_CarpStatus_To_testapigroup_CarpStatus is an autogenerated conversion function. -func Convert_v1_CarpStatus_To_testapigroup_CarpStatus(in *CarpStatus, out *testapigroup.CarpStatus, s conversion.Scope) error { - return autoConvert_v1_CarpStatus_To_testapigroup_CarpStatus(in, out, s) -} - -func autoConvert_testapigroup_CarpStatus_To_v1_CarpStatus(in *testapigroup.CarpStatus, out *CarpStatus, s conversion.Scope) error { - out.Phase = CarpPhase(in.Phase) - out.Conditions = *(*[]CarpCondition)(unsafe.Pointer(&in.Conditions)) - out.Message = in.Message - out.Reason = in.Reason - out.HostIP = in.HostIP - out.CarpIP = in.CarpIP - out.StartTime = (*metav1.Time)(unsafe.Pointer(in.StartTime)) - return nil -} - -// Convert_testapigroup_CarpStatus_To_v1_CarpStatus is an autogenerated conversion function. -func Convert_testapigroup_CarpStatus_To_v1_CarpStatus(in *testapigroup.CarpStatus, out *CarpStatus, s conversion.Scope) error { - return autoConvert_testapigroup_CarpStatus_To_v1_CarpStatus(in, out, s) -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.deepcopy.go deleted file mode 100644 index d65c091f0..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.deepcopy.go +++ /dev/null @@ -1,164 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Carp) DeepCopyInto(out *Carp) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Carp. -func (in *Carp) DeepCopy() *Carp { - if in == nil { - return nil - } - out := new(Carp) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Carp) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpCondition) DeepCopyInto(out *CarpCondition) { - *out = *in - in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpCondition. -func (in *CarpCondition) DeepCopy() *CarpCondition { - if in == nil { - return nil - } - out := new(CarpCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpList) DeepCopyInto(out *CarpList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Carp, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpList. -func (in *CarpList) DeepCopy() *CarpList { - if in == nil { - return nil - } - out := new(CarpList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CarpList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpSpec) DeepCopyInto(out *CarpSpec) { - *out = *in - if in.TerminationGracePeriodSeconds != nil { - in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds - *out = new(int64) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpSpec. -func (in *CarpSpec) DeepCopy() *CarpSpec { - if in == nil { - return nil - } - out := new(CarpSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpStatus) DeepCopyInto(out *CarpStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]CarpCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.StartTime != nil { - in, out := &in.StartTime, &out.StartTime - *out = (*in).DeepCopy() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpStatus. -func (in *CarpStatus) DeepCopy() *CarpStatus { - if in == nil { - return nil - } - out := new(CarpStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.defaults.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.defaults.go deleted file mode 100644 index 48ac67238..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1/zz_generated.defaults.go +++ /dev/null @@ -1,32 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by defaulter-gen. DO NOT EDIT. - -package v1 - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// RegisterDefaults adds defaulters functions to the given scheme. -// Public to allow building arbitrary schemes. -// All generated defaulters are covering - they call all nested defaulters. -func RegisterDefaults(scheme *runtime.Scheme) error { - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/apis/testapigroup/zz_generated.deepcopy.go deleted file mode 100644 index cf244aca3..000000000 --- a/pseudo/k8s/apimachinery/pkg/apis/testapigroup/zz_generated.deepcopy.go +++ /dev/null @@ -1,164 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package testapigroup - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Carp) DeepCopyInto(out *Carp) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Carp. -func (in *Carp) DeepCopy() *Carp { - if in == nil { - return nil - } - out := new(Carp) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Carp) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpCondition) DeepCopyInto(out *CarpCondition) { - *out = *in - in.LastProbeTime.DeepCopyInto(&out.LastProbeTime) - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpCondition. -func (in *CarpCondition) DeepCopy() *CarpCondition { - if in == nil { - return nil - } - out := new(CarpCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpList) DeepCopyInto(out *CarpList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Carp, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpList. -func (in *CarpList) DeepCopy() *CarpList { - if in == nil { - return nil - } - out := new(CarpList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *CarpList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpSpec) DeepCopyInto(out *CarpSpec) { - *out = *in - if in.TerminationGracePeriodSeconds != nil { - in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds - *out = new(int64) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpSpec. -func (in *CarpSpec) DeepCopy() *CarpSpec { - if in == nil { - return nil - } - out := new(CarpSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CarpStatus) DeepCopyInto(out *CarpStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]CarpCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.StartTime != nil { - in, out := &in.StartTime, &out.StartTime - *out = (*in).DeepCopy() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarpStatus. -func (in *CarpStatus) DeepCopy() *CarpStatus { - if in == nil { - return nil - } - out := new(CarpStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/converter.go b/pseudo/k8s/apimachinery/pkg/conversion/converter.go deleted file mode 100644 index bc615dc3a..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/converter.go +++ /dev/null @@ -1,898 +0,0 @@ -/* -Copyright 2014 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 conversion - -import ( - "fmt" - "reflect" -) - -type typePair struct { - source reflect.Type - dest reflect.Type -} - -type typeNamePair struct { - fieldType reflect.Type - fieldName string -} - -// DebugLogger allows you to get debugging messages if necessary. -type DebugLogger interface { - Logf(format string, args ...interface{}) -} - -type NameFunc func(t reflect.Type) string - -var DefaultNameFunc = func(t reflect.Type) string { return t.Name() } - -// ConversionFunc converts the object a into the object b, reusing arrays or objects -// or pointers if necessary. It should return an error if the object cannot be converted -// or if some data is invalid. If you do not wish a and b to share fields or nested -// objects, you must copy a before calling this function. -type ConversionFunc func(a, b interface{}, scope Scope) error - -// Converter knows how to convert one type to another. -type Converter struct { - // Map from the conversion pair to a function which can - // do the conversion. - conversionFuncs ConversionFuncs - generatedConversionFuncs ConversionFuncs - - // Set of conversions that should be treated as a no-op - ignoredConversions map[typePair]struct{} - - // This is a map from a source field type and name, to a list of destination - // field type and name. - structFieldDests map[typeNamePair][]typeNamePair - - // Allows for the opposite lookup of structFieldDests. So that SourceFromDest - // copy flag also works. So this is a map of destination field name, to potential - // source field name and type to look for. - structFieldSources map[typeNamePair][]typeNamePair - - // Map from an input type to a function which can apply a key name mapping - inputFieldMappingFuncs map[reflect.Type]FieldMappingFunc - - // Map from an input type to a set of default conversion flags. - inputDefaultFlags map[reflect.Type]FieldMatchingFlags - - // If non-nil, will be called to print helpful debugging info. Quite verbose. - Debug DebugLogger - - // nameFunc is called to retrieve the name of a type; this name is used for the - // purpose of deciding whether two types match or not (i.e., will we attempt to - // do a conversion). The default returns the go type name. - nameFunc func(t reflect.Type) string -} - -// NewConverter creates a new Converter object. -func NewConverter(nameFn NameFunc) *Converter { - c := &Converter{ - conversionFuncs: NewConversionFuncs(), - generatedConversionFuncs: NewConversionFuncs(), - ignoredConversions: make(map[typePair]struct{}), - nameFunc: nameFn, - structFieldDests: make(map[typeNamePair][]typeNamePair), - structFieldSources: make(map[typeNamePair][]typeNamePair), - - inputFieldMappingFuncs: make(map[reflect.Type]FieldMappingFunc), - inputDefaultFlags: make(map[reflect.Type]FieldMatchingFlags), - } - c.RegisterConversionFunc(Convert_Slice_byte_To_Slice_byte) - return c -} - -// WithConversions returns a Converter that is a copy of c but with the additional -// fns merged on top. -func (c *Converter) WithConversions(fns ConversionFuncs) *Converter { - copied := *c - copied.conversionFuncs = c.conversionFuncs.Merge(fns) - return &copied -} - -// DefaultMeta returns the conversion FieldMappingFunc and meta for a given type. -func (c *Converter) DefaultMeta(t reflect.Type) (FieldMatchingFlags, *Meta) { - return c.inputDefaultFlags[t], &Meta{ - KeyNameMapping: c.inputFieldMappingFuncs[t], - } -} - -// Convert_Slice_byte_To_Slice_byte prevents recursing into every byte -func Convert_Slice_byte_To_Slice_byte(in *[]byte, out *[]byte, s Scope) error { - if *in == nil { - *out = nil - return nil - } - *out = make([]byte, len(*in)) - copy(*out, *in) - return nil -} - -// Scope is passed to conversion funcs to allow them to continue an ongoing conversion. -// If multiple converters exist in the system, Scope will allow you to use the correct one -// from a conversion function--that is, the one your conversion function was called by. -type Scope interface { - // Call Convert to convert sub-objects. Note that if you call it with your own exact - // parameters, you'll run out of stack space before anything useful happens. - Convert(src, dest interface{}, flags FieldMatchingFlags) error - - // DefaultConvert performs the default conversion, without calling a conversion func - // on the current stack frame. This makes it safe to call from a conversion func. - DefaultConvert(src, dest interface{}, flags FieldMatchingFlags) error - - // SrcTags and DestTags contain the struct tags that src and dest had, respectively. - // If the enclosing object was not a struct, then these will contain no tags, of course. - SrcTag() reflect.StructTag - DestTag() reflect.StructTag - - // Flags returns the flags with which the conversion was started. - Flags() FieldMatchingFlags - - // Meta returns any information originally passed to Convert. - Meta() *Meta -} - -// FieldMappingFunc can convert an input field value into different values, depending on -// the value of the source or destination struct tags. -type FieldMappingFunc func(key string, sourceTag, destTag reflect.StructTag) (source string, dest string) - -func NewConversionFuncs() ConversionFuncs { - return ConversionFuncs{ - fns: make(map[typePair]reflect.Value), - untyped: make(map[typePair]ConversionFunc), - } -} - -type ConversionFuncs struct { - fns map[typePair]reflect.Value - untyped map[typePair]ConversionFunc -} - -// Add adds the provided conversion functions to the lookup table - they must have the signature -// `func(type1, type2, Scope) error`. Functions are added in the order passed and will override -// previously registered pairs. -func (c ConversionFuncs) Add(fns ...interface{}) error { - for _, fn := range fns { - fv := reflect.ValueOf(fn) - ft := fv.Type() - if err := verifyConversionFunctionSignature(ft); err != nil { - return err - } - c.fns[typePair{ft.In(0).Elem(), ft.In(1).Elem()}] = fv - } - return nil -} - -// AddUntyped adds the provided conversion function to the lookup table for the types that are -// supplied as a and b. a and b must be pointers or an error is returned. This method overwrites -// previously defined functions. -func (c ConversionFuncs) AddUntyped(a, b interface{}, fn ConversionFunc) error { - tA, tB := reflect.TypeOf(a), reflect.TypeOf(b) - if tA.Kind() != reflect.Ptr { - return fmt.Errorf("the type %T must be a pointer to register as an untyped conversion", a) - } - if tB.Kind() != reflect.Ptr { - return fmt.Errorf("the type %T must be a pointer to register as an untyped conversion", b) - } - c.untyped[typePair{tA, tB}] = fn - return nil -} - -// Merge returns a new ConversionFuncs that contains all conversions from -// both other and c, with other conversions taking precedence. -func (c ConversionFuncs) Merge(other ConversionFuncs) ConversionFuncs { - merged := NewConversionFuncs() - for k, v := range c.fns { - merged.fns[k] = v - } - for k, v := range other.fns { - merged.fns[k] = v - } - for k, v := range c.untyped { - merged.untyped[k] = v - } - for k, v := range other.untyped { - merged.untyped[k] = v - } - return merged -} - -// Meta is supplied by Scheme, when it calls Convert. -type Meta struct { - // KeyNameMapping is an optional function which may map the listed key (field name) - // into a source and destination value. - KeyNameMapping FieldMappingFunc - // Context is an optional field that callers may use to pass info to conversion functions. - Context interface{} -} - -// scope contains information about an ongoing conversion. -type scope struct { - converter *Converter - meta *Meta - flags FieldMatchingFlags - - // srcStack & destStack are separate because they may not have a 1:1 - // relationship. - srcStack scopeStack - destStack scopeStack -} - -type scopeStackElem struct { - tag reflect.StructTag - value reflect.Value - key string -} - -type scopeStack []scopeStackElem - -func (s *scopeStack) pop() { - n := len(*s) - *s = (*s)[:n-1] -} - -func (s *scopeStack) push(e scopeStackElem) { - *s = append(*s, e) -} - -func (s *scopeStack) top() *scopeStackElem { - return &(*s)[len(*s)-1] -} - -func (s scopeStack) describe() string { - desc := "" - if len(s) > 1 { - desc = "(" + s[1].value.Type().String() + ")" - } - for i, v := range s { - if i < 2 { - // First layer on stack is not real; second is handled specially above. - continue - } - if v.key == "" { - desc += fmt.Sprintf(".%v", v.value.Type()) - } else { - desc += fmt.Sprintf(".%v", v.key) - } - } - return desc -} - -// Formats src & dest as indices for printing. -func (s *scope) setIndices(src, dest int) { - s.srcStack.top().key = fmt.Sprintf("[%v]", src) - s.destStack.top().key = fmt.Sprintf("[%v]", dest) -} - -// Formats src & dest as map keys for printing. -func (s *scope) setKeys(src, dest interface{}) { - s.srcStack.top().key = fmt.Sprintf(`["%v"]`, src) - s.destStack.top().key = fmt.Sprintf(`["%v"]`, dest) -} - -// Convert continues a conversion. -func (s *scope) Convert(src, dest interface{}, flags FieldMatchingFlags) error { - return s.converter.Convert(src, dest, flags, s.meta) -} - -// DefaultConvert continues a conversion, performing a default conversion (no conversion func) -// for the current stack frame. -func (s *scope) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags) error { - return s.converter.DefaultConvert(src, dest, flags, s.meta) -} - -// SrcTag returns the tag of the struct containing the current source item, if any. -func (s *scope) SrcTag() reflect.StructTag { - return s.srcStack.top().tag -} - -// DestTag returns the tag of the struct containing the current dest item, if any. -func (s *scope) DestTag() reflect.StructTag { - return s.destStack.top().tag -} - -// Flags returns the flags with which the current conversion was started. -func (s *scope) Flags() FieldMatchingFlags { - return s.flags -} - -// Meta returns the meta object that was originally passed to Convert. -func (s *scope) Meta() *Meta { - return s.meta -} - -// describe prints the path to get to the current (source, dest) values. -func (s *scope) describe() (src, dest string) { - return s.srcStack.describe(), s.destStack.describe() -} - -// error makes an error that includes information about where we were in the objects -// we were asked to convert. -func (s *scope) errorf(message string, args ...interface{}) error { - srcPath, destPath := s.describe() - where := fmt.Sprintf("converting %v to %v: ", srcPath, destPath) - return fmt.Errorf(where+message, args...) -} - -// Verifies whether a conversion function has a correct signature. -func verifyConversionFunctionSignature(ft reflect.Type) error { - if ft.Kind() != reflect.Func { - return fmt.Errorf("expected func, got: %v", ft) - } - if ft.NumIn() != 3 { - return fmt.Errorf("expected three 'in' params, got: %v", ft) - } - if ft.NumOut() != 1 { - return fmt.Errorf("expected one 'out' param, got: %v", ft) - } - if ft.In(0).Kind() != reflect.Ptr { - return fmt.Errorf("expected pointer arg for 'in' param 0, got: %v", ft) - } - if ft.In(1).Kind() != reflect.Ptr { - return fmt.Errorf("expected pointer arg for 'in' param 1, got: %v", ft) - } - scopeType := Scope(nil) - if e, a := reflect.TypeOf(&scopeType).Elem(), ft.In(2); e != a { - return fmt.Errorf("expected '%v' arg for 'in' param 2, got '%v' (%v)", e, a, ft) - } - var forErrorType error - // This convolution is necessary, otherwise TypeOf picks up on the fact - // that forErrorType is nil. - errorType := reflect.TypeOf(&forErrorType).Elem() - if ft.Out(0) != errorType { - return fmt.Errorf("expected error return, got: %v", ft) - } - return nil -} - -// RegisterConversionFunc registers a conversion func with the -// Converter. conversionFunc must take three parameters: a pointer to the input -// type, a pointer to the output type, and a conversion.Scope (which should be -// used if recursive conversion calls are desired). It must return an error. -// -// Example: -// c.RegisterConversionFunc( -// func(in *Pod, out *v1.Pod, s Scope) error { -// // conversion logic... -// return nil -// }) -// DEPRECATED: Will be removed in favor of RegisterUntypedConversionFunc -func (c *Converter) RegisterConversionFunc(conversionFunc interface{}) error { - return c.conversionFuncs.Add(conversionFunc) -} - -// Similar to RegisterConversionFunc, but registers conversion function that were -// automatically generated. -// DEPRECATED: Will be removed in favor of RegisterGeneratedUntypedConversionFunc -func (c *Converter) RegisterGeneratedConversionFunc(conversionFunc interface{}) error { - return c.generatedConversionFuncs.Add(conversionFunc) -} - -// RegisterUntypedConversionFunc registers a function that converts between a and b by passing objects of those -// types to the provided function. The function *must* accept objects of a and b - this machinery will not enforce -// any other guarantee. -func (c *Converter) RegisterUntypedConversionFunc(a, b interface{}, fn ConversionFunc) error { - return c.conversionFuncs.AddUntyped(a, b, fn) -} - -// RegisterGeneratedUntypedConversionFunc registers a function that converts between a and b by passing objects of those -// types to the provided function. The function *must* accept objects of a and b - this machinery will not enforce -// any other guarantee. -func (c *Converter) RegisterGeneratedUntypedConversionFunc(a, b interface{}, fn ConversionFunc) error { - return c.generatedConversionFuncs.AddUntyped(a, b, fn) -} - -// RegisterIgnoredConversion registers a "no-op" for conversion, where any requested -// conversion between from and to is ignored. -func (c *Converter) RegisterIgnoredConversion(from, to interface{}) error { - typeFrom := reflect.TypeOf(from) - typeTo := reflect.TypeOf(to) - if reflect.TypeOf(from).Kind() != reflect.Ptr { - return fmt.Errorf("expected pointer arg for 'from' param 0, got: %v", typeFrom) - } - if typeTo.Kind() != reflect.Ptr { - return fmt.Errorf("expected pointer arg for 'to' param 1, got: %v", typeTo) - } - c.ignoredConversions[typePair{typeFrom.Elem(), typeTo.Elem()}] = struct{}{} - return nil -} - -// RegisterInputDefaults registers a field name mapping function, used when converting -// from maps to structs. Inputs to the conversion methods are checked for this type and a mapping -// applied automatically if the input matches in. A set of default flags for the input conversion -// may also be provided, which will be used when no explicit flags are requested. -func (c *Converter) RegisterInputDefaults(in interface{}, fn FieldMappingFunc, defaultFlags FieldMatchingFlags) error { - fv := reflect.ValueOf(in) - ft := fv.Type() - if ft.Kind() != reflect.Ptr { - return fmt.Errorf("expected pointer 'in' argument, got: %v", ft) - } - c.inputFieldMappingFuncs[ft] = fn - c.inputDefaultFlags[ft] = defaultFlags - return nil -} - -// FieldMatchingFlags contains a list of ways in which struct fields could be -// copied. These constants may be | combined. -type FieldMatchingFlags int - -const ( - // Loop through destination fields, search for matching source - // field to copy it from. Source fields with no corresponding - // destination field will be ignored. If SourceToDest is - // specified, this flag is ignored. If neither is specified, - // or no flags are passed, this flag is the default. - DestFromSource FieldMatchingFlags = 0 - // Loop through source fields, search for matching dest field - // to copy it into. Destination fields with no corresponding - // source field will be ignored. - SourceToDest FieldMatchingFlags = 1 << iota - // Don't treat it as an error if the corresponding source or - // dest field can't be found. - IgnoreMissingFields - // Don't require type names to match. - AllowDifferentFieldTypeNames -) - -// IsSet returns true if the given flag or combination of flags is set. -func (f FieldMatchingFlags) IsSet(flag FieldMatchingFlags) bool { - if flag == DestFromSource { - // The bit logic doesn't work on the default value. - return f&SourceToDest != SourceToDest - } - return f&flag == flag -} - -// Convert will translate src to dest if it knows how. Both must be pointers. -// If no conversion func is registered and the default copying mechanism -// doesn't work on this type pair, an error will be returned. -// Read the comments on the various FieldMatchingFlags constants to understand -// what the 'flags' parameter does. -// 'meta' is given to allow you to pass information to conversion functions, -// it is not used by Convert() other than storing it in the scope. -// Not safe for objects with cyclic references! -func (c *Converter) Convert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error { - return c.doConversion(src, dest, flags, meta, c.convert) -} - -// DefaultConvert will translate src to dest if it knows how. Both must be pointers. -// No conversion func is used. If the default copying mechanism -// doesn't work on this type pair, an error will be returned. -// Read the comments on the various FieldMatchingFlags constants to understand -// what the 'flags' parameter does. -// 'meta' is given to allow you to pass information to conversion functions, -// it is not used by DefaultConvert() other than storing it in the scope. -// Not safe for objects with cyclic references! -func (c *Converter) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error { - return c.doConversion(src, dest, flags, meta, c.defaultConvert) -} - -type conversionFunc func(sv, dv reflect.Value, scope *scope) error - -func (c *Converter) doConversion(src, dest interface{}, flags FieldMatchingFlags, meta *Meta, f conversionFunc) error { - pair := typePair{reflect.TypeOf(src), reflect.TypeOf(dest)} - scope := &scope{ - converter: c, - flags: flags, - meta: meta, - } - if fn, ok := c.conversionFuncs.untyped[pair]; ok { - return fn(src, dest, scope) - } - if fn, ok := c.generatedConversionFuncs.untyped[pair]; ok { - return fn(src, dest, scope) - } - // TODO: consider everything past this point deprecated - we want to support only point to point top level - // conversions - - dv, err := EnforcePtr(dest) - if err != nil { - return err - } - if !dv.CanAddr() && !dv.CanSet() { - return fmt.Errorf("can't write to dest") - } - sv, err := EnforcePtr(src) - if err != nil { - return err - } - // Leave something on the stack, so that calls to struct tag getters never fail. - scope.srcStack.push(scopeStackElem{}) - scope.destStack.push(scopeStackElem{}) - return f(sv, dv, scope) -} - -// callCustom calls 'custom' with sv & dv. custom must be a conversion function. -func (c *Converter) callCustom(sv, dv, custom reflect.Value, scope *scope) error { - if !sv.CanAddr() { - sv2 := reflect.New(sv.Type()) - sv2.Elem().Set(sv) - sv = sv2 - } else { - sv = sv.Addr() - } - if !dv.CanAddr() { - if !dv.CanSet() { - return scope.errorf("can't addr or set dest.") - } - dvOrig := dv - dv := reflect.New(dvOrig.Type()) - defer func() { dvOrig.Set(dv) }() - } else { - dv = dv.Addr() - } - args := []reflect.Value{sv, dv, reflect.ValueOf(scope)} - ret := custom.Call(args)[0].Interface() - // This convolution is necessary because nil interfaces won't convert - // to errors. - if ret == nil { - return nil - } - return ret.(error) -} - -// convert recursively copies sv into dv, calling an appropriate conversion function if -// one is registered. -func (c *Converter) convert(sv, dv reflect.Value, scope *scope) error { - dt, st := dv.Type(), sv.Type() - pair := typePair{st, dt} - - // ignore conversions of this type - if _, ok := c.ignoredConversions[pair]; ok { - if c.Debug != nil { - c.Debug.Logf("Ignoring conversion of '%v' to '%v'", st, dt) - } - return nil - } - - // Convert sv to dv. - if fv, ok := c.conversionFuncs.fns[pair]; ok { - if c.Debug != nil { - c.Debug.Logf("Calling custom conversion of '%v' to '%v'", st, dt) - } - return c.callCustom(sv, dv, fv, scope) - } - if fv, ok := c.generatedConversionFuncs.fns[pair]; ok { - if c.Debug != nil { - c.Debug.Logf("Calling generated conversion of '%v' to '%v'", st, dt) - } - return c.callCustom(sv, dv, fv, scope) - } - - return c.defaultConvert(sv, dv, scope) -} - -// defaultConvert recursively copies sv into dv. no conversion function is called -// for the current stack frame (but conversion functions may be called for nested objects) -func (c *Converter) defaultConvert(sv, dv reflect.Value, scope *scope) error { - dt, st := dv.Type(), sv.Type() - - if !dv.CanSet() { - return scope.errorf("Cannot set dest. (Tried to deep copy something with unexported fields?)") - } - - if !scope.flags.IsSet(AllowDifferentFieldTypeNames) && c.nameFunc(dt) != c.nameFunc(st) { - return scope.errorf( - "type names don't match (%v, %v), and no conversion 'func (%v, %v) error' registered.", - c.nameFunc(st), c.nameFunc(dt), st, dt) - } - - switch st.Kind() { - case reflect.Map, reflect.Ptr, reflect.Slice, reflect.Interface, reflect.Struct: - // Don't copy these via assignment/conversion! - default: - // This should handle all simple types. - if st.AssignableTo(dt) { - dv.Set(sv) - return nil - } - if st.ConvertibleTo(dt) { - dv.Set(sv.Convert(dt)) - return nil - } - } - - if c.Debug != nil { - c.Debug.Logf("Trying to convert '%v' to '%v'", st, dt) - } - - scope.srcStack.push(scopeStackElem{value: sv}) - scope.destStack.push(scopeStackElem{value: dv}) - defer scope.srcStack.pop() - defer scope.destStack.pop() - - switch dv.Kind() { - case reflect.Struct: - return c.convertKV(toKVValue(sv), toKVValue(dv), scope) - case reflect.Slice: - if sv.IsNil() { - // Don't make a zero-length slice. - dv.Set(reflect.Zero(dt)) - return nil - } - dv.Set(reflect.MakeSlice(dt, sv.Len(), sv.Cap())) - for i := 0; i < sv.Len(); i++ { - scope.setIndices(i, i) - if err := c.convert(sv.Index(i), dv.Index(i), scope); err != nil { - return err - } - } - case reflect.Ptr: - if sv.IsNil() { - // Don't copy a nil ptr! - dv.Set(reflect.Zero(dt)) - return nil - } - dv.Set(reflect.New(dt.Elem())) - switch st.Kind() { - case reflect.Ptr, reflect.Interface: - return c.convert(sv.Elem(), dv.Elem(), scope) - default: - return c.convert(sv, dv.Elem(), scope) - } - case reflect.Map: - if sv.IsNil() { - // Don't copy a nil ptr! - dv.Set(reflect.Zero(dt)) - return nil - } - dv.Set(reflect.MakeMap(dt)) - for _, sk := range sv.MapKeys() { - dk := reflect.New(dt.Key()).Elem() - if err := c.convert(sk, dk, scope); err != nil { - return err - } - dkv := reflect.New(dt.Elem()).Elem() - scope.setKeys(sk.Interface(), dk.Interface()) - // TODO: sv.MapIndex(sk) may return a value with CanAddr() == false, - // because a map[string]struct{} does not allow a pointer reference. - // Calling a custom conversion function defined for the map value - // will panic. Example is PodInfo map[string]ContainerStatus. - if err := c.convert(sv.MapIndex(sk), dkv, scope); err != nil { - return err - } - dv.SetMapIndex(dk, dkv) - } - case reflect.Interface: - if sv.IsNil() { - // Don't copy a nil interface! - dv.Set(reflect.Zero(dt)) - return nil - } - tmpdv := reflect.New(sv.Elem().Type()).Elem() - if err := c.convert(sv.Elem(), tmpdv, scope); err != nil { - return err - } - dv.Set(reflect.ValueOf(tmpdv.Interface())) - return nil - default: - return scope.errorf("couldn't copy '%v' into '%v'; didn't understand types", st, dt) - } - return nil -} - -var stringType = reflect.TypeOf("") - -func toKVValue(v reflect.Value) kvValue { - switch v.Kind() { - case reflect.Struct: - return structAdaptor(v) - case reflect.Map: - if v.Type().Key().AssignableTo(stringType) { - return stringMapAdaptor(v) - } - } - - return nil -} - -// kvValue lets us write the same conversion logic to work with both maps -// and structs. Only maps with string keys make sense for this. -type kvValue interface { - // returns all keys, as a []string. - keys() []string - // Will just return "" for maps. - tagOf(key string) reflect.StructTag - // Will return the zero Value if the key doesn't exist. - value(key string) reflect.Value - // Maps require explicit setting-- will do nothing for structs. - // Returns false on failure. - confirmSet(key string, v reflect.Value) bool -} - -type stringMapAdaptor reflect.Value - -func (a stringMapAdaptor) len() int { - return reflect.Value(a).Len() -} - -func (a stringMapAdaptor) keys() []string { - v := reflect.Value(a) - keys := make([]string, v.Len()) - for i, v := range v.MapKeys() { - if v.IsNil() { - continue - } - switch t := v.Interface().(type) { - case string: - keys[i] = t - } - } - return keys -} - -func (a stringMapAdaptor) tagOf(key string) reflect.StructTag { - return "" -} - -func (a stringMapAdaptor) value(key string) reflect.Value { - return reflect.Value(a).MapIndex(reflect.ValueOf(key)) -} - -func (a stringMapAdaptor) confirmSet(key string, v reflect.Value) bool { - return true -} - -type structAdaptor reflect.Value - -func (a structAdaptor) len() int { - v := reflect.Value(a) - return v.Type().NumField() -} - -func (a structAdaptor) keys() []string { - v := reflect.Value(a) - t := v.Type() - keys := make([]string, t.NumField()) - for i := range keys { - keys[i] = t.Field(i).Name - } - return keys -} - -func (a structAdaptor) tagOf(key string) reflect.StructTag { - v := reflect.Value(a) - field, ok := v.Type().FieldByName(key) - if ok { - return field.Tag - } - return "" -} - -func (a structAdaptor) value(key string) reflect.Value { - v := reflect.Value(a) - return v.FieldByName(key) -} - -func (a structAdaptor) confirmSet(key string, v reflect.Value) bool { - return true -} - -// convertKV can convert things that consist of key/value pairs, like structs -// and some maps. -func (c *Converter) convertKV(skv, dkv kvValue, scope *scope) error { - if skv == nil || dkv == nil { - // TODO: add keys to stack to support really understandable error messages. - return fmt.Errorf("Unable to convert %#v to %#v", skv, dkv) - } - - lister := dkv - if scope.flags.IsSet(SourceToDest) { - lister = skv - } - - var mapping FieldMappingFunc - if scope.meta != nil && scope.meta.KeyNameMapping != nil { - mapping = scope.meta.KeyNameMapping - } - - for _, key := range lister.keys() { - if found, err := c.checkField(key, skv, dkv, scope); found { - if err != nil { - return err - } - continue - } - stag := skv.tagOf(key) - dtag := dkv.tagOf(key) - skey := key - dkey := key - if mapping != nil { - skey, dkey = scope.meta.KeyNameMapping(key, stag, dtag) - } - - df := dkv.value(dkey) - sf := skv.value(skey) - if !df.IsValid() || !sf.IsValid() { - switch { - case scope.flags.IsSet(IgnoreMissingFields): - // No error. - case scope.flags.IsSet(SourceToDest): - return scope.errorf("%v not present in dest", dkey) - default: - return scope.errorf("%v not present in src", skey) - } - continue - } - scope.srcStack.top().key = skey - scope.srcStack.top().tag = stag - scope.destStack.top().key = dkey - scope.destStack.top().tag = dtag - if err := c.convert(sf, df, scope); err != nil { - return err - } - } - return nil -} - -// checkField returns true if the field name matches any of the struct -// field copying rules. The error should be ignored if it returns false. -func (c *Converter) checkField(fieldName string, skv, dkv kvValue, scope *scope) (bool, error) { - replacementMade := false - if scope.flags.IsSet(DestFromSource) { - df := dkv.value(fieldName) - if !df.IsValid() { - return false, nil - } - destKey := typeNamePair{df.Type(), fieldName} - // Check each of the potential source (type, name) pairs to see if they're - // present in sv. - for _, potentialSourceKey := range c.structFieldSources[destKey] { - sf := skv.value(potentialSourceKey.fieldName) - if !sf.IsValid() { - continue - } - if sf.Type() == potentialSourceKey.fieldType { - // Both the source's name and type matched, so copy. - scope.srcStack.top().key = potentialSourceKey.fieldName - scope.destStack.top().key = fieldName - if err := c.convert(sf, df, scope); err != nil { - return true, err - } - dkv.confirmSet(fieldName, df) - replacementMade = true - } - } - return replacementMade, nil - } - - sf := skv.value(fieldName) - if !sf.IsValid() { - return false, nil - } - srcKey := typeNamePair{sf.Type(), fieldName} - // Check each of the potential dest (type, name) pairs to see if they're - // present in dv. - for _, potentialDestKey := range c.structFieldDests[srcKey] { - df := dkv.value(potentialDestKey.fieldName) - if !df.IsValid() { - continue - } - if df.Type() == potentialDestKey.fieldType { - // Both the dest's name and type matched, so copy. - scope.srcStack.top().key = fieldName - scope.destStack.top().key = potentialDestKey.fieldName - if err := c.convert(sf, df, scope); err != nil { - return true, err - } - dkv.confirmSet(potentialDestKey.fieldName, df) - replacementMade = true - } - } - return replacementMade, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/converter_test.go b/pseudo/k8s/apimachinery/pkg/conversion/converter_test.go deleted file mode 100644 index 702af92af..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/converter_test.go +++ /dev/null @@ -1,734 +0,0 @@ -/* -Copyright 2014 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 conversion - -import ( - "fmt" - "reflect" - "strconv" - "strings" - "testing" - - "github.com/google/gofuzz" - flag "github.com/spf13/pflag" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -var fuzzIters = flag.Int("fuzz-iters", 50, "How many fuzzing iterations to do.") - -// Test a weird version/kind embedding format. -type MyWeirdCustomEmbeddedVersionKindField struct { - ID string `json:"ID,omitempty"` - APIVersion string `json:"myVersionKey,omitempty"` - ObjectKind string `json:"myKindKey,omitempty"` - Z string `json:"Z,omitempty"` - Y uint64 `json:"Y,omitempty"` -} - -type TestType1 struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` - C int8 `json:"C,omitempty"` - D int16 `json:"D,omitempty"` - E int32 `json:"E,omitempty"` - F int64 `json:"F,omitempty"` - G uint `json:"G,omitempty"` - H uint8 `json:"H,omitempty"` - I uint16 `json:"I,omitempty"` - J uint32 `json:"J,omitempty"` - K uint64 `json:"K,omitempty"` - L bool `json:"L,omitempty"` - M map[string]int `json:"M,omitempty"` - N map[string]TestType2 `json:"N,omitempty"` - O *TestType2 `json:"O,omitempty"` - P []TestType2 `json:"Q,omitempty"` -} - -type TestType2 struct { - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` -} - -type ExternalTestType2 struct { - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` -} -type ExternalTestType1 struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` - C int8 `json:"C,omitempty"` - D int16 `json:"D,omitempty"` - E int32 `json:"E,omitempty"` - F int64 `json:"F,omitempty"` - G uint `json:"G,omitempty"` - H uint8 `json:"H,omitempty"` - I uint16 `json:"I,omitempty"` - J uint32 `json:"J,omitempty"` - K uint64 `json:"K,omitempty"` - L bool `json:"L,omitempty"` - M map[string]int `json:"M,omitempty"` - N map[string]ExternalTestType2 `json:"N,omitempty"` - O *ExternalTestType2 `json:"O,omitempty"` - P []ExternalTestType2 `json:"Q,omitempty"` -} - -func testLogger(t *testing.T) DebugLogger { - // We don't set logger to eliminate rubbish logs in tests. - // If you want to switch it, simply switch it to: "return t" - return nil -} - -func TestConverter_byteSlice(t *testing.T) { - c := NewConverter(DefaultNameFunc) - src := []byte{1, 2, 3} - dest := []byte{} - err := c.Convert(&src, &dest, 0, nil) - if err != nil { - t.Fatalf("expected no error") - } - if e, a := src, dest; !reflect.DeepEqual(e, a) { - t.Errorf("expected %#v, got %#v", e, a) - } -} - -func TestConverter_MismatchedTypes(t *testing.T) { - c := NewConverter(DefaultNameFunc) - - err := c.RegisterConversionFunc( - func(in *[]string, out *int, s Scope) error { - if str, err := strconv.Atoi((*in)[0]); err != nil { - return err - } else { - *out = str - return nil - } - }, - ) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - - src := []string{"5"} - var dest *int - err = c.Convert(&src, &dest, 0, nil) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if e, a := 5, *dest; e != a { - t.Errorf("expected %#v, got %#v", e, a) - } -} - -func TestConverter_DefaultConvert(t *testing.T) { - type A struct { - Foo string - Baz int - } - type B struct { - Bar string - Baz int - } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - c.nameFunc = func(t reflect.Type) string { return "MyType" } - - // Ensure conversion funcs can call DefaultConvert to get default behavior, - // then fixup remaining fields manually - err := c.RegisterConversionFunc(func(in *A, out *B, s Scope) error { - if err := s.DefaultConvert(in, out, IgnoreMissingFields); err != nil { - return err - } - out.Bar = in.Foo - return nil - }) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - - x := A{"hello, intrepid test reader!", 3} - y := B{} - - err = c.Convert(&x, &y, 0, nil) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - if e, a := x.Foo, y.Bar; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := x.Baz, y.Baz; e != a { - t.Errorf("expected %v, got %v", e, a) - } -} - -func TestConverter_DeepCopy(t *testing.T) { - type A struct { - Foo *string - Bar []string - Baz interface{} - Qux map[string]string - } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - - foo, baz := "foo", "baz" - x := A{ - Foo: &foo, - Bar: []string{"bar"}, - Baz: &baz, - Qux: map[string]string{"qux": "qux"}, - } - y := A{} - - if err := c.Convert(&x, &y, 0, nil); err != nil { - t.Fatalf("unexpected error %v", err) - } - *x.Foo = "foo2" - x.Bar[0] = "bar2" - *x.Baz.(*string) = "baz2" - x.Qux["qux"] = "qux2" - if e, a := *x.Foo, *y.Foo; e == a { - t.Errorf("expected difference between %v and %v", e, a) - } - if e, a := x.Bar, y.Bar; reflect.DeepEqual(e, a) { - t.Errorf("expected difference between %v and %v", e, a) - } - if e, a := *x.Baz.(*string), *y.Baz.(*string); e == a { - t.Errorf("expected difference between %v and %v", e, a) - } - if e, a := x.Qux, y.Qux; reflect.DeepEqual(e, a) { - t.Errorf("expected difference between %v and %v", e, a) - } -} - -func TestConverter_CallsRegisteredFunctions(t *testing.T) { - type A struct { - Foo string - Baz int - } - type B struct { - Bar string - Baz int - } - type C struct{} - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - err := c.RegisterConversionFunc(func(in *A, out *B, s Scope) error { - out.Bar = in.Foo - return s.Convert(&in.Baz, &out.Baz, 0) - }) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - err = c.RegisterConversionFunc(func(in *B, out *A, s Scope) error { - out.Foo = in.Bar - return s.Convert(&in.Baz, &out.Baz, 0) - }) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - - x := A{"hello, intrepid test reader!", 3} - y := B{} - - err = c.Convert(&x, &y, 0, nil) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - if e, a := x.Foo, y.Bar; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := x.Baz, y.Baz; e != a { - t.Errorf("expected %v, got %v", e, a) - } - - z := B{"all your test are belong to us", 42} - w := A{} - - err = c.Convert(&z, &w, 0, nil) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - if e, a := z.Bar, w.Foo; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := z.Baz, w.Baz; e != a { - t.Errorf("expected %v, got %v", e, a) - } - - err = c.RegisterConversionFunc(func(in *A, out *C, s Scope) error { - return fmt.Errorf("C can't store an A, silly") - }) - if err != nil { - t.Fatalf("unexpected error %v", err) - } - err = c.Convert(&A{}, &C{}, 0, nil) - if err == nil { - t.Errorf("unexpected non-error") - } -} - -func TestConverter_IgnoredConversion(t *testing.T) { - type A struct{} - type B struct{} - - count := 0 - c := NewConverter(DefaultNameFunc) - if err := c.RegisterConversionFunc(func(in *A, out *B, s Scope) error { - count++ - return nil - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - if err := c.RegisterIgnoredConversion(&A{}, &B{}); err != nil { - t.Fatal(err) - } - a := A{} - b := B{} - if err := c.Convert(&a, &b, 0, nil); err != nil { - t.Errorf("%v", err) - } - if count != 0 { - t.Errorf("unexpected number of conversion invocations") - } -} - -func TestConverter_IgnoredConversionNested(t *testing.T) { - type C string - type A struct { - C C - } - type B struct { - C C - } - - c := NewConverter(DefaultNameFunc) - typed := C("") - if err := c.RegisterIgnoredConversion(&typed, &typed); err != nil { - t.Fatal(err) - } - a := A{C: C("test")} - b := B{C: C("other")} - if err := c.Convert(&a, &b, AllowDifferentFieldTypeNames, nil); err != nil { - t.Errorf("%v", err) - } - if b.C != C("other") { - t.Errorf("expected no conversion of field C: %#v", b) - } -} - -func TestConverter_GeneratedConversionOverridden(t *testing.T) { - type A struct{} - type B struct{} - c := NewConverter(DefaultNameFunc) - if err := c.RegisterConversionFunc(func(in *A, out *B, s Scope) error { - return nil - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - if err := c.RegisterGeneratedConversionFunc(func(in *A, out *B, s Scope) error { - return fmt.Errorf("generated function should be overridden") - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - - a := A{} - b := B{} - if err := c.Convert(&a, &b, 0, nil); err != nil { - t.Errorf("%v", err) - } -} - -func TestConverter_WithConversionOverridden(t *testing.T) { - type A struct{} - type B struct{} - c := NewConverter(DefaultNameFunc) - if err := c.RegisterConversionFunc(func(in *A, out *B, s Scope) error { - return fmt.Errorf("conversion function should be overridden") - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - if err := c.RegisterGeneratedConversionFunc(func(in *A, out *B, s Scope) error { - return fmt.Errorf("generated function should be overridden") - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - - ext := NewConversionFuncs() - ext.Add(func(in *A, out *B, s Scope) error { - return nil - }) - newc := c.WithConversions(ext) - - a := A{} - b := B{} - if err := c.Convert(&a, &b, 0, nil); err == nil || err.Error() != "conversion function should be overridden" { - t.Errorf("unexpected error: %v", err) - } - if err := newc.Convert(&a, &b, 0, nil); err != nil { - t.Errorf("%v", err) - } -} - -func TestConverter_MapsStringArrays(t *testing.T) { - type A struct { - Foo string - Baz int - Other string - } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - if err := c.RegisterConversionFunc(func(input *[]string, out *string, s Scope) error { - if len(*input) == 0 { - *out = "" - } - *out = (*input)[0] - return nil - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - - x := map[string][]string{ - "Foo": {"bar"}, - "Baz": {"1"}, - "Other": {"", "test"}, - "other": {"wrong"}, - } - y := A{"test", 2, "something"} - - if err := c.Convert(&x, &y, AllowDifferentFieldTypeNames, nil); err == nil { - t.Error("unexpected non-error") - } - - if err := c.RegisterConversionFunc(func(input *[]string, out *int, s Scope) error { - if len(*input) == 0 { - *out = 0 - } - str := (*input)[0] - i, err := strconv.Atoi(str) - if err != nil { - return err - } - *out = i - return nil - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - - if err := c.Convert(&x, &y, AllowDifferentFieldTypeNames, nil); err != nil { - t.Fatalf("unexpected error %v", err) - } - if !reflect.DeepEqual(y, A{"bar", 1, ""}) { - t.Errorf("unexpected result: %#v", y) - } -} - -func TestConverter_MapsStringArraysWithMappingKey(t *testing.T) { - type A struct { - Foo string `json:"test"` - Baz int - Other string - } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - if err := c.RegisterConversionFunc(func(input *[]string, out *string, s Scope) error { - if len(*input) == 0 { - *out = "" - } - *out = (*input)[0] - return nil - }); err != nil { - t.Fatalf("unexpected error %v", err) - } - - x := map[string][]string{ - "Foo": {"bar"}, - "test": {"baz"}, - } - y := A{"", 0, ""} - - if err := c.Convert(&x, &y, AllowDifferentFieldTypeNames|IgnoreMissingFields, &Meta{}); err != nil { - t.Fatalf("unexpected error %v", err) - } - if !reflect.DeepEqual(y, A{"bar", 0, ""}) { - t.Errorf("unexpected result: %#v", y) - } - - mapping := func(key string, sourceTag, destTag reflect.StructTag) (source string, dest string) { - if s := destTag.Get("json"); len(s) > 0 { - return strings.SplitN(s, ",", 2)[0], key - } - return key, key - } - - if err := c.Convert(&x, &y, AllowDifferentFieldTypeNames|IgnoreMissingFields, &Meta{KeyNameMapping: mapping}); err != nil { - t.Fatalf("unexpected error %v", err) - } - if !reflect.DeepEqual(y, A{"baz", 0, ""}) { - t.Errorf("unexpected result: %#v", y) - } -} - -func TestConverter_fuzz(t *testing.T) { - // Use the same types from the scheme test. - table := []struct { - from, to, check interface{} - }{ - {&TestType1{}, &ExternalTestType1{}, &TestType1{}}, - {&ExternalTestType1{}, &TestType1{}, &ExternalTestType1{}}, - } - - f := fuzz.New().NilChance(.5).NumElements(0, 100) - c := NewConverter(DefaultNameFunc) - c.nameFunc = func(t reflect.Type) string { - // Hide the fact that we don't have separate packages for these things. - return map[reflect.Type]string{ - reflect.TypeOf(TestType1{}): "TestType1", - reflect.TypeOf(ExternalTestType1{}): "TestType1", - reflect.TypeOf(TestType2{}): "TestType2", - reflect.TypeOf(ExternalTestType2{}): "TestType2", - }[t] - } - c.Debug = testLogger(t) - - for i, item := range table { - for j := 0; j < *fuzzIters; j++ { - f.Fuzz(item.from) - err := c.Convert(item.from, item.to, 0, nil) - if err != nil { - t.Errorf("(%v, %v): unexpected error: %v", i, j, err) - continue - } - err = c.Convert(item.to, item.check, 0, nil) - if err != nil { - t.Errorf("(%v, %v): unexpected error: %v", i, j, err) - continue - } - if e, a := item.from, item.check; !reflect.DeepEqual(e, a) { - t.Errorf("(%v, %v): unexpected diff: %v", i, j, diff.ObjectDiff(e, a)) - } - } - } -} - -func TestConverter_MapElemAddr(t *testing.T) { - type Foo struct { - A map[int]int - } - type Bar struct { - A map[string]string - } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - err := c.RegisterConversionFunc( - func(in *int, out *string, s Scope) error { - *out = fmt.Sprintf("%v", *in) - return nil - }, - ) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - err = c.RegisterConversionFunc( - func(in *string, out *int, s Scope) error { - if str, err := strconv.Atoi(*in); err != nil { - return err - } else { - *out = str - return nil - } - }, - ) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - f := fuzz.New().NilChance(0).NumElements(3, 3) - first := Foo{} - second := Bar{} - f.Fuzz(&first) - err = c.Convert(&first, &second, AllowDifferentFieldTypeNames, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - third := Foo{} - err = c.Convert(&second, &third, AllowDifferentFieldTypeNames, nil) - if e, a := first, third; !reflect.DeepEqual(e, a) { - t.Errorf("Unexpected diff: %v", diff.ObjectDiff(e, a)) - } -} - -func TestConverter_tags(t *testing.T) { - type Foo struct { - A string `test:"foo"` - } - type Bar struct { - A string `test:"bar"` - } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - err := c.RegisterConversionFunc( - func(in *string, out *string, s Scope) error { - if e, a := "foo", s.SrcTag().Get("test"); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "bar", s.DestTag().Get("test"); e != a { - t.Errorf("expected %v, got %v", e, a) - } - return nil - }, - ) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - err = c.Convert(&Foo{}, &Bar{}, AllowDifferentFieldTypeNames, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } -} - -func TestConverter_meta(t *testing.T) { - type Foo struct{ A string } - type Bar struct{ A string } - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - checks := 0 - err := c.RegisterConversionFunc( - func(in *Foo, out *Bar, s Scope) error { - if s.Meta() == nil { - t.Errorf("Meta did not get passed!") - } - checks++ - s.Convert(&in.A, &out.A, 0) - return nil - }, - ) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - err = c.RegisterConversionFunc( - func(in *string, out *string, s Scope) error { - if s.Meta() == nil { - t.Errorf("Meta did not get passed a second time!") - } - checks++ - return nil - }, - ) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - err = c.Convert(&Foo{}, &Bar{}, 0, &Meta{}) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if checks != 2 { - t.Errorf("Registered functions did not get called.") - } -} - -func TestConverter_flags(t *testing.T) { - type Foo struct{ A string } - type Bar struct{ A string } - table := []struct { - from, to interface{} - flags FieldMatchingFlags - shouldSucceed bool - }{ - // Check that DestFromSource allows extra fields only in source. - { - from: &struct{ A string }{}, - to: &struct{ A, B string }{}, - flags: DestFromSource, - shouldSucceed: false, - }, { - from: &struct{ A, B string }{}, - to: &struct{ A string }{}, - flags: DestFromSource, - shouldSucceed: true, - }, - - // Check that SourceToDest allows for extra fields only in dest. - { - from: &struct{ A string }{}, - to: &struct{ A, B string }{}, - flags: SourceToDest, - shouldSucceed: true, - }, { - from: &struct{ A, B string }{}, - to: &struct{ A string }{}, - flags: SourceToDest, - shouldSucceed: false, - }, - - // Check that IgnoreMissingFields makes the above failure cases pass. - { - from: &struct{ A string }{}, - to: &struct{ A, B string }{}, - flags: DestFromSource | IgnoreMissingFields, - shouldSucceed: true, - }, { - from: &struct{ A, B string }{}, - to: &struct{ A string }{}, - flags: SourceToDest | IgnoreMissingFields, - shouldSucceed: true, - }, - - // Check that the field type name must match unless - // AllowDifferentFieldTypeNames is specified. - { - from: &struct{ A, B Foo }{}, - to: &struct{ A Bar }{}, - flags: DestFromSource, - shouldSucceed: false, - }, { - from: &struct{ A Foo }{}, - to: &struct{ A, B Bar }{}, - flags: SourceToDest, - shouldSucceed: false, - }, { - from: &struct{ A, B Foo }{}, - to: &struct{ A Bar }{}, - flags: DestFromSource | AllowDifferentFieldTypeNames, - shouldSucceed: true, - }, { - from: &struct{ A Foo }{}, - to: &struct{ A, B Bar }{}, - flags: SourceToDest | AllowDifferentFieldTypeNames, - shouldSucceed: true, - }, - } - f := fuzz.New().NilChance(.5).NumElements(0, 100) - c := NewConverter(DefaultNameFunc) - c.Debug = testLogger(t) - - for i, item := range table { - for j := 0; j < *fuzzIters; j++ { - f.Fuzz(item.from) - err := c.Convert(item.from, item.to, item.flags, nil) - if item.shouldSucceed && err != nil { - t.Errorf("(%v, %v): unexpected error: %v", i, j, err) - continue - } - if !item.shouldSucceed && err == nil { - t.Errorf("(%v, %v): unexpected non-error", i, j) - continue - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/deep_equal.go b/pseudo/k8s/apimachinery/pkg/conversion/deep_equal.go deleted file mode 100644 index 65f54f8ac..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/deep_equal.go +++ /dev/null @@ -1,36 +0,0 @@ -/* -Copyright 2015 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 conversion - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/third_party/forked/golang/reflect" -) - -// The code for this type must be located in third_party, since it forks from -// go std lib. But for convenience, we expose the type here, too. -type Equalities struct { - reflect.Equalities -} - -// For convenience, panics on errors -func EqualitiesOrDie(funcs ...interface{}) Equalities { - e := Equalities{reflect.Equalities{}} - if err := e.AddFuncs(funcs...); err != nil { - panic(err) - } - return e -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/doc.go b/pseudo/k8s/apimachinery/pkg/conversion/doc.go deleted file mode 100644 index d1f8eae14..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/doc.go +++ /dev/null @@ -1,24 +0,0 @@ -/* -Copyright 2014 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 conversion provides go object versioning. -// -// Specifically, conversion provides a way for you to define multiple versions -// of the same object. You may write functions which implement conversion logic, -// but for the fields which did not change, copying is automated. This makes it -// easy to modify the structures you use in memory without affecting the format -// you store on disk or respond to in your external API calls. -package conversion // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" diff --git a/pseudo/k8s/apimachinery/pkg/conversion/helper.go b/pseudo/k8s/apimachinery/pkg/conversion/helper.go deleted file mode 100644 index 4ebc1ebc5..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/helper.go +++ /dev/null @@ -1,39 +0,0 @@ -/* -Copyright 2014 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 conversion - -import ( - "fmt" - "reflect" -) - -// EnforcePtr ensures that obj is a pointer of some sort. Returns a reflect.Value -// of the dereferenced pointer, ensuring that it is settable/addressable. -// Returns an error if this is not possible. -func EnforcePtr(obj interface{}) (reflect.Value, error) { - v := reflect.ValueOf(obj) - if v.Kind() != reflect.Ptr { - if v.Kind() == reflect.Invalid { - return reflect.Value{}, fmt.Errorf("expected pointer, but got invalid kind") - } - return reflect.Value{}, fmt.Errorf("expected pointer, but got %v type", v.Type()) - } - if v.IsNil() { - return reflect.Value{}, fmt.Errorf("expected pointer, but got nil") - } - return v.Elem(), nil -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/helper_test.go b/pseudo/k8s/apimachinery/pkg/conversion/helper_test.go deleted file mode 100644 index 8c61a30a8..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/helper_test.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -Copyright 2014 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 conversion - -import "testing" - -func TestInvalidPtrValueKind(t *testing.T) { - var simple interface{} - switch obj := simple.(type) { - default: - _, err := EnforcePtr(obj) - if err == nil { - t.Errorf("Expected error on invalid kind") - } - } -} - -func TestEnforceNilPtr(t *testing.T) { - var nilPtr *struct{} - _, err := EnforcePtr(nilPtr) - if err == nil { - t.Errorf("Expected error on nil pointer") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert.go b/pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert.go deleted file mode 100644 index 2f0dd0074..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Copyright 2014 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 queryparams - -import ( - "fmt" - "net/url" - "reflect" - "strings" -) - -// Marshaler converts an object to a query parameter string representation -type Marshaler interface { - MarshalQueryParameter() (string, error) -} - -// Unmarshaler converts a string representation to an object -type Unmarshaler interface { - UnmarshalQueryParameter(string) error -} - -func jsonTag(field reflect.StructField) (string, bool) { - structTag := field.Tag.Get("json") - if len(structTag) == 0 { - return "", false - } - parts := strings.Split(structTag, ",") - tag := parts[0] - if tag == "-" { - tag = "" - } - omitempty := false - parts = parts[1:] - for _, part := range parts { - if part == "omitempty" { - omitempty = true - break - } - } - return tag, omitempty -} - -func isPointerKind(kind reflect.Kind) bool { - return kind == reflect.Ptr -} - -func isStructKind(kind reflect.Kind) bool { - return kind == reflect.Struct -} - -func isValueKind(kind reflect.Kind) bool { - switch kind { - case reflect.String, reflect.Bool, reflect.Int, reflect.Int8, reflect.Int16, - reflect.Int32, reflect.Int64, reflect.Uint, reflect.Uint8, - reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Float32, - reflect.Float64, reflect.Complex64, reflect.Complex128: - return true - default: - return false - } -} - -func zeroValue(value reflect.Value) bool { - return reflect.DeepEqual(reflect.Zero(value.Type()).Interface(), value.Interface()) -} - -func customMarshalValue(value reflect.Value) (reflect.Value, bool) { - // Return unless we implement a custom query marshaler - if !value.CanInterface() { - return reflect.Value{}, false - } - - marshaler, ok := value.Interface().(Marshaler) - if !ok { - if !isPointerKind(value.Kind()) && value.CanAddr() { - marshaler, ok = value.Addr().Interface().(Marshaler) - if !ok { - return reflect.Value{}, false - } - } else { - return reflect.Value{}, false - } - } - - // Don't invoke functions on nil pointers - // If the type implements MarshalQueryParameter, AND the tag is not omitempty, AND the value is a nil pointer, "" seems like a reasonable response - if isPointerKind(value.Kind()) && zeroValue(value) { - return reflect.ValueOf(""), true - } - - // Get the custom marshalled value - v, err := marshaler.MarshalQueryParameter() - if err != nil { - return reflect.Value{}, false - } - return reflect.ValueOf(v), true -} - -func addParam(values url.Values, tag string, omitempty bool, value reflect.Value) { - if omitempty && zeroValue(value) { - return - } - val := "" - iValue := fmt.Sprintf("%v", value.Interface()) - - if iValue != "" { - val = iValue - } - values.Add(tag, val) -} - -func addListOfParams(values url.Values, tag string, omitempty bool, list reflect.Value) { - for i := 0; i < list.Len(); i++ { - addParam(values, tag, omitempty, list.Index(i)) - } -} - -// Convert takes an object and converts it to a url.Values object using JSON tags as -// parameter names. Only top-level simple values, arrays, and slices are serialized. -// Embedded structs, maps, etc. will not be serialized. -func Convert(obj interface{}) (url.Values, error) { - result := url.Values{} - if obj == nil { - return result, nil - } - var sv reflect.Value - switch reflect.TypeOf(obj).Kind() { - case reflect.Ptr, reflect.Interface: - sv = reflect.ValueOf(obj).Elem() - default: - return nil, fmt.Errorf("expecting a pointer or interface") - } - st := sv.Type() - if !isStructKind(st.Kind()) { - return nil, fmt.Errorf("expecting a pointer to a struct") - } - - // Check all object fields - convertStruct(result, st, sv) - - return result, nil -} - -func convertStruct(result url.Values, st reflect.Type, sv reflect.Value) { - for i := 0; i < st.NumField(); i++ { - field := sv.Field(i) - tag, omitempty := jsonTag(st.Field(i)) - if len(tag) == 0 { - continue - } - ft := field.Type() - - kind := ft.Kind() - if isPointerKind(kind) { - ft = ft.Elem() - kind = ft.Kind() - if !field.IsNil() { - field = reflect.Indirect(field) - // If the field is non-nil, it should be added to params - // and the omitempty should be overwite to false - omitempty = false - } - } - - switch { - case isValueKind(kind): - addParam(result, tag, omitempty, field) - case kind == reflect.Array || kind == reflect.Slice: - if isValueKind(ft.Elem().Kind()) { - addListOfParams(result, tag, omitempty, field) - } - case isStructKind(kind) && !(zeroValue(field) && omitempty): - if marshalValue, ok := customMarshalValue(field); ok { - addParam(result, tag, omitempty, marshalValue) - } else { - convertStruct(result, ft, field) - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert_test.go b/pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert_test.go deleted file mode 100644 index c06994ae1..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/queryparams/convert_test.go +++ /dev/null @@ -1,219 +0,0 @@ -/* -Copyright 2014 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 queryparams_test - -import ( - "net/url" - "reflect" - "testing" - "time" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion/queryparams" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -type namedString string -type namedBool bool - -type bar struct { - Float1 float32 `json:"float1"` - Float2 float64 `json:"float2"` - Int1 int64 `json:"int1,omitempty"` - Int2 int32 `json:"int2,omitempty"` - Int3 int16 `json:"int3,omitempty"` - Str1 string `json:"str1,omitempty"` - Ignored int - Ignored2 string -} - -func (obj *bar) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } - -type foo struct { - Str string `json:"str"` - Integer int `json:"integer,omitempty"` - Slice []string `json:"slice,omitempty"` - Boolean bool `json:"boolean,omitempty"` - NamedStr namedString `json:"namedStr,omitempty"` - NamedBool namedBool `json:"namedBool,omitempty"` - Foobar bar `json:"foobar,omitempty"` - Testmap map[string]string `json:"testmap,omitempty"` -} - -func (obj *foo) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } - -type baz struct { - Ptr *int `json:"ptr"` - Bptr *bool `json:"bptr,omitempty"` -} - -func (obj *baz) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } - -// childStructs tests some of the types we serialize to query params for log API calls -// notably, the nested time struct -type childStructs struct { - Container string `json:"container,omitempty"` - Follow bool `json:"follow,omitempty"` - Previous bool `json:"previous,omitempty"` - SinceSeconds *int64 `json:"sinceSeconds,omitempty"` - TailLines *int64 `json:"tailLines,omitempty"` - SinceTime *metav1.Time `json:"sinceTime,omitempty"` - EmptyTime *metav1.Time `json:"emptyTime"` - NonPointerTime metav1.Time `json:"nonPointerTime"` -} - -func (obj *childStructs) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } - -func validateResult(t *testing.T, input interface{}, actual, expected url.Values) { - local := url.Values{} - for k, v := range expected { - local[k] = v - } - for k, v := range actual { - if ev, ok := local[k]; !ok || !reflect.DeepEqual(ev, v) { - if !ok { - t.Errorf("%#v: actual value key %s not found in expected map", input, k) - } else { - t.Errorf("%#v: values don't match: actual: %#v, expected: %#v", input, v, ev) - } - } - delete(local, k) - } - if len(local) > 0 { - t.Errorf("%#v: expected map has keys that were not found in actual map: %#v", input, local) - } -} - -func TestConvert(t *testing.T) { - sinceSeconds := int64(123) - tailLines := int64(0) - sinceTime := metav1.Date(2000, 1, 1, 12, 34, 56, 0, time.UTC) - - tests := []struct { - input interface{} - expected url.Values - }{ - { - input: &foo{ - Str: "hello", - }, - expected: url.Values{"str": {"hello"}}, - }, - { - input: &foo{ - Str: "test string", - Slice: []string{"one", "two", "three"}, - Integer: 234, - Boolean: true, - }, - expected: url.Values{"str": {"test string"}, "slice": {"one", "two", "three"}, "integer": {"234"}, "boolean": {"true"}}, - }, - { - input: &foo{ - Str: "named types", - NamedStr: "value1", - NamedBool: true, - }, - expected: url.Values{"str": {"named types"}, "namedStr": {"value1"}, "namedBool": {"true"}}, - }, - { - input: &foo{ - Str: "don't ignore embedded struct", - Foobar: bar{ - Float1: 5.0, - }, - }, - expected: url.Values{"str": {"don't ignore embedded struct"}, "float1": {"5"}, "float2": {"0"}}, - }, - { - // Ignore untagged fields - input: &bar{ - Float1: 23.5, - Float2: 100.7, - Int1: 1, - Int2: 2, - Int3: 3, - Ignored: 1, - Ignored2: "ignored", - }, - expected: url.Values{"float1": {"23.5"}, "float2": {"100.7"}, "int1": {"1"}, "int2": {"2"}, "int3": {"3"}}, - }, - { - // include fields that are not tagged omitempty - input: &foo{ - NamedStr: "named str", - }, - expected: url.Values{"str": {""}, "namedStr": {"named str"}}, - }, - { - input: &baz{ - Ptr: intp(5), - Bptr: boolp(true), - }, - expected: url.Values{"ptr": {"5"}, "bptr": {"true"}}, - }, - { - input: &baz{ - Bptr: boolp(true), - }, - expected: url.Values{"ptr": {""}, "bptr": {"true"}}, - }, - { - input: &baz{ - Ptr: intp(5), - }, - expected: url.Values{"ptr": {"5"}}, - }, - { - input: &childStructs{ - Container: "mycontainer", - Follow: true, - Previous: true, - SinceSeconds: &sinceSeconds, - TailLines: nil, - SinceTime: &sinceTime, // test a custom marshaller - EmptyTime: nil, // test a nil custom marshaller without omitempty - NonPointerTime: sinceTime, - }, - expected: url.Values{"container": {"mycontainer"}, "follow": {"true"}, "previous": {"true"}, "sinceSeconds": {"123"}, "sinceTime": {"2000-01-01T12:34:56Z"}, "emptyTime": {""}, "nonPointerTime": {"2000-01-01T12:34:56Z"}}, - }, - { - input: &childStructs{ - Container: "mycontainer", - Follow: true, - Previous: true, - SinceSeconds: &sinceSeconds, - TailLines: &tailLines, - SinceTime: nil, // test a nil custom marshaller with omitempty - NonPointerTime: sinceTime, - }, - expected: url.Values{"container": {"mycontainer"}, "follow": {"true"}, "previous": {"true"}, "sinceSeconds": {"123"}, "tailLines": {"0"}, "emptyTime": {""}, "nonPointerTime": {"2000-01-01T12:34:56Z"}}, - }, - } - - for _, test := range tests { - result, err := queryparams.Convert(test.input) - if err != nil { - t.Errorf("Unexpected error while converting %#v: %v", test.input, err) - } - validateResult(t, test.input, result, test.expected) - } -} - -func intp(n int) *int { return &n } - -func boolp(b bool) *bool { return &b } diff --git a/pseudo/k8s/apimachinery/pkg/conversion/queryparams/doc.go b/pseudo/k8s/apimachinery/pkg/conversion/queryparams/doc.go deleted file mode 100644 index 21e2a5912..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/queryparams/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2014 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 queryparams provides conversion from versioned -// runtime objects to URL query values -package queryparams // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion/queryparams" diff --git a/pseudo/k8s/apimachinery/pkg/conversion/unstructured/unstructured_conversion_test.go b/pseudo/k8s/apimachinery/pkg/conversion/unstructured/unstructured_conversion_test.go deleted file mode 100644 index 823863abd..000000000 --- a/pseudo/k8s/apimachinery/pkg/conversion/unstructured/unstructured_conversion_test.go +++ /dev/null @@ -1,468 +0,0 @@ -/* -Copyright 2019 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 test - -import ( - "fmt" - "reflect" - "strings" - "testing" - - "github.com/stretchr/testify/assert" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - testapigroupv1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/test" -) - -func TestObjectToUnstructuredConversion(t *testing.T) { - scheme, _ := test.TestScheme() - testCases := []struct { - name string - objectToConvert runtime.Object - expectedErr error - expectedConvertedUnstructured *unstructured.Unstructured - }{ - { - name: "convert nil object to unstructured should fail", - objectToConvert: nil, - expectedErr: fmt.Errorf("unable to convert object type to Unstructured, must be a runtime.Object"), - expectedConvertedUnstructured: &unstructured.Unstructured{}, - }, - { - name: "convert versioned empty object to unstructured should work", - objectToConvert: &testapigroupv1.Carp{}, - expectedConvertedUnstructured: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - }, - "spec": map[string]interface{}{}, - "status": map[string]interface{}{}, - }, - }, - }, - { - name: "convert valid versioned object to unstructured should work", - objectToConvert: &testapigroupv1.Carp{ - ObjectMeta: metav1.ObjectMeta{ - Name: "noxu", - }, - Spec: testapigroupv1.CarpSpec{ - Hostname: "example.com", - }, - }, - expectedConvertedUnstructured: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - }, - { - name: "convert hub-versioned object to unstructured should fail", - objectToConvert: &testapigroup.Carp{}, - expectedErr: fmt.Errorf("unable to convert the internal object type *testapigroup.Carp to Unstructured without providing a preferred version to convert to"), - }, - } - for _, testCase := range testCases { - t.Run(testCase.name, func(t *testing.T) { - outUnstructured := &unstructured.Unstructured{} - err := scheme.Convert(testCase.objectToConvert, outUnstructured, nil) - if err != nil { - assert.Equal(t, testCase.expectedErr, err) - return - } - assert.Equal(t, testCase.expectedConvertedUnstructured, outUnstructured) - }) - } -} - -func TestUnstructuredToObjectConversion(t *testing.T) { - scheme, _ := test.TestScheme() - testCases := []struct { - name string - unstructuredToConvert *unstructured.Unstructured - convertingObject runtime.Object - expectPanic bool - expectedErrFunc func(err error) bool - expectedConvertedObject runtime.Object - }{ - { - name: "convert empty unstructured w/o gvk to versioned object should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{}, - }, - convertingObject: &testapigroupv1.Carp{}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewMissingKindErr("unstructured object has no kind")) - }, - }, - { - name: "convert empty versioned unstructured to versioned object should work", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - }, - }, - convertingObject: &testapigroupv1.Carp{}, - expectedConvertedObject: &testapigroupv1.Carp{}, - }, - { - name: "convert empty unstructured w/o gvk to versioned object should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{}, - }, - convertingObject: &testapigroupv1.Carp{}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewMissingKindErr("unstructured object has no kind")) - }, - }, - { - name: "convert valid versioned unstructured to versioned object should work", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - convertingObject: &testapigroupv1.Carp{}, - expectedConvertedObject: &testapigroupv1.Carp{ - ObjectMeta: metav1.ObjectMeta{ - Name: "noxu", - }, - Spec: testapigroupv1.CarpSpec{ - Hostname: "example.com", - }, - }, - }, - { - name: "convert valid versioned unstructured to hub-versioned object should work", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - convertingObject: &testapigroup.Carp{}, - expectedConvertedObject: &testapigroup.Carp{ - ObjectMeta: metav1.ObjectMeta{ - Name: "noxu", - }, - Spec: testapigroup.CarpSpec{ - Hostname: "example.com", - }, - }, - }, - { - name: "convert unexisting-versioned unstructured to hub-versioned object should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v9", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - convertingObject: &testapigroup.Carp{}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewNotRegisteredGVKErrForTarget( - scheme.Name(), - schema.GroupVersionKind{Group: "", Version: "v9", Kind: "Carp"}, - nil, - )) - }, - }, - { - name: "convert valid versioned unstructured to object w/ a mismatching kind should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - convertingObject: &metav1.CreateOptions{}, - expectedErrFunc: func(err error) bool { - return strings.HasPrefix(err.Error(), "converting (v1.Carp) to (v1.CreateOptions):") - }, - }, - } - for _, testCase := range testCases { - t.Run(testCase.name, func(t *testing.T) { - defer func() { - v := recover() - assert.Equal(t, testCase.expectPanic, v != nil, "unexpected panic") - }() - outObject := testCase.convertingObject.DeepCopyObject() - // Convert by specifying destination object - err := scheme.Convert(testCase.unstructuredToConvert, outObject, nil) - if err != nil { - if testCase.expectedErrFunc != nil { - if !testCase.expectedErrFunc(err) { - t.Errorf("error mismatched: %v", err) - } - } - return - } - assert.Equal(t, testCase.expectedConvertedObject, outObject) - }) - } -} - -func TestUnstructuredToGVConversion(t *testing.T) { - scheme, _ := test.TestScheme() - // HACK: registering fake internal/v1beta1 api - scheme.AddKnownTypes(schema.GroupVersion{Group: "foo", Version: "v1beta1"}, &testapigroup.Carp{}) - scheme.AddKnownTypes(schema.GroupVersion{Group: "foo", Version: "__internal"}, &testapigroup.Carp{}) - - testCases := []struct { - name string - unstructuredToConvert *unstructured.Unstructured - targetGV schema.GroupVersion - expectPanic bool - expectedErrFunc func(err error) bool - expectedConvertedObject runtime.Object - }{ - { - name: "convert versioned unstructured to valid external version should work", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - }, - }, - targetGV: schema.GroupVersion{Group: "", Version: "v1"}, - expectedConvertedObject: &testapigroupv1.Carp{ - TypeMeta: metav1.TypeMeta{ - APIVersion: "v1", - Kind: "Carp", - }, - }, - }, - { - name: "convert hub-versioned unstructured to hub version should work", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "__internal", - "kind": "Carp", - }, - }, - targetGV: schema.GroupVersion{Group: "", Version: "__internal"}, - expectedConvertedObject: &testapigroup.Carp{}, - }, - { - name: "convert empty unstructured w/o gvk to versioned should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{}, - }, - targetGV: schema.GroupVersion{Group: "", Version: "v1"}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewMissingKindErr("unstructured object has no kind")) - }, - expectedConvertedObject: nil, - }, - { - name: "convert versioned unstructured to mismatching external version should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - }, - }, - targetGV: schema.GroupVersion{Group: "foo", Version: "v1beta1"}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewNotRegisteredErrForTarget( - scheme.Name(), reflect.TypeOf(testapigroupv1.Carp{}), schema.GroupVersion{Group: "foo", Version: "v1beta1"})) - }, - expectedConvertedObject: nil, - }, - { - name: "convert versioned unstructured to mismatching internal version should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - }, - }, - targetGV: schema.GroupVersion{Group: "foo", Version: "__internal"}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewNotRegisteredErrForTarget( - scheme.Name(), reflect.TypeOf(testapigroupv1.Carp{}), schema.GroupVersion{Group: "foo", Version: "__internal"})) - }, - expectedConvertedObject: nil, - }, - { - name: "convert valid versioned unstructured to its own version should work", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - targetGV: schema.GroupVersion{Group: "", Version: "v1"}, - expectedConvertedObject: &testapigroupv1.Carp{ - TypeMeta: metav1.TypeMeta{ - APIVersion: "v1", - Kind: "Carp", - }, - ObjectMeta: metav1.ObjectMeta{ - Name: "noxu", - }, - Spec: testapigroupv1.CarpSpec{ - Hostname: "example.com", - }, - }, - }, - { - name: "convert valid versioned unstructured to hub-version should work ignoring type meta", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - targetGV: schema.GroupVersion{Group: "", Version: "__internal"}, - expectedConvertedObject: &testapigroup.Carp{ - ObjectMeta: metav1.ObjectMeta{ - Name: "noxu", - }, - Spec: testapigroup.CarpSpec{ - Hostname: "example.com", - }, - }, - }, - { - name: "convert valid versioned unstructured to unexisting version should fail", - unstructuredToConvert: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - "metadata": map[string]interface{}{ - "creationTimestamp": nil, - "name": "noxu", - }, - "spec": map[string]interface{}{ - "hostname": "example.com", - }, - "status": map[string]interface{}{}, - }, - }, - targetGV: schema.GroupVersion{Group: "", Version: "v9"}, - expectedErrFunc: func(err error) bool { - return reflect.DeepEqual(err, runtime.NewNotRegisteredGVKErrForTarget( - scheme.Name(), - schema.GroupVersionKind{Group: "", Version: "v9", Kind: "Carp"}, - nil, - )) - }, - expectedConvertedObject: nil, - }, - } - for _, testCase := range testCases { - t.Run(testCase.name, func(t *testing.T) { - defer func() { - v := recover() - assert.Equal(t, testCase.expectPanic, v != nil, "unexpected panic") - }() - // Convert by specifying destination object - outObject, err := scheme.ConvertToVersion(testCase.unstructuredToConvert, testCase.targetGV) - if testCase.expectedErrFunc != nil { - if !testCase.expectedErrFunc(err) { - t.Errorf("error mismatched: %v", err) - } - } - assert.Equal(t, testCase.expectedConvertedObject, outObject) - }) - } -} - -func TestUnstructuredToUnstructuredConversion(t *testing.T) { - // eventually, we don't want any inter-unstructured conversion happen, but for now, the conversion - // just copy/pastes - scheme, _ := test.TestScheme() - inUnstructured := &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Carp", - }, - } - outUnstructured := &unstructured.Unstructured{} - err := scheme.Convert(inUnstructured, outUnstructured, nil) - assert.NoError(t, err) - assert.Equal(t, inUnstructured, outUnstructured) -} diff --git a/pseudo/k8s/apimachinery/pkg/fields/doc.go b/pseudo/k8s/apimachinery/pkg/fields/doc.go deleted file mode 100644 index d1c091579..000000000 --- a/pseudo/k8s/apimachinery/pkg/fields/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2015 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 fields implements a simple field system, parsing and matching -// selectors with sets of fields. -package fields // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/fields" diff --git a/pseudo/k8s/apimachinery/pkg/fields/fields.go b/pseudo/k8s/apimachinery/pkg/fields/fields.go deleted file mode 100644 index 623b27e95..000000000 --- a/pseudo/k8s/apimachinery/pkg/fields/fields.go +++ /dev/null @@ -1,62 +0,0 @@ -/* -Copyright 2015 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 fields - -import ( - "sort" - "strings" -) - -// Fields allows you to present fields independently from their storage. -type Fields interface { - // Has returns whether the provided field exists. - Has(field string) (exists bool) - - // Get returns the value for the provided field. - Get(field string) (value string) -} - -// Set is a map of field:value. It implements Fields. -type Set map[string]string - -// String returns all fields listed as a human readable string. -// Conveniently, exactly the format that ParseSelector takes. -func (ls Set) String() string { - selector := make([]string, 0, len(ls)) - for key, value := range ls { - selector = append(selector, key+"="+value) - } - // Sort for determinism. - sort.StringSlice(selector).Sort() - return strings.Join(selector, ",") -} - -// Has returns whether the provided field exists in the map. -func (ls Set) Has(field string) bool { - _, exists := ls[field] - return exists -} - -// Get returns the value in the map for the provided field. -func (ls Set) Get(field string) string { - return ls[field] -} - -// AsSelector converts fields into a selectors. -func (ls Set) AsSelector() Selector { - return SelectorFromSet(ls) -} diff --git a/pseudo/k8s/apimachinery/pkg/fields/fields_test.go b/pseudo/k8s/apimachinery/pkg/fields/fields_test.go deleted file mode 100644 index 6965be687..000000000 --- a/pseudo/k8s/apimachinery/pkg/fields/fields_test.go +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2015 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 fields - -import ( - "testing" -) - -func matches(t *testing.T, ls Set, want string) { - if ls.String() != want { - t.Errorf("Expected '%s', but got '%s'", want, ls.String()) - } -} - -func TestSetString(t *testing.T) { - matches(t, Set{"x": "y"}, "x=y") - matches(t, Set{"foo": "bar"}, "foo=bar") - matches(t, Set{"foo": "bar", "baz": "qup"}, "baz=qup,foo=bar") -} - -func TestFieldHas(t *testing.T) { - fieldHasTests := []struct { - Ls Fields - Key string - Has bool - }{ - {Set{"x": "y"}, "x", true}, - {Set{"x": ""}, "x", true}, - {Set{"x": "y"}, "foo", false}, - } - for _, lh := range fieldHasTests { - if has := lh.Ls.Has(lh.Key); has != lh.Has { - t.Errorf("%#v.Has(%#v) => %v, expected %v", lh.Ls, lh.Key, has, lh.Has) - } - } -} - -func TestFieldGet(t *testing.T) { - ls := Set{"x": "y"} - if ls.Get("x") != "y" { - t.Errorf("Set.Get is broken") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/fields/requirements.go b/pseudo/k8s/apimachinery/pkg/fields/requirements.go deleted file mode 100644 index f6eedbd02..000000000 --- a/pseudo/k8s/apimachinery/pkg/fields/requirements.go +++ /dev/null @@ -1,30 +0,0 @@ -/* -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 fields - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/selection" - -// Requirements is AND of all requirements. -type Requirements []Requirement - -// Requirement contains a field, a value, and an operator that relates the field and value. -// This is currently for reading internal selection information of field selector. -type Requirement struct { - Operator selection.Operator - Field string - Value string -} diff --git a/pseudo/k8s/apimachinery/pkg/fields/selector.go b/pseudo/k8s/apimachinery/pkg/fields/selector.go deleted file mode 100644 index 08e2881b2..000000000 --- a/pseudo/k8s/apimachinery/pkg/fields/selector.go +++ /dev/null @@ -1,476 +0,0 @@ -/* -Copyright 2015 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 fields - -import ( - "bytes" - "fmt" - "sort" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/selection" -) - -// Selector represents a field selector. -type Selector interface { - // Matches returns true if this selector matches the given set of fields. - Matches(Fields) bool - - // Empty returns true if this selector does not restrict the selection space. - Empty() bool - - // RequiresExactMatch allows a caller to introspect whether a given selector - // requires a single specific field to be set, and if so returns the value it - // requires. - RequiresExactMatch(field string) (value string, found bool) - - // Transform returns a new copy of the selector after TransformFunc has been - // applied to the entire selector, or an error if fn returns an error. - // If for a given requirement both field and value are transformed to empty - // string, the requirement is skipped. - Transform(fn TransformFunc) (Selector, error) - - // Requirements converts this interface to Requirements to expose - // more detailed selection information. - Requirements() Requirements - - // String returns a human readable string that represents this selector. - String() string - - // Make a deep copy of the selector. - DeepCopySelector() Selector -} - -type nothingSelector struct{} - -func (n nothingSelector) Matches(_ Fields) bool { return false } -func (n nothingSelector) Empty() bool { return false } -func (n nothingSelector) String() string { return "" } -func (n nothingSelector) Requirements() Requirements { return nil } -func (n nothingSelector) DeepCopySelector() Selector { return n } -func (n nothingSelector) RequiresExactMatch(field string) (value string, found bool) { return "", false } -func (n nothingSelector) Transform(fn TransformFunc) (Selector, error) { return n, nil } - -// Nothing returns a selector that matches no fields -func Nothing() Selector { - return nothingSelector{} -} - -// Everything returns a selector that matches all fields. -func Everything() Selector { - return andTerm{} -} - -type hasTerm struct { - field, value string -} - -func (t *hasTerm) Matches(ls Fields) bool { - return ls.Get(t.field) == t.value -} - -func (t *hasTerm) Empty() bool { - return false -} - -func (t *hasTerm) RequiresExactMatch(field string) (value string, found bool) { - if t.field == field { - return t.value, true - } - return "", false -} - -func (t *hasTerm) Transform(fn TransformFunc) (Selector, error) { - field, value, err := fn(t.field, t.value) - if err != nil { - return nil, err - } - if len(field) == 0 && len(value) == 0 { - return Everything(), nil - } - return &hasTerm{field, value}, nil -} - -func (t *hasTerm) Requirements() Requirements { - return []Requirement{{ - Field: t.field, - Operator: selection.Equals, - Value: t.value, - }} -} - -func (t *hasTerm) String() string { - return fmt.Sprintf("%v=%v", t.field, EscapeValue(t.value)) -} - -func (t *hasTerm) DeepCopySelector() Selector { - if t == nil { - return nil - } - out := new(hasTerm) - *out = *t - return out -} - -type notHasTerm struct { - field, value string -} - -func (t *notHasTerm) Matches(ls Fields) bool { - return ls.Get(t.field) != t.value -} - -func (t *notHasTerm) Empty() bool { - return false -} - -func (t *notHasTerm) RequiresExactMatch(field string) (value string, found bool) { - return "", false -} - -func (t *notHasTerm) Transform(fn TransformFunc) (Selector, error) { - field, value, err := fn(t.field, t.value) - if err != nil { - return nil, err - } - if len(field) == 0 && len(value) == 0 { - return Everything(), nil - } - return ¬HasTerm{field, value}, nil -} - -func (t *notHasTerm) Requirements() Requirements { - return []Requirement{{ - Field: t.field, - Operator: selection.NotEquals, - Value: t.value, - }} -} - -func (t *notHasTerm) String() string { - return fmt.Sprintf("%v!=%v", t.field, EscapeValue(t.value)) -} - -func (t *notHasTerm) DeepCopySelector() Selector { - if t == nil { - return nil - } - out := new(notHasTerm) - *out = *t - return out -} - -type andTerm []Selector - -func (t andTerm) Matches(ls Fields) bool { - for _, q := range t { - if !q.Matches(ls) { - return false - } - } - return true -} - -func (t andTerm) Empty() bool { - if t == nil { - return true - } - if len([]Selector(t)) == 0 { - return true - } - for i := range t { - if !t[i].Empty() { - return false - } - } - return true -} - -func (t andTerm) RequiresExactMatch(field string) (string, bool) { - if t == nil || len([]Selector(t)) == 0 { - return "", false - } - for i := range t { - if value, found := t[i].RequiresExactMatch(field); found { - return value, found - } - } - return "", false -} - -func (t andTerm) Transform(fn TransformFunc) (Selector, error) { - next := make([]Selector, 0, len([]Selector(t))) - for _, s := range []Selector(t) { - n, err := s.Transform(fn) - if err != nil { - return nil, err - } - if !n.Empty() { - next = append(next, n) - } - } - return andTerm(next), nil -} - -func (t andTerm) Requirements() Requirements { - reqs := make([]Requirement, 0, len(t)) - for _, s := range []Selector(t) { - rs := s.Requirements() - reqs = append(reqs, rs...) - } - return reqs -} - -func (t andTerm) String() string { - var terms []string - for _, q := range t { - terms = append(terms, q.String()) - } - return strings.Join(terms, ",") -} - -func (t andTerm) DeepCopySelector() Selector { - if t == nil { - return nil - } - out := make([]Selector, len(t)) - for i := range t { - out[i] = t[i].DeepCopySelector() - } - return andTerm(out) -} - -// SelectorFromSet returns a Selector which will match exactly the given Set. A -// nil Set is considered equivalent to Everything(). -func SelectorFromSet(ls Set) Selector { - if ls == nil { - return Everything() - } - items := make([]Selector, 0, len(ls)) - for field, value := range ls { - items = append(items, &hasTerm{field: field, value: value}) - } - if len(items) == 1 { - return items[0] - } - return andTerm(items) -} - -// valueEscaper prefixes \,= characters with a backslash -var valueEscaper = strings.NewReplacer( - // escape \ characters - `\`, `\\`, - // then escape , and = characters to allow unambiguous parsing of the value in a fieldSelector - `,`, `\,`, - `=`, `\=`, -) - -// EscapeValue escapes an arbitrary literal string for use as a fieldSelector value -func EscapeValue(s string) string { - return valueEscaper.Replace(s) -} - -// InvalidEscapeSequence indicates an error occurred unescaping a field selector -type InvalidEscapeSequence struct { - sequence string -} - -func (i InvalidEscapeSequence) Error() string { - return fmt.Sprintf("invalid field selector: invalid escape sequence: %s", i.sequence) -} - -// UnescapedRune indicates an error occurred unescaping a field selector -type UnescapedRune struct { - r rune -} - -func (i UnescapedRune) Error() string { - return fmt.Sprintf("invalid field selector: unescaped character in value: %v", i.r) -} - -// UnescapeValue unescapes a fieldSelector value and returns the original literal value. -// May return the original string if it contains no escaped or special characters. -func UnescapeValue(s string) (string, error) { - // if there's no escaping or special characters, just return to avoid allocation - if !strings.ContainsAny(s, `\,=`) { - return s, nil - } - - v := bytes.NewBuffer(make([]byte, 0, len(s))) - inSlash := false - for _, c := range s { - if inSlash { - switch c { - case '\\', ',', '=': - // omit the \ for recognized escape sequences - v.WriteRune(c) - default: - // error on unrecognized escape sequences - return "", InvalidEscapeSequence{sequence: string([]rune{'\\', c})} - } - inSlash = false - continue - } - - switch c { - case '\\': - inSlash = true - case ',', '=': - // unescaped , and = characters are not allowed in field selector values - return "", UnescapedRune{r: c} - default: - v.WriteRune(c) - } - } - - // Ending with a single backslash is an invalid sequence - if inSlash { - return "", InvalidEscapeSequence{sequence: "\\"} - } - - return v.String(), nil -} - -// ParseSelectorOrDie takes a string representing a selector and returns an -// object suitable for matching, or panic when an error occur. -func ParseSelectorOrDie(s string) Selector { - selector, err := ParseSelector(s) - if err != nil { - panic(err) - } - return selector -} - -// ParseSelector takes a string representing a selector and returns an -// object suitable for matching, or an error. -func ParseSelector(selector string) (Selector, error) { - return parseSelector(selector, - func(lhs, rhs string) (newLhs, newRhs string, err error) { - return lhs, rhs, nil - }) -} - -// ParseAndTransformSelector parses the selector and runs them through the given TransformFunc. -func ParseAndTransformSelector(selector string, fn TransformFunc) (Selector, error) { - return parseSelector(selector, fn) -} - -// TransformFunc transforms selectors. -type TransformFunc func(field, value string) (newField, newValue string, err error) - -// splitTerms returns the comma-separated terms contained in the given fieldSelector. -// Backslash-escaped commas are treated as data instead of delimiters, and are included in the returned terms, with the leading backslash preserved. -func splitTerms(fieldSelector string) []string { - if len(fieldSelector) == 0 { - return nil - } - - terms := make([]string, 0, 1) - startIndex := 0 - inSlash := false - for i, c := range fieldSelector { - switch { - case inSlash: - inSlash = false - case c == '\\': - inSlash = true - case c == ',': - terms = append(terms, fieldSelector[startIndex:i]) - startIndex = i + 1 - } - } - - terms = append(terms, fieldSelector[startIndex:]) - - return terms -} - -const ( - notEqualOperator = "!=" - doubleEqualOperator = "==" - equalOperator = "=" -) - -// termOperators holds the recognized operators supported in fieldSelectors. -// doubleEqualOperator and equal are equivalent, but doubleEqualOperator is checked first -// to avoid leaving a leading = character on the rhs value. -var termOperators = []string{notEqualOperator, doubleEqualOperator, equalOperator} - -// splitTerm returns the lhs, operator, and rhs parsed from the given term, along with an indicator of whether the parse was successful. -// no escaping of special characters is supported in the lhs value, so the first occurrence of a recognized operator is used as the split point. -// the literal rhs is returned, and the caller is responsible for applying any desired unescaping. -func splitTerm(term string) (lhs, op, rhs string, ok bool) { - for i := range term { - remaining := term[i:] - for _, op := range termOperators { - if strings.HasPrefix(remaining, op) { - return term[0:i], op, term[i+len(op):], true - } - } - } - return "", "", "", false -} - -func parseSelector(selector string, fn TransformFunc) (Selector, error) { - parts := splitTerms(selector) - sort.StringSlice(parts).Sort() - var items []Selector - for _, part := range parts { - if part == "" { - continue - } - lhs, op, rhs, ok := splitTerm(part) - if !ok { - return nil, fmt.Errorf("invalid selector: '%s'; can't understand '%s'", selector, part) - } - unescapedRHS, err := UnescapeValue(rhs) - if err != nil { - return nil, err - } - switch op { - case notEqualOperator: - items = append(items, ¬HasTerm{field: lhs, value: unescapedRHS}) - case doubleEqualOperator: - items = append(items, &hasTerm{field: lhs, value: unescapedRHS}) - case equalOperator: - items = append(items, &hasTerm{field: lhs, value: unescapedRHS}) - default: - return nil, fmt.Errorf("invalid selector: '%s'; can't understand '%s'", selector, part) - } - } - if len(items) == 1 { - return items[0].Transform(fn) - } - return andTerm(items).Transform(fn) -} - -// OneTermEqualSelector returns an object that matches objects where one field/field equals one value. -// Cannot return an error. -func OneTermEqualSelector(k, v string) Selector { - return &hasTerm{field: k, value: v} -} - -// OneTermNotEqualSelector returns an object that matches objects where one field/field does not equal one value. -// Cannot return an error. -func OneTermNotEqualSelector(k, v string) Selector { - return ¬HasTerm{field: k, value: v} -} - -// AndSelectors creates a selector that is the logical AND of all the given selectors -func AndSelectors(selectors ...Selector) Selector { - return andTerm(selectors) -} diff --git a/pseudo/k8s/apimachinery/pkg/fields/selector_test.go b/pseudo/k8s/apimachinery/pkg/fields/selector_test.go deleted file mode 100644 index 0aa66935c..000000000 --- a/pseudo/k8s/apimachinery/pkg/fields/selector_test.go +++ /dev/null @@ -1,397 +0,0 @@ -/* -Copyright 2015 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 fields - -import ( - "reflect" - "testing" -) - -func TestSplitTerms(t *testing.T) { - testcases := map[string][]string{ - // Simple selectors - `a`: {`a`}, - `a=avalue`: {`a=avalue`}, - `a=avalue,b=bvalue`: {`a=avalue`, `b=bvalue`}, - `a=avalue,b==bvalue,c!=cvalue`: {`a=avalue`, `b==bvalue`, `c!=cvalue`}, - - // Empty terms - ``: nil, - `a=a,`: {`a=a`, ``}, - `,a=a`: {``, `a=a`}, - - // Escaped values - `k=\,,k2=v2`: {`k=\,`, `k2=v2`}, // escaped comma in value - `k=\\,k2=v2`: {`k=\\`, `k2=v2`}, // escaped backslash, unescaped comma - `k=\\\,,k2=v2`: {`k=\\\,`, `k2=v2`}, // escaped backslash and comma - `k=\a\b\`: {`k=\a\b\`}, // non-escape sequences - `k=\`: {`k=\`}, // orphan backslash - - // Multi-byte - `함=수,목=록`: {`함=수`, `목=록`}, - } - - for selector, expectedTerms := range testcases { - if terms := splitTerms(selector); !reflect.DeepEqual(terms, expectedTerms) { - t.Errorf("splitSelectors(`%s`): Expected\n%#v\ngot\n%#v", selector, expectedTerms, terms) - } - } -} - -func TestSplitTerm(t *testing.T) { - testcases := map[string]struct { - lhs string - op string - rhs string - ok bool - }{ - // Simple terms - `a=value`: {lhs: `a`, op: `=`, rhs: `value`, ok: true}, - `b==value`: {lhs: `b`, op: `==`, rhs: `value`, ok: true}, - `c!=value`: {lhs: `c`, op: `!=`, rhs: `value`, ok: true}, - - // Empty or invalid terms - ``: {lhs: ``, op: ``, rhs: ``, ok: false}, - `a`: {lhs: ``, op: ``, rhs: ``, ok: false}, - - // Escaped values - `k=\,`: {lhs: `k`, op: `=`, rhs: `\,`, ok: true}, - `k=\=`: {lhs: `k`, op: `=`, rhs: `\=`, ok: true}, - `k=\\\a\b\=\,\`: {lhs: `k`, op: `=`, rhs: `\\\a\b\=\,\`, ok: true}, - - // Multi-byte - `함=수`: {lhs: `함`, op: `=`, rhs: `수`, ok: true}, - } - - for term, expected := range testcases { - lhs, op, rhs, ok := splitTerm(term) - if lhs != expected.lhs || op != expected.op || rhs != expected.rhs || ok != expected.ok { - t.Errorf( - "splitTerm(`%s`): Expected\n%s,%s,%s,%v\nGot\n%s,%s,%s,%v", - term, - expected.lhs, expected.op, expected.rhs, expected.ok, - lhs, op, rhs, ok, - ) - } - } -} - -func TestEscapeValue(t *testing.T) { - // map values to their normalized escaped values - testcases := map[string]string{ - ``: ``, - `a`: `a`, - `=`: `\=`, - `,`: `\,`, - `\`: `\\`, - `\=\,\`: `\\\=\\\,\\`, - } - - for unescapedValue, escapedValue := range testcases { - actualEscaped := EscapeValue(unescapedValue) - if actualEscaped != escapedValue { - t.Errorf("EscapeValue(%s): expected %s, got %s", unescapedValue, escapedValue, actualEscaped) - } - - actualUnescaped, err := UnescapeValue(escapedValue) - if err != nil { - t.Errorf("UnescapeValue(%s): unexpected error %v", escapedValue, err) - } - if actualUnescaped != unescapedValue { - t.Errorf("UnescapeValue(%s): expected %s, got %s", escapedValue, unescapedValue, actualUnescaped) - } - } - - // test invalid escape sequences - invalidTestcases := []string{ - `\`, // orphan slash is invalid - `\\\`, // orphan slash is invalid - `\a`, // unrecognized escape sequence is invalid - } - for _, invalidValue := range invalidTestcases { - _, err := UnescapeValue(invalidValue) - if _, ok := err.(InvalidEscapeSequence); !ok || err == nil { - t.Errorf("UnescapeValue(%s): expected invalid escape sequence error, got %#v", invalidValue, err) - } - } -} - -func TestSelectorParse(t *testing.T) { - testGoodStrings := []string{ - "x=a,y=b,z=c", - "", - "x!=a,y=b", - `x=a||y\=b`, - `x=a\=\=b`, - } - testBadStrings := []string{ - "x=a||y=b", - "x==a==b", - "x=a,b", - "x in (a)", - "x in (a,b,c)", - "x", - } - for _, test := range testGoodStrings { - lq, err := ParseSelector(test) - if err != nil { - t.Errorf("%v: error %v (%#v)\n", test, err, err) - } - if test != lq.String() { - t.Errorf("%v restring gave: %v\n", test, lq.String()) - } - } - for _, test := range testBadStrings { - _, err := ParseSelector(test) - if err == nil { - t.Errorf("%v: did not get expected error\n", test) - } - } -} - -func TestDeterministicParse(t *testing.T) { - s1, err := ParseSelector("x=a,a=x") - s2, err2 := ParseSelector("a=x,x=a") - if err != nil || err2 != nil { - t.Errorf("Unexpected parse error") - } - if s1.String() != s2.String() { - t.Errorf("Non-deterministic parse") - } -} - -func expectMatch(t *testing.T, selector string, ls Set) { - lq, err := ParseSelector(selector) - if err != nil { - t.Errorf("Unable to parse %v as a selector\n", selector) - return - } - if !lq.Matches(ls) { - t.Errorf("Wanted %s to match '%s', but it did not.\n", selector, ls) - } -} - -func expectNoMatch(t *testing.T, selector string, ls Set) { - lq, err := ParseSelector(selector) - if err != nil { - t.Errorf("Unable to parse %v as a selector\n", selector) - return - } - if lq.Matches(ls) { - t.Errorf("Wanted '%s' to not match '%s', but it did.", selector, ls) - } -} - -func TestEverything(t *testing.T) { - if !Everything().Matches(Set{"x": "y"}) { - t.Errorf("Nil selector didn't match") - } - if !Everything().Empty() { - t.Errorf("Everything was not empty") - } -} - -func TestSelectorMatches(t *testing.T) { - expectMatch(t, "", Set{"x": "y"}) - expectMatch(t, "x=y", Set{"x": "y"}) - expectMatch(t, "x=y,z=w", Set{"x": "y", "z": "w"}) - expectMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "a"}) - expectMatch(t, "notin=in", Set{"notin": "in"}) // in and notin in exactMatch - expectNoMatch(t, "x=y", Set{"x": "z"}) - expectNoMatch(t, "x=y,z=w", Set{"x": "w", "z": "w"}) - expectNoMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "w"}) - - fieldset := Set{ - "foo": "bar", - "baz": "blah", - "complex": `=value\,\`, - } - expectMatch(t, "foo=bar", fieldset) - expectMatch(t, "baz=blah", fieldset) - expectMatch(t, "foo=bar,baz=blah", fieldset) - expectMatch(t, `foo=bar,baz=blah,complex=\=value\\\,\\`, fieldset) - expectNoMatch(t, "foo=blah", fieldset) - expectNoMatch(t, "baz=bar", fieldset) - expectNoMatch(t, "foo=bar,foobar=bar,baz=blah", fieldset) -} - -func TestOneTermEqualSelector(t *testing.T) { - if !OneTermEqualSelector("x", "y").Matches(Set{"x": "y"}) { - t.Errorf("No match when match expected.") - } - if OneTermEqualSelector("x", "y").Matches(Set{"x": "z"}) { - t.Errorf("Match when none expected.") - } -} - -func expectMatchDirect(t *testing.T, selector, ls Set) { - if !SelectorFromSet(selector).Matches(ls) { - t.Errorf("Wanted %s to match '%s', but it did not.\n", selector, ls) - } -} - -func expectNoMatchDirect(t *testing.T, selector, ls Set) { - if SelectorFromSet(selector).Matches(ls) { - t.Errorf("Wanted '%s' to not match '%s', but it did.", selector, ls) - } -} - -func TestSetMatches(t *testing.T) { - labelset := Set{ - "foo": "bar", - "baz": "blah", - } - expectMatchDirect(t, Set{}, labelset) - expectMatchDirect(t, Set{"foo": "bar"}, labelset) - expectMatchDirect(t, Set{"baz": "blah"}, labelset) - expectMatchDirect(t, Set{"foo": "bar", "baz": "blah"}, labelset) - expectNoMatchDirect(t, Set{"foo": "=blah"}, labelset) - expectNoMatchDirect(t, Set{"baz": "=bar"}, labelset) - expectNoMatchDirect(t, Set{"foo": "=bar", "foobar": "bar", "baz": "blah"}, labelset) -} - -func TestNilMapIsValid(t *testing.T) { - selector := Set(nil).AsSelector() - if selector == nil { - t.Errorf("Selector for nil set should be Everything") - } - if !selector.Empty() { - t.Errorf("Selector for nil set should be Empty") - } -} - -func TestSetIsEmpty(t *testing.T) { - if !(Set{}).AsSelector().Empty() { - t.Errorf("Empty set should be empty") - } - if !(andTerm(nil)).Empty() { - t.Errorf("Nil andTerm should be empty") - } - if (&hasTerm{}).Empty() { - t.Errorf("hasTerm should not be empty") - } - if (¬HasTerm{}).Empty() { - t.Errorf("notHasTerm should not be empty") - } - if !(andTerm{andTerm{}}).Empty() { - t.Errorf("Nested andTerm should be empty") - } - if (andTerm{&hasTerm{"a", "b"}}).Empty() { - t.Errorf("Nested andTerm should not be empty") - } -} - -func TestRequiresExactMatch(t *testing.T) { - testCases := map[string]struct { - S Selector - Label string - Value string - Found bool - }{ - "empty set": {Set{}.AsSelector(), "test", "", false}, - "empty hasTerm": {&hasTerm{}, "test", "", false}, - "skipped hasTerm": {&hasTerm{"a", "b"}, "test", "", false}, - "valid hasTerm": {&hasTerm{"test", "b"}, "test", "b", true}, - "valid hasTerm no value": {&hasTerm{"test", ""}, "test", "", true}, - "valid notHasTerm": {¬HasTerm{"test", "b"}, "test", "", false}, - "valid notHasTerm no value": {¬HasTerm{"test", ""}, "test", "", false}, - "nil andTerm": {andTerm(nil), "test", "", false}, - "empty andTerm": {andTerm{}, "test", "", false}, - "nested andTerm": {andTerm{andTerm{}}, "test", "", false}, - "nested andTerm matches": {andTerm{&hasTerm{"test", "b"}}, "test", "b", true}, - "andTerm with non-match": {andTerm{&hasTerm{}, &hasTerm{"test", "b"}}, "test", "b", true}, - } - for k, v := range testCases { - value, found := v.S.RequiresExactMatch(v.Label) - if value != v.Value { - t.Errorf("%s: expected value %s, got %s", k, v.Value, value) - } - if found != v.Found { - t.Errorf("%s: expected found %t, got %t", k, v.Found, found) - } - } -} - -func TestTransform(t *testing.T) { - testCases := []struct { - name string - selector string - transform func(field, value string) (string, string, error) - result string - isEmpty bool - }{ - { - name: "empty selector", - selector: "", - transform: func(field, value string) (string, string, error) { return field, value, nil }, - result: "", - isEmpty: true, - }, - { - name: "no-op transform", - selector: "a=b,c=d", - transform: func(field, value string) (string, string, error) { return field, value, nil }, - result: "a=b,c=d", - isEmpty: false, - }, - { - name: "transform one field", - selector: "a=b,c=d", - transform: func(field, value string) (string, string, error) { - if field == "a" { - return "e", "f", nil - } - return field, value, nil - }, - result: "e=f,c=d", - isEmpty: false, - }, - { - name: "remove field to make empty", - selector: "a=b", - transform: func(field, value string) (string, string, error) { return "", "", nil }, - result: "", - isEmpty: true, - }, - { - name: "remove only one field", - selector: "a=b,c=d,e=f", - transform: func(field, value string) (string, string, error) { - if field == "c" { - return "", "", nil - } - return field, value, nil - }, - result: "a=b,e=f", - isEmpty: false, - }, - } - - for i, tc := range testCases { - result, err := ParseAndTransformSelector(tc.selector, tc.transform) - if err != nil { - t.Errorf("[%d] unexpected error during Transform: %v", i, err) - } - if result.Empty() != tc.isEmpty { - t.Errorf("[%d] expected empty: %t, got: %t", i, tc.isEmpty, result.Empty()) - } - if result.String() != tc.result { - t.Errorf("[%d] unexpected result: %s", i, result.String()) - } - } - -} diff --git a/pseudo/k8s/apimachinery/pkg/labels/doc.go b/pseudo/k8s/apimachinery/pkg/labels/doc.go deleted file mode 100644 index 6f071a920..000000000 --- a/pseudo/k8s/apimachinery/pkg/labels/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2014 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 labels implements a simple label system, parsing and matching -// selectors with sets of labels. -package labels // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/labels" diff --git a/pseudo/k8s/apimachinery/pkg/labels/labels.go b/pseudo/k8s/apimachinery/pkg/labels/labels.go deleted file mode 100644 index abf3ace6f..000000000 --- a/pseudo/k8s/apimachinery/pkg/labels/labels.go +++ /dev/null @@ -1,181 +0,0 @@ -/* -Copyright 2014 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 labels - -import ( - "fmt" - "sort" - "strings" -) - -// Labels allows you to present labels independently from their storage. -type Labels interface { - // Has returns whether the provided label exists. - Has(label string) (exists bool) - - // Get returns the value for the provided label. - Get(label string) (value string) -} - -// Set is a map of label:value. It implements Labels. -type Set map[string]string - -// String returns all labels listed as a human readable string. -// Conveniently, exactly the format that ParseSelector takes. -func (ls Set) String() string { - selector := make([]string, 0, len(ls)) - for key, value := range ls { - selector = append(selector, key+"="+value) - } - // Sort for determinism. - sort.StringSlice(selector).Sort() - return strings.Join(selector, ",") -} - -// Has returns whether the provided label exists in the map. -func (ls Set) Has(label string) bool { - _, exists := ls[label] - return exists -} - -// Get returns the value in the map for the provided label. -func (ls Set) Get(label string) string { - return ls[label] -} - -// AsSelector converts labels into a selectors. -func (ls Set) AsSelector() Selector { - return SelectorFromSet(ls) -} - -// AsSelectorPreValidated converts labels into a selector, but -// assumes that labels are already validated and thus don't -// preform any validation. -// According to our measurements this is significantly faster -// in codepaths that matter at high scale. -func (ls Set) AsSelectorPreValidated() Selector { - return SelectorFromValidatedSet(ls) -} - -// FormatLabels convert label map into plain string -func FormatLabels(labelMap map[string]string) string { - l := Set(labelMap).String() - if l == "" { - l = "" - } - return l -} - -// Conflicts takes 2 maps and returns true if there a key match between -// the maps but the value doesn't match, and returns false in other cases -func Conflicts(labels1, labels2 Set) bool { - small := labels1 - big := labels2 - if len(labels2) < len(labels1) { - small = labels2 - big = labels1 - } - - for k, v := range small { - if val, match := big[k]; match { - if val != v { - return true - } - } - } - - return false -} - -// Merge combines given maps, and does not check for any conflicts -// between the maps. In case of conflicts, second map (labels2) wins -func Merge(labels1, labels2 Set) Set { - mergedMap := Set{} - - for k, v := range labels1 { - mergedMap[k] = v - } - for k, v := range labels2 { - mergedMap[k] = v - } - return mergedMap -} - -// Equals returns true if the given maps are equal -func Equals(labels1, labels2 Set) bool { - if len(labels1) != len(labels2) { - return false - } - - for k, v := range labels1 { - value, ok := labels2[k] - if !ok { - return false - } - if value != v { - return false - } - } - return true -} - -// AreLabelsInWhiteList verifies if the provided label list -// is in the provided whitelist and returns true, otherwise false. -func AreLabelsInWhiteList(labels, whitelist Set) bool { - if len(whitelist) == 0 { - return true - } - - for k, v := range labels { - value, ok := whitelist[k] - if !ok { - return false - } - if value != v { - return false - } - } - return true -} - -// ConvertSelectorToLabelsMap converts selector string to labels map -// and validates keys and values -func ConvertSelectorToLabelsMap(selector string) (Set, error) { - labelsMap := Set{} - - if len(selector) == 0 { - return labelsMap, nil - } - - labels := strings.Split(selector, ",") - for _, label := range labels { - l := strings.Split(label, "=") - if len(l) != 2 { - return labelsMap, fmt.Errorf("invalid selector: %s", l) - } - key := strings.TrimSpace(l[0]) - if err := validateLabelKey(key); err != nil { - return labelsMap, err - } - value := strings.TrimSpace(l[1]) - if err := validateLabelValue(key, value); err != nil { - return labelsMap, err - } - labelsMap[key] = value - } - return labelsMap, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/labels/labels_test.go b/pseudo/k8s/apimachinery/pkg/labels/labels_test.go deleted file mode 100644 index 2d4d761bc..000000000 --- a/pseudo/k8s/apimachinery/pkg/labels/labels_test.go +++ /dev/null @@ -1,231 +0,0 @@ -/* -Copyright 2014 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 labels - -import ( - "testing" -) - -func matches(t *testing.T, ls Set, want string) { - if ls.String() != want { - t.Errorf("Expected '%s', but got '%s'", want, ls.String()) - } -} - -func TestSetString(t *testing.T) { - matches(t, Set{"x": "y"}, "x=y") - matches(t, Set{"foo": "bar"}, "foo=bar") - matches(t, Set{"foo": "bar", "baz": "qup"}, "baz=qup,foo=bar") - - // TODO: Make our label representation robust enough to handle labels - // with ",=!" characters in their names. -} - -func TestLabelHas(t *testing.T) { - labelHasTests := []struct { - Ls Labels - Key string - Has bool - }{ - {Set{"x": "y"}, "x", true}, - {Set{"x": ""}, "x", true}, - {Set{"x": "y"}, "foo", false}, - } - for _, lh := range labelHasTests { - if has := lh.Ls.Has(lh.Key); has != lh.Has { - t.Errorf("%#v.Has(%#v) => %v, expected %v", lh.Ls, lh.Key, has, lh.Has) - } - } -} - -func TestLabelGet(t *testing.T) { - ls := Set{"x": "y"} - if ls.Get("x") != "y" { - t.Errorf("Set.Get is broken") - } -} - -func TestLabelConflict(t *testing.T) { - tests := []struct { - labels1 map[string]string - labels2 map[string]string - conflict bool - }{ - { - labels1: map[string]string{}, - labels2: map[string]string{}, - conflict: false, - }, - { - labels1: map[string]string{"env": "test"}, - labels2: map[string]string{"infra": "true"}, - conflict: false, - }, - { - labels1: map[string]string{"env": "test"}, - labels2: map[string]string{"infra": "true", "env": "test"}, - conflict: false, - }, - { - labels1: map[string]string{"env": "test"}, - labels2: map[string]string{"env": "dev"}, - conflict: true, - }, - { - labels1: map[string]string{"env": "test", "infra": "false"}, - labels2: map[string]string{"infra": "true", "color": "blue"}, - conflict: true, - }, - } - for _, test := range tests { - conflict := Conflicts(Set(test.labels1), Set(test.labels2)) - if conflict != test.conflict { - t.Errorf("expected: %v but got: %v", test.conflict, conflict) - } - } -} - -func TestLabelMerge(t *testing.T) { - tests := []struct { - labels1 map[string]string - labels2 map[string]string - mergedLabels map[string]string - }{ - { - labels1: map[string]string{}, - labels2: map[string]string{}, - mergedLabels: map[string]string{}, - }, - { - labels1: map[string]string{"infra": "true"}, - labels2: map[string]string{}, - mergedLabels: map[string]string{"infra": "true"}, - }, - { - labels1: map[string]string{"infra": "true"}, - labels2: map[string]string{"env": "test", "color": "blue"}, - mergedLabels: map[string]string{"infra": "true", "env": "test", "color": "blue"}, - }, - } - for _, test := range tests { - mergedLabels := Merge(Set(test.labels1), Set(test.labels2)) - if !Equals(mergedLabels, test.mergedLabels) { - t.Errorf("expected: %v but got: %v", test.mergedLabels, mergedLabels) - } - } -} - -func TestLabelSelectorParse(t *testing.T) { - tests := []struct { - selector string - labels map[string]string - valid bool - }{ - { - selector: "", - labels: map[string]string{}, - valid: true, - }, - { - selector: "x=a", - labels: map[string]string{"x": "a"}, - valid: true, - }, - { - selector: "x=a,y=b,z=c", - labels: map[string]string{"x": "a", "y": "b", "z": "c"}, - valid: true, - }, - { - selector: " x = a , y = b , z = c ", - labels: map[string]string{"x": "a", "y": "b", "z": "c"}, - valid: true, - }, - { - selector: "color=green,env=test,service=front", - labels: map[string]string{"color": "green", "env": "test", "service": "front"}, - valid: true, - }, - { - selector: "color=green, env=test, service=front", - labels: map[string]string{"color": "green", "env": "test", "service": "front"}, - valid: true, - }, - { - selector: ",", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x,y", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x=$y", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x!=y", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x==y", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x=a||y=b", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x in (y)", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x notin (y)", - labels: map[string]string{}, - valid: false, - }, - { - selector: "x y", - labels: map[string]string{}, - valid: false, - }, - } - for _, test := range tests { - labels, err := ConvertSelectorToLabelsMap(test.selector) - if test.valid && err != nil { - t.Errorf("selector: %s, expected no error but got: %s", test.selector, err) - } else if !test.valid && err == nil { - t.Errorf("selector: %s, expected an error", test.selector) - } - - if !Equals(Set(labels), test.labels) { - t.Errorf("expected: %s but got: %s", test.labels, labels) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/labels/selector.go b/pseudo/k8s/apimachinery/pkg/labels/selector.go deleted file mode 100644 index b09f481b3..000000000 --- a/pseudo/k8s/apimachinery/pkg/labels/selector.go +++ /dev/null @@ -1,891 +0,0 @@ -/* -Copyright 2014 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 labels - -import ( - "bytes" - "fmt" - "sort" - "strconv" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/selection" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/validation" - "k8s.io/klog" -) - -// Requirements is AND of all requirements. -type Requirements []Requirement - -// Selector represents a label selector. -type Selector interface { - // Matches returns true if this selector matches the given set of labels. - Matches(Labels) bool - - // Empty returns true if this selector does not restrict the selection space. - Empty() bool - - // String returns a human readable string that represents this selector. - String() string - - // Add adds requirements to the Selector - Add(r ...Requirement) Selector - - // Requirements converts this interface into Requirements to expose - // more detailed selection information. - // If there are querying parameters, it will return converted requirements and selectable=true. - // If this selector doesn't want to select anything, it will return selectable=false. - Requirements() (requirements Requirements, selectable bool) - - // Make a deep copy of the selector. - DeepCopySelector() Selector -} - -// Everything returns a selector that matches all labels. -func Everything() Selector { - return internalSelector{} -} - -type nothingSelector struct{} - -func (n nothingSelector) Matches(_ Labels) bool { return false } -func (n nothingSelector) Empty() bool { return false } -func (n nothingSelector) String() string { return "" } -func (n nothingSelector) Add(_ ...Requirement) Selector { return n } -func (n nothingSelector) Requirements() (Requirements, bool) { return nil, false } -func (n nothingSelector) DeepCopySelector() Selector { return n } - -// Nothing returns a selector that matches no labels -func Nothing() Selector { - return nothingSelector{} -} - -// NewSelector returns a nil selector -func NewSelector() Selector { - return internalSelector(nil) -} - -type internalSelector []Requirement - -func (s internalSelector) DeepCopy() internalSelector { - if s == nil { - return nil - } - result := make([]Requirement, len(s)) - for i := range s { - s[i].DeepCopyInto(&result[i]) - } - return result -} - -func (s internalSelector) DeepCopySelector() Selector { - return s.DeepCopy() -} - -// ByKey sorts requirements by key to obtain deterministic parser -type ByKey []Requirement - -func (a ByKey) Len() int { return len(a) } - -func (a ByKey) Swap(i, j int) { a[i], a[j] = a[j], a[i] } - -func (a ByKey) Less(i, j int) bool { return a[i].key < a[j].key } - -// Requirement contains values, a key, and an operator that relates the key and values. -// The zero value of Requirement is invalid. -// Requirement implements both set based match and exact match -// Requirement should be initialized via NewRequirement constructor for creating a valid Requirement. -// +k8s:deepcopy-gen=true -type Requirement struct { - key string - operator selection.Operator - // In huge majority of cases we have at most one value here. - // It is generally faster to operate on a single-element slice - // than on a single-element map, so we have a slice here. - strValues []string -} - -// NewRequirement is the constructor for a Requirement. -// If any of these rules is violated, an error is returned: -// (1) The operator can only be In, NotIn, Equals, DoubleEquals, NotEquals, Exists, or DoesNotExist. -// (2) If the operator is In or NotIn, the values set must be non-empty. -// (3) If the operator is Equals, DoubleEquals, or NotEquals, the values set must contain one value. -// (4) If the operator is Exists or DoesNotExist, the value set must be empty. -// (5) If the operator is Gt or Lt, the values set must contain only one value, which will be interpreted as an integer. -// (6) The key is invalid due to its length, or sequence -// of characters. See validateLabelKey for more details. -// -// The empty string is a valid value in the input values set. -func NewRequirement(key string, op selection.Operator, vals []string) (*Requirement, error) { - if err := validateLabelKey(key); err != nil { - return nil, err - } - switch op { - case selection.In, selection.NotIn: - if len(vals) == 0 { - return nil, fmt.Errorf("for 'in', 'notin' operators, values set can't be empty") - } - case selection.Equals, selection.DoubleEquals, selection.NotEquals: - if len(vals) != 1 { - return nil, fmt.Errorf("exact-match compatibility requires one single value") - } - case selection.Exists, selection.DoesNotExist: - if len(vals) != 0 { - return nil, fmt.Errorf("values set must be empty for exists and does not exist") - } - case selection.GreaterThan, selection.LessThan: - if len(vals) != 1 { - return nil, fmt.Errorf("for 'Gt', 'Lt' operators, exactly one value is required") - } - for i := range vals { - if _, err := strconv.ParseInt(vals[i], 10, 64); err != nil { - return nil, fmt.Errorf("for 'Gt', 'Lt' operators, the value must be an integer") - } - } - default: - return nil, fmt.Errorf("operator '%v' is not recognized", op) - } - - for i := range vals { - if err := validateLabelValue(key, vals[i]); err != nil { - return nil, err - } - } - return &Requirement{key: key, operator: op, strValues: vals}, nil -} - -func (r *Requirement) hasValue(value string) bool { - for i := range r.strValues { - if r.strValues[i] == value { - return true - } - } - return false -} - -// Matches returns true if the Requirement matches the input Labels. -// There is a match in the following cases: -// (1) The operator is Exists and Labels has the Requirement's key. -// (2) The operator is In, Labels has the Requirement's key and Labels' -// value for that key is in Requirement's value set. -// (3) The operator is NotIn, Labels has the Requirement's key and -// Labels' value for that key is not in Requirement's value set. -// (4) The operator is DoesNotExist or NotIn and Labels does not have the -// Requirement's key. -// (5) The operator is GreaterThanOperator or LessThanOperator, and Labels has -// the Requirement's key and the corresponding value satisfies mathematical inequality. -func (r *Requirement) Matches(ls Labels) bool { - switch r.operator { - case selection.In, selection.Equals, selection.DoubleEquals: - if !ls.Has(r.key) { - return false - } - return r.hasValue(ls.Get(r.key)) - case selection.NotIn, selection.NotEquals: - if !ls.Has(r.key) { - return true - } - return !r.hasValue(ls.Get(r.key)) - case selection.Exists: - return ls.Has(r.key) - case selection.DoesNotExist: - return !ls.Has(r.key) - case selection.GreaterThan, selection.LessThan: - if !ls.Has(r.key) { - return false - } - lsValue, err := strconv.ParseInt(ls.Get(r.key), 10, 64) - if err != nil { - klog.V(10).Infof("ParseInt failed for value %+v in label %+v, %+v", ls.Get(r.key), ls, err) - return false - } - - // There should be only one strValue in r.strValues, and can be converted to a integer. - if len(r.strValues) != 1 { - klog.V(10).Infof("Invalid values count %+v of requirement %#v, for 'Gt', 'Lt' operators, exactly one value is required", len(r.strValues), r) - return false - } - - var rValue int64 - for i := range r.strValues { - rValue, err = strconv.ParseInt(r.strValues[i], 10, 64) - if err != nil { - klog.V(10).Infof("ParseInt failed for value %+v in requirement %#v, for 'Gt', 'Lt' operators, the value must be an integer", r.strValues[i], r) - return false - } - } - return (r.operator == selection.GreaterThan && lsValue > rValue) || (r.operator == selection.LessThan && lsValue < rValue) - default: - return false - } -} - -// Key returns requirement key -func (r *Requirement) Key() string { - return r.key -} - -// Operator returns requirement operator -func (r *Requirement) Operator() selection.Operator { - return r.operator -} - -// Values returns requirement values -func (r *Requirement) Values() sets.String { - ret := sets.String{} - for i := range r.strValues { - ret.Insert(r.strValues[i]) - } - return ret -} - -// Empty returns true if the internalSelector doesn't restrict selection space -func (lsel internalSelector) Empty() bool { - if lsel == nil { - return true - } - return len(lsel) == 0 -} - -// String returns a human-readable string that represents this -// Requirement. If called on an invalid Requirement, an error is -// returned. See NewRequirement for creating a valid Requirement. -func (r *Requirement) String() string { - var buffer bytes.Buffer - if r.operator == selection.DoesNotExist { - buffer.WriteString("!") - } - buffer.WriteString(r.key) - - switch r.operator { - case selection.Equals: - buffer.WriteString("=") - case selection.DoubleEquals: - buffer.WriteString("==") - case selection.NotEquals: - buffer.WriteString("!=") - case selection.In: - buffer.WriteString(" in ") - case selection.NotIn: - buffer.WriteString(" notin ") - case selection.GreaterThan: - buffer.WriteString(">") - case selection.LessThan: - buffer.WriteString("<") - case selection.Exists, selection.DoesNotExist: - return buffer.String() - } - - switch r.operator { - case selection.In, selection.NotIn: - buffer.WriteString("(") - } - if len(r.strValues) == 1 { - buffer.WriteString(r.strValues[0]) - } else { // only > 1 since == 0 prohibited by NewRequirement - // normalizes value order on output, without mutating the in-memory selector representation - // also avoids normalization when it is not required, and ensures we do not mutate shared data - buffer.WriteString(strings.Join(safeSort(r.strValues), ",")) - } - - switch r.operator { - case selection.In, selection.NotIn: - buffer.WriteString(")") - } - return buffer.String() -} - -// safeSort sort input strings without modification -func safeSort(in []string) []string { - if sort.StringsAreSorted(in) { - return in - } - out := make([]string, len(in)) - copy(out, in) - sort.Strings(out) - return out -} - -// Add adds requirements to the selector. It copies the current selector returning a new one -func (lsel internalSelector) Add(reqs ...Requirement) Selector { - var sel internalSelector - for ix := range lsel { - sel = append(sel, lsel[ix]) - } - for _, r := range reqs { - sel = append(sel, r) - } - sort.Sort(ByKey(sel)) - return sel -} - -// Matches for a internalSelector returns true if all -// its Requirements match the input Labels. If any -// Requirement does not match, false is returned. -func (lsel internalSelector) Matches(l Labels) bool { - for ix := range lsel { - if matches := lsel[ix].Matches(l); !matches { - return false - } - } - return true -} - -func (lsel internalSelector) Requirements() (Requirements, bool) { return Requirements(lsel), true } - -// String returns a comma-separated string of all -// the internalSelector Requirements' human-readable strings. -func (lsel internalSelector) String() string { - var reqs []string - for ix := range lsel { - reqs = append(reqs, lsel[ix].String()) - } - return strings.Join(reqs, ",") -} - -// Token represents constant definition for lexer token -type Token int - -const ( - // ErrorToken represents scan error - ErrorToken Token = iota - // EndOfStringToken represents end of string - EndOfStringToken - // ClosedParToken represents close parenthesis - ClosedParToken - // CommaToken represents the comma - CommaToken - // DoesNotExistToken represents logic not - DoesNotExistToken - // DoubleEqualsToken represents double equals - DoubleEqualsToken - // EqualsToken represents equal - EqualsToken - // GreaterThanToken represents greater than - GreaterThanToken - // IdentifierToken represents identifier, e.g. keys and values - IdentifierToken - // InToken represents in - InToken - // LessThanToken represents less than - LessThanToken - // NotEqualsToken represents not equal - NotEqualsToken - // NotInToken represents not in - NotInToken - // OpenParToken represents open parenthesis - OpenParToken -) - -// string2token contains the mapping between lexer Token and token literal -// (except IdentifierToken, EndOfStringToken and ErrorToken since it makes no sense) -var string2token = map[string]Token{ - ")": ClosedParToken, - ",": CommaToken, - "!": DoesNotExistToken, - "==": DoubleEqualsToken, - "=": EqualsToken, - ">": GreaterThanToken, - "in": InToken, - "<": LessThanToken, - "!=": NotEqualsToken, - "notin": NotInToken, - "(": OpenParToken, -} - -// ScannedItem contains the Token and the literal produced by the lexer. -type ScannedItem struct { - tok Token - literal string -} - -// isWhitespace returns true if the rune is a space, tab, or newline. -func isWhitespace(ch byte) bool { - return ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n' -} - -// isSpecialSymbol detect if the character ch can be an operator -func isSpecialSymbol(ch byte) bool { - switch ch { - case '=', '!', '(', ')', ',', '>', '<': - return true - } - return false -} - -// Lexer represents the Lexer struct for label selector. -// It contains necessary informationt to tokenize the input string -type Lexer struct { - // s stores the string to be tokenized - s string - // pos is the position currently tokenized - pos int -} - -// read return the character currently lexed -// increment the position and check the buffer overflow -func (l *Lexer) read() (b byte) { - b = 0 - if l.pos < len(l.s) { - b = l.s[l.pos] - l.pos++ - } - return b -} - -// unread 'undoes' the last read character -func (l *Lexer) unread() { - l.pos-- -} - -// scanIDOrKeyword scans string to recognize literal token (for example 'in') or an identifier. -func (l *Lexer) scanIDOrKeyword() (tok Token, lit string) { - var buffer []byte -IdentifierLoop: - for { - switch ch := l.read(); { - case ch == 0: - break IdentifierLoop - case isSpecialSymbol(ch) || isWhitespace(ch): - l.unread() - break IdentifierLoop - default: - buffer = append(buffer, ch) - } - } - s := string(buffer) - if val, ok := string2token[s]; ok { // is a literal token? - return val, s - } - return IdentifierToken, s // otherwise is an identifier -} - -// scanSpecialSymbol scans string starting with special symbol. -// special symbol identify non literal operators. "!=", "==", "=" -func (l *Lexer) scanSpecialSymbol() (Token, string) { - lastScannedItem := ScannedItem{} - var buffer []byte -SpecialSymbolLoop: - for { - switch ch := l.read(); { - case ch == 0: - break SpecialSymbolLoop - case isSpecialSymbol(ch): - buffer = append(buffer, ch) - if token, ok := string2token[string(buffer)]; ok { - lastScannedItem = ScannedItem{tok: token, literal: string(buffer)} - } else if lastScannedItem.tok != 0 { - l.unread() - break SpecialSymbolLoop - } - default: - l.unread() - break SpecialSymbolLoop - } - } - if lastScannedItem.tok == 0 { - return ErrorToken, fmt.Sprintf("error expected: keyword found '%s'", buffer) - } - return lastScannedItem.tok, lastScannedItem.literal -} - -// skipWhiteSpaces consumes all blank characters -// returning the first non blank character -func (l *Lexer) skipWhiteSpaces(ch byte) byte { - for { - if !isWhitespace(ch) { - return ch - } - ch = l.read() - } -} - -// Lex returns a pair of Token and the literal -// literal is meaningfull only for IdentifierToken token -func (l *Lexer) Lex() (tok Token, lit string) { - switch ch := l.skipWhiteSpaces(l.read()); { - case ch == 0: - return EndOfStringToken, "" - case isSpecialSymbol(ch): - l.unread() - return l.scanSpecialSymbol() - default: - l.unread() - return l.scanIDOrKeyword() - } -} - -// Parser data structure contains the label selector parser data structure -type Parser struct { - l *Lexer - scannedItems []ScannedItem - position int -} - -// ParserContext represents context during parsing: -// some literal for example 'in' and 'notin' can be -// recognized as operator for example 'x in (a)' but -// it can be recognized as value for example 'value in (in)' -type ParserContext int - -const ( - // KeyAndOperator represents key and operator - KeyAndOperator ParserContext = iota - // Values represents values - Values -) - -// lookahead func returns the current token and string. No increment of current position -func (p *Parser) lookahead(context ParserContext) (Token, string) { - tok, lit := p.scannedItems[p.position].tok, p.scannedItems[p.position].literal - if context == Values { - switch tok { - case InToken, NotInToken: - tok = IdentifierToken - } - } - return tok, lit -} - -// consume returns current token and string. Increments the position -func (p *Parser) consume(context ParserContext) (Token, string) { - p.position++ - tok, lit := p.scannedItems[p.position-1].tok, p.scannedItems[p.position-1].literal - if context == Values { - switch tok { - case InToken, NotInToken: - tok = IdentifierToken - } - } - return tok, lit -} - -// scan runs through the input string and stores the ScannedItem in an array -// Parser can now lookahead and consume the tokens -func (p *Parser) scan() { - for { - token, literal := p.l.Lex() - p.scannedItems = append(p.scannedItems, ScannedItem{token, literal}) - if token == EndOfStringToken { - break - } - } -} - -// parse runs the left recursive descending algorithm -// on input string. It returns a list of Requirement objects. -func (p *Parser) parse() (internalSelector, error) { - p.scan() // init scannedItems - - var requirements internalSelector - for { - tok, lit := p.lookahead(Values) - switch tok { - case IdentifierToken, DoesNotExistToken: - r, err := p.parseRequirement() - if err != nil { - return nil, fmt.Errorf("unable to parse requirement: %v", err) - } - requirements = append(requirements, *r) - t, l := p.consume(Values) - switch t { - case EndOfStringToken: - return requirements, nil - case CommaToken: - t2, l2 := p.lookahead(Values) - if t2 != IdentifierToken && t2 != DoesNotExistToken { - return nil, fmt.Errorf("found '%s', expected: identifier after ','", l2) - } - default: - return nil, fmt.Errorf("found '%s', expected: ',' or 'end of string'", l) - } - case EndOfStringToken: - return requirements, nil - default: - return nil, fmt.Errorf("found '%s', expected: !, identifier, or 'end of string'", lit) - } - } -} - -func (p *Parser) parseRequirement() (*Requirement, error) { - key, operator, err := p.parseKeyAndInferOperator() - if err != nil { - return nil, err - } - if operator == selection.Exists || operator == selection.DoesNotExist { // operator found lookahead set checked - return NewRequirement(key, operator, []string{}) - } - operator, err = p.parseOperator() - if err != nil { - return nil, err - } - var values sets.String - switch operator { - case selection.In, selection.NotIn: - values, err = p.parseValues() - case selection.Equals, selection.DoubleEquals, selection.NotEquals, selection.GreaterThan, selection.LessThan: - values, err = p.parseExactValue() - } - if err != nil { - return nil, err - } - return NewRequirement(key, operator, values.List()) - -} - -// parseKeyAndInferOperator parse literals. -// in case of no operator '!, in, notin, ==, =, !=' are found -// the 'exists' operator is inferred -func (p *Parser) parseKeyAndInferOperator() (string, selection.Operator, error) { - var operator selection.Operator - tok, literal := p.consume(Values) - if tok == DoesNotExistToken { - operator = selection.DoesNotExist - tok, literal = p.consume(Values) - } - if tok != IdentifierToken { - err := fmt.Errorf("found '%s', expected: identifier", literal) - return "", "", err - } - if err := validateLabelKey(literal); err != nil { - return "", "", err - } - if t, _ := p.lookahead(Values); t == EndOfStringToken || t == CommaToken { - if operator != selection.DoesNotExist { - operator = selection.Exists - } - } - return literal, operator, nil -} - -// parseOperator return operator and eventually matchType -// matchType can be exact -func (p *Parser) parseOperator() (op selection.Operator, err error) { - tok, lit := p.consume(KeyAndOperator) - switch tok { - // DoesNotExistToken shouldn't be here because it's a unary operator, not a binary operator - case InToken: - op = selection.In - case EqualsToken: - op = selection.Equals - case DoubleEqualsToken: - op = selection.DoubleEquals - case GreaterThanToken: - op = selection.GreaterThan - case LessThanToken: - op = selection.LessThan - case NotInToken: - op = selection.NotIn - case NotEqualsToken: - op = selection.NotEquals - default: - return "", fmt.Errorf("found '%s', expected: '=', '!=', '==', 'in', notin'", lit) - } - return op, nil -} - -// parseValues parses the values for set based matching (x,y,z) -func (p *Parser) parseValues() (sets.String, error) { - tok, lit := p.consume(Values) - if tok != OpenParToken { - return nil, fmt.Errorf("found '%s' expected: '('", lit) - } - tok, lit = p.lookahead(Values) - switch tok { - case IdentifierToken, CommaToken: - s, err := p.parseIdentifiersList() // handles general cases - if err != nil { - return s, err - } - if tok, _ = p.consume(Values); tok != ClosedParToken { - return nil, fmt.Errorf("found '%s', expected: ')'", lit) - } - return s, nil - case ClosedParToken: // handles "()" - p.consume(Values) - return sets.NewString(""), nil - default: - return nil, fmt.Errorf("found '%s', expected: ',', ')' or identifier", lit) - } -} - -// parseIdentifiersList parses a (possibly empty) list of -// of comma separated (possibly empty) identifiers -func (p *Parser) parseIdentifiersList() (sets.String, error) { - s := sets.NewString() - for { - tok, lit := p.consume(Values) - switch tok { - case IdentifierToken: - s.Insert(lit) - tok2, lit2 := p.lookahead(Values) - switch tok2 { - case CommaToken: - continue - case ClosedParToken: - return s, nil - default: - return nil, fmt.Errorf("found '%s', expected: ',' or ')'", lit2) - } - case CommaToken: // handled here since we can have "(," - if s.Len() == 0 { - s.Insert("") // to handle (, - } - tok2, _ := p.lookahead(Values) - if tok2 == ClosedParToken { - s.Insert("") // to handle ,) Double "" removed by StringSet - return s, nil - } - if tok2 == CommaToken { - p.consume(Values) - s.Insert("") // to handle ,, Double "" removed by StringSet - } - default: // it can be operator - return s, fmt.Errorf("found '%s', expected: ',', or identifier", lit) - } - } -} - -// parseExactValue parses the only value for exact match style -func (p *Parser) parseExactValue() (sets.String, error) { - s := sets.NewString() - tok, lit := p.lookahead(Values) - if tok == EndOfStringToken || tok == CommaToken { - s.Insert("") - return s, nil - } - tok, lit = p.consume(Values) - if tok == IdentifierToken { - s.Insert(lit) - return s, nil - } - return nil, fmt.Errorf("found '%s', expected: identifier", lit) -} - -// Parse takes a string representing a selector and returns a selector -// object, or an error. This parsing function differs from ParseSelector -// as they parse different selectors with different syntaxes. -// The input will cause an error if it does not follow this form: -// -// ::= | "," -// ::= [!] KEY [ | ] -// ::= "" | -// ::= | -// ::= "notin" -// ::= "in" -// ::= "(" ")" -// ::= VALUE | VALUE "," -// ::= ["="|"=="|"!="] VALUE -// -// KEY is a sequence of one or more characters following [ DNS_SUBDOMAIN "/" ] DNS_LABEL. Max length is 63 characters. -// VALUE is a sequence of zero or more characters "([A-Za-z0-9_-\.])". Max length is 63 characters. -// Delimiter is white space: (' ', '\t') -// Example of valid syntax: -// "x in (foo,,baz),y,z notin ()" -// -// Note: -// (1) Inclusion - " in " - denotes that the KEY exists and is equal to any of the -// VALUEs in its requirement -// (2) Exclusion - " notin " - denotes that the KEY is not equal to any -// of the VALUEs in its requirement or does not exist -// (3) The empty string is a valid VALUE -// (4) A requirement with just a KEY - as in "y" above - denotes that -// the KEY exists and can be any VALUE. -// (5) A requirement with just !KEY requires that the KEY not exist. -// -func Parse(selector string) (Selector, error) { - parsedSelector, err := parse(selector) - if err == nil { - return parsedSelector, nil - } - return nil, err -} - -// parse parses the string representation of the selector and returns the internalSelector struct. -// The callers of this method can then decide how to return the internalSelector struct to their -// callers. This function has two callers now, one returns a Selector interface and the other -// returns a list of requirements. -func parse(selector string) (internalSelector, error) { - p := &Parser{l: &Lexer{s: selector, pos: 0}} - items, err := p.parse() - if err != nil { - return nil, err - } - sort.Sort(ByKey(items)) // sort to grant determistic parsing - return internalSelector(items), err -} - -func validateLabelKey(k string) error { - if errs := validation.IsQualifiedName(k); len(errs) != 0 { - return fmt.Errorf("invalid label key %q: %s", k, strings.Join(errs, "; ")) - } - return nil -} - -func validateLabelValue(k, v string) error { - if errs := validation.IsValidLabelValue(v); len(errs) != 0 { - return fmt.Errorf("invalid label value: %q: at key: %q: %s", v, k, strings.Join(errs, "; ")) - } - return nil -} - -// SelectorFromSet returns a Selector which will match exactly the given Set. A -// nil and empty Sets are considered equivalent to Everything(). -func SelectorFromSet(ls Set) Selector { - if ls == nil || len(ls) == 0 { - return internalSelector{} - } - var requirements internalSelector - for label, value := range ls { - r, err := NewRequirement(label, selection.Equals, []string{value}) - if err == nil { - requirements = append(requirements, *r) - } else { - //TODO: double check errors when input comes from serialization? - return internalSelector{} - } - } - // sort to have deterministic string representation - sort.Sort(ByKey(requirements)) - return requirements -} - -// SelectorFromValidatedSet returns a Selector which will match exactly the given Set. -// A nil and empty Sets are considered equivalent to Everything(). -// It assumes that Set is already validated and doesn't do any validation. -func SelectorFromValidatedSet(ls Set) Selector { - if ls == nil || len(ls) == 0 { - return internalSelector{} - } - var requirements internalSelector - for label, value := range ls { - requirements = append(requirements, Requirement{key: label, operator: selection.Equals, strValues: []string{value}}) - } - // sort to have deterministic string representation - sort.Sort(ByKey(requirements)) - return requirements -} - -// ParseToRequirements takes a string representing a selector and returns a list of -// requirements. This function is suitable for those callers that perform additional -// processing on selector requirements. -// See the documentation for Parse() function for more details. -// TODO: Consider exporting the internalSelector type instead. -func ParseToRequirements(selector string) ([]Requirement, error) { - return parse(selector) -} diff --git a/pseudo/k8s/apimachinery/pkg/labels/selector_test.go b/pseudo/k8s/apimachinery/pkg/labels/selector_test.go deleted file mode 100644 index f7cf7ab2a..000000000 --- a/pseudo/k8s/apimachinery/pkg/labels/selector_test.go +++ /dev/null @@ -1,619 +0,0 @@ -/* -Copyright 2014 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 labels - -import ( - "reflect" - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/selection" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -func TestSelectorParse(t *testing.T) { - testGoodStrings := []string{ - "x=a,y=b,z=c", - "", - "x!=a,y=b", - "x=", - "x= ", - "x=,z= ", - "x= ,z= ", - "!x", - "x>1", - "x>1,z<5", - } - testBadStrings := []string{ - "x=a||y=b", - "x==a==b", - "!x=a", - "x1", Set{"x": "2"}) - expectMatch(t, "x<1", Set{"x": "0"}) - expectNoMatch(t, "x=z", Set{}) - expectNoMatch(t, "x=y", Set{"x": "z"}) - expectNoMatch(t, "x=y,z=w", Set{"x": "w", "z": "w"}) - expectNoMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "w"}) - expectNoMatch(t, "x", Set{"y": "z"}) - expectNoMatch(t, "!x", Set{"x": "z"}) - expectNoMatch(t, "x>1", Set{"x": "0"}) - expectNoMatch(t, "x<1", Set{"x": "2"}) - - labelset := Set{ - "foo": "bar", - "baz": "blah", - } - expectMatch(t, "foo=bar", labelset) - expectMatch(t, "baz=blah", labelset) - expectMatch(t, "foo=bar,baz=blah", labelset) - expectNoMatch(t, "foo=blah", labelset) - expectNoMatch(t, "baz=bar", labelset) - expectNoMatch(t, "foo=bar,foobar=bar,baz=blah", labelset) -} - -func expectMatchDirect(t *testing.T, selector, ls Set) { - if !SelectorFromSet(selector).Matches(ls) { - t.Errorf("Wanted %s to match '%s', but it did not.\n", selector, ls) - } -} - -func expectNoMatchDirect(t *testing.T, selector, ls Set) { - if SelectorFromSet(selector).Matches(ls) { - t.Errorf("Wanted '%s' to not match '%s', but it did.", selector, ls) - } -} - -func TestSetMatches(t *testing.T) { - labelset := Set{ - "foo": "bar", - "baz": "blah", - } - expectMatchDirect(t, Set{}, labelset) - expectMatchDirect(t, Set{"foo": "bar"}, labelset) - expectMatchDirect(t, Set{"baz": "blah"}, labelset) - expectMatchDirect(t, Set{"foo": "bar", "baz": "blah"}, labelset) - - //TODO: bad values not handled for the moment in SelectorFromSet - //expectNoMatchDirect(t, Set{"foo": "=blah"}, labelset) - //expectNoMatchDirect(t, Set{"baz": "=bar"}, labelset) - //expectNoMatchDirect(t, Set{"foo": "=bar", "foobar": "bar", "baz": "blah"}, labelset) -} - -func TestNilMapIsValid(t *testing.T) { - selector := Set(nil).AsSelector() - if selector == nil { - t.Errorf("Selector for nil set should be Everything") - } - if !selector.Empty() { - t.Errorf("Selector for nil set should be Empty") - } -} - -func TestSetIsEmpty(t *testing.T) { - if !(Set{}).AsSelector().Empty() { - t.Errorf("Empty set should be empty") - } - if !(NewSelector()).Empty() { - t.Errorf("Nil Selector should be empty") - } -} - -func TestLexer(t *testing.T) { - testcases := []struct { - s string - t Token - }{ - {"", EndOfStringToken}, - {",", CommaToken}, - {"notin", NotInToken}, - {"in", InToken}, - {"=", EqualsToken}, - {"==", DoubleEqualsToken}, - {">", GreaterThanToken}, - {"<", LessThanToken}, - //Note that Lex returns the longest valid token found - {"!", DoesNotExistToken}, - {"!=", NotEqualsToken}, - {"(", OpenParToken}, - {")", ClosedParToken}, - //Non-"special" characters are considered part of an identifier - {"~", IdentifierToken}, - {"||", IdentifierToken}, - } - for _, v := range testcases { - l := &Lexer{s: v.s, pos: 0} - token, lit := l.Lex() - if token != v.t { - t.Errorf("Got %d it should be %d for '%s'", token, v.t, v.s) - } - if v.t != ErrorToken && lit != v.s { - t.Errorf("Got '%s' it should be '%s'", lit, v.s) - } - } -} - -func min(l, r int) (m int) { - m = r - if l < r { - m = l - } - return m -} - -func TestLexerSequence(t *testing.T) { - testcases := []struct { - s string - t []Token - }{ - {"key in ( value )", []Token{IdentifierToken, InToken, OpenParToken, IdentifierToken, ClosedParToken}}, - {"key notin ( value )", []Token{IdentifierToken, NotInToken, OpenParToken, IdentifierToken, ClosedParToken}}, - {"key in ( value1, value2 )", []Token{IdentifierToken, InToken, OpenParToken, IdentifierToken, CommaToken, IdentifierToken, ClosedParToken}}, - {"key", []Token{IdentifierToken}}, - {"!key", []Token{DoesNotExistToken, IdentifierToken}}, - {"()", []Token{OpenParToken, ClosedParToken}}, - {"x in (),y", []Token{IdentifierToken, InToken, OpenParToken, ClosedParToken, CommaToken, IdentifierToken}}, - {"== != (), = notin", []Token{DoubleEqualsToken, NotEqualsToken, OpenParToken, ClosedParToken, CommaToken, EqualsToken, NotInToken}}, - {"key>2", []Token{IdentifierToken, GreaterThanToken, IdentifierToken}}, - {"key<1", []Token{IdentifierToken, LessThanToken, IdentifierToken}}, - } - for _, v := range testcases { - var literals []string - var tokens []Token - l := &Lexer{s: v.s, pos: 0} - for { - token, lit := l.Lex() - if token == EndOfStringToken { - break - } - tokens = append(tokens, token) - literals = append(literals, lit) - } - if len(tokens) != len(v.t) { - t.Errorf("Bad number of tokens for '%s %d, %d", v.s, len(tokens), len(v.t)) - } - for i := 0; i < min(len(tokens), len(v.t)); i++ { - if tokens[i] != v.t[i] { - t.Errorf("Test '%s': Mismatching in token type found '%v' it should be '%v'", v.s, tokens[i], v.t[i]) - } - } - } -} -func TestParserLookahead(t *testing.T) { - testcases := []struct { - s string - t []Token - }{ - {"key in ( value )", []Token{IdentifierToken, InToken, OpenParToken, IdentifierToken, ClosedParToken, EndOfStringToken}}, - {"key notin ( value )", []Token{IdentifierToken, NotInToken, OpenParToken, IdentifierToken, ClosedParToken, EndOfStringToken}}, - {"key in ( value1, value2 )", []Token{IdentifierToken, InToken, OpenParToken, IdentifierToken, CommaToken, IdentifierToken, ClosedParToken, EndOfStringToken}}, - {"key", []Token{IdentifierToken, EndOfStringToken}}, - {"!key", []Token{DoesNotExistToken, IdentifierToken, EndOfStringToken}}, - {"()", []Token{OpenParToken, ClosedParToken, EndOfStringToken}}, - {"", []Token{EndOfStringToken}}, - {"x in (),y", []Token{IdentifierToken, InToken, OpenParToken, ClosedParToken, CommaToken, IdentifierToken, EndOfStringToken}}, - {"== != (), = notin", []Token{DoubleEqualsToken, NotEqualsToken, OpenParToken, ClosedParToken, CommaToken, EqualsToken, NotInToken, EndOfStringToken}}, - {"key>2", []Token{IdentifierToken, GreaterThanToken, IdentifierToken, EndOfStringToken}}, - {"key<1", []Token{IdentifierToken, LessThanToken, IdentifierToken, EndOfStringToken}}, - } - for _, v := range testcases { - p := &Parser{l: &Lexer{s: v.s, pos: 0}, position: 0} - p.scan() - if len(p.scannedItems) != len(v.t) { - t.Errorf("Expected %d items found %d", len(v.t), len(p.scannedItems)) - } - for { - token, lit := p.lookahead(KeyAndOperator) - - token2, lit2 := p.consume(KeyAndOperator) - if token == EndOfStringToken { - break - } - if token != token2 || lit != lit2 { - t.Errorf("Bad values") - } - } - } -} - -func TestRequirementConstructor(t *testing.T) { - requirementConstructorTests := []struct { - Key string - Op selection.Operator - Vals sets.String - Success bool - }{ - {"x", selection.In, nil, false}, - {"x", selection.NotIn, sets.NewString(), false}, - {"x", selection.In, sets.NewString("foo"), true}, - {"x", selection.NotIn, sets.NewString("foo"), true}, - {"x", selection.Exists, nil, true}, - {"x", selection.DoesNotExist, nil, true}, - {"1foo", selection.In, sets.NewString("bar"), true}, - {"1234", selection.In, sets.NewString("bar"), true}, - {"y", selection.GreaterThan, sets.NewString("1"), true}, - {"z", selection.LessThan, sets.NewString("6"), true}, - {"foo", selection.GreaterThan, sets.NewString("bar"), false}, - {"barz", selection.LessThan, sets.NewString("blah"), false}, - {strings.Repeat("a", 254), selection.Exists, nil, false}, //breaks DNS rule that len(key) <= 253 - } - for _, rc := range requirementConstructorTests { - if _, err := NewRequirement(rc.Key, rc.Op, rc.Vals.List()); err == nil && !rc.Success { - t.Errorf("expected error with key:%#v op:%v vals:%v, got no error", rc.Key, rc.Op, rc.Vals) - } else if err != nil && rc.Success { - t.Errorf("expected no error with key:%#v op:%v vals:%v, got:%v", rc.Key, rc.Op, rc.Vals, err) - } - } -} - -func TestToString(t *testing.T) { - var req Requirement - toStringTests := []struct { - In *internalSelector - Out string - Valid bool - }{ - - {&internalSelector{ - getRequirement("x", selection.In, sets.NewString("abc", "def"), t), - getRequirement("y", selection.NotIn, sets.NewString("jkl"), t), - getRequirement("z", selection.Exists, nil, t)}, - "x in (abc,def),y notin (jkl),z", true}, - {&internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString("abc", "def"), t), - getRequirement("y", selection.NotEquals, sets.NewString("jkl"), t), - getRequirement("z", selection.DoesNotExist, nil, t)}, - "x notin (abc,def),y!=jkl,!z", true}, - {&internalSelector{ - getRequirement("x", selection.In, sets.NewString("abc", "def"), t), - req}, // adding empty req for the trailing ',' - "x in (abc,def),", false}, - {&internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString("abc"), t), - getRequirement("y", selection.In, sets.NewString("jkl", "mno"), t), - getRequirement("z", selection.NotIn, sets.NewString(""), t)}, - "x notin (abc),y in (jkl,mno),z notin ()", true}, - {&internalSelector{ - getRequirement("x", selection.Equals, sets.NewString("abc"), t), - getRequirement("y", selection.DoubleEquals, sets.NewString("jkl"), t), - getRequirement("z", selection.NotEquals, sets.NewString("a"), t), - getRequirement("z", selection.Exists, nil, t)}, - "x=abc,y==jkl,z!=a,z", true}, - {&internalSelector{ - getRequirement("x", selection.GreaterThan, sets.NewString("2"), t), - getRequirement("y", selection.LessThan, sets.NewString("8"), t), - getRequirement("z", selection.Exists, nil, t)}, - "x>2,y<8,z", true}, - } - for _, ts := range toStringTests { - if out := ts.In.String(); out == "" && ts.Valid { - t.Errorf("%#v.String() => '%v' expected no error", ts.In, out) - } else if out != ts.Out { - t.Errorf("%#v.String() => '%v' want '%v'", ts.In, out, ts.Out) - } - } -} - -func TestRequirementSelectorMatching(t *testing.T) { - var req Requirement - labelSelectorMatchingTests := []struct { - Set Set - Sel Selector - Match bool - }{ - {Set{"x": "foo", "y": "baz"}, &internalSelector{ - req, - }, false}, - {Set{"x": "foo", "y": "baz"}, &internalSelector{ - getRequirement("x", selection.In, sets.NewString("foo"), t), - getRequirement("y", selection.NotIn, sets.NewString("alpha"), t), - }, true}, - {Set{"x": "foo", "y": "baz"}, &internalSelector{ - getRequirement("x", selection.In, sets.NewString("foo"), t), - getRequirement("y", selection.In, sets.NewString("alpha"), t), - }, false}, - {Set{"y": ""}, &internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString(""), t), - getRequirement("y", selection.Exists, nil, t), - }, true}, - {Set{"y": ""}, &internalSelector{ - getRequirement("x", selection.DoesNotExist, nil, t), - getRequirement("y", selection.Exists, nil, t), - }, true}, - {Set{"y": ""}, &internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString(""), t), - getRequirement("y", selection.DoesNotExist, nil, t), - }, false}, - {Set{"y": "baz"}, &internalSelector{ - getRequirement("x", selection.In, sets.NewString(""), t), - }, false}, - {Set{"z": "2"}, &internalSelector{ - getRequirement("z", selection.GreaterThan, sets.NewString("1"), t), - }, true}, - {Set{"z": "v2"}, &internalSelector{ - getRequirement("z", selection.GreaterThan, sets.NewString("1"), t), - }, false}, - } - for _, lsm := range labelSelectorMatchingTests { - if match := lsm.Sel.Matches(lsm.Set); match != lsm.Match { - t.Errorf("%+v.Matches(%#v) => %v, want %v", lsm.Sel, lsm.Set, match, lsm.Match) - } - } -} - -func TestSetSelectorParser(t *testing.T) { - setSelectorParserTests := []struct { - In string - Out Selector - Match bool - Valid bool - }{ - {"", NewSelector(), true, true}, - {"\rx", internalSelector{ - getRequirement("x", selection.Exists, nil, t), - }, true, true}, - {"this-is-a-dns.domain.com/key-with-dash", internalSelector{ - getRequirement("this-is-a-dns.domain.com/key-with-dash", selection.Exists, nil, t), - }, true, true}, - {"this-is-another-dns.domain.com/key-with-dash in (so,what)", internalSelector{ - getRequirement("this-is-another-dns.domain.com/key-with-dash", selection.In, sets.NewString("so", "what"), t), - }, true, true}, - {"0.1.2.domain/99 notin (10.10.100.1, tick.tack.clock)", internalSelector{ - getRequirement("0.1.2.domain/99", selection.NotIn, sets.NewString("10.10.100.1", "tick.tack.clock"), t), - }, true, true}, - {"foo in (abc)", internalSelector{ - getRequirement("foo", selection.In, sets.NewString("abc"), t), - }, true, true}, - {"x notin\n (abc)", internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString("abc"), t), - }, true, true}, - {"x notin \t (abc,def)", internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString("abc", "def"), t), - }, true, true}, - {"x in (abc,def)", internalSelector{ - getRequirement("x", selection.In, sets.NewString("abc", "def"), t), - }, true, true}, - {"x in (abc,)", internalSelector{ - getRequirement("x", selection.In, sets.NewString("abc", ""), t), - }, true, true}, - {"x in ()", internalSelector{ - getRequirement("x", selection.In, sets.NewString(""), t), - }, true, true}, - {"x notin (abc,,def),bar,z in (),w", internalSelector{ - getRequirement("bar", selection.Exists, nil, t), - getRequirement("w", selection.Exists, nil, t), - getRequirement("x", selection.NotIn, sets.NewString("abc", "", "def"), t), - getRequirement("z", selection.In, sets.NewString(""), t), - }, true, true}, - {"x,y in (a)", internalSelector{ - getRequirement("y", selection.In, sets.NewString("a"), t), - getRequirement("x", selection.Exists, nil, t), - }, false, true}, - {"x=a", internalSelector{ - getRequirement("x", selection.Equals, sets.NewString("a"), t), - }, true, true}, - {"x>1", internalSelector{ - getRequirement("x", selection.GreaterThan, sets.NewString("1"), t), - }, true, true}, - {"x<7", internalSelector{ - getRequirement("x", selection.LessThan, sets.NewString("7"), t), - }, true, true}, - {"x=a,y!=b", internalSelector{ - getRequirement("x", selection.Equals, sets.NewString("a"), t), - getRequirement("y", selection.NotEquals, sets.NewString("b"), t), - }, true, true}, - {"x=a,y!=b,z in (h,i,j)", internalSelector{ - getRequirement("x", selection.Equals, sets.NewString("a"), t), - getRequirement("y", selection.NotEquals, sets.NewString("b"), t), - getRequirement("z", selection.In, sets.NewString("h", "i", "j"), t), - }, true, true}, - {"x=a||y=b", internalSelector{}, false, false}, - {"x,,y", nil, true, false}, - {",x,y", nil, true, false}, - {"x nott in (y)", nil, true, false}, - {"x notin ( )", internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString(""), t), - }, true, true}, - {"x notin (, a)", internalSelector{ - getRequirement("x", selection.NotIn, sets.NewString("", "a"), t), - }, true, true}, - {"a in (xyz),", nil, true, false}, - {"a in (xyz)b notin ()", nil, true, false}, - {"a ", internalSelector{ - getRequirement("a", selection.Exists, nil, t), - }, true, true}, - {"a in (x,y,notin, z,in)", internalSelector{ - getRequirement("a", selection.In, sets.NewString("in", "notin", "x", "y", "z"), t), - }, true, true}, // operator 'in' inside list of identifiers - {"a in (xyz abc)", nil, false, false}, // no comma - {"a notin(", nil, true, false}, // bad formed - {"a (", nil, false, false}, // cpar - {"(", nil, false, false}, // opar - } - - for _, ssp := range setSelectorParserTests { - if sel, err := Parse(ssp.In); err != nil && ssp.Valid { - t.Errorf("Parse(%s) => %v expected no error", ssp.In, err) - } else if err == nil && !ssp.Valid { - t.Errorf("Parse(%s) => %+v expected error", ssp.In, sel) - } else if ssp.Match && !reflect.DeepEqual(sel, ssp.Out) { - t.Errorf("Parse(%s) => parse output '%#v' doesn't match '%#v' expected match", ssp.In, sel, ssp.Out) - } - } -} - -func getRequirement(key string, op selection.Operator, vals sets.String, t *testing.T) Requirement { - req, err := NewRequirement(key, op, vals.List()) - if err != nil { - t.Errorf("NewRequirement(%v, %v, %v) resulted in error:%v", key, op, vals, err) - return Requirement{} - } - return *req -} - -func TestAdd(t *testing.T) { - testCases := []struct { - name string - sel Selector - key string - operator selection.Operator - values []string - refSelector Selector - }{ - { - "keyInOperator", - internalSelector{}, - "key", - selection.In, - []string{"value"}, - internalSelector{Requirement{"key", selection.In, []string{"value"}}}, - }, - { - "keyEqualsOperator", - internalSelector{Requirement{"key", selection.In, []string{"value"}}}, - "key2", - selection.Equals, - []string{"value2"}, - internalSelector{ - Requirement{"key", selection.In, []string{"value"}}, - Requirement{"key2", selection.Equals, []string{"value2"}}, - }, - }, - } - for _, ts := range testCases { - req, err := NewRequirement(ts.key, ts.operator, ts.values) - if err != nil { - t.Errorf("%s - Unable to create labels.Requirement", ts.name) - } - ts.sel = ts.sel.Add(*req) - if !reflect.DeepEqual(ts.sel, ts.refSelector) { - t.Errorf("%s - Expected %v found %v", ts.name, ts.refSelector, ts.sel) - } - } -} - -func TestSafeSort(t *testing.T) { - tests := []struct { - name string - in []string - inCopy []string - want []string - }{ - { - name: "nil strings", - in: nil, - inCopy: nil, - want: nil, - }, - { - name: "ordered strings", - in: []string{"bar", "foo"}, - inCopy: []string{"bar", "foo"}, - want: []string{"bar", "foo"}, - }, - { - name: "unordered strings", - in: []string{"foo", "bar"}, - inCopy: []string{"foo", "bar"}, - want: []string{"bar", "foo"}, - }, - { - name: "duplicated strings", - in: []string{"foo", "bar", "foo", "bar"}, - inCopy: []string{"foo", "bar", "foo", "bar"}, - want: []string{"bar", "bar", "foo", "foo"}, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := safeSort(tt.in); !reflect.DeepEqual(got, tt.want) { - t.Errorf("safeSort() = %v, want %v", got, tt.want) - } - if !reflect.DeepEqual(tt.in, tt.inCopy) { - t.Errorf("after safeSort(), input = %v, want %v", tt.in, tt.inCopy) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/labels/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/labels/zz_generated.deepcopy.go deleted file mode 100644 index 4d482947f..000000000 --- a/pseudo/k8s/apimachinery/pkg/labels/zz_generated.deepcopy.go +++ /dev/null @@ -1,42 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package labels - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Requirement) DeepCopyInto(out *Requirement) { - *out = *in - if in.strValues != nil { - in, out := &in.strValues, &out.strValues - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Requirement. -func (in *Requirement) DeepCopy() *Requirement { - if in == nil { - return nil - } - out := new(Requirement) - in.DeepCopyInto(out) - return out -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/codec.go b/pseudo/k8s/apimachinery/pkg/runtime/codec.go deleted file mode 100644 index 477dcf8fc..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/codec.go +++ /dev/null @@ -1,332 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "bytes" - "encoding/base64" - "fmt" - "io" - "net/url" - "reflect" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion/queryparams" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// codec binds an encoder and decoder. -type codec struct { - Encoder - Decoder -} - -// NewCodec creates a Codec from an Encoder and Decoder. -func NewCodec(e Encoder, d Decoder) Codec { - return codec{e, d} -} - -// Encode is a convenience wrapper for encoding to a []byte from an Encoder -func Encode(e Encoder, obj Object) ([]byte, error) { - // TODO: reuse buffer - buf := &bytes.Buffer{} - if err := e.Encode(obj, buf); err != nil { - return nil, err - } - return buf.Bytes(), nil -} - -// Decode is a convenience wrapper for decoding data into an Object. -func Decode(d Decoder, data []byte) (Object, error) { - obj, _, err := d.Decode(data, nil, nil) - return obj, err -} - -// DecodeInto performs a Decode into the provided object. -func DecodeInto(d Decoder, data []byte, into Object) error { - out, gvk, err := d.Decode(data, nil, into) - if err != nil { - return err - } - if out != into { - return fmt.Errorf("unable to decode %s into %v", gvk, reflect.TypeOf(into)) - } - return nil -} - -// EncodeOrDie is a version of Encode which will panic instead of returning an error. For tests. -func EncodeOrDie(e Encoder, obj Object) string { - bytes, err := Encode(e, obj) - if err != nil { - panic(err) - } - return string(bytes) -} - -// UseOrCreateObject returns obj if the canonical ObjectKind returned by the provided typer matches gvk, or -// invokes the ObjectCreator to instantiate a new gvk. Returns an error if the typer cannot find the object. -func UseOrCreateObject(t ObjectTyper, c ObjectCreater, gvk schema.GroupVersionKind, obj Object) (Object, error) { - if obj != nil { - kinds, _, err := t.ObjectKinds(obj) - if err != nil { - return nil, err - } - for _, kind := range kinds { - if gvk == kind { - return obj, nil - } - } - } - return c.New(gvk) -} - -// NoopEncoder converts an Decoder to a Serializer or Codec for code that expects them but only uses decoding. -type NoopEncoder struct { - Decoder -} - -var _ Serializer = NoopEncoder{} - -func (n NoopEncoder) Encode(obj Object, w io.Writer) error { - return fmt.Errorf("encoding is not allowed for this codec: %v", reflect.TypeOf(n.Decoder)) -} - -// NoopDecoder converts an Encoder to a Serializer or Codec for code that expects them but only uses encoding. -type NoopDecoder struct { - Encoder -} - -var _ Serializer = NoopDecoder{} - -func (n NoopDecoder) Decode(data []byte, gvk *schema.GroupVersionKind, into Object) (Object, *schema.GroupVersionKind, error) { - return nil, nil, fmt.Errorf("decoding is not allowed for this codec: %v", reflect.TypeOf(n.Encoder)) -} - -// NewParameterCodec creates a ParameterCodec capable of transforming url values into versioned objects and back. -func NewParameterCodec(scheme *Scheme) ParameterCodec { - return ¶meterCodec{ - typer: scheme, - convertor: scheme, - creator: scheme, - defaulter: scheme, - } -} - -// parameterCodec implements conversion to and from query parameters and objects. -type parameterCodec struct { - typer ObjectTyper - convertor ObjectConvertor - creator ObjectCreater - defaulter ObjectDefaulter -} - -var _ ParameterCodec = ¶meterCodec{} - -// DecodeParameters converts the provided url.Values into an object of type From with the kind of into, and then -// converts that object to into (if necessary). Returns an error if the operation cannot be completed. -func (c *parameterCodec) DecodeParameters(parameters url.Values, from schema.GroupVersion, into Object) error { - if len(parameters) == 0 { - return nil - } - targetGVKs, _, err := c.typer.ObjectKinds(into) - if err != nil { - return err - } - for i := range targetGVKs { - if targetGVKs[i].GroupVersion() == from { - if err := c.convertor.Convert(¶meters, into, nil); err != nil { - return err - } - // in the case where we going into the same object we're receiving, default on the outbound object - if c.defaulter != nil { - c.defaulter.Default(into) - } - return nil - } - } - - input, err := c.creator.New(from.WithKind(targetGVKs[0].Kind)) - if err != nil { - return err - } - if err := c.convertor.Convert(¶meters, input, nil); err != nil { - return err - } - // if we have defaulter, default the input before converting to output - if c.defaulter != nil { - c.defaulter.Default(input) - } - return c.convertor.Convert(input, into, nil) -} - -// EncodeParameters converts the provided object into the to version, then converts that object to url.Values. -// Returns an error if conversion is not possible. -func (c *parameterCodec) EncodeParameters(obj Object, to schema.GroupVersion) (url.Values, error) { - gvks, _, err := c.typer.ObjectKinds(obj) - if err != nil { - return nil, err - } - gvk := gvks[0] - if to != gvk.GroupVersion() { - out, err := c.convertor.ConvertToVersion(obj, to) - if err != nil { - return nil, err - } - obj = out - } - return queryparams.Convert(obj) -} - -type base64Serializer struct { - Encoder - Decoder -} - -func NewBase64Serializer(e Encoder, d Decoder) Serializer { - return &base64Serializer{e, d} -} - -func (s base64Serializer) Encode(obj Object, stream io.Writer) error { - e := base64.NewEncoder(base64.StdEncoding, stream) - err := s.Encoder.Encode(obj, e) - e.Close() - return err -} - -func (s base64Serializer) Decode(data []byte, defaults *schema.GroupVersionKind, into Object) (Object, *schema.GroupVersionKind, error) { - out := make([]byte, base64.StdEncoding.DecodedLen(len(data))) - n, err := base64.StdEncoding.Decode(out, data) - if err != nil { - return nil, nil, err - } - return s.Decoder.Decode(out[:n], defaults, into) -} - -// SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot -// include media-type parameters), or the first info with an empty media type, or false if no type matches. -func SerializerInfoForMediaType(types []SerializerInfo, mediaType string) (SerializerInfo, bool) { - for _, info := range types { - if info.MediaType == mediaType { - return info, true - } - } - for _, info := range types { - if len(info.MediaType) == 0 { - return info, true - } - } - return SerializerInfo{}, false -} - -var ( - // InternalGroupVersioner will always prefer the internal version for a given group version kind. - InternalGroupVersioner GroupVersioner = internalGroupVersioner{} - // DisabledGroupVersioner will reject all kinds passed to it. - DisabledGroupVersioner GroupVersioner = disabledGroupVersioner{} -) - -type internalGroupVersioner struct{} - -// KindForGroupVersionKinds returns an internal Kind if one is found, or converts the first provided kind to the internal version. -func (internalGroupVersioner) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (schema.GroupVersionKind, bool) { - for _, kind := range kinds { - if kind.Version == APIVersionInternal { - return kind, true - } - } - for _, kind := range kinds { - return schema.GroupVersionKind{Group: kind.Group, Version: APIVersionInternal, Kind: kind.Kind}, true - } - return schema.GroupVersionKind{}, false -} - -type disabledGroupVersioner struct{} - -// KindForGroupVersionKinds returns false for any input. -func (disabledGroupVersioner) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (schema.GroupVersionKind, bool) { - return schema.GroupVersionKind{}, false -} - -// GroupVersioners implements GroupVersioner and resolves to the first exact match for any kind. -type GroupVersioners []GroupVersioner - -// KindForGroupVersionKinds returns the first match of any of the group versioners, or false if no match occurred. -func (gvs GroupVersioners) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (schema.GroupVersionKind, bool) { - for _, gv := range gvs { - target, ok := gv.KindForGroupVersionKinds(kinds) - if !ok { - continue - } - return target, true - } - return schema.GroupVersionKind{}, false -} - -// Assert that schema.GroupVersion and GroupVersions implement GroupVersioner -var _ GroupVersioner = schema.GroupVersion{} -var _ GroupVersioner = schema.GroupVersions{} -var _ GroupVersioner = multiGroupVersioner{} - -type multiGroupVersioner struct { - target schema.GroupVersion - acceptedGroupKinds []schema.GroupKind - coerce bool -} - -// NewMultiGroupVersioner returns the provided group version for any kind that matches one of the provided group kinds. -// Kind may be empty in the provided group kind, in which case any kind will match. -func NewMultiGroupVersioner(gv schema.GroupVersion, groupKinds ...schema.GroupKind) GroupVersioner { - if len(groupKinds) == 0 || (len(groupKinds) == 1 && groupKinds[0].Group == gv.Group) { - return gv - } - return multiGroupVersioner{target: gv, acceptedGroupKinds: groupKinds} -} - -// NewCoercingMultiGroupVersioner returns the provided group version for any incoming kind. -// Incoming kinds that match the provided groupKinds are preferred. -// Kind may be empty in the provided group kind, in which case any kind will match. -// Examples: -// gv=mygroup/__internal, groupKinds=mygroup/Foo, anothergroup/Bar -// KindForGroupVersionKinds(yetanother/v1/Baz, anothergroup/v1/Bar) -> mygroup/__internal/Bar (matched preferred group/kind) -// -// gv=mygroup/__internal, groupKinds=mygroup, anothergroup -// KindForGroupVersionKinds(yetanother/v1/Baz, anothergroup/v1/Bar) -> mygroup/__internal/Bar (matched preferred group) -// -// gv=mygroup/__internal, groupKinds=mygroup, anothergroup -// KindForGroupVersionKinds(yetanother/v1/Baz, yetanother/v1/Bar) -> mygroup/__internal/Baz (no preferred group/kind match, uses first kind in list) -func NewCoercingMultiGroupVersioner(gv schema.GroupVersion, groupKinds ...schema.GroupKind) GroupVersioner { - return multiGroupVersioner{target: gv, acceptedGroupKinds: groupKinds, coerce: true} -} - -// KindForGroupVersionKinds returns the target group version if any kind matches any of the original group kinds. It will -// use the originating kind where possible. -func (v multiGroupVersioner) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (schema.GroupVersionKind, bool) { - for _, src := range kinds { - for _, kind := range v.acceptedGroupKinds { - if kind.Group != src.Group { - continue - } - if len(kind.Kind) > 0 && kind.Kind != src.Kind { - continue - } - return v.target.WithKind(src.Kind), true - } - } - if v.coerce && len(kinds) > 0 { - return v.target.WithKind(kinds[0].Kind), true - } - return schema.GroupVersionKind{}, false -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/codec_check.go b/pseudo/k8s/apimachinery/pkg/runtime/codec_check.go deleted file mode 100644 index d1b3b4db5..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/codec_check.go +++ /dev/null @@ -1,48 +0,0 @@ -/* -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 runtime - -import ( - "fmt" - "reflect" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// CheckCodec makes sure that the codec can encode objects like internalType, -// decode all of the external types listed, and also decode them into the given -// object. (Will modify internalObject.) (Assumes JSON serialization.) -// TODO: verify that the correct external version is chosen on encode... -func CheckCodec(c Codec, internalType Object, externalTypes ...schema.GroupVersionKind) error { - if _, err := Encode(c, internalType); err != nil { - return fmt.Errorf("Internal type not encodable: %v", err) - } - for _, et := range externalTypes { - exBytes := []byte(fmt.Sprintf(`{"kind":"%v","apiVersion":"%v"}`, et.Kind, et.GroupVersion().String())) - obj, err := Decode(c, exBytes) - if err != nil { - return fmt.Errorf("external type %s not interpretable: %v", et, err) - } - if reflect.TypeOf(obj) != reflect.TypeOf(internalType) { - return fmt.Errorf("decode of external type %s produced: %#v", et, obj) - } - if err = DecodeInto(c, exBytes, internalType); err != nil { - return fmt.Errorf("external type %s not convertible to internal type: %v", et, err) - } - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/codec_test.go b/pseudo/k8s/apimachinery/pkg/runtime/codec_test.go deleted file mode 100644 index 25a34c90a..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/codec_test.go +++ /dev/null @@ -1,78 +0,0 @@ -/* -Copyright 2019 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 runtime - -import ( - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -func gv(group, version string) schema.GroupVersion { - return schema.GroupVersion{Group: group, Version: version} -} -func gvk(group, version, kind string) schema.GroupVersionKind { - return schema.GroupVersionKind{Group: group, Version: version, Kind: kind} -} -func gk(group, kind string) schema.GroupKind { - return schema.GroupKind{Group: group, Kind: kind} -} - -func TestCoercingMultiGroupVersioner(t *testing.T) { - testcases := []struct { - name string - target schema.GroupVersion - preferredKinds []schema.GroupKind - kinds []schema.GroupVersionKind - expectKind schema.GroupVersionKind - }{ - { - name: "matched preferred group/kind", - target: gv("mygroup", "__internal"), - preferredKinds: []schema.GroupKind{gk("mygroup", "Foo"), gk("anothergroup", "Bar")}, - kinds: []schema.GroupVersionKind{gvk("yetanother", "v1", "Baz"), gvk("anothergroup", "v1", "Bar")}, - expectKind: gvk("mygroup", "__internal", "Bar"), - }, - { - name: "matched preferred group", - target: gv("mygroup", "__internal"), - preferredKinds: []schema.GroupKind{gk("mygroup", ""), gk("anothergroup", "")}, - kinds: []schema.GroupVersionKind{gvk("yetanother", "v1", "Baz"), gvk("anothergroup", "v1", "Bar")}, - expectKind: gvk("mygroup", "__internal", "Bar"), - }, - { - name: "no preferred group/kind match, uses first kind in list", - target: gv("mygroup", "__internal"), - preferredKinds: []schema.GroupKind{gk("mygroup", ""), gk("anothergroup", "")}, - kinds: []schema.GroupVersionKind{gvk("yetanother", "v1", "Baz"), gvk("yetanother", "v1", "Bar")}, - expectKind: gvk("mygroup", "__internal", "Baz"), - }, - } - - for _, tc := range testcases { - t.Run(tc.name, func(t *testing.T) { - v := NewCoercingMultiGroupVersioner(tc.target, tc.preferredKinds...) - kind, ok := v.KindForGroupVersionKinds(tc.kinds) - if !ok { - t.Error("got no kind") - } - if kind != tc.expectKind { - t.Errorf("expected %#v, got %#v", tc.expectKind, kind) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/conversion.go b/pseudo/k8s/apimachinery/pkg/runtime/conversion.go deleted file mode 100644 index 8cf2b564c..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/conversion.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright 2014 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 runtime defines conversions between generic types and structs to map query strings -// to struct objects. -package runtime - -import ( - "fmt" - "reflect" - "strconv" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" -) - -// DefaultMetaV1FieldSelectorConversion auto-accepts metav1 values for name and namespace. -// A cluster scoped resource specifying namespace empty works fine and specifying a particular -// namespace will return no results, as expected. -func DefaultMetaV1FieldSelectorConversion(label, value string) (string, string, error) { - switch label { - case "metadata.name": - return label, value, nil - case "metadata.namespace": - return label, value, nil - default: - return "", "", fmt.Errorf("%q is not a known field selector: only %q, %q", label, "metadata.name", "metadata.namespace") - } -} - -// JSONKeyMapper uses the struct tags on a conversion to determine the key value for -// the other side. Use when mapping from a map[string]* to a struct or vice versa. -func JSONKeyMapper(key string, sourceTag, destTag reflect.StructTag) (string, string) { - if s := destTag.Get("json"); len(s) > 0 { - return strings.SplitN(s, ",", 2)[0], key - } - if s := sourceTag.Get("json"); len(s) > 0 { - return key, strings.SplitN(s, ",", 2)[0] - } - return key, key -} - -// DefaultStringConversions are helpers for converting []string and string to real values. -var DefaultStringConversions = []interface{}{ - Convert_Slice_string_To_string, - Convert_Slice_string_To_int, - Convert_Slice_string_To_bool, - Convert_Slice_string_To_int64, -} - -func Convert_Slice_string_To_string(input *[]string, out *string, s conversion.Scope) error { - if len(*input) == 0 { - *out = "" - } - *out = (*input)[0] - return nil -} - -func Convert_Slice_string_To_int(input *[]string, out *int, s conversion.Scope) error { - if len(*input) == 0 { - *out = 0 - } - str := (*input)[0] - i, err := strconv.Atoi(str) - if err != nil { - return err - } - *out = i - return nil -} - -// Convert_Slice_string_To_bool will convert a string parameter to boolean. -// Only the absence of a value, a value of "false", or a value of "0" resolve to false. -// Any other value (including empty string) resolves to true. -func Convert_Slice_string_To_bool(input *[]string, out *bool, s conversion.Scope) error { - if len(*input) == 0 { - *out = false - return nil - } - switch strings.ToLower((*input)[0]) { - case "false", "0": - *out = false - default: - *out = true - } - return nil -} - -func Convert_Slice_string_To_int64(input *[]string, out *int64, s conversion.Scope) error { - if len(*input) == 0 { - *out = 0 - } - str := (*input)[0] - i, err := strconv.ParseInt(str, 10, 64) - if err != nil { - return err - } - *out = i - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/conversion_test.go b/pseudo/k8s/apimachinery/pkg/runtime/conversion_test.go deleted file mode 100644 index 2b6eb8fd3..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/conversion_test.go +++ /dev/null @@ -1,115 +0,0 @@ -/* -Copyright 2014 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 runtime_test - -import ( - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - runtimetesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/testing" -) - -func TestStringMapConversion(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "external"} - - scheme := runtime.NewScheme() - scheme.Log(t) - scheme.AddKnownTypeWithName(internalGV.WithKind("Complex"), &runtimetesting.InternalComplex{}) - scheme.AddKnownTypeWithName(externalGV.WithKind("Complex"), &runtimetesting.ExternalComplex{}) - - testCases := map[string]struct { - input map[string][]string - errFn func(error) bool - expected runtime.Object - }{ - "ignores omitempty": { - input: map[string][]string{ - "String": {"not_used"}, - "string": {"value"}, - "int": {"1"}, - "Integer64": {"2"}, - }, - expected: &runtimetesting.ExternalComplex{String: "value", Integer: 1}, - }, - "returns error on bad int": { - input: map[string][]string{ - "int": {"a"}, - }, - errFn: func(err error) bool { return err != nil }, - expected: &runtimetesting.ExternalComplex{}, - }, - "parses int64": { - input: map[string][]string{ - "Int64": {"-1"}, - }, - expected: &runtimetesting.ExternalComplex{Int64: -1}, - }, - "returns error on bad int64": { - input: map[string][]string{ - "Int64": {"a"}, - }, - errFn: func(err error) bool { return err != nil }, - expected: &runtimetesting.ExternalComplex{}, - }, - "parses boolean true": { - input: map[string][]string{ - "bool": {"true"}, - }, - expected: &runtimetesting.ExternalComplex{Bool: true}, - }, - "parses boolean any value": { - input: map[string][]string{ - "bool": {"foo"}, - }, - expected: &runtimetesting.ExternalComplex{Bool: true}, - }, - "parses boolean false": { - input: map[string][]string{ - "bool": {"false"}, - }, - expected: &runtimetesting.ExternalComplex{Bool: false}, - }, - "parses boolean empty value": { - input: map[string][]string{ - "bool": {""}, - }, - expected: &runtimetesting.ExternalComplex{Bool: true}, - }, - "parses boolean no value": { - input: map[string][]string{ - "bool": {}, - }, - expected: &runtimetesting.ExternalComplex{Bool: false}, - }, - } - - for k, tc := range testCases { - out := &runtimetesting.ExternalComplex{} - if err := scheme.Convert(&tc.input, out, nil); (tc.errFn == nil && err != nil) || (tc.errFn != nil && !tc.errFn(err)) { - t.Errorf("%s: unexpected error: %v", k, err) - continue - } else if err != nil { - continue - } - if !reflect.DeepEqual(out, tc.expected) { - t.Errorf("%s: unexpected output: %#v", k, out) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/converter.go b/pseudo/k8s/apimachinery/pkg/runtime/converter.go deleted file mode 100644 index 23182b7a1..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/converter.go +++ /dev/null @@ -1,805 +0,0 @@ -/* -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 runtime - -import ( - "bytes" - encodingjson "encoding/json" - "fmt" - "math" - "os" - "reflect" - "strconv" - "strings" - "sync" - "sync/atomic" - "time" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" - - "k8s.io/klog" -) - -// UnstructuredConverter is an interface for converting between interface{} -// and map[string]interface representation. -type UnstructuredConverter interface { - ToUnstructured(obj interface{}) (map[string]interface{}, error) - FromUnstructured(u map[string]interface{}, obj interface{}) error -} - -type structField struct { - structType reflect.Type - field int -} - -type fieldInfo struct { - name string - nameValue reflect.Value - omitempty bool -} - -type fieldsCacheMap map[structField]*fieldInfo - -type fieldsCache struct { - sync.Mutex - value atomic.Value -} - -func newFieldsCache() *fieldsCache { - cache := &fieldsCache{} - cache.value.Store(make(fieldsCacheMap)) - return cache -} - -var ( - marshalerType = reflect.TypeOf(new(encodingjson.Marshaler)).Elem() - unmarshalerType = reflect.TypeOf(new(encodingjson.Unmarshaler)).Elem() - mapStringInterfaceType = reflect.TypeOf(map[string]interface{}{}) - stringType = reflect.TypeOf(string("")) - int64Type = reflect.TypeOf(int64(0)) - float64Type = reflect.TypeOf(float64(0)) - boolType = reflect.TypeOf(bool(false)) - fieldCache = newFieldsCache() - - // DefaultUnstructuredConverter performs unstructured to Go typed object conversions. - DefaultUnstructuredConverter = &unstructuredConverter{ - mismatchDetection: parseBool(os.Getenv("KUBE_PATCH_CONVERSION_DETECTOR")), - comparison: conversion.EqualitiesOrDie( - func(a, b time.Time) bool { - return a.UTC() == b.UTC() - }, - ), - } -) - -func parseBool(key string) bool { - if len(key) == 0 { - return false - } - value, err := strconv.ParseBool(key) - if err != nil { - utilruntime.HandleError(fmt.Errorf("couldn't parse '%s' as bool for unstructured mismatch detection", key)) - } - return value -} - -// unstructuredConverter knows how to convert between interface{} and -// Unstructured in both ways. -type unstructuredConverter struct { - // If true, we will be additionally running conversion via json - // to ensure that the result is true. - // This is supposed to be set only in tests. - mismatchDetection bool - // comparison is the default test logic used to compare - comparison conversion.Equalities -} - -// NewTestUnstructuredConverter creates an UnstructuredConverter that accepts JSON typed maps and translates them -// to Go types via reflection. It performs mismatch detection automatically and is intended for use by external -// test tools. Use DefaultUnstructuredConverter if you do not explicitly need mismatch detection. -func NewTestUnstructuredConverter(comparison conversion.Equalities) UnstructuredConverter { - return &unstructuredConverter{ - mismatchDetection: true, - comparison: comparison, - } -} - -// FromUnstructured converts an object from map[string]interface{} representation into a concrete type. -// It uses encoding/json/Unmarshaler if object implements it or reflection if not. -func (c *unstructuredConverter) FromUnstructured(u map[string]interface{}, obj interface{}) error { - t := reflect.TypeOf(obj) - value := reflect.ValueOf(obj) - if t.Kind() != reflect.Ptr || value.IsNil() { - return fmt.Errorf("FromUnstructured requires a non-nil pointer to an object, got %v", t) - } - err := fromUnstructured(reflect.ValueOf(u), value.Elem()) - if c.mismatchDetection { - newObj := reflect.New(t.Elem()).Interface() - newErr := fromUnstructuredViaJSON(u, newObj) - if (err != nil) != (newErr != nil) { - klog.Fatalf("FromUnstructured unexpected error for %v: error: %v", u, err) - } - if err == nil && !c.comparison.DeepEqual(obj, newObj) { - klog.Fatalf("FromUnstructured mismatch\nobj1: %#v\nobj2: %#v", obj, newObj) - } - } - return err -} - -func fromUnstructuredViaJSON(u map[string]interface{}, obj interface{}) error { - data, err := json.Marshal(u) - if err != nil { - return err - } - return json.Unmarshal(data, obj) -} - -func fromUnstructured(sv, dv reflect.Value) error { - sv = unwrapInterface(sv) - if !sv.IsValid() { - dv.Set(reflect.Zero(dv.Type())) - return nil - } - st, dt := sv.Type(), dv.Type() - - switch dt.Kind() { - case reflect.Map, reflect.Slice, reflect.Ptr, reflect.Struct, reflect.Interface: - // Those require non-trivial conversion. - default: - // This should handle all simple types. - if st.AssignableTo(dt) { - dv.Set(sv) - return nil - } - // We cannot simply use "ConvertibleTo", as JSON doesn't support conversions - // between those four groups: bools, integers, floats and string. We need to - // do the same. - if st.ConvertibleTo(dt) { - switch st.Kind() { - case reflect.String: - switch dt.Kind() { - case reflect.String: - dv.Set(sv.Convert(dt)) - return nil - } - case reflect.Bool: - switch dt.Kind() { - case reflect.Bool: - dv.Set(sv.Convert(dt)) - return nil - } - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - switch dt.Kind() { - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - dv.Set(sv.Convert(dt)) - return nil - } - case reflect.Float32, reflect.Float64: - switch dt.Kind() { - case reflect.Float32, reflect.Float64: - dv.Set(sv.Convert(dt)) - return nil - } - if sv.Float() == math.Trunc(sv.Float()) { - dv.Set(sv.Convert(dt)) - return nil - } - } - return fmt.Errorf("cannot convert %s to %s", st.String(), dt.String()) - } - } - - // Check if the object has a custom JSON marshaller/unmarshaller. - if reflect.PtrTo(dt).Implements(unmarshalerType) { - data, err := json.Marshal(sv.Interface()) - if err != nil { - return fmt.Errorf("error encoding %s to json: %v", st.String(), err) - } - unmarshaler := dv.Addr().Interface().(encodingjson.Unmarshaler) - return unmarshaler.UnmarshalJSON(data) - } - - switch dt.Kind() { - case reflect.Map: - return mapFromUnstructured(sv, dv) - case reflect.Slice: - return sliceFromUnstructured(sv, dv) - case reflect.Ptr: - return pointerFromUnstructured(sv, dv) - case reflect.Struct: - return structFromUnstructured(sv, dv) - case reflect.Interface: - return interfaceFromUnstructured(sv, dv) - default: - return fmt.Errorf("unrecognized type: %v", dt.Kind()) - } -} - -func fieldInfoFromField(structType reflect.Type, field int) *fieldInfo { - fieldCacheMap := fieldCache.value.Load().(fieldsCacheMap) - if info, ok := fieldCacheMap[structField{structType, field}]; ok { - return info - } - - // Cache miss - we need to compute the field name. - info := &fieldInfo{} - typeField := structType.Field(field) - jsonTag := typeField.Tag.Get("json") - if len(jsonTag) == 0 { - // Make the first character lowercase. - if typeField.Name == "" { - info.name = typeField.Name - } else { - info.name = strings.ToLower(typeField.Name[:1]) + typeField.Name[1:] - } - } else { - items := strings.Split(jsonTag, ",") - info.name = items[0] - for i := range items { - if items[i] == "omitempty" { - info.omitempty = true - } - } - } - info.nameValue = reflect.ValueOf(info.name) - - fieldCache.Lock() - defer fieldCache.Unlock() - fieldCacheMap = fieldCache.value.Load().(fieldsCacheMap) - newFieldCacheMap := make(fieldsCacheMap) - for k, v := range fieldCacheMap { - newFieldCacheMap[k] = v - } - newFieldCacheMap[structField{structType, field}] = info - fieldCache.value.Store(newFieldCacheMap) - return info -} - -func unwrapInterface(v reflect.Value) reflect.Value { - for v.Kind() == reflect.Interface { - v = v.Elem() - } - return v -} - -func mapFromUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - if st.Kind() != reflect.Map { - return fmt.Errorf("cannot restore map from %v", st.Kind()) - } - - if !st.Key().AssignableTo(dt.Key()) && !st.Key().ConvertibleTo(dt.Key()) { - return fmt.Errorf("cannot copy map with non-assignable keys: %v %v", st.Key(), dt.Key()) - } - - if sv.IsNil() { - dv.Set(reflect.Zero(dt)) - return nil - } - dv.Set(reflect.MakeMap(dt)) - for _, key := range sv.MapKeys() { - value := reflect.New(dt.Elem()).Elem() - if val := unwrapInterface(sv.MapIndex(key)); val.IsValid() { - if err := fromUnstructured(val, value); err != nil { - return err - } - } else { - value.Set(reflect.Zero(dt.Elem())) - } - if st.Key().AssignableTo(dt.Key()) { - dv.SetMapIndex(key, value) - } else { - dv.SetMapIndex(key.Convert(dt.Key()), value) - } - } - return nil -} - -func sliceFromUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - if st.Kind() == reflect.String && dt.Elem().Kind() == reflect.Uint8 { - // We store original []byte representation as string. - // This conversion is allowed, but we need to be careful about - // marshaling data appropriately. - if len(sv.Interface().(string)) > 0 { - marshalled, err := json.Marshal(sv.Interface()) - if err != nil { - return fmt.Errorf("error encoding %s to json: %v", st, err) - } - // TODO: Is this Unmarshal needed? - var data []byte - err = json.Unmarshal(marshalled, &data) - if err != nil { - return fmt.Errorf("error decoding from json: %v", err) - } - dv.SetBytes(data) - } else { - dv.Set(reflect.Zero(dt)) - } - return nil - } - if st.Kind() != reflect.Slice { - return fmt.Errorf("cannot restore slice from %v", st.Kind()) - } - - if sv.IsNil() { - dv.Set(reflect.Zero(dt)) - return nil - } - dv.Set(reflect.MakeSlice(dt, sv.Len(), sv.Cap())) - for i := 0; i < sv.Len(); i++ { - if err := fromUnstructured(sv.Index(i), dv.Index(i)); err != nil { - return err - } - } - return nil -} - -func pointerFromUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - - if st.Kind() == reflect.Ptr && sv.IsNil() { - dv.Set(reflect.Zero(dt)) - return nil - } - dv.Set(reflect.New(dt.Elem())) - switch st.Kind() { - case reflect.Ptr, reflect.Interface: - return fromUnstructured(sv.Elem(), dv.Elem()) - default: - return fromUnstructured(sv, dv.Elem()) - } -} - -func structFromUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - if st.Kind() != reflect.Map { - return fmt.Errorf("cannot restore struct from: %v", st.Kind()) - } - - for i := 0; i < dt.NumField(); i++ { - fieldInfo := fieldInfoFromField(dt, i) - fv := dv.Field(i) - - if len(fieldInfo.name) == 0 { - // This field is inlined. - if err := fromUnstructured(sv, fv); err != nil { - return err - } - } else { - value := unwrapInterface(sv.MapIndex(fieldInfo.nameValue)) - if value.IsValid() { - if err := fromUnstructured(value, fv); err != nil { - return err - } - } else { - fv.Set(reflect.Zero(fv.Type())) - } - } - } - return nil -} - -func interfaceFromUnstructured(sv, dv reflect.Value) error { - // TODO: Is this conversion safe? - dv.Set(sv) - return nil -} - -// ToUnstructured converts an object into map[string]interface{} representation. -// It uses encoding/json/Marshaler if object implements it or reflection if not. -func (c *unstructuredConverter) ToUnstructured(obj interface{}) (map[string]interface{}, error) { - var u map[string]interface{} - var err error - if unstr, ok := obj.(Unstructured); ok { - u = unstr.UnstructuredContent() - } else { - t := reflect.TypeOf(obj) - value := reflect.ValueOf(obj) - if t.Kind() != reflect.Ptr || value.IsNil() { - return nil, fmt.Errorf("ToUnstructured requires a non-nil pointer to an object, got %v", t) - } - u = map[string]interface{}{} - err = toUnstructured(value.Elem(), reflect.ValueOf(&u).Elem()) - } - if c.mismatchDetection { - newUnstr := map[string]interface{}{} - newErr := toUnstructuredViaJSON(obj, &newUnstr) - if (err != nil) != (newErr != nil) { - klog.Fatalf("ToUnstructured unexpected error for %v: error: %v; newErr: %v", obj, err, newErr) - } - if err == nil && !c.comparison.DeepEqual(u, newUnstr) { - klog.Fatalf("ToUnstructured mismatch\nobj1: %#v\nobj2: %#v", u, newUnstr) - } - } - if err != nil { - return nil, err - } - return u, nil -} - -// DeepCopyJSON deep copies the passed value, assuming it is a valid JSON representation i.e. only contains -// types produced by json.Unmarshal() and also int64. -// bool, int64, float64, string, []interface{}, map[string]interface{}, json.Number and nil -func DeepCopyJSON(x map[string]interface{}) map[string]interface{} { - return DeepCopyJSONValue(x).(map[string]interface{}) -} - -// DeepCopyJSONValue deep copies the passed value, assuming it is a valid JSON representation i.e. only contains -// types produced by json.Unmarshal() and also int64. -// bool, int64, float64, string, []interface{}, map[string]interface{}, json.Number and nil -func DeepCopyJSONValue(x interface{}) interface{} { - switch x := x.(type) { - case map[string]interface{}: - if x == nil { - // Typed nil - an interface{} that contains a type map[string]interface{} with a value of nil - return x - } - clone := make(map[string]interface{}, len(x)) - for k, v := range x { - clone[k] = DeepCopyJSONValue(v) - } - return clone - case []interface{}: - if x == nil { - // Typed nil - an interface{} that contains a type []interface{} with a value of nil - return x - } - clone := make([]interface{}, len(x)) - for i, v := range x { - clone[i] = DeepCopyJSONValue(v) - } - return clone - case string, int64, bool, float64, nil, encodingjson.Number: - return x - default: - panic(fmt.Errorf("cannot deep copy %T", x)) - } -} - -func toUnstructuredViaJSON(obj interface{}, u *map[string]interface{}) error { - data, err := json.Marshal(obj) - if err != nil { - return err - } - return json.Unmarshal(data, u) -} - -var ( - nullBytes = []byte("null") - trueBytes = []byte("true") - falseBytes = []byte("false") -) - -func getMarshaler(v reflect.Value) (encodingjson.Marshaler, bool) { - // Check value receivers if v is not a pointer and pointer receivers if v is a pointer - if v.Type().Implements(marshalerType) { - return v.Interface().(encodingjson.Marshaler), true - } - // Check pointer receivers if v is not a pointer - if v.Kind() != reflect.Ptr && v.CanAddr() { - v = v.Addr() - if v.Type().Implements(marshalerType) { - return v.Interface().(encodingjson.Marshaler), true - } - } - return nil, false -} - -func toUnstructured(sv, dv reflect.Value) error { - // Check if the object has a custom JSON marshaller/unmarshaller. - if marshaler, ok := getMarshaler(sv); ok { - if sv.Kind() == reflect.Ptr && sv.IsNil() { - // We're done - we don't need to store anything. - return nil - } - - data, err := marshaler.MarshalJSON() - if err != nil { - return err - } - switch { - case len(data) == 0: - return fmt.Errorf("error decoding from json: empty value") - - case bytes.Equal(data, nullBytes): - // We're done - we don't need to store anything. - - case bytes.Equal(data, trueBytes): - dv.Set(reflect.ValueOf(true)) - - case bytes.Equal(data, falseBytes): - dv.Set(reflect.ValueOf(false)) - - case data[0] == '"': - var result string - err := json.Unmarshal(data, &result) - if err != nil { - return fmt.Errorf("error decoding string from json: %v", err) - } - dv.Set(reflect.ValueOf(result)) - - case data[0] == '{': - result := make(map[string]interface{}) - err := json.Unmarshal(data, &result) - if err != nil { - return fmt.Errorf("error decoding object from json: %v", err) - } - dv.Set(reflect.ValueOf(result)) - - case data[0] == '[': - result := make([]interface{}, 0) - err := json.Unmarshal(data, &result) - if err != nil { - return fmt.Errorf("error decoding array from json: %v", err) - } - dv.Set(reflect.ValueOf(result)) - - default: - var ( - resultInt int64 - resultFloat float64 - err error - ) - if err = json.Unmarshal(data, &resultInt); err == nil { - dv.Set(reflect.ValueOf(resultInt)) - } else if err = json.Unmarshal(data, &resultFloat); err == nil { - dv.Set(reflect.ValueOf(resultFloat)) - } else { - return fmt.Errorf("error decoding number from json: %v", err) - } - } - - return nil - } - - st, dt := sv.Type(), dv.Type() - switch st.Kind() { - case reflect.String: - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - dv.Set(reflect.New(stringType)) - } - dv.Set(reflect.ValueOf(sv.String())) - return nil - case reflect.Bool: - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - dv.Set(reflect.New(boolType)) - } - dv.Set(reflect.ValueOf(sv.Bool())) - return nil - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - dv.Set(reflect.New(int64Type)) - } - dv.Set(reflect.ValueOf(sv.Int())) - return nil - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - uVal := sv.Uint() - if uVal > math.MaxInt64 { - return fmt.Errorf("unsigned value %d does not fit into int64 (overflow)", uVal) - } - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - dv.Set(reflect.New(int64Type)) - } - dv.Set(reflect.ValueOf(int64(uVal))) - return nil - case reflect.Float32, reflect.Float64: - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - dv.Set(reflect.New(float64Type)) - } - dv.Set(reflect.ValueOf(sv.Float())) - return nil - case reflect.Map: - return mapToUnstructured(sv, dv) - case reflect.Slice: - return sliceToUnstructured(sv, dv) - case reflect.Ptr: - return pointerToUnstructured(sv, dv) - case reflect.Struct: - return structToUnstructured(sv, dv) - case reflect.Interface: - return interfaceToUnstructured(sv, dv) - default: - return fmt.Errorf("unrecognized type: %v", st.Kind()) - } -} - -func mapToUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - if sv.IsNil() { - dv.Set(reflect.Zero(dt)) - return nil - } - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - if st.Key().Kind() == reflect.String { - switch st.Elem().Kind() { - // TODO It should be possible to reuse the slice for primitive types. - // However, it is panicing in the following form. - // case reflect.String, reflect.Bool, - // reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - // reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - // sv.Set(sv) - // return nil - default: - // We need to do a proper conversion. - } - } - dv.Set(reflect.MakeMap(mapStringInterfaceType)) - dv = dv.Elem() - dt = dv.Type() - } - if dt.Kind() != reflect.Map { - return fmt.Errorf("cannot convert struct to: %v", dt.Kind()) - } - - if !st.Key().AssignableTo(dt.Key()) && !st.Key().ConvertibleTo(dt.Key()) { - return fmt.Errorf("cannot copy map with non-assignable keys: %v %v", st.Key(), dt.Key()) - } - - for _, key := range sv.MapKeys() { - value := reflect.New(dt.Elem()).Elem() - if err := toUnstructured(sv.MapIndex(key), value); err != nil { - return err - } - if st.Key().AssignableTo(dt.Key()) { - dv.SetMapIndex(key, value) - } else { - dv.SetMapIndex(key.Convert(dt.Key()), value) - } - } - return nil -} - -func sliceToUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - if sv.IsNil() { - dv.Set(reflect.Zero(dt)) - return nil - } - if st.Elem().Kind() == reflect.Uint8 { - dv.Set(reflect.New(stringType)) - data, err := json.Marshal(sv.Bytes()) - if err != nil { - return err - } - var result string - if err = json.Unmarshal(data, &result); err != nil { - return err - } - dv.Set(reflect.ValueOf(result)) - return nil - } - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - switch st.Elem().Kind() { - // TODO It should be possible to reuse the slice for primitive types. - // However, it is panicing in the following form. - // case reflect.String, reflect.Bool, - // reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, - // reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - // sv.Set(sv) - // return nil - default: - // We need to do a proper conversion. - dv.Set(reflect.MakeSlice(reflect.SliceOf(dt), sv.Len(), sv.Cap())) - dv = dv.Elem() - dt = dv.Type() - } - } - if dt.Kind() != reflect.Slice { - return fmt.Errorf("cannot convert slice to: %v", dt.Kind()) - } - for i := 0; i < sv.Len(); i++ { - if err := toUnstructured(sv.Index(i), dv.Index(i)); err != nil { - return err - } - } - return nil -} - -func pointerToUnstructured(sv, dv reflect.Value) error { - if sv.IsNil() { - // We're done - we don't need to store anything. - return nil - } - return toUnstructured(sv.Elem(), dv) -} - -func isZero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Array, reflect.String: - return v.Len() == 0 - case reflect.Bool: - return !v.Bool() - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.Map, reflect.Slice: - // TODO: It seems that 0-len maps are ignored in it. - return v.IsNil() || v.Len() == 0 - case reflect.Ptr, reflect.Interface: - return v.IsNil() - } - return false -} - -func structToUnstructured(sv, dv reflect.Value) error { - st, dt := sv.Type(), dv.Type() - if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 { - dv.Set(reflect.MakeMapWithSize(mapStringInterfaceType, st.NumField())) - dv = dv.Elem() - dt = dv.Type() - } - if dt.Kind() != reflect.Map { - return fmt.Errorf("cannot convert struct to: %v", dt.Kind()) - } - realMap := dv.Interface().(map[string]interface{}) - - for i := 0; i < st.NumField(); i++ { - fieldInfo := fieldInfoFromField(st, i) - fv := sv.Field(i) - - if fieldInfo.name == "-" { - // This field should be skipped. - continue - } - if fieldInfo.omitempty && isZero(fv) { - // omitempty fields should be ignored. - continue - } - if len(fieldInfo.name) == 0 { - // This field is inlined. - if err := toUnstructured(fv, dv); err != nil { - return err - } - continue - } - switch fv.Type().Kind() { - case reflect.String: - realMap[fieldInfo.name] = fv.String() - case reflect.Bool: - realMap[fieldInfo.name] = fv.Bool() - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - realMap[fieldInfo.name] = fv.Int() - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - realMap[fieldInfo.name] = fv.Uint() - case reflect.Float32, reflect.Float64: - realMap[fieldInfo.name] = fv.Float() - default: - subv := reflect.New(dt.Elem()).Elem() - if err := toUnstructured(fv, subv); err != nil { - return err - } - dv.SetMapIndex(fieldInfo.nameValue, subv) - } - } - return nil -} - -func interfaceToUnstructured(sv, dv reflect.Value) error { - if !sv.IsValid() || sv.IsNil() { - dv.Set(reflect.Zero(dv.Type())) - return nil - } - return toUnstructured(sv.Elem(), dv) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/converter_test.go b/pseudo/k8s/apimachinery/pkg/runtime/converter_test.go deleted file mode 100644 index 8074cc436..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/converter_test.go +++ /dev/null @@ -1,597 +0,0 @@ -/* -Copyright 2015 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. -*/ - -// These tests are in a separate package to break cyclic dependency in tests. -// Unstructured type depends on unstructured converter package but we want to test how the converter handles -// the Unstructured type so we need to import both. - -package runtime_test - -import ( - encodingjson "encoding/json" - "fmt" - "reflect" - "strconv" - "testing" - "time" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -var simpleEquality = conversion.EqualitiesOrDie( - func(a, b time.Time) bool { - return a.UTC() == b.UTC() - }, -) - -// Define a number of test types. -type A struct { - A int `json:"aa,omitempty"` - B string `json:"ab,omitempty"` - C bool `json:"ac,omitempty"` -} - -type B struct { - A A `json:"ba"` - B string `json:"bb"` - C map[string]string `json:"bc"` - D []string `json:"bd"` -} - -type C struct { - A []A `json:"ca"` - B `json:",inline"` - C string `json:"cc"` - D *int64 `json:"cd"` - E map[string]int `json:"ce"` - F []bool `json:"cf"` - G []int `json:"cg"` - H float32 `json:"ch"` - I []interface{} `json:"ci"` -} - -type D struct { - A []interface{} `json:"da"` -} - -type E struct { - A interface{} `json:"ea"` -} - -type F struct { - A string `json:"fa"` - B map[string]string `json:"fb"` - C []A `json:"fc"` - D int `json:"fd"` - E float32 `json:"fe"` - F []string `json:"ff"` - G []int `json:"fg"` - H []bool `json:"fh"` - I []float32 `json:"fi"` -} - -type G struct { - CustomValue1 CustomValue `json:"customValue1"` - CustomValue2 *CustomValue `json:"customValue2"` - CustomPointer1 CustomPointer `json:"customPointer1"` - CustomPointer2 *CustomPointer `json:"customPointer2"` -} - -type CustomValue struct { - data []byte -} - -// MarshalJSON has a value receiver on this type. -func (c CustomValue) MarshalJSON() ([]byte, error) { - return c.data, nil -} - -type CustomPointer struct { - data []byte -} - -// MarshalJSON has a pointer receiver on this type. -func (c *CustomPointer) MarshalJSON() ([]byte, error) { - return c.data, nil -} - -func doRoundTrip(t *testing.T, item interface{}) { - data, err := json.Marshal(item) - if err != nil { - t.Errorf("Error when marshaling object: %v", err) - return - } - - unstr := make(map[string]interface{}) - err = json.Unmarshal(data, &unstr) - if err != nil { - t.Errorf("Error when unmarshaling to unstructured: %v", err) - return - } - - data, err = json.Marshal(unstr) - if err != nil { - t.Errorf("Error when marshaling unstructured: %v", err) - return - } - unmarshalledObj := reflect.New(reflect.TypeOf(item).Elem()).Interface() - err = json.Unmarshal(data, unmarshalledObj) - if err != nil { - t.Errorf("Error when unmarshaling to object: %v", err) - return - } - if !reflect.DeepEqual(item, unmarshalledObj) { - t.Errorf("Object changed during JSON operations, diff: %v", diff.ObjectReflectDiff(item, unmarshalledObj)) - return - } - - // TODO: should be using mismatch detection but fails due to another error - newUnstr, err := runtime.DefaultUnstructuredConverter.ToUnstructured(item) - if err != nil { - t.Errorf("ToUnstructured failed: %v", err) - return - } - - newObj := reflect.New(reflect.TypeOf(item).Elem()).Interface() - err = runtime.NewTestUnstructuredConverter(simpleEquality).FromUnstructured(newUnstr, newObj) - if err != nil { - t.Errorf("FromUnstructured failed: %v", err) - return - } - - if !reflect.DeepEqual(item, newObj) { - t.Errorf("Object changed, diff: %v", diff.ObjectReflectDiff(item, newObj)) - } -} - -func TestRoundTrip(t *testing.T) { - intVal := int64(42) - testCases := []struct { - obj interface{} - }{ - { - obj: &unstructured.UnstructuredList{ - Object: map[string]interface{}{ - "kind": "List", - }, - // Not testing a list with nil Items because items is a non-optional field and hence - // is always marshaled into an empty array which is not equal to nil when unmarshalled and will fail. - // That is expected. - Items: []unstructured.Unstructured{}, - }, - }, - { - obj: &unstructured.UnstructuredList{ - Object: map[string]interface{}{ - "kind": "List", - }, - Items: []unstructured.Unstructured{ - { - Object: map[string]interface{}{ - "kind": "Pod", - }, - }, - }, - }, - }, - { - obj: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "kind": "Pod", - }, - }, - }, - { - obj: &unstructured.Unstructured{ - Object: map[string]interface{}{ - "apiVersion": "v1", - "kind": "Foo", - "metadata": map[string]interface{}{ - "name": "foo1", - }, - }, - }, - }, - { - // This (among others) tests nil map, slice and pointer. - obj: &C{ - C: "ccc", - }, - }, - { - // This (among others) tests empty map and slice. - obj: &C{ - A: []A{}, - C: "ccc", - E: map[string]int{}, - I: []interface{}{}, - }, - }, - { - obj: &C{ - A: []A{ - { - A: 1, - B: "11", - C: true, - }, - { - A: 2, - B: "22", - C: false, - }, - }, - B: B{ - A: A{ - A: 3, - B: "33", - }, - B: "bbb", - C: map[string]string{ - "k1": "v1", - "k2": "v2", - }, - D: []string{"s1", "s2"}, - }, - C: "ccc", - D: &intVal, - E: map[string]int{ - "k1": 1, - "k2": 2, - }, - F: []bool{true, false, false}, - G: []int{1, 2, 5}, - H: 3.3, - I: []interface{}{nil, nil, nil}, - }, - }, - { - // Test slice of interface{} with empty slices. - obj: &D{ - A: []interface{}{[]interface{}{}, []interface{}{}}, - }, - }, - { - // Test slice of interface{} with different values. - obj: &D{ - A: []interface{}{3.0, "3.0", nil}, - }, - }, - } - - for i := range testCases { - t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { - doRoundTrip(t, testCases[i].obj) - }) - } -} - -// Verifies that: -// 1) serialized json -> object -// 2) serialized json -> map[string]interface{} -> object -// produces the same object. -func doUnrecognized(t *testing.T, jsonData string, item interface{}, expectedErr error) { - unmarshalledObj := reflect.New(reflect.TypeOf(item).Elem()).Interface() - err := json.Unmarshal([]byte(jsonData), unmarshalledObj) - if (err != nil) != (expectedErr != nil) { - t.Errorf("Unexpected error when unmarshaling to object: %v, expected: %v", err, expectedErr) - return - } - - unstr := make(map[string]interface{}) - err = json.Unmarshal([]byte(jsonData), &unstr) - if err != nil { - t.Errorf("Error when unmarshaling to unstructured: %v", err) - return - } - newObj := reflect.New(reflect.TypeOf(item).Elem()).Interface() - err = runtime.NewTestUnstructuredConverter(simpleEquality).FromUnstructured(unstr, newObj) - if (err != nil) != (expectedErr != nil) { - t.Errorf("Unexpected error in FromUnstructured: %v, expected: %v", err, expectedErr) - } - - if expectedErr == nil && !reflect.DeepEqual(unmarshalledObj, newObj) { - t.Errorf("Object changed, diff: %v", diff.ObjectReflectDiff(unmarshalledObj, newObj)) - } -} - -func TestUnrecognized(t *testing.T) { - testCases := []struct { - data string - obj interface{} - err error - }{ - { - data: "{\"da\":[3.0,\"3.0\",null]}", - obj: &D{}, - }, - { - data: "{\"ea\":[3.0,\"3.0\",null]}", - obj: &E{}, - }, - { - data: "{\"ea\":[null,null,null]}", - obj: &E{}, - }, - { - data: "{\"ea\":[[],[null]]}", - obj: &E{}, - }, - { - data: "{\"ea\":{\"a\":[],\"b\":null}}", - obj: &E{}, - }, - { - data: "{\"fa\":\"fa\",\"fb\":{\"a\":\"a\"}}", - obj: &F{}, - }, - { - data: "{\"fa\":\"fa\",\"fb\":{\"a\":null}}", - obj: &F{}, - }, - { - data: "{\"fc\":[null]}", - obj: &F{}, - }, - { - data: "{\"fc\":[{\"aa\":123,\"ab\":\"bbb\"}]}", - obj: &F{}, - }, - { - // Only unknown fields - data: "{\"fx\":[{\"aa\":123,\"ab\":\"bbb\"}],\"fz\":123}", - obj: &F{}, - }, - { - data: "{\"fc\":[{\"aa\":\"aaa\",\"ab\":\"bbb\"}]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type int"), - }, - { - data: "{\"fd\":123,\"fe\":3.5}", - obj: &F{}, - }, - { - data: "{\"ff\":[\"abc\"],\"fg\":[123],\"fh\":[true,false]}", - obj: &F{}, - }, - { - // Invalid string data - data: "{\"fa\":123}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type string"), - }, - { - // Invalid string data - data: "{\"fa\":13.5}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type string"), - }, - { - // Invalid string data - data: "{\"fa\":true}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal bool into Go value of type string"), - }, - { - // Invalid []string data - data: "{\"ff\":123}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type []string"), - }, - { - // Invalid []string data - data: "{\"ff\":3.5}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type []string"), - }, - { - // Invalid []string data - data: "{\"ff\":[123,345]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type string"), - }, - { - // Invalid []int data - data: "{\"fg\":123}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type []int"), - }, - { - // Invalid []int data - data: "{\"fg\":\"abc\"}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type []int"), - }, - { - // Invalid []int data - data: "{\"fg\":[\"abc\"]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type int"), - }, - { - // Invalid []int data - data: "{\"fg\":[3.5]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number 3.5 into Go value of type int"), - }, - { - // Invalid []int data - data: "{\"fg\":[true,false]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number 3.5 into Go value of type int"), - }, - { - // Invalid []bool data - data: "{\"fh\":123}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type []bool"), - }, - { - // Invalid []bool data - data: "{\"fh\":\"abc\"}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type []bool"), - }, - { - // Invalid []bool data - data: "{\"fh\":[\"abc\"]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type bool"), - }, - { - // Invalid []bool data - data: "{\"fh\":[3.5]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type bool"), - }, - { - // Invalid []bool data - data: "{\"fh\":[123]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type bool"), - }, - { - // Invalid []float data - data: "{\"fi\":123}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal number into Go value of type []float32"), - }, - { - // Invalid []float data - data: "{\"fi\":\"abc\"}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type []float32"), - }, - { - // Invalid []float data - data: "{\"fi\":[\"abc\"]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal string into Go value of type float32"), - }, - { - // Invalid []float data - data: "{\"fi\":[true]}", - obj: &F{}, - err: fmt.Errorf("json: cannot unmarshal bool into Go value of type float32"), - }, - } - - for _, tc := range testCases { - t.Run(tc.data, func(t *testing.T) { - doUnrecognized(t, tc.data, tc.obj, tc.err) - }) - } -} - -func TestDeepCopyJSON(t *testing.T) { - src := map[string]interface{}{ - "a": nil, - "b": int64(123), - "c": map[string]interface{}{ - "a": "b", - }, - "d": []interface{}{ - int64(1), int64(2), - }, - "e": "estr", - "f": true, - "g": encodingjson.Number("123"), - } - deepCopy := runtime.DeepCopyJSON(src) - assert.Equal(t, src, deepCopy) -} - -func TestFloatIntConversion(t *testing.T) { - unstr := map[string]interface{}{"fd": float64(3)} - - var obj F - if err := runtime.NewTestUnstructuredConverter(simpleEquality).FromUnstructured(unstr, &obj); err != nil { - t.Errorf("Unexpected error in FromUnstructured: %v", err) - } - - data, err := json.Marshal(unstr) - if err != nil { - t.Fatalf("Error when marshaling unstructured: %v", err) - } - var unmarshalled F - if err := json.Unmarshal(data, &unmarshalled); err != nil { - t.Fatalf("Error when unmarshaling to object: %v", err) - } - - if !reflect.DeepEqual(obj, unmarshalled) { - t.Errorf("Incorrect conversion, diff: %v", diff.ObjectReflectDiff(obj, unmarshalled)) - } -} - -func TestCustomToUnstructured(t *testing.T) { - testcases := []struct { - Data string - Expected interface{} - }{ - {Data: `null`, Expected: nil}, - {Data: `true`, Expected: true}, - {Data: `false`, Expected: false}, - {Data: `[]`, Expected: []interface{}{}}, - {Data: `[1]`, Expected: []interface{}{int64(1)}}, - {Data: `{}`, Expected: map[string]interface{}{}}, - {Data: `{"a":1}`, Expected: map[string]interface{}{"a": int64(1)}}, - {Data: `0`, Expected: int64(0)}, - {Data: `0.0`, Expected: float64(0)}, - } - - for _, tc := range testcases { - tc := tc - t.Run(tc.Data, func(t *testing.T) { - t.Parallel() - result, err := runtime.NewTestUnstructuredConverter(simpleEquality).ToUnstructured(&G{ - CustomValue1: CustomValue{data: []byte(tc.Data)}, - CustomValue2: &CustomValue{data: []byte(tc.Data)}, - CustomPointer1: CustomPointer{data: []byte(tc.Data)}, - CustomPointer2: &CustomPointer{data: []byte(tc.Data)}, - }) - require.NoError(t, err) - for field, fieldResult := range result { - assert.Equal(t, tc.Expected, fieldResult, field) - } - }) - } -} - -func TestCustomToUnstructuredTopLevel(t *testing.T) { - // Only objects are supported at the top level - topLevelCases := []interface{}{ - &CustomValue{data: []byte(`{"a":1}`)}, - &CustomPointer{data: []byte(`{"a":1}`)}, - } - expected := map[string]interface{}{"a": int64(1)} - for i, obj := range topLevelCases { - obj := obj - t.Run(strconv.Itoa(i), func(t *testing.T) { - t.Parallel() - result, err := runtime.NewTestUnstructuredConverter(simpleEquality).ToUnstructured(obj) - require.NoError(t, err) - assert.Equal(t, expected, result) - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/doc.go b/pseudo/k8s/apimachinery/pkg/runtime/doc.go deleted file mode 100644 index 237da36ee..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/doc.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2014 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 runtime includes helper functions for working with API objects -// that follow the kubernetes API object conventions, which are: -// -// 0. Your API objects have a common metadata struct member, TypeMeta. -// -// 1. Your code refers to an internal set of API objects. -// -// 2. In a separate package, you have an external set of API objects. -// -// 3. The external set is considered to be versioned, and no breaking -// changes are ever made to it (fields may be added but not changed -// or removed). -// -// 4. As your api evolves, you'll make an additional versioned package -// with every major change. -// -// 5. Versioned packages have conversion functions which convert to -// and from the internal version. -// -// 6. You'll continue to support older versions according to your -// deprecation policy, and you can easily provide a program/library -// to update old versions into new versions because of 5. -// -// 7. All of your serializations and deserializations are handled in a -// centralized place. -// -// Package runtime provides a conversion helper to make 5 easy, and the -// Encode/Decode/DecodeInto trio to accomplish 7. You can also register -// additional "codecs" which use a version of your choice. It's -// recommended that you register your types with runtime in your -// package's init function. -// -// As a bonus, a few common types useful from all api objects and versions -// are provided in types.go. -package runtime // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" diff --git a/pseudo/k8s/apimachinery/pkg/runtime/embedded.go b/pseudo/k8s/apimachinery/pkg/runtime/embedded.go deleted file mode 100644 index 8b11969ef..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/embedded.go +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "errors" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -type encodable struct { - E Encoder `json:"-"` - obj Object - versions []schema.GroupVersion -} - -func (e encodable) GetObjectKind() schema.ObjectKind { return e.obj.GetObjectKind() } -func (e encodable) DeepCopyObject() Object { - out := e - out.obj = e.obj.DeepCopyObject() - copy(out.versions, e.versions) - return out -} - -// NewEncodable creates an object that will be encoded with the provided codec on demand. -// Provided as a convenience for test cases dealing with internal objects. -func NewEncodable(e Encoder, obj Object, versions ...schema.GroupVersion) Object { - if _, ok := obj.(*Unknown); ok { - return obj - } - return encodable{e, obj, versions} -} - -func (e encodable) UnmarshalJSON(in []byte) error { - return errors.New("runtime.encodable cannot be unmarshalled from JSON") -} - -// Marshal may get called on pointers or values, so implement MarshalJSON on value. -// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go -func (e encodable) MarshalJSON() ([]byte, error) { - return Encode(e.E, e.obj) -} - -// NewEncodableList creates an object that will be encoded with the provided codec on demand. -// Provided as a convenience for test cases dealing with internal objects. -func NewEncodableList(e Encoder, objects []Object, versions ...schema.GroupVersion) []Object { - out := make([]Object, len(objects)) - for i := range objects { - if _, ok := objects[i].(*Unknown); ok { - out[i] = objects[i] - continue - } - out[i] = NewEncodable(e, objects[i], versions...) - } - return out -} - -func (e *Unknown) UnmarshalJSON(in []byte) error { - if e == nil { - return errors.New("runtime.Unknown: UnmarshalJSON on nil pointer") - } - e.TypeMeta = TypeMeta{} - e.Raw = append(e.Raw[0:0], in...) - e.ContentEncoding = "" - e.ContentType = ContentTypeJSON - return nil -} - -// Marshal may get called on pointers or values, so implement MarshalJSON on value. -// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go -func (e Unknown) MarshalJSON() ([]byte, error) { - // If ContentType is unset, we assume this is JSON. - if e.ContentType != "" && e.ContentType != ContentTypeJSON { - return nil, errors.New("runtime.Unknown: MarshalJSON on non-json data") - } - if e.Raw == nil { - return []byte("null"), nil - } - return e.Raw, nil -} - -func Convert_runtime_Object_To_runtime_RawExtension(in *Object, out *RawExtension, s conversion.Scope) error { - if in == nil { - out.Raw = []byte("null") - return nil - } - obj := *in - if unk, ok := obj.(*Unknown); ok { - if unk.Raw != nil { - out.Raw = unk.Raw - return nil - } - obj = out.Object - } - if obj == nil { - out.Raw = nil - return nil - } - out.Object = obj - return nil -} - -func Convert_runtime_RawExtension_To_runtime_Object(in *RawExtension, out *Object, s conversion.Scope) error { - if in.Object != nil { - *out = in.Object - return nil - } - data := in.Raw - if len(data) == 0 || (len(data) == 4 && string(data) == "null") { - *out = nil - return nil - } - *out = &Unknown{ - Raw: data, - // TODO: Set ContentEncoding and ContentType appropriately. - // Currently we set ContentTypeJSON to make tests passing. - ContentType: ContentTypeJSON, - } - return nil -} - -func DefaultEmbeddedConversions() []interface{} { - return []interface{}{ - Convert_runtime_Object_To_runtime_RawExtension, - Convert_runtime_RawExtension_To_runtime_Object, - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/embedded_test.go b/pseudo/k8s/apimachinery/pkg/runtime/embedded_test.go deleted file mode 100644 index d05e064e5..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/embedded_test.go +++ /dev/null @@ -1,256 +0,0 @@ -/* -Copyright 2014 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 runtime_test - -import ( - "encoding/json" - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - runtimetesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/testing" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestDecodeEmptyRawExtensionAsObject(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "v1test"} - externalGVK := externalGV.WithKind("ObjectTest") - - s := runtime.NewScheme() - s.AddKnownTypes(internalGV, &runtimetesting.ObjectTest{}) - s.AddKnownTypeWithName(externalGVK, &runtimetesting.ObjectTestExternal{}) - - codec := serializer.NewCodecFactory(s).LegacyCodec(externalGV) - - obj, gvk, err := codec.Decode([]byte(`{"kind":"`+externalGVK.Kind+`","apiVersion":"`+externalGV.String()+`","items":[{}]}`), nil, nil) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - test := obj.(*runtimetesting.ObjectTest) - if unk, ok := test.Items[0].(*runtime.Unknown); !ok || unk.Kind != "" || unk.APIVersion != "" || string(unk.Raw) != "{}" || unk.ContentType != runtime.ContentTypeJSON { - t.Fatalf("unexpected object: %#v", test.Items[0]) - } - if *gvk != externalGVK { - t.Fatalf("unexpected kind: %#v", gvk) - } - - obj, gvk, err = codec.Decode([]byte(`{"kind":"`+externalGVK.Kind+`","apiVersion":"`+externalGV.String()+`","items":[{"kind":"Other","apiVersion":"v1"}]}`), nil, nil) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - test = obj.(*runtimetesting.ObjectTest) - if unk, ok := test.Items[0].(*runtime.Unknown); !ok || unk.Kind != "" || unk.APIVersion != "" || string(unk.Raw) != `{"kind":"Other","apiVersion":"v1"}` || unk.ContentType != runtime.ContentTypeJSON { - t.Fatalf("unexpected object: %#v", test.Items[0]) - } - if *gvk != externalGVK { - t.Fatalf("unexpected kind: %#v", gvk) - } -} - -func TestArrayOfRuntimeObject(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "v1test"} - - s := runtime.NewScheme() - s.AddKnownTypes(internalGV, &runtimetesting.EmbeddedTest{}) - s.AddKnownTypeWithName(externalGV.WithKind("EmbeddedTest"), &runtimetesting.EmbeddedTestExternal{}) - s.AddKnownTypes(internalGV, &runtimetesting.ObjectTest{}) - s.AddKnownTypeWithName(externalGV.WithKind("ObjectTest"), &runtimetesting.ObjectTestExternal{}) - - codec := serializer.NewCodecFactory(s).LegacyCodec(externalGV) - - innerItems := []runtime.Object{ - &runtimetesting.EmbeddedTest{ID: "baz"}, - } - items := []runtime.Object{ - &runtimetesting.EmbeddedTest{ID: "foo"}, - &runtimetesting.EmbeddedTest{ID: "bar"}, - // TODO: until YAML is removed, this JSON must be in ascending key order to ensure consistent roundtrip serialization - &runtime.Unknown{ - Raw: []byte(`{"apiVersion":"unknown.group/unknown","foo":"bar","kind":"OtherTest"}`), - ContentType: runtime.ContentTypeJSON, - }, - &runtimetesting.ObjectTest{ - Items: runtime.NewEncodableList(codec, innerItems), - }, - } - internal := &runtimetesting.ObjectTest{ - Items: runtime.NewEncodableList(codec, items), - } - wire, err := runtime.Encode(codec, internal) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - t.Logf("Wire format is:\n%s\n", string(wire)) - - obj := &runtimetesting.ObjectTestExternal{} - if err := json.Unmarshal(wire, obj); err != nil { - t.Fatalf("unexpected error: %v", err) - } - t.Logf("exact wire is: %s", string(obj.Items[0].Raw)) - - items[3] = &runtimetesting.ObjectTest{Items: innerItems} - internal.Items = items - - decoded, err := runtime.Decode(codec, wire) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - list, err := meta.ExtractList(decoded) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if errs := runtime.DecodeList(list, codec); len(errs) > 0 { - t.Fatalf("unexpected error: %v", errs) - } - - list2, err := meta.ExtractList(list[3]) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if errs := runtime.DecodeList(list2, codec); len(errs) > 0 { - t.Fatalf("unexpected error: %v", errs) - } - if err := meta.SetList(list[3], list2); err != nil { - t.Fatalf("unexpected error: %v", err) - } - - // we want DecodeList to set type meta if possible, even on runtime.Unknown objects - internal.Items[2].(*runtime.Unknown).TypeMeta = runtime.TypeMeta{Kind: "OtherTest", APIVersion: "unknown.group/unknown"} - if e, a := internal.Items, list; !reflect.DeepEqual(e, a) { - t.Errorf("mismatched decoded: %s", diff.ObjectGoPrintSideBySide(e, a)) - } -} - -func TestNestedObject(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "v1test"} - embeddedTestExternalGVK := externalGV.WithKind("EmbeddedTest") - - s := runtime.NewScheme() - s.AddKnownTypes(internalGV, &runtimetesting.EmbeddedTest{}) - s.AddKnownTypeWithName(embeddedTestExternalGVK, &runtimetesting.EmbeddedTestExternal{}) - - codec := serializer.NewCodecFactory(s).LegacyCodec(externalGV) - - inner := &runtimetesting.EmbeddedTest{ - ID: "inner", - } - outer := &runtimetesting.EmbeddedTest{ - ID: "outer", - Object: runtime.NewEncodable(codec, inner), - } - - wire, err := runtime.Encode(codec, outer) - if err != nil { - t.Fatalf("Unexpected encode error '%v'", err) - } - - t.Logf("Wire format is:\n%v\n", string(wire)) - - decoded, err := runtime.Decode(codec, wire) - if err != nil { - t.Fatalf("Unexpected decode error %v", err) - } - - // for later tests - outer.Object = inner - - if e, a := outer, decoded; reflect.DeepEqual(e, a) { - t.Errorf("Expected unequal %#v %#v", e, a) - } - - obj, err := runtime.Decode(codec, decoded.(*runtimetesting.EmbeddedTest).Object.(*runtime.Unknown).Raw) - if err != nil { - t.Fatal(err) - } - decoded.(*runtimetesting.EmbeddedTest).Object = obj - if e, a := outer, decoded; !reflect.DeepEqual(e, a) { - t.Errorf("Expected equal %#v %#v", e, a) - } - - // test JSON decoding of the external object, which should preserve - // raw bytes - var externalViaJSON runtimetesting.EmbeddedTestExternal - err = json.Unmarshal(wire, &externalViaJSON) - if err != nil { - t.Fatalf("Unexpected decode error %v", err) - } - if externalViaJSON.Kind == "" || externalViaJSON.APIVersion == "" || externalViaJSON.ID != "outer" { - t.Errorf("Expected objects to have type info set, got %#v", externalViaJSON) - } - if len(externalViaJSON.EmptyObject.Raw) > 0 { - t.Errorf("Expected deserialization of empty nested objects into empty bytes, got %#v", externalViaJSON) - } - - // test JSON decoding, too, since Decode uses yaml unmarshalling. - // Generic Unmarshalling of JSON cannot load the nested objects because there is - // no default schema set. Consumers wishing to get direct JSON decoding must use - // the external representation - var decodedViaJSON runtimetesting.EmbeddedTest - err = json.Unmarshal(wire, &decodedViaJSON) - if err == nil { - t.Fatal("Expeceted decode error") - } - if _, ok := err.(*json.UnmarshalTypeError); !ok { - t.Fatalf("Unexpected decode error: %v", err) - } - if a := decodedViaJSON; a.Object != nil || a.EmptyObject != nil { - t.Errorf("Expected embedded objects to be nil: %#v", a) - } -} - -// TestDeepCopyOfRuntimeObject checks to make sure that runtime.Objects's can be passed through DeepCopy with fidelity -func TestDeepCopyOfRuntimeObject(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "v1test"} - embeddedTestExternalGVK := externalGV.WithKind("EmbeddedTest") - - s := runtime.NewScheme() - s.AddKnownTypes(internalGV, &runtimetesting.EmbeddedTest{}) - s.AddKnownTypeWithName(embeddedTestExternalGVK, &runtimetesting.EmbeddedTestExternal{}) - - original := &runtimetesting.EmbeddedTest{ - ID: "outer", - Object: &runtimetesting.EmbeddedTest{ - ID: "inner", - }, - } - - codec := serializer.NewCodecFactory(s).LegacyCodec(externalGV) - - originalData, err := runtime.Encode(codec, original) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - t.Logf("originalRole = %v\n", string(originalData)) - - copyOfOriginal := original.DeepCopy() - copiedData, err := runtime.Encode(codec, copyOfOriginal) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - t.Logf("copyOfRole = %v\n", string(copiedData)) - - if !reflect.DeepEqual(original, copyOfOriginal) { - t.Errorf("expected \n%v\n, got \n%v", string(originalData), string(copiedData)) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/error.go b/pseudo/k8s/apimachinery/pkg/runtime/error.go deleted file mode 100644 index 00dbf3236..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/error.go +++ /dev/null @@ -1,151 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "fmt" - "reflect" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -type notRegisteredErr struct { - schemeName string - gvk schema.GroupVersionKind - target GroupVersioner - t reflect.Type -} - -func NewNotRegisteredErrForKind(schemeName string, gvk schema.GroupVersionKind) error { - return ¬RegisteredErr{schemeName: schemeName, gvk: gvk} -} - -func NewNotRegisteredErrForType(schemeName string, t reflect.Type) error { - return ¬RegisteredErr{schemeName: schemeName, t: t} -} - -func NewNotRegisteredErrForTarget(schemeName string, t reflect.Type, target GroupVersioner) error { - return ¬RegisteredErr{schemeName: schemeName, t: t, target: target} -} - -func NewNotRegisteredGVKErrForTarget(schemeName string, gvk schema.GroupVersionKind, target GroupVersioner) error { - return ¬RegisteredErr{schemeName: schemeName, gvk: gvk, target: target} -} - -func (k *notRegisteredErr) Error() string { - if k.t != nil && k.target != nil { - return fmt.Sprintf("%v is not suitable for converting to %q in scheme %q", k.t, k.target, k.schemeName) - } - nullGVK := schema.GroupVersionKind{} - if k.gvk != nullGVK && k.target != nil { - return fmt.Sprintf("%q is not suitable for converting to %q in scheme %q", k.gvk.GroupVersion(), k.target, k.schemeName) - } - if k.t != nil { - return fmt.Sprintf("no kind is registered for the type %v in scheme %q", k.t, k.schemeName) - } - if len(k.gvk.Kind) == 0 { - return fmt.Sprintf("no version %q has been registered in scheme %q", k.gvk.GroupVersion(), k.schemeName) - } - if k.gvk.Version == APIVersionInternal { - return fmt.Sprintf("no kind %q is registered for the internal version of group %q in scheme %q", k.gvk.Kind, k.gvk.Group, k.schemeName) - } - - return fmt.Sprintf("no kind %q is registered for version %q in scheme %q", k.gvk.Kind, k.gvk.GroupVersion(), k.schemeName) -} - -// IsNotRegisteredError returns true if the error indicates the provided -// object or input data is not registered. -func IsNotRegisteredError(err error) bool { - if err == nil { - return false - } - _, ok := err.(*notRegisteredErr) - return ok -} - -type missingKindErr struct { - data string -} - -func NewMissingKindErr(data string) error { - return &missingKindErr{data} -} - -func (k *missingKindErr) Error() string { - return fmt.Sprintf("Object 'Kind' is missing in '%s'", k.data) -} - -// IsMissingKind returns true if the error indicates that the provided object -// is missing a 'Kind' field. -func IsMissingKind(err error) bool { - if err == nil { - return false - } - _, ok := err.(*missingKindErr) - return ok -} - -type missingVersionErr struct { - data string -} - -func NewMissingVersionErr(data string) error { - return &missingVersionErr{data} -} - -func (k *missingVersionErr) Error() string { - return fmt.Sprintf("Object 'apiVersion' is missing in '%s'", k.data) -} - -// IsMissingVersion returns true if the error indicates that the provided object -// is missing a 'Version' field. -func IsMissingVersion(err error) bool { - if err == nil { - return false - } - _, ok := err.(*missingVersionErr) - return ok -} - -// strictDecodingError is a base error type that is returned by a strict Decoder such -// as UniversalStrictDecoder. -type strictDecodingError struct { - message string - data string -} - -// NewStrictDecodingError creates a new strictDecodingError object. -func NewStrictDecodingError(message string, data string) error { - return &strictDecodingError{ - message: message, - data: data, - } -} - -func (e *strictDecodingError) Error() string { - return fmt.Sprintf("strict decoder error for %s: %s", e.data, e.message) -} - -// IsStrictDecodingError returns true if the error indicates that the provided object -// strictness violations. -func IsStrictDecodingError(err error) bool { - if err == nil { - return false - } - _, ok := err.(*strictDecodingError) - return ok -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/extension.go b/pseudo/k8s/apimachinery/pkg/runtime/extension.go deleted file mode 100644 index 9056397fa..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/extension.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "bytes" - "encoding/json" - "errors" -) - -func (re *RawExtension) UnmarshalJSON(in []byte) error { - if re == nil { - return errors.New("runtime.RawExtension: UnmarshalJSON on nil pointer") - } - if !bytes.Equal(in, []byte("null")) { - re.Raw = append(re.Raw[0:0], in...) - } - return nil -} - -// MarshalJSON may get called on pointers or values, so implement MarshalJSON on value. -// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go -func (re RawExtension) MarshalJSON() ([]byte, error) { - if re.Raw == nil { - // TODO: this is to support legacy behavior of JSONPrinter and YAMLPrinter, which - // expect to call json.Marshal on arbitrary versioned objects (even those not in - // the scheme). pkg/kubectl/resource#AsVersionedObjects and its interaction with - // kubectl get on objects not in the scheme needs to be updated to ensure that the - // objects that are not part of the scheme are correctly put into the right form. - if re.Object != nil { - return json.Marshal(re.Object) - } - return []byte("null"), nil - } - // TODO: Check whether ContentType is actually JSON before returning it. - return re.Raw, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/extension_test.go b/pseudo/k8s/apimachinery/pkg/runtime/extension_test.go deleted file mode 100644 index e59307b6d..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/extension_test.go +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright 2014 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 runtime_test - -import ( - "bytes" - "encoding/json" - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func TestEmbeddedRawExtensionMarshal(t *testing.T) { - type test struct { - Ext runtime.RawExtension - } - - extension := test{Ext: runtime.RawExtension{Raw: []byte(`{"foo":"bar"}`)}} - data, err := json.Marshal(extension) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if string(data) != `{"Ext":{"foo":"bar"}}` { - t.Errorf("unexpected data: %s", string(data)) - } -} -func TestEmbeddedRawExtensionUnmarshal(t *testing.T) { - type test struct { - Ext runtime.RawExtension - } - - testCases := map[string]struct { - orig test - }{ - "non-empty object": { - orig: test{Ext: runtime.RawExtension{Raw: []byte(`{"foo":"bar"}`)}}, - }, - "empty object": { - orig: test{Ext: runtime.RawExtension{}}, - }, - } - - for k, tc := range testCases { - new := test{} - data, _ := json.Marshal(tc.orig) - if err := json.Unmarshal(data, &new); err != nil { - t.Errorf("%s: umarshal error: %v", k, err) - } - if !reflect.DeepEqual(tc.orig, new) { - t.Errorf("%s: unmarshaled struct differs from original: %v %v", k, tc.orig, new) - } - } -} - -func TestEmbeddedRawExtensionRoundTrip(t *testing.T) { - type test struct { - Ext runtime.RawExtension - } - - testCases := map[string]struct { - orig test - }{ - "non-empty object": { - orig: test{Ext: runtime.RawExtension{Raw: []byte(`{"foo":"bar"}`)}}, - }, - "empty object": { - orig: test{Ext: runtime.RawExtension{}}, - }, - } - - for k, tc := range testCases { - new1 := test{} - new2 := test{} - data, err := json.Marshal(tc.orig) - if err != nil { - t.Errorf("1st marshal error: %v", err) - } - if err = json.Unmarshal(data, &new1); err != nil { - t.Errorf("1st unmarshal error: %v", err) - } - newData, err := json.Marshal(new1) - if err != nil { - t.Errorf("2st marshal error: %v", err) - } - if err = json.Unmarshal(newData, &new2); err != nil { - t.Errorf("2nd unmarshal error: %v", err) - } - if !bytes.Equal(data, newData) { - t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData) - } - if !reflect.DeepEqual(tc.orig, new1) { - t.Errorf("%s: unmarshaled struct differs from original: %v %v", k, tc.orig, new1) - } - if !reflect.DeepEqual(new1, new2) { - t.Errorf("%s: re-unmarshaled struct differs from original: %v %v", k, new1, new2) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/generated.pb.go b/pseudo/k8s/apimachinery/pkg/runtime/generated.pb.go deleted file mode 100644 index 4a4f8f015..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/generated.pb.go +++ /dev/null @@ -1,881 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto - -package runtime - -import ( - fmt "fmt" - - io "io" - math "math" - math_bits "math/bits" - reflect "reflect" - strings "strings" - - proto "github.com/gogo/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *RawExtension) Reset() { *m = RawExtension{} } -func (*RawExtension) ProtoMessage() {} -func (*RawExtension) Descriptor() ([]byte, []int) { - return fileDescriptor_9d3c45d7f546725c, []int{0} -} -func (m *RawExtension) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RawExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *RawExtension) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawExtension.Merge(m, src) -} -func (m *RawExtension) XXX_Size() int { - return m.Size() -} -func (m *RawExtension) XXX_DiscardUnknown() { - xxx_messageInfo_RawExtension.DiscardUnknown(m) -} - -var xxx_messageInfo_RawExtension proto.InternalMessageInfo - -func (m *TypeMeta) Reset() { *m = TypeMeta{} } -func (*TypeMeta) ProtoMessage() {} -func (*TypeMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_9d3c45d7f546725c, []int{1} -} -func (m *TypeMeta) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TypeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *TypeMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypeMeta.Merge(m, src) -} -func (m *TypeMeta) XXX_Size() int { - return m.Size() -} -func (m *TypeMeta) XXX_DiscardUnknown() { - xxx_messageInfo_TypeMeta.DiscardUnknown(m) -} - -var xxx_messageInfo_TypeMeta proto.InternalMessageInfo - -func (m *Unknown) Reset() { *m = Unknown{} } -func (*Unknown) ProtoMessage() {} -func (*Unknown) Descriptor() ([]byte, []int) { - return fileDescriptor_9d3c45d7f546725c, []int{2} -} -func (m *Unknown) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Unknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *Unknown) XXX_Merge(src proto.Message) { - xxx_messageInfo_Unknown.Merge(m, src) -} -func (m *Unknown) XXX_Size() int { - return m.Size() -} -func (m *Unknown) XXX_DiscardUnknown() { - xxx_messageInfo_Unknown.DiscardUnknown(m) -} - -var xxx_messageInfo_Unknown proto.InternalMessageInfo - -func init() { - proto.RegisterType((*RawExtension)(nil), "k8s.io.apimachinery.pkg.runtime.RawExtension") - proto.RegisterType((*TypeMeta)(nil), "k8s.io.apimachinery.pkg.runtime.TypeMeta") - proto.RegisterType((*Unknown)(nil), "k8s.io.apimachinery.pkg.runtime.Unknown") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto", fileDescriptor_9d3c45d7f546725c) -} - -var fileDescriptor_9d3c45d7f546725c = []byte{ - // 378 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0x4f, 0xab, 0x13, 0x31, - 0x14, 0xc5, 0x27, 0xaf, 0x85, 0x3e, 0xd3, 0xc2, 0x93, 0xb8, 0x70, 0x74, 0x91, 0x79, 0x74, 0xe5, - 0x5b, 0xbc, 0x04, 0x1e, 0x08, 0x6e, 0x3b, 0xa5, 0xa0, 0x88, 0x20, 0xc1, 0x3f, 0xe0, 0xca, 0x74, - 0x26, 0x4e, 0xc3, 0xd0, 0x9b, 0x21, 0xcd, 0x38, 0x76, 0xe7, 0x47, 0xf0, 0x63, 0x75, 0xd9, 0x65, - 0x57, 0xc5, 0x8e, 0x1f, 0xc2, 0xad, 0x34, 0x4d, 0x6b, 0xd5, 0x85, 0xbb, 0xe4, 0x9e, 0xf3, 0x3b, - 0xf7, 0x1e, 0xfc, 0xbc, 0x7c, 0xb6, 0x60, 0xda, 0xf0, 0xb2, 0x9e, 0x2a, 0x0b, 0xca, 0xa9, 0x05, - 0xff, 0xac, 0x20, 0x37, 0x96, 0x07, 0x41, 0x56, 0x7a, 0x2e, 0xb3, 0x99, 0x06, 0x65, 0x97, 0xbc, - 0x2a, 0x0b, 0x6e, 0x6b, 0x70, 0x7a, 0xae, 0x78, 0xa1, 0x40, 0x59, 0xe9, 0x54, 0xce, 0x2a, 0x6b, - 0x9c, 0x21, 0xc9, 0x01, 0x60, 0xe7, 0x00, 0xab, 0xca, 0x82, 0x05, 0xe0, 0xf1, 0x6d, 0xa1, 0xdd, - 0xac, 0x9e, 0xb2, 0xcc, 0xcc, 0x79, 0x61, 0x0a, 0xc3, 0x3d, 0x37, 0xad, 0x3f, 0xf9, 0x9f, 0xff, - 0xf8, 0xd7, 0x21, 0x6f, 0x78, 0x83, 0x07, 0x42, 0x36, 0x93, 0x2f, 0x4e, 0xc1, 0x42, 0x1b, 0x20, - 0x8f, 0x70, 0xc7, 0xca, 0x26, 0x46, 0xd7, 0xe8, 0xc9, 0x20, 0xed, 0xb5, 0xdb, 0xa4, 0x23, 0x64, - 0x23, 0xf6, 0xb3, 0xe1, 0x47, 0x7c, 0xf9, 0x66, 0x59, 0xa9, 0x57, 0xca, 0x49, 0x72, 0x87, 0xb1, - 0xac, 0xf4, 0x3b, 0x65, 0xf7, 0x90, 0x77, 0xdf, 0x4b, 0xc9, 0x6a, 0x9b, 0x44, 0xed, 0x36, 0xc1, - 0xa3, 0xd7, 0x2f, 0x82, 0x22, 0xce, 0x5c, 0xe4, 0x1a, 0x77, 0x4b, 0x0d, 0x79, 0x7c, 0xe1, 0xdd, - 0x83, 0xe0, 0xee, 0xbe, 0xd4, 0x90, 0x0b, 0xaf, 0x0c, 0x7f, 0x22, 0xdc, 0x7b, 0x0b, 0x25, 0x98, - 0x06, 0xc8, 0x7b, 0x7c, 0xe9, 0xc2, 0x36, 0x9f, 0xdf, 0xbf, 0xbb, 0x61, 0xff, 0xe9, 0xce, 0x8e, - 0xe7, 0xa5, 0xf7, 0x43, 0xf8, 0xe9, 0x60, 0x71, 0x0a, 0x3b, 0x36, 0xbc, 0xf8, 0xb7, 0x21, 0x19, - 0xe1, 0xab, 0xcc, 0x80, 0x53, 0xe0, 0x26, 0x90, 0x99, 0x5c, 0x43, 0x11, 0x77, 0xfc, 0xb1, 0x0f, - 0x43, 0xde, 0xd5, 0xf8, 0x4f, 0x59, 0xfc, 0xed, 0x27, 0x4f, 0x71, 0x3f, 0x8c, 0xf6, 0xab, 0xe3, - 0xae, 0xc7, 0x1f, 0x04, 0xbc, 0x3f, 0xfe, 0x2d, 0x89, 0x73, 0x5f, 0x7a, 0xbb, 0xda, 0xd1, 0x68, - 0xbd, 0xa3, 0xd1, 0x66, 0x47, 0xa3, 0xaf, 0x2d, 0x45, 0xab, 0x96, 0xa2, 0x75, 0x4b, 0xd1, 0xa6, - 0xa5, 0xe8, 0x7b, 0x4b, 0xd1, 0xb7, 0x1f, 0x34, 0xfa, 0xd0, 0x0b, 0x45, 0x7f, 0x05, 0x00, 0x00, - 0xff, 0xff, 0xe3, 0x33, 0x18, 0x0b, 0x50, 0x02, 0x00, 0x00, -} - -func (m *RawExtension) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RawExtension) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RawExtension) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Raw != nil { - i -= len(m.Raw) - copy(dAtA[i:], m.Raw) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TypeMeta) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TypeMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x12 - i -= len(m.APIVersion) - copy(dAtA[i:], m.APIVersion) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *Unknown) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Unknown) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Unknown) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.ContentType) - copy(dAtA[i:], m.ContentType) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentType))) - i-- - dAtA[i] = 0x22 - i -= len(m.ContentEncoding) - copy(dAtA[i:], m.ContentEncoding) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentEncoding))) - i-- - dAtA[i] = 0x1a - if m.Raw != nil { - i -= len(m.Raw) - copy(dAtA[i:], m.Raw) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenerated(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *RawExtension) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Raw != nil { - l = len(m.Raw) - n += 1 + l + sovGenerated(uint64(l)) - } - return n -} - -func (m *TypeMeta) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.APIVersion) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.Kind) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func (m *Unknown) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.TypeMeta.Size() - n += 1 + l + sovGenerated(uint64(l)) - if m.Raw != nil { - l = len(m.Raw) - n += 1 + l + sovGenerated(uint64(l)) - } - l = len(m.ContentEncoding) - n += 1 + l + sovGenerated(uint64(l)) - l = len(m.ContentType) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (this *RawExtension) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&RawExtension{`, - `Raw:` + valueToStringGenerated(this.Raw) + `,`, - `}`, - }, "") - return s -} -func (this *TypeMeta) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&TypeMeta{`, - `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, - `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, - `}`, - }, "") - return s -} -func (this *Unknown) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&Unknown{`, - `TypeMeta:` + strings.Replace(strings.Replace(this.TypeMeta.String(), "TypeMeta", "TypeMeta", 1), `&`, ``, 1) + `,`, - `Raw:` + valueToStringGenerated(this.Raw) + `,`, - `ContentEncoding:` + fmt.Sprintf("%v", this.ContentEncoding) + `,`, - `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`, - `}`, - }, "") - return s -} -func valueToStringGenerated(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" - } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) -} -func (m *RawExtension) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RawExtension: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RawExtension: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) - if m.Raw == nil { - m.Raw = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TypeMeta) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TypeMeta: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.APIVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Unknown) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Unknown: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Unknown: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...) - if m.Raw == nil { - m.Raw = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContentEncoding", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContentEncoding = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContentType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/apimachinery/pkg/runtime/generated.proto b/pseudo/k8s/apimachinery/pkg/runtime/generated.proto deleted file mode 100644 index 43738e93e..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/generated.proto +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.runtime; - -// Package-wide variables from generator "generated". -option go_package = "runtime"; - -// RawExtension is used to hold extensions in external versions. -// -// To use this, make a field which has RawExtension as its type in your external, versioned -// struct, and Object in your internal struct. You also need to register your -// various plugin types. -// -// // Internal package: -// type MyAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// MyPlugin runtime.Object `json:"myPlugin"` -// } -// type PluginA struct { -// AOption string `json:"aOption"` -// } -// -// // External package: -// type MyAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// MyPlugin runtime.RawExtension `json:"myPlugin"` -// } -// type PluginA struct { -// AOption string `json:"aOption"` -// } -// -// // On the wire, the JSON will look something like this: -// { -// "kind":"MyAPIObject", -// "apiVersion":"v1", -// "myPlugin": { -// "kind":"PluginA", -// "aOption":"foo", -// }, -// } -// -// So what happens? Decode first uses json or yaml to unmarshal the serialized data into -// your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. -// The next step is to copy (using pkg/conversion) into the internal struct. The runtime -// package's DefaultScheme has conversion functions installed which will unpack the -// JSON stored in RawExtension, turning it into the correct object type, and storing it -// in the Object. (TODO: In the case where the object is of an unknown type, a -// runtime.Unknown object will be created and stored.) -// -// +k8s:deepcopy-gen=true -// +protobuf=true -// +k8s:openapi-gen=true -message RawExtension { - // Raw is the underlying serialization of this object. - // - // TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. - optional bytes raw = 1; -} - -// TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, -// like this: -// type MyAwesomeAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// ... // other fields -// } -// func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind -// -// TypeMeta is provided here for convenience. You may use it directly from this package or define -// your own with the same fields. -// -// +k8s:deepcopy-gen=false -// +protobuf=true -// +k8s:openapi-gen=true -message TypeMeta { - // +optional - optional string apiVersion = 1; - - // +optional - optional string kind = 2; -} - -// Unknown allows api objects with unknown types to be passed-through. This can be used -// to deal with the API objects from a plug-in. Unknown objects still have functioning -// TypeMeta features-- kind, version, etc. -// TODO: Make this object have easy access to field based accessors and settors for -// metadata and field mutatation. -// -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +protobuf=true -// +k8s:openapi-gen=true -message Unknown { - optional TypeMeta typeMeta = 1; - - // Raw will hold the complete serialized object which couldn't be matched - // with a registered type. Most likely, nothing should be done with this - // except for passing it through the system. - optional bytes raw = 2; - - // ContentEncoding is encoding used to encode 'Raw' data. - // Unspecified means no encoding. - optional string contentEncoding = 3; - - // ContentType is serialization method used to serialize 'Raw'. - // Unspecified means ContentTypeJSON. - optional string contentType = 4; -} - diff --git a/pseudo/k8s/apimachinery/pkg/runtime/helper.go b/pseudo/k8s/apimachinery/pkg/runtime/helper.go deleted file mode 100644 index 18c15bff7..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/helper.go +++ /dev/null @@ -1,259 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "fmt" - "io" - "reflect" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/errors" -) - -// unsafeObjectConvertor implements ObjectConvertor using the unsafe conversion path. -type unsafeObjectConvertor struct { - *Scheme -} - -var _ ObjectConvertor = unsafeObjectConvertor{} - -// ConvertToVersion converts in to the provided outVersion without copying the input first, which -// is only safe if the output object is not mutated or reused. -func (c unsafeObjectConvertor) ConvertToVersion(in Object, outVersion GroupVersioner) (Object, error) { - return c.Scheme.UnsafeConvertToVersion(in, outVersion) -} - -// UnsafeObjectConvertor performs object conversion without copying the object structure, -// for use when the converted object will not be reused or mutated. Primarily for use within -// versioned codecs, which use the external object for serialization but do not return it. -func UnsafeObjectConvertor(scheme *Scheme) ObjectConvertor { - return unsafeObjectConvertor{scheme} -} - -// SetField puts the value of src, into fieldName, which must be a member of v. -// The value of src must be assignable to the field. -func SetField(src interface{}, v reflect.Value, fieldName string) error { - field := v.FieldByName(fieldName) - if !field.IsValid() { - return fmt.Errorf("couldn't find %v field in %T", fieldName, v.Interface()) - } - srcValue := reflect.ValueOf(src) - if srcValue.Type().AssignableTo(field.Type()) { - field.Set(srcValue) - return nil - } - if srcValue.Type().ConvertibleTo(field.Type()) { - field.Set(srcValue.Convert(field.Type())) - return nil - } - return fmt.Errorf("couldn't assign/convert %v to %v", srcValue.Type(), field.Type()) -} - -// Field puts the value of fieldName, which must be a member of v, into dest, -// which must be a variable to which this field's value can be assigned. -func Field(v reflect.Value, fieldName string, dest interface{}) error { - field := v.FieldByName(fieldName) - if !field.IsValid() { - return fmt.Errorf("couldn't find %v field in %T", fieldName, v.Interface()) - } - destValue, err := conversion.EnforcePtr(dest) - if err != nil { - return err - } - if field.Type().AssignableTo(destValue.Type()) { - destValue.Set(field) - return nil - } - if field.Type().ConvertibleTo(destValue.Type()) { - destValue.Set(field.Convert(destValue.Type())) - return nil - } - return fmt.Errorf("couldn't assign/convert %v to %v", field.Type(), destValue.Type()) -} - -// FieldPtr puts the address of fieldName, which must be a member of v, -// into dest, which must be an address of a variable to which this field's -// address can be assigned. -func FieldPtr(v reflect.Value, fieldName string, dest interface{}) error { - field := v.FieldByName(fieldName) - if !field.IsValid() { - return fmt.Errorf("couldn't find %v field in %T", fieldName, v.Interface()) - } - v, err := conversion.EnforcePtr(dest) - if err != nil { - return err - } - field = field.Addr() - if field.Type().AssignableTo(v.Type()) { - v.Set(field) - return nil - } - if field.Type().ConvertibleTo(v.Type()) { - v.Set(field.Convert(v.Type())) - return nil - } - return fmt.Errorf("couldn't assign/convert %v to %v", field.Type(), v.Type()) -} - -// EncodeList ensures that each object in an array is converted to a Unknown{} in serialized form. -// TODO: accept a content type. -func EncodeList(e Encoder, objects []Object) error { - var errs []error - for i := range objects { - data, err := Encode(e, objects[i]) - if err != nil { - errs = append(errs, err) - continue - } - // TODO: Set ContentEncoding and ContentType. - objects[i] = &Unknown{Raw: data} - } - return errors.NewAggregate(errs) -} - -func decodeListItem(obj *Unknown, decoders []Decoder) (Object, error) { - for _, decoder := range decoders { - // TODO: Decode based on ContentType. - obj, err := Decode(decoder, obj.Raw) - if err != nil { - if IsNotRegisteredError(err) { - continue - } - return nil, err - } - return obj, nil - } - // could not decode, so leave the object as Unknown, but give the decoders the - // chance to set Unknown.TypeMeta if it is available. - for _, decoder := range decoders { - if err := DecodeInto(decoder, obj.Raw, obj); err == nil { - return obj, nil - } - } - return obj, nil -} - -// DecodeList alters the list in place, attempting to decode any objects found in -// the list that have the Unknown type. Any errors that occur are returned -// after the entire list is processed. Decoders are tried in order. -func DecodeList(objects []Object, decoders ...Decoder) []error { - errs := []error(nil) - for i, obj := range objects { - switch t := obj.(type) { - case *Unknown: - decoded, err := decodeListItem(t, decoders) - if err != nil { - errs = append(errs, err) - break - } - objects[i] = decoded - } - } - return errs -} - -// MultiObjectTyper returns the types of objects across multiple schemes in order. -type MultiObjectTyper []ObjectTyper - -var _ ObjectTyper = MultiObjectTyper{} - -func (m MultiObjectTyper) ObjectKinds(obj Object) (gvks []schema.GroupVersionKind, unversionedType bool, err error) { - for _, t := range m { - gvks, unversionedType, err = t.ObjectKinds(obj) - if err == nil { - return - } - } - return -} - -func (m MultiObjectTyper) Recognizes(gvk schema.GroupVersionKind) bool { - for _, t := range m { - if t.Recognizes(gvk) { - return true - } - } - return false -} - -// SetZeroValue would set the object of objPtr to zero value of its type. -func SetZeroValue(objPtr Object) error { - v, err := conversion.EnforcePtr(objPtr) - if err != nil { - return err - } - v.Set(reflect.Zero(v.Type())) - return nil -} - -// DefaultFramer is valid for any stream that can read objects serially without -// any separation in the stream. -var DefaultFramer = defaultFramer{} - -type defaultFramer struct{} - -func (defaultFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { return r } -func (defaultFramer) NewFrameWriter(w io.Writer) io.Writer { return w } - -// WithVersionEncoder serializes an object and ensures the GVK is set. -type WithVersionEncoder struct { - Version GroupVersioner - Encoder - ObjectTyper -} - -// Encode does not do conversion. It sets the gvk during serialization. -func (e WithVersionEncoder) Encode(obj Object, stream io.Writer) error { - gvks, _, err := e.ObjectTyper.ObjectKinds(obj) - if err != nil { - if IsNotRegisteredError(err) { - return e.Encoder.Encode(obj, stream) - } - return err - } - kind := obj.GetObjectKind() - oldGVK := kind.GroupVersionKind() - gvk := gvks[0] - if e.Version != nil { - preferredGVK, ok := e.Version.KindForGroupVersionKinds(gvks) - if ok { - gvk = preferredGVK - } - } - kind.SetGroupVersionKind(gvk) - err = e.Encoder.Encode(obj, stream) - kind.SetGroupVersionKind(oldGVK) - return err -} - -// WithoutVersionDecoder clears the group version kind of a deserialized object. -type WithoutVersionDecoder struct { - Decoder -} - -// Decode does not do conversion. It removes the gvk during deserialization. -func (d WithoutVersionDecoder) Decode(data []byte, defaults *schema.GroupVersionKind, into Object) (Object, *schema.GroupVersionKind, error) { - obj, gvk, err := d.Decoder.Decode(data, defaults, into) - if obj != nil { - kind := obj.GetObjectKind() - // clearing the gvk is just a convention of a codec - kind.SetGroupVersionKind(schema.GroupVersionKind{}) - } - return obj, gvk, err -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/interfaces.go b/pseudo/k8s/apimachinery/pkg/runtime/interfaces.go deleted file mode 100644 index 06f594784..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/interfaces.go +++ /dev/null @@ -1,278 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "io" - "net/url" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -const ( - // APIVersionInternal may be used if you are registering a type that should not - // be considered stable or serialized - it is a convention only and has no - // special behavior in this package. - APIVersionInternal = "__internal" -) - -// GroupVersioner refines a set of possible conversion targets into a single option. -type GroupVersioner interface { - // KindForGroupVersionKinds returns a desired target group version kind for the given input, or returns ok false if no - // target is known. In general, if the return target is not in the input list, the caller is expected to invoke - // Scheme.New(target) and then perform a conversion between the current Go type and the destination Go type. - // Sophisticated implementations may use additional information about the input kinds to pick a destination kind. - KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (target schema.GroupVersionKind, ok bool) -} - -// Encoder writes objects to a serialized form -type Encoder interface { - // Encode writes an object to a stream. Implementations may return errors if the versions are - // incompatible, or if no conversion is defined. - Encode(obj Object, w io.Writer) error -} - -// Decoder attempts to load an object from data. -type Decoder interface { - // Decode attempts to deserialize the provided data using either the innate typing of the scheme or the - // default kind, group, and version provided. It returns a decoded object as well as the kind, group, and - // version from the serialized data, or an error. If into is non-nil, it will be used as the target type - // and implementations may choose to use it rather than reallocating an object. However, the object is not - // guaranteed to be populated. The returned object is not guaranteed to match into. If defaults are - // provided, they are applied to the data by default. If no defaults or partial defaults are provided, the - // type of the into may be used to guide conversion decisions. - Decode(data []byte, defaults *schema.GroupVersionKind, into Object) (Object, *schema.GroupVersionKind, error) -} - -// Serializer is the core interface for transforming objects into a serialized format and back. -// Implementations may choose to perform conversion of the object, but no assumptions should be made. -type Serializer interface { - Encoder - Decoder -} - -// Codec is a Serializer that deals with the details of versioning objects. It offers the same -// interface as Serializer, so this is a marker to consumers that care about the version of the objects -// they receive. -type Codec Serializer - -// ParameterCodec defines methods for serializing and deserializing API objects to url.Values and -// performing any necessary conversion. Unlike the normal Codec, query parameters are not self describing -// and the desired version must be specified. -type ParameterCodec interface { - // DecodeParameters takes the given url.Values in the specified group version and decodes them - // into the provided object, or returns an error. - DecodeParameters(parameters url.Values, from schema.GroupVersion, into Object) error - // EncodeParameters encodes the provided object as query parameters or returns an error. - EncodeParameters(obj Object, to schema.GroupVersion) (url.Values, error) -} - -// Framer is a factory for creating readers and writers that obey a particular framing pattern. -type Framer interface { - NewFrameReader(r io.ReadCloser) io.ReadCloser - NewFrameWriter(w io.Writer) io.Writer -} - -// SerializerInfo contains information about a specific serialization format -type SerializerInfo struct { - // MediaType is the value that represents this serializer over the wire. - MediaType string - // MediaTypeType is the first part of the MediaType ("application" in "application/json"). - MediaTypeType string - // MediaTypeSubType is the second part of the MediaType ("json" in "application/json"). - MediaTypeSubType string - // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. - EncodesAsText bool - // Serializer is the individual object serializer for this media type. - Serializer Serializer - // PrettySerializer, if set, can serialize this object in a form biased towards - // readability. - PrettySerializer Serializer - // StreamSerializer, if set, describes the streaming serialization format - // for this media type. - StreamSerializer *StreamSerializerInfo -} - -// StreamSerializerInfo contains information about a specific stream serialization format -type StreamSerializerInfo struct { - // EncodesAsText indicates this serializer can be encoded to UTF-8 safely. - EncodesAsText bool - // Serializer is the top level object serializer for this type when streaming - Serializer - // Framer is the factory for retrieving streams that separate objects on the wire - Framer -} - -// NegotiatedSerializer is an interface used for obtaining encoders, decoders, and serializers -// for multiple supported media types. This would commonly be accepted by a server component -// that performs HTTP content negotiation to accept multiple formats. -type NegotiatedSerializer interface { - // SupportedMediaTypes is the media types supported for reading and writing single objects. - SupportedMediaTypes() []SerializerInfo - - // EncoderForVersion returns an encoder that ensures objects being written to the provided - // serializer are in the provided group version. - EncoderForVersion(serializer Encoder, gv GroupVersioner) Encoder - // DecoderForVersion returns a decoder that ensures objects being read by the provided - // serializer are in the provided group version by default. - DecoderToVersion(serializer Decoder, gv GroupVersioner) Decoder -} - -// StorageSerializer is an interface used for obtaining encoders, decoders, and serializers -// that can read and write data at rest. This would commonly be used by client tools that must -// read files, or server side storage interfaces that persist restful objects. -type StorageSerializer interface { - // SupportedMediaTypes are the media types supported for reading and writing objects. - SupportedMediaTypes() []SerializerInfo - - // UniversalDeserializer returns a Serializer that can read objects in multiple supported formats - // by introspecting the data at rest. - UniversalDeserializer() Decoder - - // EncoderForVersion returns an encoder that ensures objects being written to the provided - // serializer are in the provided group version. - EncoderForVersion(serializer Encoder, gv GroupVersioner) Encoder - // DecoderForVersion returns a decoder that ensures objects being read by the provided - // serializer are in the provided group version by default. - DecoderToVersion(serializer Decoder, gv GroupVersioner) Decoder -} - -// NestedObjectEncoder is an optional interface that objects may implement to be given -// an opportunity to encode any nested Objects / RawExtensions during serialization. -type NestedObjectEncoder interface { - EncodeNestedObjects(e Encoder) error -} - -// NestedObjectDecoder is an optional interface that objects may implement to be given -// an opportunity to decode any nested Objects / RawExtensions during serialization. -type NestedObjectDecoder interface { - DecodeNestedObjects(d Decoder) error -} - -/////////////////////////////////////////////////////////////////////////////// -// Non-codec interfaces - -type ObjectDefaulter interface { - // Default takes an object (must be a pointer) and applies any default values. - // Defaulters may not error. - Default(in Object) -} - -type ObjectVersioner interface { - ConvertToVersion(in Object, gv GroupVersioner) (out Object, err error) -} - -// ObjectConvertor converts an object to a different version. -type ObjectConvertor interface { - // Convert attempts to convert one object into another, or returns an error. This - // method does not mutate the in object, but the in and out object might share data structures, - // i.e. the out object cannot be mutated without mutating the in object as well. - // The context argument will be passed to all nested conversions. - Convert(in, out, context interface{}) error - // ConvertToVersion takes the provided object and converts it the provided version. This - // method does not mutate the in object, but the in and out object might share data structures, - // i.e. the out object cannot be mutated without mutating the in object as well. - // This method is similar to Convert() but handles specific details of choosing the correct - // output version. - ConvertToVersion(in Object, gv GroupVersioner) (out Object, err error) - ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) -} - -// ObjectTyper contains methods for extracting the APIVersion and Kind -// of objects. -type ObjectTyper interface { - // ObjectKinds returns the all possible group,version,kind of the provided object, true if - // the object is unversioned, or an error if the object is not recognized - // (IsNotRegisteredError will return true). - ObjectKinds(Object) ([]schema.GroupVersionKind, bool, error) - // Recognizes returns true if the scheme is able to handle the provided version and kind, - // or more precisely that the provided version is a possible conversion or decoding - // target. - Recognizes(gvk schema.GroupVersionKind) bool -} - -// ObjectCreater contains methods for instantiating an object by kind and version. -type ObjectCreater interface { - New(kind schema.GroupVersionKind) (out Object, err error) -} - -// EquivalentResourceMapper provides information about resources that address the same underlying data as a specified resource -type EquivalentResourceMapper interface { - // EquivalentResourcesFor returns a list of resources that address the same underlying data as resource. - // If subresource is specified, only equivalent resources which also have the same subresource are included. - // The specified resource can be included in the returned list. - EquivalentResourcesFor(resource schema.GroupVersionResource, subresource string) []schema.GroupVersionResource - // KindFor returns the kind expected by the specified resource[/subresource]. - // A zero value is returned if the kind is unknown. - KindFor(resource schema.GroupVersionResource, subresource string) schema.GroupVersionKind -} - -// EquivalentResourceRegistry provides an EquivalentResourceMapper interface, -// and allows registering known resource[/subresource] -> kind -type EquivalentResourceRegistry interface { - EquivalentResourceMapper - // RegisterKindFor registers the existence of the specified resource[/subresource] along with its expected kind. - RegisterKindFor(resource schema.GroupVersionResource, subresource string, kind schema.GroupVersionKind) -} - -// ResourceVersioner provides methods for setting and retrieving -// the resource version from an API object. -type ResourceVersioner interface { - SetResourceVersion(obj Object, version string) error - ResourceVersion(obj Object) (string, error) -} - -// SelfLinker provides methods for setting and retrieving the SelfLink field of an API object. -type SelfLinker interface { - SetSelfLink(obj Object, selfLink string) error - SelfLink(obj Object) (string, error) - - // Knowing Name is sometimes necessary to use a SelfLinker. - Name(obj Object) (string, error) - // Knowing Namespace is sometimes necessary to use a SelfLinker - Namespace(obj Object) (string, error) -} - -// Object interface must be supported by all API types registered with Scheme. Since objects in a scheme are -// expected to be serialized to the wire, the interface an Object must provide to the Scheme allows -// serializers to set the kind, version, and group the object is represented as. An Object may choose -// to return a no-op ObjectKindAccessor in cases where it is not expected to be serialized. -type Object interface { - GetObjectKind() schema.ObjectKind - DeepCopyObject() Object -} - -// Unstructured objects store values as map[string]interface{}, with only values that can be serialized -// to JSON allowed. -type Unstructured interface { - Object - // NewEmptyInstance returns a new instance of the concrete type containing only kind/apiVersion and no other data. - // This should be called instead of reflect.New() for unstructured types because the go type alone does not preserve kind/apiVersion info. - NewEmptyInstance() Unstructured - // UnstructuredContent returns a non-nil map with this object's contents. Values may be - // []interface{}, map[string]interface{}, or any primitive type. Contents are typically serialized to - // and from JSON. SetUnstructuredContent should be used to mutate the contents. - UnstructuredContent() map[string]interface{} - // SetUnstructuredContent updates the object content to match the provided map. - SetUnstructuredContent(map[string]interface{}) - // IsList returns true if this type is a list or matches the list convention - has an array called "items". - IsList() bool - // EachListItem should pass a single item out of the list as an Object to the provided function. Any - // error should terminate the iteration. If IsList() returns false, this method should return an error - // instead of calling the provided function. - EachListItem(func(Object) error) error -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/local_scheme_test.go b/pseudo/k8s/apimachinery/pkg/runtime/local_scheme_test.go deleted file mode 100644 index 08a2b0ac1..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/local_scheme_test.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 runtime - -import ( - "testing" - - "reflect" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestPreferredVersionsAllGroups(t *testing.T) { - tests := []struct { - name string - versionPriority map[string][]string - observedVersions []schema.GroupVersion - expectedPrioritized map[string][]schema.GroupVersion - expectedPreferred map[schema.GroupVersion]bool - }{ - { - name: "observedOnly", - observedVersions: []schema.GroupVersion{ - {Group: "", Version: "v3"}, - {Group: "foo", Version: "v1"}, - {Group: "foo", Version: "v2"}, - {Group: "", Version: "v1"}, - }, - expectedPrioritized: map[string][]schema.GroupVersion{ - "": { - {Group: "", Version: "v3"}, - {Group: "", Version: "v1"}, - }, - "foo": { - {Group: "foo", Version: "v1"}, - {Group: "foo", Version: "v2"}, - }, - }, - expectedPreferred: map[schema.GroupVersion]bool{ - {Group: "", Version: "v3"}: true, - {Group: "foo", Version: "v1"}: true, - }, - }, - { - name: "specifiedOnly", - versionPriority: map[string][]string{ - "": {"v3", "v1"}, - "foo": {"v1", "v2"}, - }, - expectedPrioritized: map[string][]schema.GroupVersion{ - "": { - {Group: "", Version: "v3"}, - {Group: "", Version: "v1"}, - }, - "foo": { - {Group: "foo", Version: "v1"}, - {Group: "foo", Version: "v2"}, - }, - }, - expectedPreferred: map[schema.GroupVersion]bool{ - {Group: "", Version: "v3"}: true, - {Group: "foo", Version: "v1"}: true, - }, - }, - { - name: "both", - versionPriority: map[string][]string{ - "": {"v3", "v1"}, - "foo": {"v1", "v2"}, - }, - observedVersions: []schema.GroupVersion{ - {Group: "", Version: "v1"}, - {Group: "", Version: "v3"}, - {Group: "", Version: "v4"}, - {Group: "", Version: "v5"}, - {Group: "bar", Version: "v1"}, - {Group: "bar", Version: "v2"}, - }, - expectedPrioritized: map[string][]schema.GroupVersion{ - "": { - {Group: "", Version: "v3"}, - {Group: "", Version: "v1"}, - {Group: "", Version: "v4"}, - {Group: "", Version: "v5"}, - }, - "foo": { - {Group: "foo", Version: "v1"}, - {Group: "foo", Version: "v2"}, - }, - "bar": { - {Group: "bar", Version: "v1"}, - {Group: "bar", Version: "v2"}, - }, - }, - expectedPreferred: map[schema.GroupVersion]bool{ - {Group: "", Version: "v3"}: true, - {Group: "foo", Version: "v1"}: true, - {Group: "bar", Version: "v1"}: true, - }, - }, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - scheme := NewScheme() - scheme.versionPriority = test.versionPriority - scheme.observedVersions = test.observedVersions - - for group, expected := range test.expectedPrioritized { - actual := scheme.PrioritizedVersionsForGroup(group) - if !reflect.DeepEqual(expected, actual) { - t.Error(diff.ObjectDiff(expected, actual)) - } - } - - prioritizedAll := scheme.PrioritizedVersionsAllGroups() - actualPrioritizedAll := map[string][]schema.GroupVersion{} - for _, actual := range prioritizedAll { - actualPrioritizedAll[actual.Group] = append(actualPrioritizedAll[actual.Group], actual) - } - if !reflect.DeepEqual(test.expectedPrioritized, actualPrioritizedAll) { - t.Error(diff.ObjectDiff(test.expectedPrioritized, actualPrioritizedAll)) - } - - preferredAll := scheme.PreferredVersionAllGroups() - actualPreferredAll := map[schema.GroupVersion]bool{} - for _, actual := range preferredAll { - actualPreferredAll[actual] = true - } - if !reflect.DeepEqual(test.expectedPreferred, actualPreferredAll) { - t.Error(diff.ObjectDiff(test.expectedPreferred, actualPreferredAll)) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/mapper.go b/pseudo/k8s/apimachinery/pkg/runtime/mapper.go deleted file mode 100644 index d866067bd..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/mapper.go +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2019 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 runtime - -import ( - "sync" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -type equivalentResourceRegistry struct { - // keyFunc computes a key for the specified resource (this allows honoring colocated resources across API groups). - // if null, or if "" is returned, resource.String() is used as the key - keyFunc func(resource schema.GroupResource) string - // resources maps key -> subresource -> equivalent resources (subresource is not included in the returned resources). - // main resources are stored with subresource="". - resources map[string]map[string][]schema.GroupVersionResource - // kinds maps resource -> subresource -> kind - kinds map[schema.GroupVersionResource]map[string]schema.GroupVersionKind - // keys caches the computed key for each GroupResource - keys map[schema.GroupResource]string - - mutex sync.RWMutex -} - -var _ EquivalentResourceMapper = (*equivalentResourceRegistry)(nil) -var _ EquivalentResourceRegistry = (*equivalentResourceRegistry)(nil) - -// NewEquivalentResourceRegistry creates a resource registry that considers all versions of a GroupResource to be equivalent. -func NewEquivalentResourceRegistry() EquivalentResourceRegistry { - return &equivalentResourceRegistry{} -} - -// NewEquivalentResourceRegistryWithIdentity creates a resource mapper with a custom identity function. -// If "" is returned by the function, GroupResource#String is used as the identity. -// GroupResources with the same identity string are considered equivalent. -func NewEquivalentResourceRegistryWithIdentity(keyFunc func(schema.GroupResource) string) EquivalentResourceRegistry { - return &equivalentResourceRegistry{keyFunc: keyFunc} -} - -func (r *equivalentResourceRegistry) EquivalentResourcesFor(resource schema.GroupVersionResource, subresource string) []schema.GroupVersionResource { - r.mutex.RLock() - defer r.mutex.RUnlock() - return r.resources[r.keys[resource.GroupResource()]][subresource] -} -func (r *equivalentResourceRegistry) KindFor(resource schema.GroupVersionResource, subresource string) schema.GroupVersionKind { - r.mutex.RLock() - defer r.mutex.RUnlock() - return r.kinds[resource][subresource] -} -func (r *equivalentResourceRegistry) RegisterKindFor(resource schema.GroupVersionResource, subresource string, kind schema.GroupVersionKind) { - r.mutex.Lock() - defer r.mutex.Unlock() - if r.kinds == nil { - r.kinds = map[schema.GroupVersionResource]map[string]schema.GroupVersionKind{} - } - if r.kinds[resource] == nil { - r.kinds[resource] = map[string]schema.GroupVersionKind{} - } - r.kinds[resource][subresource] = kind - - // get the shared key of the parent resource - key := "" - gr := resource.GroupResource() - if r.keyFunc != nil { - key = r.keyFunc(gr) - } - if key == "" { - key = gr.String() - } - - if r.keys == nil { - r.keys = map[schema.GroupResource]string{} - } - r.keys[gr] = key - - if r.resources == nil { - r.resources = map[string]map[string][]schema.GroupVersionResource{} - } - if r.resources[key] == nil { - r.resources[key] = map[string][]schema.GroupVersionResource{} - } - r.resources[key][subresource] = append(r.resources[key][subresource], resource) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/mapper_test.go b/pseudo/k8s/apimachinery/pkg/runtime/mapper_test.go deleted file mode 100644 index 696889adc..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/mapper_test.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -Copyright 2019 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 runtime - -import ( - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestResourceMapper(t *testing.T) { - gvr := func(g, v, r string) schema.GroupVersionResource { return schema.GroupVersionResource{g, v, r} } - - gvk := func(g, v, k string) schema.GroupVersionKind { return schema.GroupVersionKind{g, v, k} } - - kindsToRegister := []struct { - gvr schema.GroupVersionResource - subresource string - gvk schema.GroupVersionKind - }{ - // pods - {gvr("", "v1", "pods"), "", gvk("", "v1", "Pod")}, - // pods/status - {gvr("", "v1", "pods"), "status", gvk("", "v1", "Pod")}, - // deployments - {gvr("apps", "v1", "deployments"), "", gvk("apps", "v1", "Deployment")}, - {gvr("apps", "v1beta1", "deployments"), "", gvk("apps", "v1beta1", "Deployment")}, - {gvr("apps", "v1alpha1", "deployments"), "", gvk("apps", "v1alpha1", "Deployment")}, - {gvr("extensions", "v1beta1", "deployments"), "", gvk("extensions", "v1beta1", "Deployment")}, - // deployments/scale (omitted for apps/v1alpha1) - {gvr("apps", "v1", "deployments"), "scale", gvk("", "", "Scale")}, - {gvr("apps", "v1beta1", "deployments"), "scale", gvk("", "", "Scale")}, - {gvr("extensions", "v1beta1", "deployments"), "scale", gvk("", "", "Scale")}, - // deployments/status (omitted for apps/v1alpha1) - {gvr("apps", "v1", "deployments"), "status", gvk("apps", "v1", "Deployment")}, - {gvr("apps", "v1beta1", "deployments"), "status", gvk("apps", "v1beta1", "Deployment")}, - {gvr("extensions", "v1beta1", "deployments"), "status", gvk("extensions", "v1beta1", "Deployment")}, - } - - testcases := []struct { - Name string - IdentityFunc func(schema.GroupResource) string - ResourcesForV1Deployment []schema.GroupVersionResource - ResourcesForV1DeploymentScale []schema.GroupVersionResource - ResourcesForV1DeploymentStatus []schema.GroupVersionResource - }{ - { - Name: "no identityfunc", - ResourcesForV1Deployment: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("apps", "v1alpha1", "deployments")}, - ResourcesForV1DeploymentScale: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments")}, - ResourcesForV1DeploymentStatus: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments")}, - }, - { - Name: "empty identityfunc", - IdentityFunc: func(schema.GroupResource) string { return "" }, - // same group - ResourcesForV1Deployment: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("apps", "v1alpha1", "deployments")}, - ResourcesForV1DeploymentScale: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments")}, - ResourcesForV1DeploymentStatus: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments")}, - }, - { - Name: "common identityfunc", - IdentityFunc: func(schema.GroupResource) string { return "x" }, - // all resources are seen as equivalent - ResourcesForV1Deployment: []schema.GroupVersionResource{gvr("", "v1", "pods"), gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("apps", "v1alpha1", "deployments"), gvr("extensions", "v1beta1", "deployments")}, - // all resources with scale are seen as equivalent - ResourcesForV1DeploymentScale: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("extensions", "v1beta1", "deployments")}, - // all resources with status are seen as equivalent - ResourcesForV1DeploymentStatus: []schema.GroupVersionResource{gvr("", "v1", "pods"), gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("extensions", "v1beta1", "deployments")}, - }, - { - Name: "colocated deployments", - IdentityFunc: func(resource schema.GroupResource) string { - if resource.Resource == "deployments" { - return "deployments" - } - return "" - }, - // all deployments are seen as equivalent - ResourcesForV1Deployment: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("apps", "v1alpha1", "deployments"), gvr("extensions", "v1beta1", "deployments")}, - // all deployments with scale are seen as equivalent - ResourcesForV1DeploymentScale: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("extensions", "v1beta1", "deployments")}, - // all deployments with status are seen as equivalent - ResourcesForV1DeploymentStatus: []schema.GroupVersionResource{gvr("apps", "v1", "deployments"), gvr("apps", "v1beta1", "deployments"), gvr("extensions", "v1beta1", "deployments")}, - }, - } - - for _, tc := range testcases { - t.Run(tc.Name, func(t *testing.T) { - mapper := NewEquivalentResourceRegistryWithIdentity(tc.IdentityFunc) - - // register - for _, data := range kindsToRegister { - mapper.RegisterKindFor(data.gvr, data.subresource, data.gvk) - } - // verify - for _, data := range kindsToRegister { - if kind := mapper.KindFor(data.gvr, data.subresource); kind != data.gvk { - t.Errorf("KindFor(%#v, %v) returned %#v, expected %#v", data.gvr, data.subresource, kind, data.gvk) - } - } - - // Verify equivalents to primary resource - if resources := mapper.EquivalentResourcesFor(gvr("apps", "v1", "deployments"), ""); !reflect.DeepEqual(resources, tc.ResourcesForV1Deployment) { - t.Errorf("diff:\n%s", diff.ObjectReflectDiff(tc.ResourcesForV1Deployment, resources)) - } - // Verify equivalents to subresources - if resources := mapper.EquivalentResourcesFor(gvr("apps", "v1", "deployments"), "scale"); !reflect.DeepEqual(resources, tc.ResourcesForV1DeploymentScale) { - t.Errorf("diff:\n%s", diff.ObjectReflectDiff(tc.ResourcesForV1DeploymentScale, resources)) - } - if resources := mapper.EquivalentResourcesFor(gvr("apps", "v1", "deployments"), "status"); !reflect.DeepEqual(resources, tc.ResourcesForV1DeploymentStatus) { - t.Errorf("diff:\n%s", diff.ObjectReflectDiff(tc.ResourcesForV1DeploymentStatus, resources)) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/register.go b/pseudo/k8s/apimachinery/pkg/runtime/register.go deleted file mode 100644 index a90a9dbee..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/register.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -Copyright 2015 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 runtime - -import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - -// SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta -func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind) { - obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() -} - -// GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta -func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind { - return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind) -} - -func (obj *TypeMeta) GetObjectKind() schema.ObjectKind { return obj } - -// GetObjectKind implements Object for VersionedObjects, returning an empty ObjectKind -// interface if no objects are provided, or the ObjectKind interface of the object in the -// highest array position. -func (obj *VersionedObjects) GetObjectKind() schema.ObjectKind { - last := obj.Last() - if last == nil { - return schema.EmptyObjectKind - } - return last.GetObjectKind() -} - -// First returns the leftmost object in the VersionedObjects array, which is usually the -// object as serialized on the wire. -func (obj *VersionedObjects) First() Object { - if len(obj.Objects) == 0 { - return nil - } - return obj.Objects[0] -} - -// Last is the rightmost object in the VersionedObjects array, which is the object after -// all transformations have been applied. This is the same object that would be returned -// by Decode in a normal invocation (without VersionedObjects in the into argument). -func (obj *VersionedObjects) Last() Object { - if len(obj.Objects) == 0 { - return nil - } - return obj.Objects[len(obj.Objects)-1] -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.pb.go b/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.pb.go deleted file mode 100644 index 7e353bcdd..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.pb.go +++ /dev/null @@ -1,59 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto - -package schema - -import ( - fmt "fmt" - - math "math" - - proto "github.com/gogo/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto", fileDescriptor_0462724132518e0d) -} - -var fileDescriptor_0462724132518e0d = []byte{ - // 185 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0xcc, 0xaf, 0x6e, 0xc3, 0x30, - 0x10, 0xc7, 0x71, 0x9b, 0x0c, 0x0c, 0x0e, 0x0e, 0x1c, 0x1c, 0xda, 0x7c, 0x74, 0xb8, 0x2f, 0x50, - 0x5e, 0xe6, 0x24, 0x57, 0xc7, 0xb2, 0xfc, 0x47, 0x8e, 0x5d, 0xa9, 0xac, 0x8f, 0xd0, 0xc7, 0x0a, - 0x0c, 0x0c, 0x6c, 0xdc, 0x17, 0xa9, 0x64, 0x07, 0x94, 0xdd, 0x4f, 0xa7, 0xcf, 0xf7, 0xf3, 0x68, - 0xfe, 0x27, 0xa1, 0x3d, 0x9a, 0xdc, 0x51, 0x74, 0x94, 0x68, 0xc2, 0x0b, 0xb9, 0xc1, 0x47, 0xdc, - 0x1f, 0x32, 0x68, 0x2b, 0xfb, 0x51, 0x3b, 0x8a, 0x57, 0x0c, 0x46, 0x61, 0xcc, 0x2e, 0x69, 0x4b, - 0x38, 0xf5, 0x23, 0x59, 0x89, 0x8a, 0x1c, 0x45, 0x99, 0x68, 0x10, 0x21, 0xfa, 0xe4, 0xbf, 0x7e, - 0x9a, 0x13, 0xef, 0x4e, 0x04, 0xa3, 0xc4, 0xee, 0x44, 0x73, 0xdf, 0x7f, 0x4a, 0xa7, 0x31, 0x77, - 0xa2, 0xf7, 0x16, 0x95, 0x57, 0x1e, 0x2b, 0xef, 0xf2, 0xb9, 0xae, 0x3a, 0xea, 0xd5, 0xb2, 0x87, - 0xdf, 0x79, 0x03, 0xb6, 0x6c, 0xc0, 0xd6, 0x0d, 0xd8, 0xad, 0x00, 0x9f, 0x0b, 0xf0, 0xa5, 0x00, - 0x5f, 0x0b, 0xf0, 0x47, 0x01, 0x7e, 0x7f, 0x02, 0x3b, 0x7d, 0xb4, 0xf8, 0x2b, 0x00, 0x00, 0xff, - 0xff, 0xba, 0x7e, 0x65, 0xf4, 0xd6, 0x00, 0x00, 0x00, -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto b/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto deleted file mode 100644 index 5aeeaa100..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/schema/generated.proto +++ /dev/null @@ -1,26 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.runtime.schema; - -// Package-wide variables from generator "generated". -option go_package = "schema"; - diff --git a/pseudo/k8s/apimachinery/pkg/runtime/schema/group_version.go b/pseudo/k8s/apimachinery/pkg/runtime/schema/group_version.go deleted file mode 100644 index 4c67ed598..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/schema/group_version.go +++ /dev/null @@ -1,300 +0,0 @@ -/* -Copyright 2015 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 schema - -import ( - "fmt" - "strings" -) - -// ParseResourceArg takes the common style of string which may be either `resource.group.com` or `resource.version.group.com` -// and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended -// but with a knowledge of all GroupVersions, calling code can take a very good guess. If there are only two segments, then -// `*GroupVersionResource` is nil. -// `resource.group.com` -> `group=com, version=group, resource=resource` and `group=group.com, resource=resource` -func ParseResourceArg(arg string) (*GroupVersionResource, GroupResource) { - var gvr *GroupVersionResource - if strings.Count(arg, ".") >= 2 { - s := strings.SplitN(arg, ".", 3) - gvr = &GroupVersionResource{Group: s[2], Version: s[1], Resource: s[0]} - } - - return gvr, ParseGroupResource(arg) -} - -// ParseKindArg takes the common style of string which may be either `Kind.group.com` or `Kind.version.group.com` -// and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended -// but with a knowledge of all GroupKinds, calling code can take a very good guess. If there are only two segments, then -// `*GroupVersionResource` is nil. -// `Kind.group.com` -> `group=com, version=group, kind=Kind` and `group=group.com, kind=Kind` -func ParseKindArg(arg string) (*GroupVersionKind, GroupKind) { - var gvk *GroupVersionKind - if strings.Count(arg, ".") >= 2 { - s := strings.SplitN(arg, ".", 3) - gvk = &GroupVersionKind{Group: s[2], Version: s[1], Kind: s[0]} - } - - return gvk, ParseGroupKind(arg) -} - -// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -type GroupResource struct { - Group string - Resource string -} - -func (gr GroupResource) WithVersion(version string) GroupVersionResource { - return GroupVersionResource{Group: gr.Group, Version: version, Resource: gr.Resource} -} - -func (gr GroupResource) Empty() bool { - return len(gr.Group) == 0 && len(gr.Resource) == 0 -} - -func (gr GroupResource) String() string { - if len(gr.Group) == 0 { - return gr.Resource - } - return gr.Resource + "." + gr.Group -} - -func ParseGroupKind(gk string) GroupKind { - i := strings.Index(gk, ".") - if i == -1 { - return GroupKind{Kind: gk} - } - - return GroupKind{Group: gk[i+1:], Kind: gk[:i]} -} - -// ParseGroupResource turns "resource.group" string into a GroupResource struct. Empty strings are allowed -// for each field. -func ParseGroupResource(gr string) GroupResource { - if i := strings.Index(gr, "."); i >= 0 { - return GroupResource{Group: gr[i+1:], Resource: gr[:i]} - } - return GroupResource{Resource: gr} -} - -// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion -// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling -type GroupVersionResource struct { - Group string - Version string - Resource string -} - -func (gvr GroupVersionResource) Empty() bool { - return len(gvr.Group) == 0 && len(gvr.Version) == 0 && len(gvr.Resource) == 0 -} - -func (gvr GroupVersionResource) GroupResource() GroupResource { - return GroupResource{Group: gvr.Group, Resource: gvr.Resource} -} - -func (gvr GroupVersionResource) GroupVersion() GroupVersion { - return GroupVersion{Group: gvr.Group, Version: gvr.Version} -} - -func (gvr GroupVersionResource) String() string { - return strings.Join([]string{gvr.Group, "/", gvr.Version, ", Resource=", gvr.Resource}, "") -} - -// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying -// concepts during lookup stages without having partially valid types -type GroupKind struct { - Group string - Kind string -} - -func (gk GroupKind) Empty() bool { - return len(gk.Group) == 0 && len(gk.Kind) == 0 -} - -func (gk GroupKind) WithVersion(version string) GroupVersionKind { - return GroupVersionKind{Group: gk.Group, Version: version, Kind: gk.Kind} -} - -func (gk GroupKind) String() string { - if len(gk.Group) == 0 { - return gk.Kind - } - return gk.Kind + "." + gk.Group -} - -// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion -// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling -type GroupVersionKind struct { - Group string - Version string - Kind string -} - -// Empty returns true if group, version, and kind are empty -func (gvk GroupVersionKind) Empty() bool { - return len(gvk.Group) == 0 && len(gvk.Version) == 0 && len(gvk.Kind) == 0 -} - -func (gvk GroupVersionKind) GroupKind() GroupKind { - return GroupKind{Group: gvk.Group, Kind: gvk.Kind} -} - -func (gvk GroupVersionKind) GroupVersion() GroupVersion { - return GroupVersion{Group: gvk.Group, Version: gvk.Version} -} - -func (gvk GroupVersionKind) String() string { - return gvk.Group + "/" + gvk.Version + ", Kind=" + gvk.Kind -} - -// GroupVersion contains the "group" and the "version", which uniquely identifies the API. -type GroupVersion struct { - Group string - Version string -} - -// Empty returns true if group and version are empty -func (gv GroupVersion) Empty() bool { - return len(gv.Group) == 0 && len(gv.Version) == 0 -} - -// String puts "group" and "version" into a single "group/version" string. For the legacy v1 -// it returns "v1". -func (gv GroupVersion) String() string { - // special case the internal apiVersion for the legacy kube types - if gv.Empty() { - return "" - } - - // special case of "v1" for backward compatibility - if len(gv.Group) == 0 && gv.Version == "v1" { - return gv.Version - } - if len(gv.Group) > 0 { - return gv.Group + "/" + gv.Version - } - return gv.Version -} - -// KindForGroupVersionKinds identifies the preferred GroupVersionKind out of a list. It returns ok false -// if none of the options match the group. It prefers a match to group and version over just group. -// TODO: Move GroupVersion to a package under pkg/runtime, since it's used by scheme. -// TODO: Introduce an adapter type between GroupVersion and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) -// in fewer places. -func (gv GroupVersion) KindForGroupVersionKinds(kinds []GroupVersionKind) (target GroupVersionKind, ok bool) { - for _, gvk := range kinds { - if gvk.Group == gv.Group && gvk.Version == gv.Version { - return gvk, true - } - } - for _, gvk := range kinds { - if gvk.Group == gv.Group { - return gv.WithKind(gvk.Kind), true - } - } - return GroupVersionKind{}, false -} - -// ParseGroupVersion turns "group/version" string into a GroupVersion struct. It reports error -// if it cannot parse the string. -func ParseGroupVersion(gv string) (GroupVersion, error) { - // this can be the internal version for the legacy kube types - // TODO once we've cleared the last uses as strings, this special case should be removed. - if (len(gv) == 0) || (gv == "/") { - return GroupVersion{}, nil - } - - switch strings.Count(gv, "/") { - case 0: - return GroupVersion{"", gv}, nil - case 1: - i := strings.Index(gv, "/") - return GroupVersion{gv[:i], gv[i+1:]}, nil - default: - return GroupVersion{}, fmt.Errorf("unexpected GroupVersion string: %v", gv) - } -} - -// WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind. -func (gv GroupVersion) WithKind(kind string) GroupVersionKind { - return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind} -} - -// WithResource creates a GroupVersionResource based on the method receiver's GroupVersion and the passed Resource. -func (gv GroupVersion) WithResource(resource string) GroupVersionResource { - return GroupVersionResource{Group: gv.Group, Version: gv.Version, Resource: resource} -} - -// GroupVersions can be used to represent a set of desired group versions. -// TODO: Move GroupVersions to a package under pkg/runtime, since it's used by scheme. -// TODO: Introduce an adapter type between GroupVersions and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) -// in fewer places. -type GroupVersions []GroupVersion - -// KindForGroupVersionKinds identifies the preferred GroupVersionKind out of a list. It returns ok false -// if none of the options match the group. -func (gvs GroupVersions) KindForGroupVersionKinds(kinds []GroupVersionKind) (GroupVersionKind, bool) { - var targets []GroupVersionKind - for _, gv := range gvs { - target, ok := gv.KindForGroupVersionKinds(kinds) - if !ok { - continue - } - targets = append(targets, target) - } - if len(targets) == 1 { - return targets[0], true - } - if len(targets) > 1 { - return bestMatch(kinds, targets), true - } - return GroupVersionKind{}, false -} - -// bestMatch tries to pick best matching GroupVersionKind and falls back to the first -// found if no exact match exists. -func bestMatch(kinds []GroupVersionKind, targets []GroupVersionKind) GroupVersionKind { - for _, gvk := range targets { - for _, k := range kinds { - if k == gvk { - return k - } - } - } - return targets[0] -} - -// ToAPIVersionAndKind is a convenience method for satisfying runtime.Object on types that -// do not use TypeMeta. -func (gvk GroupVersionKind) ToAPIVersionAndKind() (string, string) { - if gvk.Empty() { - return "", "" - } - return gvk.GroupVersion().String(), gvk.Kind -} - -// FromAPIVersionAndKind returns a GVK representing the provided fields for types that -// do not use TypeMeta. This method exists to support test types and legacy serializations -// that have a distinct group and kind. -// TODO: further reduce usage of this method. -func FromAPIVersionAndKind(apiVersion, kind string) GroupVersionKind { - if gv, err := ParseGroupVersion(apiVersion); err == nil { - return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind} - } - return GroupVersionKind{Kind: kind} -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/schema/group_version_test.go b/pseudo/k8s/apimachinery/pkg/runtime/schema/group_version_test.go deleted file mode 100644 index 3934bc45a..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/schema/group_version_test.go +++ /dev/null @@ -1,180 +0,0 @@ -/* -Copyright 2015 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 schema - -import ( - "testing" -) - -func TestGroupVersionParse(t *testing.T) { - tests := []struct { - input string - out GroupVersion - err func(error) bool - }{ - {input: "v1", out: GroupVersion{Version: "v1"}}, - {input: "v2", out: GroupVersion{Version: "v2"}}, - {input: "/v1", out: GroupVersion{Version: "v1"}}, - {input: "v1/", out: GroupVersion{Group: "v1"}}, - {input: "/v1/", err: func(err error) bool { return err.Error() == "unexpected GroupVersion string: /v1/" }}, - {input: "v1/a", out: GroupVersion{Group: "v1", Version: "a"}}, - } - for i, test := range tests { - out, err := ParseGroupVersion(test.input) - if test.err == nil && err != nil || err == nil && test.err != nil { - t.Errorf("%d: unexpected error: %v", i, err) - continue - } - if test.err != nil && !test.err(err) { - t.Errorf("%d: unexpected error: %v", i, err) - continue - } - if out != test.out { - t.Errorf("%d: unexpected output: %#v", i, out) - } - } -} - -func TestGroupResourceParse(t *testing.T) { - tests := []struct { - input string - out GroupResource - }{ - {input: "v1", out: GroupResource{Resource: "v1"}}, - {input: ".v1", out: GroupResource{Group: "v1"}}, - {input: "v1.", out: GroupResource{Resource: "v1"}}, - {input: "v1.a", out: GroupResource{Group: "a", Resource: "v1"}}, - {input: "b.v1.a", out: GroupResource{Group: "v1.a", Resource: "b"}}, - } - for i, test := range tests { - out := ParseGroupResource(test.input) - if out != test.out { - t.Errorf("%d: unexpected output: %#v", i, out) - } - } -} - -func TestParseResourceArg(t *testing.T) { - tests := []struct { - input string - gvr *GroupVersionResource - gr GroupResource - }{ - {input: "v1", gr: GroupResource{Resource: "v1"}}, - {input: ".v1", gr: GroupResource{Group: "v1"}}, - {input: "v1.", gr: GroupResource{Resource: "v1"}}, - {input: "v1.a", gr: GroupResource{Group: "a", Resource: "v1"}}, - {input: "b.v1.a", gvr: &GroupVersionResource{Group: "a", Version: "v1", Resource: "b"}, gr: GroupResource{Group: "v1.a", Resource: "b"}}, - } - for i, test := range tests { - gvr, gr := ParseResourceArg(test.input) - if (gvr != nil && test.gvr == nil) || (gvr == nil && test.gvr != nil) || (test.gvr != nil && *gvr != *test.gvr) { - t.Errorf("%d: unexpected output: %#v", i, gvr) - } - if gr != test.gr { - t.Errorf("%d: unexpected output: %#v", i, gr) - } - } -} - -func TestKindForGroupVersionKinds(t *testing.T) { - gvks := GroupVersions{ - GroupVersion{Group: "batch", Version: "v1"}, - GroupVersion{Group: "batch", Version: "v2alpha1"}, - GroupVersion{Group: "policy", Version: "v1beta1"}, - } - cases := []struct { - input []GroupVersionKind - target GroupVersionKind - ok bool - }{ - { - input: []GroupVersionKind{{Group: "batch", Version: "v2alpha1", Kind: "ScheduledJob"}}, - target: GroupVersionKind{Group: "batch", Version: "v2alpha1", Kind: "ScheduledJob"}, - ok: true, - }, - { - input: []GroupVersionKind{{Group: "batch", Version: "v3alpha1", Kind: "CronJob"}}, - target: GroupVersionKind{Group: "batch", Version: "v1", Kind: "CronJob"}, - ok: true, - }, - { - input: []GroupVersionKind{{Group: "policy", Version: "v1beta1", Kind: "PodDisruptionBudget"}}, - target: GroupVersionKind{Group: "policy", Version: "v1beta1", Kind: "PodDisruptionBudget"}, - ok: true, - }, - { - input: []GroupVersionKind{{Group: "apps", Version: "v1alpha1", Kind: "StatefulSet"}}, - target: GroupVersionKind{}, - ok: false, - }, - } - - for i, c := range cases { - target, ok := gvks.KindForGroupVersionKinds(c.input) - if c.target != target { - t.Errorf("%d: unexpected target: %v, expected %v", i, target, c.target) - } - if c.ok != ok { - t.Errorf("%d: unexpected ok: %v, expected %v", i, ok, c.ok) - } - } -} - -func TestParseKindArg(t *testing.T) { - tests := []struct { - input string - gvk *GroupVersionKind - gk GroupKind - }{ - {input: "Pod", gk: GroupKind{Kind: "Pod"}}, - {input: ".apps", gk: GroupKind{Group: "apps"}}, - {input: "Pod.", gk: GroupKind{Kind: "Pod"}}, - {input: "StatefulSet.apps", gk: GroupKind{Group: "apps", Kind: "StatefulSet"}}, - {input: "StatefulSet.v1.apps", gvk: &GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSet"}, gk: GroupKind{Group: "v1.apps", Kind: "StatefulSet"}}, - } - for i, test := range tests { - t.Run(test.input, func(t *testing.T) { - gvk, gk := ParseKindArg(test.input) - if (gvk != nil && test.gvk == nil) || (gvk == nil && test.gvk != nil) || (test.gvk != nil && *gvk != *test.gvk) { - t.Errorf("%d: expected output: %#v, got: %#v", i, test.gvk, gvk) - } - if gk != test.gk { - t.Errorf("%d: expected output: %#v, got: %#v", i, test.gk, gk) - } - }) - } -} - -func TestParseGroupKind(t *testing.T) { - tests := []struct { - input string - out GroupKind - }{ - {input: "Pod", out: GroupKind{Kind: "Pod"}}, - {input: ".StatefulSet", out: GroupKind{Group: "StatefulSet"}}, - {input: "StatefulSet.apps", out: GroupKind{Group: "apps", Kind: "StatefulSet"}}, - } - for i, test := range tests { - t.Run(test.input, func(t *testing.T) { - out := ParseGroupKind(test.input) - if out != test.out { - t.Errorf("%d: expected output: %#v, got: %#v", i, test.out, out) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/schema/interfaces.go b/pseudo/k8s/apimachinery/pkg/runtime/schema/interfaces.go deleted file mode 100644 index b57066845..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/schema/interfaces.go +++ /dev/null @@ -1,40 +0,0 @@ -/* -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 schema - -// All objects that are serialized from a Scheme encode their type information. This interface is used -// by serialization to set type information from the Scheme onto the serialized version of an object. -// For objects that cannot be serialized or have unique requirements, this interface may be a no-op. -type ObjectKind interface { - // SetGroupVersionKind sets or clears the intended serialized kind of an object. Passing kind nil - // should clear the current setting. - SetGroupVersionKind(kind GroupVersionKind) - // GroupVersionKind returns the stored group, version, and kind of an object, or nil if the object does - // not expose or provide these fields. - GroupVersionKind() GroupVersionKind -} - -// EmptyObjectKind implements the ObjectKind interface as a noop -var EmptyObjectKind = emptyObjectKind{} - -type emptyObjectKind struct{} - -// SetGroupVersionKind implements the ObjectKind interface -func (emptyObjectKind) SetGroupVersionKind(gvk GroupVersionKind) {} - -// GroupVersionKind implements the ObjectKind interface -func (emptyObjectKind) GroupVersionKind() GroupVersionKind { return GroupVersionKind{} } diff --git a/pseudo/k8s/apimachinery/pkg/runtime/scheme.go b/pseudo/k8s/apimachinery/pkg/runtime/scheme.go deleted file mode 100644 index 5cf79c3f1..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/scheme.go +++ /dev/null @@ -1,754 +0,0 @@ -/* -Copyright 2014 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 runtime - -import ( - "fmt" - "net/url" - "reflect" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/naming" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -// Scheme defines methods for serializing and deserializing API objects, a type -// registry for converting group, version, and kind information to and from Go -// schemas, and mappings between Go schemas of different versions. A scheme is the -// foundation for a versioned API and versioned configuration over time. -// -// In a Scheme, a Type is a particular Go struct, a Version is a point-in-time -// identifier for a particular representation of that Type (typically backwards -// compatible), a Kind is the unique name for that Type within the Version, and a -// Group identifies a set of Versions, Kinds, and Types that evolve over time. An -// Unversioned Type is one that is not yet formally bound to a type and is promised -// to be backwards compatible (effectively a "v1" of a Type that does not expect -// to break in the future). -// -// Schemes are not expected to change at runtime and are only threadsafe after -// registration is complete. -type Scheme struct { - // versionMap allows one to figure out the go type of an object with - // the given version and name. - gvkToType map[schema.GroupVersionKind]reflect.Type - - // typeToGroupVersion allows one to find metadata for a given go object. - // The reflect.Type we index by should *not* be a pointer. - typeToGVK map[reflect.Type][]schema.GroupVersionKind - - // unversionedTypes are transformed without conversion in ConvertToVersion. - unversionedTypes map[reflect.Type]schema.GroupVersionKind - - // unversionedKinds are the names of kinds that can be created in the context of any group - // or version - // TODO: resolve the status of unversioned types. - unversionedKinds map[string]reflect.Type - - // Map from version and resource to the corresponding func to convert - // resource field labels in that version to internal version. - fieldLabelConversionFuncs map[schema.GroupVersionKind]FieldLabelConversionFunc - - // defaulterFuncs is an array of interfaces to be called with an object to provide defaulting - // the provided object must be a pointer. - defaulterFuncs map[reflect.Type]func(interface{}) - - // converter stores all registered conversion functions. It also has - // default converting behavior. - converter *conversion.Converter - - // versionPriority is a map of groups to ordered lists of versions for those groups indicating the - // default priorities of these versions as registered in the scheme - versionPriority map[string][]string - - // observedVersions keeps track of the order we've seen versions during type registration - observedVersions []schema.GroupVersion - - // schemeName is the name of this scheme. If you don't specify a name, the stack of the NewScheme caller will be used. - // This is useful for error reporting to indicate the origin of the scheme. - schemeName string -} - -// FieldLabelConversionFunc converts a field selector to internal representation. -type FieldLabelConversionFunc func(label, value string) (internalLabel, internalValue string, err error) - -// NewScheme creates a new Scheme. This scheme is pluggable by default. -func NewScheme() *Scheme { - s := &Scheme{ - gvkToType: map[schema.GroupVersionKind]reflect.Type{}, - typeToGVK: map[reflect.Type][]schema.GroupVersionKind{}, - unversionedTypes: map[reflect.Type]schema.GroupVersionKind{}, - unversionedKinds: map[string]reflect.Type{}, - fieldLabelConversionFuncs: map[schema.GroupVersionKind]FieldLabelConversionFunc{}, - defaulterFuncs: map[reflect.Type]func(interface{}){}, - versionPriority: map[string][]string{}, - schemeName: naming.GetNameFromCallsite(internalPackages...), - } - s.converter = conversion.NewConverter(s.nameFunc) - - utilruntime.Must(s.AddConversionFuncs(DefaultEmbeddedConversions()...)) - - // Enable map[string][]string conversions by default - utilruntime.Must(s.AddConversionFuncs(DefaultStringConversions...)) - utilruntime.Must(s.RegisterInputDefaults(&map[string][]string{}, JSONKeyMapper, conversion.AllowDifferentFieldTypeNames|conversion.IgnoreMissingFields)) - utilruntime.Must(s.RegisterInputDefaults(&url.Values{}, JSONKeyMapper, conversion.AllowDifferentFieldTypeNames|conversion.IgnoreMissingFields)) - return s -} - -// nameFunc returns the name of the type that we wish to use to determine when two types attempt -// a conversion. Defaults to the go name of the type if the type is not registered. -func (s *Scheme) nameFunc(t reflect.Type) string { - // find the preferred names for this type - gvks, ok := s.typeToGVK[t] - if !ok { - return t.Name() - } - - for _, gvk := range gvks { - internalGV := gvk.GroupVersion() - internalGV.Version = APIVersionInternal // this is hacky and maybe should be passed in - internalGVK := internalGV.WithKind(gvk.Kind) - - if internalType, exists := s.gvkToType[internalGVK]; exists { - return s.typeToGVK[internalType][0].Kind - } - } - - return gvks[0].Kind -} - -// fromScope gets the input version, desired output version, and desired Scheme -// from a conversion.Scope. -func (s *Scheme) fromScope(scope conversion.Scope) *Scheme { - return s -} - -// Converter allows access to the converter for the scheme -func (s *Scheme) Converter() *conversion.Converter { - return s.converter -} - -// AddUnversionedTypes registers the provided types as "unversioned", which means that they follow special rules. -// Whenever an object of this type is serialized, it is serialized with the provided group version and is not -// converted. Thus unversioned objects are expected to remain backwards compatible forever, as if they were in an -// API group and version that would never be updated. -// -// TODO: there is discussion about removing unversioned and replacing it with objects that are manifest into -// every version with particular schemas. Resolve this method at that point. -func (s *Scheme) AddUnversionedTypes(version schema.GroupVersion, types ...Object) { - s.addObservedVersion(version) - s.AddKnownTypes(version, types...) - for _, obj := range types { - t := reflect.TypeOf(obj).Elem() - gvk := version.WithKind(t.Name()) - s.unversionedTypes[t] = gvk - if old, ok := s.unversionedKinds[gvk.Kind]; ok && t != old { - panic(fmt.Sprintf("%v.%v has already been registered as unversioned kind %q - kind name must be unique in scheme %q", old.PkgPath(), old.Name(), gvk, s.schemeName)) - } - s.unversionedKinds[gvk.Kind] = t - } -} - -// AddKnownTypes registers all types passed in 'types' as being members of version 'version'. -// All objects passed to types should be pointers to structs. The name that go reports for -// the struct becomes the "kind" field when encoding. Version may not be empty - use the -// APIVersionInternal constant if you have a type that does not have a formal version. -func (s *Scheme) AddKnownTypes(gv schema.GroupVersion, types ...Object) { - s.addObservedVersion(gv) - for _, obj := range types { - t := reflect.TypeOf(obj) - if t.Kind() != reflect.Ptr { - panic("All types must be pointers to structs.") - } - t = t.Elem() - s.AddKnownTypeWithName(gv.WithKind(t.Name()), obj) - } -} - -// AddKnownTypeWithName is like AddKnownTypes, but it lets you specify what this type should -// be encoded as. Useful for testing when you don't want to make multiple packages to define -// your structs. Version may not be empty - use the APIVersionInternal constant if you have a -// type that does not have a formal version. -func (s *Scheme) AddKnownTypeWithName(gvk schema.GroupVersionKind, obj Object) { - s.addObservedVersion(gvk.GroupVersion()) - t := reflect.TypeOf(obj) - if len(gvk.Version) == 0 { - panic(fmt.Sprintf("version is required on all types: %s %v", gvk, t)) - } - if t.Kind() != reflect.Ptr { - panic("All types must be pointers to structs.") - } - t = t.Elem() - if t.Kind() != reflect.Struct { - panic("All types must be pointers to structs.") - } - - if oldT, found := s.gvkToType[gvk]; found && oldT != t { - panic(fmt.Sprintf("Double registration of different types for %v: old=%v.%v, new=%v.%v in scheme %q", gvk, oldT.PkgPath(), oldT.Name(), t.PkgPath(), t.Name(), s.schemeName)) - } - - s.gvkToType[gvk] = t - - for _, existingGvk := range s.typeToGVK[t] { - if existingGvk == gvk { - return - } - } - s.typeToGVK[t] = append(s.typeToGVK[t], gvk) -} - -// KnownTypes returns the types known for the given version. -func (s *Scheme) KnownTypes(gv schema.GroupVersion) map[string]reflect.Type { - types := make(map[string]reflect.Type) - for gvk, t := range s.gvkToType { - if gv != gvk.GroupVersion() { - continue - } - - types[gvk.Kind] = t - } - return types -} - -// AllKnownTypes returns the all known types. -func (s *Scheme) AllKnownTypes() map[schema.GroupVersionKind]reflect.Type { - return s.gvkToType -} - -// ObjectKinds returns all possible group,version,kind of the go object, true if the -// object is considered unversioned, or an error if it's not a pointer or is unregistered. -func (s *Scheme) ObjectKinds(obj Object) ([]schema.GroupVersionKind, bool, error) { - // Unstructured objects are always considered to have their declared GVK - if _, ok := obj.(Unstructured); ok { - // we require that the GVK be populated in order to recognize the object - gvk := obj.GetObjectKind().GroupVersionKind() - if len(gvk.Kind) == 0 { - return nil, false, NewMissingKindErr("unstructured object has no kind") - } - if len(gvk.Version) == 0 { - return nil, false, NewMissingVersionErr("unstructured object has no version") - } - return []schema.GroupVersionKind{gvk}, false, nil - } - - v, err := conversion.EnforcePtr(obj) - if err != nil { - return nil, false, err - } - t := v.Type() - - gvks, ok := s.typeToGVK[t] - if !ok { - return nil, false, NewNotRegisteredErrForType(s.schemeName, t) - } - _, unversionedType := s.unversionedTypes[t] - - return gvks, unversionedType, nil -} - -// Recognizes returns true if the scheme is able to handle the provided group,version,kind -// of an object. -func (s *Scheme) Recognizes(gvk schema.GroupVersionKind) bool { - _, exists := s.gvkToType[gvk] - return exists -} - -func (s *Scheme) IsUnversioned(obj Object) (bool, bool) { - v, err := conversion.EnforcePtr(obj) - if err != nil { - return false, false - } - t := v.Type() - - if _, ok := s.typeToGVK[t]; !ok { - return false, false - } - _, ok := s.unversionedTypes[t] - return ok, true -} - -// New returns a new API object of the given version and name, or an error if it hasn't -// been registered. The version and kind fields must be specified. -func (s *Scheme) New(kind schema.GroupVersionKind) (Object, error) { - if t, exists := s.gvkToType[kind]; exists { - return reflect.New(t).Interface().(Object), nil - } - - if t, exists := s.unversionedKinds[kind.Kind]; exists { - return reflect.New(t).Interface().(Object), nil - } - return nil, NewNotRegisteredErrForKind(s.schemeName, kind) -} - -// Log sets a logger on the scheme. For test purposes only -func (s *Scheme) Log(l conversion.DebugLogger) { - s.converter.Debug = l -} - -// AddIgnoredConversionType identifies a pair of types that should be skipped by -// conversion (because the data inside them is explicitly dropped during -// conversion). -func (s *Scheme) AddIgnoredConversionType(from, to interface{}) error { - return s.converter.RegisterIgnoredConversion(from, to) -} - -// AddConversionFuncs adds functions to the list of conversion functions. The given -// functions should know how to convert between two of your API objects, or their -// sub-objects. We deduce how to call these functions from the types of their two -// parameters; see the comment for Converter.Register. -// -// Note that, if you need to copy sub-objects that didn't change, you can use the -// conversion.Scope object that will be passed to your conversion function. -// Additionally, all conversions started by Scheme will set the SrcVersion and -// DestVersion fields on the Meta object. Example: -// -// s.AddConversionFuncs( -// func(in *InternalObject, out *ExternalObject, scope conversion.Scope) error { -// // You can depend on Meta() being non-nil, and this being set to -// // the source version, e.g., "" -// s.Meta().SrcVersion -// // You can depend on this being set to the destination version, -// // e.g., "v1". -// s.Meta().DestVersion -// // Call scope.Convert to copy sub-fields. -// s.Convert(&in.SubFieldThatMoved, &out.NewLocation.NewName, 0) -// return nil -// }, -// ) -// -// (For more detail about conversion functions, see Converter.Register's comment.) -// -// Also note that the default behavior, if you don't add a conversion function, is to -// sanely copy fields that have the same names and same type names. It's OK if the -// destination type has extra fields, but it must not remove any. So you only need to -// add conversion functions for things with changed/removed fields. -func (s *Scheme) AddConversionFuncs(conversionFuncs ...interface{}) error { - for _, f := range conversionFuncs { - if err := s.converter.RegisterConversionFunc(f); err != nil { - return err - } - } - return nil -} - -// AddConversionFunc registers a function that converts between a and b by passing objects of those -// types to the provided function. The function *must* accept objects of a and b - this machinery will not enforce -// any other guarantee. -func (s *Scheme) AddConversionFunc(a, b interface{}, fn conversion.ConversionFunc) error { - return s.converter.RegisterUntypedConversionFunc(a, b, fn) -} - -// AddGeneratedConversionFunc registers a function that converts between a and b by passing objects of those -// types to the provided function. The function *must* accept objects of a and b - this machinery will not enforce -// any other guarantee. -func (s *Scheme) AddGeneratedConversionFunc(a, b interface{}, fn conversion.ConversionFunc) error { - return s.converter.RegisterGeneratedUntypedConversionFunc(a, b, fn) -} - -// AddFieldLabelConversionFunc adds a conversion function to convert field selectors -// of the given kind from the given version to internal version representation. -func (s *Scheme) AddFieldLabelConversionFunc(gvk schema.GroupVersionKind, conversionFunc FieldLabelConversionFunc) error { - s.fieldLabelConversionFuncs[gvk] = conversionFunc - return nil -} - -// RegisterInputDefaults sets the provided field mapping function and field matching -// as the defaults for the provided input type. The fn may be nil, in which case no -// mapping will happen by default. Use this method to register a mechanism for handling -// a specific input type in conversion, such as a map[string]string to structs. -func (s *Scheme) RegisterInputDefaults(in interface{}, fn conversion.FieldMappingFunc, defaultFlags conversion.FieldMatchingFlags) error { - return s.converter.RegisterInputDefaults(in, fn, defaultFlags) -} - -// AddTypeDefaultingFunc registers a function that is passed a pointer to an -// object and can default fields on the object. These functions will be invoked -// when Default() is called. The function will never be called unless the -// defaulted object matches srcType. If this function is invoked twice with the -// same srcType, the fn passed to the later call will be used instead. -func (s *Scheme) AddTypeDefaultingFunc(srcType Object, fn func(interface{})) { - s.defaulterFuncs[reflect.TypeOf(srcType)] = fn -} - -// Default sets defaults on the provided Object. -func (s *Scheme) Default(src Object) { - if fn, ok := s.defaulterFuncs[reflect.TypeOf(src)]; ok { - fn(src) - } -} - -// Convert will attempt to convert in into out. Both must be pointers. For easy -// testing of conversion functions. Returns an error if the conversion isn't -// possible. You can call this with types that haven't been registered (for example, -// a to test conversion of types that are nested within registered types). The -// context interface is passed to the convertor. Convert also supports Unstructured -// types and will convert them intelligently. -func (s *Scheme) Convert(in, out interface{}, context interface{}) error { - unstructuredIn, okIn := in.(Unstructured) - unstructuredOut, okOut := out.(Unstructured) - switch { - case okIn && okOut: - // converting unstructured input to an unstructured output is a straight copy - unstructured - // is a "smart holder" and the contents are passed by reference between the two objects - unstructuredOut.SetUnstructuredContent(unstructuredIn.UnstructuredContent()) - return nil - - case okOut: - // if the output is an unstructured object, use the standard Go type to unstructured - // conversion. The object must not be internal. - obj, ok := in.(Object) - if !ok { - return fmt.Errorf("unable to convert object type %T to Unstructured, must be a runtime.Object", in) - } - gvks, unversioned, err := s.ObjectKinds(obj) - if err != nil { - return err - } - gvk := gvks[0] - - // if no conversion is necessary, convert immediately - if unversioned || gvk.Version != APIVersionInternal { - content, err := DefaultUnstructuredConverter.ToUnstructured(in) - if err != nil { - return err - } - unstructuredOut.SetUnstructuredContent(content) - unstructuredOut.GetObjectKind().SetGroupVersionKind(gvk) - return nil - } - - // attempt to convert the object to an external version first. - target, ok := context.(GroupVersioner) - if !ok { - return fmt.Errorf("unable to convert the internal object type %T to Unstructured without providing a preferred version to convert to", in) - } - // Convert is implicitly unsafe, so we don't need to perform a safe conversion - versioned, err := s.UnsafeConvertToVersion(obj, target) - if err != nil { - return err - } - content, err := DefaultUnstructuredConverter.ToUnstructured(versioned) - if err != nil { - return err - } - unstructuredOut.SetUnstructuredContent(content) - return nil - - case okIn: - // converting an unstructured object to any type is modeled by first converting - // the input to a versioned type, then running standard conversions - typed, err := s.unstructuredToTyped(unstructuredIn) - if err != nil { - return err - } - in = typed - } - - flags, meta := s.generateConvertMeta(in) - meta.Context = context - if flags == 0 { - flags = conversion.AllowDifferentFieldTypeNames - } - return s.converter.Convert(in, out, flags, meta) -} - -// ConvertFieldLabel alters the given field label and value for an kind field selector from -// versioned representation to an unversioned one or returns an error. -func (s *Scheme) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) { - conversionFunc, ok := s.fieldLabelConversionFuncs[gvk] - if !ok { - return DefaultMetaV1FieldSelectorConversion(label, value) - } - return conversionFunc(label, value) -} - -// ConvertToVersion attempts to convert an input object to its matching Kind in another -// version within this scheme. Will return an error if the provided version does not -// contain the inKind (or a mapping by name defined with AddKnownTypeWithName). Will also -// return an error if the conversion does not result in a valid Object being -// returned. Passes target down to the conversion methods as the Context on the scope. -func (s *Scheme) ConvertToVersion(in Object, target GroupVersioner) (Object, error) { - return s.convertToVersion(true, in, target) -} - -// UnsafeConvertToVersion will convert in to the provided target if such a conversion is possible, -// but does not guarantee the output object does not share fields with the input object. It attempts to be as -// efficient as possible when doing conversion. -func (s *Scheme) UnsafeConvertToVersion(in Object, target GroupVersioner) (Object, error) { - return s.convertToVersion(false, in, target) -} - -// convertToVersion handles conversion with an optional copy. -func (s *Scheme) convertToVersion(copy bool, in Object, target GroupVersioner) (Object, error) { - var t reflect.Type - - if u, ok := in.(Unstructured); ok { - typed, err := s.unstructuredToTyped(u) - if err != nil { - return nil, err - } - - in = typed - // unstructuredToTyped returns an Object, which must be a pointer to a struct. - t = reflect.TypeOf(in).Elem() - - } else { - // determine the incoming kinds with as few allocations as possible. - t = reflect.TypeOf(in) - if t.Kind() != reflect.Ptr { - return nil, fmt.Errorf("only pointer types may be converted: %v", t) - } - t = t.Elem() - if t.Kind() != reflect.Struct { - return nil, fmt.Errorf("only pointers to struct types may be converted: %v", t) - } - } - - kinds, ok := s.typeToGVK[t] - if !ok || len(kinds) == 0 { - return nil, NewNotRegisteredErrForType(s.schemeName, t) - } - - gvk, ok := target.KindForGroupVersionKinds(kinds) - if !ok { - // try to see if this type is listed as unversioned (for legacy support) - // TODO: when we move to server API versions, we should completely remove the unversioned concept - if unversionedKind, ok := s.unversionedTypes[t]; ok { - if gvk, ok := target.KindForGroupVersionKinds([]schema.GroupVersionKind{unversionedKind}); ok { - return copyAndSetTargetKind(copy, in, gvk) - } - return copyAndSetTargetKind(copy, in, unversionedKind) - } - return nil, NewNotRegisteredErrForTarget(s.schemeName, t, target) - } - - // target wants to use the existing type, set kind and return (no conversion necessary) - for _, kind := range kinds { - if gvk == kind { - return copyAndSetTargetKind(copy, in, gvk) - } - } - - // type is unversioned, no conversion necessary - if unversionedKind, ok := s.unversionedTypes[t]; ok { - if gvk, ok := target.KindForGroupVersionKinds([]schema.GroupVersionKind{unversionedKind}); ok { - return copyAndSetTargetKind(copy, in, gvk) - } - return copyAndSetTargetKind(copy, in, unversionedKind) - } - - out, err := s.New(gvk) - if err != nil { - return nil, err - } - - if copy { - in = in.DeepCopyObject() - } - - flags, meta := s.generateConvertMeta(in) - meta.Context = target - if err := s.converter.Convert(in, out, flags, meta); err != nil { - return nil, err - } - - setTargetKind(out, gvk) - return out, nil -} - -// unstructuredToTyped attempts to transform an unstructured object to a typed -// object if possible. It will return an error if conversion is not possible, or the versioned -// Go form of the object. Note that this conversion will lose fields. -func (s *Scheme) unstructuredToTyped(in Unstructured) (Object, error) { - // the type must be something we recognize - gvks, _, err := s.ObjectKinds(in) - if err != nil { - return nil, err - } - typed, err := s.New(gvks[0]) - if err != nil { - return nil, err - } - if err := DefaultUnstructuredConverter.FromUnstructured(in.UnstructuredContent(), typed); err != nil { - return nil, fmt.Errorf("unable to convert unstructured object to %v: %v", gvks[0], err) - } - return typed, nil -} - -// generateConvertMeta constructs the meta value we pass to Convert. -func (s *Scheme) generateConvertMeta(in interface{}) (conversion.FieldMatchingFlags, *conversion.Meta) { - return s.converter.DefaultMeta(reflect.TypeOf(in)) -} - -// copyAndSetTargetKind performs a conditional copy before returning the object, or an error if copy was not successful. -func copyAndSetTargetKind(copy bool, obj Object, kind schema.GroupVersionKind) (Object, error) { - if copy { - obj = obj.DeepCopyObject() - } - setTargetKind(obj, kind) - return obj, nil -} - -// setTargetKind sets the kind on an object, taking into account whether the target kind is the internal version. -func setTargetKind(obj Object, kind schema.GroupVersionKind) { - if kind.Version == APIVersionInternal { - // internal is a special case - // TODO: look at removing the need to special case this - obj.GetObjectKind().SetGroupVersionKind(schema.GroupVersionKind{}) - return - } - obj.GetObjectKind().SetGroupVersionKind(kind) -} - -// SetVersionPriority allows specifying a precise order of priority. All specified versions must be in the same group, -// and the specified order overwrites any previously specified order for this group -func (s *Scheme) SetVersionPriority(versions ...schema.GroupVersion) error { - groups := sets.String{} - order := []string{} - for _, version := range versions { - if len(version.Version) == 0 || version.Version == APIVersionInternal { - return fmt.Errorf("internal versions cannot be prioritized: %v", version) - } - - groups.Insert(version.Group) - order = append(order, version.Version) - } - if len(groups) != 1 { - return fmt.Errorf("must register versions for exactly one group: %v", strings.Join(groups.List(), ", ")) - } - - s.versionPriority[groups.List()[0]] = order - return nil -} - -// PrioritizedVersionsForGroup returns versions for a single group in priority order -func (s *Scheme) PrioritizedVersionsForGroup(group string) []schema.GroupVersion { - ret := []schema.GroupVersion{} - for _, version := range s.versionPriority[group] { - ret = append(ret, schema.GroupVersion{Group: group, Version: version}) - } - for _, observedVersion := range s.observedVersions { - if observedVersion.Group != group { - continue - } - found := false - for _, existing := range ret { - if existing == observedVersion { - found = true - break - } - } - if !found { - ret = append(ret, observedVersion) - } - } - - return ret -} - -// PrioritizedVersionsAllGroups returns all known versions in their priority order. Groups are random, but -// versions for a single group are prioritized -func (s *Scheme) PrioritizedVersionsAllGroups() []schema.GroupVersion { - ret := []schema.GroupVersion{} - for group, versions := range s.versionPriority { - for _, version := range versions { - ret = append(ret, schema.GroupVersion{Group: group, Version: version}) - } - } - for _, observedVersion := range s.observedVersions { - found := false - for _, existing := range ret { - if existing == observedVersion { - found = true - break - } - } - if !found { - ret = append(ret, observedVersion) - } - } - return ret -} - -// PreferredVersionAllGroups returns the most preferred version for every group. -// group ordering is random. -func (s *Scheme) PreferredVersionAllGroups() []schema.GroupVersion { - ret := []schema.GroupVersion{} - for group, versions := range s.versionPriority { - for _, version := range versions { - ret = append(ret, schema.GroupVersion{Group: group, Version: version}) - break - } - } - for _, observedVersion := range s.observedVersions { - found := false - for _, existing := range ret { - if existing.Group == observedVersion.Group { - found = true - break - } - } - if !found { - ret = append(ret, observedVersion) - } - } - - return ret -} - -// IsGroupRegistered returns true if types for the group have been registered with the scheme -func (s *Scheme) IsGroupRegistered(group string) bool { - for _, observedVersion := range s.observedVersions { - if observedVersion.Group == group { - return true - } - } - return false -} - -// IsVersionRegistered returns true if types for the version have been registered with the scheme -func (s *Scheme) IsVersionRegistered(version schema.GroupVersion) bool { - for _, observedVersion := range s.observedVersions { - if observedVersion == version { - return true - } - } - - return false -} - -func (s *Scheme) addObservedVersion(version schema.GroupVersion) { - if len(version.Version) == 0 || version.Version == APIVersionInternal { - return - } - for _, observedVersion := range s.observedVersions { - if observedVersion == version { - return - } - } - - s.observedVersions = append(s.observedVersions, version) -} - -func (s *Scheme) Name() string { - return s.schemeName -} - -// internalPackages are packages that ignored when creating a default reflector name. These packages are in the common -// call chains to NewReflector, so they'd be low entropy names for reflectors -var internalPackages = []string{"sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/scheme.go"} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/scheme_builder.go b/pseudo/k8s/apimachinery/pkg/runtime/scheme_builder.go deleted file mode 100644 index 944db4818..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/scheme_builder.go +++ /dev/null @@ -1,48 +0,0 @@ -/* -Copyright 2015 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 runtime - -// SchemeBuilder collects functions that add things to a scheme. It's to allow -// code to compile without explicitly referencing generated types. You should -// declare one in each package that will have generated deep copy or conversion -// functions. -type SchemeBuilder []func(*Scheme) error - -// AddToScheme applies all the stored functions to the scheme. A non-nil error -// indicates that one function failed and the attempt was abandoned. -func (sb *SchemeBuilder) AddToScheme(s *Scheme) error { - for _, f := range *sb { - if err := f(s); err != nil { - return err - } - } - return nil -} - -// Register adds a scheme setup function to the list. -func (sb *SchemeBuilder) Register(funcs ...func(*Scheme) error) { - for _, f := range funcs { - *sb = append(*sb, f) - } -} - -// NewSchemeBuilder calls Register for you. -func NewSchemeBuilder(funcs ...func(*Scheme) error) SchemeBuilder { - var sb SchemeBuilder - sb.Register(funcs...) - return sb -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/scheme_test.go b/pseudo/k8s/apimachinery/pkg/runtime/scheme_test.go deleted file mode 100644 index d59edaf24..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/scheme_test.go +++ /dev/null @@ -1,1021 +0,0 @@ -/* -Copyright 2014 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 runtime_test - -import ( - "fmt" - "reflect" - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - runtimetesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/testing" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" -) - -func TestScheme(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - internalGVK := internalGV.WithKind("Simple") - externalGV := schema.GroupVersion{Group: "test.group", Version: "testExternal"} - externalGVK := externalGV.WithKind("Simple") - - scheme := runtime.NewScheme() - scheme.AddKnownTypeWithName(internalGVK, &runtimetesting.InternalSimple{}) - scheme.AddKnownTypeWithName(externalGVK, &runtimetesting.ExternalSimple{}) - - // If set, would clear TypeMeta during conversion. - //scheme.AddIgnoredConversionType(&TypeMeta{}, &TypeMeta{}) - - // test that scheme is an ObjectTyper - var _ runtime.ObjectTyper = scheme - - internalToExternalCalls := 0 - externalToInternalCalls := 0 - - // Register functions to verify that scope.Meta() gets set correctly. - err := scheme.AddConversionFuncs( - func(in *runtimetesting.InternalSimple, out *runtimetesting.ExternalSimple, scope conversion.Scope) error { - err := scope.Convert(&in.TypeMeta, &out.TypeMeta, 0) - if err != nil { - return err - } - err = scope.Convert(&in.TestString, &out.TestString, 0) - if err != nil { - return err - } - internalToExternalCalls++ - return nil - }, - func(in *runtimetesting.ExternalSimple, out *runtimetesting.InternalSimple, scope conversion.Scope) error { - err := scope.Convert(&in.TypeMeta, &out.TypeMeta, 0) - if err != nil { - return err - } - err = scope.Convert(&in.TestString, &out.TestString, 0) - if err != nil { - return err - } - externalToInternalCalls++ - return nil - }, - ) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - t.Run("Encode, Decode, DecodeInto, and DecodeToVersion", func(t *testing.T) { - simple := &runtimetesting.InternalSimple{ - TestString: "foo", - } - - codecs := serializer.NewCodecFactory(scheme) - codec := codecs.LegacyCodec(externalGV) - info, _ := runtime.SerializerInfoForMediaType(codecs.SupportedMediaTypes(), runtime.ContentTypeJSON) - jsonserializer := info.Serializer - - obj := runtime.Object(simple) - data, err := runtime.Encode(codec, obj) - if err != nil { - t.Fatal(err) - } - - obj2, err := runtime.Decode(codec, data) - if err != nil { - t.Fatal(err) - } - if _, ok := obj2.(*runtimetesting.InternalSimple); !ok { - t.Fatalf("Got wrong type") - } - if e, a := simple, obj2; !reflect.DeepEqual(e, a) { - t.Errorf("Expected:\n %#v,\n Got:\n %#v", e, a) - } - - obj3 := &runtimetesting.InternalSimple{} - if err := runtime.DecodeInto(codec, data, obj3); err != nil { - t.Fatal(err) - } - // clearing TypeMeta is a function of the scheme, which we do not test here (ConvertToVersion - // does not automatically clear TypeMeta anymore). - simple.TypeMeta = runtime.TypeMeta{Kind: "Simple", APIVersion: externalGV.String()} - if e, a := simple, obj3; !reflect.DeepEqual(e, a) { - t.Errorf("Expected:\n %#v,\n Got:\n %#v", e, a) - } - - obj4, err := runtime.Decode(jsonserializer, data) - if err != nil { - t.Fatal(err) - } - if _, ok := obj4.(*runtimetesting.ExternalSimple); !ok { - t.Fatalf("Got wrong type") - } - }) - t.Run("Convert", func(t *testing.T) { - simple := &runtimetesting.InternalSimple{ - TestString: "foo", - } - - external := &runtimetesting.ExternalSimple{} - err = scheme.Convert(simple, external, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if e, a := simple.TestString, external.TestString; e != a { - t.Errorf("Expected %q, got %q", e, a) - } - }) - t.Run("Convert internal to unstructured", func(t *testing.T) { - simple := &runtimetesting.InternalSimple{ - TestString: "foo", - } - - unstructuredObj := &runtimetesting.Unstructured{} - err = scheme.Convert(simple, unstructuredObj, nil) - if err == nil || !strings.Contains(err.Error(), "to Unstructured without providing a preferred version to convert to") { - t.Fatalf("Unexpected non-error: %v", err) - } - err = scheme.Convert(simple, unstructuredObj, externalGV) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if e, a := simple.TestString, unstructuredObj.Object["testString"].(string); e != a { - t.Errorf("Expected %q, got %q", e, a) - } - if e := unstructuredObj.GetObjectKind().GroupVersionKind(); e != externalGVK { - t.Errorf("Unexpected object kind: %#v", e) - } - if gvks, unversioned, err := scheme.ObjectKinds(unstructuredObj); err != nil || gvks[0] != externalGVK || unversioned { - t.Errorf("Scheme did not recognize unversioned: %v, %#v %t", err, gvks, unversioned) - } - }) - t.Run("Convert external to unstructured", func(t *testing.T) { - unstructuredObj := &runtimetesting.Unstructured{} - external := &runtimetesting.ExternalSimple{ - TestString: "foo", - } - - err = scheme.Convert(external, unstructuredObj, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if e, a := external.TestString, unstructuredObj.Object["testString"].(string); e != a { - t.Errorf("Expected %q, got %q", e, a) - } - if e := unstructuredObj.GetObjectKind().GroupVersionKind(); e != externalGVK { - t.Errorf("Unexpected object kind: %#v", e) - } - }) - t.Run("Convert unstructured to unstructured", func(t *testing.T) { - uIn := &runtimetesting.Unstructured{Object: map[string]interface{}{ - "test": []interface{}{"other", "test"}, - }} - uOut := &runtimetesting.Unstructured{} - err = scheme.Convert(uIn, uOut, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if !reflect.DeepEqual(uIn.Object, uOut.Object) { - t.Errorf("Unexpected object contents: %#v", uOut.Object) - } - }) - t.Run("Convert unstructured to structured", func(t *testing.T) { - unstructuredObj := &runtimetesting.Unstructured{ - Object: map[string]interface{}{ - "testString": "bla", - }, - } - unstructuredObj.SetGroupVersionKind(externalGV.WithKind("Simple")) - externalOut := &runtimetesting.ExternalSimple{} - err = scheme.Convert(unstructuredObj, externalOut, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if externalOut.TestString != "bla" { - t.Errorf("Unexpected object contents: %#v", externalOut) - } - }) - t.Run("Encode and Convert should each have caused an increment", func(t *testing.T) { - if e, a := 3, internalToExternalCalls; e != a { - t.Errorf("Expected %v, got %v", e, a) - } - }) - t.Run("DecodeInto and Decode should each have caused an increment because of a conversion", func(t *testing.T) { - if e, a := 2, externalToInternalCalls; e != a { - t.Errorf("Expected %v, got %v", e, a) - } - }) - t.Run("Verify that unstructured types must have V and K set", func(t *testing.T) { - emptyObj := &runtimetesting.Unstructured{Object: make(map[string]interface{})} - if _, _, err := scheme.ObjectKinds(emptyObj); !runtime.IsMissingKind(err) { - t.Errorf("unexpected error: %v", err) - } - emptyObj.SetGroupVersionKind(schema.GroupVersionKind{Kind: "Test"}) - if _, _, err := scheme.ObjectKinds(emptyObj); !runtime.IsMissingVersion(err) { - t.Errorf("unexpected error: %v", err) - } - emptyObj.SetGroupVersionKind(schema.GroupVersionKind{Kind: "Test", Version: "v1"}) - if _, _, err := scheme.ObjectKinds(emptyObj); err != nil { - t.Errorf("unexpected error: %v", err) - } - }) -} - -func TestBadJSONRejection(t *testing.T) { - scheme := runtime.NewScheme() - codecs := serializer.NewCodecFactory(scheme) - info, _ := runtime.SerializerInfoForMediaType(codecs.SupportedMediaTypes(), runtime.ContentTypeJSON) - jsonserializer := info.Serializer - - badJSONMissingKind := []byte(`{ }`) - if _, err := runtime.Decode(jsonserializer, badJSONMissingKind); err == nil { - t.Errorf("Did not reject despite lack of kind field: %s", badJSONMissingKind) - } - badJSONUnknownType := []byte(`{"kind": "bar"}`) - if _, err1 := runtime.Decode(jsonserializer, badJSONUnknownType); err1 == nil { - t.Errorf("Did not reject despite use of unknown type: %s", badJSONUnknownType) - } - /*badJSONKindMismatch := []byte(`{"kind": "Pod"}`) - if err2 := DecodeInto(badJSONKindMismatch, &Node{}); err2 == nil { - t.Errorf("Kind is set but doesn't match the object type: %s", badJSONKindMismatch) - }*/ -} - -func TestExternalToInternalMapping(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "testExternal"} - - scheme := runtime.NewScheme() - scheme.AddKnownTypeWithName(internalGV.WithKind("OptionalExtensionType"), &runtimetesting.InternalOptionalExtensionType{}) - scheme.AddKnownTypeWithName(externalGV.WithKind("OptionalExtensionType"), &runtimetesting.ExternalOptionalExtensionType{}) - - codec := serializer.NewCodecFactory(scheme).LegacyCodec(externalGV) - - table := []struct { - obj runtime.Object - encoded string - }{ - { - &runtimetesting.InternalOptionalExtensionType{Extension: nil}, - `{"kind":"OptionalExtensionType","apiVersion":"` + externalGV.String() + `"}`, - }, - } - - for i, item := range table { - gotDecoded, err := runtime.Decode(codec, []byte(item.encoded)) - if err != nil { - t.Errorf("unexpected error '%v' (%v)", err, item.encoded) - } else if e, a := item.obj, gotDecoded; !reflect.DeepEqual(e, a) { - t.Errorf("%d: unexpected objects:\n%s", i, diff.ObjectGoPrintSideBySide(e, a)) - } - } -} - -func TestExtensionMapping(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "testExternal"} - - scheme := runtime.NewScheme() - scheme.AddKnownTypeWithName(internalGV.WithKind("ExtensionType"), &runtimetesting.InternalExtensionType{}) - scheme.AddKnownTypeWithName(internalGV.WithKind("OptionalExtensionType"), &runtimetesting.InternalOptionalExtensionType{}) - scheme.AddKnownTypeWithName(externalGV.WithKind("ExtensionType"), &runtimetesting.ExternalExtensionType{}) - scheme.AddKnownTypeWithName(externalGV.WithKind("OptionalExtensionType"), &runtimetesting.ExternalOptionalExtensionType{}) - - // register external first when the object is the same in both schemes, so ObjectVersionAndKind reports the - // external version. - scheme.AddKnownTypeWithName(externalGV.WithKind("A"), &runtimetesting.ExtensionA{}) - scheme.AddKnownTypeWithName(externalGV.WithKind("B"), &runtimetesting.ExtensionB{}) - scheme.AddKnownTypeWithName(internalGV.WithKind("A"), &runtimetesting.ExtensionA{}) - scheme.AddKnownTypeWithName(internalGV.WithKind("B"), &runtimetesting.ExtensionB{}) - - codec := serializer.NewCodecFactory(scheme).LegacyCodec(externalGV) - - table := []struct { - obj runtime.Object - expected runtime.Object - encoded string - }{ - { - &runtimetesting.InternalExtensionType{ - Extension: runtime.NewEncodable(codec, &runtimetesting.ExtensionA{TestString: "foo"}), - }, - &runtimetesting.InternalExtensionType{ - Extension: &runtime.Unknown{ - Raw: []byte(`{"apiVersion":"test.group/testExternal","kind":"A","testString":"foo"}`), - ContentType: runtime.ContentTypeJSON, - }, - }, - // apiVersion is set in the serialized object for easier consumption by clients - `{"apiVersion":"` + externalGV.String() + `","kind":"ExtensionType","extension":{"apiVersion":"test.group/testExternal","kind":"A","testString":"foo"}} -`, - }, { - &runtimetesting.InternalExtensionType{Extension: runtime.NewEncodable(codec, &runtimetesting.ExtensionB{TestString: "bar"})}, - &runtimetesting.InternalExtensionType{ - Extension: &runtime.Unknown{ - Raw: []byte(`{"apiVersion":"test.group/testExternal","kind":"B","testString":"bar"}`), - ContentType: runtime.ContentTypeJSON, - }, - }, - // apiVersion is set in the serialized object for easier consumption by clients - `{"apiVersion":"` + externalGV.String() + `","kind":"ExtensionType","extension":{"apiVersion":"test.group/testExternal","kind":"B","testString":"bar"}} -`, - }, { - &runtimetesting.InternalExtensionType{Extension: nil}, - &runtimetesting.InternalExtensionType{ - Extension: nil, - }, - `{"apiVersion":"` + externalGV.String() + `","kind":"ExtensionType","extension":null} -`, - }, - } - - for i, item := range table { - gotEncoded, err := runtime.Encode(codec, item.obj) - if err != nil { - t.Errorf("unexpected error '%v' (%#v)", err, item.obj) - } else if e, a := item.encoded, string(gotEncoded); e != a { - t.Errorf("expected\n%#v\ngot\n%#v\n", e, a) - } - - gotDecoded, err := runtime.Decode(codec, []byte(item.encoded)) - if err != nil { - t.Errorf("unexpected error '%v' (%v)", err, item.encoded) - } else if e, a := item.expected, gotDecoded; !reflect.DeepEqual(e, a) { - t.Errorf("%d: unexpected objects:\n%s", i, diff.ObjectGoPrintSideBySide(e, a)) - } - } -} - -func TestEncode(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - internalGVK := internalGV.WithKind("Simple") - externalGV := schema.GroupVersion{Group: "test.group", Version: "testExternal"} - externalGVK := externalGV.WithKind("Simple") - - scheme := runtime.NewScheme() - scheme.AddKnownTypeWithName(internalGVK, &runtimetesting.InternalSimple{}) - scheme.AddKnownTypeWithName(externalGVK, &runtimetesting.ExternalSimple{}) - - codec := serializer.NewCodecFactory(scheme).LegacyCodec(externalGV) - - test := &runtimetesting.InternalSimple{ - TestString: "I'm the same", - } - obj := runtime.Object(test) - data, err := runtime.Encode(codec, obj) - obj2, gvk, err2 := codec.Decode(data, nil, nil) - if err != nil || err2 != nil { - t.Fatalf("Failure: '%v' '%v'", err, err2) - } - if _, ok := obj2.(*runtimetesting.InternalSimple); !ok { - t.Fatalf("Got wrong type") - } - if !reflect.DeepEqual(obj2, test) { - t.Errorf("Expected:\n %#v,\n Got:\n %#v", test, obj2) - } - if *gvk != externalGVK { - t.Errorf("unexpected gvk returned by decode: %#v", *gvk) - } -} - -func TestUnversionedTypes(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - internalGVK := internalGV.WithKind("Simple") - externalGV := schema.GroupVersion{Group: "test.group", Version: "testExternal"} - externalGVK := externalGV.WithKind("Simple") - otherGV := schema.GroupVersion{Group: "group", Version: "other"} - - scheme := runtime.NewScheme() - scheme.AddUnversionedTypes(externalGV, &runtimetesting.InternalSimple{}) - scheme.AddKnownTypeWithName(internalGVK, &runtimetesting.InternalSimple{}) - scheme.AddKnownTypeWithName(externalGVK, &runtimetesting.ExternalSimple{}) - scheme.AddKnownTypeWithName(otherGV.WithKind("Simple"), &runtimetesting.ExternalSimple{}) - - codec := serializer.NewCodecFactory(scheme).LegacyCodec(externalGV) - - if unv, ok := scheme.IsUnversioned(&runtimetesting.InternalSimple{}); !unv || !ok { - t.Fatalf("type not unversioned and in scheme: %t %t", unv, ok) - } - - kinds, _, err := scheme.ObjectKinds(&runtimetesting.InternalSimple{}) - if err != nil { - t.Fatal(err) - } - kind := kinds[0] - if kind != externalGV.WithKind("InternalSimple") { - t.Fatalf("unexpected: %#v", kind) - } - - test := &runtimetesting.InternalSimple{ - TestString: "I'm the same", - } - obj := runtime.Object(test) - data, err := runtime.Encode(codec, obj) - if err != nil { - t.Fatal(err) - } - obj2, gvk, err := codec.Decode(data, nil, nil) - if err != nil { - t.Fatal(err) - } - if _, ok := obj2.(*runtimetesting.InternalSimple); !ok { - t.Fatalf("Got wrong type") - } - if !reflect.DeepEqual(obj2, test) { - t.Errorf("Expected:\n %#v,\n Got:\n %#v", test, obj2) - } - // object is serialized as an unversioned object (in the group and version it was defined in) - if *gvk != externalGV.WithKind("InternalSimple") { - t.Errorf("unexpected gvk returned by decode: %#v", *gvk) - } - - // when serialized to a different group, the object is kept in its preferred name - codec = serializer.NewCodecFactory(scheme).LegacyCodec(otherGV) - data, err = runtime.Encode(codec, obj) - if err != nil { - t.Fatal(err) - } - if string(data) != `{"apiVersion":"test.group/testExternal","kind":"InternalSimple","testString":"I'm the same"}`+"\n" { - t.Errorf("unexpected data: %s", data) - } -} - -// Returns a new Scheme set up with the test objects. -func GetTestScheme() *runtime.Scheme { - internalGV := schema.GroupVersion{Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Version: "v1"} - alternateExternalGV := schema.GroupVersion{Group: "custom", Version: "v1"} - alternateInternalGV := schema.GroupVersion{Group: "custom", Version: runtime.APIVersionInternal} - differentExternalGV := schema.GroupVersion{Group: "other", Version: "v2"} - - s := runtime.NewScheme() - // Ordinarily, we wouldn't add TestType2, but because this is a test and - // both types are from the same package, we need to get it into the system - // so that converter will match it with ExternalType2. - s.AddKnownTypes(internalGV, &runtimetesting.TestType1{}, &runtimetesting.TestType2{}, &runtimetesting.ExternalInternalSame{}) - s.AddKnownTypes(externalGV, &runtimetesting.ExternalInternalSame{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType1"), &runtimetesting.ExternalTestType1{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType2"), &runtimetesting.ExternalTestType2{}) - s.AddKnownTypeWithName(internalGV.WithKind("TestType3"), &runtimetesting.TestType1{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType3"), &runtimetesting.ExternalTestType1{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType4"), &runtimetesting.ExternalTestType1{}) - s.AddKnownTypeWithName(alternateInternalGV.WithKind("TestType3"), &runtimetesting.TestType1{}) - s.AddKnownTypeWithName(alternateExternalGV.WithKind("TestType3"), &runtimetesting.ExternalTestType1{}) - s.AddKnownTypeWithName(alternateExternalGV.WithKind("TestType5"), &runtimetesting.ExternalTestType1{}) - s.AddKnownTypeWithName(differentExternalGV.WithKind("TestType1"), &runtimetesting.ExternalTestType1{}) - s.AddUnversionedTypes(externalGV, &runtimetesting.UnversionedType{}) - - utilruntime.Must(s.AddConversionFuncs(func(in *runtimetesting.TestType1, out *runtimetesting.ExternalTestType1, s conversion.Scope) error { - out.A = in.A - return nil - })) - return s -} - -func TestKnownTypes(t *testing.T) { - s := GetTestScheme() - if len(s.KnownTypes(schema.GroupVersion{Group: "group", Version: "v2"})) != 0 { - t.Errorf("should have no known types for v2") - } - - types := s.KnownTypes(schema.GroupVersion{Version: "v1"}) - for _, s := range []string{"TestType1", "TestType2", "TestType3", "ExternalInternalSame"} { - if _, ok := types[s]; !ok { - t.Errorf("missing type %q", s) - } - } -} - -func TestAddKnownTypesIdemPotent(t *testing.T) { - s := runtime.NewScheme() - - gv := schema.GroupVersion{Group: "foo", Version: "v1"} - s.AddKnownTypes(gv, &runtimetesting.InternalSimple{}) - s.AddKnownTypes(gv, &runtimetesting.InternalSimple{}) - if len(s.KnownTypes(gv)) != 1 { - t.Errorf("expected only one %v type after double registration", gv) - } - if len(s.AllKnownTypes()) != 1 { - t.Errorf("expected only one type after double registration") - } - - s.AddKnownTypeWithName(gv.WithKind("InternalSimple"), &runtimetesting.InternalSimple{}) - s.AddKnownTypeWithName(gv.WithKind("InternalSimple"), &runtimetesting.InternalSimple{}) - if len(s.KnownTypes(gv)) != 1 { - t.Errorf("expected only one %v type after double registration with custom name", gv) - } - if len(s.AllKnownTypes()) != 1 { - t.Errorf("expected only one type after double registration with custom name") - } - - s.AddUnversionedTypes(gv, &runtimetesting.InternalSimple{}) - s.AddUnversionedTypes(gv, &runtimetesting.InternalSimple{}) - if len(s.KnownTypes(gv)) != 1 { - t.Errorf("expected only one %v type after double registration with custom name", gv) - } - if len(s.AllKnownTypes()) != 1 { - t.Errorf("expected only one type after double registration with custom name") - } - - kinds, _, err := s.ObjectKinds(&runtimetesting.InternalSimple{}) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if len(kinds) != 1 { - t.Errorf("expected only one kind for InternalSimple after double registration") - } -} - -// redefine InternalSimple with the same name, but obviously as a different type than in runtimetesting -type InternalSimple struct { - runtime.TypeMeta `json:",inline"` - TestString string `json:"testString"` -} - -func (s *InternalSimple) DeepCopyObject() runtime.Object { return nil } - -func TestConflictingAddKnownTypes(t *testing.T) { - s := runtime.NewScheme() - gv := schema.GroupVersion{Group: "foo", Version: "v1"} - - panicked := make(chan bool) - go func() { - defer func() { - if recover() != nil { - panicked <- true - } - }() - s.AddKnownTypeWithName(gv.WithKind("InternalSimple"), &runtimetesting.InternalSimple{}) - s.AddKnownTypeWithName(gv.WithKind("InternalSimple"), &runtimetesting.ExternalSimple{}) - panicked <- false - }() - if !<-panicked { - t.Errorf("Expected AddKnownTypesWithName to panic with conflicting type registrations") - } - - go func() { - defer func() { - if recover() != nil { - panicked <- true - } - }() - - s.AddUnversionedTypes(gv, &runtimetesting.InternalSimple{}) - s.AddUnversionedTypes(gv, &InternalSimple{}) - panicked <- false - }() - if !<-panicked { - t.Errorf("Expected AddUnversionedTypes to panic with conflicting type registrations") - } -} - -func TestConvertToVersionBasic(t *testing.T) { - s := GetTestScheme() - tt := &runtimetesting.TestType1{A: "I'm not a pointer object"} - other, err := s.ConvertToVersion(tt, schema.GroupVersion{Version: "v1"}) - if err != nil { - t.Fatalf("Failure: %v", err) - } - converted, ok := other.(*runtimetesting.ExternalTestType1) - if !ok { - t.Fatalf("Got wrong type: %T", other) - } - if tt.A != converted.A { - t.Fatalf("Failed to convert object correctly: %#v", converted) - } -} - -type testGroupVersioner struct { - target schema.GroupVersionKind - ok bool -} - -func (m testGroupVersioner) KindForGroupVersionKinds(kinds []schema.GroupVersionKind) (schema.GroupVersionKind, bool) { - return m.target, m.ok -} - -func TestConvertToVersion(t *testing.T) { - testCases := []struct { - scheme *runtime.Scheme - in runtime.Object - gv runtime.GroupVersioner - same bool - out runtime.Object - errFn func(error) bool - }{ - // errors if the type is not registered in the scheme - { - scheme: GetTestScheme(), - in: &runtimetesting.UnknownType{}, - errFn: func(err error) bool { return err != nil && runtime.IsNotRegisteredError(err) }, - }, - // errors if the group versioner returns no target - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: testGroupVersioner{}, - errFn: func(err error) bool { - return err != nil && strings.Contains(err.Error(), "is not suitable for converting") - }, - }, - // converts to internal - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: schema.GroupVersion{Version: runtime.APIVersionInternal}, - out: &runtimetesting.TestType1{A: "test"}, - }, - // converts from unstructured to internal - { - scheme: GetTestScheme(), - in: &runtimetesting.Unstructured{Object: map[string]interface{}{ - "apiVersion": "custom/v1", - "kind": "TestType3", - "A": "test", - }}, - gv: schema.GroupVersion{Version: runtime.APIVersionInternal}, - out: &runtimetesting.TestType1{A: "test"}, - }, - // converts from unstructured to external - { - scheme: GetTestScheme(), - in: &runtimetesting.Unstructured{Object: map[string]interface{}{ - "apiVersion": "custom/v1", - "kind": "TestType3", - "A": "test", - }}, - gv: schema.GroupVersion{Group: "custom", Version: "v1"}, - out: &runtimetesting.ExternalTestType1{MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "custom/v1", ObjectKind: "TestType3"}, A: "test"}, - }, - // prefers the best match - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: schema.GroupVersions{{Version: runtime.APIVersionInternal}, {Version: "v1"}}, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // unversioned type returned as-is - { - scheme: GetTestScheme(), - in: &runtimetesting.UnversionedType{A: "test"}, - gv: schema.GroupVersions{{Version: "v1"}}, - same: true, - out: &runtimetesting.UnversionedType{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "UnversionedType"}, - A: "test", - }, - }, - // unversioned type returned when not included in the target types - { - scheme: GetTestScheme(), - in: &runtimetesting.UnversionedType{A: "test"}, - gv: schema.GroupVersions{{Group: "other", Version: "v2"}}, - same: true, - out: &runtimetesting.UnversionedType{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "UnversionedType"}, - A: "test", - }, - }, - // detected as already being in the target version - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: schema.GroupVersions{{Version: "v1"}}, - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // detected as already being in the first target version - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: schema.GroupVersions{{Version: "v1"}, {Version: runtime.APIVersionInternal}}, - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // detected as already being in the first target version - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: schema.GroupVersions{{Version: "v1"}, {Version: runtime.APIVersionInternal}}, - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // the external type is registered in multiple groups, versions, and kinds, and can be targeted to all of them (1/3): different kind - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: testGroupVersioner{ok: true, target: schema.GroupVersionKind{Kind: "TestType3", Version: "v1"}}, - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType3"}, - A: "test", - }, - }, - // the external type is registered in multiple groups, versions, and kinds, and can be targeted to all of them (2/3): different gv - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: testGroupVersioner{ok: true, target: schema.GroupVersionKind{Kind: "TestType3", Group: "custom", Version: "v1"}}, - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "custom/v1", ObjectKind: "TestType3"}, - A: "test", - }, - }, - // the external type is registered in multiple groups, versions, and kinds, and can be targeted to all of them (3/3): different gvk - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: testGroupVersioner{ok: true, target: schema.GroupVersionKind{Group: "custom", Version: "v1", Kind: "TestType5"}}, - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "custom/v1", ObjectKind: "TestType5"}, - A: "test", - }, - }, - // multi group versioner recognizes multiple groups and forces the output to a particular version, copies because version differs - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: runtime.NewMultiGroupVersioner(schema.GroupVersion{Group: "other", Version: "v2"}, schema.GroupKind{Group: "custom", Kind: "TestType3"}, schema.GroupKind{Kind: "TestType1"}), - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "other/v2", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // multi group versioner recognizes multiple groups and forces the output to a particular version, copies because version differs - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: runtime.NewMultiGroupVersioner(schema.GroupVersion{Group: "other", Version: "v2"}, schema.GroupKind{Kind: "TestType1"}, schema.GroupKind{Group: "custom", Kind: "TestType3"}), - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "other/v2", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // multi group versioner is unable to find a match when kind AND group don't match (there is no TestType1 kind in group "other", and no kind "TestType5" in the default group) - { - scheme: GetTestScheme(), - in: &runtimetesting.TestType1{A: "test"}, - gv: runtime.NewMultiGroupVersioner(schema.GroupVersion{Group: "custom", Version: "v1"}, schema.GroupKind{Group: "other"}, schema.GroupKind{Kind: "TestType5"}), - errFn: func(err error) bool { - return err != nil && strings.Contains(err.Error(), "is not suitable for converting") - }, - }, - // multi group versioner recognizes multiple groups and forces the output to a particular version, performs no copy - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: runtime.NewMultiGroupVersioner(schema.GroupVersion{Group: "", Version: "v1"}, schema.GroupKind{Group: "custom", Kind: "TestType3"}, schema.GroupKind{Kind: "TestType1"}), - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // multi group versioner recognizes multiple groups and forces the output to a particular version, performs no copy - { - scheme: GetTestScheme(), - in: &runtimetesting.ExternalTestType1{A: "test"}, - gv: runtime.NewMultiGroupVersioner(schema.GroupVersion{Group: "", Version: "v1"}, schema.GroupKind{Kind: "TestType1"}, schema.GroupKind{Group: "custom", Kind: "TestType3"}), - same: true, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType1"}, - A: "test", - }, - }, - // group versioner can choose a particular target kind for a given input when kind is the same across group versions - { - scheme: GetTestScheme(), - in: &runtimetesting.TestType1{A: "test"}, - gv: testGroupVersioner{ok: true, target: schema.GroupVersionKind{Version: "v1", Kind: "TestType3"}}, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "v1", ObjectKind: "TestType3"}, - A: "test", - }, - }, - // group versioner can choose a different kind - { - scheme: GetTestScheme(), - in: &runtimetesting.TestType1{A: "test"}, - gv: testGroupVersioner{ok: true, target: schema.GroupVersionKind{Kind: "TestType5", Group: "custom", Version: "v1"}}, - out: &runtimetesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: runtimetesting.MyWeirdCustomEmbeddedVersionKindField{APIVersion: "custom/v1", ObjectKind: "TestType5"}, - A: "test", - }, - }, - } - for i, test := range testCases { - t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { - original := test.in.DeepCopyObject() - out, err := test.scheme.ConvertToVersion(test.in, test.gv) - switch { - case test.errFn != nil: - if !test.errFn(err) { - t.Fatalf("unexpected error: %v", err) - } - return - case err != nil: - t.Fatalf("unexpected error: %v", err) - } - if out == test.in { - t.Fatalf("ConvertToVersion should always copy out: %#v", out) - } - - if test.same { - if !reflect.DeepEqual(original, test.in) { - t.Fatalf("unexpected mutation of input: %s", diff.ObjectReflectDiff(original, test.in)) - } - if !reflect.DeepEqual(out, test.out) { - t.Fatalf("unexpected out: %s", diff.ObjectReflectDiff(out, test.out)) - } - unsafe, err := test.scheme.UnsafeConvertToVersion(test.in, test.gv) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if !reflect.DeepEqual(unsafe, test.out) { - t.Fatalf("unexpected unsafe: %s", diff.ObjectReflectDiff(unsafe, test.out)) - } - if unsafe != test.in { - t.Fatalf("UnsafeConvertToVersion should return same object: %#v", unsafe) - } - return - } - if !reflect.DeepEqual(out, test.out) { - t.Fatalf("unexpected out: %s", diff.ObjectReflectDiff(out, test.out)) - } - }) - } -} - -func TestConvert(t *testing.T) { - testCases := []struct { - scheme *runtime.Scheme - in runtime.Object - into runtime.Object - gv runtime.GroupVersioner - out runtime.Object - errFn func(error) bool - }{ - // converts from internal to unstructured, given a target version - { - scheme: GetTestScheme(), - in: &runtimetesting.TestType1{A: "test"}, - into: &runtimetesting.Unstructured{}, - out: &runtimetesting.Unstructured{Object: map[string]interface{}{ - "myVersionKey": "custom/v1", - "myKindKey": "TestType3", - "A": "test", - }}, - gv: schema.GroupVersion{Group: "custom", Version: "v1"}, - }, - } - for i, test := range testCases { - t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { - err := test.scheme.Convert(test.in, test.into, test.gv) - switch { - case test.errFn != nil: - if !test.errFn(err) { - t.Fatalf("unexpected error: %v", err) - } - return - case err != nil: - t.Fatalf("unexpected error: %v", err) - return - } - - if !reflect.DeepEqual(test.into, test.out) { - t.Fatalf("unexpected out: %s", diff.ObjectReflectDiff(test.into, test.out)) - } - }) - } -} - -func TestMetaValues(t *testing.T) { - internalGV := schema.GroupVersion{Group: "test.group", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "test.group", Version: "externalVersion"} - - s := runtime.NewScheme() - s.AddKnownTypeWithName(internalGV.WithKind("Simple"), &runtimetesting.InternalSimple{}) - s.AddKnownTypeWithName(externalGV.WithKind("Simple"), &runtimetesting.ExternalSimple{}) - - internalToExternalCalls := 0 - externalToInternalCalls := 0 - - // Register functions to verify that scope.Meta() gets set correctly. - err := s.AddConversionFuncs( - func(in *runtimetesting.InternalSimple, out *runtimetesting.ExternalSimple, scope conversion.Scope) error { - t.Logf("internal -> external") - scope.Convert(&in.TestString, &out.TestString, 0) - internalToExternalCalls++ - return nil - }, - func(in *runtimetesting.ExternalSimple, out *runtimetesting.InternalSimple, scope conversion.Scope) error { - t.Logf("external -> internal") - scope.Convert(&in.TestString, &out.TestString, 0) - externalToInternalCalls++ - return nil - }, - ) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - simple := &runtimetesting.InternalSimple{ - TestString: "foo", - } - - s.Log(t) - - out, err := s.ConvertToVersion(simple, externalGV) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - internal, err := s.ConvertToVersion(out, internalGV) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - if e, a := simple, internal; !reflect.DeepEqual(e, a) { - t.Errorf("Expected:\n %#v,\n Got:\n %#v", e, a) - } - - if e, a := 1, internalToExternalCalls; e != a { - t.Errorf("Expected %v, got %v", e, a) - } - if e, a := 1, externalToInternalCalls; e != a { - t.Errorf("Expected %v, got %v", e, a) - } -} - -func TestMetaValuesUnregisteredConvert(t *testing.T) { - type InternalSimple struct { - Version string `json:"apiVersion,omitempty"` - Kind string `json:"kind,omitempty"` - TestString string `json:"testString"` - } - type ExternalSimple struct { - Version string `json:"apiVersion,omitempty"` - Kind string `json:"kind,omitempty"` - TestString string `json:"testString"` - } - s := runtime.NewScheme() - // We deliberately don't register the types. - - internalToExternalCalls := 0 - - // Register functions to verify that scope.Meta() gets set correctly. - err := s.AddConversionFuncs( - func(in *InternalSimple, out *ExternalSimple, scope conversion.Scope) error { - scope.Convert(&in.TestString, &out.TestString, 0) - internalToExternalCalls++ - return nil - }, - ) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - simple := &InternalSimple{TestString: "foo"} - external := &ExternalSimple{} - err = s.Convert(simple, external, nil) - if err != nil { - t.Fatalf("Unexpected error: %v", err) - } - if e, a := simple.TestString, external.TestString; e != a { - t.Errorf("Expected %v, got %v", e, a) - } - - // Verify that our conversion handler got called. - if e, a := 1, internalToExternalCalls; e != a { - t.Errorf("Expected %v, got %v", e, a) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_factory.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_factory.go deleted file mode 100644 index 6cae4bdbe..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_factory.go +++ /dev/null @@ -1,324 +0,0 @@ -/* -Copyright 2014 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 serializer - -import ( - "mime" - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning" -) - -// serializerExtensions are for serializers that are conditionally compiled in -var serializerExtensions = []func(*runtime.Scheme) (serializerType, bool){} - -type serializerType struct { - AcceptContentTypes []string - ContentType string - FileExtensions []string - // EncodesAsText should be true if this content type can be represented safely in UTF-8 - EncodesAsText bool - - Serializer runtime.Serializer - PrettySerializer runtime.Serializer - - AcceptStreamContentTypes []string - StreamContentType string - - Framer runtime.Framer - StreamSerializer runtime.Serializer -} - -func newSerializersForScheme(scheme *runtime.Scheme, mf json.MetaFactory, options CodecFactoryOptions) []serializerType { - jsonSerializer := json.NewSerializerWithOptions( - mf, scheme, scheme, - json.SerializerOptions{Yaml: false, Pretty: false, Strict: options.Strict}, - ) - jsonSerializerType := serializerType{ - AcceptContentTypes: []string{runtime.ContentTypeJSON}, - ContentType: runtime.ContentTypeJSON, - FileExtensions: []string{"json"}, - EncodesAsText: true, - Serializer: jsonSerializer, - - Framer: json.Framer, - StreamSerializer: jsonSerializer, - } - if options.Pretty { - jsonSerializerType.PrettySerializer = json.NewSerializerWithOptions( - mf, scheme, scheme, - json.SerializerOptions{Yaml: false, Pretty: true, Strict: options.Strict}, - ) - } - - yamlSerializer := json.NewSerializerWithOptions( - mf, scheme, scheme, - json.SerializerOptions{Yaml: true, Pretty: false, Strict: options.Strict}, - ) - protoSerializer := protobuf.NewSerializer(scheme, scheme) - protoRawSerializer := protobuf.NewRawSerializer(scheme, scheme) - - serializers := []serializerType{ - jsonSerializerType, - { - AcceptContentTypes: []string{runtime.ContentTypeYAML}, - ContentType: runtime.ContentTypeYAML, - FileExtensions: []string{"yaml"}, - EncodesAsText: true, - Serializer: yamlSerializer, - }, - { - AcceptContentTypes: []string{runtime.ContentTypeProtobuf}, - ContentType: runtime.ContentTypeProtobuf, - FileExtensions: []string{"pb"}, - Serializer: protoSerializer, - - Framer: protobuf.LengthDelimitedFramer, - StreamSerializer: protoRawSerializer, - }, - } - - for _, fn := range serializerExtensions { - if serializer, ok := fn(scheme); ok { - serializers = append(serializers, serializer) - } - } - return serializers -} - -// CodecFactory provides methods for retrieving codecs and serializers for specific -// versions and content types. -type CodecFactory struct { - scheme *runtime.Scheme - serializers []serializerType - universal runtime.Decoder - accepts []runtime.SerializerInfo - - legacySerializer runtime.Serializer -} - -// CodecFactoryOptions holds the options for configuring CodecFactory behavior -type CodecFactoryOptions struct { - // Strict configures all serializers in strict mode - Strict bool - // Pretty includes a pretty serializer along with the non-pretty one - Pretty bool -} - -// CodecFactoryOptionsMutator takes a pointer to an options struct and then modifies it. -// Functions implementing this type can be passed to the NewCodecFactory() constructor. -type CodecFactoryOptionsMutator func(*CodecFactoryOptions) - -// EnablePretty enables including a pretty serializer along with the non-pretty one -func EnablePretty(options *CodecFactoryOptions) { - options.Pretty = true -} - -// DisablePretty disables including a pretty serializer along with the non-pretty one -func DisablePretty(options *CodecFactoryOptions) { - options.Pretty = false -} - -// EnableStrict enables configuring all serializers in strict mode -func EnableStrict(options *CodecFactoryOptions) { - options.Strict = true -} - -// DisableStrict disables configuring all serializers in strict mode -func DisableStrict(options *CodecFactoryOptions) { - options.Strict = false -} - -// NewCodecFactory provides methods for retrieving serializers for the supported wire formats -// and conversion wrappers to define preferred internal and external versions. In the future, -// as the internal version is used less, callers may instead use a defaulting serializer and -// only convert objects which are shared internally (Status, common API machinery). -// -// Mutators can be passed to change the CodecFactoryOptions before construction of the factory. -// It is recommended to explicitly pass mutators instead of relying on defaults. -// By default, Pretty is enabled -- this is conformant with previously supported behavior. -// -// TODO: allow other codecs to be compiled in? -// TODO: accept a scheme interface -func NewCodecFactory(scheme *runtime.Scheme, mutators ...CodecFactoryOptionsMutator) CodecFactory { - options := CodecFactoryOptions{Pretty: true} - for _, fn := range mutators { - fn(&options) - } - - serializers := newSerializersForScheme(scheme, json.DefaultMetaFactory, options) - return newCodecFactory(scheme, serializers) -} - -// newCodecFactory is a helper for testing that allows a different metafactory to be specified. -func newCodecFactory(scheme *runtime.Scheme, serializers []serializerType) CodecFactory { - decoders := make([]runtime.Decoder, 0, len(serializers)) - var accepts []runtime.SerializerInfo - alreadyAccepted := make(map[string]struct{}) - - var legacySerializer runtime.Serializer - for _, d := range serializers { - decoders = append(decoders, d.Serializer) - for _, mediaType := range d.AcceptContentTypes { - if _, ok := alreadyAccepted[mediaType]; ok { - continue - } - alreadyAccepted[mediaType] = struct{}{} - info := runtime.SerializerInfo{ - MediaType: d.ContentType, - EncodesAsText: d.EncodesAsText, - Serializer: d.Serializer, - PrettySerializer: d.PrettySerializer, - } - - mediaType, _, err := mime.ParseMediaType(info.MediaType) - if err != nil { - panic(err) - } - parts := strings.SplitN(mediaType, "/", 2) - info.MediaTypeType = parts[0] - info.MediaTypeSubType = parts[1] - - if d.StreamSerializer != nil { - info.StreamSerializer = &runtime.StreamSerializerInfo{ - Serializer: d.StreamSerializer, - EncodesAsText: d.EncodesAsText, - Framer: d.Framer, - } - } - accepts = append(accepts, info) - if mediaType == runtime.ContentTypeJSON { - legacySerializer = d.Serializer - } - } - } - if legacySerializer == nil { - legacySerializer = serializers[0].Serializer - } - - return CodecFactory{ - scheme: scheme, - serializers: serializers, - universal: recognizer.NewDecoder(decoders...), - - accepts: accepts, - - legacySerializer: legacySerializer, - } -} - -// WithoutConversion returns a NegotiatedSerializer that performs no conversion, even if the -// caller requests it. -func (f CodecFactory) WithoutConversion() runtime.NegotiatedSerializer { - return WithoutConversionCodecFactory{f} -} - -// SupportedMediaTypes returns the RFC2046 media types that this factory has serializers for. -func (f CodecFactory) SupportedMediaTypes() []runtime.SerializerInfo { - return f.accepts -} - -// LegacyCodec encodes output to a given API versions, and decodes output into the internal form from -// any recognized source. The returned codec will always encode output to JSON. If a type is not -// found in the list of versions an error will be returned. -// -// This method is deprecated - clients and servers should negotiate a serializer by mime-type and -// invoke CodecForVersions. Callers that need only to read data should use UniversalDecoder(). -// -// TODO: make this call exist only in pkg/api, and initialize it with the set of default versions. -// All other callers will be forced to request a Codec directly. -func (f CodecFactory) LegacyCodec(version ...schema.GroupVersion) runtime.Codec { - return versioning.NewDefaultingCodecForScheme(f.scheme, f.legacySerializer, f.universal, schema.GroupVersions(version), runtime.InternalGroupVersioner) -} - -// UniversalDeserializer can convert any stored data recognized by this factory into a Go object that satisfies -// runtime.Object. It does not perform conversion. It does not perform defaulting. -func (f CodecFactory) UniversalDeserializer() runtime.Decoder { - return f.universal -} - -// UniversalDecoder returns a runtime.Decoder capable of decoding all known API objects in all known formats. Used -// by clients that do not need to encode objects but want to deserialize API objects stored on disk. Only decodes -// objects in groups registered with the scheme. The GroupVersions passed may be used to select alternate -// versions of objects to return - by default, runtime.APIVersionInternal is used. If any versions are specified, -// unrecognized groups will be returned in the version they are encoded as (no conversion). This decoder performs -// defaulting. -// -// TODO: the decoder will eventually be removed in favor of dealing with objects in their versioned form -// TODO: only accept a group versioner -func (f CodecFactory) UniversalDecoder(versions ...schema.GroupVersion) runtime.Decoder { - var versioner runtime.GroupVersioner - if len(versions) == 0 { - versioner = runtime.InternalGroupVersioner - } else { - versioner = schema.GroupVersions(versions) - } - return f.CodecForVersions(nil, f.universal, nil, versioner) -} - -// CodecForVersions creates a codec with the provided serializer. If an object is decoded and its group is not in the list, -// it will default to runtime.APIVersionInternal. If encode is not specified for an object's group, the object is not -// converted. If encode or decode are nil, no conversion is performed. -func (f CodecFactory) CodecForVersions(encoder runtime.Encoder, decoder runtime.Decoder, encode runtime.GroupVersioner, decode runtime.GroupVersioner) runtime.Codec { - // TODO: these are for backcompat, remove them in the future - if encode == nil { - encode = runtime.DisabledGroupVersioner - } - if decode == nil { - decode = runtime.InternalGroupVersioner - } - return versioning.NewDefaultingCodecForScheme(f.scheme, encoder, decoder, encode, decode) -} - -// DecoderToVersion returns a decoder that targets the provided group version. -func (f CodecFactory) DecoderToVersion(decoder runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { - return f.CodecForVersions(nil, decoder, nil, gv) -} - -// EncoderForVersion returns an encoder that targets the provided group version. -func (f CodecFactory) EncoderForVersion(encoder runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { - return f.CodecForVersions(encoder, nil, gv, nil) -} - -// WithoutConversionCodecFactory is a CodecFactory that will explicitly ignore requests to perform conversion. -// This wrapper is used while code migrates away from using conversion (such as external clients) and in the future -// will be unnecessary when we change the signature of NegotiatedSerializer. -type WithoutConversionCodecFactory struct { - CodecFactory -} - -// EncoderForVersion returns an encoder that does not do conversion, but does set the group version kind of the object -// when serialized. -func (f WithoutConversionCodecFactory) EncoderForVersion(serializer runtime.Encoder, version runtime.GroupVersioner) runtime.Encoder { - return runtime.WithVersionEncoder{ - Version: version, - Encoder: serializer, - ObjectTyper: f.CodecFactory.scheme, - } -} - -// DecoderToVersion returns an decoder that does not do conversion. -func (f WithoutConversionCodecFactory) DecoderToVersion(serializer runtime.Decoder, _ runtime.GroupVersioner) runtime.Decoder { - return runtime.WithoutVersionDecoder{ - Decoder: serializer, - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_test.go deleted file mode 100644 index 763991c99..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/codec_test.go +++ /dev/null @@ -1,358 +0,0 @@ -/* -Copyright 2014 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 serializer - -import ( - "encoding/json" - "fmt" - "log" - "os" - "reflect" - "strings" - "testing" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/conversion" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - serializertesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" - - fuzz "github.com/google/gofuzz" - flag "github.com/spf13/pflag" - "sigs.k8s.io/yaml" -) - -var fuzzIters = flag.Int("fuzz-iters", 50, "How many fuzzing iterations to do.") - -type testMetaFactory struct{} - -func (testMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error) { - findKind := struct { - APIVersion string `json:"myVersionKey,omitempty"` - ObjectKind string `json:"myKindKey,omitempty"` - }{} - // yaml is a superset of json, so we use it to decode here. That way, - // we understand both. - if err := yaml.Unmarshal(data, &findKind); err != nil { - return nil, fmt.Errorf("couldn't get version/kind: %v", err) - } - gv, err := schema.ParseGroupVersion(findKind.APIVersion) - if err != nil { - return nil, err - } - return &schema.GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: findKind.ObjectKind}, nil -} - -// TestObjectFuzzer can randomly populate all the above objects. -var TestObjectFuzzer = fuzz.New().NilChance(.5).NumElements(1, 100).Funcs( - func(j *serializertesting.MyWeirdCustomEmbeddedVersionKindField, c fuzz.Continue) { - c.FuzzNoCustom(j) - j.APIVersion = "" - j.ObjectKind = "" - }, -) - -// Returns a new Scheme set up with the test objects. -func GetTestScheme() (*runtime.Scheme, runtime.Codec) { - internalGV := schema.GroupVersion{Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Version: "v1"} - externalGV2 := schema.GroupVersion{Version: "v2"} - - s := runtime.NewScheme() - // Ordinarily, we wouldn't add TestType2, but because this is a test and - // both types are from the same package, we need to get it into the system - // so that converter will match it with ExternalType2. - s.AddKnownTypes(internalGV, &serializertesting.TestType1{}, &serializertesting.TestType2{}, &serializertesting.ExternalInternalSame{}) - s.AddKnownTypes(externalGV, &serializertesting.ExternalInternalSame{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType1"), &serializertesting.ExternalTestType1{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType2"), &serializertesting.ExternalTestType2{}) - s.AddKnownTypeWithName(internalGV.WithKind("TestType3"), &serializertesting.TestType1{}) - s.AddKnownTypeWithName(externalGV.WithKind("TestType3"), &serializertesting.ExternalTestType1{}) - s.AddKnownTypeWithName(externalGV2.WithKind("TestType1"), &serializertesting.ExternalTestType1{}) - - s.AddUnversionedTypes(externalGV, &metav1.Status{}) - - cf := newCodecFactory(s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: true})) - codec := cf.LegacyCodec(schema.GroupVersion{Version: "v1"}) - return s, codec -} - -var semantic = conversion.EqualitiesOrDie( - func(a, b serializertesting.MyWeirdCustomEmbeddedVersionKindField) bool { - a.APIVersion, a.ObjectKind = "", "" - b.APIVersion, b.ObjectKind = "", "" - return a == b - }, -) - -func runTest(t *testing.T, source interface{}) { - name := reflect.TypeOf(source).Elem().Name() - TestObjectFuzzer.Fuzz(source) - - _, codec := GetTestScheme() - data, err := runtime.Encode(codec, source.(runtime.Object)) - if err != nil { - t.Errorf("%v: %v (%#v)", name, err, source) - return - } - obj2, err := runtime.Decode(codec, data) - if err != nil { - t.Errorf("%v: %v (%v)", name, err, string(data)) - return - } - if !semantic.DeepEqual(source, obj2) { - t.Errorf("1: %v: diff: %v", name, diff.ObjectGoPrintSideBySide(source, obj2)) - return - } - obj3 := reflect.New(reflect.TypeOf(source).Elem()).Interface() - if err := runtime.DecodeInto(codec, data, obj3.(runtime.Object)); err != nil { - t.Errorf("2: %v: %v", name, err) - return - } - if !semantic.DeepEqual(source, obj3) { - t.Errorf("3: %v: diff: %v", name, diff.ObjectDiff(source, obj3)) - return - } -} - -func TestTypes(t *testing.T) { - table := []interface{}{ - &serializertesting.TestType1{}, - &serializertesting.ExternalInternalSame{}, - } - for _, item := range table { - // Try a few times, since runTest uses random values. - for i := 0; i < *fuzzIters; i++ { - runTest(t, item) - } - } -} - -func TestVersionedEncoding(t *testing.T) { - s, _ := GetTestScheme() - cf := newCodecFactory(s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: true})) - info, _ := runtime.SerializerInfoForMediaType(cf.SupportedMediaTypes(), runtime.ContentTypeJSON) - encoder := info.Serializer - - codec := cf.EncoderForVersion(encoder, schema.GroupVersion{Version: "v2"}) - out, err := runtime.Encode(codec, &serializertesting.TestType1{}) - if err != nil { - t.Fatal(err) - } - if string(out) != `{"myVersionKey":"v2","myKindKey":"TestType1"}`+"\n" { - t.Fatal(string(out)) - } - - codec = cf.EncoderForVersion(encoder, schema.GroupVersion{Version: "v3"}) - _, err = runtime.Encode(codec, &serializertesting.TestType1{}) - if err == nil { - t.Fatal(err) - } - - // unversioned encode with no versions is written directly to wire - codec = cf.EncoderForVersion(encoder, runtime.InternalGroupVersioner) - out, err = runtime.Encode(codec, &serializertesting.TestType1{}) - if err != nil { - t.Fatal(err) - } - if string(out) != `{}`+"\n" { - t.Fatal(string(out)) - } -} - -func TestMultipleNames(t *testing.T) { - _, codec := GetTestScheme() - - obj, _, err := codec.Decode([]byte(`{"myKindKey":"TestType3","myVersionKey":"v1","A":"value"}`), nil, nil) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - internal := obj.(*serializertesting.TestType1) - if internal.A != "value" { - t.Fatalf("unexpected decoded object: %#v", internal) - } - - out, err := runtime.Encode(codec, internal) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if !strings.Contains(string(out), `"myKindKey":"TestType1"`) { - t.Errorf("unexpected encoded output: %s", string(out)) - } -} - -func TestStrictOption(t *testing.T) { - s, _ := GetTestScheme() - duplicateKeys := `{"myKindKey":"TestType3","myVersionKey":"v1","myVersionKey":"v1","A":"value"}` - - strictCodec := newCodecFactory(s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: true})).LegacyCodec() - _, _, err := strictCodec.Decode([]byte(duplicateKeys), nil, nil) - if !runtime.IsStrictDecodingError(err) { - t.Fatalf("StrictDecodingError not returned on object with duplicate keys: %v, type: %v", err, reflect.TypeOf(err)) - } - - nonStrictCodec := newCodecFactory(s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: false})).LegacyCodec() - _, _, err = nonStrictCodec.Decode([]byte(duplicateKeys), nil, nil) - if runtime.IsStrictDecodingError(err) { - t.Fatalf("Non-Strict decoder returned a StrictDecodingError: %v", err) - } -} - -func TestConvertTypesWhenDefaultNamesMatch(t *testing.T) { - internalGV := schema.GroupVersion{Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Version: "v1"} - - s := runtime.NewScheme() - // create two names internally, with TestType1 being preferred - s.AddKnownTypeWithName(internalGV.WithKind("TestType1"), &serializertesting.TestType1{}) - s.AddKnownTypeWithName(internalGV.WithKind("OtherType1"), &serializertesting.TestType1{}) - // create two names externally, with TestType1 being preferred - s.AddKnownTypeWithName(externalGV.WithKind("TestType1"), &serializertesting.ExternalTestType1{}) - s.AddKnownTypeWithName(externalGV.WithKind("OtherType1"), &serializertesting.ExternalTestType1{}) - - ext := &serializertesting.ExternalTestType1{} - ext.APIVersion = "v1" - ext.ObjectKind = "OtherType1" - ext.A = "test" - data, err := json.Marshal(ext) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - expect := &serializertesting.TestType1{A: "test"} - - codec := newCodecFactory( - s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: true}), - ).LegacyCodec(schema.GroupVersion{Version: "v1"}) - - obj, err := runtime.Decode(codec, data) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if !semantic.DeepEqual(expect, obj) { - t.Errorf("unexpected object: %#v", obj) - } - - into := &serializertesting.TestType1{} - if err := runtime.DecodeInto(codec, data, into); err != nil { - t.Fatalf("unexpected error: %v", err) - } - if !semantic.DeepEqual(expect, into) { - t.Errorf("unexpected object: %#v", obj) - } -} - -func TestEncode_Ptr(t *testing.T) { - _, codec := GetTestScheme() - tt := &serializertesting.TestType1{A: "I am a pointer object"} - data, err := runtime.Encode(codec, tt) - obj2, err2 := runtime.Decode(codec, data) - if err != nil || err2 != nil { - t.Fatalf("Failure: '%v' '%v'\n%s", err, err2, data) - } - if _, ok := obj2.(*serializertesting.TestType1); !ok { - t.Fatalf("Got wrong type") - } - if !semantic.DeepEqual(obj2, tt) { - t.Errorf("Expected:\n %#v,\n Got:\n %#v", tt, obj2) - } -} - -func TestBadJSONRejection(t *testing.T) { - log.SetOutput(os.Stderr) - _, codec := GetTestScheme() - badJSONs := [][]byte{ - []byte(`{"myVersionKey":"v1"}`), // Missing kind - []byte(`{"myVersionKey":"v1","myKindKey":"bar"}`), // Unknown kind - []byte(`{"myVersionKey":"bar","myKindKey":"TestType1"}`), // Unknown version - []byte(`{"myKindKey":"TestType1"}`), // Missing version - } - for _, b := range badJSONs { - if _, err := runtime.Decode(codec, b); err == nil { - t.Errorf("Did not reject bad json: %s", string(b)) - } - } - badJSONKindMismatch := []byte(`{"myVersionKey":"v1","myKindKey":"ExternalInternalSame"}`) - if err := runtime.DecodeInto(codec, badJSONKindMismatch, &serializertesting.TestType1{}); err == nil { - t.Errorf("Kind is set but doesn't match the object type: %s", badJSONKindMismatch) - } - if err := runtime.DecodeInto(codec, []byte(``), &serializertesting.TestType1{}); err != nil { - t.Errorf("Should allow empty decode: %v", err) - } - if _, _, err := codec.Decode([]byte(``), &schema.GroupVersionKind{Kind: "ExternalInternalSame"}, nil); err == nil { - t.Errorf("Did not give error for empty data with only kind default") - } - if _, _, err := codec.Decode([]byte(`{"myVersionKey":"v1"}`), &schema.GroupVersionKind{Kind: "ExternalInternalSame"}, nil); err != nil { - t.Errorf("Gave error for version and kind default") - } - if _, _, err := codec.Decode([]byte(`{"myKindKey":"ExternalInternalSame"}`), &schema.GroupVersionKind{Version: "v1"}, nil); err != nil { - t.Errorf("Gave error for version and kind default") - } - if _, _, err := codec.Decode([]byte(``), &schema.GroupVersionKind{Kind: "ExternalInternalSame", Version: "v1"}, nil); err != nil { - t.Errorf("Gave error for version and kind defaulted: %v", err) - } - if _, err := runtime.Decode(codec, []byte(``)); err == nil { - t.Errorf("Did not give error for empty data") - } -} - -// Returns a new Scheme set up with the test objects needed by TestDirectCodec. -func GetDirectCodecTestScheme() *runtime.Scheme { - internalGV := schema.GroupVersion{Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Version: "v1"} - - s := runtime.NewScheme() - // Ordinarily, we wouldn't add TestType2, but because this is a test and - // both types are from the same package, we need to get it into the system - // so that converter will match it with ExternalType2. - s.AddKnownTypes(internalGV, &serializertesting.TestType1{}) - s.AddKnownTypes(externalGV, &serializertesting.ExternalTestType1{}) - - s.AddUnversionedTypes(externalGV, &metav1.Status{}) - return s -} - -func TestDirectCodec(t *testing.T) { - s := GetDirectCodecTestScheme() - cf := newCodecFactory(s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: true})) - info, _ := runtime.SerializerInfoForMediaType(cf.SupportedMediaTypes(), runtime.ContentTypeJSON) - serializer := info.Serializer - df := cf.WithoutConversion() - ignoredGV, err := schema.ParseGroupVersion("ignored group/ignored version") - if err != nil { - t.Fatal(err) - } - directEncoder := df.EncoderForVersion(serializer, ignoredGV) - directDecoder := df.DecoderToVersion(serializer, ignoredGV) - out, err := runtime.Encode(directEncoder, &serializertesting.ExternalTestType1{}) - if err != nil { - t.Fatal(err) - } - if string(out) != `{"myVersionKey":"v1","myKindKey":"ExternalTestType1"}`+"\n" { - t.Fatal(string(out)) - } - a, _, err := directDecoder.Decode(out, nil, nil) - e := &serializertesting.ExternalTestType1{ - MyWeirdCustomEmbeddedVersionKindField: serializertesting.MyWeirdCustomEmbeddedVersionKindField{ - APIVersion: "v1", - ObjectKind: "ExternalTestType1", - }, - } - if !semantic.DeepEqual(e, a) { - t.Fatalf("expect %v, got %v", e, a) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json.go deleted file mode 100644 index f824f8861..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json.go +++ /dev/null @@ -1,388 +0,0 @@ -/* -Copyright 2014 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 json - -import ( - "encoding/json" - "io" - "strconv" - "unsafe" - - jsoniter "github.com/json-iterator/go" - "github.com/modern-go/reflect2" - "sigs.k8s.io/yaml" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/framer" - utilyaml "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/yaml" -) - -// NewSerializer creates a JSON serializer that handles encoding versioned objects into the proper JSON form. If typer -// is not nil, the object has the group, version, and kind fields set. -// Deprecated: use NewSerializerWithOptions instead. -func NewSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper, pretty bool) *Serializer { - return NewSerializerWithOptions(meta, creater, typer, SerializerOptions{false, pretty, false}) -} - -// NewYAMLSerializer creates a YAML serializer that handles encoding versioned objects into the proper YAML form. If typer -// is not nil, the object has the group, version, and kind fields set. This serializer supports only the subset of YAML that -// matches JSON, and will error if constructs are used that do not serialize to JSON. -// Deprecated: use NewSerializerWithOptions instead. -func NewYAMLSerializer(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper) *Serializer { - return NewSerializerWithOptions(meta, creater, typer, SerializerOptions{true, false, false}) -} - -// NewSerializerWithOptions creates a JSON/YAML serializer that handles encoding versioned objects into the proper JSON/YAML -// form. If typer is not nil, the object has the group, version, and kind fields set. Options are copied into the Serializer -// and are immutable. -func NewSerializerWithOptions(meta MetaFactory, creater runtime.ObjectCreater, typer runtime.ObjectTyper, options SerializerOptions) *Serializer { - return &Serializer{ - meta: meta, - creater: creater, - typer: typer, - options: options, - } -} - -// SerializerOptions holds the options which are used to configure a JSON/YAML serializer. -// example: -// (1) To configure a JSON serializer, set `Yaml` to `false`. -// (2) To configure a YAML serializer, set `Yaml` to `true`. -// (3) To configure a strict serializer that can return strictDecodingError, set `Strict` to `true`. -type SerializerOptions struct { - // Yaml: configures the Serializer to work with JSON(false) or YAML(true). - // When `Yaml` is enabled, this serializer only supports the subset of YAML that - // matches JSON, and will error if constructs are used that do not serialize to JSON. - Yaml bool - - // Pretty: configures a JSON enabled Serializer(`Yaml: false`) to produce human-readable output. - // This option is silently ignored when `Yaml` is `true`. - Pretty bool - - // Strict: configures the Serializer to return strictDecodingError's when duplicate fields are present decoding JSON or YAML. - // Note that enabling this option is not as performant as the non-strict variant, and should not be used in fast paths. - Strict bool -} - -type Serializer struct { - meta MetaFactory - options SerializerOptions - creater runtime.ObjectCreater - typer runtime.ObjectTyper -} - -// Serializer implements Serializer -var _ runtime.Serializer = &Serializer{} -var _ recognizer.RecognizingDecoder = &Serializer{} - -type customNumberExtension struct { - jsoniter.DummyExtension -} - -func (cne *customNumberExtension) CreateDecoder(typ reflect2.Type) jsoniter.ValDecoder { - if typ.String() == "interface {}" { - return customNumberDecoder{} - } - return nil -} - -type customNumberDecoder struct { -} - -func (customNumberDecoder) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator) { - switch iter.WhatIsNext() { - case jsoniter.NumberValue: - var number jsoniter.Number - iter.ReadVal(&number) - i64, err := strconv.ParseInt(string(number), 10, 64) - if err == nil { - *(*interface{})(ptr) = i64 - return - } - f64, err := strconv.ParseFloat(string(number), 64) - if err == nil { - *(*interface{})(ptr) = f64 - return - } - iter.ReportError("DecodeNumber", err.Error()) - default: - // init depth, if needed - if iter.Attachment == nil { - iter.Attachment = int(1) - } - - // remember current depth - originalAttachment := iter.Attachment - - // increment depth before descending - if i, ok := iter.Attachment.(int); ok { - iter.Attachment = i + 1 - if i > 10000 { - iter.ReportError("parse", "exceeded max depth") - return - } - } - - *(*interface{})(ptr) = iter.Read() - - // restore current depth - iter.Attachment = originalAttachment - } -} - -// CaseSensitiveJsonIterator returns a jsoniterator API that's configured to be -// case-sensitive when unmarshalling, and otherwise compatible with -// the encoding/json standard library. -func CaseSensitiveJsonIterator() jsoniter.API { - config := jsoniter.Config{ - EscapeHTML: true, - SortMapKeys: true, - ValidateJsonRawMessage: true, - CaseSensitive: true, - }.Froze() - // Force jsoniter to decode number to interface{} via int64/float64, if possible. - config.RegisterExtension(&customNumberExtension{}) - return config -} - -// StrictCaseSensitiveJsonIterator returns a jsoniterator API that's configured to be -// case-sensitive, but also disallows unknown fields when unmarshalling. It is compatible with -// the encoding/json standard library. -func StrictCaseSensitiveJsonIterator() jsoniter.API { - config := jsoniter.Config{ - EscapeHTML: true, - SortMapKeys: true, - ValidateJsonRawMessage: true, - CaseSensitive: true, - DisallowUnknownFields: true, - }.Froze() - // Force jsoniter to decode number to interface{} via int64/float64, if possible. - config.RegisterExtension(&customNumberExtension{}) - return config -} - -// Private copies of jsoniter to try to shield against possible mutations -// from outside. Still does not protect from package level jsoniter.Register*() functions - someone calling them -// in some other library will mess with every usage of the jsoniter library in the whole program. -// See https://github.com/json-iterator/go/issues/265 -var caseSensitiveJsonIterator = CaseSensitiveJsonIterator() -var strictCaseSensitiveJsonIterator = StrictCaseSensitiveJsonIterator() - -// gvkWithDefaults returns group kind and version defaulting from provided default -func gvkWithDefaults(actual, defaultGVK schema.GroupVersionKind) schema.GroupVersionKind { - if len(actual.Kind) == 0 { - actual.Kind = defaultGVK.Kind - } - if len(actual.Version) == 0 && len(actual.Group) == 0 { - actual.Group = defaultGVK.Group - actual.Version = defaultGVK.Version - } - if len(actual.Version) == 0 && actual.Group == defaultGVK.Group { - actual.Version = defaultGVK.Version - } - return actual -} - -// Decode attempts to convert the provided data into YAML or JSON, extract the stored schema kind, apply the provided default gvk, and then -// load that data into an object matching the desired schema kind or the provided into. -// If into is *runtime.Unknown, the raw data will be extracted and no decoding will be performed. -// If into is not registered with the typer, then the object will be straight decoded using normal JSON/YAML unmarshalling. -// If into is provided and the original data is not fully qualified with kind/version/group, the type of the into will be used to alter the returned gvk. -// If into is nil or data's gvk different from into's gvk, it will generate a new Object with ObjectCreater.New(gvk) -// On success or most errors, the method will return the calculated schema kind. -// The gvk calculate priority will be originalData > default gvk > into -func (s *Serializer) Decode(originalData []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - if versioned, ok := into.(*runtime.VersionedObjects); ok { - into = versioned.Last() - obj, actual, err := s.Decode(originalData, gvk, into) - if err != nil { - return nil, actual, err - } - versioned.Objects = []runtime.Object{obj} - return versioned, actual, nil - } - - data := originalData - if s.options.Yaml { - altered, err := yaml.YAMLToJSON(data) - if err != nil { - return nil, nil, err - } - data = altered - } - - actual, err := s.meta.Interpret(data) - if err != nil { - return nil, nil, err - } - - if gvk != nil { - *actual = gvkWithDefaults(*actual, *gvk) - } - - if unk, ok := into.(*runtime.Unknown); ok && unk != nil { - unk.Raw = originalData - unk.ContentType = runtime.ContentTypeJSON - unk.GetObjectKind().SetGroupVersionKind(*actual) - return unk, actual, nil - } - - if into != nil { - _, isUnstructured := into.(runtime.Unstructured) - types, _, err := s.typer.ObjectKinds(into) - switch { - case runtime.IsNotRegisteredError(err), isUnstructured: - if err := caseSensitiveJsonIterator.Unmarshal(data, into); err != nil { - return nil, actual, err - } - return into, actual, nil - case err != nil: - return nil, actual, err - default: - *actual = gvkWithDefaults(*actual, types[0]) - } - } - - if len(actual.Kind) == 0 { - return nil, actual, runtime.NewMissingKindErr(string(originalData)) - } - if len(actual.Version) == 0 { - return nil, actual, runtime.NewMissingVersionErr(string(originalData)) - } - - // use the target if necessary - obj, err := runtime.UseOrCreateObject(s.typer, s.creater, *actual, into) - if err != nil { - return nil, actual, err - } - - if err := caseSensitiveJsonIterator.Unmarshal(data, obj); err != nil { - return nil, actual, err - } - - // If the deserializer is non-strict, return successfully here. - if !s.options.Strict { - return obj, actual, nil - } - - // In strict mode pass the data trough the YAMLToJSONStrict converter. - // This is done to catch duplicate fields regardless of encoding (JSON or YAML). For JSON data, - // the output would equal the input, unless there is a parsing error such as duplicate fields. - // As we know this was successful in the non-strict case, the only error that may be returned here - // is because of the newly-added strictness. hence we know we can return the typed strictDecoderError - // the actual error is that the object contains duplicate fields. - altered, err := yaml.YAMLToJSONStrict(originalData) - if err != nil { - return nil, actual, runtime.NewStrictDecodingError(err.Error(), string(originalData)) - } - // As performance is not an issue for now for the strict deserializer (one has regardless to do - // the unmarshal twice), we take the sanitized, altered data that is guaranteed to have no duplicated - // fields, and unmarshal this into a copy of the already-populated obj. Any error that occurs here is - // due to that a matching field doesn't exist in the object. hence we can return a typed strictDecoderError, - // the actual error is that the object contains unknown field. - strictObj := obj.DeepCopyObject() - if err := strictCaseSensitiveJsonIterator.Unmarshal(altered, strictObj); err != nil { - return nil, actual, runtime.NewStrictDecodingError(err.Error(), string(originalData)) - } - // Always return the same object as the non-strict serializer to avoid any deviations. - return obj, actual, nil -} - -// Encode serializes the provided object to the given writer. -func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error { - if s.options.Yaml { - json, err := caseSensitiveJsonIterator.Marshal(obj) - if err != nil { - return err - } - data, err := yaml.JSONToYAML(json) - if err != nil { - return err - } - _, err = w.Write(data) - return err - } - - if s.options.Pretty { - data, err := caseSensitiveJsonIterator.MarshalIndent(obj, "", " ") - if err != nil { - return err - } - _, err = w.Write(data) - return err - } - encoder := json.NewEncoder(w) - return encoder.Encode(obj) -} - -// RecognizesData implements the RecognizingDecoder interface. -func (s *Serializer) RecognizesData(peek io.Reader) (ok, unknown bool, err error) { - if s.options.Yaml { - // we could potentially look for '---' - return false, true, nil - } - _, _, ok = utilyaml.GuessJSONStream(peek, 2048) - return ok, false, nil -} - -// Framer is the default JSON framing behavior, with newlines delimiting individual objects. -var Framer = jsonFramer{} - -type jsonFramer struct{} - -// NewFrameWriter implements stream framing for this serializer -func (jsonFramer) NewFrameWriter(w io.Writer) io.Writer { - // we can write JSON objects directly to the writer, because they are self-framing - return w -} - -// NewFrameReader implements stream framing for this serializer -func (jsonFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { - // we need to extract the JSON chunks of data to pass to Decode() - return framer.NewJSONFramedReader(r) -} - -// YAMLFramer is the default JSON framing behavior, with newlines delimiting individual objects. -var YAMLFramer = yamlFramer{} - -type yamlFramer struct{} - -// NewFrameWriter implements stream framing for this serializer -func (yamlFramer) NewFrameWriter(w io.Writer) io.Writer { - return yamlFrameWriter{w} -} - -// NewFrameReader implements stream framing for this serializer -func (yamlFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { - // extract the YAML document chunks directly - return utilyaml.NewDocumentDecoder(r) -} - -type yamlFrameWriter struct { - w io.Writer -} - -// Write separates each document with the YAML document separator (`---` followed by line -// break). Writers must write well formed YAML documents (include a final line break). -func (w yamlFrameWriter) Write(data []byte) (n int, err error) { - if _, err := w.w.Write([]byte("---\n")); err != nil { - return 0, err - } - return w.w.Write(data) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_limit_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_limit_test.go deleted file mode 100644 index c0e3f6a5b..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_limit_test.go +++ /dev/null @@ -1,170 +0,0 @@ -/* -Copyright 2019 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 json - -import ( - gojson "encoding/json" - "strings" - "testing" - - utiljson "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" -) - -type testcase struct { - name string - data []byte - checkErr func(t testing.TB, err error) - - benchmark bool -} - -func testcases() []testcase { - // verify we got an error of some kind - nonNilError := func(t testing.TB, err error) { - if err == nil { - t.Errorf("expected error, got none") - } - } - // verify the parse completed, either with success or a max depth error - successOrMaxDepthError := func(t testing.TB, err error) { - if err != nil && !strings.Contains(err.Error(), "max depth") { - t.Errorf("expected success or error containing 'max depth', got: %v", err) - } - } - - return []testcase{ - { - name: "3MB of deeply nested slices", - checkErr: successOrMaxDepthError, - data: []byte(`{"a":` + strings.Repeat(`[`, 3*1024*1024/2) + strings.Repeat(`]`, 3*1024*1024/2) + "}"), - }, - { - name: "3MB of unbalanced nested slices", - checkErr: nonNilError, - data: []byte(`{"a":` + strings.Repeat(`[`, 3*1024*1024)), - }, - { - name: "3MB of deeply nested maps", - checkErr: successOrMaxDepthError, - data: []byte(strings.Repeat(`{"":`, 3*1024*1024/5/2) + "{}" + strings.Repeat(`}`, 3*1024*1024/5/2)), - }, - { - name: "3MB of unbalanced nested maps", - checkErr: nonNilError, - data: []byte(strings.Repeat(`{"":`, 3*1024*1024/5)), - }, - { - name: "3MB of empty slices", - data: []byte(`{"a":[` + strings.Repeat(`[],`, 3*1024*1024/3-2) + `[]]}`), - benchmark: true, - }, - { - name: "3MB of slices", - data: []byte(`{"a":[` + strings.Repeat(`[0],`, 3*1024*1024/4-2) + `[0]]}`), - benchmark: true, - }, - { - name: "3MB of empty maps", - data: []byte(`{"a":[` + strings.Repeat(`{},`, 3*1024*1024/3-2) + `{}]}`), - benchmark: true, - }, - { - name: "3MB of maps", - data: []byte(`{"a":[` + strings.Repeat(`{"a":0},`, 3*1024*1024/8-2) + `{"a":0}]}`), - benchmark: true, - }, - { - name: "3MB of ints", - data: []byte(`{"a":[` + strings.Repeat(`0,`, 3*1024*1024/2-2) + `0]}`), - benchmark: true, - }, - { - name: "3MB of floats", - data: []byte(`{"a":[` + strings.Repeat(`0.0,`, 3*1024*1024/4-2) + `0.0]}`), - benchmark: true, - }, - { - name: "3MB of bools", - data: []byte(`{"a":[` + strings.Repeat(`true,`, 3*1024*1024/5-2) + `true]}`), - benchmark: true, - }, - { - name: "3MB of empty strings", - data: []byte(`{"a":[` + strings.Repeat(`"",`, 3*1024*1024/3-2) + `""]}`), - benchmark: true, - }, - { - name: "3MB of strings", - data: []byte(`{"a":[` + strings.Repeat(`"abcdefghijklmnopqrstuvwxyz012",`, 3*1024*1024/30-2) + `"abcdefghijklmnopqrstuvwxyz012"]}`), - benchmark: true, - }, - { - name: "3MB of nulls", - data: []byte(`{"a":[` + strings.Repeat(`null,`, 3*1024*1024/5-2) + `null]}`), - benchmark: true, - }, - } -} - -var decoders = map[string]func([]byte, interface{}) error{ - "gojson": gojson.Unmarshal, - "utiljson": utiljson.Unmarshal, - "jsoniter": CaseSensitiveJsonIterator().Unmarshal, -} - -func TestJSONLimits(t *testing.T) { - for _, tc := range testcases() { - if tc.benchmark { - continue - } - t.Run(tc.name, func(t *testing.T) { - for decoderName, decoder := range decoders { - t.Run(decoderName, func(t *testing.T) { - v := map[string]interface{}{} - err := decoder(tc.data, &v) - - if tc.checkErr != nil { - tc.checkErr(t, err) - } else if err != nil { - t.Errorf("unexpected error: %v", err) - } - }) - } - }) - } -} - -func BenchmarkJSONLimits(b *testing.B) { - for _, tc := range testcases() { - b.Run(tc.name, func(b *testing.B) { - for decoderName, decoder := range decoders { - b.Run(decoderName, func(b *testing.B) { - for i := 0; i < b.N; i++ { - v := map[string]interface{}{} - err := decoder(tc.data, &v) - - if tc.checkErr != nil { - tc.checkErr(b, err) - } else if err != nil { - b.Errorf("unexpected error: %v", err) - } - } - }) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_test.go deleted file mode 100644 index 4cd5887d5..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/json_test.go +++ /dev/null @@ -1,485 +0,0 @@ -/* -Copyright 2015 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 json_test - -import ( - "fmt" - "reflect" - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -type testDecodable struct { - Other string - Value int `json:"value"` - Spec DecodableSpec `json:"spec"` - Interface interface{} `json:"interface"` - gvk schema.GroupVersionKind -} - -// DecodableSpec has 15 fields. json-iterator treats struct with more than 10 -// fields differently from struct that has less than 10 fields. -type DecodableSpec struct { - A int `json:"A"` - B int `json:"B"` - C int `json:"C"` - D int `json:"D"` - E int `json:"E"` - F int `json:"F"` - G int `json:"G"` - H int `json:"h"` - I int `json:"i"` - J int `json:"j"` - K int `json:"k"` - L int `json:"l"` - M int `json:"m"` - N int `json:"n"` - O int `json:"o"` -} - -func (d *testDecodable) GetObjectKind() schema.ObjectKind { return d } -func (d *testDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk } -func (d *testDecodable) GroupVersionKind() schema.GroupVersionKind { return d.gvk } -func (in *testDecodable) DeepCopyObject() runtime.Object { - if in == nil { - return nil - } - out := new(testDecodable) - in.DeepCopyInto(out) - return out -} -func (in *testDecodable) DeepCopyInto(out *testDecodable) { - *out = *in - out.Other = in.Other - out.Value = in.Value - out.Spec = in.Spec - out.Interface = in.Interface - out.gvk = in.gvk - return -} - -func TestDecode(t *testing.T) { - testCases := []struct { - creater runtime.ObjectCreater - typer runtime.ObjectTyper - yaml bool - pretty bool - strict bool - - data []byte - defaultGVK *schema.GroupVersionKind - into runtime.Object - - errFn func(error) bool - expectedObject runtime.Object - expectedGVK *schema.GroupVersionKind - }{ - { - data: []byte("{}"), - - expectedGVK: &schema.GroupVersionKind{}, - errFn: func(err error) bool { return strings.Contains(err.Error(), "Object 'Kind' is missing in") }, - }, - { - data: []byte("{}"), - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - creater: &mockCreater{err: fmt.Errorf("fake error")}, - - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { return err.Error() == "fake error" }, - }, - { - data: []byte("{}"), - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - creater: &mockCreater{obj: &testDecodable{}}, - expectedObject: &testDecodable{}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - }, - - // version without group is not defaulted - { - data: []byte(`{"apiVersion":"blah"}`), - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - creater: &mockCreater{obj: &testDecodable{}}, - expectedObject: &testDecodable{}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "", Version: "blah"}, - }, - // group without version is defaulted - { - data: []byte(`{"apiVersion":"other/"}`), - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - creater: &mockCreater{obj: &testDecodable{}}, - expectedObject: &testDecodable{}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - }, - // group version, kind is defaulted - { - data: []byte(`{"apiVersion":"other1/blah1"}`), - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - creater: &mockCreater{obj: &testDecodable{}}, - expectedObject: &testDecodable{}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other1", Version: "blah1"}, - }, - // gvk all provided then not defaulted at all - { - data: []byte(`{"kind":"Test","apiVersion":"other/blah"}`), - defaultGVK: &schema.GroupVersionKind{Kind: "Test1", Group: "other1", Version: "blah1"}, - creater: &mockCreater{obj: &testDecodable{}}, - expectedObject: &testDecodable{}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - }, - //gvk defaulting if kind not provided in data and defaultGVK use into's kind - { - data: []byte(`{"apiVersion":"b1/c1"}`), - into: &testDecodable{gvk: schema.GroupVersionKind{Kind: "a3", Group: "b1", Version: "c1"}}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "a3", Group: "b1", Version: "c1"}}, - defaultGVK: nil, - creater: &mockCreater{obj: &testDecodable{}}, - expectedObject: &testDecodable{gvk: schema.GroupVersionKind{Kind: "a3", Group: "b1", Version: "c1"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "a3", Group: "b1", Version: "c1"}, - }, - - // accept runtime.Unknown as into and bypass creator - { - data: []byte(`{}`), - into: &runtime.Unknown{}, - - expectedGVK: &schema.GroupVersionKind{}, - expectedObject: &runtime.Unknown{ - Raw: []byte(`{}`), - ContentType: runtime.ContentTypeJSON, - }, - }, - { - data: []byte(`{"test":"object"}`), - into: &runtime.Unknown{}, - - expectedGVK: &schema.GroupVersionKind{}, - expectedObject: &runtime.Unknown{ - Raw: []byte(`{"test":"object"}`), - ContentType: runtime.ContentTypeJSON, - }, - }, - { - data: []byte(`{"test":"object"}`), - into: &runtime.Unknown{}, - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &runtime.Unknown{ - TypeMeta: runtime.TypeMeta{APIVersion: "other/blah", Kind: "Test"}, - Raw: []byte(`{"test":"object"}`), - ContentType: runtime.ContentTypeJSON, - }, - }, - - // unregistered objects can be decoded into directly - { - data: []byte(`{"kind":"Test","apiVersion":"other/blah","value":1,"Other":"test"}`), - into: &testDecodable{}, - typer: &mockTyper{err: runtime.NewNotRegisteredErrForKind("mock", schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"})}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Other: "test", - Value: 1, - }, - }, - // registered types get defaulted by the into object kind - { - data: []byte(`{"value":1,"Other":"test"}`), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Other: "test", - Value: 1, - }, - }, - // registered types get defaulted by the into object kind even without version, but return an error - { - data: []byte(`{"value":1,"Other":"test"}`), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: ""}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: ""}, - errFn: func(err error) bool { return strings.Contains(err.Error(), "Object 'apiVersion' is missing in") }, - expectedObject: &testDecodable{ - Other: "test", - Value: 1, - }, - }, - - // runtime.VersionedObjects are decoded - { - data: []byte(`{"value":1,"Other":"test"}`), - into: &runtime.VersionedObjects{Objects: []runtime.Object{}}, - creater: &mockCreater{obj: &testDecodable{}}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &runtime.VersionedObjects{ - Objects: []runtime.Object{ - &testDecodable{ - Other: "test", - Value: 1, - }, - }, - }, - }, - // runtime.VersionedObjects with an object are decoded into - { - data: []byte(`{"Other":"test"}`), - into: &runtime.VersionedObjects{Objects: []runtime.Object{&testDecodable{Value: 2}}}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &runtime.VersionedObjects{ - Objects: []runtime.Object{ - &testDecodable{ - Other: "test", - Value: 2, - }, - }, - }, - }, - // Error on invalid number - { - data: []byte(`{"kind":"Test","apiVersion":"other/blah","interface":1e1000}`), - creater: &mockCreater{obj: &testDecodable{}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), `json_test.testDecodable.Interface: DecodeNumber: strconv.ParseFloat: parsing "1e1000": value out of range`) - }, - }, - // Unmarshalling is case-sensitive - { - // "VaLue" should have been "value" - data: []byte(`{"kind":"Test","apiVersion":"other/blah","VaLue":1,"Other":"test"}`), - into: &testDecodable{}, - typer: &mockTyper{err: runtime.NewNotRegisteredErrForKind("mock", schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"})}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Other: "test", - }, - }, - // Unmarshalling is case-sensitive for big struct. - { - // "b" should have been "B", "I" should have been "i" - data: []byte(`{"kind":"Test","apiVersion":"other/blah","spec": {"A": 1, "b": 2, "h": 3, "I": 4}}`), - into: &testDecodable{}, - typer: &mockTyper{err: runtime.NewNotRegisteredErrForKind("mock", schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"})}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Spec: DecodableSpec{A: 1, H: 3}, - }, - }, - // Unknown fields should return an error from the strict JSON deserializer. - { - data: []byte(`{"unknown": 1}`), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), "found unknown field") - }, - strict: true, - }, - // Unknown fields should return an error from the strict YAML deserializer. - { - data: []byte("unknown: 1\n"), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), "found unknown field") - }, - yaml: true, - strict: true, - }, - // Duplicate fields should return an error from the strict JSON deserializer. - { - data: []byte(`{"value":1,"value":1}`), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), "already set in map") - }, - strict: true, - }, - // Duplicate fields should return an error from the strict YAML deserializer. - { - data: []byte("value: 1\n" + - "value: 1\n"), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), "already set in map") - }, - yaml: true, - strict: true, - }, - // Strict JSON decode should fail for untagged fields. - { - data: []byte(`{"kind":"Test","apiVersion":"other/blah","value":1,"Other":"test"}`), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), "found unknown field") - }, - strict: true, - }, - // Strict YAML decode should fail for untagged fields. - { - data: []byte("kind: Test\n" + - "apiVersion: other/blah\n" + - "value: 1\n" + - "Other: test\n"), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - errFn: func(err error) bool { - return strings.Contains(err.Error(), "found unknown field") - }, - yaml: true, - strict: true, - }, - // Strict JSON decode into unregistered objects directly. - { - data: []byte(`{"kind":"Test","apiVersion":"other/blah","value":1,"Other":"test"}`), - into: &testDecodable{}, - typer: &mockTyper{err: runtime.NewNotRegisteredErrForKind("mock", schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"})}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Other: "test", - Value: 1, - }, - strict: true, - }, - // Strict YAML decode into unregistered objects directly. - { - data: []byte("kind: Test\n" + - "apiVersion: other/blah\n" + - "value: 1\n" + - "Other: test\n"), - into: &testDecodable{}, - typer: &mockTyper{err: runtime.NewNotRegisteredErrForKind("mock", schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"})}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Other: "test", - Value: 1, - }, - yaml: true, - strict: true, - }, - // Valid strict JSON decode without GVK. - { - data: []byte(`{"value":1234}`), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Value: 1234, - }, - strict: true, - }, - // Valid strict YAML decode without GVK. - { - data: []byte("value: 1234\n"), - into: &testDecodable{}, - typer: &mockTyper{gvk: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}}, - expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, - expectedObject: &testDecodable{ - Value: 1234, - }, - yaml: true, - strict: true, - }, - } - - for i, test := range testCases { - var s runtime.Serializer - if test.yaml { - s = json.NewSerializerWithOptions(json.DefaultMetaFactory, test.creater, test.typer, json.SerializerOptions{Yaml: test.yaml, Pretty: false, Strict: test.strict}) - } else { - s = json.NewSerializerWithOptions(json.DefaultMetaFactory, test.creater, test.typer, json.SerializerOptions{Yaml: test.yaml, Pretty: test.pretty, Strict: test.strict}) - } - obj, gvk, err := s.Decode([]byte(test.data), test.defaultGVK, test.into) - - if !reflect.DeepEqual(test.expectedGVK, gvk) { - t.Errorf("%d: unexpected GVK: %v", i, gvk) - } - - switch { - case err == nil && test.errFn != nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil && test.errFn == nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil: - if !test.errFn(err) { - t.Errorf("%d: failed: %v", i, err) - } - if obj != nil { - t.Errorf("%d: should have returned nil object", i) - } - continue - } - - if test.into != nil && test.into != obj { - t.Errorf("%d: expected into to be returned: %v", i, obj) - continue - } - - if !reflect.DeepEqual(test.expectedObject, obj) { - t.Errorf("%d: unexpected object:\n%s", i, diff.ObjectGoPrintSideBySide(test.expectedObject, obj)) - } - } -} - -type mockCreater struct { - apiVersion string - kind string - err error - obj runtime.Object -} - -func (c *mockCreater) New(kind schema.GroupVersionKind) (runtime.Object, error) { - c.apiVersion, c.kind = kind.GroupVersion().String(), kind.Kind - return c.obj, c.err -} - -type mockTyper struct { - gvk *schema.GroupVersionKind - err error -} - -func (t *mockTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) { - if t.gvk == nil { - return nil, false, t.err - } - return []schema.GroupVersionKind{*t.gvk}, false, t.err -} - -func (t *mockTyper) Recognizes(_ schema.GroupVersionKind) bool { - return false -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta.go deleted file mode 100644 index cdb15980c..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta.go +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 2014 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 json - -import ( - "encoding/json" - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// MetaFactory is used to store and retrieve the version and kind -// information for JSON objects in a serializer. -type MetaFactory interface { - // Interpret should return the version and kind of the wire-format of - // the object. - Interpret(data []byte) (*schema.GroupVersionKind, error) -} - -// DefaultMetaFactory is a default factory for versioning objects in JSON. The object -// in memory and in the default JSON serialization will use the "kind" and "apiVersion" -// fields. -var DefaultMetaFactory = SimpleMetaFactory{} - -// SimpleMetaFactory provides default methods for retrieving the type and version of objects -// that are identified with an "apiVersion" and "kind" fields in their JSON -// serialization. It may be parameterized with the names of the fields in memory, or an -// optional list of base structs to search for those fields in memory. -type SimpleMetaFactory struct { -} - -// Interpret will return the APIVersion and Kind of the JSON wire-format -// encoding of an object, or an error. -func (SimpleMetaFactory) Interpret(data []byte) (*schema.GroupVersionKind, error) { - findKind := struct { - // +optional - APIVersion string `json:"apiVersion,omitempty"` - // +optional - Kind string `json:"kind,omitempty"` - }{} - if err := json.Unmarshal(data, &findKind); err != nil { - return nil, fmt.Errorf("couldn't get version/kind; json parse error: %v", err) - } - gv, err := schema.ParseGroupVersion(findKind.APIVersion) - if err != nil { - return nil, err - } - return &schema.GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: findKind.Kind}, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta_test.go deleted file mode 100644 index f4e34a22d..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/json/meta_test.go +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2014 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 json - -import "testing" - -func TestSimpleMetaFactoryInterpret(t *testing.T) { - factory := SimpleMetaFactory{} - gvk, err := factory.Interpret([]byte(`{"apiVersion":"1","kind":"object"}`)) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if gvk.Version != "1" || gvk.Kind != "object" { - t.Errorf("unexpected interpret: %#v", gvk) - } - - // no kind or version - gvk, err = factory.Interpret([]byte(`{}`)) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if gvk.Version != "" || gvk.Kind != "" { - t.Errorf("unexpected interpret: %#v", gvk) - } - - // unparsable - gvk, err = factory.Interpret([]byte(`{`)) - if err == nil { - t.Errorf("unexpected non-error") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/negotiated_codec.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/negotiated_codec.go deleted file mode 100644 index 1883d4f49..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/negotiated_codec.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -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 serializer - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// TODO: We should split negotiated serializers that we can change versions on from those we can change -// serialization formats on -type negotiatedSerializerWrapper struct { - info runtime.SerializerInfo -} - -func NegotiatedSerializerWrapper(info runtime.SerializerInfo) runtime.NegotiatedSerializer { - return &negotiatedSerializerWrapper{info} -} - -func (n *negotiatedSerializerWrapper) SupportedMediaTypes() []runtime.SerializerInfo { - return []runtime.SerializerInfo{n.info} -} - -func (n *negotiatedSerializerWrapper) EncoderForVersion(e runtime.Encoder, _ runtime.GroupVersioner) runtime.Encoder { - return e -} - -func (n *negotiatedSerializerWrapper) DecoderToVersion(d runtime.Decoder, _gv runtime.GroupVersioner) runtime.Decoder { - return d -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/doc.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/doc.go deleted file mode 100644 index 80c9f6b84..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2015 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 protobuf provides a Kubernetes serializer for the protobuf format. -package protobuf // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf" diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go deleted file mode 100644 index e64f0093a..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go +++ /dev/null @@ -1,475 +0,0 @@ -/* -Copyright 2015 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 protobuf - -import ( - "bytes" - "fmt" - "io" - "net/http" - "reflect" - - "github.com/gogo/protobuf/proto" - - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/framer" -) - -var ( - // protoEncodingPrefix serves as a magic number for an encoded protobuf message on this serializer. All - // proto messages serialized by this schema will be preceded by the bytes 0x6b 0x38 0x73, with the fourth - // byte being reserved for the encoding style. The only encoding style defined is 0x00, which means that - // the rest of the byte stream is a message of type k8s.io.kubernetes.pkg.runtime.Unknown (proto2). - // - // See sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/generated.proto for details of the runtime.Unknown message. - // - // This encoding scheme is experimental, and is subject to change at any time. - protoEncodingPrefix = []byte{0x6b, 0x38, 0x73, 0x00} -) - -type errNotMarshalable struct { - t reflect.Type -} - -func (e errNotMarshalable) Error() string { - return fmt.Sprintf("object %v does not implement the protobuf marshalling interface and cannot be encoded to a protobuf message", e.t) -} - -func (e errNotMarshalable) Status() metav1.Status { - return metav1.Status{ - Status: metav1.StatusFailure, - Code: http.StatusNotAcceptable, - Reason: metav1.StatusReason("NotAcceptable"), - Message: e.Error(), - } -} - -func IsNotMarshalable(err error) bool { - _, ok := err.(errNotMarshalable) - return err != nil && ok -} - -// NewSerializer creates a Protobuf serializer that handles encoding versioned objects into the proper wire form. If a typer -// is passed, the encoded object will have group, version, and kind fields set. If typer is nil, the objects will be written -// as-is (any type info passed with the object will be used). -func NewSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper) *Serializer { - return &Serializer{ - prefix: protoEncodingPrefix, - creater: creater, - typer: typer, - } -} - -type Serializer struct { - prefix []byte - creater runtime.ObjectCreater - typer runtime.ObjectTyper -} - -var _ runtime.Serializer = &Serializer{} -var _ recognizer.RecognizingDecoder = &Serializer{} - -// Decode attempts to convert the provided data into a protobuf message, extract the stored schema kind, apply the provided default -// gvk, and then load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, -// the raw data will be extracted and no decoding will be performed. If into is not registered with the typer, then the object will -// be straight decoded using normal protobuf unmarshalling (the MarshalTo interface). If into is provided and the original data is -// not fully qualified with kind/version/group, the type of the into will be used to alter the returned gvk. On success or most -// errors, the method will return the calculated schema kind. -func (s *Serializer) Decode(originalData []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - if versioned, ok := into.(*runtime.VersionedObjects); ok { - into = versioned.Last() - obj, actual, err := s.Decode(originalData, gvk, into) - if err != nil { - return nil, actual, err - } - // the last item in versioned becomes into, so if versioned was not originally empty we reset the object - // array so the first position is the decoded object and the second position is the outermost object. - // if there were no objects in the versioned list passed to us, only add ourselves. - if into != nil && into != obj { - versioned.Objects = []runtime.Object{obj, into} - } else { - versioned.Objects = []runtime.Object{obj} - } - return versioned, actual, err - } - - prefixLen := len(s.prefix) - switch { - case len(originalData) == 0: - // TODO: treat like decoding {} from JSON with defaulting - return nil, nil, fmt.Errorf("empty data") - case len(originalData) < prefixLen || !bytes.Equal(s.prefix, originalData[:prefixLen]): - return nil, nil, fmt.Errorf("provided data does not appear to be a protobuf message, expected prefix %v", s.prefix) - case len(originalData) == prefixLen: - // TODO: treat like decoding {} from JSON with defaulting - return nil, nil, fmt.Errorf("empty body") - } - - data := originalData[prefixLen:] - unk := runtime.Unknown{} - if err := unk.Unmarshal(data); err != nil { - return nil, nil, err - } - - actual := unk.GroupVersionKind() - copyKindDefaults(&actual, gvk) - - if intoUnknown, ok := into.(*runtime.Unknown); ok && intoUnknown != nil { - *intoUnknown = unk - if ok, _, _ := s.RecognizesData(bytes.NewBuffer(unk.Raw)); ok { - intoUnknown.ContentType = runtime.ContentTypeProtobuf - } - return intoUnknown, &actual, nil - } - - if into != nil { - types, _, err := s.typer.ObjectKinds(into) - switch { - case runtime.IsNotRegisteredError(err): - pb, ok := into.(proto.Message) - if !ok { - return nil, &actual, errNotMarshalable{reflect.TypeOf(into)} - } - if err := proto.Unmarshal(unk.Raw, pb); err != nil { - return nil, &actual, err - } - return into, &actual, nil - case err != nil: - return nil, &actual, err - default: - copyKindDefaults(&actual, &types[0]) - // if the result of defaulting did not set a version or group, ensure that at least group is set - // (copyKindDefaults will not assign Group if version is already set). This guarantees that the group - // of into is set if there is no better information from the caller or object. - if len(actual.Version) == 0 && len(actual.Group) == 0 { - actual.Group = types[0].Group - } - } - } - - if len(actual.Kind) == 0 { - return nil, &actual, runtime.NewMissingKindErr(fmt.Sprintf("%#v", unk.TypeMeta)) - } - if len(actual.Version) == 0 { - return nil, &actual, runtime.NewMissingVersionErr(fmt.Sprintf("%#v", unk.TypeMeta)) - } - - return unmarshalToObject(s.typer, s.creater, &actual, into, unk.Raw) -} - -// Encode serializes the provided object to the given writer. -func (s *Serializer) Encode(obj runtime.Object, w io.Writer) error { - prefixSize := uint64(len(s.prefix)) - - var unk runtime.Unknown - switch t := obj.(type) { - case *runtime.Unknown: - estimatedSize := prefixSize + uint64(t.Size()) - data := make([]byte, estimatedSize) - i, err := t.MarshalTo(data[prefixSize:]) - if err != nil { - return err - } - copy(data, s.prefix) - _, err = w.Write(data[:prefixSize+uint64(i)]) - return err - default: - kind := obj.GetObjectKind().GroupVersionKind() - unk = runtime.Unknown{ - TypeMeta: runtime.TypeMeta{ - Kind: kind.Kind, - APIVersion: kind.GroupVersion().String(), - }, - } - } - - switch t := obj.(type) { - case bufferedMarshaller: - // this path performs a single allocation during write but requires the caller to implement - // the more efficient Size and MarshalToSizedBuffer methods - encodedSize := uint64(t.Size()) - estimatedSize := prefixSize + estimateUnknownSize(&unk, encodedSize) - data := make([]byte, estimatedSize) - - i, err := unk.NestedMarshalTo(data[prefixSize:], t, encodedSize) - if err != nil { - return err - } - - copy(data, s.prefix) - - _, err = w.Write(data[:prefixSize+uint64(i)]) - return err - - case proto.Marshaler: - // this path performs extra allocations - data, err := t.Marshal() - if err != nil { - return err - } - unk.Raw = data - - estimatedSize := prefixSize + uint64(unk.Size()) - data = make([]byte, estimatedSize) - - i, err := unk.MarshalTo(data[prefixSize:]) - if err != nil { - return err - } - - copy(data, s.prefix) - - _, err = w.Write(data[:prefixSize+uint64(i)]) - return err - - default: - // TODO: marshal with a different content type and serializer (JSON for third party objects) - return errNotMarshalable{reflect.TypeOf(obj)} - } -} - -// RecognizesData implements the RecognizingDecoder interface. -func (s *Serializer) RecognizesData(peek io.Reader) (bool, bool, error) { - prefix := make([]byte, 4) - n, err := peek.Read(prefix) - if err != nil { - if err == io.EOF { - return false, false, nil - } - return false, false, err - } - if n != 4 { - return false, false, nil - } - return bytes.Equal(s.prefix, prefix), false, nil -} - -// copyKindDefaults defaults dst to the value in src if dst does not have a value set. -func copyKindDefaults(dst, src *schema.GroupVersionKind) { - if src == nil { - return - } - // apply kind and version defaulting from provided default - if len(dst.Kind) == 0 { - dst.Kind = src.Kind - } - if len(dst.Version) == 0 && len(src.Version) > 0 { - dst.Group = src.Group - dst.Version = src.Version - } -} - -// bufferedMarshaller describes a more efficient marshalling interface that can avoid allocating multiple -// byte buffers by pre-calculating the size of the final buffer needed. -type bufferedMarshaller interface { - proto.Sizer - runtime.ProtobufMarshaller -} - -// Like bufferedMarshaller, but is able to marshal backwards, which is more efficient since it doesn't call Size() as frequently. -type bufferedReverseMarshaller interface { - proto.Sizer - runtime.ProtobufReverseMarshaller -} - -// estimateUnknownSize returns the expected bytes consumed by a given runtime.Unknown -// object with a nil RawJSON struct and the expected size of the provided buffer. The -// returned size will not be correct if RawJSOn is set on unk. -func estimateUnknownSize(unk *runtime.Unknown, byteSize uint64) uint64 { - size := uint64(unk.Size()) - // protobuf uses 1 byte for the tag, a varint for the length of the array (at most 8 bytes - uint64 - here), - // and the size of the array. - size += 1 + 8 + byteSize - return size -} - -// NewRawSerializer creates a Protobuf serializer that handles encoding versioned objects into the proper wire form. If typer -// is not nil, the object has the group, version, and kind fields set. This serializer does not provide type information for the -// encoded object, and thus is not self describing (callers must know what type is being described in order to decode). -// -// This encoding scheme is experimental, and is subject to change at any time. -func NewRawSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper) *RawSerializer { - return &RawSerializer{ - creater: creater, - typer: typer, - } -} - -// RawSerializer encodes and decodes objects without adding a runtime.Unknown wrapper (objects are encoded without identifying -// type). -type RawSerializer struct { - creater runtime.ObjectCreater - typer runtime.ObjectTyper -} - -var _ runtime.Serializer = &RawSerializer{} - -// Decode attempts to convert the provided data into a protobuf message, extract the stored schema kind, apply the provided default -// gvk, and then load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, -// the raw data will be extracted and no decoding will be performed. If into is not registered with the typer, then the object will -// be straight decoded using normal protobuf unmarshalling (the MarshalTo interface). If into is provided and the original data is -// not fully qualified with kind/version/group, the type of the into will be used to alter the returned gvk. On success or most -// errors, the method will return the calculated schema kind. -func (s *RawSerializer) Decode(originalData []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - if into == nil { - return nil, nil, fmt.Errorf("this serializer requires an object to decode into: %#v", s) - } - - if versioned, ok := into.(*runtime.VersionedObjects); ok { - into = versioned.Last() - obj, actual, err := s.Decode(originalData, gvk, into) - if err != nil { - return nil, actual, err - } - if into != nil && into != obj { - versioned.Objects = []runtime.Object{obj, into} - } else { - versioned.Objects = []runtime.Object{obj} - } - return versioned, actual, err - } - - if len(originalData) == 0 { - // TODO: treat like decoding {} from JSON with defaulting - return nil, nil, fmt.Errorf("empty data") - } - data := originalData - - actual := &schema.GroupVersionKind{} - copyKindDefaults(actual, gvk) - - if intoUnknown, ok := into.(*runtime.Unknown); ok && intoUnknown != nil { - intoUnknown.Raw = data - intoUnknown.ContentEncoding = "" - intoUnknown.ContentType = runtime.ContentTypeProtobuf - intoUnknown.SetGroupVersionKind(*actual) - return intoUnknown, actual, nil - } - - types, _, err := s.typer.ObjectKinds(into) - switch { - case runtime.IsNotRegisteredError(err): - pb, ok := into.(proto.Message) - if !ok { - return nil, actual, errNotMarshalable{reflect.TypeOf(into)} - } - if err := proto.Unmarshal(data, pb); err != nil { - return nil, actual, err - } - return into, actual, nil - case err != nil: - return nil, actual, err - default: - copyKindDefaults(actual, &types[0]) - // if the result of defaulting did not set a version or group, ensure that at least group is set - // (copyKindDefaults will not assign Group if version is already set). This guarantees that the group - // of into is set if there is no better information from the caller or object. - if len(actual.Version) == 0 && len(actual.Group) == 0 { - actual.Group = types[0].Group - } - } - - if len(actual.Kind) == 0 { - return nil, actual, runtime.NewMissingKindErr("") - } - if len(actual.Version) == 0 { - return nil, actual, runtime.NewMissingVersionErr("") - } - - return unmarshalToObject(s.typer, s.creater, actual, into, data) -} - -// unmarshalToObject is the common code between decode in the raw and normal serializer. -func unmarshalToObject(typer runtime.ObjectTyper, creater runtime.ObjectCreater, actual *schema.GroupVersionKind, into runtime.Object, data []byte) (runtime.Object, *schema.GroupVersionKind, error) { - // use the target if necessary - obj, err := runtime.UseOrCreateObject(typer, creater, *actual, into) - if err != nil { - return nil, actual, err - } - - pb, ok := obj.(proto.Message) - if !ok { - return nil, actual, errNotMarshalable{reflect.TypeOf(obj)} - } - if err := proto.Unmarshal(data, pb); err != nil { - return nil, actual, err - } - if actual != nil { - obj.GetObjectKind().SetGroupVersionKind(*actual) - } - return obj, actual, nil -} - -// Encode serializes the provided object to the given writer. Overrides is ignored. -func (s *RawSerializer) Encode(obj runtime.Object, w io.Writer) error { - switch t := obj.(type) { - case bufferedReverseMarshaller: - // this path performs a single allocation during write but requires the caller to implement - // the more efficient Size and MarshalToSizedBuffer methods - encodedSize := uint64(t.Size()) - data := make([]byte, encodedSize) - - n, err := t.MarshalToSizedBuffer(data) - if err != nil { - return err - } - _, err = w.Write(data[:n]) - return err - - case bufferedMarshaller: - // this path performs a single allocation during write but requires the caller to implement - // the more efficient Size and MarshalTo methods - encodedSize := uint64(t.Size()) - data := make([]byte, encodedSize) - - n, err := t.MarshalTo(data) - if err != nil { - return err - } - _, err = w.Write(data[:n]) - return err - - case proto.Marshaler: - // this path performs extra allocations - data, err := t.Marshal() - if err != nil { - return err - } - _, err = w.Write(data) - return err - - default: - return errNotMarshalable{reflect.TypeOf(obj)} - } -} - -var LengthDelimitedFramer = lengthDelimitedFramer{} - -type lengthDelimitedFramer struct{} - -// NewFrameWriter implements stream framing for this serializer -func (lengthDelimitedFramer) NewFrameWriter(w io.Writer) io.Writer { - return framer.NewLengthDelimitedFrameWriter(w) -} - -// NewFrameReader implements stream framing for this serializer -func (lengthDelimitedFramer) NewFrameReader(r io.ReadCloser) io.ReadCloser { - return framer.NewLengthDelimitedFrameReader(r) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go deleted file mode 100644 index bb2d2e7fc..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/recognizer.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 2014 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 recognizer - -import ( - "bufio" - "bytes" - "fmt" - "io" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -type RecognizingDecoder interface { - runtime.Decoder - // RecognizesData should return true if the input provided in the provided reader - // belongs to this decoder, or an error if the data could not be read or is ambiguous. - // Unknown is true if the data could not be determined to match the decoder type. - // Decoders should assume that they can read as much of peek as they need (as the caller - // provides) and may return unknown if the data provided is not sufficient to make a - // a determination. When peek returns EOF that may mean the end of the input or the - // end of buffered input - recognizers should return the best guess at that time. - RecognizesData(peek io.Reader) (ok, unknown bool, err error) -} - -// NewDecoder creates a decoder that will attempt multiple decoders in an order defined -// by: -// -// 1. The decoder implements RecognizingDecoder and identifies the data -// 2. All other decoders, and any decoder that returned true for unknown. -// -// The order passed to the constructor is preserved within those priorities. -func NewDecoder(decoders ...runtime.Decoder) runtime.Decoder { - return &decoder{ - decoders: decoders, - } -} - -type decoder struct { - decoders []runtime.Decoder -} - -var _ RecognizingDecoder = &decoder{} - -func (d *decoder) RecognizesData(peek io.Reader) (bool, bool, error) { - var ( - lastErr error - anyUnknown bool - ) - data, _ := bufio.NewReaderSize(peek, 1024).Peek(1024) - for _, r := range d.decoders { - switch t := r.(type) { - case RecognizingDecoder: - ok, unknown, err := t.RecognizesData(bytes.NewBuffer(data)) - if err != nil { - lastErr = err - continue - } - anyUnknown = anyUnknown || unknown - if !ok { - continue - } - return true, false, nil - } - } - return false, anyUnknown, lastErr -} - -func (d *decoder) Decode(data []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - var ( - lastErr error - skipped []runtime.Decoder - ) - - // try recognizers, record any decoders we need to give a chance later - for _, r := range d.decoders { - switch t := r.(type) { - case RecognizingDecoder: - buf := bytes.NewBuffer(data) - ok, unknown, err := t.RecognizesData(buf) - if err != nil { - lastErr = err - continue - } - if unknown { - skipped = append(skipped, t) - continue - } - if !ok { - continue - } - return r.Decode(data, gvk, into) - default: - skipped = append(skipped, t) - } - } - - // try recognizers that returned unknown or didn't recognize their data - for _, r := range skipped { - out, actual, err := r.Decode(data, gvk, into) - if err != nil { - lastErr = err - continue - } - return out, actual, nil - } - - if lastErr == nil { - lastErr = fmt.Errorf("no serialization format matched the provided data") - } - return nil, nil, lastErr -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/testing/recognizer_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/testing/recognizer_test.go deleted file mode 100644 index ee4db227f..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer/testing/recognizer_test.go +++ /dev/null @@ -1,61 +0,0 @@ -/* -Copyright 2014 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 testing - -import ( - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/recognizer" -) - -type A struct{} - -func (A) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } -func (a A) DeepCopyObject() runtime.Object { - return a -} - -func TestRecognizer(t *testing.T) { - s := runtime.NewScheme() - s.AddKnownTypes(schema.GroupVersion{Version: "v1"}, &A{}) - d := recognizer.NewDecoder( - json.NewSerializer(json.DefaultMetaFactory, s, s, false), - json.NewYAMLSerializer(json.DefaultMetaFactory, s, s), - ) - out, _, err := d.Decode([]byte(` -kind: A -apiVersion: v1 -`), nil, nil) - if err != nil { - t.Fatal(err) - } - t.Logf("%#v", out) - - out, _, err = d.Decode([]byte(` -{ - "kind":"A", - "apiVersion":"v1" -} -`), nil, nil) - if err != nil { - t.Fatal(err) - } - t.Logf("%#v", out) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/sparse_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/sparse_test.go deleted file mode 100644 index a319f588f..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/sparse_test.go +++ /dev/null @@ -1,91 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 serializer - -import ( - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -type FakeV1Obj struct { - metav1.TypeMeta - metav1.ObjectMeta -} - -func (*FakeV1Obj) DeepCopyObject() runtime.Object { - panic("not supported") -} - -type FakeV2DifferentObj struct { - metav1.TypeMeta - metav1.ObjectMeta -} - -func (*FakeV2DifferentObj) DeepCopyObject() runtime.Object { - panic("not supported") -} -func TestSparse(t *testing.T) { - v1 := schema.GroupVersion{Group: "mygroup", Version: "v1"} - v2 := schema.GroupVersion{Group: "mygroup", Version: "v2"} - - scheme := runtime.NewScheme() - scheme.AddKnownTypes(v1, &FakeV1Obj{}) - scheme.AddKnownTypes(v2, &FakeV2DifferentObj{}) - codecs := NewCodecFactory(scheme) - - srcObj1 := &FakeV1Obj{ObjectMeta: metav1.ObjectMeta{Name: "foo"}} - srcObj2 := &FakeV2DifferentObj{ObjectMeta: metav1.ObjectMeta{Name: "foo"}} - - encoder := codecs.LegacyCodec(v2, v1) - decoder := codecs.UniversalDecoder(v2, v1) - - srcObj1Bytes, err := runtime.Encode(encoder, srcObj1) - if err != nil { - t.Fatal(err) - } - t.Log(string(srcObj1Bytes)) - srcObj2Bytes, err := runtime.Encode(encoder, srcObj2) - if err != nil { - t.Fatal(err) - } - t.Log(string(srcObj2Bytes)) - - uncastDstObj1, err := runtime.Decode(decoder, srcObj1Bytes) - if err != nil { - t.Fatal(err) - } - uncastDstObj2, err := runtime.Decode(decoder, srcObj2Bytes) - if err != nil { - t.Fatal(err) - } - - // clear typemeta - uncastDstObj1.(*FakeV1Obj).TypeMeta = metav1.TypeMeta{} - uncastDstObj2.(*FakeV2DifferentObj).TypeMeta = metav1.TypeMeta{} - - if !equality.Semantic.DeepEqual(srcObj1, uncastDstObj1) { - t.Fatal(diff.ObjectDiff(srcObj1, uncastDstObj1)) - } - if !equality.Semantic.DeepEqual(srcObj2, uncastDstObj2) { - t.Fatal(diff.ObjectDiff(srcObj2, uncastDstObj2)) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming.go deleted file mode 100644 index 76770fe46..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming.go +++ /dev/null @@ -1,137 +0,0 @@ -/* -Copyright 2015 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 streaming implements encoder and decoder for streams -// of runtime.Objects over io.Writer/Readers. -package streaming - -import ( - "bytes" - "fmt" - "io" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// Encoder is a runtime.Encoder on a stream. -type Encoder interface { - // Encode will write the provided object to the stream or return an error. It obeys the same - // contract as runtime.VersionedEncoder. - Encode(obj runtime.Object) error -} - -// Decoder is a runtime.Decoder from a stream. -type Decoder interface { - // Decode will return io.EOF when no more objects are available. - Decode(defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) - // Close closes the underlying stream. - Close() error -} - -// Serializer is a factory for creating encoders and decoders that work over streams. -type Serializer interface { - NewEncoder(w io.Writer) Encoder - NewDecoder(r io.ReadCloser) Decoder -} - -type decoder struct { - reader io.ReadCloser - decoder runtime.Decoder - buf []byte - maxBytes int - resetRead bool -} - -// NewDecoder creates a streaming decoder that reads object chunks from r and decodes them with d. -// The reader is expected to return ErrShortRead if the provided buffer is not large enough to read -// an entire object. -func NewDecoder(r io.ReadCloser, d runtime.Decoder) Decoder { - return &decoder{ - reader: r, - decoder: d, - buf: make([]byte, 1024), - maxBytes: 16 * 1024 * 1024, - } -} - -var ErrObjectTooLarge = fmt.Errorf("object to decode was longer than maximum allowed size") - -// Decode reads the next object from the stream and decodes it. -func (d *decoder) Decode(defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - base := 0 - for { - n, err := d.reader.Read(d.buf[base:]) - if err == io.ErrShortBuffer { - if n == 0 { - return nil, nil, fmt.Errorf("got short buffer with n=0, base=%d, cap=%d", base, cap(d.buf)) - } - if d.resetRead { - continue - } - // double the buffer size up to maxBytes - if len(d.buf) < d.maxBytes { - base += n - d.buf = append(d.buf, make([]byte, len(d.buf))...) - continue - } - // must read the rest of the frame (until we stop getting ErrShortBuffer) - d.resetRead = true - base = 0 - return nil, nil, ErrObjectTooLarge - } - if err != nil { - return nil, nil, err - } - if d.resetRead { - // now that we have drained the large read, continue - d.resetRead = false - continue - } - base += n - break - } - return d.decoder.Decode(d.buf[:base], defaults, into) -} - -func (d *decoder) Close() error { - return d.reader.Close() -} - -type encoder struct { - writer io.Writer - encoder runtime.Encoder - buf *bytes.Buffer -} - -// NewEncoder returns a new streaming encoder. -func NewEncoder(w io.Writer, e runtime.Encoder) Encoder { - return &encoder{ - writer: w, - encoder: e, - buf: &bytes.Buffer{}, - } -} - -// Encode writes the provided object to the nested writer. -func (e *encoder) Encode(obj runtime.Object) error { - if err := e.encoder.Encode(obj, e.buf); err != nil { - return err - } - _, err := e.writer.Write(e.buf.Bytes()) - e.buf.Reset() - return err -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go deleted file mode 100644 index 8389c3210..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/streaming/streaming_test.go +++ /dev/null @@ -1,84 +0,0 @@ -/* -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 streaming - -import ( - "bytes" - "io" - "io/ioutil" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/framer" -) - -type fakeDecoder struct { - got []byte - obj runtime.Object - err error -} - -func (d *fakeDecoder) Decode(data []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - d.got = data - return d.obj, nil, d.err -} - -func TestEmptyDecoder(t *testing.T) { - buf := bytes.NewBuffer([]byte{}) - d := &fakeDecoder{} - _, _, err := NewDecoder(ioutil.NopCloser(buf), d).Decode(nil, nil) - if err != io.EOF { - t.Fatal(err) - } -} - -func TestDecoder(t *testing.T) { - frames := [][]byte{ - make([]byte, 1025), - make([]byte, 1024*5), - make([]byte, 1024*1024*17), - make([]byte, 1025), - } - pr, pw := io.Pipe() - fw := framer.NewLengthDelimitedFrameWriter(pw) - go func() { - for i := range frames { - fw.Write(frames[i]) - } - pw.Close() - }() - - r := framer.NewLengthDelimitedFrameReader(pr) - d := &fakeDecoder{} - dec := NewDecoder(r, d) - if _, _, err := dec.Decode(nil, nil); err != nil || !bytes.Equal(d.got, frames[0]) { - t.Fatalf("unexpected %v %v", err, len(d.got)) - } - if _, _, err := dec.Decode(nil, nil); err != nil || !bytes.Equal(d.got, frames[1]) { - t.Fatalf("unexpected %v %v", err, len(d.got)) - } - if _, _, err := dec.Decode(nil, nil); err != ErrObjectTooLarge || !bytes.Equal(d.got, frames[1]) { - t.Fatalf("unexpected %v %v", err, len(d.got)) - } - if _, _, err := dec.Decode(nil, nil); err != nil || !bytes.Equal(d.got, frames[3]) { - t.Fatalf("unexpected %v %v", err, len(d.got)) - } - if _, _, err := dec.Decode(nil, nil); err != io.EOF { - t.Fatalf("unexpected %v %v", err, len(d.got)) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/doc.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/doc.go deleted file mode 100644 index 15573da18..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2014 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 - -package testing // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing" diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/types.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/types.go deleted file mode 100644 index 47a14d59a..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/types.go +++ /dev/null @@ -1,114 +0,0 @@ -/* -Copyright 2014 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 testing - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// Test a weird version/kind embedding format. -// +k8s:deepcopy-gen=false -type MyWeirdCustomEmbeddedVersionKindField struct { - ID string `json:"ID,omitempty"` - APIVersion string `json:"myVersionKey,omitempty"` - ObjectKind string `json:"myKindKey,omitempty"` - Z string `json:"Z,omitempty"` - Y uint64 `json:"Y,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type TestType1 struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` - C int8 `json:"C,omitempty"` - D int16 `json:"D,omitempty"` - E int32 `json:"E,omitempty"` - F int64 `json:"F,omitempty"` - G uint `json:"G,omitempty"` - H uint8 `json:"H,omitempty"` - I uint16 `json:"I,omitempty"` - J uint32 `json:"J,omitempty"` - K uint64 `json:"K,omitempty"` - L bool `json:"L,omitempty"` - M map[string]int `json:"M,omitempty"` - N map[string]TestType2 `json:"N,omitempty"` - O *TestType2 `json:"O,omitempty"` - P []TestType2 `json:"Q,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type TestType2 struct { - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalTestType2 struct { - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalTestType1 struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` - C int8 `json:"C,omitempty"` - D int16 `json:"D,omitempty"` - E int32 `json:"E,omitempty"` - F int64 `json:"F,omitempty"` - G uint `json:"G,omitempty"` - H uint8 `json:"H,omitempty"` - I uint16 `json:"I,omitempty"` - J uint32 `json:"J,omitempty"` - K uint64 `json:"K,omitempty"` - L bool `json:"L,omitempty"` - M map[string]int `json:"M,omitempty"` - N map[string]ExternalTestType2 `json:"N,omitempty"` - O *ExternalTestType2 `json:"O,omitempty"` - P []ExternalTestType2 `json:"Q,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalInternalSame struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A TestType2 `json:"A,omitempty"` -} - -func (obj *MyWeirdCustomEmbeddedVersionKindField) GetObjectKind() schema.ObjectKind { return obj } -func (obj *MyWeirdCustomEmbeddedVersionKindField) SetGroupVersionKind(gvk schema.GroupVersionKind) { - obj.APIVersion, obj.ObjectKind = gvk.ToAPIVersionAndKind() -} -func (obj *MyWeirdCustomEmbeddedVersionKindField) GroupVersionKind() schema.GroupVersionKind { - return schema.FromAPIVersionAndKind(obj.APIVersion, obj.ObjectKind) -} - -func (obj *ExternalInternalSame) GetObjectKind() schema.ObjectKind { - return &obj.MyWeirdCustomEmbeddedVersionKindField -} - -func (obj *TestType1) GetObjectKind() schema.ObjectKind { - return &obj.MyWeirdCustomEmbeddedVersionKindField -} - -func (obj *ExternalTestType1) GetObjectKind() schema.ObjectKind { - return &obj.MyWeirdCustomEmbeddedVersionKindField -} - -func (obj *TestType2) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } -func (obj *ExternalTestType2) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/zz_generated.deepcopy.go deleted file mode 100644 index 3d88db462..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/testing/zz_generated.deepcopy.go +++ /dev/null @@ -1,197 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package testing - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalInternalSame) DeepCopyInto(out *ExternalInternalSame) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - out.A = in.A - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalInternalSame. -func (in *ExternalInternalSame) DeepCopy() *ExternalInternalSame { - if in == nil { - return nil - } - out := new(ExternalInternalSame) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalInternalSame) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalTestType1) DeepCopyInto(out *ExternalTestType1) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - if in.M != nil { - in, out := &in.M, &out.M - *out = make(map[string]int, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.N != nil { - in, out := &in.N, &out.N - *out = make(map[string]ExternalTestType2, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.O != nil { - in, out := &in.O, &out.O - *out = new(ExternalTestType2) - **out = **in - } - if in.P != nil { - in, out := &in.P, &out.P - *out = make([]ExternalTestType2, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalTestType1. -func (in *ExternalTestType1) DeepCopy() *ExternalTestType1 { - if in == nil { - return nil - } - out := new(ExternalTestType1) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalTestType1) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalTestType2) DeepCopyInto(out *ExternalTestType2) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalTestType2. -func (in *ExternalTestType2) DeepCopy() *ExternalTestType2 { - if in == nil { - return nil - } - out := new(ExternalTestType2) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalTestType2) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TestType1) DeepCopyInto(out *TestType1) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - if in.M != nil { - in, out := &in.M, &out.M - *out = make(map[string]int, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.N != nil { - in, out := &in.N, &out.N - *out = make(map[string]TestType2, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.O != nil { - in, out := &in.O, &out.O - *out = new(TestType2) - **out = **in - } - if in.P != nil { - in, out := &in.P, &out.P - *out = make([]TestType2, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType1. -func (in *TestType1) DeepCopy() *TestType1 { - if in == nil { - return nil - } - out := new(TestType1) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TestType1) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TestType2) DeepCopyInto(out *TestType2) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType2. -func (in *TestType2) DeepCopy() *TestType2 { - if in == nil { - return nil - } - out := new(TestType2) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TestType2) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning.go deleted file mode 100644 index a5528cb80..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -Copyright 2014 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 versioning - -import ( - "io" - "reflect" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -// NewDefaultingCodecForScheme is a convenience method for callers that are using a scheme. -func NewDefaultingCodecForScheme( - // TODO: I should be a scheme interface? - scheme *runtime.Scheme, - encoder runtime.Encoder, - decoder runtime.Decoder, - encodeVersion runtime.GroupVersioner, - decodeVersion runtime.GroupVersioner, -) runtime.Codec { - return NewCodec(encoder, decoder, runtime.UnsafeObjectConvertor(scheme), scheme, scheme, scheme, encodeVersion, decodeVersion, scheme.Name()) -} - -// NewCodec takes objects in their internal versions and converts them to external versions before -// serializing them. It assumes the serializer provided to it only deals with external versions. -// This class is also a serializer, but is generally used with a specific version. -func NewCodec( - encoder runtime.Encoder, - decoder runtime.Decoder, - convertor runtime.ObjectConvertor, - creater runtime.ObjectCreater, - typer runtime.ObjectTyper, - defaulter runtime.ObjectDefaulter, - encodeVersion runtime.GroupVersioner, - decodeVersion runtime.GroupVersioner, - originalSchemeName string, -) runtime.Codec { - internal := &codec{ - encoder: encoder, - decoder: decoder, - convertor: convertor, - creater: creater, - typer: typer, - defaulter: defaulter, - - encodeVersion: encodeVersion, - decodeVersion: decodeVersion, - - originalSchemeName: originalSchemeName, - } - return internal -} - -type codec struct { - encoder runtime.Encoder - decoder runtime.Decoder - convertor runtime.ObjectConvertor - creater runtime.ObjectCreater - typer runtime.ObjectTyper - defaulter runtime.ObjectDefaulter - - encodeVersion runtime.GroupVersioner - decodeVersion runtime.GroupVersioner - - // originalSchemeName is optional, but when filled in it holds the name of the scheme from which this codec originates - originalSchemeName string -} - -// Decode attempts a decode of the object, then tries to convert it to the internal version. If into is provided and the decoding is -// successful, the returned runtime.Object will be the value passed as into. Note that this may bypass conversion if you pass an -// into that matches the serialized version. -func (c *codec) Decode(data []byte, defaultGVK *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - versioned, isVersioned := into.(*runtime.VersionedObjects) - if isVersioned { - into = versioned.Last() - } - - // If the into object is unstructured and expresses an opinion about its group/version, - // create a new instance of the type so we always exercise the conversion path (skips short-circuiting on `into == obj`) - decodeInto := into - if into != nil { - if _, ok := into.(runtime.Unstructured); ok && !into.GetObjectKind().GroupVersionKind().GroupVersion().Empty() { - decodeInto = reflect.New(reflect.TypeOf(into).Elem()).Interface().(runtime.Object) - } - } - - obj, gvk, err := c.decoder.Decode(data, defaultGVK, decodeInto) - if err != nil { - return nil, gvk, err - } - - if d, ok := obj.(runtime.NestedObjectDecoder); ok { - if err := d.DecodeNestedObjects(runtime.WithoutVersionDecoder{c.decoder}); err != nil { - return nil, gvk, err - } - } - - // if we specify a target, use generic conversion. - if into != nil { - // perform defaulting if requested - if c.defaulter != nil { - // create a copy to ensure defaulting is not applied to the original versioned objects - if isVersioned { - versioned.Objects = []runtime.Object{obj.DeepCopyObject()} - } - c.defaulter.Default(obj) - } else { - if isVersioned { - versioned.Objects = []runtime.Object{obj} - } - } - - // Short-circuit conversion if the into object is same object - if into == obj { - if isVersioned { - return versioned, gvk, nil - } - return into, gvk, nil - } - - if err := c.convertor.Convert(obj, into, c.decodeVersion); err != nil { - return nil, gvk, err - } - - if isVersioned { - versioned.Objects = append(versioned.Objects, into) - return versioned, gvk, nil - } - return into, gvk, nil - } - - // Convert if needed. - if isVersioned { - // create a copy, because ConvertToVersion does not guarantee non-mutation of objects - versioned.Objects = []runtime.Object{obj.DeepCopyObject()} - } - - // perform defaulting if requested - if c.defaulter != nil { - c.defaulter.Default(obj) - } - - out, err := c.convertor.ConvertToVersion(obj, c.decodeVersion) - if err != nil { - return nil, gvk, err - } - if isVersioned { - if versioned.Last() != out { - versioned.Objects = append(versioned.Objects, out) - } - return versioned, gvk, nil - } - return out, gvk, nil -} - -// Encode ensures the provided object is output in the appropriate group and version, invoking -// conversion if necessary. Unversioned objects (according to the ObjectTyper) are output as is. -func (c *codec) Encode(obj runtime.Object, w io.Writer) error { - switch obj := obj.(type) { - case *runtime.Unknown: - return c.encoder.Encode(obj, w) - case runtime.Unstructured: - // An unstructured list can contain objects of multiple group version kinds. don't short-circuit just - // because the top-level type matches our desired destination type. actually send the object to the converter - // to give it a chance to convert the list items if needed. - if _, ok := obj.(*unstructured.UnstructuredList); !ok { - // avoid conversion roundtrip if GVK is the right one already or is empty (yes, this is a hack, but the old behaviour we rely on in kubectl) - objGVK := obj.GetObjectKind().GroupVersionKind() - if len(objGVK.Version) == 0 { - return c.encoder.Encode(obj, w) - } - targetGVK, ok := c.encodeVersion.KindForGroupVersionKinds([]schema.GroupVersionKind{objGVK}) - if !ok { - return runtime.NewNotRegisteredGVKErrForTarget(c.originalSchemeName, objGVK, c.encodeVersion) - } - if targetGVK == objGVK { - return c.encoder.Encode(obj, w) - } - } - } - - gvks, isUnversioned, err := c.typer.ObjectKinds(obj) - if err != nil { - return err - } - - objectKind := obj.GetObjectKind() - old := objectKind.GroupVersionKind() - // restore the old GVK after encoding - defer objectKind.SetGroupVersionKind(old) - - if c.encodeVersion == nil || isUnversioned { - if e, ok := obj.(runtime.NestedObjectEncoder); ok { - if err := e.EncodeNestedObjects(runtime.WithVersionEncoder{Encoder: c.encoder, ObjectTyper: c.typer}); err != nil { - return err - } - } - objectKind.SetGroupVersionKind(gvks[0]) - return c.encoder.Encode(obj, w) - } - - // Perform a conversion if necessary - out, err := c.convertor.ConvertToVersion(obj, c.encodeVersion) - if err != nil { - return err - } - - if e, ok := out.(runtime.NestedObjectEncoder); ok { - if err := e.EncodeNestedObjects(runtime.WithVersionEncoder{Version: c.encodeVersion, Encoder: c.encoder, ObjectTyper: c.typer}); err != nil { - return err - } - } - - // Conversion is responsible for setting the proper group, version, and kind onto the outgoing object - return c.encoder.Encode(out, w) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go deleted file mode 100644 index fe4c968a1..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go +++ /dev/null @@ -1,426 +0,0 @@ -/* -Copyright 2015 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 versioning - -import ( - "fmt" - "io" - "io/ioutil" - "reflect" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -type testDecodable struct { - Other string - Value int `json:"value"` - gvk schema.GroupVersionKind -} - -func (d *testDecodable) GetObjectKind() schema.ObjectKind { return d } -func (d *testDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk } -func (d *testDecodable) GroupVersionKind() schema.GroupVersionKind { return d.gvk } -func (d *testDecodable) DeepCopyObject() runtime.Object { - // no real deepcopy because these tests check for pointer equality - return d -} - -type testNestedDecodable struct { - Other string - Value int `json:"value"` - - gvk schema.GroupVersionKind - nestedCalled bool - nestedErr error -} - -func (d *testNestedDecodable) GetObjectKind() schema.ObjectKind { return d } -func (d *testNestedDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk } -func (d *testNestedDecodable) GroupVersionKind() schema.GroupVersionKind { return d.gvk } -func (d *testNestedDecodable) DeepCopyObject() runtime.Object { - // no real deepcopy because these tests check for pointer equality - return d -} - -func (d *testNestedDecodable) EncodeNestedObjects(e runtime.Encoder) error { - d.nestedCalled = true - return d.nestedErr -} - -func (d *testNestedDecodable) DecodeNestedObjects(_ runtime.Decoder) error { - d.nestedCalled = true - return d.nestedErr -} - -func TestNestedDecode(t *testing.T) { - n := &testNestedDecodable{nestedErr: fmt.Errorf("unable to decode")} - decoder := &mockSerializer{obj: n} - codec := NewCodec(nil, decoder, nil, nil, nil, nil, nil, nil, "TestNestedDecode") - if _, _, err := codec.Decode([]byte(`{}`), nil, n); err != n.nestedErr { - t.Errorf("unexpected error: %v", err) - } - if !n.nestedCalled { - t.Errorf("did not invoke nested decoder") - } -} - -func TestNestedEncode(t *testing.T) { - n := &testNestedDecodable{nestedErr: fmt.Errorf("unable to decode")} - n2 := &testNestedDecodable{nestedErr: fmt.Errorf("unable to decode 2")} - encoder := &mockSerializer{obj: n} - codec := NewCodec( - encoder, nil, - &checkConvertor{obj: n2, groupVersion: schema.GroupVersion{Group: "other"}}, - nil, - &mockTyper{gvks: []schema.GroupVersionKind{{Kind: "test"}}}, - nil, - schema.GroupVersion{Group: "other"}, nil, - "TestNestedEncode", - ) - if err := codec.Encode(n, ioutil.Discard); err != n2.nestedErr { - t.Errorf("unexpected error: %v", err) - } - if n.nestedCalled || !n2.nestedCalled { - t.Errorf("did not invoke correct nested decoder") - } -} - -func TestNestedEncodeError(t *testing.T) { - n := &testNestedDecodable{nestedErr: fmt.Errorf("unable to encode")} - gvk1 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v1"} - gvk2 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v2"} - n.SetGroupVersionKind(gvk1) - codec := NewCodec( - nil, nil, - &mockConvertor{}, - nil, - &mockTyper{gvks: []schema.GroupVersionKind{gvk1, gvk2}}, - nil, - schema.GroupVersion{Group: "other", Version: "v2"}, nil, - "TestNestedEncodeError", - ) - if err := codec.Encode(n, ioutil.Discard); err != n.nestedErr { - t.Errorf("unexpected error: %v", err) - } - if n.GroupVersionKind() != gvk1 { - t.Errorf("unexpected gvk of input object: %v", n.GroupVersionKind()) - } -} - -func TestDecode(t *testing.T) { - gvk1 := &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"} - decodable1 := &testDecodable{} - decodable2 := &testDecodable{} - decodable3 := &testDecodable{} - versionedDecodable1 := &runtime.VersionedObjects{Objects: []runtime.Object{decodable1}} - - testCases := []struct { - serializer runtime.Serializer - convertor runtime.ObjectConvertor - creater runtime.ObjectCreater - typer runtime.ObjectTyper - defaulter runtime.ObjectDefaulter - yaml bool - pretty bool - - encodes, decodes runtime.GroupVersioner - - defaultGVK *schema.GroupVersionKind - into runtime.Object - - errFn func(error) bool - expectedObject runtime.Object - sameObject runtime.Object - expectedGVK *schema.GroupVersionKind - }{ - { - serializer: &mockSerializer{actual: gvk1}, - convertor: &checkConvertor{groupVersion: schema.GroupVersion{Group: "other", Version: runtime.APIVersionInternal}}, - expectedGVK: gvk1, - decodes: schema.GroupVersion{Group: "other", Version: runtime.APIVersionInternal}, - }, - { - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable2, groupVersion: schema.GroupVersion{Group: "other", Version: runtime.APIVersionInternal}}, - expectedGVK: gvk1, - sameObject: decodable2, - decodes: schema.GroupVersion{Group: "other", Version: runtime.APIVersionInternal}, - }, - // defaultGVK.Group is allowed to force a conversion to the destination group - { - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - defaultGVK: &schema.GroupVersionKind{Group: "force"}, - convertor: &checkConvertor{in: decodable1, obj: decodable2, groupVersion: schema.GroupVersion{Group: "force", Version: runtime.APIVersionInternal}}, - expectedGVK: gvk1, - sameObject: decodable2, - decodes: schema.GroupVersion{Group: "force", Version: runtime.APIVersionInternal}, - }, - // uses direct conversion for into when objects differ - { - into: decodable3, - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable3, directConvert: true}, - expectedGVK: gvk1, - sameObject: decodable3, - }, - { - into: versionedDecodable1, - serializer: &mockSerializer{actual: gvk1, obj: decodable3}, - convertor: &checkConvertor{in: decodable3, obj: decodable1, directConvert: true}, - expectedGVK: gvk1, - sameObject: versionedDecodable1, - }, - // returns directly when serializer returns into - { - into: decodable3, - serializer: &mockSerializer{actual: gvk1, obj: decodable3}, - expectedGVK: gvk1, - sameObject: decodable3, - }, - // returns directly when serializer returns into - { - into: versionedDecodable1, - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - expectedGVK: gvk1, - sameObject: versionedDecodable1, - }, - - // runtime.VersionedObjects are decoded - { - into: &runtime.VersionedObjects{Objects: []runtime.Object{}}, - - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable2, groupVersion: schema.GroupVersion{Group: "other", Version: runtime.APIVersionInternal}}, - expectedGVK: gvk1, - expectedObject: &runtime.VersionedObjects{Objects: []runtime.Object{decodable1, decodable2}}, - decodes: schema.GroupVersion{Group: "other", Version: runtime.APIVersionInternal}, - }, - - // decode into the same version as the serialized object - { - decodes: schema.GroupVersions{gvk1.GroupVersion()}, - - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable1, groupVersion: schema.GroupVersions{{Group: "other", Version: "blah"}}}, - expectedGVK: gvk1, - expectedObject: decodable1, - }, - { - into: &runtime.VersionedObjects{Objects: []runtime.Object{}}, - decodes: schema.GroupVersions{gvk1.GroupVersion()}, - - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable1, groupVersion: schema.GroupVersions{{Group: "other", Version: "blah"}}}, - expectedGVK: gvk1, - expectedObject: &runtime.VersionedObjects{Objects: []runtime.Object{decodable1}}, - }, - - // codec with non matching version skips conversion altogether - { - decodes: schema.GroupVersions{{Group: "something", Version: "else"}}, - - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable1, groupVersion: schema.GroupVersions{{Group: "something", Version: "else"}}}, - expectedGVK: gvk1, - expectedObject: decodable1, - }, - { - into: &runtime.VersionedObjects{Objects: []runtime.Object{}}, - decodes: schema.GroupVersions{{Group: "something", Version: "else"}}, - - serializer: &mockSerializer{actual: gvk1, obj: decodable1}, - convertor: &checkConvertor{in: decodable1, obj: decodable1, groupVersion: schema.GroupVersions{{Group: "something", Version: "else"}}}, - expectedGVK: gvk1, - expectedObject: &runtime.VersionedObjects{Objects: []runtime.Object{decodable1}}, - }, - } - - for i, test := range testCases { - t.Logf("%d", i) - s := NewCodec(test.serializer, test.serializer, test.convertor, test.creater, test.typer, test.defaulter, test.encodes, test.decodes, fmt.Sprintf("mock-%d", i)) - obj, gvk, err := s.Decode([]byte(`{}`), test.defaultGVK, test.into) - - if !reflect.DeepEqual(test.expectedGVK, gvk) { - t.Errorf("%d: unexpected GVK: %v", i, gvk) - } - - switch { - case err == nil && test.errFn != nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil && test.errFn == nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil: - if !test.errFn(err) { - t.Errorf("%d: failed: %v", i, err) - } - if obj != nil { - t.Errorf("%d: should have returned nil object", i) - } - continue - } - - if test.into != nil && test.into != obj { - t.Errorf("%d: expected into to be returned: %v", i, obj) - continue - } - - switch { - case test.expectedObject != nil: - if !reflect.DeepEqual(test.expectedObject, obj) { - t.Errorf("%d: unexpected object:\n%s", i, diff.ObjectGoPrintSideBySide(test.expectedObject, obj)) - } - case test.sameObject != nil: - if test.sameObject != obj { - t.Errorf("%d: unexpected object:\n%s", i, diff.ObjectGoPrintSideBySide(test.sameObject, obj)) - } - case obj != nil: - t.Errorf("%d: unexpected object: %#v", i, obj) - } - } -} - -type checkConvertor struct { - err error - in, obj runtime.Object - groupVersion runtime.GroupVersioner - directConvert bool -} - -func (c *checkConvertor) Convert(in, out, context interface{}) error { - if !c.directConvert { - return fmt.Errorf("unexpected call to Convert") - } - if c.in != nil && c.in != in { - return fmt.Errorf("unexpected in: %s", in) - } - if c.obj != nil && c.obj != out { - return fmt.Errorf("unexpected out: %s", out) - } - return c.err -} -func (c *checkConvertor) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (out runtime.Object, err error) { - if c.directConvert { - return nil, fmt.Errorf("unexpected call to ConvertToVersion") - } - if c.in != nil && c.in != in { - return nil, fmt.Errorf("unexpected in: %s", in) - } - if !reflect.DeepEqual(c.groupVersion, outVersion) { - return nil, fmt.Errorf("unexpected outversion: %s (%s)", outVersion, c.groupVersion) - } - return c.obj, c.err -} -func (c *checkConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) { - return "", "", fmt.Errorf("unexpected call to ConvertFieldLabel") -} - -type mockConvertor struct { -} - -func (c *mockConvertor) Convert(in, out, context interface{}) error { - return fmt.Errorf("unexpect call to Convert") -} - -func (c *mockConvertor) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (out runtime.Object, err error) { - objectKind := in.GetObjectKind() - inGVK := objectKind.GroupVersionKind() - if out, ok := outVersion.KindForGroupVersionKinds([]schema.GroupVersionKind{inGVK}); ok { - objectKind.SetGroupVersionKind(out) - } else { - return nil, fmt.Errorf("unexpected conversion") - } - return in, nil -} - -func (c *mockConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) { - return "", "", fmt.Errorf("unexpected call to ConvertFieldLabel") -} - -type mockSerializer struct { - err error - obj runtime.Object - encodingObjGVK schema.GroupVersionKind - - defaults, actual *schema.GroupVersionKind - into runtime.Object -} - -func (s *mockSerializer) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - s.defaults = defaults - s.into = into - return s.obj, s.actual, s.err -} - -func (s *mockSerializer) Encode(obj runtime.Object, w io.Writer) error { - s.obj = obj - s.encodingObjGVK = obj.GetObjectKind().GroupVersionKind() - return s.err -} - -type mockCreater struct { - err error - obj runtime.Object -} - -func (c *mockCreater) New(kind schema.GroupVersionKind) (runtime.Object, error) { - return c.obj, c.err -} - -type mockTyper struct { - gvks []schema.GroupVersionKind - unversioned bool - err error -} - -func (t *mockTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) { - return t.gvks, t.unversioned, t.err -} - -func (t *mockTyper) Recognizes(_ schema.GroupVersionKind) bool { - return true -} - -func TestDirectCodecEncode(t *testing.T) { - serializer := mockSerializer{} - typer := mockTyper{ - gvks: []schema.GroupVersionKind{ - { - Group: "wrong_group", - Kind: "some_kind", - }, - { - Group: "expected_group", - Kind: "some_kind", - }, - }, - } - - c := runtime.WithVersionEncoder{ - Version: schema.GroupVersion{Group: "expected_group"}, - Encoder: &serializer, - ObjectTyper: &typer, - } - c.Encode(&testDecodable{}, ioutil.Discard) - if e, a := "expected_group", serializer.encodingObjGVK.Group; e != a { - t.Errorf("expected group to be %v, got %v", e, a) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go deleted file mode 100644 index 846aa752b..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go +++ /dev/null @@ -1,338 +0,0 @@ -/* -Copyright 2015 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 versioning - -import ( - "fmt" - "io/ioutil" - "testing" - - "github.com/stretchr/testify/assert" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -func buildUnstructuredDecodable(gvk schema.GroupVersionKind) runtime.Object { - obj := &unstructured.Unstructured{} - obj.SetGroupVersionKind(gvk) - return obj -} - -func buildUnstructuredListDecodable(gvk schema.GroupVersionKind) runtime.Object { - obj := &unstructured.UnstructuredList{} - obj.SetGroupVersionKind(gvk) - return obj -} - -func TestEncodeUnstructured(t *testing.T) { - v1GVK := schema.GroupVersionKind{ - Group: "crispy", - Version: "v1", - Kind: "Noxu", - } - v2GVK := schema.GroupVersionKind{ - Group: "crispy", - Version: "v2", - Kind: "Noxu", - } - elseGVK := schema.GroupVersionKind{ - Group: "crispy2", - Version: "else", - Kind: "Noxu", - } - elseUnstructuredDecodable := buildUnstructuredDecodable(elseGVK) - elseUnstructuredDecodableList := buildUnstructuredListDecodable(elseGVK) - v1UnstructuredDecodable := buildUnstructuredDecodable(v1GVK) - v1UnstructuredDecodableList := buildUnstructuredListDecodable(v1GVK) - v2UnstructuredDecodable := buildUnstructuredDecodable(v2GVK) - - testCases := []struct { - name string - convertor runtime.ObjectConvertor - targetVersion runtime.GroupVersioner - outObj runtime.Object - typer runtime.ObjectTyper - - errFunc func(error) bool - expectedObj runtime.Object - }{ - { - name: "encode v1 unstructured with v2 encode version", - typer: &mockTyper{ - gvks: []schema.GroupVersionKind{v1GVK}, - }, - outObj: v1UnstructuredDecodable, - targetVersion: v2GVK.GroupVersion(), - convertor: &checkConvertor{ - obj: v2UnstructuredDecodable, - groupVersion: v2GVK.GroupVersion(), - }, - expectedObj: v2UnstructuredDecodable, - }, - { - name: "both typer and conversion are bypassed when unstructured gvk matches encode gvk", - typer: &mockTyper{ - err: fmt.Errorf("unexpected typer call"), - }, - outObj: v1UnstructuredDecodable, - targetVersion: v1GVK.GroupVersion(), - convertor: &checkConvertor{ - err: fmt.Errorf("unexpected conversion happened"), - }, - expectedObj: v1UnstructuredDecodable, - }, - { - name: "encode will fail when unstructured object's gvk and encode gvk mismatches", - outObj: elseUnstructuredDecodable, - targetVersion: v1GVK.GroupVersion(), - errFunc: func(err error) bool { - return assert.Equal(t, runtime.NewNotRegisteredGVKErrForTarget("noxu-scheme", elseGVK, v1GVK.GroupVersion()), err) - }, - }, - { - name: "encode with unstructured list's gvk regardless of its elements' gvk", - outObj: elseUnstructuredDecodableList, - targetVersion: elseGVK.GroupVersion(), - }, - { - name: "typer fail to recognize unstructured object gvk will fail the encoding", - outObj: elseUnstructuredDecodable, - targetVersion: v1GVK.GroupVersion(), - typer: &mockTyper{ - err: fmt.Errorf("invalid obj gvk"), - }, - }, - { - name: "encoding unstructured object without encode version will fallback to typer suggested version", - targetVersion: v1GVK.GroupVersion(), - convertor: &checkConvertor{ - obj: v1UnstructuredDecodableList, - groupVersion: v1GVK.GroupVersion(), - }, - outObj: elseUnstructuredDecodable, - typer: &mockTyper{ - gvks: []schema.GroupVersionKind{v1GVK}, - }, - }, - } - for _, testCase := range testCases { - serializer := &mockSerializer{} - codec := NewCodec(serializer, serializer, testCase.convertor, nil, testCase.typer, nil, testCase.targetVersion, nil, "noxu-scheme") - err := codec.Encode(testCase.outObj, ioutil.Discard) - if testCase.errFunc != nil { - if !testCase.errFunc(err) { - t.Errorf("%v: failed: %v", testCase.name, err) - } - return - } - assert.NoError(t, err) - assert.Equal(t, testCase.expectedObj, serializer.obj) - } -} - -type errNotRecognizedGVK struct { - failedGVK schema.GroupVersionKind - claimingGVKs []schema.GroupVersionKind -} - -func (e errNotRecognizedGVK) Error() string { - return fmt.Sprintf("unrecognized gvk %v, should be one of %v", e.failedGVK, e.claimingGVKs) -} - -type mockUnstructuredNopConvertor struct { - claimingGVKs []schema.GroupVersionKind -} - -func (c *mockUnstructuredNopConvertor) recognizeGVK(gvkToCheck schema.GroupVersionKind) error { - matched := false - for _, gvk := range c.claimingGVKs { - if gvk == gvkToCheck { - matched = true - } - } - if !matched { - return errNotRecognizedGVK{ - failedGVK: gvkToCheck, - claimingGVKs: c.claimingGVKs, - } - } - return nil -} - -func (c *mockUnstructuredNopConvertor) Convert(in, out, context interface{}) error { - inObj := in.(*unstructured.Unstructured) - outObj := out.(*unstructured.Unstructured) - if err := c.recognizeGVK(outObj.GroupVersionKind()); err != nil { - return err - } - outGVK := outObj.GetObjectKind().GroupVersionKind() - *outObj = *inObj.DeepCopy() - outObj.GetObjectKind().SetGroupVersionKind(outGVK) - return nil -} - -func (c *mockUnstructuredNopConvertor) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (runtime.Object, error) { - out := in.DeepCopyObject() - targetGVK, matched := outVersion.KindForGroupVersionKinds([]schema.GroupVersionKind{in.GetObjectKind().GroupVersionKind()}) - if !matched { - return nil, fmt.Errorf("attempt to convert to mismatched gv %v", outVersion) - } - if err := c.recognizeGVK(out.GetObjectKind().GroupVersionKind()); err != nil { - return nil, err - } - out.GetObjectKind().SetGroupVersionKind(targetGVK) - return out, nil -} - -func (c *mockUnstructuredNopConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) { - return "", "", fmt.Errorf("unexpected call to ConvertFieldLabel") -} - -func TestDecodeUnstructured(t *testing.T) { - internalGVK := schema.GroupVersionKind{ - Group: "crispy", - Version: runtime.APIVersionInternal, - Kind: "Noxu", - } - v1GVK := schema.GroupVersionKind{ - Group: "crispy", - Version: "v1", - Kind: "Noxu", - } - v2GVK := schema.GroupVersionKind{ - Group: "crispy", - Version: "v2", - Kind: "Noxu", - } - internalUnstructuredDecodable := buildUnstructuredDecodable(internalGVK) - v1UnstructuredDecodable := buildUnstructuredDecodable(v1GVK) - v2UnstructuredDecodable := buildUnstructuredDecodable(v2GVK) - - testCases := []struct { - name string - serializer runtime.Serializer - convertor runtime.ObjectConvertor - suggestedConvertVersion runtime.GroupVersioner - defaultGVK *schema.GroupVersionKind - intoObj runtime.Object - - errFunc func(error) bool - expectedGVKOfSerializedData *schema.GroupVersionKind - expectedOut runtime.Object - }{ - { - name: "decode v1 unstructured into non-nil v2 unstructured", - serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable}, - convertor: &mockUnstructuredNopConvertor{ - claimingGVKs: []schema.GroupVersionKind{ - v1GVK, v2GVK, - }, - }, - suggestedConvertVersion: v2GVK.GroupVersion(), - intoObj: v2UnstructuredDecodable, - expectedGVKOfSerializedData: &v1GVK, - expectedOut: v2UnstructuredDecodable, - }, - { - name: "decode v1 unstructured into nil object with v2 version", - serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable}, - convertor: &mockUnstructuredNopConvertor{ - claimingGVKs: []schema.GroupVersionKind{ - v1GVK, v2GVK, - }, - }, - suggestedConvertVersion: v2GVK.GroupVersion(), - intoObj: nil, - expectedGVKOfSerializedData: &v1GVK, - expectedOut: v2UnstructuredDecodable, - }, - { - name: "decode v1 unstructured into non-nil internal unstructured", - serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable}, - convertor: &mockUnstructuredNopConvertor{ - claimingGVKs: []schema.GroupVersionKind{ - v1GVK, v2GVK, - }, - }, - suggestedConvertVersion: internalGVK.GroupVersion(), - intoObj: internalUnstructuredDecodable, - errFunc: func(err error) bool { - notRecognized, ok := err.(errNotRecognizedGVK) - if !ok { - return false - } - return assert.Equal(t, notRecognized.failedGVK, internalGVK) - }, - }, - { - name: "decode v1 unstructured into nil object with internal version", - serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable}, - convertor: &mockUnstructuredNopConvertor{ - claimingGVKs: []schema.GroupVersionKind{ - v1GVK, v2GVK, - }, - }, - suggestedConvertVersion: internalGVK.GroupVersion(), - intoObj: nil, - errFunc: func(err error) bool { - notRecognized, ok := err.(errNotRecognizedGVK) - if !ok { - return false - } - return assert.Equal(t, notRecognized.failedGVK, internalGVK) - }, - }, - { - name: "skip conversion if serializer returns the same unstructured as into", - serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable}, - convertor: &checkConvertor{ - err: fmt.Errorf("unexpected conversion happened"), - }, - suggestedConvertVersion: internalGVK.GroupVersion(), - intoObj: v1UnstructuredDecodable, - expectedGVKOfSerializedData: &v1GVK, - expectedOut: v1UnstructuredDecodable, - }, - { - name: "invalid convert version makes decoding unstructured fail", - serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable}, - convertor: &checkConvertor{ - in: v1UnstructuredDecodable, - groupVersion: internalGVK.GroupVersion(), - err: fmt.Errorf("no matching decode version"), - }, - suggestedConvertVersion: internalGVK.GroupVersion(), - errFunc: func(err error) bool { - return assert.Equal(t, err, fmt.Errorf("no matching decode version")) - }, - }, - } - for _, testCase := range testCases { - codec := NewCodec(testCase.serializer, testCase.serializer, testCase.convertor, nil, nil, nil, nil, testCase.suggestedConvertVersion, "noxu-scheme") - actualObj, actualSerializedGVK, err := codec.Decode([]byte(`{}`), testCase.defaultGVK, testCase.intoObj) - if testCase.errFunc != nil { - if !testCase.errFunc(err) { - t.Errorf("%v: failed: %v", testCase.name, err) - } - return - } - assert.NoError(t, err) - assert.Equal(t, testCase.expectedOut, actualObj, "%v failed", testCase.name) - assert.Equal(t, testCase.expectedGVKOfSerializedData, actualSerializedGVK, "%v failed", testCase.name) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml.go deleted file mode 100644 index a32e2e9ad..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml.go +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2014 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 yaml - -import ( - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/yaml" -) - -// yamlSerializer converts YAML passed to the Decoder methods to JSON. -type yamlSerializer struct { - // the nested serializer - runtime.Serializer -} - -// yamlSerializer implements Serializer -var _ runtime.Serializer = yamlSerializer{} - -// NewDecodingSerializer adds YAML decoding support to a serializer that supports JSON. -func NewDecodingSerializer(jsonSerializer runtime.Serializer) runtime.Serializer { - return &yamlSerializer{jsonSerializer} -} - -func (c yamlSerializer) Decode(data []byte, gvk *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { - out, err := yaml.ToJSON(data) - if err != nil { - return nil, nil, err - } - data = out - return c.Serializer.Decode(data, gvk, into) -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go b/pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go deleted file mode 100644 index 394cdca24..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go +++ /dev/null @@ -1,402 +0,0 @@ -/* -Copyright 2019 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 yaml - -import ( - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/yaml" - sigsyaml "sigs.k8s.io/yaml" -) - -type testcase struct { - name string - data []byte - error string - - benchmark bool -} - -func testcases() []testcase { - return []testcase{ - { - name: "arrays of string aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a ["webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb","webwebwebwebwebweb"] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "arrays of empty string aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a ["","","","","","","","",""] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "arrays of null aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a [null,null,null,null,null,null,null,null,null] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "arrays of zero int aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a [0,0,0,0,0,0,0,0,0] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "arrays of zero float aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "arrays of big float aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a [1234567890.12345678,1234567890.12345678,1234567890.12345678,1234567890.12345678,1234567890.12345678,1234567890.12345678,1234567890.12345678,1234567890.12345678,1234567890.12345678] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "arrays of bool aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a [true,true,true,true,true,true,true,true,true] -b: &b [*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a,*a] -c: &c [*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b,*b] -d: &d [*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c,*c] -e: &e [*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d,*d] -f: &f [*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e,*e] -g: &g [*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f,*f] -h: &h [*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g,*g] -i: &i [*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h,*h] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "map key aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a {"verylongkey1":"","verylongkey2":"","verylongkey3":"","verylongkey4":"","verylongkey5":"","verylongkey6":"","verylongkey7":"","verylongkey8":"","verylongkey9":""} -b: &b {"verylongkey1":*a,"verylongkey2":*a,"verylongkey3":*a,"verylongkey4":*a,"verylongkey5":*a,"verylongkey6":*a,"verylongkey7":*a,"verylongkey8":*a,"verylongkey9":*a} -c: &c {"verylongkey1":*b,"verylongkey2":*b,"verylongkey3":*b,"verylongkey4":*b,"verylongkey5":*b,"verylongkey6":*b,"verylongkey7":*b,"verylongkey8":*b,"verylongkey9":*b} -d: &d {"verylongkey1":*c,"verylongkey2":*c,"verylongkey3":*c,"verylongkey4":*c,"verylongkey5":*c,"verylongkey6":*c,"verylongkey7":*c,"verylongkey8":*c,"verylongkey9":*c} -e: &e {"verylongkey1":*d,"verylongkey2":*d,"verylongkey3":*d,"verylongkey4":*d,"verylongkey5":*d,"verylongkey6":*d,"verylongkey7":*d,"verylongkey8":*d,"verylongkey9":*d} -f: &f {"verylongkey1":*e,"verylongkey2":*e,"verylongkey3":*e,"verylongkey4":*e,"verylongkey5":*e,"verylongkey6":*e,"verylongkey7":*e,"verylongkey8":*e,"verylongkey9":*e} -g: &g {"verylongkey1":*f,"verylongkey2":*f,"verylongkey3":*f,"verylongkey4":*f,"verylongkey5":*f,"verylongkey6":*f,"verylongkey7":*f,"verylongkey8":*f,"verylongkey9":*f} -h: &h {"verylongkey1":*g,"verylongkey2":*g,"verylongkey3":*g,"verylongkey4":*g,"verylongkey5":*g,"verylongkey6":*g,"verylongkey7":*g,"verylongkey8":*g,"verylongkey9":*g} -i: &i {"verylongkey1":*h,"verylongkey2":*h,"verylongkey3":*h,"verylongkey4":*h,"verylongkey5":*h,"verylongkey6":*h,"verylongkey7":*h,"verylongkey8":*h,"verylongkey9":*h} -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "map value aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a {"1":"verylongmapvalue","2":"verylongmapvalue","3":"verylongmapvalue","4":"verylongmapvalue","5":"verylongmapvalue","6":"verylongmapvalue","7":"verylongmapvalue","8":"verylongmapvalue","9":"verylongmapvalue"} -b: &b {"1":*a,"2":*a,"3":*a,"4":*a,"5":*a,"6":*a,"7":*a,"8":*a,"9":*a} -c: &c {"1":*b,"2":*b,"3":*b,"4":*b,"5":*b,"6":*b,"7":*b,"8":*b,"9":*b} -d: &d {"1":*c,"2":*c,"3":*c,"4":*c,"5":*c,"6":*c,"7":*c,"8":*c,"9":*c} -e: &e {"1":*d,"2":*d,"3":*d,"4":*d,"5":*d,"6":*d,"7":*d,"8":*d,"9":*d} -f: &f {"1":*e,"2":*e,"3":*e,"4":*e,"5":*e,"6":*e,"7":*e,"8":*e,"9":*e} -g: &g {"1":*f,"2":*f,"3":*f,"4":*f,"5":*f,"6":*f,"7":*f,"8":*f,"9":*f} -h: &h {"1":*g,"2":*g,"3":*g,"4":*g,"5":*g,"6":*g,"7":*g,"8":*g,"9":*g} -i: &i {"1":*h,"2":*h,"3":*h,"4":*h,"5":*h,"6":*h,"7":*h,"8":*h,"9":*h} -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "nested map aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a {"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{"":{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} -b: &b {"1":*a,"2":*a,"3":*a,"4":*a,"5":*a,"6":*a,"7":*a,"8":*a,"9":*a} -c: &c {"1":*b,"2":*b,"3":*b,"4":*b,"5":*b,"6":*b,"7":*b,"8":*b,"9":*b} -d: &d {"1":*c,"2":*c,"3":*c,"4":*c,"5":*c,"6":*c,"7":*c,"8":*c,"9":*c} -e: &e {"1":*d,"2":*d,"3":*d,"4":*d,"5":*d,"6":*d,"7":*d,"8":*d,"9":*d} -f: &f {"1":*e,"2":*e,"3":*e,"4":*e,"5":*e,"6":*e,"7":*e,"8":*e,"9":*e} -g: &g {"1":*f,"2":*f,"3":*f,"4":*f,"5":*f,"6":*f,"7":*f,"8":*f,"9":*f} -h: &h {"1":*g,"2":*g,"3":*g,"4":*g,"5":*g,"6":*g,"7":*g,"8":*g,"9":*g} -i: &i {"1":*h,"2":*h,"3":*h,"4":*h,"5":*h,"6":*h,"7":*h,"8":*h,"9":*h} -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "nested slice aliases", - error: "excessive aliasing", - data: []byte(` -apiVersion: v1 -data: -a: &a [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[""]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] -b: &b [[[[[[[[[[*a]]]]]]]]],[[[[[[[[[*a]]]]]]]]],[[[[[[[[[*a]]]]]]]]],[[[[[[[[[*a]]]]]]]]],[[[[[[[[[*a]]]]]]]]]] -c: &c [[[[[[[[[[*b]]]]]]]]],[[[[[[[[[*b]]]]]]]]],[[[[[[[[[*b]]]]]]]]],[[[[[[[[[*b]]]]]]]]],[[[[[[[[[*b]]]]]]]]]] -d: &d [[[[[[[[[[*c]]]]]]]]],[[[[[[[[[*c]]]]]]]]],[[[[[[[[[*c]]]]]]]]],[[[[[[[[[*c]]]]]]]]],[[[[[[[[[*c]]]]]]]]]] -e: &e [[[[[[[[[[*d]]]]]]]]],[[[[[[[[[*d]]]]]]]]],[[[[[[[[[*d]]]]]]]]],[[[[[[[[[*d]]]]]]]]],[[[[[[[[[*d]]]]]]]]]] -f: &f [[[[[[[[[[*e]]]]]]]]],[[[[[[[[[*e]]]]]]]]],[[[[[[[[[*e]]]]]]]]],[[[[[[[[[*e]]]]]]]]],[[[[[[[[[*e]]]]]]]]]] -g: &g [[[[[[[[[[*f]]]]]]]]],[[[[[[[[[*f]]]]]]]]],[[[[[[[[[*f]]]]]]]]],[[[[[[[[[*f]]]]]]]]],[[[[[[[[[*f]]]]]]]]]] -h: &h [[[[[[[[[[*g]]]]]]]]],[[[[[[[[[*g]]]]]]]]],[[[[[[[[[*g]]]]]]]]],[[[[[[[[[*g]]]]]]]]],[[[[[[[[[*g]]]]]]]]]] -i: &i [[[[[[[[[[*h]]]]]]]]],[[[[[[[[[*h]]]]]]]]],[[[[[[[[[*h]]]]]]]]],[[[[[[[[[*h]]]]]]]]],[[[[[[[[[*h]]]]]]]]]] -kind: ConfigMap -metadata: -name: yaml-bomb -namespace: default -`), - }, - { - name: "3MB map without alias", - data: []byte(`a: &a [{a}` + strings.Repeat(`,{a}`, 3*1024*1024/4) + `]`), - }, - { - name: "3MB map with alias", - error: "excessive aliasing", - data: []byte(` -a: &a [{a}` + strings.Repeat(`,{a}`, 3*1024*1024/4) + `] -b: &b [*a]`), - }, - { - name: "deeply nested slices", - error: "max depth", - data: []byte(strings.Repeat(`[`, 3*1024*1024)), - }, - { - name: "deeply nested maps", - error: "max depth", - data: []byte("x: " + strings.Repeat(`{`, 3*1024*1024)), - }, - { - name: "deeply nested indents", - error: "max depth", - data: []byte(strings.Repeat(`- `, 3*1024*1024)), - }, - { - name: "3MB of 1000-indent lines", - data: []byte(strings.Repeat(strings.Repeat(`- `, 1000)+"\n", 3*1024/2)), - benchmark: true, - }, - { - name: "3MB of empty slices", - data: []byte(`[` + strings.Repeat(`[],`, 3*1024*1024/3-2) + `[]]`), - benchmark: true, - }, - { - name: "3MB of slices", - data: []byte(`[` + strings.Repeat(`[0],`, 3*1024*1024/4-2) + `[0]]`), - benchmark: true, - }, - { - name: "3MB of empty maps", - data: []byte(`[` + strings.Repeat(`{},`, 3*1024*1024/3-2) + `{}]`), - benchmark: true, - }, - { - name: "3MB of maps", - data: []byte(`[` + strings.Repeat(`{a},`, 3*1024*1024/4-2) + `{a}]`), - benchmark: true, - }, - { - name: "3MB of ints", - data: []byte(`[` + strings.Repeat(`0,`, 3*1024*1024/2-2) + `0]`), - benchmark: true, - }, - { - name: "3MB of floats", - data: []byte(`[` + strings.Repeat(`0.0,`, 3*1024*1024/4-2) + `0.0]`), - benchmark: true, - }, - { - name: "3MB of bools", - data: []byte(`[` + strings.Repeat(`true,`, 3*1024*1024/5-2) + `true]`), - benchmark: true, - }, - { - name: "3MB of empty strings", - data: []byte(`[` + strings.Repeat(`"",`, 3*1024*1024/3-2) + `""]`), - benchmark: true, - }, - { - name: "3MB of strings", - data: []byte(`[` + strings.Repeat(`"abcdefghijklmnopqrstuvwxyz012",`, 3*1024*1024/30-2) + `"abcdefghijklmnopqrstuvwxyz012"]`), - benchmark: true, - }, - { - name: "3MB of nulls", - data: []byte(`[` + strings.Repeat(`null,`, 3*1024*1024/5-2) + `null]`), - benchmark: true, - }, - } -} - -var decoders = map[string]func([]byte) ([]byte, error){ - "sigsyaml": sigsyaml.YAMLToJSON, - "utilyaml": yaml.ToJSON, -} - -func TestYAMLLimits(t *testing.T) { - for _, tc := range testcases() { - if tc.benchmark { - continue - } - t.Run(tc.name, func(t *testing.T) { - for decoderName, decoder := range decoders { - t.Run(decoderName, func(t *testing.T) { - _, err := decoder(tc.data) - if len(tc.error) == 0 { - if err != nil { - t.Errorf("unexpected error: %v", err) - } - } else { - if err == nil || !strings.Contains(err.Error(), tc.error) { - t.Errorf("expected %q error, got %v", tc.error, err) - } - } - }) - } - }) - } -} - -func BenchmarkYAMLLimits(b *testing.B) { - for _, tc := range testcases() { - b.Run(tc.name, func(b *testing.B) { - for decoderName, decoder := range decoders { - b.Run(decoderName, func(b *testing.B) { - for i := 0; i < b.N; i++ { - _, err := decoder(tc.data) - if len(tc.error) == 0 { - if err != nil { - b.Errorf("unexpected error: %v", err) - } - } else { - if err == nil || !strings.Contains(err.Error(), tc.error) { - b.Errorf("expected %q error, got %v", tc.error, err) - } - } - } - }) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator.go b/pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator.go deleted file mode 100644 index 5bc642bc8..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator.go +++ /dev/null @@ -1,262 +0,0 @@ -/* -Copyright 2015 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 runtime - -import ( - "bytes" - "fmt" - "go/ast" - "go/doc" - "go/parser" - "go/token" - "io" - "reflect" - "strings" -) - -// Pair of strings. We keed the name of fields and the doc -type Pair struct { - Name, Doc string -} - -// KubeTypes is an array to represent all available types in a parsed file. [0] is for the type itself -type KubeTypes []Pair - -func astFrom(filePath string) *doc.Package { - fset := token.NewFileSet() - m := make(map[string]*ast.File) - - f, err := parser.ParseFile(fset, filePath, nil, parser.ParseComments) - if err != nil { - fmt.Println(err) - return nil - } - - m[filePath] = f - apkg, _ := ast.NewPackage(fset, m, nil, nil) - - return doc.New(apkg, "", 0) -} - -func fmtRawDoc(rawDoc string) string { - var buffer bytes.Buffer - delPrevChar := func() { - if buffer.Len() > 0 { - buffer.Truncate(buffer.Len() - 1) // Delete the last " " or "\n" - } - } - - // Ignore all lines after --- - rawDoc = strings.Split(rawDoc, "---")[0] - - for _, line := range strings.Split(rawDoc, "\n") { - line = strings.TrimRight(line, " ") - leading := strings.TrimLeft(line, " ") - switch { - case len(line) == 0: // Keep paragraphs - delPrevChar() - buffer.WriteString("\n\n") - case strings.HasPrefix(leading, "TODO"): // Ignore one line TODOs - case strings.HasPrefix(leading, "+"): // Ignore instructions to the generators - default: - if strings.HasPrefix(line, " ") || strings.HasPrefix(line, "\t") { - delPrevChar() - line = "\n" + line + "\n" // Replace it with newline. This is useful when we have a line with: "Example:\n\tJSON-someting..." - } else { - line += " " - } - buffer.WriteString(line) - } - } - - postDoc := strings.TrimRight(buffer.String(), "\n") - postDoc = strings.Replace(postDoc, "\\\"", "\"", -1) // replace user's \" to " - postDoc = strings.Replace(postDoc, "\"", "\\\"", -1) // Escape " - postDoc = strings.Replace(postDoc, "\n", "\\n", -1) - postDoc = strings.Replace(postDoc, "\t", "\\t", -1) - - return postDoc -} - -// fieldName returns the name of the field as it should appear in JSON format -// "-" indicates that this field is not part of the JSON representation -func fieldName(field *ast.Field) string { - jsonTag := "" - if field.Tag != nil { - jsonTag = reflect.StructTag(field.Tag.Value[1 : len(field.Tag.Value)-1]).Get("json") // Delete first and last quotation - if strings.Contains(jsonTag, "inline") { - return "-" - } - } - - jsonTag = strings.Split(jsonTag, ",")[0] // This can return "-" - if jsonTag == "" { - if field.Names != nil { - return field.Names[0].Name - } - return field.Type.(*ast.Ident).Name - } - return jsonTag -} - -// A buffer of lines that will be written. -type bufferedLine struct { - line string - indentation int -} - -type buffer struct { - lines []bufferedLine -} - -func newBuffer() *buffer { - return &buffer{ - lines: make([]bufferedLine, 0), - } -} - -func (b *buffer) addLine(line string, indent int) { - b.lines = append(b.lines, bufferedLine{line, indent}) -} - -func (b *buffer) flushLines(w io.Writer) error { - for _, line := range b.lines { - indentation := strings.Repeat("\t", line.indentation) - fullLine := fmt.Sprintf("%s%s", indentation, line.line) - if _, err := io.WriteString(w, fullLine); err != nil { - return err - } - } - return nil -} - -func writeFuncHeader(b *buffer, structName string, indent int) { - s := fmt.Sprintf("var map_%s = map[string]string {\n", structName) - b.addLine(s, indent) -} - -func writeFuncFooter(b *buffer, structName string, indent int) { - b.addLine("}\n", indent) // Closes the map definition - - s := fmt.Sprintf("func (%s) SwaggerDoc() map[string]string {\n", structName) - b.addLine(s, indent) - s = fmt.Sprintf("return map_%s\n", structName) - b.addLine(s, indent+1) - b.addLine("}\n", indent) // Closes the function definition -} - -func writeMapBody(b *buffer, kubeType []Pair, indent int) { - format := "\"%s\": \"%s\",\n" - for _, pair := range kubeType { - s := fmt.Sprintf(format, pair.Name, pair.Doc) - b.addLine(s, indent+2) - } -} - -// ParseDocumentationFrom gets all types' documentation and returns them as an -// array. Each type is again represented as an array (we have to use arrays as we -// need to be sure for the order of the fields). This function returns fields and -// struct definitions that have no documentation as {name, ""}. -func ParseDocumentationFrom(src string) []KubeTypes { - var docForTypes []KubeTypes - - pkg := astFrom(src) - - for _, kubType := range pkg.Types { - if structType, ok := kubType.Decl.Specs[0].(*ast.TypeSpec).Type.(*ast.StructType); ok { - var ks KubeTypes - ks = append(ks, Pair{kubType.Name, fmtRawDoc(kubType.Doc)}) - - for _, field := range structType.Fields.List { - if n := fieldName(field); n != "-" { - fieldDoc := fmtRawDoc(field.Doc.Text()) - ks = append(ks, Pair{n, fieldDoc}) - } - } - docForTypes = append(docForTypes, ks) - } - } - - return docForTypes -} - -// WriteSwaggerDocFunc writes a declaration of a function as a string. This function is used in -// Swagger as a documentation source for structs and theirs fields -func WriteSwaggerDocFunc(kubeTypes []KubeTypes, w io.Writer) error { - for _, kubeType := range kubeTypes { - structName := kubeType[0].Name - kubeType[0].Name = "" - - // Ignore empty documentation - docfulTypes := make(KubeTypes, 0, len(kubeType)) - for _, pair := range kubeType { - if pair.Doc != "" { - docfulTypes = append(docfulTypes, pair) - } - } - - if len(docfulTypes) == 0 { - continue // If no fields and the struct have documentation, skip the function definition - } - - indent := 0 - buffer := newBuffer() - - writeFuncHeader(buffer, structName, indent) - writeMapBody(buffer, docfulTypes, indent) - writeFuncFooter(buffer, structName, indent) - buffer.addLine("\n", 0) - - if err := buffer.flushLines(w); err != nil { - return err - } - } - - return nil -} - -// VerifySwaggerDocsExist writes in a io.Writer a list of structs and fields that -// are missing of documentation. -func VerifySwaggerDocsExist(kubeTypes []KubeTypes, w io.Writer) (int, error) { - missingDocs := 0 - buffer := newBuffer() - - for _, kubeType := range kubeTypes { - structName := kubeType[0].Name - if kubeType[0].Doc == "" { - format := "Missing documentation for the struct itself: %s\n" - s := fmt.Sprintf(format, structName) - buffer.addLine(s, 0) - missingDocs++ - } - kubeType = kubeType[1:] // Skip struct definition - - for _, pair := range kubeType { // Iterate only the fields - if pair.Doc == "" { - format := "In struct: %s, field documentation is missing: %s\n" - s := fmt.Sprintf(format, structName, pair.Name) - buffer.addLine(s, 0) - missingDocs++ - } - } - } - - if err := buffer.flushLines(w); err != nil { - return -1, err - } - return missingDocs, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator_test.go b/pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator_test.go deleted file mode 100644 index a6f338d31..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/swagger_doc_generator_test.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2015 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 runtime - -import ( - "testing" -) - -func TestFmtRawDoc(t *testing.T) { - tests := []struct { - t, expected string - }{ - {"aaa\n --- asd\n TODO: tooooodo\n toooodoooooo\n", "aaa"}, - {"aaa\nasd\n TODO: tooooodo\nbbbb\n --- toooodoooooo\n", "aaa asd bbbb"}, - {" TODO: tooooodo\n", ""}, - {"Par1\n\nPar2\n\n", "Par1\\n\\nPar2"}, - {"", ""}, - {" ", ""}, - {" \n", ""}, - {" \n\n ", ""}, - {"Example:\n\tl1\n\t\tl2\n", "Example:\\n\\tl1\\n\\t\\tl2"}, - } - - for _, test := range tests { - if o := fmtRawDoc(test.t); o != test.expected { - t.Fatalf("Expected: %q, got %q", test.expected, o) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/testing/doc.go b/pseudo/k8s/apimachinery/pkg/runtime/testing/doc.go deleted file mode 100644 index 579b93b2b..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/testing/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -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. -*/ - -// +k8s:deepcopy-gen=package - -package testing // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/testing" diff --git a/pseudo/k8s/apimachinery/pkg/runtime/testing/types.go b/pseudo/k8s/apimachinery/pkg/runtime/testing/types.go deleted file mode 100644 index ff7f6199e..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/testing/types.go +++ /dev/null @@ -1,331 +0,0 @@ -/* -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 testing - -import ( - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" -) - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type EmbeddedTest struct { - runtime.TypeMeta - ID string - Object runtime.Object - EmptyObject runtime.Object -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type EmbeddedTestExternal struct { - runtime.TypeMeta `json:",inline"` - ID string `json:"id,omitempty"` - Object runtime.RawExtension `json:"object,omitempty"` - EmptyObject runtime.RawExtension `json:"emptyObject,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ObjectTest struct { - runtime.TypeMeta - - ID string - Items []runtime.Object -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ObjectTestExternal struct { - runtime.TypeMeta `yaml:",inline" json:",inline"` - - ID string `json:"id,omitempty"` - Items []runtime.RawExtension `json:"items,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type InternalSimple struct { - runtime.TypeMeta `json:",inline"` - TestString string `json:"testString"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalSimple struct { - runtime.TypeMeta `json:",inline"` - TestString string `json:"testString"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExtensionA struct { - runtime.TypeMeta `json:",inline"` - TestString string `json:"testString"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExtensionB struct { - runtime.TypeMeta `json:",inline"` - TestString string `json:"testString"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalExtensionType struct { - runtime.TypeMeta `json:",inline"` - Extension runtime.RawExtension `json:"extension"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type InternalExtensionType struct { - runtime.TypeMeta `json:",inline"` - Extension runtime.Object `json:"extension"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalOptionalExtensionType struct { - runtime.TypeMeta `json:",inline"` - Extension runtime.RawExtension `json:"extension,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type InternalOptionalExtensionType struct { - runtime.TypeMeta `json:",inline"` - Extension runtime.Object `json:"extension,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type InternalComplex struct { - runtime.TypeMeta - String string - Integer int - Integer64 int64 - Int64 int64 - Bool bool -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalComplex struct { - runtime.TypeMeta `json:",inline"` - String string `json:"string" description:"testing"` - Integer int `json:"int"` - Integer64 int64 `json:",omitempty"` - Int64 int64 - Bool bool `json:"bool"` -} - -// Test a weird version/kind embedding format. -// +k8s:deepcopy-gen=false -type MyWeirdCustomEmbeddedVersionKindField struct { - ID string `json:"ID,omitempty"` - APIVersion string `json:"myVersionKey,omitempty"` - ObjectKind string `json:"myKindKey,omitempty"` - Z string `json:"Z,omitempty"` - Y uint64 `json:"Y,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type TestType1 struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` - C int8 `json:"C,omitempty"` - D int16 `json:"D,omitempty"` - E int32 `json:"E,omitempty"` - F int64 `json:"F,omitempty"` - G uint `json:"G,omitempty"` - H uint8 `json:"H,omitempty"` - I uint16 `json:"I,omitempty"` - J uint32 `json:"J,omitempty"` - K uint64 `json:"K,omitempty"` - L bool `json:"L,omitempty"` - M map[string]int `json:"M,omitempty"` - N map[string]TestType2 `json:"N,omitempty"` - O *TestType2 `json:"O,omitempty"` - P []TestType2 `json:"Q,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type TestType2 struct { - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalTestType2 struct { - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalTestType1 struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` - B int `json:"B,omitempty"` - C int8 `json:"C,omitempty"` - D int16 `json:"D,omitempty"` - E int32 `json:"E,omitempty"` - F int64 `json:"F,omitempty"` - G uint `json:"G,omitempty"` - H uint8 `json:"H,omitempty"` - I uint16 `json:"I,omitempty"` - J uint32 `json:"J,omitempty"` - K uint64 `json:"K,omitempty"` - L bool `json:"L,omitempty"` - M map[string]int `json:"M,omitempty"` - N map[string]ExternalTestType2 `json:"N,omitempty"` - O *ExternalTestType2 `json:"O,omitempty"` - P []ExternalTestType2 `json:"Q,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ExternalInternalSame struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A TestType2 `json:"A,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type UnversionedType struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type UnknownType struct { - MyWeirdCustomEmbeddedVersionKindField `json:",inline"` - A string `json:"A,omitempty"` -} - -func (obj *MyWeirdCustomEmbeddedVersionKindField) GetObjectKind() schema.ObjectKind { return obj } -func (obj *MyWeirdCustomEmbeddedVersionKindField) SetGroupVersionKind(gvk schema.GroupVersionKind) { - obj.APIVersion, obj.ObjectKind = gvk.ToAPIVersionAndKind() -} -func (obj *MyWeirdCustomEmbeddedVersionKindField) GroupVersionKind() schema.GroupVersionKind { - return schema.FromAPIVersionAndKind(obj.APIVersion, obj.ObjectKind) -} - -func (obj *TestType2) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } -func (obj *ExternalTestType2) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } - -// +k8s:deepcopy-gen=false -type Unstructured struct { - // Object is a JSON compatible map with string, float, int, bool, []interface{}, or - // map[string]interface{} - // children. - Object map[string]interface{} -} - -var _ runtime.Unstructured = &Unstructured{} - -func (obj *Unstructured) GetObjectKind() schema.ObjectKind { return obj } - -func (obj *Unstructured) IsList() bool { - if obj.Object != nil { - _, ok := obj.Object["items"] - return ok - } - return false -} - -func (obj *Unstructured) EachListItem(fn func(runtime.Object) error) error { - if obj.Object == nil { - return fmt.Errorf("content is not a list") - } - field, ok := obj.Object["items"] - if !ok { - return fmt.Errorf("content is not a list") - } - items, ok := field.([]interface{}) - if !ok { - return nil - } - for _, item := range items { - child, ok := item.(map[string]interface{}) - if !ok { - return fmt.Errorf("items member is not an object") - } - if err := fn(&Unstructured{Object: child}); err != nil { - return err - } - } - return nil -} - -func (obj *Unstructured) NewEmptyInstance() runtime.Unstructured { - out := new(Unstructured) - if obj != nil { - out.SetGroupVersionKind(obj.GroupVersionKind()) - } - return out -} - -func (obj *Unstructured) UnstructuredContent() map[string]interface{} { - if obj.Object == nil { - return make(map[string]interface{}) - } - return obj.Object -} - -func (obj *Unstructured) SetUnstructuredContent(content map[string]interface{}) { - obj.Object = content -} - -// MarshalJSON ensures that the unstructured object produces proper -// JSON when passed to Go's standard JSON library. -func (u *Unstructured) MarshalJSON() ([]byte, error) { - return json.Marshal(u.Object) -} - -// UnmarshalJSON ensures that the unstructured object properly decodes -// JSON when passed to Go's standard JSON library. -func (u *Unstructured) UnmarshalJSON(b []byte) error { - return json.Unmarshal(b, &u.Object) -} - -func (in *Unstructured) DeepCopyObject() runtime.Object { - return in.DeepCopy() -} - -func (in *Unstructured) DeepCopy() *Unstructured { - if in == nil { - return nil - } - out := new(Unstructured) - *out = *in - out.Object = runtime.DeepCopyJSON(in.Object) - return out -} - -func (u *Unstructured) GroupVersionKind() schema.GroupVersionKind { - apiVersion, ok := u.Object["apiVersion"].(string) - if !ok { - return schema.GroupVersionKind{} - } - gv, err := schema.ParseGroupVersion(apiVersion) - if err != nil { - return schema.GroupVersionKind{} - } - kind, ok := u.Object["kind"].(string) - if ok { - return gv.WithKind(kind) - } - return schema.GroupVersionKind{} -} - -func (u *Unstructured) SetGroupVersionKind(gvk schema.GroupVersionKind) { - if u.Object == nil { - u.Object = make(map[string]interface{}) - } - u.Object["apiVersion"] = gvk.GroupVersion().String() - u.Object["kind"] = gvk.Kind -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/testing/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/runtime/testing/zz_generated.deepcopy.go deleted file mode 100644 index 2401a925e..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/testing/zz_generated.deepcopy.go +++ /dev/null @@ -1,629 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package testing - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EmbeddedTest) DeepCopyInto(out *EmbeddedTest) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Object != nil { - out.Object = in.Object.DeepCopyObject() - } - if in.EmptyObject != nil { - out.EmptyObject = in.EmptyObject.DeepCopyObject() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedTest. -func (in *EmbeddedTest) DeepCopy() *EmbeddedTest { - if in == nil { - return nil - } - out := new(EmbeddedTest) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EmbeddedTest) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EmbeddedTestExternal) DeepCopyInto(out *EmbeddedTestExternal) { - *out = *in - out.TypeMeta = in.TypeMeta - in.Object.DeepCopyInto(&out.Object) - in.EmptyObject.DeepCopyInto(&out.EmptyObject) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedTestExternal. -func (in *EmbeddedTestExternal) DeepCopy() *EmbeddedTestExternal { - if in == nil { - return nil - } - out := new(EmbeddedTestExternal) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EmbeddedTestExternal) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExtensionA) DeepCopyInto(out *ExtensionA) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtensionA. -func (in *ExtensionA) DeepCopy() *ExtensionA { - if in == nil { - return nil - } - out := new(ExtensionA) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExtensionA) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExtensionB) DeepCopyInto(out *ExtensionB) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtensionB. -func (in *ExtensionB) DeepCopy() *ExtensionB { - if in == nil { - return nil - } - out := new(ExtensionB) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExtensionB) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalComplex) DeepCopyInto(out *ExternalComplex) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalComplex. -func (in *ExternalComplex) DeepCopy() *ExternalComplex { - if in == nil { - return nil - } - out := new(ExternalComplex) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalComplex) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalExtensionType) DeepCopyInto(out *ExternalExtensionType) { - *out = *in - out.TypeMeta = in.TypeMeta - in.Extension.DeepCopyInto(&out.Extension) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalExtensionType. -func (in *ExternalExtensionType) DeepCopy() *ExternalExtensionType { - if in == nil { - return nil - } - out := new(ExternalExtensionType) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalExtensionType) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalInternalSame) DeepCopyInto(out *ExternalInternalSame) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - out.A = in.A - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalInternalSame. -func (in *ExternalInternalSame) DeepCopy() *ExternalInternalSame { - if in == nil { - return nil - } - out := new(ExternalInternalSame) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalInternalSame) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalOptionalExtensionType) DeepCopyInto(out *ExternalOptionalExtensionType) { - *out = *in - out.TypeMeta = in.TypeMeta - in.Extension.DeepCopyInto(&out.Extension) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalOptionalExtensionType. -func (in *ExternalOptionalExtensionType) DeepCopy() *ExternalOptionalExtensionType { - if in == nil { - return nil - } - out := new(ExternalOptionalExtensionType) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalOptionalExtensionType) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalSimple) DeepCopyInto(out *ExternalSimple) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSimple. -func (in *ExternalSimple) DeepCopy() *ExternalSimple { - if in == nil { - return nil - } - out := new(ExternalSimple) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalSimple) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalTestType1) DeepCopyInto(out *ExternalTestType1) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - if in.M != nil { - in, out := &in.M, &out.M - *out = make(map[string]int, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.N != nil { - in, out := &in.N, &out.N - *out = make(map[string]ExternalTestType2, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.O != nil { - in, out := &in.O, &out.O - *out = new(ExternalTestType2) - **out = **in - } - if in.P != nil { - in, out := &in.P, &out.P - *out = make([]ExternalTestType2, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalTestType1. -func (in *ExternalTestType1) DeepCopy() *ExternalTestType1 { - if in == nil { - return nil - } - out := new(ExternalTestType1) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalTestType1) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ExternalTestType2) DeepCopyInto(out *ExternalTestType2) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalTestType2. -func (in *ExternalTestType2) DeepCopy() *ExternalTestType2 { - if in == nil { - return nil - } - out := new(ExternalTestType2) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ExternalTestType2) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InternalComplex) DeepCopyInto(out *InternalComplex) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalComplex. -func (in *InternalComplex) DeepCopy() *InternalComplex { - if in == nil { - return nil - } - out := new(InternalComplex) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *InternalComplex) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InternalExtensionType) DeepCopyInto(out *InternalExtensionType) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Extension != nil { - out.Extension = in.Extension.DeepCopyObject() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalExtensionType. -func (in *InternalExtensionType) DeepCopy() *InternalExtensionType { - if in == nil { - return nil - } - out := new(InternalExtensionType) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *InternalExtensionType) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InternalOptionalExtensionType) DeepCopyInto(out *InternalOptionalExtensionType) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Extension != nil { - out.Extension = in.Extension.DeepCopyObject() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalOptionalExtensionType. -func (in *InternalOptionalExtensionType) DeepCopy() *InternalOptionalExtensionType { - if in == nil { - return nil - } - out := new(InternalOptionalExtensionType) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *InternalOptionalExtensionType) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InternalSimple) DeepCopyInto(out *InternalSimple) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalSimple. -func (in *InternalSimple) DeepCopy() *InternalSimple { - if in == nil { - return nil - } - out := new(InternalSimple) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *InternalSimple) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectTest) DeepCopyInto(out *ObjectTest) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.Object, len(*in)) - for i := range *in { - if (*in)[i] != nil { - (*out)[i] = (*in)[i].DeepCopyObject() - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectTest. -func (in *ObjectTest) DeepCopy() *ObjectTest { - if in == nil { - return nil - } - out := new(ObjectTest) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ObjectTest) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectTestExternal) DeepCopyInto(out *ObjectTestExternal) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.RawExtension, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectTestExternal. -func (in *ObjectTestExternal) DeepCopy() *ObjectTestExternal { - if in == nil { - return nil - } - out := new(ObjectTestExternal) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ObjectTestExternal) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TestType1) DeepCopyInto(out *TestType1) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - if in.M != nil { - in, out := &in.M, &out.M - *out = make(map[string]int, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.N != nil { - in, out := &in.N, &out.N - *out = make(map[string]TestType2, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.O != nil { - in, out := &in.O, &out.O - *out = new(TestType2) - **out = **in - } - if in.P != nil { - in, out := &in.P, &out.P - *out = make([]TestType2, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType1. -func (in *TestType1) DeepCopy() *TestType1 { - if in == nil { - return nil - } - out := new(TestType1) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TestType1) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TestType2) DeepCopyInto(out *TestType2) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestType2. -func (in *TestType2) DeepCopy() *TestType2 { - if in == nil { - return nil - } - out := new(TestType2) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TestType2) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UnknownType) DeepCopyInto(out *UnknownType) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnknownType. -func (in *UnknownType) DeepCopy() *UnknownType { - if in == nil { - return nil - } - out := new(UnknownType) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UnknownType) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UnversionedType) DeepCopyInto(out *UnversionedType) { - *out = *in - out.MyWeirdCustomEmbeddedVersionKindField = in.MyWeirdCustomEmbeddedVersionKindField - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnversionedType. -func (in *UnversionedType) DeepCopy() *UnversionedType { - if in == nil { - return nil - } - out := new(UnversionedType) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UnversionedType) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/types.go b/pseudo/k8s/apimachinery/pkg/runtime/types.go deleted file mode 100644 index 1f683cd95..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/types.go +++ /dev/null @@ -1,139 +0,0 @@ -/* -Copyright 2014 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 runtime - -// Note that the types provided in this file are not versioned and are intended to be -// safe to use from within all versions of every API object. - -// TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, -// like this: -// type MyAwesomeAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// ... // other fields -// } -// func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind -// -// TypeMeta is provided here for convenience. You may use it directly from this package or define -// your own with the same fields. -// -// +k8s:deepcopy-gen=false -// +protobuf=true -// +k8s:openapi-gen=true -type TypeMeta struct { - // +optional - APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"` - // +optional - Kind string `json:"kind,omitempty" yaml:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"` -} - -const ( - ContentTypeJSON string = "application/json" - ContentTypeYAML string = "application/yaml" - ContentTypeProtobuf string = "application/vnd.kubernetes.protobuf" -) - -// RawExtension is used to hold extensions in external versions. -// -// To use this, make a field which has RawExtension as its type in your external, versioned -// struct, and Object in your internal struct. You also need to register your -// various plugin types. -// -// // Internal package: -// type MyAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// MyPlugin runtime.Object `json:"myPlugin"` -// } -// type PluginA struct { -// AOption string `json:"aOption"` -// } -// -// // External package: -// type MyAPIObject struct { -// runtime.TypeMeta `json:",inline"` -// MyPlugin runtime.RawExtension `json:"myPlugin"` -// } -// type PluginA struct { -// AOption string `json:"aOption"` -// } -// -// // On the wire, the JSON will look something like this: -// { -// "kind":"MyAPIObject", -// "apiVersion":"v1", -// "myPlugin": { -// "kind":"PluginA", -// "aOption":"foo", -// }, -// } -// -// So what happens? Decode first uses json or yaml to unmarshal the serialized data into -// your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. -// The next step is to copy (using pkg/conversion) into the internal struct. The runtime -// package's DefaultScheme has conversion functions installed which will unpack the -// JSON stored in RawExtension, turning it into the correct object type, and storing it -// in the Object. (TODO: In the case where the object is of an unknown type, a -// runtime.Unknown object will be created and stored.) -// -// +k8s:deepcopy-gen=true -// +protobuf=true -// +k8s:openapi-gen=true -type RawExtension struct { - // Raw is the underlying serialization of this object. - // - // TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. - Raw []byte `json:"-" protobuf:"bytes,1,opt,name=raw"` - // Object can hold a representation of this extension - useful for working with versioned - // structs. - Object Object `json:"-"` -} - -// Unknown allows api objects with unknown types to be passed-through. This can be used -// to deal with the API objects from a plug-in. Unknown objects still have functioning -// TypeMeta features-- kind, version, etc. -// TODO: Make this object have easy access to field based accessors and settors for -// metadata and field mutatation. -// -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +protobuf=true -// +k8s:openapi-gen=true -type Unknown struct { - TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"` - // Raw will hold the complete serialized object which couldn't be matched - // with a registered type. Most likely, nothing should be done with this - // except for passing it through the system. - Raw []byte `protobuf:"bytes,2,opt,name=raw"` - // ContentEncoding is encoding used to encode 'Raw' data. - // Unspecified means no encoding. - ContentEncoding string `protobuf:"bytes,3,opt,name=contentEncoding"` - // ContentType is serialization method used to serialize 'Raw'. - // Unspecified means ContentTypeJSON. - ContentType string `protobuf:"bytes,4,opt,name=contentType"` -} - -// VersionedObjects is used by Decoders to give callers a way to access all versions -// of an object during the decoding process. -// -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -// +k8s:deepcopy-gen=true -type VersionedObjects struct { - // Objects is the set of objects retrieved during decoding, in order of conversion. - // The 0 index is the object as serialized on the wire. If conversion has occurred, - // other objects may be present. The right most object is the same as would be returned - // by a normal Decode call. - Objects []Object -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/types_proto.go b/pseudo/k8s/apimachinery/pkg/runtime/types_proto.go deleted file mode 100644 index a82227b23..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/types_proto.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2015 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 runtime - -import ( - "fmt" -) - -type ProtobufMarshaller interface { - MarshalTo(data []byte) (int, error) -} - -type ProtobufReverseMarshaller interface { - MarshalToSizedBuffer(data []byte) (int, error) -} - -// NestedMarshalTo allows a caller to avoid extra allocations during serialization of an Unknown -// that will contain an object that implements ProtobufMarshaller or ProtobufReverseMarshaller. -func (m *Unknown) NestedMarshalTo(data []byte, b ProtobufMarshaller, size uint64) (int, error) { - // Calculate the full size of the message. - msgSize := m.Size() - if b != nil { - msgSize += int(size) + sovGenerated(size) + 1 - } - - // Reverse marshal the fields of m. - i := msgSize - i -= len(m.ContentType) - copy(data[i:], m.ContentType) - i = encodeVarintGenerated(data, i, uint64(len(m.ContentType))) - i-- - data[i] = 0x22 - i -= len(m.ContentEncoding) - copy(data[i:], m.ContentEncoding) - i = encodeVarintGenerated(data, i, uint64(len(m.ContentEncoding))) - i-- - data[i] = 0x1a - if b != nil { - if r, ok := b.(ProtobufReverseMarshaller); ok { - n1, err := r.MarshalToSizedBuffer(data[:i]) - if err != nil { - return 0, err - } - i -= int(size) - if uint64(n1) != size { - // programmer error: the Size() method for protobuf does not match the results of LashramOt, which means the proto - // struct returned would be wrong. - return 0, fmt.Errorf("the Size() value of %T was %d, but NestedMarshalTo wrote %d bytes to data", b, size, n1) - } - } else { - i -= int(size) - n1, err := b.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - if uint64(n1) != size { - // programmer error: the Size() method for protobuf does not match the results of MarshalTo, which means the proto - // struct returned would be wrong. - return 0, fmt.Errorf("the Size() value of %T was %d, but NestedMarshalTo wrote %d bytes to data", b, size, n1) - } - } - i = encodeVarintGenerated(data, i, size) - i-- - data[i] = 0x12 - } - n2, err := m.TypeMeta.MarshalToSizedBuffer(data[:i]) - if err != nil { - return 0, err - } - i -= n2 - i = encodeVarintGenerated(data, i, uint64(n2)) - i-- - data[i] = 0xa - return msgSize - i, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/runtime/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/runtime/zz_generated.deepcopy.go deleted file mode 100644 index 8b9182f35..000000000 --- a/pseudo/k8s/apimachinery/pkg/runtime/zz_generated.deepcopy.go +++ /dev/null @@ -1,108 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package runtime - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RawExtension) DeepCopyInto(out *RawExtension) { - *out = *in - if in.Raw != nil { - in, out := &in.Raw, &out.Raw - *out = make([]byte, len(*in)) - copy(*out, *in) - } - if in.Object != nil { - out.Object = in.Object.DeepCopyObject() - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawExtension. -func (in *RawExtension) DeepCopy() *RawExtension { - if in == nil { - return nil - } - out := new(RawExtension) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Unknown) DeepCopyInto(out *Unknown) { - *out = *in - out.TypeMeta = in.TypeMeta - if in.Raw != nil { - in, out := &in.Raw, &out.Raw - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Unknown. -func (in *Unknown) DeepCopy() *Unknown { - if in == nil { - return nil - } - out := new(Unknown) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new Object. -func (in *Unknown) DeepCopyObject() Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VersionedObjects) DeepCopyInto(out *VersionedObjects) { - *out = *in - if in.Objects != nil { - in, out := &in.Objects, &out.Objects - *out = make([]Object, len(*in)) - for i := range *in { - if (*in)[i] != nil { - (*out)[i] = (*in)[i].DeepCopyObject() - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VersionedObjects. -func (in *VersionedObjects) DeepCopy() *VersionedObjects { - if in == nil { - return nil - } - out := new(VersionedObjects) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new Object. -func (in *VersionedObjects) DeepCopyObject() Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/selection/operator.go b/pseudo/k8s/apimachinery/pkg/selection/operator.go deleted file mode 100644 index 298f798c4..000000000 --- a/pseudo/k8s/apimachinery/pkg/selection/operator.go +++ /dev/null @@ -1,33 +0,0 @@ -/* -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 selection - -// Operator represents a key/field's relationship to value(s). -// See labels.Requirement and fields.Requirement for more details. -type Operator string - -const ( - DoesNotExist Operator = "!" - Equals Operator = "=" - DoubleEquals Operator = "==" - In Operator = "in" - NotEquals Operator = "!=" - NotIn Operator = "notin" - Exists Operator = "exists" - GreaterThan Operator = "gt" - LessThan Operator = "lt" -) diff --git a/pseudo/k8s/apimachinery/pkg/test/api_meta_help_test.go b/pseudo/k8s/apimachinery/pkg/test/api_meta_help_test.go deleted file mode 100644 index e48cc2a22..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/api_meta_help_test.go +++ /dev/null @@ -1,335 +0,0 @@ -/* -Copyright 2014 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 test - -import ( - "reflect" - "testing" - - fuzz "github.com/google/gofuzz" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - metafuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -func TestIsList(t *testing.T) { - tests := []struct { - obj runtime.Object - isList bool - }{ - {&testapigroup.CarpList{}, true}, - {&testapigroup.Carp{}, false}, - } - for _, item := range tests { - if e, a := item.isList, meta.IsListType(item.obj); e != a { - t.Errorf("%v: Expected %v, got %v", reflect.TypeOf(item.obj), e, a) - } - } -} - -func TestExtractList(t *testing.T) { - list1 := []runtime.Object{ - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - } - list2 := &ListV1{ - Items: []runtime.RawExtension{ - {Raw: []byte("foo")}, - {Raw: []byte("bar")}, - {Object: &v1.Carp{ObjectMeta: metav1.ObjectMeta{Name: "other"}}}, - }, - } - list3 := &fakePtrValueList{ - Items: []*testapigroup.Carp{ - {ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - {ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - }, - } - list4 := &testapigroup.CarpList{ - Items: []testapigroup.Carp{ - {ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - {ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - {ObjectMeta: metav1.ObjectMeta{Name: "3"}}, - }, - } - - testCases := []struct { - in runtime.Object - out []interface{} - equal bool - }{ - { - in: &List{}, - out: []interface{}{}, - }, - { - in: &ListV1{}, - out: []interface{}{}, - }, - { - in: &List{Items: list1}, - out: []interface{}{list1[0], list1[1]}, - }, - { - in: list2, - out: []interface{}{&runtime.Unknown{Raw: list2.Items[0].Raw}, &runtime.Unknown{Raw: list2.Items[1].Raw}, list2.Items[2].Object}, - equal: true, - }, - { - in: list3, - out: []interface{}{list3.Items[0], list3.Items[1]}, - }, - { - in: list4, - out: []interface{}{&list4.Items[0], &list4.Items[1], &list4.Items[2]}, - }, - } - for i, test := range testCases { - list, err := meta.ExtractList(test.in) - if err != nil { - t.Fatalf("%d: extract: Unexpected error %v", i, err) - } - if e, a := len(test.out), len(list); e != a { - t.Fatalf("%d: extract: Expected %v, got %v", i, e, a) - } - for j, e := range test.out { - if e != list[j] { - if !test.equal { - t.Fatalf("%d: extract: Expected list[%d] to be %#v, but found %#v", i, j, e, list[j]) - } - if !reflect.DeepEqual(e, list[j]) { - t.Fatalf("%d: extract: Expected list[%d] to be %#v, but found %#v", i, j, e, list[j]) - } - } - } - } -} - -func TestEachListItem(t *testing.T) { - list1 := []runtime.Object{ - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - } - list2 := &ListV1{ - Items: []runtime.RawExtension{ - {Raw: []byte("foo")}, - {Raw: []byte("bar")}, - {Object: &v1.Carp{ObjectMeta: metav1.ObjectMeta{Name: "other"}}}, - }, - } - list3 := &fakePtrValueList{ - Items: []*testapigroup.Carp{ - {ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - {ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - }, - } - list4 := &testapigroup.CarpList{ - Items: []testapigroup.Carp{ - {ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - {ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - {ObjectMeta: metav1.ObjectMeta{Name: "3"}}, - }, - } - - testCases := []struct { - in runtime.Object - out []interface{} - }{ - { - in: &List{}, - out: []interface{}{}, - }, - { - in: &ListV1{}, - out: []interface{}{}, - }, - { - in: &List{Items: list1}, - out: []interface{}{list1[0], list1[1]}, - }, - { - in: list2, - out: []interface{}{nil, nil, list2.Items[2].Object}, - }, - { - in: list3, - out: []interface{}{list3.Items[0], list3.Items[1]}, - }, - { - in: list4, - out: []interface{}{&list4.Items[0], &list4.Items[1], &list4.Items[2]}, - }, - } - for i, test := range testCases { - list := []runtime.Object{} - err := meta.EachListItem(test.in, func(obj runtime.Object) error { - list = append(list, obj) - return nil - }) - if err != nil { - t.Fatalf("%d: each: Unexpected error %v", i, err) - } - if e, a := len(test.out), len(list); e != a { - t.Fatalf("%d: each: Expected %v, got %v", i, e, a) - } - for j, e := range test.out { - if e != list[j] { - t.Fatalf("%d: each: Expected list[%d] to be %#v, but found %#v", i, j, e, list[j]) - } - } - } -} - -type fakePtrInterfaceList struct { - Items *[]runtime.Object -} - -func (obj fakePtrInterfaceList) GetObjectKind() schema.ObjectKind { - return schema.EmptyObjectKind -} -func (obj fakePtrInterfaceList) DeepCopyObject() runtime.Object { - panic("fakePtrInterfaceList does not support DeepCopy") -} - -func TestExtractListOfInterfacePtrs(t *testing.T) { - pl := &fakePtrInterfaceList{ - Items: &[]runtime.Object{}, - } - list, err := meta.ExtractList(pl) - if err != nil { - t.Fatalf("Unexpected error %v", err) - } - if len(list) > 0 { - t.Fatalf("Expected empty list, got %#v", list) - } -} - -type fakePtrValueList struct { - Items []*testapigroup.Carp -} - -func (obj fakePtrValueList) GetObjectKind() schema.ObjectKind { - return schema.EmptyObjectKind -} -func (obj *fakePtrValueList) DeepCopyObject() runtime.Object { - if obj == nil { - return nil - } - clone := fakePtrValueList{ - Items: make([]*testapigroup.Carp, len(obj.Items)), - } - for i, carp := range obj.Items { - clone.Items[i] = carp.DeepCopy() - } - return &clone -} - -func TestSetList(t *testing.T) { - pl := &testapigroup.CarpList{} - list := []runtime.Object{ - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "3"}}, - } - err := meta.SetList(pl, list) - if err != nil { - t.Fatalf("Unexpected error %v", err) - } - if e, a := len(list), len(pl.Items); e != a { - t.Fatalf("Expected %v, got %v", e, a) - } - for i := range list { - if e, a := list[i].(*testapigroup.Carp).Name, pl.Items[i].Name; e != a { - t.Fatalf("Expected %v, got %v", e, a) - } - } -} - -func TestSetListToRuntimeObjectArray(t *testing.T) { - pl := &List{} - list := []runtime.Object{ - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "2"}}, - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "3"}}, - } - err := meta.SetList(pl, list) - if err != nil { - t.Fatalf("Unexpected error %v", err) - } - if e, a := len(list), len(pl.Items); e != a { - t.Fatalf("Expected %v, got %v", e, a) - } - for i := range list { - if e, a := list[i], pl.Items[i]; e != a { - t.Fatalf("%d: unmatched: %s", i, diff.ObjectDiff(e, a)) - } - } -} - -func TestSetListToMatchingType(t *testing.T) { - pl := &unstructured.UnstructuredList{} - list := []runtime.Object{ - &unstructured.Unstructured{Object: map[string]interface{}{"foo": 1}}, - &unstructured.Unstructured{Object: map[string]interface{}{"foo": 2}}, - &unstructured.Unstructured{Object: map[string]interface{}{"foo": 3}}, - } - err := meta.SetList(pl, list) - if err != nil { - t.Fatalf("Unexpected error %v", err) - } - if e, a := len(list), len(pl.Items); e != a { - t.Fatalf("Expected %v, got %v", e, a) - } - for i := range list { - if e, a := list[i], &pl.Items[i]; !reflect.DeepEqual(e, a) { - t.Fatalf("%d: unmatched: %s", i, diff.ObjectDiff(e, a)) - } - } -} - -func TestSetExtractListRoundTrip(t *testing.T) { - scheme := runtime.NewScheme() - codecs := serializer.NewCodecFactory(scheme) - fuzzer := fuzz.New().NilChance(0).NumElements(1, 5).Funcs(metafuzzer.Funcs(codecs)...).MaxDepth(10) - for i := 0; i < 5; i++ { - start := &testapigroup.CarpList{} - fuzzer.Fuzz(&start.Items) - - list, err := meta.ExtractList(start) - if err != nil { - t.Errorf("Unexpected error %v", err) - continue - } - got := &testapigroup.CarpList{} - err = meta.SetList(got, list) - if err != nil { - t.Errorf("Unexpected error %v", err) - continue - } - if e, a := start, got; !reflect.DeepEqual(e, a) { - t.Fatalf("Expected %#v, got %#v", e, a) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/test/api_meta_meta_test.go b/pseudo/k8s/apimachinery/pkg/test/api_meta_meta_test.go deleted file mode 100644 index 88a9de305..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/api_meta_meta_test.go +++ /dev/null @@ -1,435 +0,0 @@ -/* -Copyright 2014 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 test - -import ( - "reflect" - "testing" - - fuzz "github.com/google/gofuzz" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/meta" - metafuzzer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/fuzzer" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -func TestAPIObjectMeta(t *testing.T) { - j := &testapigroup.Carp{ - TypeMeta: metav1.TypeMeta{APIVersion: "/a", Kind: "b"}, - ObjectMeta: metav1.ObjectMeta{ - Namespace: "bar", - Name: "foo", - GenerateName: "prefix", - UID: "uid", - ResourceVersion: "1", - SelfLink: "some/place/only/we/know", - Labels: map[string]string{"foo": "bar"}, - Annotations: map[string]string{"x": "y"}, - Finalizers: []string{ - "finalizer.1", - "finalizer.2", - }, - }, - } - var _ metav1.Object = &j.ObjectMeta - var _ metav1.ObjectMetaAccessor = j - accessor, err := meta.Accessor(j) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if accessor != metav1.Object(j) { - t.Fatalf("should have returned the same pointer: %#v\n\n%#v", accessor, j) - } - if e, a := "bar", accessor.GetNamespace(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "foo", accessor.GetName(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "prefix", accessor.GetGenerateName(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "uid", string(accessor.GetUID()); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "1", accessor.GetResourceVersion(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "some/place/only/we/know", accessor.GetSelfLink(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := []string{"finalizer.1", "finalizer.2"}, accessor.GetFinalizers(); !reflect.DeepEqual(e, a) { - t.Errorf("expected %v, got %v", e, a) - } - - typeAccessor, err := meta.TypeAccessor(j) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if e, a := "a", typeAccessor.GetAPIVersion(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "b", typeAccessor.GetKind(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - - accessor.SetNamespace("baz") - accessor.SetName("bar") - accessor.SetGenerateName("generate") - accessor.SetUID("other") - typeAccessor.SetAPIVersion("c") - typeAccessor.SetKind("d") - accessor.SetResourceVersion("2") - accessor.SetSelfLink("google.com") - accessor.SetFinalizers([]string{"finalizer.3"}) - - // Prove that accessor changes the original object. - if e, a := "baz", j.Namespace; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "bar", j.Name; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "generate", j.GenerateName; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := types.UID("other"), j.UID; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "c", j.APIVersion; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "d", j.Kind; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "2", j.ResourceVersion; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "google.com", j.SelfLink; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := []string{"finalizer.3"}, j.Finalizers; !reflect.DeepEqual(e, a) { - t.Errorf("expected %v, got %v", e, a) - } - - typeAccessor.SetAPIVersion("d") - typeAccessor.SetKind("e") - if e, a := "d", j.APIVersion; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "e", j.Kind; e != a { - t.Errorf("expected %v, got %v", e, a) - } -} - -func TestGenericTypeMeta(t *testing.T) { - type TypeMeta struct { - Kind string `json:"kind,omitempty"` - Namespace string `json:"namespace,omitempty"` - Name string `json:"name,omitempty"` - GenerateName string `json:"generateName,omitempty"` - UID string `json:"uid,omitempty"` - CreationTimestamp metav1.Time `json:"creationTimestamp,omitempty"` - SelfLink string `json:"selfLink,omitempty"` - ResourceVersion string `json:"resourceVersion,omitempty"` - APIVersion string `json:"apiVersion,omitempty"` - Labels map[string]string `json:"labels,omitempty"` - Annotations map[string]string `json:"annotations,omitempty"` - OwnerReferences []metav1.OwnerReference `json:"ownerReferences,omitempty"` - Finalizers []string `json:"finalizers,omitempty"` - } - - j := struct{ TypeMeta }{TypeMeta{APIVersion: "a", Kind: "b"}} - - typeAccessor, err := meta.TypeAccessor(&j) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - if e, a := "a", typeAccessor.GetAPIVersion(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "b", typeAccessor.GetKind(); e != a { - t.Errorf("expected %v, got %v", e, a) - } - - typeAccessor.SetAPIVersion("c") - typeAccessor.SetKind("d") - - if e, a := "c", j.APIVersion; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "d", j.Kind; e != a { - t.Errorf("expected %v, got %v", e, a) - } - - typeAccessor.SetAPIVersion("d") - typeAccessor.SetKind("e") - - if e, a := "d", j.APIVersion; e != a { - t.Errorf("expected %v, got %v", e, a) - } - if e, a := "e", j.Kind; e != a { - t.Errorf("expected %v, got %v", e, a) - } -} - -type InternalTypeMeta struct { - Kind string `json:"kind,omitempty"` - Namespace string `json:"namespace,omitempty"` - Name string `json:"name,omitempty"` - GenerateName string `json:"generateName,omitempty"` - UID string `json:"uid,omitempty"` - CreationTimestamp metav1.Time `json:"creationTimestamp,omitempty"` - SelfLink string `json:"selfLink,omitempty"` - ResourceVersion string `json:"resourceVersion,omitempty"` - Continue string `json:"next,omitempty"` - RemainingItemCount *int64 `json:"remainingItemCount,omitempty"` - APIVersion string `json:"apiVersion,omitempty"` - Labels map[string]string `json:"labels,omitempty"` - Annotations map[string]string `json:"annotations,omitempty"` - Finalizers []string `json:"finalizers,omitempty"` - OwnerReferences []metav1.OwnerReference `json:"ownerReferences,omitempty"` -} - -func (m *InternalTypeMeta) GetResourceVersion() string { return m.ResourceVersion } -func (m *InternalTypeMeta) SetResourceVersion(rv string) { m.ResourceVersion = rv } -func (m *InternalTypeMeta) GetSelfLink() string { return m.SelfLink } -func (m *InternalTypeMeta) SetSelfLink(link string) { m.SelfLink = link } -func (m *InternalTypeMeta) GetContinue() string { return m.Continue } -func (m *InternalTypeMeta) SetContinue(c string) { m.Continue = c } -func (m *InternalTypeMeta) GetRemainingItemCount() *int64 { return m.RemainingItemCount } -func (m *InternalTypeMeta) SetRemainingItemCount(c *int64) { m.RemainingItemCount = c } - -type MyAPIObject struct { - TypeMeta InternalTypeMeta `json:",inline"` -} - -func (obj *MyAPIObject) GetListMeta() metav1.ListInterface { return &obj.TypeMeta } - -func (obj *MyAPIObject) GetObjectKind() schema.ObjectKind { return obj } -func (obj *MyAPIObject) SetGroupVersionKind(gvk schema.GroupVersionKind) { - obj.TypeMeta.APIVersion, obj.TypeMeta.Kind = gvk.ToAPIVersionAndKind() -} -func (obj *MyAPIObject) GroupVersionKind() schema.GroupVersionKind { - return schema.FromAPIVersionAndKind(obj.TypeMeta.APIVersion, obj.TypeMeta.Kind) -} -func (obj *MyAPIObject) DeepCopyObject() runtime.Object { - panic("MyAPIObject does not support DeepCopy") -} - -type MyIncorrectlyMarkedAsAPIObject struct{} - -func (obj *MyIncorrectlyMarkedAsAPIObject) GetObjectKind() schema.ObjectKind { - return schema.EmptyObjectKind -} -func (obj *MyIncorrectlyMarkedAsAPIObject) DeepCopyObject() runtime.Object { - panic("MyIncorrectlyMarkedAsAPIObject does not support DeepCopy") -} - -func TestResourceVersionerOfAPI(t *testing.T) { - type T struct { - runtime.Object - Expected string - } - testCases := map[string]T{ - "empty api object": {&MyAPIObject{}, ""}, - "api object with version": {&MyAPIObject{TypeMeta: InternalTypeMeta{ResourceVersion: "1"}}, "1"}, - "pointer to api object with version": {&MyAPIObject{TypeMeta: InternalTypeMeta{ResourceVersion: "1"}}, "1"}, - } - versioning := meta.NewAccessor() - for key, testCase := range testCases { - actual, err := versioning.ResourceVersion(testCase.Object) - if err != nil { - t.Errorf("%s: unexpected error %#v", key, err) - } - if actual != testCase.Expected { - t.Errorf("%s: expected %v, got %v", key, testCase.Expected, actual) - } - } - - failingCases := map[string]struct { - runtime.Object - Expected string - }{ - "not a valid object to try": {&MyIncorrectlyMarkedAsAPIObject{}, "1"}, - } - for key, testCase := range failingCases { - _, err := versioning.ResourceVersion(testCase.Object) - if err == nil { - t.Errorf("%s: expected error, got nil", key) - } - } - - setCases := map[string]struct { - runtime.Object - Expected string - }{ - "pointer to api object with version": {&MyAPIObject{TypeMeta: InternalTypeMeta{ResourceVersion: "1"}}, "1"}, - } - for key, testCase := range setCases { - if err := versioning.SetResourceVersion(testCase.Object, "5"); err != nil { - t.Errorf("%s: unexpected error %#v", key, err) - } - actual, err := versioning.ResourceVersion(testCase.Object) - if err != nil { - t.Errorf("%s: unexpected error %#v", key, err) - } - if actual != "5" { - t.Errorf("%s: expected %v, got %v", key, "5", actual) - } - } -} - -func TestTypeMetaSelfLinker(t *testing.T) { - table := map[string]struct { - obj runtime.Object - expect string - try string - succeed bool - }{ - "normal": { - obj: &MyAPIObject{TypeMeta: InternalTypeMeta{SelfLink: "foobar"}}, - expect: "foobar", - try: "newbar", - succeed: true, - }, - "fail": { - obj: &MyIncorrectlyMarkedAsAPIObject{}, - succeed: false, - }, - } - - linker := runtime.SelfLinker(meta.NewAccessor()) - for name, item := range table { - got, err := linker.SelfLink(item.obj) - if e, a := item.succeed, err == nil; e != a { - t.Errorf("%v: expected %v, got %v", name, e, a) - } - if e, a := item.expect, got; item.succeed && e != a { - t.Errorf("%v: expected %v, got %v", name, e, a) - } - - err = linker.SetSelfLink(item.obj, item.try) - if e, a := item.succeed, err == nil; e != a { - t.Errorf("%v: expected %v, got %v", name, e, a) - } - if item.succeed { - got, err := linker.SelfLink(item.obj) - if err != nil { - t.Errorf("%v: expected no err, got %v", name, err) - } - if e, a := item.try, got; e != a { - t.Errorf("%v: expected %v, got %v", name, e, a) - } - } - } -} - -type MyAPIObject2 struct { - metav1.TypeMeta - metav1.ObjectMeta -} - -func getObjectMetaAndOwnerReferences() (myAPIObject2 MyAPIObject2, metaOwnerReferences []metav1.OwnerReference) { - scheme := runtime.NewScheme() - codecs := serializer.NewCodecFactory(scheme) - fuzz.New().NilChance(.5).NumElements(1, 5).Funcs(metafuzzer.Funcs(codecs)...).MaxDepth(10).Fuzz(&myAPIObject2) - references := myAPIObject2.ObjectMeta.OwnerReferences - // This is necessary for the test to pass because the getter will return a - // non-nil slice. - metaOwnerReferences = make([]metav1.OwnerReference, 0) - for i := 0; i < len(references); i++ { - metaOwnerReferences = append(metaOwnerReferences, metav1.OwnerReference{ - Kind: references[i].Kind, - Name: references[i].Name, - UID: references[i].UID, - APIVersion: references[i].APIVersion, - Controller: references[i].Controller, - BlockOwnerDeletion: references[i].BlockOwnerDeletion, - }) - } - if len(references) == 0 { - // This is necessary for the test to pass because the setter will make a - // non-nil slice. - myAPIObject2.ObjectMeta.OwnerReferences = make([]metav1.OwnerReference, 0) - } - return myAPIObject2, metaOwnerReferences -} - -func testGetOwnerReferences(t *testing.T) { - obj, expected := getObjectMetaAndOwnerReferences() - accessor, err := meta.Accessor(&obj) - if err != nil { - t.Error(err) - } - references := accessor.GetOwnerReferences() - if !reflect.DeepEqual(references, expected) { - t.Errorf("expect %#v\n got %#v", expected, references) - } -} - -func testSetOwnerReferences(t *testing.T) { - expected, references := getObjectMetaAndOwnerReferences() - obj := MyAPIObject2{} - accessor, err := meta.Accessor(&obj) - if err != nil { - t.Error(err) - } - accessor.SetOwnerReferences(references) - if e, a := expected.ObjectMeta.OwnerReferences, obj.ObjectMeta.OwnerReferences; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v\n got %#v", e, a) - } -} - -func TestAccessOwnerReferences(t *testing.T) { - fuzzIter := 5 - for i := 0; i < fuzzIter; i++ { - testGetOwnerReferences(t) - testSetOwnerReferences(t) - } -} - -// BenchmarkAccessorSetFastPath shows the interface fast path -func BenchmarkAccessorSetFastPath(b *testing.B) { - obj := &testapigroup.Carp{ - TypeMeta: metav1.TypeMeta{APIVersion: "/a", Kind: "b"}, - ObjectMeta: metav1.ObjectMeta{ - Namespace: "bar", - Name: "foo", - GenerateName: "prefix", - UID: "uid", - ResourceVersion: "1", - SelfLink: "some/place/only/we/know", - Labels: map[string]string{"foo": "bar"}, - Annotations: map[string]string{"x": "y"}, - }, - } - - b.ResetTimer() - for i := 0; i < b.N; i++ { - acc, err := meta.Accessor(obj) - if err != nil { - b.Fatal(err) - } - acc.SetNamespace("something") - } - b.StopTimer() -} diff --git a/pseudo/k8s/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go b/pseudo/k8s/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go deleted file mode 100644 index ba1f0fff4..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go +++ /dev/null @@ -1,568 +0,0 @@ -/* -Copyright 2015 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 test - -import ( - "fmt" - "reflect" - "strconv" - "strings" - "testing" - "time" - - apitesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" -) - -func TestDecodeUnstructured(t *testing.T) { - groupVersionString := "v1" - rawJson := fmt.Sprintf(`{"kind":"Pod","apiVersion":"%s","metadata":{"name":"test"}}`, groupVersionString) - pl := &List{ - Items: []runtime.Object{ - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - &runtime.Unknown{ - TypeMeta: runtime.TypeMeta{Kind: "Pod", APIVersion: groupVersionString}, - Raw: []byte(rawJson), - ContentType: runtime.ContentTypeJSON, - }, - &runtime.Unknown{ - TypeMeta: runtime.TypeMeta{Kind: "", APIVersion: groupVersionString}, - Raw: []byte(rawJson), - ContentType: runtime.ContentTypeJSON, - }, - &unstructured.Unstructured{ - Object: map[string]interface{}{ - "kind": "Foo", - "apiVersion": "Bar", - "test": "value", - }, - }, - }, - } - if errs := runtime.DecodeList(pl.Items, unstructured.UnstructuredJSONScheme); len(errs) == 1 { - t.Fatalf("unexpected error %v", errs) - } - if pod, ok := pl.Items[1].(*unstructured.Unstructured); !ok || pod.Object["kind"] != "Pod" || pod.Object["metadata"].(map[string]interface{})["name"] != "test" { - t.Errorf("object not converted: %#v", pl.Items[1]) - } - if pod, ok := pl.Items[2].(*unstructured.Unstructured); !ok || pod.Object["kind"] != "Pod" || pod.Object["metadata"].(map[string]interface{})["name"] != "test" { - t.Errorf("object not converted: %#v", pl.Items[2]) - } -} - -func TestDecode(t *testing.T) { - tcs := []struct { - json []byte - want runtime.Object - }{ - { - json: []byte(`{"apiVersion": "test", "kind": "test_kind"}`), - want: &unstructured.Unstructured{ - Object: map[string]interface{}{"apiVersion": "test", "kind": "test_kind"}, - }, - }, - { - json: []byte(`{"apiVersion": "test", "kind": "test_list", "items": []}`), - want: &unstructured.UnstructuredList{ - Object: map[string]interface{}{"apiVersion": "test", "kind": "test_list"}, - Items: []unstructured.Unstructured{}, - }, - }, - { - json: []byte(`{"items": [{"metadata": {"name": "object1", "deletionGracePeriodSeconds": 10}, "apiVersion": "test", "kind": "test_kind"}, {"metadata": {"name": "object2"}, "apiVersion": "test", "kind": "test_kind"}], "apiVersion": "test", "kind": "test_list"}`), - want: &unstructured.UnstructuredList{ - Object: map[string]interface{}{"apiVersion": "test", "kind": "test_list"}, - Items: []unstructured.Unstructured{ - { - Object: map[string]interface{}{ - "metadata": map[string]interface{}{"name": "object1", "deletionGracePeriodSeconds": int64(10)}, - "apiVersion": "test", - "kind": "test_kind", - }, - }, - { - Object: map[string]interface{}{ - "metadata": map[string]interface{}{"name": "object2"}, - "apiVersion": "test", - "kind": "test_kind", - }, - }, - }, - }, - }, - } - - for _, tc := range tcs { - got, _, err := unstructured.UnstructuredJSONScheme.Decode(tc.json, nil, nil) - if err != nil { - t.Errorf("Unexpected error for %q: %v", string(tc.json), err) - continue - } - - if !reflect.DeepEqual(got, tc.want) { - t.Errorf("Decode(%q) want: %v\ngot: %v", string(tc.json), tc.want, got) - } - } -} - -func TestUnstructuredGetters(t *testing.T) { - trueVar := true - ten := int64(10) - unstruct := unstructured.Unstructured{ - Object: map[string]interface{}{ - "kind": "test_kind", - "apiVersion": "test_version", - "metadata": map[string]interface{}{ - "name": "test_name", - "namespace": "test_namespace", - "generateName": "test_generateName", - "uid": "test_uid", - "resourceVersion": "test_resourceVersion", - "generation": ten, - "deletionGracePeriodSeconds": ten, - "selfLink": "test_selfLink", - "creationTimestamp": "2009-11-10T23:00:00Z", - "deletionTimestamp": "2010-11-10T23:00:00Z", - "labels": map[string]interface{}{ - "test_label": "test_value", - }, - "annotations": map[string]interface{}{ - "test_annotation": "test_value", - }, - "ownerReferences": []interface{}{ - map[string]interface{}{ - "kind": "Pod", - "name": "poda", - "apiVersion": "v1", - "uid": "1", - }, - map[string]interface{}{ - "kind": "Pod", - "name": "podb", - "apiVersion": "v1", - "uid": "2", - // though these fields are of type *bool, but when - // decoded from JSON, they are unmarshalled as bool. - "controller": true, - "blockOwnerDeletion": true, - }, - }, - "finalizers": []interface{}{ - "finalizer.1", - "finalizer.2", - }, - "clusterName": "cluster123", - }, - }, - } - - if got, want := unstruct.GetAPIVersion(), "test_version"; got != want { - t.Errorf("GetAPIVersions() = %s, want %s", got, want) - } - - if got, want := unstruct.GetKind(), "test_kind"; got != want { - t.Errorf("GetKind() = %s, want %s", got, want) - } - - if got, want := unstruct.GetNamespace(), "test_namespace"; got != want { - t.Errorf("GetNamespace() = %s, want %s", got, want) - } - - if got, want := unstruct.GetName(), "test_name"; got != want { - t.Errorf("GetName() = %s, want %s", got, want) - } - - if got, want := unstruct.GetGenerateName(), "test_generateName"; got != want { - t.Errorf("GetGenerateName() = %s, want %s", got, want) - } - - if got, want := unstruct.GetUID(), types.UID("test_uid"); got != want { - t.Errorf("GetUID() = %s, want %s", got, want) - } - - if got, want := unstruct.GetResourceVersion(), "test_resourceVersion"; got != want { - t.Errorf("GetResourceVersion() = %s, want %s", got, want) - } - - if got, want := unstruct.GetSelfLink(), "test_selfLink"; got != want { - t.Errorf("GetSelfLink() = %s, want %s", got, want) - } - - if got, want := unstruct.GetCreationTimestamp(), metav1.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC); !got.Equal(&want) { - t.Errorf("GetCreationTimestamp() = %s, want %s", got, want) - } - - if got, want := unstruct.GetDeletionTimestamp(), metav1.Date(2010, time.November, 10, 23, 0, 0, 0, time.UTC); got == nil || !got.Equal(&want) { - t.Errorf("GetDeletionTimestamp() = %s, want %s", got, want) - } - - if got, want := unstruct.GetLabels(), map[string]string{"test_label": "test_value"}; !reflect.DeepEqual(got, want) { - t.Errorf("GetLabels() = %s, want %s", got, want) - } - - if got, want := unstruct.GetAnnotations(), map[string]string{"test_annotation": "test_value"}; !reflect.DeepEqual(got, want) { - t.Errorf("GetAnnotations() = %s, want %s", got, want) - } - refs := unstruct.GetOwnerReferences() - expectedOwnerReferences := []metav1.OwnerReference{ - { - Kind: "Pod", - Name: "poda", - APIVersion: "v1", - UID: "1", - }, - { - Kind: "Pod", - Name: "podb", - APIVersion: "v1", - UID: "2", - Controller: &trueVar, - BlockOwnerDeletion: &trueVar, - }, - } - if got, want := refs, expectedOwnerReferences; !reflect.DeepEqual(got, want) { - t.Errorf("GetOwnerReferences()=%v, want %v", got, want) - } - if got, want := unstruct.GetFinalizers(), []string{"finalizer.1", "finalizer.2"}; !reflect.DeepEqual(got, want) { - t.Errorf("GetFinalizers()=%v, want %v", got, want) - } - if got, want := unstruct.GetClusterName(), "cluster123"; got != want { - t.Errorf("GetClusterName()=%v, want %v", got, want) - } - if got, want := unstruct.GetDeletionGracePeriodSeconds(), &ten; !reflect.DeepEqual(got, want) { - t.Errorf("GetDeletionGracePeriodSeconds()=%v, want %v", got, want) - } - if got, want := unstruct.GetGeneration(), ten; !reflect.DeepEqual(got, want) { - t.Errorf("GetGeneration()=%v, want %v", got, want) - } -} - -func TestUnstructuredSetters(t *testing.T) { - unstruct := unstructured.Unstructured{} - trueVar := true - ten := int64(10) - - want := unstructured.Unstructured{ - Object: map[string]interface{}{ - "kind": "test_kind", - "apiVersion": "test_version", - "metadata": map[string]interface{}{ - "name": "test_name", - "namespace": "test_namespace", - "generateName": "test_generateName", - "uid": "test_uid", - "resourceVersion": "test_resourceVersion", - "selfLink": "test_selfLink", - "creationTimestamp": "2009-11-10T23:00:00Z", - "deletionTimestamp": "2010-11-10T23:00:00Z", - "deletionGracePeriodSeconds": ten, - "generation": ten, - "labels": map[string]interface{}{ - "test_label": "test_value", - }, - "annotations": map[string]interface{}{ - "test_annotation": "test_value", - }, - "ownerReferences": []interface{}{ - map[string]interface{}{ - "kind": "Pod", - "name": "poda", - "apiVersion": "v1", - "uid": "1", - }, - map[string]interface{}{ - "kind": "Pod", - "name": "podb", - "apiVersion": "v1", - "uid": "2", - "controller": true, - "blockOwnerDeletion": true, - }, - }, - "finalizers": []interface{}{ - "finalizer.1", - "finalizer.2", - }, - "clusterName": "cluster123", - }, - }, - } - - unstruct.SetAPIVersion("test_version") - unstruct.SetKind("test_kind") - unstruct.SetNamespace("test_namespace") - unstruct.SetName("test_name") - unstruct.SetGenerateName("test_generateName") - unstruct.SetUID(types.UID("test_uid")) - unstruct.SetResourceVersion("test_resourceVersion") - unstruct.SetSelfLink("test_selfLink") - unstruct.SetCreationTimestamp(metav1.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)) - date := metav1.Date(2010, time.November, 10, 23, 0, 0, 0, time.UTC) - unstruct.SetDeletionTimestamp(&date) - unstruct.SetLabels(map[string]string{"test_label": "test_value"}) - unstruct.SetAnnotations(map[string]string{"test_annotation": "test_value"}) - newOwnerReferences := []metav1.OwnerReference{ - { - Kind: "Pod", - Name: "poda", - APIVersion: "v1", - UID: "1", - }, - { - Kind: "Pod", - Name: "podb", - APIVersion: "v1", - UID: "2", - Controller: &trueVar, - BlockOwnerDeletion: &trueVar, - }, - } - unstruct.SetOwnerReferences(newOwnerReferences) - unstruct.SetFinalizers([]string{"finalizer.1", "finalizer.2"}) - unstruct.SetClusterName("cluster123") - unstruct.SetDeletionGracePeriodSeconds(&ten) - unstruct.SetGeneration(ten) - - if !reflect.DeepEqual(unstruct, want) { - t.Errorf("Wanted: \n%s\n Got:\n%s", want, unstruct) - } -} - -func TestOwnerReferences(t *testing.T) { - t.Parallel() - trueVar := true - falseVar := false - refs := []metav1.OwnerReference{ - { - APIVersion: "v2", - Kind: "K2", - Name: "n2", - UID: types.UID("abc1"), - }, - { - APIVersion: "v1", - Kind: "K1", - Name: "n1", - UID: types.UID("abc2"), - Controller: &trueVar, - BlockOwnerDeletion: &falseVar, - }, - { - APIVersion: "v3", - Kind: "K3", - Name: "n3", - UID: types.UID("abc3"), - Controller: &falseVar, - BlockOwnerDeletion: &trueVar, - }, - } - for i, ref := range refs { - ref := ref - t.Run(strconv.Itoa(i), func(t *testing.T) { - t.Parallel() - u1 := unstructured.Unstructured{ - Object: make(map[string]interface{}), - } - refsX := []metav1.OwnerReference{ref} - u1.SetOwnerReferences(refsX) - - have := u1.GetOwnerReferences() - if !reflect.DeepEqual(have, refsX) { - t.Errorf("Object references are not the same: %#v != %#v", have, refsX) - } - }) - } -} - -func TestUnstructuredListGetters(t *testing.T) { - unstruct := unstructured.UnstructuredList{ - Object: map[string]interface{}{ - "kind": "test_kind", - "apiVersion": "test_version", - "metadata": map[string]interface{}{ - "resourceVersion": "test_resourceVersion", - "selfLink": "test_selfLink", - }, - }, - } - - if got, want := unstruct.GetAPIVersion(), "test_version"; got != want { - t.Errorf("GetAPIVersions() = %s, want %s", got, want) - } - - if got, want := unstruct.GetKind(), "test_kind"; got != want { - t.Errorf("GetKind() = %s, want %s", got, want) - } - - if got, want := unstruct.GetResourceVersion(), "test_resourceVersion"; got != want { - t.Errorf("GetResourceVersion() = %s, want %s", got, want) - } - - if got, want := unstruct.GetSelfLink(), "test_selfLink"; got != want { - t.Errorf("GetSelfLink() = %s, want %s", got, want) - } -} - -func TestUnstructuredListSetters(t *testing.T) { - unstruct := unstructured.UnstructuredList{} - - want := unstructured.UnstructuredList{ - Object: map[string]interface{}{ - "kind": "test_kind", - "apiVersion": "test_version", - "metadata": map[string]interface{}{ - "resourceVersion": "test_resourceVersion", - "selfLink": "test_selfLink", - }, - }, - } - - unstruct.SetAPIVersion("test_version") - unstruct.SetKind("test_kind") - unstruct.SetResourceVersion("test_resourceVersion") - unstruct.SetSelfLink("test_selfLink") - - if !reflect.DeepEqual(unstruct, want) { - t.Errorf("Wanted: \n%s\n Got:\n%s", unstruct, want) - } -} - -func TestDecodeNumbers(t *testing.T) { - - // Start with a valid pod - originalJSON := []byte(`{ - "kind":"Carp", - "apiVersion":"v1", - "metadata":{"name":"pod","namespace":"foo"}, - "spec":{ - "containers":[{"name":"container","image":"container"}], - "activeDeadlineSeconds":1000030003 - } - }`) - - pod := &testapigroup.Carp{} - - _, codecs := TestScheme() - codec := apitesting.TestCodec(codecs, schema.GroupVersion{Group: "", Version: runtime.APIVersionInternal}) - - err := runtime.DecodeInto(codec, originalJSON, pod) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - // Round-trip with unstructured codec - unstructuredObj, err := runtime.Decode(unstructured.UnstructuredJSONScheme, originalJSON) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - roundtripJSON, err := runtime.Encode(unstructured.UnstructuredJSONScheme, unstructuredObj) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - - // Make sure we serialize back out in int form - if !strings.Contains(string(roundtripJSON), `"activeDeadlineSeconds":1000030003`) { - t.Errorf("Expected %s, got %s", `"activeDeadlineSeconds":1000030003`, string(roundtripJSON)) - } - - // Decode with structured codec again - obj2, err := runtime.Decode(codec, roundtripJSON) - if err != nil { - t.Fatalf("unexpected error: %v", err) - } - // ensure pod is still valid - pod2, ok := obj2.(*testapigroup.Carp) - if !ok { - t.Fatalf("expected an *api.Pod, got %#v", obj2) - } - - // ensure round-trip preserved large integers - if !reflect.DeepEqual(pod, pod2) { - t.Fatalf("Expected\n\t%#v, got \n\t%#v", pod, pod2) - } -} - -// TestAccessorMethods does opaque roundtrip testing against an Unstructured -// instance's Object methods to ensure that what is "Set" matches what you -// subsequently "Get" without any assertions against internal state. -func TestAccessorMethods(t *testing.T) { - int64p := func(i int) *int64 { - v := int64(i) - return &v - } - tests := []struct { - accessor string - val interface{} - nilVal reflect.Value - }{ - {accessor: "Namespace", val: "foo"}, - {accessor: "Name", val: "bar"}, - {accessor: "GenerateName", val: "baz"}, - {accessor: "UID", val: types.UID("uid")}, - {accessor: "ResourceVersion", val: "1"}, - {accessor: "Generation", val: int64(5)}, - {accessor: "SelfLink", val: "/foo"}, - // TODO: Handle timestamps, which are being marshalled as UTC and - // unmarshalled as Local. - // https://github.com/kubernetes/kubernetes/issues/21402 - // {accessor: "CreationTimestamp", val: someTime}, - // {accessor: "DeletionTimestamp", val: someTimeP}, - {accessor: "DeletionTimestamp", nilVal: reflect.ValueOf((*metav1.Time)(nil))}, - {accessor: "DeletionGracePeriodSeconds", val: int64p(10)}, - {accessor: "DeletionGracePeriodSeconds", val: int64p(0)}, - {accessor: "DeletionGracePeriodSeconds", nilVal: reflect.ValueOf((*int64)(nil))}, - {accessor: "Labels", val: map[string]string{"foo": "bar"}}, - {accessor: "Annotations", val: map[string]string{"foo": "bar"}}, - {accessor: "Finalizers", val: []string{"foo"}}, - {accessor: "OwnerReferences", val: []metav1.OwnerReference{{Name: "foo"}}}, - {accessor: "ClusterName", val: "foo"}, - } - for i, test := range tests { - t.Logf("evaluating test %d (%s)", i, test.accessor) - - u := &unstructured.Unstructured{} - setter := reflect.ValueOf(u).MethodByName("Set" + test.accessor) - getter := reflect.ValueOf(u).MethodByName("Get" + test.accessor) - - args := []reflect.Value{} - if test.val != nil { - args = append(args, reflect.ValueOf(test.val)) - } else { - args = append(args, test.nilVal) - } - setter.Call(args) - - ret := getter.Call([]reflect.Value{}) - actual := ret[0].Interface() - - var expected interface{} - if test.val != nil { - expected = test.val - } else { - expected = test.nilVal.Interface() - } - - if e, a := expected, actual; !reflect.DeepEqual(e, a) { - t.Fatalf("%s: expected %v (%T), got %v (%T)", test.accessor, e, e, a, a) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/test/runtime_helper_test.go b/pseudo/k8s/apimachinery/pkg/test/runtime_helper_test.go deleted file mode 100644 index e177b3d9e..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/runtime_helper_test.go +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright 2014 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 test - -import ( - "testing" - - apitesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -func TestDecodeList(t *testing.T) { - pl := List{ - Items: []runtime.Object{ - &testapigroup.Carp{ObjectMeta: metav1.ObjectMeta{Name: "1"}}, - &runtime.Unknown{ - TypeMeta: runtime.TypeMeta{Kind: "Carp", APIVersion: "v1"}, - Raw: []byte(`{"kind":"Carp","apiVersion":"` + "v1" + `","metadata":{"name":"test"}}`), - ContentType: runtime.ContentTypeJSON, - }, - }, - } - - _, codecs := TestScheme() - Codec := apitesting.TestCodec(codecs, testapigroup.SchemeGroupVersion) - - if errs := runtime.DecodeList(pl.Items, Codec); len(errs) != 0 { - t.Fatalf("unexpected error %v", errs) - } - if pod, ok := pl.Items[1].(*testapigroup.Carp); !ok || pod.Name != "test" { - t.Errorf("object not converted: %#v", pl.Items[1]) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go b/pseudo/k8s/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go deleted file mode 100644 index 2347aea86..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go +++ /dev/null @@ -1,364 +0,0 @@ -/* -Copyright 2015 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 test - -import ( - "bytes" - "encoding/hex" - "fmt" - "reflect" - "strings" - "testing" - - "github.com/stretchr/testify/require" - - apiequality "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/equality" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer/protobuf" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" -) - -type testObject struct { - gvk schema.GroupVersionKind -} - -func (d *testObject) GetObjectKind() schema.ObjectKind { return d } -func (d *testObject) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk } -func (d *testObject) GroupVersionKind() schema.GroupVersionKind { return d.gvk } -func (d *testObject) DeepCopyObject() runtime.Object { - panic("testObject does not support DeepCopy") -} - -type testMarshalable struct { - testObject - data []byte - err error -} - -func (d *testMarshalable) Marshal() ([]byte, error) { - return d.data, d.err -} - -func (d *testMarshalable) DeepCopyObject() runtime.Object { - panic("testMarshalable does not support DeepCopy") -} - -type testBufferedMarshalable struct { - testObject - data []byte - err error -} - -func (d *testBufferedMarshalable) Marshal() ([]byte, error) { - return nil, fmt.Errorf("not invokable") -} - -func (d *testBufferedMarshalable) MarshalTo(data []byte) (int, error) { - copy(data, d.data) - return len(d.data), d.err -} - -func (d *testBufferedMarshalable) Size() int { - return len(d.data) -} - -func (d *testBufferedMarshalable) DeepCopyObject() runtime.Object { - panic("testBufferedMarshalable does not support DeepCopy") -} - -func TestRecognize(t *testing.T) { - s := protobuf.NewSerializer(nil, nil) - ignores := [][]byte{ - nil, - {}, - []byte("k8s"), - {0x6b, 0x38, 0x73, 0x01}, - } - for i, data := range ignores { - if ok, _, err := s.RecognizesData(bytes.NewBuffer(data)); err != nil || ok { - t.Errorf("%d: should not recognize data: %v", i, err) - } - } - recognizes := [][]byte{ - {0x6b, 0x38, 0x73, 0x00}, - {0x6b, 0x38, 0x73, 0x00, 0x01}, - } - for i, data := range recognizes { - if ok, _, err := s.RecognizesData(bytes.NewBuffer(data)); err != nil || !ok { - t.Errorf("%d: should recognize data: %v", i, err) - } - } -} - -func TestEncode(t *testing.T) { - obj1 := &testMarshalable{testObject: testObject{}, data: []byte{}} - wire1 := []byte{ - 0x6b, 0x38, 0x73, 0x00, // prefix - 0x0a, 0x04, - 0x0a, 0x00, // apiversion - 0x12, 0x00, // kind - 0x12, 0x00, // data - 0x1a, 0x00, // content-type - 0x22, 0x00, // content-encoding - } - obj2 := &testMarshalable{ - testObject: testObject{gvk: schema.GroupVersionKind{Kind: "test", Group: "other", Version: "version"}}, - data: []byte{0x01, 0x02, 0x03}, - } - wire2 := []byte{ - 0x6b, 0x38, 0x73, 0x00, // prefix - 0x0a, 0x15, - 0x0a, 0x0d, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, // apiversion - 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, // kind - 0x12, 0x03, 0x01, 0x02, 0x03, // data - 0x1a, 0x00, // content-type - 0x22, 0x00, // content-encoding - } - - err1 := fmt.Errorf("a test error") - - testCases := []struct { - obj runtime.Object - data []byte - errFn func(error) bool - }{ - { - obj: &testObject{}, - errFn: protobuf.IsNotMarshalable, - }, - { - obj: obj1, - data: wire1, - }, - { - obj: &testMarshalable{testObject: obj1.testObject, err: err1}, - errFn: func(err error) bool { return err == err1 }, - }, - { - // if this test fails, writing the "fast path" marshal is not the same as the "slow path" - obj: &testBufferedMarshalable{testObject: obj1.testObject, data: obj1.data}, - data: wire1, - }, - { - obj: obj2, - data: wire2, - }, - { - // if this test fails, writing the "fast path" marshal is not the same as the "slow path" - obj: &testBufferedMarshalable{testObject: obj2.testObject, data: obj2.data}, - data: wire2, - }, - { - obj: &testBufferedMarshalable{testObject: obj1.testObject, err: err1}, - errFn: func(err error) bool { return err == err1 }, - }, - } - - for i, test := range testCases { - s := protobuf.NewSerializer(nil, nil) - data, err := runtime.Encode(s, test.obj) - - switch { - case err == nil && test.errFn != nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil && test.errFn == nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil: - if !test.errFn(err) { - t.Errorf("%d: failed: %v", i, err) - } - if data != nil { - t.Errorf("%d: should not have returned nil data", i) - } - continue - } - - if test.data != nil && !bytes.Equal(test.data, data) { - t.Errorf("%d: unexpected data:\n%s", i, hex.Dump(data)) - continue - } - - if ok, _, err := s.RecognizesData(bytes.NewBuffer(data)); !ok || err != nil { - t.Errorf("%d: did not recognize data generated by call: %v", i, err) - } - } -} - -func TestProtobufDecode(t *testing.T) { - wire1 := []byte{ - 0x6b, 0x38, 0x73, 0x00, // prefix - 0x0a, 0x04, - 0x0a, 0x00, // apiversion - 0x12, 0x00, // kind - 0x12, 0x00, // data - 0x1a, 0x00, // content-type - 0x22, 0x00, // content-encoding - } - wire2 := []byte{ - 0x6b, 0x38, 0x73, 0x00, // prefix - 0x0a, 0x15, - 0x0a, 0x0d, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, // apiversion - 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, // kind - 0x12, 0x07, 0x6b, 0x38, 0x73, 0x00, 0x01, 0x02, 0x03, // data - 0x1a, 0x00, // content-type - 0x22, 0x00, // content-encoding - } - - //err1 := fmt.Errorf("a test error") - - testCases := []struct { - obj runtime.Object - data []byte - errFn func(error) bool - }{ - { - obj: &runtime.Unknown{}, - errFn: func(err error) bool { return err.Error() == "empty data" }, - }, - { - data: []byte{0x6b}, - errFn: func(err error) bool { return strings.Contains(err.Error(), "does not appear to be a protobuf message") }, - }, - { - obj: &runtime.Unknown{ - Raw: []byte{}, - }, - data: wire1, - }, - { - obj: &runtime.Unknown{ - TypeMeta: runtime.TypeMeta{ - APIVersion: "other/version", - Kind: "test", - }, - // content type is set because the prefix matches the content - ContentType: runtime.ContentTypeProtobuf, - Raw: []byte{0x6b, 0x38, 0x73, 0x00, 0x01, 0x02, 0x03}, - }, - data: wire2, - }, - } - - for i, test := range testCases { - s := protobuf.NewSerializer(nil, nil) - unk := &runtime.Unknown{} - err := runtime.DecodeInto(s, test.data, unk) - - switch { - case err == nil && test.errFn != nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil && test.errFn == nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil: - if !test.errFn(err) { - t.Errorf("%d: failed: %v", i, err) - } - continue - } - - if !reflect.DeepEqual(unk, test.obj) { - t.Errorf("%d: unexpected object:\n%#v", i, unk) - continue - } - } -} - -func TestDecodeObjects(t *testing.T) { - obj1 := &v1.Carp{ - ObjectMeta: metav1.ObjectMeta{ - Name: "cool", - }, - Spec: v1.CarpSpec{ - Hostname: "coolhost", - }, - } - obj1wire, err := obj1.Marshal() - if err != nil { - t.Fatal(err) - } - - wire1, err := (&runtime.Unknown{ - TypeMeta: runtime.TypeMeta{Kind: "Carp", APIVersion: "v1"}, - Raw: obj1wire, - }).Marshal() - if err != nil { - t.Fatal(err) - } - - unk2 := &runtime.Unknown{ - TypeMeta: runtime.TypeMeta{Kind: "Carp", APIVersion: "v1"}, - } - wire2 := make([]byte, len(wire1)*2) - n, err := unk2.NestedMarshalTo(wire2, obj1, uint64(obj1.Size())) - if err != nil { - t.Fatal(err) - } - if n != len(wire1) || !bytes.Equal(wire1, wire2[:n]) { - t.Fatalf("unexpected wire:\n%s", hex.Dump(wire2[:n])) - } - - wire1 = append([]byte{0x6b, 0x38, 0x73, 0x00}, wire1...) - - obj1WithKind := obj1.DeepCopyObject() - obj1WithKind.GetObjectKind().SetGroupVersionKind(schema.GroupVersionKind{Group: "", Version: "v1", Kind: "Carp"}) - testCases := []struct { - obj runtime.Object - data []byte - errFn func(error) bool - }{ - { - obj: obj1WithKind, - data: wire1, - }, - } - scheme := runtime.NewScheme() - for i, test := range testCases { - scheme.AddKnownTypes(schema.GroupVersion{Version: "v1"}, &v1.Carp{}) - require.NoError(t, v1.AddToScheme(scheme)) - s := protobuf.NewSerializer(scheme, scheme) - obj, err := runtime.Decode(s, test.data) - - switch { - case err == nil && test.errFn != nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil && test.errFn == nil: - t.Errorf("%d: failed: %v", i, err) - continue - case err != nil: - if !test.errFn(err) { - t.Errorf("%d: failed: %v", i, err) - } - if obj != nil { - t.Errorf("%d: should not have returned an object", i) - } - continue - } - - if !apiequality.Semantic.DeepEqual(obj, test.obj) { - t.Errorf("%d: unexpected object:\n%s", i, diff.ObjectGoPrintDiff(test.obj, obj)) - continue - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/test/runtime_unversioned_test.go b/pseudo/k8s/apimachinery/pkg/test/runtime_unversioned_test.go deleted file mode 100644 index fb65b4c3a..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/runtime_unversioned_test.go +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2015 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 test - -import ( - "encoding/json" - "reflect" - "testing" - - // TODO: Ideally we should create the necessary package structure in e.g., - // pkg/conversion/test/... instead of importing pkg/api here. - apitesting "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/apitesting" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" -) - -func TestV1EncodeDecodeStatus(t *testing.T) { - status := &metav1.Status{ - Status: metav1.StatusFailure, - Code: 200, - Reason: metav1.StatusReasonUnknown, - Message: "", - } - - _, codecs := TestScheme() - codec := apitesting.TestCodec(codecs, schema.GroupVersion{Group: "", Version: runtime.APIVersionInternal}) - - encoded, err := runtime.Encode(codec, status) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - typeMeta := metav1.TypeMeta{} - if err := json.Unmarshal(encoded, &typeMeta); err != nil { - t.Errorf("unexpected error: %v", err) - } - if typeMeta.Kind != "Status" { - t.Errorf("Kind is not set to \"Status\". Got %v", string(encoded)) - } - if typeMeta.APIVersion != "v1" { - t.Errorf("APIVersion is not set to \"v1\". Got %v", string(encoded)) - } - decoded, err := runtime.Decode(codec, encoded) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - if !reflect.DeepEqual(status, decoded) { - t.Errorf("expected: %v, got: %v", status, decoded) - } -} - -func TestExperimentalEncodeDecodeStatus(t *testing.T) { - status := &metav1.Status{ - Status: metav1.StatusFailure, - Code: 200, - Reason: metav1.StatusReasonUnknown, - Message: "", - } - // TODO: caesarxuchao: use the testapi.Extensions.Codec() once the PR that - // moves experimental from v1 to v1beta1 got merged. - _, codecs := TestScheme() - expCodec := apitesting.TestCodec(codecs, schema.GroupVersion{Group: "", Version: runtime.APIVersionInternal}) - - encoded, err := runtime.Encode(expCodec, status) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - typeMeta := metav1.TypeMeta{} - if err := json.Unmarshal(encoded, &typeMeta); err != nil { - t.Errorf("unexpected error: %v", err) - } - if typeMeta.Kind != "Status" { - t.Errorf("Kind is not set to \"Status\". Got %s", encoded) - } - if typeMeta.APIVersion != "v1" { - t.Errorf("APIVersion is not set to \"\". Got %s", encoded) - } - decoded, err := runtime.Decode(expCodec, encoded) - if err != nil { - t.Errorf("unexpected error: %v", err) - } - if !reflect.DeepEqual(status, decoded) { - t.Errorf("expected: %v, got: %v", status, decoded) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/test/util.go b/pseudo/k8s/apimachinery/pkg/test/util.go deleted file mode 100644 index ebd49c92a..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/util.go +++ /dev/null @@ -1,70 +0,0 @@ -/* -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 test - -import ( - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/testapigroup/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/schema" - apiserializer "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - utilruntime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" -) - -// List and ListV1 should be kept in sync with k8s.io/kubernetes/pkg/api#List -// and sigs.k8s.io/kustomize/pseudo/k8s/api/core/v1#List. -// -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type List struct { - metav1.TypeMeta - metav1.ListMeta - - Items []runtime.Object -} - -// +k8s:deepcopy-gen=true -// +k8s:deepcopy-gen:interfaces=sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime.Object -type ListV1 struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - - Items []runtime.RawExtension `json:"items" protobuf:"bytes,2,rep,name=items"` -} - -func TestScheme() (*runtime.Scheme, apiserializer.CodecFactory) { - internalGV := schema.GroupVersion{Group: "", Version: runtime.APIVersionInternal} - externalGV := schema.GroupVersion{Group: "", Version: "v1"} - scheme := runtime.NewScheme() - - scheme.AddKnownTypes(internalGV, - &testapigroup.Carp{}, - &testapigroup.CarpList{}, - &List{}, - ) - scheme.AddKnownTypes(externalGV, - &v1.Carp{}, - &v1.CarpList{}, - &List{}, - ) - utilruntime.Must(testapigroup.AddToScheme(scheme)) - utilruntime.Must(v1.AddToScheme(scheme)) - - codecs := apiserializer.NewCodecFactory(scheme) - return scheme, codecs -} diff --git a/pseudo/k8s/apimachinery/pkg/test/zz_generated.deepcopy.go b/pseudo/k8s/apimachinery/pkg/test/zz_generated.deepcopy.go deleted file mode 100644 index 9e78fe569..000000000 --- a/pseudo/k8s/apimachinery/pkg/test/zz_generated.deepcopy.go +++ /dev/null @@ -1,93 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 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. -*/ - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package test - -import ( - runtime "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *List) DeepCopyInto(out *List) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.Object, len(*in)) - for i := range *in { - if (*in)[i] != nil { - (*out)[i] = (*in)[i].DeepCopyObject() - } - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List. -func (in *List) DeepCopy() *List { - if in == nil { - return nil - } - out := new(List) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *List) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ListV1) DeepCopyInto(out *ListV1) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]runtime.RawExtension, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListV1. -func (in *ListV1) DeepCopy() *ListV1 { - if in == nil { - return nil - } - out := new(ListV1) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ListV1) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/pseudo/k8s/apimachinery/pkg/types/doc.go b/pseudo/k8s/apimachinery/pkg/types/doc.go deleted file mode 100644 index 86717cc77..000000000 --- a/pseudo/k8s/apimachinery/pkg/types/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2015 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 types implements various generic types used throughout kubernetes. -package types // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/types" diff --git a/pseudo/k8s/apimachinery/pkg/types/namespacedname.go b/pseudo/k8s/apimachinery/pkg/types/namespacedname.go deleted file mode 100644 index 88f0de36d..000000000 --- a/pseudo/k8s/apimachinery/pkg/types/namespacedname.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2015 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 types - -import ( - "fmt" -) - -// NamespacedName comprises a resource name, with a mandatory namespace, -// rendered as "/". Being a type captures intent and -// helps make sure that UIDs, namespaced names and non-namespaced names -// do not get conflated in code. For most use cases, namespace and name -// will already have been format validated at the API entry point, so we -// don't do that here. Where that's not the case (e.g. in testing), -// consider using NamespacedNameOrDie() in testing.go in this package. - -type NamespacedName struct { - Namespace string - Name string -} - -const ( - Separator = '/' -) - -// String returns the general purpose string representation -func (n NamespacedName) String() string { - return fmt.Sprintf("%s%c%s", n.Namespace, Separator, n.Name) -} diff --git a/pseudo/k8s/apimachinery/pkg/types/nodename.go b/pseudo/k8s/apimachinery/pkg/types/nodename.go deleted file mode 100644 index fee348d7e..000000000 --- a/pseudo/k8s/apimachinery/pkg/types/nodename.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2015 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 types - -// NodeName is a type that holds a api.Node's Name identifier. -// Being a type captures intent and helps make sure that the node name -// is not confused with similar concepts (the hostname, the cloud provider id, -// the cloud provider name etc) -// -// To clarify the various types: -// -// * Node.Name is the Name field of the Node in the API. This should be stored in a NodeName. -// Unfortunately, because Name is part of ObjectMeta, we can't store it as a NodeName at the API level. -// -// * Hostname is the hostname of the local machine (from uname -n). -// However, some components allow the user to pass in a --hostname-override flag, -// which will override this in most places. In the absence of anything more meaningful, -// kubelet will use Hostname as the Node.Name when it creates the Node. -// -// * The cloudproviders have the own names: GCE has InstanceName, AWS has InstanceId. -// -// For GCE, InstanceName is the Name of an Instance object in the GCE API. On GCE, Instance.Name becomes the -// Hostname, and thus it makes sense also to use it as the Node.Name. But that is GCE specific, and it is up -// to the cloudprovider how to do this mapping. -// -// For AWS, the InstanceID is not yet suitable for use as a Node.Name, so we actually use the -// PrivateDnsName for the Node.Name. And this is _not_ always the same as the hostname: if -// we are using a custom DHCP domain it won't be. -type NodeName string diff --git a/pseudo/k8s/apimachinery/pkg/types/patch.go b/pseudo/k8s/apimachinery/pkg/types/patch.go deleted file mode 100644 index fe8ecaaff..000000000 --- a/pseudo/k8s/apimachinery/pkg/types/patch.go +++ /dev/null @@ -1,29 +0,0 @@ -/* -Copyright 2015 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 types - -// Similarly to above, these are constants to support HTTP PATCH utilized by -// both the client and server that didn't make sense for a whole package to be -// dedicated to. -type PatchType string - -const ( - JSONPatchType PatchType = "application/json-patch+json" - MergePatchType PatchType = "application/merge-patch+json" - StrategicMergePatchType PatchType = "application/strategic-merge-patch+json" - ApplyPatchType PatchType = "application/apply-patch+yaml" -) diff --git a/pseudo/k8s/apimachinery/pkg/types/uid.go b/pseudo/k8s/apimachinery/pkg/types/uid.go deleted file mode 100644 index 869339222..000000000 --- a/pseudo/k8s/apimachinery/pkg/types/uid.go +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2015 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 types - -// UID is a type that holds unique ID values, including UUIDs. Because we -// don't ONLY use UUIDs, this is an alias to string. Being a type captures -// intent and helps make sure that UIDs and names do not get conflated. -type UID string diff --git a/pseudo/k8s/apimachinery/pkg/util/cache/cache.go b/pseudo/k8s/apimachinery/pkg/util/cache/cache.go deleted file mode 100644 index 9a09fe54d..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/cache/cache.go +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2014 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 cache - -import ( - "sync" -) - -const ( - shardsCount int = 32 -) - -type Cache []*cacheShard - -func NewCache(maxSize int) Cache { - if maxSize < shardsCount { - maxSize = shardsCount - } - cache := make(Cache, shardsCount) - for i := 0; i < shardsCount; i++ { - cache[i] = &cacheShard{ - items: make(map[uint64]interface{}), - maxSize: maxSize / shardsCount, - } - } - return cache -} - -func (c Cache) getShard(index uint64) *cacheShard { - return c[index%uint64(shardsCount)] -} - -// Returns true if object already existed, false otherwise. -func (c *Cache) Add(index uint64, obj interface{}) bool { - return c.getShard(index).add(index, obj) -} - -func (c *Cache) Get(index uint64) (obj interface{}, found bool) { - return c.getShard(index).get(index) -} - -type cacheShard struct { - items map[uint64]interface{} - sync.RWMutex - maxSize int -} - -// Returns true if object already existed, false otherwise. -func (s *cacheShard) add(index uint64, obj interface{}) bool { - s.Lock() - defer s.Unlock() - _, isOverwrite := s.items[index] - if !isOverwrite && len(s.items) >= s.maxSize { - var randomKey uint64 - for randomKey = range s.items { - break - } - delete(s.items, randomKey) - } - s.items[index] = obj - return isOverwrite -} - -func (s *cacheShard) get(index uint64) (obj interface{}, found bool) { - s.RLock() - defer s.RUnlock() - obj, found = s.items[index] - return -} diff --git a/pseudo/k8s/apimachinery/pkg/util/cache/cache_test.go b/pseudo/k8s/apimachinery/pkg/util/cache/cache_test.go deleted file mode 100644 index 42a58a93d..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/cache/cache_test.go +++ /dev/null @@ -1,90 +0,0 @@ -/* -Copyright 2014 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 cache - -import ( - "testing" -) - -const ( - maxTestCacheSize int = shardsCount * 2 -) - -func ExpectEntry(t *testing.T, cache Cache, index uint64, expectedValue interface{}) bool { - elem, found := cache.Get(index) - if !found { - t.Errorf("Expected to find entry with key %d", index) - return false - } else if elem != expectedValue { - t.Errorf("Expected to find %v, got %v", expectedValue, elem) - return false - } - return true -} - -func TestBasic(t *testing.T) { - cache := NewCache(maxTestCacheSize) - cache.Add(1, "xxx") - ExpectEntry(t, cache, 1, "xxx") -} - -func TestOverflow(t *testing.T) { - cache := NewCache(maxTestCacheSize) - for i := 0; i < maxTestCacheSize+1; i++ { - cache.Add(uint64(i), "xxx") - } - foundIndexes := make([]uint64, 0) - for i := 0; i < maxTestCacheSize+1; i++ { - _, found := cache.Get(uint64(i)) - if found { - foundIndexes = append(foundIndexes, uint64(i)) - } - } - if len(foundIndexes) != maxTestCacheSize { - t.Errorf("Expect to find %d elements, got %d %v", maxTestCacheSize, len(foundIndexes), foundIndexes) - } -} - -func TestOverwrite(t *testing.T) { - cache := NewCache(maxTestCacheSize) - cache.Add(1, "xxx") - ExpectEntry(t, cache, 1, "xxx") - cache.Add(1, "yyy") - ExpectEntry(t, cache, 1, "yyy") -} - -// TestEvict this test will fail sporatically depending on what add() -// selects for the randomKey to be evicted. Ensure that randomKey -// is never the key we most recently added. Since the chance of failure -// on each evict is 50%, if we do it 7 times, it should catch the problem -// if it exists >99% of the time. -func TestEvict(t *testing.T) { - cache := NewCache(shardsCount) - var found bool - for retry := 0; retry < 7; retry++ { - cache.Add(uint64(shardsCount), "xxx") - found = ExpectEntry(t, cache, uint64(shardsCount), "xxx") - if !found { - break - } - cache.Add(0, "xxx") - found = ExpectEntry(t, cache, 0, "xxx") - if !found { - break - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache.go b/pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache.go deleted file mode 100644 index f6b307aa6..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache.go +++ /dev/null @@ -1,102 +0,0 @@ -/* -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 cache - -import ( - "sync" - "time" - - "github.com/hashicorp/golang-lru" -) - -// Clock defines an interface for obtaining the current time -type Clock interface { - Now() time.Time -} - -// realClock implements the Clock interface by calling time.Now() -type realClock struct{} - -func (realClock) Now() time.Time { return time.Now() } - -// LRUExpireCache is a cache that ensures the mostly recently accessed keys are returned with -// a ttl beyond which keys are forcibly expired. -type LRUExpireCache struct { - // clock is used to obtain the current time - clock Clock - - cache *lru.Cache - lock sync.Mutex -} - -// NewLRUExpireCache creates an expiring cache with the given size -func NewLRUExpireCache(maxSize int) *LRUExpireCache { - return NewLRUExpireCacheWithClock(maxSize, realClock{}) -} - -// NewLRUExpireCacheWithClock creates an expiring cache with the given size, using the specified clock to obtain the current time. -func NewLRUExpireCacheWithClock(maxSize int, clock Clock) *LRUExpireCache { - cache, err := lru.New(maxSize) - if err != nil { - // if called with an invalid size - panic(err) - } - return &LRUExpireCache{clock: clock, cache: cache} -} - -type cacheEntry struct { - value interface{} - expireTime time.Time -} - -// Add adds the value to the cache at key with the specified maximum duration. -func (c *LRUExpireCache) Add(key interface{}, value interface{}, ttl time.Duration) { - c.lock.Lock() - defer c.lock.Unlock() - c.cache.Add(key, &cacheEntry{value, c.clock.Now().Add(ttl)}) -} - -// Get returns the value at the specified key from the cache if it exists and is not -// expired, or returns false. -func (c *LRUExpireCache) Get(key interface{}) (interface{}, bool) { - c.lock.Lock() - defer c.lock.Unlock() - e, ok := c.cache.Get(key) - if !ok { - return nil, false - } - if c.clock.Now().After(e.(*cacheEntry).expireTime) { - c.cache.Remove(key) - return nil, false - } - return e.(*cacheEntry).value, true -} - -// Remove removes the specified key from the cache if it exists -func (c *LRUExpireCache) Remove(key interface{}) { - c.lock.Lock() - defer c.lock.Unlock() - c.cache.Remove(key) -} - -// Keys returns all the keys in the cache, even if they are expired. Subsequent calls to -// get may return not found. It returns all keys from oldest to newest. -func (c *LRUExpireCache) Keys() []interface{} { - c.lock.Lock() - defer c.lock.Unlock() - return c.cache.Keys() -} diff --git a/pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache_test.go b/pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache_test.go deleted file mode 100644 index 7932764ba..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/cache/lruexpirecache_test.go +++ /dev/null @@ -1,68 +0,0 @@ -/* -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 cache - -import ( - "testing" - "time" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/clock" - - "github.com/golang/groupcache/lru" -) - -func expectEntry(t *testing.T, c *LRUExpireCache, key lru.Key, value interface{}) { - result, ok := c.Get(key) - if !ok || result != value { - t.Errorf("Expected cache[%v]: %v, got %v", key, value, result) - } -} - -func expectNotEntry(t *testing.T, c *LRUExpireCache, key lru.Key) { - if result, ok := c.Get(key); ok { - t.Errorf("Expected cache[%v] to be empty, got %v", key, result) - } -} - -func TestSimpleGet(t *testing.T) { - c := NewLRUExpireCache(10) - c.Add("long-lived", "12345", 10*time.Hour) - expectEntry(t, c, "long-lived", "12345") -} - -func TestExpiredGet(t *testing.T) { - fakeClock := clock.NewFakeClock(time.Now()) - c := NewLRUExpireCacheWithClock(10, fakeClock) - c.Add("short-lived", "12345", 1*time.Millisecond) - // ensure the entry expired - fakeClock.Step(2 * time.Millisecond) - expectNotEntry(t, c, "short-lived") -} - -func TestLRUOverflow(t *testing.T) { - c := NewLRUExpireCache(4) - c.Add("elem1", "1", 10*time.Hour) - c.Add("elem2", "2", 10*time.Hour) - c.Add("elem3", "3", 10*time.Hour) - c.Add("elem4", "4", 10*time.Hour) - c.Add("elem5", "5", 10*time.Hour) - expectNotEntry(t, c, "elem1") - expectEntry(t, c, "elem2", "2") - expectEntry(t, c, "elem3", "3") - expectEntry(t, c, "elem4", "4") - expectEntry(t, c, "elem5", "5") -} diff --git a/pseudo/k8s/apimachinery/pkg/util/clock/clock.go b/pseudo/k8s/apimachinery/pkg/util/clock/clock.go deleted file mode 100644 index 1689e62e8..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/clock/clock.go +++ /dev/null @@ -1,384 +0,0 @@ -/* -Copyright 2014 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 clock - -import ( - "sync" - "time" -) - -// PassiveClock allows for injecting fake or real clocks into code -// that needs to read the current time but does not support scheduling -// activity in the future. -type PassiveClock interface { - Now() time.Time - Since(time.Time) time.Duration -} - -// Clock allows for injecting fake or real clocks into code that -// needs to do arbitrary things based on time. -type Clock interface { - PassiveClock - After(time.Duration) <-chan time.Time - NewTimer(time.Duration) Timer - Sleep(time.Duration) - NewTicker(time.Duration) Ticker -} - -// RealClock really calls time.Now() -type RealClock struct{} - -// Now returns the current time. -func (RealClock) Now() time.Time { - return time.Now() -} - -// Since returns time since the specified timestamp. -func (RealClock) Since(ts time.Time) time.Duration { - return time.Since(ts) -} - -// Same as time.After(d). -func (RealClock) After(d time.Duration) <-chan time.Time { - return time.After(d) -} - -func (RealClock) NewTimer(d time.Duration) Timer { - return &realTimer{ - timer: time.NewTimer(d), - } -} - -func (RealClock) NewTicker(d time.Duration) Ticker { - return &realTicker{ - ticker: time.NewTicker(d), - } -} - -func (RealClock) Sleep(d time.Duration) { - time.Sleep(d) -} - -// FakePassiveClock implements PassiveClock, but returns an arbitrary time. -type FakePassiveClock struct { - lock sync.RWMutex - time time.Time -} - -// FakeClock implements Clock, but returns an arbitrary time. -type FakeClock struct { - FakePassiveClock - - // waiters are waiting for the fake time to pass their specified time - waiters []fakeClockWaiter -} - -type fakeClockWaiter struct { - targetTime time.Time - stepInterval time.Duration - skipIfBlocked bool - destChan chan time.Time -} - -func NewFakePassiveClock(t time.Time) *FakePassiveClock { - return &FakePassiveClock{ - time: t, - } -} - -func NewFakeClock(t time.Time) *FakeClock { - return &FakeClock{ - FakePassiveClock: *NewFakePassiveClock(t), - } -} - -// Now returns f's time. -func (f *FakePassiveClock) Now() time.Time { - f.lock.RLock() - defer f.lock.RUnlock() - return f.time -} - -// Since returns time since the time in f. -func (f *FakePassiveClock) Since(ts time.Time) time.Duration { - f.lock.RLock() - defer f.lock.RUnlock() - return f.time.Sub(ts) -} - -// Sets the time. -func (f *FakePassiveClock) SetTime(t time.Time) { - f.lock.Lock() - defer f.lock.Unlock() - f.time = t -} - -// Fake version of time.After(d). -func (f *FakeClock) After(d time.Duration) <-chan time.Time { - f.lock.Lock() - defer f.lock.Unlock() - stopTime := f.time.Add(d) - ch := make(chan time.Time, 1) // Don't block! - f.waiters = append(f.waiters, fakeClockWaiter{ - targetTime: stopTime, - destChan: ch, - }) - return ch -} - -// Fake version of time.NewTimer(d). -func (f *FakeClock) NewTimer(d time.Duration) Timer { - f.lock.Lock() - defer f.lock.Unlock() - stopTime := f.time.Add(d) - ch := make(chan time.Time, 1) // Don't block! - timer := &fakeTimer{ - fakeClock: f, - waiter: fakeClockWaiter{ - targetTime: stopTime, - destChan: ch, - }, - } - f.waiters = append(f.waiters, timer.waiter) - return timer -} - -func (f *FakeClock) NewTicker(d time.Duration) Ticker { - f.lock.Lock() - defer f.lock.Unlock() - tickTime := f.time.Add(d) - ch := make(chan time.Time, 1) // hold one tick - f.waiters = append(f.waiters, fakeClockWaiter{ - targetTime: tickTime, - stepInterval: d, - skipIfBlocked: true, - destChan: ch, - }) - - return &fakeTicker{ - c: ch, - } -} - -// Move clock by Duration, notify anyone that's called After, Tick, or NewTimer -func (f *FakeClock) Step(d time.Duration) { - f.lock.Lock() - defer f.lock.Unlock() - f.setTimeLocked(f.time.Add(d)) -} - -// Sets the time. -func (f *FakeClock) SetTime(t time.Time) { - f.lock.Lock() - defer f.lock.Unlock() - f.setTimeLocked(t) -} - -// Actually changes the time and checks any waiters. f must be write-locked. -func (f *FakeClock) setTimeLocked(t time.Time) { - f.time = t - newWaiters := make([]fakeClockWaiter, 0, len(f.waiters)) - for i := range f.waiters { - w := &f.waiters[i] - if !w.targetTime.After(t) { - - if w.skipIfBlocked { - select { - case w.destChan <- t: - default: - } - } else { - w.destChan <- t - } - - if w.stepInterval > 0 { - for !w.targetTime.After(t) { - w.targetTime = w.targetTime.Add(w.stepInterval) - } - newWaiters = append(newWaiters, *w) - } - - } else { - newWaiters = append(newWaiters, f.waiters[i]) - } - } - f.waiters = newWaiters -} - -// Returns true if After has been called on f but not yet satisfied (so you can -// write race-free tests). -func (f *FakeClock) HasWaiters() bool { - f.lock.RLock() - defer f.lock.RUnlock() - return len(f.waiters) > 0 -} - -func (f *FakeClock) Sleep(d time.Duration) { - f.Step(d) -} - -// IntervalClock implements Clock, but each invocation of Now steps the clock forward the specified duration -type IntervalClock struct { - Time time.Time - Duration time.Duration -} - -// Now returns i's time. -func (i *IntervalClock) Now() time.Time { - i.Time = i.Time.Add(i.Duration) - return i.Time -} - -// Since returns time since the time in i. -func (i *IntervalClock) Since(ts time.Time) time.Duration { - return i.Time.Sub(ts) -} - -// Unimplemented, will panic. -// TODO: make interval clock use FakeClock so this can be implemented. -func (*IntervalClock) After(d time.Duration) <-chan time.Time { - panic("IntervalClock doesn't implement After") -} - -// Unimplemented, will panic. -// TODO: make interval clock use FakeClock so this can be implemented. -func (*IntervalClock) NewTimer(d time.Duration) Timer { - panic("IntervalClock doesn't implement NewTimer") -} - -// Unimplemented, will panic. -// TODO: make interval clock use FakeClock so this can be implemented. -func (*IntervalClock) NewTicker(d time.Duration) Ticker { - panic("IntervalClock doesn't implement NewTicker") -} - -func (*IntervalClock) Sleep(d time.Duration) { - panic("IntervalClock doesn't implement Sleep") -} - -// Timer allows for injecting fake or real timers into code that -// needs to do arbitrary things based on time. -type Timer interface { - C() <-chan time.Time - Stop() bool - Reset(d time.Duration) bool -} - -// realTimer is backed by an actual time.Timer. -type realTimer struct { - timer *time.Timer -} - -// C returns the underlying timer's channel. -func (r *realTimer) C() <-chan time.Time { - return r.timer.C -} - -// Stop calls Stop() on the underlying timer. -func (r *realTimer) Stop() bool { - return r.timer.Stop() -} - -// Reset calls Reset() on the underlying timer. -func (r *realTimer) Reset(d time.Duration) bool { - return r.timer.Reset(d) -} - -// fakeTimer implements Timer based on a FakeClock. -type fakeTimer struct { - fakeClock *FakeClock - waiter fakeClockWaiter -} - -// C returns the channel that notifies when this timer has fired. -func (f *fakeTimer) C() <-chan time.Time { - return f.waiter.destChan -} - -// Stop conditionally stops the timer. If the timer has neither fired -// nor been stopped then this call stops the timer and returns true, -// otherwise this call returns false. This is like time.Timer::Stop. -func (f *fakeTimer) Stop() bool { - f.fakeClock.lock.Lock() - defer f.fakeClock.lock.Unlock() - // The timer has already fired or been stopped, unless it is found - // among the clock's waiters. - stopped := false - oldWaiters := f.fakeClock.waiters - newWaiters := make([]fakeClockWaiter, 0, len(oldWaiters)) - seekChan := f.waiter.destChan - for i := range oldWaiters { - // Identify the timer's fakeClockWaiter by the identity of the - // destination channel, nothing else is necessarily unique and - // constant since the timer's creation. - if oldWaiters[i].destChan == seekChan { - stopped = true - } else { - newWaiters = append(newWaiters, oldWaiters[i]) - } - } - - f.fakeClock.waiters = newWaiters - - return stopped -} - -// Reset conditionally updates the firing time of the timer. If the -// timer has neither fired nor been stopped then this call resets the -// timer to the fake clock's "now" + d and returns true, otherwise -// this call returns false. This is like time.Timer::Reset. -func (f *fakeTimer) Reset(d time.Duration) bool { - f.fakeClock.lock.Lock() - defer f.fakeClock.lock.Unlock() - waiters := f.fakeClock.waiters - seekChan := f.waiter.destChan - for i := range waiters { - if waiters[i].destChan == seekChan { - waiters[i].targetTime = f.fakeClock.time.Add(d) - return true - } - } - return false -} - -type Ticker interface { - C() <-chan time.Time - Stop() -} - -type realTicker struct { - ticker *time.Ticker -} - -func (t *realTicker) C() <-chan time.Time { - return t.ticker.C -} - -func (t *realTicker) Stop() { - t.ticker.Stop() -} - -type fakeTicker struct { - c <-chan time.Time -} - -func (t *fakeTicker) C() <-chan time.Time { - return t.c -} - -func (t *fakeTicker) Stop() { -} diff --git a/pseudo/k8s/apimachinery/pkg/util/clock/clock_test.go b/pseudo/k8s/apimachinery/pkg/util/clock/clock_test.go deleted file mode 100644 index 16967d9a0..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/clock/clock_test.go +++ /dev/null @@ -1,328 +0,0 @@ -/* -Copyright 2015 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 clock - -import ( - "testing" - "time" -) - -var ( - _ = Clock(RealClock{}) - _ = Clock(&FakeClock{}) - _ = Clock(&IntervalClock{}) - - _ = Timer(&realTimer{}) - _ = Timer(&fakeTimer{}) - - _ = Ticker(&realTicker{}) - _ = Ticker(&fakeTicker{}) -) - -type SettablePassiveClock interface { - PassiveClock - SetTime(time.Time) -} - -func exercisePassiveClock(t *testing.T, pc SettablePassiveClock) { - t1 := time.Now() - t2 := t1.Add(time.Hour) - pc.SetTime(t1) - tx := pc.Now() - if tx != t1 { - t.Errorf("SetTime(%#+v); Now() => %#+v", t1, tx) - } - dx := pc.Since(t1) - if dx != 0 { - t.Errorf("Since() => %v", dx) - } - pc.SetTime(t2) - dx = pc.Since(t1) - if dx != time.Hour { - t.Errorf("Since() => %v", dx) - } - tx = pc.Now() - if tx != t2 { - t.Errorf("Now() => %#+v", tx) - } -} - -func TestFakePassiveClock(t *testing.T) { - startTime := time.Now() - tc := NewFakePassiveClock(startTime) - exercisePassiveClock(t, tc) -} - -func TestFakeClock(t *testing.T) { - startTime := time.Now() - tc := NewFakeClock(startTime) - exercisePassiveClock(t, tc) - tc.SetTime(startTime) - tc.Step(time.Second) - now := tc.Now() - if now.Sub(startTime) != time.Second { - t.Errorf("input: %s now=%s gap=%s expected=%s", startTime, now, now.Sub(startTime), time.Second) - } -} - -func TestFakeClockSleep(t *testing.T) { - startTime := time.Now() - tc := NewFakeClock(startTime) - tc.Sleep(time.Duration(1) * time.Hour) - now := tc.Now() - if now.Sub(startTime) != time.Hour { - t.Errorf("Fake sleep failed, expected time to advance by one hour, instead, its %v", now.Sub(startTime)) - } -} - -func TestFakeAfter(t *testing.T) { - tc := NewFakeClock(time.Now()) - if tc.HasWaiters() { - t.Errorf("unexpected waiter?") - } - oneSec := tc.After(time.Second) - if !tc.HasWaiters() { - t.Errorf("unexpected lack of waiter?") - } - - oneOhOneSec := tc.After(time.Second + time.Millisecond) - twoSec := tc.After(2 * time.Second) - select { - case <-oneSec: - t.Errorf("unexpected channel read") - case <-oneOhOneSec: - t.Errorf("unexpected channel read") - case <-twoSec: - t.Errorf("unexpected channel read") - default: - } - - tc.Step(999 * time.Millisecond) - select { - case <-oneSec: - t.Errorf("unexpected channel read") - case <-oneOhOneSec: - t.Errorf("unexpected channel read") - case <-twoSec: - t.Errorf("unexpected channel read") - default: - } - - tc.Step(time.Millisecond) - select { - case <-oneSec: - // Expected! - case <-oneOhOneSec: - t.Errorf("unexpected channel read") - case <-twoSec: - t.Errorf("unexpected channel read") - default: - t.Errorf("unexpected non-channel read") - } - tc.Step(time.Millisecond) - select { - case <-oneSec: - // should not double-trigger! - t.Errorf("unexpected channel read") - case <-oneOhOneSec: - // Expected! - case <-twoSec: - t.Errorf("unexpected channel read") - default: - t.Errorf("unexpected non-channel read") - } -} - -func TestFakeTimer(t *testing.T) { - tc := NewFakeClock(time.Now()) - if tc.HasWaiters() { - t.Errorf("unexpected waiter?") - } - oneSec := tc.NewTimer(time.Second) - twoSec := tc.NewTimer(time.Second * 2) - treSec := tc.NewTimer(time.Second * 3) - if !tc.HasWaiters() { - t.Errorf("unexpected lack of waiter?") - } - select { - case <-oneSec.C(): - t.Errorf("unexpected channel read") - case <-twoSec.C(): - t.Errorf("unexpected channel read") - case <-treSec.C(): - t.Errorf("unexpected channel read") - default: - } - tc.Step(999999999 * time.Nanosecond) // t=.999,999,999 - select { - case <-oneSec.C(): - t.Errorf("unexpected channel read") - case <-twoSec.C(): - t.Errorf("unexpected channel read") - case <-treSec.C(): - t.Errorf("unexpected channel read") - default: - } - tc.Step(time.Nanosecond) // t=1 - select { - case <-twoSec.C(): - t.Errorf("unexpected channel read") - case <-treSec.C(): - t.Errorf("unexpected channel read") - default: - } - select { - case <-oneSec.C(): - // Expected! - default: - t.Errorf("unexpected channel non-read") - } - tc.Step(time.Nanosecond) // t=1.000,000,001 - select { - case <-oneSec.C(): - t.Errorf("unexpected channel read") - case <-twoSec.C(): - t.Errorf("unexpected channel read") - case <-treSec.C(): - t.Errorf("unexpected channel read") - default: - } - if oneSec.Stop() { - t.Errorf("Expected oneSec.Stop() to return false") - } - if !twoSec.Stop() { - t.Errorf("Expected twoSec.Stop() to return true") - } - tc.Step(time.Second) // t=2.000,000,001 - select { - case <-oneSec.C(): - t.Errorf("unexpected channel read") - case <-twoSec.C(): - t.Errorf("unexpected channel read") - case <-treSec.C(): - t.Errorf("unexpected channel read") - default: - } - if twoSec.Reset(time.Second) { - t.Errorf("Expected twoSec.Reset() to return false") - } - if !treSec.Reset(time.Second) { - t.Errorf("Expected treSec.Reset() to return true") - } - tc.Step(time.Nanosecond * 999999999) // t=3.0 - select { - case <-oneSec.C(): - t.Errorf("unexpected channel read") - case <-twoSec.C(): - t.Errorf("unexpected channel read") - case <-treSec.C(): - t.Errorf("unexpected channel read") - default: - } - tc.Step(time.Nanosecond) // t=3.000,000,001 - select { - case <-oneSec.C(): - t.Errorf("unexpected channel read") - case <-twoSec.C(): - t.Errorf("unexpected channel read") - default: - } - select { - case <-treSec.C(): - // Expected! - default: - t.Errorf("unexpected channel non-read") - } -} - -func TestFakeTick(t *testing.T) { - tc := NewFakeClock(time.Now()) - if tc.HasWaiters() { - t.Errorf("unexpected waiter?") - } - oneSec := tc.NewTicker(time.Second).C() - if !tc.HasWaiters() { - t.Errorf("unexpected lack of waiter?") - } - - oneOhOneSec := tc.NewTicker(time.Second + time.Millisecond).C() - twoSec := tc.NewTicker(2 * time.Second).C() - select { - case <-oneSec: - t.Errorf("unexpected channel read") - case <-oneOhOneSec: - t.Errorf("unexpected channel read") - case <-twoSec: - t.Errorf("unexpected channel read") - default: - } - - tc.Step(999 * time.Millisecond) // t=.999 - select { - case <-oneSec: - t.Errorf("unexpected channel read") - case <-oneOhOneSec: - t.Errorf("unexpected channel read") - case <-twoSec: - t.Errorf("unexpected channel read") - default: - } - - tc.Step(time.Millisecond) // t=1.000 - select { - case <-oneSec: - // Expected! - case <-oneOhOneSec: - t.Errorf("unexpected channel read") - case <-twoSec: - t.Errorf("unexpected channel read") - default: - t.Errorf("unexpected non-channel read") - } - tc.Step(time.Millisecond) // t=1.001 - select { - case <-oneSec: - // should not double-trigger! - t.Errorf("unexpected channel read") - case <-oneOhOneSec: - // Expected! - case <-twoSec: - t.Errorf("unexpected channel read") - default: - t.Errorf("unexpected non-channel read") - } - - tc.Step(time.Second) // t=2.001 - tc.Step(time.Second) // t=3.001 - tc.Step(time.Second) // t=4.001 - tc.Step(time.Second) // t=5.001 - - // The one second ticker should not accumulate ticks - accumulatedTicks := 0 - drained := false - for !drained { - select { - case <-oneSec: - accumulatedTicks++ - default: - drained = true - } - } - if accumulatedTicks != 1 { - t.Errorf("unexpected number of accumulated ticks: %d", accumulatedTicks) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/diff/diff.go b/pseudo/k8s/apimachinery/pkg/util/diff/diff.go deleted file mode 100644 index a006b925a..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/diff/diff.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 2014 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 diff - -import ( - "bytes" - "fmt" - "strings" - "text/tabwriter" - - "github.com/davecgh/go-spew/spew" - "github.com/google/go-cmp/cmp" -) - -// StringDiff diffs a and b and returns a human readable diff. -func StringDiff(a, b string) string { - ba := []byte(a) - bb := []byte(b) - out := []byte{} - i := 0 - for ; i < len(ba) && i < len(bb); i++ { - if ba[i] != bb[i] { - break - } - out = append(out, ba[i]) - } - out = append(out, []byte("\n\nA: ")...) - out = append(out, ba[i:]...) - out = append(out, []byte("\n\nB: ")...) - out = append(out, bb[i:]...) - out = append(out, []byte("\n\n")...) - return string(out) -} - -func legacyDiff(a, b interface{}) string { - return cmp.Diff(a, b) -} - -// ObjectDiff prints the diff of two go objects and fails if the objects -// contain unhandled unexported fields. -// DEPRECATED: use github.com/google/go-cmp/cmp.Diff -func ObjectDiff(a, b interface{}) string { - return legacyDiff(a, b) -} - -// ObjectGoPrintDiff prints the diff of two go objects and fails if the objects -// contain unhandled unexported fields. -// DEPRECATED: use github.com/google/go-cmp/cmp.Diff -func ObjectGoPrintDiff(a, b interface{}) string { - return legacyDiff(a, b) -} - -// ObjectReflectDiff prints the diff of two go objects and fails if the objects -// contain unhandled unexported fields. -// DEPRECATED: use github.com/google/go-cmp/cmp.Diff -func ObjectReflectDiff(a, b interface{}) string { - return legacyDiff(a, b) -} - -// ObjectGoPrintSideBySide prints a and b as textual dumps side by side, -// enabling easy visual scanning for mismatches. -func ObjectGoPrintSideBySide(a, b interface{}) string { - s := spew.ConfigState{ - Indent: " ", - // Extra deep spew. - DisableMethods: true, - } - sA := s.Sdump(a) - sB := s.Sdump(b) - - linesA := strings.Split(sA, "\n") - linesB := strings.Split(sB, "\n") - width := 0 - for _, s := range linesA { - l := len(s) - if l > width { - width = l - } - } - for _, s := range linesB { - l := len(s) - if l > width { - width = l - } - } - buf := &bytes.Buffer{} - w := tabwriter.NewWriter(buf, width, 0, 1, ' ', 0) - max := len(linesA) - if len(linesB) > max { - max = len(linesB) - } - for i := 0; i < max; i++ { - var a, b string - if i < len(linesA) { - a = linesA[i] - } - if i < len(linesB) { - b = linesB[i] - } - fmt.Fprintf(w, "%s\t%s\n", a, b) - } - w.Flush() - return buf.String() -} diff --git a/pseudo/k8s/apimachinery/pkg/util/diff/diff_test.go b/pseudo/k8s/apimachinery/pkg/util/diff/diff_test.go deleted file mode 100644 index eb61a11d7..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/diff/diff_test.go +++ /dev/null @@ -1,29 +0,0 @@ -/* -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 diff - -import ( - "testing" -) - -func TestStringDiff(t *testing.T) { - diff := StringDiff("aaabb", "aaacc") - expect := "aaa\n\nA: bb\n\nB: cc\n\n" - if diff != expect { - t.Errorf("diff returned %v", diff) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/duration/duration.go b/pseudo/k8s/apimachinery/pkg/util/duration/duration.go deleted file mode 100644 index 961ec5ed8..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/duration/duration.go +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 duration - -import ( - "fmt" - "time" -) - -// ShortHumanDuration returns a succint representation of the provided duration -// with limited precision for consumption by humans. -func ShortHumanDuration(d time.Duration) string { - // Allow deviation no more than 2 seconds(excluded) to tolerate machine time - // inconsistence, it can be considered as almost now. - if seconds := int(d.Seconds()); seconds < -1 { - return fmt.Sprintf("") - } else if seconds < 0 { - return fmt.Sprintf("0s") - } else if seconds < 60 { - return fmt.Sprintf("%ds", seconds) - } else if minutes := int(d.Minutes()); minutes < 60 { - return fmt.Sprintf("%dm", minutes) - } else if hours := int(d.Hours()); hours < 24 { - return fmt.Sprintf("%dh", hours) - } else if hours < 24*365 { - return fmt.Sprintf("%dd", hours/24) - } - return fmt.Sprintf("%dy", int(d.Hours()/24/365)) -} - -// HumanDuration returns a succint representation of the provided duration -// with limited precision for consumption by humans. It provides ~2-3 significant -// figures of duration. -func HumanDuration(d time.Duration) string { - // Allow deviation no more than 2 seconds(excluded) to tolerate machine time - // inconsistence, it can be considered as almost now. - if seconds := int(d.Seconds()); seconds < -1 { - return fmt.Sprintf("") - } else if seconds < 0 { - return fmt.Sprintf("0s") - } else if seconds < 60*2 { - return fmt.Sprintf("%ds", seconds) - } - minutes := int(d / time.Minute) - if minutes < 10 { - s := int(d/time.Second) % 60 - if s == 0 { - return fmt.Sprintf("%dm", minutes) - } - return fmt.Sprintf("%dm%ds", minutes, s) - } else if minutes < 60*3 { - return fmt.Sprintf("%dm", minutes) - } - hours := int(d / time.Hour) - if hours < 8 { - m := int(d/time.Minute) % 60 - if m == 0 { - return fmt.Sprintf("%dh", hours) - } - return fmt.Sprintf("%dh%dm", hours, m) - } else if hours < 48 { - return fmt.Sprintf("%dh", hours) - } else if hours < 24*8 { - h := hours % 24 - if h == 0 { - return fmt.Sprintf("%dd", hours/24) - } - return fmt.Sprintf("%dd%dh", hours/24, h) - } else if hours < 24*365*2 { - return fmt.Sprintf("%dd", hours/24) - } else if hours < 24*365*8 { - return fmt.Sprintf("%dy%dd", hours/24/365, (hours/24)%365) - } - return fmt.Sprintf("%dy", int(hours/24/365)) -} diff --git a/pseudo/k8s/apimachinery/pkg/util/duration/duration_test.go b/pseudo/k8s/apimachinery/pkg/util/duration/duration_test.go deleted file mode 100644 index f11d5386c..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/duration/duration_test.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 duration - -import ( - "testing" - "time" -) - -func TestHumanDuration(t *testing.T) { - tests := []struct { - d time.Duration - want string - }{ - {d: time.Second, want: "1s"}, - {d: 70 * time.Second, want: "70s"}, - {d: 190 * time.Second, want: "3m10s"}, - {d: 70 * time.Minute, want: "70m"}, - {d: 47 * time.Hour, want: "47h"}, - {d: 49 * time.Hour, want: "2d1h"}, - {d: (8*24 + 2) * time.Hour, want: "8d"}, - {d: (367 * 24) * time.Hour, want: "367d"}, - {d: (365*2*24 + 25) * time.Hour, want: "2y1d"}, - {d: (365*8*24 + 2) * time.Hour, want: "8y"}, - } - for _, tt := range tests { - t.Run(tt.d.String(), func(t *testing.T) { - if got := HumanDuration(tt.d); got != tt.want { - t.Errorf("HumanDuration() = %v, want %v", got, tt.want) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/errors/doc.go b/pseudo/k8s/apimachinery/pkg/util/errors/doc.go deleted file mode 100644 index e0b9e8d52..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/errors/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2015 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 errors implements various utility functions and types around errors. -package errors // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/errors" diff --git a/pseudo/k8s/apimachinery/pkg/util/errors/errors.go b/pseudo/k8s/apimachinery/pkg/util/errors/errors.go deleted file mode 100644 index 746252372..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/errors/errors.go +++ /dev/null @@ -1,229 +0,0 @@ -/* -Copyright 2015 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 errors - -import ( - "errors" - "fmt" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -// MessageCountMap contains occurrence for each error message. -type MessageCountMap map[string]int - -// Aggregate represents an object that contains multiple errors, but does not -// necessarily have singular semantic meaning. -type Aggregate interface { - error - Errors() []error -} - -// NewAggregate converts a slice of errors into an Aggregate interface, which -// is itself an implementation of the error interface. If the slice is empty, -// this returns nil. -// It will check if any of the element of input error list is nil, to avoid -// nil pointer panic when call Error(). -func NewAggregate(errlist []error) Aggregate { - if len(errlist) == 0 { - return nil - } - // In case of input error list contains nil - var errs []error - for _, e := range errlist { - if e != nil { - errs = append(errs, e) - } - } - if len(errs) == 0 { - return nil - } - return aggregate(errs) -} - -// This helper implements the error and Errors interfaces. Keeping it private -// prevents people from making an aggregate of 0 errors, which is not -// an error, but does satisfy the error interface. -type aggregate []error - -// Error is part of the error interface. -func (agg aggregate) Error() string { - if len(agg) == 0 { - // This should never happen, really. - return "" - } - if len(agg) == 1 { - return agg[0].Error() - } - seenerrs := sets.NewString() - result := "" - agg.visit(func(err error) { - msg := err.Error() - if seenerrs.Has(msg) { - return - } - seenerrs.Insert(msg) - if len(seenerrs) > 1 { - result += ", " - } - result += msg - }) - if len(seenerrs) == 1 { - return result - } - return "[" + result + "]" -} - -func (agg aggregate) visit(f func(err error)) { - for _, err := range agg { - switch err := err.(type) { - case aggregate: - err.visit(f) - case Aggregate: - for _, nestedErr := range err.Errors() { - f(nestedErr) - } - default: - f(err) - } - } -} - -// Errors is part of the Aggregate interface. -func (agg aggregate) Errors() []error { - return []error(agg) -} - -// Matcher is used to match errors. Returns true if the error matches. -type Matcher func(error) bool - -// FilterOut removes all errors that match any of the matchers from the input -// error. If the input is a singular error, only that error is tested. If the -// input implements the Aggregate interface, the list of errors will be -// processed recursively. -// -// This can be used, for example, to remove known-OK errors (such as io.EOF or -// os.PathNotFound) from a list of errors. -func FilterOut(err error, fns ...Matcher) error { - if err == nil { - return nil - } - if agg, ok := err.(Aggregate); ok { - return NewAggregate(filterErrors(agg.Errors(), fns...)) - } - if !matchesError(err, fns...) { - return err - } - return nil -} - -// matchesError returns true if any Matcher returns true -func matchesError(err error, fns ...Matcher) bool { - for _, fn := range fns { - if fn(err) { - return true - } - } - return false -} - -// filterErrors returns any errors (or nested errors, if the list contains -// nested Errors) for which all fns return false. If no errors -// remain a nil list is returned. The resulting silec will have all -// nested slices flattened as a side effect. -func filterErrors(list []error, fns ...Matcher) []error { - result := []error{} - for _, err := range list { - r := FilterOut(err, fns...) - if r != nil { - result = append(result, r) - } - } - return result -} - -// Flatten takes an Aggregate, which may hold other Aggregates in arbitrary -// nesting, and flattens them all into a single Aggregate, recursively. -func Flatten(agg Aggregate) Aggregate { - result := []error{} - if agg == nil { - return nil - } - for _, err := range agg.Errors() { - if a, ok := err.(Aggregate); ok { - r := Flatten(a) - if r != nil { - result = append(result, r.Errors()...) - } - } else { - if err != nil { - result = append(result, err) - } - } - } - return NewAggregate(result) -} - -// CreateAggregateFromMessageCountMap converts MessageCountMap Aggregate -func CreateAggregateFromMessageCountMap(m MessageCountMap) Aggregate { - if m == nil { - return nil - } - result := make([]error, 0, len(m)) - for errStr, count := range m { - var countStr string - if count > 1 { - countStr = fmt.Sprintf(" (repeated %v times)", count) - } - result = append(result, fmt.Errorf("%v%v", errStr, countStr)) - } - return NewAggregate(result) -} - -// Reduce will return err or, if err is an Aggregate and only has one item, -// the first item in the aggregate. -func Reduce(err error) error { - if agg, ok := err.(Aggregate); ok && err != nil { - switch len(agg.Errors()) { - case 1: - return agg.Errors()[0] - case 0: - return nil - } - } - return err -} - -// AggregateGoroutines runs the provided functions in parallel, stuffing all -// non-nil errors into the returned Aggregate. -// Returns nil if all the functions complete successfully. -func AggregateGoroutines(funcs ...func() error) Aggregate { - errChan := make(chan error, len(funcs)) - for _, f := range funcs { - go func(f func() error) { errChan <- f() }(f) - } - errs := make([]error, 0) - for i := 0; i < cap(errChan); i++ { - if err := <-errChan; err != nil { - errs = append(errs, err) - } - } - return NewAggregate(errs) -} - -// ErrPreconditionViolated is returned when the precondition is violated -var ErrPreconditionViolated = errors.New("precondition is violated") diff --git a/pseudo/k8s/apimachinery/pkg/util/errors/errors_test.go b/pseudo/k8s/apimachinery/pkg/util/errors/errors_test.go deleted file mode 100644 index d70a4d51a..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/errors/errors_test.go +++ /dev/null @@ -1,432 +0,0 @@ -/* -Copyright 2015 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 errors - -import ( - "fmt" - "reflect" - "sort" - "testing" -) - -func TestEmptyAggregate(t *testing.T) { - var slice []error - var agg Aggregate - var err error - - agg = NewAggregate(slice) - if agg != nil { - t.Errorf("expected nil, got %#v", agg) - } - err = NewAggregate(slice) - if err != nil { - t.Errorf("expected nil, got %#v", err) - } - - // This is not normally possible, but pedantry demands I test it. - agg = aggregate(slice) // empty aggregate - if s := agg.Error(); s != "" { - t.Errorf("expected empty string, got %q", s) - } - if s := agg.Errors(); len(s) != 0 { - t.Errorf("expected empty slice, got %#v", s) - } - err = agg.(error) - if s := err.Error(); s != "" { - t.Errorf("expected empty string, got %q", s) - } -} - -func TestAggregateWithNil(t *testing.T) { - var slice []error - slice = []error{nil} - var agg Aggregate - var err error - - agg = NewAggregate(slice) - if agg != nil { - t.Errorf("expected nil, got %#v", agg) - } - err = NewAggregate(slice) - if err != nil { - t.Errorf("expected nil, got %#v", err) - } - - // Append a non-nil error - slice = append(slice, fmt.Errorf("err")) - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "err" { - t.Errorf("expected 'err', got %q", s) - } - if s := agg.Errors(); len(s) != 1 { - t.Errorf("expected one-element slice, got %#v", s) - } - if s := agg.Errors()[0].Error(); s != "err" { - t.Errorf("expected 'err', got %q", s) - } - - err = agg.(error) - if err == nil { - t.Errorf("expected non-nil") - } - if s := err.Error(); s != "err" { - t.Errorf("expected 'err', got %q", s) - } -} - -func TestSingularAggregate(t *testing.T) { - var slice []error = []error{fmt.Errorf("err")} - var agg Aggregate - var err error - - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "err" { - t.Errorf("expected 'err', got %q", s) - } - if s := agg.Errors(); len(s) != 1 { - t.Errorf("expected one-element slice, got %#v", s) - } - if s := agg.Errors()[0].Error(); s != "err" { - t.Errorf("expected 'err', got %q", s) - } - - err = agg.(error) - if err == nil { - t.Errorf("expected non-nil") - } - if s := err.Error(); s != "err" { - t.Errorf("expected 'err', got %q", s) - } -} - -func TestPluralAggregate(t *testing.T) { - var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("123")} - var agg Aggregate - var err error - - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "[abc, 123]" { - t.Errorf("expected '[abc, 123]', got %q", s) - } - if s := agg.Errors(); len(s) != 2 { - t.Errorf("expected two-elements slice, got %#v", s) - } - if s := agg.Errors()[0].Error(); s != "abc" { - t.Errorf("expected '[abc, 123]', got %q", s) - } - - err = agg.(error) - if err == nil { - t.Errorf("expected non-nil") - } - if s := err.Error(); s != "[abc, 123]" { - t.Errorf("expected '[abc, 123]', got %q", s) - } -} - -func TestDedupeAggregate(t *testing.T) { - var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc")} - var agg Aggregate - - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "abc" { - t.Errorf("expected 'abc', got %q", s) - } - if s := agg.Errors(); len(s) != 2 { - t.Errorf("expected two-elements slice, got %#v", s) - } -} - -func TestDedupePluralAggregate(t *testing.T) { - var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), fmt.Errorf("123")} - var agg Aggregate - - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "[abc, 123]" { - t.Errorf("expected '[abc, 123]', got %q", s) - } - if s := agg.Errors(); len(s) != 3 { - t.Errorf("expected three-elements slice, got %#v", s) - } -} - -func TestFlattenAndDedupeAggregate(t *testing.T) { - var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), NewAggregate([]error{fmt.Errorf("abc")})} - var agg Aggregate - - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "abc" { - t.Errorf("expected 'abc', got %q", s) - } - if s := agg.Errors(); len(s) != 3 { - t.Errorf("expected three-elements slice, got %#v", s) - } -} - -func TestFlattenAggregate(t *testing.T) { - var slice []error = []error{fmt.Errorf("abc"), fmt.Errorf("abc"), NewAggregate([]error{fmt.Errorf("abc"), fmt.Errorf("def"), NewAggregate([]error{fmt.Errorf("def"), fmt.Errorf("ghi")})})} - var agg Aggregate - - agg = NewAggregate(slice) - if agg == nil { - t.Errorf("expected non-nil") - } - if s := agg.Error(); s != "[abc, def, ghi]" { - t.Errorf("expected '[abc, def, ghi]', got %q", s) - } - if s := agg.Errors(); len(s) != 3 { - t.Errorf("expected three-elements slice, got %#v", s) - } -} - -func TestFilterOut(t *testing.T) { - testCases := []struct { - err error - filter []Matcher - expected error - }{ - { - nil, - []Matcher{}, - nil, - }, - { - aggregate{}, - []Matcher{}, - nil, - }, - { - aggregate{fmt.Errorf("abc")}, - []Matcher{}, - aggregate{fmt.Errorf("abc")}, - }, - { - aggregate{fmt.Errorf("abc")}, - []Matcher{func(err error) bool { return false }}, - aggregate{fmt.Errorf("abc")}, - }, - { - aggregate{fmt.Errorf("abc")}, - []Matcher{func(err error) bool { return true }}, - nil, - }, - { - aggregate{fmt.Errorf("abc")}, - []Matcher{func(err error) bool { return false }, func(err error) bool { return false }}, - aggregate{fmt.Errorf("abc")}, - }, - { - aggregate{fmt.Errorf("abc")}, - []Matcher{func(err error) bool { return false }, func(err error) bool { return true }}, - nil, - }, - { - aggregate{fmt.Errorf("abc"), fmt.Errorf("def"), fmt.Errorf("ghi")}, - []Matcher{func(err error) bool { return err.Error() == "def" }}, - aggregate{fmt.Errorf("abc"), fmt.Errorf("ghi")}, - }, - { - aggregate{aggregate{fmt.Errorf("abc")}}, - []Matcher{}, - aggregate{aggregate{fmt.Errorf("abc")}}, - }, - { - aggregate{aggregate{fmt.Errorf("abc"), aggregate{fmt.Errorf("def")}}}, - []Matcher{}, - aggregate{aggregate{fmt.Errorf("abc"), aggregate{fmt.Errorf("def")}}}, - }, - { - aggregate{aggregate{fmt.Errorf("abc"), aggregate{fmt.Errorf("def")}}}, - []Matcher{func(err error) bool { return err.Error() == "def" }}, - aggregate{aggregate{fmt.Errorf("abc")}}, - }, - } - for i, testCase := range testCases { - err := FilterOut(testCase.err, testCase.filter...) - if !reflect.DeepEqual(testCase.expected, err) { - t.Errorf("%d: expected %v, got %v", i, testCase.expected, err) - } - } -} - -func TestFlatten(t *testing.T) { - testCases := []struct { - agg Aggregate - expected Aggregate - }{ - { - nil, - nil, - }, - { - aggregate{}, - nil, - }, - { - aggregate{fmt.Errorf("abc")}, - aggregate{fmt.Errorf("abc")}, - }, - { - aggregate{fmt.Errorf("abc"), fmt.Errorf("def"), fmt.Errorf("ghi")}, - aggregate{fmt.Errorf("abc"), fmt.Errorf("def"), fmt.Errorf("ghi")}, - }, - { - aggregate{aggregate{fmt.Errorf("abc")}}, - aggregate{fmt.Errorf("abc")}, - }, - { - aggregate{aggregate{aggregate{fmt.Errorf("abc")}}}, - aggregate{fmt.Errorf("abc")}, - }, - { - aggregate{aggregate{fmt.Errorf("abc"), aggregate{fmt.Errorf("def")}}}, - aggregate{fmt.Errorf("abc"), fmt.Errorf("def")}, - }, - { - aggregate{aggregate{aggregate{fmt.Errorf("abc")}, fmt.Errorf("def"), aggregate{fmt.Errorf("ghi")}}}, - aggregate{fmt.Errorf("abc"), fmt.Errorf("def"), fmt.Errorf("ghi")}, - }, - } - for i, testCase := range testCases { - agg := Flatten(testCase.agg) - if !reflect.DeepEqual(testCase.expected, agg) { - t.Errorf("%d: expected %v, got %v", i, testCase.expected, agg) - } - } -} - -func TestCreateAggregateFromMessageCountMap(t *testing.T) { - testCases := []struct { - name string - mcm MessageCountMap - expected Aggregate - }{ - { - "input has single instance of one message", - MessageCountMap{"abc": 1}, - aggregate{fmt.Errorf("abc")}, - }, - { - "input has multiple messages", - MessageCountMap{"abc": 2, "ghi": 1}, - aggregate{fmt.Errorf("abc (repeated 2 times)"), fmt.Errorf("ghi")}, - }, - { - "input has multiple messages", - MessageCountMap{"ghi": 1, "abc": 2}, - aggregate{fmt.Errorf("abc (repeated 2 times)"), fmt.Errorf("ghi")}, - }, - } - - var expected, agg []error - for _, testCase := range testCases { - t.Run(testCase.name, func(t *testing.T) { - if testCase.expected != nil { - expected = testCase.expected.Errors() - sort.Slice(expected, func(i, j int) bool { return expected[i].Error() < expected[j].Error() }) - } - if testCase.mcm != nil { - agg = CreateAggregateFromMessageCountMap(testCase.mcm).Errors() - sort.Slice(agg, func(i, j int) bool { return agg[i].Error() < agg[j].Error() }) - } - if !reflect.DeepEqual(expected, agg) { - t.Errorf("expected %v, got %v", expected, agg) - } - }) - } -} - -func TestAggregateGoroutines(t *testing.T) { - testCases := []struct { - errs []error - expected map[string]bool // can't compare directly to Aggregate due to non-deterministic ordering - }{ - { - []error{}, - nil, - }, - { - []error{nil}, - nil, - }, - { - []error{nil, nil}, - nil, - }, - { - []error{fmt.Errorf("1")}, - map[string]bool{"1": true}, - }, - { - []error{fmt.Errorf("1"), nil}, - map[string]bool{"1": true}, - }, - { - []error{fmt.Errorf("1"), fmt.Errorf("267")}, - map[string]bool{"1": true, "267": true}, - }, - { - []error{fmt.Errorf("1"), nil, fmt.Errorf("1234")}, - map[string]bool{"1": true, "1234": true}, - }, - { - []error{nil, fmt.Errorf("1"), nil, fmt.Errorf("1234"), fmt.Errorf("22")}, - map[string]bool{"1": true, "1234": true, "22": true}, - }, - } - for i, testCase := range testCases { - funcs := make([]func() error, len(testCase.errs)) - for i := range testCase.errs { - err := testCase.errs[i] - funcs[i] = func() error { return err } - } - agg := AggregateGoroutines(funcs...) - if agg == nil { - if len(testCase.expected) > 0 { - t.Errorf("%d: expected %v, got nil", i, testCase.expected) - } - continue - } - if len(agg.Errors()) != len(testCase.expected) { - t.Errorf("%d: expected %d errors in aggregate, got %v", i, len(testCase.expected), agg) - continue - } - for _, err := range agg.Errors() { - if !testCase.expected[err.Error()] { - t.Errorf("%d: expected %v, got aggregate containing %v", i, testCase.expected, err) - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/framer/framer.go b/pseudo/k8s/apimachinery/pkg/util/framer/framer.go deleted file mode 100644 index 066680f44..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/framer/framer.go +++ /dev/null @@ -1,167 +0,0 @@ -/* -Copyright 2015 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 framer implements simple frame decoding techniques for an io.ReadCloser -package framer - -import ( - "encoding/binary" - "encoding/json" - "io" -) - -type lengthDelimitedFrameWriter struct { - w io.Writer - h [4]byte -} - -func NewLengthDelimitedFrameWriter(w io.Writer) io.Writer { - return &lengthDelimitedFrameWriter{w: w} -} - -// Write writes a single frame to the nested writer, prepending it with the length in -// in bytes of data (as a 4 byte, bigendian uint32). -func (w *lengthDelimitedFrameWriter) Write(data []byte) (int, error) { - binary.BigEndian.PutUint32(w.h[:], uint32(len(data))) - n, err := w.w.Write(w.h[:]) - if err != nil { - return 0, err - } - if n != len(w.h) { - return 0, io.ErrShortWrite - } - return w.w.Write(data) -} - -type lengthDelimitedFrameReader struct { - r io.ReadCloser - remaining int -} - -// NewLengthDelimitedFrameReader returns an io.Reader that will decode length-prefixed -// frames off of a stream. -// -// The protocol is: -// -// stream: message ... -// message: prefix body -// prefix: 4 byte uint32 in BigEndian order, denotes length of body -// body: bytes (0..prefix) -// -// If the buffer passed to Read is not long enough to contain an entire frame, io.ErrShortRead -// will be returned along with the number of bytes read. -func NewLengthDelimitedFrameReader(r io.ReadCloser) io.ReadCloser { - return &lengthDelimitedFrameReader{r: r} -} - -// Read attempts to read an entire frame into data. If that is not possible, io.ErrShortBuffer -// is returned and subsequent calls will attempt to read the last frame. A frame is complete when -// err is nil. -func (r *lengthDelimitedFrameReader) Read(data []byte) (int, error) { - if r.remaining <= 0 { - header := [4]byte{} - n, err := io.ReadAtLeast(r.r, header[:4], 4) - if err != nil { - return 0, err - } - if n != 4 { - return 0, io.ErrUnexpectedEOF - } - frameLength := int(binary.BigEndian.Uint32(header[:])) - r.remaining = frameLength - } - - expect := r.remaining - max := expect - if max > len(data) { - max = len(data) - } - n, err := io.ReadAtLeast(r.r, data[:max], int(max)) - r.remaining -= n - if err == io.ErrShortBuffer || r.remaining > 0 { - return n, io.ErrShortBuffer - } - if err != nil { - return n, err - } - if n != expect { - return n, io.ErrUnexpectedEOF - } - - return n, nil -} - -func (r *lengthDelimitedFrameReader) Close() error { - return r.r.Close() -} - -type jsonFrameReader struct { - r io.ReadCloser - decoder *json.Decoder - remaining []byte -} - -// NewJSONFramedReader returns an io.Reader that will decode individual JSON objects off -// of a wire. -// -// The boundaries between each frame are valid JSON objects. A JSON parsing error will terminate -// the read. -func NewJSONFramedReader(r io.ReadCloser) io.ReadCloser { - return &jsonFrameReader{ - r: r, - decoder: json.NewDecoder(r), - } -} - -// ReadFrame decodes the next JSON object in the stream, or returns an error. The returned -// byte slice will be modified the next time ReadFrame is invoked and should not be altered. -func (r *jsonFrameReader) Read(data []byte) (int, error) { - // Return whatever remaining data exists from an in progress frame - if n := len(r.remaining); n > 0 { - if n <= len(data) { - data = append(data[0:0], r.remaining...) - r.remaining = nil - return n, nil - } - - n = len(data) - data = append(data[0:0], r.remaining[:n]...) - r.remaining = r.remaining[n:] - return n, io.ErrShortBuffer - } - - // RawMessage#Unmarshal appends to data - we reset the slice down to 0 and will either see - // data written to data, or be larger than data and a different array. - n := len(data) - m := json.RawMessage(data[:0]) - if err := r.decoder.Decode(&m); err != nil { - return 0, err - } - - // If capacity of data is less than length of the message, decoder will allocate a new slice - // and set m to it, which means we need to copy the partial result back into data and preserve - // the remaining result for subsequent reads. - if len(m) > n { - data = append(data[0:0], m[:n]...) - r.remaining = m[n:] - return n, io.ErrShortBuffer - } - return len(m), nil -} - -func (r *jsonFrameReader) Close() error { - return r.r.Close() -} diff --git a/pseudo/k8s/apimachinery/pkg/util/framer/framer_test.go b/pseudo/k8s/apimachinery/pkg/util/framer/framer_test.go deleted file mode 100644 index b7ed00f53..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/framer/framer_test.go +++ /dev/null @@ -1,176 +0,0 @@ -/* -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 framer - -import ( - "bytes" - "io" - "io/ioutil" - "testing" -) - -func TestRead(t *testing.T) { - data := []byte{ - 0x00, 0x00, 0x00, 0x04, - 0x01, 0x02, 0x03, 0x04, - 0x00, 0x00, 0x00, 0x03, - 0x05, 0x06, 0x07, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, - 0x08, - } - b := bytes.NewBuffer(data) - r := NewLengthDelimitedFrameReader(ioutil.NopCloser(b)) - buf := make([]byte, 1) - if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x01}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x02}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read the remaining frame - buf = make([]byte, 2) - if n, err := r.Read(buf); err != nil && n != 2 && bytes.Equal(buf, []byte{0x03, 0x04}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read with buffer equal to frame - buf = make([]byte, 3) - if n, err := r.Read(buf); err != nil && n != 3 && bytes.Equal(buf, []byte{0x05, 0x06, 0x07}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read empty frame - buf = make([]byte, 3) - if n, err := r.Read(buf); err != nil && n != 0 && bytes.Equal(buf, []byte{}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read with larger buffer than frame - buf = make([]byte, 3) - if n, err := r.Read(buf); err != nil && n != 1 && bytes.Equal(buf, []byte{0x08}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read EOF - if n, err := r.Read(buf); err != io.EOF && n != 0 { - t.Fatalf("unexpected: %v %d", err, n) - } -} - -func TestReadLarge(t *testing.T) { - data := []byte{ - 0x00, 0x00, 0x00, 0x04, - 0x01, 0x02, 0x03, 0x04, - 0x00, 0x00, 0x00, 0x03, - 0x05, 0x06, 0x07, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, - 0x08, - } - b := bytes.NewBuffer(data) - r := NewLengthDelimitedFrameReader(ioutil.NopCloser(b)) - buf := make([]byte, 40) - if n, err := r.Read(buf); err != nil && n != 4 && bytes.Equal(buf, []byte{0x01, 0x02, 0x03, 0x04}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - if n, err := r.Read(buf); err != nil && n != 3 && bytes.Equal(buf, []byte{0x05, 0x06, 0x7}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - if n, err := r.Read(buf); err != nil && n != 0 && bytes.Equal(buf, []byte{}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - if n, err := r.Read(buf); err != nil && n != 1 && bytes.Equal(buf, []byte{0x08}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read EOF - if n, err := r.Read(buf); err != io.EOF && n != 0 { - t.Fatalf("unexpected: %v %d", err, n) - } -} -func TestReadInvalidFrame(t *testing.T) { - data := []byte{ - 0x00, 0x00, 0x00, 0x04, - 0x01, 0x02, - } - b := bytes.NewBuffer(data) - r := NewLengthDelimitedFrameReader(ioutil.NopCloser(b)) - buf := make([]byte, 1) - if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x01}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read the remaining frame - buf = make([]byte, 3) - if n, err := r.Read(buf); err != io.ErrUnexpectedEOF && n != 1 && bytes.Equal(buf, []byte{0x02}) { - t.Fatalf("unexpected: %v %d %v", err, n, buf) - } - // read EOF - if n, err := r.Read(buf); err != io.EOF && n != 0 { - t.Fatalf("unexpected: %v %d", err, n) - } -} - -func TestJSONFrameReader(t *testing.T) { - b := bytes.NewBufferString("{\"test\":true}\n1\n[\"a\"]") - r := NewJSONFramedReader(ioutil.NopCloser(b)) - buf := make([]byte, 20) - if n, err := r.Read(buf); err != nil || n != 13 || string(buf[:n]) != `{"test":true}` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != nil || n != 1 || string(buf[:n]) != `1` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != nil || n != 5 || string(buf[:n]) != `["a"]` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != io.EOF || n != 0 { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } -} - -func TestJSONFrameReaderShortBuffer(t *testing.T) { - b := bytes.NewBufferString("{\"test\":true}\n1\n[\"a\"]") - r := NewJSONFramedReader(ioutil.NopCloser(b)) - buf := make([]byte, 3) - - if n, err := r.Read(buf); err != io.ErrShortBuffer || n != 3 || string(buf[:n]) != `{"t` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != io.ErrShortBuffer || n != 3 || string(buf[:n]) != `est` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != io.ErrShortBuffer || n != 3 || string(buf[:n]) != `":t` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != io.ErrShortBuffer || n != 3 || string(buf[:n]) != `rue` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != nil || n != 1 || string(buf[:n]) != `}` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - - if n, err := r.Read(buf); err != nil || n != 1 || string(buf[:n]) != `1` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - - if n, err := r.Read(buf); err != io.ErrShortBuffer || n != 3 || string(buf[:n]) != `["a` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - if n, err := r.Read(buf); err != nil || n != 2 || string(buf[:n]) != `"]` { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } - - if n, err := r.Read(buf); err != io.EOF || n != 0 { - t.Fatalf("unexpected: %v %d %q", err, n, buf) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/doc.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/doc.go deleted file mode 100644 index 066d28a2a..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/doc.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2015 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 httpstream adds multiplexed streaming support to HTTP requests and -// responses via connection upgrades. -package httpstream // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/httpstream" diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream.go deleted file mode 100644 index 50d9a366f..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -Copyright 2015 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 httpstream - -import ( - "fmt" - "io" - "net/http" - "strings" - "time" -) - -const ( - HeaderConnection = "Connection" - HeaderUpgrade = "Upgrade" - HeaderProtocolVersion = "X-Stream-Protocol-Version" - HeaderAcceptedProtocolVersions = "X-Accepted-Stream-Protocol-Versions" -) - -// NewStreamHandler defines a function that is called when a new Stream is -// received. If no error is returned, the Stream is accepted; otherwise, -// the stream is rejected. After the reply frame has been sent, replySent is closed. -type NewStreamHandler func(stream Stream, replySent <-chan struct{}) error - -// NoOpNewStreamHandler is a stream handler that accepts a new stream and -// performs no other logic. -func NoOpNewStreamHandler(stream Stream, replySent <-chan struct{}) error { return nil } - -// Dialer knows how to open a streaming connection to a server. -type Dialer interface { - - // Dial opens a streaming connection to a server using one of the protocols - // specified (in order of most preferred to least preferred). - Dial(protocols ...string) (Connection, string, error) -} - -// UpgradeRoundTripper is a type of http.RoundTripper that is able to upgrade -// HTTP requests to support multiplexed bidirectional streams. After RoundTrip() -// is invoked, if the upgrade is successful, clients may retrieve the upgraded -// connection by calling UpgradeRoundTripper.Connection(). -type UpgradeRoundTripper interface { - http.RoundTripper - // NewConnection validates the response and creates a new Connection. - NewConnection(resp *http.Response) (Connection, error) -} - -// ResponseUpgrader knows how to upgrade HTTP requests and responses to -// add streaming support to them. -type ResponseUpgrader interface { - // UpgradeResponse upgrades an HTTP response to one that supports multiplexed - // streams. newStreamHandler will be called asynchronously whenever the - // other end of the upgraded connection creates a new stream. - UpgradeResponse(w http.ResponseWriter, req *http.Request, newStreamHandler NewStreamHandler) Connection -} - -// Connection represents an upgraded HTTP connection. -type Connection interface { - // CreateStream creates a new Stream with the supplied headers. - CreateStream(headers http.Header) (Stream, error) - // Close resets all streams and closes the connection. - Close() error - // CloseChan returns a channel that is closed when the underlying connection is closed. - CloseChan() <-chan bool - // SetIdleTimeout sets the amount of time the connection may remain idle before - // it is automatically closed. - SetIdleTimeout(timeout time.Duration) -} - -// Stream represents a bidirectional communications channel that is part of an -// upgraded connection. -type Stream interface { - io.ReadWriteCloser - // Reset closes both directions of the stream, indicating that neither client - // or server can use it any more. - Reset() error - // Headers returns the headers used to create the stream. - Headers() http.Header - // Identifier returns the stream's ID. - Identifier() uint32 -} - -// IsUpgradeRequest returns true if the given request is a connection upgrade request -func IsUpgradeRequest(req *http.Request) bool { - for _, h := range req.Header[http.CanonicalHeaderKey(HeaderConnection)] { - if strings.Contains(strings.ToLower(h), strings.ToLower(HeaderUpgrade)) { - return true - } - } - return false -} - -func negotiateProtocol(clientProtocols, serverProtocols []string) string { - for i := range clientProtocols { - for j := range serverProtocols { - if clientProtocols[i] == serverProtocols[j] { - return clientProtocols[i] - } - } - } - return "" -} - -// Handshake performs a subprotocol negotiation. If the client did request a -// subprotocol, Handshake will select the first common value found in -// serverProtocols. If a match is found, Handshake adds a response header -// indicating the chosen subprotocol. If no match is found, HTTP forbidden is -// returned, along with a response header containing the list of protocols the -// server can accept. -func Handshake(req *http.Request, w http.ResponseWriter, serverProtocols []string) (string, error) { - clientProtocols := req.Header[http.CanonicalHeaderKey(HeaderProtocolVersion)] - if len(clientProtocols) == 0 { - // Kube 1.0 clients didn't support subprotocol negotiation. - // TODO require clientProtocols once Kube 1.0 is no longer supported - return "", nil - } - - if len(serverProtocols) == 0 { - // Kube 1.0 servers didn't support subprotocol negotiation. This is mainly for testing. - // TODO require serverProtocols once Kube 1.0 is no longer supported - return "", nil - } - - negotiatedProtocol := negotiateProtocol(clientProtocols, serverProtocols) - if len(negotiatedProtocol) == 0 { - for i := range serverProtocols { - w.Header().Add(HeaderAcceptedProtocolVersions, serverProtocols[i]) - } - err := fmt.Errorf("unable to upgrade: unable to negotiate protocol: client supports %v, server accepts %v", clientProtocols, serverProtocols) - http.Error(w, err.Error(), http.StatusForbidden) - return "", err - } - - w.Header().Add(HeaderProtocolVersion, negotiatedProtocol) - return negotiatedProtocol, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream_test.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream_test.go deleted file mode 100644 index f7f9a3ebf..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/httpstream_test.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Copyright 2015 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 httpstream - -import ( - "net/http" - "reflect" - "testing" -) - -type responseWriter struct { - header http.Header - statusCode *int -} - -func newResponseWriter() *responseWriter { - return &responseWriter{ - header: make(http.Header), - } -} - -func (r *responseWriter) Header() http.Header { - return r.header -} - -func (r *responseWriter) WriteHeader(code int) { - r.statusCode = &code -} - -func (r *responseWriter) Write([]byte) (int, error) { - return 0, nil -} - -func TestHandshake(t *testing.T) { - tests := map[string]struct { - clientProtocols []string - serverProtocols []string - expectedProtocol string - expectError bool - }{ - "no client protocols": { - clientProtocols: []string{}, - serverProtocols: []string{"a", "b"}, - expectedProtocol: "", - }, - "no common protocol": { - clientProtocols: []string{"c"}, - serverProtocols: []string{"a", "b"}, - expectedProtocol: "", - expectError: true, - }, - "common protocol": { - clientProtocols: []string{"b"}, - serverProtocols: []string{"a", "b"}, - expectedProtocol: "b", - }, - } - - for name, test := range tests { - req, err := http.NewRequest("GET", "http://www.example.com/", nil) - if err != nil { - t.Fatalf("%s: error creating request: %v", name, err) - } - - for _, p := range test.clientProtocols { - req.Header.Add(HeaderProtocolVersion, p) - } - - w := newResponseWriter() - negotiated, err := Handshake(req, w, test.serverProtocols) - - // verify negotiated protocol - if e, a := test.expectedProtocol, negotiated; e != a { - t.Errorf("%s: protocol: expected %q, got %q", name, e, a) - } - - if test.expectError { - if err == nil { - t.Errorf("%s: expected error but did not get one", name) - } - if w.statusCode == nil { - t.Errorf("%s: expected w.statusCode to be set", name) - } else if e, a := http.StatusForbidden, *w.statusCode; e != a { - t.Errorf("%s: w.statusCode: expected %d, got %d", name, e, a) - } - if e, a := test.serverProtocols, w.Header()[HeaderAcceptedProtocolVersions]; !reflect.DeepEqual(e, a) { - t.Errorf("%s: accepted server protocols: expected %v, got %v", name, e, a) - } - continue - } - if !test.expectError && err != nil { - t.Errorf("%s: unexpected error: %v", name, err) - continue - } - if w.statusCode != nil { - t.Errorf("%s: unexpected non-nil w.statusCode: %d", name, w.statusCode) - } - - if len(test.expectedProtocol) == 0 { - if len(w.Header()[HeaderProtocolVersion]) > 0 { - t.Errorf("%s: unexpected protocol version response header: %s", name, w.Header()[HeaderProtocolVersion]) - } - continue - } - - // verify response headers - if e, a := []string{test.expectedProtocol}, w.Header()[HeaderProtocolVersion]; !reflect.DeepEqual(e, a) { - t.Errorf("%s: protocol response header: expected %v, got %v", name, e, a) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection.go deleted file mode 100644 index 1a26eb945..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection.go +++ /dev/null @@ -1,145 +0,0 @@ -/* -Copyright 2015 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 spdy - -import ( - "net" - "net/http" - "sync" - "time" - - "github.com/docker/spdystream" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/httpstream" - "k8s.io/klog" -) - -// connection maintains state about a spdystream.Connection and its associated -// streams. -type connection struct { - conn *spdystream.Connection - streams []httpstream.Stream - streamLock sync.Mutex - newStreamHandler httpstream.NewStreamHandler -} - -// NewClientConnection creates a new SPDY client connection. -func NewClientConnection(conn net.Conn) (httpstream.Connection, error) { - spdyConn, err := spdystream.NewConnection(conn, false) - if err != nil { - defer conn.Close() - return nil, err - } - - return newConnection(spdyConn, httpstream.NoOpNewStreamHandler), nil -} - -// NewServerConnection creates a new SPDY server connection. newStreamHandler -// will be invoked when the server receives a newly created stream from the -// client. -func NewServerConnection(conn net.Conn, newStreamHandler httpstream.NewStreamHandler) (httpstream.Connection, error) { - spdyConn, err := spdystream.NewConnection(conn, true) - if err != nil { - defer conn.Close() - return nil, err - } - - return newConnection(spdyConn, newStreamHandler), nil -} - -// newConnection returns a new connection wrapping conn. newStreamHandler -// will be invoked when the server receives a newly created stream from the -// client. -func newConnection(conn *spdystream.Connection, newStreamHandler httpstream.NewStreamHandler) httpstream.Connection { - c := &connection{conn: conn, newStreamHandler: newStreamHandler} - go conn.Serve(c.newSpdyStream) - return c -} - -// createStreamResponseTimeout indicates how long to wait for the other side to -// acknowledge the new stream before timing out. -const createStreamResponseTimeout = 30 * time.Second - -// Close first sends a reset for all of the connection's streams, and then -// closes the underlying spdystream.Connection. -func (c *connection) Close() error { - c.streamLock.Lock() - for _, s := range c.streams { - // calling Reset instead of Close ensures that all streams are fully torn down - s.Reset() - } - c.streams = make([]httpstream.Stream, 0) - c.streamLock.Unlock() - - // now that all streams are fully torn down, it's safe to call close on the underlying connection, - // which should be able to terminate immediately at this point, instead of waiting for any - // remaining graceful stream termination. - return c.conn.Close() -} - -// CreateStream creates a new stream with the specified headers and registers -// it with the connection. -func (c *connection) CreateStream(headers http.Header) (httpstream.Stream, error) { - stream, err := c.conn.CreateStream(headers, nil, false) - if err != nil { - return nil, err - } - if err = stream.WaitTimeout(createStreamResponseTimeout); err != nil { - return nil, err - } - - c.registerStream(stream) - return stream, nil -} - -// registerStream adds the stream s to the connection's list of streams that -// it owns. -func (c *connection) registerStream(s httpstream.Stream) { - c.streamLock.Lock() - c.streams = append(c.streams, s) - c.streamLock.Unlock() -} - -// CloseChan returns a channel that, when closed, indicates that the underlying -// spdystream.Connection has been closed. -func (c *connection) CloseChan() <-chan bool { - return c.conn.CloseChan() -} - -// newSpdyStream is the internal new stream handler used by spdystream.Connection.Serve. -// It calls connection's newStreamHandler, giving it the opportunity to accept or reject -// the stream. If newStreamHandler returns an error, the stream is rejected. If not, the -// stream is accepted and registered with the connection. -func (c *connection) newSpdyStream(stream *spdystream.Stream) { - replySent := make(chan struct{}) - err := c.newStreamHandler(stream, replySent) - rejectStream := (err != nil) - if rejectStream { - klog.Warningf("Stream rejected: %v", err) - stream.Reset() - return - } - - c.registerStream(stream) - stream.SendReply(http.Header{}, rejectStream) - close(replySent) -} - -// SetIdleTimeout sets the amount of time the connection may remain idle before -// it is automatically closed. -func (c *connection) SetIdleTimeout(timeout time.Duration) { - c.conn.SetIdleTimeout(timeout) -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection_test.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection_test.go deleted file mode 100644 index dce4e57de..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/connection_test.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -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 spdy - -import ( - "io" - "net" - "net/http" - "sync" - "testing" - "time" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/httpstream" -) - -func runProxy(t *testing.T, backendUrl string, proxyUrl chan<- string, proxyDone chan<- struct{}) { - listener, err := net.Listen("tcp4", "localhost:0") - if err != nil { - t.Fatalf("error listening: %v", err) - } - defer listener.Close() - - proxyUrl <- listener.Addr().String() - - clientConn, err := listener.Accept() - if err != nil { - t.Errorf("proxy: error accepting client connection: %v", err) - return - } - - backendConn, err := net.Dial("tcp4", backendUrl) - if err != nil { - t.Errorf("proxy: error dialing backend: %v", err) - return - } - defer backendConn.Close() - - var wg sync.WaitGroup - wg.Add(2) - - go func() { - defer wg.Done() - io.Copy(backendConn, clientConn) - }() - - go func() { - defer wg.Done() - io.Copy(clientConn, backendConn) - }() - - wg.Wait() - - proxyDone <- struct{}{} -} - -func runServer(t *testing.T, backendUrl chan<- string, serverDone chan<- struct{}) { - listener, err := net.Listen("tcp4", "localhost:0") - if err != nil { - t.Fatalf("server: error listening: %v", err) - } - defer listener.Close() - - backendUrl <- listener.Addr().String() - - conn, err := listener.Accept() - if err != nil { - t.Errorf("server: error accepting connection: %v", err) - return - } - - streamChan := make(chan httpstream.Stream) - replySentChan := make(chan (<-chan struct{})) - spdyConn, err := NewServerConnection(conn, func(stream httpstream.Stream, replySent <-chan struct{}) error { - streamChan <- stream - replySentChan <- replySent - return nil - }) - if err != nil { - t.Errorf("server: error creating spdy connection: %v", err) - return - } - - stream := <-streamChan - replySent := <-replySentChan - <-replySent - - buf := make([]byte, 1) - _, err = stream.Read(buf) - if err != io.EOF { - t.Errorf("server: unexpected read error: %v", err) - return - } - - <-spdyConn.CloseChan() - raw := spdyConn.(*connection).conn - if err := raw.Wait(15 * time.Second); err != nil { - t.Errorf("server: timed out waiting for connection closure: %v", err) - } - - serverDone <- struct{}{} -} - -func TestConnectionCloseIsImmediateThroughAProxy(t *testing.T) { - serverDone := make(chan struct{}) - backendUrlChan := make(chan string) - go runServer(t, backendUrlChan, serverDone) - backendUrl := <-backendUrlChan - - proxyDone := make(chan struct{}) - proxyUrlChan := make(chan string) - go runProxy(t, backendUrl, proxyUrlChan, proxyDone) - proxyUrl := <-proxyUrlChan - - conn, err := net.Dial("tcp4", proxyUrl) - if err != nil { - t.Fatalf("client: error connecting to proxy: %v", err) - } - - spdyConn, err := NewClientConnection(conn) - if err != nil { - t.Fatalf("client: error creating spdy connection: %v", err) - } - - if _, err := spdyConn.CreateStream(http.Header{}); err != nil { - t.Fatalf("client: error creating stream: %v", err) - } - - spdyConn.Close() - raw := spdyConn.(*connection).conn - if err := raw.Wait(15 * time.Second); err != nil { - t.Fatalf("client: timed out waiting for connection closure: %v", err) - } - - expired := time.NewTimer(15 * time.Second) - defer expired.Stop() - i := 0 - for { - select { - case <-expired.C: - t.Fatalf("timed out waiting for proxy and/or server closure") - case <-serverDone: - i++ - case <-proxyDone: - i++ - } - if i == 2 { - break - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper.go deleted file mode 100644 index 22429382a..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper.go +++ /dev/null @@ -1,335 +0,0 @@ -/* -Copyright 2015 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 spdy - -import ( - "bufio" - "bytes" - "context" - "crypto/tls" - "encoding/base64" - "fmt" - "io" - "io/ioutil" - "net" - "net/http" - "net/http/httputil" - "net/url" - "strings" - - apierrors "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/api/errors" - metav1 "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/apis/meta/v1" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/runtime/serializer" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/httpstream" - utilnet "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/net" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/third_party/forked/golang/netutil" -) - -// SpdyRoundTripper knows how to upgrade an HTTP request to one that supports -// multiplexed streams. After RoundTrip() is invoked, Conn will be set -// and usable. SpdyRoundTripper implements the UpgradeRoundTripper interface. -type SpdyRoundTripper struct { - //tlsConfig holds the TLS configuration settings to use when connecting - //to the remote server. - tlsConfig *tls.Config - - /* TODO according to http://golang.org/pkg/net/http/#RoundTripper, a RoundTripper - must be safe for use by multiple concurrent goroutines. If this is absolutely - necessary, we could keep a map from http.Request to net.Conn. In practice, - a client will create an http.Client, set the transport to a new insteace of - SpdyRoundTripper, and use it a single time, so this hopefully won't be an issue. - */ - // conn is the underlying network connection to the remote server. - conn net.Conn - - // Dialer is the dialer used to connect. Used if non-nil. - Dialer *net.Dialer - - // proxier knows which proxy to use given a request, defaults to http.ProxyFromEnvironment - // Used primarily for mocking the proxy discovery in tests. - proxier func(req *http.Request) (*url.URL, error) - - // followRedirects indicates if the round tripper should examine responses for redirects and - // follow them. - followRedirects bool - // requireSameHostRedirects restricts redirect following to only follow redirects to the same host - // as the original request. - requireSameHostRedirects bool -} - -var _ utilnet.TLSClientConfigHolder = &SpdyRoundTripper{} -var _ httpstream.UpgradeRoundTripper = &SpdyRoundTripper{} -var _ utilnet.Dialer = &SpdyRoundTripper{} - -// NewRoundTripper creates a new SpdyRoundTripper that will use -// the specified tlsConfig. -func NewRoundTripper(tlsConfig *tls.Config, followRedirects, requireSameHostRedirects bool) httpstream.UpgradeRoundTripper { - return NewSpdyRoundTripper(tlsConfig, followRedirects, requireSameHostRedirects) -} - -// NewSpdyRoundTripper creates a new SpdyRoundTripper that will use -// the specified tlsConfig. This function is mostly meant for unit tests. -func NewSpdyRoundTripper(tlsConfig *tls.Config, followRedirects, requireSameHostRedirects bool) *SpdyRoundTripper { - return &SpdyRoundTripper{ - tlsConfig: tlsConfig, - followRedirects: followRedirects, - requireSameHostRedirects: requireSameHostRedirects, - } -} - -// TLSClientConfig implements pkg/util/net.TLSClientConfigHolder for proper TLS checking during -// proxying with a spdy roundtripper. -func (s *SpdyRoundTripper) TLSClientConfig() *tls.Config { - return s.tlsConfig -} - -// Dial implements sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/net.Dialer. -func (s *SpdyRoundTripper) Dial(req *http.Request) (net.Conn, error) { - conn, err := s.dial(req) - if err != nil { - return nil, err - } - - if err := req.Write(conn); err != nil { - conn.Close() - return nil, err - } - - return conn, nil -} - -// dial dials the host specified by req, using TLS if appropriate, optionally -// using a proxy server if one is configured via environment variables. -func (s *SpdyRoundTripper) dial(req *http.Request) (net.Conn, error) { - proxier := s.proxier - if proxier == nil { - proxier = utilnet.NewProxierWithNoProxyCIDR(http.ProxyFromEnvironment) - } - proxyURL, err := proxier(req) - if err != nil { - return nil, err - } - - if proxyURL == nil { - return s.dialWithoutProxy(req.Context(), req.URL) - } - - // ensure we use a canonical host with proxyReq - targetHost := netutil.CanonicalAddr(req.URL) - - // proxying logic adapted from http://blog.h6t.eu/post/74098062923/golang-websocket-with-http-proxy-support - proxyReq := http.Request{ - Method: "CONNECT", - URL: &url.URL{}, - Host: targetHost, - } - - if pa := s.proxyAuth(proxyURL); pa != "" { - proxyReq.Header = http.Header{} - proxyReq.Header.Set("Proxy-Authorization", pa) - } - - proxyDialConn, err := s.dialWithoutProxy(req.Context(), proxyURL) - if err != nil { - return nil, err - } - - proxyClientConn := httputil.NewProxyClientConn(proxyDialConn, nil) - _, err = proxyClientConn.Do(&proxyReq) - if err != nil && err != httputil.ErrPersistEOF { - return nil, err - } - - rwc, _ := proxyClientConn.Hijack() - - if req.URL.Scheme != "https" { - return rwc, nil - } - - host, _, err := net.SplitHostPort(targetHost) - if err != nil { - return nil, err - } - - tlsConfig := s.tlsConfig - switch { - case tlsConfig == nil: - tlsConfig = &tls.Config{ServerName: host} - case len(tlsConfig.ServerName) == 0: - tlsConfig = tlsConfig.Clone() - tlsConfig.ServerName = host - } - - tlsConn := tls.Client(rwc, tlsConfig) - - // need to manually call Handshake() so we can call VerifyHostname() below - if err := tlsConn.Handshake(); err != nil { - return nil, err - } - - // Return if we were configured to skip validation - if tlsConfig.InsecureSkipVerify { - return tlsConn, nil - } - - if err := tlsConn.VerifyHostname(tlsConfig.ServerName); err != nil { - return nil, err - } - - return tlsConn, nil -} - -// dialWithoutProxy dials the host specified by url, using TLS if appropriate. -func (s *SpdyRoundTripper) dialWithoutProxy(ctx context.Context, url *url.URL) (net.Conn, error) { - dialAddr := netutil.CanonicalAddr(url) - - if url.Scheme == "http" { - if s.Dialer == nil { - var d net.Dialer - return d.DialContext(ctx, "tcp", dialAddr) - } else { - return s.Dialer.DialContext(ctx, "tcp", dialAddr) - } - } - - // TODO validate the TLSClientConfig is set up? - var conn *tls.Conn - var err error - if s.Dialer == nil { - conn, err = tls.Dial("tcp", dialAddr, s.tlsConfig) - } else { - conn, err = tls.DialWithDialer(s.Dialer, "tcp", dialAddr, s.tlsConfig) - } - if err != nil { - return nil, err - } - - // Return if we were configured to skip validation - if s.tlsConfig != nil && s.tlsConfig.InsecureSkipVerify { - return conn, nil - } - - host, _, err := net.SplitHostPort(dialAddr) - if err != nil { - return nil, err - } - if s.tlsConfig != nil && len(s.tlsConfig.ServerName) > 0 { - host = s.tlsConfig.ServerName - } - err = conn.VerifyHostname(host) - if err != nil { - return nil, err - } - - return conn, nil -} - -// proxyAuth returns, for a given proxy URL, the value to be used for the Proxy-Authorization header -func (s *SpdyRoundTripper) proxyAuth(proxyURL *url.URL) string { - if proxyURL == nil || proxyURL.User == nil { - return "" - } - credentials := proxyURL.User.String() - encodedAuth := base64.StdEncoding.EncodeToString([]byte(credentials)) - return fmt.Sprintf("Basic %s", encodedAuth) -} - -// RoundTrip executes the Request and upgrades it. After a successful upgrade, -// clients may call SpdyRoundTripper.Connection() to retrieve the upgraded -// connection. -func (s *SpdyRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { - header := utilnet.CloneHeader(req.Header) - header.Add(httpstream.HeaderConnection, httpstream.HeaderUpgrade) - header.Add(httpstream.HeaderUpgrade, HeaderSpdy31) - - var ( - conn net.Conn - rawResponse []byte - err error - ) - - if s.followRedirects { - conn, rawResponse, err = utilnet.ConnectWithRedirects(req.Method, req.URL, header, req.Body, s, s.requireSameHostRedirects) - } else { - clone := utilnet.CloneRequest(req) - clone.Header = header - conn, err = s.Dial(clone) - } - if err != nil { - return nil, err - } - - responseReader := bufio.NewReader( - io.MultiReader( - bytes.NewBuffer(rawResponse), - conn, - ), - ) - - resp, err := http.ReadResponse(responseReader, nil) - if err != nil { - if conn != nil { - conn.Close() - } - return nil, err - } - - s.conn = conn - - return resp, nil -} - -// NewConnection validates the upgrade response, creating and returning a new -// httpstream.Connection if there were no errors. -func (s *SpdyRoundTripper) NewConnection(resp *http.Response) (httpstream.Connection, error) { - connectionHeader := strings.ToLower(resp.Header.Get(httpstream.HeaderConnection)) - upgradeHeader := strings.ToLower(resp.Header.Get(httpstream.HeaderUpgrade)) - if (resp.StatusCode != http.StatusSwitchingProtocols) || !strings.Contains(connectionHeader, strings.ToLower(httpstream.HeaderUpgrade)) || !strings.Contains(upgradeHeader, strings.ToLower(HeaderSpdy31)) { - defer resp.Body.Close() - responseError := "" - responseErrorBytes, err := ioutil.ReadAll(resp.Body) - if err != nil { - responseError = "unable to read error from server response" - } else { - // TODO: I don't belong here, I should be abstracted from this class - if obj, _, err := statusCodecs.UniversalDecoder().Decode(responseErrorBytes, nil, &metav1.Status{}); err == nil { - if status, ok := obj.(*metav1.Status); ok { - return nil, &apierrors.StatusError{ErrStatus: *status} - } - } - responseError = string(responseErrorBytes) - responseError = strings.TrimSpace(responseError) - } - - return nil, fmt.Errorf("unable to upgrade connection: %s", responseError) - } - - return NewClientConnection(s.conn) -} - -// statusScheme is private scheme for the decoding here until someone fixes the TODO in NewConnection -var statusScheme = runtime.NewScheme() - -// ParameterCodec knows about query parameters used with the meta v1 API spec. -var statusCodecs = serializer.NewCodecFactory(statusScheme) - -func init() { - statusScheme.AddUnversionedTypes(metav1.SchemeGroupVersion, - &metav1.Status{}, - ) -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go deleted file mode 100644 index e556b79c9..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go +++ /dev/null @@ -1,549 +0,0 @@ -/* -Copyright 2015 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 spdy - -import ( - "crypto/tls" - "crypto/x509" - "encoding/base64" - "fmt" - "io" - "net/http" - "net/http/httptest" - "net/url" - "strings" - "sync/atomic" - "testing" - - "github.com/elazarl/goproxy" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/httpstream" -) - -// be sure to unset environment variable https_proxy (if exported) before testing, otherwise the testing will fail unexpectedly. -func TestRoundTripAndNewConnection(t *testing.T) { - for _, redirect := range []bool{false, true} { - t.Run(fmt.Sprintf("redirect = %t", redirect), func(t *testing.T) { - localhostPool := x509.NewCertPool() - if !localhostPool.AppendCertsFromPEM(localhostCert) { - t.Errorf("error setting up localhostCert pool") - } - - httpsServerInvalidHostname := func(h http.Handler) *httptest.Server { - cert, err := tls.X509KeyPair(exampleCert, exampleKey) - if err != nil { - t.Errorf("https (invalid hostname): proxy_test: %v", err) - } - ts := httptest.NewUnstartedServer(h) - ts.TLS = &tls.Config{ - Certificates: []tls.Certificate{cert}, - } - ts.StartTLS() - return ts - } - - httpsServerValidHostname := func(h http.Handler) *httptest.Server { - cert, err := tls.X509KeyPair(localhostCert, localhostKey) - if err != nil { - t.Errorf("https (valid hostname): proxy_test: %v", err) - } - ts := httptest.NewUnstartedServer(h) - ts.TLS = &tls.Config{ - Certificates: []tls.Certificate{cert}, - } - ts.StartTLS() - return ts - } - - testCases := map[string]struct { - serverFunc func(http.Handler) *httptest.Server - proxyServerFunc func(http.Handler) *httptest.Server - proxyAuth *url.Userinfo - clientTLS *tls.Config - serverConnectionHeader string - serverUpgradeHeader string - serverStatusCode int - shouldError bool - }{ - "no headers": { - serverFunc: httptest.NewServer, - serverConnectionHeader: "", - serverUpgradeHeader: "", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: true, - }, - "no upgrade header": { - serverFunc: httptest.NewServer, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: true, - }, - "no connection header": { - serverFunc: httptest.NewServer, - serverConnectionHeader: "", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: true, - }, - "no switching protocol status code": { - serverFunc: httptest.NewServer, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusForbidden, - shouldError: true, - }, - "http": { - serverFunc: httptest.NewServer, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "https (invalid hostname + InsecureSkipVerify)": { - serverFunc: httpsServerInvalidHostname, - clientTLS: &tls.Config{InsecureSkipVerify: true}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "https (invalid hostname + hostname verification)": { - serverFunc: httpsServerInvalidHostname, - clientTLS: &tls.Config{InsecureSkipVerify: false}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: true, - }, - "https (valid hostname + RootCAs)": { - serverFunc: httpsServerValidHostname, - clientTLS: &tls.Config{RootCAs: localhostPool}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied http->http": { - serverFunc: httptest.NewServer, - proxyServerFunc: httptest.NewServer, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied https (invalid hostname + InsecureSkipVerify) -> http": { - serverFunc: httptest.NewServer, - proxyServerFunc: httpsServerInvalidHostname, - clientTLS: &tls.Config{InsecureSkipVerify: true}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied https with auth (invalid hostname + InsecureSkipVerify) -> http": { - serverFunc: httptest.NewServer, - proxyServerFunc: httpsServerInvalidHostname, - proxyAuth: url.UserPassword("proxyuser", "proxypasswd"), - clientTLS: &tls.Config{InsecureSkipVerify: true}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied https (invalid hostname + hostname verification) -> http": { - serverFunc: httptest.NewServer, - proxyServerFunc: httpsServerInvalidHostname, - clientTLS: &tls.Config{InsecureSkipVerify: false}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: true, // fails because the client doesn't trust the proxy - }, - "proxied https (valid hostname + RootCAs) -> http": { - serverFunc: httptest.NewServer, - proxyServerFunc: httpsServerValidHostname, - clientTLS: &tls.Config{RootCAs: localhostPool}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied https with auth (valid hostname + RootCAs) -> http": { - serverFunc: httptest.NewServer, - proxyServerFunc: httpsServerValidHostname, - proxyAuth: url.UserPassword("proxyuser", "proxypasswd"), - clientTLS: &tls.Config{RootCAs: localhostPool}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied https (invalid hostname + InsecureSkipVerify) -> https (invalid hostname)": { - serverFunc: httpsServerInvalidHostname, - proxyServerFunc: httpsServerInvalidHostname, - clientTLS: &tls.Config{InsecureSkipVerify: true}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, // works because the test proxy ignores TLS errors - }, - "proxied https with auth (invalid hostname + InsecureSkipVerify) -> https (invalid hostname)": { - serverFunc: httpsServerInvalidHostname, - proxyServerFunc: httpsServerInvalidHostname, - proxyAuth: url.UserPassword("proxyuser", "proxypasswd"), - clientTLS: &tls.Config{InsecureSkipVerify: true}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, // works because the test proxy ignores TLS errors - }, - "proxied https (invalid hostname + hostname verification) -> https (invalid hostname)": { - serverFunc: httpsServerInvalidHostname, - proxyServerFunc: httpsServerInvalidHostname, - clientTLS: &tls.Config{InsecureSkipVerify: false}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: true, // fails because the client doesn't trust the proxy - }, - "proxied https (valid hostname + RootCAs) -> https (valid hostname + RootCAs)": { - serverFunc: httpsServerValidHostname, - proxyServerFunc: httpsServerValidHostname, - clientTLS: &tls.Config{RootCAs: localhostPool}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - "proxied https with auth (valid hostname + RootCAs) -> https (valid hostname + RootCAs)": { - serverFunc: httpsServerValidHostname, - proxyServerFunc: httpsServerValidHostname, - proxyAuth: url.UserPassword("proxyuser", "proxypasswd"), - clientTLS: &tls.Config{RootCAs: localhostPool}, - serverConnectionHeader: "Upgrade", - serverUpgradeHeader: "SPDY/3.1", - serverStatusCode: http.StatusSwitchingProtocols, - shouldError: false, - }, - } - - for k, testCase := range testCases { - server := testCase.serverFunc(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - if testCase.shouldError { - if e, a := httpstream.HeaderUpgrade, req.Header.Get(httpstream.HeaderConnection); e != a { - t.Fatalf("%s: Expected connection=upgrade header, got '%s", k, a) - } - - w.Header().Set(httpstream.HeaderConnection, testCase.serverConnectionHeader) - w.Header().Set(httpstream.HeaderUpgrade, testCase.serverUpgradeHeader) - w.WriteHeader(testCase.serverStatusCode) - - return - } - - streamCh := make(chan httpstream.Stream) - - responseUpgrader := NewResponseUpgrader() - spdyConn := responseUpgrader.UpgradeResponse(w, req, func(s httpstream.Stream, replySent <-chan struct{}) error { - streamCh <- s - return nil - }) - if spdyConn == nil { - t.Fatalf("%s: unexpected nil spdyConn", k) - } - defer spdyConn.Close() - - stream := <-streamCh - io.Copy(stream, stream) - })) - defer server.Close() - - serverURL, err := url.Parse(server.URL) - if err != nil { - t.Fatalf("%s: Error creating request: %s", k, err) - } - req, err := http.NewRequest("GET", server.URL, nil) - if err != nil { - t.Fatalf("%s: Error creating request: %s", k, err) - } - - spdyTransport := NewSpdyRoundTripper(testCase.clientTLS, redirect, redirect) - - var proxierCalled bool - var proxyCalledWithHost string - var proxyCalledWithAuth bool - var proxyCalledWithAuthHeader string - if testCase.proxyServerFunc != nil { - proxyHandler := goproxy.NewProxyHttpServer() - - proxyHandler.OnRequest().HandleConnectFunc(func(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) { - proxyCalledWithHost = host - - proxyAuthHeaderName := "Proxy-Authorization" - _, proxyCalledWithAuth = ctx.Req.Header[proxyAuthHeaderName] - proxyCalledWithAuthHeader = ctx.Req.Header.Get(proxyAuthHeaderName) - return goproxy.OkConnect, host - }) - - proxy := testCase.proxyServerFunc(proxyHandler) - - spdyTransport.proxier = func(proxierReq *http.Request) (*url.URL, error) { - proxierCalled = true - proxyURL, err := url.Parse(proxy.URL) - if err != nil { - return nil, err - } - proxyURL.User = testCase.proxyAuth - return proxyURL, nil - } - defer proxy.Close() - } - - client := &http.Client{Transport: spdyTransport} - - resp, err := client.Do(req) - var conn httpstream.Connection - if err == nil { - conn, err = spdyTransport.NewConnection(resp) - } - haveErr := err != nil - if e, a := testCase.shouldError, haveErr; e != a { - t.Fatalf("%s: shouldError=%t, got %t: %v", k, e, a, err) - } - if testCase.shouldError { - continue - } - defer conn.Close() - - if resp.StatusCode != http.StatusSwitchingProtocols { - t.Fatalf("%s: expected http 101 switching protocols, got %d", k, resp.StatusCode) - } - - stream, err := conn.CreateStream(http.Header{}) - if err != nil { - t.Fatalf("%s: error creating client stream: %s", k, err) - } - - n, err := stream.Write([]byte("hello")) - if err != nil { - t.Fatalf("%s: error writing to stream: %s", k, err) - } - if n != 5 { - t.Fatalf("%s: Expected to write 5 bytes, but actually wrote %d", k, n) - } - - b := make([]byte, 5) - n, err = stream.Read(b) - if err != nil { - t.Fatalf("%s: error reading from stream: %s", k, err) - } - if n != 5 { - t.Fatalf("%s: Expected to read 5 bytes, but actually read %d", k, n) - } - if e, a := "hello", string(b[0:n]); e != a { - t.Fatalf("%s: expected '%s', got '%s'", k, e, a) - } - - if testCase.proxyServerFunc != nil { - if !proxierCalled { - t.Fatalf("%s: Expected to use a proxy but proxier in SpdyRoundTripper wasn't called", k) - } - if proxyCalledWithHost != serverURL.Host { - t.Fatalf("%s: Expected to see a call to the proxy for backend %q, got %q", k, serverURL.Host, proxyCalledWithHost) - } - } - - var expectedProxyAuth string - if testCase.proxyAuth != nil { - encodedCredentials := base64.StdEncoding.EncodeToString([]byte(testCase.proxyAuth.String())) - expectedProxyAuth = "Basic " + encodedCredentials - } - if len(expectedProxyAuth) == 0 && proxyCalledWithAuth { - t.Fatalf("%s: Proxy authorization unexpected, got %q", k, proxyCalledWithAuthHeader) - } - if proxyCalledWithAuthHeader != expectedProxyAuth { - t.Fatalf("%s: Expected to see a call to the proxy with credentials %q, got %q", k, testCase.proxyAuth, proxyCalledWithAuthHeader) - } - } - }) - } -} - -func TestRoundTripRedirects(t *testing.T) { - tests := []struct { - redirects int32 - expectSuccess bool - }{ - {0, true}, - {1, true}, - {9, true}, - {10, false}, - } - for _, test := range tests { - t.Run(fmt.Sprintf("with %d redirects", test.redirects), func(t *testing.T) { - var redirects int32 = 0 - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - if redirects < test.redirects { - atomic.AddInt32(&redirects, 1) - http.Redirect(w, req, "redirect", http.StatusFound) - return - } - streamCh := make(chan httpstream.Stream) - - responseUpgrader := NewResponseUpgrader() - spdyConn := responseUpgrader.UpgradeResponse(w, req, func(s httpstream.Stream, replySent <-chan struct{}) error { - streamCh <- s - return nil - }) - if spdyConn == nil { - t.Fatalf("unexpected nil spdyConn") - } - defer spdyConn.Close() - - stream := <-streamCh - io.Copy(stream, stream) - })) - defer server.Close() - - req, err := http.NewRequest("GET", server.URL, nil) - if err != nil { - t.Fatalf("Error creating request: %s", err) - } - - spdyTransport := NewSpdyRoundTripper(nil, true, true) - client := &http.Client{Transport: spdyTransport} - - resp, err := client.Do(req) - if test.expectSuccess { - if err != nil { - t.Fatalf("error calling Do: %v", err) - } - } else { - if err == nil { - t.Fatalf("expecting an error") - } else if !strings.Contains(err.Error(), "too many redirects") { - t.Fatalf("expecting too many redirects, got %v", err) - } - return - } - - conn, err := spdyTransport.NewConnection(resp) - if err != nil { - t.Fatalf("error calling NewConnection: %v", err) - } - defer conn.Close() - - if resp.StatusCode != http.StatusSwitchingProtocols { - t.Fatalf("expected http 101 switching protocols, got %d", resp.StatusCode) - } - - stream, err := conn.CreateStream(http.Header{}) - if err != nil { - t.Fatalf("error creating client stream: %s", err) - } - - n, err := stream.Write([]byte("hello")) - if err != nil { - t.Fatalf("error writing to stream: %s", err) - } - if n != 5 { - t.Fatalf("Expected to write 5 bytes, but actually wrote %d", n) - } - - b := make([]byte, 5) - n, err = stream.Read(b) - if err != nil { - t.Fatalf("error reading from stream: %s", err) - } - if n != 5 { - t.Fatalf("Expected to read 5 bytes, but actually read %d", n) - } - if e, a := "hello", string(b[0:n]); e != a { - t.Fatalf("expected '%s', got '%s'", e, a) - } - }) - } -} - -// exampleCert was generated from crypto/tls/generate_cert.go with the following command: -// go run generate_cert.go --rsa-bits 1024 --host example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h -var exampleCert = []byte(`-----BEGIN CERTIFICATE----- -MIIB+zCCAWSgAwIBAgIQArqTHmCaW6G843kgXgy12DANBgkqhkiG9w0BAQsFADAS -MRAwDgYDVQQKEwdBY21lIENvMCAXDTcwMDEwMTAwMDAwMFoYDzIwODQwMTI5MTYw -MDAwWjASMRAwDgYDVQQKEwdBY21lIENvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB -iQKBgQDSt6+lUEp2Fk8OcLuPz3Z9lrPSDFnfLz30RrA3DaZlVgeNVzyrOsxQuRp+ -9wgljadxVEDMY69x8NDJnC0mem7kYaIt+gyEtxAPqo7wrsqT17g9MGBQbthtpFeZ -jEPrL9aqAhY9O8kFN2iWkEf8kU2+MGwsaoK/icQH+eyFQ+/VuQIDAQABo1AwTjAO -BgNVHQ8BAf8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUw -AwEB/zAWBgNVHREEDzANggtleGFtcGxlLmNvbTANBgkqhkiG9w0BAQsFAAOBgQAy -fpch5gzwsQucZ1pIAj4qZ3wku3mJiXzUtjHBiTkYpwcCMvH2JxNZWTzGQKSO7eJH -hbmHPOfUbr6UazRiVqJuRJ6oI1iHnTFJxELuIx/mM+YThzdZjlq9Dn8VxkZwMpOI -ru5O2VXdMHW/wpK4kCy+FI+VazpHHyPUSMHFVr0Wjw== ------END CERTIFICATE-----`) - -var exampleKey = []byte(`-----BEGIN RSA PRIVATE KEY----- -MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANK3r6VQSnYWTw5w -u4/Pdn2Ws9IMWd8vPfRGsDcNpmVWB41XPKs6zFC5Gn73CCWNp3FUQMxjr3Hw0Mmc -LSZ6buRhoi36DIS3EA+qjvCuypPXuD0wYFBu2G2kV5mMQ+sv1qoCFj07yQU3aJaQ -R/yRTb4wbCxqgr+JxAf57IVD79W5AgMBAAECgYEAuOSGUZbnD0C586DFYwWWIdK3 -TCqcPTJ1uT7BZj0q8SYQkFuol1KLbpVNA3T9B/6Imu9jwDQEAQVeHllUYLvzSggt -n8C3bytUfKYNQbj0729EapygQ0Xda5ZTZYIjz312mfwdIIs8A5/taBQU5j3ku9Lg -PPinOXZqiYAMNpTHswECQQDoaIXHTdzPGB9KSMc2Htg2xbRptJ5aYAYic1VXiXDO -XB2XzVYiUrQ/+Bs2gyjtoJyfOWjoN1qlDdN4V7ETSnAhAkEA6Bt/GQoPjb3BE/CQ -ZU6c9+VaY2RWoFemiE+rxRt78Av5F+0c5KufYpJNUktd/1NJUsiyNJHkYFnpOU7R -OICSmQJBAOB3443l9DjJcZ9Lv6zUCbyNI31dB/z99a7cejb79ko5yhNOLb0k6BdI -yO/TqnoowF1BE8QFgrUcL31yJQMeyEECQCJM9fJoVzYWJbNhqKUgAfhsb3giut6F -NXoNdA/z6NPnoQ8VHmD4r9wsTLrtol16HGrcd+Fm8f3/K4Upjaew8HkCQEQLBYeI -VR3mybfS4TQE+4jX/PrgOAXGhKjdmtPqqaqk5KAfZUwR86kFXtVFH/TwKGQAwL1T -awwC4qga/9zIa6U= ------END RSA PRIVATE KEY-----`) - -// localhostCert was generated from crypto/tls/generate_cert.go with the following command: -// go run generate_cert.go --rsa-bits 1024 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h -var localhostCert = []byte(`-----BEGIN CERTIFICATE----- -MIICEzCCAXygAwIBAgIQZYovfgbbbhbli5vN0HAfKzANBgkqhkiG9w0BAQsFADAS -MRAwDgYDVQQKEwdBY21lIENvMCAXDTcwMDEwMTAwMDAwMFoYDzIwODQwMTI5MTYw -MDAwWjASMRAwDgYDVQQKEwdBY21lIENvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB -iQKBgQDm4Srs2LoP4+Yotx7M+itbWen7IbdHVPmIfguzzzFEzXJlc/ipeQ8uze15 -gWFwBbY2Cvdy1LU3oItO8X1/75Cx/66B+tdhENExe6w5gZPqNPXhf9ei2vJ0jdEu -MedteXu9AqAKJBU23H5HBlaTr2irNCBGc77K2pQt0a9DLSdMCQIDAQABo2gwZjAO -BgNVHQ8BAf8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUw -AwEB/zAuBgNVHREEJzAlggtleGFtcGxlLmNvbYcEfwAAAYcQAAAAAAAAAAAAAAAA -AAAAATANBgkqhkiG9w0BAQsFAAOBgQDDG08vFeL8353MsLbRwqUZ6uwa+w1SnMFu -+gjgJhVcPhS7n4H8J8wanAjzikomOZVfUdkz5n2PE6ShQyXeu7LAN63abvWVcfyl -g7RVq3/Pryhah21lyOxVr11EjsCaEeiGO1WuzOEdIOFD9BXJEhg+HRN9gxv/HrRg -fHSFpMgCwA== ------END CERTIFICATE-----`) - -// localhostKey is the private key for localhostCert. -var localhostKey = []byte(`-----BEGIN RSA PRIVATE KEY----- -MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAObhKuzYug/j5ii3 -Hsz6K1tZ6fsht0dU+Yh+C7PPMUTNcmVz+Kl5Dy7N7XmBYXAFtjYK93LUtTegi07x -fX/vkLH/roH612EQ0TF7rDmBk+o09eF/16La8nSN0S4x5215e70CoAokFTbcfkcG -VpOvaKs0IEZzvsralC3Rr0MtJ0wJAgMBAAECgYBN4IG0Jl6MYZkO/sW66l+Zjrin -5vWFcBpDehDEdAzwYkRGCFpF//mpFfkWVRfiy2pszEIvT6RYwSR8WmS0tMAfRkE/ -apJ7w9v7ghhIMXKuO/ohLyHi5hgPWy1L4+gje4YB+TsZftcDxEVklIplUv8eC9cU -NBP49S/tKLaLg+baCQJBAOuEFAfglYZKlXZ9d8mSPAOTCEvV7e/RFDI8w8OUdcyE -zSB5kx0lS3DFY5AirmpPswB1lupdxec1B9FWSE/CoU8CQQD69duGx5DM7oSCw8Wo -x5KljuMxs4mbfcXEGS+oP++khEWoa5evW+m3EzrxLVHDgYG+pMdy3UROXIzmHARm -63cnAkBWSHs2L5dYLbb4RBtAo+yMuq9NaUDUnVqy1QQ7gQZvOTAVd7Tn9qPe2tIR -GkOf+zbvMiVqE5TPkeQdU2kGn52NAkEAtzRyTSM1BxX8sIWAr2T6HliAbREXHOcl -T7HfQ6FhLaXOQFRDSKX9qUOlnNkrvmC1udoLLERxkA8qYPYFFKlCswJBANQJf9j5 -mhgfW8Z7iyQboufgSUq4UYJPpevEfLWAg6809sWHhzeg8AHOH8rap1Z97PUjeeWf -XbCRvoe8v2wSoo0= ------END RSA PRIVATE KEY-----`) diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade.go deleted file mode 100644 index 80f6013ac..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -Copyright 2015 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 spdy - -import ( - "bufio" - "fmt" - "io" - "net" - "net/http" - "strings" - "sync/atomic" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/httpstream" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/runtime" -) - -const HeaderSpdy31 = "SPDY/3.1" - -// responseUpgrader knows how to upgrade HTTP responses. It -// implements the httpstream.ResponseUpgrader interface. -type responseUpgrader struct { -} - -// connWrapper is used to wrap a hijacked connection and its bufio.Reader. All -// calls will be handled directly by the underlying net.Conn with the exception -// of Read and Close calls, which will consider data in the bufio.Reader. This -// ensures that data already inside the used bufio.Reader instance is also -// read. -type connWrapper struct { - net.Conn - closed int32 - bufReader *bufio.Reader -} - -func (w *connWrapper) Read(b []byte) (n int, err error) { - if atomic.LoadInt32(&w.closed) == 1 { - return 0, io.EOF - } - return w.bufReader.Read(b) -} - -func (w *connWrapper) Close() error { - err := w.Conn.Close() - atomic.StoreInt32(&w.closed, 1) - return err -} - -// NewResponseUpgrader returns a new httpstream.ResponseUpgrader that is -// capable of upgrading HTTP responses using SPDY/3.1 via the -// spdystream package. -func NewResponseUpgrader() httpstream.ResponseUpgrader { - return responseUpgrader{} -} - -// UpgradeResponse upgrades an HTTP response to one that supports multiplexed -// streams. newStreamHandler will be called synchronously whenever the -// other end of the upgraded connection creates a new stream. -func (u responseUpgrader) UpgradeResponse(w http.ResponseWriter, req *http.Request, newStreamHandler httpstream.NewStreamHandler) httpstream.Connection { - connectionHeader := strings.ToLower(req.Header.Get(httpstream.HeaderConnection)) - upgradeHeader := strings.ToLower(req.Header.Get(httpstream.HeaderUpgrade)) - if !strings.Contains(connectionHeader, strings.ToLower(httpstream.HeaderUpgrade)) || !strings.Contains(upgradeHeader, strings.ToLower(HeaderSpdy31)) { - errorMsg := fmt.Sprintf("unable to upgrade: missing upgrade headers in request: %#v", req.Header) - http.Error(w, errorMsg, http.StatusBadRequest) - return nil - } - - hijacker, ok := w.(http.Hijacker) - if !ok { - errorMsg := fmt.Sprintf("unable to upgrade: unable to hijack response") - http.Error(w, errorMsg, http.StatusInternalServerError) - return nil - } - - w.Header().Add(httpstream.HeaderConnection, httpstream.HeaderUpgrade) - w.Header().Add(httpstream.HeaderUpgrade, HeaderSpdy31) - w.WriteHeader(http.StatusSwitchingProtocols) - - conn, bufrw, err := hijacker.Hijack() - if err != nil { - runtime.HandleError(fmt.Errorf("unable to upgrade: error hijacking response: %v", err)) - return nil - } - - connWithBuf := &connWrapper{Conn: conn, bufReader: bufrw.Reader} - spdyConn, err := NewServerConnection(connWithBuf, newStreamHandler) - if err != nil { - runtime.HandleError(fmt.Errorf("unable to upgrade: error creating SPDY server connection: %v", err)) - return nil - } - - return spdyConn -} diff --git a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade_test.go b/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade_test.go deleted file mode 100644 index 5a514dd5b..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/httpstream/spdy/upgrade_test.go +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2015 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 spdy - -import ( - "net/http" - "net/http/httptest" - "testing" -) - -func TestUpgradeResponse(t *testing.T) { - testCases := []struct { - connectionHeader string - upgradeHeader string - shouldError bool - }{ - { - connectionHeader: "", - upgradeHeader: "", - shouldError: true, - }, - { - connectionHeader: "Upgrade", - upgradeHeader: "", - shouldError: true, - }, - { - connectionHeader: "", - upgradeHeader: "SPDY/3.1", - shouldError: true, - }, - { - connectionHeader: "Upgrade", - upgradeHeader: "SPDY/3.1", - shouldError: false, - }, - } - - for i, testCase := range testCases { - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - upgrader := NewResponseUpgrader() - conn := upgrader.UpgradeResponse(w, req, nil) - haveErr := conn == nil - if e, a := testCase.shouldError, haveErr; e != a { - t.Fatalf("%d: expected shouldErr=%t, got %t", i, testCase.shouldError, haveErr) - } - if haveErr { - return - } - if conn == nil { - t.Fatalf("%d: unexpected nil conn", i) - } - defer conn.Close() - })) - defer server.Close() - - req, err := http.NewRequest("GET", server.URL, nil) - if err != nil { - t.Fatalf("%d: error creating request: %s", i, err) - } - - req.Header.Set("Connection", testCase.connectionHeader) - req.Header.Set("Upgrade", testCase.upgradeHeader) - - client := &http.Client{} - resp, err := client.Do(req) - if err != nil { - t.Fatalf("%d: unexpected non-nil err from client.Do: %s", i, err) - } - - if testCase.shouldError { - continue - } - - if resp.StatusCode != http.StatusSwitchingProtocols { - t.Fatalf("%d: expected status 101 switching protocols, got %d", i, resp.StatusCode) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/intstr/generated.pb.go b/pseudo/k8s/apimachinery/pkg/util/intstr/generated.pb.go deleted file mode 100644 index 3f19c6830..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/intstr/generated.pb.go +++ /dev/null @@ -1,398 +0,0 @@ -/* -Copyright 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. -*/ - -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto - -package intstr - -import ( - fmt "fmt" - - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/gogo/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -func (m *IntOrString) Reset() { *m = IntOrString{} } -func (*IntOrString) ProtoMessage() {} -func (*IntOrString) Descriptor() ([]byte, []int) { - return fileDescriptor_94e046ae3ce6121c, []int{0} -} -func (m *IntOrString) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *IntOrString) XXX_Merge(src proto.Message) { - xxx_messageInfo_IntOrString.Merge(m, src) -} -func (m *IntOrString) XXX_Size() int { - return m.Size() -} -func (m *IntOrString) XXX_DiscardUnknown() { - xxx_messageInfo_IntOrString.DiscardUnknown(m) -} - -var xxx_messageInfo_IntOrString proto.InternalMessageInfo - -func init() { - proto.RegisterType((*IntOrString)(nil), "k8s.io.apimachinery.pkg.util.intstr.IntOrString") -} - -func init() { - proto.RegisterFile("k8s.io/kubernetes/vendor/sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto", fileDescriptor_94e046ae3ce6121c) -} - -var fileDescriptor_94e046ae3ce6121c = []byte{ - // 292 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0x31, 0x4b, 0x33, 0x31, - 0x1c, 0xc6, 0x93, 0xb7, 0x7d, 0x8b, 0x9e, 0xe0, 0x50, 0x1c, 0x8a, 0x43, 0x7a, 0x28, 0xc8, 0x0d, - 0x9a, 0xac, 0xe2, 0xd8, 0xad, 0x20, 0x08, 0x57, 0x71, 0x70, 0xbb, 0x6b, 0x63, 0x1a, 0xae, 0x4d, - 0x42, 0xee, 0x7f, 0xc2, 0x6d, 0xfd, 0x08, 0xba, 0x39, 0xfa, 0x71, 0x6e, 0xec, 0xd8, 0x41, 0x8a, - 0x17, 0xbf, 0x85, 0x93, 0x5c, 0xee, 0x40, 0xa7, 0xe4, 0x79, 0x9e, 0xdf, 0x2f, 0x90, 0xe0, 0x36, - 0xbb, 0xce, 0xa9, 0xd4, 0x2c, 0x2b, 0x52, 0x6e, 0x15, 0x07, 0x9e, 0xb3, 0x67, 0xae, 0x16, 0xda, - 0xb2, 0x6e, 0x48, 0x8c, 0x5c, 0x27, 0xf3, 0xa5, 0x54, 0xdc, 0x96, 0xcc, 0x64, 0x82, 0x15, 0x20, - 0x57, 0x4c, 0x2a, 0xc8, 0xc1, 0x32, 0xc1, 0x15, 0xb7, 0x09, 0xf0, 0x05, 0x35, 0x56, 0x83, 0x1e, - 0x9e, 0xb7, 0x12, 0xfd, 0x2b, 0x51, 0x93, 0x09, 0xda, 0x48, 0xb4, 0x95, 0x4e, 0xaf, 0x84, 0x84, - 0x65, 0x91, 0xd2, 0xb9, 0x5e, 0x33, 0xa1, 0x85, 0x66, 0xde, 0x4d, 0x8b, 0x27, 0x9f, 0x7c, 0xf0, - 0xb7, 0xf6, 0xcd, 0xb3, 0x57, 0x1c, 0x1c, 0x4d, 0x15, 0xdc, 0xd9, 0x19, 0x58, 0xa9, 0xc4, 0x30, - 0x0a, 0xfa, 0x50, 0x1a, 0x3e, 0xc2, 0x21, 0x8e, 0x7a, 0x93, 0x93, 0x6a, 0x3f, 0x46, 0x6e, 0x3f, - 0xee, 0xdf, 0x97, 0x86, 0x7f, 0x77, 0x67, 0xec, 0x89, 0xe1, 0x45, 0x30, 0x90, 0x0a, 0x1e, 0x92, - 0xd5, 0xe8, 0x5f, 0x88, 0xa3, 0xff, 0x93, 0xe3, 0x8e, 0x1d, 0x4c, 0x7d, 0x1b, 0x77, 0x6b, 0xc3, - 0xe5, 0x60, 0x1b, 0xae, 0x17, 0xe2, 0xe8, 0xf0, 0x97, 0x9b, 0xf9, 0x36, 0xee, 0xd6, 0x9b, 0x83, - 0xb7, 0xf7, 0x31, 0xda, 0x7c, 0x84, 0x68, 0x72, 0x59, 0xd5, 0x04, 0x6d, 0x6b, 0x82, 0x76, 0x35, - 0x41, 0x1b, 0x47, 0x70, 0xe5, 0x08, 0xde, 0x3a, 0x82, 0x77, 0x8e, 0xe0, 0x4f, 0x47, 0xf0, 0xcb, - 0x17, 0x41, 0x8f, 0x83, 0xf6, 0xc3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x52, 0xa0, 0xb5, 0xc9, - 0x64, 0x01, 0x00, 0x00, -} - -func (m *IntOrString) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IntOrString) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - i -= len(m.StrVal) - copy(dAtA[i:], m.StrVal) - i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal))) - i-- - dAtA[i] = 0x1a - i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal)) - i-- - dAtA[i] = 0x10 - i = encodeVarintGenerated(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - return len(dAtA) - i, nil -} - -func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { - offset -= sovGenerated(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *IntOrString) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += 1 + sovGenerated(uint64(m.Type)) - n += 1 + sovGenerated(uint64(m.IntVal)) - l = len(m.StrVal) - n += 1 + l + sovGenerated(uint64(l)) - return n -} - -func sovGenerated(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenerated(x uint64) (n int) { - return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *IntOrString) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IntOrString: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IntOrString: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType) - } - m.IntVal = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IntVal |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenerated - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenerated - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenerated - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StrVal = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenerated(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthGenerated - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenerated(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenerated - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenerated - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipGenerated(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthGenerated - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") -) diff --git a/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto b/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto deleted file mode 100644 index e79fb9e57..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/intstr/generated.proto +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 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.apimachinery.pkg.util.intstr; - -// Package-wide variables from generator "generated". -option go_package = "intstr"; - -// IntOrString is a type that can hold an int32 or a string. When used in -// JSON or YAML marshalling and unmarshalling, it produces or consumes the -// inner type. This allows you to have, for example, a JSON field that can -// accept a name or number. -// TODO: Rename to Int32OrString -// -// +protobuf=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:openapi-gen=true -message IntOrString { - optional int64 type = 1; - - optional int32 intVal = 2; - - optional string strVal = 3; -} - diff --git a/pseudo/k8s/apimachinery/pkg/util/intstr/intstr.go b/pseudo/k8s/apimachinery/pkg/util/intstr/intstr.go deleted file mode 100644 index 12c8a7b6c..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/intstr/intstr.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Copyright 2014 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 intstr - -import ( - "encoding/json" - "errors" - "fmt" - "math" - "runtime/debug" - "strconv" - "strings" - - "github.com/google/gofuzz" - "k8s.io/klog" -) - -// IntOrString is a type that can hold an int32 or a string. When used in -// JSON or YAML marshalling and unmarshalling, it produces or consumes the -// inner type. This allows you to have, for example, a JSON field that can -// accept a name or number. -// TODO: Rename to Int32OrString -// -// +protobuf=true -// +protobuf.options.(gogoproto.goproto_stringer)=false -// +k8s:openapi-gen=true -type IntOrString struct { - Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` - IntVal int32 `protobuf:"varint,2,opt,name=intVal"` - StrVal string `protobuf:"bytes,3,opt,name=strVal"` -} - -// Type represents the stored type of IntOrString. -type Type int - -const ( - Int Type = iota // The IntOrString holds an int. - String // The IntOrString holds a string. -) - -// FromInt creates an IntOrString object with an int32 value. It is -// your responsibility not to call this method with a value greater -// than int32. -// TODO: convert to (val int32) -func FromInt(val int) IntOrString { - if val > math.MaxInt32 || val < math.MinInt32 { - klog.Errorf("value: %d overflows int32\n%s\n", val, debug.Stack()) - } - return IntOrString{Type: Int, IntVal: int32(val)} -} - -// FromString creates an IntOrString object with a string value. -func FromString(val string) IntOrString { - return IntOrString{Type: String, StrVal: val} -} - -// Parse the given string and try to convert it to an integer before -// setting it as a string value. -func Parse(val string) IntOrString { - i, err := strconv.Atoi(val) - if err != nil { - return FromString(val) - } - return FromInt(i) -} - -// UnmarshalJSON implements the json.Unmarshaller interface. -func (intstr *IntOrString) UnmarshalJSON(value []byte) error { - if value[0] == '"' { - intstr.Type = String - return json.Unmarshal(value, &intstr.StrVal) - } - intstr.Type = Int - return json.Unmarshal(value, &intstr.IntVal) -} - -// String returns the string value, or the Itoa of the int value. -func (intstr *IntOrString) String() string { - if intstr.Type == String { - return intstr.StrVal - } - return strconv.Itoa(intstr.IntValue()) -} - -// IntValue returns the IntVal if type Int, or if -// it is a String, will attempt a conversion to int. -func (intstr *IntOrString) IntValue() int { - if intstr.Type == String { - i, _ := strconv.Atoi(intstr.StrVal) - return i - } - return int(intstr.IntVal) -} - -// MarshalJSON implements the json.Marshaller interface. -func (intstr IntOrString) MarshalJSON() ([]byte, error) { - switch intstr.Type { - case Int: - return json.Marshal(intstr.IntVal) - case String: - return json.Marshal(intstr.StrVal) - default: - return []byte{}, fmt.Errorf("impossible IntOrString.Type") - } -} - -// OpenAPISchemaType is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -// -// See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators -func (IntOrString) OpenAPISchemaType() []string { return []string{"string"} } - -// OpenAPISchemaFormat is used by the kube-openapi generator when constructing -// the OpenAPI spec of this type. -func (IntOrString) OpenAPISchemaFormat() string { return "int-or-string" } - -func (intstr *IntOrString) Fuzz(c fuzz.Continue) { - if intstr == nil { - return - } - if c.RandBool() { - intstr.Type = Int - c.Fuzz(&intstr.IntVal) - intstr.StrVal = "" - } else { - intstr.Type = String - intstr.IntVal = 0 - c.Fuzz(&intstr.StrVal) - } -} - -func ValueOrDefault(intOrPercent *IntOrString, defaultValue IntOrString) *IntOrString { - if intOrPercent == nil { - return &defaultValue - } - return intOrPercent -} - -func GetValueFromIntOrPercent(intOrPercent *IntOrString, total int, roundUp bool) (int, error) { - if intOrPercent == nil { - return 0, errors.New("nil value for IntOrString") - } - value, isPercent, err := getIntOrPercentValue(intOrPercent) - if err != nil { - return 0, fmt.Errorf("invalid value for IntOrString: %v", err) - } - if isPercent { - if roundUp { - value = int(math.Ceil(float64(value) * (float64(total)) / 100)) - } else { - value = int(math.Floor(float64(value) * (float64(total)) / 100)) - } - } - return value, nil -} - -func getIntOrPercentValue(intOrStr *IntOrString) (int, bool, error) { - switch intOrStr.Type { - case Int: - return intOrStr.IntValue(), false, nil - case String: - s := strings.Replace(intOrStr.StrVal, "%", "", -1) - v, err := strconv.Atoi(s) - if err != nil { - return 0, false, fmt.Errorf("invalid value %q: %v", intOrStr.StrVal, err) - } - return int(v), true, nil - } - return 0, false, fmt.Errorf("invalid type: neither int nor percentage") -} diff --git a/pseudo/k8s/apimachinery/pkg/util/intstr/intstr_test.go b/pseudo/k8s/apimachinery/pkg/util/intstr/intstr_test.go deleted file mode 100644 index f6e082987..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/intstr/intstr_test.go +++ /dev/null @@ -1,183 +0,0 @@ -/* -Copyright 2014 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 intstr - -import ( - "encoding/json" - "reflect" - "testing" - - "sigs.k8s.io/yaml" -) - -func TestFromInt(t *testing.T) { - i := FromInt(93) - if i.Type != Int || i.IntVal != 93 { - t.Errorf("Expected IntVal=93, got %+v", i) - } -} - -func TestFromString(t *testing.T) { - i := FromString("76") - if i.Type != String || i.StrVal != "76" { - t.Errorf("Expected StrVal=\"76\", got %+v", i) - } -} - -type IntOrStringHolder struct { - IOrS IntOrString `json:"val"` -} - -func TestIntOrStringUnmarshalJSON(t *testing.T) { - cases := []struct { - input string - result IntOrString - }{ - {"{\"val\": 123}", FromInt(123)}, - {"{\"val\": \"123\"}", FromString("123")}, - } - - for _, c := range cases { - var result IntOrStringHolder - if err := json.Unmarshal([]byte(c.input), &result); err != nil { - t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) - } - if result.IOrS != c.result { - t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) - } - } -} - -func TestIntOrStringMarshalJSON(t *testing.T) { - cases := []struct { - input IntOrString - result string - }{ - {FromInt(123), "{\"val\":123}"}, - {FromString("123"), "{\"val\":\"123\"}"}, - } - - for _, c := range cases { - input := IntOrStringHolder{c.input} - result, err := json.Marshal(&input) - if err != nil { - t.Errorf("Failed to marshal input '%v': %v", input, err) - } - if string(result) != c.result { - t.Errorf("Failed to marshal input '%v': expected: %+v, got %q", input, c.result, string(result)) - } - } -} - -func TestIntOrStringMarshalJSONUnmarshalYAML(t *testing.T) { - cases := []struct { - input IntOrString - }{ - {FromInt(123)}, - {FromString("123")}, - } - - for _, c := range cases { - input := IntOrStringHolder{c.input} - jsonMarshalled, err := json.Marshal(&input) - if err != nil { - t.Errorf("1: Failed to marshal input: '%v': %v", input, err) - } - - var result IntOrStringHolder - err = yaml.Unmarshal(jsonMarshalled, &result) - if err != nil { - t.Errorf("2: Failed to unmarshal '%+v': %v", string(jsonMarshalled), err) - } - - if !reflect.DeepEqual(input, result) { - t.Errorf("3: Failed to marshal input '%+v': got %+v", input, result) - } - } -} - -func TestGetValueFromIntOrPercent(t *testing.T) { - tests := []struct { - input IntOrString - total int - roundUp bool - expectErr bool - expectVal int - }{ - { - input: FromInt(123), - expectErr: false, - expectVal: 123, - }, - { - input: FromString("90%"), - total: 100, - roundUp: true, - expectErr: false, - expectVal: 90, - }, - { - input: FromString("90%"), - total: 95, - roundUp: true, - expectErr: false, - expectVal: 86, - }, - { - input: FromString("90%"), - total: 95, - roundUp: false, - expectErr: false, - expectVal: 85, - }, - { - input: FromString("%"), - expectErr: true, - }, - { - input: FromString("90#"), - expectErr: true, - }, - { - input: FromString("#%"), - expectErr: true, - }, - } - - for i, test := range tests { - t.Logf("test case %d", i) - value, err := GetValueFromIntOrPercent(&test.input, test.total, test.roundUp) - if test.expectErr && err == nil { - t.Errorf("expected error, but got none") - continue - } - if !test.expectErr && err != nil { - t.Errorf("unexpected err: %v", err) - continue - } - if test.expectVal != value { - t.Errorf("expected %v, but got %v", test.expectVal, value) - } - } -} - -func TestGetValueFromIntOrPercentNil(t *testing.T) { - _, err := GetValueFromIntOrPercent(nil, 0, false) - if err == nil { - t.Errorf("expected error got none") - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/json/json.go b/pseudo/k8s/apimachinery/pkg/util/json/json.go deleted file mode 100644 index 0e2e30175..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/json/json.go +++ /dev/null @@ -1,131 +0,0 @@ -/* -Copyright 2015 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 json - -import ( - "bytes" - "encoding/json" - "fmt" - "io" -) - -// NewEncoder delegates to json.NewEncoder -// It is only here so this package can be a drop-in for common encoding/json uses -func NewEncoder(w io.Writer) *json.Encoder { - return json.NewEncoder(w) -} - -// Marshal delegates to json.Marshal -// It is only here so this package can be a drop-in for common encoding/json uses -func Marshal(v interface{}) ([]byte, error) { - return json.Marshal(v) -} - -// limit recursive depth to prevent stack overflow errors -const maxDepth = 10000 - -// Unmarshal unmarshals the given data -// If v is a *map[string]interface{}, numbers are converted to int64 or float64 -func Unmarshal(data []byte, v interface{}) error { - switch v := v.(type) { - case *map[string]interface{}: - // Build a decoder from the given data - decoder := json.NewDecoder(bytes.NewBuffer(data)) - // Preserve numbers, rather than casting to float64 automatically - decoder.UseNumber() - // Run the decode - if err := decoder.Decode(v); err != nil { - return err - } - // If the decode succeeds, post-process the map to convert json.Number objects to int64 or float64 - return convertMapNumbers(*v, 0) - - case *[]interface{}: - // Build a decoder from the given data - decoder := json.NewDecoder(bytes.NewBuffer(data)) - // Preserve numbers, rather than casting to float64 automatically - decoder.UseNumber() - // Run the decode - if err := decoder.Decode(v); err != nil { - return err - } - // If the decode succeeds, post-process the map to convert json.Number objects to int64 or float64 - return convertSliceNumbers(*v, 0) - - default: - return json.Unmarshal(data, v) - } -} - -// convertMapNumbers traverses the map, converting any json.Number values to int64 or float64. -// values which are map[string]interface{} or []interface{} are recursively visited -func convertMapNumbers(m map[string]interface{}, depth int) error { - if depth > maxDepth { - return fmt.Errorf("exceeded max depth of %d", maxDepth) - } - - var err error - for k, v := range m { - switch v := v.(type) { - case json.Number: - m[k], err = convertNumber(v) - case map[string]interface{}: - err = convertMapNumbers(v, depth+1) - case []interface{}: - err = convertSliceNumbers(v, depth+1) - } - if err != nil { - return err - } - } - return nil -} - -// convertSliceNumbers traverses the slice, converting any json.Number values to int64 or float64. -// values which are map[string]interface{} or []interface{} are recursively visited -func convertSliceNumbers(s []interface{}, depth int) error { - if depth > maxDepth { - return fmt.Errorf("exceeded max depth of %d", maxDepth) - } - - var err error - for i, v := range s { - switch v := v.(type) { - case json.Number: - s[i], err = convertNumber(v) - case map[string]interface{}: - err = convertMapNumbers(v, depth+1) - case []interface{}: - err = convertSliceNumbers(v, depth+1) - } - if err != nil { - return err - } - } - return nil -} - -// convertNumber converts a json.Number to an int64 or float64, or returns an error -func convertNumber(n json.Number) (interface{}, error) { - // Attempt to convert to an int64 first - if i, err := n.Int64(); err == nil { - return i, nil - } - // Return a float64 (default json.Decode() behavior) - // An overflow will return an error - return n.Float64() -} diff --git a/pseudo/k8s/apimachinery/pkg/util/json/json_test.go b/pseudo/k8s/apimachinery/pkg/util/json/json_test.go deleted file mode 100644 index cd0c18bb2..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/json/json_test.go +++ /dev/null @@ -1,319 +0,0 @@ -// +build go1.8 - -/* -Copyright 2015 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 json - -import ( - "fmt" - "math" - "reflect" - "strconv" - "strings" - "testing" -) - -func TestEvaluateTypes(t *testing.T) { - testCases := []struct { - In string - Data interface{} - Out string - Err bool - }{ - // Invalid syntaxes - { - In: `x`, - Err: true, - }, - { - In: ``, - Err: true, - }, - - // Null - { - In: `null`, - Data: nil, - Out: `null`, - }, - // Booleans - { - In: `true`, - Data: true, - Out: `true`, - }, - { - In: `false`, - Data: false, - Out: `false`, - }, - - // Integers - { - In: `0`, - Data: int64(0), - Out: `0`, - }, - { - In: `-0`, - Data: int64(-0), - Out: `0`, - }, - { - In: `1`, - Data: int64(1), - Out: `1`, - }, - { - In: `2147483647`, - Data: int64(math.MaxInt32), - Out: `2147483647`, - }, - { - In: `-2147483648`, - Data: int64(math.MinInt32), - Out: `-2147483648`, - }, - { - In: `9223372036854775807`, - Data: int64(math.MaxInt64), - Out: `9223372036854775807`, - }, - { - In: `-9223372036854775808`, - Data: int64(math.MinInt64), - Out: `-9223372036854775808`, - }, - - // Int overflow - { - In: `9223372036854775808`, // MaxInt64 + 1 - Data: float64(9223372036854775808), - Out: `9223372036854776000`, - }, - { - In: `-9223372036854775809`, // MinInt64 - 1 - Data: float64(math.MinInt64), - Out: `-9223372036854776000`, - }, - - // Floats - { - In: `0.0`, - Data: float64(0), - Out: `0`, - }, - { - In: `-0.0`, - Data: float64(-0.0), - Out: `-0`, - }, - { - In: `0.5`, - Data: float64(0.5), - Out: `0.5`, - }, - { - In: `1e3`, - Data: float64(1e3), - Out: `1000`, - }, - { - In: `1.5`, - Data: float64(1.5), - Out: `1.5`, - }, - { - In: `-0.3`, - Data: float64(-.3), - Out: `-0.3`, - }, - { - // Largest representable float32 - In: `3.40282346638528859811704183484516925440e+38`, - Data: float64(math.MaxFloat32), - Out: strconv.FormatFloat(math.MaxFloat32, 'g', -1, 64), - }, - { - // Smallest float32 without losing precision - In: `1.175494351e-38`, - Data: float64(1.175494351e-38), - Out: `1.175494351e-38`, - }, - { - // float32 closest to zero - In: `1.401298464324817070923729583289916131280e-45`, - Data: float64(math.SmallestNonzeroFloat32), - Out: strconv.FormatFloat(math.SmallestNonzeroFloat32, 'g', -1, 64), - }, - { - // Largest representable float64 - In: `1.797693134862315708145274237317043567981e+308`, - Data: float64(math.MaxFloat64), - Out: strconv.FormatFloat(math.MaxFloat64, 'g', -1, 64), - }, - { - // Closest to zero without losing precision - In: `2.2250738585072014e-308`, - Data: float64(2.2250738585072014e-308), - Out: `2.2250738585072014e-308`, - }, - - { - // float64 closest to zero - In: `4.940656458412465441765687928682213723651e-324`, - Data: float64(math.SmallestNonzeroFloat64), - Out: strconv.FormatFloat(math.SmallestNonzeroFloat64, 'g', -1, 64), - }, - - { - // math.MaxFloat64 + 2 overflow - In: `1.7976931348623159e+308`, - Err: true, - }, - - // Strings - { - In: `""`, - Data: string(""), - Out: `""`, - }, - { - In: `"0"`, - Data: string("0"), - Out: `"0"`, - }, - { - In: `"A"`, - Data: string("A"), - Out: `"A"`, - }, - { - In: `"Iñtërnâtiônàlizætiøn"`, - Data: string("Iñtërnâtiônàlizætiøn"), - Out: `"Iñtërnâtiônàlizætiøn"`, - }, - - // Arrays - { - In: `[]`, - Data: []interface{}{}, - Out: `[]`, - }, - { - In: `[` + strings.Join([]string{ - `null`, - `true`, - `false`, - `0`, - `9223372036854775807`, - `0.0`, - `0.5`, - `1.0`, - `1.797693134862315708145274237317043567981e+308`, - `"0"`, - `"A"`, - `"Iñtërnâtiônàlizætiøn"`, - `[null,true,1,1.0,1.5]`, - `{"boolkey":true,"floatkey":1.0,"intkey":1,"nullkey":null}`, - }, ",") + `]`, - Data: []interface{}{ - nil, - true, - false, - int64(0), - int64(math.MaxInt64), - float64(0.0), - float64(0.5), - float64(1.0), - float64(math.MaxFloat64), - string("0"), - string("A"), - string("Iñtërnâtiônàlizætiøn"), - []interface{}{nil, true, int64(1), float64(1.0), float64(1.5)}, - map[string]interface{}{"nullkey": nil, "boolkey": true, "intkey": int64(1), "floatkey": float64(1.0)}, - }, - Out: `[` + strings.Join([]string{ - `null`, - `true`, - `false`, - `0`, - `9223372036854775807`, - `0`, - `0.5`, - `1`, - strconv.FormatFloat(math.MaxFloat64, 'g', -1, 64), - `"0"`, - `"A"`, - `"Iñtërnâtiônàlizætiøn"`, - `[null,true,1,1,1.5]`, - `{"boolkey":true,"floatkey":1,"intkey":1,"nullkey":null}`, // gets alphabetized by Marshal - }, ",") + `]`, - }, - - // Maps - { - In: `{}`, - Data: map[string]interface{}{}, - Out: `{}`, - }, - { - In: `{"boolkey":true,"floatkey":1.0,"intkey":1,"nullkey":null}`, - Data: map[string]interface{}{"nullkey": nil, "boolkey": true, "intkey": int64(1), "floatkey": float64(1.0)}, - Out: `{"boolkey":true,"floatkey":1,"intkey":1,"nullkey":null}`, // gets alphabetized by Marshal - }, - } - - for _, tc := range testCases { - inputJSON := fmt.Sprintf(`{"data":%s}`, tc.In) - expectedJSON := fmt.Sprintf(`{"data":%s}`, tc.Out) - m := map[string]interface{}{} - err := Unmarshal([]byte(inputJSON), &m) - if tc.Err && err != nil { - // Expected error - continue - } - if err != nil { - t.Errorf("%s: error decoding: %v", tc.In, err) - continue - } - if tc.Err { - t.Errorf("%s: expected error, got none", tc.In) - continue - } - data, ok := m["data"] - if !ok { - t.Errorf("%s: decoded object missing data key: %#v", tc.In, m) - continue - } - if !reflect.DeepEqual(tc.Data, data) { - t.Errorf("%s: expected\n\t%#v (%v), got\n\t%#v (%v)", tc.In, tc.Data, reflect.TypeOf(tc.Data), data, reflect.TypeOf(data)) - continue - } - - outputJSON, err := Marshal(m) - if err != nil { - t.Errorf("%s: error encoding: %v", tc.In, err) - continue - } - - if expectedJSON != string(outputJSON) { - t.Errorf("%s: expected\n\t%s, got\n\t%s", tc.In, expectedJSON, string(outputJSON)) - continue - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch.go b/pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch.go deleted file mode 100644 index ab39f7ffd..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -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 jsonmergepatch - -import ( - "fmt" - "reflect" - - "github.com/evanphx/json-patch" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/mergepatch" -) - -// Create a 3-way merge patch based-on JSON merge patch. -// Calculate addition-and-change patch between current and modified. -// Calculate deletion patch between original and modified. -func CreateThreeWayJSONMergePatch(original, modified, current []byte, fns ...mergepatch.PreconditionFunc) ([]byte, error) { - if len(original) == 0 { - original = []byte(`{}`) - } - if len(modified) == 0 { - modified = []byte(`{}`) - } - if len(current) == 0 { - current = []byte(`{}`) - } - - addAndChangePatch, err := jsonpatch.CreateMergePatch(current, modified) - if err != nil { - return nil, err - } - // Only keep addition and changes - addAndChangePatch, addAndChangePatchObj, err := keepOrDeleteNullInJsonPatch(addAndChangePatch, false) - if err != nil { - return nil, err - } - - deletePatch, err := jsonpatch.CreateMergePatch(original, modified) - if err != nil { - return nil, err - } - // Only keep deletion - deletePatch, deletePatchObj, err := keepOrDeleteNullInJsonPatch(deletePatch, true) - if err != nil { - return nil, err - } - - hasConflicts, err := mergepatch.HasConflicts(addAndChangePatchObj, deletePatchObj) - if err != nil { - return nil, err - } - if hasConflicts { - return nil, mergepatch.NewErrConflict(mergepatch.ToYAMLOrError(addAndChangePatchObj), mergepatch.ToYAMLOrError(deletePatchObj)) - } - patch, err := jsonpatch.MergePatch(deletePatch, addAndChangePatch) - if err != nil { - return nil, err - } - - var patchMap map[string]interface{} - err = json.Unmarshal(patch, &patchMap) - if err != nil { - return nil, fmt.Errorf("Failed to unmarshal patch for precondition check: %s", patch) - } - meetPreconditions, err := meetPreconditions(patchMap, fns...) - if err != nil { - return nil, err - } - if !meetPreconditions { - return nil, mergepatch.NewErrPreconditionFailed(patchMap) - } - - return patch, nil -} - -// keepOrDeleteNullInJsonPatch takes a json-encoded byte array and a boolean. -// It returns a filtered object and its corresponding json-encoded byte array. -// It is a wrapper of func keepOrDeleteNullInObj -func keepOrDeleteNullInJsonPatch(patch []byte, keepNull bool) ([]byte, map[string]interface{}, error) { - var patchMap map[string]interface{} - err := json.Unmarshal(patch, &patchMap) - if err != nil { - return nil, nil, err - } - filteredMap, err := keepOrDeleteNullInObj(patchMap, keepNull) - if err != nil { - return nil, nil, err - } - o, err := json.Marshal(filteredMap) - return o, filteredMap, err -} - -// keepOrDeleteNullInObj will keep only the null value and delete all the others, -// if keepNull is true. Otherwise, it will delete all the null value and keep the others. -func keepOrDeleteNullInObj(m map[string]interface{}, keepNull bool) (map[string]interface{}, error) { - filteredMap := make(map[string]interface{}) - var err error - for key, val := range m { - switch { - case keepNull && val == nil: - filteredMap[key] = nil - case val != nil: - switch typedVal := val.(type) { - case map[string]interface{}: - // Explicitly-set empty maps are treated as values instead of empty patches - if len(typedVal) == 0 { - if !keepNull { - filteredMap[key] = typedVal - } - continue - } - - var filteredSubMap map[string]interface{} - filteredSubMap, err = keepOrDeleteNullInObj(typedVal, keepNull) - if err != nil { - return nil, err - } - - // If the returned filtered submap was empty, this is an empty patch for the entire subdict, so the key - // should not be set - if len(filteredSubMap) != 0 { - filteredMap[key] = filteredSubMap - } - - case []interface{}, string, float64, bool, int64, nil: - // Lists are always replaced in Json, no need to check each entry in the list. - if !keepNull { - filteredMap[key] = val - } - default: - return nil, fmt.Errorf("unknown type: %v", reflect.TypeOf(typedVal)) - } - } - } - return filteredMap, nil -} - -func meetPreconditions(patchObj map[string]interface{}, fns ...mergepatch.PreconditionFunc) (bool, error) { - // Apply the preconditions to the patch, and return an error if any of them fail. - for _, fn := range fns { - if !fn(patchObj) { - return false, fmt.Errorf("precondition failed for: %v", patchObj) - } - } - return true, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch_test.go b/pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch_test.go deleted file mode 100644 index 11a8f779d..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/jsonmergepatch/patch_test.go +++ /dev/null @@ -1,696 +0,0 @@ -/* -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 jsonmergepatch - -import ( - "fmt" - "reflect" - "testing" - - "github.com/davecgh/go-spew/spew" - "github.com/evanphx/json-patch" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/json" - "sigs.k8s.io/yaml" -) - -type FilterNullTestCases struct { - TestCases []FilterNullTestCase -} - -type FilterNullTestCase struct { - Description string - OriginalObj map[string]interface{} - ExpectedWithNull map[string]interface{} - ExpectedWithoutNull map[string]interface{} -} - -var filterNullTestCaseData = []byte(` -testCases: - - description: nil original - originalObj: {} - expectedWithNull: {} - expectedWithoutNull: {} - - description: simple map - originalObj: - nilKey: null - nonNilKey: foo - expectedWithNull: - nilKey: null - expectedWithoutNull: - nonNilKey: foo - - description: simple map with all nil values - originalObj: - nilKey1: null - nilKey2: null - expectedWithNull: - nilKey1: null - nilKey2: null - expectedWithoutNull: {} - - description: simple map with all non-nil values - originalObj: - nonNilKey1: foo - nonNilKey2: bar - expectedWithNull: {} - expectedWithoutNull: - nonNilKey1: foo - nonNilKey2: bar - - description: nested map - originalObj: - mapKey: - nilKey: null - nonNilKey: foo - expectedWithNull: - mapKey: - nilKey: null - expectedWithoutNull: - mapKey: - nonNilKey: foo - - description: nested map that all subkeys are nil - originalObj: - mapKey: - nilKey1: null - nilKey2: null - expectedWithNull: - mapKey: - nilKey1: null - nilKey2: null - expectedWithoutNull: {} - - description: nested map that all subkeys are non-nil - originalObj: - mapKey: - nonNilKey1: foo - nonNilKey2: bar - expectedWithNull: {} - expectedWithoutNull: - mapKey: - nonNilKey1: foo - nonNilKey2: bar - - description: explicitly empty map as value - originalObj: - mapKey: {} - expectedWithNull: {} - expectedWithoutNull: - mapKey: {} - - description: explicitly empty nested map - originalObj: - mapKey: - nonNilKey: {} - expectedWithNull: {} - expectedWithoutNull: - mapKey: - nonNilKey: {} - - description: multiple expliclty empty nested maps - originalObj: - mapKey: - nonNilKey1: {} - nonNilKey2: {} - expectedWithNull: {} - expectedWithoutNull: - mapKey: - nonNilKey1: {} - nonNilKey2: {} - - description: nested map with non-null value as empty map - originalObj: - mapKey: - nonNilKey: {} - nilKey: null - expectedWithNull: - mapKey: - nilKey: null - expectedWithoutNull: - mapKey: - nonNilKey: {} - - description: empty list - originalObj: - listKey: [] - expectedWithNull: {} - expectedWithoutNull: - listKey: [] - - description: list of primitives - originalObj: - listKey: - - 1 - - 2 - expectedWithNull: {} - expectedWithoutNull: - listKey: - - 1 - - 2 - - description: list of maps - originalObj: - listKey: - - k1: v1 - - k2: null - - k3: v3 - k4: null - expectedWithNull: {} - expectedWithoutNull: - listKey: - - k1: v1 - - k2: null - - k3: v3 - k4: null - - description: list of different types - originalObj: - listKey: - - k1: v1 - - k2: null - - v3 - expectedWithNull: {} - expectedWithoutNull: - listKey: - - k1: v1 - - k2: null - - v3 -`) - -func TestKeepOrDeleteNullInObj(t *testing.T) { - tc := FilterNullTestCases{} - err := yaml.Unmarshal(filterNullTestCaseData, &tc) - if err != nil { - t.Fatalf("can't unmarshal test cases: %s\n", err) - } - - for _, test := range tc.TestCases { - resultWithNull, err := keepOrDeleteNullInObj(test.OriginalObj, true) - if err != nil { - t.Errorf("Failed in test case %q when trying to keep null values: %s", test.Description, err) - } - if !reflect.DeepEqual(test.ExpectedWithNull, resultWithNull) { - t.Errorf("Failed in test case %q when trying to keep null values:\nexpected expectedWithNull:\n%+v\nbut got:\n%+v\n", test.Description, test.ExpectedWithNull, resultWithNull) - } - - resultWithoutNull, err := keepOrDeleteNullInObj(test.OriginalObj, false) - if err != nil { - t.Errorf("Failed in test case %q when trying to keep non-null values: %s", test.Description, err) - } - if !reflect.DeepEqual(test.ExpectedWithoutNull, resultWithoutNull) { - t.Errorf("Failed in test case %q when trying to keep non-null values:\n expected expectedWithoutNull:\n%+v\nbut got:\n%+v\n", test.Description, test.ExpectedWithoutNull, resultWithoutNull) - } - } -} - -type JSONMergePatchTestCases struct { - TestCases []JSONMergePatchTestCase -} - -type JSONMergePatchTestCase struct { - Description string - JSONMergePatchTestCaseData -} - -type JSONMergePatchTestCaseData struct { - // Original is the original object (last-applied config in annotation) - Original map[string]interface{} - // Modified is the modified object (new config we want) - Modified map[string]interface{} - // Current is the current object (live config in the server) - Current map[string]interface{} - // ThreeWay is the expected three-way merge patch - ThreeWay map[string]interface{} - // Result is the expected object after applying the three-way patch on current object. - Result map[string]interface{} -} - -var createJSONMergePatchTestCaseData = []byte(` -testCases: - - description: nil original - modified: - name: 1 - value: 1 - current: - name: 1 - other: a - threeWay: - value: 1 - result: - name: 1 - value: 1 - other: a - - description: nil patch - original: - name: 1 - modified: - name: 1 - current: - name: 1 - threeWay: - {} - result: - name: 1 - - description: add field to map - original: - name: 1 - modified: - name: 1 - value: 1 - current: - name: 1 - other: a - threeWay: - value: 1 - result: - name: 1 - value: 1 - other: a - - description: add field to map with conflict - original: - name: 1 - modified: - name: 1 - value: 1 - current: - name: a - other: a - threeWay: - name: 1 - value: 1 - result: - name: 1 - value: 1 - other: a - - description: add field and delete field from map - original: - name: 1 - modified: - value: 1 - current: - name: 1 - other: a - threeWay: - name: null - value: 1 - result: - value: 1 - other: a - - description: add field and delete field from map with conflict - original: - name: 1 - modified: - value: 1 - current: - name: a - other: a - threeWay: - name: null - value: 1 - result: - value: 1 - other: a - - description: delete field from nested map - original: - simpleMap: - key1: 1 - key2: 1 - modified: - simpleMap: - key1: 1 - current: - simpleMap: - key1: 1 - key2: 1 - other: a - threeWay: - simpleMap: - key2: null - result: - simpleMap: - key1: 1 - other: a - - description: delete field from nested map with conflict - original: - simpleMap: - key1: 1 - key2: 1 - modified: - simpleMap: - key1: 1 - current: - simpleMap: - key1: a - key2: 1 - other: a - threeWay: - simpleMap: - key1: 1 - key2: null - result: - simpleMap: - key1: 1 - other: a - - description: delete all fields from map - original: - name: 1 - value: 1 - modified: {} - current: - name: 1 - value: 1 - other: a - threeWay: - name: null - value: null - result: - other: a - - description: delete all fields from map with conflict - original: - name: 1 - value: 1 - modified: {} - current: - name: 1 - value: a - other: a - threeWay: - name: null - value: null - result: - other: a - - description: add field and delete all fields from map - original: - name: 1 - value: 1 - modified: - other: a - current: - name: 1 - value: 1 - other: a - threeWay: - name: null - value: null - result: - other: a - - description: add field and delete all fields from map with conflict - original: - name: 1 - value: 1 - modified: - other: a - current: - name: 1 - value: 1 - other: b - threeWay: - name: null - value: null - other: a - result: - other: a - - description: replace list of scalars - original: - intList: - - 1 - - 2 - modified: - intList: - - 2 - - 3 - current: - intList: - - 1 - - 2 - threeWay: - intList: - - 2 - - 3 - result: - intList: - - 2 - - 3 - - description: replace list of scalars with conflict - original: - intList: - - 1 - - 2 - modified: - intList: - - 2 - - 3 - current: - intList: - - 1 - - 4 - threeWay: - intList: - - 2 - - 3 - result: - intList: - - 2 - - 3 - - description: patch with different scalar type - original: - foo: 1 - modified: - foo: true - current: - foo: 1 - bar: 2 - threeWay: - foo: true - result: - foo: true - bar: 2 - - description: patch from scalar to list - original: - foo: 0 - modified: - foo: - - 1 - - 2 - current: - foo: 0 - bar: 2 - threeWay: - foo: - - 1 - - 2 - result: - foo: - - 1 - - 2 - bar: 2 - - description: patch from list to scalar - original: - foo: - - 1 - - 2 - modified: - foo: 0 - current: - foo: - - 1 - - 2 - bar: 2 - threeWay: - foo: 0 - result: - foo: 0 - bar: 2 - - description: patch from scalar to map - original: - foo: 0 - modified: - foo: - baz: 1 - current: - foo: 0 - bar: 2 - threeWay: - foo: - baz: 1 - result: - foo: - baz: 1 - bar: 2 - - description: patch from map to scalar - original: - foo: - baz: 1 - modified: - foo: 0 - current: - foo: - baz: 1 - bar: 2 - threeWay: - foo: 0 - result: - foo: 0 - bar: 2 - - description: patch from map to list - original: - foo: - baz: 1 - modified: - foo: - - 1 - - 2 - current: - foo: - baz: 1 - bar: 2 - threeWay: - foo: - - 1 - - 2 - result: - foo: - - 1 - - 2 - bar: 2 - - description: patch from list to map - original: - foo: - - 1 - - 2 - modified: - foo: - baz: 0 - current: - foo: - - 1 - - 2 - bar: 2 - threeWay: - foo: - baz: 0 - result: - foo: - baz: 0 - bar: 2 - - description: patch with different nested types - original: - foo: - - a: true - - 2 - - false - modified: - foo: - - 1 - - false - - b: 1 - current: - foo: - - a: true - - 2 - - false - bar: 0 - threeWay: - foo: - - 1 - - false - - b: 1 - result: - foo: - - 1 - - false - - b: 1 - bar: 0 -`) - -func TestCreateThreeWayJSONMergePatch(t *testing.T) { - tc := JSONMergePatchTestCases{} - err := yaml.Unmarshal(createJSONMergePatchTestCaseData, &tc) - if err != nil { - t.Errorf("can't unmarshal test cases: %s\n", err) - return - } - - for _, c := range tc.TestCases { - testThreeWayPatch(t, c) - } -} - -func testThreeWayPatch(t *testing.T, c JSONMergePatchTestCase) { - original, modified, current, expected, result := threeWayTestCaseToJSONOrFail(t, c) - actual, err := CreateThreeWayJSONMergePatch(original, modified, current) - if err != nil { - t.Fatalf("error: %s", err) - } - testPatchCreation(t, expected, actual, c.Description) - testPatchApplication(t, current, actual, result, c.Description) -} - -func testPatchCreation(t *testing.T, expected, actual []byte, description string) { - if !reflect.DeepEqual(actual, expected) { - t.Errorf("error in test case: %s\nexpected patch:\n%s\ngot:\n%s\n", - description, jsonToYAMLOrError(expected), jsonToYAMLOrError(actual)) - return - } -} - -func testPatchApplication(t *testing.T, original, patch, expected []byte, description string) { - result, err := jsonpatch.MergePatch(original, patch) - if err != nil { - t.Errorf("error: %s\nin test case: %s\ncannot apply patch:\n%s\nto original:\n%s\n", - err, description, jsonToYAMLOrError(patch), jsonToYAMLOrError(original)) - return - } - - if !reflect.DeepEqual(result, expected) { - format := "error in test case: %s\npatch application failed:\noriginal:\n%s\npatch:\n%s\nexpected:\n%s\ngot:\n%s\n" - t.Errorf(format, description, - jsonToYAMLOrError(original), jsonToYAMLOrError(patch), - jsonToYAMLOrError(expected), jsonToYAMLOrError(result)) - return - } -} - -func threeWayTestCaseToJSONOrFail(t *testing.T, c JSONMergePatchTestCase) ([]byte, []byte, []byte, []byte, []byte) { - return testObjectToJSONOrFail(t, c.Original), - testObjectToJSONOrFail(t, c.Modified), - testObjectToJSONOrFail(t, c.Current), - testObjectToJSONOrFail(t, c.ThreeWay), - testObjectToJSONOrFail(t, c.Result) -} - -func testObjectToJSONOrFail(t *testing.T, o map[string]interface{}) []byte { - if o == nil { - return nil - } - j, err := toJSON(o) - if err != nil { - t.Error(err) - } - return j -} - -func jsonToYAMLOrError(j []byte) string { - y, err := jsonToYAML(j) - if err != nil { - return err.Error() - } - return string(y) -} - -func toJSON(v interface{}) ([]byte, error) { - j, err := json.Marshal(v) - if err != nil { - return nil, fmt.Errorf("json marshal failed: %v\n%v\n", err, spew.Sdump(v)) - } - return j, nil -} - -func jsonToYAML(j []byte) ([]byte, error) { - y, err := yaml.JSONToYAML(j) - if err != nil { - return nil, fmt.Errorf("json to yaml failed: %v\n%v\n", err, j) - } - return y, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/util/mergepatch/errors.go b/pseudo/k8s/apimachinery/pkg/util/mergepatch/errors.go deleted file mode 100644 index 16501d5af..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/mergepatch/errors.go +++ /dev/null @@ -1,102 +0,0 @@ -/* -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 mergepatch - -import ( - "errors" - "fmt" - "reflect" -) - -var ( - ErrBadJSONDoc = errors.New("invalid JSON document") - ErrNoListOfLists = errors.New("lists of lists are not supported") - ErrBadPatchFormatForPrimitiveList = errors.New("invalid patch format of primitive list") - ErrBadPatchFormatForRetainKeys = errors.New("invalid patch format of retainKeys") - ErrBadPatchFormatForSetElementOrderList = errors.New("invalid patch format of setElementOrder list") - ErrPatchContentNotMatchRetainKeys = errors.New("patch content doesn't match retainKeys list") - ErrUnsupportedStrategicMergePatchFormat = errors.New("strategic merge patch format is not supported") -) - -func ErrNoMergeKey(m map[string]interface{}, k string) error { - return fmt.Errorf("map: %v does not contain declared merge key: %s", m, k) -} - -func ErrBadArgType(expected, actual interface{}) error { - return fmt.Errorf("expected a %s, but received a %s", - reflect.TypeOf(expected), - reflect.TypeOf(actual)) -} - -func ErrBadArgKind(expected, actual interface{}) error { - var expectedKindString, actualKindString string - if expected == nil { - expectedKindString = "nil" - } else { - expectedKindString = reflect.TypeOf(expected).Kind().String() - } - if actual == nil { - actualKindString = "nil" - } else { - actualKindString = reflect.TypeOf(actual).Kind().String() - } - return fmt.Errorf("expected a %s, but received a %s", expectedKindString, actualKindString) -} - -func ErrBadPatchType(t interface{}, m map[string]interface{}) error { - return fmt.Errorf("unknown patch type: %s in map: %v", t, m) -} - -// IsPreconditionFailed returns true if the provided error indicates -// a precondition failed. -func IsPreconditionFailed(err error) bool { - _, ok := err.(ErrPreconditionFailed) - return ok -} - -type ErrPreconditionFailed struct { - message string -} - -func NewErrPreconditionFailed(target map[string]interface{}) ErrPreconditionFailed { - s := fmt.Sprintf("precondition failed for: %v", target) - return ErrPreconditionFailed{s} -} - -func (err ErrPreconditionFailed) Error() string { - return err.message -} - -type ErrConflict struct { - message string -} - -func NewErrConflict(patch, current string) ErrConflict { - s := fmt.Sprintf("patch:\n%s\nconflicts with changes made from original to current:\n%s\n", patch, current) - return ErrConflict{s} -} - -func (err ErrConflict) Error() string { - return err.message -} - -// IsConflict returns true if the provided error indicates -// a conflict between the patch and the current configuration. -func IsConflict(err error) bool { - _, ok := err.(ErrConflict) - return ok -} diff --git a/pseudo/k8s/apimachinery/pkg/util/mergepatch/util.go b/pseudo/k8s/apimachinery/pkg/util/mergepatch/util.go deleted file mode 100644 index 990fa0d43..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/mergepatch/util.go +++ /dev/null @@ -1,133 +0,0 @@ -/* -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 mergepatch - -import ( - "fmt" - "reflect" - - "github.com/davecgh/go-spew/spew" - "sigs.k8s.io/yaml" -) - -// PreconditionFunc asserts that an incompatible change is not present within a patch. -type PreconditionFunc func(interface{}) bool - -// RequireKeyUnchanged returns a precondition function that fails if the provided key -// is present in the patch (indicating that its value has changed). -func RequireKeyUnchanged(key string) PreconditionFunc { - return func(patch interface{}) bool { - patchMap, ok := patch.(map[string]interface{}) - if !ok { - return true - } - - // The presence of key means that its value has been changed, so the test fails. - _, ok = patchMap[key] - return !ok - } -} - -// RequireMetadataKeyUnchanged creates a precondition function that fails -// if the metadata.key is present in the patch (indicating its value -// has changed). -func RequireMetadataKeyUnchanged(key string) PreconditionFunc { - return func(patch interface{}) bool { - patchMap, ok := patch.(map[string]interface{}) - if !ok { - return true - } - patchMap1, ok := patchMap["metadata"] - if !ok { - return true - } - patchMap2, ok := patchMap1.(map[string]interface{}) - if !ok { - return true - } - _, ok = patchMap2[key] - return !ok - } -} - -func ToYAMLOrError(v interface{}) string { - y, err := toYAML(v) - if err != nil { - return err.Error() - } - - return y -} - -func toYAML(v interface{}) (string, error) { - y, err := yaml.Marshal(v) - if err != nil { - return "", fmt.Errorf("yaml marshal failed:%v\n%v\n", err, spew.Sdump(v)) - } - - return string(y), nil -} - -// HasConflicts returns true if the left and right JSON interface objects overlap with -// different values in any key. All keys are required to be strings. Since patches of the -// same Type have congruent keys, this is valid for multiple patch types. This method -// supports JSON merge patch semantics. -// -// NOTE: Numbers with different types (e.g. int(0) vs int64(0)) will be detected as conflicts. -// Make sure the unmarshaling of left and right are consistent (e.g. use the same library). -func HasConflicts(left, right interface{}) (bool, error) { - switch typedLeft := left.(type) { - case map[string]interface{}: - switch typedRight := right.(type) { - case map[string]interface{}: - for key, leftValue := range typedLeft { - rightValue, ok := typedRight[key] - if !ok { - continue - } - if conflict, err := HasConflicts(leftValue, rightValue); err != nil || conflict { - return conflict, err - } - } - - return false, nil - default: - return true, nil - } - case []interface{}: - switch typedRight := right.(type) { - case []interface{}: - if len(typedLeft) != len(typedRight) { - return true, nil - } - - for i := range typedLeft { - if conflict, err := HasConflicts(typedLeft[i], typedRight[i]); err != nil || conflict { - return conflict, err - } - } - - return false, nil - default: - return true, nil - } - case string, float64, bool, int64, nil: - return !reflect.DeepEqual(left, right), nil - default: - return true, fmt.Errorf("unknown type: %v", reflect.TypeOf(left)) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/mergepatch/util_test.go b/pseudo/k8s/apimachinery/pkg/util/mergepatch/util_test.go deleted file mode 100644 index e74dfabd4..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/mergepatch/util_test.go +++ /dev/null @@ -1,136 +0,0 @@ -/* -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 mergepatch - -import ( - "fmt" - "testing" -) - -func TestHasConflicts(t *testing.T) { - testCases := []struct { - A interface{} - B interface{} - Ret bool - }{ - {A: "hello", B: "hello", Ret: false}, - {A: "hello", B: "hell", Ret: true}, - {A: "hello", B: nil, Ret: true}, - {A: "hello", B: int64(1), Ret: true}, - {A: "hello", B: float64(1.0), Ret: true}, - {A: "hello", B: false, Ret: true}, - {A: int64(1), B: int64(1), Ret: false}, - {A: nil, B: nil, Ret: false}, - {A: false, B: false, Ret: false}, - {A: float64(3), B: float64(3), Ret: false}, - - {A: "hello", B: []interface{}{}, Ret: true}, - {A: []interface{}{int64(1)}, B: []interface{}{}, Ret: true}, - {A: []interface{}{}, B: []interface{}{}, Ret: false}, - {A: []interface{}{int64(1)}, B: []interface{}{int64(1)}, Ret: false}, - {A: map[string]interface{}{}, B: []interface{}{int64(1)}, Ret: true}, - - {A: map[string]interface{}{}, B: map[string]interface{}{"a": int64(1)}, Ret: false}, - {A: map[string]interface{}{"a": int64(1)}, B: map[string]interface{}{"a": int64(1)}, Ret: false}, - {A: map[string]interface{}{"a": int64(1)}, B: map[string]interface{}{"a": int64(2)}, Ret: true}, - {A: map[string]interface{}{"a": int64(1)}, B: map[string]interface{}{"b": int64(2)}, Ret: false}, - - { - A: map[string]interface{}{"a": []interface{}{int64(1)}}, - B: map[string]interface{}{"a": []interface{}{int64(1)}}, - Ret: false, - }, - { - A: map[string]interface{}{"a": []interface{}{int64(1)}}, - B: map[string]interface{}{"a": []interface{}{}}, - Ret: true, - }, - { - A: map[string]interface{}{"a": []interface{}{int64(1)}}, - B: map[string]interface{}{"a": int64(1)}, - Ret: true, - }, - - // Maps and lists with multiple entries. - { - A: map[string]interface{}{"a": int64(1), "b": int64(2)}, - B: map[string]interface{}{"a": int64(1), "b": int64(0)}, - Ret: true, - }, - { - A: map[string]interface{}{"a": int64(1), "b": int64(2)}, - B: map[string]interface{}{"a": int64(1), "b": int64(2)}, - Ret: false, - }, - { - A: map[string]interface{}{"a": int64(1), "b": int64(2)}, - B: map[string]interface{}{"a": int64(1), "b": int64(0), "c": int64(3)}, - Ret: true, - }, - { - A: map[string]interface{}{"a": int64(1), "b": int64(2)}, - B: map[string]interface{}{"a": int64(1), "b": int64(2), "c": int64(3)}, - Ret: false, - }, - { - A: map[string]interface{}{"a": []interface{}{int64(1), int64(2)}}, - B: map[string]interface{}{"a": []interface{}{int64(1), int64(0)}}, - Ret: true, - }, - { - A: map[string]interface{}{"a": []interface{}{int64(1), int64(2)}}, - B: map[string]interface{}{"a": []interface{}{int64(1), int64(2)}}, - Ret: false, - }, - - // Numeric types are not interchangeable. - // Callers are expected to ensure numeric types are consistent in 'left' and 'right'. - {A: int64(0), B: float64(0), Ret: true}, - // Other types are not interchangeable. - {A: int64(0), B: "0", Ret: true}, - {A: int64(0), B: nil, Ret: true}, - {A: int64(0), B: false, Ret: true}, - {A: "true", B: true, Ret: true}, - {A: "null", B: nil, Ret: true}, - } - - for _, testCase := range testCases { - testStr := fmt.Sprintf("A = %#v, B = %#v", testCase.A, testCase.B) - // Run each test case multiple times if it passes because HasConflicts() - // uses map iteration, which returns keys in nondeterministic order. - for try := 0; try < 10; try++ { - out, err := HasConflicts(testCase.A, testCase.B) - if err != nil { - t.Errorf("%v: unexpected error: %v", testStr, err) - break - } - if out != testCase.Ret { - t.Errorf("%v: expected %t got %t", testStr, testCase.Ret, out) - break - } - out, err = HasConflicts(testCase.B, testCase.A) - if err != nil { - t.Errorf("%v: unexpected error: %v", testStr, err) - break - } - if out != testCase.Ret { - t.Errorf("%v: expected reversed %t got %t", testStr, testCase.Ret, out) - break - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/naming/from_stack.go b/pseudo/k8s/apimachinery/pkg/util/naming/from_stack.go deleted file mode 100644 index 2965d5a8b..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/naming/from_stack.go +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 naming - -import ( - "fmt" - "regexp" - goruntime "runtime" - "runtime/debug" - "strconv" - "strings" -) - -// GetNameFromCallsite walks back through the call stack until we find a caller from outside of the ignoredPackages -// it returns back a shortpath/filename:line to aid in identification of this reflector when it starts logging -func GetNameFromCallsite(ignoredPackages ...string) string { - name := "????" - const maxStack = 10 - for i := 1; i < maxStack; i++ { - _, file, line, ok := goruntime.Caller(i) - if !ok { - file, line, ok = extractStackCreator() - if !ok { - break - } - i += maxStack - } - if hasPackage(file, append(ignoredPackages, "/runtime/asm_")) { - continue - } - - file = trimPackagePrefix(file) - name = fmt.Sprintf("%s:%d", file, line) - break - } - return name -} - -// hasPackage returns true if the file is in one of the ignored packages. -func hasPackage(file string, ignoredPackages []string) bool { - for _, ignoredPackage := range ignoredPackages { - if strings.Contains(file, ignoredPackage) { - return true - } - } - return false -} - -// trimPackagePrefix reduces duplicate values off the front of a package name. -func trimPackagePrefix(file string) string { - if l := strings.LastIndex(file, "/vendor/"); l >= 0 { - return file[l+len("/vendor/"):] - } - if l := strings.LastIndex(file, "/src/"); l >= 0 { - return file[l+5:] - } - if l := strings.LastIndex(file, "/pkg/"); l >= 0 { - return file[l+1:] - } - return file -} - -var stackCreator = regexp.MustCompile(`(?m)^created by (.*)\n\s+(.*):(\d+) \+0x[[:xdigit:]]+$`) - -// extractStackCreator retrieves the goroutine file and line that launched this stack. Returns false -// if the creator cannot be located. -// TODO: Go does not expose this via runtime https://github.com/golang/go/issues/11440 -func extractStackCreator() (string, int, bool) { - stack := debug.Stack() - matches := stackCreator.FindStringSubmatch(string(stack)) - if matches == nil || len(matches) != 4 { - return "", 0, false - } - line, err := strconv.Atoi(matches[3]) - if err != nil { - return "", 0, false - } - return matches[2], line, true -} diff --git a/pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go b/pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go deleted file mode 100644 index 538038826..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go +++ /dev/null @@ -1,59 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -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 naming - -import ( - "strings" - "testing" -) - -func TestGetNameFromCallsite(t *testing.T) { - tests := []struct { - name string - ignoredPackages []string - expected string - }{ - { - name: "simple", - expected: "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go:", - }, - { - name: "ignore-package", - ignoredPackages: []string{"sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/naming"}, - expected: "testing/testing.go:", - }, - { - name: "ignore-file", - ignoredPackages: []string{"sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go"}, - expected: "testing/testing.go:", - }, - { - name: "ignore-multiple", - ignoredPackages: []string{"sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/naming/from_stack_test.go", "testing/testing.go"}, - expected: "????", - }, - } - - for _, tc := range tests { - t.Run(tc.name, func(t *testing.T) { - actual := GetNameFromCallsite(tc.ignoredPackages...) - if !strings.HasPrefix(actual, tc.expected) { - t.Fatalf("expected string with prefix %q, got %q", tc.expected, actual) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/http.go b/pseudo/k8s/apimachinery/pkg/util/net/http.go deleted file mode 100644 index f9540c63b..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/http.go +++ /dev/null @@ -1,463 +0,0 @@ -/* -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 net - -import ( - "bufio" - "bytes" - "context" - "crypto/tls" - "fmt" - "io" - "net" - "net/http" - "net/url" - "os" - "path" - "strconv" - "strings" - - "golang.org/x/net/http2" - "k8s.io/klog" -) - -// JoinPreservingTrailingSlash does a path.Join of the specified elements, -// preserving any trailing slash on the last non-empty segment -func JoinPreservingTrailingSlash(elem ...string) string { - // do the basic path join - result := path.Join(elem...) - - // find the last non-empty segment - for i := len(elem) - 1; i >= 0; i-- { - if len(elem[i]) > 0 { - // if the last segment ended in a slash, ensure our result does as well - if strings.HasSuffix(elem[i], "/") && !strings.HasSuffix(result, "/") { - result += "/" - } - break - } - } - - return result -} - -// IsProbableEOF returns true if the given error resembles a connection termination -// scenario that would justify assuming that the watch is empty. -// These errors are what the Go http stack returns back to us which are general -// connection closure errors (strongly correlated) and callers that need to -// differentiate probable errors in connection behavior between normal "this is -// disconnected" should use the method. -func IsProbableEOF(err error) bool { - if err == nil { - return false - } - if uerr, ok := err.(*url.Error); ok { - err = uerr.Err - } - msg := err.Error() - switch { - case err == io.EOF: - return true - case msg == "http: can't write HTTP request on broken connection": - return true - case strings.Contains(msg, "http2: server sent GOAWAY and closed the connection"): - return true - case strings.Contains(msg, "connection reset by peer"): - return true - case strings.Contains(strings.ToLower(msg), "use of closed network connection"): - return true - } - return false -} - -var defaultTransport = http.DefaultTransport.(*http.Transport) - -// SetOldTransportDefaults applies the defaults from http.DefaultTransport -// for the Proxy, Dial, and TLSHandshakeTimeout fields if unset -func SetOldTransportDefaults(t *http.Transport) *http.Transport { - if t.Proxy == nil || isDefault(t.Proxy) { - // http.ProxyFromEnvironment doesn't respect CIDRs and that makes it impossible to exclude things like pod and service IPs from proxy settings - // ProxierWithNoProxyCIDR allows CIDR rules in NO_PROXY - t.Proxy = NewProxierWithNoProxyCIDR(http.ProxyFromEnvironment) - } - // If no custom dialer is set, use the default context dialer - if t.DialContext == nil && t.Dial == nil { - t.DialContext = defaultTransport.DialContext - } - if t.TLSHandshakeTimeout == 0 { - t.TLSHandshakeTimeout = defaultTransport.TLSHandshakeTimeout - } - if t.IdleConnTimeout == 0 { - t.IdleConnTimeout = defaultTransport.IdleConnTimeout - } - return t -} - -// SetTransportDefaults applies the defaults from http.DefaultTransport -// for the Proxy, Dial, and TLSHandshakeTimeout fields if unset -func SetTransportDefaults(t *http.Transport) *http.Transport { - t = SetOldTransportDefaults(t) - // Allow clients to disable http2 if needed. - if s := os.Getenv("DISABLE_HTTP2"); len(s) > 0 { - klog.Infof("HTTP2 has been explicitly disabled") - } else if allowsHTTP2(t) { - if err := http2.ConfigureTransport(t); err != nil { - klog.Warningf("Transport failed http2 configuration: %v", err) - } - } - return t -} - -func allowsHTTP2(t *http.Transport) bool { - if t.TLSClientConfig == nil || len(t.TLSClientConfig.NextProtos) == 0 { - // the transport expressed no NextProto preference, allow - return true - } - for _, p := range t.TLSClientConfig.NextProtos { - if p == http2.NextProtoTLS { - // the transport explicitly allowed http/2 - return true - } - } - // the transport explicitly set NextProtos and excluded http/2 - return false -} - -type RoundTripperWrapper interface { - http.RoundTripper - WrappedRoundTripper() http.RoundTripper -} - -type DialFunc func(ctx context.Context, net, addr string) (net.Conn, error) - -func DialerFor(transport http.RoundTripper) (DialFunc, error) { - if transport == nil { - return nil, nil - } - - switch transport := transport.(type) { - case *http.Transport: - // transport.DialContext takes precedence over transport.Dial - if transport.DialContext != nil { - return transport.DialContext, nil - } - // adapt transport.Dial to the DialWithContext signature - if transport.Dial != nil { - return func(ctx context.Context, net, addr string) (net.Conn, error) { - return transport.Dial(net, addr) - }, nil - } - // otherwise return nil - return nil, nil - case RoundTripperWrapper: - return DialerFor(transport.WrappedRoundTripper()) - default: - return nil, fmt.Errorf("unknown transport type: %T", transport) - } -} - -type TLSClientConfigHolder interface { - TLSClientConfig() *tls.Config -} - -func TLSClientConfig(transport http.RoundTripper) (*tls.Config, error) { - if transport == nil { - return nil, nil - } - - switch transport := transport.(type) { - case *http.Transport: - return transport.TLSClientConfig, nil - case TLSClientConfigHolder: - return transport.TLSClientConfig(), nil - case RoundTripperWrapper: - return TLSClientConfig(transport.WrappedRoundTripper()) - default: - return nil, fmt.Errorf("unknown transport type: %T", transport) - } -} - -func FormatURL(scheme string, host string, port int, path string) *url.URL { - return &url.URL{ - Scheme: scheme, - Host: net.JoinHostPort(host, strconv.Itoa(port)), - Path: path, - } -} - -func GetHTTPClient(req *http.Request) string { - if ua := req.UserAgent(); len(ua) != 0 { - return ua - } - return "unknown" -} - -// SourceIPs splits the comma separated X-Forwarded-For header or returns the X-Real-Ip header or req.RemoteAddr, -// in that order, ignoring invalid IPs. It returns nil if all of these are empty or invalid. -func SourceIPs(req *http.Request) []net.IP { - hdr := req.Header - // First check the X-Forwarded-For header for requests via proxy. - hdrForwardedFor := hdr.Get("X-Forwarded-For") - forwardedForIPs := []net.IP{} - if hdrForwardedFor != "" { - // X-Forwarded-For can be a csv of IPs in case of multiple proxies. - // Use the first valid one. - parts := strings.Split(hdrForwardedFor, ",") - for _, part := range parts { - ip := net.ParseIP(strings.TrimSpace(part)) - if ip != nil { - forwardedForIPs = append(forwardedForIPs, ip) - } - } - } - if len(forwardedForIPs) > 0 { - return forwardedForIPs - } - - // Try the X-Real-Ip header. - hdrRealIp := hdr.Get("X-Real-Ip") - if hdrRealIp != "" { - ip := net.ParseIP(hdrRealIp) - if ip != nil { - return []net.IP{ip} - } - } - - // Fallback to Remote Address in request, which will give the correct client IP when there is no proxy. - // Remote Address in Go's HTTP server is in the form host:port so we need to split that first. - host, _, err := net.SplitHostPort(req.RemoteAddr) - if err == nil { - if remoteIP := net.ParseIP(host); remoteIP != nil { - return []net.IP{remoteIP} - } - } - - // Fallback if Remote Address was just IP. - if remoteIP := net.ParseIP(req.RemoteAddr); remoteIP != nil { - return []net.IP{remoteIP} - } - - return nil -} - -// Extracts and returns the clients IP from the given request. -// Looks at X-Forwarded-For header, X-Real-Ip header and request.RemoteAddr in that order. -// Returns nil if none of them are set or is set to an invalid value. -func GetClientIP(req *http.Request) net.IP { - ips := SourceIPs(req) - if len(ips) == 0 { - return nil - } - return ips[0] -} - -// Prepares the X-Forwarded-For header for another forwarding hop by appending the previous sender's -// IP address to the X-Forwarded-For chain. -func AppendForwardedForHeader(req *http.Request) { - // Copied from net/http/httputil/reverseproxy.go: - if clientIP, _, err := net.SplitHostPort(req.RemoteAddr); err == nil { - // If we aren't the first proxy retain prior - // X-Forwarded-For information as a comma+space - // separated list and fold multiple headers into one. - if prior, ok := req.Header["X-Forwarded-For"]; ok { - clientIP = strings.Join(prior, ", ") + ", " + clientIP - } - req.Header.Set("X-Forwarded-For", clientIP) - } -} - -var defaultProxyFuncPointer = fmt.Sprintf("%p", http.ProxyFromEnvironment) - -// isDefault checks to see if the transportProxierFunc is pointing to the default one -func isDefault(transportProxier func(*http.Request) (*url.URL, error)) bool { - transportProxierPointer := fmt.Sprintf("%p", transportProxier) - return transportProxierPointer == defaultProxyFuncPointer -} - -// NewProxierWithNoProxyCIDR constructs a Proxier function that respects CIDRs in NO_PROXY and delegates if -// no matching CIDRs are found -func NewProxierWithNoProxyCIDR(delegate func(req *http.Request) (*url.URL, error)) func(req *http.Request) (*url.URL, error) { - // we wrap the default method, so we only need to perform our check if the NO_PROXY (or no_proxy) envvar has a CIDR in it - noProxyEnv := os.Getenv("NO_PROXY") - if noProxyEnv == "" { - noProxyEnv = os.Getenv("no_proxy") - } - noProxyRules := strings.Split(noProxyEnv, ",") - - cidrs := []*net.IPNet{} - for _, noProxyRule := range noProxyRules { - _, cidr, _ := net.ParseCIDR(noProxyRule) - if cidr != nil { - cidrs = append(cidrs, cidr) - } - } - - if len(cidrs) == 0 { - return delegate - } - - return func(req *http.Request) (*url.URL, error) { - ip := net.ParseIP(req.URL.Hostname()) - if ip == nil { - return delegate(req) - } - - for _, cidr := range cidrs { - if cidr.Contains(ip) { - return nil, nil - } - } - - return delegate(req) - } -} - -// DialerFunc implements Dialer for the provided function. -type DialerFunc func(req *http.Request) (net.Conn, error) - -func (fn DialerFunc) Dial(req *http.Request) (net.Conn, error) { - return fn(req) -} - -// Dialer dials a host and writes a request to it. -type Dialer interface { - // Dial connects to the host specified by req's URL, writes the request to the connection, and - // returns the opened net.Conn. - Dial(req *http.Request) (net.Conn, error) -} - -// ConnectWithRedirects uses dialer to send req, following up to 10 redirects (relative to -// originalLocation). It returns the opened net.Conn and the raw response bytes. -// If requireSameHostRedirects is true, only redirects to the same host are permitted. -func ConnectWithRedirects(originalMethod string, originalLocation *url.URL, header http.Header, originalBody io.Reader, dialer Dialer, requireSameHostRedirects bool) (net.Conn, []byte, error) { - const ( - maxRedirects = 9 // Fail on the 10th redirect - maxResponseSize = 16384 // play it safe to allow the potential for lots of / large headers - ) - - var ( - location = originalLocation - method = originalMethod - intermediateConn net.Conn - rawResponse = bytes.NewBuffer(make([]byte, 0, 256)) - body = originalBody - ) - - defer func() { - if intermediateConn != nil { - intermediateConn.Close() - } - }() - -redirectLoop: - for redirects := 0; ; redirects++ { - if redirects > maxRedirects { - return nil, nil, fmt.Errorf("too many redirects (%d)", redirects) - } - - req, err := http.NewRequest(method, location.String(), body) - if err != nil { - return nil, nil, err - } - - req.Header = header - - intermediateConn, err = dialer.Dial(req) - if err != nil { - return nil, nil, err - } - - // Peek at the backend response. - rawResponse.Reset() - respReader := bufio.NewReader(io.TeeReader( - io.LimitReader(intermediateConn, maxResponseSize), // Don't read more than maxResponseSize bytes. - rawResponse)) // Save the raw response. - resp, err := http.ReadResponse(respReader, nil) - if err != nil { - // Unable to read the backend response; let the client handle it. - klog.Warningf("Error reading backend response: %v", err) - break redirectLoop - } - - switch resp.StatusCode { - case http.StatusFound: - // Redirect, continue. - default: - // Don't redirect. - break redirectLoop - } - - // Redirected requests switch to "GET" according to the HTTP spec: - // https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 - method = "GET" - // don't send a body when following redirects - body = nil - - resp.Body.Close() // not used - - // Prepare to follow the redirect. - redirectStr := resp.Header.Get("Location") - if redirectStr == "" { - return nil, nil, fmt.Errorf("%d response missing Location header", resp.StatusCode) - } - // We have to parse relative to the current location, NOT originalLocation. For example, - // if we request http://foo.com/a and get back "http://bar.com/b", the result should be - // http://bar.com/b. If we then make that request and get back a redirect to "/c", the result - // should be http://bar.com/c, not http://foo.com/c. - location, err = location.Parse(redirectStr) - if err != nil { - return nil, nil, fmt.Errorf("malformed Location header: %v", err) - } - - // Only follow redirects to the same host. Otherwise, propagate the redirect response back. - if requireSameHostRedirects && location.Hostname() != originalLocation.Hostname() { - break redirectLoop - } - - // Reset the connection. - intermediateConn.Close() - intermediateConn = nil - } - - connToReturn := intermediateConn - intermediateConn = nil // Don't close the connection when we return it. - return connToReturn, rawResponse.Bytes(), nil -} - -// CloneRequest creates a shallow copy of the request along with a deep copy of the Headers. -func CloneRequest(req *http.Request) *http.Request { - r := new(http.Request) - - // shallow clone - *r = *req - - // deep copy headers - r.Header = CloneHeader(req.Header) - - return r -} - -// CloneHeader creates a deep copy of an http.Header. -func CloneHeader(in http.Header) http.Header { - out := make(http.Header, len(in)) - for key, values := range in { - newValues := make([]string, len(values)) - copy(newValues, values) - out[key] = newValues - } - return out -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/http_test.go b/pseudo/k8s/apimachinery/pkg/util/net/http_test.go deleted file mode 100644 index 3abbc8244..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/http_test.go +++ /dev/null @@ -1,494 +0,0 @@ -// +build go1.8 - -/* -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 net - -import ( - "bufio" - "bytes" - "crypto/tls" - "fmt" - "io/ioutil" - "net" - "net/http" - "net/http/httptest" - "net/url" - "os" - "reflect" - "strings" - "testing" - - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/wait" -) - -func TestGetClientIP(t *testing.T) { - ipString := "10.0.0.1" - ip := net.ParseIP(ipString) - invalidIPString := "invalidIPString" - testCases := []struct { - Request http.Request - ExpectedIP net.IP - }{ - { - Request: http.Request{}, - }, - { - Request: http.Request{ - Header: map[string][]string{ - "X-Real-Ip": {ipString}, - }, - }, - ExpectedIP: ip, - }, - { - Request: http.Request{ - Header: map[string][]string{ - "X-Real-Ip": {invalidIPString}, - }, - }, - }, - { - Request: http.Request{ - Header: map[string][]string{ - "X-Forwarded-For": {ipString}, - }, - }, - ExpectedIP: ip, - }, - { - Request: http.Request{ - Header: map[string][]string{ - "X-Forwarded-For": {invalidIPString}, - }, - }, - }, - { - Request: http.Request{ - Header: map[string][]string{ - "X-Forwarded-For": {invalidIPString + "," + ipString}, - }, - }, - ExpectedIP: ip, - }, - { - Request: http.Request{ - // RemoteAddr is in the form host:port - RemoteAddr: ipString + ":1234", - }, - ExpectedIP: ip, - }, - { - Request: http.Request{ - RemoteAddr: invalidIPString, - }, - }, - { - Request: http.Request{ - Header: map[string][]string{ - "X-Forwarded-For": {invalidIPString}, - }, - // RemoteAddr is in the form host:port - RemoteAddr: ipString, - }, - ExpectedIP: ip, - }, - } - - for i, test := range testCases { - if a, e := GetClientIP(&test.Request), test.ExpectedIP; reflect.DeepEqual(e, a) != true { - t.Fatalf("test case %d failed. expected: %v, actual: %v", i, e, a) - } - } -} - -func TestAppendForwardedForHeader(t *testing.T) { - testCases := []struct { - addr, forwarded, expected string - }{ - {"1.2.3.4:8000", "", "1.2.3.4"}, - {"1.2.3.4:8000", "8.8.8.8", "8.8.8.8, 1.2.3.4"}, - {"1.2.3.4:8000", "8.8.8.8, 1.2.3.4", "8.8.8.8, 1.2.3.4, 1.2.3.4"}, - {"1.2.3.4:8000", "foo,bar", "foo,bar, 1.2.3.4"}, - } - for i, test := range testCases { - req := &http.Request{ - RemoteAddr: test.addr, - Header: make(http.Header), - } - if test.forwarded != "" { - req.Header.Set("X-Forwarded-For", test.forwarded) - } - - AppendForwardedForHeader(req) - actual := req.Header.Get("X-Forwarded-For") - if actual != test.expected { - t.Errorf("[%d] Expected %q, Got %q", i, test.expected, actual) - } - } -} - -func TestProxierWithNoProxyCIDR(t *testing.T) { - testCases := []struct { - name string - noProxy string - url string - - expectedDelegated bool - }{ - { - name: "no env", - url: "https://192.168.143.1/api", - expectedDelegated: true, - }, - { - name: "no cidr", - noProxy: "192.168.63.1", - url: "https://192.168.143.1/api", - expectedDelegated: true, - }, - { - name: "hostname", - noProxy: "192.168.63.0/24,192.168.143.0/24", - url: "https://my-hostname/api", - expectedDelegated: true, - }, - { - name: "match second cidr", - noProxy: "192.168.63.0/24,192.168.143.0/24", - url: "https://192.168.143.1/api", - expectedDelegated: false, - }, - { - name: "match second cidr with host:port", - noProxy: "192.168.63.0/24,192.168.143.0/24", - url: "https://192.168.143.1:8443/api", - expectedDelegated: false, - }, - { - name: "IPv6 cidr", - noProxy: "2001:db8::/48", - url: "https://[2001:db8::1]/api", - expectedDelegated: false, - }, - { - name: "IPv6+port cidr", - noProxy: "2001:db8::/48", - url: "https://[2001:db8::1]:8443/api", - expectedDelegated: false, - }, - { - name: "IPv6, not matching cidr", - noProxy: "2001:db8::/48", - url: "https://[2001:db8:1::1]/api", - expectedDelegated: true, - }, - { - name: "IPv6+port, not matching cidr", - noProxy: "2001:db8::/48", - url: "https://[2001:db8:1::1]:8443/api", - expectedDelegated: true, - }, - } - - for _, test := range testCases { - os.Setenv("NO_PROXY", test.noProxy) - actualDelegated := false - proxyFunc := NewProxierWithNoProxyCIDR(func(req *http.Request) (*url.URL, error) { - actualDelegated = true - return nil, nil - }) - - req, err := http.NewRequest("GET", test.url, nil) - if err != nil { - t.Errorf("%s: unexpected err: %v", test.name, err) - continue - } - if _, err := proxyFunc(req); err != nil { - t.Errorf("%s: unexpected err: %v", test.name, err) - continue - } - - if test.expectedDelegated != actualDelegated { - t.Errorf("%s: expected %v, got %v", test.name, test.expectedDelegated, actualDelegated) - continue - } - } -} - -type fakeTLSClientConfigHolder struct { - called bool -} - -func (f *fakeTLSClientConfigHolder) TLSClientConfig() *tls.Config { - f.called = true - return nil -} -func (f *fakeTLSClientConfigHolder) RoundTrip(*http.Request) (*http.Response, error) { - return nil, nil -} - -func TestTLSClientConfigHolder(t *testing.T) { - rt := &fakeTLSClientConfigHolder{} - TLSClientConfig(rt) - - if !rt.called { - t.Errorf("didn't find tls config") - } -} - -func TestJoinPreservingTrailingSlash(t *testing.T) { - tests := []struct { - a string - b string - want string - }{ - // All empty - {"", "", ""}, - - // Empty a - {"", "/", "/"}, - {"", "foo", "foo"}, - {"", "/foo", "/foo"}, - {"", "/foo/", "/foo/"}, - - // Empty b - {"/", "", "/"}, - {"foo", "", "foo"}, - {"/foo", "", "/foo"}, - {"/foo/", "", "/foo/"}, - - // Both populated - {"/", "/", "/"}, - {"foo", "foo", "foo/foo"}, - {"/foo", "/foo", "/foo/foo"}, - {"/foo/", "/foo/", "/foo/foo/"}, - } - for _, tt := range tests { - name := fmt.Sprintf("%q+%q=%q", tt.a, tt.b, tt.want) - t.Run(name, func(t *testing.T) { - if got := JoinPreservingTrailingSlash(tt.a, tt.b); got != tt.want { - t.Errorf("JoinPreservingTrailingSlash() = %v, want %v", got, tt.want) - } - }) - } -} - -func TestConnectWithRedirects(t *testing.T) { - tests := []struct { - desc string - redirects []string - method string // initial request method, empty == GET - expectError bool - expectedRedirects int - newPort bool // special case different port test - }{{ - desc: "relative redirects allowed", - redirects: []string{"/ok"}, - expectedRedirects: 1, - }, { - desc: "redirects to the same host are allowed", - redirects: []string{"http://HOST/ok"}, // HOST replaced with server address in test - expectedRedirects: 1, - }, { - desc: "POST redirects to GET", - method: http.MethodPost, - redirects: []string{"/ok"}, - expectedRedirects: 1, - }, { - desc: "PUT redirects to GET", - method: http.MethodPut, - redirects: []string{"/ok"}, - expectedRedirects: 1, - }, { - desc: "DELETE redirects to GET", - method: http.MethodDelete, - redirects: []string{"/ok"}, - expectedRedirects: 1, - }, { - desc: "9 redirects are allowed", - redirects: []string{"/1", "/2", "/3", "/4", "/5", "/6", "/7", "/8", "/9"}, - expectedRedirects: 9, - }, { - desc: "10 redirects are forbidden", - redirects: []string{"/1", "/2", "/3", "/4", "/5", "/6", "/7", "/8", "/9", "/10"}, - expectError: true, - }, { - desc: "redirect to different host are prevented", - redirects: []string{"http://example.com/foo"}, - expectedRedirects: 0, - }, { - desc: "multiple redirect to different host forbidden", - redirects: []string{"/1", "/2", "/3", "http://example.com/foo"}, - expectedRedirects: 3, - }, { - desc: "redirect to different port is allowed", - redirects: []string{"http://HOST/foo"}, - expectedRedirects: 1, - newPort: true, - }} - - const resultString = "Test output" - for _, test := range tests { - t.Run(test.desc, func(t *testing.T) { - redirectCount := 0 - s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - // Verify redirect request. - if redirectCount > 0 { - expectedURL, err := url.Parse(test.redirects[redirectCount-1]) - require.NoError(t, err, "test URL error") - assert.Equal(t, req.URL.Path, expectedURL.Path, "unknown redirect path") - assert.Equal(t, http.MethodGet, req.Method, "redirects must always be GET") - } - if redirectCount < len(test.redirects) { - http.Redirect(w, req, test.redirects[redirectCount], http.StatusFound) - redirectCount++ - } else if redirectCount == len(test.redirects) { - w.Write([]byte(resultString)) - } else { - t.Errorf("unexpected number of redirects %d to %s", redirectCount, req.URL.String()) - } - })) - defer s.Close() - - u, err := url.Parse(s.URL) - require.NoError(t, err, "Error parsing server URL") - host := u.Host - - // Special case new-port test with a secondary server. - if test.newPort { - s2 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - w.Write([]byte(resultString)) - })) - defer s2.Close() - u2, err := url.Parse(s2.URL) - require.NoError(t, err, "Error parsing secondary server URL") - - // Sanity check: secondary server uses same hostname, different port. - require.Equal(t, u.Hostname(), u2.Hostname(), "sanity check: same hostname") - require.NotEqual(t, u.Port(), u2.Port(), "sanity check: different port") - - // Redirect to the secondary server. - host = u2.Host - - } - - // Update redirect URLs with actual host. - for i := range test.redirects { - test.redirects[i] = strings.Replace(test.redirects[i], "HOST", host, 1) - } - - method := test.method - if method == "" { - method = http.MethodGet - } - - netdialer := &net.Dialer{ - Timeout: wait.ForeverTestTimeout, - KeepAlive: wait.ForeverTestTimeout, - } - dialer := DialerFunc(func(req *http.Request) (net.Conn, error) { - conn, err := netdialer.Dial("tcp", req.URL.Host) - if err != nil { - return conn, err - } - if err = req.Write(conn); err != nil { - require.NoError(t, conn.Close()) - return nil, fmt.Errorf("error sending request: %v", err) - } - return conn, err - }) - conn, rawResponse, err := ConnectWithRedirects(method, u, http.Header{} /*body*/, nil, dialer, true) - if test.expectError { - require.Error(t, err, "expected request error") - return - } - - require.NoError(t, err, "unexpected request error") - assert.NoError(t, conn.Close(), "error closing connection") - - resp, err := http.ReadResponse(bufio.NewReader(bytes.NewReader(rawResponse)), nil) - require.NoError(t, err, "unexpected request error") - - result, err := ioutil.ReadAll(resp.Body) - require.NoError(t, resp.Body.Close()) - if test.expectedRedirects < len(test.redirects) { - // Expect the last redirect to be returned. - assert.Equal(t, http.StatusFound, resp.StatusCode, "Final response is not a redirect") - assert.Equal(t, test.redirects[len(test.redirects)-1], resp.Header.Get("Location")) - assert.NotEqual(t, resultString, string(result), "wrong content") - } else { - assert.Equal(t, resultString, string(result), "stream content does not match") - } - }) - } -} - -func TestAllowsHTTP2(t *testing.T) { - testcases := []struct { - Name string - Transport *http.Transport - ExpectAllows bool - }{ - { - Name: "empty", - Transport: &http.Transport{}, - ExpectAllows: true, - }, - { - Name: "empty tlsconfig", - Transport: &http.Transport{TLSClientConfig: &tls.Config{}}, - ExpectAllows: true, - }, - { - Name: "zero-length NextProtos", - Transport: &http.Transport{TLSClientConfig: &tls.Config{NextProtos: []string{}}}, - ExpectAllows: true, - }, - { - Name: "includes h2 in NextProtos after", - Transport: &http.Transport{TLSClientConfig: &tls.Config{NextProtos: []string{"http/1.1", "h2"}}}, - ExpectAllows: true, - }, - { - Name: "includes h2 in NextProtos before", - Transport: &http.Transport{TLSClientConfig: &tls.Config{NextProtos: []string{"h2", "http/1.1"}}}, - ExpectAllows: true, - }, - { - Name: "includes h2 in NextProtos between", - Transport: &http.Transport{TLSClientConfig: &tls.Config{NextProtos: []string{"http/1.1", "h2", "h3"}}}, - ExpectAllows: true, - }, - { - Name: "excludes h2 in NextProtos", - Transport: &http.Transport{TLSClientConfig: &tls.Config{NextProtos: []string{"http/1.1"}}}, - ExpectAllows: false, - }, - } - - for _, tc := range testcases { - t.Run(tc.Name, func(t *testing.T) { - allows := allowsHTTP2(tc.Transport) - if allows != tc.ExpectAllows { - t.Errorf("expected %v, got %v", tc.ExpectAllows, allows) - } - }) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/interface.go b/pseudo/k8s/apimachinery/pkg/util/net/interface.go deleted file mode 100644 index daf5d2496..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/interface.go +++ /dev/null @@ -1,416 +0,0 @@ -/* -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 net - -import ( - "bufio" - "encoding/hex" - "fmt" - "io" - "net" - "os" - - "strings" - - "k8s.io/klog" -) - -type AddressFamily uint - -const ( - familyIPv4 AddressFamily = 4 - familyIPv6 AddressFamily = 6 -) - -const ( - ipv4RouteFile = "/proc/net/route" - ipv6RouteFile = "/proc/net/ipv6_route" -) - -type Route struct { - Interface string - Destination net.IP - Gateway net.IP - Family AddressFamily -} - -type RouteFile struct { - name string - parse func(input io.Reader) ([]Route, error) -} - -// noRoutesError can be returned by ChooseBindAddress() in case of no routes -type noRoutesError struct { - message string -} - -func (e noRoutesError) Error() string { - return e.message -} - -// IsNoRoutesError checks if an error is of type noRoutesError -func IsNoRoutesError(err error) bool { - if err == nil { - return false - } - switch err.(type) { - case noRoutesError: - return true - default: - return false - } -} - -var ( - v4File = RouteFile{name: ipv4RouteFile, parse: getIPv4DefaultRoutes} - v6File = RouteFile{name: ipv6RouteFile, parse: getIPv6DefaultRoutes} -) - -func (rf RouteFile) extract() ([]Route, error) { - file, err := os.Open(rf.name) - if err != nil { - return nil, err - } - defer file.Close() - return rf.parse(file) -} - -// getIPv4DefaultRoutes obtains the IPv4 routes, and filters out non-default routes. -func getIPv4DefaultRoutes(input io.Reader) ([]Route, error) { - routes := []Route{} - scanner := bufio.NewReader(input) - for { - line, err := scanner.ReadString('\n') - if err == io.EOF { - break - } - //ignore the headers in the route info - if strings.HasPrefix(line, "Iface") { - continue - } - fields := strings.Fields(line) - // Interested in fields: - // 0 - interface name - // 1 - destination address - // 2 - gateway - dest, err := parseIP(fields[1], familyIPv4) - if err != nil { - return nil, err - } - gw, err := parseIP(fields[2], familyIPv4) - if err != nil { - return nil, err - } - if !dest.Equal(net.IPv4zero) { - continue - } - routes = append(routes, Route{ - Interface: fields[0], - Destination: dest, - Gateway: gw, - Family: familyIPv4, - }) - } - return routes, nil -} - -func getIPv6DefaultRoutes(input io.Reader) ([]Route, error) { - routes := []Route{} - scanner := bufio.NewReader(input) - for { - line, err := scanner.ReadString('\n') - if err == io.EOF { - break - } - fields := strings.Fields(line) - // Interested in fields: - // 0 - destination address - // 4 - gateway - // 9 - interface name - dest, err := parseIP(fields[0], familyIPv6) - if err != nil { - return nil, err - } - gw, err := parseIP(fields[4], familyIPv6) - if err != nil { - return nil, err - } - if !dest.Equal(net.IPv6zero) { - continue - } - if gw.Equal(net.IPv6zero) { - continue // loopback - } - routes = append(routes, Route{ - Interface: fields[9], - Destination: dest, - Gateway: gw, - Family: familyIPv6, - }) - } - return routes, nil -} - -// parseIP takes the hex IP address string from route file and converts it -// to a net.IP address. For IPv4, the value must be converted to big endian. -func parseIP(str string, family AddressFamily) (net.IP, error) { - if str == "" { - return nil, fmt.Errorf("input is nil") - } - bytes, err := hex.DecodeString(str) - if err != nil { - return nil, err - } - if family == familyIPv4 { - if len(bytes) != net.IPv4len { - return nil, fmt.Errorf("invalid IPv4 address in route") - } - return net.IP([]byte{bytes[3], bytes[2], bytes[1], bytes[0]}), nil - } - // Must be IPv6 - if len(bytes) != net.IPv6len { - return nil, fmt.Errorf("invalid IPv6 address in route") - } - return net.IP(bytes), nil -} - -func isInterfaceUp(intf *net.Interface) bool { - if intf == nil { - return false - } - if intf.Flags&net.FlagUp != 0 { - klog.V(4).Infof("Interface %v is up", intf.Name) - return true - } - return false -} - -func isLoopbackOrPointToPoint(intf *net.Interface) bool { - return intf.Flags&(net.FlagLoopback|net.FlagPointToPoint) != 0 -} - -// getMatchingGlobalIP returns the first valid global unicast address of the given -// 'family' from the list of 'addrs'. -func getMatchingGlobalIP(addrs []net.Addr, family AddressFamily) (net.IP, error) { - if len(addrs) > 0 { - for i := range addrs { - klog.V(4).Infof("Checking addr %s.", addrs[i].String()) - ip, _, err := net.ParseCIDR(addrs[i].String()) - if err != nil { - return nil, err - } - if memberOf(ip, family) { - if ip.IsGlobalUnicast() { - klog.V(4).Infof("IP found %v", ip) - return ip, nil - } else { - klog.V(4).Infof("Non-global unicast address found %v", ip) - } - } else { - klog.V(4).Infof("%v is not an IPv%d address", ip, int(family)) - } - - } - } - return nil, nil -} - -// getIPFromInterface gets the IPs on an interface and returns a global unicast address, if any. The -// interface must be up, the IP must in the family requested, and the IP must be a global unicast address. -func getIPFromInterface(intfName string, forFamily AddressFamily, nw networkInterfacer) (net.IP, error) { - intf, err := nw.InterfaceByName(intfName) - if err != nil { - return nil, err - } - if isInterfaceUp(intf) { - addrs, err := nw.Addrs(intf) - if err != nil { - return nil, err - } - klog.V(4).Infof("Interface %q has %d addresses :%v.", intfName, len(addrs), addrs) - matchingIP, err := getMatchingGlobalIP(addrs, forFamily) - if err != nil { - return nil, err - } - if matchingIP != nil { - klog.V(4).Infof("Found valid IPv%d address %v for interface %q.", int(forFamily), matchingIP, intfName) - return matchingIP, nil - } - } - return nil, nil -} - -// memberOF tells if the IP is of the desired family. Used for checking interface addresses. -func memberOf(ip net.IP, family AddressFamily) bool { - if ip.To4() != nil { - return family == familyIPv4 - } else { - return family == familyIPv6 - } -} - -// chooseIPFromHostInterfaces looks at all system interfaces, trying to find one that is up that -// has a global unicast address (non-loopback, non-link local, non-point2point), and returns the IP. -// Searches for IPv4 addresses, and then IPv6 addresses. -func chooseIPFromHostInterfaces(nw networkInterfacer) (net.IP, error) { - intfs, err := nw.Interfaces() - if err != nil { - return nil, err - } - if len(intfs) == 0 { - return nil, fmt.Errorf("no interfaces found on host.") - } - for _, family := range []AddressFamily{familyIPv4, familyIPv6} { - klog.V(4).Infof("Looking for system interface with a global IPv%d address", uint(family)) - for _, intf := range intfs { - if !isInterfaceUp(&intf) { - klog.V(4).Infof("Skipping: down interface %q", intf.Name) - continue - } - if isLoopbackOrPointToPoint(&intf) { - klog.V(4).Infof("Skipping: LB or P2P interface %q", intf.Name) - continue - } - addrs, err := nw.Addrs(&intf) - if err != nil { - return nil, err - } - if len(addrs) == 0 { - klog.V(4).Infof("Skipping: no addresses on interface %q", intf.Name) - continue - } - for _, addr := range addrs { - ip, _, err := net.ParseCIDR(addr.String()) - if err != nil { - return nil, fmt.Errorf("Unable to parse CIDR for interface %q: %s", intf.Name, err) - } - if !memberOf(ip, family) { - klog.V(4).Infof("Skipping: no address family match for %q on interface %q.", ip, intf.Name) - continue - } - // TODO: Decide if should open up to allow IPv6 LLAs in future. - if !ip.IsGlobalUnicast() { - klog.V(4).Infof("Skipping: non-global address %q on interface %q.", ip, intf.Name) - continue - } - klog.V(4).Infof("Found global unicast address %q on interface %q.", ip, intf.Name) - return ip, nil - } - } - } - return nil, fmt.Errorf("no acceptable interface with global unicast address found on host") -} - -// ChooseHostInterface is a method used fetch an IP for a daemon. -// If there is no routing info file, it will choose a global IP from the system -// interfaces. Otherwise, it will use IPv4 and IPv6 route information to return the -// IP of the interface with a gateway on it (with priority given to IPv4). For a node -// with no internet connection, it returns error. -func ChooseHostInterface() (net.IP, error) { - var nw networkInterfacer = networkInterface{} - if _, err := os.Stat(ipv4RouteFile); os.IsNotExist(err) { - return chooseIPFromHostInterfaces(nw) - } - routes, err := getAllDefaultRoutes() - if err != nil { - return nil, err - } - return chooseHostInterfaceFromRoute(routes, nw) -} - -// networkInterfacer defines an interface for several net library functions. Production -// code will forward to net library functions, and unit tests will override the methods -// for testing purposes. -type networkInterfacer interface { - InterfaceByName(intfName string) (*net.Interface, error) - Addrs(intf *net.Interface) ([]net.Addr, error) - Interfaces() ([]net.Interface, error) -} - -// networkInterface implements the networkInterfacer interface for production code, just -// wrapping the underlying net library function calls. -type networkInterface struct{} - -func (_ networkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return net.InterfaceByName(intfName) -} - -func (_ networkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - return intf.Addrs() -} - -func (_ networkInterface) Interfaces() ([]net.Interface, error) { - return net.Interfaces() -} - -// getAllDefaultRoutes obtains IPv4 and IPv6 default routes on the node. If unable -// to read the IPv4 routing info file, we return an error. If unable to read the IPv6 -// routing info file (which is optional), we'll just use the IPv4 route information. -// Using all the routing info, if no default routes are found, an error is returned. -func getAllDefaultRoutes() ([]Route, error) { - routes, err := v4File.extract() - if err != nil { - return nil, err - } - v6Routes, _ := v6File.extract() - routes = append(routes, v6Routes...) - if len(routes) == 0 { - return nil, noRoutesError{ - message: fmt.Sprintf("no default routes found in %q or %q", v4File.name, v6File.name), - } - } - return routes, nil -} - -// chooseHostInterfaceFromRoute cycles through each default route provided, looking for a -// global IP address from the interface for the route. Will first look all each IPv4 route for -// an IPv4 IP, and then will look at each IPv6 route for an IPv6 IP. -func chooseHostInterfaceFromRoute(routes []Route, nw networkInterfacer) (net.IP, error) { - for _, family := range []AddressFamily{familyIPv4, familyIPv6} { - klog.V(4).Infof("Looking for default routes with IPv%d addresses", uint(family)) - for _, route := range routes { - if route.Family != family { - continue - } - klog.V(4).Infof("Default route transits interface %q", route.Interface) - finalIP, err := getIPFromInterface(route.Interface, family, nw) - if err != nil { - return nil, err - } - if finalIP != nil { - klog.V(4).Infof("Found active IP %v ", finalIP) - return finalIP, nil - } - } - } - klog.V(4).Infof("No active IP found by looking at default routes") - return nil, fmt.Errorf("unable to select an IP from default routes.") -} - -// If bind-address is usable, return it directly -// If bind-address is not usable (unset, 0.0.0.0, or loopback), we will use the host's default -// interface. -func ChooseBindAddress(bindAddress net.IP) (net.IP, error) { - if bindAddress == nil || bindAddress.IsUnspecified() || bindAddress.IsLoopback() { - hostIP, err := ChooseHostInterface() - if err != nil { - return nil, err - } - bindAddress = hostIP - } - return bindAddress, nil -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/interface_test.go b/pseudo/k8s/apimachinery/pkg/util/net/interface_test.go deleted file mode 100644 index d652f479d..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/interface_test.go +++ /dev/null @@ -1,725 +0,0 @@ -/* -Copyright 2014 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 net - -import ( - "fmt" - "io/ioutil" - "net" - "os" - "strings" - "testing" -) - -const gatewayfirst = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -eth3 00000000 0100FE0A 0003 0 0 1024 00000000 0 0 0 -eth3 0000FE0A 00000000 0001 0 0 0 0080FFFF 0 0 0 -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -` -const gatewaylast = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -eth3 0000FE0A 00000000 0001 0 0 0 0080FFFF 0 0 0 -eth3 00000000 0100FE0A 0003 0 0 1024 00000000 0 0 0 -` -const gatewaymiddle = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -eth3 0000FE0A 00000000 0001 0 0 0 0080FFFF 0 0 0 -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -eth3 00000000 0100FE0A 0003 0 0 1024 00000000 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -` -const noInternetConnection = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -` -const nothing = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -` -const badDestination = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -eth3 00000000 0100FE0A 0003 0 0 1024 00000000 0 0 0 -eth3 0000FE0AA1 00000000 0001 0 0 0 0080FFFF 0 0 0 -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -` -const badGateway = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -eth3 00000000 0100FE0AA1 0003 0 0 1024 00000000 0 0 0 -eth3 0000FE0A 00000000 0001 0 0 0 0080FFFF 0 0 0 -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -` -const route_Invalidhex = `Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT -eth3 00000000 0100FE0AA 0003 0 0 1024 00000000 0 0 0 -eth3 0000FE0A 00000000 0001 0 0 0 0080FFFF 0 0 0 -docker0 000011AC 00000000 0001 0 0 0 0000FFFF 0 0 0 -virbr0 007AA8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0 -` - -const v6gatewayfirst = `00000000000000000000000000000000 00 00000000000000000000000000000000 00 20010001000000000000000000000001 00000064 00000000 00000000 00000003 eth3 -20010002000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000000 00000000 00000001 eth3 -00000000000000000000000000000000 60 00000000000000000000000000000000 00 00000000000000000000000000000000 00000400 00000000 00000000 00200200 lo -` -const v6gatewaylast = `20010002000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000000 00000000 00000001 eth3 -00000000000000000000000000000000 60 00000000000000000000000000000000 00 00000000000000000000000000000000 00000400 00000000 00000000 00200200 lo -00000000000000000000000000000000 00 00000000000000000000000000000000 00 20010001000000000000000000000001 00000064 00000000 00000000 00000003 eth3 -` -const v6gatewaymiddle = `20010002000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000000 00000000 00000001 eth3 -00000000000000000000000000000000 00 00000000000000000000000000000000 00 20010001000000000000000000000001 00000064 00000000 00000000 00000003 eth3 -00000000000000000000000000000000 60 00000000000000000000000000000000 00 00000000000000000000000000000000 00000400 00000000 00000000 00200200 lo -` -const v6noDefaultRoutes = `00000000000000000000000000000000 60 00000000000000000000000000000000 00 00000000000000000000000000000000 00000400 00000000 00000000 00200200 lo -20010001000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000400 00000000 00000000 00000001 docker0 -20010002000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000000 00000000 00000001 eth3 -fe800000000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000000 00000000 00000001 eth3 -` -const v6nothing = `` -const v6badDestination = `2001000200000000 7a 00000000000000000000000000000000 00 00000000000000000000000000000000 00000400 00000000 00000000 00200200 lo -` -const v6badGateway = `00000000000000000000000000000000 00 00000000000000000000000000000000 00 200100010000000000000000000000000012 00000064 00000000 00000000 00000003 eth3 -` -const v6route_Invalidhex = `000000000000000000000000000000000 00 00000000000000000000000000000000 00 fe80000000000000021fcafffea0ec00 00000064 00000000 00000000 00000003 enp1s0f0 - -` - -const ( - flagUp = net.FlagUp | net.FlagBroadcast | net.FlagMulticast - flagDown = net.FlagBroadcast | net.FlagMulticast - flagLoopback = net.FlagUp | net.FlagLoopback - flagP2P = net.FlagUp | net.FlagPointToPoint -) - -func makeIntf(index int, name string, flags net.Flags) net.Interface { - mac := net.HardwareAddr{0, 0x32, 0x7d, 0x69, 0xf7, byte(0x30 + index)} - return net.Interface{ - Index: index, - MTU: 1500, - Name: name, - HardwareAddr: mac, - Flags: flags} -} - -var ( - downIntf = makeIntf(1, "eth3", flagDown) - loopbackIntf = makeIntf(1, "lo", flagLoopback) - p2pIntf = makeIntf(1, "lo", flagP2P) - upIntf = makeIntf(1, "eth3", flagUp) -) - -var ( - ipv4Route = Route{Interface: "eth3", Destination: net.ParseIP("0.0.0.0"), Gateway: net.ParseIP("10.254.0.1"), Family: familyIPv4} - ipv6Route = Route{Interface: "eth3", Destination: net.ParseIP("::"), Gateway: net.ParseIP("2001:1::1"), Family: familyIPv6} -) - -var ( - noRoutes = []Route{} - routeV4 = []Route{ipv4Route} - routeV6 = []Route{ipv6Route} - bothRoutes = []Route{ipv4Route, ipv6Route} -) - -func TestGetIPv4Routes(t *testing.T) { - testCases := []struct { - tcase string - route string - count int - expected *Route - errStrFrag string - }{ - {"gatewayfirst", gatewayfirst, 1, &ipv4Route, ""}, - {"gatewaymiddle", gatewaymiddle, 1, &ipv4Route, ""}, - {"gatewaylast", gatewaylast, 1, &ipv4Route, ""}, - {"no routes", nothing, 0, nil, ""}, - {"badDestination", badDestination, 0, nil, "invalid IPv4"}, - {"badGateway", badGateway, 0, nil, "invalid IPv4"}, - {"route_Invalidhex", route_Invalidhex, 0, nil, "odd length hex string"}, - {"no default routes", noInternetConnection, 0, nil, ""}, - } - for _, tc := range testCases { - r := strings.NewReader(tc.route) - routes, err := getIPv4DefaultRoutes(r) - if err != nil { - if !strings.Contains(err.Error(), tc.errStrFrag) { - t.Errorf("case[%s]: Error string %q does not contain %q", tc.tcase, err, tc.errStrFrag) - } - } else if tc.errStrFrag != "" { - t.Errorf("case[%s]: Error %q expected, but not seen", tc.tcase, tc.errStrFrag) - } else { - if tc.count != len(routes) { - t.Errorf("case[%s]: expected %d routes, have %v", tc.tcase, tc.count, routes) - } else if tc.count == 1 { - if !tc.expected.Gateway.Equal(routes[0].Gateway) { - t.Errorf("case[%s]: expected %v, got %v .err : %v", tc.tcase, tc.expected, routes, err) - } - if !routes[0].Destination.Equal(net.IPv4zero) { - t.Errorf("case[%s}: destination is not for default route (not zero)", tc.tcase) - } - - } - } - } -} - -func TestGetIPv6Routes(t *testing.T) { - testCases := []struct { - tcase string - route string - count int - expected *Route - errStrFrag string - }{ - {"v6 gatewayfirst", v6gatewayfirst, 1, &ipv6Route, ""}, - {"v6 gatewaymiddle", v6gatewaymiddle, 1, &ipv6Route, ""}, - {"v6 gatewaylast", v6gatewaylast, 1, &ipv6Route, ""}, - {"v6 no routes", v6nothing, 0, nil, ""}, - {"v6 badDestination", v6badDestination, 0, nil, "invalid IPv6"}, - {"v6 badGateway", v6badGateway, 0, nil, "invalid IPv6"}, - {"v6 route_Invalidhex", v6route_Invalidhex, 0, nil, "odd length hex string"}, - {"v6 no default routes", v6noDefaultRoutes, 0, nil, ""}, - } - for _, tc := range testCases { - r := strings.NewReader(tc.route) - routes, err := getIPv6DefaultRoutes(r) - if err != nil { - if !strings.Contains(err.Error(), tc.errStrFrag) { - t.Errorf("case[%s]: Error string %q does not contain %q", tc.tcase, err, tc.errStrFrag) - } - } else if tc.errStrFrag != "" { - t.Errorf("case[%s]: Error %q expected, but not seen", tc.tcase, tc.errStrFrag) - } else { - if tc.count != len(routes) { - t.Errorf("case[%s]: expected %d routes, have %v", tc.tcase, tc.count, routes) - } else if tc.count == 1 { - if !tc.expected.Gateway.Equal(routes[0].Gateway) { - t.Errorf("case[%s]: expected %v, got %v .err : %v", tc.tcase, tc.expected, routes, err) - } - if !routes[0].Destination.Equal(net.IPv6zero) { - t.Errorf("case[%s}: destination is not for default route (not zero)", tc.tcase) - } - } - } - } -} - -func TestParseIP(t *testing.T) { - testCases := []struct { - tcase string - ip string - family AddressFamily - success bool - expected net.IP - }{ - {"empty", "", familyIPv4, false, nil}, - {"too short", "AA", familyIPv4, false, nil}, - {"too long", "0011223344", familyIPv4, false, nil}, - {"invalid", "invalid!", familyIPv4, false, nil}, - {"zero", "00000000", familyIPv4, true, net.IP{0, 0, 0, 0}}, - {"ffff", "FFFFFFFF", familyIPv4, true, net.IP{0xff, 0xff, 0xff, 0xff}}, - {"valid v4", "12345678", familyIPv4, true, net.IP{120, 86, 52, 18}}, - {"valid v6", "fe800000000000000000000000000000", familyIPv6, true, net.IP{0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, - {"v6 too short", "fe80000000000000021fcafffea0ec0", familyIPv6, false, nil}, - {"v6 too long", "fe80000000000000021fcafffea0ec002", familyIPv6, false, nil}, - } - for _, tc := range testCases { - ip, err := parseIP(tc.ip, tc.family) - if !ip.Equal(tc.expected) { - t.Errorf("case[%v]: expected %q, got %q . err : %v", tc.tcase, tc.expected, ip, err) - } - } -} - -func TestIsInterfaceUp(t *testing.T) { - testCases := []struct { - tcase string - intf *net.Interface - expected bool - }{ - {"up", &net.Interface{Index: 0, MTU: 0, Name: "eth3", HardwareAddr: nil, Flags: net.FlagUp}, true}, - {"down", &net.Interface{Index: 0, MTU: 0, Name: "eth3", HardwareAddr: nil, Flags: 0}, false}, - {"no interface", nil, false}, - } - for _, tc := range testCases { - it := isInterfaceUp(tc.intf) - if it != tc.expected { - t.Errorf("case[%v]: expected %v, got %v .", tc.tcase, tc.expected, it) - } - } -} - -type addrStruct struct{ val string } - -func (a addrStruct) Network() string { - return a.val -} -func (a addrStruct) String() string { - return a.val -} - -func TestFinalIP(t *testing.T) { - testCases := []struct { - tcase string - addr []net.Addr - family AddressFamily - expected net.IP - }{ - {"no ipv4", []net.Addr{addrStruct{val: "2001::5/64"}}, familyIPv4, nil}, - {"no ipv6", []net.Addr{addrStruct{val: "10.128.0.4/32"}}, familyIPv6, nil}, - {"invalidV4CIDR", []net.Addr{addrStruct{val: "10.20.30.40.50/24"}}, familyIPv4, nil}, - {"invalidV6CIDR", []net.Addr{addrStruct{val: "fe80::2f7:67fff:fe6e:2956/64"}}, familyIPv6, nil}, - {"loopback", []net.Addr{addrStruct{val: "127.0.0.1/24"}}, familyIPv4, nil}, - {"loopbackv6", []net.Addr{addrStruct{val: "::1/128"}}, familyIPv6, nil}, - {"link local v4", []net.Addr{addrStruct{val: "169.254.1.10/16"}}, familyIPv4, nil}, - {"link local v6", []net.Addr{addrStruct{val: "fe80::2f7:6fff:fe6e:2956/64"}}, familyIPv6, nil}, - {"ip4", []net.Addr{addrStruct{val: "10.254.12.132/17"}}, familyIPv4, net.ParseIP("10.254.12.132")}, - {"ip6", []net.Addr{addrStruct{val: "2001::5/64"}}, familyIPv6, net.ParseIP("2001::5")}, - - {"no addresses", []net.Addr{}, familyIPv4, nil}, - } - for _, tc := range testCases { - ip, err := getMatchingGlobalIP(tc.addr, tc.family) - if !ip.Equal(tc.expected) { - t.Errorf("case[%v]: expected %v, got %v .err : %v", tc.tcase, tc.expected, ip, err) - } - } -} - -func TestAddrs(t *testing.T) { - var nw networkInterfacer = validNetworkInterface{} - intf := net.Interface{Index: 0, MTU: 0, Name: "eth3", HardwareAddr: nil, Flags: 0} - addrs, err := nw.Addrs(&intf) - if err != nil { - t.Errorf("expected no error got : %v", err) - } - if len(addrs) != 2 { - t.Errorf("expected addrs: 2 got null") - } -} - -// Has a valid IPv4 address (IPv6 is LLA) -type validNetworkInterface struct { -} - -func (_ validNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ validNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{ - addrStruct{val: "fe80::2f7:6fff:fe6e:2956/64"}, addrStruct{val: "10.254.71.145/17"}} - return ifat, nil -} -func (_ validNetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -// Both IPv4 and IPv6 addresses (expecting IPv4 to be used) -type v4v6NetworkInterface struct { -} - -func (_ v4v6NetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ v4v6NetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{ - addrStruct{val: "2001::10/64"}, addrStruct{val: "10.254.71.145/17"}} - return ifat, nil -} -func (_ v4v6NetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -// Interface with only IPv6 address -type ipv6NetworkInterface struct { -} - -func (_ ipv6NetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ ipv6NetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{addrStruct{val: "2001::200/64"}} - return ifat, nil -} - -func (_ ipv6NetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -// Only with link local addresses -type networkInterfaceWithOnlyLinkLocals struct { -} - -func (_ networkInterfaceWithOnlyLinkLocals) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ networkInterfaceWithOnlyLinkLocals) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{addrStruct{val: "169.254.162.166/16"}, addrStruct{val: "fe80::200/10"}} - return ifat, nil -} -func (_ networkInterfaceWithOnlyLinkLocals) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -// Unable to get interface(s) -type failGettingNetworkInterface struct { -} - -func (_ failGettingNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return nil, fmt.Errorf("unable get Interface") -} -func (_ failGettingNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - return nil, nil -} -func (_ failGettingNetworkInterface) Interfaces() ([]net.Interface, error) { - return nil, fmt.Errorf("mock failed getting all interfaces") -} - -// No interfaces -type noNetworkInterface struct { -} - -func (_ noNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return nil, fmt.Errorf("no such network interface") -} -func (_ noNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - return nil, nil -} -func (_ noNetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{}, nil -} - -// Interface is down -type downNetworkInterface struct { -} - -func (_ downNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return &downIntf, nil -} -func (_ downNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{ - addrStruct{val: "fe80::2f7:6fff:fe6e:2956/64"}, addrStruct{val: "10.254.71.145/17"}} - return ifat, nil -} -func (_ downNetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{downIntf}, nil -} - -// Loopback interface -type loopbackNetworkInterface struct { -} - -func (_ loopbackNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return &loopbackIntf, nil -} -func (_ loopbackNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{ - addrStruct{val: "::1/128"}, addrStruct{val: "127.0.0.1/8"}} - return ifat, nil -} -func (_ loopbackNetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{loopbackIntf}, nil -} - -// Point to point interface -type p2pNetworkInterface struct { -} - -func (_ p2pNetworkInterface) InterfaceByName(intfName string) (*net.Interface, error) { - return &p2pIntf, nil -} -func (_ p2pNetworkInterface) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{ - addrStruct{val: "::1/128"}, addrStruct{val: "127.0.0.1/8"}} - return ifat, nil -} -func (_ p2pNetworkInterface) Interfaces() ([]net.Interface, error) { - return []net.Interface{p2pIntf}, nil -} - -// Unable to get IP addresses for interface -type networkInterfaceFailGetAddrs struct { -} - -func (_ networkInterfaceFailGetAddrs) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ networkInterfaceFailGetAddrs) Addrs(intf *net.Interface) ([]net.Addr, error) { - return nil, fmt.Errorf("unable to get Addrs") -} -func (_ networkInterfaceFailGetAddrs) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -// No addresses for interface -type networkInterfaceWithNoAddrs struct { -} - -func (_ networkInterfaceWithNoAddrs) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ networkInterfaceWithNoAddrs) Addrs(intf *net.Interface) ([]net.Addr, error) { - ifat := []net.Addr{} - return ifat, nil -} -func (_ networkInterfaceWithNoAddrs) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -// Invalid addresses for interface -type networkInterfaceWithInvalidAddr struct { -} - -func (_ networkInterfaceWithInvalidAddr) InterfaceByName(intfName string) (*net.Interface, error) { - return &upIntf, nil -} -func (_ networkInterfaceWithInvalidAddr) Addrs(intf *net.Interface) ([]net.Addr, error) { - var ifat []net.Addr - ifat = []net.Addr{addrStruct{val: "10.20.30.40.50/24"}} - return ifat, nil -} -func (_ networkInterfaceWithInvalidAddr) Interfaces() ([]net.Interface, error) { - return []net.Interface{upIntf}, nil -} - -func TestGetIPFromInterface(t *testing.T) { - testCases := []struct { - tcase string - nwname string - family AddressFamily - nw networkInterfacer - expected net.IP - errStrFrag string - }{ - {"ipv4", "eth3", familyIPv4, validNetworkInterface{}, net.ParseIP("10.254.71.145"), ""}, - {"ipv6", "eth3", familyIPv6, ipv6NetworkInterface{}, net.ParseIP("2001::200"), ""}, - {"no ipv4", "eth3", familyIPv4, ipv6NetworkInterface{}, nil, ""}, - {"no ipv6", "eth3", familyIPv6, validNetworkInterface{}, nil, ""}, - {"I/F down", "eth3", familyIPv4, downNetworkInterface{}, nil, ""}, - {"I/F get fail", "eth3", familyIPv4, noNetworkInterface{}, nil, "no such network interface"}, - {"fail get addr", "eth3", familyIPv4, networkInterfaceFailGetAddrs{}, nil, "unable to get Addrs"}, - {"bad addr", "eth3", familyIPv4, networkInterfaceWithInvalidAddr{}, nil, "invalid CIDR"}, - } - for _, tc := range testCases { - ip, err := getIPFromInterface(tc.nwname, tc.family, tc.nw) - if err != nil { - if !strings.Contains(err.Error(), tc.errStrFrag) { - t.Errorf("case[%s]: Error string %q does not contain %q", tc.tcase, err, tc.errStrFrag) - } - } else if tc.errStrFrag != "" { - t.Errorf("case[%s]: Error %q expected, but not seen", tc.tcase, tc.errStrFrag) - } else if !ip.Equal(tc.expected) { - t.Errorf("case[%v]: expected %v, got %+v .err : %v", tc.tcase, tc.expected, ip, err) - } - } -} - -func TestChooseHostInterfaceFromRoute(t *testing.T) { - testCases := []struct { - tcase string - routes []Route - nw networkInterfacer - expected net.IP - }{ - {"ipv4", routeV4, validNetworkInterface{}, net.ParseIP("10.254.71.145")}, - {"ipv6", routeV6, ipv6NetworkInterface{}, net.ParseIP("2001::200")}, - {"prefer ipv4", bothRoutes, v4v6NetworkInterface{}, net.ParseIP("10.254.71.145")}, - {"all LLA", routeV4, networkInterfaceWithOnlyLinkLocals{}, nil}, - {"no routes", noRoutes, validNetworkInterface{}, nil}, - {"fail get IP", routeV4, networkInterfaceFailGetAddrs{}, nil}, - } - for _, tc := range testCases { - ip, err := chooseHostInterfaceFromRoute(tc.routes, tc.nw) - if !ip.Equal(tc.expected) { - t.Errorf("case[%v]: expected %v, got %+v .err : %v", tc.tcase, tc.expected, ip, err) - } - } -} - -func TestMemberOf(t *testing.T) { - testCases := []struct { - tcase string - ip net.IP - family AddressFamily - expected bool - }{ - {"ipv4 is 4", net.ParseIP("10.20.30.40"), familyIPv4, true}, - {"ipv4 is 6", net.ParseIP("10.10.10.10"), familyIPv6, false}, - {"ipv6 is 4", net.ParseIP("2001::100"), familyIPv4, false}, - {"ipv6 is 6", net.ParseIP("2001::100"), familyIPv6, true}, - } - for _, tc := range testCases { - if memberOf(tc.ip, tc.family) != tc.expected { - t.Errorf("case[%s]: expected %+v", tc.tcase, tc.expected) - } - } -} - -func TestGetIPFromHostInterfaces(t *testing.T) { - testCases := []struct { - tcase string - nw networkInterfacer - expected net.IP - errStrFrag string - }{ - {"fail get I/Fs", failGettingNetworkInterface{}, nil, "failed getting all interfaces"}, - {"no interfaces", noNetworkInterface{}, nil, "no interfaces"}, - {"I/F not up", downNetworkInterface{}, nil, "no acceptable"}, - {"loopback only", loopbackNetworkInterface{}, nil, "no acceptable"}, - {"P2P I/F only", p2pNetworkInterface{}, nil, "no acceptable"}, - {"fail get addrs", networkInterfaceFailGetAddrs{}, nil, "unable to get Addrs"}, - {"no addresses", networkInterfaceWithNoAddrs{}, nil, "no acceptable"}, - {"invalid addr", networkInterfaceWithInvalidAddr{}, nil, "invalid CIDR"}, - {"no matches", networkInterfaceWithOnlyLinkLocals{}, nil, "no acceptable"}, - {"ipv4", validNetworkInterface{}, net.ParseIP("10.254.71.145"), ""}, - {"ipv6", ipv6NetworkInterface{}, net.ParseIP("2001::200"), ""}, - } - - for _, tc := range testCases { - ip, err := chooseIPFromHostInterfaces(tc.nw) - if !ip.Equal(tc.expected) { - t.Errorf("case[%s]: expected %+v, got %+v with err : %v", tc.tcase, tc.expected, ip, err) - } - if err != nil && !strings.Contains(err.Error(), tc.errStrFrag) { - t.Errorf("case[%s]: unable to find %q in error string %q", tc.tcase, tc.errStrFrag, err.Error()) - } - } -} - -func makeRouteFile(content string, t *testing.T) (*os.File, error) { - routeFile, err := ioutil.TempFile("", "route") - if err != nil { - return nil, err - } - - if _, err := routeFile.Write([]byte(content)); err != nil { - return routeFile, err - } - err = routeFile.Close() - return routeFile, err -} - -func TestFailGettingIPv4Routes(t *testing.T) { - defer func() { v4File.name = ipv4RouteFile }() - - // Try failure to open file (should not occur, as caller ensures we have IPv4 route file, but being thorough) - v4File.name = "no-such-file" - errStrFrag := "no such file" - _, err := v4File.extract() - if err == nil { - t.Errorf("Expected error trying to read non-existent v4 route file") - } - if !strings.Contains(err.Error(), errStrFrag) { - t.Errorf("Unable to find %q in error string %q", errStrFrag, err.Error()) - } -} - -func TestFailGettingIPv6Routes(t *testing.T) { - defer func() { v6File.name = ipv6RouteFile }() - - // Try failure to open file (this would be ignored by caller) - v6File.name = "no-such-file" - errStrFrag := "no such file" - _, err := v6File.extract() - if err == nil { - t.Errorf("Expected error trying to read non-existent v6 route file") - } - if !strings.Contains(err.Error(), errStrFrag) { - t.Errorf("Unable to find %q in error string %q", errStrFrag, err.Error()) - } -} - -func TestGetAllDefaultRoutesFailNoV4RouteFile(t *testing.T) { - defer func() { v4File.name = ipv4RouteFile }() - - // Should not occur, as caller ensures we have IPv4 route file, but being thorough - v4File.name = "no-such-file" - errStrFrag := "no such file" - _, err := getAllDefaultRoutes() - if err == nil { - t.Errorf("Expected error trying to read non-existent v4 route file") - } - if !strings.Contains(err.Error(), errStrFrag) { - t.Errorf("Unable to find %q in error string %q", errStrFrag, err.Error()) - } -} - -func TestGetAllDefaultRoutes(t *testing.T) { - testCases := []struct { - tcase string - v4Info string - v6Info string - count int - expected []Route - errStrFrag string - }{ - {"no routes", noInternetConnection, v6noDefaultRoutes, 0, nil, "no default routes"}, - {"only v4 route", gatewayfirst, v6noDefaultRoutes, 1, routeV4, ""}, - {"only v6 route", noInternetConnection, v6gatewayfirst, 1, routeV6, ""}, - {"v4 and v6 routes", gatewayfirst, v6gatewayfirst, 2, bothRoutes, ""}, - } - defer func() { - v4File.name = ipv4RouteFile - v6File.name = ipv6RouteFile - }() - - for _, tc := range testCases { - routeFile, err := makeRouteFile(tc.v4Info, t) - if routeFile != nil { - defer os.Remove(routeFile.Name()) - } - if err != nil { - t.Errorf("case[%s]: test setup failure for IPv4 route file: %v", tc.tcase, err) - } - v4File.name = routeFile.Name() - v6routeFile, err := makeRouteFile(tc.v6Info, t) - if v6routeFile != nil { - defer os.Remove(v6routeFile.Name()) - } - if err != nil { - t.Errorf("case[%s]: test setup failure for IPv6 route file: %v", tc.tcase, err) - } - v6File.name = v6routeFile.Name() - - routes, err := getAllDefaultRoutes() - if err != nil { - if !strings.Contains(err.Error(), tc.errStrFrag) { - t.Errorf("case[%s]: Error string %q does not contain %q", tc.tcase, err, tc.errStrFrag) - } - } else if tc.errStrFrag != "" { - t.Errorf("case[%s]: Error %q expected, but not seen", tc.tcase, tc.errStrFrag) - } else { - if tc.count != len(routes) { - t.Errorf("case[%s]: expected %d routes, have %v", tc.tcase, tc.count, routes) - } - for i, expected := range tc.expected { - if !expected.Gateway.Equal(routes[i].Gateway) { - t.Errorf("case[%s]: at %d expected %v, got %v .err : %v", tc.tcase, i, tc.expected, routes, err) - } - zeroIP := net.IPv4zero - if expected.Family == familyIPv6 { - zeroIP = net.IPv6zero - } - if !routes[i].Destination.Equal(zeroIP) { - t.Errorf("case[%s}: at %d destination is not for default route (not %v)", tc.tcase, i, zeroIP) - } - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/port_range.go b/pseudo/k8s/apimachinery/pkg/util/net/port_range.go deleted file mode 100644 index 7b6eca893..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/port_range.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -Copyright 2015 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 net - -import ( - "fmt" - "strconv" - "strings" -) - -// PortRange represents a range of TCP/UDP ports. To represent a single port, -// set Size to 1. -type PortRange struct { - Base int - Size int -} - -// Contains tests whether a given port falls within the PortRange. -func (pr *PortRange) Contains(p int) bool { - return (p >= pr.Base) && ((p - pr.Base) < pr.Size) -} - -// String converts the PortRange to a string representation, which can be -// parsed by PortRange.Set or ParsePortRange. -func (pr PortRange) String() string { - if pr.Size == 0 { - return "" - } - return fmt.Sprintf("%d-%d", pr.Base, pr.Base+pr.Size-1) -} - -// Set parses a string of the form "value", "min-max", or "min+offset", inclusive at both ends, and -// sets the PortRange from it. This is part of the flag.Value and pflag.Value -// interfaces. -func (pr *PortRange) Set(value string) error { - const ( - SinglePortNotation = 1 << iota - HyphenNotation - PlusNotation - ) - - value = strings.TrimSpace(value) - hyphenIndex := strings.Index(value, "-") - plusIndex := strings.Index(value, "+") - - if value == "" { - pr.Base = 0 - pr.Size = 0 - return nil - } - - var err error - var low, high int - var notation int - - if plusIndex == -1 && hyphenIndex == -1 { - notation |= SinglePortNotation - } - if hyphenIndex != -1 { - notation |= HyphenNotation - } - if plusIndex != -1 { - notation |= PlusNotation - } - - switch notation { - case SinglePortNotation: - var port int - port, err = strconv.Atoi(value) - if err != nil { - return err - } - low = port - high = port - case HyphenNotation: - low, err = strconv.Atoi(value[:hyphenIndex]) - if err != nil { - return err - } - high, err = strconv.Atoi(value[hyphenIndex+1:]) - if err != nil { - return err - } - case PlusNotation: - var offset int - low, err = strconv.Atoi(value[:plusIndex]) - if err != nil { - return err - } - offset, err = strconv.Atoi(value[plusIndex+1:]) - if err != nil { - return err - } - high = low + offset - default: - return fmt.Errorf("unable to parse port range: %s", value) - } - - if low > 65535 || high > 65535 { - return fmt.Errorf("the port range cannot be greater than 65535: %s", value) - } - - if high < low { - return fmt.Errorf("end port cannot be less than start port: %s", value) - } - - pr.Base = low - pr.Size = 1 + high - low - return nil -} - -// Type returns a descriptive string about this type. This is part of the -// pflag.Value interface. -func (*PortRange) Type() string { - return "portRange" -} - -// ParsePortRange parses a string of the form "min-max", inclusive at both -// ends, and initializs a new PortRange from it. -func ParsePortRange(value string) (*PortRange, error) { - pr := &PortRange{} - err := pr.Set(value) - if err != nil { - return nil, err - } - return pr, nil -} - -func ParsePortRangeOrDie(value string) *PortRange { - pr, err := ParsePortRange(value) - if err != nil { - panic(fmt.Sprintf("couldn't parse port range %q: %v", value, err)) - } - return pr -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/port_range_test.go b/pseudo/k8s/apimachinery/pkg/util/net/port_range_test.go deleted file mode 100644 index b4cbe8245..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/port_range_test.go +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 2015 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 net - -import ( - "testing" - - flag "github.com/spf13/pflag" -) - -func TestPortRange(t *testing.T) { - testCases := []struct { - input string - success bool - expected string - included int - excluded int - }{ - {"100-200", true, "100-200", 200, 201}, - {" 100-200 ", true, "100-200", 200, 201}, - {"0-0", true, "0-0", 0, 1}, - {"", true, "", -1, 0}, - {"100", true, "100-100", 100, 101}, - {"100 - 200", false, "", -1, -1}, - {"-100", false, "", -1, -1}, - {"100-", false, "", -1, -1}, - {"200-100", false, "", -1, -1}, - {"60000-70000", false, "", -1, -1}, - {"70000-80000", false, "", -1, -1}, - {"70000+80000", false, "", -1, -1}, - {"1+0", true, "1-1", 1, 2}, - {"0+0", true, "0-0", 0, 1}, - {"1+-1", false, "", -1, -1}, - {"1-+1", false, "", -1, -1}, - {"100+200", true, "100-300", 300, 301}, - {"1+65535", false, "", -1, -1}, - {"0+65535", true, "0-65535", 65535, 65536}, - } - - for i := range testCases { - tc := &testCases[i] - pr := &PortRange{} - var f flag.Value = pr - err := f.Set(tc.input) - if err != nil && tc.success == true { - t.Errorf("expected success, got %q", err) - continue - } else if err == nil && tc.success == false { - t.Errorf("expected failure %#v", testCases[i]) - continue - } else if tc.success { - if f.String() != tc.expected { - t.Errorf("expected %q, got %q", tc.expected, f.String()) - } - if tc.included >= 0 && !pr.Contains(tc.included) { - t.Errorf("expected %q to include %d", f.String(), tc.included) - } - if tc.excluded >= 0 && pr.Contains(tc.excluded) { - t.Errorf("expected %q to exclude %d", f.String(), tc.excluded) - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/port_split.go b/pseudo/k8s/apimachinery/pkg/util/net/port_split.go deleted file mode 100644 index b5acb18f6..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/port_split.go +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 2015 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 net - -import ( - "strings" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -var validSchemes = sets.NewString("http", "https", "") - -// SplitSchemeNamePort takes a string of the following forms: -// * "", returns "", "","", true -// * ":", returns "", "","",true -// * "::", returns "","","",true -// -// Name must be non-empty or valid will be returned false. -// Scheme must be "http" or "https" if specified -// Port is returned as a string, and it is not required to be numeric (could be -// used for a named port, for example). -func SplitSchemeNamePort(id string) (scheme, name, port string, valid bool) { - parts := strings.Split(id, ":") - switch len(parts) { - case 1: - name = parts[0] - case 2: - name = parts[0] - port = parts[1] - case 3: - scheme = parts[0] - name = parts[1] - port = parts[2] - default: - return "", "", "", false - } - - if len(name) > 0 && validSchemes.Has(scheme) { - return scheme, name, port, true - } else { - return "", "", "", false - } -} - -// JoinSchemeNamePort returns a string that specifies the scheme, name, and port: -// * "" -// * ":" -// * "::" -// None of the parameters may contain a ':' character -// Name is required -// Scheme must be "", "http", or "https" -func JoinSchemeNamePort(scheme, name, port string) string { - if len(scheme) > 0 { - // Must include three segments to specify scheme - return scheme + ":" + name + ":" + port - } - if len(port) > 0 { - // Must include two segments to specify port - return name + ":" + port - } - // Return name alone - return name -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/port_split_test.go b/pseudo/k8s/apimachinery/pkg/util/net/port_split_test.go deleted file mode 100644 index e801bdbea..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/port_split_test.go +++ /dev/null @@ -1,121 +0,0 @@ -/* -Copyright 2015 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 net - -import ( - "testing" -) - -func TestSplitSchemeNamePort(t *testing.T) { - table := []struct { - in string - name, port, scheme string - valid bool - normalized bool - }{ - { - in: "aoeu:asdf", - name: "aoeu", - port: "asdf", - valid: true, - normalized: true, - }, { - in: "http:aoeu:asdf", - scheme: "http", - name: "aoeu", - port: "asdf", - valid: true, - normalized: true, - }, { - in: "https:aoeu:", - scheme: "https", - name: "aoeu", - port: "", - valid: true, - normalized: false, - }, { - in: "https:aoeu:asdf", - scheme: "https", - name: "aoeu", - port: "asdf", - valid: true, - normalized: true, - }, { - in: "aoeu:", - name: "aoeu", - valid: true, - normalized: false, - }, { - in: "aoeu", - name: "aoeu", - valid: true, - normalized: true, - }, { - in: ":asdf", - valid: false, - }, { - in: "aoeu:asdf:htns", - valid: false, - }, { - in: "http::asdf", - valid: false, - }, { - in: "http::", - valid: false, - }, { - in: "", - valid: false, - }, - } - - for _, item := range table { - scheme, name, port, valid := SplitSchemeNamePort(item.in) - if e, a := item.scheme, scheme; e != a { - t.Errorf("%q: Wanted %q, got %q", item.in, e, a) - } - if e, a := item.name, name; e != a { - t.Errorf("%q: Wanted %q, got %q", item.in, e, a) - } - if e, a := item.port, port; e != a { - t.Errorf("%q: Wanted %q, got %q", item.in, e, a) - } - if e, a := item.valid, valid; e != a { - t.Errorf("%q: Wanted %t, got %t", item.in, e, a) - } - - // Make sure valid items round trip through JoinSchemeNamePort - if item.valid { - out := JoinSchemeNamePort(scheme, name, port) - if item.normalized && out != item.in { - t.Errorf("%q: Wanted %s, got %s", item.in, item.in, out) - } - scheme, name, port, valid := SplitSchemeNamePort(out) - if e, a := item.scheme, scheme; e != a { - t.Errorf("%q: Wanted %q, got %q", item.in, e, a) - } - if e, a := item.name, name; e != a { - t.Errorf("%q: Wanted %q, got %q", item.in, e, a) - } - if e, a := item.port, port; e != a { - t.Errorf("%q: Wanted %q, got %q", item.in, e, a) - } - if e, a := item.valid, valid; e != a { - t.Errorf("%q: Wanted %t, got %t", item.in, e, a) - } - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/util.go b/pseudo/k8s/apimachinery/pkg/util/net/util.go deleted file mode 100644 index 2e7cb9499..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/util.go +++ /dev/null @@ -1,73 +0,0 @@ -/* -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 net - -import ( - "net" - "net/url" - "os" - "reflect" - "syscall" -) - -// IPNetEqual checks if the two input IPNets are representing the same subnet. -// For example, -// 10.0.0.1/24 and 10.0.0.0/24 are the same subnet. -// 10.0.0.1/24 and 10.0.0.0/25 are not the same subnet. -func IPNetEqual(ipnet1, ipnet2 *net.IPNet) bool { - if ipnet1 == nil || ipnet2 == nil { - return false - } - if reflect.DeepEqual(ipnet1.Mask, ipnet2.Mask) && ipnet1.Contains(ipnet2.IP) && ipnet2.Contains(ipnet1.IP) { - return true - } - return false -} - -// Returns if the given err is "connection reset by peer" error. -func IsConnectionReset(err error) bool { - if urlErr, ok := err.(*url.Error); ok { - err = urlErr.Err - } - if opErr, ok := err.(*net.OpError); ok { - err = opErr.Err - } - if osErr, ok := err.(*os.SyscallError); ok { - err = osErr.Err - } - if errno, ok := err.(syscall.Errno); ok && errno == syscall.ECONNRESET { - return true - } - return false -} - -// Returns if the given err is "connection refused" error -func IsConnectionRefused(err error) bool { - if urlErr, ok := err.(*url.Error); ok { - err = urlErr.Err - } - if opErr, ok := err.(*net.OpError); ok { - err = opErr.Err - } - if osErr, ok := err.(*os.SyscallError); ok { - err = osErr.Err - } - if errno, ok := err.(syscall.Errno); ok && errno == syscall.ECONNREFUSED { - return true - } - return false -} diff --git a/pseudo/k8s/apimachinery/pkg/util/net/util_test.go b/pseudo/k8s/apimachinery/pkg/util/net/util_test.go deleted file mode 100644 index 33fa351e1..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/net/util_test.go +++ /dev/null @@ -1,96 +0,0 @@ -/* -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 net - -import ( - "net" - "net/url" - "os" - "syscall" - "testing" -) - -func getIPNet(cidr string) *net.IPNet { - _, ipnet, _ := net.ParseCIDR(cidr) - return ipnet -} - -func TestIPNetEqual(t *testing.T) { - testCases := []struct { - ipnet1 *net.IPNet - ipnet2 *net.IPNet - expect bool - }{ - //null case - { - getIPNet("10.0.0.1/24"), - getIPNet(""), - false, - }, - { - getIPNet("10.0.0.0/24"), - getIPNet("10.0.0.0/24"), - true, - }, - { - getIPNet("10.0.0.0/24"), - getIPNet("10.0.0.1/24"), - true, - }, - { - getIPNet("10.0.0.0/25"), - getIPNet("10.0.0.0/24"), - false, - }, - { - getIPNet("10.0.1.0/24"), - getIPNet("10.0.0.0/24"), - false, - }, - } - - for _, tc := range testCases { - if tc.expect != IPNetEqual(tc.ipnet1, tc.ipnet2) { - t.Errorf("Expect equality of %s and %s be to %v", tc.ipnet1.String(), tc.ipnet2.String(), tc.expect) - } - } -} - -func TestIsConnectionRefused(t *testing.T) { - testCases := []struct { - err error - expect bool - }{ - { - &url.Error{Err: &net.OpError{Err: syscall.ECONNRESET}}, - false, - }, - { - &url.Error{Err: &net.OpError{Err: syscall.ECONNREFUSED}}, - true, - }, - {&url.Error{Err: &net.OpError{Err: &os.SyscallError{Err: syscall.ECONNREFUSED}}}, - true, - }, - } - - for _, tc := range testCases { - if result := IsConnectionRefused(tc.err); result != tc.expect { - t.Errorf("Expect to be %v, but actual is %v", tc.expect, result) - } - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/proxy/dial.go b/pseudo/k8s/apimachinery/pkg/util/proxy/dial.go deleted file mode 100644 index 706bdb403..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/proxy/dial.go +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2015 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 proxy - -import ( - "context" - "crypto/tls" - "fmt" - "net" - "net/http" - "net/url" - - "k8s.io/klog" - - utilnet "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/net" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/third_party/forked/golang/netutil" -) - -func DialURL(ctx context.Context, url *url.URL, transport http.RoundTripper) (net.Conn, error) { - dialAddr := netutil.CanonicalAddr(url) - - dialer, err := utilnet.DialerFor(transport) - if err != nil { - klog.V(5).Infof("Unable to unwrap transport %T to get dialer: %v", transport, err) - } - - switch url.Scheme { - case "http": - if dialer != nil { - return dialer(ctx, "tcp", dialAddr) - } - var d net.Dialer - return d.DialContext(ctx, "tcp", dialAddr) - case "https": - // Get the tls config from the transport if we recognize it - var tlsConfig *tls.Config - var tlsConn *tls.Conn - var err error - tlsConfig, err = utilnet.TLSClientConfig(transport) - if err != nil { - klog.V(5).Infof("Unable to unwrap transport %T to get at TLS config: %v", transport, err) - } - - if dialer != nil { - // We have a dialer; use it to open the connection, then - // create a tls client using the connection. - netConn, err := dialer(ctx, "tcp", dialAddr) - if err != nil { - return nil, err - } - if tlsConfig == nil { - // tls.Client requires non-nil config - klog.Warningf("using custom dialer with no TLSClientConfig. Defaulting to InsecureSkipVerify") - // tls.Handshake() requires ServerName or InsecureSkipVerify - tlsConfig = &tls.Config{ - InsecureSkipVerify: true, - } - } else if len(tlsConfig.ServerName) == 0 && !tlsConfig.InsecureSkipVerify { - // tls.Handshake() requires ServerName or InsecureSkipVerify - // infer the ServerName from the hostname we're connecting to. - inferredHost := dialAddr - if host, _, err := net.SplitHostPort(dialAddr); err == nil { - inferredHost = host - } - // Make a copy to avoid polluting the provided config - tlsConfigCopy := tlsConfig.Clone() - tlsConfigCopy.ServerName = inferredHost - tlsConfig = tlsConfigCopy - } - tlsConn = tls.Client(netConn, tlsConfig) - if err := tlsConn.Handshake(); err != nil { - netConn.Close() - return nil, err - } - - } else { - // Dial. This Dial method does not allow to pass a context unfortunately - tlsConn, err = tls.Dial("tcp", dialAddr, tlsConfig) - if err != nil { - return nil, err - } - } - - // Return if we were configured to skip validation - if tlsConfig != nil && tlsConfig.InsecureSkipVerify { - return tlsConn, nil - } - - // Verify - host, _, _ := net.SplitHostPort(dialAddr) - if tlsConfig != nil && len(tlsConfig.ServerName) > 0 { - host = tlsConfig.ServerName - } - if err := tlsConn.VerifyHostname(host); err != nil { - tlsConn.Close() - return nil, err - } - - return tlsConn, nil - default: - return nil, fmt.Errorf("Unknown scheme: %s", url.Scheme) - } -} diff --git a/pseudo/k8s/apimachinery/pkg/util/proxy/dial_test.go b/pseudo/k8s/apimachinery/pkg/util/proxy/dial_test.go deleted file mode 100644 index d68509ca6..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/proxy/dial_test.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -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 proxy - -import ( - "context" - "crypto/tls" - "crypto/x509" - "fmt" - "net" - "net/http" - "net/http/httptest" - "net/url" - "reflect" - "strings" - "testing" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/diff" - utilnet "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/net" -) - -func TestDialURL(t *testing.T) { - roots := x509.NewCertPool() - if !roots.AppendCertsFromPEM(localhostCert) { - t.Fatal("error setting up localhostCert pool") - } - - cert, err := tls.X509KeyPair(localhostCert, localhostKey) - if err != nil { - t.Fatal(err) - } - var d net.Dialer - - testcases := map[string]struct { - TLSConfig *tls.Config - Dial utilnet.DialFunc - ExpectError string - }{ - "insecure": { - TLSConfig: &tls.Config{InsecureSkipVerify: true}, - }, - "secure, no roots": { - TLSConfig: &tls.Config{InsecureSkipVerify: false}, - ExpectError: "unknown authority", - }, - "secure with roots": { - TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots}, - }, - "secure with mismatched server": { - TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "bogus.com"}, - ExpectError: "not bogus.com", - }, - "secure with matched server": { - TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "example.com"}, - }, - - "insecure, custom dial": { - TLSConfig: &tls.Config{InsecureSkipVerify: true}, - Dial: d.DialContext, - }, - "secure, no roots, custom dial": { - TLSConfig: &tls.Config{InsecureSkipVerify: false}, - Dial: d.DialContext, - ExpectError: "unknown authority", - }, - "secure with roots, custom dial": { - TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots}, - Dial: d.DialContext, - }, - "secure with mismatched server, custom dial": { - TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "bogus.com"}, - Dial: d.DialContext, - ExpectError: "not bogus.com", - }, - "secure with matched server, custom dial": { - TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "example.com"}, - Dial: d.DialContext, - }, - } - - for k, tc := range testcases { - func() { - ts := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {})) - defer ts.Close() - ts.TLS = &tls.Config{Certificates: []tls.Certificate{cert}} - ts.StartTLS() - - // Make a copy of the config - tlsConfigCopy := tc.TLSConfig.Clone() - // Clone() mutates the receiver (!), so also call it on the copy - tlsConfigCopy.Clone() - transport := &http.Transport{ - DialContext: tc.Dial, - TLSClientConfig: tlsConfigCopy, - } - - extractedDial, err := utilnet.DialerFor(transport) - if err != nil { - t.Fatal(err) - } - if fmt.Sprintf("%p", extractedDial) != fmt.Sprintf("%p", tc.Dial) { - t.Fatalf("%s: Unexpected dial", k) - } - - extractedTLSConfig, err := utilnet.TLSClientConfig(transport) - if err != nil { - t.Fatal(err) - } - if extractedTLSConfig == nil { - t.Fatalf("%s: Expected tlsConfig", k) - } - - u, _ := url.Parse(ts.URL) - _, p, _ := net.SplitHostPort(u.Host) - u.Host = net.JoinHostPort("127.0.0.1", p) - conn, err := DialURL(context.Background(), u, transport) - - // Make sure dialing doesn't mutate the transport's TLSConfig - if !reflect.DeepEqual(tc.TLSConfig, tlsConfigCopy) { - t.Errorf("%s: transport's copy of TLSConfig was mutated\n%s", k, diff.ObjectReflectDiff(tc.TLSConfig, tlsConfigCopy)) - } - - if err != nil { - if tc.ExpectError == "" { - t.Errorf("%s: expected no error, got %q", k, err.Error()) - } - if !strings.Contains(err.Error(), tc.ExpectError) { - t.Errorf("%s: expected error containing %q, got %q", k, tc.ExpectError, err.Error()) - } - return - } - conn.Close() - if tc.ExpectError != "" { - t.Errorf("%s: expected error %q, got none", k, tc.ExpectError) - } - }() - } - -} - -// localhostCert was generated from crypto/tls/generate_cert.go with the following command: -// go run generate_cert.go --rsa-bits 1024 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h -var localhostCert = []byte(`-----BEGIN CERTIFICATE----- -MIICEzCCAXygAwIBAgIQRWyrLzhq/urpj7m6uPiMgjANBgkqhkiG9w0BAQsFADAS -MRAwDgYDVQQKEwdBY21lIENvMCAXDTcwMDEwMTAwMDAwMFoYDzIwODQwMTI5MTYw -MDAwWjASMRAwDgYDVQQKEwdBY21lIENvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB -iQKBgQDjSYON17r13esbCFoS9l4xTBjqCqw7O4QWuTi7jBJHhU7wJ2TxCHuMO/3L -s8PE700nz5ryfnIu/5P/8wGVYOj27ixAWTNFgAyHW62q5i4uCD2VlOQrCZoEOsw6 -a0hiDsnam63yW1nc/UK96Y3Yvmb7B6t34tAQ2MigoUeYwoKsPwIDAQABo2gwZjAO -BgNVHQ8BAf8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUw -AwEB/zAuBgNVHREEJzAlggtleGFtcGxlLmNvbYcEfwAAAYcQAAAAAAAAAAAAAAAA -AAAAATANBgkqhkiG9w0BAQsFAAOBgQAyyXwM2Up1i7/pLB+crSnH/TJnwhfwSVMZ -vAlDgYkGEb8YLc2K+sYqRRiwLuKivDck1xRH6vx3ENxmoX+SOIWVG8amXmqqFifh -G+i1AqOdHggw/UCu0uog8OZablbKxnbkBYlnnaOpNC492nnniIqm1ztVygKprMu3 -7YCl3ybB5Q== ------END CERTIFICATE-----`) - -// localhostKey is the private key for localhostCert. -var localhostKey = []byte(`-----BEGIN RSA PRIVATE KEY----- -MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAONJg43XuvXd6xsI -WhL2XjFMGOoKrDs7hBa5OLuMEkeFTvAnZPEIe4w7/cuzw8TvTSfPmvJ+ci7/k//z -AZVg6PbuLEBZM0WADIdbrarmLi4IPZWU5CsJmgQ6zDprSGIOydqbrfJbWdz9Qr3p -jdi+ZvsHq3fi0BDYyKChR5jCgqw/AgMBAAECgYEA1qHVWV0fcI7gNebtKHr++A6k -eF8bxdOuKMdAi9r6aA+7O434BKW+Be+g+3wGozJX6gBikhxWN4uid1FDbYzWcJFB -i6RHGnHkxm7DifKIXF+cHUAiQhE1W5nwy5aays8B5Kc9eC+a/m9bpxWGRY00tq6x -+WhWEUF3fPbGOqnktgECQQD3RmqraDbhvMo3CcghB63TQncafTIiNPmJPXK1uZcy -CtGRdb1cF2TJXPO+ukUYQEltG2MP+m7Ds0XL1SsPtGd1AkEA606M/BPdaAs0MZIt -u0eH+9Q3Pxp0UqX7Ro2Q4NDWmj6wcqY1E0zeWR4V8XSwbLoiw7GJdqRrL0GSgHQT -wPjCYwJAbtCV2T8Y6U0r6kJt969zTOvKaIqWvxGyiriJAbuscHa8uE1lkTHCryMC -8QSVFmso/MZ7PJvkq7tZmiFr7NvSSQJATEwCBtJiHhRT7ibZ0TnWa99ZsopfYVUU -bsIEUgElNIpTKDmgSAvKpNbOgqY1dmu8TfvI+MFDR+VZHXGF3jJKxQJAOoMB6VH/ -SDNYVyHKU57OA5F8qgnIr+4OWPLtK3khbplpc4kkdBE5OJTDRKXJr+oSZDDe2elI -wsDf21paAlthnA== ------END RSA PRIVATE KEY-----`) diff --git a/pseudo/k8s/apimachinery/pkg/util/proxy/doc.go b/pseudo/k8s/apimachinery/pkg/util/proxy/doc.go deleted file mode 100644 index 81b05bc44..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/proxy/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2014 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 proxy provides transport and upgrade support for proxies. -package proxy // import "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/proxy" diff --git a/pseudo/k8s/apimachinery/pkg/util/proxy/transport.go b/pseudo/k8s/apimachinery/pkg/util/proxy/transport.go deleted file mode 100644 index 48f91e12e..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/proxy/transport.go +++ /dev/null @@ -1,274 +0,0 @@ -/* -Copyright 2014 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 proxy - -import ( - "bytes" - "compress/flate" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "path" - "strings" - - "golang.org/x/net/html" - "golang.org/x/net/html/atom" - "k8s.io/klog" - - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/net" - "sigs.k8s.io/kustomize/pseudo/k8s/apimachinery/pkg/util/sets" -) - -// atomsToAttrs states which attributes of which tags require URL substitution. -// Sources: http://www.w3.org/TR/REC-html40/index/attributes.html -// http://www.w3.org/html/wg/drafts/html/master/index.html#attributes-1 -var atomsToAttrs = map[atom.Atom]sets.String{ - atom.A: sets.NewString("href"), - atom.Applet: sets.NewString("codebase"), - atom.Area: sets.NewString("href"), - atom.Audio: sets.NewString("src"), - atom.Base: sets.NewString("href"), - atom.Blockquote: sets.NewString("cite"), - atom.Body: sets.NewString("background"), - atom.Button: sets.NewString("formaction"), - atom.Command: sets.NewString("icon"), - atom.Del: sets.NewString("cite"), - atom.Embed: sets.NewString("src"), - atom.Form: sets.NewString("action"), - atom.Frame: sets.NewString("longdesc", "src"), - atom.Head: sets.NewString("profile"), - atom.Html: sets.NewString("manifest"), - atom.Iframe: sets.NewString("longdesc", "src"), - atom.Img: sets.NewString("longdesc", "src", "usemap"), - atom.Input: sets.NewString("src", "usemap", "formaction"), - atom.Ins: sets.NewString("cite"), - atom.Link: sets.NewString("href"), - atom.Object: sets.NewString("classid", "codebase", "data", "usemap"), - atom.Q: sets.NewString("cite"), - atom.Script: sets.NewString("src"), - atom.Source: sets.NewString("src"), - atom.Video: sets.NewString("poster", "src"), - - // TODO: css URLs hidden in style elements. -} - -// Transport is a transport for text/html content that replaces URLs in html -// content with the prefix of the proxy server -type Transport struct { - Scheme string - Host string - PathPrepend string - - http.RoundTripper -} - -// RoundTrip implements the http.RoundTripper interface -func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { - // Add reverse proxy headers. - forwardedURI := path.Join(t.PathPrepend, req.URL.Path) - if strings.HasSuffix(req.URL.Path, "/") { - forwardedURI = forwardedURI + "/" - } - req.Header.Set("X-Forwarded-Uri", forwardedURI) - if len(t.Host) > 0 { - req.Header.Set("X-Forwarded-Host", t.Host) - } - if len(t.Scheme) > 0 { - req.Header.Set("X-Forwarded-Proto", t.Scheme) - } - - rt := t.RoundTripper - if rt == nil { - rt = http.DefaultTransport - } - resp, err := rt.RoundTrip(req) - - if err != nil { - message := fmt.Sprintf("Error trying to reach service: '%v'", err.Error()) - resp = &http.Response{ - Header: http.Header{}, - StatusCode: http.StatusServiceUnavailable, - Body: ioutil.NopCloser(strings.NewReader(message)), - } - resp.Header.Set("Content-Type", "text/plain; charset=utf-8") - resp.Header.Set("X-Content-Type-Options", "nosniff") - return resp, nil - } - - if redirect := resp.Header.Get("Location"); redirect != "" { - resp.Header.Set("Location", t.rewriteURL(redirect, req.URL, req.Host)) - return resp, nil - } - - cType := resp.Header.Get("Content-Type") - cType = strings.TrimSpace(strings.SplitN(cType, ";", 2)[0]) - if cType != "text/html" { - // Do nothing, simply pass through - return resp, nil - } - - return t.rewriteResponse(req, resp) -} - -var _ = net.RoundTripperWrapper(&Transport{}) - -func (rt *Transport) WrappedRoundTripper() http.RoundTripper { - return rt.RoundTripper -} - -// rewriteURL rewrites a single URL to go through the proxy, if the URL refers -// to the same host as sourceURL, which is the page on which the target URL -// occurred, or if the URL matches the sourceRequestHost. If any error occurs (e.g. -// parsing), it returns targetURL. -func (t *Transport) rewriteURL(targetURL string, sourceURL *url.URL, sourceRequestHost string) string { - url, err := url.Parse(targetURL) - if err != nil { - return targetURL - } - - // Example: - // When API server processes a proxy request to a service (e.g. /api/v1/namespace/foo/service/bar/proxy/), - // the sourceURL.Host (i.e. req.URL.Host) is the endpoint IP address of the service. The - // sourceRequestHost (i.e. req.Host) is the Host header that specifies the host on which the - // URL is sought, which can be different from sourceURL.Host. For example, if user sends the - // request through "kubectl proxy" locally (i.e. localhost:8001/api/v1/namespace/foo/service/bar/proxy/), - // sourceRequestHost is "localhost:8001". - // - // If the service's response URL contains non-empty host, and url.Host is equal to either sourceURL.Host - // or sourceRequestHost, we should not consider the returned URL to be a completely different host. - // It's the API server's responsibility to rewrite a same-host-and-absolute-path URL and append the - // necessary URL prefix (i.e. /api/v1/namespace/foo/service/bar/proxy/). - isDifferentHost := url.Host != "" && url.Host != sourceURL.Host && url.Host != sourceRequestHost - isRelative := !strings.HasPrefix(url.Path, "/") - if isDifferentHost || isRelative { - return targetURL - } - - // Do not rewrite scheme and host if the Transport has empty scheme and host - // when targetURL already contains the sourceRequestHost - if !(url.Host == sourceRequestHost && t.Scheme == "" && t.Host == "") { - url.Scheme = t.Scheme - url.Host = t.Host - } - - origPath := url.Path - // Do not rewrite URL if the sourceURL already contains the necessary prefix. - if strings.HasPrefix(url.Path, t.PathPrepend) { - return url.String() - } - url.Path = path.Join(t.PathPrepend, url.Path) - if strings.HasSuffix(origPath, "/") { - // Add back the trailing slash, which was stripped by path.Join(). - url.Path += "/" - } - - return url.String() -} - -// rewriteHTML scans the HTML for tags with url-valued attributes, and updates -// those values with the urlRewriter function. The updated HTML is output to the -// writer. -func rewriteHTML(reader io.Reader, writer io.Writer, urlRewriter func(string) string) error { - // Note: This assumes the content is UTF-8. - tokenizer := html.NewTokenizer(reader) - - var err error - for err == nil { - tokenType := tokenizer.Next() - switch tokenType { - case html.ErrorToken: - err = tokenizer.Err() - case html.StartTagToken, html.SelfClosingTagToken: - token := tokenizer.Token() - if urlAttrs, ok := atomsToAttrs[token.DataAtom]; ok { - for i, attr := range token.Attr { - if urlAttrs.Has(attr.Key) { - token.Attr[i].Val = urlRewriter(attr.Val) - } - } - } - _, err = writer.Write([]byte(token.String())) - default: - _, err = writer.Write(tokenizer.Raw()) - } - } - if err != io.EOF { - return err - } - return nil -} - -// rewriteResponse modifies an HTML response by updating absolute links referring -// to the original host to instead refer to the proxy transport. -func (t *Transport) rewriteResponse(req *http.Request, resp *http.Response) (*http.Response, error) { - origBody := resp.Body - defer origBody.Close() - - newContent := &bytes.Buffer{} - var reader io.Reader = origBody - var writer io.Writer = newContent - encoding := resp.Header.Get("Content-Encoding") - switch encoding { - case "gzip": - var err error - reader, err = gzip.NewReader(reader) - if err != nil { - return nil, fmt.Errorf("errorf making gzip reader: %v", err) - } - gzw := gzip.NewWriter(writer) - defer gzw.Close() - writer = gzw - case "deflate": - var err error - reader = flate.NewReader(reader) - flw, err := flate.NewWriter(writer, flate.BestCompression) - if err != nil { - return nil, fmt.Errorf("errorf making flate writer: %v", err) - } - defer func() { - flw.Close() - flw.Flush() - }() - writer = flw - case "": - // This is fine - default: - // Some encoding we don't understand-- don't try to parse this - klog.Errorf("Proxy encountered encoding %v for text/html; can't understand this so not fixing links.", encoding) - return resp, nil - } - - urlRewriter := func(targetUrl string) string { - return t.rewriteURL(targetUrl, req.URL, req.Host) - } - err := rewriteHTML(reader, writer, urlRewriter) - if err != nil { - klog.Errorf("Failed to rewrite URLs: %v", err) - return resp, err - } - - resp.Body = ioutil.NopCloser(newContent) - // Update header node with new content-length - // TODO: Remove any hash/signature headers here? - resp.Header.Del("Content-Length") - resp.ContentLength = int64(newContent.Len()) - - return resp, err -} diff --git a/pseudo/k8s/apimachinery/pkg/util/proxy/transport_test.go b/pseudo/k8s/apimachinery/pkg/util/proxy/transport_test.go deleted file mode 100644 index 90816ffa5..000000000 --- a/pseudo/k8s/apimachinery/pkg/util/proxy/transport_test.go +++ /dev/null @@ -1,359 +0,0 @@ -/* -Copyright 2014 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 proxy - -import ( - "bytes" - "compress/flate" - "compress/gzip" - "fmt" - "io/ioutil" - "net/http" - "net/http/httptest" - "net/url" - "strings" - "testing" -) - -func parseURLOrDie(inURL string) *url.URL { - parsed, err := url.Parse(inURL) - if err != nil { - panic(err) - } - return parsed -} - -func TestProxyTransport(t *testing.T) { - testTransport := &Transport{ - Scheme: "http", - Host: "foo.com", - PathPrepend: "/proxy/node/node1:10250", - } - testTransport2 := &Transport{ - Scheme: "https", - Host: "foo.com", - PathPrepend: "/proxy/node/node1:8080", - } - emptyHostTransport := &Transport{ - Scheme: "https", - PathPrepend: "/proxy/node/node1:10250", - } - emptySchemeTransport := &Transport{ - Host: "foo.com", - PathPrepend: "/proxy/node/node1:10250", - } - emptyHostAndSchemeTransport := &Transport{ - PathPrepend: "/proxy/node/node1:10250", - } - type Item struct { - input string - sourceURL string - transport *Transport - output string - contentType string - forwardedURI string - redirect string - redirectWant string - reqHost string - } - - table := map[string]Item{ - "normal": { - input: `

kubelet.loggoogle.log
`, - sourceURL: "http://mynode.com/logs/log.log", - transport: testTransport, - output: `
kubelet.loggoogle.log
`, - contentType: "text/html", - forwardedURI: "/proxy/node/node1:10250/logs/log.log", - }, - "full document": { - input: `
kubelet.loggoogle.log
`, - sourceURL: "http://mynode.com/logs/log.log", - transport: testTransport, - output: `
kubelet.loggoogle.log
`, - contentType: "text/html", - forwardedURI: "/proxy/node/node1:10250/logs/log.log", - }, - "trailing slash": { - input: `
kubelet.loggoogle.log
`, - sourceURL: "http://mynode.com/logs/log.log", - transport: testTransport, - output: `
kubelet.loggoogle.log
`, - contentType: "text/html", - forwardedURI: "/proxy/node/node1:10250/logs/log.log", - }, - "content-type charset": { - input: `
kubelet.loggoogle.log
`, - sourceURL: "http://mynode.com/logs/log.log", - transport: testTransport, - output: `
kubelet.loggoogle.log
`, - contentType: "text/html; charset=utf-8", - forwardedURI: "/proxy/node/node1:10250/logs/log.log", - }, - "content-type passthrough": { - input: `
kubelet.loggoogle.log
`, - sourceURL: "http://mynode.com/logs/log.log", - transport: testTransport, - output: `
kubelet.loggoogle.log
`, - contentType: "text/plain", - forwardedURI: "/proxy/node/node1:10250/logs/log.log", - }, - "subdir": { - input: `kubelet.loggoogle.log`, - sourceURL: "http://mynode.com/whatever/apt/somelog.log", - transport: testTransport2, - output: `kubelet.loggoogle.log`, - contentType: "text/html", - forwardedURI: "/proxy/node/node1:8080/whatever/apt/somelog.log", - }, - "image": { - input: `
`, - sourceURL: "http://mynode.com/", - transport: testTransport, - output: `
`, - contentType: "text/html", - forwardedURI: "/proxy/node/node1:10250/", - }, - "abs": { - input: `